From c7bc5a75cb3523eba3f35eff68f4d022ac537818 Mon Sep 17 00:00:00 2001 From: Alex Ant Date: Tue, 9 Jul 2024 18:38:36 +0500 Subject: [PATCH] new types --- .github/workflows/ci.yml | 46 +++++++++++++++++----------------- src/cooperative/model/index.ts | 20 ++++++++++++++- src/interfaces/registrator.ts | 1 + 3 files changed, 43 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb78617..2e85bef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,34 +54,34 @@ jobs: - name: Typecheck run: nr typecheck - test: - runs-on: ${{ matrix.os }} + # test: + # runs-on: ${{ matrix.os }} - strategy: - matrix: - node: [lts/*] - os: [ubuntu-latest, windows-latest, macos-latest] - fail-fast: false + # strategy: + # matrix: + # node: [lts/*] + # os: [ubuntu-latest, windows-latest, macos-latest] + # fail-fast: false - steps: - - uses: actions/checkout@v3 + # steps: + # - uses: actions/checkout@v3 - - name: Install pnpm - uses: pnpm/action-setup@v2 + # - name: Install pnpm + # uses: pnpm/action-setup@v2 - - name: Set node ${{ matrix.node }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node }} + # - name: Set node ${{ matrix.node }} + # uses: actions/setup-node@v3 + # with: + # node-version: ${{ matrix.node }} - - name: Setup - run: npm i -g @antfu/ni + # - name: Setup + # run: npm i -g @antfu/ni - - name: Install - run: nci + # - name: Install + # run: nci - - name: Build - run: nr build + # - name: Build + # run: nr build - - name: Test - run: nr test + # - name: Test + # run: nr test diff --git a/src/cooperative/model/index.ts b/src/cooperative/model/index.ts index 35de7c7..08c2f2e 100644 --- a/src/cooperative/model/index.ts +++ b/src/cooperative/model/index.ts @@ -1,5 +1,5 @@ import type { SovietContract } from '../../contracts' -import type { IIndividualData, IOrganizationData } from '../users' +import type { Details, IIndividualData, IOrganizationData } from '../users' export interface ICooperativeData extends IOrganizationData { announce: string @@ -17,3 +17,21 @@ export interface ICooperativeData extends IOrganizationData { export interface MembersData extends SovietContract.Interfaces.IBoardMember, IIndividualData { is_chairman: boolean } + +export interface IAnnounce { + phone: string + email: string +} + +export interface IContacts { + full_name: string + full_address: string + details: Details + phone: string + email: string + chairman: { + first_name: string + last_name: string + middle_name: string + } +} diff --git a/src/interfaces/registrator.ts b/src/interfaces/registrator.ts index c475cfa..b249f7c 100644 --- a/src/interfaces/registrator.ts +++ b/src/interfaces/registrator.ts @@ -83,6 +83,7 @@ export interface IOrganization { description: string is_cooperative: boolean is_branched: boolean + is_enrolled: boolean coop_type: IName registration: IAsset initial: IAsset