@conduit-client/command-aura-network 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 +27 -0
- package/README.md +1 -0
- package/dist/main/index.js +6 -0
- package/dist/main/index.js.map +1 -0
- package/dist/types/index.d.ts +0 -0
- package/dist/types/v1/__tests__/aura-network-command.spec.d.ts +1 -0
- package/dist/types/v1/__tests__/index.spec.d.ts +1 -0
- package/dist/types/v1/aura-network-command.d.ts +33 -0
- package/dist/types/v1/index.d.ts +7 -0
- package/dist/v1/index.js +108 -0
- package/dist/v1/index.js.map +1 -0
- package/package.json +48 -0
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 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { NetworkCommand } from '@conduit-client/command-network/v1';
|
|
2
|
+
import { type Result } from '@conduit-client/utils';
|
|
3
|
+
import type { NamedAuraNetworkService } from '@conduit-client/service-aura-network/v1';
|
|
4
|
+
import type { FetchService, NamedFetchService } from '@conduit-client/service-fetch-network/v1';
|
|
5
|
+
export type AuraRawResponseBody<Data extends Record<string, any> = Record<string, any>> = {
|
|
6
|
+
getReturnValue: () => Data;
|
|
7
|
+
};
|
|
8
|
+
export type NetworkPreference = 'aura' | 'http';
|
|
9
|
+
/**
|
|
10
|
+
* An implementation of NetworkCommand that uses Aura as the transport mechanism.
|
|
11
|
+
* Transforms parameters into an Aura Parameters object and returns the result as an unwrapped object.
|
|
12
|
+
*/
|
|
13
|
+
export declare abstract class AuraNetworkCommand<Data, ExtraServices extends object = object> extends NetworkCommand<Data, ExtraServices & Partial<NamedAuraNetworkService> & Partial<NamedFetchService>> {
|
|
14
|
+
protected services: Partial<NamedAuraNetworkService> & Partial<NamedFetchService> & ExtraServices;
|
|
15
|
+
constructor(services: Partial<NamedAuraNetworkService> & Partial<NamedFetchService> & ExtraServices);
|
|
16
|
+
protected abstract readonly endpoint: string;
|
|
17
|
+
protected abstract readonly auraParams: Record<string, unknown>;
|
|
18
|
+
protected actionConfig: {
|
|
19
|
+
background: boolean;
|
|
20
|
+
hotspot: boolean;
|
|
21
|
+
longRunning: boolean;
|
|
22
|
+
storable: boolean;
|
|
23
|
+
};
|
|
24
|
+
protected readonly networkPreference: NetworkPreference;
|
|
25
|
+
protected get fetchParams(): Parameters<FetchService>;
|
|
26
|
+
protected coerceAuraErrors(auraErrors: any[]): Error;
|
|
27
|
+
protected coerceFetchErrors(errorResponse: Response): Promise<Error>;
|
|
28
|
+
protected convertAuraResponseToData<Data = unknown>(responsePromise: Promise<AuraRawResponseBody<any>>, coerceError: (errors: any[]) => Error): Promise<Result<Data, Error>>;
|
|
29
|
+
private convertFetchResponseToData;
|
|
30
|
+
private shouldUseAuraNetwork;
|
|
31
|
+
private shouldUseFetch;
|
|
32
|
+
fetch(): PromiseLike<Result<Data, Error>>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ServiceDescriptor } from '@conduit-client/utils';
|
|
2
|
+
import { AuraNetworkCommand } from './aura-network-command';
|
|
3
|
+
import type { NamedService } from '@conduit-client/utils';
|
|
4
|
+
export { AuraNetworkCommand } from './aura-network-command';
|
|
5
|
+
export type AuraNetworkCommandServiceDescriptor = ServiceDescriptor<typeof AuraNetworkCommand, 'auraNetworkCommandBaseClass', '1.0'>;
|
|
6
|
+
export declare function buildServiceDescriptor(): AuraNetworkCommandServiceDescriptor;
|
|
7
|
+
export type NamedAuraNetworkCommandService = NamedService<'auraNetworkCommandBaseClass', typeof AuraNetworkCommand>;
|
package/dist/v1/index.js
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2022, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
import { NetworkCommand } from "@conduit-client/command-network/v1";
|
|
7
|
+
import { toError, ok, err, resolvedPromiseLike } from "@conduit-client/utils";
|
|
8
|
+
class AuraNetworkCommand extends NetworkCommand {
|
|
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
|
+
coerceAuraErrors(auraErrors) {
|
|
26
|
+
return toError(auraErrors[0]);
|
|
27
|
+
}
|
|
28
|
+
async coerceFetchErrors(errorResponse) {
|
|
29
|
+
return toError(errorResponse.statusText);
|
|
30
|
+
}
|
|
31
|
+
convertAuraResponseToData(responsePromise, coerceError) {
|
|
32
|
+
return responsePromise.then((response) => {
|
|
33
|
+
const auraReturnValue = response.getReturnValue();
|
|
34
|
+
try {
|
|
35
|
+
this.afterRequestHooks({ statusCode: 200 });
|
|
36
|
+
} catch (e) {
|
|
37
|
+
}
|
|
38
|
+
return ok(auraReturnValue);
|
|
39
|
+
}).catch((error) => {
|
|
40
|
+
if (!error || !error.getError) {
|
|
41
|
+
return err(toError("Failed to get error from response"));
|
|
42
|
+
} else {
|
|
43
|
+
const actionErrors = error.getError();
|
|
44
|
+
if (actionErrors.length > 0) {
|
|
45
|
+
return err(coerceError(actionErrors));
|
|
46
|
+
} else {
|
|
47
|
+
return err(toError("Error fetching component"));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
convertFetchResponseToData(response) {
|
|
53
|
+
return response.then(
|
|
54
|
+
(response2) => {
|
|
55
|
+
if (response2.ok) {
|
|
56
|
+
return response2.json().then(
|
|
57
|
+
(json) => ok(json),
|
|
58
|
+
(reason) => err(toError(reason))
|
|
59
|
+
).finally(() => {
|
|
60
|
+
try {
|
|
61
|
+
this.afterRequestHooks({ statusCode: response2.status });
|
|
62
|
+
} catch (e) {
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
} else {
|
|
66
|
+
return this.coerceFetchErrors(response2).then((coercedError) => {
|
|
67
|
+
return err(coercedError);
|
|
68
|
+
}).finally(() => {
|
|
69
|
+
try {
|
|
70
|
+
this.afterRequestHooks({ statusCode: response2.status });
|
|
71
|
+
} catch (e) {
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
(reason) => err(toError(reason))
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
shouldUseAuraNetwork() {
|
|
80
|
+
return this.services.auraNetwork !== void 0 && (this.networkPreference === "aura" || !this.services.fetch);
|
|
81
|
+
}
|
|
82
|
+
shouldUseFetch() {
|
|
83
|
+
return this.services.fetch !== void 0 && (this.networkPreference === "http" || !this.services.auraNetwork);
|
|
84
|
+
}
|
|
85
|
+
fetch() {
|
|
86
|
+
if (this.shouldUseAuraNetwork()) {
|
|
87
|
+
return this.convertAuraResponseToData(
|
|
88
|
+
this.services.auraNetwork(this.endpoint, this.auraParams, this.actionConfig),
|
|
89
|
+
this.coerceAuraErrors
|
|
90
|
+
);
|
|
91
|
+
} else if (this.shouldUseFetch()) {
|
|
92
|
+
return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
|
|
93
|
+
}
|
|
94
|
+
return resolvedPromiseLike(err(toError("Aura/Fetch network services not found")));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function buildServiceDescriptor() {
|
|
98
|
+
return {
|
|
99
|
+
type: "auraNetworkCommandBaseClass",
|
|
100
|
+
version: "1.0",
|
|
101
|
+
service: AuraNetworkCommand
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
export {
|
|
105
|
+
AuraNetworkCommand,
|
|
106
|
+
buildServiceDescriptor
|
|
107
|
+
};
|
|
108
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/v1/aura-network-command.ts","../../src/v1/index.ts"],"sourcesContent":["import { NetworkCommand } from '@conduit-client/command-network/v1';\nimport { err, ok, toError, type Result, resolvedPromiseLike } from '@conduit-client/utils';\nimport type { NamedAuraNetworkService } from '@conduit-client/service-aura-network/v1';\nimport type { FetchService, NamedFetchService } 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 NetworkCommand that uses Aura as the transport mechanism.\n * Transforms parameters into an Aura Parameters object and returns the result as an unwrapped object.\n */\nexport abstract class AuraNetworkCommand<\n Data,\n ExtraServices extends object = object,\n> extends NetworkCommand<\n Data,\n ExtraServices & Partial<NamedAuraNetworkService> & Partial<NamedFetchService>\n> {\n constructor(\n protected services: Partial<NamedAuraNetworkService> &\n Partial<NamedFetchService> &\n ExtraServices\n ) {\n super(services);\n }\n\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 protected coerceAuraErrors(auraErrors: any[]): Error {\n return toError(auraErrors[0]); // Default Implmentation stringifies the response\n }\n\n protected async coerceFetchErrors(errorResponse: Response): Promise<Error> {\n return toError(errorResponse.statusText); // Default Behavior\n }\n\n protected convertAuraResponseToData<Data = unknown>(\n responsePromise: Promise<AuraRawResponseBody<any>>,\n coerceError: (errors: any[]) => Error\n ): Promise<Result<Data, Error>> {\n return responsePromise\n .then((response) => {\n const auraReturnValue = response.getReturnValue();\n try {\n this.afterRequestHooks({ statusCode: 200 }); // Treat all aura success as 200\n } catch (e) {}\n return ok(auraReturnValue);\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 private convertFetchResponseToData<Data = unknown>(\n response: PromiseLike<Response>\n ): PromiseLike<Result<Data, Error>> {\n return response.then(\n (response) => {\n if (response.ok) {\n return response\n .json()\n .then(\n (json: Data) => ok(json),\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.coerceFetchErrors(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 private shouldUseAuraNetwork(): boolean {\n return (\n this.services.auraNetwork !== undefined &&\n (this.networkPreference === 'aura' || !this.services.fetch)\n );\n }\n\n private shouldUseFetch(): boolean {\n return (\n this.services.fetch !== undefined &&\n (this.networkPreference === 'http' || !this.services.auraNetwork)\n );\n }\n\n fetch(): PromiseLike<Result<Data, Error>> {\n if (this.shouldUseAuraNetwork()) {\n return this.convertAuraResponseToData(\n this.services.auraNetwork!(this.endpoint, this.auraParams, this.actionConfig),\n this.coerceAuraErrors\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","import { type ServiceDescriptor } from '@conduit-client/utils';\nimport { AuraNetworkCommand } from './aura-network-command';\nimport type { NamedService } from '@conduit-client/utils';\n\nexport { AuraNetworkCommand } from './aura-network-command';\n\nexport type AuraNetworkCommandServiceDescriptor = ServiceDescriptor<\n typeof AuraNetworkCommand,\n 'auraNetworkCommandBaseClass',\n '1.0'\n>;\n\nexport function buildServiceDescriptor(): AuraNetworkCommandServiceDescriptor {\n return {\n type: 'auraNetworkCommandBaseClass',\n version: '1.0',\n service: AuraNetworkCommand,\n };\n}\n\nexport type NamedAuraNetworkCommandService = NamedService<\n 'auraNetworkCommandBaseClass',\n typeof AuraNetworkCommand\n>;\n"],"names":["response"],"mappings":"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"}
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@conduit-client/command-aura-network",
|
|
3
|
+
"version": "5.67.0-dev1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Luvio Aura Network 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-network"
|
|
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-network": "5.67.0-dev1",
|
|
36
|
+
"@conduit-client/service-aura-network": "5.67.0-dev1",
|
|
37
|
+
"@conduit-client/utils": "5.67.0-dev1"
|
|
38
|
+
},
|
|
39
|
+
"volta": {
|
|
40
|
+
"extends": "../../../../package.json"
|
|
41
|
+
},
|
|
42
|
+
"size-limit": [
|
|
43
|
+
{
|
|
44
|
+
"path": "./dist/v1/index.js",
|
|
45
|
+
"limit": "2 kB"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|