@salesforce/lds-adapters-sales-enablement-program 1.273.0 → 1.274.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.
- package/dist/es/es2018/sales-enablement-program.js +215 -56
- package/dist/es/es2018/types/src/generated/types/AbstractEnablementProgramTaskRepresentation.d.ts +8 -4
- package/dist/es/es2018/types/src/generated/types/EnablementProgramTaskInputRepresentation.d.ts +8 -4
- package/dist/es/es2018/types/src/generated/types/EnablementProgramTaskMeasureInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/EnablementProgramTaskMeasureRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/EnablementProgramTaskRepresentation.d.ts +8 -4
- package/package.json +4 -4
- package/sfdc/index.js +196 -37
- package/src/raml/api.raml +65 -9
|
@@ -92,8 +92,8 @@ function createLink(ref) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
const VERSION$
|
|
96
|
-
function validate$
|
|
95
|
+
const VERSION$5 = "49baef9cf75c51988988655e614683e0";
|
|
96
|
+
function validate$5(obj, path = 'ProgramTemplateInfoRepresentation') {
|
|
97
97
|
const v_error = (() => {
|
|
98
98
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
99
99
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -116,10 +116,10 @@ function validate$4(obj, path = 'ProgramTemplateInfoRepresentation') {
|
|
|
116
116
|
})();
|
|
117
117
|
return v_error === undefined ? null : v_error;
|
|
118
118
|
}
|
|
119
|
-
const select$
|
|
119
|
+
const select$7 = function ProgramTemplateInfoRepresentationSelect() {
|
|
120
120
|
return {
|
|
121
121
|
kind: 'Fragment',
|
|
122
|
-
version: VERSION$
|
|
122
|
+
version: VERSION$5,
|
|
123
123
|
private: [],
|
|
124
124
|
selections: [
|
|
125
125
|
{
|
|
@@ -137,7 +137,7 @@ const select$6 = function ProgramTemplateInfoRepresentationSelect() {
|
|
|
137
137
|
]
|
|
138
138
|
};
|
|
139
139
|
};
|
|
140
|
-
function equals$
|
|
140
|
+
function equals$5(existing, incoming) {
|
|
141
141
|
const existing_developerName = existing.developerName;
|
|
142
142
|
const incoming_developerName = incoming.developerName;
|
|
143
143
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -157,8 +157,8 @@ function equals$4(existing, incoming) {
|
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
const TTL$1 = 604800000;
|
|
160
|
-
const VERSION$
|
|
161
|
-
function validate$
|
|
160
|
+
const VERSION$4 = "8872f2ed6b73d2c5ebf14059ff6642de";
|
|
161
|
+
function validate$4(obj, path = 'ProgramTemplateListRepresentation') {
|
|
162
162
|
const v_error = (() => {
|
|
163
163
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
164
164
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -171,7 +171,7 @@ function validate$3(obj, path = 'ProgramTemplateListRepresentation') {
|
|
|
171
171
|
for (let i = 0; i < obj_programTemplateList.length; i++) {
|
|
172
172
|
const obj_programTemplateList_item = obj_programTemplateList[i];
|
|
173
173
|
const path_programTemplateList_item = path_programTemplateList + '[' + i + ']';
|
|
174
|
-
const referencepath_programTemplateList_itemValidationError = validate$
|
|
174
|
+
const referencepath_programTemplateList_itemValidationError = validate$5(obj_programTemplateList_item, path_programTemplateList_item);
|
|
175
175
|
if (referencepath_programTemplateList_itemValidationError !== null) {
|
|
176
176
|
let message = 'Object doesn\'t match ProgramTemplateInfoRepresentation (at "' + path_programTemplateList_item + '")\n';
|
|
177
177
|
message += referencepath_programTemplateList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -185,11 +185,11 @@ const RepresentationType$1 = 'ProgramTemplateListRepresentation';
|
|
|
185
185
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
186
186
|
return input;
|
|
187
187
|
}
|
|
188
|
-
const select$
|
|
189
|
-
const { selections: ProgramTemplateInfoRepresentation__selections, opaque: ProgramTemplateInfoRepresentation__opaque, } = select$
|
|
188
|
+
const select$6 = function ProgramTemplateListRepresentationSelect() {
|
|
189
|
+
const { selections: ProgramTemplateInfoRepresentation__selections, opaque: ProgramTemplateInfoRepresentation__opaque, } = select$7();
|
|
190
190
|
return {
|
|
191
191
|
kind: 'Fragment',
|
|
192
|
-
version: VERSION$
|
|
192
|
+
version: VERSION$4,
|
|
193
193
|
private: [],
|
|
194
194
|
selections: [
|
|
195
195
|
{
|
|
@@ -201,11 +201,11 @@ const select$5 = function ProgramTemplateListRepresentationSelect() {
|
|
|
201
201
|
]
|
|
202
202
|
};
|
|
203
203
|
};
|
|
204
|
-
function equals$
|
|
204
|
+
function equals$4(existing, incoming) {
|
|
205
205
|
const existing_programTemplateList = existing.programTemplateList;
|
|
206
206
|
const incoming_programTemplateList = incoming.programTemplateList;
|
|
207
207
|
const equals_programTemplateList_items = equalsArray(existing_programTemplateList, incoming_programTemplateList, (existing_programTemplateList_item, incoming_programTemplateList_item) => {
|
|
208
|
-
if (!(equals$
|
|
208
|
+
if (!(equals$5(existing_programTemplateList_item, incoming_programTemplateList_item))) {
|
|
209
209
|
return false;
|
|
210
210
|
}
|
|
211
211
|
});
|
|
@@ -216,14 +216,14 @@ function equals$3(existing, incoming) {
|
|
|
216
216
|
}
|
|
217
217
|
const ingest$1 = function ProgramTemplateListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
218
218
|
if (process.env.NODE_ENV !== 'production') {
|
|
219
|
-
const validateError = validate$
|
|
219
|
+
const validateError = validate$4(input);
|
|
220
220
|
if (validateError !== null) {
|
|
221
221
|
throw validateError;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
const key = path.fullPath;
|
|
225
225
|
const ttlToUse = TTL$1;
|
|
226
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "enablement-program", VERSION$
|
|
226
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "enablement-program", VERSION$4, RepresentationType$1, equals$4);
|
|
227
227
|
return createLink(key);
|
|
228
228
|
};
|
|
229
229
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -236,8 +236,8 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
function select$
|
|
240
|
-
return select$
|
|
239
|
+
function select$5(luvio, params) {
|
|
240
|
+
return select$6();
|
|
241
241
|
}
|
|
242
242
|
function keyBuilder$3(luvio, params) {
|
|
243
243
|
return keyPrefix + '::ProgramTemplateListRepresentation:(' + ')';
|
|
@@ -251,7 +251,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
251
251
|
luvio.storeIngest(key, ingest$1, body);
|
|
252
252
|
const snapshot = luvio.storeLookup({
|
|
253
253
|
recordId: key,
|
|
254
|
-
node: select$
|
|
254
|
+
node: select$5(),
|
|
255
255
|
variables: {},
|
|
256
256
|
}, snapshotRefresh);
|
|
257
257
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -268,7 +268,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
268
268
|
const storeMetadataParams = {
|
|
269
269
|
ttl: TTL$1,
|
|
270
270
|
namespace: keyPrefix,
|
|
271
|
-
version: VERSION$
|
|
271
|
+
version: VERSION$4,
|
|
272
272
|
representationName: RepresentationType$1
|
|
273
273
|
};
|
|
274
274
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -315,7 +315,7 @@ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
|
315
315
|
}
|
|
316
316
|
function adapterFragment$1(luvio, config) {
|
|
317
317
|
createResourceParams$1(config);
|
|
318
|
-
return select$
|
|
318
|
+
return select$5();
|
|
319
319
|
}
|
|
320
320
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
321
321
|
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
@@ -371,12 +371,165 @@ const getProgramTemplatesAdapterFactory = (luvio) => function enablementProgram_
|
|
|
371
371
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
372
372
|
};
|
|
373
373
|
|
|
374
|
-
const VERSION$
|
|
374
|
+
const VERSION$3 = "6da84bea034646ff651ea5288937a968";
|
|
375
|
+
function validate$3(obj, path = 'EnablementProgramTaskMeasureRepresentation') {
|
|
376
|
+
const v_error = (() => {
|
|
377
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
378
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
379
|
+
}
|
|
380
|
+
const obj_alias = obj.alias;
|
|
381
|
+
const path_alias = path + '.alias';
|
|
382
|
+
let obj_alias_union0 = null;
|
|
383
|
+
const obj_alias_union0_error = (() => {
|
|
384
|
+
if (typeof obj_alias !== 'string') {
|
|
385
|
+
return new TypeError('Expected "string" but received "' + typeof obj_alias + '" (at "' + path_alias + '")');
|
|
386
|
+
}
|
|
387
|
+
})();
|
|
388
|
+
if (obj_alias_union0_error != null) {
|
|
389
|
+
obj_alias_union0 = obj_alias_union0_error.message;
|
|
390
|
+
}
|
|
391
|
+
let obj_alias_union1 = null;
|
|
392
|
+
const obj_alias_union1_error = (() => {
|
|
393
|
+
if (obj_alias !== null) {
|
|
394
|
+
return new TypeError('Expected "null" but received "' + typeof obj_alias + '" (at "' + path_alias + '")');
|
|
395
|
+
}
|
|
396
|
+
})();
|
|
397
|
+
if (obj_alias_union1_error != null) {
|
|
398
|
+
obj_alias_union1 = obj_alias_union1_error.message;
|
|
399
|
+
}
|
|
400
|
+
if (obj_alias_union0 && obj_alias_union1) {
|
|
401
|
+
let message = 'Object doesn\'t match union (at "' + path_alias + '")';
|
|
402
|
+
message += '\n' + obj_alias_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
403
|
+
message += '\n' + obj_alias_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
404
|
+
return new TypeError(message);
|
|
405
|
+
}
|
|
406
|
+
const obj_id = obj.id;
|
|
407
|
+
const path_id = path + '.id';
|
|
408
|
+
let obj_id_union0 = null;
|
|
409
|
+
const obj_id_union0_error = (() => {
|
|
410
|
+
if (typeof obj_id !== 'string') {
|
|
411
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
412
|
+
}
|
|
413
|
+
})();
|
|
414
|
+
if (obj_id_union0_error != null) {
|
|
415
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
416
|
+
}
|
|
417
|
+
let obj_id_union1 = null;
|
|
418
|
+
const obj_id_union1_error = (() => {
|
|
419
|
+
if (obj_id !== null) {
|
|
420
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
421
|
+
}
|
|
422
|
+
})();
|
|
423
|
+
if (obj_id_union1_error != null) {
|
|
424
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
425
|
+
}
|
|
426
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
427
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
428
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
429
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
430
|
+
return new TypeError(message);
|
|
431
|
+
}
|
|
432
|
+
const obj_measureId = obj.measureId;
|
|
433
|
+
const path_measureId = path + '.measureId';
|
|
434
|
+
let obj_measureId_union0 = null;
|
|
435
|
+
const obj_measureId_union0_error = (() => {
|
|
436
|
+
if (typeof obj_measureId !== 'string') {
|
|
437
|
+
return new TypeError('Expected "string" but received "' + typeof obj_measureId + '" (at "' + path_measureId + '")');
|
|
438
|
+
}
|
|
439
|
+
})();
|
|
440
|
+
if (obj_measureId_union0_error != null) {
|
|
441
|
+
obj_measureId_union0 = obj_measureId_union0_error.message;
|
|
442
|
+
}
|
|
443
|
+
let obj_measureId_union1 = null;
|
|
444
|
+
const obj_measureId_union1_error = (() => {
|
|
445
|
+
if (obj_measureId !== null) {
|
|
446
|
+
return new TypeError('Expected "null" but received "' + typeof obj_measureId + '" (at "' + path_measureId + '")');
|
|
447
|
+
}
|
|
448
|
+
})();
|
|
449
|
+
if (obj_measureId_union1_error != null) {
|
|
450
|
+
obj_measureId_union1 = obj_measureId_union1_error.message;
|
|
451
|
+
}
|
|
452
|
+
if (obj_measureId_union0 && obj_measureId_union1) {
|
|
453
|
+
let message = 'Object doesn\'t match union (at "' + path_measureId + '")';
|
|
454
|
+
message += '\n' + obj_measureId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
455
|
+
message += '\n' + obj_measureId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
456
|
+
return new TypeError(message);
|
|
457
|
+
}
|
|
458
|
+
})();
|
|
459
|
+
return v_error === undefined ? null : v_error;
|
|
460
|
+
}
|
|
461
|
+
const select$4 = function EnablementProgramTaskMeasureRepresentationSelect() {
|
|
462
|
+
return {
|
|
463
|
+
kind: 'Fragment',
|
|
464
|
+
version: VERSION$3,
|
|
465
|
+
private: [],
|
|
466
|
+
selections: [
|
|
467
|
+
{
|
|
468
|
+
name: 'alias',
|
|
469
|
+
kind: 'Scalar'
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
name: 'id',
|
|
473
|
+
kind: 'Scalar'
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
name: 'measureId',
|
|
477
|
+
kind: 'Scalar'
|
|
478
|
+
}
|
|
479
|
+
]
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
function equals$3(existing, incoming) {
|
|
483
|
+
const existing_alias = existing.alias;
|
|
484
|
+
const incoming_alias = incoming.alias;
|
|
485
|
+
if (!(existing_alias === incoming_alias)) {
|
|
486
|
+
return false;
|
|
487
|
+
}
|
|
488
|
+
const existing_id = existing.id;
|
|
489
|
+
const incoming_id = incoming.id;
|
|
490
|
+
if (!(existing_id === incoming_id)) {
|
|
491
|
+
return false;
|
|
492
|
+
}
|
|
493
|
+
const existing_measureId = existing.measureId;
|
|
494
|
+
const incoming_measureId = incoming.measureId;
|
|
495
|
+
if (!(existing_measureId === incoming_measureId)) {
|
|
496
|
+
return false;
|
|
497
|
+
}
|
|
498
|
+
return true;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
const VERSION$2 = "589a1d23d05a2a3795dbe451d9d64383";
|
|
375
502
|
function validate$2(obj, path = 'AbstractEnablementProgramTaskRepresentation') {
|
|
376
503
|
const v_error = (() => {
|
|
377
504
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
378
505
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
379
506
|
}
|
|
507
|
+
const obj_compositeMilestoneType = obj.compositeMilestoneType;
|
|
508
|
+
const path_compositeMilestoneType = path + '.compositeMilestoneType';
|
|
509
|
+
let obj_compositeMilestoneType_union0 = null;
|
|
510
|
+
const obj_compositeMilestoneType_union0_error = (() => {
|
|
511
|
+
if (typeof obj_compositeMilestoneType !== 'string') {
|
|
512
|
+
return new TypeError('Expected "string" but received "' + typeof obj_compositeMilestoneType + '" (at "' + path_compositeMilestoneType + '")');
|
|
513
|
+
}
|
|
514
|
+
})();
|
|
515
|
+
if (obj_compositeMilestoneType_union0_error != null) {
|
|
516
|
+
obj_compositeMilestoneType_union0 = obj_compositeMilestoneType_union0_error.message;
|
|
517
|
+
}
|
|
518
|
+
let obj_compositeMilestoneType_union1 = null;
|
|
519
|
+
const obj_compositeMilestoneType_union1_error = (() => {
|
|
520
|
+
if (obj_compositeMilestoneType !== null) {
|
|
521
|
+
return new TypeError('Expected "null" but received "' + typeof obj_compositeMilestoneType + '" (at "' + path_compositeMilestoneType + '")');
|
|
522
|
+
}
|
|
523
|
+
})();
|
|
524
|
+
if (obj_compositeMilestoneType_union1_error != null) {
|
|
525
|
+
obj_compositeMilestoneType_union1 = obj_compositeMilestoneType_union1_error.message;
|
|
526
|
+
}
|
|
527
|
+
if (obj_compositeMilestoneType_union0 && obj_compositeMilestoneType_union1) {
|
|
528
|
+
let message = 'Object doesn\'t match union (at "' + path_compositeMilestoneType + '")';
|
|
529
|
+
message += '\n' + obj_compositeMilestoneType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
530
|
+
message += '\n' + obj_compositeMilestoneType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
531
|
+
return new TypeError(message);
|
|
532
|
+
}
|
|
380
533
|
const obj_contentType = obj.contentType;
|
|
381
534
|
const path_contentType = path + '.contentType';
|
|
382
535
|
let obj_contentType_union0 = null;
|
|
@@ -699,32 +852,6 @@ function validate$2(obj, path = 'AbstractEnablementProgramTaskRepresentation') {
|
|
|
699
852
|
message += '\n' + obj_learningItemUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
700
853
|
return new TypeError(message);
|
|
701
854
|
}
|
|
702
|
-
const obj_measureId = obj.measureId;
|
|
703
|
-
const path_measureId = path + '.measureId';
|
|
704
|
-
let obj_measureId_union0 = null;
|
|
705
|
-
const obj_measureId_union0_error = (() => {
|
|
706
|
-
if (typeof obj_measureId !== 'string') {
|
|
707
|
-
return new TypeError('Expected "string" but received "' + typeof obj_measureId + '" (at "' + path_measureId + '")');
|
|
708
|
-
}
|
|
709
|
-
})();
|
|
710
|
-
if (obj_measureId_union0_error != null) {
|
|
711
|
-
obj_measureId_union0 = obj_measureId_union0_error.message;
|
|
712
|
-
}
|
|
713
|
-
let obj_measureId_union1 = null;
|
|
714
|
-
const obj_measureId_union1_error = (() => {
|
|
715
|
-
if (obj_measureId !== null) {
|
|
716
|
-
return new TypeError('Expected "null" but received "' + typeof obj_measureId + '" (at "' + path_measureId + '")');
|
|
717
|
-
}
|
|
718
|
-
})();
|
|
719
|
-
if (obj_measureId_union1_error != null) {
|
|
720
|
-
obj_measureId_union1 = obj_measureId_union1_error.message;
|
|
721
|
-
}
|
|
722
|
-
if (obj_measureId_union0 && obj_measureId_union1) {
|
|
723
|
-
let message = 'Object doesn\'t match union (at "' + path_measureId + '")';
|
|
724
|
-
message += '\n' + obj_measureId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
725
|
-
message += '\n' + obj_measureId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
726
|
-
return new TypeError(message);
|
|
727
|
-
}
|
|
728
855
|
obj.milestoneTarget;
|
|
729
856
|
const obj_minimumSampleSize = obj.minimumSampleSize;
|
|
730
857
|
const path_minimumSampleSize = path + '.minimumSampleSize';
|
|
@@ -772,6 +899,21 @@ function validate$2(obj, path = 'AbstractEnablementProgramTaskRepresentation') {
|
|
|
772
899
|
if (typeof obj_taskCategory !== 'string') {
|
|
773
900
|
return new TypeError('Expected "string" but received "' + typeof obj_taskCategory + '" (at "' + path_taskCategory + '")');
|
|
774
901
|
}
|
|
902
|
+
const obj_taskMeasures = obj.taskMeasures;
|
|
903
|
+
const path_taskMeasures = path + '.taskMeasures';
|
|
904
|
+
if (!ArrayIsArray(obj_taskMeasures)) {
|
|
905
|
+
return new TypeError('Expected "array" but received "' + typeof obj_taskMeasures + '" (at "' + path_taskMeasures + '")');
|
|
906
|
+
}
|
|
907
|
+
for (let i = 0; i < obj_taskMeasures.length; i++) {
|
|
908
|
+
const obj_taskMeasures_item = obj_taskMeasures[i];
|
|
909
|
+
const path_taskMeasures_item = path_taskMeasures + '[' + i + ']';
|
|
910
|
+
const referencepath_taskMeasures_itemValidationError = validate$3(obj_taskMeasures_item, path_taskMeasures_item);
|
|
911
|
+
if (referencepath_taskMeasures_itemValidationError !== null) {
|
|
912
|
+
let message = 'Object doesn\'t match EnablementProgramTaskMeasureRepresentation (at "' + path_taskMeasures_item + '")\n';
|
|
913
|
+
message += referencepath_taskMeasures_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
914
|
+
return new TypeError(message);
|
|
915
|
+
}
|
|
916
|
+
}
|
|
775
917
|
const obj_taskSubCategory = obj.taskSubCategory;
|
|
776
918
|
const path_taskSubCategory = path + '.taskSubCategory';
|
|
777
919
|
if (typeof obj_taskSubCategory !== 'string') {
|
|
@@ -786,11 +928,16 @@ function validate$2(obj, path = 'AbstractEnablementProgramTaskRepresentation') {
|
|
|
786
928
|
return v_error === undefined ? null : v_error;
|
|
787
929
|
}
|
|
788
930
|
const select$3 = function AbstractEnablementProgramTaskRepresentationSelect() {
|
|
931
|
+
const { selections: EnablementProgramTaskMeasureRepresentation__selections, opaque: EnablementProgramTaskMeasureRepresentation__opaque, } = select$4();
|
|
789
932
|
return {
|
|
790
933
|
kind: 'Fragment',
|
|
791
934
|
version: VERSION$2,
|
|
792
935
|
private: [],
|
|
793
936
|
selections: [
|
|
937
|
+
{
|
|
938
|
+
name: 'compositeMilestoneType',
|
|
939
|
+
kind: 'Scalar'
|
|
940
|
+
},
|
|
794
941
|
{
|
|
795
942
|
name: 'contentType',
|
|
796
943
|
kind: 'Scalar'
|
|
@@ -847,10 +994,6 @@ const select$3 = function AbstractEnablementProgramTaskRepresentationSelect() {
|
|
|
847
994
|
name: 'learningItemUrl',
|
|
848
995
|
kind: 'Scalar'
|
|
849
996
|
},
|
|
850
|
-
{
|
|
851
|
-
name: 'measureId',
|
|
852
|
-
kind: 'Scalar'
|
|
853
|
-
},
|
|
854
997
|
{
|
|
855
998
|
name: 'milestoneTarget',
|
|
856
999
|
kind: 'Scalar'
|
|
@@ -875,6 +1018,12 @@ const select$3 = function AbstractEnablementProgramTaskRepresentationSelect() {
|
|
|
875
1018
|
name: 'taskCategory',
|
|
876
1019
|
kind: 'Scalar'
|
|
877
1020
|
},
|
|
1021
|
+
{
|
|
1022
|
+
name: 'taskMeasures',
|
|
1023
|
+
kind: 'Object',
|
|
1024
|
+
plural: true,
|
|
1025
|
+
selections: EnablementProgramTaskMeasureRepresentation__selections
|
|
1026
|
+
},
|
|
878
1027
|
{
|
|
879
1028
|
name: 'taskSubCategory',
|
|
880
1029
|
kind: 'Scalar'
|
|
@@ -928,6 +1077,11 @@ function equals$2(existing, incoming) {
|
|
|
928
1077
|
if (!(existing_milestoneTarget === incoming_milestoneTarget)) {
|
|
929
1078
|
return false;
|
|
930
1079
|
}
|
|
1080
|
+
const existing_compositeMilestoneType = existing.compositeMilestoneType;
|
|
1081
|
+
const incoming_compositeMilestoneType = incoming.compositeMilestoneType;
|
|
1082
|
+
if (!(existing_compositeMilestoneType === incoming_compositeMilestoneType)) {
|
|
1083
|
+
return false;
|
|
1084
|
+
}
|
|
931
1085
|
const existing_contentType = existing.contentType;
|
|
932
1086
|
const incoming_contentType = incoming.contentType;
|
|
933
1087
|
if (!(existing_contentType === incoming_contentType)) {
|
|
@@ -988,16 +1142,21 @@ function equals$2(existing, incoming) {
|
|
|
988
1142
|
if (!(existing_learningItemUrl === incoming_learningItemUrl)) {
|
|
989
1143
|
return false;
|
|
990
1144
|
}
|
|
991
|
-
const existing_measureId = existing.measureId;
|
|
992
|
-
const incoming_measureId = incoming.measureId;
|
|
993
|
-
if (!(existing_measureId === incoming_measureId)) {
|
|
994
|
-
return false;
|
|
995
|
-
}
|
|
996
1145
|
const existing_minimumSampleSize = existing.minimumSampleSize;
|
|
997
1146
|
const incoming_minimumSampleSize = incoming.minimumSampleSize;
|
|
998
1147
|
if (!(existing_minimumSampleSize === incoming_minimumSampleSize)) {
|
|
999
1148
|
return false;
|
|
1000
1149
|
}
|
|
1150
|
+
const existing_taskMeasures = existing.taskMeasures;
|
|
1151
|
+
const incoming_taskMeasures = incoming.taskMeasures;
|
|
1152
|
+
const equals_taskMeasures_items = equalsArray(existing_taskMeasures, incoming_taskMeasures, (existing_taskMeasures_item, incoming_taskMeasures_item) => {
|
|
1153
|
+
if (!(equals$3(existing_taskMeasures_item, incoming_taskMeasures_item))) {
|
|
1154
|
+
return false;
|
|
1155
|
+
}
|
|
1156
|
+
});
|
|
1157
|
+
if (equals_taskMeasures_items === false) {
|
|
1158
|
+
return false;
|
|
1159
|
+
}
|
|
1001
1160
|
const existing_warnings = existing.warnings;
|
|
1002
1161
|
const incoming_warnings = incoming.warnings;
|
|
1003
1162
|
if (JSONStringify(incoming_warnings) !== JSONStringify(existing_warnings)) {
|
package/dist/es/es2018/types/src/generated/types/AbstractEnablementProgramTaskRepresentation.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { EnablementProgramTaskMeasureRepresentation as EnablementProgramTaskMeasureRepresentation_EnablementProgramTaskMeasureRepresentation } from './EnablementProgramTaskMeasureRepresentation';
|
|
1
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';
|
|
2
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "589a1d23d05a2a3795dbe451d9d64383";
|
|
3
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
5
|
export declare const RepresentationType: string;
|
|
5
6
|
export declare function normalize(input: AbstractEnablementProgramTaskRepresentation, existing: AbstractEnablementProgramTaskRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AbstractEnablementProgramTaskRepresentationNormalized;
|
|
@@ -14,6 +15,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
15
|
* (none)
|
|
15
16
|
*/
|
|
16
17
|
export interface AbstractEnablementProgramTaskRepresentationNormalized {
|
|
18
|
+
/** Composite milestone type for the enablement task */
|
|
19
|
+
compositeMilestoneType: string | null;
|
|
17
20
|
/** Content type for the enablement task */
|
|
18
21
|
contentType: string | null;
|
|
19
22
|
/** Description of the enablement task */
|
|
@@ -42,8 +45,6 @@ export interface AbstractEnablementProgramTaskRepresentationNormalized {
|
|
|
42
45
|
learningItemTitle: string | null;
|
|
43
46
|
/** Url for the associated learning item */
|
|
44
47
|
learningItemUrl: string | null;
|
|
45
|
-
/** measure */
|
|
46
|
-
measureId: string | null;
|
|
47
48
|
/** Milestone Target of the enablement task */
|
|
48
49
|
milestoneTarget: number;
|
|
49
50
|
/** Minimum Sample Size of the enablement measure with aggregation type average */
|
|
@@ -56,6 +57,8 @@ export interface AbstractEnablementProgramTaskRepresentationNormalized {
|
|
|
56
57
|
sequenceNumber: number;
|
|
57
58
|
/** Category Type of the enablement task */
|
|
58
59
|
taskCategory: string;
|
|
60
|
+
/** Related task measure details for the enablement task */
|
|
61
|
+
taskMeasures: Array<EnablementProgramTaskMeasureRepresentation_EnablementProgramTaskMeasureRepresentation>;
|
|
59
62
|
/** Sub Category Type of the enablement task */
|
|
60
63
|
taskSubCategory: string;
|
|
61
64
|
/** additional property in connect API */
|
|
@@ -68,6 +71,7 @@ export interface AbstractEnablementProgramTaskRepresentationNormalized {
|
|
|
68
71
|
* (none)
|
|
69
72
|
*/
|
|
70
73
|
export interface AbstractEnablementProgramTaskRepresentation {
|
|
74
|
+
compositeMilestoneType: string | null;
|
|
71
75
|
contentType: string | null;
|
|
72
76
|
description: string;
|
|
73
77
|
developerName: string;
|
|
@@ -82,13 +86,13 @@ export interface AbstractEnablementProgramTaskRepresentation {
|
|
|
82
86
|
learningItemRelatedContentId: string | null;
|
|
83
87
|
learningItemTitle: string | null;
|
|
84
88
|
learningItemUrl: string | null;
|
|
85
|
-
measureId: string | null;
|
|
86
89
|
milestoneTarget: number;
|
|
87
90
|
minimumSampleSize: number | null;
|
|
88
91
|
name: string;
|
|
89
92
|
programDay: number;
|
|
90
93
|
sequenceNumber: number;
|
|
91
94
|
taskCategory: string;
|
|
95
|
+
taskMeasures: Array<EnablementProgramTaskMeasureRepresentation_EnablementProgramTaskMeasureRepresentation>;
|
|
92
96
|
taskSubCategory: string;
|
|
93
97
|
warnings: unknown;
|
|
94
98
|
}
|
package/dist/es/es2018/types/src/generated/types/EnablementProgramTaskInputRepresentation.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { EnablementProgramTaskMeasureInputRepresentation as EnablementProgramTaskMeasureInputRepresentation_EnablementProgramTaskMeasureInputRepresentation } from './EnablementProgramTaskMeasureInputRepresentation';
|
|
1
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';
|
|
2
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "ae538bdb8e7bbf2b857385d4d703b754";
|
|
3
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
5
|
export declare const RepresentationType: string;
|
|
5
6
|
export declare function normalize(input: EnablementProgramTaskInputRepresentation, existing: EnablementProgramTaskInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EnablementProgramTaskInputRepresentationNormalized;
|
|
@@ -14,6 +15,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
15
|
* (none)
|
|
15
16
|
*/
|
|
16
17
|
export interface EnablementProgramTaskInputRepresentationNormalized {
|
|
18
|
+
/** Composite milestone type of the enablement task definition */
|
|
19
|
+
compositeMilestoneType: string;
|
|
17
20
|
/** Day of the enablement task definition */
|
|
18
21
|
day: number;
|
|
19
22
|
/** Description of the enablement task definition */
|
|
@@ -34,8 +37,6 @@ export interface EnablementProgramTaskInputRepresentationNormalized {
|
|
|
34
37
|
learningContent: string;
|
|
35
38
|
/** Learning Item of the enablement task definition */
|
|
36
39
|
learningItem: string;
|
|
37
|
-
/** Measure Id of the enablement task definition */
|
|
38
|
-
measureId: string;
|
|
39
40
|
/** Milestone Target of the enablement task definition */
|
|
40
41
|
milestoneTarget: number;
|
|
41
42
|
/** Minimum Sample Size of the enablement task definition */
|
|
@@ -46,6 +47,8 @@ export interface EnablementProgramTaskInputRepresentationNormalized {
|
|
|
46
47
|
sequenceNumber: number;
|
|
47
48
|
/** Task Category of the enablement task definition */
|
|
48
49
|
taskCategory: string;
|
|
50
|
+
/** Task measure details of the enablement task definition */
|
|
51
|
+
taskMeasures: Array<EnablementProgramTaskMeasureInputRepresentation_EnablementProgramTaskMeasureInputRepresentation>;
|
|
49
52
|
/** Task SubCategory of the enablement task definition */
|
|
50
53
|
taskSubCategory: string;
|
|
51
54
|
}
|
|
@@ -56,6 +59,7 @@ export interface EnablementProgramTaskInputRepresentationNormalized {
|
|
|
56
59
|
* (none)
|
|
57
60
|
*/
|
|
58
61
|
export interface EnablementProgramTaskInputRepresentation {
|
|
62
|
+
compositeMilestoneType: string;
|
|
59
63
|
day: number;
|
|
60
64
|
description: string;
|
|
61
65
|
developerName: string;
|
|
@@ -66,11 +70,11 @@ export interface EnablementProgramTaskInputRepresentation {
|
|
|
66
70
|
isMilestoneAnOutcome: boolean;
|
|
67
71
|
learningContent: string;
|
|
68
72
|
learningItem: string;
|
|
69
|
-
measureId: string;
|
|
70
73
|
milestoneTarget: number;
|
|
71
74
|
minimumSampleSize: number;
|
|
72
75
|
name: string;
|
|
73
76
|
sequenceNumber: number;
|
|
74
77
|
taskCategory: string;
|
|
78
|
+
taskMeasures: Array<EnablementProgramTaskMeasureInputRepresentation_EnablementProgramTaskMeasureInputRepresentation>;
|
|
75
79
|
taskSubCategory: string;
|
|
76
80
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 = "17030cc7ba9398e6c3b965b963cfe4c2";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: EnablementProgramTaskMeasureInputRepresentation, existing: EnablementProgramTaskMeasureInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EnablementProgramTaskMeasureInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: EnablementProgramTaskMeasureInputRepresentationNormalized, incoming: EnablementProgramTaskMeasureInputRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: EnablementProgramTaskMeasureInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Builder representation of an enablement task measure
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface EnablementProgramTaskMeasureInputRepresentationNormalized {
|
|
17
|
+
/** Alias of enablement task measure */
|
|
18
|
+
alias: string | null;
|
|
19
|
+
/** Enablement Program Task of the enablement Measure */
|
|
20
|
+
enablementProgramTask: string | null;
|
|
21
|
+
/** Id of the enablement task measure */
|
|
22
|
+
id: string | null;
|
|
23
|
+
/** Measure Id of the enablement task measure */
|
|
24
|
+
measureId: string | null;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Builder representation of an enablement task measure
|
|
28
|
+
*
|
|
29
|
+
* Keys:
|
|
30
|
+
* (none)
|
|
31
|
+
*/
|
|
32
|
+
export interface EnablementProgramTaskMeasureInputRepresentation {
|
|
33
|
+
alias: string | null;
|
|
34
|
+
enablementProgramTask: string | null;
|
|
35
|
+
id: string | null;
|
|
36
|
+
measureId: string | null;
|
|
37
|
+
}
|
package/dist/es/es2018/types/src/generated/types/EnablementProgramTaskMeasureRepresentation.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
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 = "6da84bea034646ff651ea5288937a968";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: EnablementProgramTaskMeasureRepresentation, existing: EnablementProgramTaskMeasureRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EnablementProgramTaskMeasureRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: EnablementProgramTaskMeasureRepresentationNormalized, incoming: EnablementProgramTaskMeasureRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: EnablementProgramTaskMeasureRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Runtime representation of an enablement measure details
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface EnablementProgramTaskMeasureRepresentationNormalized {
|
|
17
|
+
/** Alias of enablement task measure */
|
|
18
|
+
alias: string | null;
|
|
19
|
+
/** Id of the enablement task measure */
|
|
20
|
+
id: string | null;
|
|
21
|
+
/** Measure Id of the enablement task measure */
|
|
22
|
+
measureId: string | null;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Runtime representation of an enablement measure details
|
|
26
|
+
*
|
|
27
|
+
* Keys:
|
|
28
|
+
* (none)
|
|
29
|
+
*/
|
|
30
|
+
export interface EnablementProgramTaskMeasureRepresentation {
|
|
31
|
+
alias: string | null;
|
|
32
|
+
id: string | null;
|
|
33
|
+
measureId: string | null;
|
|
34
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { EnablementProgramTaskMeasureRepresentation as EnablementProgramTaskMeasureRepresentation_EnablementProgramTaskMeasureRepresentation } from './EnablementProgramTaskMeasureRepresentation';
|
|
1
2
|
import { ProgramTaskWarningRepresentation as ProgramTaskWarningRepresentation_ProgramTaskWarningRepresentation } from './ProgramTaskWarningRepresentation';
|
|
2
3
|
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 = "
|
|
4
|
+
export declare const VERSION = "32dffb31eedb3c5abd9dcbe4ba5b739f";
|
|
4
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
6
|
export declare const RepresentationType: string;
|
|
6
7
|
export declare function normalize(input: EnablementProgramTaskRepresentation, existing: EnablementProgramTaskRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EnablementProgramTaskRepresentationNormalized;
|
|
@@ -15,6 +16,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
16
|
* (none)
|
|
16
17
|
*/
|
|
17
18
|
export interface EnablementProgramTaskRepresentationNormalized {
|
|
19
|
+
/** Composite milestone type for the enablement task */
|
|
20
|
+
compositeMilestoneType: string;
|
|
18
21
|
/** Content type for the enablement task */
|
|
19
22
|
contentType: string;
|
|
20
23
|
/** Description of the enablement task */
|
|
@@ -43,8 +46,6 @@ export interface EnablementProgramTaskRepresentationNormalized {
|
|
|
43
46
|
learningItemTitle: string;
|
|
44
47
|
/** Url for the associated learning item */
|
|
45
48
|
learningItemUrl: string;
|
|
46
|
-
/** Related measure id for the enablement task */
|
|
47
|
-
measureId: string;
|
|
48
49
|
/** Milestone Target of the enablement task */
|
|
49
50
|
milestoneTarget: number;
|
|
50
51
|
/** Minimum Sample Size of the enablement measure with aggregation type average */
|
|
@@ -57,6 +58,8 @@ export interface EnablementProgramTaskRepresentationNormalized {
|
|
|
57
58
|
sequenceNumber: number;
|
|
58
59
|
/** Category Type of the enablement task */
|
|
59
60
|
taskCategory: string;
|
|
61
|
+
/** Related task measure details for the enablement task */
|
|
62
|
+
taskMeasures: Array<EnablementProgramTaskMeasureRepresentation_EnablementProgramTaskMeasureRepresentation>;
|
|
60
63
|
/** Sub Category Type of the enablement task */
|
|
61
64
|
taskSubCategory: string;
|
|
62
65
|
/** Related Warnings for the enablement task */
|
|
@@ -69,6 +72,7 @@ export interface EnablementProgramTaskRepresentationNormalized {
|
|
|
69
72
|
* (none)
|
|
70
73
|
*/
|
|
71
74
|
export interface EnablementProgramTaskRepresentation {
|
|
75
|
+
compositeMilestoneType: string;
|
|
72
76
|
contentType: string;
|
|
73
77
|
description: string;
|
|
74
78
|
developerName: string;
|
|
@@ -83,13 +87,13 @@ export interface EnablementProgramTaskRepresentation {
|
|
|
83
87
|
learningItemRelatedContentId: string;
|
|
84
88
|
learningItemTitle: string;
|
|
85
89
|
learningItemUrl: string;
|
|
86
|
-
measureId: string;
|
|
87
90
|
milestoneTarget: number;
|
|
88
91
|
minimumSampleSize: number;
|
|
89
92
|
name: string;
|
|
90
93
|
programDay: number;
|
|
91
94
|
sequenceNumber: number;
|
|
92
95
|
taskCategory: string;
|
|
96
|
+
taskMeasures: Array<EnablementProgramTaskMeasureRepresentation_EnablementProgramTaskMeasureRepresentation>;
|
|
93
97
|
taskSubCategory: string;
|
|
94
98
|
warnings: Array<ProgramTaskWarningRepresentation_ProgramTaskWarningRepresentation>;
|
|
95
99
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-sales-enablement-program",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.274.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "This set of adapters are used to interface and communicate with the connect-api for specific operations on sales enablement program.",
|
|
6
6
|
"main": "dist/es/es2018/sales-enablement-program.js",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"test": "nx build:karma && karma start --single-run"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@salesforce/lds-bindings": "^1.
|
|
46
|
+
"@salesforce/lds-bindings": "^1.274.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
50
|
-
"@salesforce/lds-karma": "^1.
|
|
49
|
+
"@salesforce/lds-compiler-plugins": "^1.274.0",
|
|
50
|
+
"@salesforce/lds-karma": "^1.274.0"
|
|
51
51
|
},
|
|
52
52
|
"nx": {
|
|
53
53
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -102,12 +102,165 @@ function createLink(ref) {
|
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
const VERSION$
|
|
105
|
+
const VERSION$5 = "6da84bea034646ff651ea5288937a968";
|
|
106
|
+
function validate$5(obj, path = 'EnablementProgramTaskMeasureRepresentation') {
|
|
107
|
+
const v_error = (() => {
|
|
108
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
109
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
110
|
+
}
|
|
111
|
+
const obj_alias = obj.alias;
|
|
112
|
+
const path_alias = path + '.alias';
|
|
113
|
+
let obj_alias_union0 = null;
|
|
114
|
+
const obj_alias_union0_error = (() => {
|
|
115
|
+
if (typeof obj_alias !== 'string') {
|
|
116
|
+
return new TypeError('Expected "string" but received "' + typeof obj_alias + '" (at "' + path_alias + '")');
|
|
117
|
+
}
|
|
118
|
+
})();
|
|
119
|
+
if (obj_alias_union0_error != null) {
|
|
120
|
+
obj_alias_union0 = obj_alias_union0_error.message;
|
|
121
|
+
}
|
|
122
|
+
let obj_alias_union1 = null;
|
|
123
|
+
const obj_alias_union1_error = (() => {
|
|
124
|
+
if (obj_alias !== null) {
|
|
125
|
+
return new TypeError('Expected "null" but received "' + typeof obj_alias + '" (at "' + path_alias + '")');
|
|
126
|
+
}
|
|
127
|
+
})();
|
|
128
|
+
if (obj_alias_union1_error != null) {
|
|
129
|
+
obj_alias_union1 = obj_alias_union1_error.message;
|
|
130
|
+
}
|
|
131
|
+
if (obj_alias_union0 && obj_alias_union1) {
|
|
132
|
+
let message = 'Object doesn\'t match union (at "' + path_alias + '")';
|
|
133
|
+
message += '\n' + obj_alias_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
134
|
+
message += '\n' + obj_alias_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
135
|
+
return new TypeError(message);
|
|
136
|
+
}
|
|
137
|
+
const obj_id = obj.id;
|
|
138
|
+
const path_id = path + '.id';
|
|
139
|
+
let obj_id_union0 = null;
|
|
140
|
+
const obj_id_union0_error = (() => {
|
|
141
|
+
if (typeof obj_id !== 'string') {
|
|
142
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
143
|
+
}
|
|
144
|
+
})();
|
|
145
|
+
if (obj_id_union0_error != null) {
|
|
146
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
147
|
+
}
|
|
148
|
+
let obj_id_union1 = null;
|
|
149
|
+
const obj_id_union1_error = (() => {
|
|
150
|
+
if (obj_id !== null) {
|
|
151
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
152
|
+
}
|
|
153
|
+
})();
|
|
154
|
+
if (obj_id_union1_error != null) {
|
|
155
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
156
|
+
}
|
|
157
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
158
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
159
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
160
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
161
|
+
return new TypeError(message);
|
|
162
|
+
}
|
|
163
|
+
const obj_measureId = obj.measureId;
|
|
164
|
+
const path_measureId = path + '.measureId';
|
|
165
|
+
let obj_measureId_union0 = null;
|
|
166
|
+
const obj_measureId_union0_error = (() => {
|
|
167
|
+
if (typeof obj_measureId !== 'string') {
|
|
168
|
+
return new TypeError('Expected "string" but received "' + typeof obj_measureId + '" (at "' + path_measureId + '")');
|
|
169
|
+
}
|
|
170
|
+
})();
|
|
171
|
+
if (obj_measureId_union0_error != null) {
|
|
172
|
+
obj_measureId_union0 = obj_measureId_union0_error.message;
|
|
173
|
+
}
|
|
174
|
+
let obj_measureId_union1 = null;
|
|
175
|
+
const obj_measureId_union1_error = (() => {
|
|
176
|
+
if (obj_measureId !== null) {
|
|
177
|
+
return new TypeError('Expected "null" but received "' + typeof obj_measureId + '" (at "' + path_measureId + '")');
|
|
178
|
+
}
|
|
179
|
+
})();
|
|
180
|
+
if (obj_measureId_union1_error != null) {
|
|
181
|
+
obj_measureId_union1 = obj_measureId_union1_error.message;
|
|
182
|
+
}
|
|
183
|
+
if (obj_measureId_union0 && obj_measureId_union1) {
|
|
184
|
+
let message = 'Object doesn\'t match union (at "' + path_measureId + '")';
|
|
185
|
+
message += '\n' + obj_measureId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
186
|
+
message += '\n' + obj_measureId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
187
|
+
return new TypeError(message);
|
|
188
|
+
}
|
|
189
|
+
})();
|
|
190
|
+
return v_error === undefined ? null : v_error;
|
|
191
|
+
}
|
|
192
|
+
const select$7 = function EnablementProgramTaskMeasureRepresentationSelect() {
|
|
193
|
+
return {
|
|
194
|
+
kind: 'Fragment',
|
|
195
|
+
version: VERSION$5,
|
|
196
|
+
private: [],
|
|
197
|
+
selections: [
|
|
198
|
+
{
|
|
199
|
+
name: 'alias',
|
|
200
|
+
kind: 'Scalar'
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: 'id',
|
|
204
|
+
kind: 'Scalar'
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: 'measureId',
|
|
208
|
+
kind: 'Scalar'
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
function equals$5(existing, incoming) {
|
|
214
|
+
const existing_alias = existing.alias;
|
|
215
|
+
const incoming_alias = incoming.alias;
|
|
216
|
+
if (!(existing_alias === incoming_alias)) {
|
|
217
|
+
return false;
|
|
218
|
+
}
|
|
219
|
+
const existing_id = existing.id;
|
|
220
|
+
const incoming_id = incoming.id;
|
|
221
|
+
if (!(existing_id === incoming_id)) {
|
|
222
|
+
return false;
|
|
223
|
+
}
|
|
224
|
+
const existing_measureId = existing.measureId;
|
|
225
|
+
const incoming_measureId = incoming.measureId;
|
|
226
|
+
if (!(existing_measureId === incoming_measureId)) {
|
|
227
|
+
return false;
|
|
228
|
+
}
|
|
229
|
+
return true;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
const VERSION$4 = "589a1d23d05a2a3795dbe451d9d64383";
|
|
106
233
|
function validate$4(obj, path = 'AbstractEnablementProgramTaskRepresentation') {
|
|
107
234
|
const v_error = (() => {
|
|
108
235
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
109
236
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
110
237
|
}
|
|
238
|
+
const obj_compositeMilestoneType = obj.compositeMilestoneType;
|
|
239
|
+
const path_compositeMilestoneType = path + '.compositeMilestoneType';
|
|
240
|
+
let obj_compositeMilestoneType_union0 = null;
|
|
241
|
+
const obj_compositeMilestoneType_union0_error = (() => {
|
|
242
|
+
if (typeof obj_compositeMilestoneType !== 'string') {
|
|
243
|
+
return new TypeError('Expected "string" but received "' + typeof obj_compositeMilestoneType + '" (at "' + path_compositeMilestoneType + '")');
|
|
244
|
+
}
|
|
245
|
+
})();
|
|
246
|
+
if (obj_compositeMilestoneType_union0_error != null) {
|
|
247
|
+
obj_compositeMilestoneType_union0 = obj_compositeMilestoneType_union0_error.message;
|
|
248
|
+
}
|
|
249
|
+
let obj_compositeMilestoneType_union1 = null;
|
|
250
|
+
const obj_compositeMilestoneType_union1_error = (() => {
|
|
251
|
+
if (obj_compositeMilestoneType !== null) {
|
|
252
|
+
return new TypeError('Expected "null" but received "' + typeof obj_compositeMilestoneType + '" (at "' + path_compositeMilestoneType + '")');
|
|
253
|
+
}
|
|
254
|
+
})();
|
|
255
|
+
if (obj_compositeMilestoneType_union1_error != null) {
|
|
256
|
+
obj_compositeMilestoneType_union1 = obj_compositeMilestoneType_union1_error.message;
|
|
257
|
+
}
|
|
258
|
+
if (obj_compositeMilestoneType_union0 && obj_compositeMilestoneType_union1) {
|
|
259
|
+
let message = 'Object doesn\'t match union (at "' + path_compositeMilestoneType + '")';
|
|
260
|
+
message += '\n' + obj_compositeMilestoneType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
261
|
+
message += '\n' + obj_compositeMilestoneType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
262
|
+
return new TypeError(message);
|
|
263
|
+
}
|
|
111
264
|
const obj_contentType = obj.contentType;
|
|
112
265
|
const path_contentType = path + '.contentType';
|
|
113
266
|
let obj_contentType_union0 = null;
|
|
@@ -430,32 +583,6 @@ function validate$4(obj, path = 'AbstractEnablementProgramTaskRepresentation') {
|
|
|
430
583
|
message += '\n' + obj_learningItemUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
431
584
|
return new TypeError(message);
|
|
432
585
|
}
|
|
433
|
-
const obj_measureId = obj.measureId;
|
|
434
|
-
const path_measureId = path + '.measureId';
|
|
435
|
-
let obj_measureId_union0 = null;
|
|
436
|
-
const obj_measureId_union0_error = (() => {
|
|
437
|
-
if (typeof obj_measureId !== 'string') {
|
|
438
|
-
return new TypeError('Expected "string" but received "' + typeof obj_measureId + '" (at "' + path_measureId + '")');
|
|
439
|
-
}
|
|
440
|
-
})();
|
|
441
|
-
if (obj_measureId_union0_error != null) {
|
|
442
|
-
obj_measureId_union0 = obj_measureId_union0_error.message;
|
|
443
|
-
}
|
|
444
|
-
let obj_measureId_union1 = null;
|
|
445
|
-
const obj_measureId_union1_error = (() => {
|
|
446
|
-
if (obj_measureId !== null) {
|
|
447
|
-
return new TypeError('Expected "null" but received "' + typeof obj_measureId + '" (at "' + path_measureId + '")');
|
|
448
|
-
}
|
|
449
|
-
})();
|
|
450
|
-
if (obj_measureId_union1_error != null) {
|
|
451
|
-
obj_measureId_union1 = obj_measureId_union1_error.message;
|
|
452
|
-
}
|
|
453
|
-
if (obj_measureId_union0 && obj_measureId_union1) {
|
|
454
|
-
let message = 'Object doesn\'t match union (at "' + path_measureId + '")';
|
|
455
|
-
message += '\n' + obj_measureId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
456
|
-
message += '\n' + obj_measureId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
457
|
-
return new TypeError(message);
|
|
458
|
-
}
|
|
459
586
|
obj.milestoneTarget;
|
|
460
587
|
const obj_minimumSampleSize = obj.minimumSampleSize;
|
|
461
588
|
const path_minimumSampleSize = path + '.minimumSampleSize';
|
|
@@ -503,6 +630,21 @@ function validate$4(obj, path = 'AbstractEnablementProgramTaskRepresentation') {
|
|
|
503
630
|
if (typeof obj_taskCategory !== 'string') {
|
|
504
631
|
return new TypeError('Expected "string" but received "' + typeof obj_taskCategory + '" (at "' + path_taskCategory + '")');
|
|
505
632
|
}
|
|
633
|
+
const obj_taskMeasures = obj.taskMeasures;
|
|
634
|
+
const path_taskMeasures = path + '.taskMeasures';
|
|
635
|
+
if (!ArrayIsArray(obj_taskMeasures)) {
|
|
636
|
+
return new TypeError('Expected "array" but received "' + typeof obj_taskMeasures + '" (at "' + path_taskMeasures + '")');
|
|
637
|
+
}
|
|
638
|
+
for (let i = 0; i < obj_taskMeasures.length; i++) {
|
|
639
|
+
const obj_taskMeasures_item = obj_taskMeasures[i];
|
|
640
|
+
const path_taskMeasures_item = path_taskMeasures + '[' + i + ']';
|
|
641
|
+
const referencepath_taskMeasures_itemValidationError = validate$5(obj_taskMeasures_item, path_taskMeasures_item);
|
|
642
|
+
if (referencepath_taskMeasures_itemValidationError !== null) {
|
|
643
|
+
let message = 'Object doesn\'t match EnablementProgramTaskMeasureRepresentation (at "' + path_taskMeasures_item + '")\n';
|
|
644
|
+
message += referencepath_taskMeasures_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
645
|
+
return new TypeError(message);
|
|
646
|
+
}
|
|
647
|
+
}
|
|
506
648
|
const obj_taskSubCategory = obj.taskSubCategory;
|
|
507
649
|
const path_taskSubCategory = path + '.taskSubCategory';
|
|
508
650
|
if (typeof obj_taskSubCategory !== 'string') {
|
|
@@ -517,11 +659,16 @@ function validate$4(obj, path = 'AbstractEnablementProgramTaskRepresentation') {
|
|
|
517
659
|
return v_error === undefined ? null : v_error;
|
|
518
660
|
}
|
|
519
661
|
const select$6 = function AbstractEnablementProgramTaskRepresentationSelect() {
|
|
662
|
+
const { selections: EnablementProgramTaskMeasureRepresentation__selections, opaque: EnablementProgramTaskMeasureRepresentation__opaque, } = select$7();
|
|
520
663
|
return {
|
|
521
664
|
kind: 'Fragment',
|
|
522
665
|
version: VERSION$4,
|
|
523
666
|
private: [],
|
|
524
667
|
selections: [
|
|
668
|
+
{
|
|
669
|
+
name: 'compositeMilestoneType',
|
|
670
|
+
kind: 'Scalar'
|
|
671
|
+
},
|
|
525
672
|
{
|
|
526
673
|
name: 'contentType',
|
|
527
674
|
kind: 'Scalar'
|
|
@@ -578,10 +725,6 @@ const select$6 = function AbstractEnablementProgramTaskRepresentationSelect() {
|
|
|
578
725
|
name: 'learningItemUrl',
|
|
579
726
|
kind: 'Scalar'
|
|
580
727
|
},
|
|
581
|
-
{
|
|
582
|
-
name: 'measureId',
|
|
583
|
-
kind: 'Scalar'
|
|
584
|
-
},
|
|
585
728
|
{
|
|
586
729
|
name: 'milestoneTarget',
|
|
587
730
|
kind: 'Scalar'
|
|
@@ -606,6 +749,12 @@ const select$6 = function AbstractEnablementProgramTaskRepresentationSelect() {
|
|
|
606
749
|
name: 'taskCategory',
|
|
607
750
|
kind: 'Scalar'
|
|
608
751
|
},
|
|
752
|
+
{
|
|
753
|
+
name: 'taskMeasures',
|
|
754
|
+
kind: 'Object',
|
|
755
|
+
plural: true,
|
|
756
|
+
selections: EnablementProgramTaskMeasureRepresentation__selections
|
|
757
|
+
},
|
|
609
758
|
{
|
|
610
759
|
name: 'taskSubCategory',
|
|
611
760
|
kind: 'Scalar'
|
|
@@ -659,6 +808,11 @@ function equals$4(existing, incoming) {
|
|
|
659
808
|
if (!(existing_milestoneTarget === incoming_milestoneTarget)) {
|
|
660
809
|
return false;
|
|
661
810
|
}
|
|
811
|
+
const existing_compositeMilestoneType = existing.compositeMilestoneType;
|
|
812
|
+
const incoming_compositeMilestoneType = incoming.compositeMilestoneType;
|
|
813
|
+
if (!(existing_compositeMilestoneType === incoming_compositeMilestoneType)) {
|
|
814
|
+
return false;
|
|
815
|
+
}
|
|
662
816
|
const existing_contentType = existing.contentType;
|
|
663
817
|
const incoming_contentType = incoming.contentType;
|
|
664
818
|
if (!(existing_contentType === incoming_contentType)) {
|
|
@@ -719,16 +873,21 @@ function equals$4(existing, incoming) {
|
|
|
719
873
|
if (!(existing_learningItemUrl === incoming_learningItemUrl)) {
|
|
720
874
|
return false;
|
|
721
875
|
}
|
|
722
|
-
const existing_measureId = existing.measureId;
|
|
723
|
-
const incoming_measureId = incoming.measureId;
|
|
724
|
-
if (!(existing_measureId === incoming_measureId)) {
|
|
725
|
-
return false;
|
|
726
|
-
}
|
|
727
876
|
const existing_minimumSampleSize = existing.minimumSampleSize;
|
|
728
877
|
const incoming_minimumSampleSize = incoming.minimumSampleSize;
|
|
729
878
|
if (!(existing_minimumSampleSize === incoming_minimumSampleSize)) {
|
|
730
879
|
return false;
|
|
731
880
|
}
|
|
881
|
+
const existing_taskMeasures = existing.taskMeasures;
|
|
882
|
+
const incoming_taskMeasures = incoming.taskMeasures;
|
|
883
|
+
const equals_taskMeasures_items = equalsArray(existing_taskMeasures, incoming_taskMeasures, (existing_taskMeasures_item, incoming_taskMeasures_item) => {
|
|
884
|
+
if (!(equals$5(existing_taskMeasures_item, incoming_taskMeasures_item))) {
|
|
885
|
+
return false;
|
|
886
|
+
}
|
|
887
|
+
});
|
|
888
|
+
if (equals_taskMeasures_items === false) {
|
|
889
|
+
return false;
|
|
890
|
+
}
|
|
732
891
|
const existing_warnings = existing.warnings;
|
|
733
892
|
const incoming_warnings = incoming.warnings;
|
|
734
893
|
if (JSONStringify(incoming_warnings) !== JSONStringify(existing_warnings)) {
|
|
@@ -1577,4 +1736,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1577
1736
|
});
|
|
1578
1737
|
|
|
1579
1738
|
export { getProgramTemplate, getProgramTemplate_imperative, getProgramTemplates, getProgramTemplates_imperative };
|
|
1580
|
-
// version: 1.
|
|
1739
|
+
// version: 1.274.0-a59680ec1
|
package/src/raml/api.raml
CHANGED
|
@@ -63,6 +63,13 @@ types:
|
|
|
63
63
|
description: Common Enablement Program item representation
|
|
64
64
|
type: object
|
|
65
65
|
properties:
|
|
66
|
+
compositeMilestoneType:
|
|
67
|
+
description: Composite milestone type for the enablement task
|
|
68
|
+
type: string | nil
|
|
69
|
+
enum:
|
|
70
|
+
- Percentage
|
|
71
|
+
- Division
|
|
72
|
+
- Addition
|
|
66
73
|
contentType:
|
|
67
74
|
description: Content type for the enablement task
|
|
68
75
|
type: string | nil # TODO hand rolled. W-11194242
|
|
@@ -124,9 +131,6 @@ types:
|
|
|
124
131
|
description: Minimum Sample Size of the enablement measure with aggregation
|
|
125
132
|
type average
|
|
126
133
|
type: integer | nil # TODO hand rolled. W-11194242
|
|
127
|
-
measureId:
|
|
128
|
-
description: measure
|
|
129
|
-
type: string | nil # TODO hand rolled. W-11194242
|
|
130
134
|
name:
|
|
131
135
|
description: Name of the enablement task
|
|
132
136
|
type: string
|
|
@@ -142,6 +146,11 @@ types:
|
|
|
142
146
|
enum:
|
|
143
147
|
- Exercise
|
|
144
148
|
- Milestone
|
|
149
|
+
taskMeasures:
|
|
150
|
+
description: Related task measure details for the enablement task
|
|
151
|
+
type: array
|
|
152
|
+
items:
|
|
153
|
+
type: EnablementProgramTaskMeasureRepresentation
|
|
145
154
|
taskSubCategory:
|
|
146
155
|
description: Sub Category Type of the enablement task
|
|
147
156
|
type: string
|
|
@@ -837,6 +846,13 @@ types:
|
|
|
837
846
|
details for a enablement Program.
|
|
838
847
|
type: object
|
|
839
848
|
properties:
|
|
849
|
+
compositeMilestoneType:
|
|
850
|
+
description: Composite milestone type of the enablement task definition
|
|
851
|
+
type: string
|
|
852
|
+
enum:
|
|
853
|
+
- Percentage
|
|
854
|
+
- Division
|
|
855
|
+
- Addition
|
|
840
856
|
day:
|
|
841
857
|
description: Day of the enablement task definition
|
|
842
858
|
type: integer
|
|
@@ -867,9 +883,6 @@ types:
|
|
|
867
883
|
learningItem:
|
|
868
884
|
description: Learning Item of the enablement task definition
|
|
869
885
|
type: string
|
|
870
|
-
measureId:
|
|
871
|
-
description: Measure Id of the enablement task definition
|
|
872
|
-
type: string
|
|
873
886
|
milestoneTarget:
|
|
874
887
|
description: Milestone Target of the enablement task definition
|
|
875
888
|
format: double
|
|
@@ -889,6 +902,11 @@ types:
|
|
|
889
902
|
enum:
|
|
890
903
|
- Exercise
|
|
891
904
|
- Milestone
|
|
905
|
+
taskMeasures:
|
|
906
|
+
description: Task measure details of the enablement task definition
|
|
907
|
+
type: array
|
|
908
|
+
items:
|
|
909
|
+
type: EnablementProgramTaskMeasureInputRepresentation
|
|
892
910
|
taskSubCategory:
|
|
893
911
|
description: Task SubCategory of the enablement task definition
|
|
894
912
|
type: string
|
|
@@ -901,11 +919,34 @@ types:
|
|
|
901
919
|
- TextLesson
|
|
902
920
|
- Trailhead
|
|
903
921
|
- Video
|
|
922
|
+
EnablementProgramTaskMeasureInputRepresentation:
|
|
923
|
+
description: Builder representation of an enablement task measure
|
|
924
|
+
type: object
|
|
925
|
+
properties:
|
|
926
|
+
alias:
|
|
927
|
+
description: Alias of enablement task measure
|
|
928
|
+
type: string | nil
|
|
929
|
+
enablementProgramTask:
|
|
930
|
+
description: Enablement Program Task of the enablement Measure
|
|
931
|
+
type: string | nil
|
|
932
|
+
id:
|
|
933
|
+
description: Id of the enablement task measure
|
|
934
|
+
type: string | nil
|
|
935
|
+
measureId:
|
|
936
|
+
description: Measure Id of the enablement task measure
|
|
937
|
+
type: string | nil
|
|
904
938
|
EnablementProgramTaskRepresentation:
|
|
905
939
|
description: Runtime representation of an enablement program item. Contains item
|
|
906
940
|
details as well as progress for the current user.
|
|
907
941
|
type: object
|
|
908
942
|
properties:
|
|
943
|
+
compositeMilestoneType:
|
|
944
|
+
description: Composite milestone type for the enablement task
|
|
945
|
+
type: string
|
|
946
|
+
enum:
|
|
947
|
+
- Percentage
|
|
948
|
+
- Division
|
|
949
|
+
- Addition
|
|
909
950
|
contentType:
|
|
910
951
|
description: Content type for the enablement task
|
|
911
952
|
type: string
|
|
@@ -995,14 +1036,29 @@ types:
|
|
|
995
1036
|
- TextLesson
|
|
996
1037
|
- Trailhead
|
|
997
1038
|
- Video
|
|
998
|
-
|
|
999
|
-
description: Related measure
|
|
1000
|
-
type:
|
|
1039
|
+
taskMeasures:
|
|
1040
|
+
description: Related task measure details for the enablement task
|
|
1041
|
+
type: array
|
|
1042
|
+
items:
|
|
1043
|
+
type: EnablementProgramTaskMeasureRepresentation
|
|
1001
1044
|
warnings:
|
|
1002
1045
|
description: Related Warnings for the enablement task
|
|
1003
1046
|
type: array
|
|
1004
1047
|
items:
|
|
1005
1048
|
type: ProgramTaskWarningRepresentation
|
|
1049
|
+
EnablementProgramTaskMeasureRepresentation:
|
|
1050
|
+
description: Runtime representation of an enablement measure details
|
|
1051
|
+
type: object
|
|
1052
|
+
properties:
|
|
1053
|
+
alias:
|
|
1054
|
+
description: Alias of enablement task measure
|
|
1055
|
+
type: string | nil
|
|
1056
|
+
id:
|
|
1057
|
+
description: Id of the enablement task measure
|
|
1058
|
+
type: string | nil
|
|
1059
|
+
measureId:
|
|
1060
|
+
description: Measure Id of the enablement task measure
|
|
1061
|
+
type: string | nil
|
|
1006
1062
|
ProgramTaskWarningRepresentation:
|
|
1007
1063
|
description: Program Task Warning Representation
|
|
1008
1064
|
type: object
|