@salesforce/lds-adapters-industries-education 1.418.0 → 1.419.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.
@@ -238,6 +238,13 @@ function validate$1j(obj, path = 'LearningOutput') {
238
238
  return new TypeError('Expected "string" but received "' + typeof obj_learningId + '" (at "' + path_learningId + '")');
239
239
  }
240
240
  }
241
+ if (obj.learningSystemIdentifier !== undefined) {
242
+ const obj_learningSystemIdentifier = obj.learningSystemIdentifier;
243
+ const path_learningSystemIdentifier = path + '.learningSystemIdentifier';
244
+ if (typeof obj_learningSystemIdentifier !== 'string') {
245
+ return new TypeError('Expected "string" but received "' + typeof obj_learningSystemIdentifier + '" (at "' + path_learningSystemIdentifier + '")');
246
+ }
247
+ }
241
248
  if (obj.name !== undefined) {
242
249
  const obj_name = obj.name;
243
250
  const path_name = path + '.name';
@@ -245,6 +252,13 @@ function validate$1j(obj, path = 'LearningOutput') {
245
252
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
246
253
  }
247
254
  }
255
+ if (obj.previousLearningId !== undefined) {
256
+ const obj_previousLearningId = obj.previousLearningId;
257
+ const path_previousLearningId = path + '.previousLearningId';
258
+ if (typeof obj_previousLearningId !== 'string') {
259
+ return new TypeError('Expected "string" but received "' + typeof obj_previousLearningId + '" (at "' + path_previousLearningId + '")');
260
+ }
261
+ }
248
262
  if (obj.provider !== undefined) {
249
263
  const obj_provider = obj.provider;
250
264
  const path_provider = path + '.provider';
@@ -259,11 +273,25 @@ function validate$1j(obj, path = 'LearningOutput') {
259
273
  return new TypeError('Expected "string" but received "' + typeof obj_providerName + '" (at "' + path_providerName + '")');
260
274
  }
261
275
  }
276
+ if (obj.revisedLearningId !== undefined) {
277
+ const obj_revisedLearningId = obj.revisedLearningId;
278
+ const path_revisedLearningId = path + '.revisedLearningId';
279
+ if (typeof obj_revisedLearningId !== 'string') {
280
+ return new TypeError('Expected "string" but received "' + typeof obj_revisedLearningId + '" (at "' + path_revisedLearningId + '")');
281
+ }
282
+ }
262
283
  const obj_type = obj.type;
263
284
  const path_type = path + '.type';
264
285
  if (typeof obj_type !== 'string') {
265
286
  return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
266
287
  }
288
+ if (obj.version !== undefined) {
289
+ const obj_version = obj.version;
290
+ const path_version = path + '.version';
291
+ if (typeof obj_version !== 'string') {
292
+ return new TypeError('Expected "string" but received "' + typeof obj_version + '" (at "' + path_version + '")');
293
+ }
294
+ }
267
295
  })();
268
296
  return v_error === undefined ? null : v_error;
269
297
  }
@@ -1,5 +1,5 @@
1
1
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
- export declare const VERSION = "e282875ab8d32af6bf8a1aef341b951f";
2
+ export declare const VERSION = "1a649c11013c57f055090a45ac3fbacc";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
5
  export declare function normalize(input: Learning, existing: LearningNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningNormalized;
@@ -34,8 +34,12 @@ export interface LearningNormalized {
34
34
  learningId?: string;
35
35
  /** Name of the Learning */
36
36
  name?: string;
37
+ /** Identifier of the previous version of the learning. */
38
+ previousLearningId?: string;
37
39
  /** Account foreign key identifier of the institution that provides the learning. */
38
40
  provider?: string;
41
+ /** Identifier of the revised version of the learning. */
42
+ revisedLearningId?: string;
39
43
  /** Learning record type. Possible values are Learning Program and Learning Course. */
40
44
  type: string;
41
45
  }
@@ -56,6 +60,8 @@ export interface Learning {
56
60
  durationUnit?: string;
57
61
  learningId?: string;
58
62
  name?: string;
63
+ previousLearningId?: string;
59
64
  provider?: string;
65
+ revisedLearningId?: string;
60
66
  type: string;
61
67
  }
@@ -4,7 +4,7 @@ export declare enum DiscriminatorValues {
4
4
  ExternalLearning = "ExternalLearning",
5
5
  LearningProgram = "LearningProgram"
6
6
  }
7
- export declare const VERSION = "acde98688e710a85b51cdf704a72b473";
7
+ export declare const VERSION = "736e5dc9664f791a85b05a9edd320882";
8
8
  export declare function validate(obj: any, path?: string): TypeError | null;
9
9
  export declare const RepresentationType: string;
10
10
  export declare function normalize(input: LearningOutput, existing: LearningOutputNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningOutputNormalized;
@@ -39,14 +39,22 @@ export interface LearningOutputNormalized {
39
39
  durationUnit?: string;
40
40
  /** Learning id. */
41
41
  learningId?: string;
42
+ /** Identifier of the learning in the external learning system. */
43
+ learningSystemIdentifier?: string;
42
44
  /** Learning name. */
43
45
  name?: string;
46
+ /** Identifier of the previous version of the learning. */
47
+ previousLearningId?: string;
44
48
  /** Learning provider. */
45
49
  provider?: string;
46
50
  /** Provider Name. */
47
51
  providerName?: string;
52
+ /** Identifier of the revised version of the learning. */
53
+ revisedLearningId?: string;
48
54
  /** Learning type. */
49
55
  type: string;
56
+ /** Version of the learning. */
57
+ version?: string;
50
58
  }
51
59
  /**
52
60
  * Represents information that defines an instructional object that can be made available as a course, program, or on-site experience, for a contact.
@@ -64,8 +72,12 @@ export interface LearningOutput {
64
72
  duration?: number;
65
73
  durationUnit?: string;
66
74
  learningId?: string;
75
+ learningSystemIdentifier?: string;
67
76
  name?: string;
77
+ previousLearningId?: string;
68
78
  provider?: string;
69
79
  providerName?: string;
80
+ revisedLearningId?: string;
70
81
  type: string;
82
+ version?: string;
71
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-education",
3
- "version": "1.418.0",
3
+ "version": "1.419.0",
4
4
  "description": "Education Cloud related actions",
5
5
  "license": "MIT",
6
6
  "main": "dist/es/es2018/industries-education.js",
@@ -46,11 +46,11 @@
46
46
  "test:unit": "jest --config=./jest.config.js"
47
47
  },
48
48
  "dependencies": {
49
- "@salesforce/lds-bindings": "^1.418.0"
49
+ "@salesforce/lds-bindings": "^1.419.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@salesforce/lds-compiler-plugins": "^1.418.0",
53
- "@salesforce/lds-karma": "^1.418.0"
52
+ "@salesforce/lds-compiler-plugins": "^1.419.0",
53
+ "@salesforce/lds-karma": "^1.419.0"
54
54
  },
55
55
  "nx": {
56
56
  "targets": {
package/sfdc/index.js CHANGED
@@ -5553,6 +5553,13 @@ function validate$D(obj, path = 'LearningOutput') {
5553
5553
  return new TypeError('Expected "string" but received "' + typeof obj_learningId + '" (at "' + path_learningId + '")');
5554
5554
  }
5555
5555
  }
5556
+ if (obj.learningSystemIdentifier !== undefined) {
5557
+ const obj_learningSystemIdentifier = obj.learningSystemIdentifier;
5558
+ const path_learningSystemIdentifier = path + '.learningSystemIdentifier';
5559
+ if (typeof obj_learningSystemIdentifier !== 'string') {
5560
+ return new TypeError('Expected "string" but received "' + typeof obj_learningSystemIdentifier + '" (at "' + path_learningSystemIdentifier + '")');
5561
+ }
5562
+ }
5556
5563
  if (obj.name !== undefined) {
5557
5564
  const obj_name = obj.name;
5558
5565
  const path_name = path + '.name';
@@ -5560,6 +5567,13 @@ function validate$D(obj, path = 'LearningOutput') {
5560
5567
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
5561
5568
  }
5562
5569
  }
5570
+ if (obj.previousLearningId !== undefined) {
5571
+ const obj_previousLearningId = obj.previousLearningId;
5572
+ const path_previousLearningId = path + '.previousLearningId';
5573
+ if (typeof obj_previousLearningId !== 'string') {
5574
+ return new TypeError('Expected "string" but received "' + typeof obj_previousLearningId + '" (at "' + path_previousLearningId + '")');
5575
+ }
5576
+ }
5563
5577
  if (obj.provider !== undefined) {
5564
5578
  const obj_provider = obj.provider;
5565
5579
  const path_provider = path + '.provider';
@@ -5574,11 +5588,25 @@ function validate$D(obj, path = 'LearningOutput') {
5574
5588
  return new TypeError('Expected "string" but received "' + typeof obj_providerName + '" (at "' + path_providerName + '")');
5575
5589
  }
5576
5590
  }
5591
+ if (obj.revisedLearningId !== undefined) {
5592
+ const obj_revisedLearningId = obj.revisedLearningId;
5593
+ const path_revisedLearningId = path + '.revisedLearningId';
5594
+ if (typeof obj_revisedLearningId !== 'string') {
5595
+ return new TypeError('Expected "string" but received "' + typeof obj_revisedLearningId + '" (at "' + path_revisedLearningId + '")');
5596
+ }
5597
+ }
5577
5598
  const obj_type = obj.type;
5578
5599
  const path_type = path + '.type';
5579
5600
  if (typeof obj_type !== 'string') {
5580
5601
  return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
5581
5602
  }
5603
+ if (obj.version !== undefined) {
5604
+ const obj_version = obj.version;
5605
+ const path_version = path + '.version';
5606
+ if (typeof obj_version !== 'string') {
5607
+ return new TypeError('Expected "string" but received "' + typeof obj_version + '" (at "' + path_version + '")');
5608
+ }
5609
+ }
5582
5610
  })();
5583
5611
  return v_error === undefined ? null : v_error;
5584
5612
  }
@@ -10700,4 +10728,4 @@ withDefaultLuvio((luvio) => {
10700
10728
  });
10701
10729
 
10702
10730
  export { createCarePlans, createLearnings, createPreliminaryApplicationReferences, createTask, getAcademicTerms, getAcademicTerms_imperative, getApplicationDetails, getApplicationDetails_imperative, getApplications, getApplications_imperative, getAptsTasksPlans, getAptsTasksPlans_imperative, getAvailableTimeSlots, getAvailableTimeSlots_imperative, getAvailableTopics, getAvailableTopics_imperative, getDocumentTypes, getDocumentTypes_imperative, getIndividualApplicationTask, getIndividualApplicationTask_imperative, getLearnerProgress, getLearnerProgress_imperative, getLearning, getLearning_imperative, getNewApplicationPreliminaryData, getNewApplicationPreliminaryData_imperative, getPersonPublicProfile, getPersonPublicProfile_imperative, getPicklistValues, getPicklistValues_imperative, getPreviewLearningProgramPlan, getPreviewLearningProgramPlan_imperative, getProgramTermApplicationTimelines, getProgramTermApplicationTimelines_imperative, getSuccessTeam, getSuccessTeam_imperative, postBenefitAssignment, postMatchingSelector, postMatchingSelector_imperative, postPublishLearningProgramPlan, postValidateLearningFoundationList, postValidateLearningFoundationList_imperative, updateLearnings, updateTaskStatus };
10703
- // version: 1.418.0-68f5961c99
10731
+ // version: 1.419.0-8232dcd0ab
package/src/raml/api.raml CHANGED
@@ -1648,6 +1648,14 @@ types:
1648
1648
  description: Learning id.
1649
1649
  type: string
1650
1650
  required: false
1651
+ previousLearningId:
1652
+ description: Identifier of the previous version of the learning.
1653
+ type: string
1654
+ required: false
1655
+ revisedLearningId:
1656
+ description: Identifier of the revised version of the learning.
1657
+ type: string
1658
+ required: false
1651
1659
  name:
1652
1660
  description: Name of the Learning
1653
1661
  type: string
@@ -2112,6 +2120,22 @@ types:
2112
2120
  description: Learning id.
2113
2121
  type: string
2114
2122
  required: false
2123
+ previousLearningId:
2124
+ description: Identifier of the previous version of the learning.
2125
+ type: string
2126
+ required: false
2127
+ revisedLearningId:
2128
+ description: Identifier of the revised version of the learning.
2129
+ type: string
2130
+ required: false
2131
+ version:
2132
+ description: Version of the learning.
2133
+ type: string
2134
+ required: false
2135
+ learningSystemIdentifier:
2136
+ description: Identifier of the learning in the external learning system.
2137
+ type: string
2138
+ required: false
2115
2139
  name:
2116
2140
  description: Learning name.
2117
2141
  type: string