Compare commits

...

27 Commits

Author SHA1 Message Date
Alex Ant 8611c9bfb0 Автоматическое обновление - 2024-07-09 21:14:51 2024-07-09 21:14:58 +05:00
Alex Ant f725a21e19 Автоматическое обновление - 2024-07-09 20:45:27 2024-07-09 20:45:34 +05:00
Alex Ant 1cfb9824af Автоматическое обновление - 2024-07-09 20:44:52 2024-07-09 20:44:57 +05:00
Alex Ant 6628163ab2 Автоматическое обновление - 2024-07-09 20:36:57 2024-07-09 20:37:03 +05:00
Alex Ant bc5713626e lock 2024-07-09 19:42:02 +05:00
Alex Ant f23f09406b Автоматическое обновление - 2024-07-09 19:35:05 2024-07-09 19:35:13 +05:00
Alex Ant 3187c6026d Автоматическое обновление 2024-07-09 19:23:57 +05:00
Alex Ant fbf3e387b4 Автоматическое обновление 2024-07-09 19:18:49 +05:00
Alex Ant 2e11d991ee push 2024-07-09 18:58:45 +05:00
Alex Ant c7bc5a75cb new types 2024-07-09 18:38:36 +05:00
Alex Ant 267427a027 chore: release v1.0.3 2024-07-08 18:31:14 +05:00
Alex Ant 957d970ce3 chore: release v1.0.2 2024-07-08 13:44:44 +05:00
Alex Ant 4249339b92 chore: release v1.0.1 2024-07-08 11:33:43 +05:00
Alex Ant bb59279eb6 chore: release v1.0.0 2024-07-08 11:25:35 +05:00
Alex Ant 0f6b2d5cb7 release 2024-07-08 11:25:00 +05:00
Alex Ant 3b677628e5 update! 2024-07-08 11:22:30 +05:00
Alex Ant 89ae957020 update cooperative model 2024-07-08 11:08:15 +05:00
Alex Ant 370a9879a2 chore: release v0.5.29 2024-06-28 13:17:52 +05:00
Alex Ant 9738e9ef78 update types 2024-06-28 13:16:42 +05:00
Alex Ant 95a07a5ee5 chore: release v0.5.28 2024-06-28 12:19:46 +05:00
Alex Ant 178800d35f add username 2024-06-28 12:19:17 +05:00
Alex Ant 824704d359 chore: release v0.5.27 2024-06-28 12:01:30 +05:00
Alex Ant 257324387d cooperativeData interface 2024-06-28 12:01:06 +05:00
Alex Ant aeee4e566d chore: release v0.5.26 2024-06-28 11:44:38 +05:00
Alex Ant fa8e831358 update 2024-06-28 11:43:50 +05:00
Alex Ant e02a15a94c chore: release v0.5.25 2024-06-27 08:26:27 +05:00
Alex Ant 91b37f2efc admins page 2024-06-27 08:23:52 +05:00
13 changed files with 4672 additions and 3771 deletions
+23 -23
View File
@@ -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
+2 -2
View File
@@ -1,2 +1,2 @@
ignore-workspace-root-check=true
shell-emulator=true
# ignore-workspace-root-check=true
# shell-emulator=true
+2 -4
View File
@@ -1,17 +1,15 @@
{
"name": "cooptypes",
"type": "module",
"version": "0.5.24",
"packageManager": "pnpm@9.0.6",
"version": "1.0.8",
"description": "_description_",
"author": "Alex Ant <dacom.dark.sun@gmail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/copenomics/cooptypes.git"
"url": "git+https://github.com/coopenomics/cooptypes.git"
},
"keywords": [],
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
+4575 -3736
View File
File diff suppressed because it is too large Load Diff
-5
View File
@@ -1,5 +0,0 @@
packages:
- playground
- docs
- packages/*
- examples/*
@@ -20,5 +20,6 @@ export * as SetRights from './setRights'
/**
* Действие для инициализации контракта.
* @private
*/
export * as Init from './init'
+1 -1
View File
@@ -3,7 +3,7 @@ import type * as Soviet from '../../../../interfaces/soviet'
import { Actors } from '../../../../common'
/**
* Действие выполняется за подписью {@link Actors._init | системного контракта}.
* Действие выполняется за подписью {@link Actors._system | системного контракта}.
*/
export const authorizations = [
{ permissions: [Permissions.active], actor: Actors._system },
+5
View File
@@ -30,3 +30,8 @@ export * as Decisions from './decisions'
* Пространство управления собраниями и советами.
*/
export * as Boards from './boards'
/**
* Пространство управления администраторами.
*/
export * as Admins from './admins'
+20
View File
@@ -71,3 +71,23 @@ export interface IAgenda {
export interface IComplexAgenda extends IAgenda {
documents: IComplexDocument
}
/**
* Общий интерфейс для генерации/регенерации документа
*/
export interface IGenerate extends Omit<Partial<IMetaDocument>, 'registry_id' | 'title'> {
code: string
action: string
coopname: string
username: string
[key: string]: any
}
export interface IGenerateJoinCoop extends IGenerate {
signature: string
skip_save: boolean
}
export interface IGenerateJoinCoopDecision extends IGenerate {
decision_id: number
}
+1
View File
@@ -1,3 +1,4 @@
export * as Documents from './documents'
export * as Users from './users'
export * as Blockchain from './blockchain'
export * as Model from './model'
+37
View File
@@ -0,0 +1,37 @@
import type { SovietContract } from '../../contracts'
import type { Details, IIndividualData, IOrganizationData } from '../users'
export interface ICooperativeData extends IOrganizationData {
announce: string
description: string
is_branched: boolean
is_enrolled: boolean
registration: string
initial: string
minimum: string
members: MembersData[]
chairman: IIndividualData
totalMembers: number
}
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
}
}
+4
View File
@@ -19,6 +19,7 @@ export interface IBankAccount {
}
export interface IIndividualData {
username: string
first_name: string
last_name: string
middle_name: string
@@ -29,6 +30,8 @@ export interface IIndividualData {
}
export interface IOrganizationData {
username: string
type: 'coop' | 'ooo' | 'oao' | 'zao' | 'pao' | 'ao'
is_cooperative: boolean
short_name: string
full_name: string
@@ -49,6 +52,7 @@ export interface IOrganizationData {
}
export interface IEntrepreneurData {
username: string
first_name: string
last_name: string
middle_name: string
+1
View File
@@ -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