new types
This commit is contained in:
+23
-23
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user