@salesforce/lds-adapters-commerce-extensions 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/commerce-extensions.js +41 -114
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/createMapping.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/deleteMapping.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getExtensions.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getMapping.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getMappings.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getProvider.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getProviders.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/updateMapping.d.ts +1 -1
- package/package.json +1 -1
- package/sfdc/index.js +42 -115
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, StoreKeyMap,
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, StoreKeyMap, createResourceParams as createResourceParams$8, typeCheckConfig as typeCheckConfig$8 } 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
|
}
|
|
@@ -382,11 +385,9 @@ function createResourceRequest$7(config) {
|
|
|
382
385
|
const adapterName$7 = 'getExtensions';
|
|
383
386
|
const getExtensions_ConfigPropertyMetadata = [];
|
|
384
387
|
const getExtensions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getExtensions_ConfigPropertyMetadata);
|
|
385
|
-
|
|
386
|
-
const resourceParams = {};
|
|
387
|
-
return resourceParams;
|
|
388
|
-
}
|
|
388
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(getExtensions_ConfigPropertyMetadata);
|
|
389
389
|
function keyBuilder$b(luvio, config) {
|
|
390
|
+
createResourceParams$7(config);
|
|
390
391
|
return keyBuilder$c();
|
|
391
392
|
}
|
|
392
393
|
function typeCheckConfig$7(untrustedConfig) {
|
|
@@ -407,6 +408,7 @@ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
|
407
408
|
return config;
|
|
408
409
|
}
|
|
409
410
|
function adapterFragment$4(luvio, config) {
|
|
411
|
+
createResourceParams$7(config);
|
|
410
412
|
return select$c();
|
|
411
413
|
}
|
|
412
414
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
@@ -424,7 +426,7 @@ function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
|
424
426
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
425
427
|
}
|
|
426
428
|
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
427
|
-
const resourceParams = createResourceParams$7();
|
|
429
|
+
const resourceParams = createResourceParams$7(config);
|
|
428
430
|
const request = createResourceRequest$7();
|
|
429
431
|
return luvio.dispatchResourceRequest(request, options)
|
|
430
432
|
.then((response) => {
|
|
@@ -443,8 +445,8 @@ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext
|
|
|
443
445
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
444
446
|
const { luvio, config } = context;
|
|
445
447
|
const selector = {
|
|
446
|
-
recordId: keyBuilder$b(),
|
|
447
|
-
node: adapterFragment$4(),
|
|
448
|
+
recordId: keyBuilder$b(luvio, config),
|
|
449
|
+
node: adapterFragment$4(luvio, config),
|
|
448
450
|
variables: {},
|
|
449
451
|
};
|
|
450
452
|
const cacheSnapshot = storeLookup(selector, {
|
|
@@ -754,28 +756,18 @@ function createResourceRequest$6(config) {
|
|
|
754
756
|
|
|
755
757
|
const adapterName$6 = 'getMappings';
|
|
756
758
|
const getMappings_ConfigPropertyMetadata = [
|
|
757
|
-
generateParamConfigMetadata('epn', false),
|
|
758
|
-
generateParamConfigMetadata('webstoreId', false),
|
|
759
|
+
generateParamConfigMetadata('epn', false, 1 /* QueryParameter */, 0 /* String */),
|
|
760
|
+
generateParamConfigMetadata('webstoreId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
759
761
|
];
|
|
760
762
|
const getMappings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getMappings_ConfigPropertyMetadata);
|
|
761
|
-
|
|
762
|
-
const resourceParams = {
|
|
763
|
-
queryParams: {
|
|
764
|
-
epn: config.epn, webstoreId: config.webstoreId
|
|
765
|
-
}
|
|
766
|
-
};
|
|
767
|
-
return resourceParams;
|
|
768
|
-
}
|
|
763
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$8(getMappings_ConfigPropertyMetadata);
|
|
769
764
|
function keyBuilder$8(luvio, config) {
|
|
770
765
|
const resourceParams = createResourceParams$6(config);
|
|
771
766
|
return keyBuilder$9(luvio, resourceParams);
|
|
772
767
|
}
|
|
773
768
|
function typeCheckConfig$6(untrustedConfig) {
|
|
774
769
|
const config = {};
|
|
775
|
-
|
|
776
|
-
epn: 0 /* String */,
|
|
777
|
-
webstoreId: 0 /* String */,
|
|
778
|
-
});
|
|
770
|
+
typeCheckConfig$8(untrustedConfig, config, getMappings_ConfigPropertyMetadata);
|
|
779
771
|
return config;
|
|
780
772
|
}
|
|
781
773
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -888,28 +880,16 @@ function createResourceRequest$5(config) {
|
|
|
888
880
|
|
|
889
881
|
const adapterName$5 = 'createMapping';
|
|
890
882
|
const createMapping_ConfigPropertyMetadata = [
|
|
891
|
-
generateParamConfigMetadata('epn', true),
|
|
892
|
-
generateParamConfigMetadata('id', true),
|
|
893
|
-
generateParamConfigMetadata('providerName', true),
|
|
894
|
-
generateParamConfigMetadata('webstoreId', true),
|
|
883
|
+
generateParamConfigMetadata('epn', true, 2 /* Body */, 0 /* String */),
|
|
884
|
+
generateParamConfigMetadata('id', true, 2 /* Body */, 0 /* String */),
|
|
885
|
+
generateParamConfigMetadata('providerName', true, 2 /* Body */, 0 /* String */),
|
|
886
|
+
generateParamConfigMetadata('webstoreId', true, 2 /* Body */, 0 /* String */),
|
|
895
887
|
];
|
|
896
888
|
const createMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createMapping_ConfigPropertyMetadata);
|
|
897
|
-
|
|
898
|
-
const resourceParams = {
|
|
899
|
-
body: {
|
|
900
|
-
epn: config.epn, id: config.id, providerName: config.providerName, webstoreId: config.webstoreId
|
|
901
|
-
}
|
|
902
|
-
};
|
|
903
|
-
return resourceParams;
|
|
904
|
-
}
|
|
889
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$8(createMapping_ConfigPropertyMetadata);
|
|
905
890
|
function typeCheckConfig$5(untrustedConfig) {
|
|
906
891
|
const config = {};
|
|
907
|
-
|
|
908
|
-
epn: 0 /* String */,
|
|
909
|
-
id: 0 /* String */,
|
|
910
|
-
providerName: 0 /* String */,
|
|
911
|
-
webstoreId: 0 /* String */,
|
|
912
|
-
});
|
|
892
|
+
typeCheckConfig$8(untrustedConfig, config, createMapping_ConfigPropertyMetadata);
|
|
913
893
|
return config;
|
|
914
894
|
}
|
|
915
895
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -987,22 +967,13 @@ function createResourceRequest$4(config) {
|
|
|
987
967
|
|
|
988
968
|
const adapterName$4 = 'deleteMapping';
|
|
989
969
|
const deleteMapping_ConfigPropertyMetadata = [
|
|
990
|
-
generateParamConfigMetadata('mappingId', true),
|
|
970
|
+
generateParamConfigMetadata('mappingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
991
971
|
];
|
|
992
972
|
const deleteMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, deleteMapping_ConfigPropertyMetadata);
|
|
993
|
-
|
|
994
|
-
const resourceParams = {
|
|
995
|
-
urlParams: {
|
|
996
|
-
mappingId: config.mappingId
|
|
997
|
-
}
|
|
998
|
-
};
|
|
999
|
-
return resourceParams;
|
|
1000
|
-
}
|
|
973
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$8(deleteMapping_ConfigPropertyMetadata);
|
|
1001
974
|
function typeCheckConfig$4(untrustedConfig) {
|
|
1002
975
|
const config = {};
|
|
1003
|
-
|
|
1004
|
-
mappingId: 0 /* String */,
|
|
1005
|
-
});
|
|
976
|
+
typeCheckConfig$8(untrustedConfig, config, deleteMapping_ConfigPropertyMetadata);
|
|
1006
977
|
return config;
|
|
1007
978
|
}
|
|
1008
979
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -1103,26 +1074,17 @@ function createResourceRequest$3(config) {
|
|
|
1103
1074
|
|
|
1104
1075
|
const adapterName$3 = 'getMapping';
|
|
1105
1076
|
const getMapping_ConfigPropertyMetadata = [
|
|
1106
|
-
generateParamConfigMetadata('mappingId', true),
|
|
1077
|
+
generateParamConfigMetadata('mappingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1107
1078
|
];
|
|
1108
1079
|
const getMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getMapping_ConfigPropertyMetadata);
|
|
1109
|
-
|
|
1110
|
-
const resourceParams = {
|
|
1111
|
-
urlParams: {
|
|
1112
|
-
mappingId: config.mappingId
|
|
1113
|
-
}
|
|
1114
|
-
};
|
|
1115
|
-
return resourceParams;
|
|
1116
|
-
}
|
|
1080
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$8(getMapping_ConfigPropertyMetadata);
|
|
1117
1081
|
function keyBuilder$5(luvio, config) {
|
|
1118
1082
|
const resourceParams = createResourceParams$3(config);
|
|
1119
1083
|
return keyBuilder$6(luvio, resourceParams);
|
|
1120
1084
|
}
|
|
1121
1085
|
function typeCheckConfig$3(untrustedConfig) {
|
|
1122
1086
|
const config = {};
|
|
1123
|
-
|
|
1124
|
-
mappingId: 0 /* String */,
|
|
1125
|
-
});
|
|
1087
|
+
typeCheckConfig$8(untrustedConfig, config, getMapping_ConfigPropertyMetadata);
|
|
1126
1088
|
return config;
|
|
1127
1089
|
}
|
|
1128
1090
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -1235,33 +1197,17 @@ function createResourceRequest$2(config) {
|
|
|
1235
1197
|
|
|
1236
1198
|
const adapterName$2 = 'updateMapping';
|
|
1237
1199
|
const updateMapping_ConfigPropertyMetadata = [
|
|
1238
|
-
generateParamConfigMetadata('mappingId', true),
|
|
1239
|
-
generateParamConfigMetadata('epn', true),
|
|
1240
|
-
generateParamConfigMetadata('id', true),
|
|
1241
|
-
generateParamConfigMetadata('providerName', true),
|
|
1242
|
-
generateParamConfigMetadata('webstoreId', true),
|
|
1200
|
+
generateParamConfigMetadata('mappingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1201
|
+
generateParamConfigMetadata('epn', true, 2 /* Body */, 0 /* String */),
|
|
1202
|
+
generateParamConfigMetadata('id', true, 2 /* Body */, 0 /* String */),
|
|
1203
|
+
generateParamConfigMetadata('providerName', true, 2 /* Body */, 0 /* String */),
|
|
1204
|
+
generateParamConfigMetadata('webstoreId', true, 2 /* Body */, 0 /* String */),
|
|
1243
1205
|
];
|
|
1244
1206
|
const updateMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, updateMapping_ConfigPropertyMetadata);
|
|
1245
|
-
|
|
1246
|
-
const resourceParams = {
|
|
1247
|
-
urlParams: {
|
|
1248
|
-
mappingId: config.mappingId
|
|
1249
|
-
},
|
|
1250
|
-
body: {
|
|
1251
|
-
epn: config.epn, id: config.id, providerName: config.providerName, webstoreId: config.webstoreId
|
|
1252
|
-
}
|
|
1253
|
-
};
|
|
1254
|
-
return resourceParams;
|
|
1255
|
-
}
|
|
1207
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$8(updateMapping_ConfigPropertyMetadata);
|
|
1256
1208
|
function typeCheckConfig$2(untrustedConfig) {
|
|
1257
1209
|
const config = {};
|
|
1258
|
-
|
|
1259
|
-
mappingId: 0 /* String */,
|
|
1260
|
-
epn: 0 /* String */,
|
|
1261
|
-
id: 0 /* String */,
|
|
1262
|
-
providerName: 0 /* String */,
|
|
1263
|
-
webstoreId: 0 /* String */,
|
|
1264
|
-
});
|
|
1210
|
+
typeCheckConfig$8(untrustedConfig, config, updateMapping_ConfigPropertyMetadata);
|
|
1265
1211
|
return config;
|
|
1266
1212
|
}
|
|
1267
1213
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -1804,28 +1750,18 @@ function createResourceRequest$1(config) {
|
|
|
1804
1750
|
|
|
1805
1751
|
const adapterName$1 = 'getProviders';
|
|
1806
1752
|
const getProviders_ConfigPropertyMetadata = [
|
|
1807
|
-
generateParamConfigMetadata('effectiveMappingsWebstoreId', false),
|
|
1808
|
-
generateParamConfigMetadata('epn', false),
|
|
1753
|
+
generateParamConfigMetadata('effectiveMappingsWebstoreId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1754
|
+
generateParamConfigMetadata('epn', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1809
1755
|
];
|
|
1810
1756
|
const getProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getProviders_ConfigPropertyMetadata);
|
|
1811
|
-
|
|
1812
|
-
const resourceParams = {
|
|
1813
|
-
queryParams: {
|
|
1814
|
-
effectiveMappingsWebstoreId: config.effectiveMappingsWebstoreId, epn: config.epn
|
|
1815
|
-
}
|
|
1816
|
-
};
|
|
1817
|
-
return resourceParams;
|
|
1818
|
-
}
|
|
1757
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$8(getProviders_ConfigPropertyMetadata);
|
|
1819
1758
|
function keyBuilder$2(luvio, config) {
|
|
1820
1759
|
const resourceParams = createResourceParams$1(config);
|
|
1821
1760
|
return keyBuilder$3(luvio, resourceParams);
|
|
1822
1761
|
}
|
|
1823
1762
|
function typeCheckConfig$1(untrustedConfig) {
|
|
1824
1763
|
const config = {};
|
|
1825
|
-
|
|
1826
|
-
effectiveMappingsWebstoreId: 0 /* String */,
|
|
1827
|
-
epn: 0 /* String */,
|
|
1828
|
-
});
|
|
1764
|
+
typeCheckConfig$8(untrustedConfig, config, getProviders_ConfigPropertyMetadata);
|
|
1829
1765
|
return config;
|
|
1830
1766
|
}
|
|
1831
1767
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -1955,26 +1891,17 @@ function createResourceRequest(config) {
|
|
|
1955
1891
|
|
|
1956
1892
|
const adapterName = 'getProvider';
|
|
1957
1893
|
const getProvider_ConfigPropertyMetadata = [
|
|
1958
|
-
generateParamConfigMetadata('providerId', true),
|
|
1894
|
+
generateParamConfigMetadata('providerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1959
1895
|
];
|
|
1960
1896
|
const getProvider_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getProvider_ConfigPropertyMetadata);
|
|
1961
|
-
|
|
1962
|
-
const resourceParams = {
|
|
1963
|
-
urlParams: {
|
|
1964
|
-
providerId: config.providerId
|
|
1965
|
-
}
|
|
1966
|
-
};
|
|
1967
|
-
return resourceParams;
|
|
1968
|
-
}
|
|
1897
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$8(getProvider_ConfigPropertyMetadata);
|
|
1969
1898
|
function keyBuilder(luvio, config) {
|
|
1970
1899
|
const resourceParams = createResourceParams(config);
|
|
1971
1900
|
return keyBuilder$1(luvio, resourceParams);
|
|
1972
1901
|
}
|
|
1973
1902
|
function typeCheckConfig(untrustedConfig) {
|
|
1974
1903
|
const config = {};
|
|
1975
|
-
|
|
1976
|
-
providerId: 0 /* String */,
|
|
1977
|
-
});
|
|
1904
|
+
typeCheckConfig$8(untrustedConfig, config, getProvider_ConfigPropertyMetadata);
|
|
1978
1905
|
return config;
|
|
1979
1906
|
}
|
|
1980
1907
|
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 = "extensions";
|
|
@@ -11,7 +11,7 @@ export interface CreateMappingConfig {
|
|
|
11
11
|
providerName: string;
|
|
12
12
|
webstoreId: string;
|
|
13
13
|
}
|
|
14
|
-
export declare
|
|
14
|
+
export declare const createResourceParams: (config: CreateMappingConfig) => resources_postCommerceExtensionMappings_ResourceRequestConfig;
|
|
15
15
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateMappingConfig>): adapter$45$utils_Untrusted<CreateMappingConfig>;
|
|
16
16
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateMappingConfig | null;
|
|
17
17
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateMappingConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, any>>;
|
|
@@ -7,7 +7,7 @@ export declare const deleteMapping_ConfigPropertyNames: adapter$45$utils_Adapter
|
|
|
7
7
|
export interface DeleteMappingConfig {
|
|
8
8
|
mappingId: string;
|
|
9
9
|
}
|
|
10
|
-
export declare
|
|
10
|
+
export declare const createResourceParams: (config: DeleteMappingConfig) => resources_deleteCommerceExtensionMappingsByMappingId_ResourceRequestConfig;
|
|
11
11
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<DeleteMappingConfig>): adapter$45$utils_Untrusted<DeleteMappingConfig>;
|
|
12
12
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): DeleteMappingConfig | null;
|
|
13
13
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: DeleteMappingConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<void>;
|
|
@@ -7,7 +7,7 @@ export declare const getExtensions_ConfigPropertyMetadata: $64$luvio_engine_Adap
|
|
|
7
7
|
export declare const getExtensions_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface GetExtensionsConfig {
|
|
9
9
|
}
|
|
10
|
-
export declare
|
|
10
|
+
export declare const createResourceParams: (config: GetExtensionsConfig) => resources_getCommerceExtensionExtensions_ResourceRequestConfig;
|
|
11
11
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetExtensionsConfig): string;
|
|
12
12
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetExtensionsConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
13
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetExtensionsConfig>): adapter$45$utils_Untrusted<GetExtensionsConfig>;
|
|
@@ -8,7 +8,7 @@ export declare const getMapping_ConfigPropertyNames: adapter$45$utils_AdapterVal
|
|
|
8
8
|
export interface GetMappingConfig {
|
|
9
9
|
mappingId: string;
|
|
10
10
|
}
|
|
11
|
-
export declare
|
|
11
|
+
export declare const createResourceParams: (config: GetMappingConfig) => resources_getCommerceExtensionMappingsByMappingId_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetMappingConfig): string;
|
|
13
13
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetMappingConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetMappingConfig>): adapter$45$utils_Untrusted<GetMappingConfig>;
|
|
@@ -9,7 +9,7 @@ export interface GetMappingsConfig {
|
|
|
9
9
|
epn?: string;
|
|
10
10
|
webstoreId?: string;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: GetMappingsConfig) => resources_getCommerceExtensionMappings_ResourceRequestConfig;
|
|
13
13
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetMappingsConfig): string;
|
|
14
14
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetMappingsConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
15
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetMappingsConfig>): adapter$45$utils_Untrusted<GetMappingsConfig>;
|
|
@@ -8,7 +8,7 @@ export declare const getProvider_ConfigPropertyNames: adapter$45$utils_AdapterVa
|
|
|
8
8
|
export interface GetProviderConfig {
|
|
9
9
|
providerId: string;
|
|
10
10
|
}
|
|
11
|
-
export declare
|
|
11
|
+
export declare const createResourceParams: (config: GetProviderConfig) => resources_getCommerceExtensionProvidersByProviderId_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetProviderConfig): string;
|
|
13
13
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetProviderConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetProviderConfig>): adapter$45$utils_Untrusted<GetProviderConfig>;
|
|
@@ -9,7 +9,7 @@ export interface GetProvidersConfig {
|
|
|
9
9
|
effectiveMappingsWebstoreId?: string;
|
|
10
10
|
epn?: string;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: GetProvidersConfig) => resources_getCommerceExtensionProviders_ResourceRequestConfig;
|
|
13
13
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetProvidersConfig): string;
|
|
14
14
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetProvidersConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
15
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetProvidersConfig>): adapter$45$utils_Untrusted<GetProvidersConfig>;
|
|
@@ -12,7 +12,7 @@ export interface UpdateMappingConfig {
|
|
|
12
12
|
providerName: string;
|
|
13
13
|
webstoreId: string;
|
|
14
14
|
}
|
|
15
|
-
export declare
|
|
15
|
+
export declare const createResourceParams: (config: UpdateMappingConfig) => resources_putCommerceExtensionMappingsByMappingId_ResourceRequestConfig;
|
|
16
16
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateMappingConfig>): adapter$45$utils_Untrusted<UpdateMappingConfig>;
|
|
17
17
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): UpdateMappingConfig | null;
|
|
18
18
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: UpdateMappingConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, any>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-commerce-extensions",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.216.0",
|
|
4
4
|
"description": "APIs to manage providers for commerce extensions and which will be used for each store.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/umd/es2018/commerce-extensions.js",
|
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, StoreKeyMap,
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, StoreKeyMap, createResourceParams as createResourceParams$8, typeCheckConfig as typeCheckConfig$8 } 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
|
}
|
|
@@ -392,11 +395,9 @@ function createResourceRequest$7(config) {
|
|
|
392
395
|
const adapterName$7 = 'getExtensions';
|
|
393
396
|
const getExtensions_ConfigPropertyMetadata = [];
|
|
394
397
|
const getExtensions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getExtensions_ConfigPropertyMetadata);
|
|
395
|
-
|
|
396
|
-
const resourceParams = {};
|
|
397
|
-
return resourceParams;
|
|
398
|
-
}
|
|
398
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(getExtensions_ConfigPropertyMetadata);
|
|
399
399
|
function keyBuilder$b(luvio, config) {
|
|
400
|
+
createResourceParams$7(config);
|
|
400
401
|
return keyBuilder$c();
|
|
401
402
|
}
|
|
402
403
|
function typeCheckConfig$7(untrustedConfig) {
|
|
@@ -417,6 +418,7 @@ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
|
417
418
|
return config;
|
|
418
419
|
}
|
|
419
420
|
function adapterFragment$4(luvio, config) {
|
|
421
|
+
createResourceParams$7(config);
|
|
420
422
|
return select$c();
|
|
421
423
|
}
|
|
422
424
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
@@ -434,7 +436,7 @@ function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
|
434
436
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
435
437
|
}
|
|
436
438
|
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
437
|
-
const resourceParams = createResourceParams$7();
|
|
439
|
+
const resourceParams = createResourceParams$7(config);
|
|
438
440
|
const request = createResourceRequest$7();
|
|
439
441
|
return luvio.dispatchResourceRequest(request, options)
|
|
440
442
|
.then((response) => {
|
|
@@ -453,8 +455,8 @@ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext
|
|
|
453
455
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
454
456
|
const { luvio, config } = context;
|
|
455
457
|
const selector = {
|
|
456
|
-
recordId: keyBuilder$b(),
|
|
457
|
-
node: adapterFragment$4(),
|
|
458
|
+
recordId: keyBuilder$b(luvio, config),
|
|
459
|
+
node: adapterFragment$4(luvio, config),
|
|
458
460
|
variables: {},
|
|
459
461
|
};
|
|
460
462
|
const cacheSnapshot = storeLookup(selector, {
|
|
@@ -764,28 +766,18 @@ function createResourceRequest$6(config) {
|
|
|
764
766
|
|
|
765
767
|
const adapterName$6 = 'getMappings';
|
|
766
768
|
const getMappings_ConfigPropertyMetadata = [
|
|
767
|
-
generateParamConfigMetadata('epn', false),
|
|
768
|
-
generateParamConfigMetadata('webstoreId', false),
|
|
769
|
+
generateParamConfigMetadata('epn', false, 1 /* QueryParameter */, 0 /* String */),
|
|
770
|
+
generateParamConfigMetadata('webstoreId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
769
771
|
];
|
|
770
772
|
const getMappings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getMappings_ConfigPropertyMetadata);
|
|
771
|
-
|
|
772
|
-
const resourceParams = {
|
|
773
|
-
queryParams: {
|
|
774
|
-
epn: config.epn, webstoreId: config.webstoreId
|
|
775
|
-
}
|
|
776
|
-
};
|
|
777
|
-
return resourceParams;
|
|
778
|
-
}
|
|
773
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$8(getMappings_ConfigPropertyMetadata);
|
|
779
774
|
function keyBuilder$8(luvio, config) {
|
|
780
775
|
const resourceParams = createResourceParams$6(config);
|
|
781
776
|
return keyBuilder$9(luvio, resourceParams);
|
|
782
777
|
}
|
|
783
778
|
function typeCheckConfig$6(untrustedConfig) {
|
|
784
779
|
const config = {};
|
|
785
|
-
|
|
786
|
-
epn: 0 /* String */,
|
|
787
|
-
webstoreId: 0 /* String */,
|
|
788
|
-
});
|
|
780
|
+
typeCheckConfig$8(untrustedConfig, config, getMappings_ConfigPropertyMetadata);
|
|
789
781
|
return config;
|
|
790
782
|
}
|
|
791
783
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -898,28 +890,16 @@ function createResourceRequest$5(config) {
|
|
|
898
890
|
|
|
899
891
|
const adapterName$5 = 'createMapping';
|
|
900
892
|
const createMapping_ConfigPropertyMetadata = [
|
|
901
|
-
generateParamConfigMetadata('epn', true),
|
|
902
|
-
generateParamConfigMetadata('id', true),
|
|
903
|
-
generateParamConfigMetadata('providerName', true),
|
|
904
|
-
generateParamConfigMetadata('webstoreId', true),
|
|
893
|
+
generateParamConfigMetadata('epn', true, 2 /* Body */, 0 /* String */),
|
|
894
|
+
generateParamConfigMetadata('id', true, 2 /* Body */, 0 /* String */),
|
|
895
|
+
generateParamConfigMetadata('providerName', true, 2 /* Body */, 0 /* String */),
|
|
896
|
+
generateParamConfigMetadata('webstoreId', true, 2 /* Body */, 0 /* String */),
|
|
905
897
|
];
|
|
906
898
|
const createMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createMapping_ConfigPropertyMetadata);
|
|
907
|
-
|
|
908
|
-
const resourceParams = {
|
|
909
|
-
body: {
|
|
910
|
-
epn: config.epn, id: config.id, providerName: config.providerName, webstoreId: config.webstoreId
|
|
911
|
-
}
|
|
912
|
-
};
|
|
913
|
-
return resourceParams;
|
|
914
|
-
}
|
|
899
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$8(createMapping_ConfigPropertyMetadata);
|
|
915
900
|
function typeCheckConfig$5(untrustedConfig) {
|
|
916
901
|
const config = {};
|
|
917
|
-
|
|
918
|
-
epn: 0 /* String */,
|
|
919
|
-
id: 0 /* String */,
|
|
920
|
-
providerName: 0 /* String */,
|
|
921
|
-
webstoreId: 0 /* String */,
|
|
922
|
-
});
|
|
902
|
+
typeCheckConfig$8(untrustedConfig, config, createMapping_ConfigPropertyMetadata);
|
|
923
903
|
return config;
|
|
924
904
|
}
|
|
925
905
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -997,22 +977,13 @@ function createResourceRequest$4(config) {
|
|
|
997
977
|
|
|
998
978
|
const adapterName$4 = 'deleteMapping';
|
|
999
979
|
const deleteMapping_ConfigPropertyMetadata = [
|
|
1000
|
-
generateParamConfigMetadata('mappingId', true),
|
|
980
|
+
generateParamConfigMetadata('mappingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1001
981
|
];
|
|
1002
982
|
const deleteMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, deleteMapping_ConfigPropertyMetadata);
|
|
1003
|
-
|
|
1004
|
-
const resourceParams = {
|
|
1005
|
-
urlParams: {
|
|
1006
|
-
mappingId: config.mappingId
|
|
1007
|
-
}
|
|
1008
|
-
};
|
|
1009
|
-
return resourceParams;
|
|
1010
|
-
}
|
|
983
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$8(deleteMapping_ConfigPropertyMetadata);
|
|
1011
984
|
function typeCheckConfig$4(untrustedConfig) {
|
|
1012
985
|
const config = {};
|
|
1013
|
-
|
|
1014
|
-
mappingId: 0 /* String */,
|
|
1015
|
-
});
|
|
986
|
+
typeCheckConfig$8(untrustedConfig, config, deleteMapping_ConfigPropertyMetadata);
|
|
1016
987
|
return config;
|
|
1017
988
|
}
|
|
1018
989
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -1120,26 +1091,17 @@ function createResourceRequestFromRepresentation$1(representation) {
|
|
|
1120
1091
|
|
|
1121
1092
|
const adapterName$3 = 'getMapping';
|
|
1122
1093
|
const getMapping_ConfigPropertyMetadata = [
|
|
1123
|
-
generateParamConfigMetadata('mappingId', true),
|
|
1094
|
+
generateParamConfigMetadata('mappingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1124
1095
|
];
|
|
1125
1096
|
const getMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getMapping_ConfigPropertyMetadata);
|
|
1126
|
-
|
|
1127
|
-
const resourceParams = {
|
|
1128
|
-
urlParams: {
|
|
1129
|
-
mappingId: config.mappingId
|
|
1130
|
-
}
|
|
1131
|
-
};
|
|
1132
|
-
return resourceParams;
|
|
1133
|
-
}
|
|
1097
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$8(getMapping_ConfigPropertyMetadata);
|
|
1134
1098
|
function keyBuilder$5(luvio, config) {
|
|
1135
1099
|
const resourceParams = createResourceParams$3(config);
|
|
1136
1100
|
return keyBuilder$6(luvio, resourceParams);
|
|
1137
1101
|
}
|
|
1138
1102
|
function typeCheckConfig$3(untrustedConfig) {
|
|
1139
1103
|
const config = {};
|
|
1140
|
-
|
|
1141
|
-
mappingId: 0 /* String */,
|
|
1142
|
-
});
|
|
1104
|
+
typeCheckConfig$8(untrustedConfig, config, getMapping_ConfigPropertyMetadata);
|
|
1143
1105
|
return config;
|
|
1144
1106
|
}
|
|
1145
1107
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -1286,33 +1248,17 @@ function createResourceRequest$2(config) {
|
|
|
1286
1248
|
|
|
1287
1249
|
const adapterName$2 = 'updateMapping';
|
|
1288
1250
|
const updateMapping_ConfigPropertyMetadata = [
|
|
1289
|
-
generateParamConfigMetadata('mappingId', true),
|
|
1290
|
-
generateParamConfigMetadata('epn', true),
|
|
1291
|
-
generateParamConfigMetadata('id', true),
|
|
1292
|
-
generateParamConfigMetadata('providerName', true),
|
|
1293
|
-
generateParamConfigMetadata('webstoreId', true),
|
|
1251
|
+
generateParamConfigMetadata('mappingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1252
|
+
generateParamConfigMetadata('epn', true, 2 /* Body */, 0 /* String */),
|
|
1253
|
+
generateParamConfigMetadata('id', true, 2 /* Body */, 0 /* String */),
|
|
1254
|
+
generateParamConfigMetadata('providerName', true, 2 /* Body */, 0 /* String */),
|
|
1255
|
+
generateParamConfigMetadata('webstoreId', true, 2 /* Body */, 0 /* String */),
|
|
1294
1256
|
];
|
|
1295
1257
|
const updateMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, updateMapping_ConfigPropertyMetadata);
|
|
1296
|
-
|
|
1297
|
-
const resourceParams = {
|
|
1298
|
-
urlParams: {
|
|
1299
|
-
mappingId: config.mappingId
|
|
1300
|
-
},
|
|
1301
|
-
body: {
|
|
1302
|
-
epn: config.epn, id: config.id, providerName: config.providerName, webstoreId: config.webstoreId
|
|
1303
|
-
}
|
|
1304
|
-
};
|
|
1305
|
-
return resourceParams;
|
|
1306
|
-
}
|
|
1258
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$8(updateMapping_ConfigPropertyMetadata);
|
|
1307
1259
|
function typeCheckConfig$2(untrustedConfig) {
|
|
1308
1260
|
const config = {};
|
|
1309
|
-
|
|
1310
|
-
mappingId: 0 /* String */,
|
|
1311
|
-
epn: 0 /* String */,
|
|
1312
|
-
id: 0 /* String */,
|
|
1313
|
-
providerName: 0 /* String */,
|
|
1314
|
-
webstoreId: 0 /* String */,
|
|
1315
|
-
});
|
|
1261
|
+
typeCheckConfig$8(untrustedConfig, config, updateMapping_ConfigPropertyMetadata);
|
|
1316
1262
|
return config;
|
|
1317
1263
|
}
|
|
1318
1264
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -1855,28 +1801,18 @@ function createResourceRequest$1(config) {
|
|
|
1855
1801
|
|
|
1856
1802
|
const adapterName$1 = 'getProviders';
|
|
1857
1803
|
const getProviders_ConfigPropertyMetadata = [
|
|
1858
|
-
generateParamConfigMetadata('effectiveMappingsWebstoreId', false),
|
|
1859
|
-
generateParamConfigMetadata('epn', false),
|
|
1804
|
+
generateParamConfigMetadata('effectiveMappingsWebstoreId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1805
|
+
generateParamConfigMetadata('epn', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1860
1806
|
];
|
|
1861
1807
|
const getProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getProviders_ConfigPropertyMetadata);
|
|
1862
|
-
|
|
1863
|
-
const resourceParams = {
|
|
1864
|
-
queryParams: {
|
|
1865
|
-
effectiveMappingsWebstoreId: config.effectiveMappingsWebstoreId, epn: config.epn
|
|
1866
|
-
}
|
|
1867
|
-
};
|
|
1868
|
-
return resourceParams;
|
|
1869
|
-
}
|
|
1808
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$8(getProviders_ConfigPropertyMetadata);
|
|
1870
1809
|
function keyBuilder$2(luvio, config) {
|
|
1871
1810
|
const resourceParams = createResourceParams$1(config);
|
|
1872
1811
|
return keyBuilder$3(luvio, resourceParams);
|
|
1873
1812
|
}
|
|
1874
1813
|
function typeCheckConfig$1(untrustedConfig) {
|
|
1875
1814
|
const config = {};
|
|
1876
|
-
|
|
1877
|
-
effectiveMappingsWebstoreId: 0 /* String */,
|
|
1878
|
-
epn: 0 /* String */,
|
|
1879
|
-
});
|
|
1815
|
+
typeCheckConfig$8(untrustedConfig, config, getProviders_ConfigPropertyMetadata);
|
|
1880
1816
|
return config;
|
|
1881
1817
|
}
|
|
1882
1818
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -2013,26 +1949,17 @@ function createResourceRequestFromRepresentation(representation) {
|
|
|
2013
1949
|
|
|
2014
1950
|
const adapterName = 'getProvider';
|
|
2015
1951
|
const getProvider_ConfigPropertyMetadata = [
|
|
2016
|
-
generateParamConfigMetadata('providerId', true),
|
|
1952
|
+
generateParamConfigMetadata('providerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2017
1953
|
];
|
|
2018
1954
|
const getProvider_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getProvider_ConfigPropertyMetadata);
|
|
2019
|
-
|
|
2020
|
-
const resourceParams = {
|
|
2021
|
-
urlParams: {
|
|
2022
|
-
providerId: config.providerId
|
|
2023
|
-
}
|
|
2024
|
-
};
|
|
2025
|
-
return resourceParams;
|
|
2026
|
-
}
|
|
1955
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$8(getProvider_ConfigPropertyMetadata);
|
|
2027
1956
|
function keyBuilder(luvio, config) {
|
|
2028
1957
|
const resourceParams = createResourceParams(config);
|
|
2029
1958
|
return keyBuilder$1(luvio, resourceParams);
|
|
2030
1959
|
}
|
|
2031
1960
|
function typeCheckConfig(untrustedConfig) {
|
|
2032
1961
|
const config = {};
|
|
2033
|
-
|
|
2034
|
-
providerId: 0 /* String */,
|
|
2035
|
-
});
|
|
1962
|
+
typeCheckConfig$8(untrustedConfig, config, getProvider_ConfigPropertyMetadata);
|
|
2036
1963
|
return config;
|
|
2037
1964
|
}
|
|
2038
1965
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -2217,4 +2144,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2217
2144
|
});
|
|
2218
2145
|
|
|
2219
2146
|
export { createMapping, deleteMapping, getExtensions, getExtensions_imperative, getMapping, getMappingNotifyChange, getMapping_imperative, getMappings, getMappings_imperative, getProvider, getProviderNotifyChange, getProvider_imperative, getProviders, getProviders_imperative, notifyMappingUpdateAvailable, updateMapping };
|
|
2220
|
-
// version: 1.
|
|
2147
|
+
// version: 1.216.0-1d57d45fe
|