@salesforce/lds-adapters-platform-learning-content 1.274.0 → 1.275.0

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 (20) hide show
  1. package/dist/es/es2018/platform-learning-content.js +520 -30
  2. package/dist/es/es2018/types/src/generated/adapters/getCoachingAIFeedback.d.ts +27 -0
  3. package/dist/es/es2018/types/src/generated/adapters/getFeaturedItemsRelatedList.d.ts +1 -0
  4. package/dist/es/es2018/types/src/generated/adapters/submitForCoachingAIFeedback.d.ts +16 -0
  5. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -1
  7. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformCoachingAiFeedbackByLearningItemSubmissionId.d.ts +15 -0
  8. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformFeaturedItemListRelated.d.ts +1 -0
  9. package/dist/es/es2018/types/src/generated/resources/postLearningContentPlatformCoachingAiFeedback.d.ts +13 -0
  10. package/dist/es/es2018/types/src/generated/types/AbstractCoachingAIFeedbackSectionRepresentation.d.ts +34 -0
  11. package/dist/es/es2018/types/src/generated/types/CoachingAICallSubmissionInputRepresentation.d.ts +31 -0
  12. package/dist/es/es2018/types/src/generated/types/CoachingAICallSubmissionOutputRepresentation.d.ts +41 -0
  13. package/dist/es/es2018/types/src/generated/types/CoachingAICriteriaBasedFeedbackRepresentation.d.ts +31 -0
  14. package/dist/es/es2018/types/src/generated/types/CoachingAIFeedbackRepresentation.d.ts +38 -0
  15. package/dist/es/es2018/types/src/generated/types/CoachingAIFeedbackSectionStringCollectionRepresentation.d.ts +30 -0
  16. package/dist/es/es2018/types/src/generated/types/CoachingAIFeedbackSectionTextRepresentation.d.ts +30 -0
  17. package/package.json +6 -5
  18. package/sfdc/index.js +1113 -609
  19. package/src/raml/api.raml +115 -0
  20. package/src/raml/luvio.raml +13 -0
@@ -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_getLearningContentPlatformCoachingAiFeedbackByLearningItemSubmissionId_ResourceRequestConfig } from '../resources/getLearningContentPlatformCoachingAiFeedbackByLearningItemSubmissionId';
4
+ import { CoachingAIFeedbackRepresentation as types_CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation } from '../types/CoachingAIFeedbackRepresentation';
5
+ export declare const adapterName = "getCoachingAIFeedback";
6
+ export declare const getCoachingAIFeedback_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getCoachingAIFeedback_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetCoachingAIFeedbackConfig {
9
+ learningItemSubmissionId: string;
10
+ }
11
+ export declare const createResourceParams: (config: GetCoachingAIFeedbackConfig) => resources_getLearningContentPlatformCoachingAiFeedbackByLearningItemSubmissionId_ResourceRequestConfig;
12
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetCoachingAIFeedbackConfig): string;
13
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetCoachingAIFeedbackConfig): $64$luvio_engine_NormalizedKeyMetadata;
14
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetCoachingAIFeedbackConfig>): adapter$45$utils_Untrusted<GetCoachingAIFeedbackConfig>;
15
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetCoachingAIFeedbackConfig | null;
16
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetCoachingAIFeedbackConfig): $64$luvio_engine_Fragment;
17
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetCoachingAIFeedbackConfig): $64$luvio_engine_Snapshot<types_CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation, any>;
18
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetCoachingAIFeedbackConfig, resourceParams: resources_getLearningContentPlatformCoachingAiFeedbackByLearningItemSubmissionId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation, any>>;
19
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetCoachingAIFeedbackConfig, resourceParams: resources_getLearningContentPlatformCoachingAiFeedbackByLearningItemSubmissionId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
20
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetCoachingAIFeedbackConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation, any>>;
21
+ export type BuildSnapshotContext = {
22
+ luvio: $64$luvio_engine_Luvio;
23
+ config: GetCoachingAIFeedbackConfig;
24
+ };
25
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation, any>>;
26
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation>): $64$luvio_engine_Snapshot<types_CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation, any>;
27
+ export declare const getCoachingAIFeedbackAdapterFactory: $64$luvio_engine_AdapterFactory<GetCoachingAIFeedbackConfig, types_CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation>;
@@ -8,6 +8,7 @@ export declare const getFeaturedItemsRelatedList_ConfigPropertyNames: adapter$45
8
8
  export interface GetFeaturedItemsRelatedListConfig {
9
9
  appId: string;
10
10
  pageRef: string;
11
+ returnMax?: boolean;
11
12
  }
12
13
  export declare const createResourceParams: (config: GetFeaturedItemsRelatedListConfig) => resources_getLearningContentPlatformFeaturedItemListRelated_ResourceRequestConfig;
13
14
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetFeaturedItemsRelatedListConfig): string;
@@ -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_postLearningContentPlatformCoachingAiFeedback_ResourceRequestConfig } from '../resources/postLearningContentPlatformCoachingAiFeedback';
4
+ import { CoachingAICallSubmissionOutputRepresentation as types_CoachingAICallSubmissionOutputRepresentation_CoachingAICallSubmissionOutputRepresentation } from '../types/CoachingAICallSubmissionOutputRepresentation';
5
+ export declare const adapterName = "submitForCoachingAIFeedback";
6
+ export declare const submitForCoachingAIFeedback_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const submitForCoachingAIFeedback_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface SubmitForCoachingAIFeedbackConfig {
9
+ callId: string;
10
+ learningItemId: string;
11
+ }
12
+ export declare const createResourceParams: (config: SubmitForCoachingAIFeedbackConfig) => resources_postLearningContentPlatformCoachingAiFeedback_ResourceRequestConfig;
13
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<SubmitForCoachingAIFeedbackConfig>): adapter$45$utils_Untrusted<SubmitForCoachingAIFeedbackConfig>;
14
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): SubmitForCoachingAIFeedbackConfig | null;
15
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: SubmitForCoachingAIFeedbackConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_CoachingAICallSubmissionOutputRepresentation_CoachingAICallSubmissionOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CoachingAICallSubmissionOutputRepresentation_CoachingAICallSubmissionOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CoachingAICallSubmissionOutputRepresentation_CoachingAICallSubmissionOutputRepresentation, any>>;
16
+ export declare const submitForCoachingAIFeedbackAdapterFactory: $64$luvio_engine_AdapterFactory<SubmitForCoachingAIFeedbackConfig, types_CoachingAICallSubmissionOutputRepresentation_CoachingAICallSubmissionOutputRepresentation>;
@@ -1,3 +1,5 @@
1
+ export { submitForCoachingAIFeedbackAdapterFactory } from '../adapters/submitForCoachingAIFeedback';
2
+ export { getCoachingAIFeedbackAdapterFactory } from '../adapters/getCoachingAIFeedback';
1
3
  export { getFeaturedItemsRecommendedListAdapterFactory } from '../adapters/getFeaturedItemsRecommendedList';
2
4
  export { getFeaturedItemsRelatedListAdapterFactory } from '../adapters/getFeaturedItemsRelatedList';
3
5
  export { getLearningConfigAdapterFactory } from '../adapters/getLearningConfig';
@@ -1,4 +1,5 @@
1
1
  declare let evaluateLearningItem: any;
2
+ declare let getCoachingAIFeedback: any;
2
3
  declare let getFeaturedItemsRecommendedList: any;
3
4
  declare let getFeaturedItemsRelatedList: any;
4
5
  declare let getLearningConfig: any;
@@ -11,6 +12,8 @@ declare let getModule: any;
11
12
  declare let getModuleNotifyChange: any;
12
13
  declare let getTextLesson: any;
13
14
  declare let getTextLessonNotifyChange: any;
15
+ declare let submitForCoachingAIFeedback: any;
16
+ declare let getCoachingAIFeedback_imperative: any;
14
17
  declare let getFeaturedItemsRecommendedList_imperative: any;
15
18
  declare let getFeaturedItemsRelatedList_imperative: any;
16
19
  declare let getLearningConfig_imperative: any;
@@ -23,5 +26,5 @@ declare let getTextLesson_imperative: any;
23
26
  declare let notifyLearningItemProgressUpdateAvailable: any;
24
27
  declare let notifyLearningItemUpdateAvailable: any;
25
28
  declare let notifyLearningTextLessonUpdateAvailable: any;
26
- export { evaluateLearningItem, getFeaturedItemsRecommendedList, getFeaturedItemsRelatedList, getLearningConfig, getLearningItemProgress, getLearningItemsList, getLearningModel, getLearningPractice, getLearningPracticeNotifyChange, getModule, getModuleNotifyChange, getTextLesson, getTextLessonNotifyChange, getFeaturedItemsRecommendedList_imperative, getFeaturedItemsRelatedList_imperative, getLearningConfig_imperative, getLearningItemProgress_imperative, getLearningItemsList_imperative, getLearningModel_imperative, getLearningPractice_imperative, getModule_imperative, getTextLesson_imperative, };
29
+ export { evaluateLearningItem, getCoachingAIFeedback, getFeaturedItemsRecommendedList, getFeaturedItemsRelatedList, getLearningConfig, getLearningItemProgress, getLearningItemsList, getLearningModel, getLearningPractice, getLearningPracticeNotifyChange, getModule, getModuleNotifyChange, getTextLesson, getTextLessonNotifyChange, submitForCoachingAIFeedback, getCoachingAIFeedback_imperative, getFeaturedItemsRecommendedList_imperative, getFeaturedItemsRelatedList_imperative, getLearningConfig_imperative, getLearningItemProgress_imperative, getLearningItemsList_imperative, getLearningModel_imperative, getLearningPractice_imperative, getModule_imperative, getTextLesson_imperative, };
27
30
  export { notifyLearningItemProgressUpdateAvailable, notifyLearningItemUpdateAvailable, notifyLearningTextLessonUpdateAvailable, };
@@ -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 { CoachingAIFeedbackRepresentation as types_CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation } from '../types/CoachingAIFeedbackRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ urlParams: {
5
+ learningItemSubmissionId: 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_CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation): void;
12
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation, any>;
13
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation>): $64$luvio_engine_ErrorSnapshot;
14
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
15
+ export default createResourceRequest;
@@ -4,6 +4,7 @@ export interface ResourceRequestConfig {
4
4
  queryParams: {
5
5
  appId: string;
6
6
  pageRef: string;
7
+ returnMax?: boolean;
7
8
  };
8
9
  }
9
10
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -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 { CoachingAICallSubmissionOutputRepresentation as types_CoachingAICallSubmissionOutputRepresentation_CoachingAICallSubmissionOutputRepresentation } from '../types/CoachingAICallSubmissionOutputRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ body: {
5
+ callId: string;
6
+ learningItemId: 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_CoachingAICallSubmissionOutputRepresentation_CoachingAICallSubmissionOutputRepresentation): void;
11
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CoachingAICallSubmissionOutputRepresentation_CoachingAICallSubmissionOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_CoachingAICallSubmissionOutputRepresentation_CoachingAICallSubmissionOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_CoachingAICallSubmissionOutputRepresentation_CoachingAICallSubmissionOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_CoachingAICallSubmissionOutputRepresentation_CoachingAICallSubmissionOutputRepresentation, 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, FragmentUnionSelection as $64$luvio_engine_FragmentUnionSelection, 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 enum DiscriminatorValues {
3
+ TextSection = "TextSection",
4
+ StringCollectionSection = "StringCollectionSection"
5
+ }
6
+ export declare const VERSION = "3e0861459566ffe894f687a275e29d17";
7
+ export declare function validate(obj: any, path?: string): TypeError | null;
8
+ export declare const RepresentationType: string;
9
+ export declare function normalize(input: AbstractCoachingAIFeedbackSectionRepresentation, existing: AbstractCoachingAIFeedbackSectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AbstractCoachingAIFeedbackSectionRepresentationNormalized;
10
+ export declare const selectChildren: () => $64$luvio_engine_FragmentUnionSelection;
11
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
12
+ export declare function equals(existing: AbstractCoachingAIFeedbackSectionRepresentationNormalized, incoming: AbstractCoachingAIFeedbackSectionRepresentationNormalized): boolean;
13
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
14
+ export declare const discriminatorIngest: $64$luvio_engine_ResourceIngest;
15
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: AbstractCoachingAIFeedbackSectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
16
+ /**
17
+ * Abstract coaching AI feedback section representation
18
+ *
19
+ * Keys:
20
+ * (none)
21
+ */
22
+ export interface AbstractCoachingAIFeedbackSectionRepresentationNormalized {
23
+ /** Title for the feedback section */
24
+ feedbackSectionTitle: string;
25
+ }
26
+ /**
27
+ * Abstract coaching AI feedback section representation
28
+ *
29
+ * Keys:
30
+ * (none)
31
+ */
32
+ export interface AbstractCoachingAIFeedbackSectionRepresentation {
33
+ feedbackSectionTitle: string;
34
+ }
@@ -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 = "21598f17fcec7acefed86cb88e080c40";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: CoachingAICallSubmissionInputRepresentation, existing: CoachingAICallSubmissionInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CoachingAICallSubmissionInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: CoachingAICallSubmissionInputRepresentationNormalized, incoming: CoachingAICallSubmissionInputRepresentationNormalized): 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: CoachingAICallSubmissionInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Input representation for submitting the call
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface CoachingAICallSubmissionInputRepresentationNormalized {
17
+ /** Call Id that user has selected for getting the coaching AI feedback. */
18
+ callId: string;
19
+ /** LearningItemId that is associated to the coaching AI */
20
+ learningItemId: string;
21
+ }
22
+ /**
23
+ * Input representation for submitting the call
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface CoachingAICallSubmissionInputRepresentation {
29
+ callId: string;
30
+ learningItemId: string;
31
+ }
@@ -0,0 +1,41 @@
1
+ import { CoachingAIFeedbackRepresentation as CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation } from './CoachingAIFeedbackRepresentation';
2
+ 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';
3
+ export declare const TTL = 15000;
4
+ export declare const VERSION = "d63f1d6a2345db84136a6263f8d81080";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export interface KeyParams extends $64$luvio_engine_KeyMetadata {
8
+ generation_id: string;
9
+ }
10
+ export type CoachingAICallSubmissionOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
11
+ export type PartialCoachingAICallSubmissionOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
12
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
13
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): CoachingAICallSubmissionOutputRepresentationNormalizedKeyMetadata;
14
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: CoachingAICallSubmissionOutputRepresentation): string;
15
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: CoachingAICallSubmissionOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
16
+ export declare function normalize(input: CoachingAICallSubmissionOutputRepresentation, existing: CoachingAICallSubmissionOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CoachingAICallSubmissionOutputRepresentationNormalized;
17
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
18
+ export declare function equals(existing: CoachingAICallSubmissionOutputRepresentationNormalized, incoming: CoachingAICallSubmissionOutputRepresentationNormalized): boolean;
19
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
20
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CoachingAICallSubmissionOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
21
+ /**
22
+ * This representation defined the coaching AI feedback for a submitted call with the generation ID
23
+ *
24
+ * Keys:
25
+ * generation_id (string): generationId
26
+ */
27
+ export interface CoachingAICallSubmissionOutputRepresentationNormalized {
28
+ coachingAIFeedback: CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation;
29
+ /** Generation ID for the coaching AI feedback */
30
+ generationId: string;
31
+ }
32
+ /**
33
+ * This representation defined the coaching AI feedback for a submitted call with the generation ID
34
+ *
35
+ * Keys:
36
+ * generation_id (string): generationId
37
+ */
38
+ export interface CoachingAICallSubmissionOutputRepresentation {
39
+ coachingAIFeedback: CoachingAIFeedbackRepresentation_CoachingAIFeedbackRepresentation;
40
+ generationId: string;
41
+ }
@@ -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 = "7877f5d0382a35ed103b8a91ff54fa47";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: CoachingAICriteriaBasedFeedbackRepresentation, existing: CoachingAICriteriaBasedFeedbackRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CoachingAICriteriaBasedFeedbackRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: CoachingAICriteriaBasedFeedbackRepresentationNormalized, incoming: CoachingAICriteriaBasedFeedbackRepresentationNormalized): 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: CoachingAICriteriaBasedFeedbackRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * This representation defines the fields for criteria based feedback.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface CoachingAICriteriaBasedFeedbackRepresentationNormalized {
17
+ /** Name of the criteria */
18
+ criteriaName: string;
19
+ /** Score for the criteria */
20
+ criteriaScore: number;
21
+ }
22
+ /**
23
+ * This representation defines the fields for criteria based feedback.
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface CoachingAICriteriaBasedFeedbackRepresentation {
29
+ criteriaName: string;
30
+ criteriaScore: number;
31
+ }
@@ -0,0 +1,38 @@
1
+ import { CoachingAICriteriaBasedFeedbackRepresentation as CoachingAICriteriaBasedFeedbackRepresentation_CoachingAICriteriaBasedFeedbackRepresentation } from './CoachingAICriteriaBasedFeedbackRepresentation';
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 VERSION = "ce799f65b2acf684ff815d1c883d123e";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: CoachingAIFeedbackRepresentation, existing: CoachingAIFeedbackRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CoachingAIFeedbackRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: CoachingAIFeedbackRepresentationNormalized, incoming: CoachingAIFeedbackRepresentationNormalized): 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: CoachingAIFeedbackRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * This representation defines the coaching AI feedback
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface CoachingAIFeedbackRepresentationNormalized {
18
+ /** List of additional feedback sections */
19
+ additionalFeedback: Array<unknown>;
20
+ /** Conversation Summary ID for the coaching AI feedback */
21
+ conversationSummaryId: string;
22
+ /** List of criteria based scores */
23
+ criteriaBasedScores: Array<CoachingAICriteriaBasedFeedbackRepresentation_CoachingAICriteriaBasedFeedbackRepresentation>;
24
+ /** The overall score */
25
+ score: number;
26
+ }
27
+ /**
28
+ * This representation defines the coaching AI feedback
29
+ *
30
+ * Keys:
31
+ * (none)
32
+ */
33
+ export interface CoachingAIFeedbackRepresentation {
34
+ additionalFeedback: Array<unknown>;
35
+ conversationSummaryId: string;
36
+ criteriaBasedScores: Array<CoachingAICriteriaBasedFeedbackRepresentation_CoachingAICriteriaBasedFeedbackRepresentation>;
37
+ score: number;
38
+ }
@@ -0,0 +1,30 @@
1
+ import { AbstractCoachingAIFeedbackSectionRepresentation as AbstractCoachingAIFeedbackSectionRepresentation_AbstractCoachingAIFeedbackSectionRepresentation } from './AbstractCoachingAIFeedbackSectionRepresentation';
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 VERSION = "6fd49c0cbce9e9e962b6992e871d00fe";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: CoachingAIFeedbackSectionStringCollectionRepresentation, existing: CoachingAIFeedbackSectionStringCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CoachingAIFeedbackSectionStringCollectionRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: CoachingAIFeedbackSectionStringCollectionRepresentationNormalized, incoming: CoachingAIFeedbackSectionStringCollectionRepresentationNormalized): 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: CoachingAIFeedbackSectionStringCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * This representation defines the fields for additional feedback section items with the list of strings.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface CoachingAIFeedbackSectionStringCollectionRepresentationNormalized extends AbstractCoachingAIFeedbackSectionRepresentation_AbstractCoachingAIFeedbackSectionRepresentation {
18
+ /** List of strings for the additional feedback section items */
19
+ feedbackSectionItems: Array<string>;
20
+ }
21
+ /**
22
+ * This representation defines the fields for additional feedback section items with the list of strings.
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface CoachingAIFeedbackSectionStringCollectionRepresentation extends AbstractCoachingAIFeedbackSectionRepresentation_AbstractCoachingAIFeedbackSectionRepresentation {
28
+ feedbackSectionItems: Array<string>;
29
+ feedbackSectionTitle: 'StringCollectionSection';
30
+ }
@@ -0,0 +1,30 @@
1
+ import { AbstractCoachingAIFeedbackSectionRepresentation as AbstractCoachingAIFeedbackSectionRepresentation_AbstractCoachingAIFeedbackSectionRepresentation } from './AbstractCoachingAIFeedbackSectionRepresentation';
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 VERSION = "c03891637cb55085b33861ea074a467b";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: CoachingAIFeedbackSectionTextRepresentation, existing: CoachingAIFeedbackSectionTextRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CoachingAIFeedbackSectionTextRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: CoachingAIFeedbackSectionTextRepresentationNormalized, incoming: CoachingAIFeedbackSectionTextRepresentationNormalized): 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: CoachingAIFeedbackSectionTextRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * This representation defines the fields for additional feedback.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface CoachingAIFeedbackSectionTextRepresentationNormalized extends AbstractCoachingAIFeedbackSectionRepresentation_AbstractCoachingAIFeedbackSectionRepresentation {
18
+ /** Text for the additional feedback section */
19
+ feedbackSectionItem: string;
20
+ }
21
+ /**
22
+ * This representation defines the fields for additional feedback.
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface CoachingAIFeedbackSectionTextRepresentation extends AbstractCoachingAIFeedbackSectionRepresentation_AbstractCoachingAIFeedbackSectionRepresentation {
28
+ feedbackSectionItem: string;
29
+ feedbackSectionTitle: 'TextSection';
30
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-learning-content",
3
- "version": "1.274.0",
3
+ "version": "1.275.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Learning content platform",
6
6
  "main": "dist/es/es2018/platform-learning-content.js",
@@ -35,14 +35,15 @@
35
35
  "release:core": "../../scripts/release/core.js --adapter=lds-adapters-platform-learning-content",
36
36
  "release:corejar": "yarn build && packages/core-build/scripts/core.js --adapter=lds-adapters-platform-learning-content",
37
37
  "start": "nx build:karma && karma start",
38
- "test": "nx build:karma && karma start --single-run"
38
+ "test": "nx build:karma && karma start --single-run",
39
+ "test:unit": "jest --config=./jest.config.js"
39
40
  },
40
41
  "dependencies": {
41
- "@salesforce/lds-bindings": "^1.274.0"
42
+ "@salesforce/lds-bindings": "^1.275.0"
42
43
  },
43
44
  "devDependencies": {
44
- "@salesforce/lds-compiler-plugins": "^1.274.0",
45
- "@salesforce/lds-karma": "^1.274.0"
45
+ "@salesforce/lds-compiler-plugins": "^1.275.0",
46
+ "@salesforce/lds-karma": "^1.275.0"
46
47
  },
47
48
  "nx": {
48
49
  "targets": {