@salesforce/lds-adapters-industries-epc 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-epc.js +22 -73
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/createProductAttributeDefinition.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/deactivate.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getProductAttributesByProductId.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getProductById.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getProductFlowByProductId.d.ts +1 -1
- package/package.json +1 -1
- package/sfdc/index.js +23 -74
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3,
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$5, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, typeCheckConfig as typeCheckConfig$5 } 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
|
}
|
|
@@ -271,17 +274,10 @@ function createResourceRequest$4(config) {
|
|
|
271
274
|
|
|
272
275
|
const adapterName$4 = 'deactivate';
|
|
273
276
|
const deactivate_ConfigPropertyMetadata = [
|
|
274
|
-
generateParamConfigMetadata('deactivateInputPayload', true),
|
|
277
|
+
generateParamConfigMetadata('deactivateInputPayload', true, 2 /* Body */, 4 /* Unsupported */),
|
|
275
278
|
];
|
|
276
279
|
const deactivate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, deactivate_ConfigPropertyMetadata);
|
|
277
|
-
|
|
278
|
-
const resourceParams = {
|
|
279
|
-
body: {
|
|
280
|
-
deactivateInputPayload: config.deactivateInputPayload
|
|
281
|
-
}
|
|
282
|
-
};
|
|
283
|
-
return resourceParams;
|
|
284
|
-
}
|
|
280
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$5(deactivate_ConfigPropertyMetadata);
|
|
285
281
|
function typeCheckConfig$4(untrustedConfig) {
|
|
286
282
|
const config = {};
|
|
287
283
|
const untrustedConfig_deactivateInputPayload = untrustedConfig.deactivateInputPayload;
|
|
@@ -495,17 +491,10 @@ function createResourceRequest$3(config) {
|
|
|
495
491
|
|
|
496
492
|
const adapterName$3 = 'createProductAttributeDefinition';
|
|
497
493
|
const createProductAttributeDefinition_ConfigPropertyMetadata = [
|
|
498
|
-
generateParamConfigMetadata('productAttributeDefinitionListInputPayload', true),
|
|
494
|
+
generateParamConfigMetadata('productAttributeDefinitionListInputPayload', true, 2 /* Body */, 4 /* Unsupported */),
|
|
499
495
|
];
|
|
500
496
|
const createProductAttributeDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createProductAttributeDefinition_ConfigPropertyMetadata);
|
|
501
|
-
|
|
502
|
-
const resourceParams = {
|
|
503
|
-
body: {
|
|
504
|
-
productAttributeDefinitionListInputPayload: config.productAttributeDefinitionListInputPayload
|
|
505
|
-
}
|
|
506
|
-
};
|
|
507
|
-
return resourceParams;
|
|
508
|
-
}
|
|
497
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$5(createProductAttributeDefinition_ConfigPropertyMetadata);
|
|
509
498
|
function typeCheckConfig$3(untrustedConfig) {
|
|
510
499
|
const config = {};
|
|
511
500
|
const untrustedConfig_productAttributeDefinitionListInputPayload = untrustedConfig.productAttributeDefinitionListInputPayload;
|
|
@@ -776,31 +765,18 @@ function createResourceRequest$2(config) {
|
|
|
776
765
|
|
|
777
766
|
const adapterName$2 = 'getProductFlowByProductId';
|
|
778
767
|
const getProductFlowByProductId_ConfigPropertyMetadata = [
|
|
779
|
-
generateParamConfigMetadata('productId', true),
|
|
780
|
-
generateParamConfigMetadata('correlationId', false),
|
|
768
|
+
generateParamConfigMetadata('productId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
769
|
+
generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
781
770
|
];
|
|
782
771
|
const getProductFlowByProductId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getProductFlowByProductId_ConfigPropertyMetadata);
|
|
783
|
-
|
|
784
|
-
const resourceParams = {
|
|
785
|
-
urlParams: {
|
|
786
|
-
productId: config.productId
|
|
787
|
-
},
|
|
788
|
-
queryParams: {
|
|
789
|
-
correlationId: config.correlationId
|
|
790
|
-
}
|
|
791
|
-
};
|
|
792
|
-
return resourceParams;
|
|
793
|
-
}
|
|
772
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$5(getProductFlowByProductId_ConfigPropertyMetadata);
|
|
794
773
|
function keyBuilder$4(luvio, config) {
|
|
795
774
|
const resourceParams = createResourceParams$2(config);
|
|
796
775
|
return keyBuilder$5(luvio, resourceParams);
|
|
797
776
|
}
|
|
798
777
|
function typeCheckConfig$2(untrustedConfig) {
|
|
799
778
|
const config = {};
|
|
800
|
-
|
|
801
|
-
productId: 0 /* String */,
|
|
802
|
-
correlationId: 0 /* String */,
|
|
803
|
-
});
|
|
779
|
+
typeCheckConfig$5(untrustedConfig, config, getProductFlowByProductId_ConfigPropertyMetadata);
|
|
804
780
|
return config;
|
|
805
781
|
}
|
|
806
782
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -1722,33 +1698,19 @@ function createResourceRequest$1(config) {
|
|
|
1722
1698
|
|
|
1723
1699
|
const adapterName$1 = 'getProductAttributesByProductId';
|
|
1724
1700
|
const getProductAttributesByProductId_ConfigPropertyMetadata = [
|
|
1725
|
-
generateParamConfigMetadata('productId', true),
|
|
1726
|
-
generateParamConfigMetadata('correlationId', false),
|
|
1727
|
-
generateParamConfigMetadata('isPriceImpacting', false),
|
|
1701
|
+
generateParamConfigMetadata('productId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1702
|
+
generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1703
|
+
generateParamConfigMetadata('isPriceImpacting', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1728
1704
|
];
|
|
1729
1705
|
const getProductAttributesByProductId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getProductAttributesByProductId_ConfigPropertyMetadata);
|
|
1730
|
-
|
|
1731
|
-
const resourceParams = {
|
|
1732
|
-
urlParams: {
|
|
1733
|
-
productId: config.productId
|
|
1734
|
-
},
|
|
1735
|
-
queryParams: {
|
|
1736
|
-
correlationId: config.correlationId, isPriceImpacting: config.isPriceImpacting
|
|
1737
|
-
}
|
|
1738
|
-
};
|
|
1739
|
-
return resourceParams;
|
|
1740
|
-
}
|
|
1706
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$5(getProductAttributesByProductId_ConfigPropertyMetadata);
|
|
1741
1707
|
function keyBuilder$2(luvio, config) {
|
|
1742
1708
|
const resourceParams = createResourceParams$1(config);
|
|
1743
1709
|
return keyBuilder$3(luvio, resourceParams);
|
|
1744
1710
|
}
|
|
1745
1711
|
function typeCheckConfig$1(untrustedConfig) {
|
|
1746
1712
|
const config = {};
|
|
1747
|
-
|
|
1748
|
-
productId: 0 /* String */,
|
|
1749
|
-
correlationId: 0 /* String */,
|
|
1750
|
-
isPriceImpacting: 1 /* Boolean */,
|
|
1751
|
-
});
|
|
1713
|
+
typeCheckConfig$5(untrustedConfig, config, getProductAttributesByProductId_ConfigPropertyMetadata);
|
|
1752
1714
|
return config;
|
|
1753
1715
|
}
|
|
1754
1716
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -2060,31 +2022,18 @@ function createResourceRequest(config) {
|
|
|
2060
2022
|
|
|
2061
2023
|
const adapterName = 'getProductById';
|
|
2062
2024
|
const getProductById_ConfigPropertyMetadata = [
|
|
2063
|
-
generateParamConfigMetadata('productId', true),
|
|
2064
|
-
generateParamConfigMetadata('correlationId', false),
|
|
2025
|
+
generateParamConfigMetadata('productId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2026
|
+
generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2065
2027
|
];
|
|
2066
2028
|
const getProductById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getProductById_ConfigPropertyMetadata);
|
|
2067
|
-
|
|
2068
|
-
const resourceParams = {
|
|
2069
|
-
urlParams: {
|
|
2070
|
-
productId: config.productId
|
|
2071
|
-
},
|
|
2072
|
-
queryParams: {
|
|
2073
|
-
correlationId: config.correlationId
|
|
2074
|
-
}
|
|
2075
|
-
};
|
|
2076
|
-
return resourceParams;
|
|
2077
|
-
}
|
|
2029
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$5(getProductById_ConfigPropertyMetadata);
|
|
2078
2030
|
function keyBuilder(luvio, config) {
|
|
2079
2031
|
const resourceParams = createResourceParams(config);
|
|
2080
2032
|
return keyBuilder$1(luvio, resourceParams);
|
|
2081
2033
|
}
|
|
2082
2034
|
function typeCheckConfig(untrustedConfig) {
|
|
2083
2035
|
const config = {};
|
|
2084
|
-
|
|
2085
|
-
productId: 0 /* String */,
|
|
2086
|
-
correlationId: 0 /* String */,
|
|
2087
|
-
});
|
|
2036
|
+
typeCheckConfig$5(untrustedConfig, config, getProductById_ConfigPropertyMetadata);
|
|
2088
2037
|
return config;
|
|
2089
2038
|
}
|
|
2090
2039
|
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 = "epc";
|
|
@@ -9,7 +9,7 @@ export declare const createProductAttributeDefinition_ConfigPropertyNames: adapt
|
|
|
9
9
|
export interface CreateProductAttributeDefinitionConfig {
|
|
10
10
|
productAttributeDefinitionListInputPayload: types_ProductAttributeDefinitionListInputRepresentation_ProductAttributeDefinitionListInputRepresentation;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: CreateProductAttributeDefinitionConfig) => resources_postConnectEpcProductAttributeDefinition_ResourceRequestConfig;
|
|
13
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateProductAttributeDefinitionConfig>): adapter$45$utils_Untrusted<CreateProductAttributeDefinitionConfig>;
|
|
14
14
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateProductAttributeDefinitionConfig | null;
|
|
15
15
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateProductAttributeDefinitionConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ProductAttributeDefinitionListRepresentation_ProductAttributeDefinitionListRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ProductAttributeDefinitionListRepresentation_ProductAttributeDefinitionListRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ProductAttributeDefinitionListRepresentation_ProductAttributeDefinitionListRepresentation, any>>;
|
|
@@ -9,7 +9,7 @@ export declare const deactivate_ConfigPropertyNames: adapter$45$utils_AdapterVal
|
|
|
9
9
|
export interface DeactivateConfig {
|
|
10
10
|
deactivateInputPayload: types_DeactivateInputRepresentation_DeactivateInputRepresentation;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: DeactivateConfig) => resources_patchConnectEpcActionsDeactivate_ResourceRequestConfig;
|
|
13
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<DeactivateConfig>): adapter$45$utils_Untrusted<DeactivateConfig>;
|
|
14
14
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): DeactivateConfig | null;
|
|
15
15
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: DeactivateConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_RecordIdMapOutputRepresentation_RecordIdMapOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_RecordIdMapOutputRepresentation_RecordIdMapOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_RecordIdMapOutputRepresentation_RecordIdMapOutputRepresentation, any>>;
|
|
@@ -10,7 +10,7 @@ export interface GetProductAttributesByProductIdConfig {
|
|
|
10
10
|
correlationId?: string;
|
|
11
11
|
isPriceImpacting?: boolean;
|
|
12
12
|
}
|
|
13
|
-
export declare
|
|
13
|
+
export declare const createResourceParams: (config: GetProductAttributesByProductIdConfig) => resources_getConnectEpcProductAttributesByProductId_ResourceRequestConfig;
|
|
14
14
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetProductAttributesByProductIdConfig): string;
|
|
15
15
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetProductAttributesByProductIdConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
16
16
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetProductAttributesByProductIdConfig>): adapter$45$utils_Untrusted<GetProductAttributesByProductIdConfig>;
|
|
@@ -9,7 +9,7 @@ export interface GetProductByIdConfig {
|
|
|
9
9
|
productId: string;
|
|
10
10
|
correlationId?: string;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: GetProductByIdConfig) => resources_getConnectEpcProductsByProductId_ResourceRequestConfig;
|
|
13
13
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetProductByIdConfig): string;
|
|
14
14
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetProductByIdConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
15
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetProductByIdConfig>): adapter$45$utils_Untrusted<GetProductByIdConfig>;
|
|
@@ -9,7 +9,7 @@ export interface GetProductFlowByProductIdConfig {
|
|
|
9
9
|
productId: string;
|
|
10
10
|
correlationId?: string;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: GetProductFlowByProductIdConfig) => resources_getConnectEpcProductsFlowByProductId_ResourceRequestConfig;
|
|
13
13
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetProductFlowByProductIdConfig): string;
|
|
14
14
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetProductFlowByProductIdConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
15
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetProductFlowByProductIdConfig>): adapter$45$utils_Untrusted<GetProductFlowByProductIdConfig>;
|
package/package.json
CHANGED
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, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3,
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$5, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, typeCheckConfig as typeCheckConfig$5 } 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
|
}
|
|
@@ -261,17 +264,10 @@ function createResourceRequest$4(config) {
|
|
|
261
264
|
|
|
262
265
|
const adapterName$4 = 'createProductAttributeDefinition';
|
|
263
266
|
const createProductAttributeDefinition_ConfigPropertyMetadata = [
|
|
264
|
-
generateParamConfigMetadata('productAttributeDefinitionListInputPayload', true),
|
|
267
|
+
generateParamConfigMetadata('productAttributeDefinitionListInputPayload', true, 2 /* Body */, 4 /* Unsupported */),
|
|
265
268
|
];
|
|
266
269
|
const createProductAttributeDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createProductAttributeDefinition_ConfigPropertyMetadata);
|
|
267
|
-
|
|
268
|
-
const resourceParams = {
|
|
269
|
-
body: {
|
|
270
|
-
productAttributeDefinitionListInputPayload: config.productAttributeDefinitionListInputPayload
|
|
271
|
-
}
|
|
272
|
-
};
|
|
273
|
-
return resourceParams;
|
|
274
|
-
}
|
|
270
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$5(createProductAttributeDefinition_ConfigPropertyMetadata);
|
|
275
271
|
function typeCheckConfig$4(untrustedConfig) {
|
|
276
272
|
const config = {};
|
|
277
273
|
const untrustedConfig_productAttributeDefinitionListInputPayload = untrustedConfig.productAttributeDefinitionListInputPayload;
|
|
@@ -505,17 +501,10 @@ function createResourceRequest$3(config) {
|
|
|
505
501
|
|
|
506
502
|
const adapterName$3 = 'deactivate';
|
|
507
503
|
const deactivate_ConfigPropertyMetadata = [
|
|
508
|
-
generateParamConfigMetadata('deactivateInputPayload', true),
|
|
504
|
+
generateParamConfigMetadata('deactivateInputPayload', true, 2 /* Body */, 4 /* Unsupported */),
|
|
509
505
|
];
|
|
510
506
|
const deactivate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, deactivate_ConfigPropertyMetadata);
|
|
511
|
-
|
|
512
|
-
const resourceParams = {
|
|
513
|
-
body: {
|
|
514
|
-
deactivateInputPayload: config.deactivateInputPayload
|
|
515
|
-
}
|
|
516
|
-
};
|
|
517
|
-
return resourceParams;
|
|
518
|
-
}
|
|
507
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$5(deactivate_ConfigPropertyMetadata);
|
|
519
508
|
function typeCheckConfig$3(untrustedConfig) {
|
|
520
509
|
const config = {};
|
|
521
510
|
const untrustedConfig_deactivateInputPayload = untrustedConfig.deactivateInputPayload;
|
|
@@ -1415,33 +1404,19 @@ function createResourceRequest$2(config) {
|
|
|
1415
1404
|
|
|
1416
1405
|
const adapterName$2 = 'getProductAttributesByProductId';
|
|
1417
1406
|
const getProductAttributesByProductId_ConfigPropertyMetadata = [
|
|
1418
|
-
generateParamConfigMetadata('productId', true),
|
|
1419
|
-
generateParamConfigMetadata('correlationId', false),
|
|
1420
|
-
generateParamConfigMetadata('isPriceImpacting', false),
|
|
1407
|
+
generateParamConfigMetadata('productId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1408
|
+
generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1409
|
+
generateParamConfigMetadata('isPriceImpacting', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1421
1410
|
];
|
|
1422
1411
|
const getProductAttributesByProductId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getProductAttributesByProductId_ConfigPropertyMetadata);
|
|
1423
|
-
|
|
1424
|
-
const resourceParams = {
|
|
1425
|
-
urlParams: {
|
|
1426
|
-
productId: config.productId
|
|
1427
|
-
},
|
|
1428
|
-
queryParams: {
|
|
1429
|
-
correlationId: config.correlationId, isPriceImpacting: config.isPriceImpacting
|
|
1430
|
-
}
|
|
1431
|
-
};
|
|
1432
|
-
return resourceParams;
|
|
1433
|
-
}
|
|
1412
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$5(getProductAttributesByProductId_ConfigPropertyMetadata);
|
|
1434
1413
|
function keyBuilder$4(luvio, config) {
|
|
1435
1414
|
const resourceParams = createResourceParams$2(config);
|
|
1436
1415
|
return keyBuilder$5(luvio, resourceParams);
|
|
1437
1416
|
}
|
|
1438
1417
|
function typeCheckConfig$2(untrustedConfig) {
|
|
1439
1418
|
const config = {};
|
|
1440
|
-
|
|
1441
|
-
productId: 0 /* String */,
|
|
1442
|
-
correlationId: 0 /* String */,
|
|
1443
|
-
isPriceImpacting: 1 /* Boolean */,
|
|
1444
|
-
});
|
|
1419
|
+
typeCheckConfig$5(untrustedConfig, config, getProductAttributesByProductId_ConfigPropertyMetadata);
|
|
1445
1420
|
return config;
|
|
1446
1421
|
}
|
|
1447
1422
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -1825,31 +1800,18 @@ function createResourceRequest$1(config) {
|
|
|
1825
1800
|
|
|
1826
1801
|
const adapterName$1 = 'getProductById';
|
|
1827
1802
|
const getProductById_ConfigPropertyMetadata = [
|
|
1828
|
-
generateParamConfigMetadata('productId', true),
|
|
1829
|
-
generateParamConfigMetadata('correlationId', false),
|
|
1803
|
+
generateParamConfigMetadata('productId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1804
|
+
generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1830
1805
|
];
|
|
1831
1806
|
const getProductById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getProductById_ConfigPropertyMetadata);
|
|
1832
|
-
|
|
1833
|
-
const resourceParams = {
|
|
1834
|
-
urlParams: {
|
|
1835
|
-
productId: config.productId
|
|
1836
|
-
},
|
|
1837
|
-
queryParams: {
|
|
1838
|
-
correlationId: config.correlationId
|
|
1839
|
-
}
|
|
1840
|
-
};
|
|
1841
|
-
return resourceParams;
|
|
1842
|
-
}
|
|
1807
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$5(getProductById_ConfigPropertyMetadata);
|
|
1843
1808
|
function keyBuilder$2(luvio, config) {
|
|
1844
1809
|
const resourceParams = createResourceParams$1(config);
|
|
1845
1810
|
return keyBuilder$3(luvio, resourceParams);
|
|
1846
1811
|
}
|
|
1847
1812
|
function typeCheckConfig$1(untrustedConfig) {
|
|
1848
1813
|
const config = {};
|
|
1849
|
-
|
|
1850
|
-
productId: 0 /* String */,
|
|
1851
|
-
correlationId: 0 /* String */,
|
|
1852
|
-
});
|
|
1814
|
+
typeCheckConfig$5(untrustedConfig, config, getProductById_ConfigPropertyMetadata);
|
|
1853
1815
|
return config;
|
|
1854
1816
|
}
|
|
1855
1817
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -2070,31 +2032,18 @@ function createResourceRequest(config) {
|
|
|
2070
2032
|
|
|
2071
2033
|
const adapterName = 'getProductFlowByProductId';
|
|
2072
2034
|
const getProductFlowByProductId_ConfigPropertyMetadata = [
|
|
2073
|
-
generateParamConfigMetadata('productId', true),
|
|
2074
|
-
generateParamConfigMetadata('correlationId', false),
|
|
2035
|
+
generateParamConfigMetadata('productId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2036
|
+
generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2075
2037
|
];
|
|
2076
2038
|
const getProductFlowByProductId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getProductFlowByProductId_ConfigPropertyMetadata);
|
|
2077
|
-
|
|
2078
|
-
const resourceParams = {
|
|
2079
|
-
urlParams: {
|
|
2080
|
-
productId: config.productId
|
|
2081
|
-
},
|
|
2082
|
-
queryParams: {
|
|
2083
|
-
correlationId: config.correlationId
|
|
2084
|
-
}
|
|
2085
|
-
};
|
|
2086
|
-
return resourceParams;
|
|
2087
|
-
}
|
|
2039
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$5(getProductFlowByProductId_ConfigPropertyMetadata);
|
|
2088
2040
|
function keyBuilder(luvio, config) {
|
|
2089
2041
|
const resourceParams = createResourceParams(config);
|
|
2090
2042
|
return keyBuilder$1(luvio, resourceParams);
|
|
2091
2043
|
}
|
|
2092
2044
|
function typeCheckConfig(untrustedConfig) {
|
|
2093
2045
|
const config = {};
|
|
2094
|
-
|
|
2095
|
-
productId: 0 /* String */,
|
|
2096
|
-
correlationId: 0 /* String */,
|
|
2097
|
-
});
|
|
2046
|
+
typeCheckConfig$5(untrustedConfig, config, getProductFlowByProductId_ConfigPropertyMetadata);
|
|
2098
2047
|
return config;
|
|
2099
2048
|
}
|
|
2100
2049
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -2215,4 +2164,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2215
2164
|
});
|
|
2216
2165
|
|
|
2217
2166
|
export { createProductAttributeDefinition, deactivate, getProductAttributesByProductId, getProductAttributesByProductId_imperative, getProductById, getProductById_imperative, getProductFlowByProductId, getProductFlowByProductId_imperative };
|
|
2218
|
-
// version: 1.
|
|
2167
|
+
// version: 1.216.0-1d57d45fe
|