@coopenomics/sdk 2.2.3 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +473 -228
- package/dist/index.d.cts +628 -455
- package/dist/index.d.mts +628 -455
- package/dist/index.d.ts +628 -455
- package/dist/index.mjs +473 -228
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1165,8 +1165,6 @@ type ValueTypes = {
|
|
|
1165
1165
|
weight?: boolean | `@${string}`;
|
|
1166
1166
|
__typename?: boolean | `@${string}`;
|
|
1167
1167
|
}>;
|
|
1168
|
-
/** Язык документа */
|
|
1169
|
-
["LangType"]: LangType;
|
|
1170
1168
|
["LoginInput"]: {
|
|
1171
1169
|
/** Электронная почта */
|
|
1172
1170
|
email: string | Variable<any, string>;
|
|
@@ -1545,6 +1543,8 @@ type ValueTypes = {
|
|
|
1545
1543
|
["ParticipantApplicationGenerateDocumentInput"]: {
|
|
1546
1544
|
/** Номер блока, на котором был создан документ */
|
|
1547
1545
|
block_num?: number | undefined | null | Variable<any, string>;
|
|
1546
|
+
/** Имя аккаунта кооперативного участка */
|
|
1547
|
+
braname: string | Variable<any, string>;
|
|
1548
1548
|
/** Название кооператива, связанное с документом */
|
|
1549
1549
|
coopname: string | Variable<any, string>;
|
|
1550
1550
|
/** Дата и время создания документа */
|
|
@@ -1606,6 +1606,8 @@ type ValueTypes = {
|
|
|
1606
1606
|
["ParticipantApplicationSignedMetaDocumentInput"]: {
|
|
1607
1607
|
/** Номер блока, на котором был создан документ */
|
|
1608
1608
|
block_num: number | Variable<any, string>;
|
|
1609
|
+
/** Имя аккаунта кооперативного участка */
|
|
1610
|
+
braname: string | Variable<any, string>;
|
|
1609
1611
|
/** Название кооператива, связанное с документом */
|
|
1610
1612
|
coopname: string | Variable<any, string>;
|
|
1611
1613
|
/** Дата и время создания документа */
|
|
@@ -3320,8 +3322,6 @@ type ResolverInputTypes = {
|
|
|
3320
3322
|
weight?: boolean | `@${string}`;
|
|
3321
3323
|
__typename?: boolean | `@${string}`;
|
|
3322
3324
|
}>;
|
|
3323
|
-
/** Язык документа */
|
|
3324
|
-
["LangType"]: LangType;
|
|
3325
3325
|
["LoginInput"]: {
|
|
3326
3326
|
/** Электронная почта */
|
|
3327
3327
|
email: string;
|
|
@@ -3700,6 +3700,8 @@ type ResolverInputTypes = {
|
|
|
3700
3700
|
["ParticipantApplicationGenerateDocumentInput"]: {
|
|
3701
3701
|
/** Номер блока, на котором был создан документ */
|
|
3702
3702
|
block_num?: number | undefined | null;
|
|
3703
|
+
/** Имя аккаунта кооперативного участка */
|
|
3704
|
+
braname: string;
|
|
3703
3705
|
/** Название кооператива, связанное с документом */
|
|
3704
3706
|
coopname: string;
|
|
3705
3707
|
/** Дата и время создания документа */
|
|
@@ -3761,6 +3763,8 @@ type ResolverInputTypes = {
|
|
|
3761
3763
|
["ParticipantApplicationSignedMetaDocumentInput"]: {
|
|
3762
3764
|
/** Номер блока, на котором был создан документ */
|
|
3763
3765
|
block_num: number;
|
|
3766
|
+
/** Имя аккаунта кооперативного участка */
|
|
3767
|
+
braname: string;
|
|
3764
3768
|
/** Название кооператива, связанное с документом */
|
|
3765
3769
|
coopname: string;
|
|
3766
3770
|
/** Дата и время создания документа */
|
|
@@ -5294,7 +5298,7 @@ type ModelTypes = {
|
|
|
5294
5298
|
/** Имя генератора, использованного для создания документа */
|
|
5295
5299
|
generator: string;
|
|
5296
5300
|
/** Язык документа */
|
|
5297
|
-
lang:
|
|
5301
|
+
lang: string;
|
|
5298
5302
|
/** Ссылки, связанные с документом */
|
|
5299
5303
|
links: Array<string>;
|
|
5300
5304
|
/** Идентификатор протокола решения собрания совета */
|
|
@@ -5440,7 +5444,6 @@ type ModelTypes = {
|
|
|
5440
5444
|
/** Вес */
|
|
5441
5445
|
weight: number;
|
|
5442
5446
|
};
|
|
5443
|
-
["LangType"]: LangType;
|
|
5444
5447
|
["LoginInput"]: {
|
|
5445
5448
|
/** Электронная почта */
|
|
5446
5449
|
email: string;
|
|
@@ -5465,7 +5468,7 @@ type ModelTypes = {
|
|
|
5465
5468
|
/** Имя генератора, использованного для создания документа */
|
|
5466
5469
|
generator: string;
|
|
5467
5470
|
/** Язык документа */
|
|
5468
|
-
lang:
|
|
5471
|
+
lang: string;
|
|
5469
5472
|
/** Ссылки, связанные с документом */
|
|
5470
5473
|
links: Array<string>;
|
|
5471
5474
|
/** ID документа в реестре */
|
|
@@ -5731,7 +5734,7 @@ type ModelTypes = {
|
|
|
5731
5734
|
/** Имя генератора, использованного для создания документа */
|
|
5732
5735
|
generator: string;
|
|
5733
5736
|
/** Язык документа */
|
|
5734
|
-
lang:
|
|
5737
|
+
lang: string;
|
|
5735
5738
|
/** Ссылки, связанные с документом */
|
|
5736
5739
|
links: Array<string>;
|
|
5737
5740
|
/** ID документа в реестре */
|
|
@@ -5760,6 +5763,8 @@ type ModelTypes = {
|
|
|
5760
5763
|
["ParticipantApplicationGenerateDocumentInput"]: {
|
|
5761
5764
|
/** Номер блока, на котором был создан документ */
|
|
5762
5765
|
block_num?: number | undefined | null;
|
|
5766
|
+
/** Имя аккаунта кооперативного участка */
|
|
5767
|
+
braname: string;
|
|
5763
5768
|
/** Название кооператива, связанное с документом */
|
|
5764
5769
|
coopname: string;
|
|
5765
5770
|
/** Дата и время создания документа */
|
|
@@ -5793,7 +5798,7 @@ type ModelTypes = {
|
|
|
5793
5798
|
/** Имя генератора, использованного для создания документа */
|
|
5794
5799
|
generator: string;
|
|
5795
5800
|
/** Язык документа */
|
|
5796
|
-
lang:
|
|
5801
|
+
lang: string;
|
|
5797
5802
|
/** Ссылки, связанные с документом */
|
|
5798
5803
|
links: Array<string>;
|
|
5799
5804
|
/** ID документа в реестре */
|
|
@@ -5820,6 +5825,8 @@ type ModelTypes = {
|
|
|
5820
5825
|
["ParticipantApplicationSignedMetaDocumentInput"]: {
|
|
5821
5826
|
/** Номер блока, на котором был создан документ */
|
|
5822
5827
|
block_num: number;
|
|
5828
|
+
/** Имя аккаунта кооперативного участка */
|
|
5829
|
+
braname: string;
|
|
5823
5830
|
/** Название кооператива, связанное с документом */
|
|
5824
5831
|
coopname: string;
|
|
5825
5832
|
/** Дата и время создания документа */
|
|
@@ -6010,7 +6017,7 @@ type ModelTypes = {
|
|
|
6010
6017
|
/** Имя генератора, использованного для создания документа */
|
|
6011
6018
|
generator: string;
|
|
6012
6019
|
/** Язык документа */
|
|
6013
|
-
lang:
|
|
6020
|
+
lang: string;
|
|
6014
6021
|
/** Ссылки, связанные с документом */
|
|
6015
6022
|
links: Array<string>;
|
|
6016
6023
|
/** Идентификатор проекта решения */
|
|
@@ -6260,7 +6267,7 @@ type ModelTypes = {
|
|
|
6260
6267
|
/** Имя генератора, использованного для создания документа */
|
|
6261
6268
|
generator: string;
|
|
6262
6269
|
/** Язык документа */
|
|
6263
|
-
lang:
|
|
6270
|
+
lang: string;
|
|
6264
6271
|
/** Ссылки, связанные с документом */
|
|
6265
6272
|
links: Array<string>;
|
|
6266
6273
|
/** ID документа в реестре */
|
|
@@ -7334,7 +7341,7 @@ type GraphQLTypes = {
|
|
|
7334
7341
|
/** Имя генератора, использованного для создания документа */
|
|
7335
7342
|
generator: string;
|
|
7336
7343
|
/** Язык документа */
|
|
7337
|
-
lang:
|
|
7344
|
+
lang: string;
|
|
7338
7345
|
/** Ссылки, связанные с документом */
|
|
7339
7346
|
links: Array<string>;
|
|
7340
7347
|
/** Идентификатор протокола решения собрания совета */
|
|
@@ -7485,8 +7492,6 @@ type GraphQLTypes = {
|
|
|
7485
7492
|
/** Вес */
|
|
7486
7493
|
weight: number;
|
|
7487
7494
|
};
|
|
7488
|
-
/** Язык документа */
|
|
7489
|
-
["LangType"]: LangType;
|
|
7490
7495
|
["LoginInput"]: {
|
|
7491
7496
|
/** Электронная почта */
|
|
7492
7497
|
email: string;
|
|
@@ -7512,7 +7517,7 @@ type GraphQLTypes = {
|
|
|
7512
7517
|
/** Имя генератора, использованного для создания документа */
|
|
7513
7518
|
generator: string;
|
|
7514
7519
|
/** Язык документа */
|
|
7515
|
-
lang:
|
|
7520
|
+
lang: string;
|
|
7516
7521
|
/** Ссылки, связанные с документом */
|
|
7517
7522
|
links: Array<string>;
|
|
7518
7523
|
/** ID документа в реестре */
|
|
@@ -7786,7 +7791,7 @@ type GraphQLTypes = {
|
|
|
7786
7791
|
/** Имя генератора, использованного для создания документа */
|
|
7787
7792
|
generator: string;
|
|
7788
7793
|
/** Язык документа */
|
|
7789
|
-
lang:
|
|
7794
|
+
lang: string;
|
|
7790
7795
|
/** Ссылки, связанные с документом */
|
|
7791
7796
|
links: Array<string>;
|
|
7792
7797
|
/** ID документа в реестре */
|
|
@@ -7816,6 +7821,8 @@ type GraphQLTypes = {
|
|
|
7816
7821
|
["ParticipantApplicationGenerateDocumentInput"]: {
|
|
7817
7822
|
/** Номер блока, на котором был создан документ */
|
|
7818
7823
|
block_num?: number | undefined | null;
|
|
7824
|
+
/** Имя аккаунта кооперативного участка */
|
|
7825
|
+
braname: string;
|
|
7819
7826
|
/** Название кооператива, связанное с документом */
|
|
7820
7827
|
coopname: string;
|
|
7821
7828
|
/** Дата и время создания документа */
|
|
@@ -7850,7 +7857,7 @@ type GraphQLTypes = {
|
|
|
7850
7857
|
/** Имя генератора, использованного для создания документа */
|
|
7851
7858
|
generator: string;
|
|
7852
7859
|
/** Язык документа */
|
|
7853
|
-
lang:
|
|
7860
|
+
lang: string;
|
|
7854
7861
|
/** Ссылки, связанные с документом */
|
|
7855
7862
|
links: Array<string>;
|
|
7856
7863
|
/** ID документа в реестре */
|
|
@@ -7877,6 +7884,8 @@ type GraphQLTypes = {
|
|
|
7877
7884
|
["ParticipantApplicationSignedMetaDocumentInput"]: {
|
|
7878
7885
|
/** Номер блока, на котором был создан документ */
|
|
7879
7886
|
block_num: number;
|
|
7887
|
+
/** Имя аккаунта кооперативного участка */
|
|
7888
|
+
braname: string;
|
|
7880
7889
|
/** Название кооператива, связанное с документом */
|
|
7881
7890
|
coopname: string;
|
|
7882
7891
|
/** Дата и время создания документа */
|
|
@@ -8083,7 +8092,7 @@ type GraphQLTypes = {
|
|
|
8083
8092
|
/** Имя генератора, использованного для создания документа */
|
|
8084
8093
|
generator: string;
|
|
8085
8094
|
/** Язык документа */
|
|
8086
|
-
lang:
|
|
8095
|
+
lang: string;
|
|
8087
8096
|
/** Ссылки, связанные с документом */
|
|
8088
8097
|
links: Array<string>;
|
|
8089
8098
|
/** Идентификатор проекта решения */
|
|
@@ -8344,7 +8353,7 @@ type GraphQLTypes = {
|
|
|
8344
8353
|
/** Имя генератора, использованного для создания документа */
|
|
8345
8354
|
generator: string;
|
|
8346
8355
|
/** Язык документа */
|
|
8347
|
-
lang:
|
|
8356
|
+
lang: string;
|
|
8348
8357
|
/** Ссылки, связанные с документом */
|
|
8349
8358
|
links: Array<string>;
|
|
8350
8359
|
/** ID документа в реестре */
|
|
@@ -8682,10 +8691,6 @@ declare enum AccountType {
|
|
|
8682
8691
|
declare enum Country {
|
|
8683
8692
|
Russia = "Russia"
|
|
8684
8693
|
}
|
|
8685
|
-
/** Язык документа */
|
|
8686
|
-
declare enum LangType {
|
|
8687
|
-
ru = "ru"
|
|
8688
|
-
}
|
|
8689
8694
|
/** Тип юридического лица */
|
|
8690
8695
|
declare enum OrganizationType {
|
|
8691
8696
|
AO = "AO",
|
|
@@ -8763,7 +8768,6 @@ type ZEUS_VARIABLES = {
|
|
|
8763
8768
|
["Init"]: ValueTypes["Init"];
|
|
8764
8769
|
["Install"]: ValueTypes["Install"];
|
|
8765
8770
|
["JSON"]: ValueTypes["JSON"];
|
|
8766
|
-
["LangType"]: ValueTypes["LangType"];
|
|
8767
8771
|
["LoginInput"]: ValueTypes["LoginInput"];
|
|
8768
8772
|
["LogoutInput"]: ValueTypes["LogoutInput"];
|
|
8769
8773
|
["MetaDocumentInput"]: ValueTypes["MetaDocumentInput"];
|
|
@@ -8807,248 +8811,92 @@ type ZEUS_VARIABLES = {
|
|
|
8807
8811
|
["VarsInput"]: ValueTypes["VarsInput"];
|
|
8808
8812
|
};
|
|
8809
8813
|
|
|
8810
|
-
declare const index$
|
|
8811
|
-
type index$
|
|
8812
|
-
declare const index$
|
|
8813
|
-
type index$
|
|
8814
|
-
type index$
|
|
8815
|
-
declare const index$
|
|
8816
|
-
type index$
|
|
8817
|
-
declare const index$
|
|
8818
|
-
type index$
|
|
8819
|
-
type index$
|
|
8820
|
-
type index$
|
|
8821
|
-
type index$
|
|
8822
|
-
declare const index$
|
|
8823
|
-
type index$
|
|
8824
|
-
type index$
|
|
8825
|
-
declare const index$
|
|
8826
|
-
type index$
|
|
8827
|
-
declare const index$
|
|
8828
|
-
type index$
|
|
8829
|
-
type index$
|
|
8830
|
-
type index$
|
|
8831
|
-
declare const index$
|
|
8832
|
-
declare const index$
|
|
8833
|
-
type index$
|
|
8834
|
-
type index$
|
|
8835
|
-
declare const index$
|
|
8836
|
-
declare const index$
|
|
8837
|
-
type index$
|
|
8838
|
-
|
|
8839
|
-
type index$
|
|
8840
|
-
type index$
|
|
8841
|
-
type index$
|
|
8842
|
-
|
|
8843
|
-
type index$
|
|
8844
|
-
declare const index$
|
|
8845
|
-
type index$
|
|
8846
|
-
declare const index$
|
|
8847
|
-
type index$
|
|
8848
|
-
declare const index$
|
|
8849
|
-
|
|
8850
|
-
|
|
8851
|
-
|
|
8852
|
-
type index$
|
|
8853
|
-
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
|
|
8857
|
-
type index$
|
|
8858
|
-
type index$
|
|
8859
|
-
type index$
|
|
8860
|
-
|
|
8861
|
-
|
|
8862
|
-
|
|
8863
|
-
declare const index$
|
|
8864
|
-
type index$
|
|
8865
|
-
|
|
8866
|
-
|
|
8867
|
-
|
|
8868
|
-
|
|
8869
|
-
declare const index$
|
|
8870
|
-
type index$
|
|
8871
|
-
|
|
8872
|
-
|
|
8873
|
-
type index$
|
|
8874
|
-
|
|
8875
|
-
type index$
|
|
8876
|
-
type index$
|
|
8877
|
-
type index$
|
|
8878
|
-
type index$
|
|
8879
|
-
|
|
8880
|
-
type index$
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
8885
|
-
declare const index$
|
|
8886
|
-
|
|
8887
|
-
|
|
8888
|
-
declare const index$
|
|
8889
|
-
type index$
|
|
8890
|
-
declare const index$
|
|
8891
|
-
|
|
8892
|
-
declare const index$
|
|
8893
|
-
declare const index$
|
|
8894
|
-
declare
|
|
8895
|
-
|
|
8896
|
-
declare namespace index$k {
|
|
8897
|
-
export { index$k_$ as $, index$k_AccountType as AccountType, type index$k_AliasType as AliasType, type index$k_AllTypesPropsType as AllTypesPropsType, index$k_Chain as Chain, index$k_Country as Country, type index$k_ExtractVariables as ExtractVariables, type index$k_ExtractVariablesDeep as ExtractVariablesDeep, type index$k_FetchFunction as FetchFunction, type index$k_FromSelector as FromSelector, index$k_GRAPHQL_TYPE_SEPARATOR as GRAPHQL_TYPE_SEPARATOR, type index$k_GenericOperation as GenericOperation, type index$k_GetVariableType as GetVariableType, index$k_Gql as Gql, index$k_GraphQLError as GraphQLError, type index$k_GraphQLResponse as GraphQLResponse, type index$k_GraphQLTypes as GraphQLTypes, type index$k_GraphQLVariableType as GraphQLVariableType, index$k_HEADERS as HEADERS, index$k_HOST as HOST, type index$k_InputType as InputType, type index$k_InputValueType as InputValueType, index$k_InternalArgsBuilt as InternalArgsBuilt, index$k_InternalsBuildQuery as InternalsBuildQuery, index$k_LangType as LangType, type index$k_MapType as MapType, type index$k_ModelTypes as ModelTypes, type index$k_OperationOptions as OperationOptions, type index$k_Operations as Operations, index$k_OrganizationType as OrganizationType, index$k_PaymentStatus as PaymentStatus, type index$k_PlainType as PlainType, index$k_PrepareScalarPaths as PrepareScalarPaths, index$k_RegisterRole as RegisterRole, index$k_ResolveFromPath as ResolveFromPath, type index$k_ResolverInputTypes as ResolverInputTypes, type index$k_ResolverType as ResolverType, type index$k_ReturnTypesType as ReturnTypesType, index$k_SEPARATOR as SEPARATOR, index$k_START_VAR_NAME as START_VAR_NAME, type index$k_ScalarCoder as ScalarCoder, type index$k_ScalarCoders as ScalarCoders, type index$k_ScalarDefinition as ScalarDefinition, type index$k_ScalarResolver as ScalarResolver, type index$k_SelectionFunction as SelectionFunction, index$k_Selector as Selector, index$k_Subscription as Subscription, type index$k_SubscriptionFunction as SubscriptionFunction, index$k_SubscriptionThunder as SubscriptionThunder, type index$k_SubscriptionToGraphQL as SubscriptionToGraphQL, index$k_SystemStatus as SystemStatus, index$k_Thunder as Thunder, type index$k_ThunderGraphQLOptions as ThunderGraphQLOptions, index$k_TypeFromSelector as TypeFromSelector, type index$k_UnwrapPromise as UnwrapPromise, index$k_UserStatus as UserStatus, type index$k_VType as VType, type index$k_ValueTypes as ValueTypes, type index$k_Variable as Variable, type index$k_VariableDefinition as VariableDefinition, type index$k_WithOptionalNullables as WithOptionalNullables, type index$k_WithTypeNameValue as WithTypeNameValue, index$k_Zeus as Zeus, type index$k_ZeusArgsType as ZeusArgsType, type index$k_ZeusHook as ZeusHook, index$k_ZeusScalars as ZeusScalars, index$k_ZeusSelect as ZeusSelect, type index$k_ZeusState as ZeusState, index$k_apiFetch as apiFetch, index$k_apiSubscription as apiSubscription, type index$k_chainOptions as chainOptions, index$k_decodeScalarsInResponse as decodeScalarsInResponse, type index$k_fetchOptions as fetchOptions, index$k_fields as fields, index$k_purifyGraphQLKey as purifyGraphQLKey, index$k_resolverFor as resolverFor, index$k_traverseResponse as traverseResponse };
|
|
8898
|
-
}
|
|
8899
|
-
|
|
8900
|
-
interface DeserializedDescriptionOfExtension {
|
|
8901
|
-
/**
|
|
8902
|
-
* Название или метка, которая будет отображаться как подпись к полю ввода.
|
|
8903
|
-
* Обязательное поле.
|
|
8904
|
-
*/
|
|
8905
|
-
label: string;
|
|
8906
|
-
/**
|
|
8907
|
-
* Примечание или дополнительная информация, связанная с полем.
|
|
8908
|
-
* Отображается как подсказка или вспомогательный текст рядом с полем.
|
|
8909
|
-
* Необязательное поле.
|
|
8910
|
-
*/
|
|
8911
|
-
note?: string;
|
|
8912
|
-
/**
|
|
8913
|
-
* Управляет видимостью поля. Если установлено в `false`, поле будет скрыто.
|
|
8914
|
-
* По умолчанию `true` (поле видимо).
|
|
8915
|
-
* Необязательное поле.
|
|
8916
|
-
*/
|
|
8917
|
-
visible?: boolean;
|
|
8918
|
-
/**
|
|
8919
|
-
* Набор правил валидации, определенных как строковые выражения, например `['val > 0']`.
|
|
8920
|
-
* Эти выражения интерпретируются как логические проверки, применяемые к значению поля.
|
|
8921
|
-
* Необязательное поле.
|
|
8922
|
-
*/
|
|
8923
|
-
rules?: string[];
|
|
8924
|
-
/**
|
|
8925
|
-
* Маска для ввода, которая ограничивает допустимые символы и формат поля ввода.
|
|
8926
|
-
* Используется для ограничения ввода, например, к числам или специфическим форматам.
|
|
8927
|
-
* Необязательное поле.
|
|
8928
|
-
*/
|
|
8929
|
-
mask?: string;
|
|
8930
|
-
/**
|
|
8931
|
-
* Определяет, будет ли маска заполняться автоматически, когда значение не полностью введено.
|
|
8932
|
-
* Обычно используется с `mask`, чтобы показать пользователю заполненный шаблон.
|
|
8933
|
-
* Необязательное поле.
|
|
8934
|
-
*/
|
|
8935
|
-
fillMask?: boolean;
|
|
8936
|
-
/**
|
|
8937
|
-
* Минимальная длина строки для текстовых полей.
|
|
8938
|
-
* Проверяется валидацией, чтобы гарантировать, что ввод соответствует минимальной длине.
|
|
8939
|
-
* Необязательное поле.
|
|
8940
|
-
*/
|
|
8941
|
-
minLength?: number;
|
|
8942
|
-
/**
|
|
8943
|
-
* Максимальная длина строки для текстовых полей.
|
|
8944
|
-
* Проверяется валидацией, чтобы гарантировать, что ввод не превышает максимальную длину.
|
|
8945
|
-
* Необязательное поле.
|
|
8946
|
-
*/
|
|
8947
|
-
maxLength?: number;
|
|
8948
|
-
/**
|
|
8949
|
-
* Максимальное количество строк для многострочных текстовых полей.
|
|
8950
|
-
* Если указано, поле ввода будет отображаться как многострочное (`textarea`).
|
|
8951
|
-
* Необязательное поле.
|
|
8952
|
-
*/
|
|
8953
|
-
maxRows?: number;
|
|
8954
|
-
append?: string;
|
|
8955
|
-
prepend?: string;
|
|
8956
|
-
}
|
|
8957
|
-
|
|
8958
|
-
/** Return value of `/v1/chain/get_info` */
|
|
8959
|
-
interface GetInfoResult {
|
|
8960
|
-
server_version: string;
|
|
8961
|
-
chain_id: string;
|
|
8962
|
-
head_block_num: number;
|
|
8963
|
-
last_irreversible_block_num: number;
|
|
8964
|
-
last_irreversible_block_id: string;
|
|
8965
|
-
last_irreversible_block_time?: string;
|
|
8966
|
-
head_block_id: string;
|
|
8967
|
-
head_block_time: string;
|
|
8968
|
-
head_block_producer: string;
|
|
8969
|
-
virtual_block_cpu_limit: number;
|
|
8970
|
-
virtual_block_net_limit: number;
|
|
8971
|
-
block_cpu_limit: number;
|
|
8972
|
-
block_net_limit: number;
|
|
8973
|
-
server_version_string?: string;
|
|
8974
|
-
fork_db_head_block_num?: number;
|
|
8975
|
-
fork_db_head_block_id?: string;
|
|
8976
|
-
server_full_version_string?: string;
|
|
8977
|
-
first_block_num?: number;
|
|
8978
|
-
}
|
|
8979
|
-
|
|
8980
|
-
interface BlockchainAccountInterface {
|
|
8981
|
-
account_name: string;
|
|
8982
|
-
head_block_num: number;
|
|
8983
|
-
head_block_time: string;
|
|
8984
|
-
privileged: boolean;
|
|
8985
|
-
last_code_update: string;
|
|
8986
|
-
created: string;
|
|
8987
|
-
core_liquid_balance?: string;
|
|
8988
|
-
ram_quota: number;
|
|
8989
|
-
net_weight: string;
|
|
8990
|
-
cpu_weight: string;
|
|
8991
|
-
net_limit: AccountResourceInfo;
|
|
8992
|
-
cpu_limit: AccountResourceInfo;
|
|
8993
|
-
ram_usage: number;
|
|
8994
|
-
permissions: Permission[];
|
|
8995
|
-
total_resources: ResourceOverview | null;
|
|
8996
|
-
self_delegated_bandwidth: ResourceDelegation | null;
|
|
8997
|
-
refund_request: RefundRequest | null;
|
|
8998
|
-
voter_info: any;
|
|
8999
|
-
rex_info: any;
|
|
9000
|
-
}
|
|
9001
|
-
interface AccountResourceInfo {
|
|
9002
|
-
used: string;
|
|
9003
|
-
available: string;
|
|
9004
|
-
max: string;
|
|
9005
|
-
last_usage_update_time?: string;
|
|
9006
|
-
current_used?: string;
|
|
9007
|
-
}
|
|
9008
|
-
interface Authority {
|
|
9009
|
-
threshold: number;
|
|
9010
|
-
keys: KeyWeight[];
|
|
9011
|
-
accounts: PermissionLevelWeight[];
|
|
9012
|
-
waits: WaitWeight[];
|
|
9013
|
-
}
|
|
9014
|
-
interface KeyWeight {
|
|
9015
|
-
key: string;
|
|
9016
|
-
weight: number;
|
|
9017
|
-
}
|
|
9018
|
-
interface Permission {
|
|
9019
|
-
perm_name: string;
|
|
9020
|
-
parent: string;
|
|
9021
|
-
required_auth: Authority;
|
|
9022
|
-
}
|
|
9023
|
-
interface PermissionLevel {
|
|
9024
|
-
actor: string;
|
|
9025
|
-
permission: string;
|
|
9026
|
-
}
|
|
9027
|
-
interface PermissionLevelWeight {
|
|
9028
|
-
permission: PermissionLevel;
|
|
9029
|
-
weight: number;
|
|
9030
|
-
}
|
|
9031
|
-
interface WaitWeight {
|
|
9032
|
-
wait_sec: number;
|
|
9033
|
-
weight: number;
|
|
9034
|
-
}
|
|
9035
|
-
interface ResourceOverview {
|
|
9036
|
-
owner: string;
|
|
9037
|
-
ram_bytes: number;
|
|
9038
|
-
net_weight: string;
|
|
9039
|
-
cpu_weight: string;
|
|
9040
|
-
}
|
|
9041
|
-
interface ResourceDelegation {
|
|
9042
|
-
from: string;
|
|
9043
|
-
to: string;
|
|
9044
|
-
net_weight: string;
|
|
9045
|
-
cpu_weight: string;
|
|
9046
|
-
}
|
|
9047
|
-
interface RefundRequest {
|
|
9048
|
-
owner: string;
|
|
9049
|
-
request_time: string;
|
|
9050
|
-
net_amount: string;
|
|
9051
|
-
cpu_amount: string;
|
|
8814
|
+
declare const index$o_$: typeof $;
|
|
8815
|
+
type index$o_AccountType = AccountType;
|
|
8816
|
+
declare const index$o_AccountType: typeof AccountType;
|
|
8817
|
+
type index$o_AliasType<T> = AliasType<T>;
|
|
8818
|
+
type index$o_AllTypesPropsType = AllTypesPropsType;
|
|
8819
|
+
declare const index$o_Chain: typeof Chain;
|
|
8820
|
+
type index$o_Country = Country;
|
|
8821
|
+
declare const index$o_Country: typeof Country;
|
|
8822
|
+
type index$o_ExtractVariables<Query> = ExtractVariables<Query>;
|
|
8823
|
+
type index$o_ExtractVariablesDeep<Query> = ExtractVariablesDeep<Query>;
|
|
8824
|
+
type index$o_FetchFunction = FetchFunction;
|
|
8825
|
+
type index$o_FromSelector<SELECTOR, NAME extends keyof GraphQLTypes, SCLR extends ScalarDefinition = {}> = FromSelector<SELECTOR, NAME, SCLR>;
|
|
8826
|
+
declare const index$o_GRAPHQL_TYPE_SEPARATOR: typeof GRAPHQL_TYPE_SEPARATOR;
|
|
8827
|
+
type index$o_GenericOperation<O> = GenericOperation<O>;
|
|
8828
|
+
type index$o_GetVariableType<T extends string> = GetVariableType<T>;
|
|
8829
|
+
declare const index$o_Gql: typeof Gql;
|
|
8830
|
+
type index$o_GraphQLError = GraphQLError;
|
|
8831
|
+
declare const index$o_GraphQLError: typeof GraphQLError;
|
|
8832
|
+
type index$o_GraphQLResponse = GraphQLResponse;
|
|
8833
|
+
type index$o_GraphQLTypes = GraphQLTypes;
|
|
8834
|
+
type index$o_GraphQLVariableType = GraphQLVariableType;
|
|
8835
|
+
declare const index$o_HEADERS: typeof HEADERS;
|
|
8836
|
+
declare const index$o_HOST: typeof HOST;
|
|
8837
|
+
type index$o_InputType<SRC, DST, SCLR extends ScalarDefinition = {}> = InputType<SRC, DST, SCLR>;
|
|
8838
|
+
type index$o_InputValueType = InputValueType;
|
|
8839
|
+
declare const index$o_InternalArgsBuilt: typeof InternalArgsBuilt;
|
|
8840
|
+
declare const index$o_InternalsBuildQuery: typeof InternalsBuildQuery;
|
|
8841
|
+
type index$o_MapType<SRC, DST, SCLR extends ScalarDefinition> = MapType<SRC, DST, SCLR>;
|
|
8842
|
+
type index$o_ModelTypes = ModelTypes;
|
|
8843
|
+
type index$o_OperationOptions = OperationOptions;
|
|
8844
|
+
type index$o_Operations = Operations;
|
|
8845
|
+
type index$o_OrganizationType = OrganizationType;
|
|
8846
|
+
declare const index$o_OrganizationType: typeof OrganizationType;
|
|
8847
|
+
type index$o_PaymentStatus = PaymentStatus;
|
|
8848
|
+
declare const index$o_PaymentStatus: typeof PaymentStatus;
|
|
8849
|
+
type index$o_PlainType = PlainType;
|
|
8850
|
+
declare const index$o_PrepareScalarPaths: typeof PrepareScalarPaths;
|
|
8851
|
+
type index$o_RegisterRole = RegisterRole;
|
|
8852
|
+
declare const index$o_RegisterRole: typeof RegisterRole;
|
|
8853
|
+
declare const index$o_ResolveFromPath: typeof ResolveFromPath;
|
|
8854
|
+
type index$o_ResolverInputTypes = ResolverInputTypes;
|
|
8855
|
+
type index$o_ResolverType<F> = ResolverType<F>;
|
|
8856
|
+
type index$o_ReturnTypesType = ReturnTypesType;
|
|
8857
|
+
declare const index$o_SEPARATOR: typeof SEPARATOR;
|
|
8858
|
+
declare const index$o_START_VAR_NAME: typeof START_VAR_NAME;
|
|
8859
|
+
type index$o_ScalarCoder = ScalarCoder;
|
|
8860
|
+
type index$o_ScalarCoders = ScalarCoders;
|
|
8861
|
+
type index$o_ScalarDefinition = ScalarDefinition;
|
|
8862
|
+
type index$o_ScalarResolver = ScalarResolver;
|
|
8863
|
+
type index$o_SelectionFunction<V> = SelectionFunction<V>;
|
|
8864
|
+
declare const index$o_Selector: typeof Selector;
|
|
8865
|
+
declare const index$o_Subscription: typeof Subscription;
|
|
8866
|
+
type index$o_SubscriptionFunction = SubscriptionFunction;
|
|
8867
|
+
declare const index$o_SubscriptionThunder: typeof SubscriptionThunder;
|
|
8868
|
+
type index$o_SubscriptionToGraphQL<Z, T, SCLR extends ScalarDefinition> = SubscriptionToGraphQL<Z, T, SCLR>;
|
|
8869
|
+
type index$o_SystemStatus = SystemStatus;
|
|
8870
|
+
declare const index$o_SystemStatus: typeof SystemStatus;
|
|
8871
|
+
declare const index$o_Thunder: typeof Thunder;
|
|
8872
|
+
type index$o_ThunderGraphQLOptions<SCLR extends ScalarDefinition> = ThunderGraphQLOptions<SCLR>;
|
|
8873
|
+
declare const index$o_TypeFromSelector: typeof TypeFromSelector;
|
|
8874
|
+
type index$o_UnwrapPromise<T> = UnwrapPromise<T>;
|
|
8875
|
+
type index$o_UserStatus = UserStatus;
|
|
8876
|
+
declare const index$o_UserStatus: typeof UserStatus;
|
|
8877
|
+
type index$o_VType = VType;
|
|
8878
|
+
type index$o_ValueTypes = ValueTypes;
|
|
8879
|
+
type index$o_Variable<T extends GraphQLVariableType, Name extends string> = Variable<T, Name>;
|
|
8880
|
+
type index$o_VariableDefinition = VariableDefinition;
|
|
8881
|
+
type index$o_WithOptionalNullables<T> = WithOptionalNullables<T>;
|
|
8882
|
+
type index$o_WithTypeNameValue<T> = WithTypeNameValue<T>;
|
|
8883
|
+
declare const index$o_Zeus: typeof Zeus;
|
|
8884
|
+
type index$o_ZeusArgsType = ZeusArgsType;
|
|
8885
|
+
type index$o_ZeusHook<T extends (...args: any[]) => Record<string, (...args: any[]) => Promise<any>>, N extends keyof ReturnType<T>> = ZeusHook<T, N>;
|
|
8886
|
+
declare const index$o_ZeusScalars: typeof ZeusScalars;
|
|
8887
|
+
declare const index$o_ZeusSelect: typeof ZeusSelect;
|
|
8888
|
+
type index$o_ZeusState<T extends (...args: any[]) => Promise<any>> = ZeusState<T>;
|
|
8889
|
+
declare const index$o_apiFetch: typeof apiFetch;
|
|
8890
|
+
declare const index$o_apiSubscription: typeof apiSubscription;
|
|
8891
|
+
type index$o_chainOptions = chainOptions;
|
|
8892
|
+
declare const index$o_decodeScalarsInResponse: typeof decodeScalarsInResponse;
|
|
8893
|
+
type index$o_fetchOptions = fetchOptions;
|
|
8894
|
+
declare const index$o_fields: typeof fields;
|
|
8895
|
+
declare const index$o_purifyGraphQLKey: typeof purifyGraphQLKey;
|
|
8896
|
+
declare const index$o_resolverFor: typeof resolverFor;
|
|
8897
|
+
declare const index$o_traverseResponse: typeof traverseResponse;
|
|
8898
|
+
declare namespace index$o {
|
|
8899
|
+
export { index$o_$ as $, index$o_AccountType as AccountType, type index$o_AliasType as AliasType, type index$o_AllTypesPropsType as AllTypesPropsType, index$o_Chain as Chain, index$o_Country as Country, type index$o_ExtractVariables as ExtractVariables, type index$o_ExtractVariablesDeep as ExtractVariablesDeep, type index$o_FetchFunction as FetchFunction, type index$o_FromSelector as FromSelector, index$o_GRAPHQL_TYPE_SEPARATOR as GRAPHQL_TYPE_SEPARATOR, type index$o_GenericOperation as GenericOperation, type index$o_GetVariableType as GetVariableType, index$o_Gql as Gql, index$o_GraphQLError as GraphQLError, type index$o_GraphQLResponse as GraphQLResponse, type index$o_GraphQLTypes as GraphQLTypes, type index$o_GraphQLVariableType as GraphQLVariableType, index$o_HEADERS as HEADERS, index$o_HOST as HOST, type index$o_InputType as InputType, type index$o_InputValueType as InputValueType, index$o_InternalArgsBuilt as InternalArgsBuilt, index$o_InternalsBuildQuery as InternalsBuildQuery, type index$o_MapType as MapType, type index$o_ModelTypes as ModelTypes, type index$o_OperationOptions as OperationOptions, type index$o_Operations as Operations, index$o_OrganizationType as OrganizationType, index$o_PaymentStatus as PaymentStatus, type index$o_PlainType as PlainType, index$o_PrepareScalarPaths as PrepareScalarPaths, index$o_RegisterRole as RegisterRole, index$o_ResolveFromPath as ResolveFromPath, type index$o_ResolverInputTypes as ResolverInputTypes, type index$o_ResolverType as ResolverType, type index$o_ReturnTypesType as ReturnTypesType, index$o_SEPARATOR as SEPARATOR, index$o_START_VAR_NAME as START_VAR_NAME, type index$o_ScalarCoder as ScalarCoder, type index$o_ScalarCoders as ScalarCoders, type index$o_ScalarDefinition as ScalarDefinition, type index$o_ScalarResolver as ScalarResolver, type index$o_SelectionFunction as SelectionFunction, index$o_Selector as Selector, index$o_Subscription as Subscription, type index$o_SubscriptionFunction as SubscriptionFunction, index$o_SubscriptionThunder as SubscriptionThunder, type index$o_SubscriptionToGraphQL as SubscriptionToGraphQL, index$o_SystemStatus as SystemStatus, index$o_Thunder as Thunder, type index$o_ThunderGraphQLOptions as ThunderGraphQLOptions, index$o_TypeFromSelector as TypeFromSelector, type index$o_UnwrapPromise as UnwrapPromise, index$o_UserStatus as UserStatus, type index$o_VType as VType, type index$o_ValueTypes as ValueTypes, type index$o_Variable as Variable, type index$o_VariableDefinition as VariableDefinition, type index$o_WithOptionalNullables as WithOptionalNullables, type index$o_WithTypeNameValue as WithTypeNameValue, index$o_Zeus as Zeus, type index$o_ZeusArgsType as ZeusArgsType, type index$o_ZeusHook as ZeusHook, index$o_ZeusScalars as ZeusScalars, index$o_ZeusSelect as ZeusSelect, type index$o_ZeusState as ZeusState, index$o_apiFetch as apiFetch, index$o_apiSubscription as apiSubscription, type index$o_chainOptions as chainOptions, index$o_decodeScalarsInResponse as decodeScalarsInResponse, type index$o_fetchOptions as fetchOptions, index$o_fields as fields, index$o_purifyGraphQLKey as purifyGraphQLKey, index$o_resolverFor as resolverFor, index$o_traverseResponse as traverseResponse };
|
|
9052
8900
|
}
|
|
9053
8901
|
|
|
9054
8902
|
interface ClientConnectionOptions {
|
|
@@ -9060,30 +8908,9 @@ interface ClientConnectionOptions {
|
|
|
9060
8908
|
username?: string;
|
|
9061
8909
|
}
|
|
9062
8910
|
|
|
9063
|
-
type
|
|
9064
|
-
|
|
9065
|
-
|
|
9066
|
-
chain_id: string;
|
|
9067
|
-
}
|
|
9068
|
-
|
|
9069
|
-
type index$j_AccountResourceInfo = AccountResourceInfo;
|
|
9070
|
-
type index$j_Authority = Authority;
|
|
9071
|
-
type index$j_BlockchainAccountInterface = BlockchainAccountInterface;
|
|
9072
|
-
type index$j_BlockchainConfig = BlockchainConfig;
|
|
9073
|
-
type index$j_ClientConnectionOptions = ClientConnectionOptions;
|
|
9074
|
-
type index$j_DeserializedDescriptionOfExtension = DeserializedDescriptionOfExtension;
|
|
9075
|
-
type index$j_GetInfoResult = GetInfoResult;
|
|
9076
|
-
type index$j_IndexPosition = IndexPosition;
|
|
9077
|
-
type index$j_KeyWeight = KeyWeight;
|
|
9078
|
-
type index$j_Permission = Permission;
|
|
9079
|
-
type index$j_PermissionLevel = PermissionLevel;
|
|
9080
|
-
type index$j_PermissionLevelWeight = PermissionLevelWeight;
|
|
9081
|
-
type index$j_RefundRequest = RefundRequest;
|
|
9082
|
-
type index$j_ResourceDelegation = ResourceDelegation;
|
|
9083
|
-
type index$j_ResourceOverview = ResourceOverview;
|
|
9084
|
-
type index$j_WaitWeight = WaitWeight;
|
|
9085
|
-
declare namespace index$j {
|
|
9086
|
-
export type { index$j_AccountResourceInfo as AccountResourceInfo, index$j_Authority as Authority, index$j_BlockchainAccountInterface as BlockchainAccountInterface, index$j_BlockchainConfig as BlockchainConfig, index$j_ClientConnectionOptions as ClientConnectionOptions, index$j_DeserializedDescriptionOfExtension as DeserializedDescriptionOfExtension, index$j_GetInfoResult as GetInfoResult, index$j_IndexPosition as IndexPosition, index$j_KeyWeight as KeyWeight, index$j_Permission as Permission, index$j_PermissionLevel as PermissionLevel, index$j_PermissionLevelWeight as PermissionLevelWeight, index$j_RefundRequest as RefundRequest, index$j_ResourceDelegation as ResourceDelegation, index$j_ResourceOverview as ResourceOverview, index$j_WaitWeight as WaitWeight };
|
|
8911
|
+
type index$n_ClientConnectionOptions = ClientConnectionOptions;
|
|
8912
|
+
declare namespace index$n {
|
|
8913
|
+
export type { index$n_ClientConnectionOptions as ClientConnectionOptions };
|
|
9087
8914
|
}
|
|
9088
8915
|
|
|
9089
8916
|
/**
|
|
@@ -9117,112 +8944,281 @@ declare class Account {
|
|
|
9117
8944
|
private static generateKeys;
|
|
9118
8945
|
}
|
|
9119
8946
|
|
|
8947
|
+
type IndexPosition = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'quinary' | 'senary' | 'septenary' | 'octonary' | 'nonary' | 'denary';
|
|
8948
|
+
interface BlockchainConfig {
|
|
8949
|
+
chain_url: string;
|
|
8950
|
+
chain_id: string;
|
|
8951
|
+
}
|
|
8952
|
+
|
|
8953
|
+
/**
|
|
8954
|
+
* Класс Blockchain для взаимодействия с блокчейном COOPOS.
|
|
8955
|
+
*
|
|
8956
|
+
* Обеспечивает методы для работы с транзакциями, таблицами смарт-контрактов и подписанием через приватный ключ.
|
|
8957
|
+
*/
|
|
8958
|
+
declare class Blockchain {
|
|
8959
|
+
private readonly config;
|
|
8960
|
+
private readonly apiClient;
|
|
8961
|
+
private readonly contractKit;
|
|
8962
|
+
private session?;
|
|
8963
|
+
/**
|
|
8964
|
+
* Конструктор класса Blockchain.
|
|
8965
|
+
* @param config Конфигурация блокчейна, включающая URL цепочки и идентификатор цепочки.
|
|
8966
|
+
*/
|
|
8967
|
+
constructor(config: BlockchainConfig);
|
|
8968
|
+
/**
|
|
8969
|
+
* Получение информации о блокчейне.
|
|
8970
|
+
* @returns Объект с информацией о текущем состоянии блокчейна.
|
|
8971
|
+
*/
|
|
8972
|
+
getInfo(): Promise<API.v1.GetInfoResponse>;
|
|
8973
|
+
/**
|
|
8974
|
+
* Устанавливает приватный ключ (WIF) для текущей сессии.
|
|
8975
|
+
* @param username Имя пользователя (аккаунт).
|
|
8976
|
+
* @param wif Приватный ключ в формате WIF.
|
|
8977
|
+
* @param permission Тип разрешения, который используется для подписания транзакции (по умолчанию = 'active')
|
|
8978
|
+
* @returns Текущий экземпляр Blockchain для цепочного вызова.
|
|
8979
|
+
*/
|
|
8980
|
+
setWif(username: string, wif: string, permission?: string): this;
|
|
8981
|
+
/**
|
|
8982
|
+
* Выполнение транзакции с передачей одного или нескольких действий.
|
|
8983
|
+
* @param actionOrActions Действие или массив действий для выполнения.
|
|
8984
|
+
* @param broadcast Если true, транзакция будет отправлена в сеть.
|
|
8985
|
+
* @returns Результат выполнения транзакции.
|
|
8986
|
+
* @throws Ошибка, если сессия не инициализирована.
|
|
8987
|
+
*/
|
|
8988
|
+
transact(actionOrActions: any | any[], broadcast?: boolean): Promise<TransactResult>;
|
|
8989
|
+
/**
|
|
8990
|
+
* Получение всех строк таблицы смарт-контракта.
|
|
8991
|
+
* @param code Код (аккаунт) контракта.
|
|
8992
|
+
* @param scope Область видимости (scope) таблицы.
|
|
8993
|
+
* @param tableName Имя таблицы.
|
|
8994
|
+
* @returns Массив строк таблицы.
|
|
8995
|
+
*/
|
|
8996
|
+
getAllRows<T = any>(code: string, scope: string, tableName: string): Promise<T[]>;
|
|
8997
|
+
/**
|
|
8998
|
+
* Запрос строк таблицы с использованием фильтров.
|
|
8999
|
+
* @param code Код (аккаунт) контракта.
|
|
9000
|
+
* @param scope Область видимости (scope) таблицы.
|
|
9001
|
+
* @param tableName Имя таблицы.
|
|
9002
|
+
* @param options Опции для фильтрации данных.
|
|
9003
|
+
* @returns Массив строк, соответствующих фильтрам.
|
|
9004
|
+
*/
|
|
9005
|
+
query<T = any>(code: string, scope: string, tableName: string, options?: {
|
|
9006
|
+
indexPosition?: IndexPosition;
|
|
9007
|
+
from?: string | number;
|
|
9008
|
+
to?: string | number;
|
|
9009
|
+
maxRows?: number;
|
|
9010
|
+
}): Promise<T[]>;
|
|
9011
|
+
/**
|
|
9012
|
+
* Получение одной строки таблицы по первичному ключу.
|
|
9013
|
+
* @param code Код (аккаунт) контракта.
|
|
9014
|
+
* @param scope Область видимости (scope) таблицы.
|
|
9015
|
+
* @param tableName Имя таблицы.
|
|
9016
|
+
* @param primaryKey Первичный ключ строки.
|
|
9017
|
+
* @param indexPosition Индекс для поиска строки (по умолчанию 'primary').
|
|
9018
|
+
* @returns Строка таблицы или null, если не найдена.
|
|
9019
|
+
*/
|
|
9020
|
+
getRow<T = any>(code: string, scope: string, tableName: string, primaryKey: string | number, indexPosition?: IndexPosition): Promise<T | null>;
|
|
9021
|
+
/**
|
|
9022
|
+
* Создает объект действия (Action) из ABI контракта.
|
|
9023
|
+
* @param action Объект действия.
|
|
9024
|
+
* @returns Объект Action.
|
|
9025
|
+
*/
|
|
9026
|
+
private formActionFromAbi;
|
|
9027
|
+
/**
|
|
9028
|
+
* Получение ABI контракта.
|
|
9029
|
+
* @param account Код (аккаунт) контракта.
|
|
9030
|
+
* @returns ABI контракта.
|
|
9031
|
+
* @throws Ошибка, если ABI не найден.
|
|
9032
|
+
*/
|
|
9033
|
+
private getAbi;
|
|
9034
|
+
/**
|
|
9035
|
+
* Создает объект таблицы (Table) для работы с данными.
|
|
9036
|
+
* @param code Код (аккаунт) контракта.
|
|
9037
|
+
* @param tableName Имя таблицы.
|
|
9038
|
+
* @param abi ABI контракта.
|
|
9039
|
+
* @returns Объект Table.
|
|
9040
|
+
*/
|
|
9041
|
+
private createTable;
|
|
9042
|
+
}
|
|
9043
|
+
|
|
9120
9044
|
/**
|
|
9121
|
-
* Класс `Canvas`
|
|
9122
|
-
*
|
|
9123
|
-
*
|
|
9124
|
-
* - управление процессом рисования (начало, рисование, завершение);
|
|
9125
|
-
* - получение содержимого (подписи) в формате base64.
|
|
9045
|
+
* Класс `Canvas` предоставляет инструмент для создания и управления HTML5 `<canvas>` с целью извлечения
|
|
9046
|
+
* собственноручной подписи пользователя. Основное предназначение класса — упрощение работы с холстом
|
|
9047
|
+
* для сбора подписи, её валидации и экспорта в формате base64.
|
|
9126
9048
|
*
|
|
9127
9049
|
* @remarks
|
|
9128
|
-
*
|
|
9050
|
+
* - Автоматически создаёт элемент `<canvas>` внутри указанного контейнера и подстраивает его размеры.
|
|
9051
|
+
* - Обеспечивает корректную работу с мышью и тач-устройствами для рисования подписи.
|
|
9052
|
+
* - Включает утилиты для очистки холста и извлечения подписи.
|
|
9053
|
+
* - Сохраняет содержимое при изменении размеров контейнера.
|
|
9054
|
+
* - Отключает прокрутку при касаниях через `touchAction: none`.
|
|
9129
9055
|
*
|
|
9130
9056
|
* @example
|
|
9057
|
+
* Пример использования для извлечения подписи пайщика:
|
|
9131
9058
|
* ```ts
|
|
9132
|
-
*
|
|
9133
|
-
* const myCanvas = new Canvas(container, 500, 300)
|
|
9059
|
+
* import { Classes } from '@coopenomics/sdk'
|
|
9134
9060
|
*
|
|
9135
|
-
* //
|
|
9136
|
-
*
|
|
9137
|
-
* myCanvas.canvas.addEventListener('mousemove', (e) => myCanvas.draw(e))
|
|
9138
|
-
* myCanvas.canvas.addEventListener('mouseup', () => myCanvas.endDrawing())
|
|
9061
|
+
* // Указываем контейнер, где будет размещён холст
|
|
9062
|
+
* const container = document.getElementById('signature-container') as HTMLElement
|
|
9139
9063
|
*
|
|
9140
|
-
* //
|
|
9141
|
-
*
|
|
9142
|
-
*
|
|
9064
|
+
* // Создаём экземпляр Canvas для работы с подписью
|
|
9065
|
+
* const signatureCanvas = new Classes.Canvas(container, {
|
|
9066
|
+
* lineWidth: 5,
|
|
9067
|
+
* strokeStyle: '#000',
|
|
9143
9068
|
* })
|
|
9144
9069
|
*
|
|
9145
|
-
* //
|
|
9146
|
-
*
|
|
9147
|
-
*
|
|
9148
|
-
*
|
|
9149
|
-
*
|
|
9070
|
+
* // Очистка холста при необходимости
|
|
9071
|
+
* signatureCanvas.clearCanvas()
|
|
9072
|
+
*
|
|
9073
|
+
* // Извлечение подписи в формате base64
|
|
9074
|
+
* const signature = signatureCanvas.getSignature()
|
|
9075
|
+
* console.log('Подпись в формате base64:', signature)
|
|
9076
|
+
*
|
|
9077
|
+
* // Освобождение ресурсов, если холст больше не нужен
|
|
9078
|
+
* signatureCanvas.destroy()
|
|
9150
9079
|
* ```
|
|
9080
|
+
*
|
|
9081
|
+
* @public
|
|
9151
9082
|
*/
|
|
9152
9083
|
declare class Canvas {
|
|
9084
|
+
private container;
|
|
9085
|
+
private opts;
|
|
9153
9086
|
canvas: HTMLCanvasElement;
|
|
9154
9087
|
ctx: CanvasRenderingContext2D;
|
|
9155
|
-
private
|
|
9088
|
+
private drawing;
|
|
9089
|
+
private lastX;
|
|
9090
|
+
private lastY;
|
|
9156
9091
|
/**
|
|
9157
|
-
* Создаёт
|
|
9158
|
-
*
|
|
9159
|
-
* @param
|
|
9160
|
-
* @param
|
|
9092
|
+
* Создаёт экземпляр класса `Canvas` и подготавливает холст для рисования подписи.
|
|
9093
|
+
*
|
|
9094
|
+
* @param container - HTML-элемент, внутри которого создаётся `<canvas>`.
|
|
9095
|
+
* @param opts - Настройки:
|
|
9096
|
+
* - `lineWidth` - Толщина линии для рисования (по умолчанию 5).
|
|
9097
|
+
* - `strokeStyle` - Цвет линии для рисования (по умолчанию чёрный, `#000`).
|
|
9161
9098
|
*/
|
|
9162
|
-
constructor(container: HTMLElement,
|
|
9099
|
+
constructor(container: HTMLElement, opts?: {
|
|
9100
|
+
lineWidth?: number;
|
|
9101
|
+
strokeStyle?: string;
|
|
9102
|
+
});
|
|
9163
9103
|
/**
|
|
9164
|
-
*
|
|
9104
|
+
* Очищает холст.
|
|
9165
9105
|
*/
|
|
9166
9106
|
clearCanvas(): void;
|
|
9167
9107
|
/**
|
|
9168
|
-
*
|
|
9169
|
-
*
|
|
9108
|
+
* Возвращает содержимое холста (подпись) в формате base64 (PNG).
|
|
9109
|
+
*
|
|
9110
|
+
* @returns Подпись в формате base64.
|
|
9170
9111
|
*/
|
|
9171
|
-
|
|
9172
|
-
/**
|
|
9173
|
-
* Выполняет рисование линии от предыдущей точки к текущей.
|
|
9174
|
-
* @param e - Событие мыши или касания.
|
|
9175
|
-
*/
|
|
9176
|
-
draw(e: MouseEvent | TouchEvent): void;
|
|
9112
|
+
getSignature(): string;
|
|
9177
9113
|
/**
|
|
9178
|
-
*
|
|
9114
|
+
* Снимает все обработчики событий и очищает ресурсы.
|
|
9179
9115
|
*/
|
|
9180
|
-
|
|
9116
|
+
destroy(): void;
|
|
9181
9117
|
/**
|
|
9182
|
-
*
|
|
9118
|
+
* Навешивает обработчики событий мыши и тач-устройств.
|
|
9183
9119
|
*/
|
|
9184
|
-
|
|
9120
|
+
private initEvents;
|
|
9121
|
+
private onMouseDown;
|
|
9122
|
+
private onMouseMove;
|
|
9123
|
+
private onMouseUp;
|
|
9124
|
+
private onTouchStart;
|
|
9125
|
+
private onTouchMove;
|
|
9126
|
+
private onTouchEnd;
|
|
9127
|
+
private drawLine;
|
|
9185
9128
|
}
|
|
9186
9129
|
|
|
9187
9130
|
/**
|
|
9188
|
-
*
|
|
9131
|
+
* Интерфейс для метаданных документа.
|
|
9189
9132
|
*/
|
|
9190
|
-
|
|
9191
|
-
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9204
|
-
|
|
9205
|
-
|
|
9206
|
-
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
|
|
9212
|
-
|
|
9213
|
-
|
|
9214
|
-
|
|
9215
|
-
|
|
9133
|
+
type IMetaDocument = ModelTypes['MetaDocument'] & {
|
|
9134
|
+
[key: string]: any;
|
|
9135
|
+
};
|
|
9136
|
+
/**
|
|
9137
|
+
* Интерфейс для сгенерированного документа, который требуется подписать.
|
|
9138
|
+
*/
|
|
9139
|
+
interface IGeneratedDocument<T = any> {
|
|
9140
|
+
full_title: string;
|
|
9141
|
+
html: string;
|
|
9142
|
+
hash: string;
|
|
9143
|
+
meta: IMetaDocument & T;
|
|
9144
|
+
binary: string;
|
|
9145
|
+
}
|
|
9146
|
+
/**
|
|
9147
|
+
* Интерфейс для подписанного документа.
|
|
9148
|
+
*/
|
|
9149
|
+
interface ISignedDocument<T = any> {
|
|
9150
|
+
hash: string;
|
|
9151
|
+
public_key: string;
|
|
9152
|
+
signature: string;
|
|
9153
|
+
meta: IMetaDocument & T;
|
|
9154
|
+
}
|
|
9155
|
+
|
|
9156
|
+
type index$m_IGeneratedDocument<T = any> = IGeneratedDocument<T>;
|
|
9157
|
+
type index$m_IMetaDocument = IMetaDocument;
|
|
9158
|
+
type index$m_ISignedDocument<T = any> = ISignedDocument<T>;
|
|
9159
|
+
declare namespace index$m {
|
|
9160
|
+
export type { index$m_IGeneratedDocument as IGeneratedDocument, index$m_IMetaDocument as IMetaDocument, index$m_ISignedDocument as ISignedDocument };
|
|
9161
|
+
}
|
|
9162
|
+
|
|
9163
|
+
/**
|
|
9164
|
+
* Класс для управления и подписания документов с использованием WIF-ключа.
|
|
9165
|
+
*
|
|
9166
|
+
* @example
|
|
9167
|
+
* ```typescript
|
|
9168
|
+
* const wifKey = "your-wif-private-key";
|
|
9169
|
+
* const docSigner = new Document(wifKey);
|
|
9170
|
+
*
|
|
9171
|
+
* const generatedDoc: IGeneratedDocument = {
|
|
9172
|
+
* full_title: "Пример документа",
|
|
9173
|
+
* html: "<p>Это пример документа</p>",
|
|
9174
|
+
* hash: "hash_of_document",
|
|
9175
|
+
* meta: { author: "Автор документа" },
|
|
9176
|
+
* binary: "binary_data"
|
|
9177
|
+
* };
|
|
9178
|
+
*
|
|
9179
|
+
* const signedDoc = await docSigner.signDocument(generatedDoc);
|
|
9180
|
+
* console.log(signedDoc);
|
|
9181
|
+
*
|
|
9182
|
+
* // Замена WIF-ключа
|
|
9183
|
+
* docSigner.setWif("new-wif-private-key");
|
|
9184
|
+
* ```
|
|
9185
|
+
*/
|
|
9186
|
+
declare class Document {
|
|
9187
|
+
private wif?;
|
|
9188
|
+
/**
|
|
9189
|
+
* Инициализация класса Document с WIF-ключом.
|
|
9190
|
+
* @param wifKey WIF-ключ, используемый для подписи.
|
|
9191
|
+
*/
|
|
9192
|
+
constructor(wifKey?: string);
|
|
9193
|
+
/**
|
|
9194
|
+
* Замена текущего WIF-ключа на новый.
|
|
9195
|
+
* @param wifKey Новый WIF-ключ.
|
|
9196
|
+
*/
|
|
9197
|
+
setWif(wifKey: string): void;
|
|
9198
|
+
/**
|
|
9199
|
+
* Подписывает документ и возвращает его в формате ISignedDocument.
|
|
9200
|
+
* @param document Сгенерированный документ для подписи.
|
|
9201
|
+
* @returns Подписанный документ.
|
|
9202
|
+
*/
|
|
9203
|
+
signDocument<T>(document: IGeneratedDocument<T>): Promise<ISignedDocument<T>>;
|
|
9204
|
+
/**
|
|
9205
|
+
* Подписывает хэш (digest) документа и проверяет подпись.
|
|
9206
|
+
* @param digest Хэш документа для подписи.
|
|
9207
|
+
* @returns Детали подписи.
|
|
9208
|
+
*/
|
|
9209
|
+
private signDigest;
|
|
9216
9210
|
}
|
|
9217
9211
|
|
|
9218
9212
|
type Classes_Account = Account;
|
|
9219
9213
|
declare const Classes_Account: typeof Account;
|
|
9214
|
+
type Classes_Blockchain = Blockchain;
|
|
9215
|
+
declare const Classes_Blockchain: typeof Blockchain;
|
|
9220
9216
|
type Classes_Canvas = Canvas;
|
|
9221
9217
|
declare const Classes_Canvas: typeof Canvas;
|
|
9222
|
-
type
|
|
9223
|
-
declare const
|
|
9218
|
+
type Classes_Document = Document;
|
|
9219
|
+
declare const Classes_Document: typeof Document;
|
|
9224
9220
|
declare namespace Classes {
|
|
9225
|
-
export { Classes_Account as Account, Classes_Canvas as Canvas,
|
|
9221
|
+
export { Classes_Account as Account, Classes_Blockchain as Blockchain, Classes_Canvas as Canvas, Classes_Document as Document };
|
|
9226
9222
|
}
|
|
9227
9223
|
|
|
9228
9224
|
declare const name$J = "installExtension";
|
|
@@ -9314,7 +9310,7 @@ declare namespace updateExtension {
|
|
|
9314
9310
|
|
|
9315
9311
|
/** Установить расширение */
|
|
9316
9312
|
|
|
9317
|
-
declare namespace index$
|
|
9313
|
+
declare namespace index$l {
|
|
9318
9314
|
export { installExtension as InstallExtension, uninstallExtension as UninstallExtension, updateExtension as UpdateExtension };
|
|
9319
9315
|
}
|
|
9320
9316
|
|
|
@@ -9425,7 +9421,7 @@ declare namespace updateBankAccount {
|
|
|
9425
9421
|
|
|
9426
9422
|
/** Добавить метод оплаты */
|
|
9427
9423
|
|
|
9428
|
-
declare namespace index$
|
|
9424
|
+
declare namespace index$k {
|
|
9429
9425
|
export { createBankAccount as CreateBankAccount, deletePaymentMethod as DeletePaymentMethod, updateBankAccount as UpdateBankAccount };
|
|
9430
9426
|
}
|
|
9431
9427
|
|
|
@@ -9855,7 +9851,7 @@ declare const name$x = "generateSelectBranchDocument";
|
|
|
9855
9851
|
declare const mutation$q: {
|
|
9856
9852
|
generateSelectBranchDocument: [{
|
|
9857
9853
|
data: Variable<"SelectBranchGenerateDocumentInput!", "data">;
|
|
9858
|
-
options: Variable<"GenerateDocumentOptionsInput
|
|
9854
|
+
options: Variable<"GenerateDocumentOptionsInput", "options">;
|
|
9859
9855
|
}, {
|
|
9860
9856
|
meta: {
|
|
9861
9857
|
braname: boolean;
|
|
@@ -9893,7 +9889,7 @@ declare namespace generateSelectBranchDocument {
|
|
|
9893
9889
|
|
|
9894
9890
|
/** Добавить доверенное лицо кооперативного участка */
|
|
9895
9891
|
|
|
9896
|
-
declare namespace index$
|
|
9892
|
+
declare namespace index$j {
|
|
9897
9893
|
export { addTrustedAccount as AddTrustedAccount, createBranch as CreateBranch, deleteBranch as DeleteBranch, deleteTrustedAccount as DeleteTrustedAccount, editBranch as EditBranch, generateSelectBranchDocument as GenerateSelectBranchDocument, selectBranch as SelectBranch };
|
|
9898
9894
|
}
|
|
9899
9895
|
|
|
@@ -9901,7 +9897,7 @@ declare const name$w = "generateProjectOfFreeDecision";
|
|
|
9901
9897
|
declare const mutation$p: {
|
|
9902
9898
|
generateProjectOfFreeDecision: [{
|
|
9903
9899
|
data: Variable<"ProjectFreeDecisionGenerateDocumentInput!", "data">;
|
|
9904
|
-
options: Variable<"GenerateDocumentOptionsInput
|
|
9900
|
+
options: Variable<"GenerateDocumentOptionsInput", "options">;
|
|
9905
9901
|
}, {
|
|
9906
9902
|
meta: {
|
|
9907
9903
|
project_id: boolean;
|
|
@@ -9941,7 +9937,7 @@ declare const name$v = "generateFreeDecision";
|
|
|
9941
9937
|
declare const mutation$o: {
|
|
9942
9938
|
generateFreeDecision: [{
|
|
9943
9939
|
data: Variable<"FreeDecisionGenerateDocumentInput!", "data">;
|
|
9944
|
-
options: Variable<"GenerateDocumentOptionsInput
|
|
9940
|
+
options: Variable<"GenerateDocumentOptionsInput", "options">;
|
|
9945
9941
|
}, {
|
|
9946
9942
|
meta: {
|
|
9947
9943
|
project_id: boolean;
|
|
@@ -10022,7 +10018,7 @@ declare namespace createProjectOfFreeDecision {
|
|
|
10022
10018
|
|
|
10023
10019
|
/** Сгенерировать документ проекта свободного решения */
|
|
10024
10020
|
|
|
10025
|
-
declare namespace index$
|
|
10021
|
+
declare namespace index$i {
|
|
10026
10022
|
export { createProjectOfFreeDecision as CreateProjectOfFreeDecision, generateFreeDecision as GenerateFreeDecision, generateProjectOfFreeDecisionDocument as GenerateProjectOfFreeDecision, publishProjectOfFreeDecision as PublishProjectOfFreeDecision };
|
|
10027
10023
|
}
|
|
10028
10024
|
|
|
@@ -10346,7 +10342,7 @@ declare namespace resetKey {
|
|
|
10346
10342
|
|
|
10347
10343
|
/** Обновить аккаунт в системе провайдера. Обновление аккаунта пользователя производится по username. Мутация позволяет изменить приватные данные пользователя, а также, адрес электронной почты в MONO. Использовать мутацию может только председатель совета. */
|
|
10348
10344
|
|
|
10349
|
-
declare namespace index$
|
|
10345
|
+
declare namespace index$h {
|
|
10350
10346
|
export { registerAccount as RegisterAccount, resetKey as ResetKey, startResetKey as StartResetKey, updateAccount as UpdateAccount };
|
|
10351
10347
|
}
|
|
10352
10348
|
|
|
@@ -10663,7 +10659,7 @@ declare namespace login {
|
|
|
10663
10659
|
|
|
10664
10660
|
/** Обновить токен доступа аккаунта */
|
|
10665
10661
|
|
|
10666
|
-
declare namespace index$
|
|
10662
|
+
declare namespace index$g {
|
|
10667
10663
|
export { login as Login, logout as Logout, refresh as Refresh };
|
|
10668
10664
|
}
|
|
10669
10665
|
|
|
@@ -11288,7 +11284,7 @@ declare namespace updateSystem {
|
|
|
11288
11284
|
|
|
11289
11285
|
/** Произвести инициализацию программного обеспечения перед установкой совета методом install */
|
|
11290
11286
|
|
|
11291
|
-
declare namespace index$
|
|
11287
|
+
declare namespace index$f {
|
|
11292
11288
|
export { initSystem as InitSystem, installSystem as InstallSystem, setWif as SetWif, updateSystem as UpdateSystem };
|
|
11293
11289
|
}
|
|
11294
11290
|
|
|
@@ -11296,7 +11292,7 @@ declare const name$h = "generateParticipantApplication";
|
|
|
11296
11292
|
declare const mutation$a: {
|
|
11297
11293
|
generateParticipantApplication: [{
|
|
11298
11294
|
data: Variable<"ParticipantApplicationGenerateDocumentInput!", "data">;
|
|
11299
|
-
options: Variable<"GenerateDocumentOptionsInput
|
|
11295
|
+
options: Variable<"GenerateDocumentOptionsInput", "options">;
|
|
11300
11296
|
}, {
|
|
11301
11297
|
meta: {
|
|
11302
11298
|
block_num: boolean;
|
|
@@ -11335,7 +11331,7 @@ declare const name$g = "generateParticipantApplicationDecision";
|
|
|
11335
11331
|
declare const mutation$9: {
|
|
11336
11332
|
generateParticipantApplicationDecision: [{
|
|
11337
11333
|
data: Variable<"ParticipantApplicationDecisionGenerateDocumentInput!", "data">;
|
|
11338
|
-
options: Variable<"GenerateDocumentOptionsInput
|
|
11334
|
+
options: Variable<"GenerateDocumentOptionsInput", "options">;
|
|
11339
11335
|
}, {
|
|
11340
11336
|
meta: {
|
|
11341
11337
|
decision_id: boolean;
|
|
@@ -11641,7 +11637,7 @@ declare namespace addParticipant {
|
|
|
11641
11637
|
|
|
11642
11638
|
/** Сгенерировать документ заявления о вступлении в кооператив. */
|
|
11643
11639
|
|
|
11644
|
-
declare namespace index$
|
|
11640
|
+
declare namespace index$e {
|
|
11645
11641
|
export { addParticipant as AddParticipant, generateParticipantApplication as GenerateParticipantApplication, generateParticipantApplicationDecision as GenerateParticipantApplicationDecision, registerParticipant as RegisterParticipant };
|
|
11646
11642
|
}
|
|
11647
11643
|
|
|
@@ -11767,7 +11763,7 @@ declare namespace setPaymentStatus {
|
|
|
11767
11763
|
|
|
11768
11764
|
/** Создание объекта регистрационного платежа производится мутацией CreateInitial. Выполнение мутации возвращает идентификатор платежа и данные для его совершения в зависимости от выбранного платежного провайдера. */
|
|
11769
11765
|
|
|
11770
|
-
declare namespace index$
|
|
11766
|
+
declare namespace index$d {
|
|
11771
11767
|
export { createDeposit as CreateDepositPayment, createInitial as CreateInitialPayment, setPaymentStatus as SetPaymentStatus };
|
|
11772
11768
|
}
|
|
11773
11769
|
|
|
@@ -11775,7 +11771,7 @@ declare const name$a = "generatePrivacyAgreement";
|
|
|
11775
11771
|
declare const mutation$3: {
|
|
11776
11772
|
generatePrivacyAgreement: [{
|
|
11777
11773
|
data: Variable<"GenerateDocumentInput!", "data">;
|
|
11778
|
-
options: Variable<"GenerateDocumentOptionsInput
|
|
11774
|
+
options: Variable<"GenerateDocumentOptionsInput", "options">;
|
|
11779
11775
|
}, {
|
|
11780
11776
|
binary: boolean;
|
|
11781
11777
|
full_title: boolean;
|
|
@@ -11814,7 +11810,7 @@ declare const name$9 = "generateSignatureAgreement";
|
|
|
11814
11810
|
declare const mutation$2: {
|
|
11815
11811
|
generateSignatureAgreement: [{
|
|
11816
11812
|
data: Variable<"GenerateDocumentInput!", "data">;
|
|
11817
|
-
options: Variable<"GenerateDocumentOptionsInput
|
|
11813
|
+
options: Variable<"GenerateDocumentOptionsInput", "options">;
|
|
11818
11814
|
}, {
|
|
11819
11815
|
binary: boolean;
|
|
11820
11816
|
full_title: boolean;
|
|
@@ -11853,7 +11849,7 @@ declare const name$8 = "generateWalletAgreement";
|
|
|
11853
11849
|
declare const mutation$1: {
|
|
11854
11850
|
generateWalletAgreement: [{
|
|
11855
11851
|
data: Variable<"GenerateDocumentInput!", "data">;
|
|
11856
|
-
options: Variable<"GenerateDocumentOptionsInput
|
|
11852
|
+
options: Variable<"GenerateDocumentOptionsInput", "options">;
|
|
11857
11853
|
}, {
|
|
11858
11854
|
binary: boolean;
|
|
11859
11855
|
full_title: boolean;
|
|
@@ -11892,7 +11888,7 @@ declare const name$7 = "generateUserAgreement";
|
|
|
11892
11888
|
declare const mutation: {
|
|
11893
11889
|
generateUserAgreement: [{
|
|
11894
11890
|
data: Variable<"GenerateDocumentInput!", "data">;
|
|
11895
|
-
options: Variable<"GenerateDocumentOptionsInput
|
|
11891
|
+
options: Variable<"GenerateDocumentOptionsInput", "options">;
|
|
11896
11892
|
}, {
|
|
11897
11893
|
binary: boolean;
|
|
11898
11894
|
full_title: boolean;
|
|
@@ -11930,12 +11926,12 @@ declare namespace generateUserAgreement {
|
|
|
11930
11926
|
|
|
11931
11927
|
/** Сгенерировать документ согласия с политикой конфиденциальности. */
|
|
11932
11928
|
|
|
11933
|
-
declare namespace index$
|
|
11929
|
+
declare namespace index$c {
|
|
11934
11930
|
export { generatePrivacyAgreement as GeneratePrivacyAgreement, generateSignatureAgreement as GenerateSignatureAgreement, generateUserAgreement as GenerateUserAgreement, generateWalletAgreement as GenerateWalletAgreement };
|
|
11935
11931
|
}
|
|
11936
11932
|
|
|
11937
11933
|
declare namespace Mutations {
|
|
11938
|
-
export { index$
|
|
11934
|
+
export { index$h as Accounts, index$c as Agreements, index$g as Auth, index$j as Branches, index$l as Extensions, index$i as FreeDecisions, index$e as Participants, index$k as PaymentMethods, index$d as Payments, index$f as System };
|
|
11939
11935
|
}
|
|
11940
11936
|
|
|
11941
11937
|
declare const name$6 = "getExtensions";
|
|
@@ -11977,7 +11973,7 @@ declare namespace getExtensions {
|
|
|
11977
11973
|
|
|
11978
11974
|
/** Получить список расширений */
|
|
11979
11975
|
|
|
11980
|
-
declare namespace index$
|
|
11976
|
+
declare namespace index$b {
|
|
11981
11977
|
export { getExtensions as GetExtensions };
|
|
11982
11978
|
}
|
|
11983
11979
|
|
|
@@ -12033,7 +12029,7 @@ declare namespace getPaymentMethods {
|
|
|
12033
12029
|
|
|
12034
12030
|
/** Получить список методов оплаты */
|
|
12035
12031
|
|
|
12036
|
-
declare namespace index$
|
|
12032
|
+
declare namespace index$a {
|
|
12037
12033
|
export { getPaymentMethods as GetPaymentMethods };
|
|
12038
12034
|
}
|
|
12039
12035
|
|
|
@@ -12239,7 +12235,7 @@ declare namespace getSystemInfo {
|
|
|
12239
12235
|
|
|
12240
12236
|
/** Получить сводную публичную информацию о системе */
|
|
12241
12237
|
|
|
12242
|
-
declare namespace index$
|
|
12238
|
+
declare namespace index$9 {
|
|
12243
12239
|
export { getSystemInfo as GetSystemInfo };
|
|
12244
12240
|
}
|
|
12245
12241
|
|
|
@@ -12528,7 +12524,7 @@ declare namespace getAccounts {
|
|
|
12528
12524
|
|
|
12529
12525
|
/** Получить сводную информацию о аккаунте */
|
|
12530
12526
|
|
|
12531
|
-
declare namespace index$
|
|
12527
|
+
declare namespace index$8 {
|
|
12532
12528
|
export { getAccount as GetAccount, getAccounts as GetAccounts };
|
|
12533
12529
|
}
|
|
12534
12530
|
|
|
@@ -12698,7 +12694,7 @@ declare namespace getPublicBranches {
|
|
|
12698
12694
|
|
|
12699
12695
|
/** Получить список кооперативных участков */
|
|
12700
12696
|
|
|
12701
|
-
declare namespace index$
|
|
12697
|
+
declare namespace index$7 {
|
|
12702
12698
|
export { getBranches as GetBranches, getPublicBranches as GetPublicBranches };
|
|
12703
12699
|
}
|
|
12704
12700
|
|
|
@@ -12751,7 +12747,7 @@ declare namespace getPayments {
|
|
|
12751
12747
|
|
|
12752
12748
|
/** Получить список платежей */
|
|
12753
12749
|
|
|
12754
|
-
declare namespace index$
|
|
12750
|
+
declare namespace index$6 {
|
|
12755
12751
|
export { getPayments as GetPayments };
|
|
12756
12752
|
}
|
|
12757
12753
|
|
|
@@ -13385,7 +13381,7 @@ declare namespace getDocuments {
|
|
|
13385
13381
|
export { type IInput$1 as IInput, type IOutput$1 as IOutput, query$1 as query };
|
|
13386
13382
|
}
|
|
13387
13383
|
|
|
13388
|
-
declare namespace index$
|
|
13384
|
+
declare namespace index$5 {
|
|
13389
13385
|
export { getDocuments as GetDocuments };
|
|
13390
13386
|
}
|
|
13391
13387
|
|
|
@@ -14084,50 +14080,237 @@ declare namespace getAgenda {
|
|
|
14084
14080
|
|
|
14085
14081
|
/** Получить список вопросов совета кооператива для голосования */
|
|
14086
14082
|
|
|
14087
|
-
declare namespace index$
|
|
14083
|
+
declare namespace index$4 {
|
|
14088
14084
|
export { getAgenda as GetAgenda };
|
|
14089
14085
|
}
|
|
14090
14086
|
|
|
14091
|
-
declare namespace index {
|
|
14092
|
-
export { index$
|
|
14087
|
+
declare namespace index$3 {
|
|
14088
|
+
export { index$8 as Accounts, index$4 as Agenda, index$7 as Branches, index$5 as Documents, index$b as Extensions, index$a as PaymentMethods, index$6 as Payments, index$9 as System };
|
|
14093
14089
|
}
|
|
14094
14090
|
|
|
14095
|
-
|
|
14096
|
-
|
|
14097
|
-
|
|
14098
|
-
|
|
14099
|
-
|
|
14100
|
-
|
|
14101
|
-
|
|
14102
|
-
|
|
14103
|
-
|
|
14104
|
-
|
|
14105
|
-
|
|
14106
|
-
|
|
14107
|
-
|
|
14108
|
-
|
|
14109
|
-
|
|
14110
|
-
|
|
14111
|
-
|
|
14112
|
-
|
|
14113
|
-
|
|
14114
|
-
|
|
14115
|
-
|
|
14116
|
-
|
|
14117
|
-
|
|
14118
|
-
|
|
14119
|
-
|
|
14120
|
-
|
|
14121
|
-
|
|
14122
|
-
|
|
14123
|
-
|
|
14124
|
-
|
|
14125
|
-
|
|
14126
|
-
|
|
14127
|
-
|
|
14128
|
-
|
|
14129
|
-
|
|
14130
|
-
|
|
14091
|
+
type index$2_BlockchainConfig = BlockchainConfig;
|
|
14092
|
+
type index$2_IndexPosition = IndexPosition;
|
|
14093
|
+
declare namespace index$2 {
|
|
14094
|
+
export type { index$2_BlockchainConfig as BlockchainConfig, index$2_IndexPosition as IndexPosition };
|
|
14095
|
+
}
|
|
14096
|
+
|
|
14097
|
+
interface DeserializedDescriptionOfExtension {
|
|
14098
|
+
/**
|
|
14099
|
+
* Название или метка, которая будет отображаться как подпись к полю ввода.
|
|
14100
|
+
* Обязательное поле.
|
|
14101
|
+
*/
|
|
14102
|
+
label: string;
|
|
14103
|
+
/**
|
|
14104
|
+
* Примечание или дополнительная информация, связанная с полем.
|
|
14105
|
+
* Отображается как подсказка или вспомогательный текст рядом с полем.
|
|
14106
|
+
* Необязательное поле.
|
|
14107
|
+
*/
|
|
14108
|
+
note?: string;
|
|
14109
|
+
/**
|
|
14110
|
+
* Управляет видимостью поля. Если установлено в `false`, поле будет скрыто.
|
|
14111
|
+
* По умолчанию `true` (поле видимо).
|
|
14112
|
+
* Необязательное поле.
|
|
14113
|
+
*/
|
|
14114
|
+
visible?: boolean;
|
|
14115
|
+
/**
|
|
14116
|
+
* Набор правил валидации, определенных как строковые выражения, например `['val > 0']`.
|
|
14117
|
+
* Эти выражения интерпретируются как логические проверки, применяемые к значению поля.
|
|
14118
|
+
* Необязательное поле.
|
|
14119
|
+
*/
|
|
14120
|
+
rules?: string[];
|
|
14121
|
+
/**
|
|
14122
|
+
* Маска для ввода, которая ограничивает допустимые символы и формат поля ввода.
|
|
14123
|
+
* Используется для ограничения ввода, например, к числам или специфическим форматам.
|
|
14124
|
+
* Необязательное поле.
|
|
14125
|
+
*/
|
|
14126
|
+
mask?: string;
|
|
14127
|
+
/**
|
|
14128
|
+
* Определяет, будет ли маска заполняться автоматически, когда значение не полностью введено.
|
|
14129
|
+
* Обычно используется с `mask`, чтобы показать пользователю заполненный шаблон.
|
|
14130
|
+
* Необязательное поле.
|
|
14131
|
+
*/
|
|
14132
|
+
fillMask?: boolean;
|
|
14133
|
+
/**
|
|
14134
|
+
* Минимальная длина строки для текстовых полей.
|
|
14135
|
+
* Проверяется валидацией, чтобы гарантировать, что ввод соответствует минимальной длине.
|
|
14136
|
+
* Необязательное поле.
|
|
14137
|
+
*/
|
|
14138
|
+
minLength?: number;
|
|
14139
|
+
/**
|
|
14140
|
+
* Максимальная длина строки для текстовых полей.
|
|
14141
|
+
* Проверяется валидацией, чтобы гарантировать, что ввод не превышает максимальную длину.
|
|
14142
|
+
* Необязательное поле.
|
|
14143
|
+
*/
|
|
14144
|
+
maxLength?: number;
|
|
14145
|
+
/**
|
|
14146
|
+
* Максимальное количество строк для многострочных текстовых полей.
|
|
14147
|
+
* Если указано, поле ввода будет отображаться как многострочное (`textarea`).
|
|
14148
|
+
* Необязательное поле.
|
|
14149
|
+
*/
|
|
14150
|
+
maxRows?: number;
|
|
14151
|
+
append?: string;
|
|
14152
|
+
prepend?: string;
|
|
14153
|
+
}
|
|
14154
|
+
|
|
14155
|
+
/** Return value of `/v1/chain/get_info` */
|
|
14156
|
+
interface GetInfoResult {
|
|
14157
|
+
server_version: string;
|
|
14158
|
+
chain_id: string;
|
|
14159
|
+
head_block_num: number;
|
|
14160
|
+
last_irreversible_block_num: number;
|
|
14161
|
+
last_irreversible_block_id: string;
|
|
14162
|
+
last_irreversible_block_time?: string;
|
|
14163
|
+
head_block_id: string;
|
|
14164
|
+
head_block_time: string;
|
|
14165
|
+
head_block_producer: string;
|
|
14166
|
+
virtual_block_cpu_limit: number;
|
|
14167
|
+
virtual_block_net_limit: number;
|
|
14168
|
+
block_cpu_limit: number;
|
|
14169
|
+
block_net_limit: number;
|
|
14170
|
+
server_version_string?: string;
|
|
14171
|
+
fork_db_head_block_num?: number;
|
|
14172
|
+
fork_db_head_block_id?: string;
|
|
14173
|
+
server_full_version_string?: string;
|
|
14174
|
+
first_block_num?: number;
|
|
14175
|
+
}
|
|
14176
|
+
|
|
14177
|
+
interface BlockchainAccountInterface {
|
|
14178
|
+
account_name: string;
|
|
14179
|
+
head_block_num: number;
|
|
14180
|
+
head_block_time: string;
|
|
14181
|
+
privileged: boolean;
|
|
14182
|
+
last_code_update: string;
|
|
14183
|
+
created: string;
|
|
14184
|
+
core_liquid_balance?: string;
|
|
14185
|
+
ram_quota: number;
|
|
14186
|
+
net_weight: string;
|
|
14187
|
+
cpu_weight: string;
|
|
14188
|
+
net_limit: AccountResourceInfo;
|
|
14189
|
+
cpu_limit: AccountResourceInfo;
|
|
14190
|
+
ram_usage: number;
|
|
14191
|
+
permissions: Permission[];
|
|
14192
|
+
total_resources: ResourceOverview | null;
|
|
14193
|
+
self_delegated_bandwidth: ResourceDelegation | null;
|
|
14194
|
+
refund_request: RefundRequest | null;
|
|
14195
|
+
voter_info: any;
|
|
14196
|
+
rex_info: any;
|
|
14197
|
+
}
|
|
14198
|
+
interface AccountResourceInfo {
|
|
14199
|
+
used: string;
|
|
14200
|
+
available: string;
|
|
14201
|
+
max: string;
|
|
14202
|
+
last_usage_update_time?: string;
|
|
14203
|
+
current_used?: string;
|
|
14204
|
+
}
|
|
14205
|
+
interface Authority {
|
|
14206
|
+
threshold: number;
|
|
14207
|
+
keys: KeyWeight[];
|
|
14208
|
+
accounts: PermissionLevelWeight[];
|
|
14209
|
+
waits: WaitWeight[];
|
|
14210
|
+
}
|
|
14211
|
+
interface KeyWeight {
|
|
14212
|
+
key: string;
|
|
14213
|
+
weight: number;
|
|
14214
|
+
}
|
|
14215
|
+
interface Permission {
|
|
14216
|
+
perm_name: string;
|
|
14217
|
+
parent: string;
|
|
14218
|
+
required_auth: Authority;
|
|
14219
|
+
}
|
|
14220
|
+
interface PermissionLevel {
|
|
14221
|
+
actor: string;
|
|
14222
|
+
permission: string;
|
|
14223
|
+
}
|
|
14224
|
+
interface PermissionLevelWeight {
|
|
14225
|
+
permission: PermissionLevel;
|
|
14226
|
+
weight: number;
|
|
14227
|
+
}
|
|
14228
|
+
interface WaitWeight {
|
|
14229
|
+
wait_sec: number;
|
|
14230
|
+
weight: number;
|
|
14231
|
+
}
|
|
14232
|
+
interface ResourceOverview {
|
|
14233
|
+
owner: string;
|
|
14234
|
+
ram_bytes: number;
|
|
14235
|
+
net_weight: string;
|
|
14236
|
+
cpu_weight: string;
|
|
14237
|
+
}
|
|
14238
|
+
interface ResourceDelegation {
|
|
14239
|
+
from: string;
|
|
14240
|
+
to: string;
|
|
14241
|
+
net_weight: string;
|
|
14242
|
+
cpu_weight: string;
|
|
14243
|
+
}
|
|
14244
|
+
interface RefundRequest {
|
|
14245
|
+
owner: string;
|
|
14246
|
+
request_time: string;
|
|
14247
|
+
net_amount: string;
|
|
14248
|
+
cpu_amount: string;
|
|
14249
|
+
}
|
|
14250
|
+
|
|
14251
|
+
type index$1_AccountResourceInfo = AccountResourceInfo;
|
|
14252
|
+
type index$1_Authority = Authority;
|
|
14253
|
+
type index$1_BlockchainAccountInterface = BlockchainAccountInterface;
|
|
14254
|
+
type index$1_DeserializedDescriptionOfExtension = DeserializedDescriptionOfExtension;
|
|
14255
|
+
type index$1_GetInfoResult = GetInfoResult;
|
|
14256
|
+
type index$1_KeyWeight = KeyWeight;
|
|
14257
|
+
type index$1_Permission = Permission;
|
|
14258
|
+
type index$1_PermissionLevel = PermissionLevel;
|
|
14259
|
+
type index$1_PermissionLevelWeight = PermissionLevelWeight;
|
|
14260
|
+
type index$1_RefundRequest = RefundRequest;
|
|
14261
|
+
type index$1_ResourceDelegation = ResourceDelegation;
|
|
14262
|
+
type index$1_ResourceOverview = ResourceOverview;
|
|
14263
|
+
type index$1_WaitWeight = WaitWeight;
|
|
14264
|
+
declare namespace index$1 {
|
|
14265
|
+
export type { index$1_AccountResourceInfo as AccountResourceInfo, index$1_Authority as Authority, index$1_BlockchainAccountInterface as BlockchainAccountInterface, index$1_DeserializedDescriptionOfExtension as DeserializedDescriptionOfExtension, index$1_GetInfoResult as GetInfoResult, index$1_KeyWeight as KeyWeight, index$1_Permission as Permission, index$1_PermissionLevel as PermissionLevel, index$1_PermissionLevelWeight as PermissionLevelWeight, index$1_RefundRequest as RefundRequest, index$1_ResourceDelegation as ResourceDelegation, index$1_ResourceOverview as ResourceOverview, index$1_WaitWeight as WaitWeight };
|
|
14266
|
+
}
|
|
14267
|
+
|
|
14268
|
+
declare namespace index {
|
|
14269
|
+
export { index$2 as Blockchain, index$n as Client, index$1 as Controller, index$m as Document };
|
|
14270
|
+
}
|
|
14271
|
+
|
|
14272
|
+
declare class Client {
|
|
14273
|
+
private readonly options;
|
|
14274
|
+
private static instance;
|
|
14275
|
+
private currentHeaders;
|
|
14276
|
+
private blockchain;
|
|
14277
|
+
private document;
|
|
14278
|
+
private thunder;
|
|
14279
|
+
private static scalars;
|
|
14280
|
+
private constructor();
|
|
14281
|
+
/**
|
|
14282
|
+
* Инициализация клиента с заданными опциями.
|
|
14283
|
+
* @param options Параметры соединения.
|
|
14284
|
+
*/
|
|
14285
|
+
static create(options: ClientConnectionOptions): Client;
|
|
14286
|
+
/**
|
|
14287
|
+
* Возвращает текущий экземпляр клиента.
|
|
14288
|
+
*/
|
|
14289
|
+
static getInstance(): Client;
|
|
14290
|
+
/**
|
|
14291
|
+
* Логин пользователя с использованием email и WIF.
|
|
14292
|
+
* @param email Email пользователя.
|
|
14293
|
+
* @param wif Приватный ключ в формате WIF.
|
|
14294
|
+
* @returns Результат логина.
|
|
14295
|
+
*/
|
|
14296
|
+
login(email: string, wif: string): Promise<IOutput$p['login']>;
|
|
14297
|
+
/**
|
|
14298
|
+
* Установка токена авторизации.
|
|
14299
|
+
* @param token Токен для заголовков Authorization.
|
|
14300
|
+
*/
|
|
14301
|
+
setToken(token: string): void;
|
|
14302
|
+
/**
|
|
14303
|
+
* Доступ к Blockchain.
|
|
14304
|
+
*/
|
|
14305
|
+
get Blockchain(): Blockchain;
|
|
14306
|
+
/**
|
|
14307
|
+
* Доступ к Document.
|
|
14308
|
+
*/
|
|
14309
|
+
get Document(): Document;
|
|
14310
|
+
/**
|
|
14311
|
+
* Доступ к GraphQL-запросам.
|
|
14312
|
+
*/
|
|
14313
|
+
get Query(): <Z extends AliasType<{
|
|
14131
14314
|
getAccount?: [{
|
|
14132
14315
|
data: ValueTypes["GetAccountInput"] | Variable<any, string>;
|
|
14133
14316
|
}, ValueTypes["Account"]];
|
|
@@ -14154,7 +14337,7 @@ declare function createClient(options: ClientConnectionOptions): {
|
|
|
14154
14337
|
}, ValueTypes["PaymentPaginationResult"]];
|
|
14155
14338
|
getSystemInfo?: ValueTypes["SystemInfo"];
|
|
14156
14339
|
__typename?: boolean | `@${string}`;
|
|
14157
|
-
}>>(o: Z & { [P in keyof Z]: P extends "
|
|
14340
|
+
}>>(o: Z & { [P in keyof Z]: P extends "__alias" | "__typename" | "__directives" | "getAccount" | "getAccounts" | "getAgenda" | "getBranches" | "getDocuments" | "getExtensions" | "getPaymentMethods" | "getPayments" | "getSystemInfo" ? Z[P] : never; }, ops?: OperationOptions & {
|
|
14158
14341
|
variables?: Record<string, unknown>;
|
|
14159
14342
|
}) => Promise<InputType<{
|
|
14160
14343
|
__typename: "Query";
|
|
@@ -14167,18 +14350,11 @@ declare function createClient(options: ClientConnectionOptions): {
|
|
|
14167
14350
|
getPaymentMethods: GraphQLTypes["PaymentMethodPaginationResult"];
|
|
14168
14351
|
getPayments: GraphQLTypes["PaymentPaginationResult"];
|
|
14169
14352
|
getSystemInfo: GraphQLTypes["SystemInfo"];
|
|
14170
|
-
}, Z, Omit<
|
|
14171
|
-
|
|
14172
|
-
|
|
14173
|
-
|
|
14174
|
-
|
|
14175
|
-
}, "DateTime"> & {
|
|
14176
|
-
DateTime: {
|
|
14177
|
-
decode: (e: unknown) => Date;
|
|
14178
|
-
encode: (e: unknown) => string;
|
|
14179
|
-
};
|
|
14180
|
-
}>>;
|
|
14181
|
-
Mutation: <Z extends AliasType<{
|
|
14353
|
+
}, Z, Omit<ScalarDefinition, string> & ScalarDefinition>>;
|
|
14354
|
+
/**
|
|
14355
|
+
* Доступ к GraphQL-мутациям.
|
|
14356
|
+
*/
|
|
14357
|
+
get Mutation(): <Z extends AliasType<{
|
|
14182
14358
|
addParticipant?: [{
|
|
14183
14359
|
data: ValueTypes["AddParticipantInput"] | Variable<any, string>;
|
|
14184
14360
|
}, ValueTypes["Account"]];
|
|
@@ -14309,7 +14485,7 @@ declare function createClient(options: ClientConnectionOptions): {
|
|
|
14309
14485
|
data: ValueTypes["Update"] | Variable<any, string>;
|
|
14310
14486
|
}, ValueTypes["SystemInfo"]];
|
|
14311
14487
|
__typename?: boolean | `@${string}`;
|
|
14312
|
-
}>>(o: Z & { [P in keyof Z]: P extends "login" | "addParticipant" | "addTrustedAccount" | "createBankAccount" | "createBranch" | "createDepositPayment" | "createInitialPayment" | "createProjectOfFreeDecision" | "deleteAccount" | "deleteBranch" | "deletePaymentMethod" | "deleteTrustedAccount" | "editBranch" | "generateFreeDecision" | "generateParticipantApplication" | "generateParticipantApplicationDecision" | "generatePrivacyAgreement" | "generateProjectOfFreeDecision" | "generateSelectBranchDocument" | "generateSignatureAgreement" | "generateUserAgreement" | "generateWalletAgreement" | "initSystem" | "installExtension" | "installSystem" | "logout" | "publishProjectOfFreeDecision" | "refresh" | "registerAccount" | "registerParticipant" | "resetKey" | "selectBranch" | "setPaymentStatus" | "setWif" | "startResetKey" | "uninstallExtension" | "updateAccount" | "updateBankAccount" | "updateExtension" | "updateSystem" | "
|
|
14488
|
+
}>>(o: Z & { [P in keyof Z]: P extends "__alias" | "__typename" | "login" | "addParticipant" | "addTrustedAccount" | "createBankAccount" | "createBranch" | "createDepositPayment" | "createInitialPayment" | "createProjectOfFreeDecision" | "deleteAccount" | "deleteBranch" | "deletePaymentMethod" | "deleteTrustedAccount" | "editBranch" | "generateFreeDecision" | "generateParticipantApplication" | "generateParticipantApplicationDecision" | "generatePrivacyAgreement" | "generateProjectOfFreeDecision" | "generateSelectBranchDocument" | "generateSignatureAgreement" | "generateUserAgreement" | "generateWalletAgreement" | "initSystem" | "installExtension" | "installSystem" | "logout" | "publishProjectOfFreeDecision" | "refresh" | "registerAccount" | "registerParticipant" | "resetKey" | "selectBranch" | "setPaymentStatus" | "setWif" | "startResetKey" | "uninstallExtension" | "updateAccount" | "updateBankAccount" | "updateExtension" | "updateSystem" | "__directives" ? Z[P] : never; }, ops?: OperationOptions & {
|
|
14313
14489
|
variables?: Record<string, unknown>;
|
|
14314
14490
|
}) => Promise<InputType<{
|
|
14315
14491
|
__typename: "Mutation";
|
|
@@ -14353,22 +14529,19 @@ declare function createClient(options: ClientConnectionOptions): {
|
|
|
14353
14529
|
updateBankAccount: GraphQLTypes["PaymentMethod"];
|
|
14354
14530
|
updateExtension: GraphQLTypes["Extension"];
|
|
14355
14531
|
updateSystem: GraphQLTypes["SystemInfo"];
|
|
14356
|
-
}, Z, Omit<
|
|
14357
|
-
|
|
14358
|
-
|
|
14359
|
-
|
|
14360
|
-
|
|
14361
|
-
}, "DateTime"> & {
|
|
14362
|
-
DateTime: {
|
|
14363
|
-
decode: (e: unknown) => Date;
|
|
14364
|
-
encode: (e: unknown) => string;
|
|
14365
|
-
};
|
|
14366
|
-
}>>;
|
|
14367
|
-
Subscription: <O extends keyof typeof Ops, OVERRIDESCLR extends ScalarDefinition, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, graphqlOptions?: ThunderGraphQLOptions<OVERRIDESCLR> | undefined) => <Z extends ValueTypes[R]>(o: Z & { [P in keyof Z]: P extends keyof ValueTypes[R] ? Z[P] : never; }, ops?: (OperationOptions & {
|
|
14532
|
+
}, Z, Omit<ScalarDefinition, string> & ScalarDefinition>>;
|
|
14533
|
+
/**
|
|
14534
|
+
* Подписка на GraphQL-события.
|
|
14535
|
+
*/
|
|
14536
|
+
get Subscription(): <O extends keyof typeof Ops, OVERRIDESCLR extends ScalarDefinition, R extends keyof ValueTypes = GenericOperation<O>>(operation: O, graphqlOptions?: ThunderGraphQLOptions<OVERRIDESCLR> | undefined) => <Z extends ValueTypes[R]>(o: Z & { [P in keyof Z]: P extends keyof ValueTypes[R] ? Z[P] : never; }, ops?: (OperationOptions & {
|
|
14368
14537
|
variables?: ExtractVariables<Z> | undefined;
|
|
14369
14538
|
}) | undefined) => SubscriptionToGraphQL<Z, GraphQLTypes[R], Omit<ScalarDefinition, keyof OVERRIDESCLR> & OVERRIDESCLR>;
|
|
14370
|
-
|
|
14371
|
-
|
|
14372
|
-
|
|
14539
|
+
/**
|
|
14540
|
+
* Создает функцию Thunder для выполнения GraphQL-запросов.
|
|
14541
|
+
* @param baseUrl URL GraphQL API.
|
|
14542
|
+
* @returns Функция Thunder.
|
|
14543
|
+
*/
|
|
14544
|
+
private static createThunder;
|
|
14545
|
+
}
|
|
14373
14546
|
|
|
14374
|
-
export { Classes, Mutations, index as Queries, index
|
|
14547
|
+
export { Classes, Client, Mutations, index$3 as Queries, index as Types, index$o as Zeus };
|