@salesforce/lds-adapters-industries-decisiontable 1.283.0 → 1.285.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-decisiontable.js +14 -14
- package/dist/es/es2018/types/src/generated/adapters/getDecisionTableTemplate.d.ts +11 -11
- package/dist/es/es2018/types/src/generated/adapters/getDecisionTableTemplateList.d.ts +11 -11
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -1
- package/package.json +3 -3
- package/sfdc/index.js +82 -82
- package/src/raml/luvio.raml +2 -2
|
@@ -846,19 +846,19 @@ function createResourceRequest$1(config) {
|
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
848
|
|
|
849
|
-
const adapterName$1 = '
|
|
850
|
-
const
|
|
849
|
+
const adapterName$1 = 'getDecisionTableTemplateList';
|
|
850
|
+
const getDecisionTableTemplateList_ConfigPropertyMetadata = [
|
|
851
851
|
generateParamConfigMetadata('usageType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
852
852
|
];
|
|
853
|
-
const
|
|
854
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(
|
|
853
|
+
const getDecisionTableTemplateList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getDecisionTableTemplateList_ConfigPropertyMetadata);
|
|
854
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(getDecisionTableTemplateList_ConfigPropertyMetadata);
|
|
855
855
|
function keyBuilder$2(luvio, config) {
|
|
856
856
|
const resourceParams = createResourceParams$1(config);
|
|
857
857
|
return keyBuilder$3(luvio, resourceParams);
|
|
858
858
|
}
|
|
859
859
|
function typeCheckConfig$1(untrustedConfig) {
|
|
860
860
|
const config = {};
|
|
861
|
-
typeCheckConfig$3(untrustedConfig, config,
|
|
861
|
+
typeCheckConfig$3(untrustedConfig, config, getDecisionTableTemplateList_ConfigPropertyMetadata);
|
|
862
862
|
return config;
|
|
863
863
|
}
|
|
864
864
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -922,8 +922,8 @@ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
|
922
922
|
});
|
|
923
923
|
return cacheSnapshot;
|
|
924
924
|
}
|
|
925
|
-
const
|
|
926
|
-
const config = validateAdapterConfig$1(untrustedConfig,
|
|
925
|
+
const getDecisionTableTemplateListAdapterFactory = (luvio) => function DecisionTable__getDecisionTableTemplateList(untrustedConfig, requestContext) {
|
|
926
|
+
const config = validateAdapterConfig$1(untrustedConfig, getDecisionTableTemplateList_ConfigPropertyNames);
|
|
927
927
|
// Invalid or incomplete config
|
|
928
928
|
if (config === null) {
|
|
929
929
|
return null;
|
|
@@ -1061,19 +1061,19 @@ function createResourceRequest(config) {
|
|
|
1061
1061
|
};
|
|
1062
1062
|
}
|
|
1063
1063
|
|
|
1064
|
-
const adapterName = '
|
|
1065
|
-
const
|
|
1064
|
+
const adapterName = 'getDecisionTableTemplate';
|
|
1065
|
+
const getDecisionTableTemplate_ConfigPropertyMetadata = [
|
|
1066
1066
|
generateParamConfigMetadata('templateName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1067
1067
|
];
|
|
1068
|
-
const
|
|
1069
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$3(
|
|
1068
|
+
const getDecisionTableTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getDecisionTableTemplate_ConfigPropertyMetadata);
|
|
1069
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$3(getDecisionTableTemplate_ConfigPropertyMetadata);
|
|
1070
1070
|
function keyBuilder(luvio, config) {
|
|
1071
1071
|
const resourceParams = createResourceParams(config);
|
|
1072
1072
|
return keyBuilder$1(luvio, resourceParams);
|
|
1073
1073
|
}
|
|
1074
1074
|
function typeCheckConfig(untrustedConfig) {
|
|
1075
1075
|
const config = {};
|
|
1076
|
-
typeCheckConfig$3(untrustedConfig, config,
|
|
1076
|
+
typeCheckConfig$3(untrustedConfig, config, getDecisionTableTemplate_ConfigPropertyMetadata);
|
|
1077
1077
|
return config;
|
|
1078
1078
|
}
|
|
1079
1079
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -1137,8 +1137,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
1137
1137
|
});
|
|
1138
1138
|
return cacheSnapshot;
|
|
1139
1139
|
}
|
|
1140
|
-
const
|
|
1141
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
1140
|
+
const getDecisionTableTemplateAdapterFactory = (luvio) => function DecisionTable__getDecisionTableTemplate(untrustedConfig, requestContext) {
|
|
1141
|
+
const config = validateAdapterConfig(untrustedConfig, getDecisionTableTemplate_ConfigPropertyNames);
|
|
1142
1142
|
// Invalid or incomplete config
|
|
1143
1143
|
if (config === null) {
|
|
1144
1144
|
return null;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
2
|
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
-
import { ResourceRequestConfig as
|
|
4
|
-
import {
|
|
3
|
+
import { ResourceRequestConfig as resources_getConnectBusinessRulesDecisionTableTemplatesByTemplateName_ResourceRequestConfig } from '../resources/getConnectBusinessRulesDecisionTableTemplatesByTemplateName';
|
|
4
|
+
import { DecisionTableTemplateDefinitionOutputRepresentation as types_DecisionTableTemplateDefinitionOutputRepresentation_DecisionTableTemplateDefinitionOutputRepresentation } from '../types/DecisionTableTemplateDefinitionOutputRepresentation';
|
|
5
5
|
export declare const adapterName = "getDecisionTableTemplate";
|
|
6
6
|
export declare const getDecisionTableTemplate_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
7
|
export declare const getDecisionTableTemplate_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface GetDecisionTableTemplateConfig {
|
|
9
|
-
|
|
9
|
+
templateName: string;
|
|
10
10
|
}
|
|
11
|
-
export declare const createResourceParams: (config: GetDecisionTableTemplateConfig) =>
|
|
11
|
+
export declare const createResourceParams: (config: GetDecisionTableTemplateConfig) => resources_getConnectBusinessRulesDecisionTableTemplatesByTemplateName_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateConfig): string;
|
|
13
13
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetDecisionTableTemplateConfig>): adapter$45$utils_Untrusted<GetDecisionTableTemplateConfig>;
|
|
15
15
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetDecisionTableTemplateConfig | null;
|
|
16
16
|
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateConfig): $64$luvio_engine_Fragment;
|
|
17
|
-
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateConfig): $64$luvio_engine_Snapshot<
|
|
18
|
-
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateConfig, resourceParams:
|
|
19
|
-
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateConfig, resourceParams:
|
|
20
|
-
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<
|
|
17
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateConfig): $64$luvio_engine_Snapshot<types_DecisionTableTemplateDefinitionOutputRepresentation_DecisionTableTemplateDefinitionOutputRepresentation, any>;
|
|
18
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateConfig, resourceParams: resources_getConnectBusinessRulesDecisionTableTemplatesByTemplateName_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_DecisionTableTemplateDefinitionOutputRepresentation_DecisionTableTemplateDefinitionOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_DecisionTableTemplateDefinitionOutputRepresentation_DecisionTableTemplateDefinitionOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_DecisionTableTemplateDefinitionOutputRepresentation_DecisionTableTemplateDefinitionOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_DecisionTableTemplateDefinitionOutputRepresentation_DecisionTableTemplateDefinitionOutputRepresentation, any>>;
|
|
19
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateConfig, resourceParams: resources_getConnectBusinessRulesDecisionTableTemplatesByTemplateName_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
20
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_DecisionTableTemplateDefinitionOutputRepresentation_DecisionTableTemplateDefinitionOutputRepresentation, any>>;
|
|
21
21
|
export type BuildSnapshotContext = {
|
|
22
22
|
luvio: $64$luvio_engine_Luvio;
|
|
23
23
|
config: GetDecisionTableTemplateConfig;
|
|
24
24
|
};
|
|
25
|
-
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<
|
|
26
|
-
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<
|
|
27
|
-
export declare const getDecisionTableTemplateAdapterFactory: $64$luvio_engine_AdapterFactory<GetDecisionTableTemplateConfig,
|
|
25
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_DecisionTableTemplateDefinitionOutputRepresentation_DecisionTableTemplateDefinitionOutputRepresentation, any>>;
|
|
26
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_DecisionTableTemplateDefinitionOutputRepresentation_DecisionTableTemplateDefinitionOutputRepresentation>): $64$luvio_engine_Snapshot<types_DecisionTableTemplateDefinitionOutputRepresentation_DecisionTableTemplateDefinitionOutputRepresentation, any>;
|
|
27
|
+
export declare const getDecisionTableTemplateAdapterFactory: $64$luvio_engine_AdapterFactory<GetDecisionTableTemplateConfig, types_DecisionTableTemplateDefinitionOutputRepresentation_DecisionTableTemplateDefinitionOutputRepresentation>;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
2
|
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
-
import { ResourceRequestConfig as
|
|
4
|
-
import {
|
|
3
|
+
import { ResourceRequestConfig as resources_getConnectBusinessRulesDecisionTableTemplates_ResourceRequestConfig } from '../resources/getConnectBusinessRulesDecisionTableTemplates';
|
|
4
|
+
import { DecisionTableTemplatesListOutputRepresentation as types_DecisionTableTemplatesListOutputRepresentation_DecisionTableTemplatesListOutputRepresentation } from '../types/DecisionTableTemplatesListOutputRepresentation';
|
|
5
5
|
export declare const adapterName = "getDecisionTableTemplateList";
|
|
6
6
|
export declare const getDecisionTableTemplateList_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
7
|
export declare const getDecisionTableTemplateList_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface GetDecisionTableTemplateListConfig {
|
|
9
|
-
|
|
9
|
+
usageType?: string;
|
|
10
10
|
}
|
|
11
|
-
export declare const createResourceParams: (config: GetDecisionTableTemplateListConfig) =>
|
|
11
|
+
export declare const createResourceParams: (config: GetDecisionTableTemplateListConfig) => resources_getConnectBusinessRulesDecisionTableTemplates_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateListConfig): string;
|
|
13
13
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateListConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetDecisionTableTemplateListConfig>): adapter$45$utils_Untrusted<GetDecisionTableTemplateListConfig>;
|
|
15
15
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetDecisionTableTemplateListConfig | null;
|
|
16
16
|
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateListConfig): $64$luvio_engine_Fragment;
|
|
17
|
-
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateListConfig): $64$luvio_engine_Snapshot<
|
|
18
|
-
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateListConfig, resourceParams:
|
|
19
|
-
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateListConfig, resourceParams:
|
|
20
|
-
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateListConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<
|
|
17
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateListConfig): $64$luvio_engine_Snapshot<types_DecisionTableTemplatesListOutputRepresentation_DecisionTableTemplatesListOutputRepresentation, any>;
|
|
18
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateListConfig, resourceParams: resources_getConnectBusinessRulesDecisionTableTemplates_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_DecisionTableTemplatesListOutputRepresentation_DecisionTableTemplatesListOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_DecisionTableTemplatesListOutputRepresentation_DecisionTableTemplatesListOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_DecisionTableTemplatesListOutputRepresentation_DecisionTableTemplatesListOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_DecisionTableTemplatesListOutputRepresentation_DecisionTableTemplatesListOutputRepresentation, any>>;
|
|
19
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateListConfig, resourceParams: resources_getConnectBusinessRulesDecisionTableTemplates_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
20
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetDecisionTableTemplateListConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_DecisionTableTemplatesListOutputRepresentation_DecisionTableTemplatesListOutputRepresentation, any>>;
|
|
21
21
|
export type BuildSnapshotContext = {
|
|
22
22
|
luvio: $64$luvio_engine_Luvio;
|
|
23
23
|
config: GetDecisionTableTemplateListConfig;
|
|
24
24
|
};
|
|
25
|
-
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<
|
|
26
|
-
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<
|
|
27
|
-
export declare const getDecisionTableTemplateListAdapterFactory: $64$luvio_engine_AdapterFactory<GetDecisionTableTemplateListConfig,
|
|
25
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_DecisionTableTemplatesListOutputRepresentation_DecisionTableTemplatesListOutputRepresentation, any>>;
|
|
26
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_DecisionTableTemplatesListOutputRepresentation_DecisionTableTemplatesListOutputRepresentation>): $64$luvio_engine_Snapshot<types_DecisionTableTemplatesListOutputRepresentation_DecisionTableTemplatesListOutputRepresentation, any>;
|
|
27
|
+
export declare const getDecisionTableTemplateListAdapterFactory: $64$luvio_engine_AdapterFactory<GetDecisionTableTemplateListConfig, types_DecisionTableTemplatesListOutputRepresentation_DecisionTableTemplatesListOutputRepresentation>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { getDecisionTableAdapterFactory } from '../adapters/getDecisionTable';
|
|
2
|
-
export { getDecisionTableTemplateAdapterFactory } from '../adapters/getDecisionTableTemplate';
|
|
3
2
|
export { getDecisionTableTemplateListAdapterFactory } from '../adapters/getDecisionTableTemplateList';
|
|
3
|
+
export { getDecisionTableTemplateAdapterFactory } from '../adapters/getDecisionTableTemplate';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-decisiontable",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.285.0",
|
|
4
4
|
"description": "Industries BRE DecisionTable",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/industries-decisiontable.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest --config=./jest.config.js"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.285.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.285.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -580,37 +580,7 @@ const getDecisionTableAdapterFactory = (luvio) => function DecisionTable__getDec
|
|
|
580
580
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
581
581
|
};
|
|
582
582
|
|
|
583
|
-
function validate$5(obj, path = '
|
|
584
|
-
const v_error = (() => {
|
|
585
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
586
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
587
|
-
}
|
|
588
|
-
if (obj.location !== undefined) {
|
|
589
|
-
const obj_location = obj.location;
|
|
590
|
-
const path_location = path + '.location';
|
|
591
|
-
if (typeof obj_location !== 'string') {
|
|
592
|
-
return new TypeError('Expected "string" but received "' + typeof obj_location + '" (at "' + path_location + '")');
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
if (obj.templateName !== undefined) {
|
|
596
|
-
const obj_templateName = obj.templateName;
|
|
597
|
-
const path_templateName = path + '.templateName';
|
|
598
|
-
if (typeof obj_templateName !== 'string') {
|
|
599
|
-
return new TypeError('Expected "string" but received "' + typeof obj_templateName + '" (at "' + path_templateName + '")');
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
if (obj.usageType !== undefined) {
|
|
603
|
-
const obj_usageType = obj.usageType;
|
|
604
|
-
const path_usageType = path + '.usageType';
|
|
605
|
-
if (typeof obj_usageType !== 'string') {
|
|
606
|
-
return new TypeError('Expected "string" but received "' + typeof obj_usageType + '" (at "' + path_usageType + '")');
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
})();
|
|
610
|
-
return v_error === undefined ? null : v_error;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
function validate$4(obj, path = 'ErrorParametersOutputRepresentation') {
|
|
583
|
+
function validate$5(obj, path = 'ErrorParametersOutputRepresentation') {
|
|
614
584
|
const v_error = (() => {
|
|
615
585
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
616
586
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -633,7 +603,7 @@ function validate$4(obj, path = 'ErrorParametersOutputRepresentation') {
|
|
|
633
603
|
return v_error === undefined ? null : v_error;
|
|
634
604
|
}
|
|
635
605
|
|
|
636
|
-
function validate$
|
|
606
|
+
function validate$4(obj, path = 'ErrorTargetsOutputRepresentation') {
|
|
637
607
|
const v_error = (() => {
|
|
638
608
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
639
609
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -656,7 +626,7 @@ function validate$3(obj, path = 'ErrorTargetsOutputRepresentation') {
|
|
|
656
626
|
return v_error === undefined ? null : v_error;
|
|
657
627
|
}
|
|
658
628
|
|
|
659
|
-
function validate$
|
|
629
|
+
function validate$3(obj, path = 'ErrorOutputRepresentation') {
|
|
660
630
|
const v_error = (() => {
|
|
661
631
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
662
632
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -691,7 +661,7 @@ function validate$2(obj, path = 'ErrorOutputRepresentation') {
|
|
|
691
661
|
for (let i = 0; i < obj_parameters.length; i++) {
|
|
692
662
|
const obj_parameters_item = obj_parameters[i];
|
|
693
663
|
const path_parameters_item = path_parameters + '[' + i + ']';
|
|
694
|
-
const referencepath_parameters_itemValidationError = validate$
|
|
664
|
+
const referencepath_parameters_itemValidationError = validate$5(obj_parameters_item, path_parameters_item);
|
|
695
665
|
if (referencepath_parameters_itemValidationError !== null) {
|
|
696
666
|
let message = 'Object doesn\'t match ErrorParametersOutputRepresentation (at "' + path_parameters_item + '")\n';
|
|
697
667
|
message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -708,7 +678,7 @@ function validate$2(obj, path = 'ErrorOutputRepresentation') {
|
|
|
708
678
|
for (let i = 0; i < obj_targets.length; i++) {
|
|
709
679
|
const obj_targets_item = obj_targets[i];
|
|
710
680
|
const path_targets_item = path_targets + '[' + i + ']';
|
|
711
|
-
const referencepath_targets_itemValidationError = validate$
|
|
681
|
+
const referencepath_targets_itemValidationError = validate$4(obj_targets_item, path_targets_item);
|
|
712
682
|
if (referencepath_targets_itemValidationError !== null) {
|
|
713
683
|
let message = 'Object doesn\'t match ErrorTargetsOutputRepresentation (at "' + path_targets_item + '")\n';
|
|
714
684
|
message += referencepath_targets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -721,27 +691,20 @@ function validate$2(obj, path = 'ErrorOutputRepresentation') {
|
|
|
721
691
|
}
|
|
722
692
|
|
|
723
693
|
const TTL$1 = 1000;
|
|
724
|
-
const VERSION$1 = "
|
|
725
|
-
function validate$
|
|
694
|
+
const VERSION$1 = "9a106f486843ccdb3e85594fb33ef97f";
|
|
695
|
+
function validate$2(obj, path = 'DecisionTableTemplateDefinitionOutputRepresentation') {
|
|
726
696
|
const v_error = (() => {
|
|
727
697
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
728
698
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
729
699
|
}
|
|
730
|
-
if (obj.
|
|
731
|
-
const
|
|
732
|
-
const
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
const path_decisionTableTemplates_item = path_decisionTableTemplates + '[' + i + ']';
|
|
739
|
-
const referencepath_decisionTableTemplates_itemValidationError = validate$5(obj_decisionTableTemplates_item, path_decisionTableTemplates_item);
|
|
740
|
-
if (referencepath_decisionTableTemplates_itemValidationError !== null) {
|
|
741
|
-
let message = 'Object doesn\'t match DecisionTableTemplateOutputRepresentation (at "' + path_decisionTableTemplates_item + '")\n';
|
|
742
|
-
message += referencepath_decisionTableTemplates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
743
|
-
return new TypeError(message);
|
|
744
|
-
}
|
|
700
|
+
if (obj.decisionTableTemplate !== undefined) {
|
|
701
|
+
const obj_decisionTableTemplate = obj.decisionTableTemplate;
|
|
702
|
+
const path_decisionTableTemplate = path + '.decisionTableTemplate';
|
|
703
|
+
const referencepath_decisionTableTemplateValidationError = validate$7(obj_decisionTableTemplate, path_decisionTableTemplate);
|
|
704
|
+
if (referencepath_decisionTableTemplateValidationError !== null) {
|
|
705
|
+
let message = 'Object doesn\'t match DecisionTableDefinitionOutputRepresentation (at "' + path_decisionTableTemplate + '")\n';
|
|
706
|
+
message += referencepath_decisionTableTemplateValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
707
|
+
return new TypeError(message);
|
|
745
708
|
}
|
|
746
709
|
}
|
|
747
710
|
if (obj.errors !== undefined) {
|
|
@@ -753,7 +716,7 @@ function validate$1(obj, path = 'DecisionTableTemplatesListOutputRepresentation'
|
|
|
753
716
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
754
717
|
const obj_errors_item = obj_errors[i];
|
|
755
718
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
756
|
-
const referencepath_errors_itemValidationError = validate$
|
|
719
|
+
const referencepath_errors_itemValidationError = validate$3(obj_errors_item, path_errors_item);
|
|
757
720
|
if (referencepath_errors_itemValidationError !== null) {
|
|
758
721
|
let message = 'Object doesn\'t match ErrorOutputRepresentation (at "' + path_errors_item + '")\n';
|
|
759
722
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -764,11 +727,11 @@ function validate$1(obj, path = 'DecisionTableTemplatesListOutputRepresentation'
|
|
|
764
727
|
})();
|
|
765
728
|
return v_error === undefined ? null : v_error;
|
|
766
729
|
}
|
|
767
|
-
const RepresentationType$1 = '
|
|
730
|
+
const RepresentationType$1 = 'DecisionTableTemplateDefinitionOutputRepresentation';
|
|
768
731
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
769
732
|
return input;
|
|
770
733
|
}
|
|
771
|
-
const select$3 = function
|
|
734
|
+
const select$3 = function DecisionTableTemplateDefinitionOutputRepresentationSelect() {
|
|
772
735
|
return {
|
|
773
736
|
kind: 'Fragment',
|
|
774
737
|
version: VERSION$1,
|
|
@@ -782,9 +745,9 @@ function equals$1(existing, incoming) {
|
|
|
782
745
|
}
|
|
783
746
|
return true;
|
|
784
747
|
}
|
|
785
|
-
const ingest$1 = function
|
|
748
|
+
const ingest$1 = function DecisionTableTemplateDefinitionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
786
749
|
if (process.env.NODE_ENV !== 'production') {
|
|
787
|
-
const validateError = validate$
|
|
750
|
+
const validateError = validate$2(input);
|
|
788
751
|
if (validateError !== null) {
|
|
789
752
|
throw validateError;
|
|
790
753
|
}
|
|
@@ -808,7 +771,7 @@ function select$2(luvio, params) {
|
|
|
808
771
|
return select$3();
|
|
809
772
|
}
|
|
810
773
|
function keyBuilder$3(luvio, params) {
|
|
811
|
-
return keyPrefix + '::
|
|
774
|
+
return keyPrefix + '::DecisionTableTemplateDefinitionOutputRepresentation:(' + 'templateName:' + params.urlParams.templateName + ')';
|
|
812
775
|
}
|
|
813
776
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
814
777
|
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
@@ -846,11 +809,11 @@ function createResourceRequest$1(config) {
|
|
|
846
809
|
const headers = {};
|
|
847
810
|
return {
|
|
848
811
|
baseUri: '/services/data/v61.0',
|
|
849
|
-
basePath: '/connect/business-rules/decision-table/templates',
|
|
812
|
+
basePath: '/connect/business-rules/decision-table/templates/' + config.urlParams.templateName + '',
|
|
850
813
|
method: 'get',
|
|
851
814
|
body: null,
|
|
852
|
-
urlParams:
|
|
853
|
-
queryParams:
|
|
815
|
+
urlParams: config.urlParams,
|
|
816
|
+
queryParams: {},
|
|
854
817
|
headers,
|
|
855
818
|
priority: 'normal',
|
|
856
819
|
};
|
|
@@ -858,7 +821,7 @@ function createResourceRequest$1(config) {
|
|
|
858
821
|
|
|
859
822
|
const adapterName$1 = 'getDecisionTableTemplate';
|
|
860
823
|
const getDecisionTableTemplate_ConfigPropertyMetadata = [
|
|
861
|
-
generateParamConfigMetadata('
|
|
824
|
+
generateParamConfigMetadata('templateName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
862
825
|
];
|
|
863
826
|
const getDecisionTableTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getDecisionTableTemplate_ConfigPropertyMetadata);
|
|
864
827
|
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(getDecisionTableTemplate_ConfigPropertyMetadata);
|
|
@@ -942,21 +905,58 @@ const getDecisionTableTemplateAdapterFactory = (luvio) => function DecisionTable
|
|
|
942
905
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
943
906
|
};
|
|
944
907
|
|
|
908
|
+
function validate$1(obj, path = 'DecisionTableTemplateOutputRepresentation') {
|
|
909
|
+
const v_error = (() => {
|
|
910
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
911
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
912
|
+
}
|
|
913
|
+
if (obj.location !== undefined) {
|
|
914
|
+
const obj_location = obj.location;
|
|
915
|
+
const path_location = path + '.location';
|
|
916
|
+
if (typeof obj_location !== 'string') {
|
|
917
|
+
return new TypeError('Expected "string" but received "' + typeof obj_location + '" (at "' + path_location + '")');
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
if (obj.templateName !== undefined) {
|
|
921
|
+
const obj_templateName = obj.templateName;
|
|
922
|
+
const path_templateName = path + '.templateName';
|
|
923
|
+
if (typeof obj_templateName !== 'string') {
|
|
924
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateName + '" (at "' + path_templateName + '")');
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
if (obj.usageType !== undefined) {
|
|
928
|
+
const obj_usageType = obj.usageType;
|
|
929
|
+
const path_usageType = path + '.usageType';
|
|
930
|
+
if (typeof obj_usageType !== 'string') {
|
|
931
|
+
return new TypeError('Expected "string" but received "' + typeof obj_usageType + '" (at "' + path_usageType + '")');
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
})();
|
|
935
|
+
return v_error === undefined ? null : v_error;
|
|
936
|
+
}
|
|
937
|
+
|
|
945
938
|
const TTL = 1000;
|
|
946
|
-
const VERSION = "
|
|
947
|
-
function validate(obj, path = '
|
|
939
|
+
const VERSION = "a2891bd122ab9f728d5937bf70b9f600";
|
|
940
|
+
function validate(obj, path = 'DecisionTableTemplatesListOutputRepresentation') {
|
|
948
941
|
const v_error = (() => {
|
|
949
942
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
950
943
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
951
944
|
}
|
|
952
|
-
if (obj.
|
|
953
|
-
const
|
|
954
|
-
const
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
945
|
+
if (obj.decisionTableTemplates !== undefined) {
|
|
946
|
+
const obj_decisionTableTemplates = obj.decisionTableTemplates;
|
|
947
|
+
const path_decisionTableTemplates = path + '.decisionTableTemplates';
|
|
948
|
+
if (!ArrayIsArray(obj_decisionTableTemplates)) {
|
|
949
|
+
return new TypeError('Expected "array" but received "' + typeof obj_decisionTableTemplates + '" (at "' + path_decisionTableTemplates + '")');
|
|
950
|
+
}
|
|
951
|
+
for (let i = 0; i < obj_decisionTableTemplates.length; i++) {
|
|
952
|
+
const obj_decisionTableTemplates_item = obj_decisionTableTemplates[i];
|
|
953
|
+
const path_decisionTableTemplates_item = path_decisionTableTemplates + '[' + i + ']';
|
|
954
|
+
const referencepath_decisionTableTemplates_itemValidationError = validate$1(obj_decisionTableTemplates_item, path_decisionTableTemplates_item);
|
|
955
|
+
if (referencepath_decisionTableTemplates_itemValidationError !== null) {
|
|
956
|
+
let message = 'Object doesn\'t match DecisionTableTemplateOutputRepresentation (at "' + path_decisionTableTemplates_item + '")\n';
|
|
957
|
+
message += referencepath_decisionTableTemplates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
958
|
+
return new TypeError(message);
|
|
959
|
+
}
|
|
960
960
|
}
|
|
961
961
|
}
|
|
962
962
|
if (obj.errors !== undefined) {
|
|
@@ -968,7 +968,7 @@ function validate(obj, path = 'DecisionTableTemplateDefinitionOutputRepresentati
|
|
|
968
968
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
969
969
|
const obj_errors_item = obj_errors[i];
|
|
970
970
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
971
|
-
const referencepath_errors_itemValidationError = validate$
|
|
971
|
+
const referencepath_errors_itemValidationError = validate$3(obj_errors_item, path_errors_item);
|
|
972
972
|
if (referencepath_errors_itemValidationError !== null) {
|
|
973
973
|
let message = 'Object doesn\'t match ErrorOutputRepresentation (at "' + path_errors_item + '")\n';
|
|
974
974
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -979,11 +979,11 @@ function validate(obj, path = 'DecisionTableTemplateDefinitionOutputRepresentati
|
|
|
979
979
|
})();
|
|
980
980
|
return v_error === undefined ? null : v_error;
|
|
981
981
|
}
|
|
982
|
-
const RepresentationType = '
|
|
982
|
+
const RepresentationType = 'DecisionTableTemplatesListOutputRepresentation';
|
|
983
983
|
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
984
984
|
return input;
|
|
985
985
|
}
|
|
986
|
-
const select$1 = function
|
|
986
|
+
const select$1 = function DecisionTableTemplatesListOutputRepresentationSelect() {
|
|
987
987
|
return {
|
|
988
988
|
kind: 'Fragment',
|
|
989
989
|
version: VERSION,
|
|
@@ -997,7 +997,7 @@ function equals(existing, incoming) {
|
|
|
997
997
|
}
|
|
998
998
|
return true;
|
|
999
999
|
}
|
|
1000
|
-
const ingest = function
|
|
1000
|
+
const ingest = function DecisionTableTemplatesListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1001
1001
|
if (process.env.NODE_ENV !== 'production') {
|
|
1002
1002
|
const validateError = validate(input);
|
|
1003
1003
|
if (validateError !== null) {
|
|
@@ -1023,7 +1023,7 @@ function select(luvio, params) {
|
|
|
1023
1023
|
return select$1();
|
|
1024
1024
|
}
|
|
1025
1025
|
function keyBuilder$1(luvio, params) {
|
|
1026
|
-
return keyPrefix + '::
|
|
1026
|
+
return keyPrefix + '::DecisionTableTemplatesListOutputRepresentation:(' + 'usageType:' + params.queryParams.usageType + ')';
|
|
1027
1027
|
}
|
|
1028
1028
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
1029
1029
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -1061,11 +1061,11 @@ function createResourceRequest(config) {
|
|
|
1061
1061
|
const headers = {};
|
|
1062
1062
|
return {
|
|
1063
1063
|
baseUri: '/services/data/v61.0',
|
|
1064
|
-
basePath: '/connect/business-rules/decision-table/templates
|
|
1064
|
+
basePath: '/connect/business-rules/decision-table/templates',
|
|
1065
1065
|
method: 'get',
|
|
1066
1066
|
body: null,
|
|
1067
|
-
urlParams:
|
|
1068
|
-
queryParams:
|
|
1067
|
+
urlParams: {},
|
|
1068
|
+
queryParams: config.queryParams,
|
|
1069
1069
|
headers,
|
|
1070
1070
|
priority: 'normal',
|
|
1071
1071
|
};
|
|
@@ -1073,7 +1073,7 @@ function createResourceRequest(config) {
|
|
|
1073
1073
|
|
|
1074
1074
|
const adapterName = 'getDecisionTableTemplateList';
|
|
1075
1075
|
const getDecisionTableTemplateList_ConfigPropertyMetadata = [
|
|
1076
|
-
generateParamConfigMetadata('
|
|
1076
|
+
generateParamConfigMetadata('usageType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1077
1077
|
];
|
|
1078
1078
|
const getDecisionTableTemplateList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getDecisionTableTemplateList_ConfigPropertyMetadata);
|
|
1079
1079
|
const createResourceParams = /*#__PURE__*/ createResourceParams$3(getDecisionTableTemplateList_ConfigPropertyMetadata);
|
|
@@ -1209,4 +1209,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1209
1209
|
});
|
|
1210
1210
|
|
|
1211
1211
|
export { getDecisionTable, getDecisionTableTemplate, getDecisionTableTemplateList, getDecisionTableTemplateList_imperative, getDecisionTableTemplate_imperative, getDecisionTable_imperative };
|
|
1212
|
-
// version: 1.
|
|
1212
|
+
// version: 1.285.0-c97dec82e
|
package/src/raml/luvio.raml
CHANGED