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