@salesforce/lds-adapters-platform-learning 1.299.0 → 1.301.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$2, typeCheckConfig as typeCheckConfig$2 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$1, typeCheckConfig as typeCheckConfig$1 } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -161,7 +161,7 @@ function keyBuilderFromType(luvio, object) {
161
161
  function normalize(input, existing, path, luvio, store, timestamp) {
162
162
  return input;
163
163
  }
164
- const select$2 = function LearningItemProgressRepresentationSelect() {
164
+ const select$1 = function LearningItemProgressRepresentationSelect() {
165
165
  return {
166
166
  kind: 'Fragment',
167
167
  version: VERSION,
@@ -240,115 +240,8 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
240
240
  });
241
241
  }
242
242
 
243
- function select$1(luvio, params) {
244
- return select$2();
245
- }
246
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
247
- getTypeCacheKeys(storeKeyMap, luvio, response);
248
- }
249
- function ingestSuccess$1(luvio, resourceParams, response) {
250
- const { body } = response;
251
- const key = keyBuilderFromType(luvio, body);
252
- luvio.storeIngest(key, ingest, body);
253
- const snapshot = luvio.storeLookup({
254
- recordId: key,
255
- node: select$1(),
256
- variables: {},
257
- });
258
- if (process.env.NODE_ENV !== 'production') {
259
- if (snapshot.state !== 'Fulfilled') {
260
- throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
261
- }
262
- }
263
- deepFreeze(snapshot.data);
264
- return snapshot;
265
- }
266
- function createResourceRequest$1(config) {
267
- const headers = {};
268
- return {
269
- baseUri: '/services/data/v62.0',
270
- basePath: '/connect/communities/' + config.urlParams.communityId + '/learningItem/' + config.urlParams.learningItemId + '/actions/evaluate',
271
- method: 'post',
272
- body: config.body,
273
- urlParams: config.urlParams,
274
- queryParams: {},
275
- headers,
276
- priority: 'normal',
277
- };
278
- }
279
-
280
- const adapterName$1 = 'evaluateLearningItemForCommunity';
281
- const evaluateLearningItemForCommunity_ConfigPropertyMetadata = [
282
- generateParamConfigMetadata('communityId', true, 0 /* UrlParameter */, 0 /* String */),
283
- generateParamConfigMetadata('learningItemId', true, 0 /* UrlParameter */, 0 /* String */),
284
- generateParamConfigMetadata('details', false, 2 /* Body */, 4 /* Unsupported */),
285
- ];
286
- const evaluateLearningItemForCommunity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, evaluateLearningItemForCommunity_ConfigPropertyMetadata);
287
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$2(evaluateLearningItemForCommunity_ConfigPropertyMetadata);
288
- function typeCheckConfig$1(untrustedConfig) {
289
- const config = {};
290
- typeCheckConfig$2(untrustedConfig, config, evaluateLearningItemForCommunity_ConfigPropertyMetadata);
291
- const untrustedConfig_details = untrustedConfig.details;
292
- if (untrustedIsObject(untrustedConfig_details)) {
293
- const untrustedConfig_details_object = {};
294
- const untrustedConfig_details_keys = Object.keys(untrustedConfig_details);
295
- for (let i = 0, arrayLength = untrustedConfig_details_keys.length; i < arrayLength; i++) {
296
- const key = untrustedConfig_details_keys[i];
297
- const untrustedConfig_details_prop = untrustedConfig_details[key];
298
- if (untrustedConfig_details_object !== undefined) {
299
- untrustedConfig_details_object[key] = untrustedConfig_details_prop;
300
- }
301
- }
302
- if (untrustedConfig_details_object !== undefined && Object.keys(untrustedConfig_details_object).length >= 0) {
303
- config.details = untrustedConfig_details_object;
304
- }
305
- }
306
- return config;
307
- }
308
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
309
- if (!untrustedIsObject(untrustedConfig)) {
310
- return null;
311
- }
312
- if (process.env.NODE_ENV !== 'production') {
313
- validateConfig(untrustedConfig, configPropertyNames);
314
- }
315
- const config = typeCheckConfig$1(untrustedConfig);
316
- if (!areRequiredParametersPresent(config, configPropertyNames)) {
317
- return null;
318
- }
319
- return config;
320
- }
321
- function buildNetworkSnapshot$1(luvio, config, options) {
322
- const resourceParams = createResourceParams$1(config);
323
- const request = createResourceRequest$1(resourceParams);
324
- return luvio.dispatchResourceRequest(request, options)
325
- .then((response) => {
326
- return luvio.handleSuccessResponse(() => {
327
- const snapshot = ingestSuccess$1(luvio, resourceParams, response);
328
- return luvio.storeBroadcast().then(() => snapshot);
329
- }, () => {
330
- const cache = new StoreKeyMap();
331
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
332
- return cache;
333
- });
334
- }, (response) => {
335
- deepFreeze(response);
336
- throw response;
337
- });
338
- }
339
- const evaluateLearningItemForCommunityAdapterFactory = (luvio) => {
340
- return function evaluateLearningItemForCommunity(untrustedConfig) {
341
- const config = validateAdapterConfig$1(untrustedConfig, evaluateLearningItemForCommunity_ConfigPropertyNames);
342
- // Invalid or incomplete config
343
- if (config === null) {
344
- throw new Error('Invalid config for "evaluateLearningItemForCommunity"');
345
- }
346
- return buildNetworkSnapshot$1(luvio, config);
347
- };
348
- };
349
-
350
243
  function select(luvio, params) {
351
- return select$2();
244
+ return select$1();
352
245
  }
353
246
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
354
247
  getTypeCacheKeys(storeKeyMap, luvio, response);
@@ -374,7 +267,7 @@ function createResourceRequest(config) {
374
267
  const headers = {};
375
268
  return {
376
269
  baseUri: '/services/data/v62.0',
377
- basePath: '/connect/learningItem/' + config.urlParams.learningItemId + '/actions/evaluate',
270
+ basePath: '/connect/learning-platform/learning-item/' + config.urlParams.learningItemId + '/actions/evaluate',
378
271
  method: 'post',
379
272
  body: config.body,
380
273
  urlParams: config.urlParams,
@@ -390,10 +283,10 @@ const evaluateLearningItem_ConfigPropertyMetadata = [
390
283
  generateParamConfigMetadata('details', false, 2 /* Body */, 4 /* Unsupported */),
391
284
  ];
392
285
  const evaluateLearningItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, evaluateLearningItem_ConfigPropertyMetadata);
393
- const createResourceParams = /*#__PURE__*/ createResourceParams$2(evaluateLearningItem_ConfigPropertyMetadata);
286
+ const createResourceParams = /*#__PURE__*/ createResourceParams$1(evaluateLearningItem_ConfigPropertyMetadata);
394
287
  function typeCheckConfig(untrustedConfig) {
395
288
  const config = {};
396
- typeCheckConfig$2(untrustedConfig, config, evaluateLearningItem_ConfigPropertyMetadata);
289
+ typeCheckConfig$1(untrustedConfig, config, evaluateLearningItem_ConfigPropertyMetadata);
397
290
  const untrustedConfig_details = untrustedConfig.details;
398
291
  if (untrustedIsObject(untrustedConfig_details)) {
399
292
  const untrustedConfig_details_object = {};
@@ -453,4 +346,4 @@ const evaluateLearningItemAdapterFactory = (luvio) => {
453
346
  };
454
347
  };
455
348
 
456
- export { evaluateLearningItemAdapterFactory, evaluateLearningItemForCommunityAdapterFactory };
349
+ export { evaluateLearningItemAdapterFactory };
@@ -1,6 +1,6 @@
1
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
2
  import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
- import { ResourceRequestConfig as resources_postConnectLearningItemActionsEvaluateByLearningItemId_ResourceRequestConfig } from '../resources/postConnectLearningItemActionsEvaluateByLearningItemId';
3
+ import { ResourceRequestConfig as resources_postConnectLearningPlatformLearningItemActionsEvaluateByLearningItemId_ResourceRequestConfig } from '../resources/postConnectLearningPlatformLearningItemActionsEvaluateByLearningItemId';
4
4
  import { LearningItemProgressRepresentation as types_LearningItemProgressRepresentation_LearningItemProgressRepresentation } from '../types/LearningItemProgressRepresentation';
5
5
  export declare const adapterName = "evaluateLearningItem";
6
6
  export declare const evaluateLearningItem_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
@@ -11,7 +11,7 @@ export interface EvaluateLearningItemConfig {
11
11
  [key: string]: unknown;
12
12
  };
13
13
  }
14
- export declare const createResourceParams: (config: EvaluateLearningItemConfig) => resources_postConnectLearningItemActionsEvaluateByLearningItemId_ResourceRequestConfig;
14
+ export declare const createResourceParams: (config: EvaluateLearningItemConfig) => resources_postConnectLearningPlatformLearningItemActionsEvaluateByLearningItemId_ResourceRequestConfig;
15
15
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<EvaluateLearningItemConfig>): adapter$45$utils_Untrusted<EvaluateLearningItemConfig>;
16
16
  export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): EvaluateLearningItemConfig | null;
17
17
  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>>;
@@ -1,2 +1 @@
1
- export { evaluateLearningItemForCommunityAdapterFactory } from '../adapters/evaluateLearningItemForCommunity';
2
1
  export { evaluateLearningItemAdapterFactory } from '../adapters/evaluateLearningItem';
@@ -1,3 +1,2 @@
1
1
  declare let evaluateLearningItem: any;
2
- declare let evaluateLearningItemForCommunity: any;
3
- export { evaluateLearningItem, evaluateLearningItemForCommunity };
2
+ export { evaluateLearningItem };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-learning",
3
- "version": "1.299.0",
3
+ "version": "1.301.0",
4
4
  "description": "Learning Platform Public API",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/platform-learning.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.299.0"
43
+ "@salesforce/lds-bindings": "^1.301.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.299.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.301.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -13,7 +13,7 @@
13
13
  */
14
14
  /* proxy-compat-disable */
15
15
  import { withDefaultLuvio } from 'force/ldsEngine';
16
- import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$2, typeCheckConfig as typeCheckConfig$2 } from 'force/luvioEngine';
16
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$1, typeCheckConfig as typeCheckConfig$1 } from 'force/luvioEngine';
17
17
 
18
18
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
19
19
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -170,7 +170,7 @@ function keyBuilderFromType(luvio, object) {
170
170
  function normalize(input, existing, path, luvio, store, timestamp) {
171
171
  return input;
172
172
  }
173
- const select$2 = function LearningItemProgressRepresentationSelect() {
173
+ const select$1 = function LearningItemProgressRepresentationSelect() {
174
174
  return {
175
175
  kind: 'Fragment',
176
176
  version: VERSION,
@@ -249,114 +249,8 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
249
249
  });
250
250
  }
251
251
 
252
- function select$1(luvio, params) {
253
- return select$2();
254
- }
255
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
256
- getTypeCacheKeys(storeKeyMap, luvio, response);
257
- }
258
- function ingestSuccess$1(luvio, resourceParams, response) {
259
- const { body } = response;
260
- const key = keyBuilderFromType(luvio, body);
261
- luvio.storeIngest(key, ingest, body);
262
- const snapshot = luvio.storeLookup({
263
- recordId: key,
264
- node: select$1(),
265
- variables: {},
266
- });
267
- if (process.env.NODE_ENV !== 'production') {
268
- if (snapshot.state !== 'Fulfilled') {
269
- throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
270
- }
271
- }
272
- deepFreeze(snapshot.data);
273
- return snapshot;
274
- }
275
- function createResourceRequest$1(config) {
276
- const headers = {};
277
- return {
278
- baseUri: '/services/data/v62.0',
279
- basePath: '/connect/learningItem/' + config.urlParams.learningItemId + '/actions/evaluate',
280
- method: 'post',
281
- body: config.body,
282
- urlParams: config.urlParams,
283
- queryParams: {},
284
- headers,
285
- priority: 'normal',
286
- };
287
- }
288
-
289
- const adapterName$1 = 'evaluateLearningItem';
290
- const evaluateLearningItem_ConfigPropertyMetadata = [
291
- generateParamConfigMetadata('learningItemId', true, 0 /* UrlParameter */, 0 /* String */),
292
- generateParamConfigMetadata('details', false, 2 /* Body */, 4 /* Unsupported */),
293
- ];
294
- const evaluateLearningItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, evaluateLearningItem_ConfigPropertyMetadata);
295
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$2(evaluateLearningItem_ConfigPropertyMetadata);
296
- function typeCheckConfig$1(untrustedConfig) {
297
- const config = {};
298
- typeCheckConfig$2(untrustedConfig, config, evaluateLearningItem_ConfigPropertyMetadata);
299
- const untrustedConfig_details = untrustedConfig.details;
300
- if (untrustedIsObject(untrustedConfig_details)) {
301
- const untrustedConfig_details_object = {};
302
- const untrustedConfig_details_keys = Object.keys(untrustedConfig_details);
303
- for (let i = 0, arrayLength = untrustedConfig_details_keys.length; i < arrayLength; i++) {
304
- const key = untrustedConfig_details_keys[i];
305
- const untrustedConfig_details_prop = untrustedConfig_details[key];
306
- if (untrustedConfig_details_object !== undefined) {
307
- untrustedConfig_details_object[key] = untrustedConfig_details_prop;
308
- }
309
- }
310
- if (untrustedConfig_details_object !== undefined && Object.keys(untrustedConfig_details_object).length >= 0) {
311
- config.details = untrustedConfig_details_object;
312
- }
313
- }
314
- return config;
315
- }
316
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
317
- if (!untrustedIsObject(untrustedConfig)) {
318
- return null;
319
- }
320
- if (process.env.NODE_ENV !== 'production') {
321
- validateConfig(untrustedConfig, configPropertyNames);
322
- }
323
- const config = typeCheckConfig$1(untrustedConfig);
324
- if (!areRequiredParametersPresent(config, configPropertyNames)) {
325
- return null;
326
- }
327
- return config;
328
- }
329
- function buildNetworkSnapshot$1(luvio, config, options) {
330
- const resourceParams = createResourceParams$1(config);
331
- const request = createResourceRequest$1(resourceParams);
332
- return luvio.dispatchResourceRequest(request, options)
333
- .then((response) => {
334
- return luvio.handleSuccessResponse(() => {
335
- const snapshot = ingestSuccess$1(luvio, resourceParams, response);
336
- return luvio.storeBroadcast().then(() => snapshot);
337
- }, () => {
338
- const cache = new StoreKeyMap();
339
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
340
- return cache;
341
- });
342
- }, (response) => {
343
- deepFreeze(response);
344
- throw response;
345
- });
346
- }
347
- const evaluateLearningItemAdapterFactory = (luvio) => {
348
- return function evaluateLearningItem(untrustedConfig) {
349
- const config = validateAdapterConfig$1(untrustedConfig, evaluateLearningItem_ConfigPropertyNames);
350
- // Invalid or incomplete config
351
- if (config === null) {
352
- throw new Error('Invalid config for "evaluateLearningItem"');
353
- }
354
- return buildNetworkSnapshot$1(luvio, config);
355
- };
356
- };
357
-
358
252
  function select(luvio, params) {
359
- return select$2();
253
+ return select$1();
360
254
  }
361
255
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
362
256
  getTypeCacheKeys(storeKeyMap, luvio, response);
@@ -382,7 +276,7 @@ function createResourceRequest(config) {
382
276
  const headers = {};
383
277
  return {
384
278
  baseUri: '/services/data/v62.0',
385
- basePath: '/connect/communities/' + config.urlParams.communityId + '/learningItem/' + config.urlParams.learningItemId + '/actions/evaluate',
279
+ basePath: '/connect/learning-platform/learning-item/' + config.urlParams.learningItemId + '/actions/evaluate',
386
280
  method: 'post',
387
281
  body: config.body,
388
282
  urlParams: config.urlParams,
@@ -392,17 +286,16 @@ function createResourceRequest(config) {
392
286
  };
393
287
  }
394
288
 
395
- const adapterName = 'evaluateLearningItemForCommunity';
396
- const evaluateLearningItemForCommunity_ConfigPropertyMetadata = [
397
- generateParamConfigMetadata('communityId', true, 0 /* UrlParameter */, 0 /* String */),
289
+ const adapterName = 'evaluateLearningItem';
290
+ const evaluateLearningItem_ConfigPropertyMetadata = [
398
291
  generateParamConfigMetadata('learningItemId', true, 0 /* UrlParameter */, 0 /* String */),
399
292
  generateParamConfigMetadata('details', false, 2 /* Body */, 4 /* Unsupported */),
400
293
  ];
401
- const evaluateLearningItemForCommunity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, evaluateLearningItemForCommunity_ConfigPropertyMetadata);
402
- const createResourceParams = /*#__PURE__*/ createResourceParams$2(evaluateLearningItemForCommunity_ConfigPropertyMetadata);
294
+ const evaluateLearningItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, evaluateLearningItem_ConfigPropertyMetadata);
295
+ const createResourceParams = /*#__PURE__*/ createResourceParams$1(evaluateLearningItem_ConfigPropertyMetadata);
403
296
  function typeCheckConfig(untrustedConfig) {
404
297
  const config = {};
405
- typeCheckConfig$2(untrustedConfig, config, evaluateLearningItemForCommunity_ConfigPropertyMetadata);
298
+ typeCheckConfig$1(untrustedConfig, config, evaluateLearningItem_ConfigPropertyMetadata);
406
299
  const untrustedConfig_details = untrustedConfig.details;
407
300
  if (untrustedIsObject(untrustedConfig_details)) {
408
301
  const untrustedConfig_details_object = {};
@@ -451,19 +344,18 @@ function buildNetworkSnapshot(luvio, config, options) {
451
344
  throw response;
452
345
  });
453
346
  }
454
- const evaluateLearningItemForCommunityAdapterFactory = (luvio) => {
455
- return function evaluateLearningItemForCommunity(untrustedConfig) {
456
- const config = validateAdapterConfig(untrustedConfig, evaluateLearningItemForCommunity_ConfigPropertyNames);
347
+ const evaluateLearningItemAdapterFactory = (luvio) => {
348
+ return function evaluateLearningItem(untrustedConfig) {
349
+ const config = validateAdapterConfig(untrustedConfig, evaluateLearningItem_ConfigPropertyNames);
457
350
  // Invalid or incomplete config
458
351
  if (config === null) {
459
- throw new Error('Invalid config for "evaluateLearningItemForCommunity"');
352
+ throw new Error('Invalid config for "evaluateLearningItem"');
460
353
  }
461
354
  return buildNetworkSnapshot(luvio, config);
462
355
  };
463
356
  };
464
357
 
465
358
  let evaluateLearningItem;
466
- let evaluateLearningItemForCommunity;
467
359
  // Notify Update Available
468
360
  function bindExportsTo(luvio) {
469
361
  // LDS Adapters
@@ -473,14 +365,13 @@ function bindExportsTo(luvio) {
473
365
  }
474
366
  return {
475
367
  evaluateLearningItem: unwrapSnapshotData(evaluateLearningItemAdapterFactory),
476
- evaluateLearningItemForCommunity: unwrapSnapshotData(evaluateLearningItemForCommunityAdapterFactory),
477
368
  // Imperative GET Adapters
478
369
  // Notify Update Availables
479
370
  };
480
371
  }
481
372
  withDefaultLuvio((luvio) => {
482
- ({ evaluateLearningItem, evaluateLearningItemForCommunity } = bindExportsTo(luvio));
373
+ ({ evaluateLearningItem } = bindExportsTo(luvio));
483
374
  });
484
375
 
485
- export { evaluateLearningItem, evaluateLearningItemForCommunity };
486
- // version: 1.299.0-161c48605a
376
+ export { evaluateLearningItem };
377
+ // version: 1.301.0-4216dc9d10
package/src/raml/api.raml CHANGED
@@ -35,7 +35,7 @@ types:
35
35
  required: false # TODO Hand-rolled W-8253396
36
36
  properties:
37
37
  //:
38
- type: any
38
+ type: any # TODO Hand-rolled W-8863405
39
39
  LearningItemProgressRepresentation:
40
40
  description: Represents the response that's returned after a learning item is evaluated successfully
41
41
  type: object
@@ -57,28 +57,7 @@ types:
57
57
  description: The ID of the learning item that was evaluated
58
58
  type: string
59
59
  /connect:
60
- /communities/{communityId}/learningItem/{learningItemId}/actions/evaluate:
61
- post:
62
- displayName: postEvaluateLearningItem
63
- description: Checks the completion progress of a learning item
64
- responses:
65
- '200':
66
- description: Success
67
- body:
68
- application/json:
69
- type: LearningItemProgressRepresentation
70
- body:
71
- application/json:
72
- type: EvaluateLearningItemInputRepresentation
73
- (oas-body-name): evaluateLearningItemInputRepresentation
74
- uriParameters:
75
- communityId:
76
- type: string
77
- required: true
78
- learningItemId:
79
- type: string
80
- required: true
81
- /learningItem/{learningItemId}/actions/evaluate:
60
+ /learning-platform/learning-item/{learningItemId}/actions/evaluate:
82
61
  post:
83
62
  displayName: postEvaluateLearningItem
84
63
  description: Checks the completion progress of a learning item
@@ -14,11 +14,7 @@ types:
14
14
  learning_item_progress_id: id
15
15
 
16
16
  /connect:
17
- /communities/{communityId}/learningItem/{learningItemId}/actions/evaluate:
18
- post:
19
- (luvio.adapter):
20
- name: evaluateLearningItemForCommunity
21
- /learningItem/{learningItemId}/actions/evaluate:
17
+ /learning-platform/learning-item/{learningItemId}/actions/evaluate:
22
18
  post:
23
19
  (luvio.adapter):
24
20
  name: evaluateLearningItem
@@ -1,19 +0,0 @@
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_postConnectCommunitiesLearningItemActionsEvaluateByCommunityIdAndLearningItemId_ResourceRequestConfig } from '../resources/postConnectCommunitiesLearningItemActionsEvaluateByCommunityIdAndLearningItemId';
4
- import { LearningItemProgressRepresentation as types_LearningItemProgressRepresentation_LearningItemProgressRepresentation } from '../types/LearningItemProgressRepresentation';
5
- export declare const adapterName = "evaluateLearningItemForCommunity";
6
- export declare const evaluateLearningItemForCommunity_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
- export declare const evaluateLearningItemForCommunity_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
- export interface EvaluateLearningItemForCommunityConfig {
9
- communityId: string;
10
- learningItemId: string;
11
- details?: {
12
- [key: string]: unknown;
13
- };
14
- }
15
- export declare const createResourceParams: (config: EvaluateLearningItemForCommunityConfig) => resources_postConnectCommunitiesLearningItemActionsEvaluateByCommunityIdAndLearningItemId_ResourceRequestConfig;
16
- export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<EvaluateLearningItemForCommunityConfig>): adapter$45$utils_Untrusted<EvaluateLearningItemForCommunityConfig>;
17
- export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): EvaluateLearningItemForCommunityConfig | null;
18
- export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: EvaluateLearningItemForCommunityConfig, 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>>;
19
- export declare const evaluateLearningItemForCommunityAdapterFactory: $64$luvio_engine_AdapterFactory<EvaluateLearningItemForCommunityConfig, types_LearningItemProgressRepresentation_LearningItemProgressRepresentation>;
@@ -1,18 +0,0 @@
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 { LearningItemProgressRepresentation as types_LearningItemProgressRepresentation_LearningItemProgressRepresentation } from '../types/LearningItemProgressRepresentation';
3
- export interface ResourceRequestConfig {
4
- urlParams: {
5
- communityId: string;
6
- learningItemId: string;
7
- };
8
- body: {
9
- details?: {
10
- [key: string]: unknown;
11
- };
12
- };
13
- }
14
- export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
15
- export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_LearningItemProgressRepresentation_LearningItemProgressRepresentation): void;
16
- export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_LearningItemProgressRepresentation_LearningItemProgressRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_LearningItemProgressRepresentation_LearningItemProgressRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_LearningItemProgressRepresentation_LearningItemProgressRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_LearningItemProgressRepresentation_LearningItemProgressRepresentation, any>;
17
- export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
18
- export default createResourceRequest;