@salesforce/lds-adapters-industries-education 1.281.0 → 1.282.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.
@@ -2493,7 +2493,7 @@ function equals$x(existing, incoming) {
2493
2493
  return true;
2494
2494
  }
2495
2495
 
2496
- const VERSION$w = "89e52eccc72f463a8ee92dc22f282ae0";
2496
+ const VERSION$w = "ed4788c6324cb7fee773d388cf21b1b4";
2497
2497
  function validate$U(obj, path = 'LearningProgramPlanRequirementOutput') {
2498
2498
  const v_error = (() => {
2499
2499
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2540,6 +2540,13 @@ function validate$U(obj, path = 'LearningProgramPlanRequirementOutput') {
2540
2540
  }
2541
2541
  }
2542
2542
  }
2543
+ if (obj.groupName !== undefined) {
2544
+ const obj_groupName = obj.groupName;
2545
+ const path_groupName = path + '.groupName';
2546
+ if (typeof obj_groupName !== 'string') {
2547
+ return new TypeError('Expected "string" but received "' + typeof obj_groupName + '" (at "' + path_groupName + '")');
2548
+ }
2549
+ }
2543
2550
  if (obj.learningAchievementId !== undefined) {
2544
2551
  const obj_learningAchievementId = obj.learningAchievementId;
2545
2552
  const path_learningAchievementId = path + '.learningAchievementId';
@@ -2605,6 +2612,11 @@ const select$P = function LearningProgramPlanRequirementOutputSelect() {
2605
2612
  selections: LearningFulfiller__selections,
2606
2613
  required: false
2607
2614
  },
2615
+ {
2616
+ name: 'groupName',
2617
+ kind: 'Scalar',
2618
+ required: false
2619
+ },
2608
2620
  {
2609
2621
  name: 'learningAchievementId',
2610
2622
  kind: 'Scalar',
@@ -2668,6 +2680,19 @@ function equals$w(existing, incoming) {
2668
2680
  return false;
2669
2681
  }
2670
2682
  }
2683
+ const existing_groupName = existing.groupName;
2684
+ const incoming_groupName = incoming.groupName;
2685
+ // if at least one of these optionals is defined
2686
+ if (existing_groupName !== undefined || incoming_groupName !== undefined) {
2687
+ // if one of these is not defined we know the other is defined and therefore
2688
+ // not equal
2689
+ if (existing_groupName === undefined || incoming_groupName === undefined) {
2690
+ return false;
2691
+ }
2692
+ if (!(existing_groupName === incoming_groupName)) {
2693
+ return false;
2694
+ }
2695
+ }
2671
2696
  const existing_learningAchievementId = existing.learningAchievementId;
2672
2697
  const incoming_learningAchievementId = incoming.learningAchievementId;
2673
2698
  // if at least one of these optionals is defined
@@ -2754,7 +2779,7 @@ function equals$w(existing, incoming) {
2754
2779
  return true;
2755
2780
  }
2756
2781
 
2757
- const VERSION$v = "50def6c5b4042721fd079540ab411bd3";
2782
+ const VERSION$v = "d7af2bfee148ac8ae983037e910f21ac";
2758
2783
  function validate$T(obj, path = 'LearnerProgramRequirement') {
2759
2784
  const v_error = (() => {
2760
2785
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2789,6 +2814,13 @@ function validate$T(obj, path = 'LearnerProgramRequirement') {
2789
2814
  return new TypeError(message);
2790
2815
  }
2791
2816
  }
2817
+ if (obj.learningProgramPlanRequirementId !== undefined) {
2818
+ const obj_learningProgramPlanRequirementId = obj.learningProgramPlanRequirementId;
2819
+ const path_learningProgramPlanRequirementId = path + '.learningProgramPlanRequirementId';
2820
+ if (typeof obj_learningProgramPlanRequirementId !== 'string') {
2821
+ return new TypeError('Expected "string" but received "' + typeof obj_learningProgramPlanRequirementId + '" (at "' + path_learningProgramPlanRequirementId + '")');
2822
+ }
2823
+ }
2792
2824
  const obj_name = obj.name;
2793
2825
  const path_name = path + '.name';
2794
2826
  if (typeof obj_name !== 'string') {
@@ -2847,6 +2879,11 @@ const select$O = function LearnerProgramRequirementSelect() {
2847
2879
  selections: LearningProgramPlanRequirementOutput__selections,
2848
2880
  required: false
2849
2881
  },
2882
+ {
2883
+ name: 'learningProgramPlanRequirementId',
2884
+ kind: 'Scalar',
2885
+ required: false
2886
+ },
2850
2887
  {
2851
2888
  name: 'name',
2852
2889
  kind: 'Scalar'
@@ -2896,6 +2933,19 @@ function equals$v(existing, incoming) {
2896
2933
  return false;
2897
2934
  }
2898
2935
  }
2936
+ const existing_learningProgramPlanRequirementId = existing.learningProgramPlanRequirementId;
2937
+ const incoming_learningProgramPlanRequirementId = incoming.learningProgramPlanRequirementId;
2938
+ // if at least one of these optionals is defined
2939
+ if (existing_learningProgramPlanRequirementId !== undefined || incoming_learningProgramPlanRequirementId !== undefined) {
2940
+ // if one of these is not defined we know the other is defined and therefore
2941
+ // not equal
2942
+ if (existing_learningProgramPlanRequirementId === undefined || incoming_learningProgramPlanRequirementId === undefined) {
2943
+ return false;
2944
+ }
2945
+ if (!(existing_learningProgramPlanRequirementId === incoming_learningProgramPlanRequirementId)) {
2946
+ return false;
2947
+ }
2948
+ }
2899
2949
  const existing_name = existing.name;
2900
2950
  const incoming_name = incoming.name;
2901
2951
  if (!(existing_name === incoming_name)) {
@@ -1,6 +1,6 @@
1
1
  import { LearningProgramPlanRequirementOutput as LearningProgramPlanRequirementOutput_LearningProgramPlanRequirementOutput } from './LearningProgramPlanRequirementOutput';
2
2
  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';
3
- export declare const VERSION = "50def6c5b4042721fd079540ab411bd3";
3
+ export declare const VERSION = "d7af2bfee148ac8ae983037e910f21ac";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export declare function normalize(input: LearnerProgramRequirement, existing: LearnerProgramRequirementNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearnerProgramRequirementNormalized;
@@ -22,6 +22,8 @@ export interface LearnerProgramRequirementNormalized {
22
22
  /** Learner program requirement Id */
23
23
  learnerProgramRequirementId?: string;
24
24
  learningProgramPlanRequirement?: LearningProgramPlanRequirementOutput_LearningProgramPlanRequirementOutput;
25
+ /** Learning program plan requirement Id */
26
+ learningProgramPlanRequirementId?: string;
25
27
  /** Name of the learner program requirement */
26
28
  name: string;
27
29
  /** Requirement durations by duration unit type */
@@ -42,6 +44,7 @@ export interface LearnerProgramRequirement {
42
44
  learnerProgramId: string;
43
45
  learnerProgramRequirementId?: string;
44
46
  learningProgramPlanRequirement?: LearningProgramPlanRequirementOutput_LearningProgramPlanRequirementOutput;
47
+ learningProgramPlanRequirementId?: string;
45
48
  name: string;
46
49
  requirementDurationsByUnit?: {
47
50
  [key: string]: unknown;
@@ -1,6 +1,6 @@
1
1
  import { LearningFulfiller as LearningFulfiller_LearningFulfiller } from './LearningFulfiller';
2
2
  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';
3
- export declare const VERSION = "89e52eccc72f463a8ee92dc22f282ae0";
3
+ export declare const VERSION = "ed4788c6324cb7fee773d388cf21b1b4";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export declare function normalize(input: LearningProgramPlanRequirementOutput, existing: LearningProgramPlanRequirementOutputNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningProgramPlanRequirementOutputNormalized;
@@ -25,6 +25,8 @@ export interface LearningProgramPlanRequirementOutputNormalized {
25
25
  durationUnit?: string;
26
26
  /** Program plan requirement fulfilled by. */
27
27
  fulfilledBy?: Array<LearningFulfiller_LearningFulfiller>;
28
+ /** The name of a group of courses. */
29
+ groupName?: string;
28
30
  /** Program plan requirement learning achievement id. */
29
31
  learningAchievementId?: string;
30
32
  /** Program plan requirement learning achievement type. */
@@ -46,6 +48,7 @@ export interface LearningProgramPlanRequirementOutput {
46
48
  duration?: number;
47
49
  durationUnit?: string;
48
50
  fulfilledBy?: Array<LearningFulfiller_LearningFulfiller>;
51
+ groupName?: string;
49
52
  learningAchievementId?: string;
50
53
  learningAchievementType?: string;
51
54
  learningProgramPlanRequirementId?: string;
@@ -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 = "bddc89c0435aa2b906c532c4d8069cc4";
2
+ export declare const VERSION = "edab125cefdb8de0bd383be1fe265337";
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: RequirementDuration, existing: RequirementDurationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): RequirementDurationNormalized;
@@ -16,12 +16,12 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
16
16
  export interface RequirementDurationNormalized {
17
17
  /** Completed requirement duration */
18
18
  completed?: number;
19
- /** In-progress requirement duration */
20
- inProgress?: number;
19
+ /** Enrolled requirement duration */
20
+ enrolled?: number;
21
21
  /** Planned requirement duration */
22
22
  planned?: number;
23
- /** Total requirement duration */
24
- total?: number;
23
+ /** Required requirement duration */
24
+ required?: number;
25
25
  /** Unplanned requirement duration */
26
26
  unplanned?: number;
27
27
  }
@@ -33,8 +33,8 @@ export interface RequirementDurationNormalized {
33
33
  */
34
34
  export interface RequirementDuration {
35
35
  completed?: number;
36
- inProgress?: number;
36
+ enrolled?: number;
37
37
  planned?: number;
38
- total?: number;
38
+ required?: number;
39
39
  unplanned?: number;
40
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-education",
3
- "version": "1.281.0",
3
+ "version": "1.282.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.281.0"
49
+ "@salesforce/lds-bindings": "^1.282.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@salesforce/lds-compiler-plugins": "^1.281.0",
53
- "@salesforce/lds-karma": "^1.281.0"
52
+ "@salesforce/lds-compiler-plugins": "^1.282.0",
53
+ "@salesforce/lds-karma": "^1.282.0"
54
54
  },
55
55
  "nx": {
56
56
  "targets": {
package/sfdc/index.js CHANGED
@@ -5492,7 +5492,7 @@ function equals$m(existing, incoming) {
5492
5492
  return true;
5493
5493
  }
5494
5494
 
5495
- const VERSION$l = "89e52eccc72f463a8ee92dc22f282ae0";
5495
+ const VERSION$l = "ed4788c6324cb7fee773d388cf21b1b4";
5496
5496
  function validate$w(obj, path = 'LearningProgramPlanRequirementOutput') {
5497
5497
  const v_error = (() => {
5498
5498
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5539,6 +5539,13 @@ function validate$w(obj, path = 'LearningProgramPlanRequirementOutput') {
5539
5539
  }
5540
5540
  }
5541
5541
  }
5542
+ if (obj.groupName !== undefined) {
5543
+ const obj_groupName = obj.groupName;
5544
+ const path_groupName = path + '.groupName';
5545
+ if (typeof obj_groupName !== 'string') {
5546
+ return new TypeError('Expected "string" but received "' + typeof obj_groupName + '" (at "' + path_groupName + '")');
5547
+ }
5548
+ }
5542
5549
  if (obj.learningAchievementId !== undefined) {
5543
5550
  const obj_learningAchievementId = obj.learningAchievementId;
5544
5551
  const path_learningAchievementId = path + '.learningAchievementId';
@@ -5604,6 +5611,11 @@ const select$y = function LearningProgramPlanRequirementOutputSelect() {
5604
5611
  selections: LearningFulfiller__selections,
5605
5612
  required: false
5606
5613
  },
5614
+ {
5615
+ name: 'groupName',
5616
+ kind: 'Scalar',
5617
+ required: false
5618
+ },
5607
5619
  {
5608
5620
  name: 'learningAchievementId',
5609
5621
  kind: 'Scalar',
@@ -5667,6 +5679,19 @@ function equals$l(existing, incoming) {
5667
5679
  return false;
5668
5680
  }
5669
5681
  }
5682
+ const existing_groupName = existing.groupName;
5683
+ const incoming_groupName = incoming.groupName;
5684
+ // if at least one of these optionals is defined
5685
+ if (existing_groupName !== undefined || incoming_groupName !== undefined) {
5686
+ // if one of these is not defined we know the other is defined and therefore
5687
+ // not equal
5688
+ if (existing_groupName === undefined || incoming_groupName === undefined) {
5689
+ return false;
5690
+ }
5691
+ if (!(existing_groupName === incoming_groupName)) {
5692
+ return false;
5693
+ }
5694
+ }
5670
5695
  const existing_learningAchievementId = existing.learningAchievementId;
5671
5696
  const incoming_learningAchievementId = incoming.learningAchievementId;
5672
5697
  // if at least one of these optionals is defined
@@ -5753,7 +5778,7 @@ function equals$l(existing, incoming) {
5753
5778
  return true;
5754
5779
  }
5755
5780
 
5756
- const VERSION$k = "50def6c5b4042721fd079540ab411bd3";
5781
+ const VERSION$k = "d7af2bfee148ac8ae983037e910f21ac";
5757
5782
  function validate$v(obj, path = 'LearnerProgramRequirement') {
5758
5783
  const v_error = (() => {
5759
5784
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5788,6 +5813,13 @@ function validate$v(obj, path = 'LearnerProgramRequirement') {
5788
5813
  return new TypeError(message);
5789
5814
  }
5790
5815
  }
5816
+ if (obj.learningProgramPlanRequirementId !== undefined) {
5817
+ const obj_learningProgramPlanRequirementId = obj.learningProgramPlanRequirementId;
5818
+ const path_learningProgramPlanRequirementId = path + '.learningProgramPlanRequirementId';
5819
+ if (typeof obj_learningProgramPlanRequirementId !== 'string') {
5820
+ return new TypeError('Expected "string" but received "' + typeof obj_learningProgramPlanRequirementId + '" (at "' + path_learningProgramPlanRequirementId + '")');
5821
+ }
5822
+ }
5791
5823
  const obj_name = obj.name;
5792
5824
  const path_name = path + '.name';
5793
5825
  if (typeof obj_name !== 'string') {
@@ -5846,6 +5878,11 @@ const select$x = function LearnerProgramRequirementSelect() {
5846
5878
  selections: LearningProgramPlanRequirementOutput__selections,
5847
5879
  required: false
5848
5880
  },
5881
+ {
5882
+ name: 'learningProgramPlanRequirementId',
5883
+ kind: 'Scalar',
5884
+ required: false
5885
+ },
5849
5886
  {
5850
5887
  name: 'name',
5851
5888
  kind: 'Scalar'
@@ -5895,6 +5932,19 @@ function equals$k(existing, incoming) {
5895
5932
  return false;
5896
5933
  }
5897
5934
  }
5935
+ const existing_learningProgramPlanRequirementId = existing.learningProgramPlanRequirementId;
5936
+ const incoming_learningProgramPlanRequirementId = incoming.learningProgramPlanRequirementId;
5937
+ // if at least one of these optionals is defined
5938
+ if (existing_learningProgramPlanRequirementId !== undefined || incoming_learningProgramPlanRequirementId !== undefined) {
5939
+ // if one of these is not defined we know the other is defined and therefore
5940
+ // not equal
5941
+ if (existing_learningProgramPlanRequirementId === undefined || incoming_learningProgramPlanRequirementId === undefined) {
5942
+ return false;
5943
+ }
5944
+ if (!(existing_learningProgramPlanRequirementId === incoming_learningProgramPlanRequirementId)) {
5945
+ return false;
5946
+ }
5947
+ }
5898
5948
  const existing_name = existing.name;
5899
5949
  const incoming_name = incoming.name;
5900
5950
  if (!(existing_name === incoming_name)) {
@@ -10381,4 +10431,4 @@ withDefaultLuvio((luvio) => {
10381
10431
  });
10382
10432
 
10383
10433
  export { createCarePlans, createPreliminaryApplicationReferences, createTask, getAcademicTerms, getAcademicTerms_imperative, getApplicationDetails, getApplicationDetails_imperative, getApplications, getApplications_imperative, getAptsTasksPlans, getAptsTasksPlans_imperative, getAvailableTimeSlots, getAvailableTimeSlots_imperative, getAvailableTopics, getAvailableTopics_imperative, getIndividualApplicationTask, getIndividualApplicationTask_imperative, getLearnerProgress, getLearnerProgress_imperative, getNewApplicationPreliminaryData, getNewApplicationPreliminaryData_imperative, getPersonPublicProfile, getPersonPublicProfile_imperative, getPicklistValues, getPicklistValues_imperative, getPreviewLearningProgramPlan, getPreviewLearningProgramPlan_imperative, getProgramTermApplicationTimelines, getProgramTermApplicationTimelines_imperative, getSuccessTeam, getSuccessTeam_imperative, postBenefitAssignment, postCreateLearning, postMatchingSelector, postMatchingSelector_imperative, postPublishLearningProgramPlan, updateLearning, updateTaskStatus };
10384
- // version: 1.281.0-bcef40769
10434
+ // version: 1.282.0-dd2e9831c
package/src/raml/api.raml CHANGED
@@ -1353,6 +1353,10 @@ types:
1353
1353
  description: Learning program plan requirement.
1354
1354
  type: LearningProgramPlanRequirementOutput
1355
1355
  required: false
1356
+ learningProgramPlanRequirementId:
1357
+ description: Learning program plan requirement Id
1358
+ type: string
1359
+ required: false
1356
1360
  name:
1357
1361
  description: Name of the learner program requirement
1358
1362
  type: string
@@ -1773,6 +1777,10 @@ types:
1773
1777
  required: false
1774
1778
  items:
1775
1779
  type: LearningFulfiller
1780
+ groupName:
1781
+ description: The name of a group of courses.
1782
+ type: string
1783
+ required: false
1776
1784
  learningAchievementId:
1777
1785
  description: Program plan requirement learning achievement id.
1778
1786
  type: string
@@ -2184,23 +2192,28 @@ types:
2184
2192
  properties:
2185
2193
  completed:
2186
2194
  description: Completed requirement duration
2187
- type: integer
2195
+ format: double
2196
+ type: number
2188
2197
  required: false
2189
- inProgress:
2190
- description: In-progress requirement duration
2191
- type: integer
2198
+ enrolled:
2199
+ description: Enrolled requirement duration
2200
+ format: double
2201
+ type: number
2192
2202
  required: false
2193
2203
  planned:
2194
2204
  description: Planned requirement duration
2195
- type: integer
2205
+ format: double
2206
+ type: number
2196
2207
  required: false
2197
- total:
2198
- description: Total requirement duration
2199
- type: integer
2208
+ required:
2209
+ description: Required requirement duration
2210
+ format: double
2211
+ type: number
2200
2212
  required: false
2201
2213
  unplanned:
2202
2214
  description: Unplanned requirement duration
2203
- type: integer
2215
+ format: double
2216
+ type: number
2204
2217
  required: false
2205
2218
  RequirementUpdateItem:
2206
2219
  description: Requirements - prerequisites, corequisites, recommendations during