@salesforce/lds-adapters-commerce-catalog 1.124.1 → 1.124.3

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,42 +1,42 @@
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } 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 function deepFreeze(input: ProductMediaGroupRepresentation): void;
10
- export declare const ingest: $64$luvio_engine_ResourceIngest;
11
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductMediaGroupRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
- /**
13
- * Representation of a media group associated with a product
14
- *
15
- * Keys:
16
- * (none)
17
- */
18
- export interface ProductMediaGroupRepresentationNormalized {
19
- /** API name of the produc media group */
20
- developerName: string;
21
- /** ID of the product media group */
22
- id: string;
23
- /** List of media objects inside a product media group */
24
- mediaItems: Array<ProductMediaRepresentation_ProductMediaRepresentation>;
25
- /** Name of the produc media group */
26
- name: string;
27
- /** Usage type of media items inside a product media group */
28
- usageType: string;
29
- }
30
- /**
31
- * Representation of a media group associated with a product
32
- *
33
- * Keys:
34
- * (none)
35
- */
36
- export interface ProductMediaGroupRepresentation {
37
- developerName: string;
38
- id: string;
39
- mediaItems: Array<ProductMediaRepresentation_ProductMediaRepresentation>;
40
- name: string;
41
- usageType: string;
42
- }
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } 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 function deepFreeze(input: ProductMediaGroupRepresentation): void;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductMediaGroupRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
+ /**
13
+ * Representation of a media group associated with a product
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface ProductMediaGroupRepresentationNormalized {
19
+ /** API name of the produc media group */
20
+ developerName: string;
21
+ /** ID of the product media group */
22
+ id: string;
23
+ /** List of media objects inside a product media group */
24
+ mediaItems: Array<ProductMediaRepresentation_ProductMediaRepresentation>;
25
+ /** Name of the produc media group */
26
+ name: string;
27
+ /** Usage type of media items inside a product media group */
28
+ usageType: string;
29
+ }
30
+ /**
31
+ * Representation of a media group associated with a product
32
+ *
33
+ * Keys:
34
+ * (none)
35
+ */
36
+ export interface ProductMediaGroupRepresentation {
37
+ developerName: string;
38
+ id: string;
39
+ mediaItems: Array<ProductMediaRepresentation_ProductMediaRepresentation>;
40
+ name: string;
41
+ usageType: string;
42
+ }
@@ -1,47 +1,47 @@
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
- export declare const VERSION = "14060292f16cef4c253be5b6c93de386";
3
- export declare function validate(obj: any, path?: string): TypeError | null;
4
- export declare const RepresentationType: string;
5
- export declare function normalize(input: ProductMediaRepresentation, existing: ProductMediaRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductMediaRepresentationNormalized;
6
- export declare const select: () => $64$luvio_engine_FragmentSelection;
7
- export declare function equals(existing: ProductMediaRepresentationNormalized, incoming: ProductMediaRepresentationNormalized): boolean;
8
- export declare function deepFreeze(input: ProductMediaRepresentation): void;
9
- export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductMediaRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
11
- /**
12
- * Representation of a media associated with a product
13
- *
14
- * Keys:
15
- * (none)
16
- */
17
- export interface ProductMediaRepresentationNormalized {
18
- /** Alternative text for the product media */
19
- alternateText: string | null;
20
- /** The ContentVersionId of the latest published ContentVersion if the media is stored as a ContentDocument. If the image is a customer-provided external URL, the value will be null. */
21
- contentVersionId: string | null;
22
- /** ID of the product image */
23
- id: string | null;
24
- /** Type of the product media */
25
- mediaType: string;
26
- /** Sort order of a media item inside a media group */
27
- sortOrder: number;
28
- /** Title of the product media */
29
- title: string;
30
- /** URL of the product media */
31
- url: string;
32
- }
33
- /**
34
- * Representation of a media associated with a product
35
- *
36
- * Keys:
37
- * (none)
38
- */
39
- export interface ProductMediaRepresentation {
40
- alternateText: string | null;
41
- contentVersionId: string | null;
42
- id: string | null;
43
- mediaType: string;
44
- sortOrder: number;
45
- title: string;
46
- url: string;
47
- }
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
+ export declare const VERSION = "14060292f16cef4c253be5b6c93de386";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ProductMediaRepresentation, existing: ProductMediaRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductMediaRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ProductMediaRepresentationNormalized, incoming: ProductMediaRepresentationNormalized): boolean;
8
+ export declare function deepFreeze(input: ProductMediaRepresentation): void;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductMediaRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
11
+ /**
12
+ * Representation of a media associated with a product
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface ProductMediaRepresentationNormalized {
18
+ /** Alternative text for the product media */
19
+ alternateText: string | null;
20
+ /** The ContentVersionId of the latest published ContentVersion if the media is stored as a ContentDocument. If the image is a customer-provided external URL, the value will be null. */
21
+ contentVersionId: string | null;
22
+ /** ID of the product image */
23
+ id: string | null;
24
+ /** Type of the product media */
25
+ mediaType: string;
26
+ /** Sort order of a media item inside a media group */
27
+ sortOrder: number;
28
+ /** Title of the product media */
29
+ title: string;
30
+ /** URL of the product media */
31
+ url: string;
32
+ }
33
+ /**
34
+ * Representation of a media associated with a product
35
+ *
36
+ * Keys:
37
+ * (none)
38
+ */
39
+ export interface ProductMediaRepresentation {
40
+ alternateText: string | null;
41
+ contentVersionId: string | null;
42
+ id: string | null;
43
+ mediaType: string;
44
+ sortOrder: number;
45
+ title: string;
46
+ url: string;
47
+ }
@@ -1,39 +1,39 @@
1
- import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
- export declare const ObjectFreeze: {
3
- <T extends Function>(f: T): T;
4
- <T_1 extends {
5
- [idx: string]: object | U | null | undefined;
6
- }, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
7
- <T_2>(o: T_2): Readonly<T_2>;
8
- }, ObjectKeys: {
9
- (o: object): string[];
10
- (o: {}): string[];
11
- }, ObjectCreate: {
12
- (o: object | null): any;
13
- (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
14
- }, ObjectAssign: {
15
- <T extends {}, U>(target: T, source: U): T & U;
16
- <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
17
- <T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
18
- (target: object, ...sources: any[]): any;
19
- };
20
- export declare const ArrayIsArray: (arg: any) => arg is any[];
21
- export declare const JSONStringify: {
22
- (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
23
- (value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
24
- };
25
- type AllowedPrimitives = boolean | string | number | Date | null;
26
- type Value<T> = T extends AllowedPrimitives ? T : RecursivePartial<T>;
27
- export type RecursivePartial<T> = null | {
28
- [P in keyof T]?: T[P] extends Array<infer U> ? Array<Value<U>> | null : Value<T[P]> | null;
29
- };
30
- export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (itemA: U, itemB: U) => boolean | void): boolean;
31
- export declare function equalsObject<U, V extends {
32
- [key: string]: U;
33
- }>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
34
- export declare function deepFreeze(value: any): void;
35
- export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
36
- __ref: string;
37
- };
38
- export declare function assignMetadataLink(entry: any, metadataKey: string | $64$luvio_engine_NormalizedKeyMetadata): void;
39
- export {};
1
+ import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const ObjectFreeze: {
3
+ <T extends Function>(f: T): T;
4
+ <T_1 extends {
5
+ [idx: string]: object | U | null | undefined;
6
+ }, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
7
+ <T_2>(o: T_2): Readonly<T_2>;
8
+ }, ObjectKeys: {
9
+ (o: object): string[];
10
+ (o: {}): string[];
11
+ }, ObjectCreate: {
12
+ (o: object | null): any;
13
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
14
+ }, ObjectAssign: {
15
+ <T extends {}, U>(target: T, source: U): T & U;
16
+ <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
17
+ <T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
18
+ (target: object, ...sources: any[]): any;
19
+ };
20
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
21
+ export declare const JSONStringify: {
22
+ (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
23
+ (value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
24
+ };
25
+ type AllowedPrimitives = boolean | string | number | Date | null;
26
+ type Value<T> = T extends AllowedPrimitives ? T : RecursivePartial<T>;
27
+ export type RecursivePartial<T> = null | {
28
+ [P in keyof T]?: T[P] extends Array<infer U> ? Array<Value<U>> | null : Value<T[P]> | null;
29
+ };
30
+ export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (itemA: U, itemB: U) => boolean | void): boolean;
31
+ export declare function equalsObject<U, V extends {
32
+ [key: string]: U;
33
+ }>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
34
+ export declare function deepFreeze(value: any): void;
35
+ export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
36
+ __ref: string;
37
+ };
38
+ export declare function assignMetadataLink(entry: any, metadataKey: string | $64$luvio_engine_NormalizedKeyMetadata): void;
39
+ export {};
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-commerce-catalog",
3
- "version": "1.124.1",
3
+ "version": "1.124.3",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Wire adapters Commerce Catalog",
6
- "main": "dist/umd/es2018/commerce-catalog.js",
6
+ "main": "dist/es/es2018/commerce-catalog.js",
7
7
  "module": "dist/es/es2018/commerce-catalog.js",
8
- "types": "dist/types/src/generated/artifacts/main.d.ts",
8
+ "types": "dist/es/es2018/types/src/generated/artifacts/main.d.ts",
9
9
  "files": [
10
10
  "dist",
11
11
  "sfdc",
package/sfdc/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from '../dist/types/src/generated/artifacts/sfdc';
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';