@salesforce/lds-adapters-commerce-catalog 0.1.0-dev1

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 (26) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/commerce-catalog.js +800 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getProduct.d.ts +35 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getProductCategoryPath.d.ts +28 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -0
  8. package/dist/es/es2018/types/src/generated/resources/getCommerceWebstoresProductCategoriesByProductCategoryIdAndWebstoreId.d.ts +23 -0
  9. package/dist/es/es2018/types/src/generated/resources/getCommerceWebstoresProductCategoryPathProductCategoriesByProductCategoryIdAndWebstoreId.d.ts +16 -0
  10. package/dist/es/es2018/types/src/generated/resources/getCommerceWebstoresProductsByProductIdAndWebstoreId.d.ts +25 -0
  11. package/dist/es/es2018/types/src/generated/types/ProductCategoryDetailRepresentation.d.ts +44 -0
  12. package/dist/es/es2018/types/src/generated/types/ProductCategoryMediaGroupRepresentation.d.ts +41 -0
  13. package/dist/es/es2018/types/src/generated/types/ProductCategoryMediaRepresentation.d.ts +46 -0
  14. package/dist/es/es2018/types/src/generated/types/ProductCategoryPathRepresentation.d.ts +29 -0
  15. package/dist/es/es2018/types/src/generated/types/ProductCategoryRepresentation.d.ts +34 -0
  16. package/dist/es/es2018/types/src/generated/types/ProductDetailRepresentation.d.ts +49 -0
  17. package/dist/es/es2018/types/src/generated/types/ProductEntitlementRepresentation.d.ts +28 -0
  18. package/dist/es/es2018/types/src/generated/types/ProductMediaContentDocumentRepresentation.d.ts +40 -0
  19. package/dist/es/es2018/types/src/generated/types/ProductMediaGroupRepresentation.d.ts +41 -0
  20. package/dist/es/es2018/types/src/generated/types/ProductMediaRepresentation.d.ts +46 -0
  21. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  22. package/package.json +60 -0
  23. package/sfdc/index.d.ts +1 -0
  24. package/sfdc/index.js +842 -0
  25. package/src/raml/api.raml +338 -0
  26. package/src/raml/luvio.raml +23 -0
@@ -0,0 +1,62 @@
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
+ export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
3
+ declare const ObjectKeys: {
4
+ (o: object): string[];
5
+ (o: {}): string[];
6
+ }, ObjectCreate: {
7
+ (o: object | null): any;
8
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
9
+ };
10
+ export { ObjectCreate, ObjectKeys };
11
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
12
+ export declare const ArrayPrototypePush: (...items: any[]) => number;
13
+ export interface AdapterValidationConfig {
14
+ displayName: string;
15
+ parameters: {
16
+ required: string[];
17
+ optional: string[];
18
+ unsupported?: string[];
19
+ };
20
+ }
21
+ /**
22
+ * Validates an adapter config is well-formed.
23
+ * @param config The config to validate.
24
+ * @param adapter The adapter validation configuration.
25
+ * @param oneOf The keys the config must contain at least one of.
26
+ * @throws A TypeError if config doesn't satisfy the adapter's config validation.
27
+ */
28
+ export declare function validateConfig<T>(config: Untrusted<T>, adapter: AdapterValidationConfig, oneOf?: string[]): void;
29
+ export declare function untrustedIsObject<Base>(untrusted: unknown): untrusted is Untrusted<Base>;
30
+ export type UncoercedConfiguration<Base, Options extends {
31
+ [key in keyof Base]?: any;
32
+ }> = {
33
+ [Key in keyof Base]?: Base[Key] | Options[Key];
34
+ };
35
+ export type Untrusted<Base> = Partial<Base>;
36
+ export declare function areRequiredParametersPresent<T>(config: any, configPropertyNames: AdapterValidationConfig): config is T;
37
+ 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>;
38
+ export declare const SNAPSHOT_STATE_FULFILLED = "Fulfilled";
39
+ export declare const SNAPSHOT_STATE_UNFULFILLED = "Unfulfilled";
40
+ export declare const snapshotRefreshOptions: {
41
+ overrides: {
42
+ headers: {
43
+ 'Cache-Control': string;
44
+ };
45
+ };
46
+ };
47
+ /**
48
+ * A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
49
+ * This is needed because insertion order for JSON.stringify(object) affects output:
50
+ * JSON.stringify({a: 1, b: 2})
51
+ * "{"a":1,"b":2}"
52
+ * JSON.stringify({b: 2, a: 1})
53
+ * "{"b":2,"a":1}"
54
+ * @param data Data to be JSON-stringified.
55
+ * @returns JSON.stringified value with consistent ordering of keys.
56
+ */
57
+ export declare function stableJSONStringify(node: any): string | undefined;
58
+ export declare function getFetchResponseStatusText(status: number): string;
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, resourceType: $64$luvio_engine_AdapterConfigMetadata['resourceType'], typeCheckShape: $64$luvio_engine_AdapterConfigMetadata['typeCheckShape'], isArrayShape?: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
61
+ export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
62
+ export declare const keyPrefix = "Commerce";
@@ -0,0 +1,35 @@
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';
3
+ import { ResourceRequestConfig as resources_getCommerceWebstoresProductsByProductIdAndWebstoreId_ResourceRequestConfig } from '../resources/getCommerceWebstoresProductsByProductIdAndWebstoreId';
4
+ import { ProductDetailRepresentation as types_ProductDetailRepresentation_ProductDetailRepresentation } from '../types/ProductDetailRepresentation';
5
+ export declare const adapterName = "getProduct";
6
+ export declare const getProduct_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getProduct_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetProductConfig {
9
+ productId: string;
10
+ webstoreId: string;
11
+ effectiveAccountId?: string;
12
+ excludeEntitlement?: boolean;
13
+ excludeFields?: boolean;
14
+ excludeMedia?: boolean;
15
+ excludePrimaryProductCategory?: boolean;
16
+ fields?: Array<string>;
17
+ mediaGroups?: Array<string>;
18
+ }
19
+ export declare const createResourceParams: (config: GetProductConfig) => resources_getCommerceWebstoresProductsByProductIdAndWebstoreId_ResourceRequestConfig;
20
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetProductConfig): string;
21
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetProductConfig): $64$luvio_engine_NormalizedKeyMetadata;
22
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetProductConfig>): adapter$45$utils_Untrusted<GetProductConfig>;
23
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetProductConfig | null;
24
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetProductConfig): $64$luvio_engine_Fragment;
25
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetProductConfig): $64$luvio_engine_Snapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, any>;
26
+ 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>>;
27
+ 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>;
28
+ 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>>;
29
+ export type BuildSnapshotContext = {
30
+ luvio: $64$luvio_engine_Luvio;
31
+ config: GetProductConfig;
32
+ };
33
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, any>>;
34
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ProductDetailRepresentation_ProductDetailRepresentation>): $64$luvio_engine_Snapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, any>;
35
+ export declare const getProductAdapterFactory: $64$luvio_engine_AdapterFactory<GetProductConfig, types_ProductDetailRepresentation_ProductDetailRepresentation>;
@@ -0,0 +1,28 @@
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';
3
+ import { ResourceRequestConfig as resources_getCommerceWebstoresProductCategoryPathProductCategoriesByProductCategoryIdAndWebstoreId_ResourceRequestConfig } from '../resources/getCommerceWebstoresProductCategoryPathProductCategoriesByProductCategoryIdAndWebstoreId';
4
+ import { ProductCategoryPathRepresentation as types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation } from '../types/ProductCategoryPathRepresentation';
5
+ export declare const adapterName = "getProductCategoryPath";
6
+ export declare const getProductCategoryPath_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getProductCategoryPath_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetProductCategoryPathConfig {
9
+ productCategoryId: string;
10
+ webstoreId: string;
11
+ }
12
+ export declare const createResourceParams: (config: GetProductCategoryPathConfig) => resources_getCommerceWebstoresProductCategoryPathProductCategoriesByProductCategoryIdAndWebstoreId_ResourceRequestConfig;
13
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetProductCategoryPathConfig): string;
14
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetProductCategoryPathConfig): $64$luvio_engine_NormalizedKeyMetadata;
15
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetProductCategoryPathConfig>): adapter$45$utils_Untrusted<GetProductCategoryPathConfig>;
16
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetProductCategoryPathConfig | null;
17
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetProductCategoryPathConfig): $64$luvio_engine_Fragment;
18
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetProductCategoryPathConfig): $64$luvio_engine_Snapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, any>;
19
+ 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>>;
20
+ 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>;
21
+ 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>>;
22
+ export type BuildSnapshotContext = {
23
+ luvio: $64$luvio_engine_Luvio;
24
+ config: GetProductCategoryPathConfig;
25
+ };
26
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, any>>;
27
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation>): $64$luvio_engine_Snapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, any>;
28
+ export declare const getProductCategoryPathAdapterFactory: $64$luvio_engine_AdapterFactory<GetProductCategoryPathConfig, types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation>;
@@ -0,0 +1,2 @@
1
+ export { getProductCategoryPathAdapterFactory } from '../adapters/getProductCategoryPath';
2
+ export { getProductAdapterFactory } from '../adapters/getProduct';
@@ -0,0 +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, };
@@ -0,0 +1,23 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation): void;
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;
@@ -0,0 +1,16 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation): void;
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;
@@ -0,0 +1,25 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProductDetailRepresentation_ProductDetailRepresentation): void;
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;
@@ -0,0 +1,44 @@
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } 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 const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProductCategoryDetailRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
+ /**
13
+ * Wrapper containing the detail for a category.
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface ProductCategoryDetailRepresentationNormalized {
19
+ bannerImage: ProductCategoryMediaRepresentation_ProductCategoryMediaRepresentation;
20
+ /** List of fields belonging to the product category */
21
+ fields: {
22
+ [key: string]: string;
23
+ };
24
+ /** ID of the product category */
25
+ id: string;
26
+ /** List of media groups of the product category */
27
+ mediaGroups: Array<ProductCategoryMediaGroupRepresentation_ProductCategoryMediaGroupRepresentation>;
28
+ tileImage: ProductCategoryMediaRepresentation_ProductCategoryMediaRepresentation;
29
+ }
30
+ /**
31
+ * Wrapper containing the detail for a category.
32
+ *
33
+ * Keys:
34
+ * (none)
35
+ */
36
+ export interface ProductCategoryDetailRepresentation {
37
+ bannerImage: ProductCategoryMediaRepresentation_ProductCategoryMediaRepresentation;
38
+ fields: {
39
+ [key: string]: string;
40
+ };
41
+ id: string;
42
+ mediaGroups: Array<ProductCategoryMediaGroupRepresentation_ProductCategoryMediaGroupRepresentation>;
43
+ tileImage: ProductCategoryMediaRepresentation_ProductCategoryMediaRepresentation;
44
+ }
@@ -0,0 +1,41 @@
1
+ import { ProductCategoryMediaRepresentation as ProductCategoryMediaRepresentation_ProductCategoryMediaRepresentation } from './ProductCategoryMediaRepresentation';
2
+ 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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "0be6b6b4fbdb1a888416e648e1be770f";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: ProductCategoryMediaGroupRepresentation, existing: ProductCategoryMediaGroupRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductCategoryMediaGroupRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: ProductCategoryMediaGroupRepresentationNormalized, incoming: ProductCategoryMediaGroupRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProductCategoryMediaGroupRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Representation of a media group associated with a product category
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface ProductCategoryMediaGroupRepresentationNormalized {
18
+ /** API name of the product category media group */
19
+ developerName: string;
20
+ /** ID of the product category media group */
21
+ id: string;
22
+ /** List of media objects inside a product category media group */
23
+ mediaItems: Array<ProductCategoryMediaRepresentation_ProductCategoryMediaRepresentation>;
24
+ /** Name of the product category media group */
25
+ name: string;
26
+ /** Usage type of media items inside a product category media group */
27
+ usageType: string;
28
+ }
29
+ /**
30
+ * Representation of a media group associated with a product category
31
+ *
32
+ * Keys:
33
+ * (none)
34
+ */
35
+ export interface ProductCategoryMediaGroupRepresentation {
36
+ developerName: string;
37
+ id: string;
38
+ mediaItems: Array<ProductCategoryMediaRepresentation_ProductCategoryMediaRepresentation>;
39
+ name: string;
40
+ usageType: string;
41
+ }
@@ -0,0 +1,46 @@
1
+ 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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "8eeed761238c3bcd733c536a5bbec529";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ProductCategoryMediaRepresentation, existing: ProductCategoryMediaRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductCategoryMediaRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ProductCategoryMediaRepresentationNormalized, incoming: ProductCategoryMediaRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProductCategoryMediaRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Representation of a media associated with a product category
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ProductCategoryMediaRepresentationNormalized {
17
+ /** Alternative text for the product category media */
18
+ alternateText: string | null;
19
+ /** Content document that represents the product category media */
20
+ contentVersionId: string | null;
21
+ /** ID of the product category image */
22
+ id: string | null;
23
+ /** Type of the product category media */
24
+ mediaType: string;
25
+ /** Sort oder of a media item inside a media group */
26
+ sortOrder: number;
27
+ /** Title of the product category media */
28
+ title: string;
29
+ /** URL of the product category media */
30
+ url: string;
31
+ }
32
+ /**
33
+ * Representation of a media associated with a product category
34
+ *
35
+ * Keys:
36
+ * (none)
37
+ */
38
+ export interface ProductCategoryMediaRepresentation {
39
+ alternateText: string | null;
40
+ contentVersionId: string | null;
41
+ id: string | null;
42
+ mediaType: string;
43
+ sortOrder: number;
44
+ title: string;
45
+ url: string;
46
+ }
@@ -0,0 +1,29 @@
1
+ import { ProductCategoryRepresentation as ProductCategoryRepresentation_ProductCategoryRepresentation } from './ProductCategoryRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "931ade08fb09ff2c63a3cbfcd5f9a73a";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: ProductCategoryPathRepresentation, existing: ProductCategoryPathRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductCategoryPathRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_BaseFragment;
8
+ export declare function equals(existing: ProductCategoryPathRepresentationNormalized, incoming: ProductCategoryPathRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProductCategoryPathRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Wrapper containing the path for a category.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface ProductCategoryPathRepresentationNormalized {
18
+ /** List of categories. */
19
+ path: Array<ProductCategoryRepresentation_ProductCategoryRepresentation>;
20
+ }
21
+ /**
22
+ * Wrapper containing the path for a category.
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface ProductCategoryPathRepresentation {
28
+ path: Array<ProductCategoryRepresentation_ProductCategoryRepresentation>;
29
+ }
@@ -0,0 +1,34 @@
1
+ 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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "ad90431d8198e060349f28eb7c9095e6";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ProductCategoryRepresentation, existing: ProductCategoryRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductCategoryRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ProductCategoryRepresentationNormalized, incoming: ProductCategoryRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProductCategoryRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Representation for basic category data.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ProductCategoryRepresentationNormalized {
17
+ /** Description of the category */
18
+ description: string | null;
19
+ /** ID of the category */
20
+ id: string | null;
21
+ /** Name of the category */
22
+ name: string;
23
+ }
24
+ /**
25
+ * Representation for basic category data.
26
+ *
27
+ * Keys:
28
+ * (none)
29
+ */
30
+ export interface ProductCategoryRepresentation {
31
+ description: string | null;
32
+ id: string | null;
33
+ name: string;
34
+ }
@@ -0,0 +1,49 @@
1
+ import { ProductMediaRepresentation as ProductMediaRepresentation_ProductMediaRepresentation } from './ProductMediaRepresentation';
2
+ import { ProductEntitlementRepresentation as ProductEntitlementRepresentation_ProductEntitlementRepresentation } from './ProductEntitlementRepresentation';
3
+ import { ProductMediaGroupRepresentation as ProductMediaGroupRepresentation_ProductMediaGroupRepresentation } from './ProductMediaGroupRepresentation';
4
+ import { ProductCategoryPathRepresentation as ProductCategoryPathRepresentation_ProductCategoryPathRepresentation } from './ProductCategoryPathRepresentation';
5
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
6
+ export declare const VERSION = "aeb68d0cbb5b505d40ca2f6997bb9194";
7
+ export declare function validate(obj: any, path?: string): TypeError | null;
8
+ export declare const RepresentationType: string;
9
+ export declare function normalize(input: ProductDetailRepresentation, existing: ProductDetailRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductDetailRepresentationNormalized;
10
+ export declare const select: () => $64$luvio_engine_BaseFragment;
11
+ export declare function equals(existing: ProductDetailRepresentationNormalized, incoming: ProductDetailRepresentationNormalized): boolean;
12
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
13
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProductDetailRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
14
+ /**
15
+ * Representation for the details of a single product
16
+ *
17
+ * Keys:
18
+ * (none)
19
+ */
20
+ export interface ProductDetailRepresentationNormalized {
21
+ defaultImage: ProductMediaRepresentation_ProductMediaRepresentation;
22
+ entitlement: ProductEntitlementRepresentation_ProductEntitlementRepresentation;
23
+ /** List of fields belonging to the product */
24
+ fields: {
25
+ [key: string]: string | null;
26
+ };
27
+ /** ID of the product */
28
+ id: string;
29
+ /** List of media groups of the product */
30
+ mediaGroups: Array<ProductMediaGroupRepresentation_ProductMediaGroupRepresentation>;
31
+ /** Primary category path of the product */
32
+ primaryProductCategoryPath: $64$luvio_engine_StoreLink;
33
+ }
34
+ /**
35
+ * Representation for the details of a single product
36
+ *
37
+ * Keys:
38
+ * (none)
39
+ */
40
+ export interface ProductDetailRepresentation {
41
+ defaultImage: ProductMediaRepresentation_ProductMediaRepresentation;
42
+ entitlement: ProductEntitlementRepresentation_ProductEntitlementRepresentation;
43
+ fields: {
44
+ [key: string]: string | null;
45
+ };
46
+ id: string;
47
+ mediaGroups: Array<ProductMediaGroupRepresentation_ProductMediaGroupRepresentation>;
48
+ primaryProductCategoryPath: ProductCategoryPathRepresentation_ProductCategoryPathRepresentation;
49
+ }
@@ -0,0 +1,28 @@
1
+ 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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "9c5ecbd8b7f938cfa6566967e4158259";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ProductEntitlementRepresentation, existing: ProductEntitlementRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductEntitlementRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ProductEntitlementRepresentationNormalized, incoming: ProductEntitlementRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProductEntitlementRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Representation of a media group associated with a product
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ProductEntitlementRepresentationNormalized {
17
+ /** true if the product's price can be viewed, false otherwise */
18
+ canViewPrice: boolean | null;
19
+ }
20
+ /**
21
+ * Representation of a media group associated with a product
22
+ *
23
+ * Keys:
24
+ * (none)
25
+ */
26
+ export interface ProductEntitlementRepresentation {
27
+ canViewPrice: boolean | null;
28
+ }
@@ -0,0 +1,40 @@
1
+ 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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "447d2f88a419288798da709bdd5b836d";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ProductMediaContentDocumentRepresentation, existing: ProductMediaContentDocumentRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductMediaContentDocumentRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ProductMediaContentDocumentRepresentationNormalized, incoming: ProductMediaContentDocumentRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProductMediaContentDocumentRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Representation of a product media as content document
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ProductMediaContentDocumentRepresentationNormalized {
17
+ /** ID of the ContentDocument as media */
18
+ id: string;
19
+ /** URL of the large size product image */
20
+ largeUrl: string;
21
+ /** URL of the medium size product image */
22
+ mediumUrl: string;
23
+ /** URL of the original size product image as uploaded */
24
+ originalUrl: string;
25
+ /** URL of the small size product image */
26
+ smallUrl: string;
27
+ }
28
+ /**
29
+ * Representation of a product media as content document
30
+ *
31
+ * Keys:
32
+ * (none)
33
+ */
34
+ export interface ProductMediaContentDocumentRepresentation {
35
+ id: string;
36
+ largeUrl: string;
37
+ mediumUrl: string;
38
+ originalUrl: string;
39
+ smallUrl: string;
40
+ }
@@ -0,0 +1,41 @@
1
+ import { ProductMediaRepresentation as ProductMediaRepresentation_ProductMediaRepresentation } from './ProductMediaRepresentation';
2
+ 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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "01edc0b1d017008afa0b88a9b0f7ed70";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: ProductMediaGroupRepresentation, existing: ProductMediaGroupRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductMediaGroupRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: ProductMediaGroupRepresentationNormalized, incoming: ProductMediaGroupRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProductMediaGroupRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Representation of a media group associated with a product
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface ProductMediaGroupRepresentationNormalized {
18
+ /** API name of the produc media group */
19
+ developerName: string;
20
+ /** ID of the product media group */
21
+ id: string;
22
+ /** List of media objects inside a product media group */
23
+ mediaItems: Array<ProductMediaRepresentation_ProductMediaRepresentation>;
24
+ /** Name of the produc media group */
25
+ name: string;
26
+ /** Usage type of media items inside a product media group */
27
+ usageType: string;
28
+ }
29
+ /**
30
+ * Representation of a media group associated with a product
31
+ *
32
+ * Keys:
33
+ * (none)
34
+ */
35
+ export interface ProductMediaGroupRepresentation {
36
+ developerName: string;
37
+ id: string;
38
+ mediaItems: Array<ProductMediaRepresentation_ProductMediaRepresentation>;
39
+ name: string;
40
+ usageType: string;
41
+ }