@salesforce/lds-adapters-commerce-extensions 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 (41) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/commerce-extensions.js +1978 -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/createMapping.d.ts +18 -0
  5. package/dist/es/es2018/types/src/generated/adapters/deleteMapping.d.ts +14 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getExtensions.d.ts +26 -0
  7. package/dist/es/es2018/types/src/generated/adapters/getMapping.d.ts +28 -0
  8. package/dist/es/es2018/types/src/generated/adapters/getMappings.d.ts +28 -0
  9. package/dist/es/es2018/types/src/generated/adapters/getProvider.d.ts +28 -0
  10. package/dist/es/es2018/types/src/generated/adapters/getProviders.d.ts +28 -0
  11. package/dist/es/es2018/types/src/generated/adapters/updateMapping.d.ts +19 -0
  12. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +9 -0
  13. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +18 -0
  14. package/dist/es/es2018/types/src/generated/resources/deleteCommerceExtensionMappingsByMappingId.d.ts +12 -0
  15. package/dist/es/es2018/types/src/generated/resources/deleteCommerceExtensionProvidersByProviderId.d.ts +11 -0
  16. package/dist/es/es2018/types/src/generated/resources/getCommerceExtensionExtensions.d.ts +12 -0
  17. package/dist/es/es2018/types/src/generated/resources/getCommerceExtensionMappings.d.ts +16 -0
  18. package/dist/es/es2018/types/src/generated/resources/getCommerceExtensionMappingsByMappingId.d.ts +16 -0
  19. package/dist/es/es2018/types/src/generated/resources/getCommerceExtensionProviders.d.ts +16 -0
  20. package/dist/es/es2018/types/src/generated/resources/getCommerceExtensionProvidersByProviderId.d.ts +16 -0
  21. package/dist/es/es2018/types/src/generated/resources/patchCommerceExtensionProvidersByProviderId.d.ts +22 -0
  22. package/dist/es/es2018/types/src/generated/resources/postCommerceExtensionMappings.d.ts +15 -0
  23. package/dist/es/es2018/types/src/generated/resources/postCommerceExtensionProviders.d.ts +19 -0
  24. package/dist/es/es2018/types/src/generated/resources/putCommerceExtensionMappingsByMappingId.d.ts +18 -0
  25. package/dist/es/es2018/types/src/generated/types/ApexClassInputRepresentation.d.ts +31 -0
  26. package/dist/es/es2018/types/src/generated/types/ApexClassOutputRepresentation.d.ts +37 -0
  27. package/dist/es/es2018/types/src/generated/types/EffectiveMappingRepresentation.d.ts +28 -0
  28. package/dist/es/es2018/types/src/generated/types/ExtensionOutputCollectionRepresentation.d.ts +42 -0
  29. package/dist/es/es2018/types/src/generated/types/ExtensionOutputRepresentation.d.ts +50 -0
  30. package/dist/es/es2018/types/src/generated/types/MappingInputRepresentation.d.ts +38 -0
  31. package/dist/es/es2018/types/src/generated/types/MappingOutputCollectionRepresentation.d.ts +42 -0
  32. package/dist/es/es2018/types/src/generated/types/MappingOutputRepresentation.d.ts +48 -0
  33. package/dist/es/es2018/types/src/generated/types/ProviderInputRepresentation.d.ts +49 -0
  34. package/dist/es/es2018/types/src/generated/types/ProviderOutputCollectionRepresentation.d.ts +42 -0
  35. package/dist/es/es2018/types/src/generated/types/ProviderOutputRepresentation.d.ts +67 -0
  36. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  37. package/package.json +75 -0
  38. package/sfdc/index.d.ts +1 -0
  39. package/sfdc/index.js +2147 -0
  40. package/src/raml/api.raml +351 -0
  41. package/src/raml/luvio.raml +71 -0
@@ -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 = "5d74820ea8d6cfbe4e56d4a37b7cdb77";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: EffectiveMappingRepresentation, existing: EffectiveMappingRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EffectiveMappingRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: EffectiveMappingRepresentationNormalized, incoming: EffectiveMappingRepresentationNormalized): 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: EffectiveMappingRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Output representation of a list of webstores that are effectivly mapped to an Extension.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface EffectiveMappingRepresentationNormalized {
17
+ /** The unique webstore identifier. */
18
+ webstoreId: string;
19
+ }
20
+ /**
21
+ * Output representation of a list of webstores that are effectivly mapped to an Extension.
22
+ *
23
+ * Keys:
24
+ * (none)
25
+ */
26
+ export interface EffectiveMappingRepresentation {
27
+ webstoreId: string;
28
+ }
@@ -0,0 +1,42 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ import { ExtensionOutputRepresentation as ExtensionOutputRepresentation_ExtensionOutputRepresentation } from './ExtensionOutputRepresentation';
3
+ export declare const TTL = 60000;
4
+ export declare const VERSION = "d4f70ccafbea6d39e182d71c60d4ba89";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: ExtensionOutputCollectionRepresentation, existing: ExtensionOutputCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExtensionOutputCollectionRepresentationNormalized;
8
+ export interface DynamicIngestParams {
9
+ items: $64$luvio_engine_ResourceIngest;
10
+ }
11
+ export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: ExtensionOutputCollectionRepresentation, existing: ExtensionOutputCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => ExtensionOutputCollectionRepresentationNormalized;
12
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
13
+ export interface DynamicSelectParams {
14
+ items?: $64$luvio_engine_LinkSelection;
15
+ }
16
+ export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
17
+ export declare function equals(existing: ExtensionOutputCollectionRepresentationNormalized, incoming: ExtensionOutputCollectionRepresentationNormalized): boolean;
18
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
19
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ExtensionOutputCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
20
+ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
21
+ /**
22
+ * Output representation of a list of extensions.
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface ExtensionOutputCollectionRepresentationNormalized {
28
+ /** Total count of extensions */
29
+ count: number;
30
+ /** List of extensions. */
31
+ items: Array<$64$luvio_engine_StoreLink>;
32
+ }
33
+ /**
34
+ * Output representation of a list of extensions.
35
+ *
36
+ * Keys:
37
+ * (none)
38
+ */
39
+ export interface ExtensionOutputCollectionRepresentation {
40
+ count: number;
41
+ items: Array<ExtensionOutputRepresentation_ExtensionOutputRepresentation>;
42
+ }
@@ -0,0 +1,50 @@
1
+ import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
+ export declare const TTL = 60000;
3
+ export declare const VERSION = "851ba1c62498092f7289da5b20b692d8";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export interface KeyParams extends $64$luvio_engine_KeyMetadata {
7
+ epn: string;
8
+ }
9
+ export type ExtensionOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
10
+ export type PartialExtensionOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
11
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
12
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): ExtensionOutputRepresentationNormalizedKeyMetadata;
13
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: ExtensionOutputRepresentation): string;
14
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: ExtensionOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
15
+ export declare function normalize(input: ExtensionOutputRepresentation, existing: ExtensionOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExtensionOutputRepresentationNormalized;
16
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
17
+ export declare function equals(existing: ExtensionOutputRepresentationNormalized, incoming: ExtensionOutputRepresentationNormalized): boolean;
18
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
19
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ExtensionOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
20
+ /**
21
+ * Output representation of one Extension.
22
+ *
23
+ * Keys:
24
+ * epn (string): epn
25
+ */
26
+ export interface ExtensionOutputRepresentationNormalized {
27
+ /** The service domain the Extension belongs to. */
28
+ domain: string;
29
+ /** Extension's unique identifier. */
30
+ epn: string;
31
+ /** The name of the extension. */
32
+ name: string;
33
+ /** The Salesforce family the Extension belongs to. */
34
+ product: string;
35
+ /** Allowable values are Domain and Endpoint. */
36
+ type: string;
37
+ }
38
+ /**
39
+ * Output representation of one Extension.
40
+ *
41
+ * Keys:
42
+ * epn (string): epn
43
+ */
44
+ export interface ExtensionOutputRepresentation {
45
+ domain: string;
46
+ epn: string;
47
+ name: string;
48
+ product: string;
49
+ type: string;
50
+ }
@@ -0,0 +1,38 @@
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 TTL = 60000;
3
+ export declare const VERSION = "4a8c0a159a66b5d5ed44fde4dee698a8";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: MappingInputRepresentation, existing: MappingInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): MappingInputRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: MappingInputRepresentationNormalized, incoming: MappingInputRepresentationNormalized): 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: MappingInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Input representation for mapping.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface MappingInputRepresentationNormalized {
18
+ /** The extension this provider corresponds to. */
19
+ epn: string;
20
+ /** The unique mapping identifier */
21
+ id?: string;
22
+ /** Unique name of the extension provider. */
23
+ providerName: string;
24
+ /** The Id of the webstore this mapping corresponds to. */
25
+ webstoreId: string;
26
+ }
27
+ /**
28
+ * Input representation for mapping.
29
+ *
30
+ * Keys:
31
+ * (none)
32
+ */
33
+ export interface MappingInputRepresentation {
34
+ epn: string;
35
+ id?: string;
36
+ providerName: string;
37
+ webstoreId: string;
38
+ }
@@ -0,0 +1,42 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ import { MappingOutputRepresentation as MappingOutputRepresentation_MappingOutputRepresentation } from './MappingOutputRepresentation';
3
+ export declare const TTL = 60000;
4
+ export declare const VERSION = "7aeadbbc38a3c6a4adff51c98906ed3e";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: MappingOutputCollectionRepresentation, existing: MappingOutputCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): MappingOutputCollectionRepresentationNormalized;
8
+ export interface DynamicIngestParams {
9
+ items: $64$luvio_engine_ResourceIngest;
10
+ }
11
+ export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: MappingOutputCollectionRepresentation, existing: MappingOutputCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => MappingOutputCollectionRepresentationNormalized;
12
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
13
+ export interface DynamicSelectParams {
14
+ items?: $64$luvio_engine_LinkSelection;
15
+ }
16
+ export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
17
+ export declare function equals(existing: MappingOutputCollectionRepresentationNormalized, incoming: MappingOutputCollectionRepresentationNormalized): boolean;
18
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
19
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: MappingOutputCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
20
+ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
21
+ /**
22
+ * Output representation of a list of mapped extensions.
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface MappingOutputCollectionRepresentationNormalized {
28
+ /** Total count of extensions */
29
+ count: number;
30
+ /** List of mappings. */
31
+ items: Array<$64$luvio_engine_StoreLink>;
32
+ }
33
+ /**
34
+ * Output representation of a list of mapped extensions.
35
+ *
36
+ * Keys:
37
+ * (none)
38
+ */
39
+ export interface MappingOutputCollectionRepresentation {
40
+ count: number;
41
+ items: Array<MappingOutputRepresentation_MappingOutputRepresentation>;
42
+ }
@@ -0,0 +1,48 @@
1
+ import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
+ export declare const TTL = 60000;
3
+ export declare const VERSION = "cef52859122e69e7f8552d6d2fbf67f8";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export interface KeyParams extends $64$luvio_engine_KeyMetadata {
7
+ id: string;
8
+ }
9
+ export type MappingOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
10
+ export type PartialMappingOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
11
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
12
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): MappingOutputRepresentationNormalizedKeyMetadata;
13
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: MappingOutputRepresentation): string;
14
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: MappingOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
15
+ export declare function normalize(input: MappingOutputRepresentation, existing: MappingOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): MappingOutputRepresentationNormalized;
16
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
17
+ export declare function equals(existing: MappingOutputRepresentationNormalized, incoming: MappingOutputRepresentationNormalized): boolean;
18
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
19
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: MappingOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
20
+ /**
21
+ * Output representation for mapping.
22
+ *
23
+ * Keys:
24
+ * id (string): id
25
+ */
26
+ export interface MappingOutputRepresentationNormalized {
27
+ /** The extension this provider corresponds to. */
28
+ epn: string;
29
+ /** The unique mapping identifier */
30
+ id: string;
31
+ /** Unique name of the extension provider. */
32
+ providerName: string;
33
+ /** The Id of the webstore this mapping corresponds to. */
34
+ webstoreId: string;
35
+ }
36
+ /**
37
+ * Output representation for mapping.
38
+ *
39
+ * Keys:
40
+ * id (string): id
41
+ */
42
+ export interface MappingOutputRepresentation {
43
+ epn: string;
44
+ id: string;
45
+ providerName: string;
46
+ webstoreId: string;
47
+ }
48
+ export declare const notifyUpdateAvailableFactory: (luvio: $64$luvio_engine_Luvio) => (configs: Partial<KeyParams>[]) => Promise<void>;
@@ -0,0 +1,49 @@
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 = "43eedd1f586bff7146ed07f21acb4e52";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ProviderInputRepresentation, existing: ProviderInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProviderInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ProviderInputRepresentationNormalized, incoming: ProviderInputRepresentationNormalized): 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: ProviderInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Input representation of a Provider
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ProviderInputRepresentationNormalized {
17
+ /** Description of the apex class. */
18
+ apexClass: {};
19
+ /** The URL of the administrative application used to configure the provider. */
20
+ configUrl: string;
21
+ /** Description of the provider. */
22
+ description: string;
23
+ /** The extension this provider corresponds to. */
24
+ epn: string;
25
+ /** Representing the extension provider. */
26
+ iconUri: string;
27
+ /** If the extension provider is contained within a managed package. */
28
+ isApplication: boolean;
29
+ /** Unique name of the extension provider. */
30
+ name: string;
31
+ /** The type of extension. */
32
+ type: string;
33
+ }
34
+ /**
35
+ * Input representation of a Provider
36
+ *
37
+ * Keys:
38
+ * (none)
39
+ */
40
+ export interface ProviderInputRepresentation {
41
+ apexClass: {};
42
+ configUrl: string;
43
+ description: string;
44
+ epn: string;
45
+ iconUri: string;
46
+ isApplication: boolean;
47
+ name: string;
48
+ type: string;
49
+ }
@@ -0,0 +1,42 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ import { ProviderOutputRepresentation as ProviderOutputRepresentation_ProviderOutputRepresentation } from './ProviderOutputRepresentation';
3
+ export declare const TTL = 60000;
4
+ export declare const VERSION = "d9978417e0efd08a87aa592d226979e1";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: ProviderOutputCollectionRepresentation, existing: ProviderOutputCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProviderOutputCollectionRepresentationNormalized;
8
+ export interface DynamicIngestParams {
9
+ items: $64$luvio_engine_ResourceIngest;
10
+ }
11
+ export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: ProviderOutputCollectionRepresentation, existing: ProviderOutputCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => ProviderOutputCollectionRepresentationNormalized;
12
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
13
+ export interface DynamicSelectParams {
14
+ items?: $64$luvio_engine_LinkSelection;
15
+ }
16
+ export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
17
+ export declare function equals(existing: ProviderOutputCollectionRepresentationNormalized, incoming: ProviderOutputCollectionRepresentationNormalized): boolean;
18
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
19
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProviderOutputCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
20
+ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
21
+ /**
22
+ * Output representation of a list of extension providers.
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface ProviderOutputCollectionRepresentationNormalized {
28
+ /** Total count of extensions */
29
+ count: number;
30
+ /** List of providers. */
31
+ items: Array<$64$luvio_engine_StoreLink>;
32
+ }
33
+ /**
34
+ * Output representation of a list of extension providers.
35
+ *
36
+ * Keys:
37
+ * (none)
38
+ */
39
+ export interface ProviderOutputCollectionRepresentation {
40
+ count: number;
41
+ items: Array<ProviderOutputRepresentation_ProviderOutputRepresentation>;
42
+ }
@@ -0,0 +1,67 @@
1
+ import { ApexClassOutputRepresentation as ApexClassOutputRepresentation_ApexClassOutputRepresentation } from './ApexClassOutputRepresentation';
2
+ import { EffectiveMappingRepresentation as EffectiveMappingRepresentation_EffectiveMappingRepresentation } from './EffectiveMappingRepresentation';
3
+ import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
4
+ export declare const TTL = 60000;
5
+ export declare const VERSION = "13fc665c9ed137c0ed2ffe53eccfb051";
6
+ export declare function validate(obj: any, path?: string): TypeError | null;
7
+ export declare const RepresentationType: string;
8
+ export interface KeyParams extends $64$luvio_engine_KeyMetadata {
9
+ id: string;
10
+ }
11
+ export type ProviderOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
12
+ export type PartialProviderOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
13
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
14
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): ProviderOutputRepresentationNormalizedKeyMetadata;
15
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: ProviderOutputRepresentation): string;
16
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: ProviderOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
17
+ export declare function normalize(input: ProviderOutputRepresentation, existing: ProviderOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProviderOutputRepresentationNormalized;
18
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
19
+ export declare function equals(existing: ProviderOutputRepresentationNormalized, incoming: ProviderOutputRepresentationNormalized): boolean;
20
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
21
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProviderOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
22
+ /**
23
+ * Output representation of a Provider
24
+ *
25
+ * Keys:
26
+ * id (string): id
27
+ */
28
+ export interface ProviderOutputRepresentationNormalized {
29
+ /** Information about the Apex class implementing this Provider */
30
+ apexClass: ApexClassOutputRepresentation_ApexClassOutputRepresentation;
31
+ /** The URL of the administrative application used to configure the provider. */
32
+ configUrl: string;
33
+ /** Description of the provider. */
34
+ description: string;
35
+ /** List of mappings this provider is associated with. */
36
+ effectiveMappings: Array<EffectiveMappingRepresentation_EffectiveMappingRepresentation>;
37
+ /** The extension this provider corresponds to. */
38
+ epn: string;
39
+ /** Representing the extension provider. */
40
+ iconUri: string;
41
+ /** The unique provider identifier */
42
+ id: string;
43
+ /** If the extension provider is contained within a managed package. */
44
+ isApplication: boolean;
45
+ /** Unique name of the extension provider. */
46
+ name: string;
47
+ /** The type of extension. */
48
+ type: string;
49
+ }
50
+ /**
51
+ * Output representation of a Provider
52
+ *
53
+ * Keys:
54
+ * id (string): id
55
+ */
56
+ export interface ProviderOutputRepresentation {
57
+ apexClass: ApexClassOutputRepresentation_ApexClassOutputRepresentation;
58
+ configUrl: string;
59
+ description: string;
60
+ effectiveMappings: Array<EffectiveMappingRepresentation_EffectiveMappingRepresentation>;
61
+ epn: string;
62
+ iconUri: string;
63
+ id: string;
64
+ isApplication: boolean;
65
+ name: string;
66
+ type: string;
67
+ }
@@ -0,0 +1,32 @@
1
+ import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const ObjectKeys: {
3
+ (o: object): string[];
4
+ (o: {}): string[];
5
+ }, ObjectCreate: {
6
+ (o: object | null): any;
7
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
8
+ }, ObjectAssign: {
9
+ <T extends {}, U>(target: T, source: U): T & U;
10
+ <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
11
+ <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;
12
+ (target: object, ...sources: any[]): any;
13
+ };
14
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
15
+ export declare const JSONStringify: {
16
+ (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
17
+ (value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
18
+ };
19
+ type AllowedPrimitives = boolean | string | number | Date | null;
20
+ type Value<T> = T extends AllowedPrimitives ? T : RecursivePartial<T>;
21
+ export type RecursivePartial<T> = null | {
22
+ [P in keyof T]?: T[P] extends Array<infer U> ? Array<Value<U>> | null : Value<T[P]> | null;
23
+ };
24
+ export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (itemA: U, itemB: U) => boolean | void): boolean;
25
+ export declare function equalsObject<U, V extends {
26
+ [key: string]: U;
27
+ }>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
28
+ export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
29
+ __ref: string;
30
+ };
31
+ export declare function assignMetadataLink(entry: any, metadataKey: string | $64$luvio_engine_NormalizedKeyMetadata): void;
32
+ export {};
package/package.json ADDED
@@ -0,0 +1,75 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-commerce-extensions",
3
+ "version": "0.1.0-dev1",
4
+ "description": "APIs to manage providers for commerce extensions and which will be used for each store.",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "dist/umd/es2018/commerce-extensions.js",
7
+ "module": "dist/es/es2018/commerce-extensions.js",
8
+ "types": "dist/types/src/generated/artifacts/main.d.ts",
9
+ "files": [
10
+ "dist",
11
+ "sfdc",
12
+ "src/raml/*"
13
+ ],
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/types/src/generated/artifacts/main.d.ts",
17
+ "import": "./dist/es/es2018/commerce-extensions.js",
18
+ "require": "./dist/umd/es2018/commerce-extensions.js"
19
+ },
20
+ "./sfdc": {
21
+ "types": "./sfdc/index.d.ts",
22
+ "import": "./sfdc/index.js",
23
+ "default": "./sfdc/index.js"
24
+ }
25
+ },
26
+ "sfdc": {
27
+ "namespace": "lightning",
28
+ "module": "commerceExtensionsApi"
29
+ },
30
+ "contributors": [
31
+ "bsiegmund@salesforce.com",
32
+ "dbarbato@salesforce.com"
33
+ ],
34
+ "scripts": {
35
+ "build": "yarn build:services",
36
+ "build:karma": "rollup --bundleConfigAsCjs --config rollup.config.karma.js",
37
+ "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
38
+ "build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
39
+ "clean": "rm -rf dist sfdc src/generated karma/dist",
40
+ "release:core": "../../scripts/release/core.js --adapter=lds-adapters-commerce-extensions",
41
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-commerce-extensions",
42
+ "start": "nx build:karma && karma start",
43
+ "test": "nx build:karma && karma start --single-run"
44
+ },
45
+ "dependencies": {
46
+ "@salesforce/lds-bindings": "^0.1.0-dev1"
47
+ },
48
+ "devDependencies": {
49
+ "@salesforce/lds-compiler-plugins": "^0.1.0-dev1",
50
+ "@salesforce/lds-karma": "^0.1.0-dev1"
51
+ },
52
+ "nx": {
53
+ "targets": {
54
+ "build": {
55
+ "outputs": [
56
+ "{projectRoot}/dist",
57
+ "{projectRoot}/sfdc"
58
+ ]
59
+ },
60
+ "build:raml": {
61
+ "outputs": [
62
+ "{projectRoot}/src/generated"
63
+ ]
64
+ },
65
+ "build:karma": {
66
+ "outputs": [
67
+ "{projectRoot}/karma/dist"
68
+ ]
69
+ }
70
+ }
71
+ },
72
+ "volta": {
73
+ "extends": "../../package.json"
74
+ }
75
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';