@coopenomics/factory 2025.11.18-alpha-1 → 2025.11.19-alpha-2
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 +198 -50
- package/dist/index.d.cts +32 -21
- package/dist/index.d.mts +32 -21
- package/dist/index.d.ts +32 -21
- package/dist/index.mjs +198 -51
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -657,8 +657,8 @@ const AgendaQuestionSchema = {
|
|
|
657
657
|
additionalProperties: true
|
|
658
658
|
};
|
|
659
659
|
|
|
660
|
-
const registry_id$
|
|
661
|
-
const Schema$
|
|
660
|
+
const registry_id$L = cooptypes.Cooperative.Registry.WalletAgreement.registry_id;
|
|
661
|
+
const Schema$L = {
|
|
662
662
|
type: "object",
|
|
663
663
|
properties: {
|
|
664
664
|
meta: IMetaJSONSchema,
|
|
@@ -668,23 +668,23 @@ const Schema$K = {
|
|
|
668
668
|
required: ["meta", "coop", "vars"],
|
|
669
669
|
additionalProperties: true
|
|
670
670
|
};
|
|
671
|
-
const Template$
|
|
671
|
+
const Template$L = {
|
|
672
672
|
title: cooptypes.Cooperative.Registry.WalletAgreement.title,
|
|
673
673
|
description: cooptypes.Cooperative.Registry.WalletAgreement.description,
|
|
674
|
-
model: Schema$
|
|
674
|
+
model: Schema$L,
|
|
675
675
|
context: cooptypes.Cooperative.Registry.WalletAgreement.context,
|
|
676
676
|
translations: cooptypes.Cooperative.Registry.WalletAgreement.translations
|
|
677
677
|
};
|
|
678
678
|
|
|
679
679
|
const WalletAgreement = {
|
|
680
680
|
__proto__: null,
|
|
681
|
-
Schema: Schema$
|
|
682
|
-
Template: Template$
|
|
683
|
-
registry_id: registry_id$
|
|
681
|
+
Schema: Schema$L,
|
|
682
|
+
Template: Template$L,
|
|
683
|
+
registry_id: registry_id$L
|
|
684
684
|
};
|
|
685
685
|
|
|
686
|
-
const registry_id$
|
|
687
|
-
const Schema$
|
|
686
|
+
const registry_id$K = cooptypes.Cooperative.Registry.RegulationElectronicSignature.registry_id;
|
|
687
|
+
const Schema$K = {
|
|
688
688
|
type: "object",
|
|
689
689
|
properties: {
|
|
690
690
|
meta: IMetaJSONSchema,
|
|
@@ -694,23 +694,23 @@ const Schema$J = {
|
|
|
694
694
|
required: ["meta", "coop", "vars"],
|
|
695
695
|
additionalProperties: true
|
|
696
696
|
};
|
|
697
|
-
const Template$
|
|
697
|
+
const Template$K = {
|
|
698
698
|
title: cooptypes.Cooperative.Registry.RegulationElectronicSignature.title,
|
|
699
699
|
description: cooptypes.Cooperative.Registry.RegulationElectronicSignature.description,
|
|
700
|
-
model: Schema$
|
|
700
|
+
model: Schema$K,
|
|
701
701
|
context: cooptypes.Cooperative.Registry.RegulationElectronicSignature.context,
|
|
702
702
|
translations: cooptypes.Cooperative.Registry.RegulationElectronicSignature.translations
|
|
703
703
|
};
|
|
704
704
|
|
|
705
705
|
const RegulationElectronicSignaturet = {
|
|
706
706
|
__proto__: null,
|
|
707
|
-
Schema: Schema$
|
|
708
|
-
Template: Template$
|
|
709
|
-
registry_id: registry_id$
|
|
707
|
+
Schema: Schema$K,
|
|
708
|
+
Template: Template$K,
|
|
709
|
+
registry_id: registry_id$K
|
|
710
710
|
};
|
|
711
711
|
|
|
712
|
-
const registry_id$
|
|
713
|
-
const Schema$
|
|
712
|
+
const registry_id$J = cooptypes.Cooperative.Registry.PrivacyPolicy.registry_id;
|
|
713
|
+
const Schema$J = {
|
|
714
714
|
type: "object",
|
|
715
715
|
properties: {
|
|
716
716
|
meta: IMetaJSONSchema,
|
|
@@ -720,23 +720,23 @@ const Schema$I = {
|
|
|
720
720
|
required: ["meta", "coop", "vars"],
|
|
721
721
|
additionalProperties: true
|
|
722
722
|
};
|
|
723
|
-
const Template$
|
|
723
|
+
const Template$J = {
|
|
724
724
|
title: cooptypes.Cooperative.Registry.PrivacyPolicy.title,
|
|
725
725
|
description: cooptypes.Cooperative.Registry.PrivacyPolicy.description,
|
|
726
|
-
model: Schema$
|
|
726
|
+
model: Schema$J,
|
|
727
727
|
context: cooptypes.Cooperative.Registry.PrivacyPolicy.context,
|
|
728
728
|
translations: cooptypes.Cooperative.Registry.PrivacyPolicy.translations
|
|
729
729
|
};
|
|
730
730
|
|
|
731
731
|
const PrivacyPolicy = {
|
|
732
732
|
__proto__: null,
|
|
733
|
-
Schema: Schema$
|
|
734
|
-
Template: Template$
|
|
735
|
-
registry_id: registry_id$
|
|
733
|
+
Schema: Schema$J,
|
|
734
|
+
Template: Template$J,
|
|
735
|
+
registry_id: registry_id$J
|
|
736
736
|
};
|
|
737
737
|
|
|
738
|
-
const registry_id$
|
|
739
|
-
const Schema$
|
|
738
|
+
const registry_id$I = cooptypes.Cooperative.Registry.UserAgreement.registry_id;
|
|
739
|
+
const Schema$I = {
|
|
740
740
|
type: "object",
|
|
741
741
|
properties: {
|
|
742
742
|
meta: IMetaJSONSchema,
|
|
@@ -753,23 +753,23 @@ const Schema$H = {
|
|
|
753
753
|
required: ["meta", "coop", "vars", "user"],
|
|
754
754
|
additionalProperties: true
|
|
755
755
|
};
|
|
756
|
-
const Template$
|
|
756
|
+
const Template$I = {
|
|
757
757
|
title: cooptypes.Cooperative.Registry.UserAgreement.title,
|
|
758
758
|
description: cooptypes.Cooperative.Registry.UserAgreement.description,
|
|
759
|
-
model: Schema$
|
|
759
|
+
model: Schema$I,
|
|
760
760
|
context: cooptypes.Cooperative.Registry.UserAgreement.context,
|
|
761
761
|
translations: cooptypes.Cooperative.Registry.UserAgreement.translations
|
|
762
762
|
};
|
|
763
763
|
|
|
764
764
|
const UserAgreement = {
|
|
765
765
|
__proto__: null,
|
|
766
|
-
Schema: Schema$
|
|
767
|
-
Template: Template$
|
|
768
|
-
registry_id: registry_id$
|
|
766
|
+
Schema: Schema$I,
|
|
767
|
+
Template: Template$I,
|
|
768
|
+
registry_id: registry_id$I
|
|
769
769
|
};
|
|
770
770
|
|
|
771
|
-
const registry_id$
|
|
772
|
-
const Schema$
|
|
771
|
+
const registry_id$H = cooptypes.Cooperative.Registry.CoopenomicsAgreement.registry_id;
|
|
772
|
+
const Schema$H = {
|
|
773
773
|
type: "object",
|
|
774
774
|
properties: {
|
|
775
775
|
meta: IMetaJSONSchema,
|
|
@@ -780,15 +780,56 @@ const Schema$G = {
|
|
|
780
780
|
required: ["meta", "coop", "vars", "partner"],
|
|
781
781
|
additionalProperties: true
|
|
782
782
|
};
|
|
783
|
-
const Template$
|
|
783
|
+
const Template$H = {
|
|
784
784
|
title: cooptypes.Cooperative.Registry.CoopenomicsAgreement.title,
|
|
785
785
|
description: cooptypes.Cooperative.Registry.CoopenomicsAgreement.description,
|
|
786
|
-
model: Schema$
|
|
786
|
+
model: Schema$H,
|
|
787
787
|
context: cooptypes.Cooperative.Registry.CoopenomicsAgreement.context,
|
|
788
788
|
translations: cooptypes.Cooperative.Registry.CoopenomicsAgreement.translations
|
|
789
789
|
};
|
|
790
790
|
|
|
791
791
|
const CoopenomicsAgreement = {
|
|
792
|
+
__proto__: null,
|
|
793
|
+
Schema: Schema$H,
|
|
794
|
+
Template: Template$H,
|
|
795
|
+
registry_id: registry_id$H
|
|
796
|
+
};
|
|
797
|
+
|
|
798
|
+
const registry_id$G = cooptypes.Cooperative.Registry.ConvertToAxonStatement.registry_id;
|
|
799
|
+
const Schema$G = {
|
|
800
|
+
type: "object",
|
|
801
|
+
properties: {
|
|
802
|
+
meta: {
|
|
803
|
+
type: "object",
|
|
804
|
+
properties: {
|
|
805
|
+
...IMetaJSONSchema.properties
|
|
806
|
+
},
|
|
807
|
+
required: [...IMetaJSONSchema.required],
|
|
808
|
+
additionalProperties: true
|
|
809
|
+
},
|
|
810
|
+
vars: VarsSchema,
|
|
811
|
+
coop: CooperativeSchema,
|
|
812
|
+
commonUser: {
|
|
813
|
+
type: "object",
|
|
814
|
+
properties: {
|
|
815
|
+
...CommonUserSchema.properties
|
|
816
|
+
},
|
|
817
|
+
required: [...CommonUserSchema.required],
|
|
818
|
+
additionalProperties: true
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
required: ["meta", "vars", "coop", "commonUser"],
|
|
822
|
+
additionalProperties: true
|
|
823
|
+
};
|
|
824
|
+
const Template$G = {
|
|
825
|
+
title: cooptypes.Cooperative.Registry.ConvertToAxonStatement.title,
|
|
826
|
+
description: cooptypes.Cooperative.Registry.ConvertToAxonStatement.description,
|
|
827
|
+
model: Schema$G,
|
|
828
|
+
context: cooptypes.Cooperative.Registry.ConvertToAxonStatement.context,
|
|
829
|
+
translations: cooptypes.Cooperative.Registry.ConvertToAxonStatement.translations
|
|
830
|
+
};
|
|
831
|
+
|
|
832
|
+
const ConvertToAxonStatement = {
|
|
792
833
|
__proto__: null,
|
|
793
834
|
Schema: Schema$G,
|
|
794
835
|
Template: Template$G,
|
|
@@ -2253,6 +2294,7 @@ const Registry = {
|
|
|
2253
2294
|
3: PrivacyPolicy,
|
|
2254
2295
|
4: UserAgreement,
|
|
2255
2296
|
50: CoopenomicsAgreement,
|
|
2297
|
+
51: ConvertToAxonStatement,
|
|
2256
2298
|
100: ParticipantApplication,
|
|
2257
2299
|
101: SelectBranchStatement,
|
|
2258
2300
|
300: AnnualGeneralMeetingAgenda,
|
|
@@ -2694,6 +2736,69 @@ const meetTableFull = {
|
|
|
2694
2736
|
primary_key: "14",
|
|
2695
2737
|
value: meetValue
|
|
2696
2738
|
};
|
|
2739
|
+
const question1Value = {
|
|
2740
|
+
id: "1",
|
|
2741
|
+
number: "1",
|
|
2742
|
+
coopname: "voskhod",
|
|
2743
|
+
meet_id: "14",
|
|
2744
|
+
title: "\u0423\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 \u0433\u043E\u0434\u043E\u0432\u043E\u0433\u043E \u043E\u0442\u0447\u0451\u0442\u0430",
|
|
2745
|
+
context: "\u041E \u0434\u0435\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u043A\u043E\u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u0430 \u0437\u0430 2024 \u0433\u043E\u0434",
|
|
2746
|
+
decision: "\u0423\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C \u0433\u043E\u0434\u043E\u0432\u043E\u0439 \u043E\u0442\u0447\u0451\u0442 \u043A\u043E\u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u0430 \u0437\u0430 2024 \u0433\u043E\u0434",
|
|
2747
|
+
counter_votes_for: "0",
|
|
2748
|
+
counter_votes_against: "1",
|
|
2749
|
+
counter_votes_abstained: "0",
|
|
2750
|
+
voters_for: [],
|
|
2751
|
+
voters_against: ["individual"],
|
|
2752
|
+
voters_abstained: []
|
|
2753
|
+
};
|
|
2754
|
+
const question2Value = {
|
|
2755
|
+
id: "2",
|
|
2756
|
+
number: "2",
|
|
2757
|
+
coopname: "voskhod",
|
|
2758
|
+
meet_id: "14",
|
|
2759
|
+
title: "\u0418\u0437\u0431\u0440\u0430\u043D\u0438\u0435 \u0441\u043E\u0432\u0435\u0442\u0430 \u043A\u043E\u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u0430",
|
|
2760
|
+
context: "",
|
|
2761
|
+
decision: "\u0418\u0437\u0431\u0440\u0430\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u0441\u043E\u0441\u0442\u0430\u0432 \u0441\u043E\u0432\u0435\u0442\u0430 \u043A\u043E\u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u0430",
|
|
2762
|
+
counter_votes_for: "1",
|
|
2763
|
+
counter_votes_against: "0",
|
|
2764
|
+
counter_votes_abstained: "0",
|
|
2765
|
+
voters_for: ["individual"],
|
|
2766
|
+
voters_against: [],
|
|
2767
|
+
voters_abstained: []
|
|
2768
|
+
};
|
|
2769
|
+
const question1TableFull = {
|
|
2770
|
+
_id: "685949339bd56240ad71b350",
|
|
2771
|
+
chain_id: "f50256680336ee6daaeee93915b945c1166b5dfc98977adcb717403ae225c559",
|
|
2772
|
+
block_num: 1700166,
|
|
2773
|
+
block_id: "0019F1465FEF5180A7106C1F80FB651C0FC1B7596A83FA33E4774C525929A0E5",
|
|
2774
|
+
present: true,
|
|
2775
|
+
code: "meet",
|
|
2776
|
+
scope: "voskhod",
|
|
2777
|
+
table: "questions",
|
|
2778
|
+
primary_key: "1",
|
|
2779
|
+
value: question1Value
|
|
2780
|
+
};
|
|
2781
|
+
const question2TableFull = {
|
|
2782
|
+
_id: "685949339bd56240ad71b351",
|
|
2783
|
+
chain_id: "f50256680336ee6daaeee93915b945c1166b5dfc98977adcb717403ae225c559",
|
|
2784
|
+
block_num: 1700167,
|
|
2785
|
+
block_id: "0019F1475FEF5180A7106C1F80FB651C0FC1B7596A83FA33E4774C525929A0E6",
|
|
2786
|
+
present: true,
|
|
2787
|
+
code: "meet",
|
|
2788
|
+
scope: "voskhod",
|
|
2789
|
+
table: "questions",
|
|
2790
|
+
primary_key: "2",
|
|
2791
|
+
value: question2Value
|
|
2792
|
+
};
|
|
2793
|
+
const meetQuestionsMock = {
|
|
2794
|
+
code: "meet",
|
|
2795
|
+
table: "questions",
|
|
2796
|
+
value: { "value.meet_id": "14" },
|
|
2797
|
+
data: {
|
|
2798
|
+
results: [question1TableFull, question2TableFull]
|
|
2799
|
+
},
|
|
2800
|
+
match: (_url, _params) => false
|
|
2801
|
+
};
|
|
2697
2802
|
const meetTableMock = {
|
|
2698
2803
|
code: "meet",
|
|
2699
2804
|
table: "meets",
|
|
@@ -2707,7 +2812,10 @@ const meetTableMock = {
|
|
|
2707
2812
|
meetTableMock.match = function(url, params) {
|
|
2708
2813
|
return matchMock(this, url, params);
|
|
2709
2814
|
};
|
|
2710
|
-
|
|
2815
|
+
meetQuestionsMock.match = function(url, params) {
|
|
2816
|
+
return matchMock(this, url, params);
|
|
2817
|
+
};
|
|
2818
|
+
const tablesMocks = [meetTableMock, meetQuestionsMock];
|
|
2711
2819
|
|
|
2712
2820
|
const voteForAction = {
|
|
2713
2821
|
_id: "6852b0389bd56240ad71b225",
|
|
@@ -3236,7 +3344,7 @@ class PDFService {
|
|
|
3236
3344
|
|
|
3237
3345
|
const name = "@coopenomics/factory";
|
|
3238
3346
|
const type = "module";
|
|
3239
|
-
const version = "2025.11.
|
|
3347
|
+
const version = "2025.11.19-alpha-2";
|
|
3240
3348
|
const description = "";
|
|
3241
3349
|
const author = "Alex Ant <chairman.voskhod@gmail.com>";
|
|
3242
3350
|
const license = "MIT";
|
|
@@ -3286,7 +3394,7 @@ const dependencies = {
|
|
|
3286
3394
|
"ajv-formats": "^3.0.1",
|
|
3287
3395
|
"ajv-i18n": "^4.2.0",
|
|
3288
3396
|
axios: "^1.7.2",
|
|
3289
|
-
cooptypes: "2025.11.
|
|
3397
|
+
cooptypes: "2025.11.19-alpha-2",
|
|
3290
3398
|
dotenv: "^16.4.5",
|
|
3291
3399
|
"eosjs-ecc": "^4.0.7",
|
|
3292
3400
|
handlebars: "^4.7.8",
|
|
@@ -3317,7 +3425,7 @@ const devDependencies = {
|
|
|
3317
3425
|
vite: "^5.2.11",
|
|
3318
3426
|
vitest: "^1.6.0"
|
|
3319
3427
|
};
|
|
3320
|
-
const gitHead = "
|
|
3428
|
+
const gitHead = "7a75365d2f7de18945779d16ceeecfe5a9aa6c8c";
|
|
3321
3429
|
const packageJson = {
|
|
3322
3430
|
name: name,
|
|
3323
3431
|
type: type,
|
|
@@ -3498,8 +3606,16 @@ class DocFactory {
|
|
|
3498
3606
|
"data.coopname": coopname
|
|
3499
3607
|
})
|
|
3500
3608
|
})))?.results;
|
|
3501
|
-
|
|
3502
|
-
|
|
3609
|
+
const paramsss = JSON.stringify({
|
|
3610
|
+
"account": cooptypes.SovietContract.contractName.production,
|
|
3611
|
+
"name": cooptypes.SovietContract.Actions.Decisions.VoteFor.actionName,
|
|
3612
|
+
"receiver": cooptypes.SovietContract.contractName.production,
|
|
3613
|
+
"data.decision_id": String(decision_id),
|
|
3614
|
+
"data.coopname": coopname
|
|
3615
|
+
});
|
|
3616
|
+
if (!votes_for_actions || votes_for_actions.length === 0) {
|
|
3617
|
+
throw new Error(`\u0413\u043E\u043B\u043E\u0441\u0430 \u0437\u0430 \u0440\u0435\u0448\u0435\u043D\u0438\u0435 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u044B ${paramsss}`);
|
|
3618
|
+
}
|
|
3503
3619
|
const votes_against_actions = (await getFetch(`${getEnvVar("SIMPLE_EXPLORER_API")}/get-actions`, new URLSearchParams({
|
|
3504
3620
|
filter: JSON.stringify({
|
|
3505
3621
|
"account": cooptypes.SovietContract.contractName.production,
|
|
@@ -3838,6 +3954,33 @@ class DocFactory {
|
|
|
3838
3954
|
}
|
|
3839
3955
|
}
|
|
3840
3956
|
|
|
3957
|
+
let Factory$L = class Factory extends DocFactory {
|
|
3958
|
+
constructor(storage) {
|
|
3959
|
+
super(storage);
|
|
3960
|
+
}
|
|
3961
|
+
async generateDocument(data, options) {
|
|
3962
|
+
let template;
|
|
3963
|
+
if (process.env.SOURCE === "local") {
|
|
3964
|
+
template = Template$L;
|
|
3965
|
+
} else {
|
|
3966
|
+
template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$L, data.block_num);
|
|
3967
|
+
}
|
|
3968
|
+
const meta = await super.getMeta({ title: template.title, ...data });
|
|
3969
|
+
const coop = await super.getCooperative(data.coopname, data.block_num);
|
|
3970
|
+
const vars = await super.getVars(data.coopname, data.block_num);
|
|
3971
|
+
const user = await super.getUser(data.username, data.block_num);
|
|
3972
|
+
const combinedData = {
|
|
3973
|
+
meta,
|
|
3974
|
+
coop,
|
|
3975
|
+
vars
|
|
3976
|
+
};
|
|
3977
|
+
await super.validate(combinedData, template.model);
|
|
3978
|
+
const translation = template.translations[meta.lang];
|
|
3979
|
+
const document = await super.generatePDF(user.data, template.context, combinedData, translation, meta, options?.skip_save);
|
|
3980
|
+
return document;
|
|
3981
|
+
}
|
|
3982
|
+
};
|
|
3983
|
+
|
|
3841
3984
|
let Factory$K = class Factory extends DocFactory {
|
|
3842
3985
|
constructor(storage) {
|
|
3843
3986
|
super(storage);
|
|
@@ -3907,10 +4050,14 @@ let Factory$I = class Factory extends DocFactory {
|
|
|
3907
4050
|
const coop = await super.getCooperative(data.coopname, data.block_num);
|
|
3908
4051
|
const vars = await super.getVars(data.coopname, data.block_num);
|
|
3909
4052
|
const user = await super.getUser(data.username, data.block_num);
|
|
4053
|
+
const full_name = super.getFullName(user.data);
|
|
3910
4054
|
const combinedData = {
|
|
3911
4055
|
meta,
|
|
3912
4056
|
coop,
|
|
3913
|
-
vars
|
|
4057
|
+
vars,
|
|
4058
|
+
user: {
|
|
4059
|
+
full_name
|
|
4060
|
+
}
|
|
3914
4061
|
};
|
|
3915
4062
|
await super.validate(combinedData, template.model);
|
|
3916
4063
|
const translation = template.translations[meta.lang];
|
|
@@ -3933,15 +4080,13 @@ let Factory$H = class Factory extends DocFactory {
|
|
|
3933
4080
|
const meta = await super.getMeta({ title: template.title, ...data });
|
|
3934
4081
|
const coop = await super.getCooperative(data.coopname, data.block_num);
|
|
3935
4082
|
const vars = await super.getVars(data.coopname, data.block_num);
|
|
4083
|
+
const partner = await super.getOrganization(data.username, data.block_num);
|
|
3936
4084
|
const user = await super.getUser(data.username, data.block_num);
|
|
3937
|
-
const full_name = super.getFullName(user.data);
|
|
3938
4085
|
const combinedData = {
|
|
3939
4086
|
meta,
|
|
3940
4087
|
coop,
|
|
3941
4088
|
vars,
|
|
3942
|
-
|
|
3943
|
-
full_name
|
|
3944
|
-
}
|
|
4089
|
+
partner
|
|
3945
4090
|
};
|
|
3946
4091
|
await super.validate(combinedData, template.model);
|
|
3947
4092
|
const translation = template.translations[meta.lang];
|
|
@@ -3964,13 +4109,13 @@ let Factory$G = class Factory extends DocFactory {
|
|
|
3964
4109
|
const meta = await super.getMeta({ title: template.title, ...data });
|
|
3965
4110
|
const coop = await super.getCooperative(data.coopname, data.block_num);
|
|
3966
4111
|
const vars = await super.getVars(data.coopname, data.block_num);
|
|
3967
|
-
const partner = await super.getOrganization(data.username, data.block_num);
|
|
3968
4112
|
const user = await super.getUser(data.username, data.block_num);
|
|
4113
|
+
const commonUser = super.getCommonUser(user);
|
|
3969
4114
|
const combinedData = {
|
|
3970
4115
|
meta,
|
|
3971
4116
|
coop,
|
|
3972
4117
|
vars,
|
|
3973
|
-
|
|
4118
|
+
commonUser
|
|
3974
4119
|
};
|
|
3975
4120
|
await super.validate(combinedData, template.model);
|
|
3976
4121
|
const translation = template.translations[meta.lang];
|
|
@@ -5510,16 +5655,18 @@ class Generator {
|
|
|
5510
5655
|
this.storage = new MongoDBConnector(mongoUri);
|
|
5511
5656
|
this.searchService = new SearchService(this.storage);
|
|
5512
5657
|
this.factories = {
|
|
5513
|
-
[registry_id$
|
|
5658
|
+
[registry_id$L]: new Factory$L(this.storage),
|
|
5514
5659
|
// 1
|
|
5515
|
-
[registry_id$
|
|
5660
|
+
[registry_id$K]: new Factory$K(this.storage),
|
|
5516
5661
|
// 2
|
|
5517
|
-
[registry_id$
|
|
5662
|
+
[registry_id$J]: new Factory$J(this.storage),
|
|
5518
5663
|
// 3
|
|
5519
|
-
[registry_id$
|
|
5664
|
+
[registry_id$I]: new Factory$I(this.storage),
|
|
5520
5665
|
// 4
|
|
5521
|
-
[registry_id$
|
|
5666
|
+
[registry_id$H]: new Factory$H(this.storage),
|
|
5522
5667
|
// 50
|
|
5668
|
+
[registry_id$G]: new Factory$G(this.storage),
|
|
5669
|
+
// 51
|
|
5523
5670
|
[registry_id$F]: new Factory$E(this.storage),
|
|
5524
5671
|
// 100
|
|
5525
5672
|
[registry_id$D]: new Factory$F(this.storage),
|
|
@@ -5692,6 +5839,7 @@ exports.CapitalizationPropertyInvestDecision = CapitalizationPropertyInvestDecis
|
|
|
5692
5839
|
exports.CapitalizationPropertyInvestStatement = CapitalizationPropertyInvestStatement;
|
|
5693
5840
|
exports.CapitalizationToMainWalletConvertStatement = CapitalizationToMainWalletConvertStatement;
|
|
5694
5841
|
exports.CommonUserSchema = CommonUserSchema;
|
|
5842
|
+
exports.ConvertToAxonStatement = ConvertToAxonStatement;
|
|
5695
5843
|
exports.CoopenomicsAgreement = CoopenomicsAgreement;
|
|
5696
5844
|
exports.CooperativeSchema = CooperativeSchema;
|
|
5697
5845
|
exports.DecisionOfParticipantApplication = DecisionOfParticipantApplication;
|
package/dist/index.d.cts
CHANGED
|
@@ -2,53 +2,63 @@ import { JSONSchemaType } from 'ajv';
|
|
|
2
2
|
import { Cooperative, Interfaces, MeetContract } from 'cooptypes';
|
|
3
3
|
import { InsertOneResult, Filter, UpdateResult, Document, MongoClient, Db, Collection } from 'mongodb';
|
|
4
4
|
|
|
5
|
-
declare const registry_id$
|
|
6
|
-
type Action$
|
|
7
|
-
type Model$
|
|
5
|
+
declare const registry_id$L = 1;
|
|
6
|
+
type Action$L = Cooperative.Registry.WalletAgreement.Action;
|
|
7
|
+
type Model$L = Cooperative.Registry.WalletAgreement.Model;
|
|
8
|
+
declare const Schema$L: JSONSchemaType<Model$L>;
|
|
9
|
+
declare const Template$L: ITemplate<Model$L>;
|
|
10
|
+
|
|
11
|
+
declare namespace WalletAgreement {
|
|
12
|
+
export { type Action$L as Action, type Model$L as Model, Schema$L as Schema, Template$L as Template, registry_id$L as registry_id };
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare const registry_id$K = 2;
|
|
16
|
+
type Action$K = Cooperative.Registry.RegulationElectronicSignature.Action;
|
|
17
|
+
type Model$K = Cooperative.Registry.RegulationElectronicSignature.Model;
|
|
8
18
|
declare const Schema$K: JSONSchemaType<Model$K>;
|
|
9
19
|
declare const Template$K: ITemplate<Model$K>;
|
|
10
20
|
|
|
11
|
-
declare namespace
|
|
21
|
+
declare namespace RegulationElectronicSignaturet {
|
|
12
22
|
export { type Action$K as Action, type Model$K as Model, Schema$K as Schema, Template$K as Template, registry_id$K as registry_id };
|
|
13
23
|
}
|
|
14
24
|
|
|
15
|
-
declare const registry_id$J =
|
|
16
|
-
type Action$J = Cooperative.Registry.
|
|
17
|
-
type Model$J = Cooperative.Registry.
|
|
25
|
+
declare const registry_id$J = 3;
|
|
26
|
+
type Action$J = Cooperative.Registry.PrivacyPolicy.Action;
|
|
27
|
+
type Model$J = Cooperative.Registry.PrivacyPolicy.Model;
|
|
18
28
|
declare const Schema$J: JSONSchemaType<Model$J>;
|
|
19
29
|
declare const Template$J: ITemplate<Model$J>;
|
|
20
30
|
|
|
21
|
-
declare namespace
|
|
31
|
+
declare namespace PrivacyPolicy {
|
|
22
32
|
export { type Action$J as Action, type Model$J as Model, Schema$J as Schema, Template$J as Template, registry_id$J as registry_id };
|
|
23
33
|
}
|
|
24
34
|
|
|
25
|
-
declare const registry_id$I =
|
|
26
|
-
type Action$I = Cooperative.Registry.
|
|
27
|
-
type Model$I = Cooperative.Registry.
|
|
35
|
+
declare const registry_id$I = 4;
|
|
36
|
+
type Action$I = Cooperative.Registry.UserAgreement.Action;
|
|
37
|
+
type Model$I = Cooperative.Registry.UserAgreement.Model;
|
|
28
38
|
declare const Schema$I: JSONSchemaType<Model$I>;
|
|
29
39
|
declare const Template$I: ITemplate<Model$I>;
|
|
30
40
|
|
|
31
|
-
declare namespace
|
|
41
|
+
declare namespace UserAgreement {
|
|
32
42
|
export { type Action$I as Action, type Model$I as Model, Schema$I as Schema, Template$I as Template, registry_id$I as registry_id };
|
|
33
43
|
}
|
|
34
44
|
|
|
35
|
-
declare const registry_id$H =
|
|
36
|
-
type Action$H = Cooperative.Registry.
|
|
37
|
-
type Model$H = Cooperative.Registry.
|
|
45
|
+
declare const registry_id$H = 50;
|
|
46
|
+
type Action$H = Cooperative.Registry.CoopenomicsAgreement.Action;
|
|
47
|
+
type Model$H = Cooperative.Registry.CoopenomicsAgreement.Model;
|
|
38
48
|
declare const Schema$H: JSONSchemaType<Model$H>;
|
|
39
49
|
declare const Template$H: ITemplate<Model$H>;
|
|
40
50
|
|
|
41
|
-
declare namespace
|
|
51
|
+
declare namespace CoopenomicsAgreement {
|
|
42
52
|
export { type Action$H as Action, type Model$H as Model, Schema$H as Schema, Template$H as Template, registry_id$H as registry_id };
|
|
43
53
|
}
|
|
44
54
|
|
|
45
|
-
declare const registry_id$G =
|
|
46
|
-
type Action$G = Cooperative.Registry.
|
|
47
|
-
type Model$G = Cooperative.Registry.
|
|
55
|
+
declare const registry_id$G = 51;
|
|
56
|
+
type Action$G = Cooperative.Registry.ConvertToAxonStatement.Action;
|
|
57
|
+
type Model$G = Cooperative.Registry.ConvertToAxonStatement.Model;
|
|
48
58
|
declare const Schema$G: JSONSchemaType<Model$G>;
|
|
49
59
|
declare const Template$G: ITemplate<Model$G>;
|
|
50
60
|
|
|
51
|
-
declare namespace
|
|
61
|
+
declare namespace ConvertToAxonStatement {
|
|
52
62
|
export { type Action$G as Action, type Model$G as Model, Schema$G as Schema, Template$G as Template, registry_id$G as registry_id };
|
|
53
63
|
}
|
|
54
64
|
|
|
@@ -504,6 +514,7 @@ declare const Registry: {
|
|
|
504
514
|
3: typeof PrivacyPolicy;
|
|
505
515
|
4: typeof UserAgreement;
|
|
506
516
|
50: typeof CoopenomicsAgreement;
|
|
517
|
+
51: typeof ConvertToAxonStatement;
|
|
507
518
|
100: typeof ParticipantApplication;
|
|
508
519
|
101: typeof SelectBranchStatement;
|
|
509
520
|
300: typeof AnnualGeneralMeetingAgenda;
|
|
@@ -877,4 +888,4 @@ declare class Generator implements IGenerator {
|
|
|
877
888
|
search(query: string): Promise<ISearchResult[]>;
|
|
878
889
|
}
|
|
879
890
|
|
|
880
|
-
export { AgendaMeetSchema, AgendaQuestionSchema, AnnualGeneralMeetingAgenda, AnnualGeneralMeetingDecision, AnnualGeneralMeetingNotification, AnnualGeneralMeetingSovietDecision, AnnualGeneralMeetingVotingBallot, AppendixGenerationAgreement, AssetContributionAct, AssetContributionDecision, AssetContributionStatement, BankAccountSchema, CapitalizationAgreement, CapitalizationMoneyInvestStatement, CapitalizationPropertyInvestAct, CapitalizationPropertyInvestDecision, CapitalizationPropertyInvestStatement, CapitalizationToMainWalletConvertStatement, CommonUserSchema, CoopenomicsAgreement, CooperativeSchema, type Currency, DecisionOfParticipantApplication, ExpenseDecision, ExpenseStatement, FreeDecision, GenerationAgreement, GenerationMoneyInvestStatement, GenerationMoneyReturnUnusedStatement, GenerationPropertyInvestAct, GenerationPropertyInvestDecision, GenerationPropertyInvestStatement, GenerationToCapitalizationConvertStatement, GenerationToMainWalletConvertStatement, GenerationToProjectConvertStatement, Generator, GetLoanDecision, GetLoanStatement, type IBCState, type IBankAccount, type ICombinedData, type CooperativeData as ICooperativeData, type ExternalEntrepreneurData as IEntrepreneurData, type ExternalProjectData as IExternalProjectData, type IFilterActions, type IFilterDeltas, type IFilterDocuments, type IGenerate, type IGenerateAgreement, type IGenerateJoinCoop, type IGenerateJoinCoopDecision, type IGeneratedDocument, type IGenerationOptions, type IGenerator, type ExternalIndividualData as IIndividualData, type IMetaDocument, type IMetaDocumentPartial, type ExternalOrganizationData as IOrganizationData, type IPaymentData, type ISearchResult, type ITemplate, type ITranslations, type LangType, MeetPointSchema, MeetSchema, type NestedRecord, type Numbers, ParticipantApplication, PrivacyPolicy, ProjectFreeDecision, QuestionExtendedSchema, QuestionSchema, Registry, RegulationElectronicSignaturet as RegulationElectronicSignature, ResultContributionAct, ResultContributionDecision, ResultContributionStatement, ReturnByAssetAct, ReturnByAssetDecision, ReturnByAssetStatement, ReturnByMoney, ReturnByMoneyDecision, SelectBranchStatement, SosediAgreement, UserAgreement, VarsSchema, WalletAgreement, type dataTypes, decisionSchema, entrepreneurSchema, type externalDataTypes, type externalDataTypesArrays, individualSchema, type internalFilterTypes, organizationSchema, paymentMethodSchema };
|
|
891
|
+
export { AgendaMeetSchema, AgendaQuestionSchema, AnnualGeneralMeetingAgenda, AnnualGeneralMeetingDecision, AnnualGeneralMeetingNotification, AnnualGeneralMeetingSovietDecision, AnnualGeneralMeetingVotingBallot, AppendixGenerationAgreement, AssetContributionAct, AssetContributionDecision, AssetContributionStatement, BankAccountSchema, CapitalizationAgreement, CapitalizationMoneyInvestStatement, CapitalizationPropertyInvestAct, CapitalizationPropertyInvestDecision, CapitalizationPropertyInvestStatement, CapitalizationToMainWalletConvertStatement, CommonUserSchema, ConvertToAxonStatement, CoopenomicsAgreement, CooperativeSchema, type Currency, DecisionOfParticipantApplication, ExpenseDecision, ExpenseStatement, FreeDecision, GenerationAgreement, GenerationMoneyInvestStatement, GenerationMoneyReturnUnusedStatement, GenerationPropertyInvestAct, GenerationPropertyInvestDecision, GenerationPropertyInvestStatement, GenerationToCapitalizationConvertStatement, GenerationToMainWalletConvertStatement, GenerationToProjectConvertStatement, Generator, GetLoanDecision, GetLoanStatement, type IBCState, type IBankAccount, type ICombinedData, type CooperativeData as ICooperativeData, type ExternalEntrepreneurData as IEntrepreneurData, type ExternalProjectData as IExternalProjectData, type IFilterActions, type IFilterDeltas, type IFilterDocuments, type IGenerate, type IGenerateAgreement, type IGenerateJoinCoop, type IGenerateJoinCoopDecision, type IGeneratedDocument, type IGenerationOptions, type IGenerator, type ExternalIndividualData as IIndividualData, type IMetaDocument, type IMetaDocumentPartial, type ExternalOrganizationData as IOrganizationData, type IPaymentData, type ISearchResult, type ITemplate, type ITranslations, type LangType, MeetPointSchema, MeetSchema, type NestedRecord, type Numbers, ParticipantApplication, PrivacyPolicy, ProjectFreeDecision, QuestionExtendedSchema, QuestionSchema, Registry, RegulationElectronicSignaturet as RegulationElectronicSignature, ResultContributionAct, ResultContributionDecision, ResultContributionStatement, ReturnByAssetAct, ReturnByAssetDecision, ReturnByAssetStatement, ReturnByMoney, ReturnByMoneyDecision, SelectBranchStatement, SosediAgreement, UserAgreement, VarsSchema, WalletAgreement, type dataTypes, decisionSchema, entrepreneurSchema, type externalDataTypes, type externalDataTypesArrays, individualSchema, type internalFilterTypes, organizationSchema, paymentMethodSchema };
|
package/dist/index.d.mts
CHANGED
|
@@ -2,53 +2,63 @@ import { JSONSchemaType } from 'ajv';
|
|
|
2
2
|
import { Cooperative, Interfaces, MeetContract } from 'cooptypes';
|
|
3
3
|
import { InsertOneResult, Filter, UpdateResult, Document, MongoClient, Db, Collection } from 'mongodb';
|
|
4
4
|
|
|
5
|
-
declare const registry_id$
|
|
6
|
-
type Action$
|
|
7
|
-
type Model$
|
|
5
|
+
declare const registry_id$L = 1;
|
|
6
|
+
type Action$L = Cooperative.Registry.WalletAgreement.Action;
|
|
7
|
+
type Model$L = Cooperative.Registry.WalletAgreement.Model;
|
|
8
|
+
declare const Schema$L: JSONSchemaType<Model$L>;
|
|
9
|
+
declare const Template$L: ITemplate<Model$L>;
|
|
10
|
+
|
|
11
|
+
declare namespace WalletAgreement {
|
|
12
|
+
export { type Action$L as Action, type Model$L as Model, Schema$L as Schema, Template$L as Template, registry_id$L as registry_id };
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare const registry_id$K = 2;
|
|
16
|
+
type Action$K = Cooperative.Registry.RegulationElectronicSignature.Action;
|
|
17
|
+
type Model$K = Cooperative.Registry.RegulationElectronicSignature.Model;
|
|
8
18
|
declare const Schema$K: JSONSchemaType<Model$K>;
|
|
9
19
|
declare const Template$K: ITemplate<Model$K>;
|
|
10
20
|
|
|
11
|
-
declare namespace
|
|
21
|
+
declare namespace RegulationElectronicSignaturet {
|
|
12
22
|
export { type Action$K as Action, type Model$K as Model, Schema$K as Schema, Template$K as Template, registry_id$K as registry_id };
|
|
13
23
|
}
|
|
14
24
|
|
|
15
|
-
declare const registry_id$J =
|
|
16
|
-
type Action$J = Cooperative.Registry.
|
|
17
|
-
type Model$J = Cooperative.Registry.
|
|
25
|
+
declare const registry_id$J = 3;
|
|
26
|
+
type Action$J = Cooperative.Registry.PrivacyPolicy.Action;
|
|
27
|
+
type Model$J = Cooperative.Registry.PrivacyPolicy.Model;
|
|
18
28
|
declare const Schema$J: JSONSchemaType<Model$J>;
|
|
19
29
|
declare const Template$J: ITemplate<Model$J>;
|
|
20
30
|
|
|
21
|
-
declare namespace
|
|
31
|
+
declare namespace PrivacyPolicy {
|
|
22
32
|
export { type Action$J as Action, type Model$J as Model, Schema$J as Schema, Template$J as Template, registry_id$J as registry_id };
|
|
23
33
|
}
|
|
24
34
|
|
|
25
|
-
declare const registry_id$I =
|
|
26
|
-
type Action$I = Cooperative.Registry.
|
|
27
|
-
type Model$I = Cooperative.Registry.
|
|
35
|
+
declare const registry_id$I = 4;
|
|
36
|
+
type Action$I = Cooperative.Registry.UserAgreement.Action;
|
|
37
|
+
type Model$I = Cooperative.Registry.UserAgreement.Model;
|
|
28
38
|
declare const Schema$I: JSONSchemaType<Model$I>;
|
|
29
39
|
declare const Template$I: ITemplate<Model$I>;
|
|
30
40
|
|
|
31
|
-
declare namespace
|
|
41
|
+
declare namespace UserAgreement {
|
|
32
42
|
export { type Action$I as Action, type Model$I as Model, Schema$I as Schema, Template$I as Template, registry_id$I as registry_id };
|
|
33
43
|
}
|
|
34
44
|
|
|
35
|
-
declare const registry_id$H =
|
|
36
|
-
type Action$H = Cooperative.Registry.
|
|
37
|
-
type Model$H = Cooperative.Registry.
|
|
45
|
+
declare const registry_id$H = 50;
|
|
46
|
+
type Action$H = Cooperative.Registry.CoopenomicsAgreement.Action;
|
|
47
|
+
type Model$H = Cooperative.Registry.CoopenomicsAgreement.Model;
|
|
38
48
|
declare const Schema$H: JSONSchemaType<Model$H>;
|
|
39
49
|
declare const Template$H: ITemplate<Model$H>;
|
|
40
50
|
|
|
41
|
-
declare namespace
|
|
51
|
+
declare namespace CoopenomicsAgreement {
|
|
42
52
|
export { type Action$H as Action, type Model$H as Model, Schema$H as Schema, Template$H as Template, registry_id$H as registry_id };
|
|
43
53
|
}
|
|
44
54
|
|
|
45
|
-
declare const registry_id$G =
|
|
46
|
-
type Action$G = Cooperative.Registry.
|
|
47
|
-
type Model$G = Cooperative.Registry.
|
|
55
|
+
declare const registry_id$G = 51;
|
|
56
|
+
type Action$G = Cooperative.Registry.ConvertToAxonStatement.Action;
|
|
57
|
+
type Model$G = Cooperative.Registry.ConvertToAxonStatement.Model;
|
|
48
58
|
declare const Schema$G: JSONSchemaType<Model$G>;
|
|
49
59
|
declare const Template$G: ITemplate<Model$G>;
|
|
50
60
|
|
|
51
|
-
declare namespace
|
|
61
|
+
declare namespace ConvertToAxonStatement {
|
|
52
62
|
export { type Action$G as Action, type Model$G as Model, Schema$G as Schema, Template$G as Template, registry_id$G as registry_id };
|
|
53
63
|
}
|
|
54
64
|
|
|
@@ -504,6 +514,7 @@ declare const Registry: {
|
|
|
504
514
|
3: typeof PrivacyPolicy;
|
|
505
515
|
4: typeof UserAgreement;
|
|
506
516
|
50: typeof CoopenomicsAgreement;
|
|
517
|
+
51: typeof ConvertToAxonStatement;
|
|
507
518
|
100: typeof ParticipantApplication;
|
|
508
519
|
101: typeof SelectBranchStatement;
|
|
509
520
|
300: typeof AnnualGeneralMeetingAgenda;
|
|
@@ -877,4 +888,4 @@ declare class Generator implements IGenerator {
|
|
|
877
888
|
search(query: string): Promise<ISearchResult[]>;
|
|
878
889
|
}
|
|
879
890
|
|
|
880
|
-
export { AgendaMeetSchema, AgendaQuestionSchema, AnnualGeneralMeetingAgenda, AnnualGeneralMeetingDecision, AnnualGeneralMeetingNotification, AnnualGeneralMeetingSovietDecision, AnnualGeneralMeetingVotingBallot, AppendixGenerationAgreement, AssetContributionAct, AssetContributionDecision, AssetContributionStatement, BankAccountSchema, CapitalizationAgreement, CapitalizationMoneyInvestStatement, CapitalizationPropertyInvestAct, CapitalizationPropertyInvestDecision, CapitalizationPropertyInvestStatement, CapitalizationToMainWalletConvertStatement, CommonUserSchema, CoopenomicsAgreement, CooperativeSchema, type Currency, DecisionOfParticipantApplication, ExpenseDecision, ExpenseStatement, FreeDecision, GenerationAgreement, GenerationMoneyInvestStatement, GenerationMoneyReturnUnusedStatement, GenerationPropertyInvestAct, GenerationPropertyInvestDecision, GenerationPropertyInvestStatement, GenerationToCapitalizationConvertStatement, GenerationToMainWalletConvertStatement, GenerationToProjectConvertStatement, Generator, GetLoanDecision, GetLoanStatement, type IBCState, type IBankAccount, type ICombinedData, type CooperativeData as ICooperativeData, type ExternalEntrepreneurData as IEntrepreneurData, type ExternalProjectData as IExternalProjectData, type IFilterActions, type IFilterDeltas, type IFilterDocuments, type IGenerate, type IGenerateAgreement, type IGenerateJoinCoop, type IGenerateJoinCoopDecision, type IGeneratedDocument, type IGenerationOptions, type IGenerator, type ExternalIndividualData as IIndividualData, type IMetaDocument, type IMetaDocumentPartial, type ExternalOrganizationData as IOrganizationData, type IPaymentData, type ISearchResult, type ITemplate, type ITranslations, type LangType, MeetPointSchema, MeetSchema, type NestedRecord, type Numbers, ParticipantApplication, PrivacyPolicy, ProjectFreeDecision, QuestionExtendedSchema, QuestionSchema, Registry, RegulationElectronicSignaturet as RegulationElectronicSignature, ResultContributionAct, ResultContributionDecision, ResultContributionStatement, ReturnByAssetAct, ReturnByAssetDecision, ReturnByAssetStatement, ReturnByMoney, ReturnByMoneyDecision, SelectBranchStatement, SosediAgreement, UserAgreement, VarsSchema, WalletAgreement, type dataTypes, decisionSchema, entrepreneurSchema, type externalDataTypes, type externalDataTypesArrays, individualSchema, type internalFilterTypes, organizationSchema, paymentMethodSchema };
|
|
891
|
+
export { AgendaMeetSchema, AgendaQuestionSchema, AnnualGeneralMeetingAgenda, AnnualGeneralMeetingDecision, AnnualGeneralMeetingNotification, AnnualGeneralMeetingSovietDecision, AnnualGeneralMeetingVotingBallot, AppendixGenerationAgreement, AssetContributionAct, AssetContributionDecision, AssetContributionStatement, BankAccountSchema, CapitalizationAgreement, CapitalizationMoneyInvestStatement, CapitalizationPropertyInvestAct, CapitalizationPropertyInvestDecision, CapitalizationPropertyInvestStatement, CapitalizationToMainWalletConvertStatement, CommonUserSchema, ConvertToAxonStatement, CoopenomicsAgreement, CooperativeSchema, type Currency, DecisionOfParticipantApplication, ExpenseDecision, ExpenseStatement, FreeDecision, GenerationAgreement, GenerationMoneyInvestStatement, GenerationMoneyReturnUnusedStatement, GenerationPropertyInvestAct, GenerationPropertyInvestDecision, GenerationPropertyInvestStatement, GenerationToCapitalizationConvertStatement, GenerationToMainWalletConvertStatement, GenerationToProjectConvertStatement, Generator, GetLoanDecision, GetLoanStatement, type IBCState, type IBankAccount, type ICombinedData, type CooperativeData as ICooperativeData, type ExternalEntrepreneurData as IEntrepreneurData, type ExternalProjectData as IExternalProjectData, type IFilterActions, type IFilterDeltas, type IFilterDocuments, type IGenerate, type IGenerateAgreement, type IGenerateJoinCoop, type IGenerateJoinCoopDecision, type IGeneratedDocument, type IGenerationOptions, type IGenerator, type ExternalIndividualData as IIndividualData, type IMetaDocument, type IMetaDocumentPartial, type ExternalOrganizationData as IOrganizationData, type IPaymentData, type ISearchResult, type ITemplate, type ITranslations, type LangType, MeetPointSchema, MeetSchema, type NestedRecord, type Numbers, ParticipantApplication, PrivacyPolicy, ProjectFreeDecision, QuestionExtendedSchema, QuestionSchema, Registry, RegulationElectronicSignaturet as RegulationElectronicSignature, ResultContributionAct, ResultContributionDecision, ResultContributionStatement, ReturnByAssetAct, ReturnByAssetDecision, ReturnByAssetStatement, ReturnByMoney, ReturnByMoneyDecision, SelectBranchStatement, SosediAgreement, UserAgreement, VarsSchema, WalletAgreement, type dataTypes, decisionSchema, entrepreneurSchema, type externalDataTypes, type externalDataTypesArrays, individualSchema, type internalFilterTypes, organizationSchema, paymentMethodSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,53 +2,63 @@ import { JSONSchemaType } from 'ajv';
|
|
|
2
2
|
import { Cooperative, Interfaces, MeetContract } from 'cooptypes';
|
|
3
3
|
import { InsertOneResult, Filter, UpdateResult, Document, MongoClient, Db, Collection } from 'mongodb';
|
|
4
4
|
|
|
5
|
-
declare const registry_id$
|
|
6
|
-
type Action$
|
|
7
|
-
type Model$
|
|
5
|
+
declare const registry_id$L = 1;
|
|
6
|
+
type Action$L = Cooperative.Registry.WalletAgreement.Action;
|
|
7
|
+
type Model$L = Cooperative.Registry.WalletAgreement.Model;
|
|
8
|
+
declare const Schema$L: JSONSchemaType<Model$L>;
|
|
9
|
+
declare const Template$L: ITemplate<Model$L>;
|
|
10
|
+
|
|
11
|
+
declare namespace WalletAgreement {
|
|
12
|
+
export { type Action$L as Action, type Model$L as Model, Schema$L as Schema, Template$L as Template, registry_id$L as registry_id };
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare const registry_id$K = 2;
|
|
16
|
+
type Action$K = Cooperative.Registry.RegulationElectronicSignature.Action;
|
|
17
|
+
type Model$K = Cooperative.Registry.RegulationElectronicSignature.Model;
|
|
8
18
|
declare const Schema$K: JSONSchemaType<Model$K>;
|
|
9
19
|
declare const Template$K: ITemplate<Model$K>;
|
|
10
20
|
|
|
11
|
-
declare namespace
|
|
21
|
+
declare namespace RegulationElectronicSignaturet {
|
|
12
22
|
export { type Action$K as Action, type Model$K as Model, Schema$K as Schema, Template$K as Template, registry_id$K as registry_id };
|
|
13
23
|
}
|
|
14
24
|
|
|
15
|
-
declare const registry_id$J =
|
|
16
|
-
type Action$J = Cooperative.Registry.
|
|
17
|
-
type Model$J = Cooperative.Registry.
|
|
25
|
+
declare const registry_id$J = 3;
|
|
26
|
+
type Action$J = Cooperative.Registry.PrivacyPolicy.Action;
|
|
27
|
+
type Model$J = Cooperative.Registry.PrivacyPolicy.Model;
|
|
18
28
|
declare const Schema$J: JSONSchemaType<Model$J>;
|
|
19
29
|
declare const Template$J: ITemplate<Model$J>;
|
|
20
30
|
|
|
21
|
-
declare namespace
|
|
31
|
+
declare namespace PrivacyPolicy {
|
|
22
32
|
export { type Action$J as Action, type Model$J as Model, Schema$J as Schema, Template$J as Template, registry_id$J as registry_id };
|
|
23
33
|
}
|
|
24
34
|
|
|
25
|
-
declare const registry_id$I =
|
|
26
|
-
type Action$I = Cooperative.Registry.
|
|
27
|
-
type Model$I = Cooperative.Registry.
|
|
35
|
+
declare const registry_id$I = 4;
|
|
36
|
+
type Action$I = Cooperative.Registry.UserAgreement.Action;
|
|
37
|
+
type Model$I = Cooperative.Registry.UserAgreement.Model;
|
|
28
38
|
declare const Schema$I: JSONSchemaType<Model$I>;
|
|
29
39
|
declare const Template$I: ITemplate<Model$I>;
|
|
30
40
|
|
|
31
|
-
declare namespace
|
|
41
|
+
declare namespace UserAgreement {
|
|
32
42
|
export { type Action$I as Action, type Model$I as Model, Schema$I as Schema, Template$I as Template, registry_id$I as registry_id };
|
|
33
43
|
}
|
|
34
44
|
|
|
35
|
-
declare const registry_id$H =
|
|
36
|
-
type Action$H = Cooperative.Registry.
|
|
37
|
-
type Model$H = Cooperative.Registry.
|
|
45
|
+
declare const registry_id$H = 50;
|
|
46
|
+
type Action$H = Cooperative.Registry.CoopenomicsAgreement.Action;
|
|
47
|
+
type Model$H = Cooperative.Registry.CoopenomicsAgreement.Model;
|
|
38
48
|
declare const Schema$H: JSONSchemaType<Model$H>;
|
|
39
49
|
declare const Template$H: ITemplate<Model$H>;
|
|
40
50
|
|
|
41
|
-
declare namespace
|
|
51
|
+
declare namespace CoopenomicsAgreement {
|
|
42
52
|
export { type Action$H as Action, type Model$H as Model, Schema$H as Schema, Template$H as Template, registry_id$H as registry_id };
|
|
43
53
|
}
|
|
44
54
|
|
|
45
|
-
declare const registry_id$G =
|
|
46
|
-
type Action$G = Cooperative.Registry.
|
|
47
|
-
type Model$G = Cooperative.Registry.
|
|
55
|
+
declare const registry_id$G = 51;
|
|
56
|
+
type Action$G = Cooperative.Registry.ConvertToAxonStatement.Action;
|
|
57
|
+
type Model$G = Cooperative.Registry.ConvertToAxonStatement.Model;
|
|
48
58
|
declare const Schema$G: JSONSchemaType<Model$G>;
|
|
49
59
|
declare const Template$G: ITemplate<Model$G>;
|
|
50
60
|
|
|
51
|
-
declare namespace
|
|
61
|
+
declare namespace ConvertToAxonStatement {
|
|
52
62
|
export { type Action$G as Action, type Model$G as Model, Schema$G as Schema, Template$G as Template, registry_id$G as registry_id };
|
|
53
63
|
}
|
|
54
64
|
|
|
@@ -504,6 +514,7 @@ declare const Registry: {
|
|
|
504
514
|
3: typeof PrivacyPolicy;
|
|
505
515
|
4: typeof UserAgreement;
|
|
506
516
|
50: typeof CoopenomicsAgreement;
|
|
517
|
+
51: typeof ConvertToAxonStatement;
|
|
507
518
|
100: typeof ParticipantApplication;
|
|
508
519
|
101: typeof SelectBranchStatement;
|
|
509
520
|
300: typeof AnnualGeneralMeetingAgenda;
|
|
@@ -877,4 +888,4 @@ declare class Generator implements IGenerator {
|
|
|
877
888
|
search(query: string): Promise<ISearchResult[]>;
|
|
878
889
|
}
|
|
879
890
|
|
|
880
|
-
export { AgendaMeetSchema, AgendaQuestionSchema, AnnualGeneralMeetingAgenda, AnnualGeneralMeetingDecision, AnnualGeneralMeetingNotification, AnnualGeneralMeetingSovietDecision, AnnualGeneralMeetingVotingBallot, AppendixGenerationAgreement, AssetContributionAct, AssetContributionDecision, AssetContributionStatement, BankAccountSchema, CapitalizationAgreement, CapitalizationMoneyInvestStatement, CapitalizationPropertyInvestAct, CapitalizationPropertyInvestDecision, CapitalizationPropertyInvestStatement, CapitalizationToMainWalletConvertStatement, CommonUserSchema, CoopenomicsAgreement, CooperativeSchema, type Currency, DecisionOfParticipantApplication, ExpenseDecision, ExpenseStatement, FreeDecision, GenerationAgreement, GenerationMoneyInvestStatement, GenerationMoneyReturnUnusedStatement, GenerationPropertyInvestAct, GenerationPropertyInvestDecision, GenerationPropertyInvestStatement, GenerationToCapitalizationConvertStatement, GenerationToMainWalletConvertStatement, GenerationToProjectConvertStatement, Generator, GetLoanDecision, GetLoanStatement, type IBCState, type IBankAccount, type ICombinedData, type CooperativeData as ICooperativeData, type ExternalEntrepreneurData as IEntrepreneurData, type ExternalProjectData as IExternalProjectData, type IFilterActions, type IFilterDeltas, type IFilterDocuments, type IGenerate, type IGenerateAgreement, type IGenerateJoinCoop, type IGenerateJoinCoopDecision, type IGeneratedDocument, type IGenerationOptions, type IGenerator, type ExternalIndividualData as IIndividualData, type IMetaDocument, type IMetaDocumentPartial, type ExternalOrganizationData as IOrganizationData, type IPaymentData, type ISearchResult, type ITemplate, type ITranslations, type LangType, MeetPointSchema, MeetSchema, type NestedRecord, type Numbers, ParticipantApplication, PrivacyPolicy, ProjectFreeDecision, QuestionExtendedSchema, QuestionSchema, Registry, RegulationElectronicSignaturet as RegulationElectronicSignature, ResultContributionAct, ResultContributionDecision, ResultContributionStatement, ReturnByAssetAct, ReturnByAssetDecision, ReturnByAssetStatement, ReturnByMoney, ReturnByMoneyDecision, SelectBranchStatement, SosediAgreement, UserAgreement, VarsSchema, WalletAgreement, type dataTypes, decisionSchema, entrepreneurSchema, type externalDataTypes, type externalDataTypesArrays, individualSchema, type internalFilterTypes, organizationSchema, paymentMethodSchema };
|
|
891
|
+
export { AgendaMeetSchema, AgendaQuestionSchema, AnnualGeneralMeetingAgenda, AnnualGeneralMeetingDecision, AnnualGeneralMeetingNotification, AnnualGeneralMeetingSovietDecision, AnnualGeneralMeetingVotingBallot, AppendixGenerationAgreement, AssetContributionAct, AssetContributionDecision, AssetContributionStatement, BankAccountSchema, CapitalizationAgreement, CapitalizationMoneyInvestStatement, CapitalizationPropertyInvestAct, CapitalizationPropertyInvestDecision, CapitalizationPropertyInvestStatement, CapitalizationToMainWalletConvertStatement, CommonUserSchema, ConvertToAxonStatement, CoopenomicsAgreement, CooperativeSchema, type Currency, DecisionOfParticipantApplication, ExpenseDecision, ExpenseStatement, FreeDecision, GenerationAgreement, GenerationMoneyInvestStatement, GenerationMoneyReturnUnusedStatement, GenerationPropertyInvestAct, GenerationPropertyInvestDecision, GenerationPropertyInvestStatement, GenerationToCapitalizationConvertStatement, GenerationToMainWalletConvertStatement, GenerationToProjectConvertStatement, Generator, GetLoanDecision, GetLoanStatement, type IBCState, type IBankAccount, type ICombinedData, type CooperativeData as ICooperativeData, type ExternalEntrepreneurData as IEntrepreneurData, type ExternalProjectData as IExternalProjectData, type IFilterActions, type IFilterDeltas, type IFilterDocuments, type IGenerate, type IGenerateAgreement, type IGenerateJoinCoop, type IGenerateJoinCoopDecision, type IGeneratedDocument, type IGenerationOptions, type IGenerator, type ExternalIndividualData as IIndividualData, type IMetaDocument, type IMetaDocumentPartial, type ExternalOrganizationData as IOrganizationData, type IPaymentData, type ISearchResult, type ITemplate, type ITranslations, type LangType, MeetPointSchema, MeetSchema, type NestedRecord, type Numbers, ParticipantApplication, PrivacyPolicy, ProjectFreeDecision, QuestionExtendedSchema, QuestionSchema, Registry, RegulationElectronicSignaturet as RegulationElectronicSignature, ResultContributionAct, ResultContributionDecision, ResultContributionStatement, ReturnByAssetAct, ReturnByAssetDecision, ReturnByAssetStatement, ReturnByMoney, ReturnByMoneyDecision, SelectBranchStatement, SosediAgreement, UserAgreement, VarsSchema, WalletAgreement, type dataTypes, decisionSchema, entrepreneurSchema, type externalDataTypes, type externalDataTypesArrays, individualSchema, type internalFilterTypes, organizationSchema, paymentMethodSchema };
|
package/dist/index.mjs
CHANGED
|
@@ -644,8 +644,8 @@ const AgendaQuestionSchema = {
|
|
|
644
644
|
additionalProperties: true
|
|
645
645
|
};
|
|
646
646
|
|
|
647
|
-
const registry_id$
|
|
648
|
-
const Schema$
|
|
647
|
+
const registry_id$L = Cooperative$1.Registry.WalletAgreement.registry_id;
|
|
648
|
+
const Schema$L = {
|
|
649
649
|
type: "object",
|
|
650
650
|
properties: {
|
|
651
651
|
meta: IMetaJSONSchema,
|
|
@@ -655,23 +655,23 @@ const Schema$K = {
|
|
|
655
655
|
required: ["meta", "coop", "vars"],
|
|
656
656
|
additionalProperties: true
|
|
657
657
|
};
|
|
658
|
-
const Template$
|
|
658
|
+
const Template$L = {
|
|
659
659
|
title: Cooperative$1.Registry.WalletAgreement.title,
|
|
660
660
|
description: Cooperative$1.Registry.WalletAgreement.description,
|
|
661
|
-
model: Schema$
|
|
661
|
+
model: Schema$L,
|
|
662
662
|
context: Cooperative$1.Registry.WalletAgreement.context,
|
|
663
663
|
translations: Cooperative$1.Registry.WalletAgreement.translations
|
|
664
664
|
};
|
|
665
665
|
|
|
666
666
|
const WalletAgreement = {
|
|
667
667
|
__proto__: null,
|
|
668
|
-
Schema: Schema$
|
|
669
|
-
Template: Template$
|
|
670
|
-
registry_id: registry_id$
|
|
668
|
+
Schema: Schema$L,
|
|
669
|
+
Template: Template$L,
|
|
670
|
+
registry_id: registry_id$L
|
|
671
671
|
};
|
|
672
672
|
|
|
673
|
-
const registry_id$
|
|
674
|
-
const Schema$
|
|
673
|
+
const registry_id$K = Cooperative$1.Registry.RegulationElectronicSignature.registry_id;
|
|
674
|
+
const Schema$K = {
|
|
675
675
|
type: "object",
|
|
676
676
|
properties: {
|
|
677
677
|
meta: IMetaJSONSchema,
|
|
@@ -681,23 +681,23 @@ const Schema$J = {
|
|
|
681
681
|
required: ["meta", "coop", "vars"],
|
|
682
682
|
additionalProperties: true
|
|
683
683
|
};
|
|
684
|
-
const Template$
|
|
684
|
+
const Template$K = {
|
|
685
685
|
title: Cooperative$1.Registry.RegulationElectronicSignature.title,
|
|
686
686
|
description: Cooperative$1.Registry.RegulationElectronicSignature.description,
|
|
687
|
-
model: Schema$
|
|
687
|
+
model: Schema$K,
|
|
688
688
|
context: Cooperative$1.Registry.RegulationElectronicSignature.context,
|
|
689
689
|
translations: Cooperative$1.Registry.RegulationElectronicSignature.translations
|
|
690
690
|
};
|
|
691
691
|
|
|
692
692
|
const RegulationElectronicSignaturet = {
|
|
693
693
|
__proto__: null,
|
|
694
|
-
Schema: Schema$
|
|
695
|
-
Template: Template$
|
|
696
|
-
registry_id: registry_id$
|
|
694
|
+
Schema: Schema$K,
|
|
695
|
+
Template: Template$K,
|
|
696
|
+
registry_id: registry_id$K
|
|
697
697
|
};
|
|
698
698
|
|
|
699
|
-
const registry_id$
|
|
700
|
-
const Schema$
|
|
699
|
+
const registry_id$J = Cooperative$1.Registry.PrivacyPolicy.registry_id;
|
|
700
|
+
const Schema$J = {
|
|
701
701
|
type: "object",
|
|
702
702
|
properties: {
|
|
703
703
|
meta: IMetaJSONSchema,
|
|
@@ -707,23 +707,23 @@ const Schema$I = {
|
|
|
707
707
|
required: ["meta", "coop", "vars"],
|
|
708
708
|
additionalProperties: true
|
|
709
709
|
};
|
|
710
|
-
const Template$
|
|
710
|
+
const Template$J = {
|
|
711
711
|
title: Cooperative$1.Registry.PrivacyPolicy.title,
|
|
712
712
|
description: Cooperative$1.Registry.PrivacyPolicy.description,
|
|
713
|
-
model: Schema$
|
|
713
|
+
model: Schema$J,
|
|
714
714
|
context: Cooperative$1.Registry.PrivacyPolicy.context,
|
|
715
715
|
translations: Cooperative$1.Registry.PrivacyPolicy.translations
|
|
716
716
|
};
|
|
717
717
|
|
|
718
718
|
const PrivacyPolicy = {
|
|
719
719
|
__proto__: null,
|
|
720
|
-
Schema: Schema$
|
|
721
|
-
Template: Template$
|
|
722
|
-
registry_id: registry_id$
|
|
720
|
+
Schema: Schema$J,
|
|
721
|
+
Template: Template$J,
|
|
722
|
+
registry_id: registry_id$J
|
|
723
723
|
};
|
|
724
724
|
|
|
725
|
-
const registry_id$
|
|
726
|
-
const Schema$
|
|
725
|
+
const registry_id$I = Cooperative$1.Registry.UserAgreement.registry_id;
|
|
726
|
+
const Schema$I = {
|
|
727
727
|
type: "object",
|
|
728
728
|
properties: {
|
|
729
729
|
meta: IMetaJSONSchema,
|
|
@@ -740,23 +740,23 @@ const Schema$H = {
|
|
|
740
740
|
required: ["meta", "coop", "vars", "user"],
|
|
741
741
|
additionalProperties: true
|
|
742
742
|
};
|
|
743
|
-
const Template$
|
|
743
|
+
const Template$I = {
|
|
744
744
|
title: Cooperative$1.Registry.UserAgreement.title,
|
|
745
745
|
description: Cooperative$1.Registry.UserAgreement.description,
|
|
746
|
-
model: Schema$
|
|
746
|
+
model: Schema$I,
|
|
747
747
|
context: Cooperative$1.Registry.UserAgreement.context,
|
|
748
748
|
translations: Cooperative$1.Registry.UserAgreement.translations
|
|
749
749
|
};
|
|
750
750
|
|
|
751
751
|
const UserAgreement = {
|
|
752
752
|
__proto__: null,
|
|
753
|
-
Schema: Schema$
|
|
754
|
-
Template: Template$
|
|
755
|
-
registry_id: registry_id$
|
|
753
|
+
Schema: Schema$I,
|
|
754
|
+
Template: Template$I,
|
|
755
|
+
registry_id: registry_id$I
|
|
756
756
|
};
|
|
757
757
|
|
|
758
|
-
const registry_id$
|
|
759
|
-
const Schema$
|
|
758
|
+
const registry_id$H = Cooperative$1.Registry.CoopenomicsAgreement.registry_id;
|
|
759
|
+
const Schema$H = {
|
|
760
760
|
type: "object",
|
|
761
761
|
properties: {
|
|
762
762
|
meta: IMetaJSONSchema,
|
|
@@ -767,15 +767,56 @@ const Schema$G = {
|
|
|
767
767
|
required: ["meta", "coop", "vars", "partner"],
|
|
768
768
|
additionalProperties: true
|
|
769
769
|
};
|
|
770
|
-
const Template$
|
|
770
|
+
const Template$H = {
|
|
771
771
|
title: Cooperative$1.Registry.CoopenomicsAgreement.title,
|
|
772
772
|
description: Cooperative$1.Registry.CoopenomicsAgreement.description,
|
|
773
|
-
model: Schema$
|
|
773
|
+
model: Schema$H,
|
|
774
774
|
context: Cooperative$1.Registry.CoopenomicsAgreement.context,
|
|
775
775
|
translations: Cooperative$1.Registry.CoopenomicsAgreement.translations
|
|
776
776
|
};
|
|
777
777
|
|
|
778
778
|
const CoopenomicsAgreement = {
|
|
779
|
+
__proto__: null,
|
|
780
|
+
Schema: Schema$H,
|
|
781
|
+
Template: Template$H,
|
|
782
|
+
registry_id: registry_id$H
|
|
783
|
+
};
|
|
784
|
+
|
|
785
|
+
const registry_id$G = Cooperative$1.Registry.ConvertToAxonStatement.registry_id;
|
|
786
|
+
const Schema$G = {
|
|
787
|
+
type: "object",
|
|
788
|
+
properties: {
|
|
789
|
+
meta: {
|
|
790
|
+
type: "object",
|
|
791
|
+
properties: {
|
|
792
|
+
...IMetaJSONSchema.properties
|
|
793
|
+
},
|
|
794
|
+
required: [...IMetaJSONSchema.required],
|
|
795
|
+
additionalProperties: true
|
|
796
|
+
},
|
|
797
|
+
vars: VarsSchema,
|
|
798
|
+
coop: CooperativeSchema,
|
|
799
|
+
commonUser: {
|
|
800
|
+
type: "object",
|
|
801
|
+
properties: {
|
|
802
|
+
...CommonUserSchema.properties
|
|
803
|
+
},
|
|
804
|
+
required: [...CommonUserSchema.required],
|
|
805
|
+
additionalProperties: true
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
required: ["meta", "vars", "coop", "commonUser"],
|
|
809
|
+
additionalProperties: true
|
|
810
|
+
};
|
|
811
|
+
const Template$G = {
|
|
812
|
+
title: Cooperative$1.Registry.ConvertToAxonStatement.title,
|
|
813
|
+
description: Cooperative$1.Registry.ConvertToAxonStatement.description,
|
|
814
|
+
model: Schema$G,
|
|
815
|
+
context: Cooperative$1.Registry.ConvertToAxonStatement.context,
|
|
816
|
+
translations: Cooperative$1.Registry.ConvertToAxonStatement.translations
|
|
817
|
+
};
|
|
818
|
+
|
|
819
|
+
const ConvertToAxonStatement = {
|
|
779
820
|
__proto__: null,
|
|
780
821
|
Schema: Schema$G,
|
|
781
822
|
Template: Template$G,
|
|
@@ -2240,6 +2281,7 @@ const Registry = {
|
|
|
2240
2281
|
3: PrivacyPolicy,
|
|
2241
2282
|
4: UserAgreement,
|
|
2242
2283
|
50: CoopenomicsAgreement,
|
|
2284
|
+
51: ConvertToAxonStatement,
|
|
2243
2285
|
100: ParticipantApplication,
|
|
2244
2286
|
101: SelectBranchStatement,
|
|
2245
2287
|
300: AnnualGeneralMeetingAgenda,
|
|
@@ -2681,6 +2723,69 @@ const meetTableFull = {
|
|
|
2681
2723
|
primary_key: "14",
|
|
2682
2724
|
value: meetValue
|
|
2683
2725
|
};
|
|
2726
|
+
const question1Value = {
|
|
2727
|
+
id: "1",
|
|
2728
|
+
number: "1",
|
|
2729
|
+
coopname: "voskhod",
|
|
2730
|
+
meet_id: "14",
|
|
2731
|
+
title: "\u0423\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 \u0433\u043E\u0434\u043E\u0432\u043E\u0433\u043E \u043E\u0442\u0447\u0451\u0442\u0430",
|
|
2732
|
+
context: "\u041E \u0434\u0435\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u043A\u043E\u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u0430 \u0437\u0430 2024 \u0433\u043E\u0434",
|
|
2733
|
+
decision: "\u0423\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C \u0433\u043E\u0434\u043E\u0432\u043E\u0439 \u043E\u0442\u0447\u0451\u0442 \u043A\u043E\u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u0430 \u0437\u0430 2024 \u0433\u043E\u0434",
|
|
2734
|
+
counter_votes_for: "0",
|
|
2735
|
+
counter_votes_against: "1",
|
|
2736
|
+
counter_votes_abstained: "0",
|
|
2737
|
+
voters_for: [],
|
|
2738
|
+
voters_against: ["individual"],
|
|
2739
|
+
voters_abstained: []
|
|
2740
|
+
};
|
|
2741
|
+
const question2Value = {
|
|
2742
|
+
id: "2",
|
|
2743
|
+
number: "2",
|
|
2744
|
+
coopname: "voskhod",
|
|
2745
|
+
meet_id: "14",
|
|
2746
|
+
title: "\u0418\u0437\u0431\u0440\u0430\u043D\u0438\u0435 \u0441\u043E\u0432\u0435\u0442\u0430 \u043A\u043E\u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u0430",
|
|
2747
|
+
context: "",
|
|
2748
|
+
decision: "\u0418\u0437\u0431\u0440\u0430\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u0441\u043E\u0441\u0442\u0430\u0432 \u0441\u043E\u0432\u0435\u0442\u0430 \u043A\u043E\u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u0430",
|
|
2749
|
+
counter_votes_for: "1",
|
|
2750
|
+
counter_votes_against: "0",
|
|
2751
|
+
counter_votes_abstained: "0",
|
|
2752
|
+
voters_for: ["individual"],
|
|
2753
|
+
voters_against: [],
|
|
2754
|
+
voters_abstained: []
|
|
2755
|
+
};
|
|
2756
|
+
const question1TableFull = {
|
|
2757
|
+
_id: "685949339bd56240ad71b350",
|
|
2758
|
+
chain_id: "f50256680336ee6daaeee93915b945c1166b5dfc98977adcb717403ae225c559",
|
|
2759
|
+
block_num: 1700166,
|
|
2760
|
+
block_id: "0019F1465FEF5180A7106C1F80FB651C0FC1B7596A83FA33E4774C525929A0E5",
|
|
2761
|
+
present: true,
|
|
2762
|
+
code: "meet",
|
|
2763
|
+
scope: "voskhod",
|
|
2764
|
+
table: "questions",
|
|
2765
|
+
primary_key: "1",
|
|
2766
|
+
value: question1Value
|
|
2767
|
+
};
|
|
2768
|
+
const question2TableFull = {
|
|
2769
|
+
_id: "685949339bd56240ad71b351",
|
|
2770
|
+
chain_id: "f50256680336ee6daaeee93915b945c1166b5dfc98977adcb717403ae225c559",
|
|
2771
|
+
block_num: 1700167,
|
|
2772
|
+
block_id: "0019F1475FEF5180A7106C1F80FB651C0FC1B7596A83FA33E4774C525929A0E6",
|
|
2773
|
+
present: true,
|
|
2774
|
+
code: "meet",
|
|
2775
|
+
scope: "voskhod",
|
|
2776
|
+
table: "questions",
|
|
2777
|
+
primary_key: "2",
|
|
2778
|
+
value: question2Value
|
|
2779
|
+
};
|
|
2780
|
+
const meetQuestionsMock = {
|
|
2781
|
+
code: "meet",
|
|
2782
|
+
table: "questions",
|
|
2783
|
+
value: { "value.meet_id": "14" },
|
|
2784
|
+
data: {
|
|
2785
|
+
results: [question1TableFull, question2TableFull]
|
|
2786
|
+
},
|
|
2787
|
+
match: (_url, _params) => false
|
|
2788
|
+
};
|
|
2684
2789
|
const meetTableMock = {
|
|
2685
2790
|
code: "meet",
|
|
2686
2791
|
table: "meets",
|
|
@@ -2694,7 +2799,10 @@ const meetTableMock = {
|
|
|
2694
2799
|
meetTableMock.match = function(url, params) {
|
|
2695
2800
|
return matchMock(this, url, params);
|
|
2696
2801
|
};
|
|
2697
|
-
|
|
2802
|
+
meetQuestionsMock.match = function(url, params) {
|
|
2803
|
+
return matchMock(this, url, params);
|
|
2804
|
+
};
|
|
2805
|
+
const tablesMocks = [meetTableMock, meetQuestionsMock];
|
|
2698
2806
|
|
|
2699
2807
|
const voteForAction = {
|
|
2700
2808
|
_id: "6852b0389bd56240ad71b225",
|
|
@@ -3223,7 +3331,7 @@ class PDFService {
|
|
|
3223
3331
|
|
|
3224
3332
|
const name = "@coopenomics/factory";
|
|
3225
3333
|
const type = "module";
|
|
3226
|
-
const version = "2025.11.
|
|
3334
|
+
const version = "2025.11.19-alpha-2";
|
|
3227
3335
|
const description = "";
|
|
3228
3336
|
const author = "Alex Ant <chairman.voskhod@gmail.com>";
|
|
3229
3337
|
const license = "MIT";
|
|
@@ -3273,7 +3381,7 @@ const dependencies = {
|
|
|
3273
3381
|
"ajv-formats": "^3.0.1",
|
|
3274
3382
|
"ajv-i18n": "^4.2.0",
|
|
3275
3383
|
axios: "^1.7.2",
|
|
3276
|
-
cooptypes: "2025.11.
|
|
3384
|
+
cooptypes: "2025.11.19-alpha-2",
|
|
3277
3385
|
dotenv: "^16.4.5",
|
|
3278
3386
|
"eosjs-ecc": "^4.0.7",
|
|
3279
3387
|
handlebars: "^4.7.8",
|
|
@@ -3304,7 +3412,7 @@ const devDependencies = {
|
|
|
3304
3412
|
vite: "^5.2.11",
|
|
3305
3413
|
vitest: "^1.6.0"
|
|
3306
3414
|
};
|
|
3307
|
-
const gitHead = "
|
|
3415
|
+
const gitHead = "7a75365d2f7de18945779d16ceeecfe5a9aa6c8c";
|
|
3308
3416
|
const packageJson = {
|
|
3309
3417
|
name: name,
|
|
3310
3418
|
type: type,
|
|
@@ -3485,8 +3593,16 @@ class DocFactory {
|
|
|
3485
3593
|
"data.coopname": coopname
|
|
3486
3594
|
})
|
|
3487
3595
|
})))?.results;
|
|
3488
|
-
|
|
3489
|
-
|
|
3596
|
+
const paramsss = JSON.stringify({
|
|
3597
|
+
"account": SovietContract.contractName.production,
|
|
3598
|
+
"name": SovietContract.Actions.Decisions.VoteFor.actionName,
|
|
3599
|
+
"receiver": SovietContract.contractName.production,
|
|
3600
|
+
"data.decision_id": String(decision_id),
|
|
3601
|
+
"data.coopname": coopname
|
|
3602
|
+
});
|
|
3603
|
+
if (!votes_for_actions || votes_for_actions.length === 0) {
|
|
3604
|
+
throw new Error(`\u0413\u043E\u043B\u043E\u0441\u0430 \u0437\u0430 \u0440\u0435\u0448\u0435\u043D\u0438\u0435 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u044B ${paramsss}`);
|
|
3605
|
+
}
|
|
3490
3606
|
const votes_against_actions = (await getFetch(`${getEnvVar("SIMPLE_EXPLORER_API")}/get-actions`, new URLSearchParams({
|
|
3491
3607
|
filter: JSON.stringify({
|
|
3492
3608
|
"account": SovietContract.contractName.production,
|
|
@@ -3825,6 +3941,33 @@ class DocFactory {
|
|
|
3825
3941
|
}
|
|
3826
3942
|
}
|
|
3827
3943
|
|
|
3944
|
+
let Factory$L = class Factory extends DocFactory {
|
|
3945
|
+
constructor(storage) {
|
|
3946
|
+
super(storage);
|
|
3947
|
+
}
|
|
3948
|
+
async generateDocument(data, options) {
|
|
3949
|
+
let template;
|
|
3950
|
+
if (process.env.SOURCE === "local") {
|
|
3951
|
+
template = Template$L;
|
|
3952
|
+
} else {
|
|
3953
|
+
template = await this.getTemplate(DraftContract.contractName.production, registry_id$L, data.block_num);
|
|
3954
|
+
}
|
|
3955
|
+
const meta = await super.getMeta({ title: template.title, ...data });
|
|
3956
|
+
const coop = await super.getCooperative(data.coopname, data.block_num);
|
|
3957
|
+
const vars = await super.getVars(data.coopname, data.block_num);
|
|
3958
|
+
const user = await super.getUser(data.username, data.block_num);
|
|
3959
|
+
const combinedData = {
|
|
3960
|
+
meta,
|
|
3961
|
+
coop,
|
|
3962
|
+
vars
|
|
3963
|
+
};
|
|
3964
|
+
await super.validate(combinedData, template.model);
|
|
3965
|
+
const translation = template.translations[meta.lang];
|
|
3966
|
+
const document = await super.generatePDF(user.data, template.context, combinedData, translation, meta, options?.skip_save);
|
|
3967
|
+
return document;
|
|
3968
|
+
}
|
|
3969
|
+
};
|
|
3970
|
+
|
|
3828
3971
|
let Factory$K = class Factory extends DocFactory {
|
|
3829
3972
|
constructor(storage) {
|
|
3830
3973
|
super(storage);
|
|
@@ -3894,10 +4037,14 @@ let Factory$I = class Factory extends DocFactory {
|
|
|
3894
4037
|
const coop = await super.getCooperative(data.coopname, data.block_num);
|
|
3895
4038
|
const vars = await super.getVars(data.coopname, data.block_num);
|
|
3896
4039
|
const user = await super.getUser(data.username, data.block_num);
|
|
4040
|
+
const full_name = super.getFullName(user.data);
|
|
3897
4041
|
const combinedData = {
|
|
3898
4042
|
meta,
|
|
3899
4043
|
coop,
|
|
3900
|
-
vars
|
|
4044
|
+
vars,
|
|
4045
|
+
user: {
|
|
4046
|
+
full_name
|
|
4047
|
+
}
|
|
3901
4048
|
};
|
|
3902
4049
|
await super.validate(combinedData, template.model);
|
|
3903
4050
|
const translation = template.translations[meta.lang];
|
|
@@ -3920,15 +4067,13 @@ let Factory$H = class Factory extends DocFactory {
|
|
|
3920
4067
|
const meta = await super.getMeta({ title: template.title, ...data });
|
|
3921
4068
|
const coop = await super.getCooperative(data.coopname, data.block_num);
|
|
3922
4069
|
const vars = await super.getVars(data.coopname, data.block_num);
|
|
4070
|
+
const partner = await super.getOrganization(data.username, data.block_num);
|
|
3923
4071
|
const user = await super.getUser(data.username, data.block_num);
|
|
3924
|
-
const full_name = super.getFullName(user.data);
|
|
3925
4072
|
const combinedData = {
|
|
3926
4073
|
meta,
|
|
3927
4074
|
coop,
|
|
3928
4075
|
vars,
|
|
3929
|
-
|
|
3930
|
-
full_name
|
|
3931
|
-
}
|
|
4076
|
+
partner
|
|
3932
4077
|
};
|
|
3933
4078
|
await super.validate(combinedData, template.model);
|
|
3934
4079
|
const translation = template.translations[meta.lang];
|
|
@@ -3951,13 +4096,13 @@ let Factory$G = class Factory extends DocFactory {
|
|
|
3951
4096
|
const meta = await super.getMeta({ title: template.title, ...data });
|
|
3952
4097
|
const coop = await super.getCooperative(data.coopname, data.block_num);
|
|
3953
4098
|
const vars = await super.getVars(data.coopname, data.block_num);
|
|
3954
|
-
const partner = await super.getOrganization(data.username, data.block_num);
|
|
3955
4099
|
const user = await super.getUser(data.username, data.block_num);
|
|
4100
|
+
const commonUser = super.getCommonUser(user);
|
|
3956
4101
|
const combinedData = {
|
|
3957
4102
|
meta,
|
|
3958
4103
|
coop,
|
|
3959
4104
|
vars,
|
|
3960
|
-
|
|
4105
|
+
commonUser
|
|
3961
4106
|
};
|
|
3962
4107
|
await super.validate(combinedData, template.model);
|
|
3963
4108
|
const translation = template.translations[meta.lang];
|
|
@@ -5497,16 +5642,18 @@ class Generator {
|
|
|
5497
5642
|
this.storage = new MongoDBConnector(mongoUri);
|
|
5498
5643
|
this.searchService = new SearchService(this.storage);
|
|
5499
5644
|
this.factories = {
|
|
5500
|
-
[registry_id$
|
|
5645
|
+
[registry_id$L]: new Factory$L(this.storage),
|
|
5501
5646
|
// 1
|
|
5502
|
-
[registry_id$
|
|
5647
|
+
[registry_id$K]: new Factory$K(this.storage),
|
|
5503
5648
|
// 2
|
|
5504
|
-
[registry_id$
|
|
5649
|
+
[registry_id$J]: new Factory$J(this.storage),
|
|
5505
5650
|
// 3
|
|
5506
|
-
[registry_id$
|
|
5651
|
+
[registry_id$I]: new Factory$I(this.storage),
|
|
5507
5652
|
// 4
|
|
5508
|
-
[registry_id$
|
|
5653
|
+
[registry_id$H]: new Factory$H(this.storage),
|
|
5509
5654
|
// 50
|
|
5655
|
+
[registry_id$G]: new Factory$G(this.storage),
|
|
5656
|
+
// 51
|
|
5510
5657
|
[registry_id$F]: new Factory$E(this.storage),
|
|
5511
5658
|
// 100
|
|
5512
5659
|
[registry_id$D]: new Factory$F(this.storage),
|
|
@@ -5660,4 +5807,4 @@ class Generator {
|
|
|
5660
5807
|
}
|
|
5661
5808
|
}
|
|
5662
5809
|
|
|
5663
|
-
export { AgendaMeetSchema, AgendaQuestionSchema, AnnualGeneralMeetingAgenda, AnnualGeneralMeetingDecision, AnnualGeneralMeetingNotification, AnnualGeneralMeetingSovietDecision, AnnualGeneralMeetingVotingBallot, AppendixGenerationAgreement, AssetContributionAct, AssetContributionDecision, AssetContributionStatement, BankAccountSchema, CapitalizationAgreement, CapitalizationMoneyInvestStatement, CapitalizationPropertyInvestAct, CapitalizationPropertyInvestDecision, CapitalizationPropertyInvestStatement, CapitalizationToMainWalletConvertStatement, CommonUserSchema, CoopenomicsAgreement, CooperativeSchema, DecisionOfParticipantApplication, ExpenseDecision, ExpenseStatement, FreeDecision, GenerationAgreement, GenerationMoneyInvestStatement, GenerationMoneyReturnUnusedStatement, GenerationPropertyInvestAct, GenerationPropertyInvestDecision, GenerationPropertyInvestStatement, GenerationToCapitalizationConvertStatement, GenerationToMainWalletConvertStatement, GenerationToProjectConvertStatement, Generator, GetLoanDecision, GetLoanStatement, MeetPointSchema, MeetSchema, ParticipantApplication, PrivacyPolicy, ProjectFreeDecision, QuestionExtendedSchema, QuestionSchema$1 as QuestionSchema, Registry, RegulationElectronicSignaturet as RegulationElectronicSignature, ResultContributionAct, ResultContributionDecision, ResultContributionStatement, ReturnByAssetAct, ReturnByAssetDecision, ReturnByAssetStatement, ReturnByMoney, ReturnByMoneyDecision, SelectBranchStatement, SosediAgreement, UserAgreement, VarsSchema, WalletAgreement, decisionSchema, entrepreneurSchema, individualSchema, organizationSchema, paymentMethodSchema };
|
|
5810
|
+
export { AgendaMeetSchema, AgendaQuestionSchema, AnnualGeneralMeetingAgenda, AnnualGeneralMeetingDecision, AnnualGeneralMeetingNotification, AnnualGeneralMeetingSovietDecision, AnnualGeneralMeetingVotingBallot, AppendixGenerationAgreement, AssetContributionAct, AssetContributionDecision, AssetContributionStatement, BankAccountSchema, CapitalizationAgreement, CapitalizationMoneyInvestStatement, CapitalizationPropertyInvestAct, CapitalizationPropertyInvestDecision, CapitalizationPropertyInvestStatement, CapitalizationToMainWalletConvertStatement, CommonUserSchema, ConvertToAxonStatement, CoopenomicsAgreement, CooperativeSchema, DecisionOfParticipantApplication, ExpenseDecision, ExpenseStatement, FreeDecision, GenerationAgreement, GenerationMoneyInvestStatement, GenerationMoneyReturnUnusedStatement, GenerationPropertyInvestAct, GenerationPropertyInvestDecision, GenerationPropertyInvestStatement, GenerationToCapitalizationConvertStatement, GenerationToMainWalletConvertStatement, GenerationToProjectConvertStatement, Generator, GetLoanDecision, GetLoanStatement, MeetPointSchema, MeetSchema, ParticipantApplication, PrivacyPolicy, ProjectFreeDecision, QuestionExtendedSchema, QuestionSchema$1 as QuestionSchema, Registry, RegulationElectronicSignaturet as RegulationElectronicSignature, ResultContributionAct, ResultContributionDecision, ResultContributionStatement, ReturnByAssetAct, ReturnByAssetDecision, ReturnByAssetStatement, ReturnByMoney, ReturnByMoneyDecision, SelectBranchStatement, SosediAgreement, UserAgreement, VarsSchema, WalletAgreement, decisionSchema, entrepreneurSchema, individualSchema, organizationSchema, paymentMethodSchema };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coopenomics/factory",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2025.11.
|
|
4
|
+
"version": "2025.11.19-alpha-2",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "Alex Ant <chairman.voskhod@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"ajv-formats": "^3.0.1",
|
|
51
51
|
"ajv-i18n": "^4.2.0",
|
|
52
52
|
"axios": "^1.7.2",
|
|
53
|
-
"cooptypes": "2025.11.
|
|
53
|
+
"cooptypes": "2025.11.19-alpha-2",
|
|
54
54
|
"dotenv": "^16.4.5",
|
|
55
55
|
"eosjs-ecc": "^4.0.7",
|
|
56
56
|
"handlebars": "^4.7.8",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"vite": "^5.2.11",
|
|
82
82
|
"vitest": "^1.6.0"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "7a75365d2f7de18945779d16ceeecfe5a9aa6c8c"
|
|
85
85
|
}
|