@conduit-client/command-http-graphql-normalized-cache-control 3.10.0 → 3.12.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.
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Declare block for typing the return value of buildCommandClass when the base class is HttpGraphQLNormalizedCacheControlCommand.
|
|
3
|
+
*/
|
|
4
|
+
import type { CacheControlStrategyConfig } from '@conduit-client/service-cache-control/v1';
|
|
5
|
+
import type { FetchService } from '@conduit-client/service-fetch-network/v1';
|
|
6
|
+
import type { HttpGraphQLNormalizedCacheControlCommand } from './http-graphql-normalized-cache-control-command';
|
|
7
|
+
export declare class GeneratedHttpGraphQLNormalizedCacheControlCommand<ExtraServices extends object = object> extends HttpGraphQLNormalizedCacheControlCommand<ExtraServices> {
|
|
8
|
+
get url(): Parameters<FetchService>[0];
|
|
9
|
+
protected get cacheControlStrategyConfig(): CacheControlStrategyConfig;
|
|
10
|
+
readonly exposeSubscribeAndRefresh: boolean;
|
|
11
|
+
get operationType(): 'query' | 'mutation';
|
|
12
|
+
}
|
package/dist/types/v1/index.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ export { HttpGraphQLNormalizedCacheControlCommand } from './http-graphql-normali
|
|
|
4
4
|
export type HttpGraphQLNormalizedCacheControlCommandServiceDescriptor = ServiceDescriptor<typeof HttpGraphQLNormalizedCacheControlCommand, 'httpGraphQLNormalizedCacheControlCommand', '1.0'>;
|
|
5
5
|
export type NamedHttpGraphQLNormalizedCacheControlCommand = NamedService<'httpGraphQLNormalizedCacheControlCommand', typeof HttpGraphQLNormalizedCacheControlCommand>;
|
|
6
6
|
export declare function buildServiceDescriptor(): HttpGraphQLNormalizedCacheControlCommandServiceDescriptor;
|
|
7
|
+
export type { GeneratedHttpGraphQLNormalizedCacheControlCommand } from './generated-command';
|
package/dist/v1/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/v1/http-graphql-normalized-cache-control-command.ts","../../src/v1/index.ts"],"sourcesContent":["import { HttpNormalizedCacheControlCommand } from '@conduit-client/command-http-normalized-cache-control/v1';\nimport { type NamedPubSubService } from '@conduit-client/service-pubsub/v1';\nimport type {\n DataOf,\n ReadInputOf,\n WriteInputOf,\n WriteResponseOf,\n} from '@conduit-client/type-normalization/v1';\nimport type { NamedCacheControllerService } from '@conduit-client/service-cache-control/v1';\nimport type { FetchService, NamedFetchService } from '@conduit-client/service-fetch-network/v1';\nimport {\n addTypenameToDocument,\n buildGraphQLInputExtension,\n findExecutableOperation,\n GraphQLDocumentRootTypeRepository,\n GraphQLRequestParams,\n} from '@conduit-client/graphql-normalization/v1';\nimport {\n GraphQLResponse,\n GraphQLVariables,\n GraphQLFragmentDefinitions,\n} from '@conduit-client/graphql-normalization/v1';\nimport { print, SelectionNode } from '@conduit-client/onestore-graphql-parser/v1';\nimport {\n buildSubscribableResult,\n err,\n InternalError,\n ok,\n Result,\n SubscribableResult,\n SyncOrAsync,\n UserVisibleError,\n} from '@conduit-client/utils';\nimport { CacheControlRequestRunner } from '@conduit-client/command-cache-control/v1';\n\n/**\n * An implementation of BaseCommand that allows for extending abstract cache methods with GraphQL support\n *\n * @typeParam Data cache result for read operations\n * @typeParam NetworkResult cache result including network metadata\n * @typeParam ExtraServices additional named services needed by a subclass\n */\nexport abstract class HttpGraphQLNormalizedCacheControlCommand<\n ExtraServices extends object = object,\n> extends HttpNormalizedCacheControlCommand<\n GraphQLDocumentRootTypeRepository<any, any>,\n DataOf<GraphQLDocumentRootTypeRepository<any, any>>,\n GraphQLResponse,\n ReadInputOf<GraphQLDocumentRootTypeRepository<any, any>>,\n WriteResponseOf<GraphQLDocumentRootTypeRepository<any, any>>,\n WriteInputOf<GraphQLDocumentRootTypeRepository<any, any>>,\n ExtraServices\n> {\n constructor(\n protected config: GraphQLRequestParams,\n protected documentRootType: GraphQLDocumentRootTypeRepository<any, any>,\n protected services: NamedCacheControllerService &\n Partial<NamedPubSubService> &\n NamedFetchService &\n ExtraServices\n ) {\n super(services);\n }\n\n buildResultType() {\n return this.documentRootType;\n }\n\n protected get operationType(): 'query' | 'mutation' {\n const operationResult = findExecutableOperation(this.config);\n if (operationResult.isErr()) {\n return 'mutation'; // Default to mutation to avoid subscribing to an invalid operation\n }\n const operationType = operationResult.value.operation.toString();\n if (operationType === 'mutation' || operationType === 'query') {\n return operationType;\n }\n return 'mutation'; // Coerce unhandled operation types to mutation\n }\n\n buildQuery() {\n const extensionResult = buildGraphQLInputExtension(this.config);\n if (extensionResult.isErr()) {\n throw extensionResult.error;\n }\n return {\n type: 'keyParams',\n keyParams: null,\n ...extensionResult.value,\n };\n }\n\n abstract get url(): Parameters<FetchService>[0];\n\n get fetchParams(): Parameters<FetchService> {\n const body = { ...this.config, query: print(this.buildRequestQuery()) };\n const headers: Record<string, any> = {\n 'Content-Type': 'application/json',\n };\n const params: Parameters<FetchService>[1] = {\n method: 'POST',\n cache: 'no-cache',\n headers,\n body: JSON.stringify(body),\n };\n return [this.url, params];\n }\n\n get originalFetchParams(): Parameters<FetchService> {\n const body = { ...this.config, query: print(this.config.query) };\n const headers: Record<string, any> = {\n 'Content-Type': 'application/json',\n };\n const params: Parameters<FetchService>[1] = {\n method: 'POST',\n cache: 'no-cache',\n headers,\n body: JSON.stringify(body),\n };\n return [this.url, params];\n }\n\n buildRequestQuery() {\n const augmentedQueryResult = this.documentRootType.buildAugmentedQuery(this.config);\n if (augmentedQueryResult.isErr()) {\n throw augmentedQueryResult.error;\n }\n return addTypenameToDocument(augmentedQueryResult.value);\n }\n\n buildWriteInput(data: GraphQLResponse): any {\n const extensionResult = buildGraphQLInputExtension({\n ...this.config,\n query: this.buildRequestQuery(),\n });\n if (extensionResult.isErr()) {\n throw new InternalError(extensionResult.error);\n }\n return { data: data.data, ...extensionResult.value };\n }\n\n protected processFetchReturnValue(json: GraphQLResponse): Result<GraphQLResponse, Error> {\n if (json.hasOwnProperty('errors') && json.errors && json.errors.length > 0) {\n return err(new UserVisibleError(json));\n }\n return ok(json);\n }\n\n runOriginalRequest(): SyncOrAsync<SubscribableResult<GraphQLResponse, Error>> {\n return this.convertFetchResponseToData(\n this.services.fetch!(...this.originalFetchParams)\n ).then((result) => {\n return buildSubscribableResult(result, this.buildSubscribe(), () => this.refresh());\n });\n }\n\n // Any changes to this method should most likely be duplicated in the aura command as well\n handleCacheControllerResult(\n result: Result<void, Error>,\n requestRunner: CacheControlRequestRunner<GraphQLResponse, GraphQLResponse>\n ) {\n if (this.operationType === 'mutation') {\n return super.handleCacheControllerResult(result, requestRunner);\n }\n const { networkError, returnData } = requestRunner;\n return this.publishUpdatedKeys().then(() => {\n // For any error state, we want to return the original requests response\n // Possible error states are:\n // We got a network error\n // We didn't get any return data\n // The return data (read from cache result) was an error\n // The cache control execution returned an internal error\n if (networkError || returnData === undefined || returnData.isErr() || result.isErr()) {\n return this.runOriginalRequest();\n }\n if (this.subscriptions.length > 0) {\n this.subscribe();\n }\n return returnData;\n });\n }\n}\n","import { type NamedService, type ServiceDescriptor } from '@conduit-client/utils';\nimport { HttpGraphQLNormalizedCacheControlCommand } from './http-graphql-normalized-cache-control-command';\n\nexport { HttpGraphQLNormalizedCacheControlCommand } from './http-graphql-normalized-cache-control-command';\n\nexport type HttpGraphQLNormalizedCacheControlCommandServiceDescriptor = ServiceDescriptor<\n typeof HttpGraphQLNormalizedCacheControlCommand,\n 'httpGraphQLNormalizedCacheControlCommand',\n '1.0'\n>;\n\nexport type NamedHttpGraphQLNormalizedCacheControlCommand = NamedService<\n 'httpGraphQLNormalizedCacheControlCommand',\n typeof HttpGraphQLNormalizedCacheControlCommand\n>;\n\nexport function buildServiceDescriptor(): HttpGraphQLNormalizedCacheControlCommandServiceDescriptor {\n return {\n type: 'httpGraphQLNormalizedCacheControlCommand',\n version: '1.0',\n service: HttpGraphQLNormalizedCacheControlCommand,\n };\n}\n"],"names":[],"mappings":";;;;;;;;;AA0CO,MAAe,iDAEZ,kCAQ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GAAG;AAC/B,aAAK,UAAA;AAAA,MACT;AACA,aAAO;AAAA,IACX,CAAC;AAAA,EACL;AACJ;ACrKO,SAAS,yBAAoF;AAChG,SAAO;AAAA,IACH,MAAM;AAAA,IACN,SAAS;AAAA,IACT,SAAS;AAAA,EAAA;AAEjB;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/v1/http-graphql-normalized-cache-control-command.ts","../../src/v1/index.ts"],"sourcesContent":["import { HttpNormalizedCacheControlCommand } from '@conduit-client/command-http-normalized-cache-control/v1';\nimport { type NamedPubSubService } from '@conduit-client/service-pubsub/v1';\nimport type {\n DataOf,\n ReadInputOf,\n WriteInputOf,\n WriteResponseOf,\n} from '@conduit-client/type-normalization/v1';\nimport type { NamedCacheControllerService } from '@conduit-client/service-cache-control/v1';\nimport type { FetchService, NamedFetchService } from '@conduit-client/service-fetch-network/v1';\nimport {\n addTypenameToDocument,\n buildGraphQLInputExtension,\n findExecutableOperation,\n GraphQLDocumentRootTypeRepository,\n GraphQLRequestParams,\n} from '@conduit-client/graphql-normalization/v1';\nimport {\n GraphQLResponse,\n GraphQLVariables,\n GraphQLFragmentDefinitions,\n} from '@conduit-client/graphql-normalization/v1';\nimport { print, SelectionNode } from '@conduit-client/onestore-graphql-parser/v1';\nimport {\n buildSubscribableResult,\n err,\n InternalError,\n ok,\n Result,\n SubscribableResult,\n SyncOrAsync,\n UserVisibleError,\n} from '@conduit-client/utils';\nimport { CacheControlRequestRunner } from '@conduit-client/command-cache-control/v1';\n\n/**\n * An implementation of BaseCommand that allows for extending abstract cache methods with GraphQL support\n *\n * @typeParam Data cache result for read operations\n * @typeParam NetworkResult cache result including network metadata\n * @typeParam ExtraServices additional named services needed by a subclass\n */\nexport abstract class HttpGraphQLNormalizedCacheControlCommand<\n ExtraServices extends object = object,\n> extends HttpNormalizedCacheControlCommand<\n GraphQLDocumentRootTypeRepository<any, any>,\n DataOf<GraphQLDocumentRootTypeRepository<any, any>>,\n GraphQLResponse,\n ReadInputOf<GraphQLDocumentRootTypeRepository<any, any>>,\n WriteResponseOf<GraphQLDocumentRootTypeRepository<any, any>>,\n WriteInputOf<GraphQLDocumentRootTypeRepository<any, any>>,\n ExtraServices\n> {\n constructor(\n protected config: GraphQLRequestParams,\n protected documentRootType: GraphQLDocumentRootTypeRepository<any, any>,\n protected services: NamedCacheControllerService &\n Partial<NamedPubSubService> &\n NamedFetchService &\n ExtraServices\n ) {\n super(services);\n }\n\n buildResultType() {\n return this.documentRootType;\n }\n\n protected get operationType(): 'query' | 'mutation' {\n const operationResult = findExecutableOperation(this.config);\n if (operationResult.isErr()) {\n return 'mutation'; // Default to mutation to avoid subscribing to an invalid operation\n }\n const operationType = operationResult.value.operation.toString();\n if (operationType === 'mutation' || operationType === 'query') {\n return operationType;\n }\n return 'mutation'; // Coerce unhandled operation types to mutation\n }\n\n buildQuery() {\n const extensionResult = buildGraphQLInputExtension(this.config);\n if (extensionResult.isErr()) {\n throw extensionResult.error;\n }\n return {\n type: 'keyParams',\n keyParams: null,\n ...extensionResult.value,\n };\n }\n\n abstract get url(): Parameters<FetchService>[0];\n\n get fetchParams(): Parameters<FetchService> {\n const body = { ...this.config, query: print(this.buildRequestQuery()) };\n const headers: Record<string, any> = {\n 'Content-Type': 'application/json',\n };\n const params: Parameters<FetchService>[1] = {\n method: 'POST',\n cache: 'no-cache',\n headers,\n body: JSON.stringify(body),\n };\n return [this.url, params];\n }\n\n get originalFetchParams(): Parameters<FetchService> {\n const body = { ...this.config, query: print(this.config.query) };\n const headers: Record<string, any> = {\n 'Content-Type': 'application/json',\n };\n const params: Parameters<FetchService>[1] = {\n method: 'POST',\n cache: 'no-cache',\n headers,\n body: JSON.stringify(body),\n };\n return [this.url, params];\n }\n\n buildRequestQuery() {\n const augmentedQueryResult = this.documentRootType.buildAugmentedQuery(this.config);\n if (augmentedQueryResult.isErr()) {\n throw augmentedQueryResult.error;\n }\n return addTypenameToDocument(augmentedQueryResult.value);\n }\n\n buildWriteInput(data: GraphQLResponse): any {\n const extensionResult = buildGraphQLInputExtension({\n ...this.config,\n query: this.buildRequestQuery(),\n });\n if (extensionResult.isErr()) {\n throw new InternalError(extensionResult.error);\n }\n return { data: data.data, ...extensionResult.value };\n }\n\n protected processFetchReturnValue(json: GraphQLResponse): Result<GraphQLResponse, Error> {\n if (json.hasOwnProperty('errors') && json.errors && json.errors.length > 0) {\n return err(new UserVisibleError(json));\n }\n return ok(json);\n }\n\n runOriginalRequest(): SyncOrAsync<SubscribableResult<GraphQLResponse, Error>> {\n return this.convertFetchResponseToData(\n this.services.fetch!(...this.originalFetchParams)\n ).then((result) => {\n return buildSubscribableResult(result, this.buildSubscribe(), () => this.refresh());\n });\n }\n\n // Any changes to this method should most likely be duplicated in the aura command as well\n handleCacheControllerResult(\n result: Result<void, Error>,\n requestRunner: CacheControlRequestRunner<GraphQLResponse, GraphQLResponse>\n ) {\n if (this.operationType === 'mutation') {\n return super.handleCacheControllerResult(result, requestRunner);\n }\n const { networkError, returnData } = requestRunner;\n return this.publishUpdatedKeys().then(() => {\n // For any error state, we want to return the original requests response\n // Possible error states are:\n // We got a network error\n // We didn't get any return data\n // The return data (read from cache result) was an error\n // The cache control execution returned an internal error\n if (networkError || returnData === undefined || returnData.isErr() || result.isErr()) {\n return this.runOriginalRequest();\n }\n if (this.subscriptions.length > 0) {\n this.subscribe();\n }\n return returnData;\n });\n }\n}\n","import { type NamedService, type ServiceDescriptor } from '@conduit-client/utils';\nimport { HttpGraphQLNormalizedCacheControlCommand } from './http-graphql-normalized-cache-control-command';\n\nexport { HttpGraphQLNormalizedCacheControlCommand } from './http-graphql-normalized-cache-control-command';\n\nexport type HttpGraphQLNormalizedCacheControlCommandServiceDescriptor = ServiceDescriptor<\n typeof HttpGraphQLNormalizedCacheControlCommand,\n 'httpGraphQLNormalizedCacheControlCommand',\n '1.0'\n>;\n\nexport type NamedHttpGraphQLNormalizedCacheControlCommand = NamedService<\n 'httpGraphQLNormalizedCacheControlCommand',\n typeof HttpGraphQLNormalizedCacheControlCommand\n>;\n\nexport function buildServiceDescriptor(): HttpGraphQLNormalizedCacheControlCommandServiceDescriptor {\n return {\n type: 'httpGraphQLNormalizedCacheControlCommand',\n version: '1.0',\n service: HttpGraphQLNormalizedCacheControlCommand,\n };\n}\n\nexport type { GeneratedHttpGraphQLNormalizedCacheControlCommand } from './generated-command';\n"],"names":[],"mappings":";;;;;;;;;AA0CO,MAAe,iDAEZ,kCAQR;AAAA,EACE,YACc,QACA,kBACA,UAIZ;AACE,UAAM,QAAQ;AAPJ,SAAA,SAAA;AACA,SAAA,mBAAA;AACA,SAAA,WAAA;AAAA,EAMd;AAAA,EAEA,kBAAkB;AACd,WAAO,KAAK;AAAA,EAChB;AAAA,EAEA,IAAc,gBAAsC;AAChD,UAAM,kBAAkB,wBAAwB,KAAK,MAAM;AAC3D,QAAI,gBAAgB,SAAS;AACzB,aAAO;AAAA,IACX;AACA,UAAM,gBAAgB,gBAAgB,MAAM,UAAU,SAAA;AACtD,QAAI,kBAAkB,cAAc,kBAAkB,SAAS;AAC3D,aAAO;AAAA,IACX;AACA,WAAO;AAAA,EACX;AAAA,EAEA,aAAa;AACT,UAAM,kBAAkB,2BAA2B,KAAK,MAAM;AAC9D,QAAI,gBAAgB,SAAS;AACzB,YAAM,gBAAgB;AAAA,IAC1B;AACA,WAAO;AAAA,MACH,MAAM;AAAA,MACN,WAAW;AAAA,MACX,GAAG,gBAAgB;AAAA,IAAA;AAAA,EAE3B;AAAA,EAIA,IAAI,cAAwC;AACxC,UAAM,OAAO,EAAE,GAAG,KAAK,QAAQ,OAAO,MAAM,KAAK,kBAAA,CAAmB,EAAA;AACpE,UAAM,UAA+B;AAAA,MACjC,gBAAgB;AAAA,IAAA;AAEpB,UAAM,SAAsC;AAAA,MACxC,QAAQ;AAAA,MACR,OAAO;AAAA,MACP;AAAA,MACA,MAAM,KAAK,UAAU,IAAI;AAAA,IAAA;AAE7B,WAAO,CAAC,KAAK,KAAK,MAAM;AAAA,EAC5B;AAAA,E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AK,kBAAkB,YAAY;AACnC,aAAO,MAAM,4BAA4B,QAAQ,aAAa;AAAA,IAClE;AACA,UAAM,EAAE,cAAc,WAAA,IAAe;AACrC,WAAO,KAAK,qBAAqB,KAAK,MAAM;AAOxC,UAAI,gBAAgB,eAAe,UAAa,WAAW,WAAW,OAAO,SAAS;AAClF,eAAO,KAAK,mBAAA;AAAA,MAChB;AACA,UAAI,KAAK,cAAc,SAAS,GAAG;AAC/B,aAAK,UAAA;AAAA,MACT;AACA,aAAO;AAAA,IACX,CAAC;AAAA,EACL;AACJ;ACrKO,SAAS,yBAAoF;AAChG,SAAO;AAAA,IACH,MAAM;AAAA,IACN,SAAS;AAAA,IACT,SAAS;AAAA,EAAA;AAEjB;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conduit-client/command-http-graphql-normalized-cache-control",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Luvio Http GraphQL Normalized Cache Control Command",
|
|
6
6
|
"type": "module",
|
|
@@ -31,17 +31,17 @@
|
|
|
31
31
|
"watch": "npm run build --watch"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@conduit-client/command-base": "3.
|
|
35
|
-
"@conduit-client/command-cache-control": "3.
|
|
36
|
-
"@conduit-client/command-http-cache-control": "3.
|
|
37
|
-
"@conduit-client/command-http-normalized-cache-control": "3.
|
|
38
|
-
"@conduit-client/graphql-normalization": "3.
|
|
39
|
-
"@conduit-client/onestore-graphql-parser": "3.
|
|
40
|
-
"@conduit-client/service-cache-control": "3.
|
|
41
|
-
"@conduit-client/service-fetch-network": "3.
|
|
42
|
-
"@conduit-client/service-pubsub": "3.
|
|
43
|
-
"@conduit-client/type-normalization": "3.
|
|
44
|
-
"@conduit-client/utils": "3.
|
|
34
|
+
"@conduit-client/command-base": "3.12.0",
|
|
35
|
+
"@conduit-client/command-cache-control": "3.12.0",
|
|
36
|
+
"@conduit-client/command-http-cache-control": "3.12.0",
|
|
37
|
+
"@conduit-client/command-http-normalized-cache-control": "3.12.0",
|
|
38
|
+
"@conduit-client/graphql-normalization": "3.12.0",
|
|
39
|
+
"@conduit-client/onestore-graphql-parser": "3.12.0",
|
|
40
|
+
"@conduit-client/service-cache-control": "3.12.0",
|
|
41
|
+
"@conduit-client/service-fetch-network": "3.12.0",
|
|
42
|
+
"@conduit-client/service-pubsub": "3.12.0",
|
|
43
|
+
"@conduit-client/type-normalization": "3.12.0",
|
|
44
|
+
"@conduit-client/utils": "3.12.0"
|
|
45
45
|
},
|
|
46
46
|
"volta": {
|
|
47
47
|
"extends": "../../../../package.json"
|