@salesforce/lds-adapters-platform-learning 1.303.0 → 1.304.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.
@@ -72,7 +72,7 @@ function createLink(ref) {
72
72
  }
73
73
 
74
74
  const TTL = 15000;
75
- const VERSION = "987ec5d201417fd82d2e377adf8ef5cd";
75
+ const VERSION = "a951328be5199223955d423d805f587b";
76
76
  function validate(obj, path = 'LearningItemProgressRepresentation') {
77
77
  const v_error = (() => {
78
78
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -150,11 +150,11 @@ function validate(obj, path = 'LearningItemProgressRepresentation') {
150
150
  }
151
151
  const RepresentationType = 'LearningItemProgressRepresentation';
152
152
  function keyBuilder(luvio, config) {
153
- return keyPrefix + '::' + RepresentationType + ':' + config.learning_item_progress_id;
153
+ return keyPrefix + '::' + RepresentationType + ':' + config.learning_item_id;
154
154
  }
155
155
  function keyBuilderFromType(luvio, object) {
156
156
  const keyParams = {
157
- learning_item_progress_id: object.id
157
+ learning_item_id: object.learningItemId
158
158
  };
159
159
  return keyBuilder(luvio, keyParams);
160
160
  }
@@ -1,10 +1,10 @@
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 = "987ec5d201417fd82d2e377adf8ef5cd";
3
+ export declare const VERSION = "a951328be5199223955d423d805f587b";
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 {
7
- learning_item_progress_id: string;
7
+ learning_item_id: string;
8
8
  }
9
9
  export type LearningItemProgressRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
10
10
  export type PartialLearningItemProgressRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
@@ -21,7 +21,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
21
21
  * Represents the response that's returned after a learning item is evaluated successfully
22
22
  *
23
23
  * Keys:
24
- * learning_item_progress_id (string): id
24
+ * learning_item_id (string): learningItemId
25
25
  */
26
26
  export interface LearningItemProgressRepresentationNormalized {
27
27
  /** The date when the user completed the learning item */
@@ -39,7 +39,7 @@ export interface LearningItemProgressRepresentationNormalized {
39
39
  * Represents the response that's returned after a learning item is evaluated successfully
40
40
  *
41
41
  * Keys:
42
- * learning_item_progress_id (string): id
42
+ * learning_item_id (string): learningItemId
43
43
  */
44
44
  export interface LearningItemProgressRepresentation {
45
45
  completedDate: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-learning",
3
- "version": "1.303.0",
3
+ "version": "1.304.0",
4
4
  "description": "Learning Platform Public API",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/platform-learning.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.303.0"
43
+ "@salesforce/lds-bindings": "^1.304.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.303.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.304.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -81,7 +81,7 @@ function createLink(ref) {
81
81
  }
82
82
 
83
83
  const TTL = 15000;
84
- const VERSION = "987ec5d201417fd82d2e377adf8ef5cd";
84
+ const VERSION = "a951328be5199223955d423d805f587b";
85
85
  function validate(obj, path = 'LearningItemProgressRepresentation') {
86
86
  const v_error = (() => {
87
87
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -159,11 +159,11 @@ function validate(obj, path = 'LearningItemProgressRepresentation') {
159
159
  }
160
160
  const RepresentationType = 'LearningItemProgressRepresentation';
161
161
  function keyBuilder(luvio, config) {
162
- return keyPrefix + '::' + RepresentationType + ':' + config.learning_item_progress_id;
162
+ return keyPrefix + '::' + RepresentationType + ':' + config.learning_item_id;
163
163
  }
164
164
  function keyBuilderFromType(luvio, object) {
165
165
  const keyParams = {
166
- learning_item_progress_id: object.id
166
+ learning_item_id: object.learningItemId
167
167
  };
168
168
  return keyBuilder(luvio, keyParams);
169
169
  }
@@ -374,4 +374,4 @@ withDefaultLuvio((luvio) => {
374
374
  });
375
375
 
376
376
  export { evaluateLearningItem };
377
- // version: 1.303.0-b6ed223d95
377
+ // version: 1.304.0-d87b57badb
@@ -11,7 +11,7 @@ types:
11
11
  LearningItemProgressRepresentation:
12
12
  (luvio.ttl): 15000 # 15 seconds
13
13
  (luvio.key):
14
- learning_item_progress_id: id
14
+ learning_item_id: learningItemId
15
15
 
16
16
  /connect:
17
17
  /learning-platform/learning-item/{learningItemId}/actions/evaluate: