@salesforce/lds-adapters-platform-enablement 1.142.0 → 1.142.1

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.
@@ -75,6 +75,7 @@ var DiscriminatorValues;
75
75
  (function (DiscriminatorValues) {
76
76
  DiscriminatorValues["Task"] = "Task";
77
77
  DiscriminatorValues["Section"] = "Section";
78
+ DiscriminatorValues["Milestone"] = "Milestone";
78
79
  })(DiscriminatorValues || (DiscriminatorValues = {}));
79
80
  const VERSION$3 = "a9470f37b0d95500b425222897fff882";
80
81
  function validate$3(obj, path = 'EnablementProgramSummaryItemRepresentation') {
@@ -168,8 +169,8 @@ function equals$3(existing, incoming) {
168
169
  return true;
169
170
  }
170
171
 
171
- const VERSION$2 = "4c8624037e7270f09e6a41f95632e74b";
172
- function validate$2(obj, path = 'EnablementProgramSummaryTaskRepresentation') {
172
+ const VERSION$2 = "9bdf41358e75966dd0735d691f06201a";
173
+ function validate$2(obj, path = 'EnablementProgramSummaryMilestoneRepresentation') {
173
174
  const validateEnablementProgramSummaryItemRepresentation_validateError = validate$3(obj, path);
174
175
  if (validateEnablementProgramSummaryItemRepresentation_validateError !== null) {
175
176
  return validateEnablementProgramSummaryItemRepresentation_validateError;
@@ -282,32 +283,6 @@ function validate$2(obj, path = 'EnablementProgramSummaryTaskRepresentation') {
282
283
  message += '\n' + obj_dueDate_union1.split('\n').map((line) => '\t' + line).join('\n');
283
284
  return new TypeError(message);
284
285
  }
285
- const obj_enablementProgramSectionId = obj.enablementProgramSectionId;
286
- const path_enablementProgramSectionId = path + '.enablementProgramSectionId';
287
- let obj_enablementProgramSectionId_union0 = null;
288
- const obj_enablementProgramSectionId_union0_error = (() => {
289
- if (typeof obj_enablementProgramSectionId !== 'string') {
290
- return new TypeError('Expected "string" but received "' + typeof obj_enablementProgramSectionId + '" (at "' + path_enablementProgramSectionId + '")');
291
- }
292
- })();
293
- if (obj_enablementProgramSectionId_union0_error != null) {
294
- obj_enablementProgramSectionId_union0 = obj_enablementProgramSectionId_union0_error.message;
295
- }
296
- let obj_enablementProgramSectionId_union1 = null;
297
- const obj_enablementProgramSectionId_union1_error = (() => {
298
- if (obj_enablementProgramSectionId !== null) {
299
- return new TypeError('Expected "null" but received "' + typeof obj_enablementProgramSectionId + '" (at "' + path_enablementProgramSectionId + '")');
300
- }
301
- })();
302
- if (obj_enablementProgramSectionId_union1_error != null) {
303
- obj_enablementProgramSectionId_union1 = obj_enablementProgramSectionId_union1_error.message;
304
- }
305
- if (obj_enablementProgramSectionId_union0 && obj_enablementProgramSectionId_union1) {
306
- let message = 'Object doesn\'t match union (at "' + path_enablementProgramSectionId + '")';
307
- message += '\n' + obj_enablementProgramSectionId_union0.split('\n').map((line) => '\t' + line).join('\n');
308
- message += '\n' + obj_enablementProgramSectionId_union1.split('\n').map((line) => '\t' + line).join('\n');
309
- return new TypeError(message);
310
- }
311
286
  const obj_isCompleted = obj.isCompleted;
312
287
  const path_isCompleted = path + '.isCompleted';
313
288
  let obj_isCompleted_union0 = null;
@@ -360,32 +335,6 @@ function validate$2(obj, path = 'EnablementProgramSummaryTaskRepresentation') {
360
335
  message += '\n' + obj_isOverdue_union1.split('\n').map((line) => '\t' + line).join('\n');
361
336
  return new TypeError(message);
362
337
  }
363
- const obj_learningItemId = obj.learningItemId;
364
- const path_learningItemId = path + '.learningItemId';
365
- let obj_learningItemId_union0 = null;
366
- const obj_learningItemId_union0_error = (() => {
367
- if (typeof obj_learningItemId !== 'string') {
368
- return new TypeError('Expected "string" but received "' + typeof obj_learningItemId + '" (at "' + path_learningItemId + '")');
369
- }
370
- })();
371
- if (obj_learningItemId_union0_error != null) {
372
- obj_learningItemId_union0 = obj_learningItemId_union0_error.message;
373
- }
374
- let obj_learningItemId_union1 = null;
375
- const obj_learningItemId_union1_error = (() => {
376
- if (obj_learningItemId !== null) {
377
- return new TypeError('Expected "null" but received "' + typeof obj_learningItemId + '" (at "' + path_learningItemId + '")');
378
- }
379
- })();
380
- if (obj_learningItemId_union1_error != null) {
381
- obj_learningItemId_union1 = obj_learningItemId_union1_error.message;
382
- }
383
- if (obj_learningItemId_union0 && obj_learningItemId_union1) {
384
- let message = 'Object doesn\'t match union (at "' + path_learningItemId + '")';
385
- message += '\n' + obj_learningItemId_union0.split('\n').map((line) => '\t' + line).join('\n');
386
- message += '\n' + obj_learningItemId_union1.split('\n').map((line) => '\t' + line).join('\n');
387
- return new TypeError(message);
388
- }
389
338
  const obj_milestoneResult = obj.milestoneResult;
390
339
  const path_milestoneResult = path + '.milestoneResult';
391
340
  let obj_milestoneResult_union0 = null;
@@ -469,20 +418,10 @@ function validate$2(obj, path = 'EnablementProgramSummaryTaskRepresentation') {
469
418
  if (typeof obj_programDay !== 'number' || (typeof obj_programDay === 'number' && Math.floor(obj_programDay) !== obj_programDay)) {
470
419
  return new TypeError('Expected "integer" but received "' + typeof obj_programDay + '" (at "' + path_programDay + '")');
471
420
  }
472
- const obj_taskCategory = obj.taskCategory;
473
- const path_taskCategory = path + '.taskCategory';
474
- if (typeof obj_taskCategory !== 'string') {
475
- return new TypeError('Expected "string" but received "' + typeof obj_taskCategory + '" (at "' + path_taskCategory + '")');
476
- }
477
- const obj_taskSubCategory = obj.taskSubCategory;
478
- const path_taskSubCategory = path + '.taskSubCategory';
479
- if (typeof obj_taskSubCategory !== 'string') {
480
- return new TypeError('Expected "string" but received "' + typeof obj_taskSubCategory + '" (at "' + path_taskSubCategory + '")');
481
- }
482
421
  })();
483
422
  return v_error === undefined ? null : v_error;
484
423
  }
485
- const select$4 = function EnablementProgramSummaryTaskRepresentationSelect() {
424
+ const select$4 = function EnablementProgramSummaryMilestoneRepresentationSelect() {
486
425
  const { selections: EnablementProgramSummaryItemRepresentationSelections } = select$5();
487
426
  return {
488
427
  kind: 'Fragment',
@@ -506,10 +445,6 @@ const select$4 = function EnablementProgramSummaryTaskRepresentationSelect() {
506
445
  name: 'dueDate',
507
446
  kind: 'Scalar'
508
447
  },
509
- {
510
- name: 'enablementProgramSectionId',
511
- kind: 'Scalar'
512
- },
513
448
  {
514
449
  name: 'isCompleted',
515
450
  kind: 'Scalar'
@@ -518,10 +453,6 @@ const select$4 = function EnablementProgramSummaryTaskRepresentationSelect() {
518
453
  name: 'isOverdue',
519
454
  kind: 'Scalar'
520
455
  },
521
- {
522
- name: 'learningItemId',
523
- kind: 'Scalar'
524
- },
525
456
  {
526
457
  name: 'milestoneResult',
527
458
  kind: 'Scalar'
@@ -537,14 +468,6 @@ const select$4 = function EnablementProgramSummaryTaskRepresentationSelect() {
537
468
  {
538
469
  name: 'programDay',
539
470
  kind: 'Scalar'
540
- },
541
- {
542
- name: 'taskCategory',
543
- kind: 'Scalar'
544
- },
545
- {
546
- name: 'taskSubCategory',
547
- kind: 'Scalar'
548
471
  }
549
472
  ]
550
473
  };
@@ -558,16 +481,6 @@ function equals$2(existing, incoming) {
558
481
  if (!(existing_programDay === incoming_programDay)) {
559
482
  return false;
560
483
  }
561
- const existing_taskCategory = existing.taskCategory;
562
- const incoming_taskCategory = incoming.taskCategory;
563
- if (!(existing_taskCategory === incoming_taskCategory)) {
564
- return false;
565
- }
566
- const existing_taskSubCategory = existing.taskSubCategory;
567
- const incoming_taskSubCategory = incoming.taskSubCategory;
568
- if (!(existing_taskSubCategory === incoming_taskSubCategory)) {
569
- return false;
570
- }
571
484
  const existing_completedDate = existing.completedDate;
572
485
  const incoming_completedDate = incoming.completedDate;
573
486
  if (!(existing_completedDate === incoming_completedDate)) {
@@ -588,11 +501,6 @@ function equals$2(existing, incoming) {
588
501
  if (!(existing_dueDate === incoming_dueDate)) {
589
502
  return false;
590
503
  }
591
- const existing_enablementProgramSectionId = existing.enablementProgramSectionId;
592
- const incoming_enablementProgramSectionId = incoming.enablementProgramSectionId;
593
- if (!(existing_enablementProgramSectionId === incoming_enablementProgramSectionId)) {
594
- return false;
595
- }
596
504
  const existing_isCompleted = existing.isCompleted;
597
505
  const incoming_isCompleted = incoming.isCompleted;
598
506
  if (!(existing_isCompleted === incoming_isCompleted)) {
@@ -603,11 +511,6 @@ function equals$2(existing, incoming) {
603
511
  if (!(existing_isOverdue === incoming_isOverdue)) {
604
512
  return false;
605
513
  }
606
- const existing_learningItemId = existing.learningItemId;
607
- const incoming_learningItemId = incoming.learningItemId;
608
- if (!(existing_learningItemId === incoming_learningItemId)) {
609
- return false;
610
- }
611
514
  const existing_milestoneResult = existing.milestoneResult;
612
515
  const incoming_milestoneResult = incoming.milestoneResult;
613
516
  if (!(existing_milestoneResult === incoming_milestoneResult)) {
@@ -627,7 +530,7 @@ function equals$2(existing, incoming) {
627
530
  }
628
531
 
629
532
  const TTL = 15000;
630
- const VERSION$1 = "83df796ee9af3bf09f5729eac8b86d08";
533
+ const VERSION$1 = "e76fad758504d695ddffa1cdade1a181";
631
534
  function validate$1(obj, path = 'EnablementProgramSummaryRepresentation') {
632
535
  const v_error = (() => {
633
536
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -755,7 +658,7 @@ function validate$1(obj, path = 'EnablementProgramSummaryRepresentation') {
755
658
  const obj_outcome_union0_error = (() => {
756
659
  const referencepath_outcomeValidationError = validate$2(obj_outcome, path_outcome);
757
660
  if (referencepath_outcomeValidationError !== null) {
758
- let message = 'Object doesn\'t match EnablementProgramSummaryTaskRepresentation (at "' + path_outcome + '")\n';
661
+ let message = 'Object doesn\'t match EnablementProgramSummaryMilestoneRepresentation (at "' + path_outcome + '")\n';
759
662
  message += referencepath_outcomeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
760
663
  return new TypeError(message);
761
664
  }
@@ -854,7 +757,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
854
757
  return input;
855
758
  }
856
759
  const select$3 = function EnablementProgramSummaryRepresentationSelect() {
857
- const { selections: EnablementProgramSummaryTaskRepresentation__selections, opaque: EnablementProgramSummaryTaskRepresentation__opaque, } = select$4();
760
+ const { selections: EnablementProgramSummaryMilestoneRepresentation__selections, opaque: EnablementProgramSummaryMilestoneRepresentation__opaque, } = select$4();
858
761
  return {
859
762
  kind: 'Fragment',
860
763
  version: VERSION$1,
@@ -885,7 +788,7 @@ const select$3 = function EnablementProgramSummaryRepresentationSelect() {
885
788
  name: 'outcome',
886
789
  kind: 'Object',
887
790
  nullable: true,
888
- selections: EnablementProgramSummaryTaskRepresentation__selections
791
+ selections: EnablementProgramSummaryMilestoneRepresentation__selections
889
792
  },
890
793
  {
891
794
  name: 'status',
@@ -1,7 +1,8 @@
1
1
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentUnionSelection as $64$luvio_engine_FragmentUnionSelection, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
2
  export declare enum DiscriminatorValues {
3
3
  Task = "Task",
4
- Section = "Section"
4
+ Section = "Section",
5
+ Milestone = "Milestone"
5
6
  }
6
7
  export declare const VERSION = "a9470f37b0d95500b425222897fff882";
7
8
  export declare function validate(obj: any, path?: string): TypeError | null;
@@ -0,0 +1,57 @@
1
+ import { EnablementProgramSummaryItemRepresentation as EnablementProgramSummaryItemRepresentation_EnablementProgramSummaryItemRepresentation } from './EnablementProgramSummaryItemRepresentation';
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
+ export declare const VERSION = "9bdf41358e75966dd0735d691f06201a";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: EnablementProgramSummaryMilestoneRepresentation, existing: EnablementProgramSummaryMilestoneRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EnablementProgramSummaryMilestoneRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: EnablementProgramSummaryMilestoneRepresentationNormalized, incoming: EnablementProgramSummaryMilestoneRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EnablementProgramSummaryMilestoneRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
11
+ /**
12
+ * Runtime representation of enablement program milestone.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface EnablementProgramSummaryMilestoneRepresentationNormalized extends EnablementProgramSummaryItemRepresentation_EnablementProgramSummaryItemRepresentation {
18
+ /** The date the item was completed */
19
+ completedDate: string | null;
20
+ /** Percent complete for the current user */
21
+ completedPercent: number | null;
22
+ /** The total contributing record count */
23
+ contributingRecordCount: number | null;
24
+ /** Due date for the current assignment */
25
+ dueDate: string | null;
26
+ /** Indicates if the item is complete or not */
27
+ isCompleted: boolean | null;
28
+ /** Indicates if the item is overdue or not */
29
+ isOverdue: boolean | null;
30
+ /** The result value of if the task is of measure type */
31
+ milestoneResult: number | null;
32
+ /** Milestone Target of the enablement task */
33
+ milestoneTarget: number | null;
34
+ /** The minimum sample record size */
35
+ minimumSampleSize: number | null;
36
+ /** The day the program task is due */
37
+ programDay: number;
38
+ }
39
+ /**
40
+ * Runtime representation of enablement program milestone.
41
+ *
42
+ * Keys:
43
+ * (none)
44
+ */
45
+ export interface EnablementProgramSummaryMilestoneRepresentation extends EnablementProgramSummaryItemRepresentation_EnablementProgramSummaryItemRepresentation {
46
+ completedDate: string | null;
47
+ completedPercent: number | null;
48
+ contributingRecordCount: number | null;
49
+ dueDate: string | null;
50
+ isCompleted: boolean | null;
51
+ isOverdue: boolean | null;
52
+ milestoneResult: number | null;
53
+ milestoneTarget: number | null;
54
+ minimumSampleSize: number | null;
55
+ programDay: number;
56
+ type: 'Milestone';
57
+ }
@@ -1,7 +1,7 @@
1
- import { EnablementProgramSummaryTaskRepresentation as EnablementProgramSummaryTaskRepresentation_EnablementProgramSummaryTaskRepresentation } from './EnablementProgramSummaryTaskRepresentation';
1
+ import { EnablementProgramSummaryMilestoneRepresentation as EnablementProgramSummaryMilestoneRepresentation_EnablementProgramSummaryMilestoneRepresentation } from './EnablementProgramSummaryMilestoneRepresentation';
2
2
  import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
3
  export declare const TTL = 15000;
4
- export declare const VERSION = "83df796ee9af3bf09f5729eac8b86d08";
4
+ export declare const VERSION = "e76fad758504d695ddffa1cdade1a181";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -36,7 +36,7 @@ export interface EnablementProgramSummaryRepresentationNormalized {
36
36
  /** Learning Item Id of the enablement program */
37
37
  learningItemId: string | null;
38
38
  /** Outcome of the enablement program */
39
- outcome: EnablementProgramSummaryTaskRepresentation_EnablementProgramSummaryTaskRepresentation | null;
39
+ outcome: EnablementProgramSummaryMilestoneRepresentation_EnablementProgramSummaryMilestoneRepresentation | null;
40
40
  /** Status of the enablement program */
41
41
  status: string;
42
42
  /** System modification timestamp of the enablement program */
@@ -56,7 +56,7 @@ export interface EnablementProgramSummaryRepresentation {
56
56
  id: string | null;
57
57
  items: Array<unknown>;
58
58
  learningItemId: string | null;
59
- outcome: EnablementProgramSummaryTaskRepresentation_EnablementProgramSummaryTaskRepresentation | null;
59
+ outcome: EnablementProgramSummaryMilestoneRepresentation_EnablementProgramSummaryMilestoneRepresentation | null;
60
60
  status: string;
61
61
  systemModStamp?: string | null;
62
62
  title: string | null;
@@ -1,6 +1,6 @@
1
1
  import { EnablementProgramSummaryItemRepresentation as EnablementProgramSummaryItemRepresentation_EnablementProgramSummaryItemRepresentation } from './EnablementProgramSummaryItemRepresentation';
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
- export declare const VERSION = "4c8624037e7270f09e6a41f95632e74b";
3
+ export declare const VERSION = "cdd7f06fc967d6cdf1c9865a039b18b1";
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: EnablementProgramSummaryTaskRepresentation, existing: EnablementProgramSummaryTaskRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EnablementProgramSummaryTaskRepresentationNormalized;
@@ -17,26 +17,12 @@ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: E
17
17
  export interface EnablementProgramSummaryTaskRepresentationNormalized extends EnablementProgramSummaryItemRepresentation_EnablementProgramSummaryItemRepresentation {
18
18
  /** The date the item was completed */
19
19
  completedDate: string | null;
20
- /** Percent complete for the current user */
21
- completedPercent: number | null;
22
- /** The total contributing record count */
23
- contributingRecordCount: number | null;
24
20
  /** Due date for the current assignment */
25
21
  dueDate: string | null;
26
- /** Program Section Id of the enablement task */
27
- enablementProgramSectionId: string | null;
28
- /** Indicates if the item is complete or not */
29
- isCompleted: boolean | null;
30
22
  /** Indicates if the item is overdue or not */
31
23
  isOverdue: boolean | null;
32
24
  /** Learning Item Id of the enablement task */
33
25
  learningItemId: string | null;
34
- /** The result value of if the task is of measure type */
35
- milestoneResult: number | null;
36
- /** Milestone Target of the enablement task */
37
- milestoneTarget: number | null;
38
- /** The minimum sample record size */
39
- minimumSampleSize: number | null;
40
26
  /** The day the program task is due */
41
27
  programDay: number;
42
28
  /** Category Type of the enablement task */
@@ -52,16 +38,9 @@ export interface EnablementProgramSummaryTaskRepresentationNormalized extends En
52
38
  */
53
39
  export interface EnablementProgramSummaryTaskRepresentation extends EnablementProgramSummaryItemRepresentation_EnablementProgramSummaryItemRepresentation {
54
40
  completedDate: string | null;
55
- completedPercent: number | null;
56
- contributingRecordCount: number | null;
57
41
  dueDate: string | null;
58
- enablementProgramSectionId: string | null;
59
- isCompleted: boolean | null;
60
42
  isOverdue: boolean | null;
61
43
  learningItemId: string | null;
62
- milestoneResult: number | null;
63
- milestoneTarget: number | null;
64
- minimumSampleSize: number | null;
65
44
  programDay: number;
66
45
  taskCategory: string;
67
46
  taskSubCategory: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-enablement",
3
- "version": "1.142.0",
3
+ "version": "1.142.1",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Wire adapters for enablement APIs",
6
6
  "main": "dist/es/es2018/platform-enablement.js",
package/sfdc/index.js CHANGED
@@ -85,6 +85,7 @@ var DiscriminatorValues;
85
85
  (function (DiscriminatorValues) {
86
86
  DiscriminatorValues["Task"] = "Task";
87
87
  DiscriminatorValues["Section"] = "Section";
88
+ DiscriminatorValues["Milestone"] = "Milestone";
88
89
  })(DiscriminatorValues || (DiscriminatorValues = {}));
89
90
  const VERSION$3 = "a9470f37b0d95500b425222897fff882";
90
91
  function validate$3(obj, path = 'EnablementProgramSummaryItemRepresentation') {
@@ -178,8 +179,8 @@ function equals$3(existing, incoming) {
178
179
  return true;
179
180
  }
180
181
 
181
- const VERSION$2 = "4c8624037e7270f09e6a41f95632e74b";
182
- function validate$2(obj, path = 'EnablementProgramSummaryTaskRepresentation') {
182
+ const VERSION$2 = "9bdf41358e75966dd0735d691f06201a";
183
+ function validate$2(obj, path = 'EnablementProgramSummaryMilestoneRepresentation') {
183
184
  const validateEnablementProgramSummaryItemRepresentation_validateError = validate$3(obj, path);
184
185
  if (validateEnablementProgramSummaryItemRepresentation_validateError !== null) {
185
186
  return validateEnablementProgramSummaryItemRepresentation_validateError;
@@ -292,32 +293,6 @@ function validate$2(obj, path = 'EnablementProgramSummaryTaskRepresentation') {
292
293
  message += '\n' + obj_dueDate_union1.split('\n').map((line) => '\t' + line).join('\n');
293
294
  return new TypeError(message);
294
295
  }
295
- const obj_enablementProgramSectionId = obj.enablementProgramSectionId;
296
- const path_enablementProgramSectionId = path + '.enablementProgramSectionId';
297
- let obj_enablementProgramSectionId_union0 = null;
298
- const obj_enablementProgramSectionId_union0_error = (() => {
299
- if (typeof obj_enablementProgramSectionId !== 'string') {
300
- return new TypeError('Expected "string" but received "' + typeof obj_enablementProgramSectionId + '" (at "' + path_enablementProgramSectionId + '")');
301
- }
302
- })();
303
- if (obj_enablementProgramSectionId_union0_error != null) {
304
- obj_enablementProgramSectionId_union0 = obj_enablementProgramSectionId_union0_error.message;
305
- }
306
- let obj_enablementProgramSectionId_union1 = null;
307
- const obj_enablementProgramSectionId_union1_error = (() => {
308
- if (obj_enablementProgramSectionId !== null) {
309
- return new TypeError('Expected "null" but received "' + typeof obj_enablementProgramSectionId + '" (at "' + path_enablementProgramSectionId + '")');
310
- }
311
- })();
312
- if (obj_enablementProgramSectionId_union1_error != null) {
313
- obj_enablementProgramSectionId_union1 = obj_enablementProgramSectionId_union1_error.message;
314
- }
315
- if (obj_enablementProgramSectionId_union0 && obj_enablementProgramSectionId_union1) {
316
- let message = 'Object doesn\'t match union (at "' + path_enablementProgramSectionId + '")';
317
- message += '\n' + obj_enablementProgramSectionId_union0.split('\n').map((line) => '\t' + line).join('\n');
318
- message += '\n' + obj_enablementProgramSectionId_union1.split('\n').map((line) => '\t' + line).join('\n');
319
- return new TypeError(message);
320
- }
321
296
  const obj_isCompleted = obj.isCompleted;
322
297
  const path_isCompleted = path + '.isCompleted';
323
298
  let obj_isCompleted_union0 = null;
@@ -370,32 +345,6 @@ function validate$2(obj, path = 'EnablementProgramSummaryTaskRepresentation') {
370
345
  message += '\n' + obj_isOverdue_union1.split('\n').map((line) => '\t' + line).join('\n');
371
346
  return new TypeError(message);
372
347
  }
373
- const obj_learningItemId = obj.learningItemId;
374
- const path_learningItemId = path + '.learningItemId';
375
- let obj_learningItemId_union0 = null;
376
- const obj_learningItemId_union0_error = (() => {
377
- if (typeof obj_learningItemId !== 'string') {
378
- return new TypeError('Expected "string" but received "' + typeof obj_learningItemId + '" (at "' + path_learningItemId + '")');
379
- }
380
- })();
381
- if (obj_learningItemId_union0_error != null) {
382
- obj_learningItemId_union0 = obj_learningItemId_union0_error.message;
383
- }
384
- let obj_learningItemId_union1 = null;
385
- const obj_learningItemId_union1_error = (() => {
386
- if (obj_learningItemId !== null) {
387
- return new TypeError('Expected "null" but received "' + typeof obj_learningItemId + '" (at "' + path_learningItemId + '")');
388
- }
389
- })();
390
- if (obj_learningItemId_union1_error != null) {
391
- obj_learningItemId_union1 = obj_learningItemId_union1_error.message;
392
- }
393
- if (obj_learningItemId_union0 && obj_learningItemId_union1) {
394
- let message = 'Object doesn\'t match union (at "' + path_learningItemId + '")';
395
- message += '\n' + obj_learningItemId_union0.split('\n').map((line) => '\t' + line).join('\n');
396
- message += '\n' + obj_learningItemId_union1.split('\n').map((line) => '\t' + line).join('\n');
397
- return new TypeError(message);
398
- }
399
348
  const obj_milestoneResult = obj.milestoneResult;
400
349
  const path_milestoneResult = path + '.milestoneResult';
401
350
  let obj_milestoneResult_union0 = null;
@@ -479,20 +428,10 @@ function validate$2(obj, path = 'EnablementProgramSummaryTaskRepresentation') {
479
428
  if (typeof obj_programDay !== 'number' || (typeof obj_programDay === 'number' && Math.floor(obj_programDay) !== obj_programDay)) {
480
429
  return new TypeError('Expected "integer" but received "' + typeof obj_programDay + '" (at "' + path_programDay + '")');
481
430
  }
482
- const obj_taskCategory = obj.taskCategory;
483
- const path_taskCategory = path + '.taskCategory';
484
- if (typeof obj_taskCategory !== 'string') {
485
- return new TypeError('Expected "string" but received "' + typeof obj_taskCategory + '" (at "' + path_taskCategory + '")');
486
- }
487
- const obj_taskSubCategory = obj.taskSubCategory;
488
- const path_taskSubCategory = path + '.taskSubCategory';
489
- if (typeof obj_taskSubCategory !== 'string') {
490
- return new TypeError('Expected "string" but received "' + typeof obj_taskSubCategory + '" (at "' + path_taskSubCategory + '")');
491
- }
492
431
  })();
493
432
  return v_error === undefined ? null : v_error;
494
433
  }
495
- const select$4 = function EnablementProgramSummaryTaskRepresentationSelect() {
434
+ const select$4 = function EnablementProgramSummaryMilestoneRepresentationSelect() {
496
435
  const { selections: EnablementProgramSummaryItemRepresentationSelections } = select$5();
497
436
  return {
498
437
  kind: 'Fragment',
@@ -516,10 +455,6 @@ const select$4 = function EnablementProgramSummaryTaskRepresentationSelect() {
516
455
  name: 'dueDate',
517
456
  kind: 'Scalar'
518
457
  },
519
- {
520
- name: 'enablementProgramSectionId',
521
- kind: 'Scalar'
522
- },
523
458
  {
524
459
  name: 'isCompleted',
525
460
  kind: 'Scalar'
@@ -528,10 +463,6 @@ const select$4 = function EnablementProgramSummaryTaskRepresentationSelect() {
528
463
  name: 'isOverdue',
529
464
  kind: 'Scalar'
530
465
  },
531
- {
532
- name: 'learningItemId',
533
- kind: 'Scalar'
534
- },
535
466
  {
536
467
  name: 'milestoneResult',
537
468
  kind: 'Scalar'
@@ -547,14 +478,6 @@ const select$4 = function EnablementProgramSummaryTaskRepresentationSelect() {
547
478
  {
548
479
  name: 'programDay',
549
480
  kind: 'Scalar'
550
- },
551
- {
552
- name: 'taskCategory',
553
- kind: 'Scalar'
554
- },
555
- {
556
- name: 'taskSubCategory',
557
- kind: 'Scalar'
558
481
  }
559
482
  ]
560
483
  };
@@ -568,16 +491,6 @@ function equals$2(existing, incoming) {
568
491
  if (!(existing_programDay === incoming_programDay)) {
569
492
  return false;
570
493
  }
571
- const existing_taskCategory = existing.taskCategory;
572
- const incoming_taskCategory = incoming.taskCategory;
573
- if (!(existing_taskCategory === incoming_taskCategory)) {
574
- return false;
575
- }
576
- const existing_taskSubCategory = existing.taskSubCategory;
577
- const incoming_taskSubCategory = incoming.taskSubCategory;
578
- if (!(existing_taskSubCategory === incoming_taskSubCategory)) {
579
- return false;
580
- }
581
494
  const existing_completedDate = existing.completedDate;
582
495
  const incoming_completedDate = incoming.completedDate;
583
496
  if (!(existing_completedDate === incoming_completedDate)) {
@@ -598,11 +511,6 @@ function equals$2(existing, incoming) {
598
511
  if (!(existing_dueDate === incoming_dueDate)) {
599
512
  return false;
600
513
  }
601
- const existing_enablementProgramSectionId = existing.enablementProgramSectionId;
602
- const incoming_enablementProgramSectionId = incoming.enablementProgramSectionId;
603
- if (!(existing_enablementProgramSectionId === incoming_enablementProgramSectionId)) {
604
- return false;
605
- }
606
514
  const existing_isCompleted = existing.isCompleted;
607
515
  const incoming_isCompleted = incoming.isCompleted;
608
516
  if (!(existing_isCompleted === incoming_isCompleted)) {
@@ -613,11 +521,6 @@ function equals$2(existing, incoming) {
613
521
  if (!(existing_isOverdue === incoming_isOverdue)) {
614
522
  return false;
615
523
  }
616
- const existing_learningItemId = existing.learningItemId;
617
- const incoming_learningItemId = incoming.learningItemId;
618
- if (!(existing_learningItemId === incoming_learningItemId)) {
619
- return false;
620
- }
621
524
  const existing_milestoneResult = existing.milestoneResult;
622
525
  const incoming_milestoneResult = incoming.milestoneResult;
623
526
  if (!(existing_milestoneResult === incoming_milestoneResult)) {
@@ -637,7 +540,7 @@ function equals$2(existing, incoming) {
637
540
  }
638
541
 
639
542
  const TTL = 15000;
640
- const VERSION$1 = "83df796ee9af3bf09f5729eac8b86d08";
543
+ const VERSION$1 = "e76fad758504d695ddffa1cdade1a181";
641
544
  function validate$1(obj, path = 'EnablementProgramSummaryRepresentation') {
642
545
  const v_error = (() => {
643
546
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -765,7 +668,7 @@ function validate$1(obj, path = 'EnablementProgramSummaryRepresentation') {
765
668
  const obj_outcome_union0_error = (() => {
766
669
  const referencepath_outcomeValidationError = validate$2(obj_outcome, path_outcome);
767
670
  if (referencepath_outcomeValidationError !== null) {
768
- let message = 'Object doesn\'t match EnablementProgramSummaryTaskRepresentation (at "' + path_outcome + '")\n';
671
+ let message = 'Object doesn\'t match EnablementProgramSummaryMilestoneRepresentation (at "' + path_outcome + '")\n';
769
672
  message += referencepath_outcomeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
770
673
  return new TypeError(message);
771
674
  }
@@ -864,7 +767,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
864
767
  return input;
865
768
  }
866
769
  const select$3 = function EnablementProgramSummaryRepresentationSelect() {
867
- const { selections: EnablementProgramSummaryTaskRepresentation__selections, opaque: EnablementProgramSummaryTaskRepresentation__opaque, } = select$4();
770
+ const { selections: EnablementProgramSummaryMilestoneRepresentation__selections, opaque: EnablementProgramSummaryMilestoneRepresentation__opaque, } = select$4();
868
771
  return {
869
772
  kind: 'Fragment',
870
773
  version: VERSION$1,
@@ -895,7 +798,7 @@ const select$3 = function EnablementProgramSummaryRepresentationSelect() {
895
798
  name: 'outcome',
896
799
  kind: 'Object',
897
800
  nullable: true,
898
- selections: EnablementProgramSummaryTaskRepresentation__selections
801
+ selections: EnablementProgramSummaryMilestoneRepresentation__selections
899
802
  },
900
803
  {
901
804
  name: 'status',
@@ -1501,4 +1404,4 @@ withDefaultLuvio((luvio) => {
1501
1404
  });
1502
1405
 
1503
1406
  export { getAssignedEnablementProgramSummary, getAssignedEnablementProgramSummary_imperative, getEnablementProgramSummary, getEnablementProgramSummary_imperative };
1504
- // version: 1.142.0-9f43a65a3
1407
+ // version: 1.142.1-1511d83f4
package/src/raml/api.raml CHANGED
@@ -46,6 +46,7 @@ types:
46
46
  description: Type of enablement program summary item
47
47
  type: string
48
48
  enum:
49
+ - Milestone
49
50
  - Section
50
51
  - Task
51
52
  EnablementProgramSummaryListRepresentation:
@@ -60,6 +61,44 @@ types:
60
61
  type: array
61
62
  items:
62
63
  type: EnablementProgramSummaryRepresentation
64
+ EnablementProgramSummaryMilestoneRepresentation:
65
+ description: Runtime representation of enablement program milestone.
66
+ discriminatorValue: Milestone
67
+ type: EnablementProgramSummaryItemRepresentation
68
+ properties:
69
+ completedDate:
70
+ description: The date the item was completed
71
+ type: string | nil
72
+ completedPercent:
73
+ description: Percent complete for the current user
74
+ #format: double # Hand-rolled format not allowed with union type
75
+ type: number | nil
76
+ contributingRecordCount:
77
+ description: The total contributing record count
78
+ type: integer | nil
79
+ dueDate:
80
+ description: Due date for the current assignment
81
+ type: string | nil
82
+ isCompleted:
83
+ description: Indicates if the item is complete or not
84
+ type: boolean | nil
85
+ isOverdue:
86
+ description: Indicates if the item is overdue or not
87
+ type: boolean | nil
88
+ milestoneResult:
89
+ description: The result value of if the task is of measure type
90
+ #format: double # Hand-rolled format not allowed with union type
91
+ type: number | nil
92
+ milestoneTarget:
93
+ description: Milestone Target of the enablement task
94
+ #format: double # Hand-rolled format not allowed with union type
95
+ type: number | nil
96
+ minimumSampleSize:
97
+ description: The minimum sample record size
98
+ type: integer | nil
99
+ programDay:
100
+ description: The day the program task is due
101
+ type: integer
63
102
  EnablementProgramSummaryRepresentation:
64
103
  description: Enablement Program Summary Representation
65
104
  type: object
@@ -84,7 +123,7 @@ types:
84
123
  type: string | nil
85
124
  outcome:
86
125
  description: Outcome of the enablement program
87
- type: EnablementProgramSummaryTaskRepresentation | nil # TODO Hand-rolled W-7093257
126
+ type: EnablementProgramSummaryMilestoneRepresentation | nil # TODO Hand-rolled W-7093257
88
127
  status:
89
128
  description: Status of the enablement program
90
129
  type: string
@@ -117,39 +156,15 @@ types:
117
156
  completedDate:
118
157
  description: The date the item was completed
119
158
  type: string | nil
120
- completedPercent:
121
- description: Percent complete for the current user
122
- #format: double # Hand-rolled format not allowed with union type
123
- type: number | nil
124
- contributingRecordCount:
125
- description: The total contributing record count
126
- type: integer | nil
127
159
  dueDate:
128
160
  description: Due date for the current assignment
129
161
  type: string | nil
130
- enablementProgramSectionId:
131
- description: Program Section Id of the enablement task
132
- type: string | nil
133
- isCompleted:
134
- description: Indicates if the item is complete or not
135
- type: boolean | nil
136
162
  isOverdue:
137
163
  description: Indicates if the item is overdue or not
138
164
  type: boolean | nil
139
165
  learningItemId:
140
166
  description: Learning Item Id of the enablement task
141
167
  type: string | nil
142
- milestoneResult:
143
- description: The result value of if the task is of measure type
144
- #format: double # Hand-rolled format not allowed with union type
145
- type: number | nil
146
- milestoneTarget:
147
- description: Milestone Target of the enablement task
148
- #format: double # Hand-rolled format not allowed with union type
149
- type: number | nil
150
- minimumSampleSize:
151
- description: The minimum sample record size
152
- type: integer | nil
153
168
  programDay:
154
169
  description: The day the program task is due
155
170
  type: integer