@salesforce/lds-adapters-commerce-catalog 1.213.0 → 1.213.2
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-catalog.js +42 -83
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/adapters/getProduct.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getProductCategoryPath.d.ts +3 -2
- package/package.json +1 -1
- package/sfdc/index.js +43 -84
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, deepFreeze, typeCheckScalars, StoreKeyMap, typeCheckArrayOfScalars } from '@luvio/engine';
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2, typeCheckScalars, StoreKeyMap, typeCheckArrayOfScalars } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -48,6 +48,24 @@ const snapshotRefreshOptions = {
|
|
|
48
48
|
},
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
+
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
52
|
+
return {
|
|
53
|
+
name,
|
|
54
|
+
required,
|
|
55
|
+
coerceFn,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
59
|
+
const required = paramsMeta.filter(p => p.required).map(p => p.name);
|
|
60
|
+
const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
|
|
61
|
+
return {
|
|
62
|
+
displayName,
|
|
63
|
+
parameters: {
|
|
64
|
+
required,
|
|
65
|
+
optional,
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
51
69
|
const keyPrefix = 'Commerce';
|
|
52
70
|
|
|
53
71
|
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
@@ -175,26 +193,8 @@ const ingest$1 = function ProductCategoryPathRepresentationIngest(input, path, l
|
|
|
175
193
|
}
|
|
176
194
|
}
|
|
177
195
|
const key = path.fullPath;
|
|
178
|
-
const existingRecord = store.readEntry(key);
|
|
179
196
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
180
|
-
|
|
181
|
-
fullPath: key,
|
|
182
|
-
parent: path.parent,
|
|
183
|
-
propertyName: path.propertyName,
|
|
184
|
-
ttl: ttlToUse
|
|
185
|
-
});
|
|
186
|
-
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
187
|
-
luvio.storePublish(key, incomingRecord);
|
|
188
|
-
}
|
|
189
|
-
if (ttlToUse !== undefined) {
|
|
190
|
-
const storeMetadataParams = {
|
|
191
|
-
ttl: ttlToUse,
|
|
192
|
-
namespace: "Commerce",
|
|
193
|
-
version: VERSION$1,
|
|
194
|
-
representationName: RepresentationType$1,
|
|
195
|
-
};
|
|
196
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
197
|
-
}
|
|
197
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "Commerce", VERSION$1, RepresentationType$1, equals$1);
|
|
198
198
|
return createLink(key);
|
|
199
199
|
};
|
|
200
200
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -253,13 +253,12 @@ function createResourceRequest$1(config) {
|
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
const
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
};
|
|
256
|
+
const adapterName$1 = 'getProductCategoryPath';
|
|
257
|
+
const getProductCategoryPath_ConfigPropertyMetadata = [
|
|
258
|
+
generateParamConfigMetadata('productCategoryId', true),
|
|
259
|
+
generateParamConfigMetadata('webstoreId', true),
|
|
260
|
+
];
|
|
261
|
+
const getProductCategoryPath_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getProductCategoryPath_ConfigPropertyMetadata);
|
|
263
262
|
function createResourceParams$1(config) {
|
|
264
263
|
const resourceParams = {
|
|
265
264
|
urlParams: {
|
|
@@ -326,21 +325,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
326
325
|
});
|
|
327
326
|
}
|
|
328
327
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
329
|
-
|
|
330
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
331
|
-
const dispatchOptions = {
|
|
332
|
-
resourceRequestContext: {
|
|
333
|
-
requestCorrelator,
|
|
334
|
-
luvioRequestMethod: undefined,
|
|
335
|
-
},
|
|
336
|
-
eventObservers
|
|
337
|
-
};
|
|
338
|
-
if (networkPriority !== 'normal') {
|
|
339
|
-
dispatchOptions.overrides = {
|
|
340
|
-
priority: networkPriority
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
|
|
328
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
344
329
|
}
|
|
345
330
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
346
331
|
const { luvio, config } = context;
|
|
@@ -665,26 +650,8 @@ const ingest = function ProductDetailRepresentationIngest(input, path, luvio, st
|
|
|
665
650
|
}
|
|
666
651
|
}
|
|
667
652
|
const key = path.fullPath;
|
|
668
|
-
const existingRecord = store.readEntry(key);
|
|
669
653
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
670
|
-
|
|
671
|
-
fullPath: key,
|
|
672
|
-
parent: path.parent,
|
|
673
|
-
propertyName: path.propertyName,
|
|
674
|
-
ttl: ttlToUse
|
|
675
|
-
});
|
|
676
|
-
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
677
|
-
luvio.storePublish(key, incomingRecord);
|
|
678
|
-
}
|
|
679
|
-
if (ttlToUse !== undefined) {
|
|
680
|
-
const storeMetadataParams = {
|
|
681
|
-
ttl: ttlToUse,
|
|
682
|
-
namespace: "Commerce",
|
|
683
|
-
version: VERSION,
|
|
684
|
-
representationName: RepresentationType,
|
|
685
|
-
};
|
|
686
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
687
|
-
}
|
|
654
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "Commerce", VERSION, RepresentationType, equals);
|
|
688
655
|
return createLink(key);
|
|
689
656
|
};
|
|
690
657
|
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -743,13 +710,19 @@ function createResourceRequest(config) {
|
|
|
743
710
|
};
|
|
744
711
|
}
|
|
745
712
|
|
|
746
|
-
const
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
713
|
+
const adapterName = 'getProduct';
|
|
714
|
+
const getProduct_ConfigPropertyMetadata = [
|
|
715
|
+
generateParamConfigMetadata('productId', true),
|
|
716
|
+
generateParamConfigMetadata('webstoreId', true),
|
|
717
|
+
generateParamConfigMetadata('effectiveAccountId', false),
|
|
718
|
+
generateParamConfigMetadata('excludeEntitlement', false),
|
|
719
|
+
generateParamConfigMetadata('excludeFields', false),
|
|
720
|
+
generateParamConfigMetadata('excludeMedia', false),
|
|
721
|
+
generateParamConfigMetadata('excludePrimaryProductCategory', false),
|
|
722
|
+
generateParamConfigMetadata('fields', false),
|
|
723
|
+
generateParamConfigMetadata('mediaGroups', false),
|
|
724
|
+
];
|
|
725
|
+
const getProduct_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getProduct_ConfigPropertyMetadata);
|
|
753
726
|
function createResourceParams(config) {
|
|
754
727
|
const resourceParams = {
|
|
755
728
|
urlParams: {
|
|
@@ -828,21 +801,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
828
801
|
});
|
|
829
802
|
}
|
|
830
803
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
831
|
-
|
|
832
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
833
|
-
const dispatchOptions = {
|
|
834
|
-
resourceRequestContext: {
|
|
835
|
-
requestCorrelator,
|
|
836
|
-
luvioRequestMethod: undefined,
|
|
837
|
-
},
|
|
838
|
-
eventObservers
|
|
839
|
-
};
|
|
840
|
-
if (networkPriority !== 'normal') {
|
|
841
|
-
dispatchOptions.overrides = {
|
|
842
|
-
priority: networkPriority
|
|
843
|
-
};
|
|
844
|
-
}
|
|
845
|
-
return buildNetworkSnapshot(luvio, config, dispatchOptions);
|
|
804
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
846
805
|
}
|
|
847
806
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
848
807
|
const { luvio, config } = context;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot } from '@luvio/engine';
|
|
1
|
+
import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot, AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata } from '@luvio/engine';
|
|
2
2
|
export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
|
|
3
3
|
declare const ObjectKeys: {
|
|
4
4
|
(o: object): string[];
|
|
@@ -57,4 +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;
|
|
61
|
+
export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
|
|
60
62
|
export declare const keyPrefix = "Commerce";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
2
3
|
import { ResourceRequestConfig as resources_getCommerceWebstoresProductsByProductIdAndWebstoreId_ResourceRequestConfig } from '../resources/getCommerceWebstoresProductsByProductIdAndWebstoreId';
|
|
3
|
-
import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
4
4
|
import { ProductDetailRepresentation as types_ProductDetailRepresentation_ProductDetailRepresentation } from '../types/ProductDetailRepresentation';
|
|
5
5
|
export declare const adapterName = "getProduct";
|
|
6
|
+
export declare const getProduct_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getProduct_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetProductConfig {
|
|
8
9
|
productId: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
2
3
|
import { ResourceRequestConfig as resources_getCommerceWebstoresProductCategoryPathProductCategoriesByProductCategoryIdAndWebstoreId_ResourceRequestConfig } from '../resources/getCommerceWebstoresProductCategoryPathProductCategoriesByProductCategoryIdAndWebstoreId';
|
|
3
|
-
import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
4
4
|
import { ProductCategoryPathRepresentation as types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation } from '../types/ProductCategoryPathRepresentation';
|
|
5
5
|
export declare const adapterName = "getProductCategoryPath";
|
|
6
|
+
export declare const getProductCategoryPath_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getProductCategoryPath_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetProductCategoryPathConfig {
|
|
8
9
|
productCategoryId: string;
|
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, deepFreeze, typeCheckScalars, typeCheckArrayOfScalars, StoreKeyMap } from 'force/luvioEngine';
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2, typeCheckScalars, typeCheckArrayOfScalars, StoreKeyMap } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -58,6 +58,24 @@ const snapshotRefreshOptions = {
|
|
|
58
58
|
},
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
+
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
62
|
+
return {
|
|
63
|
+
name,
|
|
64
|
+
required,
|
|
65
|
+
coerceFn,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
69
|
+
const required = paramsMeta.filter(p => p.required).map(p => p.name);
|
|
70
|
+
const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
|
|
71
|
+
return {
|
|
72
|
+
displayName,
|
|
73
|
+
parameters: {
|
|
74
|
+
required,
|
|
75
|
+
optional,
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
61
79
|
const keyPrefix = 'Commerce';
|
|
62
80
|
|
|
63
81
|
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
@@ -371,26 +389,8 @@ const ingest$1 = function ProductCategoryPathRepresentationIngest(input, path, l
|
|
|
371
389
|
}
|
|
372
390
|
}
|
|
373
391
|
const key = path.fullPath;
|
|
374
|
-
const existingRecord = store.readEntry(key);
|
|
375
392
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
376
|
-
|
|
377
|
-
fullPath: key,
|
|
378
|
-
parent: path.parent,
|
|
379
|
-
propertyName: path.propertyName,
|
|
380
|
-
ttl: ttlToUse
|
|
381
|
-
});
|
|
382
|
-
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
383
|
-
luvio.storePublish(key, incomingRecord);
|
|
384
|
-
}
|
|
385
|
-
if (ttlToUse !== undefined) {
|
|
386
|
-
const storeMetadataParams = {
|
|
387
|
-
ttl: ttlToUse,
|
|
388
|
-
namespace: "Commerce",
|
|
389
|
-
version: VERSION$1,
|
|
390
|
-
representationName: RepresentationType$1,
|
|
391
|
-
};
|
|
392
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
393
|
-
}
|
|
393
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "Commerce", VERSION$1, RepresentationType$1, equals$1);
|
|
394
394
|
return createLink(key);
|
|
395
395
|
};
|
|
396
396
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -517,26 +517,8 @@ const ingest = function ProductDetailRepresentationIngest(input, path, luvio, st
|
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
const key = path.fullPath;
|
|
520
|
-
const existingRecord = store.readEntry(key);
|
|
521
520
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
522
|
-
|
|
523
|
-
fullPath: key,
|
|
524
|
-
parent: path.parent,
|
|
525
|
-
propertyName: path.propertyName,
|
|
526
|
-
ttl: ttlToUse
|
|
527
|
-
});
|
|
528
|
-
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
529
|
-
luvio.storePublish(key, incomingRecord);
|
|
530
|
-
}
|
|
531
|
-
if (ttlToUse !== undefined) {
|
|
532
|
-
const storeMetadataParams = {
|
|
533
|
-
ttl: ttlToUse,
|
|
534
|
-
namespace: "Commerce",
|
|
535
|
-
version: VERSION,
|
|
536
|
-
representationName: RepresentationType,
|
|
537
|
-
};
|
|
538
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
539
|
-
}
|
|
521
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "Commerce", VERSION, RepresentationType, equals);
|
|
540
522
|
return createLink(key);
|
|
541
523
|
};
|
|
542
524
|
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -595,13 +577,19 @@ function createResourceRequest$1(config) {
|
|
|
595
577
|
};
|
|
596
578
|
}
|
|
597
579
|
|
|
598
|
-
const
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
580
|
+
const adapterName$1 = 'getProduct';
|
|
581
|
+
const getProduct_ConfigPropertyMetadata = [
|
|
582
|
+
generateParamConfigMetadata('productId', true),
|
|
583
|
+
generateParamConfigMetadata('webstoreId', true),
|
|
584
|
+
generateParamConfigMetadata('effectiveAccountId', false),
|
|
585
|
+
generateParamConfigMetadata('excludeEntitlement', false),
|
|
586
|
+
generateParamConfigMetadata('excludeFields', false),
|
|
587
|
+
generateParamConfigMetadata('excludeMedia', false),
|
|
588
|
+
generateParamConfigMetadata('excludePrimaryProductCategory', false),
|
|
589
|
+
generateParamConfigMetadata('fields', false),
|
|
590
|
+
generateParamConfigMetadata('mediaGroups', false),
|
|
591
|
+
];
|
|
592
|
+
const getProduct_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getProduct_ConfigPropertyMetadata);
|
|
605
593
|
function createResourceParams$1(config) {
|
|
606
594
|
const resourceParams = {
|
|
607
595
|
urlParams: {
|
|
@@ -680,21 +668,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
680
668
|
});
|
|
681
669
|
}
|
|
682
670
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
683
|
-
|
|
684
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
685
|
-
const dispatchOptions = {
|
|
686
|
-
resourceRequestContext: {
|
|
687
|
-
requestCorrelator,
|
|
688
|
-
luvioRequestMethod: undefined,
|
|
689
|
-
},
|
|
690
|
-
eventObservers
|
|
691
|
-
};
|
|
692
|
-
if (networkPriority !== 'normal') {
|
|
693
|
-
dispatchOptions.overrides = {
|
|
694
|
-
priority: networkPriority
|
|
695
|
-
};
|
|
696
|
-
}
|
|
697
|
-
return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
|
|
671
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
698
672
|
}
|
|
699
673
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
700
674
|
const { luvio, config } = context;
|
|
@@ -765,13 +739,12 @@ function createResourceRequest(config) {
|
|
|
765
739
|
};
|
|
766
740
|
}
|
|
767
741
|
|
|
768
|
-
const
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
};
|
|
742
|
+
const adapterName = 'getProductCategoryPath';
|
|
743
|
+
const getProductCategoryPath_ConfigPropertyMetadata = [
|
|
744
|
+
generateParamConfigMetadata('productCategoryId', true),
|
|
745
|
+
generateParamConfigMetadata('webstoreId', true),
|
|
746
|
+
];
|
|
747
|
+
const getProductCategoryPath_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getProductCategoryPath_ConfigPropertyMetadata);
|
|
775
748
|
function createResourceParams(config) {
|
|
776
749
|
const resourceParams = {
|
|
777
750
|
urlParams: {
|
|
@@ -838,21 +811,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
838
811
|
});
|
|
839
812
|
}
|
|
840
813
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
841
|
-
|
|
842
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
843
|
-
const dispatchOptions = {
|
|
844
|
-
resourceRequestContext: {
|
|
845
|
-
requestCorrelator,
|
|
846
|
-
luvioRequestMethod: undefined,
|
|
847
|
-
},
|
|
848
|
-
eventObservers
|
|
849
|
-
};
|
|
850
|
-
if (networkPriority !== 'normal') {
|
|
851
|
-
dispatchOptions.overrides = {
|
|
852
|
-
priority: networkPriority
|
|
853
|
-
};
|
|
854
|
-
}
|
|
855
|
-
return buildNetworkSnapshot(luvio, config, dispatchOptions);
|
|
814
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
856
815
|
}
|
|
857
816
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
858
817
|
const { luvio, config } = context;
|
|
@@ -907,4 +866,4 @@ withDefaultLuvio((luvio) => {
|
|
|
907
866
|
});
|
|
908
867
|
|
|
909
868
|
export { getProduct, getProductCategoryPath, getProductCategoryPath_imperative, getProduct_imperative };
|
|
910
|
-
// version: 1.213.
|
|
869
|
+
// version: 1.213.2-1eb996209
|