@salesforce/lds-adapters-industries-cpq 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-cpq.js +38 -139
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/configure.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/createCart.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/createCartItems.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getCart.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/preview.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/priceCart.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/productDetails.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/productList.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/searchProductList.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/updateCart.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/updateCartItems.d.ts +1 -1
- package/package.json +1 -1
- package/sfdc/index.js +39 -140
|
@@ -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,
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$b, typeCheckConfig as typeCheckConfig$b, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1 } 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
|
}
|
|
@@ -527,17 +530,10 @@ function createResourceRequest$a(config) {
|
|
|
527
530
|
|
|
528
531
|
const adapterName$a = 'preview';
|
|
529
532
|
const preview_ConfigPropertyMetadata = [
|
|
530
|
-
generateParamConfigMetadata('previewInput', true),
|
|
533
|
+
generateParamConfigMetadata('previewInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
531
534
|
];
|
|
532
535
|
const preview_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, preview_ConfigPropertyMetadata);
|
|
533
|
-
|
|
534
|
-
const resourceParams = {
|
|
535
|
-
body: {
|
|
536
|
-
previewInput: config.previewInput
|
|
537
|
-
}
|
|
538
|
-
};
|
|
539
|
-
return resourceParams;
|
|
540
|
-
}
|
|
536
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$b(preview_ConfigPropertyMetadata);
|
|
541
537
|
function typeCheckConfig$a(untrustedConfig) {
|
|
542
538
|
const config = {};
|
|
543
539
|
const untrustedConfig_previewInput = untrustedConfig.previewInput;
|
|
@@ -715,17 +711,10 @@ function createResourceRequest$9(config) {
|
|
|
715
711
|
|
|
716
712
|
const adapterName$9 = 'productList';
|
|
717
713
|
const productList_ConfigPropertyMetadata = [
|
|
718
|
-
generateParamConfigMetadata('requestBody', true),
|
|
714
|
+
generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
|
|
719
715
|
];
|
|
720
716
|
const productList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, productList_ConfigPropertyMetadata);
|
|
721
|
-
|
|
722
|
-
const resourceParams = {
|
|
723
|
-
body: {
|
|
724
|
-
requestBody: config.requestBody
|
|
725
|
-
}
|
|
726
|
-
};
|
|
727
|
-
return resourceParams;
|
|
728
|
-
}
|
|
717
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$b(productList_ConfigPropertyMetadata);
|
|
729
718
|
function typeCheckConfig$9(untrustedConfig) {
|
|
730
719
|
const config = {};
|
|
731
720
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
@@ -914,17 +903,10 @@ function createResourceRequest$8(config) {
|
|
|
914
903
|
|
|
915
904
|
const adapterName$8 = 'searchProductList';
|
|
916
905
|
const searchProductList_ConfigPropertyMetadata = [
|
|
917
|
-
generateParamConfigMetadata('requestBody', true),
|
|
906
|
+
generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
|
|
918
907
|
];
|
|
919
908
|
const searchProductList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, searchProductList_ConfigPropertyMetadata);
|
|
920
|
-
|
|
921
|
-
const resourceParams = {
|
|
922
|
-
body: {
|
|
923
|
-
requestBody: config.requestBody
|
|
924
|
-
}
|
|
925
|
-
};
|
|
926
|
-
return resourceParams;
|
|
927
|
-
}
|
|
909
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$b(searchProductList_ConfigPropertyMetadata);
|
|
928
910
|
function typeCheckConfig$8(untrustedConfig) {
|
|
929
911
|
const config = {};
|
|
930
912
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
@@ -1139,26 +1121,14 @@ function createResourceRequest$7(config) {
|
|
|
1139
1121
|
|
|
1140
1122
|
const adapterName$7 = 'productDetails';
|
|
1141
1123
|
const productDetails_ConfigPropertyMetadata = [
|
|
1142
|
-
generateParamConfigMetadata('productId', true),
|
|
1143
|
-
generateParamConfigMetadata('requestBody', true),
|
|
1124
|
+
generateParamConfigMetadata('productId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1125
|
+
generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1144
1126
|
];
|
|
1145
1127
|
const productDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, productDetails_ConfigPropertyMetadata);
|
|
1146
|
-
|
|
1147
|
-
const resourceParams = {
|
|
1148
|
-
urlParams: {
|
|
1149
|
-
productId: config.productId
|
|
1150
|
-
},
|
|
1151
|
-
body: {
|
|
1152
|
-
requestBody: config.requestBody
|
|
1153
|
-
}
|
|
1154
|
-
};
|
|
1155
|
-
return resourceParams;
|
|
1156
|
-
}
|
|
1128
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$b(productDetails_ConfigPropertyMetadata);
|
|
1157
1129
|
function typeCheckConfig$7(untrustedConfig) {
|
|
1158
1130
|
const config = {};
|
|
1159
|
-
|
|
1160
|
-
productId: 0 /* String */,
|
|
1161
|
-
});
|
|
1131
|
+
typeCheckConfig$b(untrustedConfig, config, productDetails_ConfigPropertyMetadata);
|
|
1162
1132
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
1163
1133
|
const referenceProductDetailsInputRepresentationValidationError = validate$x(untrustedConfig_requestBody);
|
|
1164
1134
|
if (referenceProductDetailsInputRepresentationValidationError === null) {
|
|
@@ -1390,17 +1360,10 @@ function createResourceRequest$6(config) {
|
|
|
1390
1360
|
|
|
1391
1361
|
const adapterName$6 = 'createCart';
|
|
1392
1362
|
const createCart_ConfigPropertyMetadata = [
|
|
1393
|
-
generateParamConfigMetadata('createCartRequestPayload', true),
|
|
1363
|
+
generateParamConfigMetadata('createCartRequestPayload', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1394
1364
|
];
|
|
1395
1365
|
const createCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createCart_ConfigPropertyMetadata);
|
|
1396
|
-
|
|
1397
|
-
const resourceParams = {
|
|
1398
|
-
body: {
|
|
1399
|
-
createCartRequestPayload: config.createCartRequestPayload
|
|
1400
|
-
}
|
|
1401
|
-
};
|
|
1402
|
-
return resourceParams;
|
|
1403
|
-
}
|
|
1366
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$b(createCart_ConfigPropertyMetadata);
|
|
1404
1367
|
function typeCheckConfig$6(untrustedConfig) {
|
|
1405
1368
|
const config = {};
|
|
1406
1369
|
const untrustedConfig_createCartRequestPayload = untrustedConfig.createCartRequestPayload;
|
|
@@ -3397,26 +3360,17 @@ function createResourceRequest$5(config) {
|
|
|
3397
3360
|
|
|
3398
3361
|
const adapterName$5 = 'getCart';
|
|
3399
3362
|
const getCart_ConfigPropertyMetadata = [
|
|
3400
|
-
generateParamConfigMetadata('cartId', true),
|
|
3363
|
+
generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3401
3364
|
];
|
|
3402
3365
|
const getCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getCart_ConfigPropertyMetadata);
|
|
3403
|
-
|
|
3404
|
-
const resourceParams = {
|
|
3405
|
-
urlParams: {
|
|
3406
|
-
cartId: config.cartId
|
|
3407
|
-
}
|
|
3408
|
-
};
|
|
3409
|
-
return resourceParams;
|
|
3410
|
-
}
|
|
3366
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$b(getCart_ConfigPropertyMetadata);
|
|
3411
3367
|
function keyBuilder$5(luvio, config) {
|
|
3412
3368
|
const resourceParams = createResourceParams$5(config);
|
|
3413
3369
|
return keyBuilder$6(luvio, resourceParams);
|
|
3414
3370
|
}
|
|
3415
3371
|
function typeCheckConfig$5(untrustedConfig) {
|
|
3416
3372
|
const config = {};
|
|
3417
|
-
|
|
3418
|
-
cartId: 0 /* String */,
|
|
3419
|
-
});
|
|
3373
|
+
typeCheckConfig$b(untrustedConfig, config, getCart_ConfigPropertyMetadata);
|
|
3420
3374
|
return config;
|
|
3421
3375
|
}
|
|
3422
3376
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -3750,26 +3704,14 @@ function createResourceRequest$4(config) {
|
|
|
3750
3704
|
|
|
3751
3705
|
const adapterName$4 = 'updateCart';
|
|
3752
3706
|
const updateCart_ConfigPropertyMetadata = [
|
|
3753
|
-
generateParamConfigMetadata('cartId', true),
|
|
3754
|
-
generateParamConfigMetadata('requestBody', true),
|
|
3707
|
+
generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3708
|
+
generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3755
3709
|
];
|
|
3756
3710
|
const updateCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, updateCart_ConfigPropertyMetadata);
|
|
3757
|
-
|
|
3758
|
-
const resourceParams = {
|
|
3759
|
-
urlParams: {
|
|
3760
|
-
cartId: config.cartId
|
|
3761
|
-
},
|
|
3762
|
-
body: {
|
|
3763
|
-
requestBody: config.requestBody
|
|
3764
|
-
}
|
|
3765
|
-
};
|
|
3766
|
-
return resourceParams;
|
|
3767
|
-
}
|
|
3711
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$b(updateCart_ConfigPropertyMetadata);
|
|
3768
3712
|
function typeCheckConfig$4(untrustedConfig) {
|
|
3769
3713
|
const config = {};
|
|
3770
|
-
|
|
3771
|
-
cartId: 0 /* String */,
|
|
3772
|
-
});
|
|
3714
|
+
typeCheckConfig$b(untrustedConfig, config, updateCart_ConfigPropertyMetadata);
|
|
3773
3715
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
3774
3716
|
const referenceUpdateCartInputRepresentationValidationError = validate$l(untrustedConfig_requestBody);
|
|
3775
3717
|
if (referenceUpdateCartInputRepresentationValidationError === null) {
|
|
@@ -3969,26 +3911,14 @@ function createResourceRequest$3(config) {
|
|
|
3969
3911
|
|
|
3970
3912
|
const adapterName$3 = 'updateCartItems';
|
|
3971
3913
|
const updateCartItems_ConfigPropertyMetadata = [
|
|
3972
|
-
generateParamConfigMetadata('cartId', true),
|
|
3973
|
-
generateParamConfigMetadata('requestBody', true),
|
|
3914
|
+
generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3915
|
+
generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3974
3916
|
];
|
|
3975
3917
|
const updateCartItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, updateCartItems_ConfigPropertyMetadata);
|
|
3976
|
-
|
|
3977
|
-
const resourceParams = {
|
|
3978
|
-
urlParams: {
|
|
3979
|
-
cartId: config.cartId
|
|
3980
|
-
},
|
|
3981
|
-
body: {
|
|
3982
|
-
requestBody: config.requestBody
|
|
3983
|
-
}
|
|
3984
|
-
};
|
|
3985
|
-
return resourceParams;
|
|
3986
|
-
}
|
|
3918
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$b(updateCartItems_ConfigPropertyMetadata);
|
|
3987
3919
|
function typeCheckConfig$3(untrustedConfig) {
|
|
3988
3920
|
const config = {};
|
|
3989
|
-
|
|
3990
|
-
cartId: 0 /* String */,
|
|
3991
|
-
});
|
|
3921
|
+
typeCheckConfig$b(untrustedConfig, config, updateCartItems_ConfigPropertyMetadata);
|
|
3992
3922
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
3993
3923
|
const referenceUpdateCartItemsInputRepresentationValidationError = validate$h(untrustedConfig_requestBody);
|
|
3994
3924
|
if (referenceUpdateCartItemsInputRepresentationValidationError === null) {
|
|
@@ -4188,26 +4118,14 @@ function createResourceRequest$2(config) {
|
|
|
4188
4118
|
|
|
4189
4119
|
const adapterName$2 = 'createCartItems';
|
|
4190
4120
|
const createCartItems_ConfigPropertyMetadata = [
|
|
4191
|
-
generateParamConfigMetadata('cartId', true),
|
|
4192
|
-
generateParamConfigMetadata('requestBody', true),
|
|
4121
|
+
generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4122
|
+
generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4193
4123
|
];
|
|
4194
4124
|
const createCartItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createCartItems_ConfigPropertyMetadata);
|
|
4195
|
-
|
|
4196
|
-
const resourceParams = {
|
|
4197
|
-
urlParams: {
|
|
4198
|
-
cartId: config.cartId
|
|
4199
|
-
},
|
|
4200
|
-
body: {
|
|
4201
|
-
requestBody: config.requestBody
|
|
4202
|
-
}
|
|
4203
|
-
};
|
|
4204
|
-
return resourceParams;
|
|
4205
|
-
}
|
|
4125
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$b(createCartItems_ConfigPropertyMetadata);
|
|
4206
4126
|
function typeCheckConfig$2(untrustedConfig) {
|
|
4207
4127
|
const config = {};
|
|
4208
|
-
|
|
4209
|
-
cartId: 0 /* String */,
|
|
4210
|
-
});
|
|
4128
|
+
typeCheckConfig$b(untrustedConfig, config, createCartItems_ConfigPropertyMetadata);
|
|
4211
4129
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
4212
4130
|
const referenceCreateCartItemsInputRepresentationValidationError = validate$f(untrustedConfig_requestBody);
|
|
4213
4131
|
if (referenceCreateCartItemsInputRepresentationValidationError === null) {
|
|
@@ -4424,26 +4342,14 @@ function createResourceRequest$1(config) {
|
|
|
4424
4342
|
|
|
4425
4343
|
const adapterName$1 = 'priceCart';
|
|
4426
4344
|
const priceCart_ConfigPropertyMetadata = [
|
|
4427
|
-
generateParamConfigMetadata('cartId', true),
|
|
4428
|
-
generateParamConfigMetadata('requestBody', true),
|
|
4345
|
+
generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4346
|
+
generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4429
4347
|
];
|
|
4430
4348
|
const priceCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, priceCart_ConfigPropertyMetadata);
|
|
4431
|
-
|
|
4432
|
-
const resourceParams = {
|
|
4433
|
-
urlParams: {
|
|
4434
|
-
cartId: config.cartId
|
|
4435
|
-
},
|
|
4436
|
-
body: {
|
|
4437
|
-
requestBody: config.requestBody
|
|
4438
|
-
}
|
|
4439
|
-
};
|
|
4440
|
-
return resourceParams;
|
|
4441
|
-
}
|
|
4349
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$b(priceCart_ConfigPropertyMetadata);
|
|
4442
4350
|
function typeCheckConfig$1(untrustedConfig) {
|
|
4443
4351
|
const config = {};
|
|
4444
|
-
|
|
4445
|
-
cartId: 0 /* String */,
|
|
4446
|
-
});
|
|
4352
|
+
typeCheckConfig$b(untrustedConfig, config, priceCart_ConfigPropertyMetadata);
|
|
4447
4353
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
4448
4354
|
const referencePriceCartInputRepresentationValidationError = validate$d(untrustedConfig_requestBody);
|
|
4449
4355
|
if (referencePriceCartInputRepresentationValidationError === null) {
|
|
@@ -5487,17 +5393,10 @@ function createResourceRequest(config) {
|
|
|
5487
5393
|
|
|
5488
5394
|
const adapterName = 'configure';
|
|
5489
5395
|
const configure_ConfigPropertyMetadata = [
|
|
5490
|
-
generateParamConfigMetadata('configuratorInput', true),
|
|
5396
|
+
generateParamConfigMetadata('configuratorInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5491
5397
|
];
|
|
5492
5398
|
const configure_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, configure_ConfigPropertyMetadata);
|
|
5493
|
-
|
|
5494
|
-
const resourceParams = {
|
|
5495
|
-
body: {
|
|
5496
|
-
configuratorInput: config.configuratorInput
|
|
5497
|
-
}
|
|
5498
|
-
};
|
|
5499
|
-
return resourceParams;
|
|
5500
|
-
}
|
|
5399
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$b(configure_ConfigPropertyMetadata);
|
|
5501
5400
|
function typeCheckConfig(untrustedConfig) {
|
|
5502
5401
|
const config = {};
|
|
5503
5402
|
const untrustedConfig_configuratorInput = untrustedConfig.configuratorInput;
|
|
@@ -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 = "cpq";
|
|
@@ -9,7 +9,7 @@ export declare const configure_ConfigPropertyNames: adapter$45$utils_AdapterVali
|
|
|
9
9
|
export interface ConfigureConfig {
|
|
10
10
|
configuratorInput: types_ConfiguratorInputRepresentation_ConfiguratorInputRepresentation;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: ConfigureConfig) => resources_postConnectCpqConfiguratorActionsConfigure_ResourceRequestConfig;
|
|
13
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<ConfigureConfig>): adapter$45$utils_Untrusted<ConfigureConfig>;
|
|
14
14
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): ConfigureConfig | null;
|
|
15
15
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: ConfigureConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ConfiguratorOutputRepresentation_ConfiguratorOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ConfiguratorOutputRepresentation_ConfiguratorOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ConfiguratorOutputRepresentation_ConfiguratorOutputRepresentation, any>>;
|
|
@@ -9,7 +9,7 @@ export declare const createCart_ConfigPropertyNames: adapter$45$utils_AdapterVal
|
|
|
9
9
|
export interface CreateCartConfig {
|
|
10
10
|
createCartRequestPayload: types_CreateCartInputRepresentation_CreateCartInputRepresentation;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: CreateCartConfig) => resources_postConnectCpqCarts_ResourceRequestConfig;
|
|
13
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateCartConfig>): adapter$45$utils_Untrusted<CreateCartConfig>;
|
|
14
14
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateCartConfig | null;
|
|
15
15
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateCartConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_CreateCartOutputRepresentation_CreateCartOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CreateCartOutputRepresentation_CreateCartOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CreateCartOutputRepresentation_CreateCartOutputRepresentation, any>>;
|
|
@@ -10,7 +10,7 @@ export interface CreateCartItemsConfig {
|
|
|
10
10
|
cartId: string;
|
|
11
11
|
requestBody: types_CreateCartItemsInputRepresentation_CreateCartItemsInputRepresentation;
|
|
12
12
|
}
|
|
13
|
-
export declare
|
|
13
|
+
export declare const createResourceParams: (config: CreateCartItemsConfig) => resources_postConnectCpqCartsItemsByCartId_ResourceRequestConfig;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateCartItemsConfig>): adapter$45$utils_Untrusted<CreateCartItemsConfig>;
|
|
15
15
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateCartItemsConfig | null;
|
|
16
16
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateCartItemsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_CreateCartItemsOutputRepresentation_CreateCartItemsOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CreateCartItemsOutputRepresentation_CreateCartItemsOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CreateCartItemsOutputRepresentation_CreateCartItemsOutputRepresentation, any>>;
|
|
@@ -8,7 +8,7 @@ export declare const getCart_ConfigPropertyNames: adapter$45$utils_AdapterValida
|
|
|
8
8
|
export interface GetCartConfig {
|
|
9
9
|
cartId: string;
|
|
10
10
|
}
|
|
11
|
-
export declare
|
|
11
|
+
export declare const createResourceParams: (config: GetCartConfig) => resources_getConnectCpqCartsByCartId_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetCartConfig): string;
|
|
13
13
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetCartConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetCartConfig>): adapter$45$utils_Untrusted<GetCartConfig>;
|
|
@@ -9,7 +9,7 @@ export declare const preview_ConfigPropertyNames: adapter$45$utils_AdapterValida
|
|
|
9
9
|
export interface PreviewConfig {
|
|
10
10
|
previewInput: types_PreviewInputRepresentation_PreviewInputRepresentation;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: PreviewConfig) => resources_postConnectCpqPreview_ResourceRequestConfig;
|
|
13
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<PreviewConfig>): adapter$45$utils_Untrusted<PreviewConfig>;
|
|
14
14
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): PreviewConfig | null;
|
|
15
15
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: PreviewConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_CpqBaseListOutputRepresentation_CpqBaseListOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CpqBaseListOutputRepresentation_CpqBaseListOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CpqBaseListOutputRepresentation_CpqBaseListOutputRepresentation, any>>;
|
|
@@ -10,7 +10,7 @@ export interface PriceCartConfig {
|
|
|
10
10
|
cartId: string;
|
|
11
11
|
requestBody: types_PriceCartInputRepresentation_PriceCartInputRepresentation;
|
|
12
12
|
}
|
|
13
|
-
export declare
|
|
13
|
+
export declare const createResourceParams: (config: PriceCartConfig) => resources_patchConnectCpqCartsPriceByCartId_ResourceRequestConfig;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<PriceCartConfig>): adapter$45$utils_Untrusted<PriceCartConfig>;
|
|
15
15
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): PriceCartConfig | null;
|
|
16
16
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: PriceCartConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_CartPricingTotalOutputRepresentation_CartPricingTotalOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CartPricingTotalOutputRepresentation_CartPricingTotalOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CartPricingTotalOutputRepresentation_CartPricingTotalOutputRepresentation, any>>;
|
|
@@ -10,7 +10,7 @@ export interface ProductDetailsConfig {
|
|
|
10
10
|
productId: string;
|
|
11
11
|
requestBody: types_ProductDetailsInputRepresentation_ProductDetailsInputRepresentation;
|
|
12
12
|
}
|
|
13
|
-
export declare
|
|
13
|
+
export declare const createResourceParams: (config: ProductDetailsConfig) => resources_postConnectCpqProductsByProductId_ResourceRequestConfig;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<ProductDetailsConfig>): adapter$45$utils_Untrusted<ProductDetailsConfig>;
|
|
15
15
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): ProductDetailsConfig | null;
|
|
16
16
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: ProductDetailsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_CpqBaseDetailsOutputRepresentation_CpqBaseDetailsOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CpqBaseDetailsOutputRepresentation_CpqBaseDetailsOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CpqBaseDetailsOutputRepresentation_CpqBaseDetailsOutputRepresentation, any>>;
|
|
@@ -9,7 +9,7 @@ export declare const productList_ConfigPropertyNames: adapter$45$utils_AdapterVa
|
|
|
9
9
|
export interface ProductListConfig {
|
|
10
10
|
requestBody: types_ProductListInputRepresentation_ProductListInputRepresentation;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: ProductListConfig) => resources_postConnectCpqProducts_ResourceRequestConfig;
|
|
13
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<ProductListConfig>): adapter$45$utils_Untrusted<ProductListConfig>;
|
|
14
14
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): ProductListConfig | null;
|
|
15
15
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: ProductListConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_CpqBaseListOutputRepresentation_CpqBaseListOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CpqBaseListOutputRepresentation_CpqBaseListOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CpqBaseListOutputRepresentation_CpqBaseListOutputRepresentation, any>>;
|
|
@@ -9,7 +9,7 @@ export declare const searchProductList_ConfigPropertyNames: adapter$45$utils_Ada
|
|
|
9
9
|
export interface SearchProductListConfig {
|
|
10
10
|
requestBody: types_SearchProductsInputRepresentation_SearchProductsInputRepresentation;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: SearchProductListConfig) => resources_postConnectCpqProductsSearch_ResourceRequestConfig;
|
|
13
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<SearchProductListConfig>): adapter$45$utils_Untrusted<SearchProductListConfig>;
|
|
14
14
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): SearchProductListConfig | null;
|
|
15
15
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: SearchProductListConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_CpqBaseListOutputRepresentation_CpqBaseListOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CpqBaseListOutputRepresentation_CpqBaseListOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CpqBaseListOutputRepresentation_CpqBaseListOutputRepresentation, any>>;
|
|
@@ -10,7 +10,7 @@ export interface UpdateCartConfig {
|
|
|
10
10
|
cartId: string;
|
|
11
11
|
requestBody: types_UpdateCartInputRepresentation_UpdateCartInputRepresentation;
|
|
12
12
|
}
|
|
13
|
-
export declare
|
|
13
|
+
export declare const createResourceParams: (config: UpdateCartConfig) => resources_patchConnectCpqCartsByCartId_ResourceRequestConfig;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateCartConfig>): adapter$45$utils_Untrusted<UpdateCartConfig>;
|
|
15
15
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): UpdateCartConfig | null;
|
|
16
16
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: UpdateCartConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_UpdateCartOutputRepresentation_UpdateCartOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_UpdateCartOutputRepresentation_UpdateCartOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_UpdateCartOutputRepresentation_UpdateCartOutputRepresentation, any>>;
|
|
@@ -10,7 +10,7 @@ export interface UpdateCartItemsConfig {
|
|
|
10
10
|
cartId: string;
|
|
11
11
|
requestBody: types_UpdateCartItemsInputRepresentation_UpdateCartItemsInputRepresentation;
|
|
12
12
|
}
|
|
13
|
-
export declare
|
|
13
|
+
export declare const createResourceParams: (config: UpdateCartItemsConfig) => resources_patchConnectCpqCartsItemsByCartId_ResourceRequestConfig;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateCartItemsConfig>): adapter$45$utils_Untrusted<UpdateCartItemsConfig>;
|
|
15
15
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): UpdateCartItemsConfig | null;
|
|
16
16
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: UpdateCartItemsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_UpdateCartItemsOutputRepresentation_UpdateCartItemsOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_UpdateCartItemsOutputRepresentation_UpdateCartItemsOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_UpdateCartItemsOutputRepresentation_UpdateCartItemsOutputRepresentation, any>>;
|
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,
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$b, typeCheckConfig as typeCheckConfig$b, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1 } 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
|
}
|
|
@@ -1094,17 +1097,10 @@ function createResourceRequest$a(config) {
|
|
|
1094
1097
|
|
|
1095
1098
|
const adapterName$a = 'configure';
|
|
1096
1099
|
const configure_ConfigPropertyMetadata = [
|
|
1097
|
-
generateParamConfigMetadata('configuratorInput', true),
|
|
1100
|
+
generateParamConfigMetadata('configuratorInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1098
1101
|
];
|
|
1099
1102
|
const configure_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, configure_ConfigPropertyMetadata);
|
|
1100
|
-
|
|
1101
|
-
const resourceParams = {
|
|
1102
|
-
body: {
|
|
1103
|
-
configuratorInput: config.configuratorInput
|
|
1104
|
-
}
|
|
1105
|
-
};
|
|
1106
|
-
return resourceParams;
|
|
1107
|
-
}
|
|
1103
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$b(configure_ConfigPropertyMetadata);
|
|
1108
1104
|
function typeCheckConfig$a(untrustedConfig) {
|
|
1109
1105
|
const config = {};
|
|
1110
1106
|
const untrustedConfig_configuratorInput = untrustedConfig.configuratorInput;
|
|
@@ -1564,17 +1560,10 @@ function createResourceRequest$9(config) {
|
|
|
1564
1560
|
|
|
1565
1561
|
const adapterName$9 = 'createCart';
|
|
1566
1562
|
const createCart_ConfigPropertyMetadata = [
|
|
1567
|
-
generateParamConfigMetadata('createCartRequestPayload', true),
|
|
1563
|
+
generateParamConfigMetadata('createCartRequestPayload', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1568
1564
|
];
|
|
1569
1565
|
const createCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createCart_ConfigPropertyMetadata);
|
|
1570
|
-
|
|
1571
|
-
const resourceParams = {
|
|
1572
|
-
body: {
|
|
1573
|
-
createCartRequestPayload: config.createCartRequestPayload
|
|
1574
|
-
}
|
|
1575
|
-
};
|
|
1576
|
-
return resourceParams;
|
|
1577
|
-
}
|
|
1566
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$b(createCart_ConfigPropertyMetadata);
|
|
1578
1567
|
function typeCheckConfig$9(untrustedConfig) {
|
|
1579
1568
|
const config = {};
|
|
1580
1569
|
const untrustedConfig_createCartRequestPayload = untrustedConfig.createCartRequestPayload;
|
|
@@ -1776,26 +1765,14 @@ function createResourceRequest$8(config) {
|
|
|
1776
1765
|
|
|
1777
1766
|
const adapterName$8 = 'createCartItems';
|
|
1778
1767
|
const createCartItems_ConfigPropertyMetadata = [
|
|
1779
|
-
generateParamConfigMetadata('cartId', true),
|
|
1780
|
-
generateParamConfigMetadata('requestBody', true),
|
|
1768
|
+
generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1769
|
+
generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1781
1770
|
];
|
|
1782
1771
|
const createCartItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createCartItems_ConfigPropertyMetadata);
|
|
1783
|
-
|
|
1784
|
-
const resourceParams = {
|
|
1785
|
-
urlParams: {
|
|
1786
|
-
cartId: config.cartId
|
|
1787
|
-
},
|
|
1788
|
-
body: {
|
|
1789
|
-
requestBody: config.requestBody
|
|
1790
|
-
}
|
|
1791
|
-
};
|
|
1792
|
-
return resourceParams;
|
|
1793
|
-
}
|
|
1772
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$b(createCartItems_ConfigPropertyMetadata);
|
|
1794
1773
|
function typeCheckConfig$8(untrustedConfig) {
|
|
1795
1774
|
const config = {};
|
|
1796
|
-
|
|
1797
|
-
cartId: 0 /* String */,
|
|
1798
|
-
});
|
|
1775
|
+
typeCheckConfig$b(untrustedConfig, config, createCartItems_ConfigPropertyMetadata);
|
|
1799
1776
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
1800
1777
|
const referenceCreateCartItemsInputRepresentationValidationError = validate$n(untrustedConfig_requestBody);
|
|
1801
1778
|
if (referenceCreateCartItemsInputRepresentationValidationError === null) {
|
|
@@ -3790,26 +3767,17 @@ function createResourceRequest$7(config) {
|
|
|
3790
3767
|
|
|
3791
3768
|
const adapterName$7 = 'getCart';
|
|
3792
3769
|
const getCart_ConfigPropertyMetadata = [
|
|
3793
|
-
generateParamConfigMetadata('cartId', true),
|
|
3770
|
+
generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3794
3771
|
];
|
|
3795
3772
|
const getCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getCart_ConfigPropertyMetadata);
|
|
3796
|
-
|
|
3797
|
-
const resourceParams = {
|
|
3798
|
-
urlParams: {
|
|
3799
|
-
cartId: config.cartId
|
|
3800
|
-
}
|
|
3801
|
-
};
|
|
3802
|
-
return resourceParams;
|
|
3803
|
-
}
|
|
3773
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$b(getCart_ConfigPropertyMetadata);
|
|
3804
3774
|
function keyBuilder$5(luvio, config) {
|
|
3805
3775
|
const resourceParams = createResourceParams$7(config);
|
|
3806
3776
|
return keyBuilder$6(luvio, resourceParams);
|
|
3807
3777
|
}
|
|
3808
3778
|
function typeCheckConfig$7(untrustedConfig) {
|
|
3809
3779
|
const config = {};
|
|
3810
|
-
|
|
3811
|
-
cartId: 0 /* String */,
|
|
3812
|
-
});
|
|
3780
|
+
typeCheckConfig$b(untrustedConfig, config, getCart_ConfigPropertyMetadata);
|
|
3813
3781
|
return config;
|
|
3814
3782
|
}
|
|
3815
3783
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -4094,17 +4062,10 @@ function createResourceRequest$6(config) {
|
|
|
4094
4062
|
|
|
4095
4063
|
const adapterName$6 = 'preview';
|
|
4096
4064
|
const preview_ConfigPropertyMetadata = [
|
|
4097
|
-
generateParamConfigMetadata('previewInput', true),
|
|
4065
|
+
generateParamConfigMetadata('previewInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4098
4066
|
];
|
|
4099
4067
|
const preview_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, preview_ConfigPropertyMetadata);
|
|
4100
|
-
|
|
4101
|
-
const resourceParams = {
|
|
4102
|
-
body: {
|
|
4103
|
-
previewInput: config.previewInput
|
|
4104
|
-
}
|
|
4105
|
-
};
|
|
4106
|
-
return resourceParams;
|
|
4107
|
-
}
|
|
4068
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$b(preview_ConfigPropertyMetadata);
|
|
4108
4069
|
function typeCheckConfig$6(untrustedConfig) {
|
|
4109
4070
|
const config = {};
|
|
4110
4071
|
const untrustedConfig_previewInput = untrustedConfig.previewInput;
|
|
@@ -4323,26 +4284,14 @@ function createResourceRequest$5(config) {
|
|
|
4323
4284
|
|
|
4324
4285
|
const adapterName$5 = 'priceCart';
|
|
4325
4286
|
const priceCart_ConfigPropertyMetadata = [
|
|
4326
|
-
generateParamConfigMetadata('cartId', true),
|
|
4327
|
-
generateParamConfigMetadata('requestBody', true),
|
|
4287
|
+
generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4288
|
+
generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4328
4289
|
];
|
|
4329
4290
|
const priceCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, priceCart_ConfigPropertyMetadata);
|
|
4330
|
-
|
|
4331
|
-
const resourceParams = {
|
|
4332
|
-
urlParams: {
|
|
4333
|
-
cartId: config.cartId
|
|
4334
|
-
},
|
|
4335
|
-
body: {
|
|
4336
|
-
requestBody: config.requestBody
|
|
4337
|
-
}
|
|
4338
|
-
};
|
|
4339
|
-
return resourceParams;
|
|
4340
|
-
}
|
|
4291
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$b(priceCart_ConfigPropertyMetadata);
|
|
4341
4292
|
function typeCheckConfig$5(untrustedConfig) {
|
|
4342
4293
|
const config = {};
|
|
4343
|
-
|
|
4344
|
-
cartId: 0 /* String */,
|
|
4345
|
-
});
|
|
4294
|
+
typeCheckConfig$b(untrustedConfig, config, priceCart_ConfigPropertyMetadata);
|
|
4346
4295
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
4347
4296
|
const referencePriceCartInputRepresentationValidationError = validate$b(untrustedConfig_requestBody);
|
|
4348
4297
|
if (referencePriceCartInputRepresentationValidationError === null) {
|
|
@@ -4555,26 +4504,14 @@ function createResourceRequest$4(config) {
|
|
|
4555
4504
|
|
|
4556
4505
|
const adapterName$4 = 'productDetails';
|
|
4557
4506
|
const productDetails_ConfigPropertyMetadata = [
|
|
4558
|
-
generateParamConfigMetadata('productId', true),
|
|
4559
|
-
generateParamConfigMetadata('requestBody', true),
|
|
4507
|
+
generateParamConfigMetadata('productId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4508
|
+
generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4560
4509
|
];
|
|
4561
4510
|
const productDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, productDetails_ConfigPropertyMetadata);
|
|
4562
|
-
|
|
4563
|
-
const resourceParams = {
|
|
4564
|
-
urlParams: {
|
|
4565
|
-
productId: config.productId
|
|
4566
|
-
},
|
|
4567
|
-
body: {
|
|
4568
|
-
requestBody: config.requestBody
|
|
4569
|
-
}
|
|
4570
|
-
};
|
|
4571
|
-
return resourceParams;
|
|
4572
|
-
}
|
|
4511
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$b(productDetails_ConfigPropertyMetadata);
|
|
4573
4512
|
function typeCheckConfig$4(untrustedConfig) {
|
|
4574
4513
|
const config = {};
|
|
4575
|
-
|
|
4576
|
-
productId: 0 /* String */,
|
|
4577
|
-
});
|
|
4514
|
+
typeCheckConfig$b(untrustedConfig, config, productDetails_ConfigPropertyMetadata);
|
|
4578
4515
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
4579
4516
|
const referenceProductDetailsInputRepresentationValidationError = validate$9(untrustedConfig_requestBody);
|
|
4580
4517
|
if (referenceProductDetailsInputRepresentationValidationError === null) {
|
|
@@ -4750,17 +4687,10 @@ function createResourceRequest$3(config) {
|
|
|
4750
4687
|
|
|
4751
4688
|
const adapterName$3 = 'productList';
|
|
4752
4689
|
const productList_ConfigPropertyMetadata = [
|
|
4753
|
-
generateParamConfigMetadata('requestBody', true),
|
|
4690
|
+
generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4754
4691
|
];
|
|
4755
4692
|
const productList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, productList_ConfigPropertyMetadata);
|
|
4756
|
-
|
|
4757
|
-
const resourceParams = {
|
|
4758
|
-
body: {
|
|
4759
|
-
requestBody: config.requestBody
|
|
4760
|
-
}
|
|
4761
|
-
};
|
|
4762
|
-
return resourceParams;
|
|
4763
|
-
}
|
|
4693
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$b(productList_ConfigPropertyMetadata);
|
|
4764
4694
|
function typeCheckConfig$3(untrustedConfig) {
|
|
4765
4695
|
const config = {};
|
|
4766
4696
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
@@ -4949,17 +4879,10 @@ function createResourceRequest$2(config) {
|
|
|
4949
4879
|
|
|
4950
4880
|
const adapterName$2 = 'searchProductList';
|
|
4951
4881
|
const searchProductList_ConfigPropertyMetadata = [
|
|
4952
|
-
generateParamConfigMetadata('requestBody', true),
|
|
4882
|
+
generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4953
4883
|
];
|
|
4954
4884
|
const searchProductList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, searchProductList_ConfigPropertyMetadata);
|
|
4955
|
-
|
|
4956
|
-
const resourceParams = {
|
|
4957
|
-
body: {
|
|
4958
|
-
requestBody: config.requestBody
|
|
4959
|
-
}
|
|
4960
|
-
};
|
|
4961
|
-
return resourceParams;
|
|
4962
|
-
}
|
|
4885
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$b(searchProductList_ConfigPropertyMetadata);
|
|
4963
4886
|
function typeCheckConfig$2(untrustedConfig) {
|
|
4964
4887
|
const config = {};
|
|
4965
4888
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
@@ -5271,26 +5194,14 @@ function createResourceRequest$1(config) {
|
|
|
5271
5194
|
|
|
5272
5195
|
const adapterName$1 = 'updateCart';
|
|
5273
5196
|
const updateCart_ConfigPropertyMetadata = [
|
|
5274
|
-
generateParamConfigMetadata('cartId', true),
|
|
5275
|
-
generateParamConfigMetadata('requestBody', true),
|
|
5197
|
+
generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5198
|
+
generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5276
5199
|
];
|
|
5277
5200
|
const updateCart_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateCart_ConfigPropertyMetadata);
|
|
5278
|
-
|
|
5279
|
-
const resourceParams = {
|
|
5280
|
-
urlParams: {
|
|
5281
|
-
cartId: config.cartId
|
|
5282
|
-
},
|
|
5283
|
-
body: {
|
|
5284
|
-
requestBody: config.requestBody
|
|
5285
|
-
}
|
|
5286
|
-
};
|
|
5287
|
-
return resourceParams;
|
|
5288
|
-
}
|
|
5201
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$b(updateCart_ConfigPropertyMetadata);
|
|
5289
5202
|
function typeCheckConfig$1(untrustedConfig) {
|
|
5290
5203
|
const config = {};
|
|
5291
|
-
|
|
5292
|
-
cartId: 0 /* String */,
|
|
5293
|
-
});
|
|
5204
|
+
typeCheckConfig$b(untrustedConfig, config, updateCart_ConfigPropertyMetadata);
|
|
5294
5205
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
5295
5206
|
const referenceUpdateCartInputRepresentationValidationError = validate$5(untrustedConfig_requestBody);
|
|
5296
5207
|
if (referenceUpdateCartInputRepresentationValidationError === null) {
|
|
@@ -5490,26 +5401,14 @@ function createResourceRequest(config) {
|
|
|
5490
5401
|
|
|
5491
5402
|
const adapterName = 'updateCartItems';
|
|
5492
5403
|
const updateCartItems_ConfigPropertyMetadata = [
|
|
5493
|
-
generateParamConfigMetadata('cartId', true),
|
|
5494
|
-
generateParamConfigMetadata('requestBody', true),
|
|
5404
|
+
generateParamConfigMetadata('cartId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5405
|
+
generateParamConfigMetadata('requestBody', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5495
5406
|
];
|
|
5496
5407
|
const updateCartItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateCartItems_ConfigPropertyMetadata);
|
|
5497
|
-
|
|
5498
|
-
const resourceParams = {
|
|
5499
|
-
urlParams: {
|
|
5500
|
-
cartId: config.cartId
|
|
5501
|
-
},
|
|
5502
|
-
body: {
|
|
5503
|
-
requestBody: config.requestBody
|
|
5504
|
-
}
|
|
5505
|
-
};
|
|
5506
|
-
return resourceParams;
|
|
5507
|
-
}
|
|
5408
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$b(updateCartItems_ConfigPropertyMetadata);
|
|
5508
5409
|
function typeCheckConfig(untrustedConfig) {
|
|
5509
5410
|
const config = {};
|
|
5510
|
-
|
|
5511
|
-
cartId: 0 /* String */,
|
|
5512
|
-
});
|
|
5411
|
+
typeCheckConfig$b(untrustedConfig, config, updateCartItems_ConfigPropertyMetadata);
|
|
5513
5412
|
const untrustedConfig_requestBody = untrustedConfig.requestBody;
|
|
5514
5413
|
const referenceUpdateCartItemsInputRepresentationValidationError = validate$1(untrustedConfig_requestBody);
|
|
5515
5414
|
if (referenceUpdateCartItemsInputRepresentationValidationError === null) {
|
|
@@ -5614,4 +5513,4 @@ withDefaultLuvio((luvio) => {
|
|
|
5614
5513
|
});
|
|
5615
5514
|
|
|
5616
5515
|
export { configure, createCart, createCartItems, getCart, getCart_imperative, preview, priceCart, productDetails, productList, searchProductList, updateCart, updateCartItems };
|
|
5617
|
-
// version: 1.
|
|
5516
|
+
// version: 1.216.0-1d57d45fe
|