@salesforce/lds-adapters-platform-enablement 1.160.1 → 1.162.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.
|
@@ -169,7 +169,7 @@ function equals$3(existing, incoming) {
|
|
|
169
169
|
return true;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
const VERSION$2 = "
|
|
172
|
+
const VERSION$2 = "a781c697d19a499446ef63e6b9314ac8";
|
|
173
173
|
function validate$2(obj, path = 'EnablementProgramSummaryMilestoneRepresentation') {
|
|
174
174
|
const validateEnablementProgramSummaryItemRepresentation_validateError = validate$3(obj, path);
|
|
175
175
|
if (validateEnablementProgramSummaryItemRepresentation_validateError !== null) {
|
|
@@ -423,6 +423,32 @@ function validate$2(obj, path = 'EnablementProgramSummaryMilestoneRepresentation
|
|
|
423
423
|
if (typeof obj_programDay !== 'number' || (typeof obj_programDay === 'number' && Math.floor(obj_programDay) !== obj_programDay)) {
|
|
424
424
|
return new TypeError('Expected "integer" but received "' + typeof obj_programDay + '" (at "' + path_programDay + '")');
|
|
425
425
|
}
|
|
426
|
+
const obj_progressStatus = obj.progressStatus;
|
|
427
|
+
const path_progressStatus = path + '.progressStatus';
|
|
428
|
+
let obj_progressStatus_union0 = null;
|
|
429
|
+
const obj_progressStatus_union0_error = (() => {
|
|
430
|
+
if (typeof obj_progressStatus !== 'string') {
|
|
431
|
+
return new TypeError('Expected "string" but received "' + typeof obj_progressStatus + '" (at "' + path_progressStatus + '")');
|
|
432
|
+
}
|
|
433
|
+
})();
|
|
434
|
+
if (obj_progressStatus_union0_error != null) {
|
|
435
|
+
obj_progressStatus_union0 = obj_progressStatus_union0_error.message;
|
|
436
|
+
}
|
|
437
|
+
let obj_progressStatus_union1 = null;
|
|
438
|
+
const obj_progressStatus_union1_error = (() => {
|
|
439
|
+
if (obj_progressStatus !== null) {
|
|
440
|
+
return new TypeError('Expected "null" but received "' + typeof obj_progressStatus + '" (at "' + path_progressStatus + '")');
|
|
441
|
+
}
|
|
442
|
+
})();
|
|
443
|
+
if (obj_progressStatus_union1_error != null) {
|
|
444
|
+
obj_progressStatus_union1 = obj_progressStatus_union1_error.message;
|
|
445
|
+
}
|
|
446
|
+
if (obj_progressStatus_union0 && obj_progressStatus_union1) {
|
|
447
|
+
let message = 'Object doesn\'t match union (at "' + path_progressStatus + '")';
|
|
448
|
+
message += '\n' + obj_progressStatus_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
449
|
+
message += '\n' + obj_progressStatus_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
450
|
+
return new TypeError(message);
|
|
451
|
+
}
|
|
426
452
|
})();
|
|
427
453
|
return v_error === undefined ? null : v_error;
|
|
428
454
|
}
|
|
@@ -477,6 +503,10 @@ const select$4 = function EnablementProgramSummaryMilestoneRepresentationSelect(
|
|
|
477
503
|
{
|
|
478
504
|
name: 'programDay',
|
|
479
505
|
kind: 'Scalar'
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
name: 'progressStatus',
|
|
509
|
+
kind: 'Scalar'
|
|
480
510
|
}
|
|
481
511
|
]
|
|
482
512
|
};
|
|
@@ -540,6 +570,11 @@ function equals$2(existing, incoming) {
|
|
|
540
570
|
if (!(existing_minimumSampleSize === incoming_minimumSampleSize)) {
|
|
541
571
|
return false;
|
|
542
572
|
}
|
|
573
|
+
const existing_progressStatus = existing.progressStatus;
|
|
574
|
+
const incoming_progressStatus = incoming.progressStatus;
|
|
575
|
+
if (!(existing_progressStatus === incoming_progressStatus)) {
|
|
576
|
+
return false;
|
|
577
|
+
}
|
|
543
578
|
return true;
|
|
544
579
|
}
|
|
545
580
|
|
|
@@ -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 = "
|
|
3
|
+
export declare const VERSION = "a781c697d19a499446ef63e6b9314ac8";
|
|
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: EnablementProgramSummaryMilestoneRepresentation, existing: EnablementProgramSummaryMilestoneRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EnablementProgramSummaryMilestoneRepresentationNormalized;
|
|
@@ -37,6 +37,8 @@ export interface EnablementProgramSummaryMilestoneRepresentationNormalized exten
|
|
|
37
37
|
minimumSampleSize: number | null;
|
|
38
38
|
/** The day the program task is due */
|
|
39
39
|
programDay: number;
|
|
40
|
+
/** Indicates milestone progress status */
|
|
41
|
+
progressStatus: string | null;
|
|
40
42
|
}
|
|
41
43
|
/**
|
|
42
44
|
* Runtime representation of enablement program milestone.
|
|
@@ -56,5 +58,6 @@ export interface EnablementProgramSummaryMilestoneRepresentation extends Enablem
|
|
|
56
58
|
milestoneTarget: number | null;
|
|
57
59
|
minimumSampleSize: number | null;
|
|
58
60
|
programDay: number;
|
|
61
|
+
progressStatus: string | null;
|
|
59
62
|
type: 'Milestone';
|
|
60
63
|
}
|
package/package.json
CHANGED
package/sfdc/index.js
CHANGED
|
@@ -179,7 +179,7 @@ function equals$3(existing, incoming) {
|
|
|
179
179
|
return true;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
const VERSION$2 = "
|
|
182
|
+
const VERSION$2 = "a781c697d19a499446ef63e6b9314ac8";
|
|
183
183
|
function validate$2(obj, path = 'EnablementProgramSummaryMilestoneRepresentation') {
|
|
184
184
|
const validateEnablementProgramSummaryItemRepresentation_validateError = validate$3(obj, path);
|
|
185
185
|
if (validateEnablementProgramSummaryItemRepresentation_validateError !== null) {
|
|
@@ -433,6 +433,32 @@ function validate$2(obj, path = 'EnablementProgramSummaryMilestoneRepresentation
|
|
|
433
433
|
if (typeof obj_programDay !== 'number' || (typeof obj_programDay === 'number' && Math.floor(obj_programDay) !== obj_programDay)) {
|
|
434
434
|
return new TypeError('Expected "integer" but received "' + typeof obj_programDay + '" (at "' + path_programDay + '")');
|
|
435
435
|
}
|
|
436
|
+
const obj_progressStatus = obj.progressStatus;
|
|
437
|
+
const path_progressStatus = path + '.progressStatus';
|
|
438
|
+
let obj_progressStatus_union0 = null;
|
|
439
|
+
const obj_progressStatus_union0_error = (() => {
|
|
440
|
+
if (typeof obj_progressStatus !== 'string') {
|
|
441
|
+
return new TypeError('Expected "string" but received "' + typeof obj_progressStatus + '" (at "' + path_progressStatus + '")');
|
|
442
|
+
}
|
|
443
|
+
})();
|
|
444
|
+
if (obj_progressStatus_union0_error != null) {
|
|
445
|
+
obj_progressStatus_union0 = obj_progressStatus_union0_error.message;
|
|
446
|
+
}
|
|
447
|
+
let obj_progressStatus_union1 = null;
|
|
448
|
+
const obj_progressStatus_union1_error = (() => {
|
|
449
|
+
if (obj_progressStatus !== null) {
|
|
450
|
+
return new TypeError('Expected "null" but received "' + typeof obj_progressStatus + '" (at "' + path_progressStatus + '")');
|
|
451
|
+
}
|
|
452
|
+
})();
|
|
453
|
+
if (obj_progressStatus_union1_error != null) {
|
|
454
|
+
obj_progressStatus_union1 = obj_progressStatus_union1_error.message;
|
|
455
|
+
}
|
|
456
|
+
if (obj_progressStatus_union0 && obj_progressStatus_union1) {
|
|
457
|
+
let message = 'Object doesn\'t match union (at "' + path_progressStatus + '")';
|
|
458
|
+
message += '\n' + obj_progressStatus_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
459
|
+
message += '\n' + obj_progressStatus_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
460
|
+
return new TypeError(message);
|
|
461
|
+
}
|
|
436
462
|
})();
|
|
437
463
|
return v_error === undefined ? null : v_error;
|
|
438
464
|
}
|
|
@@ -487,6 +513,10 @@ const select$4 = function EnablementProgramSummaryMilestoneRepresentationSelect(
|
|
|
487
513
|
{
|
|
488
514
|
name: 'programDay',
|
|
489
515
|
kind: 'Scalar'
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
name: 'progressStatus',
|
|
519
|
+
kind: 'Scalar'
|
|
490
520
|
}
|
|
491
521
|
]
|
|
492
522
|
};
|
|
@@ -550,6 +580,11 @@ function equals$2(existing, incoming) {
|
|
|
550
580
|
if (!(existing_minimumSampleSize === incoming_minimumSampleSize)) {
|
|
551
581
|
return false;
|
|
552
582
|
}
|
|
583
|
+
const existing_progressStatus = existing.progressStatus;
|
|
584
|
+
const incoming_progressStatus = incoming.progressStatus;
|
|
585
|
+
if (!(existing_progressStatus === incoming_progressStatus)) {
|
|
586
|
+
return false;
|
|
587
|
+
}
|
|
553
588
|
return true;
|
|
554
589
|
}
|
|
555
590
|
|
|
@@ -1426,4 +1461,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1426
1461
|
});
|
|
1427
1462
|
|
|
1428
1463
|
export { getAssignedEnablementProgramSummary, getAssignedEnablementProgramSummary_imperative, getEnablementProgramSummary, getEnablementProgramSummary_imperative };
|
|
1429
|
-
// version: 1.
|
|
1464
|
+
// version: 1.162.0-eaa8b36f5
|
package/src/raml/api.raml
CHANGED
|
@@ -106,6 +106,16 @@ types:
|
|
|
106
106
|
programDay:
|
|
107
107
|
description: The day the program task is due
|
|
108
108
|
type: integer
|
|
109
|
+
progressStatus:
|
|
110
|
+
description: Indicates milestone progress status
|
|
111
|
+
type: string | nil
|
|
112
|
+
enum:
|
|
113
|
+
- Behind
|
|
114
|
+
- CompletedLate
|
|
115
|
+
- CompletedOnTime
|
|
116
|
+
- NoLongerTracking
|
|
117
|
+
- NotCompleted
|
|
118
|
+
- Overdue
|
|
109
119
|
EnablementProgramSummaryRepresentation:
|
|
110
120
|
description: Enablement Program Summary Representation
|
|
111
121
|
type: object
|