@salesforce/lds-adapters-industries-loyalty-engine 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.
- package/dist/es/es2018/industries-loyalty-engine.js +28 -84
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/createProgramProcessRule.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/executeRealtimeLoyaltyEngine.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getJournalExplainabilityInfo.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getProgramProcessRule.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/updateProgramProcessRule.d.ts +1 -1
- package/package.json +1 -1
- package/sfdc/index.js +29 -85
|
@@ -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$2,
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2, typeCheckConfig as typeCheckConfig$5, StoreKeyMap, createResourceParams as createResourceParams$5 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = 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
|
}
|
|
@@ -1488,26 +1491,17 @@ function createResourceRequest$4(config) {
|
|
|
1488
1491
|
|
|
1489
1492
|
const adapterName$4 = 'getJournalExplainabilityInfo';
|
|
1490
1493
|
const getJournalExplainabilityInfo_ConfigPropertyMetadata = [
|
|
1491
|
-
generateParamConfigMetadata('journalId', true),
|
|
1494
|
+
generateParamConfigMetadata('journalId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1492
1495
|
];
|
|
1493
1496
|
const getJournalExplainabilityInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getJournalExplainabilityInfo_ConfigPropertyMetadata);
|
|
1494
|
-
|
|
1495
|
-
const resourceParams = {
|
|
1496
|
-
urlParams: {
|
|
1497
|
-
journalId: config.journalId
|
|
1498
|
-
}
|
|
1499
|
-
};
|
|
1500
|
-
return resourceParams;
|
|
1501
|
-
}
|
|
1497
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$5(getJournalExplainabilityInfo_ConfigPropertyMetadata);
|
|
1502
1498
|
function keyBuilder$4(luvio, config) {
|
|
1503
1499
|
const resourceParams = createResourceParams$4(config);
|
|
1504
1500
|
return keyBuilder$5(luvio, resourceParams);
|
|
1505
1501
|
}
|
|
1506
1502
|
function typeCheckConfig$4(untrustedConfig) {
|
|
1507
1503
|
const config = {};
|
|
1508
|
-
|
|
1509
|
-
journalId: 0 /* String */,
|
|
1510
|
-
});
|
|
1504
|
+
typeCheckConfig$5(untrustedConfig, config, getJournalExplainabilityInfo_ConfigPropertyMetadata);
|
|
1511
1505
|
return config;
|
|
1512
1506
|
}
|
|
1513
1507
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -2074,28 +2068,15 @@ function createResourceRequest$3(config) {
|
|
|
2074
2068
|
|
|
2075
2069
|
const adapterName$3 = 'createProgramProcessRule';
|
|
2076
2070
|
const createProgramProcessRule_ConfigPropertyMetadata = [
|
|
2077
|
-
generateParamConfigMetadata('processName', true),
|
|
2078
|
-
generateParamConfigMetadata('programName', true),
|
|
2079
|
-
generateParamConfigMetadata('programProcessRule', true),
|
|
2071
|
+
generateParamConfigMetadata('processName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2072
|
+
generateParamConfigMetadata('programName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2073
|
+
generateParamConfigMetadata('programProcessRule', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2080
2074
|
];
|
|
2081
2075
|
const createProgramProcessRule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createProgramProcessRule_ConfigPropertyMetadata);
|
|
2082
|
-
|
|
2083
|
-
const resourceParams = {
|
|
2084
|
-
urlParams: {
|
|
2085
|
-
processName: config.processName, programName: config.programName
|
|
2086
|
-
},
|
|
2087
|
-
body: {
|
|
2088
|
-
programProcessRule: config.programProcessRule
|
|
2089
|
-
}
|
|
2090
|
-
};
|
|
2091
|
-
return resourceParams;
|
|
2092
|
-
}
|
|
2076
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$5(createProgramProcessRule_ConfigPropertyMetadata);
|
|
2093
2077
|
function typeCheckConfig$3(untrustedConfig) {
|
|
2094
2078
|
const config = {};
|
|
2095
|
-
|
|
2096
|
-
processName: 0 /* String */,
|
|
2097
|
-
programName: 0 /* String */,
|
|
2098
|
-
});
|
|
2079
|
+
typeCheckConfig$5(untrustedConfig, config, createProgramProcessRule_ConfigPropertyMetadata);
|
|
2099
2080
|
const untrustedConfig_programProcessRule = untrustedConfig.programProcessRule;
|
|
2100
2081
|
const referenceProcessRuleInputRepresentationValidationError = validate$k(untrustedConfig_programProcessRule);
|
|
2101
2082
|
if (referenceProcessRuleInputRepresentationValidationError === null) {
|
|
@@ -2963,30 +2944,19 @@ function createResourceRequest$2(config) {
|
|
|
2963
2944
|
|
|
2964
2945
|
const adapterName$2 = 'getProgramProcessRule';
|
|
2965
2946
|
const getProgramProcessRule_ConfigPropertyMetadata = [
|
|
2966
|
-
generateParamConfigMetadata('processName', true),
|
|
2967
|
-
generateParamConfigMetadata('programName', true),
|
|
2968
|
-
generateParamConfigMetadata('ruleName', true),
|
|
2947
|
+
generateParamConfigMetadata('processName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2948
|
+
generateParamConfigMetadata('programName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2949
|
+
generateParamConfigMetadata('ruleName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2969
2950
|
];
|
|
2970
2951
|
const getProgramProcessRule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getProgramProcessRule_ConfigPropertyMetadata);
|
|
2971
|
-
|
|
2972
|
-
const resourceParams = {
|
|
2973
|
-
urlParams: {
|
|
2974
|
-
processName: config.processName, programName: config.programName, ruleName: config.ruleName
|
|
2975
|
-
}
|
|
2976
|
-
};
|
|
2977
|
-
return resourceParams;
|
|
2978
|
-
}
|
|
2952
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$5(getProgramProcessRule_ConfigPropertyMetadata);
|
|
2979
2953
|
function keyBuilder$1(luvio, config) {
|
|
2980
2954
|
const resourceParams = createResourceParams$2(config);
|
|
2981
2955
|
return keyBuilder$2(luvio, resourceParams);
|
|
2982
2956
|
}
|
|
2983
2957
|
function typeCheckConfig$2(untrustedConfig) {
|
|
2984
2958
|
const config = {};
|
|
2985
|
-
|
|
2986
|
-
processName: 0 /* String */,
|
|
2987
|
-
programName: 0 /* String */,
|
|
2988
|
-
ruleName: 0 /* String */,
|
|
2989
|
-
});
|
|
2959
|
+
typeCheckConfig$5(untrustedConfig, config, getProgramProcessRule_ConfigPropertyMetadata);
|
|
2990
2960
|
return config;
|
|
2991
2961
|
}
|
|
2992
2962
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -3099,30 +3069,16 @@ function createResourceRequest$1(config) {
|
|
|
3099
3069
|
|
|
3100
3070
|
const adapterName$1 = 'updateProgramProcessRule';
|
|
3101
3071
|
const updateProgramProcessRule_ConfigPropertyMetadata = [
|
|
3102
|
-
generateParamConfigMetadata('processName', true),
|
|
3103
|
-
generateParamConfigMetadata('programName', true),
|
|
3104
|
-
generateParamConfigMetadata('ruleName', true),
|
|
3105
|
-
generateParamConfigMetadata('programProcessRule', true),
|
|
3072
|
+
generateParamConfigMetadata('processName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3073
|
+
generateParamConfigMetadata('programName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3074
|
+
generateParamConfigMetadata('ruleName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3075
|
+
generateParamConfigMetadata('programProcessRule', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3106
3076
|
];
|
|
3107
3077
|
const updateProgramProcessRule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateProgramProcessRule_ConfigPropertyMetadata);
|
|
3108
|
-
|
|
3109
|
-
const resourceParams = {
|
|
3110
|
-
urlParams: {
|
|
3111
|
-
processName: config.processName, programName: config.programName, ruleName: config.ruleName
|
|
3112
|
-
},
|
|
3113
|
-
body: {
|
|
3114
|
-
programProcessRule: config.programProcessRule
|
|
3115
|
-
}
|
|
3116
|
-
};
|
|
3117
|
-
return resourceParams;
|
|
3118
|
-
}
|
|
3078
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$5(updateProgramProcessRule_ConfigPropertyMetadata);
|
|
3119
3079
|
function typeCheckConfig$1(untrustedConfig) {
|
|
3120
3080
|
const config = {};
|
|
3121
|
-
|
|
3122
|
-
processName: 0 /* String */,
|
|
3123
|
-
programName: 0 /* String */,
|
|
3124
|
-
ruleName: 0 /* String */,
|
|
3125
|
-
});
|
|
3081
|
+
typeCheckConfig$5(untrustedConfig, config, updateProgramProcessRule_ConfigPropertyMetadata);
|
|
3126
3082
|
const untrustedConfig_programProcessRule = untrustedConfig.programProcessRule;
|
|
3127
3083
|
const referenceProcessRuleInputRepresentationValidationError = validate$k(untrustedConfig_programProcessRule);
|
|
3128
3084
|
if (referenceProcessRuleInputRepresentationValidationError === null) {
|
|
@@ -4177,26 +4133,14 @@ function createResourceRequest(config) {
|
|
|
4177
4133
|
|
|
4178
4134
|
const adapterName = 'executeRealtimeLoyaltyEngine';
|
|
4179
4135
|
const executeRealtimeLoyaltyEngine_ConfigPropertyMetadata = [
|
|
4180
|
-
generateParamConfigMetadata('programName', true),
|
|
4181
|
-
generateParamConfigMetadata('loyaltyProcessInput', true),
|
|
4136
|
+
generateParamConfigMetadata('programName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4137
|
+
generateParamConfigMetadata('loyaltyProcessInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4182
4138
|
];
|
|
4183
4139
|
const executeRealtimeLoyaltyEngine_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, executeRealtimeLoyaltyEngine_ConfigPropertyMetadata);
|
|
4184
|
-
|
|
4185
|
-
const resourceParams = {
|
|
4186
|
-
urlParams: {
|
|
4187
|
-
programName: config.programName
|
|
4188
|
-
},
|
|
4189
|
-
body: {
|
|
4190
|
-
loyaltyProcessInput: config.loyaltyProcessInput
|
|
4191
|
-
}
|
|
4192
|
-
};
|
|
4193
|
-
return resourceParams;
|
|
4194
|
-
}
|
|
4140
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$5(executeRealtimeLoyaltyEngine_ConfigPropertyMetadata);
|
|
4195
4141
|
function typeCheckConfig(untrustedConfig) {
|
|
4196
4142
|
const config = {};
|
|
4197
|
-
|
|
4198
|
-
programName: 0 /* String */,
|
|
4199
|
-
});
|
|
4143
|
+
typeCheckConfig$5(untrustedConfig, config, executeRealtimeLoyaltyEngine_ConfigPropertyMetadata);
|
|
4200
4144
|
const untrustedConfig_loyaltyProcessInput = untrustedConfig.loyaltyProcessInput;
|
|
4201
4145
|
const referenceLoyaltyEngineInputRepresentationValidationError = validate$a(untrustedConfig_loyaltyProcessInput);
|
|
4202
4146
|
if (referenceLoyaltyEngineInputRepresentationValidationError === null) {
|
|
@@ -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 = "loyalty-engine";
|
|
@@ -11,7 +11,7 @@ export interface CreateProgramProcessRuleConfig {
|
|
|
11
11
|
programName: string;
|
|
12
12
|
programProcessRule: types_ProcessRuleInputRepresentation_ProcessRuleInputRepresentation;
|
|
13
13
|
}
|
|
14
|
-
export declare
|
|
14
|
+
export declare const createResourceParams: (config: CreateProgramProcessRuleConfig) => resources_putConnectLoyaltyProgramsProcessesByProcessNameAndProgramName_ResourceRequestConfig;
|
|
15
15
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateProgramProcessRuleConfig>): adapter$45$utils_Untrusted<CreateProgramProcessRuleConfig>;
|
|
16
16
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateProgramProcessRuleConfig | null;
|
|
17
17
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateProgramProcessRuleConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ProcessRuleStatusRepresentation_ProcessRuleStatusRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ProcessRuleStatusRepresentation_ProcessRuleStatusRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ProcessRuleStatusRepresentation_ProcessRuleStatusRepresentation, any>>;
|
|
@@ -10,7 +10,7 @@ export interface ExecuteRealtimeLoyaltyEngineConfig {
|
|
|
10
10
|
programName: string;
|
|
11
11
|
loyaltyProcessInput: types_LoyaltyEngineInputRepresentation_LoyaltyEngineInputRepresentation;
|
|
12
12
|
}
|
|
13
|
-
export declare
|
|
13
|
+
export declare const createResourceParams: (config: ExecuteRealtimeLoyaltyEngineConfig) => resources_postConnectRealtimeLoyaltyProgramsByProgramName_ResourceRequestConfig;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<ExecuteRealtimeLoyaltyEngineConfig>): adapter$45$utils_Untrusted<ExecuteRealtimeLoyaltyEngineConfig>;
|
|
15
15
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): ExecuteRealtimeLoyaltyEngineConfig | null;
|
|
16
16
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: ExecuteRealtimeLoyaltyEngineConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_LoyaltyEngineRealtimeOutputRepresentation_LoyaltyEngineRealtimeOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_LoyaltyEngineRealtimeOutputRepresentation_LoyaltyEngineRealtimeOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_LoyaltyEngineRealtimeOutputRepresentation_LoyaltyEngineRealtimeOutputRepresentation, any>>;
|
|
@@ -8,7 +8,7 @@ export declare const getJournalExplainabilityInfo_ConfigPropertyNames: adapter$4
|
|
|
8
8
|
export interface GetJournalExplainabilityInfoConfig {
|
|
9
9
|
journalId: string;
|
|
10
10
|
}
|
|
11
|
-
export declare
|
|
11
|
+
export declare const createResourceParams: (config: GetJournalExplainabilityInfoConfig) => resources_getConnectLoyaltyProgramProcessTransactionJournalsByJournalId_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetJournalExplainabilityInfoConfig): string;
|
|
13
13
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetJournalExplainabilityInfoConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetJournalExplainabilityInfoConfig>): adapter$45$utils_Untrusted<GetJournalExplainabilityInfoConfig>;
|
|
@@ -10,7 +10,7 @@ export interface GetProgramProcessRuleConfig {
|
|
|
10
10
|
programName: string;
|
|
11
11
|
ruleName: string;
|
|
12
12
|
}
|
|
13
|
-
export declare
|
|
13
|
+
export declare const createResourceParams: (config: GetProgramProcessRuleConfig) => resources_getConnectLoyaltyProgramsProcessesRuleByProcessNameAndProgramNameAndRuleName_ResourceRequestConfig;
|
|
14
14
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetProgramProcessRuleConfig): string;
|
|
15
15
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetProgramProcessRuleConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
16
16
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetProgramProcessRuleConfig>): adapter$45$utils_Untrusted<GetProgramProcessRuleConfig>;
|
|
@@ -12,7 +12,7 @@ export interface UpdateProgramProcessRuleConfig {
|
|
|
12
12
|
ruleName: string;
|
|
13
13
|
programProcessRule: types_ProcessRuleInputRepresentation_ProcessRuleInputRepresentation;
|
|
14
14
|
}
|
|
15
|
-
export declare
|
|
15
|
+
export declare const createResourceParams: (config: UpdateProgramProcessRuleConfig) => resources_patchConnectLoyaltyProgramsProcessesRuleByProcessNameAndProgramNameAndRuleName_ResourceRequestConfig;
|
|
16
16
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateProgramProcessRuleConfig>): adapter$45$utils_Untrusted<UpdateProgramProcessRuleConfig>;
|
|
17
17
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): UpdateProgramProcessRuleConfig | null;
|
|
18
18
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: UpdateProgramProcessRuleConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ProcessRuleStatusRepresentation_ProcessRuleStatusRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ProcessRuleStatusRepresentation_ProcessRuleStatusRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ProcessRuleStatusRepresentation_ProcessRuleStatusRepresentation, any>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-loyalty-engine",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.216.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "The api is responsible for upserting Loyalty Process Rules",
|
|
6
6
|
"main": "dist/es/es2018/industries-loyalty-engine.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, StoreKeyMap,
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$5, typeCheckConfig as typeCheckConfig$5, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = 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
|
}
|
|
@@ -593,28 +596,15 @@ function createResourceRequest$4(config) {
|
|
|
593
596
|
|
|
594
597
|
const adapterName$4 = 'createProgramProcessRule';
|
|
595
598
|
const createProgramProcessRule_ConfigPropertyMetadata = [
|
|
596
|
-
generateParamConfigMetadata('processName', true),
|
|
597
|
-
generateParamConfigMetadata('programName', true),
|
|
598
|
-
generateParamConfigMetadata('programProcessRule', true),
|
|
599
|
+
generateParamConfigMetadata('processName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
600
|
+
generateParamConfigMetadata('programName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
601
|
+
generateParamConfigMetadata('programProcessRule', true, 2 /* Body */, 4 /* Unsupported */),
|
|
599
602
|
];
|
|
600
603
|
const createProgramProcessRule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createProgramProcessRule_ConfigPropertyMetadata);
|
|
601
|
-
|
|
602
|
-
const resourceParams = {
|
|
603
|
-
urlParams: {
|
|
604
|
-
processName: config.processName, programName: config.programName
|
|
605
|
-
},
|
|
606
|
-
body: {
|
|
607
|
-
programProcessRule: config.programProcessRule
|
|
608
|
-
}
|
|
609
|
-
};
|
|
610
|
-
return resourceParams;
|
|
611
|
-
}
|
|
604
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$5(createProgramProcessRule_ConfigPropertyMetadata);
|
|
612
605
|
function typeCheckConfig$4(untrustedConfig) {
|
|
613
606
|
const config = {};
|
|
614
|
-
|
|
615
|
-
processName: 0 /* String */,
|
|
616
|
-
programName: 0 /* String */,
|
|
617
|
-
});
|
|
607
|
+
typeCheckConfig$5(untrustedConfig, config, createProgramProcessRule_ConfigPropertyMetadata);
|
|
618
608
|
const untrustedConfig_programProcessRule = untrustedConfig.programProcessRule;
|
|
619
609
|
const referenceProcessRuleInputRepresentationValidationError = validate$C(untrustedConfig_programProcessRule);
|
|
620
610
|
if (referenceProcessRuleInputRepresentationValidationError === null) {
|
|
@@ -2903,26 +2893,14 @@ function createResourceRequest$3(config) {
|
|
|
2903
2893
|
|
|
2904
2894
|
const adapterName$3 = 'executeRealtimeLoyaltyEngine';
|
|
2905
2895
|
const executeRealtimeLoyaltyEngine_ConfigPropertyMetadata = [
|
|
2906
|
-
generateParamConfigMetadata('programName', true),
|
|
2907
|
-
generateParamConfigMetadata('loyaltyProcessInput', true),
|
|
2896
|
+
generateParamConfigMetadata('programName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2897
|
+
generateParamConfigMetadata('loyaltyProcessInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2908
2898
|
];
|
|
2909
2899
|
const executeRealtimeLoyaltyEngine_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, executeRealtimeLoyaltyEngine_ConfigPropertyMetadata);
|
|
2910
|
-
|
|
2911
|
-
const resourceParams = {
|
|
2912
|
-
urlParams: {
|
|
2913
|
-
programName: config.programName
|
|
2914
|
-
},
|
|
2915
|
-
body: {
|
|
2916
|
-
loyaltyProcessInput: config.loyaltyProcessInput
|
|
2917
|
-
}
|
|
2918
|
-
};
|
|
2919
|
-
return resourceParams;
|
|
2920
|
-
}
|
|
2900
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$5(executeRealtimeLoyaltyEngine_ConfigPropertyMetadata);
|
|
2921
2901
|
function typeCheckConfig$3(untrustedConfig) {
|
|
2922
2902
|
const config = {};
|
|
2923
|
-
|
|
2924
|
-
programName: 0 /* String */,
|
|
2925
|
-
});
|
|
2903
|
+
typeCheckConfig$5(untrustedConfig, config, executeRealtimeLoyaltyEngine_ConfigPropertyMetadata);
|
|
2926
2904
|
const untrustedConfig_loyaltyProcessInput = untrustedConfig.loyaltyProcessInput;
|
|
2927
2905
|
const referenceLoyaltyEngineInputRepresentationValidationError = validate$y(untrustedConfig_loyaltyProcessInput);
|
|
2928
2906
|
if (referenceLoyaltyEngineInputRepresentationValidationError === null) {
|
|
@@ -3136,26 +3114,17 @@ function createResourceRequest$2(config) {
|
|
|
3136
3114
|
|
|
3137
3115
|
const adapterName$2 = 'getJournalExplainabilityInfo';
|
|
3138
3116
|
const getJournalExplainabilityInfo_ConfigPropertyMetadata = [
|
|
3139
|
-
generateParamConfigMetadata('journalId', true),
|
|
3117
|
+
generateParamConfigMetadata('journalId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3140
3118
|
];
|
|
3141
3119
|
const getJournalExplainabilityInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getJournalExplainabilityInfo_ConfigPropertyMetadata);
|
|
3142
|
-
|
|
3143
|
-
const resourceParams = {
|
|
3144
|
-
urlParams: {
|
|
3145
|
-
journalId: config.journalId
|
|
3146
|
-
}
|
|
3147
|
-
};
|
|
3148
|
-
return resourceParams;
|
|
3149
|
-
}
|
|
3120
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$5(getJournalExplainabilityInfo_ConfigPropertyMetadata);
|
|
3150
3121
|
function keyBuilder$2(luvio, config) {
|
|
3151
3122
|
const resourceParams = createResourceParams$2(config);
|
|
3152
3123
|
return keyBuilder$3(luvio, resourceParams);
|
|
3153
3124
|
}
|
|
3154
3125
|
function typeCheckConfig$2(untrustedConfig) {
|
|
3155
3126
|
const config = {};
|
|
3156
|
-
|
|
3157
|
-
journalId: 0 /* String */,
|
|
3158
|
-
});
|
|
3127
|
+
typeCheckConfig$5(untrustedConfig, config, getJournalExplainabilityInfo_ConfigPropertyMetadata);
|
|
3159
3128
|
return config;
|
|
3160
3129
|
}
|
|
3161
3130
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -4047,30 +4016,19 @@ function createResourceRequest$1(config) {
|
|
|
4047
4016
|
|
|
4048
4017
|
const adapterName$1 = 'getProgramProcessRule';
|
|
4049
4018
|
const getProgramProcessRule_ConfigPropertyMetadata = [
|
|
4050
|
-
generateParamConfigMetadata('processName', true),
|
|
4051
|
-
generateParamConfigMetadata('programName', true),
|
|
4052
|
-
generateParamConfigMetadata('ruleName', true),
|
|
4019
|
+
generateParamConfigMetadata('processName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4020
|
+
generateParamConfigMetadata('programName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4021
|
+
generateParamConfigMetadata('ruleName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4053
4022
|
];
|
|
4054
4023
|
const getProgramProcessRule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getProgramProcessRule_ConfigPropertyMetadata);
|
|
4055
|
-
|
|
4056
|
-
const resourceParams = {
|
|
4057
|
-
urlParams: {
|
|
4058
|
-
processName: config.processName, programName: config.programName, ruleName: config.ruleName
|
|
4059
|
-
}
|
|
4060
|
-
};
|
|
4061
|
-
return resourceParams;
|
|
4062
|
-
}
|
|
4024
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$5(getProgramProcessRule_ConfigPropertyMetadata);
|
|
4063
4025
|
function keyBuilder(luvio, config) {
|
|
4064
4026
|
const resourceParams = createResourceParams$1(config);
|
|
4065
4027
|
return keyBuilder$1(luvio, resourceParams);
|
|
4066
4028
|
}
|
|
4067
4029
|
function typeCheckConfig$1(untrustedConfig) {
|
|
4068
4030
|
const config = {};
|
|
4069
|
-
|
|
4070
|
-
processName: 0 /* String */,
|
|
4071
|
-
programName: 0 /* String */,
|
|
4072
|
-
ruleName: 0 /* String */,
|
|
4073
|
-
});
|
|
4031
|
+
typeCheckConfig$5(untrustedConfig, config, getProgramProcessRule_ConfigPropertyMetadata);
|
|
4074
4032
|
return config;
|
|
4075
4033
|
}
|
|
4076
4034
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -4183,30 +4141,16 @@ function createResourceRequest(config) {
|
|
|
4183
4141
|
|
|
4184
4142
|
const adapterName = 'updateProgramProcessRule';
|
|
4185
4143
|
const updateProgramProcessRule_ConfigPropertyMetadata = [
|
|
4186
|
-
generateParamConfigMetadata('processName', true),
|
|
4187
|
-
generateParamConfigMetadata('programName', true),
|
|
4188
|
-
generateParamConfigMetadata('ruleName', true),
|
|
4189
|
-
generateParamConfigMetadata('programProcessRule', true),
|
|
4144
|
+
generateParamConfigMetadata('processName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4145
|
+
generateParamConfigMetadata('programName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4146
|
+
generateParamConfigMetadata('ruleName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4147
|
+
generateParamConfigMetadata('programProcessRule', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4190
4148
|
];
|
|
4191
4149
|
const updateProgramProcessRule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateProgramProcessRule_ConfigPropertyMetadata);
|
|
4192
|
-
|
|
4193
|
-
const resourceParams = {
|
|
4194
|
-
urlParams: {
|
|
4195
|
-
processName: config.processName, programName: config.programName, ruleName: config.ruleName
|
|
4196
|
-
},
|
|
4197
|
-
body: {
|
|
4198
|
-
programProcessRule: config.programProcessRule
|
|
4199
|
-
}
|
|
4200
|
-
};
|
|
4201
|
-
return resourceParams;
|
|
4202
|
-
}
|
|
4150
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$5(updateProgramProcessRule_ConfigPropertyMetadata);
|
|
4203
4151
|
function typeCheckConfig(untrustedConfig) {
|
|
4204
4152
|
const config = {};
|
|
4205
|
-
|
|
4206
|
-
processName: 0 /* String */,
|
|
4207
|
-
programName: 0 /* String */,
|
|
4208
|
-
ruleName: 0 /* String */,
|
|
4209
|
-
});
|
|
4153
|
+
typeCheckConfig$5(untrustedConfig, config, updateProgramProcessRule_ConfigPropertyMetadata);
|
|
4210
4154
|
const untrustedConfig_programProcessRule = untrustedConfig.programProcessRule;
|
|
4211
4155
|
const referenceProcessRuleInputRepresentationValidationError = validate$C(untrustedConfig_programProcessRule);
|
|
4212
4156
|
if (referenceProcessRuleInputRepresentationValidationError === null) {
|
|
@@ -4298,4 +4242,4 @@ withDefaultLuvio((luvio) => {
|
|
|
4298
4242
|
});
|
|
4299
4243
|
|
|
4300
4244
|
export { createProgramProcessRule, executeRealtimeLoyaltyEngine, getJournalExplainabilityInfo, getJournalExplainabilityInfo_imperative, getProgramProcessRule, getProgramProcessRule_imperative, updateProgramProcessRule };
|
|
4301
|
-
// version: 1.
|
|
4245
|
+
// version: 1.216.0-1d57d45fe
|