@salesforce/lds-adapters-commerce-catalog 1.124.2 → 1.124.4

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.
Files changed (25) hide show
  1. package/dist/es/es2018/commerce-catalog.js +923 -923
  2. package/dist/{types → es/es2018/types}/src/generated/adapters/adapter-utils.d.ts +66 -66
  3. package/dist/{types → es/es2018/types}/src/generated/adapters/getProduct.d.ts +34 -34
  4. package/dist/{types → es/es2018/types}/src/generated/adapters/getProductCategoryPath.d.ts +27 -27
  5. package/dist/{types → es/es2018/types}/src/generated/artifacts/main.d.ts +2 -2
  6. package/dist/{types → es/es2018/types}/src/generated/artifacts/sfdc.d.ts +5 -5
  7. package/dist/{types → es/es2018/types}/src/generated/resources/getCommerceWebstoresProductCategoriesByProductCategoryIdAndWebstoreId.d.ts +23 -23
  8. package/dist/{types → es/es2018/types}/src/generated/resources/getCommerceWebstoresProductCategoryPathProductCategoriesByProductCategoryIdAndWebstoreId.d.ts +16 -16
  9. package/dist/{types → es/es2018/types}/src/generated/resources/getCommerceWebstoresProductsByProductIdAndWebstoreId.d.ts +25 -25
  10. package/dist/{types → es/es2018/types}/src/generated/types/ProductCategoryDetailRepresentation.d.ts +45 -45
  11. package/dist/{types → es/es2018/types}/src/generated/types/ProductCategoryMediaGroupRepresentation.d.ts +42 -42
  12. package/dist/{types → es/es2018/types}/src/generated/types/ProductCategoryMediaRepresentation.d.ts +47 -47
  13. package/dist/{types → es/es2018/types}/src/generated/types/ProductCategoryPathRepresentation.d.ts +30 -30
  14. package/dist/{types → es/es2018/types}/src/generated/types/ProductCategoryRepresentation.d.ts +35 -35
  15. package/dist/{types → es/es2018/types}/src/generated/types/ProductDetailRepresentation.d.ts +50 -50
  16. package/dist/{types → es/es2018/types}/src/generated/types/ProductEntitlementRepresentation.d.ts +29 -29
  17. package/dist/{types → es/es2018/types}/src/generated/types/ProductMediaContentDocumentRepresentation.d.ts +41 -41
  18. package/dist/{types → es/es2018/types}/src/generated/types/ProductMediaGroupRepresentation.d.ts +42 -42
  19. package/dist/{types → es/es2018/types}/src/generated/types/ProductMediaRepresentation.d.ts +47 -47
  20. package/dist/{types → es/es2018/types}/src/generated/types/type-utils.d.ts +39 -39
  21. package/package.json +3 -3
  22. package/sfdc/index.d.ts +1 -1
  23. package/sfdc/index.js +951 -951
  24. package/dist/umd/es2018/commerce-catalog.js +0 -965
  25. package/dist/umd/es5/commerce-catalog.js +0 -976
@@ -1,66 +1,66 @@
1
- import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot } from '@luvio/engine';
2
- export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
3
- declare const ObjectKeys: {
4
- (o: object): string[];
5
- (o: {}): string[];
6
- }, ObjectFreeze: {
7
- <T extends Function>(f: T): T;
8
- <T_1 extends {
9
- [idx: string]: object | U | null | undefined;
10
- }, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
11
- <T_2>(o: T_2): Readonly<T_2>;
12
- }, ObjectCreate: {
13
- (o: object | null): any;
14
- (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
15
- };
16
- export { ObjectFreeze, ObjectCreate, ObjectKeys };
17
- export declare const ArrayIsArray: (arg: any) => arg is any[];
18
- export declare const ArrayPrototypePush: (...items: any[]) => number;
19
- export interface AdapterValidationConfig {
20
- displayName: string;
21
- parameters: {
22
- required: string[];
23
- optional: string[];
24
- unsupported?: string[];
25
- };
26
- }
27
- /**
28
- * Validates an adapter config is well-formed.
29
- * @param config The config to validate.
30
- * @param adapter The adapter validation configuration.
31
- * @param oneOf The keys the config must contain at least one of.
32
- * @throws A TypeError if config doesn't satisfy the adapter's config validation.
33
- */
34
- export declare function validateConfig<T>(config: Untrusted<T>, adapter: AdapterValidationConfig, oneOf?: string[]): void;
35
- export declare function untrustedIsObject<Base>(untrusted: unknown): untrusted is Untrusted<Base>;
36
- export type UncoercedConfiguration<Base, Options extends {
37
- [key in keyof Base]?: any;
38
- }> = {
39
- [Key in keyof Base]?: Base[Key] | Options[Key];
40
- };
41
- export type Untrusted<Base> = Partial<Base>;
42
- export declare function areRequiredParametersPresent<T>(config: any, configPropertyNames: AdapterValidationConfig): config is T;
43
- export declare function refreshable<C, D, R>(adapter: $64$luvio_engine_Adapter<C, D>, resolve: (config: unknown) => Promise<$64$luvio_engine_Snapshot<R>>): $64$luvio_engine_Adapter<C, D>;
44
- export declare const SNAPSHOT_STATE_FULFILLED = "Fulfilled";
45
- export declare const SNAPSHOT_STATE_UNFULFILLED = "Unfulfilled";
46
- export declare const snapshotRefreshOptions: {
47
- overrides: {
48
- headers: {
49
- 'Cache-Control': string;
50
- };
51
- };
52
- };
53
- /**
54
- * A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
55
- * This is needed because insertion order for JSON.stringify(object) affects output:
56
- * JSON.stringify({a: 1, b: 2})
57
- * "{"a":1,"b":2}"
58
- * JSON.stringify({b: 2, a: 1})
59
- * "{"b":2,"a":1}"
60
- * @param data Data to be JSON-stringified.
61
- * @returns JSON.stringified value with consistent ordering of keys.
62
- */
63
- export declare function stableJSONStringify(node: any): string | undefined;
64
- export declare function getFetchResponseStatusText(status: number): string;
65
- export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
66
- export declare const keyPrefix = "Commerce";
1
+ import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot } from '@luvio/engine';
2
+ export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
3
+ declare const ObjectKeys: {
4
+ (o: object): string[];
5
+ (o: {}): string[];
6
+ }, ObjectFreeze: {
7
+ <T extends Function>(f: T): T;
8
+ <T_1 extends {
9
+ [idx: string]: object | U | null | undefined;
10
+ }, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
11
+ <T_2>(o: T_2): Readonly<T_2>;
12
+ }, ObjectCreate: {
13
+ (o: object | null): any;
14
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
15
+ };
16
+ export { ObjectFreeze, ObjectCreate, ObjectKeys };
17
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
18
+ export declare const ArrayPrototypePush: (...items: any[]) => number;
19
+ export interface AdapterValidationConfig {
20
+ displayName: string;
21
+ parameters: {
22
+ required: string[];
23
+ optional: string[];
24
+ unsupported?: string[];
25
+ };
26
+ }
27
+ /**
28
+ * Validates an adapter config is well-formed.
29
+ * @param config The config to validate.
30
+ * @param adapter The adapter validation configuration.
31
+ * @param oneOf The keys the config must contain at least one of.
32
+ * @throws A TypeError if config doesn't satisfy the adapter's config validation.
33
+ */
34
+ export declare function validateConfig<T>(config: Untrusted<T>, adapter: AdapterValidationConfig, oneOf?: string[]): void;
35
+ export declare function untrustedIsObject<Base>(untrusted: unknown): untrusted is Untrusted<Base>;
36
+ export type UncoercedConfiguration<Base, Options extends {
37
+ [key in keyof Base]?: any;
38
+ }> = {
39
+ [Key in keyof Base]?: Base[Key] | Options[Key];
40
+ };
41
+ export type Untrusted<Base> = Partial<Base>;
42
+ export declare function areRequiredParametersPresent<T>(config: any, configPropertyNames: AdapterValidationConfig): config is T;
43
+ export declare function refreshable<C, D, R>(adapter: $64$luvio_engine_Adapter<C, D>, resolve: (config: unknown) => Promise<$64$luvio_engine_Snapshot<R>>): $64$luvio_engine_Adapter<C, D>;
44
+ export declare const SNAPSHOT_STATE_FULFILLED = "Fulfilled";
45
+ export declare const SNAPSHOT_STATE_UNFULFILLED = "Unfulfilled";
46
+ export declare const snapshotRefreshOptions: {
47
+ overrides: {
48
+ headers: {
49
+ 'Cache-Control': string;
50
+ };
51
+ };
52
+ };
53
+ /**
54
+ * A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
55
+ * This is needed because insertion order for JSON.stringify(object) affects output:
56
+ * JSON.stringify({a: 1, b: 2})
57
+ * "{"a":1,"b":2}"
58
+ * JSON.stringify({b: 2, a: 1})
59
+ * "{"b":2,"a":1}"
60
+ * @param data Data to be JSON-stringified.
61
+ * @returns JSON.stringified value with consistent ordering of keys.
62
+ */
63
+ export declare function stableJSONStringify(node: any): string | undefined;
64
+ export declare function getFetchResponseStatusText(status: number): string;
65
+ export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
66
+ export declare const keyPrefix = "Commerce";
@@ -1,34 +1,34 @@
1
- import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
2
- 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
- import { ProductDetailRepresentation as types_ProductDetailRepresentation_ProductDetailRepresentation } from '../types/ProductDetailRepresentation';
5
- export declare const adapterName = "getProduct";
6
- export declare const getProduct_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
7
- export interface GetProductConfig {
8
- productId: string;
9
- webstoreId: string;
10
- effectiveAccountId?: string;
11
- excludeEntitlement?: boolean;
12
- excludeFields?: boolean;
13
- excludeMedia?: boolean;
14
- excludePrimaryProductCategory?: boolean;
15
- fields?: Array<string>;
16
- mediaGroups?: Array<string>;
17
- }
18
- export declare function createResourceParams(config: GetProductConfig): resources_getCommerceWebstoresProductsByProductIdAndWebstoreId_ResourceRequestConfig;
19
- export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetProductConfig): string;
20
- export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetProductConfig): $64$luvio_engine_NormalizedKeyMetadata;
21
- export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetProductConfig>): adapter$45$utils_Untrusted<GetProductConfig>;
22
- export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetProductConfig | null;
23
- export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetProductConfig): $64$luvio_engine_Fragment;
24
- export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetProductConfig): $64$luvio_engine_Snapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, any>;
25
- export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetProductConfig, resourceParams: resources_getCommerceWebstoresProductsByProductIdAndWebstoreId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProductDetailRepresentation_ProductDetailRepresentation>): Promise<import("@luvio/engine").PendingSnapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, any> | import("@luvio/engine").FulfilledSnapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, {}>>;
26
- export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetProductConfig, resourceParams: resources_getCommerceWebstoresProductsByProductIdAndWebstoreId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
27
- export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetProductConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, any>>;
28
- export type BuildSnapshotContext = {
29
- luvio: $64$luvio_engine_Luvio;
30
- config: GetProductConfig;
31
- };
32
- export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, any>>;
33
- export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ProductDetailRepresentation_ProductDetailRepresentation>): $64$luvio_engine_Snapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, any>;
34
- export declare const getProductAdapterFactory: $64$luvio_engine_AdapterFactory<GetProductConfig, types_ProductDetailRepresentation_ProductDetailRepresentation>;
1
+ import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
2
+ 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
+ import { ProductDetailRepresentation as types_ProductDetailRepresentation_ProductDetailRepresentation } from '../types/ProductDetailRepresentation';
5
+ export declare const adapterName = "getProduct";
6
+ export declare const getProduct_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
7
+ export interface GetProductConfig {
8
+ productId: string;
9
+ webstoreId: string;
10
+ effectiveAccountId?: string;
11
+ excludeEntitlement?: boolean;
12
+ excludeFields?: boolean;
13
+ excludeMedia?: boolean;
14
+ excludePrimaryProductCategory?: boolean;
15
+ fields?: Array<string>;
16
+ mediaGroups?: Array<string>;
17
+ }
18
+ export declare function createResourceParams(config: GetProductConfig): resources_getCommerceWebstoresProductsByProductIdAndWebstoreId_ResourceRequestConfig;
19
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetProductConfig): string;
20
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetProductConfig): $64$luvio_engine_NormalizedKeyMetadata;
21
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetProductConfig>): adapter$45$utils_Untrusted<GetProductConfig>;
22
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetProductConfig | null;
23
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetProductConfig): $64$luvio_engine_Fragment;
24
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetProductConfig): $64$luvio_engine_Snapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, any>;
25
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetProductConfig, resourceParams: resources_getCommerceWebstoresProductsByProductIdAndWebstoreId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProductDetailRepresentation_ProductDetailRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, any>>;
26
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetProductConfig, resourceParams: resources_getCommerceWebstoresProductsByProductIdAndWebstoreId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
27
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetProductConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, any>>;
28
+ export type BuildSnapshotContext = {
29
+ luvio: $64$luvio_engine_Luvio;
30
+ config: GetProductConfig;
31
+ };
32
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, any>>;
33
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ProductDetailRepresentation_ProductDetailRepresentation>): $64$luvio_engine_Snapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, any>;
34
+ export declare const getProductAdapterFactory: $64$luvio_engine_AdapterFactory<GetProductConfig, types_ProductDetailRepresentation_ProductDetailRepresentation>;
@@ -1,27 +1,27 @@
1
- import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
2
- 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
- import { ProductCategoryPathRepresentation as types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation } from '../types/ProductCategoryPathRepresentation';
5
- export declare const adapterName = "getProductCategoryPath";
6
- export declare const getProductCategoryPath_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
7
- export interface GetProductCategoryPathConfig {
8
- productCategoryId: string;
9
- webstoreId: string;
10
- }
11
- export declare function createResourceParams(config: GetProductCategoryPathConfig): resources_getCommerceWebstoresProductCategoryPathProductCategoriesByProductCategoryIdAndWebstoreId_ResourceRequestConfig;
12
- export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetProductCategoryPathConfig): string;
13
- export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetProductCategoryPathConfig): $64$luvio_engine_NormalizedKeyMetadata;
14
- export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetProductCategoryPathConfig>): adapter$45$utils_Untrusted<GetProductCategoryPathConfig>;
15
- export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetProductCategoryPathConfig | null;
16
- export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetProductCategoryPathConfig): $64$luvio_engine_Fragment;
17
- export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetProductCategoryPathConfig): $64$luvio_engine_Snapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, any>;
18
- export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetProductCategoryPathConfig, resourceParams: resources_getCommerceWebstoresProductCategoryPathProductCategoriesByProductCategoryIdAndWebstoreId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation>): Promise<import("@luvio/engine").PendingSnapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, any> | import("@luvio/engine").FulfilledSnapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, {}>>;
19
- export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetProductCategoryPathConfig, resourceParams: resources_getCommerceWebstoresProductCategoryPathProductCategoriesByProductCategoryIdAndWebstoreId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
20
- export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetProductCategoryPathConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, any>>;
21
- export type BuildSnapshotContext = {
22
- luvio: $64$luvio_engine_Luvio;
23
- config: GetProductCategoryPathConfig;
24
- };
25
- export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, any>>;
26
- export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation>): $64$luvio_engine_Snapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, any>;
27
- export declare const getProductCategoryPathAdapterFactory: $64$luvio_engine_AdapterFactory<GetProductCategoryPathConfig, types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation>;
1
+ import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
2
+ 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
+ import { ProductCategoryPathRepresentation as types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation } from '../types/ProductCategoryPathRepresentation';
5
+ export declare const adapterName = "getProductCategoryPath";
6
+ export declare const getProductCategoryPath_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
7
+ export interface GetProductCategoryPathConfig {
8
+ productCategoryId: string;
9
+ webstoreId: string;
10
+ }
11
+ export declare function createResourceParams(config: GetProductCategoryPathConfig): resources_getCommerceWebstoresProductCategoryPathProductCategoriesByProductCategoryIdAndWebstoreId_ResourceRequestConfig;
12
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetProductCategoryPathConfig): string;
13
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetProductCategoryPathConfig): $64$luvio_engine_NormalizedKeyMetadata;
14
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetProductCategoryPathConfig>): adapter$45$utils_Untrusted<GetProductCategoryPathConfig>;
15
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetProductCategoryPathConfig | null;
16
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetProductCategoryPathConfig): $64$luvio_engine_Fragment;
17
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetProductCategoryPathConfig): $64$luvio_engine_Snapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, any>;
18
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetProductCategoryPathConfig, resourceParams: resources_getCommerceWebstoresProductCategoryPathProductCategoriesByProductCategoryIdAndWebstoreId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, any>>;
19
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetProductCategoryPathConfig, resourceParams: resources_getCommerceWebstoresProductCategoryPathProductCategoriesByProductCategoryIdAndWebstoreId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
20
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetProductCategoryPathConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, any>>;
21
+ export type BuildSnapshotContext = {
22
+ luvio: $64$luvio_engine_Luvio;
23
+ config: GetProductCategoryPathConfig;
24
+ };
25
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, any>>;
26
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation>): $64$luvio_engine_Snapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, any>;
27
+ export declare const getProductCategoryPathAdapterFactory: $64$luvio_engine_AdapterFactory<GetProductCategoryPathConfig, types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation>;
@@ -1,2 +1,2 @@
1
- export { getProductCategoryPathAdapterFactory } from '../adapters/getProductCategoryPath';
2
- export { getProductAdapterFactory } from '../adapters/getProduct';
1
+ export { getProductCategoryPathAdapterFactory } from '../adapters/getProductCategoryPath';
2
+ export { getProductAdapterFactory } from '../adapters/getProduct';
@@ -1,5 +1,5 @@
1
- declare let getProduct: any;
2
- declare let getProductCategoryPath: any;
3
- declare let getProduct_imperative: any;
4
- declare let getProductCategoryPath_imperative: any;
5
- export { getProduct, getProductCategoryPath, getProduct_imperative, getProductCategoryPath_imperative };
1
+ declare let getProduct: any;
2
+ declare let getProductCategoryPath: any;
3
+ declare let getProduct_imperative: any;
4
+ declare let getProductCategoryPath_imperative: any;
5
+ export { getProduct, getProductCategoryPath, getProduct_imperative, getProductCategoryPath_imperative };
@@ -1,23 +1,23 @@
1
- import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
- import { ProductCategoryDetailRepresentation as types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation } from '../types/ProductCategoryDetailRepresentation';
3
- export interface ResourceRequestConfig {
4
- urlParams: {
5
- productCategoryId: string;
6
- webstoreId: string;
7
- };
8
- queryParams: {
9
- effectiveAccountId?: string;
10
- excludeFields?: boolean;
11
- excludeMedia?: boolean;
12
- fields?: Array<string>;
13
- mediaGroups?: Array<string>;
14
- };
15
- }
16
- export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
17
- export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
18
- export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
19
- export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
20
- export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation, any>;
21
- export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation>): $64$luvio_engine_ErrorSnapshot;
22
- export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
23
- export default createResourceRequest;
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { ProductCategoryDetailRepresentation as types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation } from '../types/ProductCategoryDetailRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ urlParams: {
5
+ productCategoryId: string;
6
+ webstoreId: string;
7
+ };
8
+ queryParams: {
9
+ effectiveAccountId?: string;
10
+ excludeFields?: boolean;
11
+ excludeMedia?: boolean;
12
+ fields?: Array<string>;
13
+ mediaGroups?: Array<string>;
14
+ };
15
+ }
16
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
17
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
18
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
19
+ export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
20
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation, any>;
21
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation>): $64$luvio_engine_ErrorSnapshot;
22
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
23
+ export default createResourceRequest;
@@ -1,16 +1,16 @@
1
- import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
- import { ProductCategoryPathRepresentation as types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation } from '../types/ProductCategoryPathRepresentation';
3
- export interface ResourceRequestConfig {
4
- urlParams: {
5
- productCategoryId: string;
6
- webstoreId: string;
7
- };
8
- }
9
- export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
10
- export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
11
- export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
12
- export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
13
- export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, any>;
14
- export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation>): $64$luvio_engine_ErrorSnapshot;
15
- export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
16
- export default createResourceRequest;
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { ProductCategoryPathRepresentation as types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation } from '../types/ProductCategoryPathRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ urlParams: {
5
+ productCategoryId: string;
6
+ webstoreId: string;
7
+ };
8
+ }
9
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
10
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
11
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
12
+ export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
13
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, any>;
14
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation>): $64$luvio_engine_ErrorSnapshot;
15
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
16
+ export default createResourceRequest;
@@ -1,25 +1,25 @@
1
- import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
- import { ProductDetailRepresentation as types_ProductDetailRepresentation_ProductDetailRepresentation } from '../types/ProductDetailRepresentation';
3
- export interface ResourceRequestConfig {
4
- urlParams: {
5
- productId: string;
6
- webstoreId: string;
7
- };
8
- queryParams: {
9
- effectiveAccountId?: string;
10
- excludeEntitlement?: boolean;
11
- excludeFields?: boolean;
12
- excludeMedia?: boolean;
13
- excludePrimaryProductCategory?: boolean;
14
- fields?: Array<string>;
15
- mediaGroups?: Array<string>;
16
- };
17
- }
18
- export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
19
- export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
20
- export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
21
- export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProductDetailRepresentation_ProductDetailRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
22
- export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProductDetailRepresentation_ProductDetailRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProductDetailRepresentation_ProductDetailRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, any>;
23
- export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProductDetailRepresentation_ProductDetailRepresentation>): $64$luvio_engine_ErrorSnapshot;
24
- export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
25
- export default createResourceRequest;
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { ProductDetailRepresentation as types_ProductDetailRepresentation_ProductDetailRepresentation } from '../types/ProductDetailRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ urlParams: {
5
+ productId: string;
6
+ webstoreId: string;
7
+ };
8
+ queryParams: {
9
+ effectiveAccountId?: string;
10
+ excludeEntitlement?: boolean;
11
+ excludeFields?: boolean;
12
+ excludeMedia?: boolean;
13
+ excludePrimaryProductCategory?: boolean;
14
+ fields?: Array<string>;
15
+ mediaGroups?: Array<string>;
16
+ };
17
+ }
18
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
19
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
20
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
21
+ export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProductDetailRepresentation_ProductDetailRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
22
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProductDetailRepresentation_ProductDetailRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProductDetailRepresentation_ProductDetailRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, any>;
23
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProductDetailRepresentation_ProductDetailRepresentation>): $64$luvio_engine_ErrorSnapshot;
24
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
25
+ export default createResourceRequest;
@@ -1,45 +1,45 @@
1
- import { ProductCategoryMediaRepresentation as ProductCategoryMediaRepresentation_ProductCategoryMediaRepresentation } from './ProductCategoryMediaRepresentation';
2
- import { ProductCategoryMediaGroupRepresentation as ProductCategoryMediaGroupRepresentation_ProductCategoryMediaGroupRepresentation } from './ProductCategoryMediaGroupRepresentation';
3
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
4
- export declare const VERSION = "a82a0234f1f7c597b9a9834273e1d949";
5
- export declare function validate(obj: any, path?: string): TypeError | null;
6
- export declare const RepresentationType: string;
7
- export declare function normalize(input: ProductCategoryDetailRepresentation, existing: ProductCategoryDetailRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductCategoryDetailRepresentationNormalized;
8
- export declare const select: () => $64$luvio_engine_FragmentSelection;
9
- export declare function equals(existing: ProductCategoryDetailRepresentationNormalized, incoming: ProductCategoryDetailRepresentationNormalized): boolean;
10
- export declare function deepFreeze(input: ProductCategoryDetailRepresentation): void;
11
- export declare const ingest: $64$luvio_engine_ResourceIngest;
12
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductCategoryDetailRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
13
- /**
14
- * Wrapper containing the detail for a category.
15
- *
16
- * Keys:
17
- * (none)
18
- */
19
- export interface ProductCategoryDetailRepresentationNormalized {
20
- bannerImage: ProductCategoryMediaRepresentation_ProductCategoryMediaRepresentation;
21
- /** List of fields belonging to the product category */
22
- fields: {
23
- [key: string]: string;
24
- };
25
- /** ID of the product category */
26
- id: string;
27
- /** List of media groups of the product category */
28
- mediaGroups: Array<ProductCategoryMediaGroupRepresentation_ProductCategoryMediaGroupRepresentation>;
29
- tileImage: ProductCategoryMediaRepresentation_ProductCategoryMediaRepresentation;
30
- }
31
- /**
32
- * Wrapper containing the detail for a category.
33
- *
34
- * Keys:
35
- * (none)
36
- */
37
- export interface ProductCategoryDetailRepresentation {
38
- bannerImage: ProductCategoryMediaRepresentation_ProductCategoryMediaRepresentation;
39
- fields: {
40
- [key: string]: string;
41
- };
42
- id: string;
43
- mediaGroups: Array<ProductCategoryMediaGroupRepresentation_ProductCategoryMediaGroupRepresentation>;
44
- tileImage: ProductCategoryMediaRepresentation_ProductCategoryMediaRepresentation;
45
- }
1
+ import { ProductCategoryMediaRepresentation as ProductCategoryMediaRepresentation_ProductCategoryMediaRepresentation } from './ProductCategoryMediaRepresentation';
2
+ import { ProductCategoryMediaGroupRepresentation as ProductCategoryMediaGroupRepresentation_ProductCategoryMediaGroupRepresentation } from './ProductCategoryMediaGroupRepresentation';
3
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
4
+ export declare const VERSION = "a82a0234f1f7c597b9a9834273e1d949";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: ProductCategoryDetailRepresentation, existing: ProductCategoryDetailRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductCategoryDetailRepresentationNormalized;
8
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
9
+ export declare function equals(existing: ProductCategoryDetailRepresentationNormalized, incoming: ProductCategoryDetailRepresentationNormalized): boolean;
10
+ export declare function deepFreeze(input: ProductCategoryDetailRepresentation): void;
11
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
12
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductCategoryDetailRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
13
+ /**
14
+ * Wrapper containing the detail for a category.
15
+ *
16
+ * Keys:
17
+ * (none)
18
+ */
19
+ export interface ProductCategoryDetailRepresentationNormalized {
20
+ bannerImage: ProductCategoryMediaRepresentation_ProductCategoryMediaRepresentation;
21
+ /** List of fields belonging to the product category */
22
+ fields: {
23
+ [key: string]: string;
24
+ };
25
+ /** ID of the product category */
26
+ id: string;
27
+ /** List of media groups of the product category */
28
+ mediaGroups: Array<ProductCategoryMediaGroupRepresentation_ProductCategoryMediaGroupRepresentation>;
29
+ tileImage: ProductCategoryMediaRepresentation_ProductCategoryMediaRepresentation;
30
+ }
31
+ /**
32
+ * Wrapper containing the detail for a category.
33
+ *
34
+ * Keys:
35
+ * (none)
36
+ */
37
+ export interface ProductCategoryDetailRepresentation {
38
+ bannerImage: ProductCategoryMediaRepresentation_ProductCategoryMediaRepresentation;
39
+ fields: {
40
+ [key: string]: string;
41
+ };
42
+ id: string;
43
+ mediaGroups: Array<ProductCategoryMediaGroupRepresentation_ProductCategoryMediaGroupRepresentation>;
44
+ tileImage: ProductCategoryMediaRepresentation_ProductCategoryMediaRepresentation;
45
+ }