@salesforce/lds-adapters-platform-interaction-orchestrator 1.214.2 → 1.216.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.
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1,
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1, typeCheckConfig as typeCheckConfig$1, StoreKeyMap, createResourceParams as createResourceParams$1 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -48,10 +48,13 @@ const snapshotRefreshOptions = {
|
|
|
48
48
|
},
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
51
|
+
function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
|
|
52
52
|
return {
|
|
53
53
|
name,
|
|
54
54
|
required,
|
|
55
|
+
resourceType,
|
|
56
|
+
typeCheckShape,
|
|
57
|
+
isArrayShape,
|
|
55
58
|
coerceFn,
|
|
56
59
|
};
|
|
57
60
|
}
|
|
@@ -976,28 +979,18 @@ const oneOfConfigPropertiesIdentifier = [
|
|
|
976
979
|
'relatedRecordId'
|
|
977
980
|
];
|
|
978
981
|
const getOrchestrationInstanceCollection_ConfigPropertyMetadata = [
|
|
979
|
-
generateParamConfigMetadata('contextRecordId', false),
|
|
980
|
-
generateParamConfigMetadata('relatedRecordId', false),
|
|
982
|
+
generateParamConfigMetadata('contextRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
983
|
+
generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
981
984
|
];
|
|
982
985
|
const getOrchestrationInstanceCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getOrchestrationInstanceCollection_ConfigPropertyMetadata);
|
|
983
|
-
|
|
984
|
-
const resourceParams = {
|
|
985
|
-
queryParams: {
|
|
986
|
-
contextRecordId: config.contextRecordId, relatedRecordId: config.relatedRecordId
|
|
987
|
-
}
|
|
988
|
-
};
|
|
989
|
-
return resourceParams;
|
|
990
|
-
}
|
|
986
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$1(getOrchestrationInstanceCollection_ConfigPropertyMetadata);
|
|
991
987
|
function keyBuilder(luvio, config) {
|
|
992
988
|
const resourceParams = createResourceParams(config);
|
|
993
989
|
return keyBuilder$1(luvio, resourceParams);
|
|
994
990
|
}
|
|
995
991
|
function typeCheckConfig(untrustedConfig) {
|
|
996
992
|
const config = {};
|
|
997
|
-
|
|
998
|
-
contextRecordId: 0 /* String */,
|
|
999
|
-
relatedRecordId: 0 /* String */,
|
|
1000
|
-
});
|
|
993
|
+
typeCheckConfig$1(untrustedConfig, config, getOrchestrationInstanceCollection_ConfigPropertyMetadata);
|
|
1001
994
|
return config;
|
|
1002
995
|
}
|
|
1003
996
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -57,6 +57,6 @@ export declare const snapshotRefreshOptions: {
|
|
|
57
57
|
export declare function stableJSONStringify(node: any): string | undefined;
|
|
58
58
|
export declare function getFetchResponseStatusText(status: number): string;
|
|
59
59
|
export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
|
|
60
|
-
export declare function generateParamConfigMetadata(name: string, required: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
60
|
+
export declare function generateParamConfigMetadata(name: string, required: boolean, resourceType: $64$luvio_engine_AdapterConfigMetadata['resourceType'], typeCheckShape: $64$luvio_engine_AdapterConfigMetadata['typeCheckShape'], isArrayShape?: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
61
61
|
export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
|
|
62
62
|
export declare const keyPrefix = "InteractionOrchestrator";
|
|
@@ -9,7 +9,7 @@ export interface GetOrchestrationInstanceCollectionConfig {
|
|
|
9
9
|
contextRecordId?: string;
|
|
10
10
|
relatedRecordId?: string;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: GetOrchestrationInstanceCollectionConfig) => resources_getConnectInteractionOrchestrationInstances_ResourceRequestConfig;
|
|
13
13
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetOrchestrationInstanceCollectionConfig): string;
|
|
14
14
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetOrchestrationInstanceCollectionConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
15
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetOrchestrationInstanceCollectionConfig>): adapter$45$utils_Untrusted<GetOrchestrationInstanceCollectionConfig>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-interaction-orchestrator",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.216.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Interaction Orchestrator APIs",
|
|
6
6
|
"main": "dist/es/es2018/platform-interaction-orchestrator.js",
|
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1,
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1, typeCheckConfig as typeCheckConfig$1, StoreKeyMap, createResourceParams as createResourceParams$1 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -58,10 +58,13 @@ const snapshotRefreshOptions = {
|
|
|
58
58
|
},
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
-
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
61
|
+
function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
|
|
62
62
|
return {
|
|
63
63
|
name,
|
|
64
64
|
required,
|
|
65
|
+
resourceType,
|
|
66
|
+
typeCheckShape,
|
|
67
|
+
isArrayShape,
|
|
65
68
|
coerceFn,
|
|
66
69
|
};
|
|
67
70
|
}
|
|
@@ -986,28 +989,18 @@ const oneOfConfigPropertiesIdentifier = [
|
|
|
986
989
|
'relatedRecordId'
|
|
987
990
|
];
|
|
988
991
|
const getOrchestrationInstanceCollection_ConfigPropertyMetadata = [
|
|
989
|
-
generateParamConfigMetadata('contextRecordId', false),
|
|
990
|
-
generateParamConfigMetadata('relatedRecordId', false),
|
|
992
|
+
generateParamConfigMetadata('contextRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
993
|
+
generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
991
994
|
];
|
|
992
995
|
const getOrchestrationInstanceCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getOrchestrationInstanceCollection_ConfigPropertyMetadata);
|
|
993
|
-
|
|
994
|
-
const resourceParams = {
|
|
995
|
-
queryParams: {
|
|
996
|
-
contextRecordId: config.contextRecordId, relatedRecordId: config.relatedRecordId
|
|
997
|
-
}
|
|
998
|
-
};
|
|
999
|
-
return resourceParams;
|
|
1000
|
-
}
|
|
996
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$1(getOrchestrationInstanceCollection_ConfigPropertyMetadata);
|
|
1001
997
|
function keyBuilder(luvio, config) {
|
|
1002
998
|
const resourceParams = createResourceParams(config);
|
|
1003
999
|
return keyBuilder$1(luvio, resourceParams);
|
|
1004
1000
|
}
|
|
1005
1001
|
function typeCheckConfig(untrustedConfig) {
|
|
1006
1002
|
const config = {};
|
|
1007
|
-
|
|
1008
|
-
contextRecordId: 0 /* String */,
|
|
1009
|
-
relatedRecordId: 0 /* String */,
|
|
1010
|
-
});
|
|
1003
|
+
typeCheckConfig$1(untrustedConfig, config, getOrchestrationInstanceCollection_ConfigPropertyMetadata);
|
|
1011
1004
|
return config;
|
|
1012
1005
|
}
|
|
1013
1006
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -1106,4 +1099,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1106
1099
|
});
|
|
1107
1100
|
|
|
1108
1101
|
export { getOrchestrationInstanceCollection, getOrchestrationInstanceCollection_imperative };
|
|
1109
|
-
// version: 1.
|
|
1102
|
+
// version: 1.216.0-1d57d45fe
|