@coopenomics/extension-kit 2026.10.28 → 2026.10.30-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +8 -0
- package/dist/index.d.cts +9 -7
- package/dist/index.d.mts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.mjs +8 -0
- package/package.json +7 -5
package/dist/index.cjs
CHANGED
|
@@ -932,6 +932,14 @@ __decorateClass$l([
|
|
|
932
932
|
classValidator.IsArray(),
|
|
933
933
|
classValidator.IsString({ each: true })
|
|
934
934
|
], exports.MetaDocumentInputDTO.prototype, "links", 2);
|
|
935
|
+
__decorateClass$l([
|
|
936
|
+
graphql.Field(() => String, {
|
|
937
|
+
nullable: true,
|
|
938
|
+
description: "\u0412\u0435\u0440\u0441\u0438\u044F \u0441\u0431\u043E\u0440\u0449\u0438\u043A\u0430 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430 (major.minor); \u0443 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432, \u0441\u043E\u0431\u0440\u0430\u043D\u043D\u044B\u0445 \u0434\u043E \u0435\u0451 \u043F\u043E\u044F\u0432\u043B\u0435\u043D\u0438\u044F, \u043D\u0435 \u0437\u0430\u0434\u0430\u043D\u0430"
|
|
939
|
+
}),
|
|
940
|
+
classValidator.IsOptional(),
|
|
941
|
+
classValidator.IsString()
|
|
942
|
+
], exports.MetaDocumentInputDTO.prototype, "builder", 2);
|
|
935
943
|
exports.MetaDocumentInputDTO = __decorateClass$l([
|
|
936
944
|
graphql.InputType("MetaDocumentInput")
|
|
937
945
|
], exports.MetaDocumentInputDTO);
|
package/dist/index.d.cts
CHANGED
|
@@ -5,6 +5,7 @@ import { Observable } from 'rxjs';
|
|
|
5
5
|
import { MongoQuery } from '@casl/ability';
|
|
6
6
|
import { Reflector } from '@nestjs/core';
|
|
7
7
|
import { ZodObject } from 'zod';
|
|
8
|
+
import { IMetaDocument, IGenerate, Registry, IGeneratedDocument, IGenerationOptions } from '@coopenomics/docs-templates';
|
|
8
9
|
import { Cooperative } from 'cooptypes';
|
|
9
10
|
import { Kysely } from 'kysely';
|
|
10
11
|
import { T as TableStore } from './shared/extension-kit.9c3dd9f1.cjs';
|
|
@@ -686,7 +687,7 @@ declare enum LangType {
|
|
|
686
687
|
ru = "ru"
|
|
687
688
|
}
|
|
688
689
|
|
|
689
|
-
declare class MetaDocumentInputDTO implements
|
|
690
|
+
declare class MetaDocumentInputDTO implements IMetaDocument {
|
|
690
691
|
title: string;
|
|
691
692
|
registry_id: number;
|
|
692
693
|
lang: LangType;
|
|
@@ -698,9 +699,10 @@ declare class MetaDocumentInputDTO implements Cooperative.Document.IMetaDocument
|
|
|
698
699
|
block_num: number;
|
|
699
700
|
timezone: string;
|
|
700
701
|
links: string[];
|
|
702
|
+
builder?: string;
|
|
701
703
|
}
|
|
702
704
|
|
|
703
|
-
declare class GenerateMetaDocumentInputDTO implements
|
|
705
|
+
declare class GenerateMetaDocumentInputDTO implements IGenerate {
|
|
704
706
|
title?: string;
|
|
705
707
|
registry_id: number;
|
|
706
708
|
coopname: string;
|
|
@@ -714,9 +716,9 @@ declare class GenerateMetaDocumentInputDTO implements Cooperative.Document.IGene
|
|
|
714
716
|
links?: string[];
|
|
715
717
|
}
|
|
716
718
|
|
|
717
|
-
type Action =
|
|
718
|
-
type ItemAction =
|
|
719
|
-
type HeaderAction =
|
|
719
|
+
type Action = Registry.ExpenseProposalStatement.Action;
|
|
720
|
+
type ItemAction = Registry.ExpenseProposalStatement.IExpenseItem;
|
|
721
|
+
type HeaderAction = Registry.ExpenseProposalStatement.IExpenseProposalHeader;
|
|
720
722
|
/**
|
|
721
723
|
* Позиция-вход генерации СЗ-документа. Приватные поля (имя/реквизиты/назначение)
|
|
722
724
|
* — это вход для фабрики: сервер сохраняет их off-chain в doc_data и публикует
|
|
@@ -1760,7 +1762,7 @@ declare function configurePlatformSettings(value: PlatformSettings): void;
|
|
|
1760
1762
|
*/
|
|
1761
1763
|
declare function platformSettings(): PlatformSettings;
|
|
1762
1764
|
|
|
1763
|
-
type GeneratedDocumentDomainInterface = Omit<
|
|
1765
|
+
type GeneratedDocumentDomainInterface = Omit<IGeneratedDocument, 'binary'> & {
|
|
1764
1766
|
binary: string;
|
|
1765
1767
|
};
|
|
1766
1768
|
|
|
@@ -1773,7 +1775,7 @@ declare class GeneratedDocumentDTO implements GeneratedDocumentDomainInterface {
|
|
|
1773
1775
|
constructor(data?: GeneratedDocumentDomainInterface);
|
|
1774
1776
|
}
|
|
1775
1777
|
|
|
1776
|
-
declare class GenerateDocumentOptionsInputDTO implements
|
|
1778
|
+
declare class GenerateDocumentOptionsInputDTO implements IGenerationOptions {
|
|
1777
1779
|
skip_save?: boolean;
|
|
1778
1780
|
lang?: string;
|
|
1779
1781
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -5,6 +5,7 @@ import { Observable } from 'rxjs';
|
|
|
5
5
|
import { MongoQuery } from '@casl/ability';
|
|
6
6
|
import { Reflector } from '@nestjs/core';
|
|
7
7
|
import { ZodObject } from 'zod';
|
|
8
|
+
import { IMetaDocument, IGenerate, Registry, IGeneratedDocument, IGenerationOptions } from '@coopenomics/docs-templates';
|
|
8
9
|
import { Cooperative } from 'cooptypes';
|
|
9
10
|
import { Kysely } from 'kysely';
|
|
10
11
|
import { T as TableStore } from './shared/extension-kit.9c3dd9f1.mjs';
|
|
@@ -686,7 +687,7 @@ declare enum LangType {
|
|
|
686
687
|
ru = "ru"
|
|
687
688
|
}
|
|
688
689
|
|
|
689
|
-
declare class MetaDocumentInputDTO implements
|
|
690
|
+
declare class MetaDocumentInputDTO implements IMetaDocument {
|
|
690
691
|
title: string;
|
|
691
692
|
registry_id: number;
|
|
692
693
|
lang: LangType;
|
|
@@ -698,9 +699,10 @@ declare class MetaDocumentInputDTO implements Cooperative.Document.IMetaDocument
|
|
|
698
699
|
block_num: number;
|
|
699
700
|
timezone: string;
|
|
700
701
|
links: string[];
|
|
702
|
+
builder?: string;
|
|
701
703
|
}
|
|
702
704
|
|
|
703
|
-
declare class GenerateMetaDocumentInputDTO implements
|
|
705
|
+
declare class GenerateMetaDocumentInputDTO implements IGenerate {
|
|
704
706
|
title?: string;
|
|
705
707
|
registry_id: number;
|
|
706
708
|
coopname: string;
|
|
@@ -714,9 +716,9 @@ declare class GenerateMetaDocumentInputDTO implements Cooperative.Document.IGene
|
|
|
714
716
|
links?: string[];
|
|
715
717
|
}
|
|
716
718
|
|
|
717
|
-
type Action =
|
|
718
|
-
type ItemAction =
|
|
719
|
-
type HeaderAction =
|
|
719
|
+
type Action = Registry.ExpenseProposalStatement.Action;
|
|
720
|
+
type ItemAction = Registry.ExpenseProposalStatement.IExpenseItem;
|
|
721
|
+
type HeaderAction = Registry.ExpenseProposalStatement.IExpenseProposalHeader;
|
|
720
722
|
/**
|
|
721
723
|
* Позиция-вход генерации СЗ-документа. Приватные поля (имя/реквизиты/назначение)
|
|
722
724
|
* — это вход для фабрики: сервер сохраняет их off-chain в doc_data и публикует
|
|
@@ -1760,7 +1762,7 @@ declare function configurePlatformSettings(value: PlatformSettings): void;
|
|
|
1760
1762
|
*/
|
|
1761
1763
|
declare function platformSettings(): PlatformSettings;
|
|
1762
1764
|
|
|
1763
|
-
type GeneratedDocumentDomainInterface = Omit<
|
|
1765
|
+
type GeneratedDocumentDomainInterface = Omit<IGeneratedDocument, 'binary'> & {
|
|
1764
1766
|
binary: string;
|
|
1765
1767
|
};
|
|
1766
1768
|
|
|
@@ -1773,7 +1775,7 @@ declare class GeneratedDocumentDTO implements GeneratedDocumentDomainInterface {
|
|
|
1773
1775
|
constructor(data?: GeneratedDocumentDomainInterface);
|
|
1774
1776
|
}
|
|
1775
1777
|
|
|
1776
|
-
declare class GenerateDocumentOptionsInputDTO implements
|
|
1778
|
+
declare class GenerateDocumentOptionsInputDTO implements IGenerationOptions {
|
|
1777
1779
|
skip_save?: boolean;
|
|
1778
1780
|
lang?: string;
|
|
1779
1781
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { Observable } from 'rxjs';
|
|
|
5
5
|
import { MongoQuery } from '@casl/ability';
|
|
6
6
|
import { Reflector } from '@nestjs/core';
|
|
7
7
|
import { ZodObject } from 'zod';
|
|
8
|
+
import { IMetaDocument, IGenerate, Registry, IGeneratedDocument, IGenerationOptions } from '@coopenomics/docs-templates';
|
|
8
9
|
import { Cooperative } from 'cooptypes';
|
|
9
10
|
import { Kysely } from 'kysely';
|
|
10
11
|
import { T as TableStore } from './shared/extension-kit.9c3dd9f1.js';
|
|
@@ -686,7 +687,7 @@ declare enum LangType {
|
|
|
686
687
|
ru = "ru"
|
|
687
688
|
}
|
|
688
689
|
|
|
689
|
-
declare class MetaDocumentInputDTO implements
|
|
690
|
+
declare class MetaDocumentInputDTO implements IMetaDocument {
|
|
690
691
|
title: string;
|
|
691
692
|
registry_id: number;
|
|
692
693
|
lang: LangType;
|
|
@@ -698,9 +699,10 @@ declare class MetaDocumentInputDTO implements Cooperative.Document.IMetaDocument
|
|
|
698
699
|
block_num: number;
|
|
699
700
|
timezone: string;
|
|
700
701
|
links: string[];
|
|
702
|
+
builder?: string;
|
|
701
703
|
}
|
|
702
704
|
|
|
703
|
-
declare class GenerateMetaDocumentInputDTO implements
|
|
705
|
+
declare class GenerateMetaDocumentInputDTO implements IGenerate {
|
|
704
706
|
title?: string;
|
|
705
707
|
registry_id: number;
|
|
706
708
|
coopname: string;
|
|
@@ -714,9 +716,9 @@ declare class GenerateMetaDocumentInputDTO implements Cooperative.Document.IGene
|
|
|
714
716
|
links?: string[];
|
|
715
717
|
}
|
|
716
718
|
|
|
717
|
-
type Action =
|
|
718
|
-
type ItemAction =
|
|
719
|
-
type HeaderAction =
|
|
719
|
+
type Action = Registry.ExpenseProposalStatement.Action;
|
|
720
|
+
type ItemAction = Registry.ExpenseProposalStatement.IExpenseItem;
|
|
721
|
+
type HeaderAction = Registry.ExpenseProposalStatement.IExpenseProposalHeader;
|
|
720
722
|
/**
|
|
721
723
|
* Позиция-вход генерации СЗ-документа. Приватные поля (имя/реквизиты/назначение)
|
|
722
724
|
* — это вход для фабрики: сервер сохраняет их off-chain в doc_data и публикует
|
|
@@ -1760,7 +1762,7 @@ declare function configurePlatformSettings(value: PlatformSettings): void;
|
|
|
1760
1762
|
*/
|
|
1761
1763
|
declare function platformSettings(): PlatformSettings;
|
|
1762
1764
|
|
|
1763
|
-
type GeneratedDocumentDomainInterface = Omit<
|
|
1765
|
+
type GeneratedDocumentDomainInterface = Omit<IGeneratedDocument, 'binary'> & {
|
|
1764
1766
|
binary: string;
|
|
1765
1767
|
};
|
|
1766
1768
|
|
|
@@ -1773,7 +1775,7 @@ declare class GeneratedDocumentDTO implements GeneratedDocumentDomainInterface {
|
|
|
1773
1775
|
constructor(data?: GeneratedDocumentDomainInterface);
|
|
1774
1776
|
}
|
|
1775
1777
|
|
|
1776
|
-
declare class GenerateDocumentOptionsInputDTO implements
|
|
1778
|
+
declare class GenerateDocumentOptionsInputDTO implements IGenerationOptions {
|
|
1777
1779
|
skip_save?: boolean;
|
|
1778
1780
|
lang?: string;
|
|
1779
1781
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -924,6 +924,14 @@ __decorateClass$l([
|
|
|
924
924
|
IsArray(),
|
|
925
925
|
IsString({ each: true })
|
|
926
926
|
], MetaDocumentInputDTO.prototype, "links", 2);
|
|
927
|
+
__decorateClass$l([
|
|
928
|
+
Field(() => String, {
|
|
929
|
+
nullable: true,
|
|
930
|
+
description: "\u0412\u0435\u0440\u0441\u0438\u044F \u0441\u0431\u043E\u0440\u0449\u0438\u043A\u0430 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430 (major.minor); \u0443 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432, \u0441\u043E\u0431\u0440\u0430\u043D\u043D\u044B\u0445 \u0434\u043E \u0435\u0451 \u043F\u043E\u044F\u0432\u043B\u0435\u043D\u0438\u044F, \u043D\u0435 \u0437\u0430\u0434\u0430\u043D\u0430"
|
|
931
|
+
}),
|
|
932
|
+
IsOptional(),
|
|
933
|
+
IsString()
|
|
934
|
+
], MetaDocumentInputDTO.prototype, "builder", 2);
|
|
927
935
|
MetaDocumentInputDTO = __decorateClass$l([
|
|
928
936
|
InputType("MetaDocumentInput")
|
|
929
937
|
], MetaDocumentInputDTO);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coopenomics/extension-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2026.10.
|
|
4
|
+
"version": "2026.10.30-1",
|
|
5
5
|
"description": "Служебный каркас расширения цифрового кооператива: базовый модуль, сущности и репозитории расширения, авторизация, каркас блокчейн-синхронизации, контракт миграций схемы, контракт реестра",
|
|
6
6
|
"author": "Alex Ant <dacom.dark.sun@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -39,8 +39,9 @@
|
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@casl/ability": "^7.0.0",
|
|
42
|
+
"@coopenomics/docs-templates": "1.3.0",
|
|
42
43
|
"@coopenomics/i18n": "workspace:*",
|
|
43
|
-
"@coopenomics/sdk": "2026.10.
|
|
44
|
+
"@coopenomics/sdk": "2026.10.30-1",
|
|
44
45
|
"@nestjs/common": "^10.0.0",
|
|
45
46
|
"@nestjs/core": "^10.0.0",
|
|
46
47
|
"@nestjs/graphql": "^12.2.1",
|
|
@@ -61,7 +62,8 @@
|
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|
|
63
64
|
"@casl/ability": "^7.0.0",
|
|
64
|
-
"@coopenomics/
|
|
65
|
+
"@coopenomics/docs-templates": "1.3.0",
|
|
66
|
+
"@coopenomics/i18n": "2026.10.30-1",
|
|
65
67
|
"@nestjs/common": "^10.0.0",
|
|
66
68
|
"@nestjs/core": "^10.0.0",
|
|
67
69
|
"@nestjs/graphql": "^12.2.1",
|
|
@@ -70,7 +72,7 @@
|
|
|
70
72
|
"@wharfkit/session": "^1.4.0",
|
|
71
73
|
"class-transformer": "^0.5.1",
|
|
72
74
|
"class-validator": "^0.14.1",
|
|
73
|
-
"cooptypes": "2026.10.
|
|
75
|
+
"cooptypes": "2026.10.30-1",
|
|
74
76
|
"graphql": "^16.9.0",
|
|
75
77
|
"graphql-type-json": "^0.3.2",
|
|
76
78
|
"kysely": "0.28.17",
|
|
@@ -82,5 +84,5 @@
|
|
|
82
84
|
"unbuild": "^2.0.0",
|
|
83
85
|
"zod": "^3.0.0"
|
|
84
86
|
},
|
|
85
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "43ae8f5d452c64e41de2d6fb592ecccd373a873c"
|
|
86
88
|
}
|