@salesforce/lds-adapters-platform-learning-content 1.215.0 → 1.216.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 +39 -118
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/evaluateLearningItem.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getFeaturedItemsRecommendedList.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getFeaturedItemsRelatedList.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getLearningConfig.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getLearningItemProgress.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getLearningItemsList.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getLearningModel.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getLearningPractice.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getModule.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getTextLesson.d.ts +1 -1
- package/package.json +1 -1
- package/sfdc/index.js +40 -119
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$9,
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$9, typeCheckConfig as typeCheckConfig$a, StoreKeyMap, createResourceParams as createResourceParams$a } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -48,10 +48,13 @@ const snapshotRefreshOptions = {
|
|
|
48
48
|
},
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
51
|
+
function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
|
|
52
52
|
return {
|
|
53
53
|
name,
|
|
54
54
|
required,
|
|
55
|
+
resourceType,
|
|
56
|
+
typeCheckShape,
|
|
57
|
+
isArrayShape,
|
|
55
58
|
coerceFn,
|
|
56
59
|
};
|
|
57
60
|
}
|
|
@@ -869,28 +872,18 @@ function createResourceRequest$9(config) {
|
|
|
869
872
|
|
|
870
873
|
const adapterName$9 = 'getFeaturedItemsRecommendedList';
|
|
871
874
|
const getFeaturedItemsRecommendedList_ConfigPropertyMetadata = [
|
|
872
|
-
generateParamConfigMetadata('appId', true),
|
|
873
|
-
generateParamConfigMetadata('context', true),
|
|
875
|
+
generateParamConfigMetadata('appId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
876
|
+
generateParamConfigMetadata('context', true, 1 /* QueryParameter */, 0 /* String */),
|
|
874
877
|
];
|
|
875
878
|
const getFeaturedItemsRecommendedList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getFeaturedItemsRecommendedList_ConfigPropertyMetadata);
|
|
876
|
-
|
|
877
|
-
const resourceParams = {
|
|
878
|
-
queryParams: {
|
|
879
|
-
appId: config.appId, context: config.context
|
|
880
|
-
}
|
|
881
|
-
};
|
|
882
|
-
return resourceParams;
|
|
883
|
-
}
|
|
879
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$a(getFeaturedItemsRecommendedList_ConfigPropertyMetadata);
|
|
884
880
|
function keyBuilder$m(luvio, config) {
|
|
885
881
|
const resourceParams = createResourceParams$9(config);
|
|
886
882
|
return keyBuilder$n(luvio, resourceParams);
|
|
887
883
|
}
|
|
888
884
|
function typeCheckConfig$9(untrustedConfig) {
|
|
889
885
|
const config = {};
|
|
890
|
-
|
|
891
|
-
appId: 0 /* String */,
|
|
892
|
-
context: 0 /* String */,
|
|
893
|
-
});
|
|
886
|
+
typeCheckConfig$a(untrustedConfig, config, getFeaturedItemsRecommendedList_ConfigPropertyMetadata);
|
|
894
887
|
return config;
|
|
895
888
|
}
|
|
896
889
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -1107,28 +1100,18 @@ function createResourceRequest$8(config) {
|
|
|
1107
1100
|
|
|
1108
1101
|
const adapterName$8 = 'getFeaturedItemsRelatedList';
|
|
1109
1102
|
const getFeaturedItemsRelatedList_ConfigPropertyMetadata = [
|
|
1110
|
-
generateParamConfigMetadata('appId', true),
|
|
1111
|
-
generateParamConfigMetadata('pageRef', true),
|
|
1103
|
+
generateParamConfigMetadata('appId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
1104
|
+
generateParamConfigMetadata('pageRef', true, 1 /* QueryParameter */, 0 /* String */),
|
|
1112
1105
|
];
|
|
1113
1106
|
const getFeaturedItemsRelatedList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getFeaturedItemsRelatedList_ConfigPropertyMetadata);
|
|
1114
|
-
|
|
1115
|
-
const resourceParams = {
|
|
1116
|
-
queryParams: {
|
|
1117
|
-
appId: config.appId, pageRef: config.pageRef
|
|
1118
|
-
}
|
|
1119
|
-
};
|
|
1120
|
-
return resourceParams;
|
|
1121
|
-
}
|
|
1107
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$a(getFeaturedItemsRelatedList_ConfigPropertyMetadata);
|
|
1122
1108
|
function keyBuilder$k(luvio, config) {
|
|
1123
1109
|
const resourceParams = createResourceParams$8(config);
|
|
1124
1110
|
return keyBuilder$l(luvio, resourceParams);
|
|
1125
1111
|
}
|
|
1126
1112
|
function typeCheckConfig$8(untrustedConfig) {
|
|
1127
1113
|
const config = {};
|
|
1128
|
-
|
|
1129
|
-
appId: 0 /* String */,
|
|
1130
|
-
pageRef: 0 /* String */,
|
|
1131
|
-
});
|
|
1114
|
+
typeCheckConfig$a(untrustedConfig, config, getFeaturedItemsRelatedList_ConfigPropertyMetadata);
|
|
1132
1115
|
return config;
|
|
1133
1116
|
}
|
|
1134
1117
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -1340,11 +1323,9 @@ function createResourceRequest$7(config) {
|
|
|
1340
1323
|
const adapterName$7 = 'getLearningConfig';
|
|
1341
1324
|
const getLearningConfig_ConfigPropertyMetadata = [];
|
|
1342
1325
|
const getLearningConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getLearningConfig_ConfigPropertyMetadata);
|
|
1343
|
-
|
|
1344
|
-
const resourceParams = {};
|
|
1345
|
-
return resourceParams;
|
|
1346
|
-
}
|
|
1326
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$a(getLearningConfig_ConfigPropertyMetadata);
|
|
1347
1327
|
function keyBuilder$i(luvio, config) {
|
|
1328
|
+
createResourceParams$7(config);
|
|
1348
1329
|
return keyBuilder$j();
|
|
1349
1330
|
}
|
|
1350
1331
|
function typeCheckConfig$7(untrustedConfig) {
|
|
@@ -1365,6 +1346,7 @@ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
|
1365
1346
|
return config;
|
|
1366
1347
|
}
|
|
1367
1348
|
function adapterFragment$6(luvio, config) {
|
|
1349
|
+
createResourceParams$7(config);
|
|
1368
1350
|
return select$i();
|
|
1369
1351
|
}
|
|
1370
1352
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
@@ -1382,7 +1364,7 @@ function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
|
1382
1364
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1383
1365
|
}
|
|
1384
1366
|
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
1385
|
-
const resourceParams = createResourceParams$7();
|
|
1367
|
+
const resourceParams = createResourceParams$7(config);
|
|
1386
1368
|
const request = createResourceRequest$7();
|
|
1387
1369
|
return luvio.dispatchResourceRequest(request, options)
|
|
1388
1370
|
.then((response) => {
|
|
@@ -1401,8 +1383,8 @@ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext
|
|
|
1401
1383
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
1402
1384
|
const { luvio, config } = context;
|
|
1403
1385
|
const selector = {
|
|
1404
|
-
recordId: keyBuilder$i(),
|
|
1405
|
-
node: adapterFragment$6(),
|
|
1386
|
+
recordId: keyBuilder$i(luvio, config),
|
|
1387
|
+
node: adapterFragment$6(luvio, config),
|
|
1406
1388
|
variables: {},
|
|
1407
1389
|
};
|
|
1408
1390
|
const cacheSnapshot = storeLookup(selector, {
|
|
@@ -2016,26 +1998,17 @@ function createResourceRequest$6(config) {
|
|
|
2016
1998
|
|
|
2017
1999
|
const adapterName$6 = 'getLearningItemsList';
|
|
2018
2000
|
const getLearningItemsList_ConfigPropertyMetadata = [
|
|
2019
|
-
generateParamConfigMetadata('learningItemIds', false),
|
|
2001
|
+
generateParamConfigMetadata('learningItemIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
2020
2002
|
];
|
|
2021
2003
|
const getLearningItemsList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getLearningItemsList_ConfigPropertyMetadata);
|
|
2022
|
-
|
|
2023
|
-
const resourceParams = {
|
|
2024
|
-
queryParams: {
|
|
2025
|
-
learningItemIds: config.learningItemIds
|
|
2026
|
-
}
|
|
2027
|
-
};
|
|
2028
|
-
return resourceParams;
|
|
2029
|
-
}
|
|
2004
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$a(getLearningItemsList_ConfigPropertyMetadata);
|
|
2030
2005
|
function keyBuilder$f(luvio, config) {
|
|
2031
2006
|
const resourceParams = createResourceParams$6(config);
|
|
2032
2007
|
return keyBuilder$g(luvio, resourceParams);
|
|
2033
2008
|
}
|
|
2034
2009
|
function typeCheckConfig$6(untrustedConfig) {
|
|
2035
2010
|
const config = {};
|
|
2036
|
-
|
|
2037
|
-
learningItemIds: 0 /* String */,
|
|
2038
|
-
});
|
|
2011
|
+
typeCheckConfig$a(untrustedConfig, config, getLearningItemsList_ConfigPropertyMetadata);
|
|
2039
2012
|
return config;
|
|
2040
2013
|
}
|
|
2041
2014
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -2407,26 +2380,17 @@ function createResourceRequest$5(config) {
|
|
|
2407
2380
|
|
|
2408
2381
|
const adapterName$5 = 'getLearningItemProgress';
|
|
2409
2382
|
const getLearningItemProgress_ConfigPropertyMetadata = [
|
|
2410
|
-
generateParamConfigMetadata('learningItemIds', false),
|
|
2383
|
+
generateParamConfigMetadata('learningItemIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
2411
2384
|
];
|
|
2412
2385
|
const getLearningItemProgress_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getLearningItemProgress_ConfigPropertyMetadata);
|
|
2413
|
-
|
|
2414
|
-
const resourceParams = {
|
|
2415
|
-
queryParams: {
|
|
2416
|
-
learningItemIds: config.learningItemIds
|
|
2417
|
-
}
|
|
2418
|
-
};
|
|
2419
|
-
return resourceParams;
|
|
2420
|
-
}
|
|
2386
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$a(getLearningItemProgress_ConfigPropertyMetadata);
|
|
2421
2387
|
function keyBuilder$c(luvio, config) {
|
|
2422
2388
|
const resourceParams = createResourceParams$5(config);
|
|
2423
2389
|
return keyBuilder$d(luvio, resourceParams);
|
|
2424
2390
|
}
|
|
2425
2391
|
function typeCheckConfig$5(untrustedConfig) {
|
|
2426
2392
|
const config = {};
|
|
2427
|
-
|
|
2428
|
-
learningItemIds: 0 /* String */,
|
|
2429
|
-
});
|
|
2393
|
+
typeCheckConfig$a(untrustedConfig, config, getLearningItemProgress_ConfigPropertyMetadata);
|
|
2430
2394
|
return config;
|
|
2431
2395
|
}
|
|
2432
2396
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -3359,26 +3323,17 @@ function createResourceRequest$4(config) {
|
|
|
3359
3323
|
|
|
3360
3324
|
const adapterName$4 = 'getLearningModel';
|
|
3361
3325
|
const getLearningModel_ConfigPropertyMetadata = [
|
|
3362
|
-
generateParamConfigMetadata('learningItemId', true),
|
|
3326
|
+
generateParamConfigMetadata('learningItemId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3363
3327
|
];
|
|
3364
3328
|
const getLearningModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getLearningModel_ConfigPropertyMetadata);
|
|
3365
|
-
|
|
3366
|
-
const resourceParams = {
|
|
3367
|
-
urlParams: {
|
|
3368
|
-
learningItemId: config.learningItemId
|
|
3369
|
-
}
|
|
3370
|
-
};
|
|
3371
|
-
return resourceParams;
|
|
3372
|
-
}
|
|
3329
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$a(getLearningModel_ConfigPropertyMetadata);
|
|
3373
3330
|
function keyBuilder$9(luvio, config) {
|
|
3374
3331
|
const resourceParams = createResourceParams$4(config);
|
|
3375
3332
|
return keyBuilder$a(luvio, resourceParams);
|
|
3376
3333
|
}
|
|
3377
3334
|
function typeCheckConfig$4(untrustedConfig) {
|
|
3378
3335
|
const config = {};
|
|
3379
|
-
|
|
3380
|
-
learningItemId: 0 /* String */,
|
|
3381
|
-
});
|
|
3336
|
+
typeCheckConfig$a(untrustedConfig, config, getLearningModel_ConfigPropertyMetadata);
|
|
3382
3337
|
return config;
|
|
3383
3338
|
}
|
|
3384
3339
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -4060,26 +4015,17 @@ function createResourceRequest$3(config) {
|
|
|
4060
4015
|
|
|
4061
4016
|
const adapterName$3 = 'getModule';
|
|
4062
4017
|
const getModule_ConfigPropertyMetadata = [
|
|
4063
|
-
generateParamConfigMetadata('moduleId', true),
|
|
4018
|
+
generateParamConfigMetadata('moduleId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4064
4019
|
];
|
|
4065
4020
|
const getModule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getModule_ConfigPropertyMetadata);
|
|
4066
|
-
|
|
4067
|
-
const resourceParams = {
|
|
4068
|
-
urlParams: {
|
|
4069
|
-
moduleId: config.moduleId
|
|
4070
|
-
}
|
|
4071
|
-
};
|
|
4072
|
-
return resourceParams;
|
|
4073
|
-
}
|
|
4021
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$a(getModule_ConfigPropertyMetadata);
|
|
4074
4022
|
function keyBuilder$6(luvio, config) {
|
|
4075
4023
|
const resourceParams = createResourceParams$3(config);
|
|
4076
4024
|
return keyBuilder$7(luvio, resourceParams);
|
|
4077
4025
|
}
|
|
4078
4026
|
function typeCheckConfig$3(untrustedConfig) {
|
|
4079
4027
|
const config = {};
|
|
4080
|
-
|
|
4081
|
-
moduleId: 0 /* String */,
|
|
4082
|
-
});
|
|
4028
|
+
typeCheckConfig$a(untrustedConfig, config, getModule_ConfigPropertyMetadata);
|
|
4083
4029
|
return config;
|
|
4084
4030
|
}
|
|
4085
4031
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -4336,26 +4282,17 @@ function createResourceRequest$2(config) {
|
|
|
4336
4282
|
|
|
4337
4283
|
const adapterName$2 = 'getLearningPractice';
|
|
4338
4284
|
const getLearningPractice_ConfigPropertyMetadata = [
|
|
4339
|
-
generateParamConfigMetadata('learningItemId', true),
|
|
4285
|
+
generateParamConfigMetadata('learningItemId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4340
4286
|
];
|
|
4341
4287
|
const getLearningPractice_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getLearningPractice_ConfigPropertyMetadata);
|
|
4342
|
-
|
|
4343
|
-
const resourceParams = {
|
|
4344
|
-
urlParams: {
|
|
4345
|
-
learningItemId: config.learningItemId
|
|
4346
|
-
}
|
|
4347
|
-
};
|
|
4348
|
-
return resourceParams;
|
|
4349
|
-
}
|
|
4288
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$a(getLearningPractice_ConfigPropertyMetadata);
|
|
4350
4289
|
function keyBuilder$3(luvio, config) {
|
|
4351
4290
|
const resourceParams = createResourceParams$2(config);
|
|
4352
4291
|
return keyBuilder$4(luvio, resourceParams);
|
|
4353
4292
|
}
|
|
4354
4293
|
function typeCheckConfig$2(untrustedConfig) {
|
|
4355
4294
|
const config = {};
|
|
4356
|
-
|
|
4357
|
-
learningItemId: 0 /* String */,
|
|
4358
|
-
});
|
|
4295
|
+
typeCheckConfig$a(untrustedConfig, config, getLearningPractice_ConfigPropertyMetadata);
|
|
4359
4296
|
return config;
|
|
4360
4297
|
}
|
|
4361
4298
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -4498,17 +4435,10 @@ function createResourceRequest$1(config) {
|
|
|
4498
4435
|
|
|
4499
4436
|
const adapterName$1 = 'evaluateLearningItem';
|
|
4500
4437
|
const evaluateLearningItem_ConfigPropertyMetadata = [
|
|
4501
|
-
generateParamConfigMetadata('payload', true),
|
|
4438
|
+
generateParamConfigMetadata('payload', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4502
4439
|
];
|
|
4503
4440
|
const evaluateLearningItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, evaluateLearningItem_ConfigPropertyMetadata);
|
|
4504
|
-
|
|
4505
|
-
const resourceParams = {
|
|
4506
|
-
body: {
|
|
4507
|
-
payload: config.payload
|
|
4508
|
-
}
|
|
4509
|
-
};
|
|
4510
|
-
return resourceParams;
|
|
4511
|
-
}
|
|
4441
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$a(evaluateLearningItem_ConfigPropertyMetadata);
|
|
4512
4442
|
function typeCheckConfig$1(untrustedConfig) {
|
|
4513
4443
|
const config = {};
|
|
4514
4444
|
const untrustedConfig_payload = untrustedConfig.payload;
|
|
@@ -4838,26 +4768,17 @@ function createResourceRequest(config) {
|
|
|
4838
4768
|
|
|
4839
4769
|
const adapterName = 'getTextLesson';
|
|
4840
4770
|
const getTextLesson_ConfigPropertyMetadata = [
|
|
4841
|
-
generateParamConfigMetadata('learningItemId', true),
|
|
4771
|
+
generateParamConfigMetadata('learningItemId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4842
4772
|
];
|
|
4843
4773
|
const getTextLesson_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getTextLesson_ConfigPropertyMetadata);
|
|
4844
|
-
|
|
4845
|
-
const resourceParams = {
|
|
4846
|
-
urlParams: {
|
|
4847
|
-
learningItemId: config.learningItemId
|
|
4848
|
-
}
|
|
4849
|
-
};
|
|
4850
|
-
return resourceParams;
|
|
4851
|
-
}
|
|
4774
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$a(getTextLesson_ConfigPropertyMetadata);
|
|
4852
4775
|
function keyBuilder(luvio, config) {
|
|
4853
4776
|
const resourceParams = createResourceParams(config);
|
|
4854
4777
|
return keyBuilder$1(luvio, resourceParams);
|
|
4855
4778
|
}
|
|
4856
4779
|
function typeCheckConfig(untrustedConfig) {
|
|
4857
4780
|
const config = {};
|
|
4858
|
-
|
|
4859
|
-
learningItemId: 0 /* String */,
|
|
4860
|
-
});
|
|
4781
|
+
typeCheckConfig$a(untrustedConfig, config, getTextLesson_ConfigPropertyMetadata);
|
|
4861
4782
|
return config;
|
|
4862
4783
|
}
|
|
4863
4784
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -57,6 +57,6 @@ export declare const snapshotRefreshOptions: {
|
|
|
57
57
|
export declare function stableJSONStringify(node: any): string | undefined;
|
|
58
58
|
export declare function getFetchResponseStatusText(status: number): string;
|
|
59
59
|
export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
|
|
60
|
-
export declare function generateParamConfigMetadata(name: string, required: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
60
|
+
export declare function generateParamConfigMetadata(name: string, required: boolean, resourceType: $64$luvio_engine_AdapterConfigMetadata['resourceType'], typeCheckShape: $64$luvio_engine_AdapterConfigMetadata['typeCheckShape'], isArrayShape?: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
61
61
|
export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
|
|
62
62
|
export declare const keyPrefix = "LearningContentPlatform";
|
|
@@ -9,7 +9,7 @@ export declare const evaluateLearningItem_ConfigPropertyNames: adapter$45$utils_
|
|
|
9
9
|
export interface EvaluateLearningItemConfig {
|
|
10
10
|
payload: types_EvaluateLearningItemInputRepresentation_EvaluateLearningItemInputRepresentation;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: EvaluateLearningItemConfig) => resources_postLearningContentPlatformLearningEvaluate_ResourceRequestConfig;
|
|
13
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<EvaluateLearningItemConfig>): adapter$45$utils_Untrusted<EvaluateLearningItemConfig>;
|
|
14
14
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): EvaluateLearningItemConfig | null;
|
|
15
15
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: EvaluateLearningItemConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_LearningItemProgressRepresentation_LearningItemProgressRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_LearningItemProgressRepresentation_LearningItemProgressRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_LearningItemProgressRepresentation_LearningItemProgressRepresentation, any>>;
|
|
@@ -9,7 +9,7 @@ export interface GetFeaturedItemsRecommendedListConfig {
|
|
|
9
9
|
appId: string;
|
|
10
10
|
context: string;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: GetFeaturedItemsRecommendedListConfig) => resources_getLearningContentPlatformFeaturedItemListRecommended_ResourceRequestConfig;
|
|
13
13
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetFeaturedItemsRecommendedListConfig): string;
|
|
14
14
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetFeaturedItemsRecommendedListConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
15
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetFeaturedItemsRecommendedListConfig>): adapter$45$utils_Untrusted<GetFeaturedItemsRecommendedListConfig>;
|
|
@@ -9,7 +9,7 @@ export interface GetFeaturedItemsRelatedListConfig {
|
|
|
9
9
|
appId: string;
|
|
10
10
|
pageRef: string;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: GetFeaturedItemsRelatedListConfig) => resources_getLearningContentPlatformFeaturedItemListRelated_ResourceRequestConfig;
|
|
13
13
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetFeaturedItemsRelatedListConfig): string;
|
|
14
14
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetFeaturedItemsRelatedListConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
15
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetFeaturedItemsRelatedListConfig>): adapter$45$utils_Untrusted<GetFeaturedItemsRelatedListConfig>;
|
|
@@ -7,7 +7,7 @@ export declare const getLearningConfig_ConfigPropertyMetadata: $64$luvio_engine_
|
|
|
7
7
|
export declare const getLearningConfig_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface GetLearningConfigConfig {
|
|
9
9
|
}
|
|
10
|
-
export declare
|
|
10
|
+
export declare const createResourceParams: (config: GetLearningConfigConfig) => resources_getLearningContentPlatformLearningConfig_ResourceRequestConfig;
|
|
11
11
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetLearningConfigConfig): string;
|
|
12
12
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetLearningConfigConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
13
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetLearningConfigConfig>): adapter$45$utils_Untrusted<GetLearningConfigConfig>;
|
|
@@ -8,7 +8,7 @@ export declare const getLearningItemProgress_ConfigPropertyNames: adapter$45$uti
|
|
|
8
8
|
export interface GetLearningItemProgressConfig {
|
|
9
9
|
learningItemIds?: Array<string>;
|
|
10
10
|
}
|
|
11
|
-
export declare
|
|
11
|
+
export declare const createResourceParams: (config: GetLearningItemProgressConfig) => resources_getLearningContentPlatformLearningItemProgress_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetLearningItemProgressConfig): string;
|
|
13
13
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetLearningItemProgressConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetLearningItemProgressConfig>): adapter$45$utils_Untrusted<GetLearningItemProgressConfig>;
|
|
@@ -8,7 +8,7 @@ export declare const getLearningItemsList_ConfigPropertyNames: adapter$45$utils_
|
|
|
8
8
|
export interface GetLearningItemsListConfig {
|
|
9
9
|
learningItemIds?: Array<string>;
|
|
10
10
|
}
|
|
11
|
-
export declare
|
|
11
|
+
export declare const createResourceParams: (config: GetLearningItemsListConfig) => resources_getLearningContentPlatformLearningItemList_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetLearningItemsListConfig): string;
|
|
13
13
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetLearningItemsListConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetLearningItemsListConfig>): adapter$45$utils_Untrusted<GetLearningItemsListConfig>;
|
|
@@ -8,7 +8,7 @@ export declare const getLearningModel_ConfigPropertyNames: adapter$45$utils_Adap
|
|
|
8
8
|
export interface GetLearningModelConfig {
|
|
9
9
|
learningItemId: string;
|
|
10
10
|
}
|
|
11
|
-
export declare
|
|
11
|
+
export declare const createResourceParams: (config: GetLearningModelConfig) => resources_getLearningContentPlatformLearningModelByLearningItemId_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetLearningModelConfig): string;
|
|
13
13
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetLearningModelConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetLearningModelConfig>): adapter$45$utils_Untrusted<GetLearningModelConfig>;
|
|
@@ -8,7 +8,7 @@ export declare const getLearningPractice_ConfigPropertyNames: adapter$45$utils_A
|
|
|
8
8
|
export interface GetLearningPracticeConfig {
|
|
9
9
|
learningItemId: string;
|
|
10
10
|
}
|
|
11
|
-
export declare
|
|
11
|
+
export declare const createResourceParams: (config: GetLearningPracticeConfig) => resources_getLearningContentPlatformLearningPracticeByLearningItemId_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetLearningPracticeConfig): string;
|
|
13
13
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetLearningPracticeConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetLearningPracticeConfig>): adapter$45$utils_Untrusted<GetLearningPracticeConfig>;
|
|
@@ -8,7 +8,7 @@ export declare const getModule_ConfigPropertyNames: adapter$45$utils_AdapterVali
|
|
|
8
8
|
export interface GetModuleConfig {
|
|
9
9
|
moduleId: string;
|
|
10
10
|
}
|
|
11
|
-
export declare
|
|
11
|
+
export declare const createResourceParams: (config: GetModuleConfig) => resources_getLearningContentPlatformLearningModuleByModuleId_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetModuleConfig): string;
|
|
13
13
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetModuleConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetModuleConfig>): adapter$45$utils_Untrusted<GetModuleConfig>;
|
|
@@ -8,7 +8,7 @@ export declare const getTextLesson_ConfigPropertyNames: adapter$45$utils_Adapter
|
|
|
8
8
|
export interface GetTextLessonConfig {
|
|
9
9
|
learningItemId: string;
|
|
10
10
|
}
|
|
11
|
-
export declare
|
|
11
|
+
export declare const createResourceParams: (config: GetTextLessonConfig) => resources_getLearningContentPlatformLearningTextlessonByLearningItemId_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetTextLessonConfig): string;
|
|
13
13
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetTextLessonConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetTextLessonConfig>): adapter$45$utils_Untrusted<GetTextLessonConfig>;
|
package/package.json
CHANGED
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$9,
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$a, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$9, typeCheckConfig as typeCheckConfig$a } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -58,10 +58,13 @@ const snapshotRefreshOptions = {
|
|
|
58
58
|
},
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
-
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
61
|
+
function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
|
|
62
62
|
return {
|
|
63
63
|
name,
|
|
64
64
|
required,
|
|
65
|
+
resourceType,
|
|
66
|
+
typeCheckShape,
|
|
67
|
+
isArrayShape,
|
|
65
68
|
coerceFn,
|
|
66
69
|
};
|
|
67
70
|
}
|
|
@@ -343,17 +346,10 @@ function createResourceRequest$9(config) {
|
|
|
343
346
|
|
|
344
347
|
const adapterName$9 = 'evaluateLearningItem';
|
|
345
348
|
const evaluateLearningItem_ConfigPropertyMetadata = [
|
|
346
|
-
generateParamConfigMetadata('payload', true),
|
|
349
|
+
generateParamConfigMetadata('payload', true, 2 /* Body */, 4 /* Unsupported */),
|
|
347
350
|
];
|
|
348
351
|
const evaluateLearningItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, evaluateLearningItem_ConfigPropertyMetadata);
|
|
349
|
-
|
|
350
|
-
const resourceParams = {
|
|
351
|
-
body: {
|
|
352
|
-
payload: config.payload
|
|
353
|
-
}
|
|
354
|
-
};
|
|
355
|
-
return resourceParams;
|
|
356
|
-
}
|
|
352
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$a(evaluateLearningItem_ConfigPropertyMetadata);
|
|
357
353
|
function typeCheckConfig$9(untrustedConfig) {
|
|
358
354
|
const config = {};
|
|
359
355
|
const untrustedConfig_payload = untrustedConfig.payload;
|
|
@@ -1165,28 +1161,18 @@ function createResourceRequest$8(config) {
|
|
|
1165
1161
|
|
|
1166
1162
|
const adapterName$8 = 'getFeaturedItemsRecommendedList';
|
|
1167
1163
|
const getFeaturedItemsRecommendedList_ConfigPropertyMetadata = [
|
|
1168
|
-
generateParamConfigMetadata('appId', true),
|
|
1169
|
-
generateParamConfigMetadata('context', true),
|
|
1164
|
+
generateParamConfigMetadata('appId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
1165
|
+
generateParamConfigMetadata('context', true, 1 /* QueryParameter */, 0 /* String */),
|
|
1170
1166
|
];
|
|
1171
1167
|
const getFeaturedItemsRecommendedList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getFeaturedItemsRecommendedList_ConfigPropertyMetadata);
|
|
1172
|
-
|
|
1173
|
-
const resourceParams = {
|
|
1174
|
-
queryParams: {
|
|
1175
|
-
appId: config.appId, context: config.context
|
|
1176
|
-
}
|
|
1177
|
-
};
|
|
1178
|
-
return resourceParams;
|
|
1179
|
-
}
|
|
1168
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$a(getFeaturedItemsRecommendedList_ConfigPropertyMetadata);
|
|
1180
1169
|
function keyBuilder$l(luvio, config) {
|
|
1181
1170
|
const resourceParams = createResourceParams$8(config);
|
|
1182
1171
|
return keyBuilder$m(luvio, resourceParams);
|
|
1183
1172
|
}
|
|
1184
1173
|
function typeCheckConfig$8(untrustedConfig) {
|
|
1185
1174
|
const config = {};
|
|
1186
|
-
|
|
1187
|
-
appId: 0 /* String */,
|
|
1188
|
-
context: 0 /* String */,
|
|
1189
|
-
});
|
|
1175
|
+
typeCheckConfig$a(untrustedConfig, config, getFeaturedItemsRecommendedList_ConfigPropertyMetadata);
|
|
1190
1176
|
return config;
|
|
1191
1177
|
}
|
|
1192
1178
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -1403,28 +1389,18 @@ function createResourceRequest$7(config) {
|
|
|
1403
1389
|
|
|
1404
1390
|
const adapterName$7 = 'getFeaturedItemsRelatedList';
|
|
1405
1391
|
const getFeaturedItemsRelatedList_ConfigPropertyMetadata = [
|
|
1406
|
-
generateParamConfigMetadata('appId', true),
|
|
1407
|
-
generateParamConfigMetadata('pageRef', true),
|
|
1392
|
+
generateParamConfigMetadata('appId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
1393
|
+
generateParamConfigMetadata('pageRef', true, 1 /* QueryParameter */, 0 /* String */),
|
|
1408
1394
|
];
|
|
1409
1395
|
const getFeaturedItemsRelatedList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getFeaturedItemsRelatedList_ConfigPropertyMetadata);
|
|
1410
|
-
|
|
1411
|
-
const resourceParams = {
|
|
1412
|
-
queryParams: {
|
|
1413
|
-
appId: config.appId, pageRef: config.pageRef
|
|
1414
|
-
}
|
|
1415
|
-
};
|
|
1416
|
-
return resourceParams;
|
|
1417
|
-
}
|
|
1396
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$a(getFeaturedItemsRelatedList_ConfigPropertyMetadata);
|
|
1418
1397
|
function keyBuilder$j(luvio, config) {
|
|
1419
1398
|
const resourceParams = createResourceParams$7(config);
|
|
1420
1399
|
return keyBuilder$k(luvio, resourceParams);
|
|
1421
1400
|
}
|
|
1422
1401
|
function typeCheckConfig$7(untrustedConfig) {
|
|
1423
1402
|
const config = {};
|
|
1424
|
-
|
|
1425
|
-
appId: 0 /* String */,
|
|
1426
|
-
pageRef: 0 /* String */,
|
|
1427
|
-
});
|
|
1403
|
+
typeCheckConfig$a(untrustedConfig, config, getFeaturedItemsRelatedList_ConfigPropertyMetadata);
|
|
1428
1404
|
return config;
|
|
1429
1405
|
}
|
|
1430
1406
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -1636,11 +1612,9 @@ function createResourceRequest$6(config) {
|
|
|
1636
1612
|
const adapterName$6 = 'getLearningConfig';
|
|
1637
1613
|
const getLearningConfig_ConfigPropertyMetadata = [];
|
|
1638
1614
|
const getLearningConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getLearningConfig_ConfigPropertyMetadata);
|
|
1639
|
-
|
|
1640
|
-
const resourceParams = {};
|
|
1641
|
-
return resourceParams;
|
|
1642
|
-
}
|
|
1615
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$a(getLearningConfig_ConfigPropertyMetadata);
|
|
1643
1616
|
function keyBuilder$h(luvio, config) {
|
|
1617
|
+
createResourceParams$6(config);
|
|
1644
1618
|
return keyBuilder$i();
|
|
1645
1619
|
}
|
|
1646
1620
|
function typeCheckConfig$6(untrustedConfig) {
|
|
@@ -1661,6 +1635,7 @@ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
|
1661
1635
|
return config;
|
|
1662
1636
|
}
|
|
1663
1637
|
function adapterFragment$6(luvio, config) {
|
|
1638
|
+
createResourceParams$6(config);
|
|
1664
1639
|
return select$g();
|
|
1665
1640
|
}
|
|
1666
1641
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
@@ -1678,7 +1653,7 @@ function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
|
1678
1653
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1679
1654
|
}
|
|
1680
1655
|
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
1681
|
-
const resourceParams = createResourceParams$6();
|
|
1656
|
+
const resourceParams = createResourceParams$6(config);
|
|
1682
1657
|
const request = createResourceRequest$6();
|
|
1683
1658
|
return luvio.dispatchResourceRequest(request, options)
|
|
1684
1659
|
.then((response) => {
|
|
@@ -1697,8 +1672,8 @@ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext
|
|
|
1697
1672
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
1698
1673
|
const { luvio, config } = context;
|
|
1699
1674
|
const selector = {
|
|
1700
|
-
recordId: keyBuilder$h(),
|
|
1701
|
-
node: adapterFragment$6(),
|
|
1675
|
+
recordId: keyBuilder$h(luvio, config),
|
|
1676
|
+
node: adapterFragment$6(luvio, config),
|
|
1702
1677
|
variables: {},
|
|
1703
1678
|
};
|
|
1704
1679
|
const cacheSnapshot = storeLookup(selector, {
|
|
@@ -1860,26 +1835,17 @@ function createResourceRequest$5(config) {
|
|
|
1860
1835
|
|
|
1861
1836
|
const adapterName$5 = 'getLearningItemProgress';
|
|
1862
1837
|
const getLearningItemProgress_ConfigPropertyMetadata = [
|
|
1863
|
-
generateParamConfigMetadata('learningItemIds', false),
|
|
1838
|
+
generateParamConfigMetadata('learningItemIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
1864
1839
|
];
|
|
1865
1840
|
const getLearningItemProgress_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getLearningItemProgress_ConfigPropertyMetadata);
|
|
1866
|
-
|
|
1867
|
-
const resourceParams = {
|
|
1868
|
-
queryParams: {
|
|
1869
|
-
learningItemIds: config.learningItemIds
|
|
1870
|
-
}
|
|
1871
|
-
};
|
|
1872
|
-
return resourceParams;
|
|
1873
|
-
}
|
|
1841
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$a(getLearningItemProgress_ConfigPropertyMetadata);
|
|
1874
1842
|
function keyBuilder$f(luvio, config) {
|
|
1875
1843
|
const resourceParams = createResourceParams$5(config);
|
|
1876
1844
|
return keyBuilder$g(luvio, resourceParams);
|
|
1877
1845
|
}
|
|
1878
1846
|
function typeCheckConfig$5(untrustedConfig) {
|
|
1879
1847
|
const config = {};
|
|
1880
|
-
|
|
1881
|
-
learningItemIds: 0 /* String */,
|
|
1882
|
-
});
|
|
1848
|
+
typeCheckConfig$a(untrustedConfig, config, getLearningItemProgress_ConfigPropertyMetadata);
|
|
1883
1849
|
return config;
|
|
1884
1850
|
}
|
|
1885
1851
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -2548,26 +2514,17 @@ function createResourceRequest$4(config) {
|
|
|
2548
2514
|
|
|
2549
2515
|
const adapterName$4 = 'getLearningItemsList';
|
|
2550
2516
|
const getLearningItemsList_ConfigPropertyMetadata = [
|
|
2551
|
-
generateParamConfigMetadata('learningItemIds', false),
|
|
2517
|
+
generateParamConfigMetadata('learningItemIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
2552
2518
|
];
|
|
2553
2519
|
const getLearningItemsList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getLearningItemsList_ConfigPropertyMetadata);
|
|
2554
|
-
|
|
2555
|
-
const resourceParams = {
|
|
2556
|
-
queryParams: {
|
|
2557
|
-
learningItemIds: config.learningItemIds
|
|
2558
|
-
}
|
|
2559
|
-
};
|
|
2560
|
-
return resourceParams;
|
|
2561
|
-
}
|
|
2520
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$a(getLearningItemsList_ConfigPropertyMetadata);
|
|
2562
2521
|
function keyBuilder$c(luvio, config) {
|
|
2563
2522
|
const resourceParams = createResourceParams$4(config);
|
|
2564
2523
|
return keyBuilder$d(luvio, resourceParams);
|
|
2565
2524
|
}
|
|
2566
2525
|
function typeCheckConfig$4(untrustedConfig) {
|
|
2567
2526
|
const config = {};
|
|
2568
|
-
|
|
2569
|
-
learningItemIds: 0 /* String */,
|
|
2570
|
-
});
|
|
2527
|
+
typeCheckConfig$a(untrustedConfig, config, getLearningItemsList_ConfigPropertyMetadata);
|
|
2571
2528
|
return config;
|
|
2572
2529
|
}
|
|
2573
2530
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -3500,26 +3457,17 @@ function createResourceRequest$3(config) {
|
|
|
3500
3457
|
|
|
3501
3458
|
const adapterName$3 = 'getLearningModel';
|
|
3502
3459
|
const getLearningModel_ConfigPropertyMetadata = [
|
|
3503
|
-
generateParamConfigMetadata('learningItemId', true),
|
|
3460
|
+
generateParamConfigMetadata('learningItemId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3504
3461
|
];
|
|
3505
3462
|
const getLearningModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getLearningModel_ConfigPropertyMetadata);
|
|
3506
|
-
|
|
3507
|
-
const resourceParams = {
|
|
3508
|
-
urlParams: {
|
|
3509
|
-
learningItemId: config.learningItemId
|
|
3510
|
-
}
|
|
3511
|
-
};
|
|
3512
|
-
return resourceParams;
|
|
3513
|
-
}
|
|
3463
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$a(getLearningModel_ConfigPropertyMetadata);
|
|
3514
3464
|
function keyBuilder$9(luvio, config) {
|
|
3515
3465
|
const resourceParams = createResourceParams$3(config);
|
|
3516
3466
|
return keyBuilder$a(luvio, resourceParams);
|
|
3517
3467
|
}
|
|
3518
3468
|
function typeCheckConfig$3(untrustedConfig) {
|
|
3519
3469
|
const config = {};
|
|
3520
|
-
|
|
3521
|
-
learningItemId: 0 /* String */,
|
|
3522
|
-
});
|
|
3470
|
+
typeCheckConfig$a(untrustedConfig, config, getLearningModel_ConfigPropertyMetadata);
|
|
3523
3471
|
return config;
|
|
3524
3472
|
}
|
|
3525
3473
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -3783,26 +3731,17 @@ function createResourceRequestFromRepresentation$2(representation) {
|
|
|
3783
3731
|
|
|
3784
3732
|
const adapterName$2 = 'getLearningPractice';
|
|
3785
3733
|
const getLearningPractice_ConfigPropertyMetadata = [
|
|
3786
|
-
generateParamConfigMetadata('learningItemId', true),
|
|
3734
|
+
generateParamConfigMetadata('learningItemId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3787
3735
|
];
|
|
3788
3736
|
const getLearningPractice_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getLearningPractice_ConfigPropertyMetadata);
|
|
3789
|
-
|
|
3790
|
-
const resourceParams = {
|
|
3791
|
-
urlParams: {
|
|
3792
|
-
learningItemId: config.learningItemId
|
|
3793
|
-
}
|
|
3794
|
-
};
|
|
3795
|
-
return resourceParams;
|
|
3796
|
-
}
|
|
3737
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$a(getLearningPractice_ConfigPropertyMetadata);
|
|
3797
3738
|
function keyBuilder$6(luvio, config) {
|
|
3798
3739
|
const resourceParams = createResourceParams$2(config);
|
|
3799
3740
|
return keyBuilder$7(luvio, resourceParams);
|
|
3800
3741
|
}
|
|
3801
3742
|
function typeCheckConfig$2(untrustedConfig) {
|
|
3802
3743
|
const config = {};
|
|
3803
|
-
|
|
3804
|
-
learningItemId: 0 /* String */,
|
|
3805
|
-
});
|
|
3744
|
+
typeCheckConfig$a(untrustedConfig, config, getLearningPractice_ConfigPropertyMetadata);
|
|
3806
3745
|
return config;
|
|
3807
3746
|
}
|
|
3808
3747
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -4525,26 +4464,17 @@ function createResourceRequestFromRepresentation$1(representation) {
|
|
|
4525
4464
|
|
|
4526
4465
|
const adapterName$1 = 'getModule';
|
|
4527
4466
|
const getModule_ConfigPropertyMetadata = [
|
|
4528
|
-
generateParamConfigMetadata('moduleId', true),
|
|
4467
|
+
generateParamConfigMetadata('moduleId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4529
4468
|
];
|
|
4530
4469
|
const getModule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getModule_ConfigPropertyMetadata);
|
|
4531
|
-
|
|
4532
|
-
const resourceParams = {
|
|
4533
|
-
urlParams: {
|
|
4534
|
-
moduleId: config.moduleId
|
|
4535
|
-
}
|
|
4536
|
-
};
|
|
4537
|
-
return resourceParams;
|
|
4538
|
-
}
|
|
4470
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$a(getModule_ConfigPropertyMetadata);
|
|
4539
4471
|
function keyBuilder$3(luvio, config) {
|
|
4540
4472
|
const resourceParams = createResourceParams$1(config);
|
|
4541
4473
|
return keyBuilder$4(luvio, resourceParams);
|
|
4542
4474
|
}
|
|
4543
4475
|
function typeCheckConfig$1(untrustedConfig) {
|
|
4544
4476
|
const config = {};
|
|
4545
|
-
|
|
4546
|
-
moduleId: 0 /* String */,
|
|
4547
|
-
});
|
|
4477
|
+
typeCheckConfig$a(untrustedConfig, config, getModule_ConfigPropertyMetadata);
|
|
4548
4478
|
return config;
|
|
4549
4479
|
}
|
|
4550
4480
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -4937,26 +4867,17 @@ function createResourceRequestFromRepresentation(representation) {
|
|
|
4937
4867
|
|
|
4938
4868
|
const adapterName = 'getTextLesson';
|
|
4939
4869
|
const getTextLesson_ConfigPropertyMetadata = [
|
|
4940
|
-
generateParamConfigMetadata('learningItemId', true),
|
|
4870
|
+
generateParamConfigMetadata('learningItemId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4941
4871
|
];
|
|
4942
4872
|
const getTextLesson_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getTextLesson_ConfigPropertyMetadata);
|
|
4943
|
-
|
|
4944
|
-
const resourceParams = {
|
|
4945
|
-
urlParams: {
|
|
4946
|
-
learningItemId: config.learningItemId
|
|
4947
|
-
}
|
|
4948
|
-
};
|
|
4949
|
-
return resourceParams;
|
|
4950
|
-
}
|
|
4873
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$a(getTextLesson_ConfigPropertyMetadata);
|
|
4951
4874
|
function keyBuilder(luvio, config) {
|
|
4952
4875
|
const resourceParams = createResourceParams(config);
|
|
4953
4876
|
return keyBuilder$1(luvio, resourceParams);
|
|
4954
4877
|
}
|
|
4955
4878
|
function typeCheckConfig(untrustedConfig) {
|
|
4956
4879
|
const config = {};
|
|
4957
|
-
|
|
4958
|
-
learningItemId: 0 /* String */,
|
|
4959
|
-
});
|
|
4880
|
+
typeCheckConfig$a(untrustedConfig, config, getTextLesson_ConfigPropertyMetadata);
|
|
4960
4881
|
return config;
|
|
4961
4882
|
}
|
|
4962
4883
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -5165,4 +5086,4 @@ withDefaultLuvio((luvio) => {
|
|
|
5165
5086
|
});
|
|
5166
5087
|
|
|
5167
5088
|
export { evaluateLearningItem, 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 };
|
|
5168
|
-
// version: 1.
|
|
5089
|
+
// version: 1.216.0-1d57d45fe
|