@coopenomics/sdk 2.2.0 → 2.2.3
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 +557 -384
- package/dist/index.d.cts +278 -148
- package/dist/index.d.mts +278 -148
- package/dist/index.d.ts +278 -148
- package/dist/index.mjs +557 -384
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TransactResult } from '@wharfkit/session';
|
|
2
|
+
import { API } from '@wharfkit/antelope';
|
|
2
3
|
|
|
3
4
|
declare const Ops: {
|
|
4
5
|
query: "Query";
|
|
@@ -49,9 +50,10 @@ declare const Gql: <O extends keyof typeof Ops, OVERRIDESCLR extends ScalarDefin
|
|
|
49
50
|
variables?: Record<string, unknown>;
|
|
50
51
|
}) => Promise<InputType<GraphQLTypes[R], Z, UnionOverrideKeys<ScalarDefinition, OVERRIDESCLR>>>;
|
|
51
52
|
declare const ZeusScalars: SelectionFunction<ScalarCoders>;
|
|
53
|
+
type BaseSymbol = number | string | undefined | boolean | null;
|
|
52
54
|
type ScalarsSelector<T> = {
|
|
53
55
|
[X in Required<{
|
|
54
|
-
[P in keyof T]: T[P] extends
|
|
56
|
+
[P in keyof T]: T[P] extends BaseSymbol | Array<BaseSymbol> ? P : never;
|
|
55
57
|
}>[keyof T]]: true;
|
|
56
58
|
};
|
|
57
59
|
declare const fields: <T extends keyof ModelTypes>(k: T) => ScalarsSelector<ModelTypes[T]>;
|
|
@@ -299,6 +301,7 @@ type ValueTypes = {
|
|
|
299
301
|
totalPages?: boolean | `@${string}`;
|
|
300
302
|
__typename?: boolean | `@${string}`;
|
|
301
303
|
}>;
|
|
304
|
+
/** Массив комплексных актов, содержащих полную информацию о сгенерированном и опубликованном документах */
|
|
302
305
|
["ActDetail"]: AliasType<{
|
|
303
306
|
action?: ValueTypes["ExtendedBlockchainAction"];
|
|
304
307
|
document?: ValueTypes["GeneratedDocument"];
|
|
@@ -950,15 +953,15 @@ type ValueTypes = {
|
|
|
950
953
|
__typename?: boolean | `@${string}`;
|
|
951
954
|
}>;
|
|
952
955
|
["ExtensionInput"]: {
|
|
953
|
-
/**
|
|
956
|
+
/** Объект конфигурации расширения */
|
|
954
957
|
config: ValueTypes["JSON"] | Variable<any, string>;
|
|
955
|
-
/**
|
|
958
|
+
/** Дата установки расширения */
|
|
956
959
|
created_at?: ValueTypes["DateTime"] | undefined | null | Variable<any, string>;
|
|
957
|
-
/**
|
|
960
|
+
/** Флаг того, включено ли расширение сейчас */
|
|
958
961
|
enabled: boolean | Variable<any, string>;
|
|
959
|
-
/**
|
|
962
|
+
/** Уникальное имя расширения (является идентификатором) */
|
|
960
963
|
name: string | Variable<any, string>;
|
|
961
|
-
/**
|
|
964
|
+
/** Дата обновления расширения */
|
|
962
965
|
updated_at?: ValueTypes["DateTime"] | undefined | null | Variable<any, string>;
|
|
963
966
|
};
|
|
964
967
|
["FreeDecisionDocument"]: AliasType<{
|
|
@@ -2453,6 +2456,7 @@ type ResolverInputTypes = {
|
|
|
2453
2456
|
totalPages?: boolean | `@${string}`;
|
|
2454
2457
|
__typename?: boolean | `@${string}`;
|
|
2455
2458
|
}>;
|
|
2459
|
+
/** Массив комплексных актов, содержащих полную информацию о сгенерированном и опубликованном документах */
|
|
2456
2460
|
["ActDetail"]: AliasType<{
|
|
2457
2461
|
action?: ResolverInputTypes["ExtendedBlockchainAction"];
|
|
2458
2462
|
document?: ResolverInputTypes["GeneratedDocument"];
|
|
@@ -3104,15 +3108,15 @@ type ResolverInputTypes = {
|
|
|
3104
3108
|
__typename?: boolean | `@${string}`;
|
|
3105
3109
|
}>;
|
|
3106
3110
|
["ExtensionInput"]: {
|
|
3107
|
-
/**
|
|
3111
|
+
/** Объект конфигурации расширения */
|
|
3108
3112
|
config: ResolverInputTypes["JSON"];
|
|
3109
|
-
/**
|
|
3113
|
+
/** Дата установки расширения */
|
|
3110
3114
|
created_at?: ResolverInputTypes["DateTime"] | undefined | null;
|
|
3111
|
-
/**
|
|
3115
|
+
/** Флаг того, включено ли расширение сейчас */
|
|
3112
3116
|
enabled: boolean;
|
|
3113
|
-
/**
|
|
3117
|
+
/** Уникальное имя расширения (является идентификатором) */
|
|
3114
3118
|
name: string;
|
|
3115
|
-
/**
|
|
3119
|
+
/** Дата обновления расширения */
|
|
3116
3120
|
updated_at?: ResolverInputTypes["DateTime"] | undefined | null;
|
|
3117
3121
|
};
|
|
3118
3122
|
["FreeDecisionDocument"]: AliasType<{
|
|
@@ -4607,6 +4611,7 @@ type ModelTypes = {
|
|
|
4607
4611
|
/** Общее количество страниц */
|
|
4608
4612
|
totalPages: number;
|
|
4609
4613
|
};
|
|
4614
|
+
/** Массив комплексных актов, содержащих полную информацию о сгенерированном и опубликованном документах */
|
|
4610
4615
|
["ActDetail"]: {
|
|
4611
4616
|
action?: ModelTypes["ExtendedBlockchainAction"] | undefined | null;
|
|
4612
4617
|
document?: ModelTypes["GeneratedDocument"] | undefined | null;
|
|
@@ -5228,15 +5233,15 @@ type ModelTypes = {
|
|
|
5228
5233
|
updated_at: ModelTypes["DateTime"];
|
|
5229
5234
|
};
|
|
5230
5235
|
["ExtensionInput"]: {
|
|
5231
|
-
/**
|
|
5236
|
+
/** Объект конфигурации расширения */
|
|
5232
5237
|
config: ModelTypes["JSON"];
|
|
5233
|
-
/**
|
|
5238
|
+
/** Дата установки расширения */
|
|
5234
5239
|
created_at?: ModelTypes["DateTime"] | undefined | null;
|
|
5235
|
-
/**
|
|
5240
|
+
/** Флаг того, включено ли расширение сейчас */
|
|
5236
5241
|
enabled: boolean;
|
|
5237
|
-
/**
|
|
5242
|
+
/** Уникальное имя расширения (является идентификатором) */
|
|
5238
5243
|
name: string;
|
|
5239
|
-
/**
|
|
5244
|
+
/** Дата обновления расширения */
|
|
5240
5245
|
updated_at?: ModelTypes["DateTime"] | undefined | null;
|
|
5241
5246
|
};
|
|
5242
5247
|
["FreeDecisionDocument"]: {
|
|
@@ -6612,6 +6617,7 @@ type GraphQLTypes = {
|
|
|
6612
6617
|
/** Общее количество страниц */
|
|
6613
6618
|
totalPages: number;
|
|
6614
6619
|
};
|
|
6620
|
+
/** Массив комплексных актов, содержащих полную информацию о сгенерированном и опубликованном документах */
|
|
6615
6621
|
["ActDetail"]: {
|
|
6616
6622
|
__typename: "ActDetail";
|
|
6617
6623
|
action?: GraphQLTypes["ExtendedBlockchainAction"] | undefined | null;
|
|
@@ -7265,15 +7271,15 @@ type GraphQLTypes = {
|
|
|
7265
7271
|
updated_at: GraphQLTypes["DateTime"];
|
|
7266
7272
|
};
|
|
7267
7273
|
["ExtensionInput"]: {
|
|
7268
|
-
/**
|
|
7274
|
+
/** Объект конфигурации расширения */
|
|
7269
7275
|
config: GraphQLTypes["JSON"];
|
|
7270
|
-
/**
|
|
7276
|
+
/** Дата установки расширения */
|
|
7271
7277
|
created_at?: GraphQLTypes["DateTime"] | undefined | null;
|
|
7272
|
-
/**
|
|
7278
|
+
/** Флаг того, включено ли расширение сейчас */
|
|
7273
7279
|
enabled: boolean;
|
|
7274
|
-
/**
|
|
7280
|
+
/** Уникальное имя расширения (является идентификатором) */
|
|
7275
7281
|
name: string;
|
|
7276
|
-
/**
|
|
7282
|
+
/** Дата обновления расширения */
|
|
7277
7283
|
updated_at?: GraphQLTypes["DateTime"] | undefined | null;
|
|
7278
7284
|
};
|
|
7279
7285
|
["FreeDecisionDocument"]: {
|
|
@@ -8801,94 +8807,94 @@ type ZEUS_VARIABLES = {
|
|
|
8801
8807
|
["VarsInput"]: ValueTypes["VarsInput"];
|
|
8802
8808
|
};
|
|
8803
8809
|
|
|
8804
|
-
declare const index$
|
|
8805
|
-
type index$
|
|
8806
|
-
declare const index$
|
|
8807
|
-
type index$
|
|
8808
|
-
type index$
|
|
8809
|
-
declare const index$
|
|
8810
|
-
type index$
|
|
8811
|
-
declare const index$
|
|
8812
|
-
type index$
|
|
8813
|
-
type index$
|
|
8814
|
-
type index$
|
|
8815
|
-
type index$
|
|
8816
|
-
declare const index$
|
|
8817
|
-
type index$
|
|
8818
|
-
type index$
|
|
8819
|
-
declare const index$
|
|
8820
|
-
type index$
|
|
8821
|
-
declare const index$
|
|
8822
|
-
type index$
|
|
8823
|
-
type index$
|
|
8824
|
-
type index$
|
|
8825
|
-
declare const index$
|
|
8826
|
-
declare const index$
|
|
8827
|
-
type index$
|
|
8828
|
-
type index$
|
|
8829
|
-
declare const index$
|
|
8830
|
-
declare const index$
|
|
8831
|
-
type index$
|
|
8832
|
-
declare const index$
|
|
8833
|
-
type index$
|
|
8834
|
-
type index$
|
|
8835
|
-
type index$
|
|
8836
|
-
type index$
|
|
8837
|
-
type index$
|
|
8838
|
-
declare const index$
|
|
8839
|
-
type index$
|
|
8840
|
-
declare const index$
|
|
8841
|
-
type index$
|
|
8842
|
-
declare const index$
|
|
8843
|
-
type index$
|
|
8844
|
-
declare const index$
|
|
8845
|
-
declare const index$
|
|
8846
|
-
type index$
|
|
8847
|
-
type index$
|
|
8848
|
-
type index$
|
|
8849
|
-
declare const index$
|
|
8850
|
-
declare const index$
|
|
8851
|
-
type index$
|
|
8852
|
-
type index$
|
|
8853
|
-
type index$
|
|
8854
|
-
type index$
|
|
8855
|
-
type index$
|
|
8856
|
-
declare const index$
|
|
8857
|
-
declare const index$
|
|
8858
|
-
type index$
|
|
8859
|
-
declare const index$
|
|
8860
|
-
type index$
|
|
8861
|
-
type index$
|
|
8862
|
-
declare const index$
|
|
8863
|
-
declare const index$
|
|
8864
|
-
type index$
|
|
8865
|
-
declare const index$
|
|
8866
|
-
type index$
|
|
8867
|
-
type index$
|
|
8868
|
-
declare const index$
|
|
8869
|
-
type index$
|
|
8870
|
-
type index$
|
|
8871
|
-
type index$
|
|
8872
|
-
type index$
|
|
8873
|
-
type index$
|
|
8874
|
-
type index$
|
|
8875
|
-
declare const index$
|
|
8876
|
-
type index$
|
|
8877
|
-
type index$
|
|
8878
|
-
declare const index$
|
|
8879
|
-
declare const index$
|
|
8880
|
-
type index$
|
|
8881
|
-
declare const index$
|
|
8882
|
-
declare const index$
|
|
8883
|
-
type index$
|
|
8884
|
-
declare const index$
|
|
8885
|
-
type index$
|
|
8886
|
-
declare const index$
|
|
8887
|
-
declare const index$
|
|
8888
|
-
declare const index$
|
|
8889
|
-
declare const index$
|
|
8890
|
-
declare namespace index$
|
|
8891
|
-
export { index$
|
|
8810
|
+
declare const index$k_$: typeof $;
|
|
8811
|
+
type index$k_AccountType = AccountType;
|
|
8812
|
+
declare const index$k_AccountType: typeof AccountType;
|
|
8813
|
+
type index$k_AliasType<T> = AliasType<T>;
|
|
8814
|
+
type index$k_AllTypesPropsType = AllTypesPropsType;
|
|
8815
|
+
declare const index$k_Chain: typeof Chain;
|
|
8816
|
+
type index$k_Country = Country;
|
|
8817
|
+
declare const index$k_Country: typeof Country;
|
|
8818
|
+
type index$k_ExtractVariables<Query> = ExtractVariables<Query>;
|
|
8819
|
+
type index$k_ExtractVariablesDeep<Query> = ExtractVariablesDeep<Query>;
|
|
8820
|
+
type index$k_FetchFunction = FetchFunction;
|
|
8821
|
+
type index$k_FromSelector<SELECTOR, NAME extends keyof GraphQLTypes, SCLR extends ScalarDefinition = {}> = FromSelector<SELECTOR, NAME, SCLR>;
|
|
8822
|
+
declare const index$k_GRAPHQL_TYPE_SEPARATOR: typeof GRAPHQL_TYPE_SEPARATOR;
|
|
8823
|
+
type index$k_GenericOperation<O> = GenericOperation<O>;
|
|
8824
|
+
type index$k_GetVariableType<T extends string> = GetVariableType<T>;
|
|
8825
|
+
declare const index$k_Gql: typeof Gql;
|
|
8826
|
+
type index$k_GraphQLError = GraphQLError;
|
|
8827
|
+
declare const index$k_GraphQLError: typeof GraphQLError;
|
|
8828
|
+
type index$k_GraphQLResponse = GraphQLResponse;
|
|
8829
|
+
type index$k_GraphQLTypes = GraphQLTypes;
|
|
8830
|
+
type index$k_GraphQLVariableType = GraphQLVariableType;
|
|
8831
|
+
declare const index$k_HEADERS: typeof HEADERS;
|
|
8832
|
+
declare const index$k_HOST: typeof HOST;
|
|
8833
|
+
type index$k_InputType<SRC, DST, SCLR extends ScalarDefinition = {}> = InputType<SRC, DST, SCLR>;
|
|
8834
|
+
type index$k_InputValueType = InputValueType;
|
|
8835
|
+
declare const index$k_InternalArgsBuilt: typeof InternalArgsBuilt;
|
|
8836
|
+
declare const index$k_InternalsBuildQuery: typeof InternalsBuildQuery;
|
|
8837
|
+
type index$k_LangType = LangType;
|
|
8838
|
+
declare const index$k_LangType: typeof LangType;
|
|
8839
|
+
type index$k_MapType<SRC, DST, SCLR extends ScalarDefinition> = MapType<SRC, DST, SCLR>;
|
|
8840
|
+
type index$k_ModelTypes = ModelTypes;
|
|
8841
|
+
type index$k_OperationOptions = OperationOptions;
|
|
8842
|
+
type index$k_Operations = Operations;
|
|
8843
|
+
type index$k_OrganizationType = OrganizationType;
|
|
8844
|
+
declare const index$k_OrganizationType: typeof OrganizationType;
|
|
8845
|
+
type index$k_PaymentStatus = PaymentStatus;
|
|
8846
|
+
declare const index$k_PaymentStatus: typeof PaymentStatus;
|
|
8847
|
+
type index$k_PlainType = PlainType;
|
|
8848
|
+
declare const index$k_PrepareScalarPaths: typeof PrepareScalarPaths;
|
|
8849
|
+
type index$k_RegisterRole = RegisterRole;
|
|
8850
|
+
declare const index$k_RegisterRole: typeof RegisterRole;
|
|
8851
|
+
declare const index$k_ResolveFromPath: typeof ResolveFromPath;
|
|
8852
|
+
type index$k_ResolverInputTypes = ResolverInputTypes;
|
|
8853
|
+
type index$k_ResolverType<F> = ResolverType<F>;
|
|
8854
|
+
type index$k_ReturnTypesType = ReturnTypesType;
|
|
8855
|
+
declare const index$k_SEPARATOR: typeof SEPARATOR;
|
|
8856
|
+
declare const index$k_START_VAR_NAME: typeof START_VAR_NAME;
|
|
8857
|
+
type index$k_ScalarCoder = ScalarCoder;
|
|
8858
|
+
type index$k_ScalarCoders = ScalarCoders;
|
|
8859
|
+
type index$k_ScalarDefinition = ScalarDefinition;
|
|
8860
|
+
type index$k_ScalarResolver = ScalarResolver;
|
|
8861
|
+
type index$k_SelectionFunction<V> = SelectionFunction<V>;
|
|
8862
|
+
declare const index$k_Selector: typeof Selector;
|
|
8863
|
+
declare const index$k_Subscription: typeof Subscription;
|
|
8864
|
+
type index$k_SubscriptionFunction = SubscriptionFunction;
|
|
8865
|
+
declare const index$k_SubscriptionThunder: typeof SubscriptionThunder;
|
|
8866
|
+
type index$k_SubscriptionToGraphQL<Z, T, SCLR extends ScalarDefinition> = SubscriptionToGraphQL<Z, T, SCLR>;
|
|
8867
|
+
type index$k_SystemStatus = SystemStatus;
|
|
8868
|
+
declare const index$k_SystemStatus: typeof SystemStatus;
|
|
8869
|
+
declare const index$k_Thunder: typeof Thunder;
|
|
8870
|
+
type index$k_ThunderGraphQLOptions<SCLR extends ScalarDefinition> = ThunderGraphQLOptions<SCLR>;
|
|
8871
|
+
declare const index$k_TypeFromSelector: typeof TypeFromSelector;
|
|
8872
|
+
type index$k_UnwrapPromise<T> = UnwrapPromise<T>;
|
|
8873
|
+
type index$k_UserStatus = UserStatus;
|
|
8874
|
+
declare const index$k_UserStatus: typeof UserStatus;
|
|
8875
|
+
type index$k_VType = VType;
|
|
8876
|
+
type index$k_ValueTypes = ValueTypes;
|
|
8877
|
+
type index$k_Variable<T extends GraphQLVariableType, Name extends string> = Variable<T, Name>;
|
|
8878
|
+
type index$k_VariableDefinition = VariableDefinition;
|
|
8879
|
+
type index$k_WithOptionalNullables<T> = WithOptionalNullables<T>;
|
|
8880
|
+
type index$k_WithTypeNameValue<T> = WithTypeNameValue<T>;
|
|
8881
|
+
declare const index$k_Zeus: typeof Zeus;
|
|
8882
|
+
type index$k_ZeusArgsType = ZeusArgsType;
|
|
8883
|
+
type index$k_ZeusHook<T extends (...args: any[]) => Record<string, (...args: any[]) => Promise<any>>, N extends keyof ReturnType<T>> = ZeusHook<T, N>;
|
|
8884
|
+
declare const index$k_ZeusScalars: typeof ZeusScalars;
|
|
8885
|
+
declare const index$k_ZeusSelect: typeof ZeusSelect;
|
|
8886
|
+
type index$k_ZeusState<T extends (...args: any[]) => Promise<any>> = ZeusState<T>;
|
|
8887
|
+
declare const index$k_apiFetch: typeof apiFetch;
|
|
8888
|
+
declare const index$k_apiSubscription: typeof apiSubscription;
|
|
8889
|
+
type index$k_chainOptions = chainOptions;
|
|
8890
|
+
declare const index$k_decodeScalarsInResponse: typeof decodeScalarsInResponse;
|
|
8891
|
+
type index$k_fetchOptions = fetchOptions;
|
|
8892
|
+
declare const index$k_fields: typeof fields;
|
|
8893
|
+
declare const index$k_purifyGraphQLKey: typeof purifyGraphQLKey;
|
|
8894
|
+
declare const index$k_resolverFor: typeof resolverFor;
|
|
8895
|
+
declare const index$k_traverseResponse: typeof traverseResponse;
|
|
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 };
|
|
8892
8898
|
}
|
|
8893
8899
|
|
|
8894
8900
|
interface DeserializedDescriptionOfExtension {
|
|
@@ -9060,24 +9066,122 @@ interface BlockchainConfig {
|
|
|
9060
9066
|
chain_id: string;
|
|
9061
9067
|
}
|
|
9062
9068
|
|
|
9063
|
-
type index$
|
|
9064
|
-
type index$
|
|
9065
|
-
type index$
|
|
9066
|
-
type index$
|
|
9067
|
-
type index$
|
|
9068
|
-
type index$
|
|
9069
|
-
type index$
|
|
9070
|
-
type index$
|
|
9071
|
-
type index$
|
|
9072
|
-
type index$
|
|
9073
|
-
type index$
|
|
9074
|
-
type index$
|
|
9075
|
-
type index$
|
|
9076
|
-
type index$
|
|
9077
|
-
type index$
|
|
9078
|
-
type index$
|
|
9079
|
-
declare namespace index$
|
|
9080
|
-
export type { index$
|
|
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 };
|
|
9087
|
+
}
|
|
9088
|
+
|
|
9089
|
+
/**
|
|
9090
|
+
* Класс `Account` генерирует объект с именем, приватным и публичным ключами.
|
|
9091
|
+
*
|
|
9092
|
+
* @example
|
|
9093
|
+
* ```ts
|
|
9094
|
+
* const account = new Account();
|
|
9095
|
+
* console.log(account);
|
|
9096
|
+
* // {
|
|
9097
|
+
* // name: "abcdxyzuvwrs",
|
|
9098
|
+
* // privateKey: "5JxyzABC1234567890defGHIJKLMNopqRSTUV",
|
|
9099
|
+
* // publicKey: "EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5SozEZ8i8jUBS6yX79y6"
|
|
9100
|
+
* // }
|
|
9101
|
+
* ```
|
|
9102
|
+
*/
|
|
9103
|
+
declare class Account {
|
|
9104
|
+
username: string;
|
|
9105
|
+
private_key: string;
|
|
9106
|
+
public_key: string;
|
|
9107
|
+
constructor();
|
|
9108
|
+
/**
|
|
9109
|
+
* Генерирует случайное имя длиной 12 символов, состоящее только из букв.
|
|
9110
|
+
* @returns Случайное имя.
|
|
9111
|
+
*/
|
|
9112
|
+
private static generateUsername;
|
|
9113
|
+
/**
|
|
9114
|
+
* Генерирует пару ключей (приватный и публичный) с использованием библиотеки @wharfkit/antelope.
|
|
9115
|
+
* @returns Объект с приватным и публичным ключами.
|
|
9116
|
+
*/
|
|
9117
|
+
private static generateKeys;
|
|
9118
|
+
}
|
|
9119
|
+
|
|
9120
|
+
/**
|
|
9121
|
+
* Класс `Canvas` инкапсулирует работу с HTML5 `<canvas>`:
|
|
9122
|
+
* - создание и инициализация canvas внутри переданного контейнера;
|
|
9123
|
+
* - очистка canvas;
|
|
9124
|
+
* - управление процессом рисования (начало, рисование, завершение);
|
|
9125
|
+
* - получение содержимого (подписи) в формате base64.
|
|
9126
|
+
*
|
|
9127
|
+
* @remarks
|
|
9128
|
+
* Все методы и состояние рисования (координаты, флаг `drawing`) хранятся внутри класса.
|
|
9129
|
+
*
|
|
9130
|
+
* @example
|
|
9131
|
+
* ```ts
|
|
9132
|
+
* const container = document.getElementById('canvas-container') as HTMLElement
|
|
9133
|
+
* const myCanvas = new Canvas(container, 500, 300)
|
|
9134
|
+
*
|
|
9135
|
+
* // События мыши
|
|
9136
|
+
* myCanvas.canvas.addEventListener('mousedown', (e) => myCanvas.startDrawing(e))
|
|
9137
|
+
* myCanvas.canvas.addEventListener('mousemove', (e) => myCanvas.draw(e))
|
|
9138
|
+
* myCanvas.canvas.addEventListener('mouseup', () => myCanvas.endDrawing())
|
|
9139
|
+
*
|
|
9140
|
+
* // Очистка холста
|
|
9141
|
+
* document.getElementById('clear-btn')?.addEventListener('click', () => {
|
|
9142
|
+
* myCanvas.clearCanvas()
|
|
9143
|
+
* })
|
|
9144
|
+
*
|
|
9145
|
+
* // Получение подписи (base64)
|
|
9146
|
+
* document.getElementById('get-sign-btn')?.addEventListener('click', () => {
|
|
9147
|
+
* const signature = myCanvas.getSignature()
|
|
9148
|
+
* console.log('Подпись (base64):', signature)
|
|
9149
|
+
* })
|
|
9150
|
+
* ```
|
|
9151
|
+
*/
|
|
9152
|
+
declare class Canvas {
|
|
9153
|
+
canvas: HTMLCanvasElement;
|
|
9154
|
+
ctx: CanvasRenderingContext2D;
|
|
9155
|
+
private state;
|
|
9156
|
+
/**
|
|
9157
|
+
* Создаёт элемент `<canvas>` внутри указанного контейнера.
|
|
9158
|
+
* @param container - HTML-элемент, внутри которого создаётся canvas.
|
|
9159
|
+
* @param width - Ширина canvas (по умолчанию 300).
|
|
9160
|
+
* @param height - Высота canvas (по умолчанию 150).
|
|
9161
|
+
*/
|
|
9162
|
+
constructor(container: HTMLElement, width?: number, height?: number);
|
|
9163
|
+
/**
|
|
9164
|
+
* Полностью очищает canvas.
|
|
9165
|
+
*/
|
|
9166
|
+
clearCanvas(): void;
|
|
9167
|
+
/**
|
|
9168
|
+
* Запускает процесс рисования (фиксирует начальные координаты).
|
|
9169
|
+
* @param e - Событие мыши или касания.
|
|
9170
|
+
*/
|
|
9171
|
+
startDrawing(e: MouseEvent | TouchEvent): void;
|
|
9172
|
+
/**
|
|
9173
|
+
* Выполняет рисование линии от предыдущей точки к текущей.
|
|
9174
|
+
* @param e - Событие мыши или касания.
|
|
9175
|
+
*/
|
|
9176
|
+
draw(e: MouseEvent | TouchEvent): void;
|
|
9177
|
+
/**
|
|
9178
|
+
* Завершает процесс рисования (drawing = false).
|
|
9179
|
+
*/
|
|
9180
|
+
endDrawing(): void;
|
|
9181
|
+
/**
|
|
9182
|
+
* Возвращает текущее содержимое canvas в формате base64 (PNG).
|
|
9183
|
+
*/
|
|
9184
|
+
getSignature(): string;
|
|
9081
9185
|
}
|
|
9082
9186
|
|
|
9083
9187
|
/**
|
|
@@ -9089,6 +9193,7 @@ declare class Wallet {
|
|
|
9089
9193
|
private readonly contractKit;
|
|
9090
9194
|
private session?;
|
|
9091
9195
|
constructor(config: BlockchainConfig);
|
|
9196
|
+
getInfo(): Promise<API.v1.GetInfoResponse>;
|
|
9092
9197
|
/**
|
|
9093
9198
|
* Метод установки приватного ключа в кошелёк
|
|
9094
9199
|
* @param username - имя пользователя
|
|
@@ -9110,10 +9215,14 @@ declare class Wallet {
|
|
|
9110
9215
|
private createTable;
|
|
9111
9216
|
}
|
|
9112
9217
|
|
|
9218
|
+
type Classes_Account = Account;
|
|
9219
|
+
declare const Classes_Account: typeof Account;
|
|
9220
|
+
type Classes_Canvas = Canvas;
|
|
9221
|
+
declare const Classes_Canvas: typeof Canvas;
|
|
9113
9222
|
type Classes_Wallet = Wallet;
|
|
9114
9223
|
declare const Classes_Wallet: typeof Wallet;
|
|
9115
9224
|
declare namespace Classes {
|
|
9116
|
-
export { Classes_Wallet as Wallet };
|
|
9225
|
+
export { Classes_Account as Account, Classes_Canvas as Canvas, Classes_Wallet as Wallet };
|
|
9117
9226
|
}
|
|
9118
9227
|
|
|
9119
9228
|
declare const name$J = "installExtension";
|
|
@@ -9205,7 +9314,7 @@ declare namespace updateExtension {
|
|
|
9205
9314
|
|
|
9206
9315
|
/** Установить расширение */
|
|
9207
9316
|
|
|
9208
|
-
declare namespace index$
|
|
9317
|
+
declare namespace index$i {
|
|
9209
9318
|
export { installExtension as InstallExtension, uninstallExtension as UninstallExtension, updateExtension as UpdateExtension };
|
|
9210
9319
|
}
|
|
9211
9320
|
|
|
@@ -9316,7 +9425,7 @@ declare namespace updateBankAccount {
|
|
|
9316
9425
|
|
|
9317
9426
|
/** Добавить метод оплаты */
|
|
9318
9427
|
|
|
9319
|
-
declare namespace index$
|
|
9428
|
+
declare namespace index$h {
|
|
9320
9429
|
export { createBankAccount as CreateBankAccount, deletePaymentMethod as DeletePaymentMethod, updateBankAccount as UpdateBankAccount };
|
|
9321
9430
|
}
|
|
9322
9431
|
|
|
@@ -9784,7 +9893,7 @@ declare namespace generateSelectBranchDocument {
|
|
|
9784
9893
|
|
|
9785
9894
|
/** Добавить доверенное лицо кооперативного участка */
|
|
9786
9895
|
|
|
9787
|
-
declare namespace index$
|
|
9896
|
+
declare namespace index$g {
|
|
9788
9897
|
export { addTrustedAccount as AddTrustedAccount, createBranch as CreateBranch, deleteBranch as DeleteBranch, deleteTrustedAccount as DeleteTrustedAccount, editBranch as EditBranch, generateSelectBranchDocument as GenerateSelectBranchDocument, selectBranch as SelectBranch };
|
|
9789
9898
|
}
|
|
9790
9899
|
|
|
@@ -9913,7 +10022,7 @@ declare namespace createProjectOfFreeDecision {
|
|
|
9913
10022
|
|
|
9914
10023
|
/** Сгенерировать документ проекта свободного решения */
|
|
9915
10024
|
|
|
9916
|
-
declare namespace index$
|
|
10025
|
+
declare namespace index$f {
|
|
9917
10026
|
export { createProjectOfFreeDecision as CreateProjectOfFreeDecision, generateFreeDecision as GenerateFreeDecision, generateProjectOfFreeDecisionDocument as GenerateProjectOfFreeDecision, publishProjectOfFreeDecision as PublishProjectOfFreeDecision };
|
|
9918
10027
|
}
|
|
9919
10028
|
|
|
@@ -10237,7 +10346,7 @@ declare namespace resetKey {
|
|
|
10237
10346
|
|
|
10238
10347
|
/** Обновить аккаунт в системе провайдера. Обновление аккаунта пользователя производится по username. Мутация позволяет изменить приватные данные пользователя, а также, адрес электронной почты в MONO. Использовать мутацию может только председатель совета. */
|
|
10239
10348
|
|
|
10240
|
-
declare namespace index$
|
|
10349
|
+
declare namespace index$e {
|
|
10241
10350
|
export { registerAccount as RegisterAccount, resetKey as ResetKey, startResetKey as StartResetKey, updateAccount as UpdateAccount };
|
|
10242
10351
|
}
|
|
10243
10352
|
|
|
@@ -10554,7 +10663,7 @@ declare namespace login {
|
|
|
10554
10663
|
|
|
10555
10664
|
/** Обновить токен доступа аккаунта */
|
|
10556
10665
|
|
|
10557
|
-
declare namespace index$
|
|
10666
|
+
declare namespace index$d {
|
|
10558
10667
|
export { login as Login, logout as Logout, refresh as Refresh };
|
|
10559
10668
|
}
|
|
10560
10669
|
|
|
@@ -11179,7 +11288,7 @@ declare namespace updateSystem {
|
|
|
11179
11288
|
|
|
11180
11289
|
/** Произвести инициализацию программного обеспечения перед установкой совета методом install */
|
|
11181
11290
|
|
|
11182
|
-
declare namespace index$
|
|
11291
|
+
declare namespace index$c {
|
|
11183
11292
|
export { initSystem as InitSystem, installSystem as InstallSystem, setWif as SetWif, updateSystem as UpdateSystem };
|
|
11184
11293
|
}
|
|
11185
11294
|
|
|
@@ -11532,7 +11641,7 @@ declare namespace addParticipant {
|
|
|
11532
11641
|
|
|
11533
11642
|
/** Сгенерировать документ заявления о вступлении в кооператив. */
|
|
11534
11643
|
|
|
11535
|
-
declare namespace index$
|
|
11644
|
+
declare namespace index$b {
|
|
11536
11645
|
export { addParticipant as AddParticipant, generateParticipantApplication as GenerateParticipantApplication, generateParticipantApplicationDecision as GenerateParticipantApplicationDecision, registerParticipant as RegisterParticipant };
|
|
11537
11646
|
}
|
|
11538
11647
|
|
|
@@ -11658,7 +11767,7 @@ declare namespace setPaymentStatus {
|
|
|
11658
11767
|
|
|
11659
11768
|
/** Создание объекта регистрационного платежа производится мутацией CreateInitial. Выполнение мутации возвращает идентификатор платежа и данные для его совершения в зависимости от выбранного платежного провайдера. */
|
|
11660
11769
|
|
|
11661
|
-
declare namespace index$
|
|
11770
|
+
declare namespace index$a {
|
|
11662
11771
|
export { createDeposit as CreateDepositPayment, createInitial as CreateInitialPayment, setPaymentStatus as SetPaymentStatus };
|
|
11663
11772
|
}
|
|
11664
11773
|
|
|
@@ -11821,12 +11930,12 @@ declare namespace generateUserAgreement {
|
|
|
11821
11930
|
|
|
11822
11931
|
/** Сгенерировать документ согласия с политикой конфиденциальности. */
|
|
11823
11932
|
|
|
11824
|
-
declare namespace index$
|
|
11933
|
+
declare namespace index$9 {
|
|
11825
11934
|
export { generatePrivacyAgreement as GeneratePrivacyAgreement, generateSignatureAgreement as GenerateSignatureAgreement, generateUserAgreement as GenerateUserAgreement, generateWalletAgreement as GenerateWalletAgreement };
|
|
11826
11935
|
}
|
|
11827
11936
|
|
|
11828
|
-
declare namespace
|
|
11829
|
-
export { index$
|
|
11937
|
+
declare namespace Mutations {
|
|
11938
|
+
export { index$e as Accounts, index$9 as Agreements, index$d as Auth, index$g as Branches, index$i as Extensions, index$f as FreeDecisions, index$b as Participants, index$h as PaymentMethods, index$a as Payments, index$c as System };
|
|
11830
11939
|
}
|
|
11831
11940
|
|
|
11832
11941
|
declare const name$6 = "getExtensions";
|
|
@@ -13988,10 +14097,10 @@ declare namespace index {
|
|
|
13988
14097
|
* а также операций с блокчейном. Позволяет динамически изменять заголовок авторизации.
|
|
13989
14098
|
*
|
|
13990
14099
|
* @param options - Опции для настройки подключения клиента.
|
|
13991
|
-
* @param options.
|
|
14100
|
+
* @param options.api_url - Базовый URL API, с которым будет происходить взаимодействие.
|
|
13992
14101
|
* @param options.headers - Необязательные заголовки, которые будут добавляться ко всем запросам. По умолчанию — пустой объект.
|
|
13993
|
-
* @param options.
|
|
13994
|
-
* @param options.
|
|
14102
|
+
* @param options.chain_url - URL узла блокчейна.
|
|
14103
|
+
* @param options.chain_id - Уникальный идентификатор цепочки блокчейна.
|
|
13995
14104
|
*
|
|
13996
14105
|
* @returns Объект, содержащий методы для работы с API:
|
|
13997
14106
|
* - `setToken`: Устанавливает заголовок Authorization с переданным токеном.
|
|
@@ -14045,7 +14154,7 @@ declare function createClient(options: ClientConnectionOptions): {
|
|
|
14045
14154
|
}, ValueTypes["PaymentPaginationResult"]];
|
|
14046
14155
|
getSystemInfo?: ValueTypes["SystemInfo"];
|
|
14047
14156
|
__typename?: boolean | `@${string}`;
|
|
14048
|
-
}>>(o: Z & { [P in keyof Z]: P extends "__typename" | "
|
|
14157
|
+
}>>(o: Z & { [P in keyof Z]: P extends "__typename" | "__directives" | "__alias" | "getAccount" | "getAccounts" | "getAgenda" | "getBranches" | "getDocuments" | "getExtensions" | "getPaymentMethods" | "getPayments" | "getSystemInfo" ? Z[P] : never; }, ops?: OperationOptions & {
|
|
14049
14158
|
variables?: Record<string, unknown>;
|
|
14050
14159
|
}) => Promise<InputType<{
|
|
14051
14160
|
__typename: "Query";
|
|
@@ -14058,7 +14167,17 @@ declare function createClient(options: ClientConnectionOptions): {
|
|
|
14058
14167
|
getPaymentMethods: GraphQLTypes["PaymentMethodPaginationResult"];
|
|
14059
14168
|
getPayments: GraphQLTypes["PaymentPaginationResult"];
|
|
14060
14169
|
getSystemInfo: GraphQLTypes["SystemInfo"];
|
|
14061
|
-
}, Z, Omit<
|
|
14170
|
+
}, Z, Omit<{
|
|
14171
|
+
DateTime: {
|
|
14172
|
+
decode: (e: unknown) => Date;
|
|
14173
|
+
encode: (e: unknown) => string;
|
|
14174
|
+
};
|
|
14175
|
+
}, "DateTime"> & {
|
|
14176
|
+
DateTime: {
|
|
14177
|
+
decode: (e: unknown) => Date;
|
|
14178
|
+
encode: (e: unknown) => string;
|
|
14179
|
+
};
|
|
14180
|
+
}>>;
|
|
14062
14181
|
Mutation: <Z extends AliasType<{
|
|
14063
14182
|
addParticipant?: [{
|
|
14064
14183
|
data: ValueTypes["AddParticipantInput"] | Variable<any, string>;
|
|
@@ -14190,7 +14309,7 @@ declare function createClient(options: ClientConnectionOptions): {
|
|
|
14190
14309
|
data: ValueTypes["Update"] | Variable<any, string>;
|
|
14191
14310
|
}, ValueTypes["SystemInfo"]];
|
|
14192
14311
|
__typename?: boolean | `@${string}`;
|
|
14193
|
-
}>>(o: Z & { [P in keyof Z]: P extends "
|
|
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" | "__typename" | "__directives" | "__alias" ? Z[P] : never; }, ops?: OperationOptions & {
|
|
14194
14313
|
variables?: Record<string, unknown>;
|
|
14195
14314
|
}) => Promise<InputType<{
|
|
14196
14315
|
__typename: "Mutation";
|
|
@@ -14234,11 +14353,22 @@ declare function createClient(options: ClientConnectionOptions): {
|
|
|
14234
14353
|
updateBankAccount: GraphQLTypes["PaymentMethod"];
|
|
14235
14354
|
updateExtension: GraphQLTypes["Extension"];
|
|
14236
14355
|
updateSystem: GraphQLTypes["SystemInfo"];
|
|
14237
|
-
}, Z, Omit<
|
|
14356
|
+
}, Z, Omit<{
|
|
14357
|
+
DateTime: {
|
|
14358
|
+
decode: (e: unknown) => Date;
|
|
14359
|
+
encode: (e: unknown) => string;
|
|
14360
|
+
};
|
|
14361
|
+
}, "DateTime"> & {
|
|
14362
|
+
DateTime: {
|
|
14363
|
+
decode: (e: unknown) => Date;
|
|
14364
|
+
encode: (e: unknown) => string;
|
|
14365
|
+
};
|
|
14366
|
+
}>>;
|
|
14238
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 & {
|
|
14239
14368
|
variables?: ExtractVariables<Z> | undefined;
|
|
14240
14369
|
}) | undefined) => SubscriptionToGraphQL<Z, GraphQLTypes[R], Omit<ScalarDefinition, keyof OVERRIDESCLR> & OVERRIDESCLR>;
|
|
14241
14370
|
Wallet: Wallet;
|
|
14371
|
+
login: (email: string, wif: string) => Promise<IOutput$p["login"]>;
|
|
14242
14372
|
};
|
|
14243
14373
|
|
|
14244
|
-
export { Classes,
|
|
14374
|
+
export { Classes, Mutations, index as Queries, index$j as Types, index$k as Zeus, createClient };
|