@salesforce/lds-adapters-industries-education 1.314.0 → 1.316.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.
@@ -378,9 +378,26 @@ function validate$1d(obj, path = 'LearningStatus') {
378
378
  return new TypeError('Expected "string" but received "' + typeof obj_letterGrade + '" (at "' + path_letterGrade + '")');
379
379
  }
380
380
  }
381
+ const obj_mappedStatusDefinition = obj.mappedStatusDefinition;
382
+ const path_mappedStatusDefinition = path + '.mappedStatusDefinition';
383
+ if (!ArrayIsArray(obj_mappedStatusDefinition)) {
384
+ return new TypeError('Expected "array" but received "' + typeof obj_mappedStatusDefinition + '" (at "' + path_mappedStatusDefinition + '")');
385
+ }
386
+ for (let i = 0; i < obj_mappedStatusDefinition.length; i++) {
387
+ const obj_mappedStatusDefinition_item = obj_mappedStatusDefinition[i];
388
+ const path_mappedStatusDefinition_item = path_mappedStatusDefinition + '[' + i + ']';
389
+ if (typeof obj_mappedStatusDefinition_item !== 'string') {
390
+ return new TypeError('Expected "string" but received "' + typeof obj_mappedStatusDefinition_item + '" (at "' + path_mappedStatusDefinition_item + '")');
391
+ }
392
+ }
381
393
  if (obj.numericGrade !== undefined) {
382
394
  obj.numericGrade;
383
395
  }
396
+ const obj_participantStatusValue = obj.participantStatusValue;
397
+ const path_participantStatusValue = path + '.participantStatusValue';
398
+ if (typeof obj_participantStatusValue !== 'string') {
399
+ return new TypeError('Expected "string" but received "' + typeof obj_participantStatusValue + '" (at "' + path_participantStatusValue + '")');
400
+ }
384
401
  if (obj.resultStatus !== undefined) {
385
402
  const obj_resultStatus = obj.resultStatus;
386
403
  const path_resultStatus = path + '.resultStatus';
@@ -407,6 +424,13 @@ function validate$1c(obj, path = 'LearningFulfiller') {
407
424
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
408
425
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
409
426
  }
427
+ if (obj.isRepeat !== undefined) {
428
+ const obj_isRepeat = obj.isRepeat;
429
+ const path_isRepeat = path + '.isRepeat';
430
+ if (typeof obj_isRepeat !== 'boolean') {
431
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isRepeat + '" (at "' + path_isRepeat + '")');
432
+ }
433
+ }
410
434
  if (obj.learning !== undefined) {
411
435
  const obj_learning = obj.learning;
412
436
  const path_learning = path + '.learning';
@@ -437,6 +461,23 @@ function validate$1c(obj, path = 'LearningFulfiller') {
437
461
  return new TypeError(message);
438
462
  }
439
463
  }
464
+ if (obj.otherLearningStatus !== undefined) {
465
+ const obj_otherLearningStatus = obj.otherLearningStatus;
466
+ const path_otherLearningStatus = path + '.otherLearningStatus';
467
+ if (!ArrayIsArray(obj_otherLearningStatus)) {
468
+ return new TypeError('Expected "array" but received "' + typeof obj_otherLearningStatus + '" (at "' + path_otherLearningStatus + '")');
469
+ }
470
+ for (let i = 0; i < obj_otherLearningStatus.length; i++) {
471
+ const obj_otherLearningStatus_item = obj_otherLearningStatus[i];
472
+ const path_otherLearningStatus_item = path_otherLearningStatus + '[' + i + ']';
473
+ const referencepath_otherLearningStatus_itemValidationError = validate$1d(obj_otherLearningStatus_item, path_otherLearningStatus_item);
474
+ if (referencepath_otherLearningStatus_itemValidationError !== null) {
475
+ let message = 'Object doesn\'t match LearningStatus (at "' + path_otherLearningStatus_item + '")\n';
476
+ message += referencepath_otherLearningStatus_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
477
+ return new TypeError(message);
478
+ }
479
+ }
480
+ }
440
481
  })();
441
482
  return v_error === undefined ? null : v_error;
442
483
  }
@@ -2097,6 +2138,13 @@ function validate$Z(obj, path = 'AvailableTimeSlotsInputRepresentation') {
2097
2138
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2098
2139
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2099
2140
  }
2141
+ if (obj.automaticResourceAssignment !== undefined) {
2142
+ const obj_automaticResourceAssignment = obj.automaticResourceAssignment;
2143
+ const path_automaticResourceAssignment = path + '.automaticResourceAssignment';
2144
+ if (typeof obj_automaticResourceAssignment !== 'boolean') {
2145
+ return new TypeError('Expected "boolean" but received "' + typeof obj_automaticResourceAssignment + '" (at "' + path_automaticResourceAssignment + '")');
2146
+ }
2147
+ }
2100
2148
  if (obj.endTime !== undefined) {
2101
2149
  const obj_endTime = obj.endTime;
2102
2150
  const path_endTime = path + '.endTime';
@@ -2156,7 +2204,7 @@ function validate$Z(obj, path = 'AvailableTimeSlotsInputRepresentation') {
2156
2204
  return v_error === undefined ? null : v_error;
2157
2205
  }
2158
2206
 
2159
- const VERSION$x = "cfd94fbef61f52ffe43428e23e7a68c8";
2207
+ const VERSION$x = "d144e25bec059139dfc7c8e6b35f69e9";
2160
2208
  function validate$Y(obj, path = 'TimeSlot') {
2161
2209
  const v_error = (() => {
2162
2210
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2169,6 +2217,13 @@ function validate$Y(obj, path = 'TimeSlot') {
2169
2217
  return new TypeError('Expected "string" but received "' + typeof obj_endTime + '" (at "' + path_endTime + '")');
2170
2218
  }
2171
2219
  }
2220
+ if (obj.engagementChannelTypeId !== undefined) {
2221
+ const obj_engagementChannelTypeId = obj.engagementChannelTypeId;
2222
+ const path_engagementChannelTypeId = path + '.engagementChannelTypeId';
2223
+ if (typeof obj_engagementChannelTypeId !== 'string') {
2224
+ return new TypeError('Expected "string" but received "' + typeof obj_engagementChannelTypeId + '" (at "' + path_engagementChannelTypeId + '")');
2225
+ }
2226
+ }
2172
2227
  if (obj.serviceResourceId !== undefined) {
2173
2228
  const obj_serviceResourceId = obj.serviceResourceId;
2174
2229
  const path_serviceResourceId = path + '.serviceResourceId';
@@ -2204,6 +2259,11 @@ const select$R = function TimeSlotSelect() {
2204
2259
  kind: 'Scalar',
2205
2260
  required: false
2206
2261
  },
2262
+ {
2263
+ name: 'engagementChannelTypeId',
2264
+ kind: 'Scalar',
2265
+ required: false
2266
+ },
2207
2267
  {
2208
2268
  name: 'serviceResourceId',
2209
2269
  kind: 'Scalar',
@@ -2236,6 +2296,19 @@ function equals$x(existing, incoming) {
2236
2296
  return false;
2237
2297
  }
2238
2298
  }
2299
+ const existing_engagementChannelTypeId = existing.engagementChannelTypeId;
2300
+ const incoming_engagementChannelTypeId = incoming.engagementChannelTypeId;
2301
+ // if at least one of these optionals is defined
2302
+ if (existing_engagementChannelTypeId !== undefined || incoming_engagementChannelTypeId !== undefined) {
2303
+ // if one of these is not defined we know the other is defined and therefore
2304
+ // not equal
2305
+ if (existing_engagementChannelTypeId === undefined || incoming_engagementChannelTypeId === undefined) {
2306
+ return false;
2307
+ }
2308
+ if (!(existing_engagementChannelTypeId === incoming_engagementChannelTypeId)) {
2309
+ return false;
2310
+ }
2311
+ }
2239
2312
  const existing_serviceResourceId = existing.serviceResourceId;
2240
2313
  const incoming_serviceResourceId = incoming.serviceResourceId;
2241
2314
  // if at least one of these optionals is defined
@@ -2361,7 +2434,7 @@ function select$P(luvio, params) {
2361
2434
  return select$Q();
2362
2435
  }
2363
2436
  function keyBuilder$w(luvio, params) {
2364
- return keyPrefix + '::AvailableTimeSlotsOuputRepresentation:(' + (params.body.availableTimeSlotsInput.endTime === undefined ? 'availableTimeSlotsInput.endTime' : 'availableTimeSlotsInput.endTime:' + params.body.availableTimeSlotsInput.endTime) + '::' + 'availableTimeSlotsInput.engagementChannelTypeIds:' + params.body.availableTimeSlotsInput.engagementChannelTypeIds + '::' + 'availableTimeSlotsInput.serviceResourceIds:' + params.body.availableTimeSlotsInput.serviceResourceIds + '::' + 'availableTimeSlotsInput.serviceTerritoryIds:' + params.body.availableTimeSlotsInput.serviceTerritoryIds + '::' + (params.body.availableTimeSlotsInput.startTime === undefined ? 'availableTimeSlotsInput.startTime' : 'availableTimeSlotsInput.startTime:' + params.body.availableTimeSlotsInput.startTime) + '::' + 'availableTimeSlotsInput.workTypeGroupId:' + params.body.availableTimeSlotsInput.workTypeGroupId + ')';
2437
+ return keyPrefix + '::AvailableTimeSlotsOuputRepresentation:(' + (params.body.availableTimeSlotsInput.automaticResourceAssignment === undefined ? 'availableTimeSlotsInput.automaticResourceAssignment' : 'availableTimeSlotsInput.automaticResourceAssignment:' + params.body.availableTimeSlotsInput.automaticResourceAssignment) + '::' + (params.body.availableTimeSlotsInput.endTime === undefined ? 'availableTimeSlotsInput.endTime' : 'availableTimeSlotsInput.endTime:' + params.body.availableTimeSlotsInput.endTime) + '::' + 'availableTimeSlotsInput.engagementChannelTypeIds:' + params.body.availableTimeSlotsInput.engagementChannelTypeIds + '::' + 'availableTimeSlotsInput.serviceResourceIds:' + params.body.availableTimeSlotsInput.serviceResourceIds + '::' + 'availableTimeSlotsInput.serviceTerritoryIds:' + params.body.availableTimeSlotsInput.serviceTerritoryIds + '::' + (params.body.availableTimeSlotsInput.startTime === undefined ? 'availableTimeSlotsInput.startTime' : 'availableTimeSlotsInput.startTime:' + params.body.availableTimeSlotsInput.startTime) + '::' + 'availableTimeSlotsInput.workTypeGroupId:' + params.body.availableTimeSlotsInput.workTypeGroupId + ')';
2365
2438
  }
2366
2439
  function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
2367
2440
  getTypeCacheKeys$i(storeKeyMap, luvio, response, () => keyBuilder$w(luvio, resourceParams));
@@ -7411,7 +7484,7 @@ const getPersonPublicProfileAdapterFactory = (luvio) => function education__getP
7411
7484
  buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
7412
7485
  };
7413
7486
 
7414
- const VERSION$b = "edee4d1544f0cd9bf88084a4ef5dcf39";
7487
+ const VERSION$b = "676b2222ad16a1334bad764302c92cdf";
7415
7488
  function validate$b(obj, path = 'AvailableTeam') {
7416
7489
  const v_error = (() => {
7417
7490
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -7468,6 +7541,13 @@ function validate$b(obj, path = 'AvailableTeam') {
7468
7541
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
7469
7542
  }
7470
7543
  }
7544
+ if (obj.resourceAssignmentType !== undefined) {
7545
+ const obj_resourceAssignmentType = obj.resourceAssignmentType;
7546
+ const path_resourceAssignmentType = path + '.resourceAssignmentType';
7547
+ if (typeof obj_resourceAssignmentType !== 'string') {
7548
+ return new TypeError('Expected "string" but received "' + typeof obj_resourceAssignmentType + '" (at "' + path_resourceAssignmentType + '")');
7549
+ }
7550
+ }
7471
7551
  if (obj.teamId !== undefined) {
7472
7552
  const obj_teamId = obj.teamId;
7473
7553
  const path_teamId = path + '.teamId';
@@ -7514,6 +7594,11 @@ const select$g = function AvailableTeamSelect() {
7514
7594
  kind: 'Scalar',
7515
7595
  required: false
7516
7596
  },
7597
+ {
7598
+ name: 'resourceAssignmentType',
7599
+ kind: 'Scalar',
7600
+ required: false
7601
+ },
7517
7602
  {
7518
7603
  name: 'teamId',
7519
7604
  kind: 'Scalar',
@@ -7588,6 +7673,19 @@ function equals$b(existing, incoming) {
7588
7673
  return false;
7589
7674
  }
7590
7675
  }
7676
+ const existing_resourceAssignmentType = existing.resourceAssignmentType;
7677
+ const incoming_resourceAssignmentType = incoming.resourceAssignmentType;
7678
+ // if at least one of these optionals is defined
7679
+ if (existing_resourceAssignmentType !== undefined || incoming_resourceAssignmentType !== undefined) {
7680
+ // if one of these is not defined we know the other is defined and therefore
7681
+ // not equal
7682
+ if (existing_resourceAssignmentType === undefined || incoming_resourceAssignmentType === undefined) {
7683
+ return false;
7684
+ }
7685
+ if (!(existing_resourceAssignmentType === incoming_resourceAssignmentType)) {
7686
+ return false;
7687
+ }
7688
+ }
7591
7689
  const existing_teamId = existing.teamId;
7592
7690
  const incoming_teamId = incoming.teamId;
7593
7691
  // if at least one of these optionals is defined
@@ -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 = "edee4d1544f0cd9bf88084a4ef5dcf39";
2
+ export declare const VERSION = "676b2222ad16a1334bad764302c92cdf";
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: AvailableTeam, existing: AvailableTeamNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AvailableTeamNormalized;
@@ -28,6 +28,8 @@ export interface AvailableTeamNormalized {
28
28
  };
29
29
  /** The name of the team that's available to support the associated account. */
30
30
  name?: string;
31
+ /** The resource assignment type for this team. */
32
+ resourceAssignmentType?: string;
31
33
  /** The ID of the team that's available to support the associated account. */
32
34
  teamId?: string;
33
35
  }
@@ -46,5 +48,6 @@ export interface AvailableTeam {
46
48
  [key: string]: unknown;
47
49
  };
48
50
  name?: string;
51
+ resourceAssignmentType?: string;
49
52
  teamId?: string;
50
53
  }
@@ -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 = "f0f91123d36b4cd5756c525edfaad9e9";
2
+ export declare const VERSION = "e7c71984c3cc33831284e71732bab26a";
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: AvailableTimeSlotsInputRepresentation, existing: AvailableTimeSlotsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AvailableTimeSlotsInputRepresentationNormalized;
@@ -14,6 +14,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
14
14
  * (none)
15
15
  */
16
16
  export interface AvailableTimeSlotsInputRepresentationNormalized {
17
+ /** Whether the service resource assignment type is automatic */
18
+ automaticResourceAssignment?: boolean;
17
19
  /** Latest time that an appointment can end. */
18
20
  endTime?: string;
19
21
  /** The IDs of the engagement channel type records. Time slot availability is based on the selected engagement channel types. */
@@ -34,6 +36,7 @@ export interface AvailableTimeSlotsInputRepresentationNormalized {
34
36
  * (none)
35
37
  */
36
38
  export interface AvailableTimeSlotsInputRepresentation {
39
+ automaticResourceAssignment?: boolean;
37
40
  endTime?: string;
38
41
  engagementChannelTypeIds: Array<string>;
39
42
  serviceResourceIds: Array<string>;
@@ -4,7 +4,7 @@ import { LearningStatus as LearningStatus_LearningStatus } from './LearningStatu
4
4
  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';
5
5
  import { LearningCourseOutput as LearningCourseOutput_LearningCourseOutput } from './LearningCourseOutput';
6
6
  import { LearningProgramOutput as LearningProgramOutput_LearningProgramOutput } from './LearningProgramOutput';
7
- export declare const VERSION = "626a699b7d94feb238f5a5a6641daa16";
7
+ export declare const VERSION = "53768b57ff9125a318d0183e2f3bb7ea";
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: LearningFulfiller, existing: LearningFulfillerNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningFulfillerNormalized;
@@ -19,9 +19,13 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
19
19
  * (none)
20
20
  */
21
21
  export interface LearningFulfillerNormalized {
22
+ /** Is Repeat */
23
+ isRepeat?: boolean;
22
24
  learning?: LearningOutput_LearningOutput;
23
25
  learningOutcomeItem?: LearningOutcomeItemOutput_LearningOutcomeItemOutput;
24
26
  learningStatus?: LearningStatus_LearningStatus;
27
+ /** Other Learning Status */
28
+ otherLearningStatus?: Array<LearningStatus_LearningStatus>;
25
29
  }
26
30
  /**
27
31
  * Representation of Learning Fulfiller.
@@ -30,7 +34,9 @@ export interface LearningFulfillerNormalized {
30
34
  * (none)
31
35
  */
32
36
  export interface LearningFulfiller {
37
+ isRepeat?: boolean;
33
38
  learning?: LearningCourseOutput_LearningCourseOutput | LearningProgramOutput_LearningProgramOutput;
34
39
  learningOutcomeItem?: LearningOutcomeItemOutput_LearningOutcomeItemOutput;
35
40
  learningStatus?: LearningStatus_LearningStatus;
41
+ otherLearningStatus?: Array<LearningStatus_LearningStatus>;
36
42
  }
@@ -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 = "04195fa237e27aac9521bfa5bce78229";
2
+ export declare const VERSION = "bb4a0ebae85a5a8a8c1b13014ebd491f";
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: LearningStatus, existing: LearningStatusNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningStatusNormalized;
@@ -28,8 +28,12 @@ export interface LearningStatusNormalized {
28
28
  learningId?: string;
29
29
  /** The letter grade awarded to the learner for completing the course */
30
30
  letterGrade?: string;
31
+ /** Specifies the List of values from Picklist values present in */
32
+ mappedStatusDefinition: Array<string>;
31
33
  /** The numeric grade awarded to the learner for completing the course */
32
34
  numericGrade?: number;
35
+ /** Specifies the default Picklist definition */
36
+ participantStatusValue: string;
33
37
  /** Specifies the type or status of the learner's result. For example, Pass or Fail. */
34
38
  resultStatus?: string;
35
39
  /** Learning status - Completed, Enrolled, Planned, Unplanned */
@@ -51,7 +55,9 @@ export interface LearningStatus {
51
55
  durationUnit?: string;
52
56
  learningId?: string;
53
57
  letterGrade?: string;
58
+ mappedStatusDefinition: Array<string>;
54
59
  numericGrade?: number;
60
+ participantStatusValue: string;
55
61
  resultStatus?: string;
56
62
  status?: string;
57
63
  unitsEarned?: number;
@@ -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 = "cfd94fbef61f52ffe43428e23e7a68c8";
2
+ export declare const VERSION = "d144e25bec059139dfc7c8e6b35f69e9";
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: TimeSlot, existing: TimeSlotNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TimeSlotNormalized;
@@ -16,6 +16,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
16
16
  export interface TimeSlotNormalized {
17
17
  /** The date and time that the time slot ends. */
18
18
  endTime?: string;
19
+ /** The engagement channel type of the time slot */
20
+ engagementChannelTypeId?: string;
19
21
  /** ID of the service resource that's associated with the time slot. */
20
22
  serviceResourceId?: string;
21
23
  /** ID of the service territory that's associated with the time slot. */
@@ -31,6 +33,7 @@ export interface TimeSlotNormalized {
31
33
  */
32
34
  export interface TimeSlot {
33
35
  endTime?: string;
36
+ engagementChannelTypeId?: string;
34
37
  serviceResourceId?: string;
35
38
  serviceTerritoryId?: string;
36
39
  startTime?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-education",
3
- "version": "1.314.0",
3
+ "version": "1.316.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.314.0"
49
+ "@salesforce/lds-bindings": "^1.316.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@salesforce/lds-compiler-plugins": "^1.314.0",
53
- "@salesforce/lds-karma": "^1.314.0"
52
+ "@salesforce/lds-compiler-plugins": "^1.316.0",
53
+ "@salesforce/lds-karma": "^1.316.0"
54
54
  },
55
55
  "nx": {
56
56
  "targets": {
package/sfdc/index.js CHANGED
@@ -4194,6 +4194,13 @@ function validate$I(obj, path = 'AvailableTimeSlotsInputRepresentation') {
4194
4194
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4195
4195
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4196
4196
  }
4197
+ if (obj.automaticResourceAssignment !== undefined) {
4198
+ const obj_automaticResourceAssignment = obj.automaticResourceAssignment;
4199
+ const path_automaticResourceAssignment = path + '.automaticResourceAssignment';
4200
+ if (typeof obj_automaticResourceAssignment !== 'boolean') {
4201
+ return new TypeError('Expected "boolean" but received "' + typeof obj_automaticResourceAssignment + '" (at "' + path_automaticResourceAssignment + '")');
4202
+ }
4203
+ }
4197
4204
  if (obj.endTime !== undefined) {
4198
4205
  const obj_endTime = obj.endTime;
4199
4206
  const path_endTime = path + '.endTime';
@@ -4253,7 +4260,7 @@ function validate$I(obj, path = 'AvailableTimeSlotsInputRepresentation') {
4253
4260
  return v_error === undefined ? null : v_error;
4254
4261
  }
4255
4262
 
4256
- const VERSION$o = "cfd94fbef61f52ffe43428e23e7a68c8";
4263
+ const VERSION$o = "d144e25bec059139dfc7c8e6b35f69e9";
4257
4264
  function validate$H(obj, path = 'TimeSlot') {
4258
4265
  const v_error = (() => {
4259
4266
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4266,6 +4273,13 @@ function validate$H(obj, path = 'TimeSlot') {
4266
4273
  return new TypeError('Expected "string" but received "' + typeof obj_endTime + '" (at "' + path_endTime + '")');
4267
4274
  }
4268
4275
  }
4276
+ if (obj.engagementChannelTypeId !== undefined) {
4277
+ const obj_engagementChannelTypeId = obj.engagementChannelTypeId;
4278
+ const path_engagementChannelTypeId = path + '.engagementChannelTypeId';
4279
+ if (typeof obj_engagementChannelTypeId !== 'string') {
4280
+ return new TypeError('Expected "string" but received "' + typeof obj_engagementChannelTypeId + '" (at "' + path_engagementChannelTypeId + '")');
4281
+ }
4282
+ }
4269
4283
  if (obj.serviceResourceId !== undefined) {
4270
4284
  const obj_serviceResourceId = obj.serviceResourceId;
4271
4285
  const path_serviceResourceId = path + '.serviceResourceId';
@@ -4301,6 +4315,11 @@ const select$F = function TimeSlotSelect() {
4301
4315
  kind: 'Scalar',
4302
4316
  required: false
4303
4317
  },
4318
+ {
4319
+ name: 'engagementChannelTypeId',
4320
+ kind: 'Scalar',
4321
+ required: false
4322
+ },
4304
4323
  {
4305
4324
  name: 'serviceResourceId',
4306
4325
  kind: 'Scalar',
@@ -4333,6 +4352,19 @@ function equals$o(existing, incoming) {
4333
4352
  return false;
4334
4353
  }
4335
4354
  }
4355
+ const existing_engagementChannelTypeId = existing.engagementChannelTypeId;
4356
+ const incoming_engagementChannelTypeId = incoming.engagementChannelTypeId;
4357
+ // if at least one of these optionals is defined
4358
+ if (existing_engagementChannelTypeId !== undefined || incoming_engagementChannelTypeId !== undefined) {
4359
+ // if one of these is not defined we know the other is defined and therefore
4360
+ // not equal
4361
+ if (existing_engagementChannelTypeId === undefined || incoming_engagementChannelTypeId === undefined) {
4362
+ return false;
4363
+ }
4364
+ if (!(existing_engagementChannelTypeId === incoming_engagementChannelTypeId)) {
4365
+ return false;
4366
+ }
4367
+ }
4336
4368
  const existing_serviceResourceId = existing.serviceResourceId;
4337
4369
  const incoming_serviceResourceId = incoming.serviceResourceId;
4338
4370
  // if at least one of these optionals is defined
@@ -4458,7 +4490,7 @@ function select$D(luvio, params) {
4458
4490
  return select$E();
4459
4491
  }
4460
4492
  function keyBuilder$r(luvio, params) {
4461
- return keyPrefix + '::AvailableTimeSlotsOuputRepresentation:(' + (params.body.availableTimeSlotsInput.endTime === undefined ? 'availableTimeSlotsInput.endTime' : 'availableTimeSlotsInput.endTime:' + params.body.availableTimeSlotsInput.endTime) + '::' + 'availableTimeSlotsInput.engagementChannelTypeIds:' + params.body.availableTimeSlotsInput.engagementChannelTypeIds + '::' + 'availableTimeSlotsInput.serviceResourceIds:' + params.body.availableTimeSlotsInput.serviceResourceIds + '::' + 'availableTimeSlotsInput.serviceTerritoryIds:' + params.body.availableTimeSlotsInput.serviceTerritoryIds + '::' + (params.body.availableTimeSlotsInput.startTime === undefined ? 'availableTimeSlotsInput.startTime' : 'availableTimeSlotsInput.startTime:' + params.body.availableTimeSlotsInput.startTime) + '::' + 'availableTimeSlotsInput.workTypeGroupId:' + params.body.availableTimeSlotsInput.workTypeGroupId + ')';
4493
+ return keyPrefix + '::AvailableTimeSlotsOuputRepresentation:(' + (params.body.availableTimeSlotsInput.automaticResourceAssignment === undefined ? 'availableTimeSlotsInput.automaticResourceAssignment' : 'availableTimeSlotsInput.automaticResourceAssignment:' + params.body.availableTimeSlotsInput.automaticResourceAssignment) + '::' + (params.body.availableTimeSlotsInput.endTime === undefined ? 'availableTimeSlotsInput.endTime' : 'availableTimeSlotsInput.endTime:' + params.body.availableTimeSlotsInput.endTime) + '::' + 'availableTimeSlotsInput.engagementChannelTypeIds:' + params.body.availableTimeSlotsInput.engagementChannelTypeIds + '::' + 'availableTimeSlotsInput.serviceResourceIds:' + params.body.availableTimeSlotsInput.serviceResourceIds + '::' + 'availableTimeSlotsInput.serviceTerritoryIds:' + params.body.availableTimeSlotsInput.serviceTerritoryIds + '::' + (params.body.availableTimeSlotsInput.startTime === undefined ? 'availableTimeSlotsInput.startTime' : 'availableTimeSlotsInput.startTime:' + params.body.availableTimeSlotsInput.startTime) + '::' + 'availableTimeSlotsInput.workTypeGroupId:' + params.body.availableTimeSlotsInput.workTypeGroupId + ')';
4462
4494
  }
4463
4495
  function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
4464
4496
  getTypeCacheKeys$e(storeKeyMap, luvio, response, () => keyBuilder$r(luvio, resourceParams));
@@ -5342,9 +5374,26 @@ function validate$A(obj, path = 'LearningStatus') {
5342
5374
  return new TypeError('Expected "string" but received "' + typeof obj_letterGrade + '" (at "' + path_letterGrade + '")');
5343
5375
  }
5344
5376
  }
5377
+ const obj_mappedStatusDefinition = obj.mappedStatusDefinition;
5378
+ const path_mappedStatusDefinition = path + '.mappedStatusDefinition';
5379
+ if (!ArrayIsArray(obj_mappedStatusDefinition)) {
5380
+ return new TypeError('Expected "array" but received "' + typeof obj_mappedStatusDefinition + '" (at "' + path_mappedStatusDefinition + '")');
5381
+ }
5382
+ for (let i = 0; i < obj_mappedStatusDefinition.length; i++) {
5383
+ const obj_mappedStatusDefinition_item = obj_mappedStatusDefinition[i];
5384
+ const path_mappedStatusDefinition_item = path_mappedStatusDefinition + '[' + i + ']';
5385
+ if (typeof obj_mappedStatusDefinition_item !== 'string') {
5386
+ return new TypeError('Expected "string" but received "' + typeof obj_mappedStatusDefinition_item + '" (at "' + path_mappedStatusDefinition_item + '")');
5387
+ }
5388
+ }
5345
5389
  if (obj.numericGrade !== undefined) {
5346
5390
  obj.numericGrade;
5347
5391
  }
5392
+ const obj_participantStatusValue = obj.participantStatusValue;
5393
+ const path_participantStatusValue = path + '.participantStatusValue';
5394
+ if (typeof obj_participantStatusValue !== 'string') {
5395
+ return new TypeError('Expected "string" but received "' + typeof obj_participantStatusValue + '" (at "' + path_participantStatusValue + '")');
5396
+ }
5348
5397
  if (obj.resultStatus !== undefined) {
5349
5398
  const obj_resultStatus = obj.resultStatus;
5350
5399
  const path_resultStatus = path + '.resultStatus';
@@ -5371,6 +5420,13 @@ function validate$z(obj, path = 'LearningFulfiller') {
5371
5420
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5372
5421
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5373
5422
  }
5423
+ if (obj.isRepeat !== undefined) {
5424
+ const obj_isRepeat = obj.isRepeat;
5425
+ const path_isRepeat = path + '.isRepeat';
5426
+ if (typeof obj_isRepeat !== 'boolean') {
5427
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isRepeat + '" (at "' + path_isRepeat + '")');
5428
+ }
5429
+ }
5374
5430
  if (obj.learning !== undefined) {
5375
5431
  const obj_learning = obj.learning;
5376
5432
  const path_learning = path + '.learning';
@@ -5401,6 +5457,23 @@ function validate$z(obj, path = 'LearningFulfiller') {
5401
5457
  return new TypeError(message);
5402
5458
  }
5403
5459
  }
5460
+ if (obj.otherLearningStatus !== undefined) {
5461
+ const obj_otherLearningStatus = obj.otherLearningStatus;
5462
+ const path_otherLearningStatus = path + '.otherLearningStatus';
5463
+ if (!ArrayIsArray(obj_otherLearningStatus)) {
5464
+ return new TypeError('Expected "array" but received "' + typeof obj_otherLearningStatus + '" (at "' + path_otherLearningStatus + '")');
5465
+ }
5466
+ for (let i = 0; i < obj_otherLearningStatus.length; i++) {
5467
+ const obj_otherLearningStatus_item = obj_otherLearningStatus[i];
5468
+ const path_otherLearningStatus_item = path_otherLearningStatus + '[' + i + ']';
5469
+ const referencepath_otherLearningStatus_itemValidationError = validate$A(obj_otherLearningStatus_item, path_otherLearningStatus_item);
5470
+ if (referencepath_otherLearningStatus_itemValidationError !== null) {
5471
+ let message = 'Object doesn\'t match LearningStatus (at "' + path_otherLearningStatus_item + '")\n';
5472
+ message += referencepath_otherLearningStatus_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5473
+ return new TypeError(message);
5474
+ }
5475
+ }
5476
+ }
5404
5477
  })();
5405
5478
  return v_error === undefined ? null : v_error;
5406
5479
  }
@@ -8091,7 +8164,7 @@ const getProgramTermApplicationTimelinesAdapterFactory = (luvio) => function edu
8091
8164
  buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
8092
8165
  };
8093
8166
 
8094
- const VERSION$7 = "edee4d1544f0cd9bf88084a4ef5dcf39";
8167
+ const VERSION$7 = "676b2222ad16a1334bad764302c92cdf";
8095
8168
  function validate$d(obj, path = 'AvailableTeam') {
8096
8169
  const v_error = (() => {
8097
8170
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -8148,6 +8221,13 @@ function validate$d(obj, path = 'AvailableTeam') {
8148
8221
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
8149
8222
  }
8150
8223
  }
8224
+ if (obj.resourceAssignmentType !== undefined) {
8225
+ const obj_resourceAssignmentType = obj.resourceAssignmentType;
8226
+ const path_resourceAssignmentType = path + '.resourceAssignmentType';
8227
+ if (typeof obj_resourceAssignmentType !== 'string') {
8228
+ return new TypeError('Expected "string" but received "' + typeof obj_resourceAssignmentType + '" (at "' + path_resourceAssignmentType + '")');
8229
+ }
8230
+ }
8151
8231
  if (obj.teamId !== undefined) {
8152
8232
  const obj_teamId = obj.teamId;
8153
8233
  const path_teamId = path + '.teamId';
@@ -8194,6 +8274,11 @@ const select$e = function AvailableTeamSelect() {
8194
8274
  kind: 'Scalar',
8195
8275
  required: false
8196
8276
  },
8277
+ {
8278
+ name: 'resourceAssignmentType',
8279
+ kind: 'Scalar',
8280
+ required: false
8281
+ },
8197
8282
  {
8198
8283
  name: 'teamId',
8199
8284
  kind: 'Scalar',
@@ -8268,6 +8353,19 @@ function equals$7(existing, incoming) {
8268
8353
  return false;
8269
8354
  }
8270
8355
  }
8356
+ const existing_resourceAssignmentType = existing.resourceAssignmentType;
8357
+ const incoming_resourceAssignmentType = incoming.resourceAssignmentType;
8358
+ // if at least one of these optionals is defined
8359
+ if (existing_resourceAssignmentType !== undefined || incoming_resourceAssignmentType !== undefined) {
8360
+ // if one of these is not defined we know the other is defined and therefore
8361
+ // not equal
8362
+ if (existing_resourceAssignmentType === undefined || incoming_resourceAssignmentType === undefined) {
8363
+ return false;
8364
+ }
8365
+ if (!(existing_resourceAssignmentType === incoming_resourceAssignmentType)) {
8366
+ return false;
8367
+ }
8368
+ }
8271
8369
  const existing_teamId = existing.teamId;
8272
8370
  const incoming_teamId = incoming.teamId;
8273
8371
  // if at least one of these optionals is defined
@@ -10143,4 +10241,4 @@ withDefaultLuvio((luvio) => {
10143
10241
  });
10144
10242
 
10145
10243
  export { createCarePlans, createLearnings, 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, 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 };
10146
- // version: 1.314.0-022b0c843b
10244
+ // version: 1.316.0-4453f1e2b6
package/src/raml/api.raml CHANGED
@@ -484,6 +484,10 @@ types:
484
484
  account.
485
485
  type: string
486
486
  required: false
487
+ resourceAssignmentType:
488
+ description: The resource assignment type for this team.
489
+ type: string
490
+ required: false
487
491
  teamId:
488
492
  description: The ID of the team that's available to support the associated
489
493
  account.
@@ -494,6 +498,10 @@ types:
494
498
  slots.
495
499
  type: object
496
500
  properties:
501
+ automaticResourceAssignment:
502
+ description: Whether the service resource assignment type is automatic
503
+ type: boolean
504
+ required: false
497
505
  endTime:
498
506
  description: Latest time that an appointment can end.
499
507
  type: string
@@ -1831,6 +1839,10 @@ types:
1831
1839
  description: Representation of Learning Fulfiller.
1832
1840
  type: object
1833
1841
  properties:
1842
+ isRepeat:
1843
+ description: Is Repeat
1844
+ type: boolean
1845
+ required: false
1834
1846
  learning:
1835
1847
  description: Learning of the learning fulfiller
1836
1848
  type: LearningOutput
@@ -1843,6 +1855,12 @@ types:
1843
1855
  description: Learning Status
1844
1856
  type: LearningStatus
1845
1857
  required: false
1858
+ otherLearningStatus:
1859
+ description: Other Learning Status
1860
+ type: array
1861
+ required: false
1862
+ items:
1863
+ type: LearningStatus
1846
1864
 
1847
1865
  LearningOutcomeItemOutput:
1848
1866
  description: Representation of Learning Outcome Item.
@@ -2170,11 +2188,19 @@ types:
2170
2188
  description: The letter grade awarded to the learner for completing the course
2171
2189
  type: string
2172
2190
  required: false
2191
+ mappedStatusDefinition:
2192
+ description: Specifies the List of values from Picklist values present in
2193
+ type: array
2194
+ items:
2195
+ type: string
2173
2196
  numericGrade:
2174
2197
  description: The numeric grade awarded to the learner for completing the course
2175
2198
  format: double
2176
2199
  type: number
2177
2200
  required: false
2201
+ participantStatusValue:
2202
+ description: Specifies the default Picklist definition
2203
+ type: string
2178
2204
  resultStatus:
2179
2205
  description: Specifies the type or status of the learner's result. For example,
2180
2206
  Pass or Fail.
@@ -2810,6 +2836,10 @@ types:
2810
2836
  description: The date and time that the time slot ends.
2811
2837
  type: string
2812
2838
  required: false
2839
+ engagementChannelTypeId:
2840
+ description: The engagement channel type of the time slot
2841
+ type: string
2842
+ required: false
2813
2843
  serviceResourceId:
2814
2844
  description: ID of the service resource that's associated with the time slot.
2815
2845
  type: string