@salesforce/lds-adapters-platform-learning-content 1.303.0 → 1.305.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.
@@ -2669,7 +2669,7 @@ const getLearningItemsListAdapterFactory = (luvio) => function LearningContentPl
2669
2669
  };
2670
2670
 
2671
2671
  const TTL$4 = 15000;
2672
- const VERSION$8 = "ef3b97b73983e10731031f11a195bba6";
2672
+ const VERSION$8 = "27f3961abdd235a3376e6b38f59393e1";
2673
2673
  function validate$9(obj, path = 'LearningItemProgressRepresentation') {
2674
2674
  const v_error = (() => {
2675
2675
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2727,6 +2727,11 @@ function validate$9(obj, path = 'LearningItemProgressRepresentation') {
2727
2727
  message += '\n' + obj_completedPercent_union1.split('\n').map((line) => '\t' + line).join('\n');
2728
2728
  return new TypeError(message);
2729
2729
  }
2730
+ const obj_id = obj.id;
2731
+ const path_id = path + '.id';
2732
+ if (typeof obj_id !== 'string') {
2733
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2734
+ }
2730
2735
  const obj_isCompleted = obj.isCompleted;
2731
2736
  const path_isCompleted = path + '.isCompleted';
2732
2737
  if (typeof obj_isCompleted !== 'boolean') {
@@ -2767,6 +2772,10 @@ const select$e = function LearningItemProgressRepresentationSelect() {
2767
2772
  name: 'completedPercent',
2768
2773
  kind: 'Scalar'
2769
2774
  },
2775
+ {
2776
+ name: 'id',
2777
+ kind: 'Scalar'
2778
+ },
2770
2779
  {
2771
2780
  name: 'isCompleted',
2772
2781
  kind: 'Scalar'
@@ -2784,6 +2793,11 @@ function equals$8(existing, incoming) {
2784
2793
  if (!(existing_isCompleted === incoming_isCompleted)) {
2785
2794
  return false;
2786
2795
  }
2796
+ const existing_id = existing.id;
2797
+ const incoming_id = incoming.id;
2798
+ if (!(existing_id === incoming_id)) {
2799
+ return false;
2800
+ }
2787
2801
  const existing_learningItemId = existing.learningItemId;
2788
2802
  const incoming_learningItemId = incoming.learningItemId;
2789
2803
  if (!(existing_learningItemId === incoming_learningItemId)) {
@@ -1,6 +1,6 @@
1
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
2
  export declare const TTL = 15000;
3
- export declare const VERSION = "ef3b97b73983e10731031f11a195bba6";
3
+ export declare const VERSION = "27f3961abdd235a3376e6b38f59393e1";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -28,6 +28,8 @@ export interface LearningItemProgressRepresentationNormalized {
28
28
  completedDate: string | null;
29
29
  /** Completed percent of the learning item progress */
30
30
  completedPercent: number | null;
31
+ /** The ID of the learning item progress */
32
+ id: string;
31
33
  /** Completed state of the learning item progress */
32
34
  isCompleted: boolean;
33
35
  /** Id of the learning item associated with this learning item progress */
@@ -42,6 +44,7 @@ export interface LearningItemProgressRepresentationNormalized {
42
44
  export interface LearningItemProgressRepresentation {
43
45
  completedDate: string | null;
44
46
  completedPercent: number | null;
47
+ id: string;
45
48
  isCompleted: boolean;
46
49
  learningItemId: string;
47
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-learning-content",
3
- "version": "1.303.0",
3
+ "version": "1.305.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",
@@ -39,11 +39,11 @@
39
39
  "test:unit": "jest --config=./jest.config.js"
40
40
  },
41
41
  "dependencies": {
42
- "@salesforce/lds-bindings": "^1.303.0"
42
+ "@salesforce/lds-bindings": "^1.305.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@salesforce/lds-compiler-plugins": "^1.303.0",
46
- "@salesforce/lds-karma": "^1.303.0"
45
+ "@salesforce/lds-compiler-plugins": "^1.305.0",
46
+ "@salesforce/lds-karma": "^1.305.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -153,7 +153,7 @@ function validate$i(obj, path = 'EvaluateLearningItemInputRepresentation') {
153
153
  }
154
154
 
155
155
  const TTL$8 = 15000;
156
- const VERSION$h = "ef3b97b73983e10731031f11a195bba6";
156
+ const VERSION$h = "27f3961abdd235a3376e6b38f59393e1";
157
157
  function validate$h(obj, path = 'LearningItemProgressRepresentation') {
158
158
  const v_error = (() => {
159
159
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -211,6 +211,11 @@ function validate$h(obj, path = 'LearningItemProgressRepresentation') {
211
211
  message += '\n' + obj_completedPercent_union1.split('\n').map((line) => '\t' + line).join('\n');
212
212
  return new TypeError(message);
213
213
  }
214
+ const obj_id = obj.id;
215
+ const path_id = path + '.id';
216
+ if (typeof obj_id !== 'string') {
217
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
218
+ }
214
219
  const obj_isCompleted = obj.isCompleted;
215
220
  const path_isCompleted = path + '.isCompleted';
216
221
  if (typeof obj_isCompleted !== 'boolean') {
@@ -251,6 +256,10 @@ const select$u = function LearningItemProgressRepresentationSelect() {
251
256
  name: 'completedPercent',
252
257
  kind: 'Scalar'
253
258
  },
259
+ {
260
+ name: 'id',
261
+ kind: 'Scalar'
262
+ },
254
263
  {
255
264
  name: 'isCompleted',
256
265
  kind: 'Scalar'
@@ -268,6 +277,11 @@ function equals$h(existing, incoming) {
268
277
  if (!(existing_isCompleted === incoming_isCompleted)) {
269
278
  return false;
270
279
  }
280
+ const existing_id = existing.id;
281
+ const incoming_id = incoming.id;
282
+ if (!(existing_id === incoming_id)) {
283
+ return false;
284
+ }
271
285
  const existing_learningItemId = existing.learningItemId;
272
286
  const incoming_learningItemId = incoming.learningItemId;
273
287
  if (!(existing_learningItemId === incoming_learningItemId)) {
@@ -5801,4 +5815,4 @@ withDefaultLuvio((luvio) => {
5801
5815
  });
5802
5816
 
5803
5817
  export { evaluateLearningItem, getCoachingAIFeedback, getCoachingAIFeedback_imperative, getFeaturedItemsRecommendedList, getFeaturedItemsRecommendedList_imperative, getFeaturedItemsRelatedList, getFeaturedItemsRelatedList_imperative, getLearningConfig, getLearningConfig_imperative, getLearningItemProgress, getLearningItemProgress_imperative, getLearningItemsList, getLearningItemsList_imperative, getLearningModel, getLearningModel_imperative, getLearningPractice, getLearningPracticeNotifyChange, getLearningPractice_imperative, getModule, getModuleNotifyChange, getModule_imperative, getTextLesson, getTextLessonNotifyChange, getTextLesson_imperative, notifyLearningItemProgressUpdateAvailable, notifyLearningItemUpdateAvailable, notifyLearningTextLessonUpdateAvailable, submitForCoachingAIFeedback, submitForCoachingMomentsProductPitchFeedback };
5804
- // version: 1.303.0-b6ed223d95
5818
+ // version: 1.305.0-ec92f7304c
package/src/raml/api.raml CHANGED
@@ -339,6 +339,9 @@ types:
339
339
  description: Completed percent of the learning item progress
340
340
  #format: double # Hand-rolled format not allowed with union type
341
341
  type: number | nil
342
+ id:
343
+ description: The ID of the learning item progress
344
+ type: string
342
345
  isCompleted:
343
346
  description: Completed state of the learning item progress
344
347
  type: boolean