@conduit-client/command-aura-cache-control 5.67.0-dev1

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/LICENSE.txt ADDED
@@ -0,0 +1,27 @@
1
+ *Attorney/Client Privileged + Confidential*
2
+
3
+ Terms of Use for Public Code (Non-OSS)
4
+
5
+ *NOTE:* Before publishing code under this license/these Terms of Use, please review https://salesforce.quip.com/WFfvAMKB18AL and confirm that you’ve completed all prerequisites described therein. *These Terms of Use may not be used or modified without input from IP and Product Legal.*
6
+
7
+ *Terms of Use*
8
+
9
+ Copyright 2022 Salesforce, Inc. All rights reserved.
10
+
11
+ These Terms of Use govern the download, installation, and/or use of this software provided by Salesforce, Inc. (“Salesforce”) (the “Software”), were last updated on April 15, 2022, ** and constitute a legally binding agreement between you and Salesforce. If you do not agree to these Terms of Use, do not install or use the Software.
12
+
13
+ Salesforce grants you a worldwide, non-exclusive, no-charge, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute the Software and derivative works subject to these Terms. These Terms shall be included in all copies or substantial portions of the Software.
14
+
15
+ Subject to the limited rights expressly granted hereunder, Salesforce reserves all rights, title, and interest in and to all intellectual property subsisting in the Software. No rights are granted to you hereunder other than as expressly set forth herein. Users residing in countries on the United States Office of Foreign Assets Control sanction list, or which are otherwise subject to a US export embargo, may not use the Software.
16
+
17
+ Implementation of the Software may require development work, for which you are responsible. The Software may contain bugs, errors and incompatibilities and is made available on an AS IS basis without support, updates, or service level commitments.
18
+
19
+ Salesforce reserves the right at any time to modify, suspend, or discontinue, the Software (or any part thereof) with or without notice. You agree that Salesforce shall not be liable to you or to any third party for any modification, suspension, or discontinuance.
20
+
21
+ You agree to defend Salesforce against any claim, demand, suit or proceeding made or brought against Salesforce by a third party arising out of or accruing from (a) your use of the Software, and (b) any application you develop with the Software that infringes any copyright, trademark, trade secret, trade dress, patent, or other intellectual property right of any person or defames any person or violates their rights of publicity or privacy (each a “Claim Against Salesforce”), and will indemnify Salesforce from any damages, attorney fees, and costs finally awarded against Salesforce as a result of, or for any amounts paid by Salesforce under a settlement approved by you in writing of, a Claim Against Salesforce, provided Salesforce (x) promptly gives you written notice of the Claim Against Salesforce, (y) gives you sole control of the defense and settlement of the Claim Against Salesforce (except that you may not settle any Claim Against Salesforce unless it unconditionally releases Salesforce of all liability), and (z) gives you all reasonable assistance, at your expense.
22
+
23
+ WITHOUT LIMITING THE GENERALITY OF THE FOREGOING, THE SOFTWARE IS NOT SUPPORTED AND IS PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. IN NO EVENT SHALL SALESFORCE HAVE ANY LIABILITY FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO, DIRECT, INDIRECT, SPECIAL, INCIDENTAL, PUNITIVE, OR CONSEQUENTIAL DAMAGES, OR DAMAGES BASED ON LOST PROFITS, DATA, OR USE, IN CONNECTION WITH THE SOFTWARE, HOWEVER CAUSED AND WHETHER IN CONTRACT, TORT, OR UNDER ANY OTHER THEORY OF LIABILITY, WHETHER OR NOT YOU HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
24
+
25
+ These Terms of Use shall be governed exclusively by the internal laws of the State of California, without regard to its conflicts of laws rules. Each party hereby consents to the exclusive jurisdiction of the state and federal courts located in San Francisco County, California to adjudicate any dispute arising out of or relating to these Terms of Use and the download, installation, and/or use of the Software. Except as expressly stated herein, these Terms of Use constitute the entire agreement between the parties, and supersede all prior and contemporaneous agreements, proposals, or representations, written or oral, concerning their subject matter. No modification, amendment, or waiver of any provision of these Terms of Use shall be effective unless it is by an update to these Terms of Use that Salesforce makes available, or is in writing and signed by the party against whom the modification, amendment, or waiver is to be asserted.
26
+
27
+ _*Data Privacy*_: Salesforce may collect, process, and store device, system, and other information related to your use of the Software. This information includes, but is not limited to, IP address, user metrics, and other data (“Usage Data”). Salesforce may use Usage Data for analytics, product development, and marketing purposes. You acknowledge that files generated in conjunction with the Software may contain sensitive or confidential data, and you are solely responsible for anonymizing and protecting such data.
package/README.md ADDED
@@ -0,0 +1 @@
1
+ This software is provided as-is with no support provided.
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright (c) 2022, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
File without changes
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,40 @@
1
+ import { CacheControlCommand } from '@conduit-client/command-cache-control/v1';
2
+ import { type Result, type SyncOrAsync } from '@conduit-client/utils';
3
+ import { type NamedPubSubService } from '@conduit-client/service-pubsub/v1';
4
+ import type { NamedCacheControllerService } from '@conduit-client/service-cache-control/v1';
5
+ import type { NamedAuraNetworkService } from '@conduit-client/service-aura-network/v1';
6
+ import type { NamedFetchService, FetchService } from '@conduit-client/service-fetch-network/v1';
7
+ export type AuraRawResponseBody<Data extends Record<string, any> = Record<string, any>> = {
8
+ getReturnValue: () => Data;
9
+ };
10
+ export type NetworkPreference = 'aura' | 'http';
11
+ /**
12
+ * An implementation of BaseCommand that allows for extending abstract cache methods
13
+ *
14
+ * @typeParam Data cache result for read operations
15
+ * @typeParam NetworkResult cache result including network metadata
16
+ * @typeParam ExtraServices additional named services needed by a subclass
17
+ */
18
+ export declare abstract class AuraCacheControlCommand<Data, ExtraServices extends object = object, NetworkResult = Data> extends CacheControlCommand<Data, NetworkResult, ExtraServices> {
19
+ protected services: NamedCacheControllerService & Partial<NamedPubSubService> & Partial<NamedAuraNetworkService> & Partial<NamedFetchService> & ExtraServices;
20
+ protected abstract readonly endpoint: string;
21
+ protected abstract readonly auraParams: Record<string, unknown>;
22
+ protected actionConfig: {
23
+ background: boolean;
24
+ hotspot: boolean;
25
+ longRunning: boolean;
26
+ storable: boolean;
27
+ };
28
+ protected readonly networkPreference: NetworkPreference;
29
+ protected get fetchParams(): Parameters<FetchService>;
30
+ constructor(services: NamedCacheControllerService & Partial<NamedPubSubService> & Partial<NamedAuraNetworkService> & Partial<NamedFetchService> & ExtraServices);
31
+ protected shouldUseAuraNetwork(): boolean;
32
+ protected shouldUseFetch(): boolean;
33
+ requestFromNetwork(): SyncOrAsync<Result<NetworkResult, Error>>;
34
+ protected coerceAuraErrors(auraErrors: any[]): Error;
35
+ protected coerceFetchError(errorResponse: Response): Promise<Error>;
36
+ protected processAuraReturnValue(auraReturnValue: NetworkResult): Result<NetworkResult, Error>;
37
+ protected processFetchReturnValue(json: NetworkResult): Result<NetworkResult, Error>;
38
+ protected convertAuraResponseToData(responsePromise: Promise<AuraRawResponseBody<any>>, coerceError: (errors: any[]) => Error): Promise<Result<NetworkResult, Error>>;
39
+ protected convertFetchResponseToData(response: PromiseLike<Response>): PromiseLike<Result<NetworkResult, Error>>;
40
+ }
@@ -0,0 +1,6 @@
1
+ import { type NamedService, type ServiceDescriptor } from '@conduit-client/utils';
2
+ import { AuraCacheControlCommand } from './aura-cache-control-command';
3
+ export { AuraCacheControlCommand } from './aura-cache-control-command';
4
+ export type AuraCacheControlCommandServiceDescriptor = ServiceDescriptor<typeof AuraCacheControlCommand, 'auraCacheControlCommand', '1.0'>;
5
+ export type NamedAuraCacheControlCommand = NamedService<'auraCacheControlCommand', typeof AuraCacheControlCommand>;
6
+ export declare function buildServiceDescriptor(): AuraCacheControlCommandServiceDescriptor;
@@ -0,0 +1,116 @@
1
+ /*!
2
+ * Copyright (c) 2022, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+ import { CacheControlCommand } from "@conduit-client/command-cache-control/v1";
7
+ import { resolvedPromiseLike, err, toError, ok } from "@conduit-client/utils";
8
+ class AuraCacheControlCommand extends CacheControlCommand {
9
+ constructor(services) {
10
+ super(services);
11
+ this.services = services;
12
+ this.actionConfig = {
13
+ background: false,
14
+ hotspot: true,
15
+ longRunning: false,
16
+ storable: false
17
+ };
18
+ this.networkPreference = "aura";
19
+ }
20
+ get fetchParams() {
21
+ throw new Error(
22
+ "Fetch parameters must be specified when using HTTP transport on an Aura adapter"
23
+ );
24
+ }
25
+ shouldUseAuraNetwork() {
26
+ return this.services.auraNetwork !== void 0 && (this.networkPreference === "aura" || !this.services.fetch);
27
+ }
28
+ shouldUseFetch() {
29
+ return this.services.fetch !== void 0 && (this.networkPreference === "http" || !this.services.auraNetwork);
30
+ }
31
+ requestFromNetwork() {
32
+ if (this.shouldUseAuraNetwork()) {
33
+ return this.convertAuraResponseToData(
34
+ this.services.auraNetwork(this.endpoint, this.auraParams, this.actionConfig),
35
+ (errs) => this.coerceAuraErrors(errs)
36
+ );
37
+ } else if (this.shouldUseFetch()) {
38
+ return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
39
+ }
40
+ return resolvedPromiseLike(err(toError("Aura/Fetch network services not found")));
41
+ }
42
+ coerceAuraErrors(auraErrors) {
43
+ return toError(auraErrors[0]);
44
+ }
45
+ async coerceFetchError(errorResponse) {
46
+ return toError(errorResponse.statusText);
47
+ }
48
+ processAuraReturnValue(auraReturnValue) {
49
+ return ok(auraReturnValue);
50
+ }
51
+ processFetchReturnValue(json) {
52
+ return ok(json);
53
+ }
54
+ convertAuraResponseToData(responsePromise, coerceError) {
55
+ return responsePromise.then((response) => {
56
+ return this.processAuraReturnValue(response.getReturnValue());
57
+ }).finally(() => {
58
+ try {
59
+ this.afterRequestHooks({ statusCode: 200 });
60
+ } catch (e) {
61
+ }
62
+ }).catch((error) => {
63
+ if (!error || !error.getError) {
64
+ return err(toError("Failed to get error from response"));
65
+ } else {
66
+ const actionErrors = error.getError();
67
+ if (actionErrors.length > 0) {
68
+ return err(coerceError(actionErrors));
69
+ } else {
70
+ return err(toError("Error fetching component"));
71
+ }
72
+ }
73
+ });
74
+ }
75
+ convertFetchResponseToData(response) {
76
+ return response.then(
77
+ (response2) => {
78
+ if (response2.ok) {
79
+ return response2.json().then(
80
+ (json) => {
81
+ return this.processFetchReturnValue(json);
82
+ },
83
+ (reason) => err(toError(reason))
84
+ ).finally(() => {
85
+ try {
86
+ this.afterRequestHooks({ statusCode: response2.status });
87
+ } catch (e) {
88
+ }
89
+ });
90
+ } else {
91
+ return this.coerceFetchError(response2).then((coercedError) => {
92
+ return err(coercedError);
93
+ }).finally(() => {
94
+ try {
95
+ this.afterRequestHooks({ statusCode: response2.status });
96
+ } catch (e) {
97
+ }
98
+ });
99
+ }
100
+ },
101
+ (reason) => err(toError(reason))
102
+ );
103
+ }
104
+ }
105
+ function buildServiceDescriptor() {
106
+ return {
107
+ type: "auraCacheControlCommand",
108
+ version: "1.0",
109
+ service: AuraCacheControlCommand
110
+ };
111
+ }
112
+ export {
113
+ AuraCacheControlCommand,
114
+ buildServiceDescriptor
115
+ };
116
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../src/v1/aura-cache-control-command.ts","../../src/v1/index.ts"],"sourcesContent":["import { CacheControlCommand } from '@conduit-client/command-cache-control/v1';\nimport {\n err,\n ok,\n resolvedPromiseLike,\n toError,\n type Result,\n type SyncOrAsync,\n} from '@conduit-client/utils';\nimport { type NamedPubSubService } from '@conduit-client/service-pubsub/v1';\nimport type { NamedCacheControllerService } from '@conduit-client/service-cache-control/v1';\nimport type { NamedAuraNetworkService } from '@conduit-client/service-aura-network/v1';\nimport type { NamedFetchService, FetchService } from '@conduit-client/service-fetch-network/v1';\n\nexport type AuraRawResponseBody<Data extends Record<string, any> = Record<string, any>> = {\n getReturnValue: () => Data;\n};\n\nexport type NetworkPreference = 'aura' | 'http';\n/**\n * An implementation of BaseCommand that allows for extending abstract cache methods\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 AuraCacheControlCommand<\n Data,\n ExtraServices extends object = object,\n NetworkResult = Data,\n> extends CacheControlCommand<Data, NetworkResult, ExtraServices> {\n protected abstract readonly endpoint: string;\n protected abstract readonly auraParams: Record<string, unknown>;\n protected actionConfig = {\n background: false,\n hotspot: true,\n longRunning: false,\n storable: false,\n };\n protected readonly networkPreference: NetworkPreference = 'aura';\n protected get fetchParams(): Parameters<FetchService> {\n throw new Error(\n 'Fetch parameters must be specified when using HTTP transport on an Aura adapter'\n );\n }\n\n constructor(\n protected services: NamedCacheControllerService &\n Partial<NamedPubSubService> &\n Partial<NamedAuraNetworkService> &\n Partial<NamedFetchService> &\n ExtraServices\n ) {\n super(services);\n }\n\n protected shouldUseAuraNetwork(): boolean {\n return (\n this.services.auraNetwork !== undefined &&\n (this.networkPreference === 'aura' || !this.services.fetch)\n );\n }\n\n protected shouldUseFetch(): boolean {\n return (\n this.services.fetch !== undefined &&\n (this.networkPreference === 'http' || !this.services.auraNetwork)\n );\n }\n\n requestFromNetwork(): SyncOrAsync<Result<NetworkResult, Error>> {\n if (this.shouldUseAuraNetwork()) {\n return this.convertAuraResponseToData(\n this.services.auraNetwork!(this.endpoint, this.auraParams, this.actionConfig),\n (errs) => this.coerceAuraErrors(errs)\n );\n } else if (this.shouldUseFetch()) {\n return this.convertFetchResponseToData(this.services.fetch!(...this.fetchParams));\n }\n return resolvedPromiseLike(err(toError('Aura/Fetch network services not found')));\n }\n\n protected coerceAuraErrors(auraErrors: any[]): Error {\n return toError(auraErrors[0]); // Default Implementation stringifies the response\n }\n\n protected async coerceFetchError(errorResponse: Response): Promise<Error> {\n return toError(errorResponse.statusText); // Default Behavior\n }\n\n protected processAuraReturnValue(auraReturnValue: NetworkResult): Result<NetworkResult, Error> {\n return ok(auraReturnValue);\n }\n\n protected processFetchReturnValue(json: NetworkResult): Result<NetworkResult, Error> {\n return ok(json);\n }\n\n protected convertAuraResponseToData(\n responsePromise: Promise<AuraRawResponseBody<any>>,\n coerceError: (errors: any[]) => Error\n ): Promise<Result<NetworkResult, Error>> {\n return responsePromise\n .then((response) => {\n return this.processAuraReturnValue(response.getReturnValue());\n })\n .finally(() => {\n try {\n this.afterRequestHooks({ statusCode: 200 }); // Treat all aura success as 200\n } catch (e) {}\n })\n .catch((error) => {\n if (!error || !error.getError) {\n return err(toError('Failed to get error from response'));\n } else {\n const actionErrors = error.getError();\n if (actionErrors.length > 0) {\n return err(coerceError(actionErrors));\n } else {\n return err(toError('Error fetching component'));\n }\n }\n });\n }\n\n protected convertFetchResponseToData(\n response: PromiseLike<Response>\n ): PromiseLike<Result<NetworkResult, Error>> {\n return response.then(\n (response) => {\n if (response.ok) {\n return response\n .json()\n .then(\n (json: NetworkResult) => {\n return this.processFetchReturnValue(json);\n },\n (reason: any) => err(toError(reason))\n )\n .finally(() => {\n try {\n this.afterRequestHooks({ statusCode: response.status });\n } catch (e) {}\n });\n } else {\n return this.coerceFetchError(response)\n .then((coercedError) => {\n return err(coercedError);\n })\n .finally(() => {\n try {\n this.afterRequestHooks({ statusCode: response.status });\n } catch (e) {}\n });\n }\n },\n (reason) => err(toError(reason))\n );\n }\n}\n","import { type NamedService, type ServiceDescriptor } from '@conduit-client/utils';\nimport { AuraCacheControlCommand } from './aura-cache-control-command';\n\nexport { AuraCacheControlCommand } from './aura-cache-control-command';\n\nexport type AuraCacheControlCommandServiceDescriptor = ServiceDescriptor<\n typeof AuraCacheControlCommand,\n 'auraCacheControlCommand',\n '1.0'\n>;\n\nexport type NamedAuraCacheControlCommand = NamedService<\n 'auraCacheControlCommand',\n typeof AuraCacheControlCommand\n>;\n\nexport function buildServiceDescriptor(): AuraCacheControlCommandServiceDescriptor {\n return {\n type: 'auraCacheControlCommand',\n version: '1.0',\n service: AuraCacheControlCommand,\n };\n}\n"],"names":["response"],"mappings":";;;;;;;AA0BO,MAAe,gCAIZ,oBAAwD;AAAA,EAgB9D,YACc,UAKZ;AACE,UAAM,QAAQ;AANJ,SAAA,WAAA;AAdd,SAAU,eAAe;AAAA,MACrB,YAAY;AAAA,MACZ,SAAS;AAAA,MACT,aAAa;AAAA,MACb,UAAU;AAAA,IAAA;AAEd,S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@conduit-client/command-aura-cache-control",
3
+ "version": "5.67.0-dev1",
4
+ "private": false,
5
+ "description": "Luvio Aura Cache Control Command",
6
+ "type": "module",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/salesforce-experience-platform-emu/luvio-next.git",
10
+ "directory": "packages/@conduit-client/commands/aura-cache-control"
11
+ },
12
+ "license": "SEE LICENSE IN LICENSE.txt",
13
+ "exports": {
14
+ "./v1": {
15
+ "import": "./dist/v1/index.js",
16
+ "types": "./dist/types/v1/index.d.ts",
17
+ "require": "./dist/v1/index.js"
18
+ }
19
+ },
20
+ "main": "./dist/main/index.js",
21
+ "module": "./dist/main/index.js",
22
+ "types": "./dist/main/index.d.ts",
23
+ "files": [
24
+ "dist/"
25
+ ],
26
+ "scripts": {
27
+ "build": "vite build && tsc --build --emitDeclarationOnly",
28
+ "clean": "rm -rf dist",
29
+ "test": "vitest run",
30
+ "test:size": "size-limit",
31
+ "watch": "npm run build --watch"
32
+ },
33
+ "dependencies": {
34
+ "@conduit-client/command-base": "5.67.0-dev1",
35
+ "@conduit-client/command-cache-control": "5.67.0-dev1",
36
+ "@conduit-client/service-aura-network": "5.67.0-dev1",
37
+ "@conduit-client/service-cache-control": "5.67.0-dev1",
38
+ "@conduit-client/service-pubsub": "5.67.0-dev1",
39
+ "@conduit-client/utils": "5.67.0-dev1"
40
+ },
41
+ "volta": {
42
+ "extends": "../../../../package.json"
43
+ },
44
+ "size-limit": [
45
+ {
46
+ "path": "./dist/v1/index.js",
47
+ "limit": "2 kB"
48
+ }
49
+ ]
50
+ }