@salesforce/lds-adapters-platform-learning-content 1.273.1 → 1.275.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 +520 -30
- package/dist/es/es2018/types/src/generated/adapters/getCoachingAIFeedback.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/getFeaturedItemsRelatedList.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/submitForCoachingAIFeedback.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformCoachingAiFeedbackByLearningItemSubmissionId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformFeaturedItemListRelated.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postLearningContentPlatformCoachingAiFeedback.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/types/AbstractCoachingAIFeedbackSectionRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/CoachingAICallSubmissionInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/CoachingAICallSubmissionOutputRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/CoachingAICriteriaBasedFeedbackRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/CoachingAIFeedbackRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/CoachingAIFeedbackSectionStringCollectionRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/CoachingAIFeedbackSectionTextRepresentation.d.ts +30 -0
- package/package.json +6 -5
- package/sfdc/index.js +1113 -609
- package/src/raml/api.raml +115 -0
- package/src/raml/luvio.raml +13 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze,
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$c, typeCheckConfig as typeCheckConfig$c, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$a } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -112,6 +112,495 @@ function createLink(ref) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
+
const VERSION$h = "7877f5d0382a35ed103b8a91ff54fa47";
|
|
116
|
+
function validate$i(obj, path = 'CoachingAICriteriaBasedFeedbackRepresentation') {
|
|
117
|
+
const v_error = (() => {
|
|
118
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
119
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
120
|
+
}
|
|
121
|
+
const obj_criteriaName = obj.criteriaName;
|
|
122
|
+
const path_criteriaName = path + '.criteriaName';
|
|
123
|
+
if (typeof obj_criteriaName !== 'string') {
|
|
124
|
+
return new TypeError('Expected "string" but received "' + typeof obj_criteriaName + '" (at "' + path_criteriaName + '")');
|
|
125
|
+
}
|
|
126
|
+
obj.criteriaScore;
|
|
127
|
+
})();
|
|
128
|
+
return v_error === undefined ? null : v_error;
|
|
129
|
+
}
|
|
130
|
+
const select$t = function CoachingAICriteriaBasedFeedbackRepresentationSelect() {
|
|
131
|
+
return {
|
|
132
|
+
kind: 'Fragment',
|
|
133
|
+
version: VERSION$h,
|
|
134
|
+
private: [],
|
|
135
|
+
selections: [
|
|
136
|
+
{
|
|
137
|
+
name: 'criteriaName',
|
|
138
|
+
kind: 'Scalar'
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: 'criteriaScore',
|
|
142
|
+
kind: 'Scalar'
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
function equals$h(existing, incoming) {
|
|
148
|
+
const existing_criteriaName = existing.criteriaName;
|
|
149
|
+
const incoming_criteriaName = incoming.criteriaName;
|
|
150
|
+
if (!(existing_criteriaName === incoming_criteriaName)) {
|
|
151
|
+
return false;
|
|
152
|
+
}
|
|
153
|
+
const existing_criteriaScore = existing.criteriaScore;
|
|
154
|
+
const incoming_criteriaScore = incoming.criteriaScore;
|
|
155
|
+
if (!(existing_criteriaScore === incoming_criteriaScore)) {
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
158
|
+
return true;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
const VERSION$g = "ce799f65b2acf684ff815d1c883d123e";
|
|
162
|
+
function validate$h(obj, path = 'CoachingAIFeedbackRepresentation') {
|
|
163
|
+
const v_error = (() => {
|
|
164
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
165
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
166
|
+
}
|
|
167
|
+
const obj_additionalFeedback = obj.additionalFeedback;
|
|
168
|
+
const path_additionalFeedback = path + '.additionalFeedback';
|
|
169
|
+
if (!ArrayIsArray(obj_additionalFeedback)) {
|
|
170
|
+
return new TypeError('Expected "array" but received "' + typeof obj_additionalFeedback + '" (at "' + path_additionalFeedback + '")');
|
|
171
|
+
}
|
|
172
|
+
for (let i = 0; i < obj_additionalFeedback.length; i++) {
|
|
173
|
+
const obj_additionalFeedback_item = obj_additionalFeedback[i];
|
|
174
|
+
const path_additionalFeedback_item = path_additionalFeedback + '[' + i + ']';
|
|
175
|
+
if (obj_additionalFeedback_item === undefined) {
|
|
176
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_additionalFeedback_item + '" (at "' + path_additionalFeedback_item + '")');
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
const obj_conversationSummaryId = obj.conversationSummaryId;
|
|
180
|
+
const path_conversationSummaryId = path + '.conversationSummaryId';
|
|
181
|
+
if (typeof obj_conversationSummaryId !== 'string') {
|
|
182
|
+
return new TypeError('Expected "string" but received "' + typeof obj_conversationSummaryId + '" (at "' + path_conversationSummaryId + '")');
|
|
183
|
+
}
|
|
184
|
+
const obj_criteriaBasedScores = obj.criteriaBasedScores;
|
|
185
|
+
const path_criteriaBasedScores = path + '.criteriaBasedScores';
|
|
186
|
+
if (!ArrayIsArray(obj_criteriaBasedScores)) {
|
|
187
|
+
return new TypeError('Expected "array" but received "' + typeof obj_criteriaBasedScores + '" (at "' + path_criteriaBasedScores + '")');
|
|
188
|
+
}
|
|
189
|
+
for (let i = 0; i < obj_criteriaBasedScores.length; i++) {
|
|
190
|
+
const obj_criteriaBasedScores_item = obj_criteriaBasedScores[i];
|
|
191
|
+
const path_criteriaBasedScores_item = path_criteriaBasedScores + '[' + i + ']';
|
|
192
|
+
const referencepath_criteriaBasedScores_itemValidationError = validate$i(obj_criteriaBasedScores_item, path_criteriaBasedScores_item);
|
|
193
|
+
if (referencepath_criteriaBasedScores_itemValidationError !== null) {
|
|
194
|
+
let message = 'Object doesn\'t match CoachingAICriteriaBasedFeedbackRepresentation (at "' + path_criteriaBasedScores_item + '")\n';
|
|
195
|
+
message += referencepath_criteriaBasedScores_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
196
|
+
return new TypeError(message);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
obj.score;
|
|
200
|
+
})();
|
|
201
|
+
return v_error === undefined ? null : v_error;
|
|
202
|
+
}
|
|
203
|
+
const RepresentationType$d = 'CoachingAIFeedbackRepresentation';
|
|
204
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
205
|
+
return input;
|
|
206
|
+
}
|
|
207
|
+
const select$s = function CoachingAIFeedbackRepresentationSelect() {
|
|
208
|
+
const { selections: CoachingAICriteriaBasedFeedbackRepresentation__selections, opaque: CoachingAICriteriaBasedFeedbackRepresentation__opaque, } = select$t();
|
|
209
|
+
return {
|
|
210
|
+
kind: 'Fragment',
|
|
211
|
+
version: VERSION$g,
|
|
212
|
+
private: [],
|
|
213
|
+
selections: [
|
|
214
|
+
{
|
|
215
|
+
name: 'additionalFeedback',
|
|
216
|
+
kind: 'Object',
|
|
217
|
+
// any
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
name: 'conversationSummaryId',
|
|
221
|
+
kind: 'Scalar'
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
name: 'criteriaBasedScores',
|
|
225
|
+
kind: 'Object',
|
|
226
|
+
plural: true,
|
|
227
|
+
selections: CoachingAICriteriaBasedFeedbackRepresentation__selections
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
name: 'score',
|
|
231
|
+
kind: 'Scalar'
|
|
232
|
+
}
|
|
233
|
+
]
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
function equals$g(existing, incoming) {
|
|
237
|
+
const existing_conversationSummaryId = existing.conversationSummaryId;
|
|
238
|
+
const incoming_conversationSummaryId = incoming.conversationSummaryId;
|
|
239
|
+
if (!(existing_conversationSummaryId === incoming_conversationSummaryId)) {
|
|
240
|
+
return false;
|
|
241
|
+
}
|
|
242
|
+
const existing_score = existing.score;
|
|
243
|
+
const incoming_score = incoming.score;
|
|
244
|
+
if (!(existing_score === incoming_score)) {
|
|
245
|
+
return false;
|
|
246
|
+
}
|
|
247
|
+
const existing_additionalFeedback = existing.additionalFeedback;
|
|
248
|
+
const incoming_additionalFeedback = incoming.additionalFeedback;
|
|
249
|
+
const equals_additionalFeedback_items = equalsArray(existing_additionalFeedback, incoming_additionalFeedback, (existing_additionalFeedback_item, incoming_additionalFeedback_item) => {
|
|
250
|
+
if (JSONStringify(incoming_additionalFeedback_item) !== JSONStringify(existing_additionalFeedback_item)) {
|
|
251
|
+
return false;
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
if (equals_additionalFeedback_items === false) {
|
|
255
|
+
return false;
|
|
256
|
+
}
|
|
257
|
+
const existing_criteriaBasedScores = existing.criteriaBasedScores;
|
|
258
|
+
const incoming_criteriaBasedScores = incoming.criteriaBasedScores;
|
|
259
|
+
const equals_criteriaBasedScores_items = equalsArray(existing_criteriaBasedScores, incoming_criteriaBasedScores, (existing_criteriaBasedScores_item, incoming_criteriaBasedScores_item) => {
|
|
260
|
+
if (!(equals$h(existing_criteriaBasedScores_item, incoming_criteriaBasedScores_item))) {
|
|
261
|
+
return false;
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
if (equals_criteriaBasedScores_items === false) {
|
|
265
|
+
return false;
|
|
266
|
+
}
|
|
267
|
+
return true;
|
|
268
|
+
}
|
|
269
|
+
const ingest$d = function CoachingAIFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
270
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
271
|
+
const validateError = validate$h(input);
|
|
272
|
+
if (validateError !== null) {
|
|
273
|
+
throw validateError;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
const key = path.fullPath;
|
|
277
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
278
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "LearningContentPlatform", VERSION$g, RepresentationType$d, equals$g);
|
|
279
|
+
return createLink(key);
|
|
280
|
+
};
|
|
281
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
282
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
283
|
+
const rootKey = fullPathFactory();
|
|
284
|
+
rootKeySet.set(rootKey, {
|
|
285
|
+
namespace: keyPrefix,
|
|
286
|
+
representationName: RepresentationType$d,
|
|
287
|
+
mergeable: false
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
const TTL$7 = 15000;
|
|
292
|
+
const VERSION$f = "d63f1d6a2345db84136a6263f8d81080";
|
|
293
|
+
function validate$g(obj, path = 'CoachingAICallSubmissionOutputRepresentation') {
|
|
294
|
+
const v_error = (() => {
|
|
295
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
296
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
297
|
+
}
|
|
298
|
+
const obj_coachingAIFeedback = obj.coachingAIFeedback;
|
|
299
|
+
const path_coachingAIFeedback = path + '.coachingAIFeedback';
|
|
300
|
+
const referencepath_coachingAIFeedbackValidationError = validate$h(obj_coachingAIFeedback, path_coachingAIFeedback);
|
|
301
|
+
if (referencepath_coachingAIFeedbackValidationError !== null) {
|
|
302
|
+
let message = 'Object doesn\'t match CoachingAIFeedbackRepresentation (at "' + path_coachingAIFeedback + '")\n';
|
|
303
|
+
message += referencepath_coachingAIFeedbackValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
304
|
+
return new TypeError(message);
|
|
305
|
+
}
|
|
306
|
+
const obj_generationId = obj.generationId;
|
|
307
|
+
const path_generationId = path + '.generationId';
|
|
308
|
+
if (typeof obj_generationId !== 'string') {
|
|
309
|
+
return new TypeError('Expected "string" but received "' + typeof obj_generationId + '" (at "' + path_generationId + '")');
|
|
310
|
+
}
|
|
311
|
+
})();
|
|
312
|
+
return v_error === undefined ? null : v_error;
|
|
313
|
+
}
|
|
314
|
+
const RepresentationType$c = 'CoachingAICallSubmissionOutputRepresentation';
|
|
315
|
+
function keyBuilder$r(luvio, config) {
|
|
316
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.generation_id;
|
|
317
|
+
}
|
|
318
|
+
function keyBuilderFromType$7(luvio, object) {
|
|
319
|
+
const keyParams = {
|
|
320
|
+
generation_id: object.generationId
|
|
321
|
+
};
|
|
322
|
+
return keyBuilder$r(luvio, keyParams);
|
|
323
|
+
}
|
|
324
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
325
|
+
return input;
|
|
326
|
+
}
|
|
327
|
+
const select$r = function CoachingAICallSubmissionOutputRepresentationSelect() {
|
|
328
|
+
const { selections: CoachingAIFeedbackRepresentation__selections, opaque: CoachingAIFeedbackRepresentation__opaque, } = select$s();
|
|
329
|
+
return {
|
|
330
|
+
kind: 'Fragment',
|
|
331
|
+
version: VERSION$f,
|
|
332
|
+
private: [],
|
|
333
|
+
selections: [
|
|
334
|
+
{
|
|
335
|
+
name: 'coachingAIFeedback',
|
|
336
|
+
kind: 'Object',
|
|
337
|
+
selections: CoachingAIFeedbackRepresentation__selections
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
name: 'generationId',
|
|
341
|
+
kind: 'Scalar'
|
|
342
|
+
}
|
|
343
|
+
]
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
function equals$f(existing, incoming) {
|
|
347
|
+
const existing_generationId = existing.generationId;
|
|
348
|
+
const incoming_generationId = incoming.generationId;
|
|
349
|
+
if (!(existing_generationId === incoming_generationId)) {
|
|
350
|
+
return false;
|
|
351
|
+
}
|
|
352
|
+
const existing_coachingAIFeedback = existing.coachingAIFeedback;
|
|
353
|
+
const incoming_coachingAIFeedback = incoming.coachingAIFeedback;
|
|
354
|
+
if (!(equals$g(existing_coachingAIFeedback, incoming_coachingAIFeedback))) {
|
|
355
|
+
return false;
|
|
356
|
+
}
|
|
357
|
+
return true;
|
|
358
|
+
}
|
|
359
|
+
const ingest$c = function CoachingAICallSubmissionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
360
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
361
|
+
const validateError = validate$g(input);
|
|
362
|
+
if (validateError !== null) {
|
|
363
|
+
throw validateError;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
const key = keyBuilderFromType$7(luvio, input);
|
|
367
|
+
const ttlToUse = TTL$7;
|
|
368
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "LearningContentPlatform", VERSION$f, RepresentationType$c, equals$f);
|
|
369
|
+
return createLink(key);
|
|
370
|
+
};
|
|
371
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
372
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
373
|
+
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
374
|
+
rootKeySet.set(rootKey, {
|
|
375
|
+
namespace: keyPrefix,
|
|
376
|
+
representationName: RepresentationType$c,
|
|
377
|
+
mergeable: false
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
function select$q(luvio, params) {
|
|
382
|
+
return select$r();
|
|
383
|
+
}
|
|
384
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
385
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
386
|
+
}
|
|
387
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
388
|
+
const { body } = response;
|
|
389
|
+
const key = keyBuilderFromType$7(luvio, body);
|
|
390
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
391
|
+
const snapshot = luvio.storeLookup({
|
|
392
|
+
recordId: key,
|
|
393
|
+
node: select$q(),
|
|
394
|
+
variables: {},
|
|
395
|
+
});
|
|
396
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
397
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
398
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
deepFreeze(snapshot.data);
|
|
402
|
+
return snapshot;
|
|
403
|
+
}
|
|
404
|
+
function createResourceRequest$b(config) {
|
|
405
|
+
const headers = {};
|
|
406
|
+
return {
|
|
407
|
+
baseUri: '/services/data/v61.0',
|
|
408
|
+
basePath: '/learning-content-platform/coaching/ai-feedback',
|
|
409
|
+
method: 'post',
|
|
410
|
+
body: config.body,
|
|
411
|
+
urlParams: {},
|
|
412
|
+
queryParams: {},
|
|
413
|
+
headers,
|
|
414
|
+
priority: 'normal',
|
|
415
|
+
};
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
const adapterName$b = 'submitForCoachingAIFeedback';
|
|
419
|
+
const submitForCoachingAIFeedback_ConfigPropertyMetadata = [
|
|
420
|
+
generateParamConfigMetadata('callId', true, 2 /* Body */, 0 /* String */),
|
|
421
|
+
generateParamConfigMetadata('learningItemId', true, 2 /* Body */, 0 /* String */),
|
|
422
|
+
];
|
|
423
|
+
const submitForCoachingAIFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, submitForCoachingAIFeedback_ConfigPropertyMetadata);
|
|
424
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$c(submitForCoachingAIFeedback_ConfigPropertyMetadata);
|
|
425
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
426
|
+
const config = {};
|
|
427
|
+
typeCheckConfig$c(untrustedConfig, config, submitForCoachingAIFeedback_ConfigPropertyMetadata);
|
|
428
|
+
return config;
|
|
429
|
+
}
|
|
430
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
431
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
432
|
+
return null;
|
|
433
|
+
}
|
|
434
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
435
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
436
|
+
}
|
|
437
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
438
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
439
|
+
return null;
|
|
440
|
+
}
|
|
441
|
+
return config;
|
|
442
|
+
}
|
|
443
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
444
|
+
const resourceParams = createResourceParams$b(config);
|
|
445
|
+
const request = createResourceRequest$b(resourceParams);
|
|
446
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
447
|
+
.then((response) => {
|
|
448
|
+
return luvio.handleSuccessResponse(() => {
|
|
449
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response);
|
|
450
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
451
|
+
}, () => {
|
|
452
|
+
const cache = new StoreKeyMap();
|
|
453
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
454
|
+
return cache;
|
|
455
|
+
});
|
|
456
|
+
}, (response) => {
|
|
457
|
+
deepFreeze(response);
|
|
458
|
+
throw response;
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
const submitForCoachingAIFeedbackAdapterFactory = (luvio) => {
|
|
462
|
+
return function submitForCoachingAIFeedback(untrustedConfig) {
|
|
463
|
+
const config = validateAdapterConfig$b(untrustedConfig, submitForCoachingAIFeedback_ConfigPropertyNames);
|
|
464
|
+
// Invalid or incomplete config
|
|
465
|
+
if (config === null) {
|
|
466
|
+
throw new Error('Invalid config for "submitForCoachingAIFeedback"');
|
|
467
|
+
}
|
|
468
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
function select$p(luvio, params) {
|
|
473
|
+
return select$s();
|
|
474
|
+
}
|
|
475
|
+
function keyBuilder$q(luvio, params) {
|
|
476
|
+
return keyPrefix + '::CoachingAIFeedbackRepresentation:(' + 'learningItemSubmissionId:' + params.urlParams.learningItemSubmissionId + ')';
|
|
477
|
+
}
|
|
478
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
479
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response, () => keyBuilder$q(luvio, resourceParams));
|
|
480
|
+
}
|
|
481
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
482
|
+
const { body } = response;
|
|
483
|
+
const key = keyBuilder$q(luvio, resourceParams);
|
|
484
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
485
|
+
const snapshot = luvio.storeLookup({
|
|
486
|
+
recordId: key,
|
|
487
|
+
node: select$p(),
|
|
488
|
+
variables: {},
|
|
489
|
+
}, snapshotRefresh);
|
|
490
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
491
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
492
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
deepFreeze(snapshot.data);
|
|
496
|
+
return snapshot;
|
|
497
|
+
}
|
|
498
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
499
|
+
const key = keyBuilder$q(luvio, params);
|
|
500
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
501
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
502
|
+
return errorSnapshot;
|
|
503
|
+
}
|
|
504
|
+
function createResourceRequest$a(config) {
|
|
505
|
+
const headers = {};
|
|
506
|
+
return {
|
|
507
|
+
baseUri: '/services/data/v61.0',
|
|
508
|
+
basePath: '/learning-content-platform/coaching/' + config.urlParams.learningItemSubmissionId + '/ai-feedback',
|
|
509
|
+
method: 'get',
|
|
510
|
+
body: null,
|
|
511
|
+
urlParams: config.urlParams,
|
|
512
|
+
queryParams: {},
|
|
513
|
+
headers,
|
|
514
|
+
priority: 'normal',
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
const adapterName$a = 'getCoachingAIFeedback';
|
|
519
|
+
const getCoachingAIFeedback_ConfigPropertyMetadata = [
|
|
520
|
+
generateParamConfigMetadata('learningItemSubmissionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
521
|
+
];
|
|
522
|
+
const getCoachingAIFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getCoachingAIFeedback_ConfigPropertyMetadata);
|
|
523
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$c(getCoachingAIFeedback_ConfigPropertyMetadata);
|
|
524
|
+
function keyBuilder$p(luvio, config) {
|
|
525
|
+
const resourceParams = createResourceParams$a(config);
|
|
526
|
+
return keyBuilder$q(luvio, resourceParams);
|
|
527
|
+
}
|
|
528
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
529
|
+
const config = {};
|
|
530
|
+
typeCheckConfig$c(untrustedConfig, config, getCoachingAIFeedback_ConfigPropertyMetadata);
|
|
531
|
+
return config;
|
|
532
|
+
}
|
|
533
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
534
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
535
|
+
return null;
|
|
536
|
+
}
|
|
537
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
538
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
539
|
+
}
|
|
540
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
541
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
542
|
+
return null;
|
|
543
|
+
}
|
|
544
|
+
return config;
|
|
545
|
+
}
|
|
546
|
+
function adapterFragment$9(luvio, config) {
|
|
547
|
+
createResourceParams$a(config);
|
|
548
|
+
return select$p();
|
|
549
|
+
}
|
|
550
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
551
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
552
|
+
config,
|
|
553
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
554
|
+
});
|
|
555
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
556
|
+
}
|
|
557
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
558
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
559
|
+
config,
|
|
560
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
561
|
+
});
|
|
562
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
563
|
+
}
|
|
564
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
565
|
+
const resourceParams = createResourceParams$a(config);
|
|
566
|
+
const request = createResourceRequest$a(resourceParams);
|
|
567
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
568
|
+
.then((response) => {
|
|
569
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
570
|
+
const cache = new StoreKeyMap();
|
|
571
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
572
|
+
return cache;
|
|
573
|
+
});
|
|
574
|
+
}, (response) => {
|
|
575
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
579
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
580
|
+
}
|
|
581
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
582
|
+
const { luvio, config } = context;
|
|
583
|
+
const selector = {
|
|
584
|
+
recordId: keyBuilder$p(luvio, config),
|
|
585
|
+
node: adapterFragment$9(luvio, config),
|
|
586
|
+
variables: {},
|
|
587
|
+
};
|
|
588
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
589
|
+
config,
|
|
590
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
591
|
+
});
|
|
592
|
+
return cacheSnapshot;
|
|
593
|
+
}
|
|
594
|
+
const getCoachingAIFeedbackAdapterFactory = (luvio) => function LearningContentPlatform__getCoachingAIFeedback(untrustedConfig, requestContext) {
|
|
595
|
+
const config = validateAdapterConfig$a(untrustedConfig, getCoachingAIFeedback_ConfigPropertyNames);
|
|
596
|
+
// Invalid or incomplete config
|
|
597
|
+
if (config === null) {
|
|
598
|
+
return null;
|
|
599
|
+
}
|
|
600
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
601
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
602
|
+
};
|
|
603
|
+
|
|
115
604
|
const TTL$6 = 15000;
|
|
116
605
|
const VERSION$e = "b489f9f2cbdc91a04dd15b4d467b6760";
|
|
117
606
|
function validate$f(obj, path = 'FeaturedItemRepresentation') {
|
|
@@ -876,14 +1365,14 @@ const getFeaturedItemsRecommendedList_ConfigPropertyMetadata = [
|
|
|
876
1365
|
generateParamConfigMetadata('context', true, 1 /* QueryParameter */, 0 /* String */),
|
|
877
1366
|
];
|
|
878
1367
|
const getFeaturedItemsRecommendedList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getFeaturedItemsRecommendedList_ConfigPropertyMetadata);
|
|
879
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
1368
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$c(getFeaturedItemsRecommendedList_ConfigPropertyMetadata);
|
|
880
1369
|
function keyBuilder$m(luvio, config) {
|
|
881
1370
|
const resourceParams = createResourceParams$9(config);
|
|
882
1371
|
return keyBuilder$n(luvio, resourceParams);
|
|
883
1372
|
}
|
|
884
1373
|
function typeCheckConfig$9(untrustedConfig) {
|
|
885
1374
|
const config = {};
|
|
886
|
-
typeCheckConfig$
|
|
1375
|
+
typeCheckConfig$c(untrustedConfig, config, getFeaturedItemsRecommendedList_ConfigPropertyMetadata);
|
|
887
1376
|
return config;
|
|
888
1377
|
}
|
|
889
1378
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -932,7 +1421,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
932
1421
|
});
|
|
933
1422
|
}
|
|
934
1423
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
935
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1424
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
936
1425
|
}
|
|
937
1426
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
938
1427
|
const { luvio, config } = context;
|
|
@@ -1056,7 +1545,7 @@ function select$k(luvio, params) {
|
|
|
1056
1545
|
return select$l();
|
|
1057
1546
|
}
|
|
1058
1547
|
function keyBuilder$l(luvio, params) {
|
|
1059
|
-
return keyPrefix + '::FeaturedItemRelatedListRepresentation:(' + 'appId:' + params.queryParams.appId + ',' + 'pageRef:' + params.queryParams.pageRef + ')';
|
|
1548
|
+
return keyPrefix + '::FeaturedItemRelatedListRepresentation:(' + 'appId:' + params.queryParams.appId + ',' + 'pageRef:' + params.queryParams.pageRef + ',' + 'returnMax:' + params.queryParams.returnMax + ')';
|
|
1060
1549
|
}
|
|
1061
1550
|
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
1062
1551
|
getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$l(luvio, resourceParams));
|
|
@@ -1102,16 +1591,17 @@ const adapterName$8 = 'getFeaturedItemsRelatedList';
|
|
|
1102
1591
|
const getFeaturedItemsRelatedList_ConfigPropertyMetadata = [
|
|
1103
1592
|
generateParamConfigMetadata('appId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
1104
1593
|
generateParamConfigMetadata('pageRef', true, 1 /* QueryParameter */, 0 /* String */),
|
|
1594
|
+
generateParamConfigMetadata('returnMax', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1105
1595
|
];
|
|
1106
1596
|
const getFeaturedItemsRelatedList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getFeaturedItemsRelatedList_ConfigPropertyMetadata);
|
|
1107
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
1597
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$c(getFeaturedItemsRelatedList_ConfigPropertyMetadata);
|
|
1108
1598
|
function keyBuilder$k(luvio, config) {
|
|
1109
1599
|
const resourceParams = createResourceParams$8(config);
|
|
1110
1600
|
return keyBuilder$l(luvio, resourceParams);
|
|
1111
1601
|
}
|
|
1112
1602
|
function typeCheckConfig$8(untrustedConfig) {
|
|
1113
1603
|
const config = {};
|
|
1114
|
-
typeCheckConfig$
|
|
1604
|
+
typeCheckConfig$c(untrustedConfig, config, getFeaturedItemsRelatedList_ConfigPropertyMetadata);
|
|
1115
1605
|
return config;
|
|
1116
1606
|
}
|
|
1117
1607
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -1160,7 +1650,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
1160
1650
|
});
|
|
1161
1651
|
}
|
|
1162
1652
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
1163
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1653
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
1164
1654
|
}
|
|
1165
1655
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
1166
1656
|
const { luvio, config } = context;
|
|
@@ -1323,7 +1813,7 @@ function createResourceRequest$7(config) {
|
|
|
1323
1813
|
const adapterName$7 = 'getLearningConfig';
|
|
1324
1814
|
const getLearningConfig_ConfigPropertyMetadata = [];
|
|
1325
1815
|
const getLearningConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getLearningConfig_ConfigPropertyMetadata);
|
|
1326
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
1816
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$c(getLearningConfig_ConfigPropertyMetadata);
|
|
1327
1817
|
function keyBuilder$i(luvio, config) {
|
|
1328
1818
|
createResourceParams$7(config);
|
|
1329
1819
|
return keyBuilder$j();
|
|
@@ -1378,7 +1868,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
1378
1868
|
});
|
|
1379
1869
|
}
|
|
1380
1870
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
1381
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1871
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
1382
1872
|
}
|
|
1383
1873
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
1384
1874
|
const { luvio, config } = context;
|
|
@@ -2015,14 +2505,14 @@ const getLearningItemsList_ConfigPropertyMetadata = [
|
|
|
2015
2505
|
generateParamConfigMetadata('learningItemIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
2016
2506
|
];
|
|
2017
2507
|
const getLearningItemsList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getLearningItemsList_ConfigPropertyMetadata);
|
|
2018
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
2508
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$c(getLearningItemsList_ConfigPropertyMetadata);
|
|
2019
2509
|
function keyBuilder$f(luvio, config) {
|
|
2020
2510
|
const resourceParams = createResourceParams$6(config);
|
|
2021
2511
|
return keyBuilder$g(luvio, resourceParams);
|
|
2022
2512
|
}
|
|
2023
2513
|
function typeCheckConfig$6(untrustedConfig) {
|
|
2024
2514
|
const config = {};
|
|
2025
|
-
typeCheckConfig$
|
|
2515
|
+
typeCheckConfig$c(untrustedConfig, config, getLearningItemsList_ConfigPropertyMetadata);
|
|
2026
2516
|
return config;
|
|
2027
2517
|
}
|
|
2028
2518
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -2071,7 +2561,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
2071
2561
|
});
|
|
2072
2562
|
}
|
|
2073
2563
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
2074
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2564
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
2075
2565
|
}
|
|
2076
2566
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
2077
2567
|
const { luvio, config } = context;
|
|
@@ -2411,14 +2901,14 @@ const getLearningItemProgress_ConfigPropertyMetadata = [
|
|
|
2411
2901
|
generateParamConfigMetadata('learningItemIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
2412
2902
|
];
|
|
2413
2903
|
const getLearningItemProgress_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getLearningItemProgress_ConfigPropertyMetadata);
|
|
2414
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
2904
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$c(getLearningItemProgress_ConfigPropertyMetadata);
|
|
2415
2905
|
function keyBuilder$c(luvio, config) {
|
|
2416
2906
|
const resourceParams = createResourceParams$5(config);
|
|
2417
2907
|
return keyBuilder$d(luvio, resourceParams);
|
|
2418
2908
|
}
|
|
2419
2909
|
function typeCheckConfig$5(untrustedConfig) {
|
|
2420
2910
|
const config = {};
|
|
2421
|
-
typeCheckConfig$
|
|
2911
|
+
typeCheckConfig$c(untrustedConfig, config, getLearningItemProgress_ConfigPropertyMetadata);
|
|
2422
2912
|
return config;
|
|
2423
2913
|
}
|
|
2424
2914
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -2467,7 +2957,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
2467
2957
|
});
|
|
2468
2958
|
}
|
|
2469
2959
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
2470
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2960
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
2471
2961
|
}
|
|
2472
2962
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
2473
2963
|
const { luvio, config } = context;
|
|
@@ -3354,14 +3844,14 @@ const getLearningModel_ConfigPropertyMetadata = [
|
|
|
3354
3844
|
generateParamConfigMetadata('learningItemId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3355
3845
|
];
|
|
3356
3846
|
const getLearningModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getLearningModel_ConfigPropertyMetadata);
|
|
3357
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
3847
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$c(getLearningModel_ConfigPropertyMetadata);
|
|
3358
3848
|
function keyBuilder$9(luvio, config) {
|
|
3359
3849
|
const resourceParams = createResourceParams$4(config);
|
|
3360
3850
|
return keyBuilder$a(luvio, resourceParams);
|
|
3361
3851
|
}
|
|
3362
3852
|
function typeCheckConfig$4(untrustedConfig) {
|
|
3363
3853
|
const config = {};
|
|
3364
|
-
typeCheckConfig$
|
|
3854
|
+
typeCheckConfig$c(untrustedConfig, config, getLearningModel_ConfigPropertyMetadata);
|
|
3365
3855
|
return config;
|
|
3366
3856
|
}
|
|
3367
3857
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -3410,7 +3900,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
3410
3900
|
});
|
|
3411
3901
|
}
|
|
3412
3902
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
3413
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3903
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
3414
3904
|
}
|
|
3415
3905
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
3416
3906
|
const { luvio, config } = context;
|
|
@@ -4046,14 +4536,14 @@ const getModule_ConfigPropertyMetadata = [
|
|
|
4046
4536
|
generateParamConfigMetadata('moduleId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4047
4537
|
];
|
|
4048
4538
|
const getModule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getModule_ConfigPropertyMetadata);
|
|
4049
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
4539
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$c(getModule_ConfigPropertyMetadata);
|
|
4050
4540
|
function keyBuilder$6(luvio, config) {
|
|
4051
4541
|
const resourceParams = createResourceParams$3(config);
|
|
4052
4542
|
return keyBuilder$7(luvio, resourceParams);
|
|
4053
4543
|
}
|
|
4054
4544
|
function typeCheckConfig$3(untrustedConfig) {
|
|
4055
4545
|
const config = {};
|
|
4056
|
-
typeCheckConfig$
|
|
4546
|
+
typeCheckConfig$c(untrustedConfig, config, getModule_ConfigPropertyMetadata);
|
|
4057
4547
|
return config;
|
|
4058
4548
|
}
|
|
4059
4549
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -4102,7 +4592,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
4102
4592
|
});
|
|
4103
4593
|
}
|
|
4104
4594
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
4105
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4595
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
4106
4596
|
}
|
|
4107
4597
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
4108
4598
|
const { luvio, config } = context;
|
|
@@ -4313,14 +4803,14 @@ const getLearningPractice_ConfigPropertyMetadata = [
|
|
|
4313
4803
|
generateParamConfigMetadata('learningItemId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4314
4804
|
];
|
|
4315
4805
|
const getLearningPractice_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getLearningPractice_ConfigPropertyMetadata);
|
|
4316
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
4806
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$c(getLearningPractice_ConfigPropertyMetadata);
|
|
4317
4807
|
function keyBuilder$3(luvio, config) {
|
|
4318
4808
|
const resourceParams = createResourceParams$2(config);
|
|
4319
4809
|
return keyBuilder$4(luvio, resourceParams);
|
|
4320
4810
|
}
|
|
4321
4811
|
function typeCheckConfig$2(untrustedConfig) {
|
|
4322
4812
|
const config = {};
|
|
4323
|
-
typeCheckConfig$
|
|
4813
|
+
typeCheckConfig$c(untrustedConfig, config, getLearningPractice_ConfigPropertyMetadata);
|
|
4324
4814
|
return config;
|
|
4325
4815
|
}
|
|
4326
4816
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -4369,7 +4859,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
4369
4859
|
});
|
|
4370
4860
|
}
|
|
4371
4861
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
4372
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4862
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
4373
4863
|
}
|
|
4374
4864
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
4375
4865
|
const { luvio, config } = context;
|
|
@@ -4466,7 +4956,7 @@ const evaluateLearningItem_ConfigPropertyMetadata = [
|
|
|
4466
4956
|
generateParamConfigMetadata('payload', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4467
4957
|
];
|
|
4468
4958
|
const evaluateLearningItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, evaluateLearningItem_ConfigPropertyMetadata);
|
|
4469
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
4959
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$c(evaluateLearningItem_ConfigPropertyMetadata);
|
|
4470
4960
|
function typeCheckConfig$1(untrustedConfig) {
|
|
4471
4961
|
const config = {};
|
|
4472
4962
|
const untrustedConfig_payload = untrustedConfig.payload;
|
|
@@ -4813,14 +5303,14 @@ const getTextLesson_ConfigPropertyMetadata = [
|
|
|
4813
5303
|
generateParamConfigMetadata('learningItemId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4814
5304
|
];
|
|
4815
5305
|
const getTextLesson_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getTextLesson_ConfigPropertyMetadata);
|
|
4816
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
5306
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$c(getTextLesson_ConfigPropertyMetadata);
|
|
4817
5307
|
function keyBuilder(luvio, config) {
|
|
4818
5308
|
const resourceParams = createResourceParams(config);
|
|
4819
5309
|
return keyBuilder$1(luvio, resourceParams);
|
|
4820
5310
|
}
|
|
4821
5311
|
function typeCheckConfig(untrustedConfig) {
|
|
4822
5312
|
const config = {};
|
|
4823
|
-
typeCheckConfig$
|
|
5313
|
+
typeCheckConfig$c(untrustedConfig, config, getTextLesson_ConfigPropertyMetadata);
|
|
4824
5314
|
return config;
|
|
4825
5315
|
}
|
|
4826
5316
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -4869,7 +5359,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
4869
5359
|
});
|
|
4870
5360
|
}
|
|
4871
5361
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
4872
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5362
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
4873
5363
|
}
|
|
4874
5364
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
4875
5365
|
const { luvio, config } = context;
|
|
@@ -4894,4 +5384,4 @@ const getTextLessonAdapterFactory = (luvio) => function LearningContentPlatform_
|
|
|
4894
5384
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
4895
5385
|
};
|
|
4896
5386
|
|
|
4897
|
-
export { evaluateLearningItemAdapterFactory, getFeaturedItemsRecommendedListAdapterFactory, getFeaturedItemsRelatedListAdapterFactory, getLearningConfigAdapterFactory, getLearningItemProgressAdapterFactory, getLearningItemsListAdapterFactory, getLearningModelAdapterFactory, getLearningPracticeAdapterFactory, getModuleAdapterFactory, getTextLessonAdapterFactory, notifyUpdateAvailableFactory$1 as notifyLearningItemProgressUpdateAvailableFactory, notifyUpdateAvailableFactory$2 as notifyLearningItemUpdateAvailableFactory, notifyUpdateAvailableFactory as notifyLearningTextLessonUpdateAvailableFactory };
|
|
5387
|
+
export { evaluateLearningItemAdapterFactory, getCoachingAIFeedbackAdapterFactory, getFeaturedItemsRecommendedListAdapterFactory, getFeaturedItemsRelatedListAdapterFactory, getLearningConfigAdapterFactory, getLearningItemProgressAdapterFactory, getLearningItemsListAdapterFactory, getLearningModelAdapterFactory, getLearningPracticeAdapterFactory, getModuleAdapterFactory, getTextLessonAdapterFactory, notifyUpdateAvailableFactory$1 as notifyLearningItemProgressUpdateAvailableFactory, notifyUpdateAvailableFactory$2 as notifyLearningItemUpdateAvailableFactory, notifyUpdateAvailableFactory as notifyLearningTextLessonUpdateAvailableFactory, submitForCoachingAIFeedbackAdapterFactory };
|