@coopenomics/extension-kit 2026.11.6-2 → 2026.11.20

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
@@ -207,15 +207,15 @@ function hasServerSecret(headers) {
207
207
  return a.length === b.length && node_crypto.timingSafeEqual(a, b);
208
208
  }
209
209
 
210
- var __defProp$q = Object.defineProperty;
211
- var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
212
- var __decorateClass$q = (decorators, target, key, kind) => {
213
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
210
+ var __defProp$r = Object.defineProperty;
211
+ var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
212
+ var __decorateClass$r = (decorators, target, key, kind) => {
213
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
214
214
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
215
215
  if (decorator = decorators[i])
216
216
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
217
217
  if (kind && result)
218
- __defProp$q(target, key, result);
218
+ __defProp$r(target, key, result);
219
219
  return result;
220
220
  };
221
221
  const ACTIVE_USER_STATUS = "active";
@@ -240,7 +240,7 @@ exports.GqlJwtAuthGuard = class GqlJwtAuthGuard extends passport.AuthGuard("jwt"
240
240
  return super.canActivate(context);
241
241
  }
242
242
  };
243
- exports.GqlJwtAuthGuard = __decorateClass$q([
243
+ exports.GqlJwtAuthGuard = __decorateClass$r([
244
244
  common.Injectable()
245
245
  ], exports.GqlJwtAuthGuard);
246
246
  function hasAuthorizationHeader(headers) {
@@ -265,7 +265,7 @@ exports.OptionalGqlJwtAuthGuard = class OptionalGqlJwtAuthGuard extends passport
265
265
  throw DomainError.unauthorized("KIT_SESSION_ENDED");
266
266
  }
267
267
  };
268
- exports.OptionalGqlJwtAuthGuard = __decorateClass$q([
268
+ exports.OptionalGqlJwtAuthGuard = __decorateClass$r([
269
269
  common.Injectable()
270
270
  ], exports.OptionalGqlJwtAuthGuard);
271
271
  exports.HttpJwtAuthGuard = class HttpJwtAuthGuard extends passport.AuthGuard("jwt") {
@@ -280,7 +280,7 @@ exports.HttpJwtAuthGuard = class HttpJwtAuthGuard extends passport.AuthGuard("jw
280
280
  return super.canActivate(context);
281
281
  }
282
282
  };
283
- exports.HttpJwtAuthGuard = __decorateClass$q([
283
+ exports.HttpJwtAuthGuard = __decorateClass$r([
284
284
  common.Injectable()
285
285
  ], exports.HttpJwtAuthGuard);
286
286
  exports.ActiveUserStatusGuard = class ActiveUserStatusGuard {
@@ -300,7 +300,7 @@ exports.ActiveUserStatusGuard = class ActiveUserStatusGuard {
300
300
  return true;
301
301
  }
302
302
  };
303
- exports.ActiveUserStatusGuard = __decorateClass$q([
303
+ exports.ActiveUserStatusGuard = __decorateClass$r([
304
304
  common.Injectable()
305
305
  ], exports.ActiveUserStatusGuard);
306
306
 
@@ -499,15 +499,15 @@ const GrantedScope = common.createParamDecorator((_data, context) => {
499
499
  return request?.[GRANTED_SCOPE_KEY] ?? { scopes: [] };
500
500
  });
501
501
 
502
- var __defProp$p = Object.defineProperty;
503
- var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
504
- var __decorateClass$p = (decorators, target, key, kind) => {
505
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
502
+ var __defProp$q = Object.defineProperty;
503
+ var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
504
+ var __decorateClass$q = (decorators, target, key, kind) => {
505
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
506
506
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
507
507
  if (decorator = decorators[i])
508
508
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
509
509
  if (kind && result)
510
- __defProp$p(target, key, result);
510
+ __defProp$q(target, key, result);
511
511
  return result;
512
512
  };
513
513
  var __decorateParam = (index, decorator) => (target, key) => decorator(target, key, index);
@@ -662,21 +662,21 @@ exports.RightsGuard = class RightsGuard {
662
662
  return true;
663
663
  }
664
664
  };
665
- exports.RightsGuard = __decorateClass$p([
665
+ exports.RightsGuard = __decorateClass$q([
666
666
  common.Injectable(),
667
667
  __decorateParam(0, common.Inject(core.Reflector)),
668
668
  __decorateParam(1, common.Inject(APP_RIGHTS))
669
669
  ], exports.RightsGuard);
670
670
 
671
- var __defProp$o = Object.defineProperty;
672
- var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
673
- var __decorateClass$o = (decorators, target, key, kind) => {
674
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
671
+ var __defProp$p = Object.defineProperty;
672
+ var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
673
+ var __decorateClass$p = (decorators, target, key, kind) => {
674
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
675
675
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
676
676
  if (decorator = decorators[i])
677
677
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
678
678
  if (kind && result)
679
- __defProp$o(target, key, result);
679
+ __defProp$p(target, key, result);
680
680
  return result;
681
681
  };
682
682
  exports.BaseExtensionModule = class BaseExtensionModule {
@@ -687,34 +687,34 @@ exports.BaseExtensionModule = class BaseExtensionModule {
687
687
  async onModuleInit() {
688
688
  }
689
689
  };
690
- exports.BaseExtensionModule = __decorateClass$o([
690
+ exports.BaseExtensionModule = __decorateClass$p([
691
691
  common.Injectable()
692
692
  ], exports.BaseExtensionModule);
693
693
 
694
- var __defProp$n = Object.defineProperty;
695
- var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
696
- var __decorateClass$n = (decorators, target, key, kind) => {
697
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
694
+ var __defProp$o = Object.defineProperty;
695
+ var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
696
+ var __decorateClass$o = (decorators, target, key, kind) => {
697
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
698
698
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
699
699
  if (decorator = decorators[i])
700
700
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
701
701
  if (kind && result)
702
- __defProp$n(target, key, result);
702
+ __defProp$o(target, key, result);
703
703
  return result;
704
704
  };
705
705
  exports.PaymentProvider = class PaymentProvider extends exports.BaseExtensionModule {
706
706
  };
707
- exports.PaymentProvider = __decorateClass$n([
707
+ exports.PaymentProvider = __decorateClass$o([
708
708
  common.Injectable()
709
709
  ], exports.PaymentProvider);
710
710
  exports.PollingProvider = class PollingProvider extends exports.PaymentProvider {
711
711
  };
712
- exports.PollingProvider = __decorateClass$n([
712
+ exports.PollingProvider = __decorateClass$o([
713
713
  common.Injectable()
714
714
  ], exports.PollingProvider);
715
715
  exports.IPNProvider = class IPNProvider extends exports.PaymentProvider {
716
716
  };
717
- exports.IPNProvider = __decorateClass$n([
717
+ exports.IPNProvider = __decorateClass$o([
718
718
  common.Injectable()
719
719
  ], exports.IPNProvider);
720
720
 
@@ -779,48 +779,48 @@ function bucketProvidersFor(fileStoragePortToken, consumers) {
779
779
  });
780
780
  }
781
781
 
782
- var __defProp$m = Object.defineProperty;
783
- var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
784
- var __decorateClass$m = (decorators, target, key, kind) => {
785
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
782
+ var __defProp$n = Object.defineProperty;
783
+ var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
784
+ var __decorateClass$n = (decorators, target, key, kind) => {
785
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
786
786
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
787
787
  if (decorator = decorators[i])
788
788
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
789
789
  if (kind && result)
790
- __defProp$m(target, key, result);
790
+ __defProp$n(target, key, result);
791
791
  return result;
792
792
  };
793
793
  exports.SignatureInfoInputDTO = class SignatureInfoInputDTO {
794
794
  };
795
- __decorateClass$m([
795
+ __decorateClass$n([
796
796
  graphql.Field(() => Number, { description: "\u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440 \u043D\u043E\u043C\u0435\u0440\u0430 \u043F\u043E\u0434\u043F\u0438\u0441\u0438" }),
797
797
  classValidator.IsNumber()
798
798
  ], exports.SignatureInfoInputDTO.prototype, "id", 2);
799
- __decorateClass$m([
799
+ __decorateClass$n([
800
800
  graphql.Field(() => String, { description: "\u0410\u043A\u043A\u0430\u0443\u043D\u0442 \u043F\u043E\u0434\u043F\u0438\u0441\u0430\u0432\u0448\u0435\u0433\u043E" }),
801
801
  classValidator.IsString()
802
802
  ], exports.SignatureInfoInputDTO.prototype, "signer", 2);
803
- __decorateClass$m([
803
+ __decorateClass$n([
804
804
  graphql.Field(() => String, { description: "\u041F\u0443\u0431\u043B\u0438\u0447\u043D\u044B\u0439 \u043A\u043B\u044E\u0447" }),
805
805
  classValidator.IsString()
806
806
  ], exports.SignatureInfoInputDTO.prototype, "public_key", 2);
807
- __decorateClass$m([
807
+ __decorateClass$n([
808
808
  graphql.Field(() => String, { description: "\u041F\u043E\u0434\u043F\u0438\u0441\u044C \u0445\u044D\u0448\u0430" }),
809
809
  classValidator.IsString()
810
810
  ], exports.SignatureInfoInputDTO.prototype, "signature", 2);
811
- __decorateClass$m([
811
+ __decorateClass$n([
812
812
  graphql.Field(() => String, { description: "\u0412\u0440\u0435\u043C\u044F \u043F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u0438\u044F" }),
813
813
  classValidator.IsString()
814
814
  ], exports.SignatureInfoInputDTO.prototype, "signed_at", 2);
815
- __decorateClass$m([
815
+ __decorateClass$n([
816
816
  graphql.Field(() => String, { description: "\u041F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u043D\u044B\u0439 \u0445\u044D\u0448" }),
817
817
  classValidator.IsString()
818
818
  ], exports.SignatureInfoInputDTO.prototype, "signed_hash", 2);
819
- __decorateClass$m([
819
+ __decorateClass$n([
820
820
  graphql.Field(() => String, { description: "\u041C\u0435\u0442\u0430-\u0434\u0430\u043D\u043D\u044B\u0435 \u043F\u043E\u0434\u043F\u0438\u0441\u0438" }),
821
821
  classValidator.IsString()
822
822
  ], exports.SignatureInfoInputDTO.prototype, "meta", 2);
823
- exports.SignatureInfoInputDTO = __decorateClass$m([
823
+ exports.SignatureInfoInputDTO = __decorateClass$n([
824
824
  graphql.InputType("SignatureInfoInput")
825
825
  ], exports.SignatureInfoInputDTO);
826
826
  exports.SignedDigitalDocumentInputDTO = class SignedDigitalDocumentInputDTO {
@@ -841,33 +841,33 @@ exports.SignedDigitalDocumentInputDTO = class SignedDigitalDocumentInputDTO {
841
841
  };
842
842
  }
843
843
  };
844
- __decorateClass$m([
844
+ __decorateClass$n([
845
845
  graphql.Field(() => String, { description: "\u0412\u0435\u0440\u0441\u0438\u044F \u0441\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u0430 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430" }),
846
846
  classValidator.IsString()
847
847
  ], exports.SignedDigitalDocumentInputDTO.prototype, "version", 2);
848
- __decorateClass$m([
848
+ __decorateClass$n([
849
849
  graphql.Field(() => String, { description: "\u041E\u0431\u0449\u0438\u0439 \u0445\u044D\u0448 (doc_hash + meta_hash)" }),
850
850
  classValidator.IsString()
851
851
  ], exports.SignedDigitalDocumentInputDTO.prototype, "hash", 2);
852
- __decorateClass$m([
852
+ __decorateClass$n([
853
853
  graphql.Field(() => String, { description: "\u0425\u044D\u0448 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0433\u043E \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430" }),
854
854
  classValidator.IsString()
855
855
  ], exports.SignedDigitalDocumentInputDTO.prototype, "doc_hash", 2);
856
- __decorateClass$m([
856
+ __decorateClass$n([
857
857
  graphql.Field(() => String, { description: "\u0425\u044D\u0448 \u043C\u0435\u0442\u0430-\u0434\u0430\u043D\u043D\u044B\u0445" }),
858
858
  classValidator.IsString()
859
859
  ], exports.SignedDigitalDocumentInputDTO.prototype, "meta_hash", 2);
860
- __decorateClass$m([
860
+ __decorateClass$n([
861
861
  graphql.Field(() => GraphQLJSON.GraphQLJSON, { description: "\u041C\u0435\u0442\u0430\u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430" })
862
862
  ], exports.SignedDigitalDocumentInputDTO.prototype, "meta", 2);
863
- __decorateClass$m([
863
+ __decorateClass$n([
864
864
  graphql.Field(() => [exports.SignatureInfoInputDTO], { description: "\u0412\u0435\u043A\u0442\u043E\u0440 \u043F\u043E\u0434\u043F\u0438\u0441\u0435\u0439" }),
865
865
  classValidator.IsArray(),
866
866
  classValidator.ArrayMinSize(1),
867
867
  classValidator.ValidateNested({ each: true }),
868
868
  classTransformer.Type(() => exports.SignatureInfoInputDTO)
869
869
  ], exports.SignedDigitalDocumentInputDTO.prototype, "signatures", 2);
870
- exports.SignedDigitalDocumentInputDTO = __decorateClass$m([
870
+ exports.SignedDigitalDocumentInputDTO = __decorateClass$n([
871
871
  graphql.InputType("SignedDigitalDocumentInput")
872
872
  ], exports.SignedDigitalDocumentInputDTO);
873
873
 
@@ -880,65 +880,65 @@ graphql.registerEnumType(LangType, {
880
880
  description: "\u042F\u0437\u044B\u043A \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430"
881
881
  });
882
882
 
883
- var __defProp$l = Object.defineProperty;
884
- var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
885
- var __decorateClass$l = (decorators, target, key, kind) => {
886
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$l(target, key) : target;
883
+ var __defProp$m = Object.defineProperty;
884
+ var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
885
+ var __decorateClass$m = (decorators, target, key, kind) => {
886
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
887
887
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
888
888
  if (decorator = decorators[i])
889
889
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
890
890
  if (kind && result)
891
- __defProp$l(target, key, result);
891
+ __defProp$m(target, key, result);
892
892
  return result;
893
893
  };
894
894
  exports.MetaDocumentInputDTO = class MetaDocumentInputDTO {
895
895
  };
896
- __decorateClass$l([
896
+ __decorateClass$m([
897
897
  graphql.Field(() => String, { description: "\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430" }),
898
898
  classValidator.IsString()
899
899
  ], exports.MetaDocumentInputDTO.prototype, "title", 2);
900
- __decorateClass$l([
900
+ __decorateClass$m([
901
901
  graphql.Field(() => graphql.Int, { description: "ID \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430 \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435" }),
902
902
  classValidator.IsNumber()
903
903
  ], exports.MetaDocumentInputDTO.prototype, "registry_id", 2);
904
- __decorateClass$l([
904
+ __decorateClass$m([
905
905
  graphql.Field(() => String, { description: "\u042F\u0437\u044B\u043A \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430" }),
906
906
  classValidator.IsEnum(LangType)
907
907
  ], exports.MetaDocumentInputDTO.prototype, "lang", 2);
908
- __decorateClass$l([
908
+ __decorateClass$m([
909
909
  graphql.Field(() => String, { description: "\u0418\u043C\u044F \u0433\u0435\u043D\u0435\u0440\u0430\u0442\u043E\u0440\u0430, \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043D\u043E\u0433\u043E \u0434\u043B\u044F \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430" }),
910
910
  classValidator.IsString()
911
911
  ], exports.MetaDocumentInputDTO.prototype, "generator", 2);
912
- __decorateClass$l([
912
+ __decorateClass$m([
913
913
  graphql.Field(() => String, { description: "\u0412\u0435\u0440\u0441\u0438\u044F \u0433\u0435\u043D\u0435\u0440\u0430\u0442\u043E\u0440\u0430, \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043D\u043E\u0433\u043E \u0434\u043B\u044F \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430" }),
914
914
  classValidator.IsString()
915
915
  ], exports.MetaDocumentInputDTO.prototype, "version", 2);
916
- __decorateClass$l([
916
+ __decorateClass$m([
917
917
  graphql.Field(() => String, { description: "\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u043A\u043E\u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u0430, \u0441\u0432\u044F\u0437\u0430\u043D\u043D\u043E\u0435 \u0441 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u043C" }),
918
918
  classValidator.IsString()
919
919
  ], exports.MetaDocumentInputDTO.prototype, "coopname", 2);
920
- __decorateClass$l([
920
+ __decorateClass$m([
921
921
  graphql.Field(() => String, { description: "\u0418\u043C\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F, \u0441\u043E\u0437\u0434\u0430\u0432\u0448\u0435\u0433\u043E \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442" }),
922
922
  classValidator.IsString()
923
923
  ], exports.MetaDocumentInputDTO.prototype, "username", 2);
924
- __decorateClass$l([
924
+ __decorateClass$m([
925
925
  graphql.Field(() => String, { description: "\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430" }),
926
926
  classValidator.IsString()
927
927
  ], exports.MetaDocumentInputDTO.prototype, "created_at", 2);
928
- __decorateClass$l([
928
+ __decorateClass$m([
929
929
  graphql.Field(() => graphql.Int, { description: "\u041D\u043E\u043C\u0435\u0440 \u0431\u043B\u043E\u043A\u0430, \u043D\u0430 \u043A\u043E\u0442\u043E\u0440\u043E\u043C \u0431\u044B\u043B \u0441\u043E\u0437\u0434\u0430\u043D \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442" }),
930
930
  classValidator.IsInt()
931
931
  ], exports.MetaDocumentInputDTO.prototype, "block_num", 2);
932
- __decorateClass$l([
932
+ __decorateClass$m([
933
933
  graphql.Field(() => String, { description: "\u0427\u0430\u0441\u043E\u0432\u043E\u0439 \u043F\u043E\u044F\u0441, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u043C \u0431\u044B\u043B \u0441\u043E\u0437\u0434\u0430\u043D \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442" }),
934
934
  classValidator.IsString()
935
935
  ], exports.MetaDocumentInputDTO.prototype, "timezone", 2);
936
- __decorateClass$l([
936
+ __decorateClass$m([
937
937
  graphql.Field(() => [String], { description: "\u0421\u0441\u044B\u043B\u043A\u0438, \u0441\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u0441 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u043C" }),
938
938
  classValidator.IsArray(),
939
939
  classValidator.IsString({ each: true })
940
940
  ], exports.MetaDocumentInputDTO.prototype, "links", 2);
941
- __decorateClass$l([
941
+ __decorateClass$m([
942
942
  graphql.Field(() => String, {
943
943
  nullable: true,
944
944
  description: "\u0412\u0435\u0440\u0441\u0438\u044F \u0441\u0431\u043E\u0440\u0449\u0438\u043A\u0430 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430 (major.minor); \u0443 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432, \u0441\u043E\u0431\u0440\u0430\u043D\u043D\u044B\u0445 \u0434\u043E \u0435\u0451 \u043F\u043E\u044F\u0432\u043B\u0435\u043D\u0438\u044F, \u043D\u0435 \u0437\u0430\u0434\u0430\u043D\u0430"
@@ -946,128 +946,128 @@ __decorateClass$l([
946
946
  classValidator.IsOptional(),
947
947
  classValidator.IsString()
948
948
  ], exports.MetaDocumentInputDTO.prototype, "builder", 2);
949
- exports.MetaDocumentInputDTO = __decorateClass$l([
949
+ exports.MetaDocumentInputDTO = __decorateClass$m([
950
950
  graphql.InputType("MetaDocumentInput")
951
951
  ], exports.MetaDocumentInputDTO);
952
952
 
953
- var __defProp$k = Object.defineProperty;
954
- var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
955
- var __decorateClass$k = (decorators, target, key, kind) => {
956
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$k(target, key) : target;
953
+ var __defProp$l = Object.defineProperty;
954
+ var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
955
+ var __decorateClass$l = (decorators, target, key, kind) => {
956
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$l(target, key) : target;
957
957
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
958
958
  if (decorator = decorators[i])
959
959
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
960
960
  if (kind && result)
961
- __defProp$k(target, key, result);
961
+ __defProp$l(target, key, result);
962
962
  return result;
963
963
  };
964
964
  exports.GenerateMetaDocumentInputDTO = class GenerateMetaDocumentInputDTO {
965
965
  };
966
- __decorateClass$k([
966
+ __decorateClass$l([
967
967
  graphql.Field(() => String, { description: "\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", nullable: true }),
968
968
  classValidator.IsOptional(),
969
969
  classValidator.IsString()
970
970
  ], exports.GenerateMetaDocumentInputDTO.prototype, "title", 2);
971
- __decorateClass$k([
971
+ __decorateClass$l([
972
972
  graphql.Field(() => graphql.Int, { description: "ID \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430 \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435" }),
973
973
  classValidator.IsNumber()
974
974
  ], exports.GenerateMetaDocumentInputDTO.prototype, "registry_id", 2);
975
- __decorateClass$k([
975
+ __decorateClass$l([
976
976
  graphql.Field(() => String, { description: "\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u043A\u043E\u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u0430, \u0441\u0432\u044F\u0437\u0430\u043D\u043D\u043E\u0435 \u0441 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u043C" }),
977
977
  classValidator.IsString()
978
978
  ], exports.GenerateMetaDocumentInputDTO.prototype, "coopname", 2);
979
- __decorateClass$k([
979
+ __decorateClass$l([
980
980
  graphql.Field(() => String, { description: "\u0418\u043C\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F, \u0441\u043E\u0437\u0434\u0430\u0432\u0448\u0435\u0433\u043E \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442" }),
981
981
  classValidator.IsString()
982
982
  ], exports.GenerateMetaDocumentInputDTO.prototype, "username", 2);
983
- __decorateClass$k([
983
+ __decorateClass$l([
984
984
  graphql.Field(() => String, { description: "\u042F\u0437\u044B\u043A \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", nullable: true }),
985
985
  classValidator.IsOptional(),
986
986
  classValidator.IsEnum(LangType)
987
987
  ], exports.GenerateMetaDocumentInputDTO.prototype, "lang", 2);
988
- __decorateClass$k([
988
+ __decorateClass$l([
989
989
  graphql.Field(() => String, { description: "\u0418\u043C\u044F \u0433\u0435\u043D\u0435\u0440\u0430\u0442\u043E\u0440\u0430, \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043D\u043E\u0433\u043E \u0434\u043B\u044F \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", nullable: true }),
990
990
  classValidator.IsOptional(),
991
991
  classValidator.IsString()
992
992
  ], exports.GenerateMetaDocumentInputDTO.prototype, "generator", 2);
993
- __decorateClass$k([
993
+ __decorateClass$l([
994
994
  graphql.Field(() => String, { description: "\u0412\u0435\u0440\u0441\u0438\u044F \u0433\u0435\u043D\u0435\u0440\u0430\u0442\u043E\u0440\u0430, \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043D\u043E\u0433\u043E \u0434\u043B\u044F \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", nullable: true }),
995
995
  classValidator.IsOptional(),
996
996
  classValidator.IsString()
997
997
  ], exports.GenerateMetaDocumentInputDTO.prototype, "version", 2);
998
- __decorateClass$k([
998
+ __decorateClass$l([
999
999
  graphql.Field(() => String, { description: "\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", nullable: true }),
1000
1000
  classValidator.IsOptional()
1001
1001
  ], exports.GenerateMetaDocumentInputDTO.prototype, "created_at", 2);
1002
- __decorateClass$k([
1002
+ __decorateClass$l([
1003
1003
  graphql.Field(() => graphql.Int, { description: "\u041D\u043E\u043C\u0435\u0440 \u0431\u043B\u043E\u043A\u0430, \u043D\u0430 \u043A\u043E\u0442\u043E\u0440\u043E\u043C \u0431\u044B\u043B \u0441\u043E\u0437\u0434\u0430\u043D \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442", nullable: true }),
1004
1004
  classValidator.IsOptional(),
1005
1005
  classValidator.IsInt()
1006
1006
  ], exports.GenerateMetaDocumentInputDTO.prototype, "block_num", 2);
1007
- __decorateClass$k([
1007
+ __decorateClass$l([
1008
1008
  graphql.Field(() => String, { description: "\u0427\u0430\u0441\u043E\u0432\u043E\u0439 \u043F\u043E\u044F\u0441, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u043C \u0431\u044B\u043B \u0441\u043E\u0437\u0434\u0430\u043D \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442", nullable: true }),
1009
1009
  classValidator.IsOptional(),
1010
1010
  classValidator.IsString()
1011
1011
  ], exports.GenerateMetaDocumentInputDTO.prototype, "timezone", 2);
1012
- __decorateClass$k([
1012
+ __decorateClass$l([
1013
1013
  graphql.Field(() => [String], { description: "\u0421\u0441\u044B\u043B\u043A\u0438, \u0441\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u0441 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u043C", nullable: true }),
1014
1014
  classValidator.IsOptional(),
1015
1015
  classValidator.IsArray(),
1016
1016
  classValidator.IsString({ each: true })
1017
1017
  ], exports.GenerateMetaDocumentInputDTO.prototype, "links", 2);
1018
- exports.GenerateMetaDocumentInputDTO = __decorateClass$k([
1018
+ exports.GenerateMetaDocumentInputDTO = __decorateClass$l([
1019
1019
  graphql.InputType("GenerateMetaDocumentInput")
1020
1020
  ], exports.GenerateMetaDocumentInputDTO);
1021
1021
 
1022
- var __defProp$j = Object.defineProperty;
1023
- var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
1024
- var __decorateClass$j = (decorators, target, key, kind) => {
1025
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
1022
+ var __defProp$k = Object.defineProperty;
1023
+ var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
1024
+ var __decorateClass$k = (decorators, target, key, kind) => {
1025
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$k(target, key) : target;
1026
1026
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
1027
1027
  if (decorator = decorators[i])
1028
1028
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
1029
1029
  if (kind && result)
1030
- __defProp$j(target, key, result);
1030
+ __defProp$k(target, key, result);
1031
1031
  return result;
1032
1032
  };
1033
1033
  let ExpenseProposalItemInputDTO = class {
1034
1034
  };
1035
- __decorateClass$j([
1035
+ __decorateClass$k([
1036
1036
  graphql.Field(() => String, { description: "\u041F\u043E\u0440\u044F\u0434\u043A\u043E\u0432\u044B\u0439 \u043D\u043E\u043C\u0435\u0440 \u0441\u0442\u0440\u043E\u043A\u0438" }),
1037
1037
  classValidator.IsString()
1038
1038
  ], ExpenseProposalItemInputDTO.prototype, "number", 2);
1039
- __decorateClass$j([
1039
+ __decorateClass$k([
1040
1040
  graphql.Field(() => String, { description: "\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u0440\u0430\u0441\u0445\u043E\u0434\u0430" }),
1041
1041
  classValidator.IsString()
1042
1042
  ], ExpenseProposalItemInputDTO.prototype, "description", 2);
1043
- __decorateClass$j([
1043
+ __decorateClass$k([
1044
1044
  graphql.Field(() => String, { description: "\u0421\u0443\u043C\u043C\u0430 \u0441\u0442\u0440\u043E\u043A\u0438" }),
1045
1045
  classValidator.IsString()
1046
1046
  ], ExpenseProposalItemInputDTO.prototype, "amount", 2);
1047
- __decorateClass$j([
1047
+ __decorateClass$k([
1048
1048
  graphql.Field(() => String, { description: "\u0422\u0438\u043F \u043F\u043E\u043B\u0443\u0447\u0430\u0442\u0435\u043B\u044F (SELF / MEMBER / ORG)" }),
1049
1049
  classValidator.IsString()
1050
1050
  ], ExpenseProposalItemInputDTO.prototype, "recipient_type", 2);
1051
- __decorateClass$j([
1051
+ __decorateClass$k([
1052
1052
  graphql.Field(() => String, { description: "\u0421\u043F\u043E\u0441\u043E\u0431 \u043E\u043F\u043B\u0430\u0442\u044B (ADVANCE / DIRECT)" }),
1053
1053
  classValidator.IsString()
1054
1054
  ], ExpenseProposalItemInputDTO.prototype, "mechanics", 2);
1055
- __decorateClass$j([
1055
+ __decorateClass$k([
1056
1056
  graphql.Field(() => String, { description: "\u0418\u043C\u044F \u043F\u043E\u043B\u0443\u0447\u0430\u0442\u0435\u043B\u044F", nullable: true }),
1057
1057
  classValidator.IsOptional(),
1058
1058
  classValidator.IsString()
1059
1059
  ], ExpenseProposalItemInputDTO.prototype, "recipient_name", 2);
1060
- __decorateClass$j([
1060
+ __decorateClass$k([
1061
1061
  graphql.Field(() => String, { description: "\u0420\u0435\u043A\u0432\u0438\u0437\u0438\u0442\u044B \u043F\u043E\u043B\u0443\u0447\u0430\u0442\u0435\u043B\u044F", nullable: true }),
1062
1062
  classValidator.IsOptional(),
1063
1063
  classValidator.IsString()
1064
1064
  ], ExpenseProposalItemInputDTO.prototype, "requisites", 2);
1065
- __decorateClass$j([
1065
+ __decorateClass$k([
1066
1066
  graphql.Field(() => String, { description: "\u041D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u043F\u043B\u0430\u0442\u0435\u0436\u0430 \u2014 \u043E\u0442\u0434\u0435\u043B\u044C\u043D\u043E\u0439 \u0441\u0442\u0440\u043E\u043A\u043E\u0439 \u043F\u043E\u0441\u043B\u0435 \u0440\u0435\u043A\u0432\u0438\u0437\u0438\u0442\u043E\u0432", nullable: true }),
1067
1067
  classValidator.IsOptional(),
1068
1068
  classValidator.IsString()
1069
1069
  ], ExpenseProposalItemInputDTO.prototype, "payment_purpose", 2);
1070
- __decorateClass$j([
1070
+ __decorateClass$k([
1071
1071
  graphql.Field(() => String, {
1072
1072
  description: "\u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440 \u0441\u043E\u0445\u0440\u0430\u043D\u0451\u043D\u043D\u044B\u0445 \u0440\u0435\u043A\u0432\u0438\u0437\u0438\u0442\u043E\u0432 \u043F\u043E\u043B\u0443\u0447\u0430\u0442\u0435\u043B\u044F-\u043F\u0430\u0439\u0449\u0438\u043A\u0430 \u2014 \u0441\u0435\u0440\u0432\u0435\u0440 \u043F\u043E\u0434\u0441\u0442\u0430\u0432\u0438\u0442 \u043F\u043E\u043B\u043D\u044B\u0435 \u0440\u0435\u043A\u0432\u0438\u0437\u0438\u0442\u044B \u0432 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442.",
1073
1073
  nullable: true
@@ -1075,7 +1075,7 @@ __decorateClass$j([
1075
1075
  classValidator.IsOptional(),
1076
1076
  classValidator.IsString()
1077
1077
  ], ExpenseProposalItemInputDTO.prototype, "payment_method_id", 2);
1078
- __decorateClass$j([
1078
+ __decorateClass$k([
1079
1079
  graphql.Field(() => String, {
1080
1080
  description: "\u0418\u043C\u044F \u0430\u043A\u043A\u0430\u0443\u043D\u0442\u0430 \u043F\u043E\u043B\u0443\u0447\u0430\u0442\u0435\u043B\u044F-\u043F\u0430\u0439\u0449\u0438\u043A\u0430 (\u0432\u043B\u0430\u0434\u0435\u043B\u0435\u0446 \u0440\u0435\u043A\u0432\u0438\u0437\u0438\u0442\u043E\u0432).",
1081
1081
  nullable: true
@@ -1083,60 +1083,68 @@ __decorateClass$j([
1083
1083
  classValidator.IsOptional(),
1084
1084
  classValidator.IsString()
1085
1085
  ], ExpenseProposalItemInputDTO.prototype, "recipient_username", 2);
1086
- ExpenseProposalItemInputDTO = __decorateClass$j([
1086
+ __decorateClass$k([
1087
+ graphql.Field(() => graphql.Int, {
1088
+ description: "\u041A\u043E\u043D\u0442\u0440\u0430\u0433\u0435\u043D\u0442-\u043F\u043E\u043B\u0443\u0447\u0430\u0442\u0435\u043B\u044C \u0438\u0437 \u0440\u0435\u0435\u0441\u0442\u0440\u0430 \u043A\u043E\u043D\u0442\u0440\u0430\u0433\u0435\u043D\u0442\u043E\u0432 \u2014 \u0441\u0435\u0440\u0432\u0435\u0440 \u043F\u043E\u0434\u0441\u0442\u0430\u0432\u0438\u0442 \u043D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u0438 \u0440\u0435\u043A\u0432\u0438\u0437\u0438\u0442\u044B \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442.",
1089
+ nullable: true
1090
+ }),
1091
+ classValidator.IsOptional(),
1092
+ classValidator.IsInt()
1093
+ ], ExpenseProposalItemInputDTO.prototype, "counterparty_id", 2);
1094
+ ExpenseProposalItemInputDTO = __decorateClass$k([
1087
1095
  graphql.InputType("ExpenseProposalItemInput")
1088
1096
  ], ExpenseProposalItemInputDTO);
1089
1097
  let ExpenseProposalSignedItemInputDTO = class {
1090
1098
  };
1091
- __decorateClass$j([
1099
+ __decorateClass$k([
1092
1100
  graphql.Field(() => String, { description: "\u041F\u043E\u0440\u044F\u0434\u043A\u043E\u0432\u044B\u0439 \u043D\u043E\u043C\u0435\u0440 \u0441\u0442\u0440\u043E\u043A\u0438" }),
1093
1101
  classValidator.IsString()
1094
1102
  ], ExpenseProposalSignedItemInputDTO.prototype, "number", 2);
1095
- __decorateClass$j([
1103
+ __decorateClass$k([
1096
1104
  graphql.Field(() => String, { description: "\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u0440\u0430\u0441\u0445\u043E\u0434\u0430" }),
1097
1105
  classValidator.IsString()
1098
1106
  ], ExpenseProposalSignedItemInputDTO.prototype, "description", 2);
1099
- __decorateClass$j([
1107
+ __decorateClass$k([
1100
1108
  graphql.Field(() => String, { description: "\u0421\u0443\u043C\u043C\u0430 \u0441\u0442\u0440\u043E\u043A\u0438" }),
1101
1109
  classValidator.IsString()
1102
1110
  ], ExpenseProposalSignedItemInputDTO.prototype, "amount", 2);
1103
- __decorateClass$j([
1111
+ __decorateClass$k([
1104
1112
  graphql.Field(() => String, { description: "\u0422\u0438\u043F \u043F\u043E\u043B\u0443\u0447\u0430\u0442\u0435\u043B\u044F (SELF / MEMBER / ORG)" }),
1105
1113
  classValidator.IsString()
1106
1114
  ], ExpenseProposalSignedItemInputDTO.prototype, "recipient_type", 2);
1107
- __decorateClass$j([
1115
+ __decorateClass$k([
1108
1116
  graphql.Field(() => String, { description: "\u0421\u043F\u043E\u0441\u043E\u0431 \u043E\u043F\u043B\u0430\u0442\u044B (ADVANCE / DIRECT)" }),
1109
1117
  classValidator.IsString()
1110
1118
  ], ExpenseProposalSignedItemInputDTO.prototype, "mechanics", 2);
1111
- ExpenseProposalSignedItemInputDTO = __decorateClass$j([
1119
+ ExpenseProposalSignedItemInputDTO = __decorateClass$k([
1112
1120
  graphql.InputType("ExpenseProposalSignedItemInput")
1113
1121
  ], ExpenseProposalSignedItemInputDTO);
1114
1122
  let ExpenseProposalHeaderInputDTO = class {
1115
1123
  };
1116
- __decorateClass$j([
1124
+ __decorateClass$k([
1117
1125
  graphql.Field(() => String, { description: "\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u0446\u0435\u043B\u0438 \u0440\u0430\u0441\u0445\u043E\u0434\u043E\u0432" }),
1118
1126
  classValidator.IsString()
1119
1127
  ], ExpenseProposalHeaderInputDTO.prototype, "description", 2);
1120
- __decorateClass$j([
1128
+ __decorateClass$k([
1121
1129
  graphql.Field(() => String, { description: "\u0418\u0442\u043E\u0433\u043E\u0432\u0430\u044F \u0441\u0443\u043C\u043C\u0430 \u0440\u0430\u0441\u0445\u043E\u0434\u043E\u0432" }),
1122
1130
  classValidator.IsString()
1123
1131
  ], ExpenseProposalHeaderInputDTO.prototype, "total_amount", 2);
1124
- __decorateClass$j([
1132
+ __decorateClass$k([
1125
1133
  graphql.Field(() => graphql.Int, { description: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E\u0437\u0438\u0446\u0438\u0439" }),
1126
1134
  classValidator.IsInt()
1127
1135
  ], ExpenseProposalHeaderInputDTO.prototype, "items_count", 2);
1128
- __decorateClass$j([
1136
+ __decorateClass$k([
1129
1137
  graphql.Field(() => String, { description: "\u041A\u043E\u0448\u0435\u043B\u0451\u043A-\u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A" }),
1130
1138
  classValidator.IsString()
1131
1139
  ], ExpenseProposalHeaderInputDTO.prototype, "source_wallet", 2);
1132
- __decorateClass$j([
1140
+ __decorateClass$k([
1133
1141
  graphql.Field(() => String, { description: "\u0421\u0440\u043E\u043A \u0438\u0441\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F (\xAB\u0432 \u0441\u0440\u043E\u043A \u0434\u043E\xBB), \u0444\u043E\u0440\u043C\u0430\u0442 DD.MM.YYYY" }),
1134
1142
  classValidator.IsString(),
1135
1143
  classValidator.Matches(/^\d{2}\.\d{2}\.\d{4}$/, {
1136
1144
  message: validationMessage("kit.expenseStatement.dueDateFormat")
1137
1145
  })
1138
1146
  ], ExpenseProposalHeaderInputDTO.prototype, "deadline", 2);
1139
- __decorateClass$j([
1147
+ __decorateClass$k([
1140
1148
  graphql.Field(() => String, {
1141
1149
  description: "\u0424\u043E\u043D\u0434 \u0441\u043F\u0438\u0441\u0430\u043D\u0438\u044F \u2014 \u043F\u043E\u0434\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0441\u0435\u0440\u0432\u0435\u0440\u043E\u043C \u0438\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u0432 \u0448\u0430\u0441\u0441\u0438 \u0440\u0430\u0441\u0445\u043E\u0434\u043E\u0432, \u043F\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044C \u043D\u0435 \u043D\u0443\u0436\u043D\u043E",
1142
1150
  nullable: true
@@ -1144,56 +1152,56 @@ __decorateClass$j([
1144
1152
  classValidator.IsOptional(),
1145
1153
  classValidator.IsString()
1146
1154
  ], ExpenseProposalHeaderInputDTO.prototype, "fund_name", 2);
1147
- ExpenseProposalHeaderInputDTO = __decorateClass$j([
1155
+ ExpenseProposalHeaderInputDTO = __decorateClass$k([
1148
1156
  graphql.InputType("ExpenseProposalHeaderInput")
1149
1157
  ], ExpenseProposalHeaderInputDTO);
1150
1158
  let BaseExpenseProposalStatementGenerateMetaDocumentInputDTO = class {
1151
1159
  };
1152
- __decorateClass$j([
1160
+ __decorateClass$k([
1153
1161
  graphql.Field(() => String, { description: "\u0425\u0435\u0448 \u0441\u043C\u0435\u0442\u044B \u0440\u0430\u0441\u0445\u043E\u0434\u0430 (\u0434\u0435\u0442\u0435\u0440\u043C\u0438\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439)" }),
1154
1162
  classValidator.IsString(),
1155
1163
  classValidator.IsNotEmpty()
1156
1164
  ], BaseExpenseProposalStatementGenerateMetaDocumentInputDTO.prototype, "proposal_hash", 2);
1157
- __decorateClass$j([
1165
+ __decorateClass$k([
1158
1166
  graphql.Field(() => ExpenseProposalHeaderInputDTO, { description: "\u0428\u0430\u043F\u043A\u0430 \u0421\u0417" }),
1159
1167
  classValidator.ValidateNested(),
1160
1168
  classTransformer.Type(() => ExpenseProposalHeaderInputDTO)
1161
1169
  ], BaseExpenseProposalStatementGenerateMetaDocumentInputDTO.prototype, "proposal", 2);
1162
- __decorateClass$j([
1170
+ __decorateClass$k([
1163
1171
  graphql.Field(() => [ExpenseProposalItemInputDTO], { description: "\u041F\u043E\u0437\u0438\u0446\u0438\u0438 \u0440\u0430\u0441\u0445\u043E\u0434\u0430" }),
1164
1172
  classValidator.IsArray(),
1165
1173
  classValidator.ArrayMinSize(1),
1166
1174
  classValidator.ValidateNested({ each: true }),
1167
1175
  classTransformer.Type(() => ExpenseProposalItemInputDTO)
1168
1176
  ], BaseExpenseProposalStatementGenerateMetaDocumentInputDTO.prototype, "items", 2);
1169
- BaseExpenseProposalStatementGenerateMetaDocumentInputDTO = __decorateClass$j([
1177
+ BaseExpenseProposalStatementGenerateMetaDocumentInputDTO = __decorateClass$k([
1170
1178
  graphql.InputType("BaseExpenseProposalStatementGenerateMetaDocumentInput")
1171
1179
  ], BaseExpenseProposalStatementGenerateMetaDocumentInputDTO);
1172
1180
  let BaseExpenseProposalStatementSignedMetaDocumentInputDTO = class {
1173
1181
  };
1174
- __decorateClass$j([
1182
+ __decorateClass$k([
1175
1183
  graphql.Field(() => String, { description: "\u0425\u0435\u0448 \u0441\u043C\u0435\u0442\u044B \u0440\u0430\u0441\u0445\u043E\u0434\u0430 (\u0434\u0435\u0442\u0435\u0440\u043C\u0438\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439)" }),
1176
1184
  classValidator.IsString(),
1177
1185
  classValidator.IsNotEmpty()
1178
1186
  ], BaseExpenseProposalStatementSignedMetaDocumentInputDTO.prototype, "proposal_hash", 2);
1179
- __decorateClass$j([
1187
+ __decorateClass$k([
1180
1188
  graphql.Field(() => ExpenseProposalHeaderInputDTO, { description: "\u0428\u0430\u043F\u043A\u0430 \u0421\u0417" }),
1181
1189
  classValidator.ValidateNested(),
1182
1190
  classTransformer.Type(() => ExpenseProposalHeaderInputDTO)
1183
1191
  ], BaseExpenseProposalStatementSignedMetaDocumentInputDTO.prototype, "proposal", 2);
1184
- __decorateClass$j([
1192
+ __decorateClass$k([
1185
1193
  graphql.Field(() => [ExpenseProposalSignedItemInputDTO], { description: "\u041F\u0443\u0431\u043B\u0438\u0447\u043D\u044B\u0435 \u043F\u043E\u0437\u0438\u0446\u0438\u0438 \u0440\u0430\u0441\u0445\u043E\u0434\u0430 (\u0431\u0435\u0437 \u0440\u0435\u043A\u0432\u0438\u0437\u0438\u0442\u043E\u0432)" }),
1186
1194
  classValidator.IsArray(),
1187
1195
  classValidator.ArrayMinSize(1),
1188
1196
  classValidator.ValidateNested({ each: true }),
1189
1197
  classTransformer.Type(() => ExpenseProposalSignedItemInputDTO)
1190
1198
  ], BaseExpenseProposalStatementSignedMetaDocumentInputDTO.prototype, "items", 2);
1191
- __decorateClass$j([
1199
+ __decorateClass$k([
1192
1200
  graphql.Field(() => String, { description: "\u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440 \u043F\u0440\u0438\u0432\u0430\u0442\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430 off-chain (\u0440\u0435\u043A\u0432\u0438\u0437\u0438\u0442\u044B/\u0438\u043C\u044F/\u043D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435)" }),
1193
1201
  classValidator.IsString(),
1194
1202
  classValidator.IsNotEmpty()
1195
1203
  ], BaseExpenseProposalStatementSignedMetaDocumentInputDTO.prototype, "doc_data_hash", 2);
1196
- BaseExpenseProposalStatementSignedMetaDocumentInputDTO = __decorateClass$j([
1204
+ BaseExpenseProposalStatementSignedMetaDocumentInputDTO = __decorateClass$k([
1197
1205
  graphql.InputType("BaseExpenseProposalStatementSignedMetaDocumentInput")
1198
1206
  ], BaseExpenseProposalStatementSignedMetaDocumentInputDTO);
1199
1207
  exports.ExpenseProposalStatementGenerateDocumentInputDTO = class ExpenseProposalStatementGenerateDocumentInputDTO extends graphql.IntersectionType(
@@ -1201,7 +1209,7 @@ exports.ExpenseProposalStatementGenerateDocumentInputDTO = class ExpenseProposal
1201
1209
  graphql.OmitType(exports.GenerateMetaDocumentInputDTO, ["registry_id"])
1202
1210
  ) {
1203
1211
  };
1204
- exports.ExpenseProposalStatementGenerateDocumentInputDTO = __decorateClass$j([
1212
+ exports.ExpenseProposalStatementGenerateDocumentInputDTO = __decorateClass$k([
1205
1213
  graphql.InputType("ExpenseProposalStatementGenerateDocumentInput")
1206
1214
  ], exports.ExpenseProposalStatementGenerateDocumentInputDTO);
1207
1215
  exports.ExpenseProposalStatementSignedMetaDocumentInputDTO = class ExpenseProposalStatementSignedMetaDocumentInputDTO extends graphql.IntersectionType(
@@ -1209,31 +1217,86 @@ exports.ExpenseProposalStatementSignedMetaDocumentInputDTO = class ExpensePropos
1209
1217
  exports.MetaDocumentInputDTO
1210
1218
  ) {
1211
1219
  };
1212
- exports.ExpenseProposalStatementSignedMetaDocumentInputDTO = __decorateClass$j([
1220
+ exports.ExpenseProposalStatementSignedMetaDocumentInputDTO = __decorateClass$k([
1213
1221
  graphql.InputType("ExpenseProposalStatementSignedMetaDocumentInput")
1214
1222
  ], exports.ExpenseProposalStatementSignedMetaDocumentInputDTO);
1215
1223
  exports.ExpenseProposalStatementSignedDocumentInputDTO = class ExpenseProposalStatementSignedDocumentInputDTO extends exports.SignedDigitalDocumentInputDTO {
1216
1224
  };
1217
- __decorateClass$j([
1225
+ __decorateClass$k([
1218
1226
  graphql.Field(() => exports.ExpenseProposalStatementSignedMetaDocumentInputDTO, {
1219
1227
  description: "\u041C\u0435\u0442\u0430\u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u0421\u0417-\u0437\u0430\u044F\u0432\u043B\u0435\u043D\u0438\u044F"
1220
1228
  })
1221
1229
  ], exports.ExpenseProposalStatementSignedDocumentInputDTO.prototype, "meta", 2);
1222
- exports.ExpenseProposalStatementSignedDocumentInputDTO = __decorateClass$j([
1230
+ exports.ExpenseProposalStatementSignedDocumentInputDTO = __decorateClass$k([
1223
1231
  graphql.InputType("ExpenseProposalStatementSignedDocumentInput")
1224
1232
  ], exports.ExpenseProposalStatementSignedDocumentInputDTO);
1225
1233
 
1234
+ const EXPENSE_PLAN_RECURRENCE_MONTHS = {
1235
+ NONE: 0,
1236
+ MONTHLY: 1,
1237
+ QUARTERLY: 3,
1238
+ YEARLY: 12
1239
+ };
1240
+ function expensePlanRecurrenceMonths(recurrence) {
1241
+ if (!recurrence)
1242
+ return 0;
1243
+ return EXPENSE_PLAN_RECURRENCE_MONTHS[recurrence] ?? 0;
1244
+ }
1245
+ function nextExpensePlanDate(from, months) {
1246
+ if (!Number.isInteger(months) || months <= 0)
1247
+ return null;
1248
+ const year = from.getUTCFullYear();
1249
+ const month = from.getUTCMonth() + months;
1250
+ const lastDay = new Date(Date.UTC(year, month + 1, 0)).getUTCDate();
1251
+ const day = Math.min(from.getUTCDate(), lastDay);
1252
+ return new Date(
1253
+ Date.UTC(
1254
+ year,
1255
+ month,
1256
+ day,
1257
+ from.getUTCHours(),
1258
+ from.getUTCMinutes(),
1259
+ from.getUTCSeconds(),
1260
+ from.getUTCMilliseconds()
1261
+ )
1262
+ );
1263
+ }
1264
+ function expensePlanScheduleDates(first, months, count) {
1265
+ if (count <= 0)
1266
+ return [];
1267
+ const dates = [first];
1268
+ let current = first;
1269
+ while (dates.length < count && current) {
1270
+ current = nextExpensePlanDate(current, months);
1271
+ if (current)
1272
+ dates.push(current);
1273
+ }
1274
+ return dates;
1275
+ }
1276
+ function expensePlanReserveShare(amount, monthsAhead, periodMonths) {
1277
+ if (amount <= 0n)
1278
+ return 0n;
1279
+ if (monthsAhead <= 0)
1280
+ return amount;
1281
+ if (!Number.isInteger(periodMonths) || periodMonths <= 1 || monthsAhead >= periodMonths)
1282
+ return 0n;
1283
+ return amount * BigInt(periodMonths - monthsAhead) / BigInt(periodMonths);
1284
+ }
1285
+ function expensePlanReserveMonths(periodMonths) {
1286
+ return Number.isInteger(periodMonths) && periodMonths > 1 ? periodMonths : 1;
1287
+ }
1288
+
1226
1289
  const DOCUMENT_GENERATION_THROTTLE = { default: { limit: 60, ttl: 6e4 } };
1227
1290
 
1228
- var __defProp$i = Object.defineProperty;
1229
- var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
1230
- var __decorateClass$i = (decorators, target, key, kind) => {
1231
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
1291
+ var __defProp$j = Object.defineProperty;
1292
+ var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
1293
+ var __decorateClass$j = (decorators, target, key, kind) => {
1294
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
1232
1295
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
1233
1296
  if (decorator = decorators[i])
1234
1297
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
1235
1298
  if (kind && result)
1236
- __defProp$i(target, key, result);
1299
+ __defProp$j(target, key, result);
1237
1300
  return result;
1238
1301
  };
1239
1302
  var CandidateStatus = /* @__PURE__ */ ((CandidateStatus2) => {
@@ -1247,63 +1310,63 @@ graphql.registerEnumType(CandidateStatus, {
1247
1310
  });
1248
1311
  exports.CandidateOutputDTO = class CandidateOutputDTO {
1249
1312
  };
1250
- __decorateClass$i([
1313
+ __decorateClass$j([
1251
1314
  graphql.Field(() => String)
1252
1315
  ], exports.CandidateOutputDTO.prototype, "username", 2);
1253
- __decorateClass$i([
1316
+ __decorateClass$j([
1254
1317
  graphql.Field(() => String, { nullable: true })
1255
1318
  ], exports.CandidateOutputDTO.prototype, "username_display_name", 2);
1256
- __decorateClass$i([
1319
+ __decorateClass$j([
1257
1320
  graphql.Field(() => String)
1258
1321
  ], exports.CandidateOutputDTO.prototype, "coopname", 2);
1259
- __decorateClass$i([
1322
+ __decorateClass$j([
1260
1323
  graphql.Field(() => String, { nullable: true })
1261
1324
  ], exports.CandidateOutputDTO.prototype, "braname", 2);
1262
- __decorateClass$i([
1325
+ __decorateClass$j([
1263
1326
  graphql.Field(() => CandidateStatus)
1264
1327
  ], exports.CandidateOutputDTO.prototype, "status", 2);
1265
- __decorateClass$i([
1328
+ __decorateClass$j([
1266
1329
  graphql.Field(() => String)
1267
1330
  ], exports.CandidateOutputDTO.prototype, "type", 2);
1268
- __decorateClass$i([
1331
+ __decorateClass$j([
1269
1332
  graphql.Field(() => Date)
1270
1333
  ], exports.CandidateOutputDTO.prototype, "created_at", 2);
1271
- __decorateClass$i([
1334
+ __decorateClass$j([
1272
1335
  graphql.Field(() => Date, { nullable: true })
1273
1336
  ], exports.CandidateOutputDTO.prototype, "registered_at", 2);
1274
- __decorateClass$i([
1337
+ __decorateClass$j([
1275
1338
  graphql.Field(() => String, { nullable: true })
1276
1339
  ], exports.CandidateOutputDTO.prototype, "referer", 2);
1277
- __decorateClass$i([
1340
+ __decorateClass$j([
1278
1341
  graphql.Field(() => String, { nullable: true })
1279
1342
  ], exports.CandidateOutputDTO.prototype, "referer_display_name", 2);
1280
- __decorateClass$i([
1343
+ __decorateClass$j([
1281
1344
  graphql.Field(() => String)
1282
1345
  ], exports.CandidateOutputDTO.prototype, "public_key", 2);
1283
- __decorateClass$i([
1346
+ __decorateClass$j([
1284
1347
  graphql.Field(() => String, { nullable: true })
1285
1348
  ], exports.CandidateOutputDTO.prototype, "program_key", 2);
1286
- exports.CandidateOutputDTO = __decorateClass$i([
1349
+ exports.CandidateOutputDTO = __decorateClass$j([
1287
1350
  graphql.ObjectType("Candidate")
1288
1351
  ], exports.CandidateOutputDTO);
1289
1352
 
1290
- var __defProp$h = Object.defineProperty;
1291
- var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
1292
- var __decorateClass$h = (decorators, target, key, kind) => {
1293
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;
1353
+ var __defProp$i = Object.defineProperty;
1354
+ var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
1355
+ var __decorateClass$i = (decorators, target, key, kind) => {
1356
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
1294
1357
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
1295
1358
  if (decorator = decorators[i])
1296
1359
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
1297
1360
  if (kind && result)
1298
- __defProp$h(target, key, result);
1361
+ __defProp$i(target, key, result);
1299
1362
  return result;
1300
1363
  };
1301
1364
  exports.CandidateFilterInputDTO = class CandidateFilterInputDTO {
1302
1365
  };
1303
- __decorateClass$h([
1366
+ __decorateClass$i([
1304
1367
  graphql.Field(() => String, { nullable: true })
1305
1368
  ], exports.CandidateFilterInputDTO.prototype, "referer", 2);
1306
- exports.CandidateFilterInputDTO = __decorateClass$h([
1369
+ exports.CandidateFilterInputDTO = __decorateClass$i([
1307
1370
  graphql.InputType("CandidateFilterInput")
1308
1371
  ], exports.CandidateFilterInputDTO);
1309
1372
 
@@ -1409,32 +1472,32 @@ async function attachOne(records, related, property, keys) {
1409
1472
  }
1410
1473
  }
1411
1474
 
1412
- var __defProp$g = Object.defineProperty;
1413
- var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
1414
- var __decorateClass$g = (decorators, target, key, kind) => {
1415
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;
1475
+ var __defProp$h = Object.defineProperty;
1476
+ var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
1477
+ var __decorateClass$h = (decorators, target, key, kind) => {
1478
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;
1416
1479
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
1417
1480
  if (decorator = decorators[i])
1418
1481
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
1419
1482
  if (kind && result)
1420
- __defProp$g(target, key, result);
1483
+ __defProp$h(target, key, result);
1421
1484
  return result;
1422
1485
  };
1423
1486
  const SORT_FIELD_PATTERN = /^([A-Za-z_][A-Za-z0-9_]*(:(asc|desc))?)?$/i;
1424
1487
  exports.PaginationInputDTO = class PaginationInputDTO {
1425
1488
  };
1426
- __decorateClass$g([
1489
+ __decorateClass$h([
1427
1490
  graphql.Field(() => graphql.Int, { description: "\u041D\u043E\u043C\u0435\u0440 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B", defaultValue: 1 })
1428
1491
  ], exports.PaginationInputDTO.prototype, "page", 2);
1429
- __decorateClass$g([
1492
+ __decorateClass$h([
1430
1493
  graphql.Field(() => graphql.Int, { description: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 \u043D\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435", defaultValue: 10 })
1431
1494
  ], exports.PaginationInputDTO.prototype, "limit", 2);
1432
- __decorateClass$g([
1495
+ __decorateClass$h([
1433
1496
  graphql.Field(() => String, { nullable: true, description: '\u041A\u043B\u044E\u0447 \u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0438 (\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, "name")' }),
1434
1497
  classValidator.IsOptional(),
1435
1498
  classValidator.Matches(SORT_FIELD_PATTERN, { message: validationMessage("kit.pagination.invalidSortField") })
1436
1499
  ], exports.PaginationInputDTO.prototype, "sortBy", 2);
1437
- __decorateClass$g([
1500
+ __decorateClass$h([
1438
1501
  graphql.Field(() => String, {
1439
1502
  description: '\u041D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0438 ("ASC" \u0438\u043B\u0438 "DESC")',
1440
1503
  defaultValue: "ASC"
@@ -1442,7 +1505,7 @@ __decorateClass$g([
1442
1505
  classValidator.IsOptional(),
1443
1506
  classValidator.IsIn(["ASC", "DESC"], { message: validationMessage("kit.pagination.invalidSortOrder") })
1444
1507
  ], exports.PaginationInputDTO.prototype, "sortOrder", 2);
1445
- exports.PaginationInputDTO = __decorateClass$g([
1508
+ exports.PaginationInputDTO = __decorateClass$h([
1446
1509
  graphql.InputType("PaginationInput")
1447
1510
  ], exports.PaginationInputDTO);
1448
1511
  class PaginationResult {
@@ -1450,19 +1513,19 @@ class PaginationResult {
1450
1513
  function createPaginationResult(ItemType, name) {
1451
1514
  let PaginationResult2 = class {
1452
1515
  };
1453
- __decorateClass$g([
1516
+ __decorateClass$h([
1454
1517
  graphql.Field(() => [ItemType], { description: "\u042D\u043B\u0435\u043C\u0435\u043D\u0442\u044B \u0442\u0435\u043A\u0443\u0449\u0435\u0439 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B" })
1455
1518
  ], PaginationResult2.prototype, "items", 2);
1456
- __decorateClass$g([
1519
+ __decorateClass$h([
1457
1520
  graphql.Field(() => graphql.Int, { description: "\u041E\u0431\u0449\u0435\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432" })
1458
1521
  ], PaginationResult2.prototype, "totalCount", 2);
1459
- __decorateClass$g([
1522
+ __decorateClass$h([
1460
1523
  graphql.Field(() => graphql.Int, { description: "\u041E\u0431\u0449\u0435\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u0442\u0440\u0430\u043D\u0438\u0446" })
1461
1524
  ], PaginationResult2.prototype, "totalPages", 2);
1462
- __decorateClass$g([
1525
+ __decorateClass$h([
1463
1526
  graphql.Field(() => graphql.Int, { description: "\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430" })
1464
1527
  ], PaginationResult2.prototype, "currentPage", 2);
1465
- PaginationResult2 = __decorateClass$g([
1528
+ PaginationResult2 = __decorateClass$h([
1466
1529
  graphql.ObjectType(`${name}PaginationResult`, { isAbstract: true })
1467
1530
  ], PaginationResult2);
1468
1531
  return PaginationResult2;
@@ -1539,255 +1602,255 @@ function paginationInputToOffset(options) {
1539
1602
  };
1540
1603
  }
1541
1604
 
1542
- var __defProp$f = Object.defineProperty;
1543
- var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
1544
- var __decorateClass$f = (decorators, target, key, kind) => {
1545
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
1605
+ var __defProp$g = Object.defineProperty;
1606
+ var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
1607
+ var __decorateClass$g = (decorators, target, key, kind) => {
1608
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;
1546
1609
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
1547
1610
  if (decorator = decorators[i])
1548
1611
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
1549
1612
  if (kind && result)
1550
- __defProp$f(target, key, result);
1613
+ __defProp$g(target, key, result);
1551
1614
  return result;
1552
1615
  };
1553
1616
  exports.Ledger2AccountDTO = class Ledger2AccountDTO {
1554
1617
  };
1555
- __decorateClass$f([
1618
+ __decorateClass$g([
1556
1619
  graphql.Field(() => graphql.Int, { description: "ID \u0441\u0447\u0451\u0442\u0430 (\xD71000 offset): 51000/80000/86000/..." })
1557
1620
  ], exports.Ledger2AccountDTO.prototype, "id", 2);
1558
- __decorateClass$f([
1621
+ __decorateClass$g([
1559
1622
  graphql.Field(() => String, { description: "\u0420\u0443\u0441\u0441\u043A\u043E\u0435 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0441\u0447\u0451\u0442\u0430 \u0438\u0437 \u043F\u043B\u0430\u043D\u0430" })
1560
1623
  ], exports.Ledger2AccountDTO.prototype, "name", 2);
1561
- __decorateClass$f([
1624
+ __decorateClass$g([
1562
1625
  graphql.Field(() => String, { description: '\u0421\u0430\u043B\u044C\u0434\u043E (EOSIO asset: "7000.0000 RUB")' })
1563
1626
  ], exports.Ledger2AccountDTO.prototype, "balance", 2);
1564
- __decorateClass$f([
1627
+ __decorateClass$g([
1565
1628
  graphql.Field(() => String, { description: "\u0414\u0435\u0431\u0435\u0442\u043E\u0432\u044B\u0439 \u043E\u0431\u043E\u0440\u043E\u0442" })
1566
1629
  ], exports.Ledger2AccountDTO.prototype, "debitBalance", 2);
1567
- __decorateClass$f([
1630
+ __decorateClass$g([
1568
1631
  graphql.Field(() => String, { description: "\u041A\u0440\u0435\u0434\u0438\u0442\u043E\u0432\u044B\u0439 \u043E\u0431\u043E\u0440\u043E\u0442" })
1569
1632
  ], exports.Ledger2AccountDTO.prototype, "creditBalance", 2);
1570
- __decorateClass$f([
1633
+ __decorateClass$g([
1571
1634
  graphql.Field(() => graphql.Int, { description: "0 = active (\u0434\u0435\u0431\u0435\u0442\u043E\u0432\u044B\u0439), 1 = passive (\u043A\u0440\u0435\u0434\u0438\u0442\u043E\u0432\u044B\u0439)" })
1572
1635
  ], exports.Ledger2AccountDTO.prototype, "accountType", 2);
1573
- exports.Ledger2AccountDTO = __decorateClass$f([
1636
+ exports.Ledger2AccountDTO = __decorateClass$g([
1574
1637
  graphql.ObjectType("Ledger2Account")
1575
1638
  ], exports.Ledger2AccountDTO);
1576
1639
 
1577
- var __defProp$e = Object.defineProperty;
1578
- var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
1579
- var __decorateClass$e = (decorators, target, key, kind) => {
1580
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;
1640
+ var __defProp$f = Object.defineProperty;
1641
+ var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
1642
+ var __decorateClass$f = (decorators, target, key, kind) => {
1643
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
1581
1644
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
1582
1645
  if (decorator = decorators[i])
1583
1646
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
1584
1647
  if (kind && result)
1585
- __defProp$e(target, key, result);
1648
+ __defProp$f(target, key, result);
1586
1649
  return result;
1587
1650
  };
1588
1651
  exports.Ledger2WalletDTO = class Ledger2WalletDTO {
1589
1652
  };
1590
- __decorateClass$e([
1653
+ __decorateClass$f([
1591
1654
  graphql.Field(() => String, { description: "eosio::name-\u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440 \u043A\u043E\u0448\u0435\u043B\u044C\u043A\u0430 (w.<contract>.<waltype>)" })
1592
1655
  ], exports.Ledger2WalletDTO.prototype, "id", 2);
1593
- __decorateClass$e([
1656
+ __decorateClass$f([
1594
1657
  graphql.Field(() => String, { description: "\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u043A\u043E\u0448\u0435\u043B\u044C\u043A\u0430" })
1595
1658
  ], exports.Ledger2WalletDTO.prototype, "name", 2);
1596
- __decorateClass$e([
1659
+ __decorateClass$f([
1597
1660
  graphql.Field(() => String, { description: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0439 \u0431\u0430\u043B\u0430\u043D\u0441" })
1598
1661
  ], exports.Ledger2WalletDTO.prototype, "available", 2);
1599
- exports.Ledger2WalletDTO = __decorateClass$e([
1662
+ exports.Ledger2WalletDTO = __decorateClass$f([
1600
1663
  graphql.ObjectType("Ledger2Wallet")
1601
1664
  ], exports.Ledger2WalletDTO);
1602
1665
 
1603
- var __defProp$d = Object.defineProperty;
1604
- var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
1605
- var __decorateClass$d = (decorators, target, key, kind) => {
1606
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target;
1666
+ var __defProp$e = Object.defineProperty;
1667
+ var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
1668
+ var __decorateClass$e = (decorators, target, key, kind) => {
1669
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;
1607
1670
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
1608
1671
  if (decorator = decorators[i])
1609
1672
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
1610
1673
  if (kind && result)
1611
- __defProp$d(target, key, result);
1674
+ __defProp$e(target, key, result);
1612
1675
  return result;
1613
1676
  };
1614
1677
  exports.Ledger2OperationDTO = class Ledger2OperationDTO {
1615
1678
  };
1616
- __decorateClass$d([
1679
+ __decorateClass$e([
1617
1680
  graphql.Field(() => String, {
1618
1681
  description: "global_sequence \u0431\u043B\u043E\u043A\u0447\u0435\u0439\u043D\u0430 (\u0441\u0442\u0440\u043E\u043A\u0430 \u2014 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0434\u043E 2^53 overflow)"
1619
1682
  })
1620
1683
  ], exports.Ledger2OperationDTO.prototype, "globalSequence", 2);
1621
- __decorateClass$d([
1684
+ __decorateClass$e([
1622
1685
  graphql.Field(() => graphql.Int)
1623
1686
  ], exports.Ledger2OperationDTO.prototype, "blockNum", 2);
1624
- __decorateClass$d([
1687
+ __decorateClass$e([
1625
1688
  graphql.Field(() => String)
1626
1689
  ], exports.Ledger2OperationDTO.prototype, "coopname", 2);
1627
- __decorateClass$d([
1690
+ __decorateClass$e([
1628
1691
  graphql.Field(() => String, {
1629
1692
  description: "apply | walletop | debit | credit"
1630
1693
  })
1631
1694
  ], exports.Ledger2OperationDTO.prototype, "action", 2);
1632
- __decorateClass$d([
1695
+ __decorateClass$e([
1633
1696
  graphql.Field(() => String, {
1634
1697
  nullable: true,
1635
1698
  description: "\u0414\u043B\u044F apply: OPERATION_REGISTRY code (o.cap.lend / o.wal.depcpl / ...)"
1636
1699
  })
1637
1700
  ], exports.Ledger2OperationDTO.prototype, "operationCode", 2);
1638
- __decorateClass$d([
1701
+ __decorateClass$e([
1639
1702
  graphql.Field(() => String, { nullable: true, description: "process_hash (32-hex)" })
1640
1703
  ], exports.Ledger2OperationDTO.prototype, "processHash", 2);
1641
- __decorateClass$d([
1704
+ __decorateClass$e([
1642
1705
  graphql.Field(() => String, { nullable: true })
1643
1706
  ], exports.Ledger2OperationDTO.prototype, "username", 2);
1644
- __decorateClass$d([
1707
+ __decorateClass$e([
1645
1708
  graphql.Field(() => graphql.Int, { nullable: true, description: "ID \u0441\u0447\u0451\u0442\u0430/\u043A\u043E\u0448\u0435\u043B\u044C\u043A\u0430 (\xD71000)" })
1646
1709
  ], exports.Ledger2OperationDTO.prototype, "accountId", 2);
1647
- __decorateClass$d([
1710
+ __decorateClass$e([
1648
1711
  graphql.Field(() => String, { nullable: true, description: "walletop: wallet_from (eosio::name w.<contract>.<waltype>)" })
1649
1712
  ], exports.Ledger2OperationDTO.prototype, "walletFrom", 2);
1650
- __decorateClass$d([
1713
+ __decorateClass$e([
1651
1714
  graphql.Field(() => String, { nullable: true, description: "walletop: wallet_to (eosio::name w.<contract>.<waltype>)" })
1652
1715
  ], exports.Ledger2OperationDTO.prototype, "walletTo", 2);
1653
- __decorateClass$d([
1716
+ __decorateClass$e([
1654
1717
  graphql.Field(() => String, { nullable: true, description: 'Asset "100.0000 RUB"' })
1655
1718
  ], exports.Ledger2OperationDTO.prototype, "quantity", 2);
1656
- __decorateClass$d([
1719
+ __decorateClass$e([
1657
1720
  graphql.Field(() => String, { nullable: true })
1658
1721
  ], exports.Ledger2OperationDTO.prototype, "memo", 2);
1659
- __decorateClass$d([
1722
+ __decorateClass$e([
1660
1723
  graphql.Field(() => String, {
1661
1724
  nullable: true,
1662
1725
  description: "global_sequence \u0440\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u0441\u043A\u043E\u0433\u043E apply (parser2: transaction_id + action_ordinal=this.creator_action_ordinal) \u2014 \u0434\u043B\u044F \u0442\u043E\u0447\u0435\u0447\u043D\u043E\u0433\u043E cross-link \u043D\u0430 \u043A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u0443\u044E \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044E."
1663
1726
  })
1664
1727
  ], exports.Ledger2OperationDTO.prototype, "parentApplyGlobalSequence", 2);
1665
- __decorateClass$d([
1728
+ __decorateClass$e([
1666
1729
  graphql.Field(() => Date)
1667
1730
  ], exports.Ledger2OperationDTO.prototype, "createdAt", 2);
1668
- exports.Ledger2OperationDTO = __decorateClass$d([
1731
+ exports.Ledger2OperationDTO = __decorateClass$e([
1669
1732
  graphql.ObjectType("Ledger2Operation")
1670
1733
  ], exports.Ledger2OperationDTO);
1671
1734
  exports.Ledger2HistoryResponseDTO = class Ledger2HistoryResponseDTO {
1672
1735
  };
1673
- __decorateClass$d([
1736
+ __decorateClass$e([
1674
1737
  graphql.Field(() => [exports.Ledger2OperationDTO])
1675
1738
  ], exports.Ledger2HistoryResponseDTO.prototype, "items", 2);
1676
- __decorateClass$d([
1739
+ __decorateClass$e([
1677
1740
  graphql.Field(() => graphql.Int)
1678
1741
  ], exports.Ledger2HistoryResponseDTO.prototype, "totalCount", 2);
1679
- __decorateClass$d([
1742
+ __decorateClass$e([
1680
1743
  graphql.Field(() => graphql.Int)
1681
1744
  ], exports.Ledger2HistoryResponseDTO.prototype, "totalPages", 2);
1682
- __decorateClass$d([
1745
+ __decorateClass$e([
1683
1746
  graphql.Field(() => graphql.Int)
1684
1747
  ], exports.Ledger2HistoryResponseDTO.prototype, "currentPage", 2);
1685
- exports.Ledger2HistoryResponseDTO = __decorateClass$d([
1748
+ exports.Ledger2HistoryResponseDTO = __decorateClass$e([
1686
1749
  graphql.ObjectType("Ledger2HistoryResponse")
1687
1750
  ], exports.Ledger2HistoryResponseDTO);
1688
1751
 
1689
- var __defProp$c = Object.defineProperty;
1690
- var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
1691
- var __decorateClass$c = (decorators, target, key, kind) => {
1692
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key) : target;
1752
+ var __defProp$d = Object.defineProperty;
1753
+ var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
1754
+ var __decorateClass$d = (decorators, target, key, kind) => {
1755
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target;
1693
1756
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
1694
1757
  if (decorator = decorators[i])
1695
1758
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
1696
1759
  if (kind && result)
1697
- __defProp$c(target, key, result);
1760
+ __defProp$d(target, key, result);
1698
1761
  return result;
1699
1762
  };
1700
1763
  exports.Ledger2PostingDTO = class Ledger2PostingDTO {
1701
1764
  };
1702
- __decorateClass$c([
1765
+ __decorateClass$d([
1703
1766
  graphql.Field(() => String, { description: "\u0421\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0434\u043B\u044F UI: debitSeq_creditSeq" })
1704
1767
  ], exports.Ledger2PostingDTO.prototype, "key", 2);
1705
- __decorateClass$c([
1768
+ __decorateClass$d([
1706
1769
  graphql.Field(() => graphql.Int)
1707
1770
  ], exports.Ledger2PostingDTO.prototype, "blockNum", 2);
1708
- __decorateClass$c([
1771
+ __decorateClass$d([
1709
1772
  graphql.Field(() => String, { nullable: true, description: "process_hash (32-hex)" })
1710
1773
  ], exports.Ledger2PostingDTO.prototype, "processHash", 2);
1711
- __decorateClass$c([
1774
+ __decorateClass$d([
1712
1775
  graphql.Field(() => String, {
1713
1776
  nullable: true,
1714
1777
  description: "OPERATION_REGISTRY \u043A\u043E\u0434 \u0438\u0437 parent apply (`o.cap.lend` / `o.wal.depcpl` / ...)"
1715
1778
  })
1716
1779
  ], exports.Ledger2PostingDTO.prototype, "operationCode", 2);
1717
- __decorateClass$c([
1780
+ __decorateClass$d([
1718
1781
  graphql.Field(() => String, {
1719
1782
  nullable: true,
1720
1783
  description: "global_sequence parent apply (\u0434\u043B\u044F cross-link \u0432 \u0440\u0435\u0435\u0441\u0442\u0440 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0439)"
1721
1784
  })
1722
1785
  ], exports.Ledger2PostingDTO.prototype, "parentApplyGlobalSequence", 2);
1723
- __decorateClass$c([
1786
+ __decorateClass$d([
1724
1787
  graphql.Field(() => String, { nullable: true, description: "global_sequence debit-action" })
1725
1788
  ], exports.Ledger2PostingDTO.prototype, "debitGlobalSequence", 2);
1726
- __decorateClass$c([
1789
+ __decorateClass$d([
1727
1790
  graphql.Field(() => graphql.Int, { nullable: true, description: "id \u0431\u0443\u0445.\u0441\u0447\u0451\u0442\u0430 debit (\xD71000)" })
1728
1791
  ], exports.Ledger2PostingDTO.prototype, "debitAccountId", 2);
1729
- __decorateClass$c([
1792
+ __decorateClass$d([
1730
1793
  graphql.Field(() => String, { nullable: true, description: "global_sequence credit-action" })
1731
1794
  ], exports.Ledger2PostingDTO.prototype, "creditGlobalSequence", 2);
1732
- __decorateClass$c([
1795
+ __decorateClass$d([
1733
1796
  graphql.Field(() => graphql.Int, { nullable: true, description: "id \u0431\u0443\u0445.\u0441\u0447\u0451\u0442\u0430 credit (\xD71000)" })
1734
1797
  ], exports.Ledger2PostingDTO.prototype, "creditAccountId", 2);
1735
- __decorateClass$c([
1798
+ __decorateClass$d([
1736
1799
  graphql.Field(() => String, { nullable: true, description: 'Asset "100.0000 RUB"' })
1737
1800
  ], exports.Ledger2PostingDTO.prototype, "quantity", 2);
1738
- __decorateClass$c([
1801
+ __decorateClass$d([
1739
1802
  graphql.Field(() => String, { nullable: true })
1740
1803
  ], exports.Ledger2PostingDTO.prototype, "memo", 2);
1741
- __decorateClass$c([
1804
+ __decorateClass$d([
1742
1805
  graphql.Field(() => String, { nullable: true })
1743
1806
  ], exports.Ledger2PostingDTO.prototype, "username", 2);
1744
- __decorateClass$c([
1807
+ __decorateClass$d([
1745
1808
  graphql.Field(() => Date)
1746
1809
  ], exports.Ledger2PostingDTO.prototype, "createdAt", 2);
1747
- exports.Ledger2PostingDTO = __decorateClass$c([
1810
+ exports.Ledger2PostingDTO = __decorateClass$d([
1748
1811
  graphql.ObjectType("Ledger2Posting")
1749
1812
  ], exports.Ledger2PostingDTO);
1750
1813
  exports.Ledger2PostingsResponseDTO = class Ledger2PostingsResponseDTO {
1751
1814
  };
1752
- __decorateClass$c([
1815
+ __decorateClass$d([
1753
1816
  graphql.Field(() => [exports.Ledger2PostingDTO])
1754
1817
  ], exports.Ledger2PostingsResponseDTO.prototype, "items", 2);
1755
- __decorateClass$c([
1818
+ __decorateClass$d([
1756
1819
  graphql.Field(() => graphql.Int)
1757
1820
  ], exports.Ledger2PostingsResponseDTO.prototype, "totalCount", 2);
1758
- __decorateClass$c([
1821
+ __decorateClass$d([
1759
1822
  graphql.Field(() => graphql.Int)
1760
1823
  ], exports.Ledger2PostingsResponseDTO.prototype, "totalPages", 2);
1761
- __decorateClass$c([
1824
+ __decorateClass$d([
1762
1825
  graphql.Field(() => graphql.Int)
1763
1826
  ], exports.Ledger2PostingsResponseDTO.prototype, "currentPage", 2);
1764
- exports.Ledger2PostingsResponseDTO = __decorateClass$c([
1827
+ exports.Ledger2PostingsResponseDTO = __decorateClass$d([
1765
1828
  graphql.ObjectType("Ledger2PostingsResponse")
1766
1829
  ], exports.Ledger2PostingsResponseDTO);
1767
1830
 
1768
- var __defProp$b = Object.defineProperty;
1769
- var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
1770
- var __decorateClass$b = (decorators, target, key, kind) => {
1771
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
1831
+ var __defProp$c = Object.defineProperty;
1832
+ var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
1833
+ var __decorateClass$c = (decorators, target, key, kind) => {
1834
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key) : target;
1772
1835
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
1773
1836
  if (decorator = decorators[i])
1774
1837
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
1775
1838
  if (kind && result)
1776
- __defProp$b(target, key, result);
1839
+ __defProp$c(target, key, result);
1777
1840
  return result;
1778
1841
  };
1779
1842
  exports.GetLedger2HistoryInputDTO = class GetLedger2HistoryInputDTO {
1780
1843
  };
1781
- __decorateClass$b([
1844
+ __decorateClass$c([
1782
1845
  graphql.Field(() => String),
1783
1846
  classValidator.IsString()
1784
1847
  ], exports.GetLedger2HistoryInputDTO.prototype, "coopname", 2);
1785
- __decorateClass$b([
1848
+ __decorateClass$c([
1786
1849
  graphql.Field(() => graphql.Int, { nullable: true, description: "\u0411\u0443\u0445.\u0441\u0447\u0451\u0442 (\xD71000): 51000/80000/86000 \u2014 \u0434\u043B\u044F debit/credit \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439." }),
1787
1850
  classValidator.IsOptional(),
1788
1851
  classValidator.IsInt()
1789
1852
  ], exports.GetLedger2HistoryInputDTO.prototype, "accountId", 2);
1790
- __decorateClass$b([
1853
+ __decorateClass$c([
1791
1854
  graphql.Field(() => String, {
1792
1855
  nullable: true,
1793
1856
  description: "eosio::name \u043A\u043E\u0448\u0435\u043B\u044C\u043A\u0430 (`w.<contract>.<waltype>`) \u2014 \u0434\u043B\u044F walletop \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439."
@@ -1796,7 +1859,7 @@ __decorateClass$b([
1796
1859
  classValidator.IsString(),
1797
1860
  classValidator.MaxLength(13)
1798
1861
  ], exports.GetLedger2HistoryInputDTO.prototype, "walletName", 2);
1799
- __decorateClass$b([
1862
+ __decorateClass$c([
1800
1863
  graphql.Field(() => [String], {
1801
1864
  nullable: true,
1802
1865
  description: "\u0418\u043C\u0435\u043D\u0430 blockchain-\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439: apply | walletop | debit | credit"
@@ -1805,7 +1868,7 @@ __decorateClass$b([
1805
1868
  classValidator.IsArray(),
1806
1869
  classValidator.IsString({ each: true })
1807
1870
  ], exports.GetLedger2HistoryInputDTO.prototype, "actionNames", 2);
1808
- __decorateClass$b([
1871
+ __decorateClass$c([
1809
1872
  graphql.Field(() => [String], {
1810
1873
  nullable: true,
1811
1874
  description: "OPERATION_REGISTRY \u043A\u043E\u0434\u044B: o.cap.lend, o.wal.depcpl, o.mig.minshr \u0438 \u0442.\u0434."
@@ -1814,13 +1877,13 @@ __decorateClass$b([
1814
1877
  classValidator.IsArray(),
1815
1878
  classValidator.IsString({ each: true })
1816
1879
  ], exports.GetLedger2HistoryInputDTO.prototype, "operationCodes", 2);
1817
- __decorateClass$b([
1880
+ __decorateClass$c([
1818
1881
  graphql.Field(() => String, { nullable: true }),
1819
1882
  classValidator.IsOptional(),
1820
1883
  classValidator.IsString(),
1821
1884
  classValidator.MaxLength(64)
1822
1885
  ], exports.GetLedger2HistoryInputDTO.prototype, "username", 2);
1823
- __decorateClass$b([
1886
+ __decorateClass$c([
1824
1887
  graphql.Field(() => String, { nullable: true, description: "process_hash (hex-64) \u0434\u043B\u044F \u0432\u044B\u0431\u043E\u0440\u043A\u0438 \u0432\u0441\u0435\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043E\u0434\u043D\u043E\u0439 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438" }),
1825
1888
  classValidator.IsOptional(),
1826
1889
  classValidator.IsString(),
@@ -1829,7 +1892,7 @@ __decorateClass$b([
1829
1892
  message: validationMessage("ledger2.getLedger2HistoryInput.processHashInvalidFormat")
1830
1893
  })
1831
1894
  ], exports.GetLedger2HistoryInputDTO.prototype, "processHash", 2);
1832
- __decorateClass$b([
1895
+ __decorateClass$c([
1833
1896
  graphql.Field(() => String, {
1834
1897
  nullable: true,
1835
1898
  description: "global_sequence \u0440\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u0441\u043A\u043E\u0433\u043E apply: \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0442\u043E\u043B\u044C\u043A\u043E inline-\u0441\u0438\u0431\u0441\u043E\u0432 (walletop/debit/credit) \u044D\u0442\u043E\u0433\u043E apply \u0447\u0435\u0440\u0435\u0437 \u0442\u043E\u0447\u0435\u0447\u043D\u0443\u044E \u0441\u0432\u044F\u0437\u044C parser2 (transaction_id + creator_action_ordinal=apply.action_ordinal)."
@@ -1838,7 +1901,7 @@ __decorateClass$b([
1838
1901
  classValidator.IsString(),
1839
1902
  classValidator.MaxLength(24)
1840
1903
  ], exports.GetLedger2HistoryInputDTO.prototype, "parentApplyGlobalSequence", 2);
1841
- __decorateClass$b([
1904
+ __decorateClass$c([
1842
1905
  graphql.Field(() => String, {
1843
1906
  nullable: true,
1844
1907
  description: "\u2116 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 = apply.global_sequence. \u0422\u043E\u0447\u0435\u0447\u043D\u0430\u044F \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u044F \u043E\u0434\u043D\u043E\u0439 apply-\u0433\u0440\u0443\u043F\u043F\u044B (apply + walletop/debit/credit)."
@@ -1847,7 +1910,7 @@ __decorateClass$b([
1847
1910
  classValidator.IsString(),
1848
1911
  classValidator.MaxLength(24)
1849
1912
  ], exports.GetLedger2HistoryInputDTO.prototype, "applyGlobalSequence", 2);
1850
- __decorateClass$b([
1913
+ __decorateClass$c([
1851
1914
  graphql.Field(() => String, {
1852
1915
  nullable: true,
1853
1916
  description: "\u2116 \u0434\u0432\u0438\u0436\u0435\u043D\u0438\u044F \u043F\u043E \u043A\u043E\u0448\u0435\u043B\u044C\u043A\u0443 = walletop.global_sequence. \u0423\u043D\u0438\u043A\u0430\u043B\u0435\u043D."
@@ -1856,58 +1919,58 @@ __decorateClass$b([
1856
1919
  classValidator.IsString(),
1857
1920
  classValidator.MaxLength(24)
1858
1921
  ], exports.GetLedger2HistoryInputDTO.prototype, "walletopGlobalSequence", 2);
1859
- __decorateClass$b([
1922
+ __decorateClass$c([
1860
1923
  graphql.Field(() => Date, { nullable: true }),
1861
1924
  classValidator.IsOptional(),
1862
1925
  classValidator.IsDate(),
1863
1926
  classTransformer.Type(() => Date)
1864
1927
  ], exports.GetLedger2HistoryInputDTO.prototype, "dateFrom", 2);
1865
- __decorateClass$b([
1928
+ __decorateClass$c([
1866
1929
  graphql.Field(() => Date, { nullable: true }),
1867
1930
  classValidator.IsOptional(),
1868
1931
  classValidator.IsDate(),
1869
1932
  classTransformer.Type(() => Date)
1870
1933
  ], exports.GetLedger2HistoryInputDTO.prototype, "dateTo", 2);
1871
- __decorateClass$b([
1934
+ __decorateClass$c([
1872
1935
  graphql.Field(() => graphql.Int, { nullable: true, defaultValue: 1 }),
1873
1936
  classValidator.IsOptional(),
1874
1937
  classValidator.IsInt(),
1875
1938
  classValidator.Min(1)
1876
1939
  ], exports.GetLedger2HistoryInputDTO.prototype, "page", 2);
1877
- __decorateClass$b([
1940
+ __decorateClass$c([
1878
1941
  graphql.Field(() => graphql.Int, { nullable: true, defaultValue: 50 }),
1879
1942
  classValidator.IsOptional(),
1880
1943
  classValidator.IsInt(),
1881
1944
  classValidator.Min(1),
1882
1945
  classValidator.Max(500)
1883
1946
  ], exports.GetLedger2HistoryInputDTO.prototype, "limit", 2);
1884
- __decorateClass$b([
1947
+ __decorateClass$c([
1885
1948
  graphql.Field(() => String, { nullable: true, defaultValue: "DESC" }),
1886
1949
  classValidator.IsOptional(),
1887
1950
  classValidator.IsIn(["ASC", "DESC"])
1888
1951
  ], exports.GetLedger2HistoryInputDTO.prototype, "sortOrder", 2);
1889
- exports.GetLedger2HistoryInputDTO = __decorateClass$b([
1952
+ exports.GetLedger2HistoryInputDTO = __decorateClass$c([
1890
1953
  graphql.InputType("GetLedger2HistoryInput")
1891
1954
  ], exports.GetLedger2HistoryInputDTO);
1892
1955
 
1893
- var __defProp$a = Object.defineProperty;
1894
- var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
1895
- var __decorateClass$a = (decorators, target, key, kind) => {
1896
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
1956
+ var __defProp$b = Object.defineProperty;
1957
+ var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
1958
+ var __decorateClass$b = (decorators, target, key, kind) => {
1959
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
1897
1960
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
1898
1961
  if (decorator = decorators[i])
1899
1962
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
1900
1963
  if (kind && result)
1901
- __defProp$a(target, key, result);
1964
+ __defProp$b(target, key, result);
1902
1965
  return result;
1903
1966
  };
1904
1967
  exports.GetLedger2PostingsInputDTO = class GetLedger2PostingsInputDTO {
1905
1968
  };
1906
- __decorateClass$a([
1969
+ __decorateClass$b([
1907
1970
  graphql.Field(() => String),
1908
1971
  classValidator.IsString()
1909
1972
  ], exports.GetLedger2PostingsInputDTO.prototype, "coopname", 2);
1910
- __decorateClass$a([
1973
+ __decorateClass$b([
1911
1974
  graphql.Field(() => graphql.Int, {
1912
1975
  nullable: true,
1913
1976
  description: "\u0411\u0443\u0445.\u0441\u0447\u0451\u0442 (\xD71000) \u2014 \u043F\u043E\u043F\u0430\u0434\u0430\u043D\u0438\u0435 \u0432 debit \u0418\u041B\u0418 credit \u043D\u043E\u0433\u0435 \u043F\u0440\u043E\u0432\u043E\u0434\u043A\u0438."
@@ -1915,19 +1978,19 @@ __decorateClass$a([
1915
1978
  classValidator.IsOptional(),
1916
1979
  classValidator.IsInt()
1917
1980
  ], exports.GetLedger2PostingsInputDTO.prototype, "accountId", 2);
1918
- __decorateClass$a([
1981
+ __decorateClass$b([
1919
1982
  graphql.Field(() => String, { nullable: true }),
1920
1983
  classValidator.IsOptional(),
1921
1984
  classValidator.IsString(),
1922
1985
  classValidator.MaxLength(64)
1923
1986
  ], exports.GetLedger2PostingsInputDTO.prototype, "username", 2);
1924
- __decorateClass$a([
1987
+ __decorateClass$b([
1925
1988
  graphql.Field(() => String, { nullable: true, description: "process_hash \u0434\u043B\u044F \u0432\u044B\u0431\u043E\u0440\u043A\u0438 \u0432\u0441\u0435\u0445 \u043F\u0440\u043E\u0432\u043E\u0434\u043E\u043A \u043E\u0434\u043D\u043E\u0439 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438" }),
1926
1989
  classValidator.IsOptional(),
1927
1990
  classValidator.IsString(),
1928
1991
  classValidator.MaxLength(66)
1929
1992
  ], exports.GetLedger2PostingsInputDTO.prototype, "processHash", 2);
1930
- __decorateClass$a([
1993
+ __decorateClass$b([
1931
1994
  graphql.Field(() => String, {
1932
1995
  nullable: true,
1933
1996
  description: "\u2116 \u043F\u0440\u043E\u0432\u043E\u0434\u043A\u0438 = debit.global_sequence (unique). \u041F\u0430\u0440\u043D\u044B\u0439 credit \u043F\u043E\u0434\u0442\u044F\u043D\u0435\u0442\u0441\u044F \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438."
@@ -1936,7 +1999,7 @@ __decorateClass$a([
1936
1999
  classValidator.IsString(),
1937
2000
  classValidator.MaxLength(24)
1938
2001
  ], exports.GetLedger2PostingsInputDTO.prototype, "debitGlobalSequence", 2);
1939
- __decorateClass$a([
2002
+ __decorateClass$b([
1940
2003
  graphql.Field(() => String, {
1941
2004
  nullable: true,
1942
2005
  description: "\u2116 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 = apply.global_sequence. \u0412\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043F\u0440\u043E\u0432\u043E\u0434\u043A\u0438 \u0440\u043E\u0432\u043D\u043E \u044D\u0442\u043E\u0439 apply-\u0433\u0440\u0443\u043F\u043F\u044B."
@@ -1945,84 +2008,84 @@ __decorateClass$a([
1945
2008
  classValidator.IsString(),
1946
2009
  classValidator.MaxLength(24)
1947
2010
  ], exports.GetLedger2PostingsInputDTO.prototype, "applyGlobalSequence", 2);
1948
- __decorateClass$a([
2011
+ __decorateClass$b([
1949
2012
  graphql.Field(() => Date, { nullable: true }),
1950
2013
  classValidator.IsOptional(),
1951
2014
  classValidator.IsDate(),
1952
2015
  classTransformer.Type(() => Date)
1953
2016
  ], exports.GetLedger2PostingsInputDTO.prototype, "dateFrom", 2);
1954
- __decorateClass$a([
2017
+ __decorateClass$b([
1955
2018
  graphql.Field(() => Date, { nullable: true }),
1956
2019
  classValidator.IsOptional(),
1957
2020
  classValidator.IsDate(),
1958
2021
  classTransformer.Type(() => Date)
1959
2022
  ], exports.GetLedger2PostingsInputDTO.prototype, "dateTo", 2);
1960
- __decorateClass$a([
2023
+ __decorateClass$b([
1961
2024
  graphql.Field(() => graphql.Int, { nullable: true, defaultValue: 1 }),
1962
2025
  classValidator.IsOptional(),
1963
2026
  classValidator.IsInt(),
1964
2027
  classValidator.Min(1)
1965
2028
  ], exports.GetLedger2PostingsInputDTO.prototype, "page", 2);
1966
- __decorateClass$a([
2029
+ __decorateClass$b([
1967
2030
  graphql.Field(() => graphql.Int, { nullable: true, defaultValue: 50 }),
1968
2031
  classValidator.IsOptional(),
1969
2032
  classValidator.IsInt(),
1970
2033
  classValidator.Min(1),
1971
2034
  classValidator.Max(500)
1972
2035
  ], exports.GetLedger2PostingsInputDTO.prototype, "limit", 2);
1973
- __decorateClass$a([
2036
+ __decorateClass$b([
1974
2037
  graphql.Field(() => String, { nullable: true, defaultValue: "DESC" }),
1975
2038
  classValidator.IsOptional(),
1976
2039
  classValidator.IsIn(["ASC", "DESC"])
1977
2040
  ], exports.GetLedger2PostingsInputDTO.prototype, "sortOrder", 2);
1978
- exports.GetLedger2PostingsInputDTO = __decorateClass$a([
2041
+ exports.GetLedger2PostingsInputDTO = __decorateClass$b([
1979
2042
  graphql.InputType("GetLedger2PostingsInput")
1980
2043
  ], exports.GetLedger2PostingsInputDTO);
1981
2044
 
1982
- var __defProp$9 = Object.defineProperty;
1983
- var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
1984
- var __decorateClass$9 = (decorators, target, key, kind) => {
1985
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
2045
+ var __defProp$a = Object.defineProperty;
2046
+ var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
2047
+ var __decorateClass$a = (decorators, target, key, kind) => {
2048
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
1986
2049
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
1987
2050
  if (decorator = decorators[i])
1988
2051
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
1989
2052
  if (kind && result)
1990
- __defProp$9(target, key, result);
2053
+ __defProp$a(target, key, result);
1991
2054
  return result;
1992
2055
  };
1993
2056
  exports.ProcessesFilterInput = class ProcessesFilterInput {
1994
2057
  };
1995
- __decorateClass$9([
2058
+ __decorateClass$a([
1996
2059
  graphql.Field(() => String)
1997
2060
  ], exports.ProcessesFilterInput.prototype, "coopname", 2);
1998
- __decorateClass$9([
2061
+ __decorateClass$a([
1999
2062
  graphql.Field(() => String, { nullable: true })
2000
2063
  ], exports.ProcessesFilterInput.prototype, "processType", 2);
2001
- __decorateClass$9([
2064
+ __decorateClass$a([
2002
2065
  graphql.Field(() => String, { nullable: true })
2003
2066
  ], exports.ProcessesFilterInput.prototype, "username", 2);
2004
- __decorateClass$9([
2067
+ __decorateClass$a([
2005
2068
  graphql.Field(() => String, { nullable: true, description: "\u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430 \u2014 \u0442\u043E\u0447\u0435\u0447\u043D\u0430\u044F \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u044F \u043E\u0434\u043D\u043E\u0433\u043E \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430 \u043F\u043E \u0435\u0433\u043E \u0445\u044D\u0448\u0443" })
2006
2069
  ], exports.ProcessesFilterInput.prototype, "processHash", 2);
2007
- __decorateClass$9([
2070
+ __decorateClass$a([
2008
2071
  graphql.Field(() => graphql.Int, { nullable: true })
2009
2072
  ], exports.ProcessesFilterInput.prototype, "fromBlock", 2);
2010
- __decorateClass$9([
2073
+ __decorateClass$a([
2011
2074
  graphql.Field(() => graphql.Int, { nullable: true })
2012
2075
  ], exports.ProcessesFilterInput.prototype, "toBlock", 2);
2013
- exports.ProcessesFilterInput = __decorateClass$9([
2076
+ exports.ProcessesFilterInput = __decorateClass$a([
2014
2077
  graphql.InputType("ProcessesFilter")
2015
2078
  ], exports.ProcessesFilterInput);
2016
2079
 
2017
- var __defProp$8 = Object.defineProperty;
2018
- var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
2019
- var __decorateClass$8 = (decorators, target, key, kind) => {
2020
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
2080
+ var __defProp$9 = Object.defineProperty;
2081
+ var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
2082
+ var __decorateClass$9 = (decorators, target, key, kind) => {
2083
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
2021
2084
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
2022
2085
  if (decorator = decorators[i])
2023
2086
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
2024
2087
  if (kind && result)
2025
- __defProp$8(target, key, result);
2088
+ __defProp$9(target, key, result);
2026
2089
  return result;
2027
2090
  };
2028
2091
  exports.ProcessSummaryDTO = class ProcessSummaryDTO {
@@ -2030,174 +2093,309 @@ exports.ProcessSummaryDTO = class ProcessSummaryDTO {
2030
2093
  // странице listProcesses были запросы 300+ на request. UI читает
2031
2094
  // getProcess(hash) при раскрытии — там счётчики выводимы из массивов.
2032
2095
  };
2033
- __decorateClass$8([
2096
+ __decorateClass$9([
2034
2097
  graphql.Field(() => String)
2035
2098
  ], exports.ProcessSummaryDTO.prototype, "processType", 2);
2036
- __decorateClass$8([
2099
+ __decorateClass$9([
2037
2100
  graphql.Field(() => String)
2038
2101
  ], exports.ProcessSummaryDTO.prototype, "processHash", 2);
2039
- __decorateClass$8([
2102
+ __decorateClass$9([
2040
2103
  graphql.Field(() => String)
2041
2104
  ], exports.ProcessSummaryDTO.prototype, "coopname", 2);
2042
- __decorateClass$8([
2105
+ __decorateClass$9([
2043
2106
  graphql.Field(() => String, { nullable: true })
2044
2107
  ], exports.ProcessSummaryDTO.prototype, "username", 2);
2045
- __decorateClass$8([
2108
+ __decorateClass$9([
2046
2109
  graphql.Field(() => Date)
2047
2110
  ], exports.ProcessSummaryDTO.prototype, "firstSeenAt", 2);
2048
- __decorateClass$8([
2111
+ __decorateClass$9([
2049
2112
  graphql.Field(() => Date)
2050
2113
  ], exports.ProcessSummaryDTO.prototype, "lastSeenAt", 2);
2051
- __decorateClass$8([
2114
+ __decorateClass$9([
2052
2115
  graphql.Field(() => String, { nullable: true, description: "\u0421\u0443\u043C\u043C\u0430 \u0433\u043B\u0430\u0432\u043D\u043E\u0439 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430 \u2014 \u043D\u0430\u0438\u0431\u043E\u043B\u044C\u0448\u0430\u044F \u0441\u0440\u0435\u0434\u0438 \u0435\u0433\u043E \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0439" })
2053
2116
  ], exports.ProcessSummaryDTO.prototype, "amount", 2);
2054
- __decorateClass$8([
2117
+ __decorateClass$9([
2055
2118
  graphql.Field(() => String, { nullable: true, description: "\u041D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0433\u043B\u0430\u0432\u043D\u043E\u0439 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430" })
2056
2119
  ], exports.ProcessSummaryDTO.prototype, "memo", 2);
2057
- exports.ProcessSummaryDTO = __decorateClass$8([
2120
+ exports.ProcessSummaryDTO = __decorateClass$9([
2058
2121
  graphql.ObjectType("ProcessSummary")
2059
2122
  ], exports.ProcessSummaryDTO);
2060
2123
  const PaginatedProcessSummary = createPaginationResult(exports.ProcessSummaryDTO, "ProcessSummary");
2061
2124
 
2062
- var __defProp$7 = Object.defineProperty;
2063
- var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
2064
- var __decorateClass$7 = (decorators, target, key, kind) => {
2065
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
2125
+ var __defProp$8 = Object.defineProperty;
2126
+ var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
2127
+ var __decorateClass$8 = (decorators, target, key, kind) => {
2128
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
2066
2129
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
2067
2130
  if (decorator = decorators[i])
2068
2131
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
2069
2132
  if (kind && result)
2070
- __defProp$7(target, key, result);
2133
+ __defProp$8(target, key, result);
2071
2134
  return result;
2072
2135
  };
2073
2136
  exports.ProcessActionDTO = class ProcessActionDTO {
2074
2137
  };
2075
- __decorateClass$7([
2138
+ __decorateClass$8([
2076
2139
  graphql.Field(() => String)
2077
2140
  ], exports.ProcessActionDTO.prototype, "id", 2);
2078
- __decorateClass$7([
2141
+ __decorateClass$8([
2079
2142
  graphql.Field(() => String)
2080
2143
  ], exports.ProcessActionDTO.prototype, "account", 2);
2081
- __decorateClass$7([
2144
+ __decorateClass$8([
2082
2145
  graphql.Field(() => String)
2083
2146
  ], exports.ProcessActionDTO.prototype, "name", 2);
2084
- __decorateClass$7([
2147
+ __decorateClass$8([
2085
2148
  graphql.Field(() => GraphQLJSON__default, { nullable: true })
2086
2149
  ], exports.ProcessActionDTO.prototype, "data", 2);
2087
- __decorateClass$7([
2150
+ __decorateClass$8([
2088
2151
  graphql.Field(() => Number)
2089
2152
  ], exports.ProcessActionDTO.prototype, "block_num", 2);
2090
- __decorateClass$7([
2153
+ __decorateClass$8([
2091
2154
  graphql.Field(() => String)
2092
2155
  ], exports.ProcessActionDTO.prototype, "block_id", 2);
2093
- __decorateClass$7([
2156
+ __decorateClass$8([
2094
2157
  graphql.Field(() => String)
2095
2158
  ], exports.ProcessActionDTO.prototype, "global_sequence", 2);
2096
- __decorateClass$7([
2159
+ __decorateClass$8([
2097
2160
  graphql.Field(() => String)
2098
2161
  ], exports.ProcessActionDTO.prototype, "transaction_id", 2);
2099
- __decorateClass$7([
2162
+ __decorateClass$8([
2100
2163
  graphql.Field(() => Date)
2101
2164
  ], exports.ProcessActionDTO.prototype, "created_at", 2);
2102
- exports.ProcessActionDTO = __decorateClass$7([
2165
+ exports.ProcessActionDTO = __decorateClass$8([
2103
2166
  graphql.ObjectType("ProcessAction")
2104
2167
  ], exports.ProcessActionDTO);
2105
2168
  exports.ProcessDeltaDTO = class ProcessDeltaDTO {
2106
2169
  };
2107
- __decorateClass$7([
2170
+ __decorateClass$8([
2108
2171
  graphql.Field(() => String)
2109
2172
  ], exports.ProcessDeltaDTO.prototype, "id", 2);
2110
- __decorateClass$7([
2173
+ __decorateClass$8([
2111
2174
  graphql.Field(() => String)
2112
2175
  ], exports.ProcessDeltaDTO.prototype, "code", 2);
2113
- __decorateClass$7([
2176
+ __decorateClass$8([
2114
2177
  graphql.Field(() => String)
2115
2178
  ], exports.ProcessDeltaDTO.prototype, "scope", 2);
2116
- __decorateClass$7([
2179
+ __decorateClass$8([
2117
2180
  graphql.Field(() => String)
2118
2181
  ], exports.ProcessDeltaDTO.prototype, "table", 2);
2119
- __decorateClass$7([
2182
+ __decorateClass$8([
2120
2183
  graphql.Field(() => String)
2121
2184
  ], exports.ProcessDeltaDTO.prototype, "primary_key", 2);
2122
- __decorateClass$7([
2185
+ __decorateClass$8([
2123
2186
  graphql.Field(() => Boolean)
2124
2187
  ], exports.ProcessDeltaDTO.prototype, "present", 2);
2125
- __decorateClass$7([
2188
+ __decorateClass$8([
2126
2189
  graphql.Field(() => GraphQLJSON__default, { nullable: true })
2127
2190
  ], exports.ProcessDeltaDTO.prototype, "value", 2);
2128
- __decorateClass$7([
2191
+ __decorateClass$8([
2129
2192
  graphql.Field(() => Number)
2130
2193
  ], exports.ProcessDeltaDTO.prototype, "block_num", 2);
2131
- __decorateClass$7([
2194
+ __decorateClass$8([
2132
2195
  graphql.Field(() => Date)
2133
2196
  ], exports.ProcessDeltaDTO.prototype, "created_at", 2);
2134
- exports.ProcessDeltaDTO = __decorateClass$7([
2197
+ exports.ProcessDeltaDTO = __decorateClass$8([
2135
2198
  graphql.ObjectType("ProcessDelta")
2136
2199
  ], exports.ProcessDeltaDTO);
2137
2200
  exports.ProcessDocumentSourceDTO = class ProcessDocumentSourceDTO {
2138
2201
  };
2139
- __decorateClass$7([
2202
+ __decorateClass$8([
2140
2203
  graphql.Field(() => String)
2141
2204
  ], exports.ProcessDocumentSourceDTO.prototype, "code", 2);
2142
- __decorateClass$7([
2205
+ __decorateClass$8([
2143
2206
  graphql.Field(() => String)
2144
2207
  ], exports.ProcessDocumentSourceDTO.prototype, "table", 2);
2145
- __decorateClass$7([
2208
+ __decorateClass$8([
2146
2209
  graphql.Field(() => String)
2147
2210
  ], exports.ProcessDocumentSourceDTO.prototype, "field", 2);
2148
- __decorateClass$7([
2211
+ __decorateClass$8([
2149
2212
  graphql.Field(() => String)
2150
2213
  ], exports.ProcessDocumentSourceDTO.prototype, "primary_key", 2);
2151
- exports.ProcessDocumentSourceDTO = __decorateClass$7([
2214
+ exports.ProcessDocumentSourceDTO = __decorateClass$8([
2152
2215
  graphql.ObjectType("ProcessDocumentSource")
2153
2216
  ], exports.ProcessDocumentSourceDTO);
2154
2217
  exports.ProcessDocumentDTO = class ProcessDocumentDTO {
2155
2218
  };
2156
- __decorateClass$7([
2219
+ __decorateClass$8([
2157
2220
  graphql.Field(() => String)
2158
2221
  ], exports.ProcessDocumentDTO.prototype, "hash", 2);
2159
- __decorateClass$7([
2222
+ __decorateClass$8([
2160
2223
  graphql.Field(() => exports.ProcessDocumentSourceDTO)
2161
2224
  ], exports.ProcessDocumentDTO.prototype, "source", 2);
2162
- __decorateClass$7([
2225
+ __decorateClass$8([
2163
2226
  graphql.Field(() => GraphQLJSON__default)
2164
2227
  ], exports.ProcessDocumentDTO.prototype, "document", 2);
2165
- __decorateClass$7([
2228
+ __decorateClass$8([
2166
2229
  graphql.Field(() => GraphQLJSON__default, { nullable: true })
2167
2230
  ], exports.ProcessDocumentDTO.prototype, "raw", 2);
2168
- exports.ProcessDocumentDTO = __decorateClass$7([
2231
+ exports.ProcessDocumentDTO = __decorateClass$8([
2169
2232
  graphql.ObjectType("ProcessDocument")
2170
2233
  ], exports.ProcessDocumentDTO);
2171
2234
  exports.ProcessViewDTO = class ProcessViewDTO {
2172
2235
  };
2173
- __decorateClass$7([
2236
+ __decorateClass$8([
2174
2237
  graphql.Field(() => String)
2175
2238
  ], exports.ProcessViewDTO.prototype, "process_type", 2);
2176
- __decorateClass$7([
2239
+ __decorateClass$8([
2177
2240
  graphql.Field(() => String)
2178
2241
  ], exports.ProcessViewDTO.prototype, "process_hash", 2);
2179
- __decorateClass$7([
2242
+ __decorateClass$8([
2180
2243
  graphql.Field(() => String)
2181
2244
  ], exports.ProcessViewDTO.prototype, "coopname", 2);
2182
- __decorateClass$7([
2245
+ __decorateClass$8([
2183
2246
  graphql.Field(() => Date)
2184
2247
  ], exports.ProcessViewDTO.prototype, "first_seen_at", 2);
2185
- __decorateClass$7([
2248
+ __decorateClass$8([
2186
2249
  graphql.Field(() => Date)
2187
2250
  ], exports.ProcessViewDTO.prototype, "last_seen_at", 2);
2188
- __decorateClass$7([
2251
+ __decorateClass$8([
2189
2252
  graphql.Field(() => [exports.ProcessActionDTO])
2190
2253
  ], exports.ProcessViewDTO.prototype, "actions", 2);
2191
- __decorateClass$7([
2254
+ __decorateClass$8([
2192
2255
  graphql.Field(() => [exports.ProcessDeltaDTO])
2193
2256
  ], exports.ProcessViewDTO.prototype, "delta_history", 2);
2194
- __decorateClass$7([
2257
+ __decorateClass$8([
2195
2258
  graphql.Field(() => [exports.ProcessDocumentDTO])
2196
2259
  ], exports.ProcessViewDTO.prototype, "documents", 2);
2197
- exports.ProcessViewDTO = __decorateClass$7([
2260
+ exports.ProcessViewDTO = __decorateClass$8([
2198
2261
  graphql.ObjectType("ProcessView")
2199
2262
  ], exports.ProcessViewDTO);
2200
2263
 
2264
+ var __defProp$7 = Object.defineProperty;
2265
+ var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
2266
+ var __decorateClass$7 = (decorators, target, key, kind) => {
2267
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
2268
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
2269
+ if (decorator = decorators[i])
2270
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
2271
+ if (kind && result)
2272
+ __defProp$7(target, key, result);
2273
+ return result;
2274
+ };
2275
+ exports.ProcessContentFactDTO = class ProcessContentFactDTO {
2276
+ };
2277
+ __decorateClass$7([
2278
+ graphql.Field(() => String, { description: "\u041F\u043E\u0434\u043F\u0438\u0441\u044C: \xAB\u041F\u043E\u0441\u0442\u0430\u0432\u0449\u0438\u043A\xBB, \xAB\u0423\u0447\u0430\u0441\u0442\u043E\u043A\xBB" })
2279
+ ], exports.ProcessContentFactDTO.prototype, "label", 2);
2280
+ __decorateClass$7([
2281
+ graphql.Field(() => String, { description: "\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0441\u043B\u043E\u0432\u0430\u043C\u0438: \u0424\u0418\u041E, \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435, \u0434\u0430\u0442\u0430" })
2282
+ ], exports.ProcessContentFactDTO.prototype, "value", 2);
2283
+ exports.ProcessContentFactDTO = __decorateClass$7([
2284
+ graphql.ObjectType("ProcessContentFact")
2285
+ ], exports.ProcessContentFactDTO);
2286
+ exports.ProcessContentLinkDTO = class ProcessContentLinkDTO {
2287
+ };
2288
+ __decorateClass$7([
2289
+ graphql.Field(() => String, { description: "\u041D\u0430\u0434\u043F\u0438\u0441\u044C \u043A\u043D\u043E\u043F\u043A\u0438" })
2290
+ ], exports.ProcessContentLinkDTO.prototype, "label", 2);
2291
+ __decorateClass$7([
2292
+ graphql.Field(() => String, { description: "\u041F\u0443\u0442\u044C \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B \u0441\u0442\u043E\u043B\u0430 \u0432\u043D\u0443\u0442\u0440\u0438 \u043A\u043E\u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u0430, \u043D\u0430\u0447\u0438\u043D\u0430\u044F \u0441 \xAB/\xBB" })
2293
+ ], exports.ProcessContentLinkDTO.prototype, "path", 2);
2294
+ exports.ProcessContentLinkDTO = __decorateClass$7([
2295
+ graphql.ObjectType("ProcessContentLink")
2296
+ ], exports.ProcessContentLinkDTO);
2297
+ exports.ProcessContentLineDTO = class ProcessContentLineDTO {
2298
+ };
2299
+ __decorateClass$7([
2300
+ graphql.Field(() => String, { description: "\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F \u0441\u043B\u043E\u0432\u0430\u043C\u0438: \xAB\u041E\u0442\u0447\u0438\u0441\u043B\u0435\u043D\u0438\u0435 \u0432 \u0440\u0435\u0437\u0435\u0440\u0432\u043D\u044B\u0439 \u0444\u043E\u043D\u0434\u2026\xBB" })
2301
+ ], exports.ProcessContentLineDTO.prototype, "label", 2);
2302
+ __decorateClass$7([
2303
+ graphql.Field(() => String, { nullable: true, description: "\u041F\u0430\u0439\u0449\u0438\u043A, \u0443\u0447\u0430\u0441\u0442\u043E\u043A \u0438\u043B\u0438 \u043A\u043E\u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438" })
2304
+ ], exports.ProcessContentLineDTO.prototype, "subject", 2);
2305
+ __decorateClass$7([
2306
+ graphql.Field(() => String, { nullable: true, description: "\u0421\u0443\u043C\u043C\u0430 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438, \u0430\u043A\u0442\u0438\u0432 \xAB234.8400 RUB\xBB" })
2307
+ ], exports.ProcessContentLineDTO.prototype, "amount", 2);
2308
+ exports.ProcessContentLineDTO = __decorateClass$7([
2309
+ graphql.ObjectType("ProcessContentLine")
2310
+ ], exports.ProcessContentLineDTO);
2311
+ exports.ProcessContentDTO = class ProcessContentDTO {
2312
+ };
2313
+ __decorateClass$7([
2314
+ graphql.Field(() => String, {
2315
+ description: "\u0413\u043B\u0430\u0432\u043D\u043E\u0435: \u0447\u0442\u043E \u044D\u0442\u043E \u2014 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0438\u043C\u0443\u0449\u0435\u0441\u0442\u0432\u0430, \u043F\u0440\u0435\u0434\u043C\u0435\u0442 \u0440\u0430\u0441\u0445\u043E\u0434\u0430. \u041F\u0443\u0441\u0442\u043E \u2014 \u043F\u0440\u043E\u0446\u0435\u0441\u0441 \u043D\u0430\u0437\u044B\u0432\u0430\u0435\u0442 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u043C\u0435\u0441\u0442\u0430"
2316
+ })
2317
+ ], exports.ProcessContentDTO.prototype, "title", 2);
2318
+ __decorateClass$7([
2319
+ graphql.Field(() => String, { nullable: true, description: "\u0421\u0442\u0440\u043E\u043A\u0430 \u043F\u043E\u0434 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435\u043C: \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E, \u043D\u043E\u043C\u0435\u0440, \u043F\u0435\u0440\u0438\u043E\u0434" })
2320
+ ], exports.ProcessContentDTO.prototype, "subtitle", 2);
2321
+ __decorateClass$7([
2322
+ graphql.Field(() => String, { nullable: true, description: "\u0421\u043D\u0438\u043C\u043E\u043A \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u0430 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430 (\u043E\u0431\u043B\u043E\u0436\u043A\u0430 \u0438\u043C\u0443\u0449\u0435\u0441\u0442\u0432\u0430)" })
2323
+ ], exports.ProcessContentDTO.prototype, "image_url", 2);
2324
+ __decorateClass$7([
2325
+ graphql.Field(() => String, { nullable: true, description: "\u0413\u043B\u0430\u0432\u043D\u0430\u044F \u0441\u0443\u043C\u043C\u0430 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430, \u0430\u043A\u0442\u0438\u0432 \xAB10000.0000 RUB\xBB" })
2326
+ ], exports.ProcessContentDTO.prototype, "amount", 2);
2327
+ __decorateClass$7([
2328
+ graphql.Field(() => String, { nullable: true, description: "\u041F\u043E\u0434\u043F\u0438\u0441\u044C \u0433\u043B\u0430\u0432\u043D\u043E\u0439 \u0441\u0443\u043C\u043C\u044B: \xAB\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0438\u043C\u0443\u0449\u0435\u0441\u0442\u0432\u0430\xBB" })
2329
+ ], exports.ProcessContentDTO.prototype, "amount_label", 2);
2330
+ __decorateClass$7([
2331
+ graphql.Field(() => String, { nullable: true, description: "\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u0441\u0443\u0449\u043D\u043E\u0441\u0442\u0438 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430 \u0441\u043B\u043E\u0432\u0430\u043C\u0438" })
2332
+ ], exports.ProcessContentDTO.prototype, "status", 2);
2333
+ __decorateClass$7([
2334
+ graphql.Field(() => [exports.ProcessContentFactDTO], { description: "\u0421\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u043F\u043E \u043F\u043E\u0440\u044F\u0434\u043A\u0443 \u0447\u0442\u0435\u043D\u0438\u044F" })
2335
+ ], exports.ProcessContentDTO.prototype, "facts", 2);
2336
+ __decorateClass$7([
2337
+ graphql.Field(() => [exports.ProcessContentLinkDTO], { description: "\u041F\u0435\u0440\u0435\u0445\u043E\u0434\u044B \u043D\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B \u0441\u0443\u0449\u043D\u043E\u0441\u0442\u0438" })
2338
+ ], exports.ProcessContentDTO.prototype, "links", 2);
2339
+ __decorateClass$7([
2340
+ graphql.Field(() => [exports.ProcessContentLineDTO], { nullable: true, description: "\u0421\u043E\u0441\u0442\u0430\u0432 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430 \u2014 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u043F\u043E \u043F\u043E\u0440\u044F\u0434\u043A\u0443" })
2341
+ ], exports.ProcessContentDTO.prototype, "lines", 2);
2342
+ exports.ProcessContentDTO = __decorateClass$7([
2343
+ graphql.ObjectType("ProcessContent")
2344
+ ], exports.ProcessContentDTO);
2345
+ class ProcessContentRegistry {
2346
+ constructor() {
2347
+ this.providers = /* @__PURE__ */ new Map();
2348
+ this.fallback = null;
2349
+ }
2350
+ /**
2351
+ * Общее содержание для процесса без описания приложения либо без записи
2352
+ * сущности (стёрта по завершении): ядро собирает его из сводки процесса —
2353
+ * чей процесс, сумма, назначение, даты.
2354
+ */
2355
+ registerFallback(provider) {
2356
+ this.fallback = provider;
2357
+ }
2358
+ /** Содержание процесса: описание приложения, иначе общее из сводки. */
2359
+ async describe(processHash, coopname, processType) {
2360
+ const own = await this.providers.get(processType)?.content(processHash, coopname, processType);
2361
+ return own ?? (this.fallback ? this.fallback.content(processHash, coopname, processType) : null);
2362
+ }
2363
+ register(processTypes, provider) {
2364
+ for (const type of Array.isArray(processTypes) ? processTypes : [processTypes]) {
2365
+ this.providers.set(type, provider);
2366
+ }
2367
+ }
2368
+ get(processType) {
2369
+ return this.providers.get(processType);
2370
+ }
2371
+ registeredTypes() {
2372
+ return [...this.providers.keys()];
2373
+ }
2374
+ }
2375
+ const processContentRegistry = new ProcessContentRegistry();
2376
+ function contentFact(label, value) {
2377
+ return value === null || value === void 0 || value === "" ? [] : [{ label, value: String(value) }];
2378
+ }
2379
+ function contentDay(date) {
2380
+ if (date === null || date === void 0 || date === "")
2381
+ return "";
2382
+ const value = typeof date === "number" ? new Date(date * 1e3) : new Date(date);
2383
+ return Number.isNaN(value.getTime()) ? "" : value.toLocaleDateString("ru-RU", { timeZone: "Europe/Moscow" });
2384
+ }
2385
+ function contentMoney(amount, symbol = "") {
2386
+ if (amount === null || amount === void 0 || amount === "")
2387
+ return "";
2388
+ const [value, assetSymbol] = String(amount).trim().split(/\s+/);
2389
+ const number = Number(value).toLocaleString("ru-RU", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
2390
+ return `${number} ${assetSymbol || symbol}`.trim();
2391
+ }
2392
+ function contentAsset(amount, symbol, decimals = 4) {
2393
+ if (amount === null || amount === void 0 || amount === "")
2394
+ return null;
2395
+ const text = String(amount).trim();
2396
+ return /\s/.test(text) ? text : `${Number(text).toFixed(decimals)} ${symbol}`;
2397
+ }
2398
+
2201
2399
  var __defProp$6 = Object.defineProperty;
2202
2400
  var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
2203
2401
  var __decorateClass$6 = (decorators, target, key, kind) => {
@@ -3317,6 +3515,7 @@ exports.DOCUMENT_GENERATION_THROTTLE = DOCUMENT_GENERATION_THROTTLE;
3317
3515
  exports.DateUtils = DateUtils;
3318
3516
  exports.DomainError = DomainError;
3319
3517
  exports.EMPTY_HASH = EMPTY_HASH;
3518
+ exports.EXPENSE_PLAN_RECURRENCE_MONTHS = EXPENSE_PLAN_RECURRENCE_MONTHS;
3320
3519
  exports.EXTENSION_APP_TERMINATE_EVENT = EXTENSION_APP_TERMINATE_EVENT;
3321
3520
  exports.EXTENSION_REPOSITORY = EXTENSION_REPOSITORY;
3322
3521
  exports.EXTENSION_SECRET_SET = EXTENSION_SECRET_SET;
@@ -3360,6 +3559,10 @@ exports.checkRightScope = checkRightScope;
3360
3559
  exports.computeOnboardingExpiresAt = computeOnboardingExpiresAt;
3361
3560
  exports.configureExtensionAuth = configureExtensionAuth;
3362
3561
  exports.configurePlatformSettings = configurePlatformSettings;
3562
+ exports.contentAsset = contentAsset;
3563
+ exports.contentDay = contentDay;
3564
+ exports.contentFact = contentFact;
3565
+ exports.contentMoney = contentMoney;
3363
3566
  exports.councilRolesOf = councilRolesOf;
3364
3567
  exports.createPaginationResult = createPaginationResult;
3365
3568
  exports.describeConfigField = describeConfigField;
@@ -3368,6 +3571,10 @@ exports.desktopGrants = desktopGrants;
3368
3571
  exports.desktopGrantsOf = desktopGrantsOf;
3369
3572
  exports.domainErrorMessage = domainErrorMessage;
3370
3573
  exports.expandRights = expandRights;
3574
+ exports.expensePlanRecurrenceMonths = expensePlanRecurrenceMonths;
3575
+ exports.expensePlanReserveMonths = expensePlanReserveMonths;
3576
+ exports.expensePlanReserveShare = expensePlanReserveShare;
3577
+ exports.expensePlanScheduleDates = expensePlanScheduleDates;
3371
3578
  exports.extensionDatabaseMigrations = extensionDatabaseMigrations;
3372
3579
  exports.generateHashFromString = generateHashFromString;
3373
3580
  exports.generateRandomHash = generateRandomHash;
@@ -3383,11 +3590,13 @@ exports.isStandTimeConfigured = isStandTimeConfigured;
3383
3590
  exports.isStandWorkerTurn = isStandWorkerTurn;
3384
3591
  exports.memberRolesOf = memberRolesOf;
3385
3592
  exports.mergeSecretConfig = mergeSecretConfig;
3593
+ exports.nextExpensePlanDate = nextExpensePlanDate;
3386
3594
  exports.nextLocalMidnight = nextLocalMidnight;
3387
3595
  exports.paginationInputToOffset = paginationInputToOffset;
3388
3596
  exports.parseChainAssert = parseChainAssert;
3389
3597
  exports.pickDefined = pickDefined;
3390
3598
  exports.platformSettings = platformSettings;
3599
+ exports.processContentRegistry = processContentRegistry;
3391
3600
  exports.providerSuppliedPaths = providerSuppliedPaths;
3392
3601
  exports.redactSecretConfig = redactSecretConfig;
3393
3602
  exports.registerExtensionDatabaseMigrations = registerExtensionDatabaseMigrations;