@salesforce/lds-adapters-platform-learning-content 1.296.0 → 1.297.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.
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$c, typeCheckConfig as typeCheckConfig$c, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$a } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$d, typeCheckConfig as typeCheckConfig$d, 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,8 +112,8 @@ function createLink(ref) {
112
112
  };
113
113
  }
114
114
 
115
- const VERSION$g = "1d9120ef9f750e06b6b3bd3301a1970a";
116
- function validate$h(obj, path = 'CoachingAIFeedbackRepresentation') {
115
+ const VERSION$h = "1d9120ef9f750e06b6b3bd3301a1970a";
116
+ function validate$i(obj, path = 'CoachingAIFeedbackRepresentation') {
117
117
  const v_error = (() => {
118
118
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
119
119
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -131,14 +131,14 @@ function validate$h(obj, path = 'CoachingAIFeedbackRepresentation') {
131
131
  })();
132
132
  return v_error === undefined ? null : v_error;
133
133
  }
134
- const RepresentationType$d = 'CoachingAIFeedbackRepresentation';
135
- function normalize$d(input, existing, path, luvio, store, timestamp) {
134
+ const RepresentationType$e = 'CoachingAIFeedbackRepresentation';
135
+ function normalize$e(input, existing, path, luvio, store, timestamp) {
136
136
  return input;
137
137
  }
138
- const select$s = function CoachingAIFeedbackRepresentationSelect() {
138
+ const select$u = function CoachingAIFeedbackRepresentationSelect() {
139
139
  return {
140
140
  kind: 'Fragment',
141
- version: VERSION$g,
141
+ version: VERSION$h,
142
142
  private: [],
143
143
  selections: [
144
144
  {
@@ -152,7 +152,7 @@ const select$s = function CoachingAIFeedbackRepresentationSelect() {
152
152
  ]
153
153
  };
154
154
  };
155
- function equals$g(existing, incoming) {
155
+ function equals$h(existing, incoming) {
156
156
  const existing_conversationSummaryId = existing.conversationSummaryId;
157
157
  const incoming_conversationSummaryId = incoming.conversationSummaryId;
158
158
  if (!(existing_conversationSummaryId === incoming_conversationSummaryId)) {
@@ -165,38 +165,38 @@ function equals$g(existing, incoming) {
165
165
  }
166
166
  return true;
167
167
  }
168
- const ingest$d = function CoachingAIFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
168
+ const ingest$e = function CoachingAIFeedbackRepresentationIngest(input, path, luvio, store, timestamp) {
169
169
  if (process.env.NODE_ENV !== 'production') {
170
- const validateError = validate$h(input);
170
+ const validateError = validate$i(input);
171
171
  if (validateError !== null) {
172
172
  throw validateError;
173
173
  }
174
174
  }
175
175
  const key = path.fullPath;
176
176
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
177
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "LearningContentPlatform", VERSION$g, RepresentationType$d, equals$g);
177
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "LearningContentPlatform", VERSION$h, RepresentationType$e, equals$h);
178
178
  return createLink(key);
179
179
  };
180
- function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
180
+ function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
181
181
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
182
182
  const rootKey = fullPathFactory();
183
183
  rootKeySet.set(rootKey, {
184
184
  namespace: keyPrefix,
185
- representationName: RepresentationType$d,
185
+ representationName: RepresentationType$e,
186
186
  mergeable: false
187
187
  });
188
188
  }
189
189
 
190
- const TTL$7 = 15000;
191
- const VERSION$f = "d63f1d6a2345db84136a6263f8d81080";
192
- function validate$g(obj, path = 'CoachingAICallSubmissionOutputRepresentation') {
190
+ const TTL$8 = 15000;
191
+ const VERSION$g = "d63f1d6a2345db84136a6263f8d81080";
192
+ function validate$h(obj, path = 'CoachingAICallSubmissionOutputRepresentation') {
193
193
  const v_error = (() => {
194
194
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
195
195
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
196
196
  }
197
197
  const obj_coachingAIFeedback = obj.coachingAIFeedback;
198
198
  const path_coachingAIFeedback = path + '.coachingAIFeedback';
199
- const referencepath_coachingAIFeedbackValidationError = validate$h(obj_coachingAIFeedback, path_coachingAIFeedback);
199
+ const referencepath_coachingAIFeedbackValidationError = validate$i(obj_coachingAIFeedback, path_coachingAIFeedback);
200
200
  if (referencepath_coachingAIFeedbackValidationError !== null) {
201
201
  let message = 'Object doesn\'t match CoachingAIFeedbackRepresentation (at "' + path_coachingAIFeedback + '")\n';
202
202
  message += referencepath_coachingAIFeedbackValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -210,24 +210,24 @@ function validate$g(obj, path = 'CoachingAICallSubmissionOutputRepresentation')
210
210
  })();
211
211
  return v_error === undefined ? null : v_error;
212
212
  }
213
- const RepresentationType$c = 'CoachingAICallSubmissionOutputRepresentation';
214
- function keyBuilder$r(luvio, config) {
215
- return keyPrefix + '::' + RepresentationType$c + ':' + config.generation_id;
213
+ const RepresentationType$d = 'CoachingAICallSubmissionOutputRepresentation';
214
+ function keyBuilder$s(luvio, config) {
215
+ return keyPrefix + '::' + RepresentationType$d + ':' + config.generation_id;
216
216
  }
217
- function keyBuilderFromType$7(luvio, object) {
217
+ function keyBuilderFromType$8(luvio, object) {
218
218
  const keyParams = {
219
219
  generation_id: object.generationId
220
220
  };
221
- return keyBuilder$r(luvio, keyParams);
221
+ return keyBuilder$s(luvio, keyParams);
222
222
  }
223
- function normalize$c(input, existing, path, luvio, store, timestamp) {
223
+ function normalize$d(input, existing, path, luvio, store, timestamp) {
224
224
  return input;
225
225
  }
226
- const select$r = function CoachingAICallSubmissionOutputRepresentationSelect() {
227
- const { selections: CoachingAIFeedbackRepresentation__selections, opaque: CoachingAIFeedbackRepresentation__opaque, } = select$s();
226
+ const select$t = function CoachingAICallSubmissionOutputRepresentationSelect() {
227
+ const { selections: CoachingAIFeedbackRepresentation__selections, opaque: CoachingAIFeedbackRepresentation__opaque, } = select$u();
228
228
  return {
229
229
  kind: 'Fragment',
230
- version: VERSION$f,
230
+ version: VERSION$g,
231
231
  private: [],
232
232
  selections: [
233
233
  {
@@ -242,7 +242,7 @@ const select$r = function CoachingAICallSubmissionOutputRepresentationSelect() {
242
242
  ]
243
243
  };
244
244
  };
245
- function equals$f(existing, incoming) {
245
+ function equals$g(existing, incoming) {
246
246
  const existing_generationId = existing.generationId;
247
247
  const incoming_generationId = incoming.generationId;
248
248
  if (!(existing_generationId === incoming_generationId)) {
@@ -250,12 +250,188 @@ function equals$f(existing, incoming) {
250
250
  }
251
251
  const existing_coachingAIFeedback = existing.coachingAIFeedback;
252
252
  const incoming_coachingAIFeedback = incoming.coachingAIFeedback;
253
- if (!(equals$g(existing_coachingAIFeedback, incoming_coachingAIFeedback))) {
253
+ if (!(equals$h(existing_coachingAIFeedback, incoming_coachingAIFeedback))) {
254
254
  return false;
255
255
  }
256
256
  return true;
257
257
  }
258
- const ingest$c = function CoachingAICallSubmissionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
258
+ const ingest$d = function CoachingAICallSubmissionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
259
+ if (process.env.NODE_ENV !== 'production') {
260
+ const validateError = validate$h(input);
261
+ if (validateError !== null) {
262
+ throw validateError;
263
+ }
264
+ }
265
+ const key = keyBuilderFromType$8(luvio, input);
266
+ const ttlToUse = TTL$8;
267
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "LearningContentPlatform", VERSION$g, RepresentationType$d, equals$g);
268
+ return createLink(key);
269
+ };
270
+ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
271
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
272
+ const rootKey = keyBuilderFromType$8(luvio, input);
273
+ rootKeySet.set(rootKey, {
274
+ namespace: keyPrefix,
275
+ representationName: RepresentationType$d,
276
+ mergeable: false
277
+ });
278
+ }
279
+
280
+ function select$s(luvio, params) {
281
+ return select$t();
282
+ }
283
+ function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
284
+ getTypeCacheKeys$d(storeKeyMap, luvio, response);
285
+ }
286
+ function ingestSuccess$c(luvio, resourceParams, response) {
287
+ const { body } = response;
288
+ const key = keyBuilderFromType$8(luvio, body);
289
+ luvio.storeIngest(key, ingest$d, body);
290
+ const snapshot = luvio.storeLookup({
291
+ recordId: key,
292
+ node: select$s(),
293
+ variables: {},
294
+ });
295
+ if (process.env.NODE_ENV !== 'production') {
296
+ if (snapshot.state !== 'Fulfilled') {
297
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
298
+ }
299
+ }
300
+ deepFreeze(snapshot.data);
301
+ return snapshot;
302
+ }
303
+ function createResourceRequest$c(config) {
304
+ const headers = {};
305
+ return {
306
+ baseUri: '/services/data/v62.0',
307
+ basePath: '/learning-content-platform/coaching/ai-feedback',
308
+ method: 'post',
309
+ body: config.body,
310
+ urlParams: {},
311
+ queryParams: {},
312
+ headers,
313
+ priority: 'normal',
314
+ };
315
+ }
316
+
317
+ const adapterName$c = 'submitForCoachingAIFeedback';
318
+ const submitForCoachingAIFeedback_ConfigPropertyMetadata = [
319
+ generateParamConfigMetadata('callId', true, 2 /* Body */, 0 /* String */),
320
+ generateParamConfigMetadata('learningItemId', true, 2 /* Body */, 0 /* String */),
321
+ ];
322
+ const submitForCoachingAIFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, submitForCoachingAIFeedback_ConfigPropertyMetadata);
323
+ const createResourceParams$c = /*#__PURE__*/ createResourceParams$d(submitForCoachingAIFeedback_ConfigPropertyMetadata);
324
+ function typeCheckConfig$c(untrustedConfig) {
325
+ const config = {};
326
+ typeCheckConfig$d(untrustedConfig, config, submitForCoachingAIFeedback_ConfigPropertyMetadata);
327
+ return config;
328
+ }
329
+ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
330
+ if (!untrustedIsObject(untrustedConfig)) {
331
+ return null;
332
+ }
333
+ if (process.env.NODE_ENV !== 'production') {
334
+ validateConfig(untrustedConfig, configPropertyNames);
335
+ }
336
+ const config = typeCheckConfig$c(untrustedConfig);
337
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
338
+ return null;
339
+ }
340
+ return config;
341
+ }
342
+ function buildNetworkSnapshot$c(luvio, config, options) {
343
+ const resourceParams = createResourceParams$c(config);
344
+ const request = createResourceRequest$c(resourceParams);
345
+ return luvio.dispatchResourceRequest(request, options)
346
+ .then((response) => {
347
+ return luvio.handleSuccessResponse(() => {
348
+ const snapshot = ingestSuccess$c(luvio, resourceParams, response);
349
+ return luvio.storeBroadcast().then(() => snapshot);
350
+ }, () => {
351
+ const cache = new StoreKeyMap();
352
+ getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
353
+ return cache;
354
+ });
355
+ }, (response) => {
356
+ deepFreeze(response);
357
+ throw response;
358
+ });
359
+ }
360
+ const submitForCoachingAIFeedbackAdapterFactory = (luvio) => {
361
+ return function submitForCoachingAIFeedback(untrustedConfig) {
362
+ const config = validateAdapterConfig$c(untrustedConfig, submitForCoachingAIFeedback_ConfigPropertyNames);
363
+ // Invalid or incomplete config
364
+ if (config === null) {
365
+ throw new Error('Invalid config for "submitForCoachingAIFeedback"');
366
+ }
367
+ return buildNetworkSnapshot$c(luvio, config);
368
+ };
369
+ };
370
+
371
+ const TTL$7 = 15000;
372
+ const VERSION$f = "9d7483cd116cf47821138a231d5d5836";
373
+ function validate$g(obj, path = 'CoachingAIFeedbackSummaryOutputRepresentation') {
374
+ const v_error = (() => {
375
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
376
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
377
+ }
378
+ const obj_feedback = obj.feedback;
379
+ const path_feedback = path + '.feedback';
380
+ if (typeof obj_feedback !== 'string') {
381
+ return new TypeError('Expected "string" but received "' + typeof obj_feedback + '" (at "' + path_feedback + '")');
382
+ }
383
+ const obj_generationId = obj.generationId;
384
+ const path_generationId = path + '.generationId';
385
+ if (typeof obj_generationId !== 'string') {
386
+ return new TypeError('Expected "string" but received "' + typeof obj_generationId + '" (at "' + path_generationId + '")');
387
+ }
388
+ })();
389
+ return v_error === undefined ? null : v_error;
390
+ }
391
+ const RepresentationType$c = 'CoachingAIFeedbackSummaryOutputRepresentation';
392
+ function keyBuilder$r(luvio, config) {
393
+ return keyPrefix + '::' + RepresentationType$c + ':' + config.generation_id;
394
+ }
395
+ function keyBuilderFromType$7(luvio, object) {
396
+ const keyParams = {
397
+ generation_id: object.generationId
398
+ };
399
+ return keyBuilder$r(luvio, keyParams);
400
+ }
401
+ function normalize$c(input, existing, path, luvio, store, timestamp) {
402
+ return input;
403
+ }
404
+ const select$r = function CoachingAIFeedbackSummaryOutputRepresentationSelect() {
405
+ return {
406
+ kind: 'Fragment',
407
+ version: VERSION$f,
408
+ private: [],
409
+ selections: [
410
+ {
411
+ name: 'feedback',
412
+ kind: 'Scalar'
413
+ },
414
+ {
415
+ name: 'generationId',
416
+ kind: 'Scalar'
417
+ }
418
+ ]
419
+ };
420
+ };
421
+ function equals$f(existing, incoming) {
422
+ const existing_feedback = existing.feedback;
423
+ const incoming_feedback = incoming.feedback;
424
+ if (!(existing_feedback === incoming_feedback)) {
425
+ return false;
426
+ }
427
+ const existing_generationId = existing.generationId;
428
+ const incoming_generationId = incoming.generationId;
429
+ if (!(existing_generationId === incoming_generationId)) {
430
+ return false;
431
+ }
432
+ return true;
433
+ }
434
+ const ingest$c = function CoachingAIFeedbackSummaryOutputRepresentationIngest(input, path, luvio, store, timestamp) {
259
435
  if (process.env.NODE_ENV !== 'production') {
260
436
  const validateError = validate$g(input);
261
437
  if (validateError !== null) {
@@ -304,7 +480,7 @@ function createResourceRequest$b(config) {
304
480
  const headers = {};
305
481
  return {
306
482
  baseUri: '/services/data/v62.0',
307
- basePath: '/learning-content-platform/coaching/ai-feedback',
483
+ basePath: '/learning-content-platform/coaching/moments/ai-product-pitch-feedback',
308
484
  method: 'post',
309
485
  body: config.body,
310
486
  urlParams: {},
@@ -314,16 +490,23 @@ function createResourceRequest$b(config) {
314
490
  };
315
491
  }
316
492
 
317
- const adapterName$b = 'submitForCoachingAIFeedback';
318
- const submitForCoachingAIFeedback_ConfigPropertyMetadata = [
493
+ const adapterName$b = 'submitForCoachingMomentsProductPitchFeedback';
494
+ const submitForCoachingMomentsProductPitchFeedback_ConfigPropertyMetadata = [
319
495
  generateParamConfigMetadata('callId', true, 2 /* Body */, 0 /* String */),
320
- generateParamConfigMetadata('learningItemId', true, 2 /* Body */, 0 /* String */),
496
+ generateParamConfigMetadata('productId', true, 2 /* Body */, 4 /* Unsupported */),
321
497
  ];
322
- const submitForCoachingAIFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, submitForCoachingAIFeedback_ConfigPropertyMetadata);
323
- const createResourceParams$b = /*#__PURE__*/ createResourceParams$c(submitForCoachingAIFeedback_ConfigPropertyMetadata);
498
+ const submitForCoachingMomentsProductPitchFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, submitForCoachingMomentsProductPitchFeedback_ConfigPropertyMetadata);
499
+ const createResourceParams$b = /*#__PURE__*/ createResourceParams$d(submitForCoachingMomentsProductPitchFeedback_ConfigPropertyMetadata);
324
500
  function typeCheckConfig$b(untrustedConfig) {
325
501
  const config = {};
326
- typeCheckConfig$c(untrustedConfig, config, submitForCoachingAIFeedback_ConfigPropertyMetadata);
502
+ typeCheckConfig$d(untrustedConfig, config, submitForCoachingMomentsProductPitchFeedback_ConfigPropertyMetadata);
503
+ const untrustedConfig_productId = untrustedConfig.productId;
504
+ if (typeof untrustedConfig_productId === 'string') {
505
+ config.productId = untrustedConfig_productId;
506
+ }
507
+ if (untrustedConfig_productId === null) {
508
+ config.productId = untrustedConfig_productId;
509
+ }
327
510
  return config;
328
511
  }
329
512
  function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
@@ -357,30 +540,30 @@ function buildNetworkSnapshot$b(luvio, config, options) {
357
540
  throw response;
358
541
  });
359
542
  }
360
- const submitForCoachingAIFeedbackAdapterFactory = (luvio) => {
361
- return function submitForCoachingAIFeedback(untrustedConfig) {
362
- const config = validateAdapterConfig$b(untrustedConfig, submitForCoachingAIFeedback_ConfigPropertyNames);
543
+ const submitForCoachingMomentsProductPitchFeedbackAdapterFactory = (luvio) => {
544
+ return function submitForCoachingMomentsProductPitchFeedback(untrustedConfig) {
545
+ const config = validateAdapterConfig$b(untrustedConfig, submitForCoachingMomentsProductPitchFeedback_ConfigPropertyNames);
363
546
  // Invalid or incomplete config
364
547
  if (config === null) {
365
- throw new Error('Invalid config for "submitForCoachingAIFeedback"');
548
+ throw new Error('Invalid config for "submitForCoachingMomentsProductPitchFeedback"');
366
549
  }
367
550
  return buildNetworkSnapshot$b(luvio, config);
368
551
  };
369
552
  };
370
553
 
371
554
  function select$p(luvio, params) {
372
- return select$s();
555
+ return select$u();
373
556
  }
374
557
  function keyBuilder$q(luvio, params) {
375
558
  return keyPrefix + '::CoachingAIFeedbackRepresentation:(' + 'learningItemSubmissionId:' + params.urlParams.learningItemSubmissionId + ')';
376
559
  }
377
560
  function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
378
- getTypeCacheKeys$d(storeKeyMap, luvio, response, () => keyBuilder$q(luvio, resourceParams));
561
+ getTypeCacheKeys$e(storeKeyMap, luvio, response, () => keyBuilder$q(luvio, resourceParams));
379
562
  }
380
563
  function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
381
564
  const { body } = response;
382
565
  const key = keyBuilder$q(luvio, resourceParams);
383
- luvio.storeIngest(key, ingest$d, body);
566
+ luvio.storeIngest(key, ingest$e, body);
384
567
  const snapshot = luvio.storeLookup({
385
568
  recordId: key,
386
569
  node: select$p(),
@@ -419,14 +602,14 @@ const getCoachingAIFeedback_ConfigPropertyMetadata = [
419
602
  generateParamConfigMetadata('learningItemSubmissionId', true, 0 /* UrlParameter */, 0 /* String */),
420
603
  ];
421
604
  const getCoachingAIFeedback_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getCoachingAIFeedback_ConfigPropertyMetadata);
422
- const createResourceParams$a = /*#__PURE__*/ createResourceParams$c(getCoachingAIFeedback_ConfigPropertyMetadata);
605
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$d(getCoachingAIFeedback_ConfigPropertyMetadata);
423
606
  function keyBuilder$p(luvio, config) {
424
607
  const resourceParams = createResourceParams$a(config);
425
608
  return keyBuilder$q(luvio, resourceParams);
426
609
  }
427
610
  function typeCheckConfig$a(untrustedConfig) {
428
611
  const config = {};
429
- typeCheckConfig$c(untrustedConfig, config, getCoachingAIFeedback_ConfigPropertyMetadata);
612
+ typeCheckConfig$d(untrustedConfig, config, getCoachingAIFeedback_ConfigPropertyMetadata);
430
613
  return config;
431
614
  }
432
615
  function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
@@ -1264,14 +1447,14 @@ const getFeaturedItemsRecommendedList_ConfigPropertyMetadata = [
1264
1447
  generateParamConfigMetadata('context', true, 1 /* QueryParameter */, 0 /* String */),
1265
1448
  ];
1266
1449
  const getFeaturedItemsRecommendedList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getFeaturedItemsRecommendedList_ConfigPropertyMetadata);
1267
- const createResourceParams$9 = /*#__PURE__*/ createResourceParams$c(getFeaturedItemsRecommendedList_ConfigPropertyMetadata);
1450
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$d(getFeaturedItemsRecommendedList_ConfigPropertyMetadata);
1268
1451
  function keyBuilder$m(luvio, config) {
1269
1452
  const resourceParams = createResourceParams$9(config);
1270
1453
  return keyBuilder$n(luvio, resourceParams);
1271
1454
  }
1272
1455
  function typeCheckConfig$9(untrustedConfig) {
1273
1456
  const config = {};
1274
- typeCheckConfig$c(untrustedConfig, config, getFeaturedItemsRecommendedList_ConfigPropertyMetadata);
1457
+ typeCheckConfig$d(untrustedConfig, config, getFeaturedItemsRecommendedList_ConfigPropertyMetadata);
1275
1458
  return config;
1276
1459
  }
1277
1460
  function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
@@ -1493,14 +1676,14 @@ const getFeaturedItemsRelatedList_ConfigPropertyMetadata = [
1493
1676
  generateParamConfigMetadata('returnMax', false, 1 /* QueryParameter */, 1 /* Boolean */),
1494
1677
  ];
1495
1678
  const getFeaturedItemsRelatedList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getFeaturedItemsRelatedList_ConfigPropertyMetadata);
1496
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$c(getFeaturedItemsRelatedList_ConfigPropertyMetadata);
1679
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$d(getFeaturedItemsRelatedList_ConfigPropertyMetadata);
1497
1680
  function keyBuilder$k(luvio, config) {
1498
1681
  const resourceParams = createResourceParams$8(config);
1499
1682
  return keyBuilder$l(luvio, resourceParams);
1500
1683
  }
1501
1684
  function typeCheckConfig$8(untrustedConfig) {
1502
1685
  const config = {};
1503
- typeCheckConfig$c(untrustedConfig, config, getFeaturedItemsRelatedList_ConfigPropertyMetadata);
1686
+ typeCheckConfig$d(untrustedConfig, config, getFeaturedItemsRelatedList_ConfigPropertyMetadata);
1504
1687
  return config;
1505
1688
  }
1506
1689
  function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
@@ -1712,7 +1895,7 @@ function createResourceRequest$7(config) {
1712
1895
  const adapterName$7 = 'getLearningConfig';
1713
1896
  const getLearningConfig_ConfigPropertyMetadata = [];
1714
1897
  const getLearningConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getLearningConfig_ConfigPropertyMetadata);
1715
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$c(getLearningConfig_ConfigPropertyMetadata);
1898
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$d(getLearningConfig_ConfigPropertyMetadata);
1716
1899
  function keyBuilder$i(luvio, config) {
1717
1900
  createResourceParams$7(config);
1718
1901
  return keyBuilder$j();
@@ -2404,14 +2587,14 @@ const getLearningItemsList_ConfigPropertyMetadata = [
2404
2587
  generateParamConfigMetadata('learningItemIds', false, 1 /* QueryParameter */, 0 /* String */, true),
2405
2588
  ];
2406
2589
  const getLearningItemsList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getLearningItemsList_ConfigPropertyMetadata);
2407
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$c(getLearningItemsList_ConfigPropertyMetadata);
2590
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$d(getLearningItemsList_ConfigPropertyMetadata);
2408
2591
  function keyBuilder$f(luvio, config) {
2409
2592
  const resourceParams = createResourceParams$6(config);
2410
2593
  return keyBuilder$g(luvio, resourceParams);
2411
2594
  }
2412
2595
  function typeCheckConfig$6(untrustedConfig) {
2413
2596
  const config = {};
2414
- typeCheckConfig$c(untrustedConfig, config, getLearningItemsList_ConfigPropertyMetadata);
2597
+ typeCheckConfig$d(untrustedConfig, config, getLearningItemsList_ConfigPropertyMetadata);
2415
2598
  return config;
2416
2599
  }
2417
2600
  function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
@@ -2800,14 +2983,14 @@ const getLearningItemProgress_ConfigPropertyMetadata = [
2800
2983
  generateParamConfigMetadata('learningItemIds', false, 1 /* QueryParameter */, 0 /* String */, true),
2801
2984
  ];
2802
2985
  const getLearningItemProgress_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getLearningItemProgress_ConfigPropertyMetadata);
2803
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$c(getLearningItemProgress_ConfigPropertyMetadata);
2986
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$d(getLearningItemProgress_ConfigPropertyMetadata);
2804
2987
  function keyBuilder$c(luvio, config) {
2805
2988
  const resourceParams = createResourceParams$5(config);
2806
2989
  return keyBuilder$d(luvio, resourceParams);
2807
2990
  }
2808
2991
  function typeCheckConfig$5(untrustedConfig) {
2809
2992
  const config = {};
2810
- typeCheckConfig$c(untrustedConfig, config, getLearningItemProgress_ConfigPropertyMetadata);
2993
+ typeCheckConfig$d(untrustedConfig, config, getLearningItemProgress_ConfigPropertyMetadata);
2811
2994
  return config;
2812
2995
  }
2813
2996
  function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
@@ -3743,14 +3926,14 @@ const getLearningModel_ConfigPropertyMetadata = [
3743
3926
  generateParamConfigMetadata('learningItemId', true, 0 /* UrlParameter */, 0 /* String */),
3744
3927
  ];
3745
3928
  const getLearningModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getLearningModel_ConfigPropertyMetadata);
3746
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$c(getLearningModel_ConfigPropertyMetadata);
3929
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$d(getLearningModel_ConfigPropertyMetadata);
3747
3930
  function keyBuilder$9(luvio, config) {
3748
3931
  const resourceParams = createResourceParams$4(config);
3749
3932
  return keyBuilder$a(luvio, resourceParams);
3750
3933
  }
3751
3934
  function typeCheckConfig$4(untrustedConfig) {
3752
3935
  const config = {};
3753
- typeCheckConfig$c(untrustedConfig, config, getLearningModel_ConfigPropertyMetadata);
3936
+ typeCheckConfig$d(untrustedConfig, config, getLearningModel_ConfigPropertyMetadata);
3754
3937
  return config;
3755
3938
  }
3756
3939
  function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
@@ -4435,14 +4618,14 @@ const getModule_ConfigPropertyMetadata = [
4435
4618
  generateParamConfigMetadata('moduleId', true, 0 /* UrlParameter */, 0 /* String */),
4436
4619
  ];
4437
4620
  const getModule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getModule_ConfigPropertyMetadata);
4438
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$c(getModule_ConfigPropertyMetadata);
4621
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$d(getModule_ConfigPropertyMetadata);
4439
4622
  function keyBuilder$6(luvio, config) {
4440
4623
  const resourceParams = createResourceParams$3(config);
4441
4624
  return keyBuilder$7(luvio, resourceParams);
4442
4625
  }
4443
4626
  function typeCheckConfig$3(untrustedConfig) {
4444
4627
  const config = {};
4445
- typeCheckConfig$c(untrustedConfig, config, getModule_ConfigPropertyMetadata);
4628
+ typeCheckConfig$d(untrustedConfig, config, getModule_ConfigPropertyMetadata);
4446
4629
  return config;
4447
4630
  }
4448
4631
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -4744,14 +4927,14 @@ const getLearningPractice_ConfigPropertyMetadata = [
4744
4927
  generateParamConfigMetadata('learningItemId', true, 0 /* UrlParameter */, 0 /* String */),
4745
4928
  ];
4746
4929
  const getLearningPractice_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getLearningPractice_ConfigPropertyMetadata);
4747
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$c(getLearningPractice_ConfigPropertyMetadata);
4930
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$d(getLearningPractice_ConfigPropertyMetadata);
4748
4931
  function keyBuilder$3(luvio, config) {
4749
4932
  const resourceParams = createResourceParams$2(config);
4750
4933
  return keyBuilder$4(luvio, resourceParams);
4751
4934
  }
4752
4935
  function typeCheckConfig$2(untrustedConfig) {
4753
4936
  const config = {};
4754
- typeCheckConfig$c(untrustedConfig, config, getLearningPractice_ConfigPropertyMetadata);
4937
+ typeCheckConfig$d(untrustedConfig, config, getLearningPractice_ConfigPropertyMetadata);
4755
4938
  return config;
4756
4939
  }
4757
4940
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -4897,7 +5080,7 @@ const evaluateLearningItem_ConfigPropertyMetadata = [
4897
5080
  generateParamConfigMetadata('payload', true, 2 /* Body */, 4 /* Unsupported */),
4898
5081
  ];
4899
5082
  const evaluateLearningItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, evaluateLearningItem_ConfigPropertyMetadata);
4900
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$c(evaluateLearningItem_ConfigPropertyMetadata);
5083
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$d(evaluateLearningItem_ConfigPropertyMetadata);
4901
5084
  function typeCheckConfig$1(untrustedConfig) {
4902
5085
  const config = {};
4903
5086
  const untrustedConfig_payload = untrustedConfig.payload;
@@ -5244,14 +5427,14 @@ const getTextLesson_ConfigPropertyMetadata = [
5244
5427
  generateParamConfigMetadata('learningItemId', true, 0 /* UrlParameter */, 0 /* String */),
5245
5428
  ];
5246
5429
  const getTextLesson_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getTextLesson_ConfigPropertyMetadata);
5247
- const createResourceParams = /*#__PURE__*/ createResourceParams$c(getTextLesson_ConfigPropertyMetadata);
5430
+ const createResourceParams = /*#__PURE__*/ createResourceParams$d(getTextLesson_ConfigPropertyMetadata);
5248
5431
  function keyBuilder(luvio, config) {
5249
5432
  const resourceParams = createResourceParams(config);
5250
5433
  return keyBuilder$1(luvio, resourceParams);
5251
5434
  }
5252
5435
  function typeCheckConfig(untrustedConfig) {
5253
5436
  const config = {};
5254
- typeCheckConfig$c(untrustedConfig, config, getTextLesson_ConfigPropertyMetadata);
5437
+ typeCheckConfig$d(untrustedConfig, config, getTextLesson_ConfigPropertyMetadata);
5255
5438
  return config;
5256
5439
  }
5257
5440
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -5325,4 +5508,4 @@ const getTextLessonAdapterFactory = (luvio) => function LearningContentPlatform_
5325
5508
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
5326
5509
  };
5327
5510
 
5328
- export { evaluateLearningItemAdapterFactory, getCoachingAIFeedbackAdapterFactory, getFeaturedItemsRecommendedListAdapterFactory, getFeaturedItemsRelatedListAdapterFactory, getLearningConfigAdapterFactory, getLearningItemProgressAdapterFactory, getLearningItemsListAdapterFactory, getLearningModelAdapterFactory, getLearningPracticeAdapterFactory, getModuleAdapterFactory, getTextLessonAdapterFactory, notifyUpdateAvailableFactory$1 as notifyLearningItemProgressUpdateAvailableFactory, notifyUpdateAvailableFactory$2 as notifyLearningItemUpdateAvailableFactory, notifyUpdateAvailableFactory as notifyLearningTextLessonUpdateAvailableFactory, submitForCoachingAIFeedbackAdapterFactory };
5511
+ export { evaluateLearningItemAdapterFactory, getCoachingAIFeedbackAdapterFactory, getFeaturedItemsRecommendedListAdapterFactory, getFeaturedItemsRelatedListAdapterFactory, getLearningConfigAdapterFactory, getLearningItemProgressAdapterFactory, getLearningItemsListAdapterFactory, getLearningModelAdapterFactory, getLearningPracticeAdapterFactory, getModuleAdapterFactory, getTextLessonAdapterFactory, notifyUpdateAvailableFactory$1 as notifyLearningItemProgressUpdateAvailableFactory, notifyUpdateAvailableFactory$2 as notifyLearningItemUpdateAvailableFactory, notifyUpdateAvailableFactory as notifyLearningTextLessonUpdateAvailableFactory, submitForCoachingAIFeedbackAdapterFactory, submitForCoachingMomentsProductPitchFeedbackAdapterFactory };
@@ -0,0 +1,16 @@
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
+ import { ResourceRequestConfig as resources_postLearningContentPlatformCoachingMomentsAiProductPitchFeedback_ResourceRequestConfig } from '../resources/postLearningContentPlatformCoachingMomentsAiProductPitchFeedback';
4
+ import { CoachingAIFeedbackSummaryOutputRepresentation as types_CoachingAIFeedbackSummaryOutputRepresentation_CoachingAIFeedbackSummaryOutputRepresentation } from '../types/CoachingAIFeedbackSummaryOutputRepresentation';
5
+ export declare const adapterName = "submitForCoachingMomentsProductPitchFeedback";
6
+ export declare const submitForCoachingMomentsProductPitchFeedback_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const submitForCoachingMomentsProductPitchFeedback_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface SubmitForCoachingMomentsProductPitchFeedbackConfig {
9
+ callId: string;
10
+ productId: string | null;
11
+ }
12
+ export declare const createResourceParams: (config: SubmitForCoachingMomentsProductPitchFeedbackConfig) => resources_postLearningContentPlatformCoachingMomentsAiProductPitchFeedback_ResourceRequestConfig;
13
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<SubmitForCoachingMomentsProductPitchFeedbackConfig>): adapter$45$utils_Untrusted<SubmitForCoachingMomentsProductPitchFeedbackConfig>;
14
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): SubmitForCoachingMomentsProductPitchFeedbackConfig | null;
15
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: SubmitForCoachingMomentsProductPitchFeedbackConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_CoachingAIFeedbackSummaryOutputRepresentation_CoachingAIFeedbackSummaryOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CoachingAIFeedbackSummaryOutputRepresentation_CoachingAIFeedbackSummaryOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CoachingAIFeedbackSummaryOutputRepresentation_CoachingAIFeedbackSummaryOutputRepresentation, any>>;
16
+ export declare const submitForCoachingMomentsProductPitchFeedbackAdapterFactory: $64$luvio_engine_AdapterFactory<SubmitForCoachingMomentsProductPitchFeedbackConfig, types_CoachingAIFeedbackSummaryOutputRepresentation_CoachingAIFeedbackSummaryOutputRepresentation>;
@@ -1,4 +1,5 @@
1
1
  export { submitForCoachingAIFeedbackAdapterFactory } from '../adapters/submitForCoachingAIFeedback';
2
+ export { submitForCoachingMomentsProductPitchFeedbackAdapterFactory } from '../adapters/submitForCoachingMomentsProductPitchFeedback';
2
3
  export { getCoachingAIFeedbackAdapterFactory } from '../adapters/getCoachingAIFeedback';
3
4
  export { getFeaturedItemsRecommendedListAdapterFactory } from '../adapters/getFeaturedItemsRecommendedList';
4
5
  export { getFeaturedItemsRelatedListAdapterFactory } from '../adapters/getFeaturedItemsRelatedList';
@@ -13,6 +13,7 @@ declare let getModuleNotifyChange: any;
13
13
  declare let getTextLesson: any;
14
14
  declare let getTextLessonNotifyChange: any;
15
15
  declare let submitForCoachingAIFeedback: any;
16
+ declare let submitForCoachingMomentsProductPitchFeedback: any;
16
17
  declare let getCoachingAIFeedback_imperative: any;
17
18
  declare let getFeaturedItemsRecommendedList_imperative: any;
18
19
  declare let getFeaturedItemsRelatedList_imperative: any;
@@ -26,5 +27,5 @@ declare let getTextLesson_imperative: any;
26
27
  declare let notifyLearningItemProgressUpdateAvailable: any;
27
28
  declare let notifyLearningItemUpdateAvailable: any;
28
29
  declare let notifyLearningTextLessonUpdateAvailable: any;
29
- export { evaluateLearningItem, getCoachingAIFeedback, getFeaturedItemsRecommendedList, getFeaturedItemsRelatedList, getLearningConfig, getLearningItemProgress, getLearningItemsList, getLearningModel, getLearningPractice, getLearningPracticeNotifyChange, getModule, getModuleNotifyChange, getTextLesson, getTextLessonNotifyChange, submitForCoachingAIFeedback, getCoachingAIFeedback_imperative, getFeaturedItemsRecommendedList_imperative, getFeaturedItemsRelatedList_imperative, getLearningConfig_imperative, getLearningItemProgress_imperative, getLearningItemsList_imperative, getLearningModel_imperative, getLearningPractice_imperative, getModule_imperative, getTextLesson_imperative, };
30
+ export { evaluateLearningItem, getCoachingAIFeedback, getFeaturedItemsRecommendedList, getFeaturedItemsRelatedList, getLearningConfig, getLearningItemProgress, getLearningItemsList, getLearningModel, getLearningPractice, getLearningPracticeNotifyChange, getModule, getModuleNotifyChange, getTextLesson, getTextLessonNotifyChange, submitForCoachingAIFeedback, submitForCoachingMomentsProductPitchFeedback, getCoachingAIFeedback_imperative, getFeaturedItemsRecommendedList_imperative, getFeaturedItemsRelatedList_imperative, getLearningConfig_imperative, getLearningItemProgress_imperative, getLearningItemsList_imperative, getLearningModel_imperative, getLearningPractice_imperative, getModule_imperative, getTextLesson_imperative, };
30
31
  export { notifyLearningItemProgressUpdateAvailable, notifyLearningItemUpdateAvailable, notifyLearningTextLessonUpdateAvailable, };
@@ -0,0 +1,13 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { CoachingAIFeedbackSummaryOutputRepresentation as types_CoachingAIFeedbackSummaryOutputRepresentation_CoachingAIFeedbackSummaryOutputRepresentation } from '../types/CoachingAIFeedbackSummaryOutputRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ body: {
5
+ callId: string;
6
+ productId: string | null;
7
+ };
8
+ }
9
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
10
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_CoachingAIFeedbackSummaryOutputRepresentation_CoachingAIFeedbackSummaryOutputRepresentation): void;
11
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CoachingAIFeedbackSummaryOutputRepresentation_CoachingAIFeedbackSummaryOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_CoachingAIFeedbackSummaryOutputRepresentation_CoachingAIFeedbackSummaryOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_CoachingAIFeedbackSummaryOutputRepresentation_CoachingAIFeedbackSummaryOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_CoachingAIFeedbackSummaryOutputRepresentation_CoachingAIFeedbackSummaryOutputRepresentation, any>;
12
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
13
+ export default createResourceRequest;