@coopenomics/factory 2.2.6 → 2.2.8

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 CHANGED
@@ -90,7 +90,7 @@ const decisionSchema = {
90
90
  voters_percent: { type: "number" }
91
91
  },
92
92
  required: ["id", "date", "time", "votes_for", "votes_against", "votes_abstained", "voters_percent"],
93
- additionalProperties: false
93
+ additionalProperties: true
94
94
  };
95
95
 
96
96
  const entrepreneurSchema = {
@@ -131,7 +131,7 @@ const organizationSchema = {
131
131
  type: "object",
132
132
  properties: {
133
133
  username: { type: "string" },
134
- type: { type: "string", enum: ["coop", "ooo", "oao", "zao", "pao", "ao"] },
134
+ type: { type: "string", enum: ["coop", "prodcoop", "ooo", "oao", "zao", "pao", "ao"] },
135
135
  short_name: { type: "string" },
136
136
  full_name: { type: "string" },
137
137
  represented_by: {
@@ -366,8 +366,8 @@ const VarsSchema = {
366
366
  additionalProperties: true
367
367
  };
368
368
 
369
- const registry_id$b = cooptypes.Cooperative.Registry.WalletAgreement.registry_id;
370
- const Schema$b = {
369
+ const registry_id$f = cooptypes.Cooperative.Registry.WalletAgreement.registry_id;
370
+ const Schema$f = {
371
371
  type: "object",
372
372
  properties: {
373
373
  meta: IMetaJSONSchema,
@@ -377,23 +377,23 @@ const Schema$b = {
377
377
  required: ["meta", "coop", "vars"],
378
378
  additionalProperties: true
379
379
  };
380
- const Template$b = {
380
+ const Template$f = {
381
381
  title: cooptypes.Cooperative.Registry.WalletAgreement.title,
382
382
  description: cooptypes.Cooperative.Registry.WalletAgreement.description,
383
- model: Schema$b,
383
+ model: Schema$f,
384
384
  context: cooptypes.Cooperative.Registry.WalletAgreement.context,
385
385
  translations: cooptypes.Cooperative.Registry.WalletAgreement.translations
386
386
  };
387
387
 
388
388
  const WalletAgreement = {
389
389
  __proto__: null,
390
- Schema: Schema$b,
391
- Template: Template$b,
392
- registry_id: registry_id$b
390
+ Schema: Schema$f,
391
+ Template: Template$f,
392
+ registry_id: registry_id$f
393
393
  };
394
394
 
395
- const registry_id$a = cooptypes.Cooperative.Registry.RegulationElectronicSignature.registry_id;
396
- const Schema$a = {
395
+ const registry_id$e = cooptypes.Cooperative.Registry.RegulationElectronicSignature.registry_id;
396
+ const Schema$e = {
397
397
  type: "object",
398
398
  properties: {
399
399
  meta: IMetaJSONSchema,
@@ -403,23 +403,23 @@ const Schema$a = {
403
403
  required: ["meta", "coop", "vars"],
404
404
  additionalProperties: true
405
405
  };
406
- const Template$a = {
406
+ const Template$e = {
407
407
  title: cooptypes.Cooperative.Registry.RegulationElectronicSignature.title,
408
408
  description: cooptypes.Cooperative.Registry.RegulationElectronicSignature.description,
409
- model: Schema$a,
409
+ model: Schema$e,
410
410
  context: cooptypes.Cooperative.Registry.RegulationElectronicSignature.context,
411
411
  translations: cooptypes.Cooperative.Registry.RegulationElectronicSignature.translations
412
412
  };
413
413
 
414
414
  const RegulationElectronicSignaturet = {
415
415
  __proto__: null,
416
- Schema: Schema$a,
417
- Template: Template$a,
418
- registry_id: registry_id$a
416
+ Schema: Schema$e,
417
+ Template: Template$e,
418
+ registry_id: registry_id$e
419
419
  };
420
420
 
421
- const registry_id$9 = cooptypes.Cooperative.Registry.PrivacyPolicy.registry_id;
422
- const Schema$9 = {
421
+ const registry_id$d = cooptypes.Cooperative.Registry.PrivacyPolicy.registry_id;
422
+ const Schema$d = {
423
423
  type: "object",
424
424
  properties: {
425
425
  meta: IMetaJSONSchema,
@@ -429,23 +429,23 @@ const Schema$9 = {
429
429
  required: ["meta", "coop", "vars"],
430
430
  additionalProperties: true
431
431
  };
432
- const Template$9 = {
432
+ const Template$d = {
433
433
  title: cooptypes.Cooperative.Registry.PrivacyPolicy.title,
434
434
  description: cooptypes.Cooperative.Registry.PrivacyPolicy.description,
435
- model: Schema$9,
435
+ model: Schema$d,
436
436
  context: cooptypes.Cooperative.Registry.PrivacyPolicy.context,
437
437
  translations: cooptypes.Cooperative.Registry.PrivacyPolicy.translations
438
438
  };
439
439
 
440
440
  const PrivacyPolicy = {
441
441
  __proto__: null,
442
- Schema: Schema$9,
443
- Template: Template$9,
444
- registry_id: registry_id$9
442
+ Schema: Schema$d,
443
+ Template: Template$d,
444
+ registry_id: registry_id$d
445
445
  };
446
446
 
447
- const registry_id$8 = cooptypes.Cooperative.Registry.UserAgreement.registry_id;
448
- const Schema$8 = {
447
+ const registry_id$c = cooptypes.Cooperative.Registry.UserAgreement.registry_id;
448
+ const Schema$c = {
449
449
  type: "object",
450
450
  properties: {
451
451
  meta: IMetaJSONSchema,
@@ -462,23 +462,23 @@ const Schema$8 = {
462
462
  required: ["meta", "coop", "vars", "user"],
463
463
  additionalProperties: true
464
464
  };
465
- const Template$8 = {
465
+ const Template$c = {
466
466
  title: cooptypes.Cooperative.Registry.UserAgreement.title,
467
467
  description: cooptypes.Cooperative.Registry.UserAgreement.description,
468
- model: Schema$8,
468
+ model: Schema$c,
469
469
  context: cooptypes.Cooperative.Registry.UserAgreement.context,
470
470
  translations: cooptypes.Cooperative.Registry.UserAgreement.translations
471
471
  };
472
472
 
473
473
  const UserAgreement = {
474
474
  __proto__: null,
475
- Schema: Schema$8,
476
- Template: Template$8,
477
- registry_id: registry_id$8
475
+ Schema: Schema$c,
476
+ Template: Template$c,
477
+ registry_id: registry_id$c
478
478
  };
479
479
 
480
- const registry_id$7 = cooptypes.Cooperative.Registry.CoopenomicsAgreement.registry_id;
481
- const Schema$7 = {
480
+ const registry_id$b = cooptypes.Cooperative.Registry.CoopenomicsAgreement.registry_id;
481
+ const Schema$b = {
482
482
  type: "object",
483
483
  properties: {
484
484
  meta: IMetaJSONSchema,
@@ -489,23 +489,23 @@ const Schema$7 = {
489
489
  required: ["meta", "coop", "vars", "partner"],
490
490
  additionalProperties: true
491
491
  };
492
- const Template$7 = {
492
+ const Template$b = {
493
493
  title: cooptypes.Cooperative.Registry.CoopenomicsAgreement.title,
494
494
  description: cooptypes.Cooperative.Registry.CoopenomicsAgreement.description,
495
- model: Schema$7,
495
+ model: Schema$b,
496
496
  context: cooptypes.Cooperative.Registry.CoopenomicsAgreement.context,
497
497
  translations: cooptypes.Cooperative.Registry.CoopenomicsAgreement.translations
498
498
  };
499
499
 
500
500
  const CoopenomicsAgreement = {
501
501
  __proto__: null,
502
- Schema: Schema$7,
503
- Template: Template$7,
504
- registry_id: registry_id$7
502
+ Schema: Schema$b,
503
+ Template: Template$b,
504
+ registry_id: registry_id$b
505
505
  };
506
506
 
507
- const registry_id$6 = cooptypes.Cooperative.Registry.ParticipantApplication.registry_id;
508
- const Schema$6 = {
507
+ const registry_id$a = cooptypes.Cooperative.Registry.ParticipantApplication.registry_id;
508
+ const Schema$a = {
509
509
  type: "object",
510
510
  properties: {
511
511
  type: {
@@ -577,23 +577,23 @@ const Schema$6 = {
577
577
  required: ["meta", "coop", "type", "signature"],
578
578
  additionalProperties: true
579
579
  };
580
- const Template$6 = {
580
+ const Template$a = {
581
581
  title: cooptypes.Cooperative.Registry.ParticipantApplication.title,
582
582
  description: cooptypes.Cooperative.Registry.ParticipantApplication.description,
583
- model: Schema$6,
583
+ model: Schema$a,
584
584
  context: cooptypes.Cooperative.Registry.ParticipantApplication.context,
585
585
  translations: cooptypes.Cooperative.Registry.ParticipantApplication.translations
586
586
  };
587
587
 
588
588
  const ParticipantApplication = {
589
589
  __proto__: null,
590
- Schema: Schema$6,
591
- Template: Template$6,
592
- registry_id: registry_id$6
590
+ Schema: Schema$a,
591
+ Template: Template$a,
592
+ registry_id: registry_id$a
593
593
  };
594
594
 
595
- const registry_id$5 = cooptypes.Cooperative.Registry.DecisionOfParticipantApplication.registry_id;
596
- const Schema$5 = {
595
+ const registry_id$9 = cooptypes.Cooperative.Registry.DecisionOfParticipantApplication.registry_id;
596
+ const Schema$9 = {
597
597
  type: "object",
598
598
  properties: {
599
599
  type: {
@@ -657,23 +657,23 @@ const Schema$5 = {
657
657
  // vars не добавляем в обязательные параметры для обратной совместимости (начиная с 2.26)
658
658
  additionalProperties: true
659
659
  };
660
- const Template$5 = {
660
+ const Template$9 = {
661
661
  title: cooptypes.Cooperative.Registry.DecisionOfParticipantApplication.title,
662
662
  description: cooptypes.Cooperative.Registry.DecisionOfParticipantApplication.description,
663
- model: Schema$5,
663
+ model: Schema$9,
664
664
  context: cooptypes.Cooperative.Registry.DecisionOfParticipantApplication.context,
665
665
  translations: cooptypes.Cooperative.Registry.DecisionOfParticipantApplication.translations
666
666
  };
667
667
 
668
668
  const DecisionOfParticipantApplication = {
669
669
  __proto__: null,
670
- Schema: Schema$5,
671
- Template: Template$5,
672
- registry_id: registry_id$5
670
+ Schema: Schema$9,
671
+ Template: Template$9,
672
+ registry_id: registry_id$9
673
673
  };
674
674
 
675
- const registry_id$4 = cooptypes.Cooperative.Registry.SelectBranchStatement.registry_id;
676
- const Schema$4 = {
675
+ const registry_id$8 = cooptypes.Cooperative.Registry.SelectBranchStatement.registry_id;
676
+ const Schema$8 = {
677
677
  type: "object",
678
678
  properties: {
679
679
  type: {
@@ -728,23 +728,23 @@ const Schema$4 = {
728
728
  required: ["meta", "type", "branch", "vars"],
729
729
  additionalProperties: true
730
730
  };
731
- const Template$4 = {
731
+ const Template$8 = {
732
732
  title: cooptypes.Cooperative.Registry.SelectBranchStatement.title,
733
733
  description: cooptypes.Cooperative.Registry.SelectBranchStatement.description,
734
- model: Schema$4,
734
+ model: Schema$8,
735
735
  context: cooptypes.Cooperative.Registry.SelectBranchStatement.context,
736
736
  translations: cooptypes.Cooperative.Registry.SelectBranchStatement.translations
737
737
  };
738
738
 
739
739
  const SelectBranchStatement = {
740
740
  __proto__: null,
741
- Schema: Schema$4,
742
- Template: Template$4,
743
- registry_id: registry_id$4
741
+ Schema: Schema$8,
742
+ Template: Template$8,
743
+ registry_id: registry_id$8
744
744
  };
745
745
 
746
- const registry_id$3 = cooptypes.Cooperative.Registry.ProjectFreeDecision.registry_id;
747
- const Schema$3 = {
746
+ const registry_id$7 = cooptypes.Cooperative.Registry.ProjectFreeDecision.registry_id;
747
+ const Schema$7 = {
748
748
  type: "object",
749
749
  properties: {
750
750
  coop: {
@@ -779,23 +779,23 @@ const Schema$3 = {
779
779
  required: ["meta", "coop", "project", "suggester_name", "vars"],
780
780
  additionalProperties: true
781
781
  };
782
- const Template$3 = {
782
+ const Template$7 = {
783
783
  title: cooptypes.Cooperative.Registry.ProjectFreeDecision.title,
784
784
  description: cooptypes.Cooperative.Registry.ProjectFreeDecision.description,
785
- model: Schema$3,
785
+ model: Schema$7,
786
786
  context: cooptypes.Cooperative.Registry.ProjectFreeDecision.context,
787
787
  translations: cooptypes.Cooperative.Registry.ProjectFreeDecision.translations
788
788
  };
789
789
 
790
790
  const ProjectFreeDecision = {
791
791
  __proto__: null,
792
- Schema: Schema$3,
793
- Template: Template$3,
794
- registry_id: registry_id$3
792
+ Schema: Schema$7,
793
+ Template: Template$7,
794
+ registry_id: registry_id$7
795
795
  };
796
796
 
797
- const registry_id$2 = cooptypes.Cooperative.Registry.FreeDecision.registry_id;
798
- const Schema$2 = {
797
+ const registry_id$6 = cooptypes.Cooperative.Registry.FreeDecision.registry_id;
798
+ const Schema$6 = {
799
799
  type: "object",
800
800
  properties: {
801
801
  coop: {
@@ -838,32 +838,33 @@ const Schema$2 = {
838
838
  // vars не вносим для обратной совместимости начиная с версии 2.25
839
839
  additionalProperties: true
840
840
  };
841
- const Template$2 = {
841
+ const Template$6 = {
842
842
  title: cooptypes.Cooperative.Registry.FreeDecision.title,
843
843
  description: cooptypes.Cooperative.Registry.FreeDecision.description,
844
- model: Schema$2,
844
+ model: Schema$6,
845
845
  context: cooptypes.Cooperative.Registry.FreeDecision.context,
846
846
  translations: cooptypes.Cooperative.Registry.FreeDecision.translations
847
847
  };
848
848
 
849
849
  const FreeDecision = {
850
850
  __proto__: null,
851
- Schema: Schema$2,
852
- Template: Template$2,
853
- registry_id: registry_id$2
851
+ Schema: Schema$6,
852
+ Template: Template$6,
853
+ registry_id: registry_id$6
854
854
  };
855
855
 
856
- const MiddlewareRequestSchema = {
856
+ const CommonRequestSchema = {
857
857
  type: "object",
858
858
  properties: {
859
859
  hash: { type: "string" },
860
860
  title: { type: "string" },
861
861
  unit_of_measurement: { type: "string" },
862
862
  units: { type: "number" },
863
- unit_cost: { type: "number" },
864
- total_cost: { type: "number" },
863
+ unit_cost: { type: "string" },
864
+ total_cost: { type: "string" },
865
865
  currency: { type: "string" },
866
- type: { type: "string" }
866
+ type: { type: "string" },
867
+ program_id: { type: "number" }
867
868
  },
868
869
  required: [
869
870
  "hash",
@@ -873,71 +874,216 @@ const MiddlewareRequestSchema = {
873
874
  "unit_cost",
874
875
  "total_cost",
875
876
  "currency",
876
- "type"
877
+ "type",
878
+ "program_id"
877
879
  ],
878
880
  additionalProperties: true
879
881
  };
880
882
 
881
- const IMiddlewareUserSchema = {
883
+ const CommonUserSchema = {
882
884
  type: "object",
883
885
  properties: {
884
- full_name: { type: "string" }
886
+ full_name_or_short_name: { type: "string" },
887
+ birthdate_or_ogrn: { type: "string" }
885
888
  },
886
- required: ["full_name"],
889
+ required: ["full_name_or_short_name", "birthdate_or_ogrn"],
887
890
  additionalProperties: true
888
891
  };
889
892
 
890
- const registry_id$1 = cooptypes.Cooperative.Registry.AssetContributionStatement.registry_id;
891
- const Schema$1 = {
893
+ const registry_id$5 = cooptypes.Cooperative.Registry.AssetContributionStatement.registry_id;
894
+ const Schema$5 = {
892
895
  type: "object",
893
896
  properties: {
894
897
  meta: IMetaJSONSchema,
895
898
  coop: CooperativeSchema,
896
899
  vars: VarsSchema,
897
- request: MiddlewareRequestSchema,
898
- user: IMiddlewareUserSchema,
899
- currency: { type: "string" }
900
+ request: CommonRequestSchema,
901
+ user: CommonUserSchema
900
902
  },
901
- required: ["meta", "coop", "vars", "request", "user", "currency"],
903
+ required: ["meta", "coop", "vars", "request", "user"],
902
904
  additionalProperties: true
903
905
  };
904
- const Template$1 = {
906
+ const Template$5 = {
905
907
  title: cooptypes.Cooperative.Registry.AssetContributionStatement.title,
906
908
  description: cooptypes.Cooperative.Registry.AssetContributionStatement.description,
907
- model: Schema$1,
909
+ model: Schema$5,
908
910
  context: cooptypes.Cooperative.Registry.AssetContributionStatement.context,
909
911
  translations: cooptypes.Cooperative.Registry.AssetContributionStatement.translations
910
912
  };
911
913
 
912
914
  const AssetContributionStatement = {
913
915
  __proto__: null,
914
- Schema: Schema$1,
915
- Template: Template$1,
916
- registry_id: registry_id$1
916
+ Schema: Schema$5,
917
+ Template: Template$5,
918
+ registry_id: registry_id$5
917
919
  };
918
920
 
919
- const registry_id = cooptypes.Cooperative.Registry.ReturnByAssetStatement.registry_id;
920
- const Schema = {
921
+ const registry_id$4 = cooptypes.Cooperative.Registry.ReturnByAssetStatement.registry_id;
922
+ const Schema$4 = {
921
923
  type: "object",
922
924
  properties: {
923
925
  meta: IMetaJSONSchema,
924
926
  coop: CooperativeSchema,
925
927
  vars: VarsSchema,
926
- request: MiddlewareRequestSchema,
927
- user: IMiddlewareUserSchema
928
+ request: CommonRequestSchema,
929
+ user: CommonUserSchema
928
930
  },
929
931
  required: ["meta", "coop", "vars", "request", "user"],
930
932
  additionalProperties: true
931
933
  };
932
- const Template = {
934
+ const Template$4 = {
933
935
  title: cooptypes.Cooperative.Registry.ReturnByAssetStatement.title,
934
936
  description: cooptypes.Cooperative.Registry.ReturnByAssetStatement.description,
935
- model: Schema,
937
+ model: Schema$4,
936
938
  context: cooptypes.Cooperative.Registry.ReturnByAssetStatement.context,
937
939
  translations: cooptypes.Cooperative.Registry.ReturnByAssetStatement.translations
938
940
  };
939
941
 
940
942
  const ReturnByAssetStatement = {
943
+ __proto__: null,
944
+ Schema: Schema$4,
945
+ Template: Template$4,
946
+ registry_id: registry_id$4
947
+ };
948
+
949
+ const registry_id$3 = cooptypes.Cooperative.Registry.AssetContributionDecision.registry_id;
950
+ const Schema$3 = {
951
+ type: "object",
952
+ properties: {
953
+ meta: IMetaJSONSchema,
954
+ coop: CooperativeSchema,
955
+ vars: VarsSchema,
956
+ request: CommonRequestSchema,
957
+ user: CommonUserSchema,
958
+ decision: decisionSchema
959
+ },
960
+ required: ["meta", "coop", "vars", "request", "user", "decision"],
961
+ additionalProperties: true
962
+ };
963
+ const Template$3 = {
964
+ title: cooptypes.Cooperative.Registry.AssetContributionDecision.title,
965
+ description: cooptypes.Cooperative.Registry.AssetContributionDecision.description,
966
+ model: Schema$3,
967
+ context: cooptypes.Cooperative.Registry.AssetContributionDecision.context,
968
+ translations: cooptypes.Cooperative.Registry.AssetContributionDecision.translations
969
+ };
970
+
971
+ const AssetContributionDecision = {
972
+ __proto__: null,
973
+ Schema: Schema$3,
974
+ Template: Template$3,
975
+ registry_id: registry_id$3
976
+ };
977
+
978
+ const registry_id$2 = cooptypes.Cooperative.Registry.ReturnByAssetDecision.registry_id;
979
+ const Schema$2 = {
980
+ type: "object",
981
+ properties: {
982
+ meta: IMetaJSONSchema,
983
+ coop: CooperativeSchema,
984
+ vars: VarsSchema,
985
+ request: CommonRequestSchema,
986
+ user: CommonUserSchema,
987
+ decision: decisionSchema
988
+ },
989
+ required: ["meta", "coop", "vars", "request", "user", "decision"],
990
+ additionalProperties: true
991
+ };
992
+ const Template$2 = {
993
+ title: cooptypes.Cooperative.Registry.ReturnByAssetDecision.title,
994
+ description: cooptypes.Cooperative.Registry.ReturnByAssetDecision.description,
995
+ model: Schema$2,
996
+ context: cooptypes.Cooperative.Registry.ReturnByAssetDecision.context,
997
+ translations: cooptypes.Cooperative.Registry.ReturnByAssetDecision.translations
998
+ };
999
+
1000
+ const ReturnByAssetDecision = {
1001
+ __proto__: null,
1002
+ Schema: Schema$2,
1003
+ Template: Template$2,
1004
+ registry_id: registry_id$2
1005
+ };
1006
+
1007
+ const FirstLastMiddleNameSchema = {
1008
+ type: "object",
1009
+ properties: {
1010
+ first_name: { type: "string" },
1011
+ last_name: { type: "string" },
1012
+ middle_name: { type: "string" }
1013
+ },
1014
+ required: ["first_name", "last_name", "middle_name"],
1015
+ additionalProperties: true
1016
+ };
1017
+
1018
+ const CommonProgramSchema = {
1019
+ type: "object",
1020
+ properties: {
1021
+ name: { type: "string" }
1022
+ },
1023
+ required: ["name"],
1024
+ additionalProperties: true
1025
+ };
1026
+
1027
+ const registry_id$1 = cooptypes.Cooperative.Registry.AssetContributionAct.registry_id;
1028
+ const Schema$1 = {
1029
+ type: "object",
1030
+ properties: {
1031
+ meta: IMetaJSONSchema,
1032
+ coop: CooperativeSchema,
1033
+ vars: VarsSchema,
1034
+ request: CommonRequestSchema,
1035
+ user: CommonUserSchema,
1036
+ decision: decisionSchema,
1037
+ act_id: { type: "string" },
1038
+ receiver: FirstLastMiddleNameSchema,
1039
+ program: CommonProgramSchema,
1040
+ branch: { ...organizationSchema, nullable: true }
1041
+ },
1042
+ required: ["meta", "coop", "vars", "request", "user", "decision", "act_id", "receiver", "program"],
1043
+ additionalProperties: true
1044
+ };
1045
+ const Template$1 = {
1046
+ title: cooptypes.Cooperative.Registry.AssetContributionAct.title,
1047
+ description: cooptypes.Cooperative.Registry.AssetContributionAct.description,
1048
+ model: Schema$1,
1049
+ context: cooptypes.Cooperative.Registry.AssetContributionAct.context,
1050
+ translations: cooptypes.Cooperative.Registry.AssetContributionAct.translations
1051
+ };
1052
+
1053
+ const AssetContributionAct = {
1054
+ __proto__: null,
1055
+ Schema: Schema$1,
1056
+ Template: Template$1,
1057
+ registry_id: registry_id$1
1058
+ };
1059
+
1060
+ const registry_id = cooptypes.Cooperative.Registry.ReturnByAssetAct.registry_id;
1061
+ const Schema = {
1062
+ type: "object",
1063
+ properties: {
1064
+ meta: IMetaJSONSchema,
1065
+ coop: CooperativeSchema,
1066
+ vars: VarsSchema,
1067
+ request: CommonRequestSchema,
1068
+ user: CommonUserSchema,
1069
+ decision: decisionSchema,
1070
+ act_id: { type: "string" },
1071
+ transmitter: FirstLastMiddleNameSchema,
1072
+ program: CommonProgramSchema,
1073
+ branch: { ...organizationSchema, nullable: true }
1074
+ },
1075
+ required: ["meta", "coop", "vars", "request", "user", "decision", "act_id", "transmitter", "program"],
1076
+ additionalProperties: true
1077
+ };
1078
+ const Template = {
1079
+ title: cooptypes.Cooperative.Registry.ReturnByAssetAct.title,
1080
+ description: cooptypes.Cooperative.Registry.ReturnByAssetAct.description,
1081
+ model: Schema,
1082
+ context: cooptypes.Cooperative.Registry.ReturnByAssetAct.context,
1083
+ translations: cooptypes.Cooperative.Registry.ReturnByAssetAct.translations
1084
+ };
1085
+
1086
+ const ReturnByAssetAct = {
941
1087
  __proto__: null,
942
1088
  Schema: Schema,
943
1089
  Template: Template,
@@ -956,7 +1102,11 @@ const Registry = {
956
1102
  599: ProjectFreeDecision,
957
1103
  600: FreeDecision,
958
1104
  700: AssetContributionStatement,
959
- 800: ReturnByAssetStatement
1105
+ 701: AssetContributionDecision,
1106
+ 702: AssetContributionAct,
1107
+ 800: ReturnByAssetStatement,
1108
+ 801: ReturnByAssetDecision,
1109
+ 802: ReturnByAssetAct
960
1110
  };
961
1111
 
962
1112
  var __defProp$c = Object.defineProperty;
@@ -1577,7 +1727,7 @@ class PDFService {
1577
1727
 
1578
1728
  const name = "@coopenomics/factory";
1579
1729
  const type = "module";
1580
- const version = "2.2.6";
1730
+ const version = "2.2.8";
1581
1731
  const packageManager = "pnpm@9.0.6";
1582
1732
  const description = "";
1583
1733
  const author = "Alex Ant <chairman.voskhod@gmail.com>";
@@ -1626,7 +1776,7 @@ const dependencies = {
1626
1776
  "ajv-formats": "^3.0.1",
1627
1777
  "ajv-i18n": "^4.2.0",
1628
1778
  axios: "^1.7.2",
1629
- cooptypes: "2.2.6",
1779
+ cooptypes: "2.2.8",
1630
1780
  dotenv: "^16.4.5",
1631
1781
  "eosjs-ecc": "^4.0.7",
1632
1782
  handlebars: "^4.7.8",
@@ -1668,7 +1818,7 @@ const pnpm = {
1668
1818
  "vite@>=5.1.0 <=5.1.6": ">=5.1.7"
1669
1819
  }
1670
1820
  };
1671
- const gitHead = "d0bd4428bebd6971c23c27d8d26643d72e3f07cb";
1821
+ const gitHead = "973590281c916620f866b9e39253c6b5bf85f9d4";
1672
1822
  const packageJson = {
1673
1823
  name: name,
1674
1824
  type: type,
@@ -1773,6 +1923,24 @@ class DocFactory {
1773
1923
  throw new Error("\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 \u043A\u043E\u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u0430 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u044B");
1774
1924
  return vars;
1775
1925
  }
1926
+ async getRequest(_request_id, _block_num) {
1927
+ return {
1928
+ hash: "1234567890",
1929
+ title: "\u041C\u043E\u043B\u043E\u043A\u043E \u0411\u0443\u0440\u0451\u043D\u043A\u0430",
1930
+ unit_of_measurement: "\u043B\u0438\u0442\u0440\u044B",
1931
+ units: 100,
1932
+ unit_cost: "1000",
1933
+ total_cost: "100000",
1934
+ currency: "RUB",
1935
+ type: "receive",
1936
+ program_id: 1
1937
+ };
1938
+ }
1939
+ async getProgram(_program_id) {
1940
+ return {
1941
+ name: "\u0421\u041E\u0421\u0415\u0414\u0418"
1942
+ };
1943
+ }
1776
1944
  async getDecision(coop, coopname, decision_id, created_at) {
1777
1945
  const votes_for_actions = (await getFetch(`${getEnvVar("SIMPLE_EXPLORER_API")}/get-actions`, new URLSearchParams({
1778
1946
  filter: JSON.stringify({
@@ -1887,6 +2055,20 @@ class DocFactory {
1887
2055
  }
1888
2056
  return "";
1889
2057
  }
2058
+ getFirstLastMiddleName(data) {
2059
+ return {
2060
+ first_name: "first_name" in data ? data.first_name : "",
2061
+ last_name: "last_name" in data ? data.last_name : "",
2062
+ middle_name: "middle_name" in data ? data.middle_name : ""
2063
+ };
2064
+ }
2065
+ getCommonUser(data) {
2066
+ return {
2067
+ full_name_or_short_name: this.getFullParticipantName(data),
2068
+ // or_short_name
2069
+ birthdate_or_ogrn: "birthdate" in data ? data.birthdate : "details" in data ? data.details.ogrn : ""
2070
+ };
2071
+ }
1890
2072
  async saveDraft(document) {
1891
2073
  await this.storage.saveDraft(document);
1892
2074
  }
@@ -1934,16 +2116,16 @@ class DocFactory {
1934
2116
  }
1935
2117
  }
1936
2118
 
1937
- let Factory$b = class Factory extends DocFactory {
2119
+ let Factory$f = class Factory extends DocFactory {
1938
2120
  constructor(storage) {
1939
2121
  super(storage);
1940
2122
  }
1941
2123
  async generateDocument(data, options) {
1942
2124
  let template;
1943
2125
  if (process.env.SOURCE === "local") {
1944
- template = Template$b;
2126
+ template = Template$f;
1945
2127
  } else {
1946
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$b, data.block_num);
2128
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$f, data.block_num);
1947
2129
  }
1948
2130
  const meta = await super.getMeta({ title: template.title, ...data });
1949
2131
  const coop = await super.getCooperative(data.coopname, data.block_num);
@@ -1961,16 +2143,16 @@ let Factory$b = class Factory extends DocFactory {
1961
2143
  }
1962
2144
  };
1963
2145
 
1964
- let Factory$a = class Factory extends DocFactory {
2146
+ let Factory$e = class Factory extends DocFactory {
1965
2147
  constructor(storage) {
1966
2148
  super(storage);
1967
2149
  }
1968
2150
  async generateDocument(data, options) {
1969
2151
  let template;
1970
2152
  if (process.env.SOURCE === "local") {
1971
- template = Template$a;
2153
+ template = Template$e;
1972
2154
  } else {
1973
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$a, data.block_num);
2155
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$e, data.block_num);
1974
2156
  }
1975
2157
  const meta = await super.getMeta({ title: template.title, ...data });
1976
2158
  const coop = await super.getCooperative(data.coopname, data.block_num);
@@ -1988,16 +2170,16 @@ let Factory$a = class Factory extends DocFactory {
1988
2170
  }
1989
2171
  };
1990
2172
 
1991
- let Factory$9 = class Factory extends DocFactory {
2173
+ let Factory$d = class Factory extends DocFactory {
1992
2174
  constructor(storage) {
1993
2175
  super(storage);
1994
2176
  }
1995
2177
  async generateDocument(data, options) {
1996
2178
  let template;
1997
2179
  if (process.env.SOURCE === "local") {
1998
- template = Template$9;
2180
+ template = Template$d;
1999
2181
  } else {
2000
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$9, data.block_num);
2182
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$d, data.block_num);
2001
2183
  }
2002
2184
  const meta = await super.getMeta({ title: template.title, ...data });
2003
2185
  const coop = await super.getCooperative(data.coopname, data.block_num);
@@ -2015,16 +2197,16 @@ let Factory$9 = class Factory extends DocFactory {
2015
2197
  }
2016
2198
  };
2017
2199
 
2018
- let Factory$8 = class Factory extends DocFactory {
2200
+ let Factory$c = class Factory extends DocFactory {
2019
2201
  constructor(storage) {
2020
2202
  super(storage);
2021
2203
  }
2022
2204
  async generateDocument(data, options) {
2023
2205
  let template;
2024
2206
  if (process.env.SOURCE === "local") {
2025
- template = Template$8;
2207
+ template = Template$c;
2026
2208
  } else {
2027
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$8, data.block_num);
2209
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$c, data.block_num);
2028
2210
  }
2029
2211
  const meta = await super.getMeta({ title: template.title, ...data });
2030
2212
  const coop = await super.getCooperative(data.coopname, data.block_num);
@@ -2046,16 +2228,16 @@ let Factory$8 = class Factory extends DocFactory {
2046
2228
  }
2047
2229
  };
2048
2230
 
2049
- let Factory$7 = class Factory extends DocFactory {
2231
+ let Factory$b = class Factory extends DocFactory {
2050
2232
  constructor(storage) {
2051
2233
  super(storage);
2052
2234
  }
2053
2235
  async generateDocument(data, options) {
2054
2236
  let template;
2055
2237
  if (process.env.SOURCE === "local") {
2056
- template = Template$7;
2238
+ template = Template$b;
2057
2239
  } else {
2058
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$7, data.block_num);
2240
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$b, data.block_num);
2059
2241
  }
2060
2242
  const meta = await super.getMeta({ title: template.title, ...data });
2061
2243
  const coop = await super.getCooperative(data.coopname, data.block_num);
@@ -2075,16 +2257,16 @@ let Factory$7 = class Factory extends DocFactory {
2075
2257
  }
2076
2258
  };
2077
2259
 
2078
- let Factory$6 = class Factory extends DocFactory {
2260
+ let Factory$a = class Factory extends DocFactory {
2079
2261
  constructor(storage) {
2080
2262
  super(storage);
2081
2263
  }
2082
2264
  async generateDocument(data, _options) {
2083
2265
  let template;
2084
2266
  if (process.env.SOURCE === "local") {
2085
- template = Template$4;
2267
+ template = Template$8;
2086
2268
  } else {
2087
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$4, data.block_num);
2269
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$8, data.block_num);
2088
2270
  }
2089
2271
  const user = await super.getUser(data.username, data.block_num);
2090
2272
  const userData = {
@@ -2106,16 +2288,16 @@ let Factory$6 = class Factory extends DocFactory {
2106
2288
  }
2107
2289
  };
2108
2290
 
2109
- let Factory$5 = class Factory extends DocFactory {
2291
+ let Factory$9 = class Factory extends DocFactory {
2110
2292
  constructor(storage) {
2111
2293
  super(storage);
2112
2294
  }
2113
2295
  async generateDocument(data, _options) {
2114
2296
  let template;
2115
2297
  if (process.env.SOURCE === "local") {
2116
- template = Template$6;
2298
+ template = Template$a;
2117
2299
  } else {
2118
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$6, data.block_num);
2300
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$a, data.block_num);
2119
2301
  }
2120
2302
  const user = await super.getUser(data.username, data.block_num);
2121
2303
  let bank_account = {};
@@ -2165,16 +2347,16 @@ let Factory$5 = class Factory extends DocFactory {
2165
2347
  }
2166
2348
  };
2167
2349
 
2168
- let Factory$4 = class Factory extends DocFactory {
2350
+ let Factory$8 = class Factory extends DocFactory {
2169
2351
  constructor(storage) {
2170
2352
  super(storage);
2171
2353
  }
2172
2354
  async generateDocument(data, options) {
2173
2355
  let template;
2174
2356
  if (process.env.SOURCE === "local") {
2175
- template = Template$5;
2357
+ template = Template$9;
2176
2358
  } else {
2177
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$5, data.block_num);
2359
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$9, data.block_num);
2178
2360
  }
2179
2361
  const user = await super.getUser(data.username, data.block_num);
2180
2362
  const userData = {
@@ -2214,16 +2396,16 @@ let Factory$4 = class Factory extends DocFactory {
2214
2396
  }
2215
2397
  };
2216
2398
 
2217
- let Factory$3 = class Factory extends DocFactory {
2399
+ let Factory$7 = class Factory extends DocFactory {
2218
2400
  constructor(storage) {
2219
2401
  super(storage);
2220
2402
  }
2221
2403
  async generateDocument(data, options) {
2222
2404
  let template;
2223
2405
  if (process.env.SOURCE === "local") {
2224
- template = Template$3;
2406
+ template = Template$7;
2225
2407
  } else {
2226
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$3, data.block_num);
2408
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$7, data.block_num);
2227
2409
  }
2228
2410
  const user = await this.getUser(data.username, data.block_num);
2229
2411
  const suggester_name = await this.getFullName(user.data);
@@ -2259,16 +2441,16 @@ let Factory$3 = class Factory extends DocFactory {
2259
2441
  }
2260
2442
  };
2261
2443
 
2262
- let Factory$2 = class Factory extends DocFactory {
2444
+ let Factory$6 = class Factory extends DocFactory {
2263
2445
  constructor(storage) {
2264
2446
  super(storage);
2265
2447
  }
2266
2448
  async generateDocument(data, options) {
2267
2449
  let template;
2268
2450
  if (process.env.SOURCE === "local") {
2269
- template = Template$2;
2451
+ template = Template$6;
2270
2452
  } else {
2271
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$2, data.block_num);
2453
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$6, data.block_num);
2272
2454
  }
2273
2455
  const user = await this.getUser(data.username, data.block_num);
2274
2456
  const userData = {
@@ -2311,35 +2493,174 @@ let Factory$2 = class Factory extends DocFactory {
2311
2493
  }
2312
2494
  };
2313
2495
 
2314
- let Factory$1 = class Factory extends DocFactory {
2496
+ let Factory$5 = class Factory extends DocFactory {
2315
2497
  constructor(storage) {
2316
2498
  super(storage);
2317
2499
  }
2318
2500
  async generateDocument(data, options) {
2319
2501
  let template;
2320
2502
  if (process.env.SOURCE === "local") {
2321
- template = Template$1;
2503
+ template = Template$5;
2322
2504
  } else {
2323
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$1, data.block_num);
2505
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$5, data.block_num);
2324
2506
  }
2325
2507
  const meta = await super.getMeta({ title: template.title, ...data });
2326
2508
  const coop = await super.getCooperative(data.coopname, data.block_num);
2327
2509
  const vars = await super.getVars(data.coopname, data.block_num);
2328
2510
  const user = await super.getUser(data.username, data.block_num);
2329
2511
  const request = data.request;
2330
- const full_name = await super.getFullParticipantName(user.data);
2512
+ const commonUser = this.getCommonUser(user.data);
2331
2513
  const combinedData = {
2332
2514
  meta,
2333
2515
  coop,
2334
2516
  vars,
2335
- user: {
2336
- full_name
2337
- },
2517
+ user: commonUser,
2338
2518
  request
2339
2519
  };
2340
2520
  await super.validate(combinedData, template.model);
2341
2521
  const translation = template.translations[meta.lang];
2342
- const document = await super.generatePDF(full_name, template.context, combinedData, translation, meta, options?.skip_save);
2522
+ const document = await super.generatePDF(commonUser.full_name_or_short_name, template.context, combinedData, translation, meta, options?.skip_save);
2523
+ return document;
2524
+ }
2525
+ };
2526
+
2527
+ let Factory$4 = class Factory extends DocFactory {
2528
+ constructor(storage) {
2529
+ super(storage);
2530
+ }
2531
+ async generateDocument(data, options) {
2532
+ let template;
2533
+ if (process.env.SOURCE === "local") {
2534
+ template = Template$4;
2535
+ } else {
2536
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$4, data.block_num);
2537
+ }
2538
+ const meta = await this.getMeta({ title: template.title, ...data });
2539
+ const coop = await this.getCooperative(data.coopname, data.block_num);
2540
+ const vars = await this.getVars(data.coopname, data.block_num);
2541
+ const user = await this.getUser(data.username, data.block_num);
2542
+ const request = data.request;
2543
+ const commonUser = this.getCommonUser(user.data);
2544
+ const combinedData = {
2545
+ meta,
2546
+ coop,
2547
+ vars,
2548
+ user: commonUser,
2549
+ request
2550
+ };
2551
+ await this.validate(combinedData, template.model);
2552
+ const translation = template.translations[meta.lang];
2553
+ const document = await super.generatePDF(commonUser.full_name_or_short_name, template.context, combinedData, translation, meta, options?.skip_save);
2554
+ return document;
2555
+ }
2556
+ };
2557
+
2558
+ let Factory$3 = class Factory extends DocFactory {
2559
+ constructor(storage) {
2560
+ super(storage);
2561
+ }
2562
+ async generateDocument(data, options) {
2563
+ let template;
2564
+ if (process.env.SOURCE === "local") {
2565
+ template = Template$3;
2566
+ } else {
2567
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$3, data.block_num);
2568
+ }
2569
+ const meta = await this.getMeta({ title: template.title, ...data });
2570
+ const coop = await this.getCooperative(data.coopname, data.block_num);
2571
+ const vars = await this.getVars(data.coopname, data.block_num);
2572
+ const user = await this.getUser(data.username, data.block_num);
2573
+ const request = await this.getRequest(data.request_id, data.block_num);
2574
+ const decision = await this.getDecision(coop, data.coopname, data.decision_id, meta.created_at);
2575
+ const commonUser = this.getCommonUser(user.data);
2576
+ const combinedData = {
2577
+ meta,
2578
+ coop,
2579
+ vars,
2580
+ user: commonUser,
2581
+ request,
2582
+ decision
2583
+ };
2584
+ await this.validate(combinedData, template.model);
2585
+ const translation = template.translations[meta.lang];
2586
+ const document = await this.generatePDF(commonUser.full_name_or_short_name, template.context, combinedData, translation, meta, options?.skip_save);
2587
+ return document;
2588
+ }
2589
+ };
2590
+
2591
+ let Factory$2 = class Factory extends DocFactory {
2592
+ constructor(storage) {
2593
+ super(storage);
2594
+ }
2595
+ async generateDocument(data, options) {
2596
+ let template;
2597
+ if (process.env.SOURCE === "local") {
2598
+ template = Template$1;
2599
+ } else {
2600
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$1, data.block_num);
2601
+ }
2602
+ const meta = await this.getMeta({ title: template.title, ...data });
2603
+ const coop = await this.getCooperative(data.coopname, data.block_num);
2604
+ const vars = await this.getVars(data.coopname, data.block_num);
2605
+ const user = await this.getUser(data.username, data.block_num);
2606
+ const request = await this.getRequest(data.request_id, data.block_num);
2607
+ const decision = await this.getDecision(coop, data.coopname, data.decision_id, meta.created_at);
2608
+ const commonUser = this.getCommonUser(user.data);
2609
+ const receiver = await this.getUser(data.receiver, data.block_num);
2610
+ if (coop.is_branched && !data.braname)
2611
+ throw new Error("Branch name is required");
2612
+ let branch;
2613
+ if (data.braname)
2614
+ branch = await this.getOrganization(data.braname, data.block_num);
2615
+ const program = await this.getProgram(request.program_id);
2616
+ const combinedData = {
2617
+ meta,
2618
+ coop,
2619
+ vars,
2620
+ user: commonUser,
2621
+ request,
2622
+ decision,
2623
+ program,
2624
+ act_id: data.act_id,
2625
+ receiver: this.getFirstLastMiddleName(receiver.data),
2626
+ branch
2627
+ };
2628
+ await this.validate(combinedData, template.model);
2629
+ const translation = template.translations[meta.lang];
2630
+ const document = await this.generatePDF(commonUser.full_name_or_short_name, template.context, combinedData, translation, meta, options?.skip_save);
2631
+ return document;
2632
+ }
2633
+ };
2634
+
2635
+ let Factory$1 = class Factory extends DocFactory {
2636
+ constructor(storage) {
2637
+ super(storage);
2638
+ }
2639
+ async generateDocument(data, options) {
2640
+ let template;
2641
+ if (process.env.SOURCE === "local") {
2642
+ template = Template$2;
2643
+ } else {
2644
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$2, data.block_num);
2645
+ }
2646
+ const meta = await this.getMeta({ title: template.title, ...data });
2647
+ const coop = await this.getCooperative(data.coopname, data.block_num);
2648
+ const vars = await this.getVars(data.coopname, data.block_num);
2649
+ const user = await this.getUser(data.username, data.block_num);
2650
+ const request = await this.getRequest(data.request_id, data.block_num);
2651
+ const decision = await this.getDecision(coop, data.coopname, data.decision_id, meta.created_at);
2652
+ const commonUser = this.getCommonUser(user.data);
2653
+ const combinedData = {
2654
+ meta,
2655
+ coop,
2656
+ vars,
2657
+ user: commonUser,
2658
+ request,
2659
+ decision
2660
+ };
2661
+ await this.validate(combinedData, template.model);
2662
+ const translation = template.translations[meta.lang];
2663
+ const document = await this.generatePDF(commonUser.full_name_or_short_name, template.context, combinedData, translation, meta, options?.skip_save);
2343
2664
  return document;
2344
2665
  }
2345
2666
  };
@@ -2359,20 +2680,31 @@ class Factory extends DocFactory {
2359
2680
  const coop = await this.getCooperative(data.coopname, data.block_num);
2360
2681
  const vars = await this.getVars(data.coopname, data.block_num);
2361
2682
  const user = await this.getUser(data.username, data.block_num);
2362
- const request = data.request;
2363
- const full_name = await this.getFullParticipantName(user.data);
2683
+ const request = await this.getRequest(data.request_id, data.block_num);
2684
+ const decision = await this.getDecision(coop, data.coopname, data.decision_id, meta.created_at);
2685
+ const commonUser = this.getCommonUser(user.data);
2686
+ const transmitter = await this.getUser(data.transmitter, data.block_num);
2687
+ if (coop.is_branched && !data.braname)
2688
+ throw new Error("Branch name is required");
2689
+ let branch;
2690
+ if (data.braname)
2691
+ branch = await this.getOrganization(data.braname, data.block_num);
2692
+ const program = await this.getProgram(request.program_id);
2364
2693
  const combinedData = {
2365
2694
  meta,
2366
2695
  coop,
2367
2696
  vars,
2368
- user: {
2369
- full_name
2370
- },
2371
- request
2697
+ user: commonUser,
2698
+ request,
2699
+ decision,
2700
+ program,
2701
+ act_id: data.act_id,
2702
+ transmitter: this.getFirstLastMiddleName(transmitter.data),
2703
+ branch
2372
2704
  };
2373
2705
  await this.validate(combinedData, template.model);
2374
2706
  const translation = template.translations[meta.lang];
2375
- const document = await super.generatePDF(full_name, template.context, combinedData, translation, meta, options?.skip_save);
2707
+ const document = await this.generatePDF(commonUser.full_name_or_short_name, template.context, combinedData, translation, meta, options?.skip_save);
2376
2708
  return document;
2377
2709
  }
2378
2710
  }
@@ -2439,30 +2771,38 @@ class Generator {
2439
2771
  async connect(mongoUri) {
2440
2772
  this.storage = new MongoDBConnector(mongoUri);
2441
2773
  this.factories = {
2442
- [registry_id$b]: new Factory$b(this.storage),
2774
+ [registry_id$f]: new Factory$f(this.storage),
2443
2775
  // 1
2444
- [registry_id$a]: new Factory$a(this.storage),
2776
+ [registry_id$e]: new Factory$e(this.storage),
2445
2777
  // 2
2446
- [registry_id$9]: new Factory$9(this.storage),
2778
+ [registry_id$d]: new Factory$d(this.storage),
2447
2779
  // 3
2448
- [registry_id$8]: new Factory$8(this.storage),
2780
+ [registry_id$c]: new Factory$c(this.storage),
2449
2781
  // 4
2450
- [registry_id$7]: new Factory$7(this.storage),
2782
+ [registry_id$b]: new Factory$b(this.storage),
2451
2783
  // 50
2452
- [registry_id$6]: new Factory$5(this.storage),
2784
+ [registry_id$a]: new Factory$9(this.storage),
2453
2785
  // 100
2454
- [registry_id$4]: new Factory$6(this.storage),
2786
+ [registry_id$8]: new Factory$a(this.storage),
2455
2787
  // 101
2456
- [registry_id$5]: new Factory$4(this.storage),
2788
+ [registry_id$9]: new Factory$8(this.storage),
2457
2789
  // 501
2458
- [registry_id$3]: new Factory$3(this.storage),
2790
+ [registry_id$7]: new Factory$7(this.storage),
2459
2791
  // 599
2460
- [registry_id$2]: new Factory$2(this.storage),
2792
+ [registry_id$6]: new Factory$6(this.storage),
2461
2793
  // 600
2462
- [registry_id$1]: new Factory$1(this.storage),
2794
+ [registry_id$5]: new Factory$5(this.storage),
2463
2795
  // 700
2464
- [registry_id]: new Factory(this.storage)
2796
+ [registry_id$4]: new Factory$4(this.storage),
2465
2797
  // 800
2798
+ [registry_id$2]: new Factory$1(this.storage),
2799
+ // 801
2800
+ [registry_id]: new Factory(this.storage),
2801
+ // 802
2802
+ [registry_id$3]: new Factory$3(this.storage),
2803
+ // 701
2804
+ [registry_id$1]: new Factory$2(this.storage)
2805
+ // 702
2466
2806
  };
2467
2807
  await this.storage.connect();
2468
2808
  }
@@ -2527,6 +2867,8 @@ class Generator {
2527
2867
  }
2528
2868
  }
2529
2869
 
2870
+ exports.AssetContributionAct = AssetContributionAct;
2871
+ exports.AssetContributionDecision = AssetContributionDecision;
2530
2872
  exports.AssetContributionStatement = AssetContributionStatement;
2531
2873
  exports.BankAccountSchema = BankAccountSchema;
2532
2874
  exports.CoopenomicsAgreement = CoopenomicsAgreement;
@@ -2539,6 +2881,8 @@ exports.PrivacyPolicy = PrivacyPolicy;
2539
2881
  exports.ProjectFreeDecision = ProjectFreeDecision;
2540
2882
  exports.Registry = Registry;
2541
2883
  exports.RegulationElectronicSignature = RegulationElectronicSignaturet;
2884
+ exports.ReturnByAssetAct = ReturnByAssetAct;
2885
+ exports.ReturnByAssetDecision = ReturnByAssetDecision;
2542
2886
  exports.ReturnByAssetStatement = ReturnByAssetStatement;
2543
2887
  exports.SelectBranchStatement = SelectBranchStatement;
2544
2888
  exports.UserAgreement = UserAgreement;