@salesforce/lds-network-aura 1.419.0 → 1.421.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.
package/dist/ldsNetwork.js
CHANGED
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
import { HttpStatusCode, isFormData } from 'force/luvioEngine';
|
|
16
16
|
import { executeGlobalControllerRawResponse } from 'aura';
|
|
17
17
|
import { registerCacheStats } from 'instrumentation/service';
|
|
18
|
-
import { createStorage } from 'force/ldsStorage';
|
|
19
18
|
import { getEnvironmentSetting, EnvironmentSettings } from 'force/ldsEnvironmentSettings';
|
|
20
19
|
|
|
21
20
|
const { create, entries: entries$1, keys: keys$1 } = Object;
|
|
@@ -1508,8 +1507,8 @@ const insurance = [
|
|
|
1508
1507
|
generateAdapter('post', INSURANCE_BASE_URI, INSURANCE_RATING, 'InsuranceFoundationFamilyController.insuranceProductRatingPost', 'ProductRatingPostInput'),
|
|
1509
1508
|
generateAdapter('patch', INSURANCE_BASE_URI, INSURANCE_RATING, 'InsuranceFoundationFamilyController.insuranceProductRatingPatch', 'productRatingPatchInput'),
|
|
1510
1509
|
generateAdapter('post', INSURANCE_BASE_URI, INSURANCE_ENDORSE_POLICY, 'InsurancePolicyAdminFamilyController.EndorsePolicy', 'EndorsePolicyInput'),
|
|
1511
|
-
generateAdapter('get', INSURANCE_BASE_URI, INSURANCE_GET_POLICY, '
|
|
1512
|
-
generateAdapter('get', INSURANCE_BASE_URI, INSURANCE_GET_POLICY_LINEITEM, '
|
|
1510
|
+
generateAdapter('get', INSURANCE_BASE_URI, INSURANCE_GET_POLICY, 'InsurancePolicyCommonFamilyController.GetPolicy'),
|
|
1511
|
+
generateAdapter('get', INSURANCE_BASE_URI, INSURANCE_GET_POLICY_LINEITEM, 'InsurancePolicyCommonFamilyController.GetPolicyLineItem'),
|
|
1513
1512
|
generateAdapter('post', INSURANCE_BASE_URI, INSURANCE_VERIFY_POLICY_COVERAGE, 'InsuranceClaimFamilyController.postVerifyPolicyCoverage', 'verifyPolicyCoverageInput'),
|
|
1514
1513
|
generateAdapter('post', INSURANCE_BASE_URI, INSURANCE_ISSUE, 'InsurancePolicyAdminFamilyController.IssuePolicy', 'IssuePolicyInput'),
|
|
1515
1514
|
generateAdapter('patch', INSURANCE_BASE_URI, INSURANCE_COST_CALCULATION_POLICY, 'InsuranceBrokerageFamilyController.CostCalculationByPolicyId', 'CostCalculationInput'),
|
|
@@ -1743,7 +1742,7 @@ const GIS_GET_EXTERNAL_ACCESS_TOKEN = new RegExp(`${GIE_API_BASE_URI}/auth/GisEx
|
|
|
1743
1742
|
const GIS_GET_EXTERNAL_MAP_OBJECT_CONFIG = new RegExp(`${GIE_API_BASE_URI}/config/GisExtlMapObjectConfig`, 'i');
|
|
1744
1743
|
const GIS_GET_RELATED_OBJECT_CONFIG = new RegExp(`${GIE_API_BASE_URI}/config/GisRelatedObjectConfig`, 'i');
|
|
1745
1744
|
const GIS_GET_OBJECT_TO_LAYER_CONFIG = new RegExp(`${GIE_API_BASE_URI}/config/GISObjectToLayer`, 'i');
|
|
1746
|
-
const
|
|
1745
|
+
const GIS_GET_MAP_ACTIONS_CONFIG = new RegExp(`${GIE_API_BASE_URI}/config/GisMapActions`, 'i');
|
|
1747
1746
|
const POST_CONTENT_LINK_DATA_SYNC_PATH = new RegExp(`${CONTENT_LINK_DATA_SYNC_BASE_URI}`, 'i');
|
|
1748
1747
|
const CDP_DATA_CLEAN_ROOM_GET_TEMPLATES_FOR_PROVIDER = new RegExp(`${CDP_DATA_CLEAN_ROOM_BASE_URI}/providers/([^/]+)/templates`, 'i');
|
|
1749
1748
|
const unifiedAnalytics = [
|
|
@@ -3839,7 +3838,7 @@ const gisService = [
|
|
|
3839
3838
|
generateAdapter('get', GIE_API_BASE_URI, GIS_GET_EXTERNAL_MAP_OBJECT_CONFIG, 'GisSetupController.getGisExtlMapObjectConfig'),
|
|
3840
3839
|
generateAdapter('get', GIE_API_BASE_URI, GIS_GET_RELATED_OBJECT_CONFIG, 'GisSetupController.getGisRelatedObjectConfig'),
|
|
3841
3840
|
generateAdapter('get', GIE_API_BASE_URI, GIS_GET_OBJECT_TO_LAYER_CONFIG, 'GisSetupController.getGISObjectToLayer'),
|
|
3842
|
-
generateAdapter('get', GIE_API_BASE_URI,
|
|
3841
|
+
generateAdapter('get', GIE_API_BASE_URI, GIS_GET_MAP_ACTIONS_CONFIG, 'GisSetupController.getGisMapActions'),
|
|
3843
3842
|
];
|
|
3844
3843
|
const dataSync = [
|
|
3845
3844
|
// eslint-disable-next-line @salesforce/lds/oas-body-name-required
|
|
@@ -4016,6 +4015,32 @@ registerApiFamilyRoutes(flowMetadata);
|
|
|
4016
4015
|
registerApiFamilyRoutes(dataSync);
|
|
4017
4016
|
registerApiFamilyRoutes(customLabel);
|
|
4018
4017
|
|
|
4018
|
+
/**
|
|
4019
|
+
* Copyright (c) 2022, Salesforce, Inc.,
|
|
4020
|
+
* All rights reserved.
|
|
4021
|
+
* For full license text, see the LICENSE.txt file
|
|
4022
|
+
*/
|
|
4023
|
+
|
|
4024
|
+
/*
|
|
4025
|
+
* ATTENTION!
|
|
4026
|
+
* THIS IS A GENERATED FILE FROM https://github.com/salesforce-experience-platform-emu/lds-lightning-platform
|
|
4027
|
+
* If you would like to contribute to LDS, please follow the steps outlined in the git repo.
|
|
4028
|
+
* Any changes made to this file in p4 will be automatically overwritten.
|
|
4029
|
+
* *******************************************************************************************
|
|
4030
|
+
*/
|
|
4031
|
+
/* proxy-compat-disable */
|
|
4032
|
+
function createStorage(config) {
|
|
4033
|
+
return getDurableStorageImplementation().createStorage(config);
|
|
4034
|
+
}
|
|
4035
|
+
function getDurableStorageImplementation() {
|
|
4036
|
+
// Default no-op implementation to avoid crashes if not set
|
|
4037
|
+
return {
|
|
4038
|
+
createStorage: () => null,
|
|
4039
|
+
clearStorages: () => Promise.resolve([]),
|
|
4040
|
+
};
|
|
4041
|
+
}
|
|
4042
|
+
// version: 1.421.0-2828c95aef
|
|
4043
|
+
|
|
4019
4044
|
const UI_API_BASE_URI$1 = `${BASE_URI}/ui-api`;
|
|
4020
4045
|
const ACTION_CONFIG = {
|
|
4021
4046
|
background: false,
|
|
@@ -5862,4 +5887,4 @@ function auraNetworkAdapter(resourceRequest, resourceRequestContext) {
|
|
|
5862
5887
|
var main = platformNetworkAdapter(auraNetworkAdapter);
|
|
5863
5888
|
|
|
5864
5889
|
export { CrudEventState, CrudEventType, UIAPI_GET_LAYOUT, UIAPI_GET_LAYOUT_USER_STATE, UIAPI_OBJECT_INFO_BATCH_PATH, UIAPI_OBJECT_INFO_PATH, UIAPI_RECORDS_PATH$1 as UIAPI_RECORDS_PATH, UIAPI_RELATED_LIST_RECORDS_BATCH_PATH, UIAPI_RELATED_LIST_RECORDS_PATH, createOkResponse$1 as createOkResponse, main as default, defaultActionConfig, dispatchAction as dispatchAuraAction, forceRecordTransactionsDisabled, getTransactionKey, instrument$1 as instrument, layoutStorage, layoutStorageStatsLogger, layoutUserStateStorage, layoutUserStateStorageStatsLogger, instrument as ldsNetworkAdapterInstrument, objectInfoStorage, objectInfoStorageStatsLogger, shouldForceRefresh };
|
|
5865
|
-
// version: 1.
|
|
5890
|
+
// version: 1.421.0-2828c95aef
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare function createStorage(config: any): Storage;
|
|
2
|
+
export declare function clearStorages(): void;
|
|
3
|
+
export declare function setDurableStorageImplementation(impl: any): any;
|
|
4
|
+
export declare function getDurableStorageImplementation(): {
|
|
5
|
+
createStorage: (config: any) => Storage;
|
|
6
|
+
clearStorages: () => void;
|
|
7
|
+
};
|
|
8
|
+
declare class Storage {
|
|
9
|
+
_entries: {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
};
|
|
12
|
+
get(key: string): Promise<any>;
|
|
13
|
+
set(key: string, value: any): Promise<void>;
|
|
14
|
+
clear(): Promise<void>;
|
|
15
|
+
getSize(): Promise<number>;
|
|
16
|
+
isPersistent(): boolean;
|
|
17
|
+
}
|
|
18
|
+
declare function initStorage({ name }: {
|
|
19
|
+
name: string;
|
|
20
|
+
}): Storage;
|
|
21
|
+
declare function getStorage(name: string): Storage;
|
|
22
|
+
declare function deleteStorage(name: string): void;
|
|
23
|
+
declare function __reset(): Promise<void>;
|
|
24
|
+
declare const _default: {
|
|
25
|
+
initStorage: typeof initStorage;
|
|
26
|
+
getStorage: typeof getStorage;
|
|
27
|
+
deleteStorage: typeof deleteStorage;
|
|
28
|
+
__reset: typeof __reset;
|
|
29
|
+
};
|
|
30
|
+
export default _default;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
/// <reference path="../../typings/aura-storage.d.ts" />
|
|
2
1
|
/// <reference path="../../typings/instrumentation.d.ts" />
|
|
3
2
|
export declare const UIAPI_GET_LAYOUT: string;
|
|
4
3
|
export declare const UIAPI_RECORDS_PATH: string;
|
|
5
4
|
export declare const UIAPI_GET_LAYOUT_USER_STATE = "/user-state";
|
|
6
5
|
export declare const UIAPI_OBJECT_INFO_PATH: string;
|
|
7
6
|
export declare const UIAPI_OBJECT_INFO_BATCH_PATH: string;
|
|
8
|
-
export declare const objectInfoStorage: import("
|
|
7
|
+
export declare const objectInfoStorage: import("@salesforce/lds-durable-storage").Storage | null;
|
|
9
8
|
export declare const objectInfoStorageStatsLogger: import("instrumentation/service").CacheStatsLogger;
|
|
10
|
-
export declare const layoutStorage: import("
|
|
9
|
+
export declare const layoutStorage: import("@salesforce/lds-durable-storage").Storage | null;
|
|
11
10
|
export declare const layoutStorageStatsLogger: import("instrumentation/service").CacheStatsLogger;
|
|
12
|
-
export declare const layoutUserStateStorage: import("
|
|
11
|
+
export declare const layoutUserStateStorage: import("@salesforce/lds-durable-storage").Storage | null;
|
|
13
12
|
export declare const layoutUserStateStorageStatsLogger: import("instrumentation/service").CacheStatsLogger;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ActionConfig } from 'aura';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Storage } from '@salesforce/lds-durable-storage';
|
|
3
3
|
import type { CacheStatsLogger } from 'instrumentation/service';
|
|
4
4
|
import type { FetchResponse, ResourceRequest, ResourceRequestContext } from '@luvio/engine';
|
|
5
5
|
import { AuraFetchResponse } from '../AuraFetchResponse';
|
|
6
6
|
import type { HttpVerb } from '../router';
|
|
7
7
|
export type ControllerInvoker = (resourceRequest: ResourceRequest, resourceRequestContext: ResourceRequestContext, resourceKey: string) => Promise<FetchResponse<any>>;
|
|
8
8
|
interface CacheConfig {
|
|
9
|
-
storage:
|
|
9
|
+
storage: Storage;
|
|
10
10
|
key: string;
|
|
11
11
|
statsLogger: CacheStatsLogger;
|
|
12
12
|
forceRefresh?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-network-aura",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.421.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS Network Adapter for Aura Runtime",
|
|
6
6
|
"main": "dist/ldsNetwork.js",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-network-aura"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@luvio/engine": "0.160.
|
|
37
|
+
"@luvio/engine": "0.160.3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
41
|
-
"@salesforce/lds-aura-storage": "^1.
|
|
42
|
-
"@salesforce/lds-environment-settings": "^1.
|
|
43
|
-
"@salesforce/lds-instrumentation": "^1.
|
|
44
|
-
"@salesforce/lds-network-adapter": "^1.
|
|
40
|
+
"@salesforce/lds-adapters-uiapi": "^1.421.0",
|
|
41
|
+
"@salesforce/lds-aura-storage": "^1.421.0",
|
|
42
|
+
"@salesforce/lds-environment-settings": "^1.421.0",
|
|
43
|
+
"@salesforce/lds-instrumentation": "^1.421.0",
|
|
44
|
+
"@salesforce/lds-network-adapter": "^1.421.0"
|
|
45
45
|
},
|
|
46
46
|
"volta": {
|
|
47
47
|
"extends": "../../package.json"
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
declare class Storage {
|
|
2
|
-
_entries: {
|
|
3
|
-
[key: string]: any;
|
|
4
|
-
};
|
|
5
|
-
get(key: string): Promise<any>;
|
|
6
|
-
set(key: string, value: any): Promise<void>;
|
|
7
|
-
clear(): Promise<void>;
|
|
8
|
-
getSize(): Promise<number>;
|
|
9
|
-
isPersistent(): boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: {
|
|
12
|
-
initStorage({ name }: {
|
|
13
|
-
name: string;
|
|
14
|
-
}): Storage;
|
|
15
|
-
getStorage(name: string): Storage;
|
|
16
|
-
deleteStorage(name: string): void;
|
|
17
|
-
__reset(): Promise<void>;
|
|
18
|
-
};
|
|
19
|
-
export default _default;
|