@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,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 = "SalesEinsteinCoach";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, DeleteAdapterFactory as $64$luvio_engine_DeleteAdapterFactory } 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_deleteSalesEinsteinCoachPracticeRoleplay_ResourceRequestConfig } from '../resources/deleteSalesEinsteinCoachPracticeRoleplay';
|
|
4
|
+
export declare const adapterName = "deleteRolePlaySession";
|
|
5
|
+
export declare const deleteRolePlaySession_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
|
+
export declare const deleteRolePlaySession_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
|
+
export interface DeleteRolePlaySessionConfig {
|
|
8
|
+
sessionId?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const createResourceParams: (config: DeleteRolePlaySessionConfig) => resources_deleteSalesEinsteinCoachPracticeRoleplay_ResourceRequestConfig;
|
|
11
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<DeleteRolePlaySessionConfig>): adapter$45$utils_Untrusted<DeleteRolePlaySessionConfig>;
|
|
12
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): DeleteRolePlaySessionConfig | null;
|
|
13
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: DeleteRolePlaySessionConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<void>;
|
|
14
|
+
export declare const deleteRolePlaySessionAdapterFactory: $64$luvio_engine_DeleteAdapterFactory<DeleteRolePlaySessionConfig>;
|
|
@@ -0,0 +1,27 @@
|
|
|
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_getSalesEinsteinCoachPracticeConfiguration_ResourceRequestConfig } from '../resources/getSalesEinsteinCoachPracticeConfiguration';
|
|
4
|
+
import { SalesEinsteinCoachConfigurationOutputRepresentation as types_SalesEinsteinCoachConfigurationOutputRepresentation_SalesEinsteinCoachConfigurationOutputRepresentation } from '../types/SalesEinsteinCoachConfigurationOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "getSalesEinsteinCoachConfiguration";
|
|
6
|
+
export declare const getSalesEinsteinCoachConfiguration_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getSalesEinsteinCoachConfiguration_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetSalesEinsteinCoachConfigurationConfig {
|
|
9
|
+
scenario: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const createResourceParams: (config: GetSalesEinsteinCoachConfigurationConfig) => resources_getSalesEinsteinCoachPracticeConfiguration_ResourceRequestConfig;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetSalesEinsteinCoachConfigurationConfig): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetSalesEinsteinCoachConfigurationConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetSalesEinsteinCoachConfigurationConfig>): adapter$45$utils_Untrusted<GetSalesEinsteinCoachConfigurationConfig>;
|
|
15
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetSalesEinsteinCoachConfigurationConfig | null;
|
|
16
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetSalesEinsteinCoachConfigurationConfig): $64$luvio_engine_Fragment;
|
|
17
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetSalesEinsteinCoachConfigurationConfig): $64$luvio_engine_Snapshot<types_SalesEinsteinCoachConfigurationOutputRepresentation_SalesEinsteinCoachConfigurationOutputRepresentation, any>;
|
|
18
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetSalesEinsteinCoachConfigurationConfig, resourceParams: resources_getSalesEinsteinCoachPracticeConfiguration_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SalesEinsteinCoachConfigurationOutputRepresentation_SalesEinsteinCoachConfigurationOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_SalesEinsteinCoachConfigurationOutputRepresentation_SalesEinsteinCoachConfigurationOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_SalesEinsteinCoachConfigurationOutputRepresentation_SalesEinsteinCoachConfigurationOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_SalesEinsteinCoachConfigurationOutputRepresentation_SalesEinsteinCoachConfigurationOutputRepresentation, any>>;
|
|
19
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetSalesEinsteinCoachConfigurationConfig, resourceParams: resources_getSalesEinsteinCoachPracticeConfiguration_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
20
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetSalesEinsteinCoachConfigurationConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_SalesEinsteinCoachConfigurationOutputRepresentation_SalesEinsteinCoachConfigurationOutputRepresentation, any>>;
|
|
21
|
+
export type BuildSnapshotContext = {
|
|
22
|
+
luvio: $64$luvio_engine_Luvio;
|
|
23
|
+
config: GetSalesEinsteinCoachConfigurationConfig;
|
|
24
|
+
};
|
|
25
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_SalesEinsteinCoachConfigurationOutputRepresentation_SalesEinsteinCoachConfigurationOutputRepresentation, any>>;
|
|
26
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_SalesEinsteinCoachConfigurationOutputRepresentation_SalesEinsteinCoachConfigurationOutputRepresentation>): $64$luvio_engine_Snapshot<types_SalesEinsteinCoachConfigurationOutputRepresentation_SalesEinsteinCoachConfigurationOutputRepresentation, any>;
|
|
27
|
+
export declare const getSalesEinsteinCoachConfigurationAdapterFactory: $64$luvio_engine_AdapterFactory<GetSalesEinsteinCoachConfigurationConfig, types_SalesEinsteinCoachConfigurationOutputRepresentation_SalesEinsteinCoachConfigurationOutputRepresentation>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, 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_postSalesEinsteinCoachPracticeRoleplayStart_ResourceRequestConfig } from '../resources/postSalesEinsteinCoachPracticeRoleplayStart';
|
|
4
|
+
import { SalesEinsteinCoachRolePlaySessionOutputRepresentation as types_SalesEinsteinCoachRolePlaySessionOutputRepresentation_SalesEinsteinCoachRolePlaySessionOutputRepresentation } from '../types/SalesEinsteinCoachRolePlaySessionOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "startRolePlaySession";
|
|
6
|
+
export declare const startRolePlaySession_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const startRolePlaySession_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface StartRolePlaySessionConfig {
|
|
9
|
+
recordId: string;
|
|
10
|
+
scenario: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const createResourceParams: (config: StartRolePlaySessionConfig) => resources_postSalesEinsteinCoachPracticeRoleplayStart_ResourceRequestConfig;
|
|
13
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<StartRolePlaySessionConfig>): adapter$45$utils_Untrusted<StartRolePlaySessionConfig>;
|
|
14
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): StartRolePlaySessionConfig | null;
|
|
15
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: StartRolePlaySessionConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_SalesEinsteinCoachRolePlaySessionOutputRepresentation_SalesEinsteinCoachRolePlaySessionOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_SalesEinsteinCoachRolePlaySessionOutputRepresentation_SalesEinsteinCoachRolePlaySessionOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_SalesEinsteinCoachRolePlaySessionOutputRepresentation_SalesEinsteinCoachRolePlaySessionOutputRepresentation, any>>;
|
|
16
|
+
export declare const startRolePlaySessionAdapterFactory: $64$luvio_engine_AdapterFactory<StartRolePlaySessionConfig, types_SalesEinsteinCoachRolePlaySessionOutputRepresentation_SalesEinsteinCoachRolePlaySessionOutputRepresentation>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, 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_postSalesEinsteinCoachPracticeFeedback_ResourceRequestConfig } from '../resources/postSalesEinsteinCoachPracticeFeedback';
|
|
4
|
+
import { SalesEinsteinCoachFeedbackOutputRepresentation as types_SalesEinsteinCoachFeedbackOutputRepresentation_SalesEinsteinCoachFeedbackOutputRepresentation } from '../types/SalesEinsteinCoachFeedbackOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "submitForFeedback";
|
|
6
|
+
export declare const submitForFeedback_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const submitForFeedback_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface SubmitForFeedbackConfig {
|
|
9
|
+
recordId: string;
|
|
10
|
+
scenario: string;
|
|
11
|
+
transcript: Array<{
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
export declare const createResourceParams: (config: SubmitForFeedbackConfig) => resources_postSalesEinsteinCoachPracticeFeedback_ResourceRequestConfig;
|
|
16
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<SubmitForFeedbackConfig>): adapter$45$utils_Untrusted<SubmitForFeedbackConfig>;
|
|
17
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): SubmitForFeedbackConfig | null;
|
|
18
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: SubmitForFeedbackConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_SalesEinsteinCoachFeedbackOutputRepresentation_SalesEinsteinCoachFeedbackOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_SalesEinsteinCoachFeedbackOutputRepresentation_SalesEinsteinCoachFeedbackOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_SalesEinsteinCoachFeedbackOutputRepresentation_SalesEinsteinCoachFeedbackOutputRepresentation, any>>;
|
|
19
|
+
export declare const submitForFeedbackAdapterFactory: $64$luvio_engine_AdapterFactory<SubmitForFeedbackConfig, types_SalesEinsteinCoachFeedbackOutputRepresentation_SalesEinsteinCoachFeedbackOutputRepresentation>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, 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_postSalesEinsteinCoachPracticeRoleplay_ResourceRequestConfig } from '../resources/postSalesEinsteinCoachPracticeRoleplay';
|
|
4
|
+
import { SalesEinsteinCoachRolePlayOutputRepresentation as types_SalesEinsteinCoachRolePlayOutputRepresentation_SalesEinsteinCoachRolePlayOutputRepresentation } from '../types/SalesEinsteinCoachRolePlayOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "submitForRolePlay";
|
|
6
|
+
export declare const submitForRolePlay_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const submitForRolePlay_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface SubmitForRolePlayConfig {
|
|
9
|
+
sessionId?: string;
|
|
10
|
+
replyId: string;
|
|
11
|
+
sequenceId: string;
|
|
12
|
+
transcript: string;
|
|
13
|
+
scenario: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const createResourceParams: (config: SubmitForRolePlayConfig) => resources_postSalesEinsteinCoachPracticeRoleplay_ResourceRequestConfig;
|
|
16
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<SubmitForRolePlayConfig>): adapter$45$utils_Untrusted<SubmitForRolePlayConfig>;
|
|
17
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): SubmitForRolePlayConfig | null;
|
|
18
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: SubmitForRolePlayConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_SalesEinsteinCoachRolePlayOutputRepresentation_SalesEinsteinCoachRolePlayOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_SalesEinsteinCoachRolePlayOutputRepresentation_SalesEinsteinCoachRolePlayOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_SalesEinsteinCoachRolePlayOutputRepresentation_SalesEinsteinCoachRolePlayOutputRepresentation, any>>;
|
|
19
|
+
export declare const submitForRolePlayAdapterFactory: $64$luvio_engine_AdapterFactory<SubmitForRolePlayConfig, types_SalesEinsteinCoachRolePlayOutputRepresentation_SalesEinsteinCoachRolePlayOutputRepresentation>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { getSalesEinsteinCoachConfigurationAdapterFactory } from '../adapters/getSalesEinsteinCoachConfiguration';
|
|
2
|
+
export { submitForFeedbackAdapterFactory } from '../adapters/submitForFeedback';
|
|
3
|
+
export { deleteRolePlaySessionAdapterFactory } from '../adapters/deleteRolePlaySession';
|
|
4
|
+
export { submitForRolePlayAdapterFactory } from '../adapters/submitForRolePlay';
|
|
5
|
+
export { startRolePlaySessionAdapterFactory } from '../adapters/startRolePlaySession';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare let deleteRolePlaySession: any;
|
|
2
|
+
declare let getSalesEinsteinCoachConfiguration: any;
|
|
3
|
+
declare let startRolePlaySession: any;
|
|
4
|
+
declare let submitForFeedback: any;
|
|
5
|
+
declare let submitForRolePlay: any;
|
|
6
|
+
declare let getSalesEinsteinCoachConfiguration_imperative: any;
|
|
7
|
+
export { deleteRolePlaySession, getSalesEinsteinCoachConfiguration, startRolePlaySession, submitForFeedback, submitForRolePlay, getSalesEinsteinCoachConfiguration_imperative, };
|
package/dist/es/es2018/types/src/generated/resources/deleteSalesEinsteinCoachPracticeRoleplay.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
export interface ResourceRequestConfig {
|
|
3
|
+
queryParams: {
|
|
4
|
+
sessionId?: string;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
8
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
9
|
+
export declare function getResponseCacheKeys(cacheKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig): void;
|
|
10
|
+
export declare function evictSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig): void;
|
|
11
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
12
|
+
export default createResourceRequest;
|
package/dist/es/es2018/types/src/generated/resources/getSalesEinsteinCoachPracticeConfiguration.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
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 { SalesEinsteinCoachConfigurationOutputRepresentation as types_SalesEinsteinCoachConfigurationOutputRepresentation_SalesEinsteinCoachConfigurationOutputRepresentation } from '../types/SalesEinsteinCoachConfigurationOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
queryParams: {
|
|
5
|
+
scenario: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_SalesEinsteinCoachConfigurationOutputRepresentation_SalesEinsteinCoachConfigurationOutputRepresentation): void;
|
|
12
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SalesEinsteinCoachConfigurationOutputRepresentation_SalesEinsteinCoachConfigurationOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_SalesEinsteinCoachConfigurationOutputRepresentation_SalesEinsteinCoachConfigurationOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_SalesEinsteinCoachConfigurationOutputRepresentation_SalesEinsteinCoachConfigurationOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_SalesEinsteinCoachConfigurationOutputRepresentation_SalesEinsteinCoachConfigurationOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_SalesEinsteinCoachConfigurationOutputRepresentation_SalesEinsteinCoachConfigurationOutputRepresentation, any>;
|
|
13
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_SalesEinsteinCoachConfigurationOutputRepresentation_SalesEinsteinCoachConfigurationOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
|
+
export default createResourceRequest;
|
package/dist/es/es2018/types/src/generated/resources/getSalesEinsteinCoachPracticeRoleplay.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
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 { SalesEinsteinCoachRolePlaySessionOutputRepresentation as types_SalesEinsteinCoachRolePlaySessionOutputRepresentation_SalesEinsteinCoachRolePlaySessionOutputRepresentation } from '../types/SalesEinsteinCoachRolePlaySessionOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
queryParams: {
|
|
5
|
+
sessionId?: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_SalesEinsteinCoachRolePlaySessionOutputRepresentation_SalesEinsteinCoachRolePlaySessionOutputRepresentation): void;
|
|
12
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SalesEinsteinCoachRolePlaySessionOutputRepresentation_SalesEinsteinCoachRolePlaySessionOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_SalesEinsteinCoachRolePlaySessionOutputRepresentation_SalesEinsteinCoachRolePlaySessionOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_SalesEinsteinCoachRolePlaySessionOutputRepresentation_SalesEinsteinCoachRolePlaySessionOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_SalesEinsteinCoachRolePlaySessionOutputRepresentation_SalesEinsteinCoachRolePlaySessionOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_SalesEinsteinCoachRolePlaySessionOutputRepresentation_SalesEinsteinCoachRolePlaySessionOutputRepresentation, any>;
|
|
13
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_SalesEinsteinCoachRolePlaySessionOutputRepresentation_SalesEinsteinCoachRolePlaySessionOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
|
+
export default createResourceRequest;
|
package/dist/es/es2018/types/src/generated/resources/postSalesEinsteinCoachPracticeFeedback.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { SalesEinsteinCoachFeedbackOutputRepresentation as types_SalesEinsteinCoachFeedbackOutputRepresentation_SalesEinsteinCoachFeedbackOutputRepresentation } from '../types/SalesEinsteinCoachFeedbackOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
body: {
|
|
5
|
+
recordId: string;
|
|
6
|
+
scenario: string;
|
|
7
|
+
transcript: Array<{
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
}>;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
13
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_SalesEinsteinCoachFeedbackOutputRepresentation_SalesEinsteinCoachFeedbackOutputRepresentation): void;
|
|
14
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SalesEinsteinCoachFeedbackOutputRepresentation_SalesEinsteinCoachFeedbackOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_SalesEinsteinCoachFeedbackOutputRepresentation_SalesEinsteinCoachFeedbackOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_SalesEinsteinCoachFeedbackOutputRepresentation_SalesEinsteinCoachFeedbackOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_SalesEinsteinCoachFeedbackOutputRepresentation_SalesEinsteinCoachFeedbackOutputRepresentation, any>;
|
|
15
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
16
|
+
export default createResourceRequest;
|
package/dist/es/es2018/types/src/generated/resources/postSalesEinsteinCoachPracticeRoleplay.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { SalesEinsteinCoachRolePlayOutputRepresentation as types_SalesEinsteinCoachRolePlayOutputRepresentation_SalesEinsteinCoachRolePlayOutputRepresentation } from '../types/SalesEinsteinCoachRolePlayOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
queryParams: {
|
|
5
|
+
sessionId?: string;
|
|
6
|
+
};
|
|
7
|
+
body: {
|
|
8
|
+
replyId: string;
|
|
9
|
+
sequenceId: string;
|
|
10
|
+
transcript: string;
|
|
11
|
+
scenario: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
15
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_SalesEinsteinCoachRolePlayOutputRepresentation_SalesEinsteinCoachRolePlayOutputRepresentation): void;
|
|
16
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SalesEinsteinCoachRolePlayOutputRepresentation_SalesEinsteinCoachRolePlayOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_SalesEinsteinCoachRolePlayOutputRepresentation_SalesEinsteinCoachRolePlayOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_SalesEinsteinCoachRolePlayOutputRepresentation_SalesEinsteinCoachRolePlayOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_SalesEinsteinCoachRolePlayOutputRepresentation_SalesEinsteinCoachRolePlayOutputRepresentation, any>;
|
|
17
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
18
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { SalesEinsteinCoachRolePlaySessionOutputRepresentation as types_SalesEinsteinCoachRolePlaySessionOutputRepresentation_SalesEinsteinCoachRolePlaySessionOutputRepresentation } from '../types/SalesEinsteinCoachRolePlaySessionOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
body: {
|
|
5
|
+
recordId: string;
|
|
6
|
+
scenario: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
10
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_SalesEinsteinCoachRolePlaySessionOutputRepresentation_SalesEinsteinCoachRolePlaySessionOutputRepresentation): void;
|
|
11
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SalesEinsteinCoachRolePlaySessionOutputRepresentation_SalesEinsteinCoachRolePlaySessionOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_SalesEinsteinCoachRolePlaySessionOutputRepresentation_SalesEinsteinCoachRolePlaySessionOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_SalesEinsteinCoachRolePlaySessionOutputRepresentation_SalesEinsteinCoachRolePlaySessionOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_SalesEinsteinCoachRolePlaySessionOutputRepresentation_SalesEinsteinCoachRolePlaySessionOutputRepresentation, any>;
|
|
12
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
13
|
+
export default createResourceRequest;
|
|
@@ -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 = "6b3d91e8c7c2898e39cf0de7f0ee715c";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: EtsConfigRepresentation, existing: EtsConfigRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EtsConfigRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: EtsConfigRepresentationNormalized, incoming: EtsConfigRepresentationNormalized): 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: EtsConfigRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* The ETS configuration required to connect to the transcription service
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface EtsConfigRepresentationNormalized {
|
|
17
|
+
/** The app context for the ETS Configuration */
|
|
18
|
+
appContext: string;
|
|
19
|
+
/** The tenant Id for the ETS Configuration */
|
|
20
|
+
tenantId: string;
|
|
21
|
+
/** The URI of the ETS Configuration */
|
|
22
|
+
uri: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The ETS configuration required to connect to the transcription service
|
|
26
|
+
*
|
|
27
|
+
* Keys:
|
|
28
|
+
* (none)
|
|
29
|
+
*/
|
|
30
|
+
export interface EtsConfigRepresentation {
|
|
31
|
+
appContext: string;
|
|
32
|
+
tenantId: string;
|
|
33
|
+
uri: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { EtsConfigRepresentation as EtsConfigRepresentation_EtsConfigRepresentation } from './EtsConfigRepresentation';
|
|
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 TTL = 600000;
|
|
4
|
+
export declare const VERSION = "99f102a01a7842f72a2286283a158187";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export declare function normalize(input: SalesEinsteinCoachConfigurationOutputRepresentation, existing: SalesEinsteinCoachConfigurationOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SalesEinsteinCoachConfigurationOutputRepresentationNormalized;
|
|
8
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
9
|
+
export declare function equals(existing: SalesEinsteinCoachConfigurationOutputRepresentationNormalized, incoming: SalesEinsteinCoachConfigurationOutputRepresentationNormalized): 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: SalesEinsteinCoachConfigurationOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
|
+
/**
|
|
13
|
+
* Directs UI to show a particular type of coaching moment and gives configuration to connect to ETS along with instructions for LLM
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface SalesEinsteinCoachConfigurationOutputRepresentationNormalized {
|
|
19
|
+
/** Type of coaching moment to show to user (SimulatedConversation or StandAndDeliver) */
|
|
20
|
+
coachingMomentType: string;
|
|
21
|
+
/** The ets configuration required to connect to the transcription service */
|
|
22
|
+
etsConfig: EtsConfigRepresentation_EtsConfigRepresentation;
|
|
23
|
+
/** The instructions for the co-pilot */
|
|
24
|
+
instructions: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Directs UI to show a particular type of coaching moment and gives configuration to connect to ETS along with instructions for LLM
|
|
28
|
+
*
|
|
29
|
+
* Keys:
|
|
30
|
+
* (none)
|
|
31
|
+
*/
|
|
32
|
+
export interface SalesEinsteinCoachConfigurationOutputRepresentation {
|
|
33
|
+
coachingMomentType: string;
|
|
34
|
+
etsConfig: EtsConfigRepresentation_EtsConfigRepresentation;
|
|
35
|
+
instructions: string;
|
|
36
|
+
}
|
package/dist/es/es2018/types/src/generated/types/SalesEinsteinCoachFeedbackInputRepresentation.d.ts
ADDED
|
@@ -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 VERSION = "f92e589df102cf9c9f69ab154ffb91d8";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: SalesEinsteinCoachFeedbackInputRepresentation, existing: SalesEinsteinCoachFeedbackInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SalesEinsteinCoachFeedbackInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: SalesEinsteinCoachFeedbackInputRepresentationNormalized, incoming: SalesEinsteinCoachFeedbackInputRepresentationNormalized): 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: SalesEinsteinCoachFeedbackInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Input representation for the UI to submit a transcript to get AI feedback.
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface SalesEinsteinCoachFeedbackInputRepresentationNormalized {
|
|
17
|
+
/** Id of the record that the feedback is for */
|
|
18
|
+
recordId: string;
|
|
19
|
+
/** Coaching moment scenario */
|
|
20
|
+
scenario: string;
|
|
21
|
+
/** Transcript of the call */
|
|
22
|
+
transcript: Array<{
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
}>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Input representation for the UI to submit a transcript to get AI feedback.
|
|
28
|
+
*
|
|
29
|
+
* Keys:
|
|
30
|
+
* (none)
|
|
31
|
+
*/
|
|
32
|
+
export interface SalesEinsteinCoachFeedbackInputRepresentation {
|
|
33
|
+
recordId: string;
|
|
34
|
+
scenario: string;
|
|
35
|
+
transcript: Array<{
|
|
36
|
+
[key: string]: unknown;
|
|
37
|
+
}>;
|
|
38
|
+
}
|
package/dist/es/es2018/types/src/generated/types/SalesEinsteinCoachFeedbackOutputRepresentation.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
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 = "eb29c35ef1ae7eaadb3e5cda5c1f5eef";
|
|
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
|
+
generation_id: string;
|
|
8
|
+
}
|
|
9
|
+
export type SalesEinsteinCoachFeedbackOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
+
export type PartialSalesEinsteinCoachFeedbackOutputRepresentationNormalizedKeyMetadata = 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): SalesEinsteinCoachFeedbackOutputRepresentationNormalizedKeyMetadata;
|
|
13
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: SalesEinsteinCoachFeedbackOutputRepresentation): string;
|
|
14
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: SalesEinsteinCoachFeedbackOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function normalize(input: SalesEinsteinCoachFeedbackOutputRepresentation, existing: SalesEinsteinCoachFeedbackOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SalesEinsteinCoachFeedbackOutputRepresentationNormalized;
|
|
16
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
|
+
export declare function equals(existing: SalesEinsteinCoachFeedbackOutputRepresentationNormalized, incoming: SalesEinsteinCoachFeedbackOutputRepresentationNormalized): 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: SalesEinsteinCoachFeedbackOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
20
|
+
/**
|
|
21
|
+
* Feedback given by AI on the transcript of a call
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* generation_id (string): generationId
|
|
25
|
+
*/
|
|
26
|
+
export interface SalesEinsteinCoachFeedbackOutputRepresentationNormalized {
|
|
27
|
+
/** The feedback from the LLM for the transcript of the call */
|
|
28
|
+
feedback: string;
|
|
29
|
+
/** The generation ID for the feedback received from LLM */
|
|
30
|
+
generationId: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Feedback given by AI on the transcript of a call
|
|
34
|
+
*
|
|
35
|
+
* Keys:
|
|
36
|
+
* generation_id (string): generationId
|
|
37
|
+
*/
|
|
38
|
+
export interface SalesEinsteinCoachFeedbackOutputRepresentation {
|
|
39
|
+
feedback: string;
|
|
40
|
+
generationId: string;
|
|
41
|
+
}
|
package/dist/es/es2018/types/src/generated/types/SalesEinsteinCoachRolePlayInputRepresentation.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
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 = "bdfb618eb6f9a01d959172dd41e0df10";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: SalesEinsteinCoachRolePlayInputRepresentation, existing: SalesEinsteinCoachRolePlayInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SalesEinsteinCoachRolePlayInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: SalesEinsteinCoachRolePlayInputRepresentationNormalized, incoming: SalesEinsteinCoachRolePlayInputRepresentationNormalized): 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: SalesEinsteinCoachRolePlayInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Input representation to talk back and forth with an AI modal
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface SalesEinsteinCoachRolePlayInputRepresentationNormalized {
|
|
17
|
+
/** Reply Id of the previous response from LLM */
|
|
18
|
+
replyId: string;
|
|
19
|
+
/** The coaching moment scenario for the session */
|
|
20
|
+
scenario: string;
|
|
21
|
+
/** Sequence id required by co-pilot */
|
|
22
|
+
sequenceId: string;
|
|
23
|
+
/** The transcript of the conversation up to this point in time */
|
|
24
|
+
transcript: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Input representation to talk back and forth with an AI modal
|
|
28
|
+
*
|
|
29
|
+
* Keys:
|
|
30
|
+
* (none)
|
|
31
|
+
*/
|
|
32
|
+
export interface SalesEinsteinCoachRolePlayInputRepresentation {
|
|
33
|
+
replyId: string;
|
|
34
|
+
scenario: string;
|
|
35
|
+
sequenceId: string;
|
|
36
|
+
transcript: string;
|
|
37
|
+
}
|
package/dist/es/es2018/types/src/generated/types/SalesEinsteinCoachRolePlayOutputRepresentation.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
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 = "052724fcba3dafd4732c1917be55d517";
|
|
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
|
+
reply_id: string;
|
|
8
|
+
}
|
|
9
|
+
export type SalesEinsteinCoachRolePlayOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
+
export type PartialSalesEinsteinCoachRolePlayOutputRepresentationNormalizedKeyMetadata = 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): SalesEinsteinCoachRolePlayOutputRepresentationNormalizedKeyMetadata;
|
|
13
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: SalesEinsteinCoachRolePlayOutputRepresentation): string;
|
|
14
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: SalesEinsteinCoachRolePlayOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function normalize(input: SalesEinsteinCoachRolePlayOutputRepresentation, existing: SalesEinsteinCoachRolePlayOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SalesEinsteinCoachRolePlayOutputRepresentationNormalized;
|
|
16
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
|
+
export declare function equals(existing: SalesEinsteinCoachRolePlayOutputRepresentationNormalized, incoming: SalesEinsteinCoachRolePlayOutputRepresentationNormalized): 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: SalesEinsteinCoachRolePlayOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
20
|
+
/**
|
|
21
|
+
* Reply given by AI on a back and forth conversation with user
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* reply_id (string): replyId
|
|
25
|
+
*/
|
|
26
|
+
export interface SalesEinsteinCoachRolePlayOutputRepresentationNormalized {
|
|
27
|
+
/** The reply from the co-pilot */
|
|
28
|
+
reply: string;
|
|
29
|
+
/** The audio string returned by speech synthesizer */
|
|
30
|
+
replyAudio: string | null;
|
|
31
|
+
/** The reply ID for the co-pilot interaction */
|
|
32
|
+
replyId: string;
|
|
33
|
+
/** The sequence ID for the co-pilot interaction */
|
|
34
|
+
sequenceId: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Reply given by AI on a back and forth conversation with user
|
|
38
|
+
*
|
|
39
|
+
* Keys:
|
|
40
|
+
* reply_id (string): replyId
|
|
41
|
+
*/
|
|
42
|
+
export interface SalesEinsteinCoachRolePlayOutputRepresentation {
|
|
43
|
+
reply: string;
|
|
44
|
+
replyAudio: string | null;
|
|
45
|
+
replyId: string;
|
|
46
|
+
sequenceId: string;
|
|
47
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 = "8c4179e3d53ac8579559457e769fae7e";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: SalesEinsteinCoachRolePlaySessionInputRepresentation, existing: SalesEinsteinCoachRolePlaySessionInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SalesEinsteinCoachRolePlaySessionInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: SalesEinsteinCoachRolePlaySessionInputRepresentationNormalized, incoming: SalesEinsteinCoachRolePlaySessionInputRepresentationNormalized): 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: SalesEinsteinCoachRolePlaySessionInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Input representation to start a session with einstein copilot for role play
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface SalesEinsteinCoachRolePlaySessionInputRepresentationNormalized {
|
|
17
|
+
/** The id of the record the session is based on */
|
|
18
|
+
recordId: string;
|
|
19
|
+
/** The coaching moment scenario for the session */
|
|
20
|
+
scenario: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Input representation to start a session with einstein copilot for role play
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface SalesEinsteinCoachRolePlaySessionInputRepresentation {
|
|
29
|
+
recordId: string;
|
|
30
|
+
scenario: string;
|
|
31
|
+
}
|