@salesforce/lds-adapters-sales-saleseinsteincoach 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.
- package/LICENSE.txt +82 -0
- package/dist/es/es2018/sales-saleseinsteincoach.js +1051 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/deleteRolePlaySession.d.ts +14 -0
- package/dist/es/es2018/types/src/generated/adapters/getSalesEinsteinCoachConfiguration.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/startRolePlaySession.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/adapters/submitForFeedback.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/adapters/submitForRolePlay.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +5 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +7 -0
- package/dist/es/es2018/types/src/generated/resources/deleteSalesEinsteinCoachPracticeRoleplay.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/getSalesEinsteinCoachPracticeConfiguration.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getSalesEinsteinCoachPracticeRoleplay.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/postSalesEinsteinCoachPracticeFeedback.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/postSalesEinsteinCoachPracticeRoleplay.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postSalesEinsteinCoachPracticeRoleplayStart.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/types/EtsConfigRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/SalesEinsteinCoachConfigurationOutputRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/SalesEinsteinCoachFeedbackInputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/SalesEinsteinCoachFeedbackOutputRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/SalesEinsteinCoachRolePlayInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/SalesEinsteinCoachRolePlayOutputRepresentation.d.ts +47 -0
- package/dist/es/es2018/types/src/generated/types/SalesEinsteinCoachRolePlaySessionInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/SalesEinsteinCoachRolePlaySessionOutputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +67 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1104 -0
- package/src/raml/api.raml +247 -0
- package/src/raml/luvio.raml +50 -0
|
@@ -0,0 +1,38 @@
|
|
|
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 = 15000;
|
|
3
|
+
export declare const VERSION = "e25cd2e13eba0c39def1e1bd6777ce4d";
|
|
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
|
+
session_id: string;
|
|
8
|
+
}
|
|
9
|
+
export type SalesEinsteinCoachRolePlaySessionOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
+
export type PartialSalesEinsteinCoachRolePlaySessionOutputRepresentationNormalizedKeyMetadata = 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): SalesEinsteinCoachRolePlaySessionOutputRepresentationNormalizedKeyMetadata;
|
|
13
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: SalesEinsteinCoachRolePlaySessionOutputRepresentation): string;
|
|
14
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: SalesEinsteinCoachRolePlaySessionOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function normalize(input: SalesEinsteinCoachRolePlaySessionOutputRepresentation, existing: SalesEinsteinCoachRolePlaySessionOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SalesEinsteinCoachRolePlaySessionOutputRepresentationNormalized;
|
|
16
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
|
+
export declare function equals(existing: SalesEinsteinCoachRolePlaySessionOutputRepresentationNormalized, incoming: SalesEinsteinCoachRolePlaySessionOutputRepresentationNormalized): 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: SalesEinsteinCoachRolePlaySessionOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
20
|
+
/**
|
|
21
|
+
* This resource is used to create a new session with co-pilot for role play
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* session_id (string): sessionId
|
|
25
|
+
*/
|
|
26
|
+
export interface SalesEinsteinCoachRolePlaySessionOutputRepresentationNormalized {
|
|
27
|
+
/** The id of the session created with co-pilot for role play */
|
|
28
|
+
sessionId: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* This resource is used to create a new session with co-pilot for role play
|
|
32
|
+
*
|
|
33
|
+
* Keys:
|
|
34
|
+
* session_id (string): sessionId
|
|
35
|
+
*/
|
|
36
|
+
export interface SalesEinsteinCoachRolePlaySessionOutputRepresentation {
|
|
37
|
+
sessionId: string;
|
|
38
|
+
}
|
|
@@ -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,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@salesforce/lds-adapters-sales-saleseinsteincoach",
|
|
3
|
+
"version": "0.1.0-dev1",
|
|
4
|
+
"description": "APIs for interacting with Sales Einstein Coach",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
|
+
"main": "dist/es/es2018/sales-saleseinsteincoach.js",
|
|
7
|
+
"module": "dist/es/es2018/sales-saleseinsteincoach.js",
|
|
8
|
+
"types": "dist/es/es2018/types/src/generated/artifacts/main.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"sfdc",
|
|
12
|
+
"src/raml/*"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/es/es2018/types/src/generated/artifacts/main.d.ts",
|
|
17
|
+
"import": "./dist/es/es2018/sales-saleseinsteincoach.js",
|
|
18
|
+
"require": "./dist/es/es2018/sales-saleseinsteincoach.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": "salesSaleseinsteincoachApi"
|
|
29
|
+
},
|
|
30
|
+
"contributors": [
|
|
31
|
+
"t.morrow@salesforce.com",
|
|
32
|
+
"ryan.foster@salesforce.com"
|
|
33
|
+
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "yarn build:services",
|
|
36
|
+
"build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
|
|
37
|
+
"build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
|
|
38
|
+
"clean": "rm -rf dist sfdc src/generated",
|
|
39
|
+
"release:core": "../../scripts/release/core.js --adapter=lds-adapters-sales-saleseinsteincoach",
|
|
40
|
+
"release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-sales-saleseinsteincoach",
|
|
41
|
+
"test:unit": "jest"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@salesforce/lds-bindings": "^0.1.0-dev1"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@salesforce/lds-compiler-plugins": "^0.1.0-dev1"
|
|
48
|
+
},
|
|
49
|
+
"nx": {
|
|
50
|
+
"targets": {
|
|
51
|
+
"build": {
|
|
52
|
+
"outputs": [
|
|
53
|
+
"{projectRoot}/dist",
|
|
54
|
+
"{projectRoot}/sfdc"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"build:raml": {
|
|
58
|
+
"outputs": [
|
|
59
|
+
"{projectRoot}/src/generated"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"volta": {
|
|
65
|
+
"extends": "../../package.json"
|
|
66
|
+
}
|
|
67
|
+
}
|
package/sfdc/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';
|