@coopenomics/factory 2.2.7 → 2.2.9

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
@@ -342,6 +342,18 @@ const VarsSchema = {
342
342
  required: ["protocol_day_month_year", "protocol_number"],
343
343
  additionalProperties: true,
344
344
  nullable: true
345
+ },
346
+ investment_agreement: {
347
+ type: "object",
348
+ properties: {
349
+ protocol_number: { type: "string" },
350
+ protocol_day_month_year: { type: "string" },
351
+ subject: { type: "string" },
352
+ terms: { type: "string" }
353
+ },
354
+ required: ["protocol_day_month_year", "protocol_number"],
355
+ additionalProperties: true,
356
+ nullable: true
345
357
  }
346
358
  },
347
359
  required: [
@@ -366,8 +378,8 @@ const VarsSchema = {
366
378
  additionalProperties: true
367
379
  };
368
380
 
369
- const registry_id$f = cooptypes.Cooperative.Registry.WalletAgreement.registry_id;
370
- const Schema$f = {
381
+ const registry_id$l = cooptypes.Cooperative.Registry.WalletAgreement.registry_id;
382
+ const Schema$l = {
371
383
  type: "object",
372
384
  properties: {
373
385
  meta: IMetaJSONSchema,
@@ -377,23 +389,23 @@ const Schema$f = {
377
389
  required: ["meta", "coop", "vars"],
378
390
  additionalProperties: true
379
391
  };
380
- const Template$f = {
392
+ const Template$l = {
381
393
  title: cooptypes.Cooperative.Registry.WalletAgreement.title,
382
394
  description: cooptypes.Cooperative.Registry.WalletAgreement.description,
383
- model: Schema$f,
395
+ model: Schema$l,
384
396
  context: cooptypes.Cooperative.Registry.WalletAgreement.context,
385
397
  translations: cooptypes.Cooperative.Registry.WalletAgreement.translations
386
398
  };
387
399
 
388
400
  const WalletAgreement = {
389
401
  __proto__: null,
390
- Schema: Schema$f,
391
- Template: Template$f,
392
- registry_id: registry_id$f
402
+ Schema: Schema$l,
403
+ Template: Template$l,
404
+ registry_id: registry_id$l
393
405
  };
394
406
 
395
- const registry_id$e = cooptypes.Cooperative.Registry.RegulationElectronicSignature.registry_id;
396
- const Schema$e = {
407
+ const registry_id$k = cooptypes.Cooperative.Registry.RegulationElectronicSignature.registry_id;
408
+ const Schema$k = {
397
409
  type: "object",
398
410
  properties: {
399
411
  meta: IMetaJSONSchema,
@@ -403,23 +415,23 @@ const Schema$e = {
403
415
  required: ["meta", "coop", "vars"],
404
416
  additionalProperties: true
405
417
  };
406
- const Template$e = {
418
+ const Template$k = {
407
419
  title: cooptypes.Cooperative.Registry.RegulationElectronicSignature.title,
408
420
  description: cooptypes.Cooperative.Registry.RegulationElectronicSignature.description,
409
- model: Schema$e,
421
+ model: Schema$k,
410
422
  context: cooptypes.Cooperative.Registry.RegulationElectronicSignature.context,
411
423
  translations: cooptypes.Cooperative.Registry.RegulationElectronicSignature.translations
412
424
  };
413
425
 
414
426
  const RegulationElectronicSignaturet = {
415
427
  __proto__: null,
416
- Schema: Schema$e,
417
- Template: Template$e,
418
- registry_id: registry_id$e
428
+ Schema: Schema$k,
429
+ Template: Template$k,
430
+ registry_id: registry_id$k
419
431
  };
420
432
 
421
- const registry_id$d = cooptypes.Cooperative.Registry.PrivacyPolicy.registry_id;
422
- const Schema$d = {
433
+ const registry_id$j = cooptypes.Cooperative.Registry.PrivacyPolicy.registry_id;
434
+ const Schema$j = {
423
435
  type: "object",
424
436
  properties: {
425
437
  meta: IMetaJSONSchema,
@@ -429,23 +441,23 @@ const Schema$d = {
429
441
  required: ["meta", "coop", "vars"],
430
442
  additionalProperties: true
431
443
  };
432
- const Template$d = {
444
+ const Template$j = {
433
445
  title: cooptypes.Cooperative.Registry.PrivacyPolicy.title,
434
446
  description: cooptypes.Cooperative.Registry.PrivacyPolicy.description,
435
- model: Schema$d,
447
+ model: Schema$j,
436
448
  context: cooptypes.Cooperative.Registry.PrivacyPolicy.context,
437
449
  translations: cooptypes.Cooperative.Registry.PrivacyPolicy.translations
438
450
  };
439
451
 
440
452
  const PrivacyPolicy = {
441
453
  __proto__: null,
442
- Schema: Schema$d,
443
- Template: Template$d,
444
- registry_id: registry_id$d
454
+ Schema: Schema$j,
455
+ Template: Template$j,
456
+ registry_id: registry_id$j
445
457
  };
446
458
 
447
- const registry_id$c = cooptypes.Cooperative.Registry.UserAgreement.registry_id;
448
- const Schema$c = {
459
+ const registry_id$i = cooptypes.Cooperative.Registry.UserAgreement.registry_id;
460
+ const Schema$i = {
449
461
  type: "object",
450
462
  properties: {
451
463
  meta: IMetaJSONSchema,
@@ -462,23 +474,23 @@ const Schema$c = {
462
474
  required: ["meta", "coop", "vars", "user"],
463
475
  additionalProperties: true
464
476
  };
465
- const Template$c = {
477
+ const Template$i = {
466
478
  title: cooptypes.Cooperative.Registry.UserAgreement.title,
467
479
  description: cooptypes.Cooperative.Registry.UserAgreement.description,
468
- model: Schema$c,
480
+ model: Schema$i,
469
481
  context: cooptypes.Cooperative.Registry.UserAgreement.context,
470
482
  translations: cooptypes.Cooperative.Registry.UserAgreement.translations
471
483
  };
472
484
 
473
485
  const UserAgreement = {
474
486
  __proto__: null,
475
- Schema: Schema$c,
476
- Template: Template$c,
477
- registry_id: registry_id$c
487
+ Schema: Schema$i,
488
+ Template: Template$i,
489
+ registry_id: registry_id$i
478
490
  };
479
491
 
480
- const registry_id$b = cooptypes.Cooperative.Registry.CoopenomicsAgreement.registry_id;
481
- const Schema$b = {
492
+ const registry_id$h = cooptypes.Cooperative.Registry.CoopenomicsAgreement.registry_id;
493
+ const Schema$h = {
482
494
  type: "object",
483
495
  properties: {
484
496
  meta: IMetaJSONSchema,
@@ -489,23 +501,23 @@ const Schema$b = {
489
501
  required: ["meta", "coop", "vars", "partner"],
490
502
  additionalProperties: true
491
503
  };
492
- const Template$b = {
504
+ const Template$h = {
493
505
  title: cooptypes.Cooperative.Registry.CoopenomicsAgreement.title,
494
506
  description: cooptypes.Cooperative.Registry.CoopenomicsAgreement.description,
495
- model: Schema$b,
507
+ model: Schema$h,
496
508
  context: cooptypes.Cooperative.Registry.CoopenomicsAgreement.context,
497
509
  translations: cooptypes.Cooperative.Registry.CoopenomicsAgreement.translations
498
510
  };
499
511
 
500
512
  const CoopenomicsAgreement = {
501
513
  __proto__: null,
502
- Schema: Schema$b,
503
- Template: Template$b,
504
- registry_id: registry_id$b
514
+ Schema: Schema$h,
515
+ Template: Template$h,
516
+ registry_id: registry_id$h
505
517
  };
506
518
 
507
- const registry_id$a = cooptypes.Cooperative.Registry.ParticipantApplication.registry_id;
508
- const Schema$a = {
519
+ const registry_id$g = cooptypes.Cooperative.Registry.ParticipantApplication.registry_id;
520
+ const Schema$g = {
509
521
  type: "object",
510
522
  properties: {
511
523
  type: {
@@ -577,23 +589,23 @@ const Schema$a = {
577
589
  required: ["meta", "coop", "type", "signature"],
578
590
  additionalProperties: true
579
591
  };
580
- const Template$a = {
592
+ const Template$g = {
581
593
  title: cooptypes.Cooperative.Registry.ParticipantApplication.title,
582
594
  description: cooptypes.Cooperative.Registry.ParticipantApplication.description,
583
- model: Schema$a,
595
+ model: Schema$g,
584
596
  context: cooptypes.Cooperative.Registry.ParticipantApplication.context,
585
597
  translations: cooptypes.Cooperative.Registry.ParticipantApplication.translations
586
598
  };
587
599
 
588
600
  const ParticipantApplication = {
589
601
  __proto__: null,
590
- Schema: Schema$a,
591
- Template: Template$a,
592
- registry_id: registry_id$a
602
+ Schema: Schema$g,
603
+ Template: Template$g,
604
+ registry_id: registry_id$g
593
605
  };
594
606
 
595
- const registry_id$9 = cooptypes.Cooperative.Registry.DecisionOfParticipantApplication.registry_id;
596
- const Schema$9 = {
607
+ const registry_id$f = cooptypes.Cooperative.Registry.DecisionOfParticipantApplication.registry_id;
608
+ const Schema$f = {
597
609
  type: "object",
598
610
  properties: {
599
611
  type: {
@@ -657,23 +669,23 @@ const Schema$9 = {
657
669
  // vars не добавляем в обязательные параметры для обратной совместимости (начиная с 2.26)
658
670
  additionalProperties: true
659
671
  };
660
- const Template$9 = {
672
+ const Template$f = {
661
673
  title: cooptypes.Cooperative.Registry.DecisionOfParticipantApplication.title,
662
674
  description: cooptypes.Cooperative.Registry.DecisionOfParticipantApplication.description,
663
- model: Schema$9,
675
+ model: Schema$f,
664
676
  context: cooptypes.Cooperative.Registry.DecisionOfParticipantApplication.context,
665
677
  translations: cooptypes.Cooperative.Registry.DecisionOfParticipantApplication.translations
666
678
  };
667
679
 
668
680
  const DecisionOfParticipantApplication = {
669
681
  __proto__: null,
670
- Schema: Schema$9,
671
- Template: Template$9,
672
- registry_id: registry_id$9
682
+ Schema: Schema$f,
683
+ Template: Template$f,
684
+ registry_id: registry_id$f
673
685
  };
674
686
 
675
- const registry_id$8 = cooptypes.Cooperative.Registry.SelectBranchStatement.registry_id;
676
- const Schema$8 = {
687
+ const registry_id$e = cooptypes.Cooperative.Registry.SelectBranchStatement.registry_id;
688
+ const Schema$e = {
677
689
  type: "object",
678
690
  properties: {
679
691
  type: {
@@ -728,23 +740,23 @@ const Schema$8 = {
728
740
  required: ["meta", "type", "branch", "vars"],
729
741
  additionalProperties: true
730
742
  };
731
- const Template$8 = {
743
+ const Template$e = {
732
744
  title: cooptypes.Cooperative.Registry.SelectBranchStatement.title,
733
745
  description: cooptypes.Cooperative.Registry.SelectBranchStatement.description,
734
- model: Schema$8,
746
+ model: Schema$e,
735
747
  context: cooptypes.Cooperative.Registry.SelectBranchStatement.context,
736
748
  translations: cooptypes.Cooperative.Registry.SelectBranchStatement.translations
737
749
  };
738
750
 
739
751
  const SelectBranchStatement = {
740
752
  __proto__: null,
741
- Schema: Schema$8,
742
- Template: Template$8,
743
- registry_id: registry_id$8
753
+ Schema: Schema$e,
754
+ Template: Template$e,
755
+ registry_id: registry_id$e
744
756
  };
745
757
 
746
- const registry_id$7 = cooptypes.Cooperative.Registry.ProjectFreeDecision.registry_id;
747
- const Schema$7 = {
758
+ const registry_id$d = cooptypes.Cooperative.Registry.ProjectFreeDecision.registry_id;
759
+ const Schema$d = {
748
760
  type: "object",
749
761
  properties: {
750
762
  coop: {
@@ -779,23 +791,23 @@ const Schema$7 = {
779
791
  required: ["meta", "coop", "project", "suggester_name", "vars"],
780
792
  additionalProperties: true
781
793
  };
782
- const Template$7 = {
794
+ const Template$d = {
783
795
  title: cooptypes.Cooperative.Registry.ProjectFreeDecision.title,
784
796
  description: cooptypes.Cooperative.Registry.ProjectFreeDecision.description,
785
- model: Schema$7,
797
+ model: Schema$d,
786
798
  context: cooptypes.Cooperative.Registry.ProjectFreeDecision.context,
787
799
  translations: cooptypes.Cooperative.Registry.ProjectFreeDecision.translations
788
800
  };
789
801
 
790
802
  const ProjectFreeDecision = {
791
803
  __proto__: null,
792
- Schema: Schema$7,
793
- Template: Template$7,
794
- registry_id: registry_id$7
804
+ Schema: Schema$d,
805
+ Template: Template$d,
806
+ registry_id: registry_id$d
795
807
  };
796
808
 
797
- const registry_id$6 = cooptypes.Cooperative.Registry.FreeDecision.registry_id;
798
- const Schema$6 = {
809
+ const registry_id$c = cooptypes.Cooperative.Registry.FreeDecision.registry_id;
810
+ const Schema$c = {
799
811
  type: "object",
800
812
  properties: {
801
813
  coop: {
@@ -838,19 +850,19 @@ const Schema$6 = {
838
850
  // vars не вносим для обратной совместимости начиная с версии 2.25
839
851
  additionalProperties: true
840
852
  };
841
- const Template$6 = {
853
+ const Template$c = {
842
854
  title: cooptypes.Cooperative.Registry.FreeDecision.title,
843
855
  description: cooptypes.Cooperative.Registry.FreeDecision.description,
844
- model: Schema$6,
856
+ model: Schema$c,
845
857
  context: cooptypes.Cooperative.Registry.FreeDecision.context,
846
858
  translations: cooptypes.Cooperative.Registry.FreeDecision.translations
847
859
  };
848
860
 
849
861
  const FreeDecision = {
850
862
  __proto__: null,
851
- Schema: Schema$6,
852
- Template: Template$6,
853
- registry_id: registry_id$6
863
+ Schema: Schema$c,
864
+ Template: Template$c,
865
+ registry_id: registry_id$c
854
866
  };
855
867
 
856
868
  const CommonRequestSchema = {
@@ -890,8 +902,8 @@ const CommonUserSchema = {
890
902
  additionalProperties: true
891
903
  };
892
904
 
893
- const registry_id$5 = cooptypes.Cooperative.Registry.AssetContributionStatement.registry_id;
894
- const Schema$5 = {
905
+ const registry_id$b = cooptypes.Cooperative.Registry.AssetContributionStatement.registry_id;
906
+ const Schema$b = {
895
907
  type: "object",
896
908
  properties: {
897
909
  meta: IMetaJSONSchema,
@@ -903,23 +915,23 @@ const Schema$5 = {
903
915
  required: ["meta", "coop", "vars", "request", "user"],
904
916
  additionalProperties: true
905
917
  };
906
- const Template$5 = {
918
+ const Template$b = {
907
919
  title: cooptypes.Cooperative.Registry.AssetContributionStatement.title,
908
920
  description: cooptypes.Cooperative.Registry.AssetContributionStatement.description,
909
- model: Schema$5,
921
+ model: Schema$b,
910
922
  context: cooptypes.Cooperative.Registry.AssetContributionStatement.context,
911
923
  translations: cooptypes.Cooperative.Registry.AssetContributionStatement.translations
912
924
  };
913
925
 
914
926
  const AssetContributionStatement = {
915
927
  __proto__: null,
916
- Schema: Schema$5,
917
- Template: Template$5,
918
- registry_id: registry_id$5
928
+ Schema: Schema$b,
929
+ Template: Template$b,
930
+ registry_id: registry_id$b
919
931
  };
920
932
 
921
- const registry_id$4 = cooptypes.Cooperative.Registry.ReturnByAssetStatement.registry_id;
922
- const Schema$4 = {
933
+ const registry_id$a = cooptypes.Cooperative.Registry.ReturnByAssetStatement.registry_id;
934
+ const Schema$a = {
923
935
  type: "object",
924
936
  properties: {
925
937
  meta: IMetaJSONSchema,
@@ -931,23 +943,23 @@ const Schema$4 = {
931
943
  required: ["meta", "coop", "vars", "request", "user"],
932
944
  additionalProperties: true
933
945
  };
934
- const Template$4 = {
946
+ const Template$a = {
935
947
  title: cooptypes.Cooperative.Registry.ReturnByAssetStatement.title,
936
948
  description: cooptypes.Cooperative.Registry.ReturnByAssetStatement.description,
937
- model: Schema$4,
949
+ model: Schema$a,
938
950
  context: cooptypes.Cooperative.Registry.ReturnByAssetStatement.context,
939
951
  translations: cooptypes.Cooperative.Registry.ReturnByAssetStatement.translations
940
952
  };
941
953
 
942
954
  const ReturnByAssetStatement = {
943
955
  __proto__: null,
944
- Schema: Schema$4,
945
- Template: Template$4,
946
- registry_id: registry_id$4
956
+ Schema: Schema$a,
957
+ Template: Template$a,
958
+ registry_id: registry_id$a
947
959
  };
948
960
 
949
- const registry_id$3 = cooptypes.Cooperative.Registry.AssetContributionDecision.registry_id;
950
- const Schema$3 = {
961
+ const registry_id$9 = cooptypes.Cooperative.Registry.AssetContributionDecision.registry_id;
962
+ const Schema$9 = {
951
963
  type: "object",
952
964
  properties: {
953
965
  meta: IMetaJSONSchema,
@@ -960,23 +972,23 @@ const Schema$3 = {
960
972
  required: ["meta", "coop", "vars", "request", "user", "decision"],
961
973
  additionalProperties: true
962
974
  };
963
- const Template$3 = {
975
+ const Template$9 = {
964
976
  title: cooptypes.Cooperative.Registry.AssetContributionDecision.title,
965
977
  description: cooptypes.Cooperative.Registry.AssetContributionDecision.description,
966
- model: Schema$3,
978
+ model: Schema$9,
967
979
  context: cooptypes.Cooperative.Registry.AssetContributionDecision.context,
968
980
  translations: cooptypes.Cooperative.Registry.AssetContributionDecision.translations
969
981
  };
970
982
 
971
983
  const AssetContributionDecision = {
972
984
  __proto__: null,
973
- Schema: Schema$3,
974
- Template: Template$3,
975
- registry_id: registry_id$3
985
+ Schema: Schema$9,
986
+ Template: Template$9,
987
+ registry_id: registry_id$9
976
988
  };
977
989
 
978
- const registry_id$2 = cooptypes.Cooperative.Registry.ReturnByAssetDecision.registry_id;
979
- const Schema$2 = {
990
+ const registry_id$8 = cooptypes.Cooperative.Registry.ReturnByAssetDecision.registry_id;
991
+ const Schema$8 = {
980
992
  type: "object",
981
993
  properties: {
982
994
  meta: IMetaJSONSchema,
@@ -989,19 +1001,19 @@ const Schema$2 = {
989
1001
  required: ["meta", "coop", "vars", "request", "user", "decision"],
990
1002
  additionalProperties: true
991
1003
  };
992
- const Template$2 = {
1004
+ const Template$8 = {
993
1005
  title: cooptypes.Cooperative.Registry.ReturnByAssetDecision.title,
994
1006
  description: cooptypes.Cooperative.Registry.ReturnByAssetDecision.description,
995
- model: Schema$2,
1007
+ model: Schema$8,
996
1008
  context: cooptypes.Cooperative.Registry.ReturnByAssetDecision.context,
997
1009
  translations: cooptypes.Cooperative.Registry.ReturnByAssetDecision.translations
998
1010
  };
999
1011
 
1000
1012
  const ReturnByAssetDecision = {
1001
1013
  __proto__: null,
1002
- Schema: Schema$2,
1003
- Template: Template$2,
1004
- registry_id: registry_id$2
1014
+ Schema: Schema$8,
1015
+ Template: Template$8,
1016
+ registry_id: registry_id$8
1005
1017
  };
1006
1018
 
1007
1019
  const FirstLastMiddleNameSchema = {
@@ -1024,8 +1036,8 @@ const CommonProgramSchema = {
1024
1036
  additionalProperties: true
1025
1037
  };
1026
1038
 
1027
- const registry_id$1 = cooptypes.Cooperative.Registry.AssetContributionAct.registry_id;
1028
- const Schema$1 = {
1039
+ const registry_id$7 = cooptypes.Cooperative.Registry.AssetContributionAct.registry_id;
1040
+ const Schema$7 = {
1029
1041
  type: "object",
1030
1042
  properties: {
1031
1043
  meta: IMetaJSONSchema,
@@ -1042,23 +1054,23 @@ const Schema$1 = {
1042
1054
  required: ["meta", "coop", "vars", "request", "user", "decision", "act_id", "receiver", "program"],
1043
1055
  additionalProperties: true
1044
1056
  };
1045
- const Template$1 = {
1057
+ const Template$7 = {
1046
1058
  title: cooptypes.Cooperative.Registry.AssetContributionAct.title,
1047
1059
  description: cooptypes.Cooperative.Registry.AssetContributionAct.description,
1048
- model: Schema$1,
1060
+ model: Schema$7,
1049
1061
  context: cooptypes.Cooperative.Registry.AssetContributionAct.context,
1050
1062
  translations: cooptypes.Cooperative.Registry.AssetContributionAct.translations
1051
1063
  };
1052
1064
 
1053
1065
  const AssetContributionAct = {
1054
1066
  __proto__: null,
1055
- Schema: Schema$1,
1056
- Template: Template$1,
1057
- registry_id: registry_id$1
1067
+ Schema: Schema$7,
1068
+ Template: Template$7,
1069
+ registry_id: registry_id$7
1058
1070
  };
1059
1071
 
1060
- const registry_id = cooptypes.Cooperative.Registry.ReturnByAssetAct.registry_id;
1061
- const Schema = {
1072
+ const registry_id$6 = cooptypes.Cooperative.Registry.ReturnByAssetAct.registry_id;
1073
+ const Schema$6 = {
1062
1074
  type: "object",
1063
1075
  properties: {
1064
1076
  meta: IMetaJSONSchema,
@@ -1075,57 +1087,346 @@ const Schema = {
1075
1087
  required: ["meta", "coop", "vars", "request", "user", "decision", "act_id", "transmitter", "program"],
1076
1088
  additionalProperties: true
1077
1089
  };
1078
- const Template = {
1090
+ const Template$6 = {
1079
1091
  title: cooptypes.Cooperative.Registry.ReturnByAssetAct.title,
1080
1092
  description: cooptypes.Cooperative.Registry.ReturnByAssetAct.description,
1081
- model: Schema,
1093
+ model: Schema$6,
1082
1094
  context: cooptypes.Cooperative.Registry.ReturnByAssetAct.context,
1083
1095
  translations: cooptypes.Cooperative.Registry.ReturnByAssetAct.translations
1084
1096
  };
1085
1097
 
1086
1098
  const ReturnByAssetAct = {
1087
1099
  __proto__: null,
1088
- Schema: Schema,
1089
- Template: Template,
1090
- registry_id: registry_id
1100
+ Schema: Schema$6,
1101
+ Template: Template$6,
1102
+ registry_id: registry_id$6
1091
1103
  };
1092
1104
 
1093
- const Registry = {
1094
- 1: WalletAgreement,
1095
- 2: RegulationElectronicSignaturet,
1096
- 3: PrivacyPolicy,
1097
- 4: UserAgreement,
1098
- 50: CoopenomicsAgreement,
1099
- 100: ParticipantApplication,
1100
- 101: SelectBranchStatement,
1101
- 501: DecisionOfParticipantApplication,
1102
- 599: ProjectFreeDecision,
1103
- 600: FreeDecision,
1104
- 700: AssetContributionStatement,
1105
- 701: AssetContributionDecision,
1106
- 702: AssetContributionAct,
1107
- 800: ReturnByAssetStatement,
1108
- 801: ReturnByAssetDecision,
1109
- 802: ReturnByAssetAct
1105
+ const registry_id$5 = cooptypes.Cooperative.Registry.InvestmentAgreement.registry_id;
1106
+ const Schema$5 = {
1107
+ type: "object",
1108
+ properties: {
1109
+ meta: IMetaJSONSchema,
1110
+ coop: CooperativeSchema,
1111
+ vars: {
1112
+ ...VarsSchema,
1113
+ required: [...VarsSchema.required || [], "investment_agreement"]
1114
+ },
1115
+ subject: { type: "string" },
1116
+ terms: { type: "string" },
1117
+ uhdContract: {
1118
+ type: "object",
1119
+ properties: {
1120
+ date: { type: "string" },
1121
+ number: { type: "string" }
1122
+ },
1123
+ required: ["date", "number"]
1124
+ },
1125
+ user: CommonUserSchema,
1126
+ coopBankAccount: BankAccountSchema,
1127
+ type: {
1128
+ type: "string",
1129
+ enum: ["individual", "entrepreneur", "organization"]
1130
+ },
1131
+ individual: {
1132
+ type: "object",
1133
+ properties: {
1134
+ ...individualSchema.properties
1135
+ },
1136
+ required: individualSchema.required,
1137
+ additionalProperties: true,
1138
+ nullable: true
1139
+ },
1140
+ organization: {
1141
+ type: "object",
1142
+ properties: {
1143
+ ...organizationSchema.properties
1144
+ },
1145
+ required: organizationSchema.required,
1146
+ additionalProperties: true,
1147
+ nullable: true
1148
+ },
1149
+ entrepreneur: {
1150
+ type: "object",
1151
+ properties: {
1152
+ ...entrepreneurSchema.properties
1153
+ },
1154
+ required: entrepreneurSchema.required,
1155
+ additionalProperties: true,
1156
+ nullable: true
1157
+ },
1158
+ organizationBankAccount: {
1159
+ type: "object",
1160
+ properties: {
1161
+ ...BankAccountSchema.properties
1162
+ },
1163
+ required: BankAccountSchema.required,
1164
+ additionalProperties: true,
1165
+ nullable: true
1166
+ },
1167
+ entrepreneurBankAccount: {
1168
+ type: "object",
1169
+ properties: {
1170
+ ...BankAccountSchema.properties
1171
+ },
1172
+ required: BankAccountSchema.required,
1173
+ additionalProperties: true,
1174
+ nullable: true
1175
+ }
1176
+ },
1177
+ required: ["meta", "coop", "vars", "uhdContract", "user", "coopBankAccount", "type"],
1178
+ additionalProperties: true
1179
+ };
1180
+ const Template$5 = {
1181
+ title: cooptypes.Cooperative.Registry.InvestmentAgreement.title,
1182
+ description: cooptypes.Cooperative.Registry.InvestmentAgreement.description,
1183
+ model: Schema$5,
1184
+ context: cooptypes.Cooperative.Registry.InvestmentAgreement.context,
1185
+ translations: cooptypes.Cooperative.Registry.InvestmentAgreement.translations
1110
1186
  };
1111
1187
 
1112
- var __defProp$c = Object.defineProperty;
1113
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1114
- var __publicField$c = (obj, key, value) => {
1115
- __defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
1116
- return value;
1188
+ const InvestmentAgreement = {
1189
+ __proto__: null,
1190
+ Schema: Schema$5,
1191
+ Template: Template$5,
1192
+ registry_id: registry_id$5
1117
1193
  };
1118
- const ajv = new Ajv__default();
1119
- addFormats__default(ajv);
1120
- ajv.addFormat("phone", {
1121
- type: "string",
1122
- validate: () => true
1123
- });
1124
- class Validator {
1125
- constructor(schema, data) {
1126
- __publicField$c(this, "schema");
1127
- __publicField$c(this, "data");
1128
- this.schema = schema;
1194
+
1195
+ const UHDContractSchema = {
1196
+ type: "object",
1197
+ properties: {
1198
+ number: { type: "string" },
1199
+ date: { type: "string" }
1200
+ },
1201
+ required: ["number", "date"],
1202
+ additionalProperties: true
1203
+ };
1204
+
1205
+ const IntellectualResultSchema = {
1206
+ type: "object",
1207
+ properties: {
1208
+ quantity: { type: "number" },
1209
+ name: { type: "string" },
1210
+ currency: { type: "string" },
1211
+ unit_price: { type: "number" },
1212
+ total_price: { type: "number" },
1213
+ description: { type: "string" }
1214
+ },
1215
+ required: ["quantity", "name", "currency", "unit_price", "total_price", "description"],
1216
+ additionalProperties: true
1217
+ };
1218
+
1219
+ const registry_id$4 = cooptypes.Cooperative.Registry.InvestByResultStatement.registry_id;
1220
+ const Schema$4 = {
1221
+ type: "object",
1222
+ properties: {
1223
+ meta: IMetaJSONSchema,
1224
+ coop: CooperativeSchema,
1225
+ vars: VarsSchema,
1226
+ uhdContract: UHDContractSchema,
1227
+ user: CommonUserSchema,
1228
+ result: IntellectualResultSchema
1229
+ },
1230
+ required: ["meta", "coop", "vars", "uhdContract", "result", "user"],
1231
+ additionalProperties: true
1232
+ };
1233
+ const Template$4 = {
1234
+ title: cooptypes.Cooperative.Registry.InvestByResultStatement.title,
1235
+ description: cooptypes.Cooperative.Registry.InvestByResultStatement.description,
1236
+ model: Schema$4,
1237
+ context: cooptypes.Cooperative.Registry.InvestByResultStatement.context,
1238
+ translations: cooptypes.Cooperative.Registry.InvestByResultStatement.translations
1239
+ };
1240
+
1241
+ const InvestByResultStatement = {
1242
+ __proto__: null,
1243
+ Schema: Schema$4,
1244
+ Template: Template$4,
1245
+ registry_id: registry_id$4
1246
+ };
1247
+
1248
+ const registry_id$3 = cooptypes.Cooperative.Registry.InvestByResultAct.registry_id;
1249
+ const Schema$3 = {
1250
+ type: "object",
1251
+ properties: {
1252
+ meta: IMetaJSONSchema,
1253
+ coop: CooperativeSchema,
1254
+ vars: VarsSchema,
1255
+ uhdContract: UHDContractSchema,
1256
+ user: CommonUserSchema,
1257
+ result: IntellectualResultSchema,
1258
+ decision: decisionSchema,
1259
+ act: {
1260
+ type: "object",
1261
+ properties: {
1262
+ number: { type: "string" }
1263
+ },
1264
+ required: ["number"],
1265
+ additionalProperties: true
1266
+ }
1267
+ },
1268
+ required: ["meta", "coop", "vars", "uhdContract", "result", "user"],
1269
+ additionalProperties: true
1270
+ };
1271
+ const Template$3 = {
1272
+ title: cooptypes.Cooperative.Registry.InvestByResultAct.title,
1273
+ description: cooptypes.Cooperative.Registry.InvestByResultAct.description,
1274
+ model: Schema$3,
1275
+ context: cooptypes.Cooperative.Registry.InvestByResultAct.context,
1276
+ translations: cooptypes.Cooperative.Registry.InvestByResultAct.translations
1277
+ };
1278
+
1279
+ const InvestByResultAct = {
1280
+ __proto__: null,
1281
+ Schema: Schema$3,
1282
+ Template: Template$3,
1283
+ registry_id: registry_id$3
1284
+ };
1285
+
1286
+ const ContributionAmountSchema = {
1287
+ type: "object",
1288
+ properties: {
1289
+ amount: { type: "number" },
1290
+ currency: { type: "string" },
1291
+ words: { type: "string" }
1292
+ },
1293
+ required: ["amount", "currency", "words"],
1294
+ additionalProperties: true
1295
+ };
1296
+
1297
+ const registry_id$2 = cooptypes.Cooperative.Registry.InvestByMoneyStatement.registry_id;
1298
+ const Schema$2 = {
1299
+ type: "object",
1300
+ properties: {
1301
+ meta: IMetaJSONSchema,
1302
+ coop: CooperativeSchema,
1303
+ uhdContract: UHDContractSchema,
1304
+ user: CommonUserSchema,
1305
+ contribution: ContributionAmountSchema
1306
+ },
1307
+ required: ["meta", "coop", "uhdContract", "user", "contribution"],
1308
+ additionalProperties: true
1309
+ };
1310
+ const Template$2 = {
1311
+ title: cooptypes.Cooperative.Registry.InvestByMoneyStatement.title,
1312
+ description: cooptypes.Cooperative.Registry.InvestByMoneyStatement.description,
1313
+ model: Schema$2,
1314
+ context: cooptypes.Cooperative.Registry.InvestByMoneyStatement.context,
1315
+ translations: cooptypes.Cooperative.Registry.InvestByMoneyStatement.translations
1316
+ };
1317
+
1318
+ const InvestByMoneyStatement = {
1319
+ __proto__: null,
1320
+ Schema: Schema$2,
1321
+ Template: Template$2,
1322
+ registry_id: registry_id$2
1323
+ };
1324
+
1325
+ const registry_id$1 = cooptypes.Cooperative.Registry.InvestMembershipConvertation.registry_id;
1326
+ const Schema$1 = {
1327
+ type: "object",
1328
+ properties: {
1329
+ meta: IMetaJSONSchema,
1330
+ coop: CooperativeSchema,
1331
+ uhdContract: UHDContractSchema,
1332
+ user: CommonUserSchema,
1333
+ vars: VarsSchema,
1334
+ contribution: ContributionAmountSchema,
1335
+ appendix: {
1336
+ type: "object",
1337
+ properties: {
1338
+ number: { type: "string" }
1339
+ },
1340
+ required: ["number"],
1341
+ additionalProperties: true
1342
+ }
1343
+ },
1344
+ required: ["meta", "coop", "uhdContract", "user", "contribution", "appendix", "vars"],
1345
+ additionalProperties: true
1346
+ };
1347
+ const Template$1 = {
1348
+ title: cooptypes.Cooperative.Registry.InvestMembershipConvertation.title,
1349
+ description: cooptypes.Cooperative.Registry.InvestMembershipConvertation.description,
1350
+ model: Schema$1,
1351
+ context: cooptypes.Cooperative.Registry.InvestMembershipConvertation.context,
1352
+ translations: cooptypes.Cooperative.Registry.InvestMembershipConvertation.translations
1353
+ };
1354
+
1355
+ const InvestMembershipConvertation = {
1356
+ __proto__: null,
1357
+ Schema: Schema$1,
1358
+ Template: Template$1,
1359
+ registry_id: registry_id$1
1360
+ };
1361
+
1362
+ const registry_id = cooptypes.Cooperative.Registry.SosediAgreement.registry_id;
1363
+ const Schema = {
1364
+ type: "object",
1365
+ properties: {
1366
+ meta: IMetaJSONSchema,
1367
+ coop: CooperativeSchema,
1368
+ vars: VarsSchema
1369
+ },
1370
+ required: ["meta", "coop", "vars"],
1371
+ additionalProperties: true
1372
+ };
1373
+ const Template = {
1374
+ title: cooptypes.Cooperative.Registry.SosediAgreement.title,
1375
+ description: cooptypes.Cooperative.Registry.SosediAgreement.description,
1376
+ model: Schema,
1377
+ context: cooptypes.Cooperative.Registry.SosediAgreement.context,
1378
+ translations: cooptypes.Cooperative.Registry.SosediAgreement.translations
1379
+ };
1380
+
1381
+ const SosediAgreement = {
1382
+ __proto__: null,
1383
+ Schema: Schema,
1384
+ Template: Template,
1385
+ registry_id: registry_id
1386
+ };
1387
+
1388
+ const Registry = {
1389
+ 1: WalletAgreement,
1390
+ 2: RegulationElectronicSignaturet,
1391
+ 3: PrivacyPolicy,
1392
+ 4: UserAgreement,
1393
+ 50: CoopenomicsAgreement,
1394
+ 100: ParticipantApplication,
1395
+ 101: SelectBranchStatement,
1396
+ 501: DecisionOfParticipantApplication,
1397
+ 599: ProjectFreeDecision,
1398
+ 600: FreeDecision,
1399
+ 699: SosediAgreement,
1400
+ 700: AssetContributionStatement,
1401
+ 701: AssetContributionDecision,
1402
+ 702: AssetContributionAct,
1403
+ 800: ReturnByAssetStatement,
1404
+ 801: ReturnByAssetDecision,
1405
+ 802: ReturnByAssetAct,
1406
+ 1e3: InvestmentAgreement,
1407
+ 1001: InvestByResultStatement,
1408
+ 1002: InvestByResultAct,
1409
+ 1005: InvestByMoneyStatement,
1410
+ 1010: InvestMembershipConvertation
1411
+ };
1412
+
1413
+ var __defProp$c = Object.defineProperty;
1414
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1415
+ var __publicField$c = (obj, key, value) => {
1416
+ __defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
1417
+ return value;
1418
+ };
1419
+ const ajv = new Ajv__default();
1420
+ addFormats__default(ajv);
1421
+ ajv.addFormat("phone", {
1422
+ type: "string",
1423
+ validate: () => true
1424
+ });
1425
+ class Validator {
1426
+ constructor(schema, data) {
1427
+ __publicField$c(this, "schema");
1428
+ __publicField$c(this, "data");
1429
+ this.schema = schema;
1129
1430
  this.data = data;
1130
1431
  }
1131
1432
  validate() {
@@ -1727,7 +2028,7 @@ class PDFService {
1727
2028
 
1728
2029
  const name = "@coopenomics/factory";
1729
2030
  const type = "module";
1730
- const version = "2.2.7";
2031
+ const version = "2.2.9";
1731
2032
  const packageManager = "pnpm@9.0.6";
1732
2033
  const description = "";
1733
2034
  const author = "Alex Ant <chairman.voskhod@gmail.com>";
@@ -1776,7 +2077,7 @@ const dependencies = {
1776
2077
  "ajv-formats": "^3.0.1",
1777
2078
  "ajv-i18n": "^4.2.0",
1778
2079
  axios: "^1.7.2",
1779
- cooptypes: "2.2.7",
2080
+ cooptypes: "2.2.9",
1780
2081
  dotenv: "^16.4.5",
1781
2082
  "eosjs-ecc": "^4.0.7",
1782
2083
  handlebars: "^4.7.8",
@@ -1786,7 +2087,6 @@ const dependencies = {
1786
2087
  mongodb: "^6.6.1",
1787
2088
  nunjucks: "^3.2.4",
1788
2089
  "pdf-lib": "^1.17.1",
1789
- puppeteer: "^22.8.0",
1790
2090
  uuid: "^11.0.0"
1791
2091
  };
1792
2092
  const devDependencies = {
@@ -1818,7 +2118,7 @@ const pnpm = {
1818
2118
  "vite@>=5.1.0 <=5.1.6": ">=5.1.7"
1819
2119
  }
1820
2120
  };
1821
- const gitHead = "3be56ba462561e4dd9e7225bb95b254b20f89042";
2121
+ const gitHead = "51d736eba49ce8aaea6e58c40772254c0c194f46";
1822
2122
  const packageJson = {
1823
2123
  name: name,
1824
2124
  type: type,
@@ -2062,13 +2362,55 @@ class DocFactory {
2062
2362
  middle_name: "middle_name" in data ? data.middle_name : ""
2063
2363
  };
2064
2364
  }
2065
- getCommonUser(data) {
2365
+ extractOrganizationName(input) {
2366
+ const regex = /^\s*(?:[А-ЯЁA-Za-z]{2,4}\s+)?["'«»“”]?([А-ЯЁа-яёA-Za-z0-9\- ]+(?:\s[А-ЯЁа-яёA-Za-z0-9\- ]+)*)["'«»“”]?\s*$/;
2367
+ const match = input.short_name.match(regex);
2368
+ if (!match) {
2369
+ throw new Error(`\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u0437\u0432\u043B\u0435\u0447\u044C \u0438\u043C\u044F \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u0437: "${input.short_name}"`);
2370
+ }
2371
+ return match[1].toUpperCase();
2372
+ }
2373
+ extractPersonalAbbreviatedName(input) {
2374
+ return `${input.first_name[0]}${input.middle_name[0]}${input.last_name[0]}`.toUpperCase();
2375
+ }
2376
+ parseDateForAgreements(created_at, timezone) {
2377
+ const dateWithTimezone = created_at ? moment__default.tz(created_at, "DD.MM.YYYY HH:mm", timezone) : moment__default.tz(timezone);
2378
+ return {
2379
+ day: dateWithTimezone.format("DD"),
2380
+ month: dateWithTimezone.format("MM"),
2381
+ year: dateWithTimezone.format("YY")
2382
+ };
2383
+ }
2384
+ constructUHDContract(created_at) {
2385
+ const date = created_at ? moment__default(created_at, "DD.MM.YYYY HH:mm") : moment__default();
2066
2386
  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 : ""
2387
+ number: `\u0423\u0425\u0414-${date.format("DD")}-${date.format("MM")}-${date.format("YY")}`,
2388
+ date: date.format("DD.MM.YYYY")
2070
2389
  };
2071
2390
  }
2391
+ getCommonUser(input) {
2392
+ switch (input.type) {
2393
+ case "individual":
2394
+ case "entrepreneur": {
2395
+ const data = input.data;
2396
+ return {
2397
+ abbr_full_name: this.extractPersonalAbbreviatedName(data),
2398
+ full_name_or_short_name: this.getFullParticipantName(data),
2399
+ birthdate_or_ogrn: data.birthdate
2400
+ };
2401
+ }
2402
+ case "organization": {
2403
+ const data = input.data;
2404
+ return {
2405
+ abbr_full_name: this.extractOrganizationName(data),
2406
+ full_name_or_short_name: this.getFullParticipantName(data),
2407
+ birthdate_or_ogrn: data.details.ogrn
2408
+ };
2409
+ }
2410
+ default:
2411
+ throw new Error(`cant extract common user data`);
2412
+ }
2413
+ }
2072
2414
  async saveDraft(document) {
2073
2415
  await this.storage.saveDraft(document);
2074
2416
  }
@@ -2116,16 +2458,16 @@ class DocFactory {
2116
2458
  }
2117
2459
  }
2118
2460
 
2119
- let Factory$f = class Factory extends DocFactory {
2461
+ let Factory$l = class Factory extends DocFactory {
2120
2462
  constructor(storage) {
2121
2463
  super(storage);
2122
2464
  }
2123
2465
  async generateDocument(data, options) {
2124
2466
  let template;
2125
2467
  if (process.env.SOURCE === "local") {
2126
- template = Template$f;
2468
+ template = Template$l;
2127
2469
  } else {
2128
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$f, data.block_num);
2470
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$l, data.block_num);
2129
2471
  }
2130
2472
  const meta = await super.getMeta({ title: template.title, ...data });
2131
2473
  const coop = await super.getCooperative(data.coopname, data.block_num);
@@ -2143,16 +2485,16 @@ let Factory$f = class Factory extends DocFactory {
2143
2485
  }
2144
2486
  };
2145
2487
 
2146
- let Factory$e = class Factory extends DocFactory {
2488
+ let Factory$k = class Factory extends DocFactory {
2147
2489
  constructor(storage) {
2148
2490
  super(storage);
2149
2491
  }
2150
2492
  async generateDocument(data, options) {
2151
2493
  let template;
2152
2494
  if (process.env.SOURCE === "local") {
2153
- template = Template$e;
2495
+ template = Template$k;
2154
2496
  } else {
2155
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$e, data.block_num);
2497
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$k, data.block_num);
2156
2498
  }
2157
2499
  const meta = await super.getMeta({ title: template.title, ...data });
2158
2500
  const coop = await super.getCooperative(data.coopname, data.block_num);
@@ -2170,16 +2512,16 @@ let Factory$e = class Factory extends DocFactory {
2170
2512
  }
2171
2513
  };
2172
2514
 
2173
- let Factory$d = class Factory extends DocFactory {
2515
+ let Factory$j = class Factory extends DocFactory {
2174
2516
  constructor(storage) {
2175
2517
  super(storage);
2176
2518
  }
2177
2519
  async generateDocument(data, options) {
2178
2520
  let template;
2179
2521
  if (process.env.SOURCE === "local") {
2180
- template = Template$d;
2522
+ template = Template$j;
2181
2523
  } else {
2182
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$d, data.block_num);
2524
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$j, data.block_num);
2183
2525
  }
2184
2526
  const meta = await super.getMeta({ title: template.title, ...data });
2185
2527
  const coop = await super.getCooperative(data.coopname, data.block_num);
@@ -2197,16 +2539,16 @@ let Factory$d = class Factory extends DocFactory {
2197
2539
  }
2198
2540
  };
2199
2541
 
2200
- let Factory$c = class Factory extends DocFactory {
2542
+ let Factory$i = class Factory extends DocFactory {
2201
2543
  constructor(storage) {
2202
2544
  super(storage);
2203
2545
  }
2204
2546
  async generateDocument(data, options) {
2205
2547
  let template;
2206
2548
  if (process.env.SOURCE === "local") {
2207
- template = Template$c;
2549
+ template = Template$i;
2208
2550
  } else {
2209
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$c, data.block_num);
2551
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$i, data.block_num);
2210
2552
  }
2211
2553
  const meta = await super.getMeta({ title: template.title, ...data });
2212
2554
  const coop = await super.getCooperative(data.coopname, data.block_num);
@@ -2228,16 +2570,16 @@ let Factory$c = class Factory extends DocFactory {
2228
2570
  }
2229
2571
  };
2230
2572
 
2231
- let Factory$b = class Factory extends DocFactory {
2573
+ let Factory$h = class Factory extends DocFactory {
2232
2574
  constructor(storage) {
2233
2575
  super(storage);
2234
2576
  }
2235
2577
  async generateDocument(data, options) {
2236
2578
  let template;
2237
2579
  if (process.env.SOURCE === "local") {
2238
- template = Template$b;
2580
+ template = Template$h;
2239
2581
  } else {
2240
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$b, data.block_num);
2582
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$h, data.block_num);
2241
2583
  }
2242
2584
  const meta = await super.getMeta({ title: template.title, ...data });
2243
2585
  const coop = await super.getCooperative(data.coopname, data.block_num);
@@ -2257,16 +2599,16 @@ let Factory$b = class Factory extends DocFactory {
2257
2599
  }
2258
2600
  };
2259
2601
 
2260
- let Factory$a = class Factory extends DocFactory {
2602
+ let Factory$g = class Factory extends DocFactory {
2261
2603
  constructor(storage) {
2262
2604
  super(storage);
2263
2605
  }
2264
2606
  async generateDocument(data, _options) {
2265
2607
  let template;
2266
2608
  if (process.env.SOURCE === "local") {
2267
- template = Template$8;
2609
+ template = Template$e;
2268
2610
  } else {
2269
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$8, data.block_num);
2611
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$e, data.block_num);
2270
2612
  }
2271
2613
  const user = await super.getUser(data.username, data.block_num);
2272
2614
  const userData = {
@@ -2288,16 +2630,16 @@ let Factory$a = class Factory extends DocFactory {
2288
2630
  }
2289
2631
  };
2290
2632
 
2291
- let Factory$9 = class Factory extends DocFactory {
2633
+ let Factory$f = class Factory extends DocFactory {
2292
2634
  constructor(storage) {
2293
2635
  super(storage);
2294
2636
  }
2295
2637
  async generateDocument(data, _options) {
2296
2638
  let template;
2297
2639
  if (process.env.SOURCE === "local") {
2298
- template = Template$a;
2640
+ template = Template$g;
2299
2641
  } else {
2300
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$a, data.block_num);
2642
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$g, data.block_num);
2301
2643
  }
2302
2644
  const user = await super.getUser(data.username, data.block_num);
2303
2645
  let bank_account = {};
@@ -2347,16 +2689,16 @@ let Factory$9 = class Factory extends DocFactory {
2347
2689
  }
2348
2690
  };
2349
2691
 
2350
- let Factory$8 = class Factory extends DocFactory {
2692
+ let Factory$e = class Factory extends DocFactory {
2351
2693
  constructor(storage) {
2352
2694
  super(storage);
2353
2695
  }
2354
2696
  async generateDocument(data, options) {
2355
2697
  let template;
2356
2698
  if (process.env.SOURCE === "local") {
2357
- template = Template$9;
2699
+ template = Template$f;
2358
2700
  } else {
2359
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$9, data.block_num);
2701
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$f, data.block_num);
2360
2702
  }
2361
2703
  const user = await super.getUser(data.username, data.block_num);
2362
2704
  const userData = {
@@ -2396,16 +2738,16 @@ let Factory$8 = class Factory extends DocFactory {
2396
2738
  }
2397
2739
  };
2398
2740
 
2399
- let Factory$7 = class Factory extends DocFactory {
2741
+ let Factory$d = class Factory extends DocFactory {
2400
2742
  constructor(storage) {
2401
2743
  super(storage);
2402
2744
  }
2403
2745
  async generateDocument(data, options) {
2404
2746
  let template;
2405
2747
  if (process.env.SOURCE === "local") {
2406
- template = Template$7;
2748
+ template = Template$d;
2407
2749
  } else {
2408
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$7, data.block_num);
2750
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$d, data.block_num);
2409
2751
  }
2410
2752
  const user = await this.getUser(data.username, data.block_num);
2411
2753
  const suggester_name = await this.getFullName(user.data);
@@ -2441,16 +2783,16 @@ let Factory$7 = class Factory extends DocFactory {
2441
2783
  }
2442
2784
  };
2443
2785
 
2444
- let Factory$6 = class Factory extends DocFactory {
2786
+ let Factory$c = class Factory extends DocFactory {
2445
2787
  constructor(storage) {
2446
2788
  super(storage);
2447
2789
  }
2448
2790
  async generateDocument(data, options) {
2449
2791
  let template;
2450
2792
  if (process.env.SOURCE === "local") {
2451
- template = Template$6;
2793
+ template = Template$c;
2452
2794
  } else {
2453
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$6, data.block_num);
2795
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$c, data.block_num);
2454
2796
  }
2455
2797
  const user = await this.getUser(data.username, data.block_num);
2456
2798
  const userData = {
@@ -2493,23 +2835,23 @@ let Factory$6 = class Factory extends DocFactory {
2493
2835
  }
2494
2836
  };
2495
2837
 
2496
- let Factory$5 = class Factory extends DocFactory {
2838
+ let Factory$b = class Factory extends DocFactory {
2497
2839
  constructor(storage) {
2498
2840
  super(storage);
2499
2841
  }
2500
2842
  async generateDocument(data, options) {
2501
2843
  let template;
2502
2844
  if (process.env.SOURCE === "local") {
2503
- template = Template$5;
2845
+ template = Template$b;
2504
2846
  } else {
2505
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$5, data.block_num);
2847
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$b, data.block_num);
2506
2848
  }
2507
2849
  const meta = await super.getMeta({ title: template.title, ...data });
2508
2850
  const coop = await super.getCooperative(data.coopname, data.block_num);
2509
2851
  const vars = await super.getVars(data.coopname, data.block_num);
2510
2852
  const user = await super.getUser(data.username, data.block_num);
2511
2853
  const request = data.request;
2512
- const commonUser = this.getCommonUser(user.data);
2854
+ const commonUser = this.getCommonUser(user);
2513
2855
  const combinedData = {
2514
2856
  meta,
2515
2857
  coop,
@@ -2524,23 +2866,23 @@ let Factory$5 = class Factory extends DocFactory {
2524
2866
  }
2525
2867
  };
2526
2868
 
2527
- let Factory$4 = class Factory extends DocFactory {
2869
+ let Factory$a = class Factory extends DocFactory {
2528
2870
  constructor(storage) {
2529
2871
  super(storage);
2530
2872
  }
2531
2873
  async generateDocument(data, options) {
2532
2874
  let template;
2533
2875
  if (process.env.SOURCE === "local") {
2534
- template = Template$4;
2876
+ template = Template$a;
2535
2877
  } else {
2536
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$4, data.block_num);
2878
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$a, data.block_num);
2537
2879
  }
2538
2880
  const meta = await this.getMeta({ title: template.title, ...data });
2539
2881
  const coop = await this.getCooperative(data.coopname, data.block_num);
2540
2882
  const vars = await this.getVars(data.coopname, data.block_num);
2541
2883
  const user = await this.getUser(data.username, data.block_num);
2542
2884
  const request = data.request;
2543
- const commonUser = this.getCommonUser(user.data);
2885
+ const commonUser = this.getCommonUser(user);
2544
2886
  const combinedData = {
2545
2887
  meta,
2546
2888
  coop,
@@ -2555,16 +2897,43 @@ let Factory$4 = class Factory extends DocFactory {
2555
2897
  }
2556
2898
  };
2557
2899
 
2558
- let Factory$3 = class Factory extends DocFactory {
2900
+ let Factory$9 = class Factory extends DocFactory {
2559
2901
  constructor(storage) {
2560
2902
  super(storage);
2561
2903
  }
2562
2904
  async generateDocument(data, options) {
2563
2905
  let template;
2564
2906
  if (process.env.SOURCE === "local") {
2565
- template = Template$3;
2907
+ template = Template;
2566
2908
  } else {
2567
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$3, data.block_num);
2909
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id, data.block_num);
2910
+ }
2911
+ const meta = await super.getMeta({ title: template.title, ...data });
2912
+ const coop = await super.getCooperative(data.coopname, data.block_num);
2913
+ const vars = await super.getVars(data.coopname, data.block_num);
2914
+ const user = await super.getUser(data.username, data.block_num);
2915
+ const combinedData = {
2916
+ meta,
2917
+ coop,
2918
+ vars
2919
+ };
2920
+ await super.validate(combinedData, template.model);
2921
+ const translation = template.translations[meta.lang];
2922
+ const document = await super.generatePDF(user.data, template.context, combinedData, translation, meta, options?.skip_save);
2923
+ return document;
2924
+ }
2925
+ };
2926
+
2927
+ let Factory$8 = class Factory extends DocFactory {
2928
+ constructor(storage) {
2929
+ super(storage);
2930
+ }
2931
+ async generateDocument(data, options) {
2932
+ let template;
2933
+ if (process.env.SOURCE === "local") {
2934
+ template = Template$9;
2935
+ } else {
2936
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$9, data.block_num);
2568
2937
  }
2569
2938
  const meta = await this.getMeta({ title: template.title, ...data });
2570
2939
  const coop = await this.getCooperative(data.coopname, data.block_num);
@@ -2572,7 +2941,7 @@ let Factory$3 = class Factory extends DocFactory {
2572
2941
  const user = await this.getUser(data.username, data.block_num);
2573
2942
  const request = await this.getRequest(data.request_id, data.block_num);
2574
2943
  const decision = await this.getDecision(coop, data.coopname, data.decision_id, meta.created_at);
2575
- const commonUser = this.getCommonUser(user.data);
2944
+ const commonUser = this.getCommonUser(user);
2576
2945
  const combinedData = {
2577
2946
  meta,
2578
2947
  coop,
@@ -2588,16 +2957,16 @@ let Factory$3 = class Factory extends DocFactory {
2588
2957
  }
2589
2958
  };
2590
2959
 
2591
- let Factory$2 = class Factory extends DocFactory {
2960
+ let Factory$7 = class Factory extends DocFactory {
2592
2961
  constructor(storage) {
2593
2962
  super(storage);
2594
2963
  }
2595
2964
  async generateDocument(data, options) {
2596
2965
  let template;
2597
2966
  if (process.env.SOURCE === "local") {
2598
- template = Template$1;
2967
+ template = Template$7;
2599
2968
  } else {
2600
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$1, data.block_num);
2969
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$7, data.block_num);
2601
2970
  }
2602
2971
  const meta = await this.getMeta({ title: template.title, ...data });
2603
2972
  const coop = await this.getCooperative(data.coopname, data.block_num);
@@ -2605,7 +2974,7 @@ let Factory$2 = class Factory extends DocFactory {
2605
2974
  const user = await this.getUser(data.username, data.block_num);
2606
2975
  const request = await this.getRequest(data.request_id, data.block_num);
2607
2976
  const decision = await this.getDecision(coop, data.coopname, data.decision_id, meta.created_at);
2608
- const commonUser = this.getCommonUser(user.data);
2977
+ const commonUser = this.getCommonUser(user);
2609
2978
  const receiver = await this.getUser(data.receiver, data.block_num);
2610
2979
  if (coop.is_branched && !data.braname)
2611
2980
  throw new Error("Branch name is required");
@@ -2632,16 +3001,16 @@ let Factory$2 = class Factory extends DocFactory {
2632
3001
  }
2633
3002
  };
2634
3003
 
2635
- let Factory$1 = class Factory extends DocFactory {
3004
+ let Factory$6 = class Factory extends DocFactory {
2636
3005
  constructor(storage) {
2637
3006
  super(storage);
2638
3007
  }
2639
3008
  async generateDocument(data, options) {
2640
3009
  let template;
2641
3010
  if (process.env.SOURCE === "local") {
2642
- template = Template$2;
3011
+ template = Template$8;
2643
3012
  } else {
2644
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$2, data.block_num);
3013
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$8, data.block_num);
2645
3014
  }
2646
3015
  const meta = await this.getMeta({ title: template.title, ...data });
2647
3016
  const coop = await this.getCooperative(data.coopname, data.block_num);
@@ -2649,7 +3018,7 @@ let Factory$1 = class Factory extends DocFactory {
2649
3018
  const user = await this.getUser(data.username, data.block_num);
2650
3019
  const request = await this.getRequest(data.request_id, data.block_num);
2651
3020
  const decision = await this.getDecision(coop, data.coopname, data.decision_id, meta.created_at);
2652
- const commonUser = this.getCommonUser(user.data);
3021
+ const commonUser = this.getCommonUser(user);
2653
3022
  const combinedData = {
2654
3023
  meta,
2655
3024
  coop,
@@ -2665,16 +3034,16 @@ let Factory$1 = class Factory extends DocFactory {
2665
3034
  }
2666
3035
  };
2667
3036
 
2668
- class Factory extends DocFactory {
3037
+ let Factory$5 = class Factory extends DocFactory {
2669
3038
  constructor(storage) {
2670
3039
  super(storage);
2671
3040
  }
2672
3041
  async generateDocument(data, options) {
2673
3042
  let template;
2674
3043
  if (process.env.SOURCE === "local") {
2675
- template = Template;
3044
+ template = Template$6;
2676
3045
  } else {
2677
- template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id, data.block_num);
3046
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$6, data.block_num);
2678
3047
  }
2679
3048
  const meta = await this.getMeta({ title: template.title, ...data });
2680
3049
  const coop = await this.getCooperative(data.coopname, data.block_num);
@@ -2682,7 +3051,7 @@ class Factory extends DocFactory {
2682
3051
  const user = await this.getUser(data.username, data.block_num);
2683
3052
  const request = await this.getRequest(data.request_id, data.block_num);
2684
3053
  const decision = await this.getDecision(coop, data.coopname, data.decision_id, meta.created_at);
2685
- const commonUser = this.getCommonUser(user.data);
3054
+ const commonUser = this.getCommonUser(user);
2686
3055
  const transmitter = await this.getUser(data.transmitter, data.block_num);
2687
3056
  if (coop.is_branched && !data.braname)
2688
3057
  throw new Error("Branch name is required");
@@ -2707,6 +3076,189 @@ class Factory extends DocFactory {
2707
3076
  const document = await this.generatePDF(commonUser.full_name_or_short_name, template.context, combinedData, translation, meta, options?.skip_save);
2708
3077
  return document;
2709
3078
  }
3079
+ };
3080
+
3081
+ let Factory$4 = class Factory extends DocFactory {
3082
+ constructor(storage) {
3083
+ super(storage);
3084
+ }
3085
+ async generateDocument(data, options) {
3086
+ let template;
3087
+ if (process.env.SOURCE === "local") {
3088
+ template = Template$5;
3089
+ } else {
3090
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$5, data.block_num);
3091
+ }
3092
+ const meta = await this.getMeta({ title: template.title, ...data });
3093
+ const coop = await this.getCooperative(data.coopname, data.block_num);
3094
+ const vars = await this.getVars(data.coopname, data.block_num);
3095
+ const user = await this.getUser(data.username, data.block_num);
3096
+ const commonUser = this.getCommonUser(user);
3097
+ const userData = {
3098
+ [user.type]: {
3099
+ ...user.data
3100
+ }
3101
+ };
3102
+ const uhdContract = this.constructUHDContract(meta.created_at);
3103
+ const subject = data.subject ?? vars.investment_agreement?.subject;
3104
+ const terms = data.terms ?? vars.investment_agreement?.terms;
3105
+ const coopBankAccount = await this.getBankAccount(data.coopname, meta.block_num);
3106
+ const combinedData = {
3107
+ meta,
3108
+ coop,
3109
+ vars,
3110
+ user: commonUser,
3111
+ uhdContract,
3112
+ subject,
3113
+ terms,
3114
+ coopBankAccount,
3115
+ ...userData,
3116
+ type: user.type
3117
+ };
3118
+ await this.validate(combinedData, template.model);
3119
+ const translation = template.translations[meta.lang];
3120
+ const document = await this.generatePDF(commonUser.full_name_or_short_name, template.context, combinedData, translation, meta, options?.skip_save);
3121
+ return document;
3122
+ }
3123
+ };
3124
+
3125
+ let Factory$3 = class Factory extends DocFactory {
3126
+ constructor(storage) {
3127
+ super(storage);
3128
+ }
3129
+ async generateDocument(data, options) {
3130
+ let template;
3131
+ if (process.env.SOURCE === "local") {
3132
+ template = Template$4;
3133
+ } else {
3134
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$4, data.block_num);
3135
+ }
3136
+ const meta = await this.getMeta({ title: template.title, ...data });
3137
+ const coop = await this.getCooperative(data.coopname, data.block_num);
3138
+ const vars = await this.getVars(data.coopname, data.block_num);
3139
+ const user = await this.getUser(data.username, data.block_num);
3140
+ const commonUser = this.getCommonUser(user);
3141
+ const uhdContract = this.constructUHDContract(meta.created_at);
3142
+ const combinedData = {
3143
+ meta,
3144
+ coop,
3145
+ vars,
3146
+ user: commonUser,
3147
+ uhdContract,
3148
+ result: data.result
3149
+ };
3150
+ await this.validate(combinedData, template.model);
3151
+ const translation = template.translations[meta.lang];
3152
+ const document = await this.generatePDF(commonUser.full_name_or_short_name, template.context, combinedData, translation, meta, options?.skip_save);
3153
+ return document;
3154
+ }
3155
+ };
3156
+
3157
+ let Factory$2 = class Factory extends DocFactory {
3158
+ constructor(storage) {
3159
+ super(storage);
3160
+ }
3161
+ async generateDocument(data, options) {
3162
+ let template;
3163
+ if (process.env.SOURCE === "local") {
3164
+ template = Template$3;
3165
+ } else {
3166
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$3, data.block_num);
3167
+ }
3168
+ const meta = await this.getMeta({ title: template.title, ...data });
3169
+ const coop = await this.getCooperative(data.coopname, data.block_num);
3170
+ const vars = await this.getVars(data.coopname, data.block_num);
3171
+ const user = await this.getUser(data.username, data.block_num);
3172
+ const commonUser = this.getCommonUser(user);
3173
+ const uhdContract = this.constructUHDContract(meta.created_at);
3174
+ const decision = await this.getDecision(
3175
+ coop,
3176
+ data.coopname,
3177
+ data.decision_id,
3178
+ meta.created_at
3179
+ );
3180
+ const act = {
3181
+ number: "123"
3182
+ };
3183
+ const combinedData = {
3184
+ meta,
3185
+ coop,
3186
+ vars,
3187
+ decision,
3188
+ user: commonUser,
3189
+ uhdContract,
3190
+ result: data.result,
3191
+ act
3192
+ };
3193
+ await this.validate(combinedData, template.model);
3194
+ const translation = template.translations[meta.lang];
3195
+ const document = await this.generatePDF(commonUser.full_name_or_short_name, template.context, combinedData, translation, meta, options?.skip_save);
3196
+ return document;
3197
+ }
3198
+ };
3199
+
3200
+ let Factory$1 = class Factory extends DocFactory {
3201
+ constructor(storage) {
3202
+ super(storage);
3203
+ }
3204
+ async generateDocument(data, options) {
3205
+ let template;
3206
+ if (process.env.SOURCE === "local") {
3207
+ template = Template$2;
3208
+ } else {
3209
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$2, data.block_num);
3210
+ }
3211
+ const meta = await this.getMeta({ title: template.title, ...data });
3212
+ const coop = await this.getCooperative(data.coopname, data.block_num);
3213
+ const user = await this.getUser(data.username, data.block_num);
3214
+ const commonUser = this.getCommonUser(user);
3215
+ const uhdContract = this.constructUHDContract(meta.created_at);
3216
+ const combinedData = {
3217
+ meta,
3218
+ coop,
3219
+ user: commonUser,
3220
+ uhdContract,
3221
+ contribution: data.contribution
3222
+ };
3223
+ await this.validate(combinedData, template.model);
3224
+ const translation = template.translations[meta.lang];
3225
+ const document = await this.generatePDF(commonUser.full_name_or_short_name, template.context, combinedData, translation, meta, options?.skip_save);
3226
+ return document;
3227
+ }
3228
+ };
3229
+
3230
+ class Factory extends DocFactory {
3231
+ constructor(storage) {
3232
+ super(storage);
3233
+ }
3234
+ async generateDocument(data, options) {
3235
+ let template;
3236
+ if (process.env.SOURCE === "local") {
3237
+ template = Template$1;
3238
+ } else {
3239
+ template = await this.getTemplate(cooptypes.DraftContract.contractName.production, registry_id$1, data.block_num);
3240
+ }
3241
+ const meta = await this.getMeta({ title: template.title, ...data });
3242
+ const coop = await this.getCooperative(data.coopname, data.block_num);
3243
+ const user = await this.getUser(data.username, data.block_num);
3244
+ const commonUser = this.getCommonUser(user);
3245
+ const vars = await this.getVars(data.coopname, data.block_num);
3246
+ const uhdContract = this.constructUHDContract(meta.created_at);
3247
+ const appendix = { number: "123" };
3248
+ const combinedData = {
3249
+ meta,
3250
+ coop,
3251
+ vars,
3252
+ user: commonUser,
3253
+ uhdContract,
3254
+ contribution: data.contribution,
3255
+ appendix
3256
+ };
3257
+ await this.validate(combinedData, template.model);
3258
+ const translation = template.translations[meta.lang];
3259
+ const document = await this.generatePDF(commonUser.full_name_or_short_name, template.context, combinedData, translation, meta, options?.skip_save);
3260
+ return document;
3261
+ }
2710
3262
  }
2711
3263
 
2712
3264
  var __defProp$1 = Object.defineProperty;
@@ -2771,38 +3323,50 @@ class Generator {
2771
3323
  async connect(mongoUri) {
2772
3324
  this.storage = new MongoDBConnector(mongoUri);
2773
3325
  this.factories = {
2774
- [registry_id$f]: new Factory$f(this.storage),
3326
+ [registry_id$l]: new Factory$l(this.storage),
2775
3327
  // 1
2776
- [registry_id$e]: new Factory$e(this.storage),
3328
+ [registry_id$k]: new Factory$k(this.storage),
2777
3329
  // 2
2778
- [registry_id$d]: new Factory$d(this.storage),
3330
+ [registry_id$j]: new Factory$j(this.storage),
2779
3331
  // 3
2780
- [registry_id$c]: new Factory$c(this.storage),
3332
+ [registry_id$i]: new Factory$i(this.storage),
2781
3333
  // 4
2782
- [registry_id$b]: new Factory$b(this.storage),
3334
+ [registry_id$h]: new Factory$h(this.storage),
2783
3335
  // 50
2784
- [registry_id$a]: new Factory$9(this.storage),
3336
+ [registry_id$g]: new Factory$f(this.storage),
2785
3337
  // 100
2786
- [registry_id$8]: new Factory$a(this.storage),
3338
+ [registry_id$e]: new Factory$g(this.storage),
2787
3339
  // 101
2788
- [registry_id$9]: new Factory$8(this.storage),
3340
+ [registry_id$f]: new Factory$e(this.storage),
2789
3341
  // 501
2790
- [registry_id$7]: new Factory$7(this.storage),
3342
+ [registry_id$d]: new Factory$d(this.storage),
2791
3343
  // 599
2792
- [registry_id$6]: new Factory$6(this.storage),
3344
+ [registry_id$c]: new Factory$c(this.storage),
2793
3345
  // 600
2794
- [registry_id$5]: new Factory$5(this.storage),
3346
+ [registry_id]: new Factory$9(this.storage),
3347
+ // 699
3348
+ [registry_id$b]: new Factory$b(this.storage),
2795
3349
  // 700
2796
- [registry_id$4]: new Factory$4(this.storage),
3350
+ [registry_id$a]: new Factory$a(this.storage),
2797
3351
  // 800
2798
- [registry_id$2]: new Factory$1(this.storage),
3352
+ [registry_id$8]: new Factory$6(this.storage),
2799
3353
  // 801
2800
- [registry_id]: new Factory(this.storage),
3354
+ [registry_id$6]: new Factory$5(this.storage),
2801
3355
  // 802
2802
- [registry_id$3]: new Factory$3(this.storage),
3356
+ [registry_id$9]: new Factory$8(this.storage),
2803
3357
  // 701
2804
- [registry_id$1]: new Factory$2(this.storage)
3358
+ [registry_id$7]: new Factory$7(this.storage),
2805
3359
  // 702
3360
+ [registry_id$5]: new Factory$4(this.storage),
3361
+ // 1000
3362
+ [registry_id$4]: new Factory$3(this.storage),
3363
+ // 1001
3364
+ [registry_id$3]: new Factory$2(this.storage),
3365
+ // 1002
3366
+ [registry_id$2]: new Factory$1(this.storage),
3367
+ // 1005
3368
+ [registry_id$1]: new Factory(this.storage)
3369
+ // 1010
2806
3370
  };
2807
3371
  await this.storage.connect();
2808
3372
  }
@@ -2876,6 +3440,11 @@ exports.CooperativeSchema = CooperativeSchema;
2876
3440
  exports.DecisionOfParticipantApplication = DecisionOfParticipantApplication;
2877
3441
  exports.FreeDecision = FreeDecision;
2878
3442
  exports.Generator = Generator;
3443
+ exports.InvestByMoneyStatement = InvestByMoneyStatement;
3444
+ exports.InvestByResultAct = InvestByResultAct;
3445
+ exports.InvestByResultStatement = InvestByResultStatement;
3446
+ exports.InvestMembershipConvertation = InvestMembershipConvertation;
3447
+ exports.InvestmentAgreement = InvestmentAgreement;
2879
3448
  exports.ParticipantApplication = ParticipantApplication;
2880
3449
  exports.PrivacyPolicy = PrivacyPolicy;
2881
3450
  exports.ProjectFreeDecision = ProjectFreeDecision;
@@ -2885,6 +3454,7 @@ exports.ReturnByAssetAct = ReturnByAssetAct;
2885
3454
  exports.ReturnByAssetDecision = ReturnByAssetDecision;
2886
3455
  exports.ReturnByAssetStatement = ReturnByAssetStatement;
2887
3456
  exports.SelectBranchStatement = SelectBranchStatement;
3457
+ exports.SosediAgreement = SosediAgreement;
2888
3458
  exports.UserAgreement = UserAgreement;
2889
3459
  exports.VarsSchema = VarsSchema;
2890
3460
  exports.WalletAgreement = WalletAgreement;