@salesforce/lds-adapters-platform-learning-content 0.1.0-dev1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/platform-learning-content.js +5525 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/evaluateLearningItem.d.ts +16 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getCoachingAIFeedback.d.ts +27 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getFeaturedItemsRecommendedList.d.ts +28 -0
  7. package/dist/es/es2018/types/src/generated/adapters/getFeaturedItemsRelatedList.d.ts +29 -0
  8. package/dist/es/es2018/types/src/generated/adapters/getLearningConfig.d.ts +26 -0
  9. package/dist/es/es2018/types/src/generated/adapters/getLearningItemProgress.d.ts +27 -0
  10. package/dist/es/es2018/types/src/generated/adapters/getLearningItemsList.d.ts +27 -0
  11. package/dist/es/es2018/types/src/generated/adapters/getLearningModel.d.ts +27 -0
  12. package/dist/es/es2018/types/src/generated/adapters/getLearningPractice.d.ts +28 -0
  13. package/dist/es/es2018/types/src/generated/adapters/getModule.d.ts +28 -0
  14. package/dist/es/es2018/types/src/generated/adapters/getTextLesson.d.ts +28 -0
  15. package/dist/es/es2018/types/src/generated/adapters/submitForCoachingAIFeedback.d.ts +16 -0
  16. package/dist/es/es2018/types/src/generated/adapters/submitForCoachingMomentsProductPitchFeedback.d.ts +16 -0
  17. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +16 -0
  18. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +31 -0
  19. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformCoachingAiFeedbackByLearningItemSubmissionId.d.ts +15 -0
  20. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformFeaturedItemListRecommended.d.ts +16 -0
  21. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformFeaturedItemListRelated.d.ts +17 -0
  22. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningConfig.d.ts +12 -0
  23. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningItemList.d.ts +15 -0
  24. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningItemProgress.d.ts +15 -0
  25. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningModelByLearningItemId.d.ts +15 -0
  26. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningModuleByModuleId.d.ts +16 -0
  27. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningPracticeByLearningItemId.d.ts +16 -0
  28. package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningTextlessonByLearningItemId.d.ts +16 -0
  29. package/dist/es/es2018/types/src/generated/resources/postLearningContentPlatformCoachingAiFeedback.d.ts +13 -0
  30. package/dist/es/es2018/types/src/generated/resources/postLearningContentPlatformCoachingMomentsAiProductPitchFeedback.d.ts +13 -0
  31. package/dist/es/es2018/types/src/generated/resources/postLearningContentPlatformLearningEvaluate.d.ts +13 -0
  32. package/dist/es/es2018/types/src/generated/types/CoachingAICallSubmissionInputRepresentation.d.ts +31 -0
  33. package/dist/es/es2018/types/src/generated/types/CoachingAICallSubmissionOutputRepresentation.d.ts +41 -0
  34. package/dist/es/es2018/types/src/generated/types/CoachingAIFeedbackRepresentation.d.ts +31 -0
  35. package/dist/es/es2018/types/src/generated/types/CoachingAIFeedbackSummaryOutputRepresentation.d.ts +41 -0
  36. package/dist/es/es2018/types/src/generated/types/CoachingAIProductPitchFeedbackInputRepresentation.d.ts +31 -0
  37. package/dist/es/es2018/types/src/generated/types/EvaluateLearningItemInputRepresentation.d.ts +35 -0
  38. package/dist/es/es2018/types/src/generated/types/EvaluateLearningItemInputWrapperRepresentation.d.ts +28 -0
  39. package/dist/es/es2018/types/src/generated/types/FeaturedItemRecommendedListRepresentation.d.ts +38 -0
  40. package/dist/es/es2018/types/src/generated/types/FeaturedItemRelatedListRepresentation.d.ts +38 -0
  41. package/dist/es/es2018/types/src/generated/types/FeaturedItemRepresentation.d.ts +92 -0
  42. package/dist/es/es2018/types/src/generated/types/LearningAssignmentInputRepresentation.d.ts +58 -0
  43. package/dist/es/es2018/types/src/generated/types/LearningAssignmentRepresentation.d.ts +58 -0
  44. package/dist/es/es2018/types/src/generated/types/LearningConfigRepresentation.d.ts +34 -0
  45. package/dist/es/es2018/types/src/generated/types/LearningItemAssignmentRepresentation.d.ts +52 -0
  46. package/dist/es/es2018/types/src/generated/types/LearningItemListRepresentation.d.ts +38 -0
  47. package/dist/es/es2018/types/src/generated/types/LearningItemProgressListRepresentation.d.ts +38 -0
  48. package/dist/es/es2018/types/src/generated/types/LearningItemProgressRepresentation.d.ts +51 -0
  49. package/dist/es/es2018/types/src/generated/types/LearningItemRepresentation.d.ts +72 -0
  50. package/dist/es/es2018/types/src/generated/types/LearningModelInputRepresentation.d.ts +66 -0
  51. package/dist/es/es2018/types/src/generated/types/LearningModelOutputRepresentation.d.ts +76 -0
  52. package/dist/es/es2018/types/src/generated/types/LearningPracticeRepresentation.d.ts +50 -0
  53. package/dist/es/es2018/types/src/generated/types/LearningTextLessonRepresentation.d.ts +52 -0
  54. package/dist/es/es2018/types/src/generated/types/LearningTextLessonSectionRepresentation.d.ts +34 -0
  55. package/dist/es/es2018/types/src/generated/types/TrailheadModuleRepresentation.d.ts +81 -0
  56. package/dist/es/es2018/types/src/generated/types/TrailheadModuleUnitRepresentation.d.ts +46 -0
  57. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  58. package/package.json +71 -0
  59. package/sfdc/index.d.ts +1 -0
  60. package/sfdc/index.js +5818 -0
  61. package/src/raml/api.raml +829 -0
  62. package/src/raml/luvio.raml +126 -0
@@ -0,0 +1,52 @@
1
+ import { LearningTextLessonSectionRepresentation as LearningTextLessonSectionRepresentation_LearningTextLessonSectionRepresentation } from './LearningTextLessonSectionRepresentation';
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 = 60000;
4
+ export declare const VERSION = "66ac3fbc8b5a61745a45ebd7944654e4";
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
+ learning_item_id: string;
9
+ }
10
+ export type LearningTextLessonRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
11
+ export type PartialLearningTextLessonRepresentationNormalizedKeyMetadata = 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): LearningTextLessonRepresentationNormalizedKeyMetadata;
14
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: LearningTextLessonRepresentation): string;
15
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: LearningTextLessonRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
16
+ export declare function normalize(input: LearningTextLessonRepresentation, existing: LearningTextLessonRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningTextLessonRepresentationNormalized;
17
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
18
+ export declare function equals(existing: LearningTextLessonRepresentationNormalized, incoming: LearningTextLessonRepresentationNormalized): 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: LearningTextLessonRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
21
+ /**
22
+ * This representation maps to the LearningTextView class and is used to represent Text Lessons
23
+ *
24
+ * Keys:
25
+ * learning_item_id (string): learningItemId
26
+ */
27
+ export interface LearningTextLessonRepresentationNormalized {
28
+ /** Description of what the text lesson is for */
29
+ description: string;
30
+ /** Learning Item ID of the text lesson */
31
+ learningItemId: string;
32
+ /** Ordered list of all the LearningTextLessonSection sections that are part of the text lesson */
33
+ sections: Array<LearningTextLessonSectionRepresentation_LearningTextLessonSectionRepresentation>;
34
+ /** Title of the text lesson */
35
+ title: string;
36
+ /** Estimated time in minutes to read the entire text lesson */
37
+ totalTime: number;
38
+ }
39
+ /**
40
+ * This representation maps to the LearningTextView class and is used to represent Text Lessons
41
+ *
42
+ * Keys:
43
+ * learning_item_id (string): learningItemId
44
+ */
45
+ export interface LearningTextLessonRepresentation {
46
+ description: string;
47
+ learningItemId: string;
48
+ sections: Array<LearningTextLessonSectionRepresentation_LearningTextLessonSectionRepresentation>;
49
+ title: string;
50
+ totalTime: number;
51
+ }
52
+ export declare const notifyUpdateAvailableFactory: (luvio: $64$luvio_engine_Luvio) => (configs: Partial<KeyParams>[]) => Promise<void>;
@@ -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 = "1027d7eb6300967ad6dd208f73cbf68e";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: LearningTextLessonSectionRepresentation, existing: LearningTextLessonSectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningTextLessonSectionRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: LearningTextLessonSectionRepresentationNormalized, incoming: LearningTextLessonSectionRepresentationNormalized): 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: LearningTextLessonSectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * This representation maps to the LearningTextSectionView class and is used to represent Text Lesson Sections
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface LearningTextLessonSectionRepresentationNormalized {
17
+ /** Rich text content for the text lesson section */
18
+ content: string;
19
+ /** Description of what this section of the text lesson is trying to teach */
20
+ keyConcept: string | null;
21
+ /** Estimated time to read the section in minutes */
22
+ sectionTime: number;
23
+ }
24
+ /**
25
+ * This representation maps to the LearningTextSectionView class and is used to represent Text Lesson Sections
26
+ *
27
+ * Keys:
28
+ * (none)
29
+ */
30
+ export interface LearningTextLessonSectionRepresentation {
31
+ content: string;
32
+ keyConcept: string | null;
33
+ sectionTime: number;
34
+ }
@@ -0,0 +1,81 @@
1
+ import { TrailheadModuleUnitRepresentation as TrailheadModuleUnitRepresentation_TrailheadModuleUnitRepresentation } from './TrailheadModuleUnitRepresentation';
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 = 21600000;
4
+ export declare const VERSION = "9bed4edb4c9f077a2f7ce902f94afa38";
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
+ relatedId: string;
9
+ }
10
+ export type TrailheadModuleRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
11
+ export type PartialTrailheadModuleRepresentationNormalizedKeyMetadata = 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): TrailheadModuleRepresentationNormalizedKeyMetadata;
14
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: TrailheadModuleRepresentation): string;
15
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: TrailheadModuleRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
16
+ export declare function normalize(input: TrailheadModuleRepresentation, existing: TrailheadModuleRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TrailheadModuleRepresentationNormalized;
17
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
18
+ export declare function equals(existing: TrailheadModuleRepresentationNormalized, incoming: TrailheadModuleRepresentationNormalized): 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: TrailheadModuleRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
21
+ /**
22
+ * This representation will be used to represent a single user's view of a Trailhead module.
23
+ *
24
+ * Keys:
25
+ * relatedId (string): relatedId
26
+ */
27
+ export interface TrailheadModuleRepresentationNormalized {
28
+ /** Represents the total points possible for the module */
29
+ availablePointCount: number;
30
+ /** Represents the completedDate for the module for the end user at runtime */
31
+ completedDate: string | null;
32
+ /** Represents the number of units completed by the current user */
33
+ completedItemCount: number | null;
34
+ /** Represents the completion percentage of the module as a whole integer, */
35
+ completedPercent: number | null;
36
+ /** Represents the description of a module */
37
+ description: string;
38
+ /** Represents the number of minutes remaining for the user to complete the module */
39
+ durationCount: number;
40
+ /** Represents the number of points earned by the user for this module */
41
+ earnedPointCount: number | null;
42
+ /** Represents the image url of a module */
43
+ imageUrl: string;
44
+ /** Represents if the end-user completed the module */
45
+ isCompleted: boolean;
46
+ /** Represents if this content was sfdc curated or not */
47
+ isCuratedContent: boolean;
48
+ /** Represents the number of units associated with the module */
49
+ itemCount: number | null;
50
+ /** Represents the learning content items associated with this learning content */
51
+ moduleUnits: Array<TrailheadModuleUnitRepresentation_TrailheadModuleUnitRepresentation>;
52
+ /** Represents the Id for the entity backing the learning unit, E.g. this would return the Id for a Trailhead module if this was a Trailhead unit, or the Id for a LearningLink if this was a link to outside content */
53
+ relatedId: string;
54
+ /** Represents the localized title of a module */
55
+ title: string;
56
+ /** Represents the module type */
57
+ type: string;
58
+ }
59
+ /**
60
+ * This representation will be used to represent a single user's view of a Trailhead module.
61
+ *
62
+ * Keys:
63
+ * relatedId (string): relatedId
64
+ */
65
+ export interface TrailheadModuleRepresentation {
66
+ availablePointCount: number;
67
+ completedDate: string | null;
68
+ completedItemCount: number | null;
69
+ completedPercent: number | null;
70
+ description: string;
71
+ durationCount: number;
72
+ earnedPointCount: number | null;
73
+ imageUrl: string;
74
+ isCompleted: boolean;
75
+ isCuratedContent: boolean;
76
+ itemCount: number | null;
77
+ moduleUnits: Array<TrailheadModuleUnitRepresentation_TrailheadModuleUnitRepresentation>;
78
+ relatedId: string;
79
+ title: string;
80
+ type: string;
81
+ }
@@ -0,0 +1,46 @@
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 = "19c9bcb401bf39a211caeff8b3cde304";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: TrailheadModuleUnitRepresentation, existing: TrailheadModuleUnitRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TrailheadModuleUnitRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: TrailheadModuleUnitRepresentationNormalized, incoming: TrailheadModuleUnitRepresentationNormalized): 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: TrailheadModuleUnitRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * This representation will be used to represent a single user's view of a Trailhead module's unit.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface TrailheadModuleUnitRepresentationNormalized {
17
+ /** Represents the complete date of the item, Date if the user has completed the item else null */
18
+ completedDate: string | null;
19
+ /** Represents the URL of a page that will render the content of this item */
20
+ contentUrl: string;
21
+ /** Represents the duration to complete the item */
22
+ durationCount: number;
23
+ /** Represents the number of points earned by the user for this item */
24
+ earnedPointCount: number | null;
25
+ /** Represents the id of a learning content item */
26
+ id: string;
27
+ /** Represents the title of a learning content item */
28
+ title: string;
29
+ /** Represents the trusted frame origin used in iframe messaging. */
30
+ trustedFrameOrigin: string;
31
+ }
32
+ /**
33
+ * This representation will be used to represent a single user's view of a Trailhead module's unit.
34
+ *
35
+ * Keys:
36
+ * (none)
37
+ */
38
+ export interface TrailheadModuleUnitRepresentation {
39
+ completedDate: string | null;
40
+ contentUrl: string;
41
+ durationCount: number;
42
+ earnedPointCount: number | null;
43
+ id: string;
44
+ title: string;
45
+ trustedFrameOrigin: string;
46
+ }
@@ -0,0 +1,32 @@
1
+ import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const ObjectKeys: {
3
+ (o: object): string[];
4
+ (o: {}): string[];
5
+ }, ObjectCreate: {
6
+ (o: object | null): any;
7
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
8
+ }, ObjectAssign: {
9
+ <T extends {}, U>(target: T, source: U): T & U;
10
+ <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
11
+ <T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
12
+ (target: object, ...sources: any[]): any;
13
+ };
14
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
15
+ export declare const JSONStringify: {
16
+ (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
17
+ (value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
18
+ };
19
+ type AllowedPrimitives = boolean | string | number | Date | null;
20
+ type Value<T> = T extends AllowedPrimitives ? T : RecursivePartial<T>;
21
+ export type RecursivePartial<T> = null | {
22
+ [P in keyof T]?: T[P] extends Array<infer U> ? Array<Value<U>> | null : Value<T[P]> | null;
23
+ };
24
+ export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (itemA: U, itemB: U) => boolean | void): boolean;
25
+ export declare function equalsObject<U, V extends {
26
+ [key: string]: U;
27
+ }>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
28
+ export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
29
+ __ref: string;
30
+ };
31
+ export declare function assignMetadataLink(entry: any, metadataKey: string | $64$luvio_engine_NormalizedKeyMetadata): void;
32
+ export {};
package/package.json ADDED
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-platform-learning-content",
3
+ "version": "0.1.0-dev1",
4
+ "license": "SEE LICENSE IN LICENSE.txt",
5
+ "description": "Learning content platform",
6
+ "main": "dist/es/es2018/platform-learning-content.js",
7
+ "module": "dist/es/es2018/platform-learning-content.js",
8
+ "types": "dist/es/es2018/types/src/main.d.ts",
9
+ "files": [
10
+ "dist",
11
+ "sfdc",
12
+ "src/raml/*"
13
+ ],
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/es/es2018/types/src/main.d.ts",
17
+ "import": "./dist/es/es2018/platform-learning-content.js",
18
+ "require": "./dist/es/es2018/platform-learning-content.js"
19
+ },
20
+ "./sfdc": {
21
+ "types": "./sfdc/index.d.ts",
22
+ "import": "./sfdc/index.js",
23
+ "default": "./sfdc/index.js"
24
+ }
25
+ },
26
+ "contributors": [
27
+ "a.dandekar@salesforce.com"
28
+ ],
29
+ "scripts": {
30
+ "build": "yarn build:services",
31
+ "build:karma": "rollup --bundleConfigAsCjs --config rollup.config.karma.js",
32
+ "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
33
+ "build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
34
+ "clean": "rm -rf dist sfdc src/generated karma/dist",
35
+ "release:core": "../../scripts/release/core.js --adapter=lds-adapters-platform-learning-content",
36
+ "release:corejar": "yarn build && packages/core-build/scripts/core.js --adapter=lds-adapters-platform-learning-content",
37
+ "start": "nx build:karma && karma start",
38
+ "test": "nx build:karma && karma start --single-run",
39
+ "test:unit": "jest --config=./jest.config.js"
40
+ },
41
+ "dependencies": {
42
+ "@salesforce/lds-bindings": "^0.1.0-dev1"
43
+ },
44
+ "devDependencies": {
45
+ "@salesforce/lds-compiler-plugins": "^0.1.0-dev1",
46
+ "@salesforce/lds-karma": "^0.1.0-dev1"
47
+ },
48
+ "nx": {
49
+ "targets": {
50
+ "build": {
51
+ "outputs": [
52
+ "{projectRoot}/dist",
53
+ "{projectRoot}/sfdc"
54
+ ]
55
+ },
56
+ "build:raml": {
57
+ "outputs": [
58
+ "{projectRoot}/src/generated"
59
+ ]
60
+ },
61
+ "build:karma": {
62
+ "outputs": [
63
+ "{projectRoot}/karma/dist"
64
+ ]
65
+ }
66
+ }
67
+ },
68
+ "volta": {
69
+ "extends": "../../package.json"
70
+ }
71
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';