@salesforce/lds-adapters-industries-cpq 1.100.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +82 -0
- package/dist/es/es2018/industries-cpq.js +448 -0
- package/dist/types/src/generated/adapters/adapter-utils.d.ts +66 -0
- package/dist/types/src/generated/adapters/preview.d.ts +15 -0
- package/dist/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/types/src/generated/artifacts/sfdc.d.ts +2 -0
- package/dist/types/src/generated/resources/postConnectCpqPreview.d.ts +13 -0
- package/dist/types/src/generated/types/CpqBaseListOutputRepresentation.d.ts +71 -0
- package/dist/types/src/generated/types/PreviewInputRepresentation.d.ts +46 -0
- package/dist/types/src/generated/types/PreviewInputRepresentationWrapper.d.ts +30 -0
- package/dist/types/src/generated/types/ProductConfigurationInputRepresentation.d.ts +32 -0
- package/dist/types/src/generated/types/type-utils.d.ts +39 -0
- package/dist/umd/es2018/industries-cpq.js +456 -0
- package/dist/umd/es5/industries-cpq.js +459 -0
- package/package.json +70 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +475 -0
- package/src/raml/api.raml +135 -0
- package/src/raml/luvio.raml +19 -0
|
@@ -0,0 +1,71 @@
|
|
|
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, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
+
export declare const TTL = 1000;
|
|
3
|
+
export declare const VERSION = "5f42d9d8a2278fc45355868ea236f9c6";
|
|
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
|
+
message: string;
|
|
8
|
+
}
|
|
9
|
+
export type CpqBaseListOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
+
export type PartialCpqBaseListOutputRepresentationNormalizedKeyMetadata = 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): CpqBaseListOutputRepresentationNormalizedKeyMetadata;
|
|
13
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: CpqBaseListOutputRepresentation): string;
|
|
14
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: CpqBaseListOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function normalize(input: CpqBaseListOutputRepresentation, existing: CpqBaseListOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CpqBaseListOutputRepresentationNormalized;
|
|
16
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
17
|
+
export declare function equals(existing: CpqBaseListOutputRepresentationNormalized, incoming: CpqBaseListOutputRepresentationNormalized): boolean;
|
|
18
|
+
export declare function deepFreeze(input: CpqBaseListOutputRepresentation): void;
|
|
19
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
20
|
+
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: CpqBaseListOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
21
|
+
/**
|
|
22
|
+
* Base representation for list apis
|
|
23
|
+
*
|
|
24
|
+
* Keys:
|
|
25
|
+
* message (string): status
|
|
26
|
+
*/
|
|
27
|
+
export interface CpqBaseListOutputRepresentationNormalized {
|
|
28
|
+
/** Error Code */
|
|
29
|
+
errorCode?: string;
|
|
30
|
+
/** Error Details */
|
|
31
|
+
errorDetails?: string;
|
|
32
|
+
/** Error Message */
|
|
33
|
+
errorMessage?: string;
|
|
34
|
+
/** Limit */
|
|
35
|
+
limit?: number;
|
|
36
|
+
/** Offset */
|
|
37
|
+
offSet?: number;
|
|
38
|
+
/** Input Query Object */
|
|
39
|
+
query?: {
|
|
40
|
+
[key: string]: {
|
|
41
|
+
[key: string]: {};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
/** Result object */
|
|
45
|
+
result: Array<unknown>;
|
|
46
|
+
/** Error Status */
|
|
47
|
+
status: string;
|
|
48
|
+
/** Totals */
|
|
49
|
+
total?: number;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Base representation for list apis
|
|
53
|
+
*
|
|
54
|
+
* Keys:
|
|
55
|
+
* message (string): status
|
|
56
|
+
*/
|
|
57
|
+
export interface CpqBaseListOutputRepresentation {
|
|
58
|
+
errorCode?: string;
|
|
59
|
+
errorDetails?: string;
|
|
60
|
+
errorMessage?: string;
|
|
61
|
+
limit?: number;
|
|
62
|
+
offSet?: number;
|
|
63
|
+
query?: {
|
|
64
|
+
[key: string]: {
|
|
65
|
+
[key: string]: {};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
result: Array<unknown>;
|
|
69
|
+
status: string;
|
|
70
|
+
total?: number;
|
|
71
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ProductConfigurationInputRepresentation as ProductConfigurationInputRepresentation_ProductConfigurationInputRepresentation } from './ProductConfigurationInputRepresentation';
|
|
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 = "0f0e9ad90ea37549fcdf9c5617e35c5c";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: PreviewInputRepresentation, existing: PreviewInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PreviewInputRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: PreviewInputRepresentationNormalized, incoming: PreviewInputRepresentationNormalized): boolean;
|
|
9
|
+
export declare function deepFreeze(input: PreviewInputRepresentation): void;
|
|
10
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
|
+
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: PreviewInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
|
+
/**
|
|
13
|
+
* Input Representation for Preview Product or cart item.
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface PreviewInputRepresentationNormalized {
|
|
19
|
+
/** Id of the Cart to which ths conigured items belongs to. */
|
|
20
|
+
cartId?: string;
|
|
21
|
+
/** Items to be configure and update to the cart. */
|
|
22
|
+
configuredItems?: Array<ProductConfigurationInputRepresentation_ProductConfigurationInputRepresentation>;
|
|
23
|
+
/** CorrelationId */
|
|
24
|
+
correlationId?: string;
|
|
25
|
+
/** Key value pair of custom fields. */
|
|
26
|
+
customFields?: {
|
|
27
|
+
[key: string]: string;
|
|
28
|
+
};
|
|
29
|
+
/** User context in which cart would be created. */
|
|
30
|
+
userContext?: {};
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Input Representation for Preview Product or cart item.
|
|
34
|
+
*
|
|
35
|
+
* Keys:
|
|
36
|
+
* (none)
|
|
37
|
+
*/
|
|
38
|
+
export interface PreviewInputRepresentation {
|
|
39
|
+
cartId?: string;
|
|
40
|
+
configuredItems?: Array<ProductConfigurationInputRepresentation_ProductConfigurationInputRepresentation>;
|
|
41
|
+
correlationId?: string;
|
|
42
|
+
customFields?: {
|
|
43
|
+
[key: string]: string;
|
|
44
|
+
};
|
|
45
|
+
userContext?: {};
|
|
46
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PreviewInputRepresentation as PreviewInputRepresentation_PreviewInputRepresentation } from './PreviewInputRepresentation';
|
|
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 = "11255fc8e59b09b4445e5d753813a840";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: PreviewInputRepresentationWrapper, existing: PreviewInputRepresentationWrapperNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PreviewInputRepresentationWrapperNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: PreviewInputRepresentationWrapperNormalized, incoming: PreviewInputRepresentationWrapperNormalized): boolean;
|
|
9
|
+
export declare function deepFreeze(input: PreviewInputRepresentationWrapper): void;
|
|
10
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
|
+
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: PreviewInputRepresentationWrapper, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
|
+
/**
|
|
13
|
+
* Wrapper representation for input params
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface PreviewInputRepresentationWrapperNormalized {
|
|
19
|
+
/** Key for api call */
|
|
20
|
+
previewInput: PreviewInputRepresentation_PreviewInputRepresentation;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Wrapper representation for input params
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface PreviewInputRepresentationWrapper {
|
|
29
|
+
previewInput: PreviewInputRepresentation_PreviewInputRepresentation;
|
|
30
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 = "11308620a02e78ce199034c3567ed120";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: ProductConfigurationInputRepresentation, existing: ProductConfigurationInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductConfigurationInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ProductConfigurationInputRepresentationNormalized, incoming: ProductConfigurationInputRepresentationNormalized): boolean;
|
|
8
|
+
export declare function deepFreeze(input: ProductConfigurationInputRepresentation): void;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductConfigurationInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
|
+
/**
|
|
12
|
+
* Input Representation for Product Configuration.
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface ProductConfigurationInputRepresentationNormalized {
|
|
18
|
+
/** Product delta configurations */
|
|
19
|
+
configuration?: {};
|
|
20
|
+
/** Product Id */
|
|
21
|
+
productId?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Input Representation for Product Configuration.
|
|
25
|
+
*
|
|
26
|
+
* Keys:
|
|
27
|
+
* (none)
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductConfigurationInputRepresentation {
|
|
30
|
+
configuration?: {};
|
|
31
|
+
productId?: string;
|
|
32
|
+
}
|
|
@@ -0,0 +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 {};
|