@xyo-network/api-graphql-plugin 3.4.1 → 3.4.2

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.
@@ -1,14 +1,12 @@
1
1
  import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
2
- import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
3
- import { AbstractWitness } from '@xyo-network/abstract-witness';
4
2
  import * as _xyo_network_module_model from '@xyo-network/module-model';
5
3
  import { AnyConfigSchema } from '@xyo-network/module-model';
6
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
4
+ import { AbstractWitness } from '@xyo-network/abstract-witness';
7
5
  import { Payload, Schema } from '@xyo-network/payload-model';
8
6
  import { WitnessParams, WitnessConfig } from '@xyo-network/witness-model';
9
7
  import { ExecutionResult } from 'graphql';
10
- import * as _store__xylabs_logger_npm_4_5_1_a411051254_package from '.store/@xylabs-logger-npm-4.5.1-a411051254/package';
11
- import * as _store__xyo_network_account_model_virtual_3a3814c98f_package from '.store/@xyo-network-account-model-virtual-3a3814c98f/package';
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';
12
10
 
13
11
  declare const ApiGraphqlWitnessConfigSchema = "network.xyo.api.witness.config";
14
12
  type ApiGraphqlWitnessConfigSchema = typeof ApiGraphqlWitnessConfigSchema;
@@ -41,13 +39,7 @@ type GraphqlResult<TData = Record<string, unknown>, TExtensions = Record<string,
41
39
  };
42
40
  result?: ExecutionResult<TData, TExtensions>;
43
41
  }, GraphqlResultSchema>;
44
- declare const isGraphqlQuery: (x?: unknown | null) => x is _store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
45
- schema: "network.xyo.graphql.query";
46
- query: string;
47
- variables: {
48
- [x: string]: unknown;
49
- };
50
- }>;
42
+ declare const isGraphqlQuery: (x?: unknown | null) => x is GraphqlQuery;
51
43
  declare class ApiGraphqlWitness<TParams extends ApiGraphqlWitnessParams = ApiGraphqlWitnessParams> extends AbstractWitness<TParams, GraphqlQuery, GraphqlResult> {
52
44
  static readonly configSchemas: Schema[];
53
45
  static readonly defaultConfigSchema: Schema;
@@ -58,50 +50,15 @@ declare class ApiGraphqlWitness<TParams extends ApiGraphqlWitnessParams = ApiGra
58
50
  }
59
51
 
60
52
  declare const ApiGraphqlWitnessPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<ApiGraphqlWitness<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
61
- account?: _store__xyo_network_account_model_virtual_3a3814c98f_package.AccountInstance | "random";
53
+ account?: _store__xyo_network_account_model_virtual_8ffda77307_package.AccountInstance | "random";
62
54
  addToResolvers?: boolean;
63
- additionalSigners?: _store__xyo_network_account_model_virtual_3a3814c98f_package.AccountInstance[];
55
+ additionalSigners?: _store__xyo_network_account_model_virtual_8ffda77307_package.AccountInstance[];
64
56
  allowNameResolution?: boolean;
65
- config: _store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
66
- schema: _xyo_network_payload_model.Schema;
67
- readonly archiving?: {
68
- readonly archivists?: string[] | undefined;
69
- readonly queries?: string[] | undefined;
70
- } | undefined;
71
- readonly allowedQueries?: string[] | undefined;
72
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
73
- readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
74
- readonly labels?: {
75
- [x: string]: string | undefined;
76
- } | undefined;
77
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
78
- readonly paging?: {
79
- [x: string]: {
80
- size?: number | undefined;
81
- };
82
- } | undefined;
83
- readonly retry?: {
84
- backoff?: number | undefined;
85
- interval?: number | undefined;
86
- retries?: number | undefined;
87
- } | undefined;
88
- readonly security?: {
89
- readonly allowAnonymous?: boolean | undefined;
90
- readonly allowed?: {
91
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
92
- } | undefined;
93
- readonly disallowed?: {
94
- [x: string]: Lowercase<string>[];
95
- } | undefined;
96
- } | undefined;
97
- readonly sign?: boolean | undefined;
98
- readonly storeQueries?: boolean | undefined;
99
- readonly timestamp?: boolean | undefined;
100
- endpoint?: string | undefined;
101
- timeout?: number | undefined;
102
- }>;
57
+ config: _xyo_network_module_model.AnyConfigSchema<ApiGraphqlWitnessConfig>;
103
58
  ephemeralQueryAccountEnabled?: boolean;
104
59
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
60
+ privateChildren?: _xyo_network_module_model.ModuleInstance[];
61
+ publicChildren?: _xyo_network_module_model.ModuleInstance[];
105
62
  } & {
106
63
  endpoint?: string;
107
64
  headers?: HttpHeaders;
@@ -1,14 +1,12 @@
1
1
  import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
2
- import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
3
- import { AbstractWitness } from '@xyo-network/abstract-witness';
4
2
  import * as _xyo_network_module_model from '@xyo-network/module-model';
5
3
  import { AnyConfigSchema } from '@xyo-network/module-model';
6
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
4
+ import { AbstractWitness } from '@xyo-network/abstract-witness';
7
5
  import { Payload, Schema } from '@xyo-network/payload-model';
8
6
  import { WitnessParams, WitnessConfig } from '@xyo-network/witness-model';
9
7
  import { ExecutionResult } from 'graphql';
10
- import * as _store__xylabs_logger_npm_4_5_1_a411051254_package from '.store/@xylabs-logger-npm-4.5.1-a411051254/package';
11
- import * as _store__xyo_network_account_model_virtual_3a3814c98f_package from '.store/@xyo-network-account-model-virtual-3a3814c98f/package';
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';
12
10
 
13
11
  declare const ApiGraphqlWitnessConfigSchema = "network.xyo.api.witness.config";
14
12
  type ApiGraphqlWitnessConfigSchema = typeof ApiGraphqlWitnessConfigSchema;
@@ -41,13 +39,7 @@ type GraphqlResult<TData = Record<string, unknown>, TExtensions = Record<string,
41
39
  };
42
40
  result?: ExecutionResult<TData, TExtensions>;
43
41
  }, GraphqlResultSchema>;
44
- declare const isGraphqlQuery: (x?: unknown | null) => x is _store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
45
- schema: "network.xyo.graphql.query";
46
- query: string;
47
- variables: {
48
- [x: string]: unknown;
49
- };
50
- }>;
42
+ declare const isGraphqlQuery: (x?: unknown | null) => x is GraphqlQuery;
51
43
  declare class ApiGraphqlWitness<TParams extends ApiGraphqlWitnessParams = ApiGraphqlWitnessParams> extends AbstractWitness<TParams, GraphqlQuery, GraphqlResult> {
52
44
  static readonly configSchemas: Schema[];
53
45
  static readonly defaultConfigSchema: Schema;
@@ -58,50 +50,15 @@ declare class ApiGraphqlWitness<TParams extends ApiGraphqlWitnessParams = ApiGra
58
50
  }
59
51
 
60
52
  declare const ApiGraphqlWitnessPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<ApiGraphqlWitness<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
61
- account?: _store__xyo_network_account_model_virtual_3a3814c98f_package.AccountInstance | "random";
53
+ account?: _store__xyo_network_account_model_virtual_8ffda77307_package.AccountInstance | "random";
62
54
  addToResolvers?: boolean;
63
- additionalSigners?: _store__xyo_network_account_model_virtual_3a3814c98f_package.AccountInstance[];
55
+ additionalSigners?: _store__xyo_network_account_model_virtual_8ffda77307_package.AccountInstance[];
64
56
  allowNameResolution?: boolean;
65
- config: _store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
66
- schema: _xyo_network_payload_model.Schema;
67
- readonly archiving?: {
68
- readonly archivists?: string[] | undefined;
69
- readonly queries?: string[] | undefined;
70
- } | undefined;
71
- readonly allowedQueries?: string[] | undefined;
72
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
73
- readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
74
- readonly labels?: {
75
- [x: string]: string | undefined;
76
- } | undefined;
77
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
78
- readonly paging?: {
79
- [x: string]: {
80
- size?: number | undefined;
81
- };
82
- } | undefined;
83
- readonly retry?: {
84
- backoff?: number | undefined;
85
- interval?: number | undefined;
86
- retries?: number | undefined;
87
- } | undefined;
88
- readonly security?: {
89
- readonly allowAnonymous?: boolean | undefined;
90
- readonly allowed?: {
91
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
92
- } | undefined;
93
- readonly disallowed?: {
94
- [x: string]: Lowercase<string>[];
95
- } | undefined;
96
- } | undefined;
97
- readonly sign?: boolean | undefined;
98
- readonly storeQueries?: boolean | undefined;
99
- readonly timestamp?: boolean | undefined;
100
- endpoint?: string | undefined;
101
- timeout?: number | undefined;
102
- }>;
57
+ config: _xyo_network_module_model.AnyConfigSchema<ApiGraphqlWitnessConfig>;
103
58
  ephemeralQueryAccountEnabled?: boolean;
104
59
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
60
+ privateChildren?: _xyo_network_module_model.ModuleInstance[];
61
+ publicChildren?: _xyo_network_module_model.ModuleInstance[];
105
62
  } & {
106
63
  endpoint?: string;
107
64
  headers?: HttpHeaders;
@@ -1,14 +1,12 @@
1
1
  import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
2
- import * as _store__xylabs_object_npm_4_5_1_e31c389195_package from '.store/@xylabs-object-npm-4.5.1-e31c389195/package';
3
- import { AbstractWitness } from '@xyo-network/abstract-witness';
4
2
  import * as _xyo_network_module_model from '@xyo-network/module-model';
5
3
  import { AnyConfigSchema } from '@xyo-network/module-model';
6
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
4
+ import { AbstractWitness } from '@xyo-network/abstract-witness';
7
5
  import { Payload, Schema } from '@xyo-network/payload-model';
8
6
  import { WitnessParams, WitnessConfig } from '@xyo-network/witness-model';
9
7
  import { ExecutionResult } from 'graphql';
10
- import * as _store__xylabs_logger_npm_4_5_1_a411051254_package from '.store/@xylabs-logger-npm-4.5.1-a411051254/package';
11
- import * as _store__xyo_network_account_model_virtual_3a3814c98f_package from '.store/@xyo-network-account-model-virtual-3a3814c98f/package';
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';
12
10
 
13
11
  declare const ApiGraphqlWitnessConfigSchema = "network.xyo.api.witness.config";
14
12
  type ApiGraphqlWitnessConfigSchema = typeof ApiGraphqlWitnessConfigSchema;
@@ -41,13 +39,7 @@ type GraphqlResult<TData = Record<string, unknown>, TExtensions = Record<string,
41
39
  };
42
40
  result?: ExecutionResult<TData, TExtensions>;
43
41
  }, GraphqlResultSchema>;
44
- declare const isGraphqlQuery: (x?: unknown | null) => x is _store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
45
- schema: "network.xyo.graphql.query";
46
- query: string;
47
- variables: {
48
- [x: string]: unknown;
49
- };
50
- }>;
42
+ declare const isGraphqlQuery: (x?: unknown | null) => x is GraphqlQuery;
51
43
  declare class ApiGraphqlWitness<TParams extends ApiGraphqlWitnessParams = ApiGraphqlWitnessParams> extends AbstractWitness<TParams, GraphqlQuery, GraphqlResult> {
52
44
  static readonly configSchemas: Schema[];
53
45
  static readonly defaultConfigSchema: Schema;
@@ -58,50 +50,15 @@ declare class ApiGraphqlWitness<TParams extends ApiGraphqlWitnessParams = ApiGra
58
50
  }
59
51
 
60
52
  declare const ApiGraphqlWitnessPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<ApiGraphqlWitness<_store__xylabs_object_npm_4_5_1_e31c389195_package.BaseParamsFields & {
61
- account?: _store__xyo_network_account_model_virtual_3a3814c98f_package.AccountInstance | "random";
53
+ account?: _store__xyo_network_account_model_virtual_8ffda77307_package.AccountInstance | "random";
62
54
  addToResolvers?: boolean;
63
- additionalSigners?: _store__xyo_network_account_model_virtual_3a3814c98f_package.AccountInstance[];
55
+ additionalSigners?: _store__xyo_network_account_model_virtual_8ffda77307_package.AccountInstance[];
64
56
  allowNameResolution?: boolean;
65
- config: _store__xylabs_object_npm_4_5_1_e31c389195_package.DeepRestrictToStringKeys<{
66
- schema: _xyo_network_payload_model.Schema;
67
- readonly archiving?: {
68
- readonly archivists?: string[] | undefined;
69
- readonly queries?: string[] | undefined;
70
- } | undefined;
71
- readonly allowedQueries?: string[] | undefined;
72
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
73
- readonly consoleLogger?: _store__xylabs_logger_npm_4_5_1_a411051254_package.LogLevel | undefined;
74
- readonly labels?: {
75
- [x: string]: string | undefined;
76
- } | undefined;
77
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
78
- readonly paging?: {
79
- [x: string]: {
80
- size?: number | undefined;
81
- };
82
- } | undefined;
83
- readonly retry?: {
84
- backoff?: number | undefined;
85
- interval?: number | undefined;
86
- retries?: number | undefined;
87
- } | undefined;
88
- readonly security?: {
89
- readonly allowAnonymous?: boolean | undefined;
90
- readonly allowed?: {
91
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
92
- } | undefined;
93
- readonly disallowed?: {
94
- [x: string]: Lowercase<string>[];
95
- } | undefined;
96
- } | undefined;
97
- readonly sign?: boolean | undefined;
98
- readonly storeQueries?: boolean | undefined;
99
- readonly timestamp?: boolean | undefined;
100
- endpoint?: string | undefined;
101
- timeout?: number | undefined;
102
- }>;
57
+ config: _xyo_network_module_model.AnyConfigSchema<ApiGraphqlWitnessConfig>;
103
58
  ephemeralQueryAccountEnabled?: boolean;
104
59
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
60
+ privateChildren?: _xyo_network_module_model.ModuleInstance[];
61
+ publicChildren?: _xyo_network_module_model.ModuleInstance[];
105
62
  } & {
106
63
  endpoint?: string;
107
64
  headers?: HttpHeaders;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/api-graphql-plugin",
3
- "version": "3.4.1",
3
+ "version": "3.4.2",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -31,20 +31,20 @@
31
31
  "dependencies": {
32
32
  "@xylabs/assert": "^4.5.1",
33
33
  "@xylabs/axios": "^4.5.1",
34
- "@xyo-network/abstract-witness": "^3.8.5",
35
- "@xyo-network/module-model": "^3.8.5",
36
- "@xyo-network/payload-model": "^3.8.5",
37
- "@xyo-network/payloadset-plugin": "^3.8.5",
38
- "@xyo-network/witness-model": "^3.8.5",
34
+ "@xyo-network/abstract-witness": "^3.9.16",
35
+ "@xyo-network/module-model": "^3.9.16",
36
+ "@xyo-network/payload-model": "^3.9.16",
37
+ "@xyo-network/payloadset-plugin": "^3.9.16",
38
+ "@xyo-network/witness-model": "^3.9.16",
39
39
  "graphql": "^16.10.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@xylabs/ts-scripts-yarn3": "^5.0.22",
43
- "@xylabs/tsconfig": "^5.0.22",
42
+ "@xylabs/ts-scripts-yarn3": "^5.0.24",
43
+ "@xylabs/tsconfig": "^5.0.24",
44
44
  "@xylabs/vitest-extended": "^4.5.1",
45
45
  "ethers": "^6.13.5",
46
46
  "typescript": "^5.7.3",
47
- "vitest": "^3.0.5"
47
+ "vitest": "^3.0.6"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"