@xyo-network/api-graphql-plugin 3.4.2 → 3.4.4
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/types/Plugin.d.ts +16 -0
- package/dist/types/Plugin.d.ts.map +1 -0
- package/dist/types/Witness.d.ts +46 -0
- package/dist/types/Witness.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +15 -15
- package/dist/browser/index.d.ts +0 -67
- package/dist/neutral/index.d.ts +0 -67
- package/dist/node/index.d.ts +0 -67
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ApiGraphqlWitness } from './Witness.ts';
|
|
2
|
+
export declare const ApiGraphqlWitnessPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<ApiGraphqlWitness<import(".store/@xylabs-object-npm-4.6.0-7a48a8c82f/package").BaseParamsFields & {
|
|
3
|
+
account?: import(".store/@xyo-network-account-model-virtual-89e38357fa/package").AccountInstance | "random";
|
|
4
|
+
addToResolvers?: boolean;
|
|
5
|
+
additionalSigners?: import(".store/@xyo-network-account-model-virtual-89e38357fa/package").AccountInstance[];
|
|
6
|
+
allowNameResolution?: boolean;
|
|
7
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("./Witness.ts").ApiGraphqlWitnessConfig>;
|
|
8
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
9
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
10
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
11
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
12
|
+
} & {
|
|
13
|
+
endpoint?: string;
|
|
14
|
+
headers?: import("./Witness.ts").HttpHeaders;
|
|
15
|
+
}>>;
|
|
16
|
+
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAsB,MAAM,cAAc,CAAA;AAEpE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;GAQjC,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
2
|
+
import type { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
|
+
import type { Payload, Schema } from '@xyo-network/payload-model';
|
|
4
|
+
import type { WitnessConfig, WitnessParams } from '@xyo-network/witness-model';
|
|
5
|
+
import type { ExecutionResult } from 'graphql';
|
|
6
|
+
export declare const ApiGraphqlWitnessConfigSchema = "network.xyo.api.witness.config";
|
|
7
|
+
export type ApiGraphqlWitnessConfigSchema = typeof ApiGraphqlWitnessConfigSchema;
|
|
8
|
+
export type ApiGraphqlWitnessConfig = WitnessConfig<{
|
|
9
|
+
endpoint?: string;
|
|
10
|
+
schema: ApiGraphqlWitnessConfigSchema;
|
|
11
|
+
timeout?: number;
|
|
12
|
+
}>;
|
|
13
|
+
export type HttpHeaderValue = string | string[] | number | boolean | null;
|
|
14
|
+
export interface HttpHeaders {
|
|
15
|
+
[key: string]: HttpHeaderValue;
|
|
16
|
+
}
|
|
17
|
+
export type ApiGraphqlWitnessParams = WitnessParams<AnyConfigSchema<ApiGraphqlWitnessConfig>, {
|
|
18
|
+
endpoint?: string;
|
|
19
|
+
headers?: HttpHeaders;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const GraphqlQuerySchema = "network.xyo.graphql.query";
|
|
22
|
+
export type GraphqlQuerySchema = typeof GraphqlQuerySchema;
|
|
23
|
+
export type GraphqlQuery = Payload<{
|
|
24
|
+
query: string;
|
|
25
|
+
variables: Record<string, unknown>;
|
|
26
|
+
}, GraphqlQuerySchema>;
|
|
27
|
+
export declare const GraphqlResultSchema = "network.xyo.graphql.result";
|
|
28
|
+
export type GraphqlResultSchema = typeof GraphqlResultSchema;
|
|
29
|
+
export type GraphqlResult<TData = Record<string, unknown>, TExtensions = Record<string, unknown>> = Payload<{
|
|
30
|
+
http?: {
|
|
31
|
+
code?: string;
|
|
32
|
+
ipAddress?: string;
|
|
33
|
+
status?: number;
|
|
34
|
+
};
|
|
35
|
+
result?: ExecutionResult<TData, TExtensions>;
|
|
36
|
+
}, GraphqlResultSchema>;
|
|
37
|
+
export declare const isGraphqlQuery: (x?: unknown | null) => x is GraphqlQuery;
|
|
38
|
+
export declare class ApiGraphqlWitness<TParams extends ApiGraphqlWitnessParams = ApiGraphqlWitnessParams> extends AbstractWitness<TParams, GraphqlQuery, GraphqlResult> {
|
|
39
|
+
static readonly configSchemas: Schema[];
|
|
40
|
+
static readonly defaultConfigSchema: Schema;
|
|
41
|
+
get endpoint(): string;
|
|
42
|
+
get headers(): HttpHeaders | undefined;
|
|
43
|
+
get timeout(): number | undefined;
|
|
44
|
+
protected observeHandler(payloads?: GraphqlQuery[]): Promise<GraphqlResult[]>;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=Witness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,eAAO,MAAM,6BAA6B,mCAAmC,CAAA;AAC7E,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAA;AAEhF,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,6BAA6B,CAAA;IACrC,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAC,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;AAEzE,MAAM,WAAW,WAAW;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,CAAA;CAC/B;AAED,MAAM,MAAM,uBAAuB,GAAG,aAAa,CACjD,eAAe,CAAC,uBAAuB,CAAC,EACxC;IACE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,WAAW,CAAA;CACtB,CACF,CAAA;AAED,eAAO,MAAM,kBAAkB,8BAA8B,CAAA;AAC7D,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA;AAE1D,MAAM,MAAM,YAAY,GAAG,OAAO,CAChC;IACE,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC,EACD,kBAAkB,CACnB,CAAA;AAED,eAAO,MAAM,mBAAmB,+BAA+B,CAAA;AAC/D,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA;AAE5D,MAAM,MAAM,aAAa,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,OAAO,CACzG;IACE,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,MAAM,CAAC,EAAE,eAAe,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;CAC7C,EACD,mBAAmB,CACpB,CAAA;AAED,eAAO,MAAM,cAAc,2CAA0D,CAAA;AAErF,qBAAa,iBAAiB,CAAC,OAAO,SAAS,uBAAuB,GAAG,uBAAuB,CAAE,SAAQ,eAAe,CACvH,OAAO,EACP,YAAY,EACZ,aAAa,CACd;IACC,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAA0D;IAC1G,gBAAyB,mBAAmB,EAAE,MAAM,CAAgC;IAEpF,IAAI,QAAQ,WAEX;IAED,IAAI,OAAO,4BAEV;IAED,IAAI,OAAO,uBAEV;cAEwB,cAAc,CAAC,QAAQ,CAAC,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;CAiB7F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA;AACzF,cAAc,cAAc,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/api-graphql-plugin",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.4",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -21,30 +21,30 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
24
|
+
"types": "./dist/types/index.d.ts",
|
|
25
25
|
"default": "./dist/neutral/index.mjs"
|
|
26
26
|
},
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
|
-
"types": "dist/
|
|
30
|
+
"types": "dist/types/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/assert": "^4.
|
|
33
|
-
"@xylabs/axios": "^4.
|
|
34
|
-
"@xyo-network/abstract-witness": "^3.9.
|
|
35
|
-
"@xyo-network/module-model": "^3.9.
|
|
36
|
-
"@xyo-network/payload-model": "^3.9.
|
|
37
|
-
"@xyo-network/payloadset-plugin": "^3.9.
|
|
38
|
-
"@xyo-network/witness-model": "^3.9.
|
|
32
|
+
"@xylabs/assert": "^4.6.0",
|
|
33
|
+
"@xylabs/axios": "^4.6.0",
|
|
34
|
+
"@xyo-network/abstract-witness": "^3.9.36",
|
|
35
|
+
"@xyo-network/module-model": "^3.9.36",
|
|
36
|
+
"@xyo-network/payload-model": "^3.9.36",
|
|
37
|
+
"@xyo-network/payloadset-plugin": "^3.9.36",
|
|
38
|
+
"@xyo-network/witness-model": "^3.9.36",
|
|
39
39
|
"graphql": "^16.10.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
43
|
-
"@xylabs/tsconfig": "^
|
|
44
|
-
"@xylabs/vitest-extended": "^4.
|
|
42
|
+
"@xylabs/ts-scripts-yarn3": "^6.0.5",
|
|
43
|
+
"@xylabs/tsconfig": "^6.0.5",
|
|
44
|
+
"@xylabs/vitest-extended": "^4.6.0",
|
|
45
45
|
"ethers": "^6.13.5",
|
|
46
|
-
"typescript": "^5.
|
|
47
|
-
"vitest": "^3.0.
|
|
46
|
+
"typescript": "^5.8.2",
|
|
47
|
+
"vitest": "^3.0.8"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
package/dist/browser/index.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
|
|
2
|
-
import * as _xyo_network_module_model from '@xyo-network/module-model';
|
|
3
|
-
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
|
-
import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
5
|
-
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
6
|
-
import { WitnessParams, WitnessConfig } from '@xyo-network/witness-model';
|
|
7
|
-
import { ExecutionResult } from 'graphql';
|
|
8
|
-
import * as _store__xyo_network_account_model_virtual_8ffda77307_package from '.store/@xyo-network-account-model-virtual-8ffda77307/package';
|
|
9
|
-
import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
|
|
10
|
-
|
|
11
|
-
declare const ApiGraphqlWitnessConfigSchema = "network.xyo.api.witness.config";
|
|
12
|
-
type ApiGraphqlWitnessConfigSchema = typeof ApiGraphqlWitnessConfigSchema;
|
|
13
|
-
type ApiGraphqlWitnessConfig = WitnessConfig<{
|
|
14
|
-
endpoint?: string;
|
|
15
|
-
schema: ApiGraphqlWitnessConfigSchema;
|
|
16
|
-
timeout?: number;
|
|
17
|
-
}>;
|
|
18
|
-
type HttpHeaderValue = string | string[] | number | boolean | null;
|
|
19
|
-
interface HttpHeaders {
|
|
20
|
-
[key: string]: HttpHeaderValue;
|
|
21
|
-
}
|
|
22
|
-
type ApiGraphqlWitnessParams = WitnessParams<AnyConfigSchema<ApiGraphqlWitnessConfig>, {
|
|
23
|
-
endpoint?: string;
|
|
24
|
-
headers?: HttpHeaders;
|
|
25
|
-
}>;
|
|
26
|
-
declare const GraphqlQuerySchema = "network.xyo.graphql.query";
|
|
27
|
-
type GraphqlQuerySchema = typeof GraphqlQuerySchema;
|
|
28
|
-
type GraphqlQuery = Payload<{
|
|
29
|
-
query: string;
|
|
30
|
-
variables: Record<string, unknown>;
|
|
31
|
-
}, GraphqlQuerySchema>;
|
|
32
|
-
declare const GraphqlResultSchema = "network.xyo.graphql.result";
|
|
33
|
-
type GraphqlResultSchema = typeof GraphqlResultSchema;
|
|
34
|
-
type GraphqlResult<TData = Record<string, unknown>, TExtensions = Record<string, unknown>> = Payload<{
|
|
35
|
-
http?: {
|
|
36
|
-
code?: string;
|
|
37
|
-
ipAddress?: string;
|
|
38
|
-
status?: number;
|
|
39
|
-
};
|
|
40
|
-
result?: ExecutionResult<TData, TExtensions>;
|
|
41
|
-
}, GraphqlResultSchema>;
|
|
42
|
-
declare const isGraphqlQuery: (x?: unknown | null) => x is GraphqlQuery;
|
|
43
|
-
declare class ApiGraphqlWitness<TParams extends ApiGraphqlWitnessParams = ApiGraphqlWitnessParams> extends AbstractWitness<TParams, GraphqlQuery, GraphqlResult> {
|
|
44
|
-
static readonly configSchemas: Schema[];
|
|
45
|
-
static readonly defaultConfigSchema: Schema;
|
|
46
|
-
get endpoint(): string;
|
|
47
|
-
get headers(): HttpHeaders | undefined;
|
|
48
|
-
get timeout(): number | undefined;
|
|
49
|
-
protected observeHandler(payloads?: GraphqlQuery[]): Promise<GraphqlResult[]>;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
declare const ApiGraphqlWitnessPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<ApiGraphqlWitness<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
|
|
53
|
-
account?: _store__xyo_network_account_model_virtual_8ffda77307_package.AccountInstance | "random";
|
|
54
|
-
addToResolvers?: boolean;
|
|
55
|
-
additionalSigners?: _store__xyo_network_account_model_virtual_8ffda77307_package.AccountInstance[];
|
|
56
|
-
allowNameResolution?: boolean;
|
|
57
|
-
config: _xyo_network_module_model.AnyConfigSchema<ApiGraphqlWitnessConfig>;
|
|
58
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
59
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
60
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
61
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
62
|
-
} & {
|
|
63
|
-
endpoint?: string;
|
|
64
|
-
headers?: HttpHeaders;
|
|
65
|
-
}>>;
|
|
66
|
-
|
|
67
|
-
export { ApiGraphqlWitness, type ApiGraphqlWitnessConfig, ApiGraphqlWitnessConfigSchema, type ApiGraphqlWitnessParams, ApiGraphqlWitnessPlugin, type GraphqlQuery, GraphqlQuerySchema, type GraphqlResult, GraphqlResultSchema, type HttpHeaderValue, type HttpHeaders, ApiGraphqlWitnessPlugin as default, isGraphqlQuery };
|
package/dist/neutral/index.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
|
|
2
|
-
import * as _xyo_network_module_model from '@xyo-network/module-model';
|
|
3
|
-
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
|
-
import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
5
|
-
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
6
|
-
import { WitnessParams, WitnessConfig } from '@xyo-network/witness-model';
|
|
7
|
-
import { ExecutionResult } from 'graphql';
|
|
8
|
-
import * as _store__xyo_network_account_model_virtual_8ffda77307_package from '.store/@xyo-network-account-model-virtual-8ffda77307/package';
|
|
9
|
-
import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
|
|
10
|
-
|
|
11
|
-
declare const ApiGraphqlWitnessConfigSchema = "network.xyo.api.witness.config";
|
|
12
|
-
type ApiGraphqlWitnessConfigSchema = typeof ApiGraphqlWitnessConfigSchema;
|
|
13
|
-
type ApiGraphqlWitnessConfig = WitnessConfig<{
|
|
14
|
-
endpoint?: string;
|
|
15
|
-
schema: ApiGraphqlWitnessConfigSchema;
|
|
16
|
-
timeout?: number;
|
|
17
|
-
}>;
|
|
18
|
-
type HttpHeaderValue = string | string[] | number | boolean | null;
|
|
19
|
-
interface HttpHeaders {
|
|
20
|
-
[key: string]: HttpHeaderValue;
|
|
21
|
-
}
|
|
22
|
-
type ApiGraphqlWitnessParams = WitnessParams<AnyConfigSchema<ApiGraphqlWitnessConfig>, {
|
|
23
|
-
endpoint?: string;
|
|
24
|
-
headers?: HttpHeaders;
|
|
25
|
-
}>;
|
|
26
|
-
declare const GraphqlQuerySchema = "network.xyo.graphql.query";
|
|
27
|
-
type GraphqlQuerySchema = typeof GraphqlQuerySchema;
|
|
28
|
-
type GraphqlQuery = Payload<{
|
|
29
|
-
query: string;
|
|
30
|
-
variables: Record<string, unknown>;
|
|
31
|
-
}, GraphqlQuerySchema>;
|
|
32
|
-
declare const GraphqlResultSchema = "network.xyo.graphql.result";
|
|
33
|
-
type GraphqlResultSchema = typeof GraphqlResultSchema;
|
|
34
|
-
type GraphqlResult<TData = Record<string, unknown>, TExtensions = Record<string, unknown>> = Payload<{
|
|
35
|
-
http?: {
|
|
36
|
-
code?: string;
|
|
37
|
-
ipAddress?: string;
|
|
38
|
-
status?: number;
|
|
39
|
-
};
|
|
40
|
-
result?: ExecutionResult<TData, TExtensions>;
|
|
41
|
-
}, GraphqlResultSchema>;
|
|
42
|
-
declare const isGraphqlQuery: (x?: unknown | null) => x is GraphqlQuery;
|
|
43
|
-
declare class ApiGraphqlWitness<TParams extends ApiGraphqlWitnessParams = ApiGraphqlWitnessParams> extends AbstractWitness<TParams, GraphqlQuery, GraphqlResult> {
|
|
44
|
-
static readonly configSchemas: Schema[];
|
|
45
|
-
static readonly defaultConfigSchema: Schema;
|
|
46
|
-
get endpoint(): string;
|
|
47
|
-
get headers(): HttpHeaders | undefined;
|
|
48
|
-
get timeout(): number | undefined;
|
|
49
|
-
protected observeHandler(payloads?: GraphqlQuery[]): Promise<GraphqlResult[]>;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
declare const ApiGraphqlWitnessPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<ApiGraphqlWitness<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
|
|
53
|
-
account?: _store__xyo_network_account_model_virtual_8ffda77307_package.AccountInstance | "random";
|
|
54
|
-
addToResolvers?: boolean;
|
|
55
|
-
additionalSigners?: _store__xyo_network_account_model_virtual_8ffda77307_package.AccountInstance[];
|
|
56
|
-
allowNameResolution?: boolean;
|
|
57
|
-
config: _xyo_network_module_model.AnyConfigSchema<ApiGraphqlWitnessConfig>;
|
|
58
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
59
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
60
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
61
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
62
|
-
} & {
|
|
63
|
-
endpoint?: string;
|
|
64
|
-
headers?: HttpHeaders;
|
|
65
|
-
}>>;
|
|
66
|
-
|
|
67
|
-
export { ApiGraphqlWitness, type ApiGraphqlWitnessConfig, ApiGraphqlWitnessConfigSchema, type ApiGraphqlWitnessParams, ApiGraphqlWitnessPlugin, type GraphqlQuery, GraphqlQuerySchema, type GraphqlResult, GraphqlResultSchema, type HttpHeaderValue, type HttpHeaders, ApiGraphqlWitnessPlugin as default, isGraphqlQuery };
|
package/dist/node/index.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
|
|
2
|
-
import * as _xyo_network_module_model from '@xyo-network/module-model';
|
|
3
|
-
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
|
-
import { AbstractWitness } from '@xyo-network/abstract-witness';
|
|
5
|
-
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
6
|
-
import { WitnessParams, WitnessConfig } from '@xyo-network/witness-model';
|
|
7
|
-
import { ExecutionResult } from 'graphql';
|
|
8
|
-
import * as _store__xyo_network_account_model_virtual_8ffda77307_package from '.store/@xyo-network-account-model-virtual-8ffda77307/package';
|
|
9
|
-
import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
|
|
10
|
-
|
|
11
|
-
declare const ApiGraphqlWitnessConfigSchema = "network.xyo.api.witness.config";
|
|
12
|
-
type ApiGraphqlWitnessConfigSchema = typeof ApiGraphqlWitnessConfigSchema;
|
|
13
|
-
type ApiGraphqlWitnessConfig = WitnessConfig<{
|
|
14
|
-
endpoint?: string;
|
|
15
|
-
schema: ApiGraphqlWitnessConfigSchema;
|
|
16
|
-
timeout?: number;
|
|
17
|
-
}>;
|
|
18
|
-
type HttpHeaderValue = string | string[] | number | boolean | null;
|
|
19
|
-
interface HttpHeaders {
|
|
20
|
-
[key: string]: HttpHeaderValue;
|
|
21
|
-
}
|
|
22
|
-
type ApiGraphqlWitnessParams = WitnessParams<AnyConfigSchema<ApiGraphqlWitnessConfig>, {
|
|
23
|
-
endpoint?: string;
|
|
24
|
-
headers?: HttpHeaders;
|
|
25
|
-
}>;
|
|
26
|
-
declare const GraphqlQuerySchema = "network.xyo.graphql.query";
|
|
27
|
-
type GraphqlQuerySchema = typeof GraphqlQuerySchema;
|
|
28
|
-
type GraphqlQuery = Payload<{
|
|
29
|
-
query: string;
|
|
30
|
-
variables: Record<string, unknown>;
|
|
31
|
-
}, GraphqlQuerySchema>;
|
|
32
|
-
declare const GraphqlResultSchema = "network.xyo.graphql.result";
|
|
33
|
-
type GraphqlResultSchema = typeof GraphqlResultSchema;
|
|
34
|
-
type GraphqlResult<TData = Record<string, unknown>, TExtensions = Record<string, unknown>> = Payload<{
|
|
35
|
-
http?: {
|
|
36
|
-
code?: string;
|
|
37
|
-
ipAddress?: string;
|
|
38
|
-
status?: number;
|
|
39
|
-
};
|
|
40
|
-
result?: ExecutionResult<TData, TExtensions>;
|
|
41
|
-
}, GraphqlResultSchema>;
|
|
42
|
-
declare const isGraphqlQuery: (x?: unknown | null) => x is GraphqlQuery;
|
|
43
|
-
declare class ApiGraphqlWitness<TParams extends ApiGraphqlWitnessParams = ApiGraphqlWitnessParams> extends AbstractWitness<TParams, GraphqlQuery, GraphqlResult> {
|
|
44
|
-
static readonly configSchemas: Schema[];
|
|
45
|
-
static readonly defaultConfigSchema: Schema;
|
|
46
|
-
get endpoint(): string;
|
|
47
|
-
get headers(): HttpHeaders | undefined;
|
|
48
|
-
get timeout(): number | undefined;
|
|
49
|
-
protected observeHandler(payloads?: GraphqlQuery[]): Promise<GraphqlResult[]>;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
declare const ApiGraphqlWitnessPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<ApiGraphqlWitness<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
|
|
53
|
-
account?: _store__xyo_network_account_model_virtual_8ffda77307_package.AccountInstance | "random";
|
|
54
|
-
addToResolvers?: boolean;
|
|
55
|
-
additionalSigners?: _store__xyo_network_account_model_virtual_8ffda77307_package.AccountInstance[];
|
|
56
|
-
allowNameResolution?: boolean;
|
|
57
|
-
config: _xyo_network_module_model.AnyConfigSchema<ApiGraphqlWitnessConfig>;
|
|
58
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
59
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
60
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
61
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
62
|
-
} & {
|
|
63
|
-
endpoint?: string;
|
|
64
|
-
headers?: HttpHeaders;
|
|
65
|
-
}>>;
|
|
66
|
-
|
|
67
|
-
export { ApiGraphqlWitness, type ApiGraphqlWitnessConfig, ApiGraphqlWitnessConfigSchema, type ApiGraphqlWitnessParams, ApiGraphqlWitnessPlugin, type GraphqlQuery, GraphqlQuerySchema, type GraphqlResult, GraphqlResultSchema, type HttpHeaderValue, type HttpHeaders, ApiGraphqlWitnessPlugin as default, isGraphqlQuery };
|