@salesforce/lds-adapters-platform-learning-content 1.112.2 → 1.114.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.
- package/dist/es/es2018/platform-learning-content.js +14 -12
- package/dist/types/src/generated/types/EvaluateLearningItemInputRepresentation.d.ts +3 -3
- package/dist/umd/es2018/platform-learning-content.js +14 -12
- package/dist/umd/es5/platform-learning-content.js +14 -12
- package/package.json +3 -3
- package/sfdc/index.js +15 -13
- package/src/raml/api.raml +1 -0
|
@@ -5457,18 +5457,20 @@ function validate$2(obj, path = 'EvaluateLearningItemInputRepresentation') {
|
|
|
5457
5457
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5458
5458
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5459
5459
|
}
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5460
|
+
if (obj.details !== undefined) {
|
|
5461
|
+
const obj_details = obj.details;
|
|
5462
|
+
const path_details = path + '.details';
|
|
5463
|
+
if (typeof obj_details !== 'object' || ArrayIsArray(obj_details) || obj_details === null) {
|
|
5464
|
+
return new TypeError('Expected "object" but received "' + typeof obj_details + '" (at "' + path_details + '")');
|
|
5465
|
+
}
|
|
5466
|
+
const obj_details_keys = ObjectKeys(obj_details);
|
|
5467
|
+
for (let i = 0; i < obj_details_keys.length; i++) {
|
|
5468
|
+
const key = obj_details_keys[i];
|
|
5469
|
+
const obj_details_prop = obj_details[key];
|
|
5470
|
+
const path_details_prop = path_details + '["' + key + '"]';
|
|
5471
|
+
if (obj_details_prop === undefined) {
|
|
5472
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_details_prop + '" (at "' + path_details_prop + '")');
|
|
5473
|
+
}
|
|
5472
5474
|
}
|
|
5473
5475
|
}
|
|
5474
5476
|
const obj_learningItemId = obj.learningItemId;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "8b7de0dc56d4af99f51883d513f1fb18";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: EvaluateLearningItemInputRepresentation, existing: EvaluateLearningItemInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EvaluateLearningItemInputRepresentationNormalized;
|
|
@@ -16,7 +16,7 @@ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: E
|
|
|
16
16
|
*/
|
|
17
17
|
export interface EvaluateLearningItemInputRepresentationNormalized {
|
|
18
18
|
/** Additional details needed for evaluting the learning item */
|
|
19
|
-
details
|
|
19
|
+
details?: {
|
|
20
20
|
[key: string]: unknown;
|
|
21
21
|
};
|
|
22
22
|
/** LearningItemId that needs to be evaluated */
|
|
@@ -29,7 +29,7 @@ export interface EvaluateLearningItemInputRepresentationNormalized {
|
|
|
29
29
|
* (none)
|
|
30
30
|
*/
|
|
31
31
|
export interface EvaluateLearningItemInputRepresentation {
|
|
32
|
-
details
|
|
32
|
+
details?: {
|
|
33
33
|
[key: string]: unknown;
|
|
34
34
|
};
|
|
35
35
|
learningItemId: string;
|
|
@@ -5461,18 +5461,20 @@
|
|
|
5461
5461
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5462
5462
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5463
5463
|
}
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5464
|
+
if (obj.details !== undefined) {
|
|
5465
|
+
const obj_details = obj.details;
|
|
5466
|
+
const path_details = path + '.details';
|
|
5467
|
+
if (typeof obj_details !== 'object' || ArrayIsArray(obj_details) || obj_details === null) {
|
|
5468
|
+
return new TypeError('Expected "object" but received "' + typeof obj_details + '" (at "' + path_details + '")');
|
|
5469
|
+
}
|
|
5470
|
+
const obj_details_keys = ObjectKeys(obj_details);
|
|
5471
|
+
for (let i = 0; i < obj_details_keys.length; i++) {
|
|
5472
|
+
const key = obj_details_keys[i];
|
|
5473
|
+
const obj_details_prop = obj_details[key];
|
|
5474
|
+
const path_details_prop = path_details + '["' + key + '"]';
|
|
5475
|
+
if (obj_details_prop === undefined) {
|
|
5476
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_details_prop + '" (at "' + path_details_prop + '")');
|
|
5477
|
+
}
|
|
5476
5478
|
}
|
|
5477
5479
|
}
|
|
5478
5480
|
const obj_learningItemId = obj.learningItemId;
|
|
@@ -5478,18 +5478,20 @@
|
|
|
5478
5478
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5479
5479
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5480
5480
|
}
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
var
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5481
|
+
if (obj.details !== undefined) {
|
|
5482
|
+
var obj_details = obj.details;
|
|
5483
|
+
var path_details = path + '.details';
|
|
5484
|
+
if (typeof obj_details !== 'object' || ArrayIsArray(obj_details) || obj_details === null) {
|
|
5485
|
+
return new TypeError('Expected "object" but received "' + typeof obj_details + '" (at "' + path_details + '")');
|
|
5486
|
+
}
|
|
5487
|
+
var obj_details_keys = ObjectKeys(obj_details);
|
|
5488
|
+
for (var i = 0; i < obj_details_keys.length; i++) {
|
|
5489
|
+
var key = obj_details_keys[i];
|
|
5490
|
+
var obj_details_prop = obj_details[key];
|
|
5491
|
+
var path_details_prop = path_details + '["' + key + '"]';
|
|
5492
|
+
if (obj_details_prop === undefined) {
|
|
5493
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_details_prop + '" (at "' + path_details_prop + '")');
|
|
5494
|
+
}
|
|
5493
5495
|
}
|
|
5494
5496
|
}
|
|
5495
5497
|
var obj_learningItemId = obj.learningItemId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-learning-content",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.114.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Learning content platform",
|
|
6
6
|
"main": "dist/umd/es2018/platform-learning-content.js",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"test:compat": "karma start --single-run --compat"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@salesforce/lds-bindings": "^1.
|
|
42
|
+
"@salesforce/lds-bindings": "^1.114.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@luvio/cli": "0.137.1",
|
|
46
46
|
"@luvio/compiler": "0.137.1",
|
|
47
47
|
"@luvio/engine": "0.137.1",
|
|
48
48
|
"@luvio/lwc-luvio": "0.137.1",
|
|
49
|
-
"@salesforce/lds-karma": "^1.
|
|
49
|
+
"@salesforce/lds-karma": "^1.114.0"
|
|
50
50
|
},
|
|
51
51
|
"nx": {
|
|
52
52
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -124,18 +124,20 @@ function validate$i(obj, path = 'EvaluateLearningItemInputRepresentation') {
|
|
|
124
124
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
125
125
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
126
126
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
127
|
+
if (obj.details !== undefined) {
|
|
128
|
+
const obj_details = obj.details;
|
|
129
|
+
const path_details = path + '.details';
|
|
130
|
+
if (typeof obj_details !== 'object' || ArrayIsArray(obj_details) || obj_details === null) {
|
|
131
|
+
return new TypeError('Expected "object" but received "' + typeof obj_details + '" (at "' + path_details + '")');
|
|
132
|
+
}
|
|
133
|
+
const obj_details_keys = ObjectKeys(obj_details);
|
|
134
|
+
for (let i = 0; i < obj_details_keys.length; i++) {
|
|
135
|
+
const key = obj_details_keys[i];
|
|
136
|
+
const obj_details_prop = obj_details[key];
|
|
137
|
+
const path_details_prop = path_details + '["' + key + '"]';
|
|
138
|
+
if (obj_details_prop === undefined) {
|
|
139
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_details_prop + '" (at "' + path_details_prop + '")');
|
|
140
|
+
}
|
|
139
141
|
}
|
|
140
142
|
}
|
|
141
143
|
const obj_learningItemId = obj.learningItemId;
|
|
@@ -6260,4 +6262,4 @@ withDefaultLuvio((luvio) => {
|
|
|
6260
6262
|
});
|
|
6261
6263
|
|
|
6262
6264
|
export { evaluateLearningItem, getFeaturedItemsRecommendedList, getFeaturedItemsRecommendedList_imperative, getFeaturedItemsRelatedList, getFeaturedItemsRelatedList_imperative, getLearningConfig, getLearningConfig_imperative, getLearningItemProgress, getLearningItemProgress_imperative, getLearningItemsList, getLearningItemsList_imperative, getLearningModel, getLearningModel_imperative, getLearningPractice, getLearningPracticeNotifyChange, getLearningPractice_imperative, getLearningSearchDescribe, getLearningSearchDescribe_imperative, getLearningSearchResults, getLearningSearchResultsNotifyChange, getLearningSearchResults_imperative, getModule, getModuleNotifyChange, getModule_imperative, getTextLesson, getTextLessonNotifyChange, getTextLesson_imperative };
|
|
6263
|
-
// version: 1.
|
|
6265
|
+
// version: 1.114.0-f59eaec
|