@xyo-network/api-graphql-plugin 4.1.1 → 4.2.0

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,52 +1,3 @@
1
- import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
2
- import { AbstractWitness } from '@xyo-network/abstract-witness';
3
- import { AnyConfigSchema } from '@xyo-network/module-model';
4
- import { Payload, Schema } from '@xyo-network/payload-model';
5
- import { WitnessParams, WitnessConfig } from '@xyo-network/witness-model';
6
- import { ExecutionResult } from 'graphql';
7
-
8
- declare const ApiGraphqlWitnessConfigSchema = "network.xyo.api.witness.config";
9
- type ApiGraphqlWitnessConfigSchema = typeof ApiGraphqlWitnessConfigSchema;
10
- type ApiGraphqlWitnessConfig = WitnessConfig<{
11
- endpoint?: string;
12
- schema: ApiGraphqlWitnessConfigSchema;
13
- timeout?: number;
14
- }>;
15
- type HttpHeaderValue = string | string[] | number | boolean | null;
16
- interface HttpHeaders {
17
- [key: string]: HttpHeaderValue;
18
- }
19
- interface ApiGraphqlWitnessParams extends WitnessParams<AnyConfigSchema<ApiGraphqlWitnessConfig>> {
20
- endpoint?: string;
21
- headers?: HttpHeaders;
22
- }
23
- declare const GraphqlQuerySchema = "network.xyo.graphql.query";
24
- type GraphqlQuerySchema = typeof GraphqlQuerySchema;
25
- type GraphqlQuery = Payload<{
26
- query: string;
27
- variables: Record<string, unknown>;
28
- }, GraphqlQuerySchema>;
29
- declare const GraphqlResultSchema = "network.xyo.graphql.result";
30
- type GraphqlResultSchema = typeof GraphqlResultSchema;
31
- type GraphqlResult<TData = Record<string, unknown>, TExtensions = Record<string, unknown>> = Payload<{
32
- http?: {
33
- code?: string;
34
- ipAddress?: string;
35
- status?: number;
36
- };
37
- result?: ExecutionResult<TData, TExtensions>;
38
- }, GraphqlResultSchema>;
39
- declare const isGraphqlQuery: (x?: unknown | null) => x is GraphqlQuery;
40
- declare class ApiGraphqlWitness<TParams extends ApiGraphqlWitnessParams = ApiGraphqlWitnessParams> extends AbstractWitness<TParams, GraphqlQuery, GraphqlResult> {
41
- static readonly configSchemas: Schema[];
42
- static readonly defaultConfigSchema: Schema;
43
- get endpoint(): string;
44
- get headers(): HttpHeaders | undefined;
45
- get timeout(): number | undefined;
46
- protected observeHandler(payloads?: GraphqlQuery[]): Promise<GraphqlResult[]>;
47
- }
48
-
49
- declare const ApiGraphqlWitnessPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<ApiGraphqlWitness<ApiGraphqlWitnessParams>>;
50
-
51
- export { ApiGraphqlWitness, ApiGraphqlWitnessConfigSchema, ApiGraphqlWitnessPlugin, GraphqlQuerySchema, GraphqlResultSchema, ApiGraphqlWitnessPlugin as default, isGraphqlQuery };
52
- export type { ApiGraphqlWitnessConfig, ApiGraphqlWitnessParams, GraphqlQuery, GraphqlResult, HttpHeaderValue, HttpHeaders };
1
+ export { ApiGraphqlWitnessPlugin, ApiGraphqlWitnessPlugin as default } from './Plugin.ts';
2
+ export * from './Witness.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -1,52 +1,3 @@
1
- import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
2
- import { AbstractWitness } from '@xyo-network/abstract-witness';
3
- import { AnyConfigSchema } from '@xyo-network/module-model';
4
- import { Payload, Schema } from '@xyo-network/payload-model';
5
- import { WitnessParams, WitnessConfig } from '@xyo-network/witness-model';
6
- import { ExecutionResult } from 'graphql';
7
-
8
- declare const ApiGraphqlWitnessConfigSchema = "network.xyo.api.witness.config";
9
- type ApiGraphqlWitnessConfigSchema = typeof ApiGraphqlWitnessConfigSchema;
10
- type ApiGraphqlWitnessConfig = WitnessConfig<{
11
- endpoint?: string;
12
- schema: ApiGraphqlWitnessConfigSchema;
13
- timeout?: number;
14
- }>;
15
- type HttpHeaderValue = string | string[] | number | boolean | null;
16
- interface HttpHeaders {
17
- [key: string]: HttpHeaderValue;
18
- }
19
- interface ApiGraphqlWitnessParams extends WitnessParams<AnyConfigSchema<ApiGraphqlWitnessConfig>> {
20
- endpoint?: string;
21
- headers?: HttpHeaders;
22
- }
23
- declare const GraphqlQuerySchema = "network.xyo.graphql.query";
24
- type GraphqlQuerySchema = typeof GraphqlQuerySchema;
25
- type GraphqlQuery = Payload<{
26
- query: string;
27
- variables: Record<string, unknown>;
28
- }, GraphqlQuerySchema>;
29
- declare const GraphqlResultSchema = "network.xyo.graphql.result";
30
- type GraphqlResultSchema = typeof GraphqlResultSchema;
31
- type GraphqlResult<TData = Record<string, unknown>, TExtensions = Record<string, unknown>> = Payload<{
32
- http?: {
33
- code?: string;
34
- ipAddress?: string;
35
- status?: number;
36
- };
37
- result?: ExecutionResult<TData, TExtensions>;
38
- }, GraphqlResultSchema>;
39
- declare const isGraphqlQuery: (x?: unknown | null) => x is GraphqlQuery;
40
- declare class ApiGraphqlWitness<TParams extends ApiGraphqlWitnessParams = ApiGraphqlWitnessParams> extends AbstractWitness<TParams, GraphqlQuery, GraphqlResult> {
41
- static readonly configSchemas: Schema[];
42
- static readonly defaultConfigSchema: Schema;
43
- get endpoint(): string;
44
- get headers(): HttpHeaders | undefined;
45
- get timeout(): number | undefined;
46
- protected observeHandler(payloads?: GraphqlQuery[]): Promise<GraphqlResult[]>;
47
- }
48
-
49
- declare const ApiGraphqlWitnessPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<ApiGraphqlWitness<ApiGraphqlWitnessParams>>;
50
-
51
- export { ApiGraphqlWitness, ApiGraphqlWitnessConfigSchema, ApiGraphqlWitnessPlugin, GraphqlQuerySchema, GraphqlResultSchema, ApiGraphqlWitnessPlugin as default, isGraphqlQuery };
52
- export type { ApiGraphqlWitnessConfig, ApiGraphqlWitnessParams, GraphqlQuery, GraphqlResult, HttpHeaderValue, HttpHeaders };
1
+ export { ApiGraphqlWitnessPlugin, ApiGraphqlWitnessPlugin as default } from './Plugin.ts';
2
+ export * from './Witness.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -1,52 +1,3 @@
1
- import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
2
- import { AbstractWitness } from '@xyo-network/abstract-witness';
3
- import { AnyConfigSchema } from '@xyo-network/module-model';
4
- import { Payload, Schema } from '@xyo-network/payload-model';
5
- import { WitnessParams, WitnessConfig } from '@xyo-network/witness-model';
6
- import { ExecutionResult } from 'graphql';
7
-
8
- declare const ApiGraphqlWitnessConfigSchema = "network.xyo.api.witness.config";
9
- type ApiGraphqlWitnessConfigSchema = typeof ApiGraphqlWitnessConfigSchema;
10
- type ApiGraphqlWitnessConfig = WitnessConfig<{
11
- endpoint?: string;
12
- schema: ApiGraphqlWitnessConfigSchema;
13
- timeout?: number;
14
- }>;
15
- type HttpHeaderValue = string | string[] | number | boolean | null;
16
- interface HttpHeaders {
17
- [key: string]: HttpHeaderValue;
18
- }
19
- interface ApiGraphqlWitnessParams extends WitnessParams<AnyConfigSchema<ApiGraphqlWitnessConfig>> {
20
- endpoint?: string;
21
- headers?: HttpHeaders;
22
- }
23
- declare const GraphqlQuerySchema = "network.xyo.graphql.query";
24
- type GraphqlQuerySchema = typeof GraphqlQuerySchema;
25
- type GraphqlQuery = Payload<{
26
- query: string;
27
- variables: Record<string, unknown>;
28
- }, GraphqlQuerySchema>;
29
- declare const GraphqlResultSchema = "network.xyo.graphql.result";
30
- type GraphqlResultSchema = typeof GraphqlResultSchema;
31
- type GraphqlResult<TData = Record<string, unknown>, TExtensions = Record<string, unknown>> = Payload<{
32
- http?: {
33
- code?: string;
34
- ipAddress?: string;
35
- status?: number;
36
- };
37
- result?: ExecutionResult<TData, TExtensions>;
38
- }, GraphqlResultSchema>;
39
- declare const isGraphqlQuery: (x?: unknown | null) => x is GraphqlQuery;
40
- declare class ApiGraphqlWitness<TParams extends ApiGraphqlWitnessParams = ApiGraphqlWitnessParams> extends AbstractWitness<TParams, GraphqlQuery, GraphqlResult> {
41
- static readonly configSchemas: Schema[];
42
- static readonly defaultConfigSchema: Schema;
43
- get endpoint(): string;
44
- get headers(): HttpHeaders | undefined;
45
- get timeout(): number | undefined;
46
- protected observeHandler(payloads?: GraphqlQuery[]): Promise<GraphqlResult[]>;
47
- }
48
-
49
- declare const ApiGraphqlWitnessPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<ApiGraphqlWitness<ApiGraphqlWitnessParams>>;
50
-
51
- export { ApiGraphqlWitness, ApiGraphqlWitnessConfigSchema, ApiGraphqlWitnessPlugin, GraphqlQuerySchema, GraphqlResultSchema, ApiGraphqlWitnessPlugin as default, isGraphqlQuery };
52
- export type { ApiGraphqlWitnessConfig, ApiGraphqlWitnessParams, GraphqlQuery, GraphqlResult, HttpHeaderValue, HttpHeaders };
1
+ export { ApiGraphqlWitnessPlugin, ApiGraphqlWitnessPlugin as default } from './Plugin.ts';
2
+ export * from './Witness.ts';
3
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/api-graphql-plugin",
3
- "version": "4.1.1",
3
+ "version": "4.2.0",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,21 +29,20 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/assert": "^4.13.23",
33
- "@xylabs/axios": "^4.13.23",
34
- "@xyo-network/abstract-witness": "^4.1.7",
35
- "@xyo-network/module-model": "^4.1.7",
36
- "@xyo-network/payload-model": "^4.1.7",
37
- "@xyo-network/payloadset-plugin": "^4.1.7",
38
- "@xyo-network/witness-model": "^4.1.7",
32
+ "@xylabs/assert": "^4.15.1",
33
+ "@xylabs/axios": "^4.15.1",
34
+ "@xyo-network/abstract-witness": "^4.3.0",
35
+ "@xyo-network/module-model": "^4.3.0",
36
+ "@xyo-network/payload-model": "^4.3.0",
37
+ "@xyo-network/payloadset-plugin": "^4.3.0",
38
+ "@xyo-network/witness-model": "^4.3.0",
39
39
  "graphql": "^16.11.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.24",
43
- "@xylabs/tsconfig": "^7.0.0-rc.24",
44
- "@xylabs/vitest-extended": "^4.13.23",
42
+ "@xylabs/ts-scripts-yarn3": "^7.0.1",
43
+ "@xylabs/tsconfig": "^7.0.1",
44
+ "@xylabs/vitest-extended": "^4.15.1",
45
45
  "ethers": "^6.15.0",
46
- "knip": "^5.62.0",
47
46
  "typescript": "^5.8.3",
48
47
  "vitest": "^3.2.4"
49
48
  },