@salesforce/lds-adapters-service-serviceemployee 1.380.0-dev1 → 1.381.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/service-serviceemployee.js +232 -61
- package/dist/es/es2018/types/src/generated/types/EnablementProgramOutputRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/EnablementProgramTaskOutputRepresentation.d.ts +8 -1
- package/dist/es/es2018/types/src/generated/types/ProgramPersonaOutputRepresentation.d.ts +34 -0
- package/package.json +3 -3
- package/sfdc/index.js +223 -52
- package/src/raml/api.raml +23 -0
|
@@ -92,8 +92,8 @@ function createLink(ref) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
const VERSION$
|
|
96
|
-
function validate$
|
|
95
|
+
const VERSION$j = "7bf71d57246e2ee1d5ba5890c3c2bb88";
|
|
96
|
+
function validate$l(obj, path = 'EmployeeProfileCardFieldValueOutputRepresentation') {
|
|
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 + '")');
|
|
@@ -142,10 +142,10 @@ function validate$k(obj, path = 'EmployeeProfileCardFieldValueOutputRepresentati
|
|
|
142
142
|
})();
|
|
143
143
|
return v_error === undefined ? null : v_error;
|
|
144
144
|
}
|
|
145
|
-
const select$
|
|
145
|
+
const select$q = function EmployeeProfileCardFieldValueOutputRepresentationSelect() {
|
|
146
146
|
return {
|
|
147
147
|
kind: 'Fragment',
|
|
148
|
-
version: VERSION$
|
|
148
|
+
version: VERSION$j,
|
|
149
149
|
private: [],
|
|
150
150
|
selections: [
|
|
151
151
|
{
|
|
@@ -167,7 +167,7 @@ const select$p = function EmployeeProfileCardFieldValueOutputRepresentationSelec
|
|
|
167
167
|
]
|
|
168
168
|
};
|
|
169
169
|
};
|
|
170
|
-
function equals$
|
|
170
|
+
function equals$j(existing, incoming) {
|
|
171
171
|
const existing_displayName = existing.displayName;
|
|
172
172
|
const incoming_displayName = incoming.displayName;
|
|
173
173
|
if (!(existing_displayName === incoming_displayName)) {
|
|
@@ -191,8 +191,8 @@ function equals$i(existing, incoming) {
|
|
|
191
191
|
return true;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
const VERSION$
|
|
195
|
-
function validate$
|
|
194
|
+
const VERSION$i = "63e97aada6f756dcca30661a15f26c87";
|
|
195
|
+
function validate$k(obj, path = 'EmployeeProfileCardOutputRepresentation') {
|
|
196
196
|
const v_error = (() => {
|
|
197
197
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
198
198
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -210,7 +210,7 @@ function validate$j(obj, path = 'EmployeeProfileCardOutputRepresentation') {
|
|
|
210
210
|
for (let i = 0; i < obj_fieldValueData.length; i++) {
|
|
211
211
|
const obj_fieldValueData_item = obj_fieldValueData[i];
|
|
212
212
|
const path_fieldValueData_item = path_fieldValueData + '[' + i + ']';
|
|
213
|
-
const referencepath_fieldValueData_itemValidationError = validate$
|
|
213
|
+
const referencepath_fieldValueData_itemValidationError = validate$l(obj_fieldValueData_item, path_fieldValueData_item);
|
|
214
214
|
if (referencepath_fieldValueData_itemValidationError !== null) {
|
|
215
215
|
let message = 'Object doesn\'t match EmployeeProfileCardFieldValueOutputRepresentation (at "' + path_fieldValueData_item + '")\n';
|
|
216
216
|
message += referencepath_fieldValueData_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -220,11 +220,11 @@ function validate$j(obj, path = 'EmployeeProfileCardOutputRepresentation') {
|
|
|
220
220
|
})();
|
|
221
221
|
return v_error === undefined ? null : v_error;
|
|
222
222
|
}
|
|
223
|
-
const select$
|
|
224
|
-
const { selections: EmployeeProfileCardFieldValueOutputRepresentation__selections, opaque: EmployeeProfileCardFieldValueOutputRepresentation__opaque, } = select$
|
|
223
|
+
const select$p = function EmployeeProfileCardOutputRepresentationSelect() {
|
|
224
|
+
const { selections: EmployeeProfileCardFieldValueOutputRepresentation__selections, opaque: EmployeeProfileCardFieldValueOutputRepresentation__opaque, } = select$q();
|
|
225
225
|
return {
|
|
226
226
|
kind: 'Fragment',
|
|
227
|
-
version: VERSION$
|
|
227
|
+
version: VERSION$i,
|
|
228
228
|
private: [],
|
|
229
229
|
selections: [
|
|
230
230
|
{
|
|
@@ -240,7 +240,7 @@ const select$o = function EmployeeProfileCardOutputRepresentationSelect() {
|
|
|
240
240
|
]
|
|
241
241
|
};
|
|
242
242
|
};
|
|
243
|
-
function equals$
|
|
243
|
+
function equals$i(existing, incoming) {
|
|
244
244
|
const existing_entityName = existing.entityName;
|
|
245
245
|
const incoming_entityName = incoming.entityName;
|
|
246
246
|
if (!(existing_entityName === incoming_entityName)) {
|
|
@@ -249,7 +249,7 @@ function equals$h(existing, incoming) {
|
|
|
249
249
|
const existing_fieldValueData = existing.fieldValueData;
|
|
250
250
|
const incoming_fieldValueData = incoming.fieldValueData;
|
|
251
251
|
const equals_fieldValueData_items = equalsArray(existing_fieldValueData, incoming_fieldValueData, (existing_fieldValueData_item, incoming_fieldValueData_item) => {
|
|
252
|
-
if (!(equals$
|
|
252
|
+
if (!(equals$j(existing_fieldValueData_item, incoming_fieldValueData_item))) {
|
|
253
253
|
return false;
|
|
254
254
|
}
|
|
255
255
|
});
|
|
@@ -259,8 +259,8 @@ function equals$h(existing, incoming) {
|
|
|
259
259
|
return true;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
const VERSION$
|
|
263
|
-
function validate$
|
|
262
|
+
const VERSION$h = "b13e8c6518c9147325425600026202eb";
|
|
263
|
+
function validate$j(obj, path = 'EmployeeProfileCardStatusOutputRepresentation') {
|
|
264
264
|
const v_error = (() => {
|
|
265
265
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
266
266
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -278,10 +278,10 @@ function validate$i(obj, path = 'EmployeeProfileCardStatusOutputRepresentation')
|
|
|
278
278
|
})();
|
|
279
279
|
return v_error === undefined ? null : v_error;
|
|
280
280
|
}
|
|
281
|
-
const select$
|
|
281
|
+
const select$o = function EmployeeProfileCardStatusOutputRepresentationSelect() {
|
|
282
282
|
return {
|
|
283
283
|
kind: 'Fragment',
|
|
284
|
-
version: VERSION$
|
|
284
|
+
version: VERSION$h,
|
|
285
285
|
private: [],
|
|
286
286
|
selections: [
|
|
287
287
|
{
|
|
@@ -295,7 +295,7 @@ const select$n = function EmployeeProfileCardStatusOutputRepresentationSelect()
|
|
|
295
295
|
]
|
|
296
296
|
};
|
|
297
297
|
};
|
|
298
|
-
function equals$
|
|
298
|
+
function equals$h(existing, incoming) {
|
|
299
299
|
const existing_code = existing.code;
|
|
300
300
|
const incoming_code = incoming.code;
|
|
301
301
|
if (!(existing_code === incoming_code)) {
|
|
@@ -309,8 +309,8 @@ function equals$g(existing, incoming) {
|
|
|
309
309
|
return true;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
-
const VERSION$
|
|
313
|
-
function validate$
|
|
312
|
+
const VERSION$g = "61b48f8b587aa42ecef1315aa0dca4d9";
|
|
313
|
+
function validate$i(obj, path = 'EmployeeProfileCardListOutputRepresentation') {
|
|
314
314
|
const v_error = (() => {
|
|
315
315
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
316
316
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -323,7 +323,7 @@ function validate$h(obj, path = 'EmployeeProfileCardListOutputRepresentation') {
|
|
|
323
323
|
for (let i = 0; i < obj_fieldValueDataList.length; i++) {
|
|
324
324
|
const obj_fieldValueDataList_item = obj_fieldValueDataList[i];
|
|
325
325
|
const path_fieldValueDataList_item = path_fieldValueDataList + '[' + i + ']';
|
|
326
|
-
const referencepath_fieldValueDataList_itemValidationError = validate$
|
|
326
|
+
const referencepath_fieldValueDataList_itemValidationError = validate$k(obj_fieldValueDataList_item, path_fieldValueDataList_item);
|
|
327
327
|
if (referencepath_fieldValueDataList_itemValidationError !== null) {
|
|
328
328
|
let message = 'Object doesn\'t match EmployeeProfileCardOutputRepresentation (at "' + path_fieldValueDataList_item + '")\n';
|
|
329
329
|
message += referencepath_fieldValueDataList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -332,7 +332,7 @@ function validate$h(obj, path = 'EmployeeProfileCardListOutputRepresentation') {
|
|
|
332
332
|
}
|
|
333
333
|
const obj_status = obj.status;
|
|
334
334
|
const path_status = path + '.status';
|
|
335
|
-
const referencepath_statusValidationError = validate$
|
|
335
|
+
const referencepath_statusValidationError = validate$j(obj_status, path_status);
|
|
336
336
|
if (referencepath_statusValidationError !== null) {
|
|
337
337
|
let message = 'Object doesn\'t match EmployeeProfileCardStatusOutputRepresentation (at "' + path_status + '")\n';
|
|
338
338
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -354,12 +354,12 @@ function keyBuilderFromType$3(luvio, object) {
|
|
|
354
354
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
355
355
|
return input;
|
|
356
356
|
}
|
|
357
|
-
const select$
|
|
358
|
-
const { selections: EmployeeProfileCardOutputRepresentation__selections, opaque: EmployeeProfileCardOutputRepresentation__opaque, } = select$
|
|
359
|
-
const { selections: EmployeeProfileCardStatusOutputRepresentation__selections, opaque: EmployeeProfileCardStatusOutputRepresentation__opaque, } = select$
|
|
357
|
+
const select$n = function EmployeeProfileCardListOutputRepresentationSelect() {
|
|
358
|
+
const { selections: EmployeeProfileCardOutputRepresentation__selections, opaque: EmployeeProfileCardOutputRepresentation__opaque, } = select$p();
|
|
359
|
+
const { selections: EmployeeProfileCardStatusOutputRepresentation__selections, opaque: EmployeeProfileCardStatusOutputRepresentation__opaque, } = select$o();
|
|
360
360
|
return {
|
|
361
361
|
kind: 'Fragment',
|
|
362
|
-
version: VERSION$
|
|
362
|
+
version: VERSION$g,
|
|
363
363
|
private: [],
|
|
364
364
|
selections: [
|
|
365
365
|
{
|
|
@@ -376,11 +376,11 @@ const select$m = function EmployeeProfileCardListOutputRepresentationSelect() {
|
|
|
376
376
|
]
|
|
377
377
|
};
|
|
378
378
|
};
|
|
379
|
-
function equals$
|
|
379
|
+
function equals$g(existing, incoming) {
|
|
380
380
|
const existing_fieldValueDataList = existing.fieldValueDataList;
|
|
381
381
|
const incoming_fieldValueDataList = incoming.fieldValueDataList;
|
|
382
382
|
const equals_fieldValueDataList_items = equalsArray(existing_fieldValueDataList, incoming_fieldValueDataList, (existing_fieldValueDataList_item, incoming_fieldValueDataList_item) => {
|
|
383
|
-
if (!(equals$
|
|
383
|
+
if (!(equals$i(existing_fieldValueDataList_item, incoming_fieldValueDataList_item))) {
|
|
384
384
|
return false;
|
|
385
385
|
}
|
|
386
386
|
});
|
|
@@ -389,21 +389,21 @@ function equals$f(existing, incoming) {
|
|
|
389
389
|
}
|
|
390
390
|
const existing_status = existing.status;
|
|
391
391
|
const incoming_status = incoming.status;
|
|
392
|
-
if (!(equals$
|
|
392
|
+
if (!(equals$h(existing_status, incoming_status))) {
|
|
393
393
|
return false;
|
|
394
394
|
}
|
|
395
395
|
return true;
|
|
396
396
|
}
|
|
397
397
|
const ingest$6 = function EmployeeProfileCardListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
398
398
|
if (process.env.NODE_ENV !== 'production') {
|
|
399
|
-
const validateError = validate$
|
|
399
|
+
const validateError = validate$i(input);
|
|
400
400
|
if (validateError !== null) {
|
|
401
401
|
throw validateError;
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
const key = keyBuilderFromType$3(luvio, input);
|
|
405
405
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 300;
|
|
406
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "Service-employee", VERSION$
|
|
406
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "Service-employee", VERSION$g, RepresentationType$6, equals$g);
|
|
407
407
|
return createLink(key);
|
|
408
408
|
};
|
|
409
409
|
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -416,8 +416,8 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
-
function select$
|
|
420
|
-
return select$
|
|
419
|
+
function select$m(luvio, params) {
|
|
420
|
+
return select$n();
|
|
421
421
|
}
|
|
422
422
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
423
423
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
@@ -428,7 +428,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
428
428
|
luvio.storeIngest(key, ingest$6, body);
|
|
429
429
|
const snapshot = luvio.storeLookup({
|
|
430
430
|
recordId: key,
|
|
431
|
-
node: select$
|
|
431
|
+
node: select$m(),
|
|
432
432
|
variables: {},
|
|
433
433
|
});
|
|
434
434
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -516,8 +516,8 @@ const getFieldDetailsFromCompactLayoutAdapterFactory = (luvio) => {
|
|
|
516
516
|
};
|
|
517
517
|
};
|
|
518
518
|
|
|
519
|
-
const VERSION$
|
|
520
|
-
function validate$
|
|
519
|
+
const VERSION$f = "ed936bbb66e34f6168f8a0621da9e2fd";
|
|
520
|
+
function validate$h(obj, path = 'UserProfileDetailOutputRepresentation') {
|
|
521
521
|
const v_error = (() => {
|
|
522
522
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
523
523
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -542,10 +542,10 @@ function validate$g(obj, path = 'UserProfileDetailOutputRepresentation') {
|
|
|
542
542
|
})();
|
|
543
543
|
return v_error === undefined ? null : v_error;
|
|
544
544
|
}
|
|
545
|
-
const select$
|
|
545
|
+
const select$l = function UserProfileDetailOutputRepresentationSelect() {
|
|
546
546
|
return {
|
|
547
547
|
kind: 'Fragment',
|
|
548
|
-
version: VERSION$
|
|
548
|
+
version: VERSION$f,
|
|
549
549
|
private: [],
|
|
550
550
|
selections: [
|
|
551
551
|
{
|
|
@@ -560,7 +560,7 @@ const select$k = function UserProfileDetailOutputRepresentationSelect() {
|
|
|
560
560
|
]
|
|
561
561
|
};
|
|
562
562
|
};
|
|
563
|
-
function equals$
|
|
563
|
+
function equals$f(existing, incoming) {
|
|
564
564
|
const existing_objectName = existing.objectName;
|
|
565
565
|
const incoming_objectName = incoming.objectName;
|
|
566
566
|
if (!(existing_objectName === incoming_objectName)) {
|
|
@@ -579,8 +579,8 @@ function equals$e(existing, incoming) {
|
|
|
579
579
|
return true;
|
|
580
580
|
}
|
|
581
581
|
|
|
582
|
-
const VERSION$
|
|
583
|
-
function validate$
|
|
582
|
+
const VERSION$e = "f41210ee161819f019d2183a40b7702a";
|
|
583
|
+
function validate$g(obj, path = 'ServiceEmployeeStatusOutputRepresentation') {
|
|
584
584
|
const v_error = (() => {
|
|
585
585
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
586
586
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -598,10 +598,10 @@ function validate$f(obj, path = 'ServiceEmployeeStatusOutputRepresentation') {
|
|
|
598
598
|
})();
|
|
599
599
|
return v_error === undefined ? null : v_error;
|
|
600
600
|
}
|
|
601
|
-
const select$
|
|
601
|
+
const select$k = function ServiceEmployeeStatusOutputRepresentationSelect() {
|
|
602
602
|
return {
|
|
603
603
|
kind: 'Fragment',
|
|
604
|
-
version: VERSION$
|
|
604
|
+
version: VERSION$e,
|
|
605
605
|
private: [],
|
|
606
606
|
selections: [
|
|
607
607
|
{
|
|
@@ -615,7 +615,7 @@ const select$j = function ServiceEmployeeStatusOutputRepresentationSelect() {
|
|
|
615
615
|
]
|
|
616
616
|
};
|
|
617
617
|
};
|
|
618
|
-
function equals$
|
|
618
|
+
function equals$e(existing, incoming) {
|
|
619
619
|
const existing_code = existing.code;
|
|
620
620
|
const incoming_code = incoming.code;
|
|
621
621
|
if (!(existing_code === incoming_code)) {
|
|
@@ -629,8 +629,8 @@ function equals$d(existing, incoming) {
|
|
|
629
629
|
return true;
|
|
630
630
|
}
|
|
631
631
|
|
|
632
|
-
const VERSION$
|
|
633
|
-
function validate$
|
|
632
|
+
const VERSION$d = "9e59517bf5add11ce0b6e2b89f3c6225";
|
|
633
|
+
function validate$f(obj, path = 'UserProfileOutputRepresentation') {
|
|
634
634
|
const v_error = (() => {
|
|
635
635
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
636
636
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -643,7 +643,7 @@ function validate$e(obj, path = 'UserProfileOutputRepresentation') {
|
|
|
643
643
|
for (let i = 0; i < obj_profileDetails.length; i++) {
|
|
644
644
|
const obj_profileDetails_item = obj_profileDetails[i];
|
|
645
645
|
const path_profileDetails_item = path_profileDetails + '[' + i + ']';
|
|
646
|
-
const referencepath_profileDetails_itemValidationError = validate$
|
|
646
|
+
const referencepath_profileDetails_itemValidationError = validate$h(obj_profileDetails_item, path_profileDetails_item);
|
|
647
647
|
if (referencepath_profileDetails_itemValidationError !== null) {
|
|
648
648
|
let message = 'Object doesn\'t match UserProfileDetailOutputRepresentation (at "' + path_profileDetails_item + '")\n';
|
|
649
649
|
message += referencepath_profileDetails_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -652,7 +652,7 @@ function validate$e(obj, path = 'UserProfileOutputRepresentation') {
|
|
|
652
652
|
}
|
|
653
653
|
const obj_status = obj.status;
|
|
654
654
|
const path_status = path + '.status';
|
|
655
|
-
const referencepath_statusValidationError = validate$
|
|
655
|
+
const referencepath_statusValidationError = validate$g(obj_status, path_status);
|
|
656
656
|
if (referencepath_statusValidationError !== null) {
|
|
657
657
|
let message = 'Object doesn\'t match ServiceEmployeeStatusOutputRepresentation (at "' + path_status + '")\n';
|
|
658
658
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -674,12 +674,12 @@ function keyBuilderFromType$2(luvio, object) {
|
|
|
674
674
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
675
675
|
return input;
|
|
676
676
|
}
|
|
677
|
-
const select$
|
|
678
|
-
const { selections: UserProfileDetailOutputRepresentation__selections, opaque: UserProfileDetailOutputRepresentation__opaque, } = select$
|
|
679
|
-
const { selections: ServiceEmployeeStatusOutputRepresentation__selections, opaque: ServiceEmployeeStatusOutputRepresentation__opaque, } = select$
|
|
677
|
+
const select$j = function UserProfileOutputRepresentationSelect() {
|
|
678
|
+
const { selections: UserProfileDetailOutputRepresentation__selections, opaque: UserProfileDetailOutputRepresentation__opaque, } = select$l();
|
|
679
|
+
const { selections: ServiceEmployeeStatusOutputRepresentation__selections, opaque: ServiceEmployeeStatusOutputRepresentation__opaque, } = select$k();
|
|
680
680
|
return {
|
|
681
681
|
kind: 'Fragment',
|
|
682
|
-
version: VERSION$
|
|
682
|
+
version: VERSION$d,
|
|
683
683
|
private: [],
|
|
684
684
|
selections: [
|
|
685
685
|
{
|
|
@@ -696,11 +696,11 @@ const select$i = function UserProfileOutputRepresentationSelect() {
|
|
|
696
696
|
]
|
|
697
697
|
};
|
|
698
698
|
};
|
|
699
|
-
function equals$
|
|
699
|
+
function equals$d(existing, incoming) {
|
|
700
700
|
const existing_profileDetails = existing.profileDetails;
|
|
701
701
|
const incoming_profileDetails = incoming.profileDetails;
|
|
702
702
|
const equals_profileDetails_items = equalsArray(existing_profileDetails, incoming_profileDetails, (existing_profileDetails_item, incoming_profileDetails_item) => {
|
|
703
|
-
if (!(equals$
|
|
703
|
+
if (!(equals$f(existing_profileDetails_item, incoming_profileDetails_item))) {
|
|
704
704
|
return false;
|
|
705
705
|
}
|
|
706
706
|
});
|
|
@@ -709,21 +709,21 @@ function equals$c(existing, incoming) {
|
|
|
709
709
|
}
|
|
710
710
|
const existing_status = existing.status;
|
|
711
711
|
const incoming_status = incoming.status;
|
|
712
|
-
if (!(equals$
|
|
712
|
+
if (!(equals$e(existing_status, incoming_status))) {
|
|
713
713
|
return false;
|
|
714
714
|
}
|
|
715
715
|
return true;
|
|
716
716
|
}
|
|
717
717
|
const ingest$5 = function UserProfileOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
718
718
|
if (process.env.NODE_ENV !== 'production') {
|
|
719
|
-
const validateError = validate$
|
|
719
|
+
const validateError = validate$f(input);
|
|
720
720
|
if (validateError !== null) {
|
|
721
721
|
throw validateError;
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
724
|
const key = keyBuilderFromType$2(luvio, input);
|
|
725
725
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 300;
|
|
726
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "Service-employee", VERSION$
|
|
726
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "Service-employee", VERSION$d, RepresentationType$5, equals$d);
|
|
727
727
|
return createLink(key);
|
|
728
728
|
};
|
|
729
729
|
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -736,8 +736,8 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
736
736
|
});
|
|
737
737
|
}
|
|
738
738
|
|
|
739
|
-
function select$
|
|
740
|
-
return select$
|
|
739
|
+
function select$i(luvio, params) {
|
|
740
|
+
return select$j();
|
|
741
741
|
}
|
|
742
742
|
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
743
743
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
@@ -748,7 +748,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
748
748
|
luvio.storeIngest(key, ingest$5, body);
|
|
749
749
|
const snapshot = luvio.storeLookup({
|
|
750
750
|
recordId: key,
|
|
751
|
-
node: select$
|
|
751
|
+
node: select$i(),
|
|
752
752
|
variables: {},
|
|
753
753
|
});
|
|
754
754
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -836,7 +836,134 @@ const getUserProfileDetailsAdapterFactory = (luvio) => {
|
|
|
836
836
|
};
|
|
837
837
|
};
|
|
838
838
|
|
|
839
|
-
const VERSION$
|
|
839
|
+
const VERSION$c = "35737cd6e1b361c1180c9e0b05e133bb";
|
|
840
|
+
function validate$e(obj, path = 'ProgramPersonaOutputRepresentation') {
|
|
841
|
+
const v_error = (() => {
|
|
842
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
843
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
844
|
+
}
|
|
845
|
+
const obj_name = obj.name;
|
|
846
|
+
const path_name = path + '.name';
|
|
847
|
+
let obj_name_union0 = null;
|
|
848
|
+
const obj_name_union0_error = (() => {
|
|
849
|
+
if (typeof obj_name !== 'string') {
|
|
850
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
851
|
+
}
|
|
852
|
+
})();
|
|
853
|
+
if (obj_name_union0_error != null) {
|
|
854
|
+
obj_name_union0 = obj_name_union0_error.message;
|
|
855
|
+
}
|
|
856
|
+
let obj_name_union1 = null;
|
|
857
|
+
const obj_name_union1_error = (() => {
|
|
858
|
+
if (obj_name !== null) {
|
|
859
|
+
return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
860
|
+
}
|
|
861
|
+
})();
|
|
862
|
+
if (obj_name_union1_error != null) {
|
|
863
|
+
obj_name_union1 = obj_name_union1_error.message;
|
|
864
|
+
}
|
|
865
|
+
if (obj_name_union0 && obj_name_union1) {
|
|
866
|
+
let message = 'Object doesn\'t match union (at "' + path_name + '")';
|
|
867
|
+
message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
868
|
+
message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
869
|
+
return new TypeError(message);
|
|
870
|
+
}
|
|
871
|
+
const obj_persona = obj.persona;
|
|
872
|
+
const path_persona = path + '.persona';
|
|
873
|
+
let obj_persona_union0 = null;
|
|
874
|
+
const obj_persona_union0_error = (() => {
|
|
875
|
+
if (typeof obj_persona !== 'string') {
|
|
876
|
+
return new TypeError('Expected "string" but received "' + typeof obj_persona + '" (at "' + path_persona + '")');
|
|
877
|
+
}
|
|
878
|
+
})();
|
|
879
|
+
if (obj_persona_union0_error != null) {
|
|
880
|
+
obj_persona_union0 = obj_persona_union0_error.message;
|
|
881
|
+
}
|
|
882
|
+
let obj_persona_union1 = null;
|
|
883
|
+
const obj_persona_union1_error = (() => {
|
|
884
|
+
if (obj_persona !== null) {
|
|
885
|
+
return new TypeError('Expected "null" but received "' + typeof obj_persona + '" (at "' + path_persona + '")');
|
|
886
|
+
}
|
|
887
|
+
})();
|
|
888
|
+
if (obj_persona_union1_error != null) {
|
|
889
|
+
obj_persona_union1 = obj_persona_union1_error.message;
|
|
890
|
+
}
|
|
891
|
+
if (obj_persona_union0 && obj_persona_union1) {
|
|
892
|
+
let message = 'Object doesn\'t match union (at "' + path_persona + '")';
|
|
893
|
+
message += '\n' + obj_persona_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
894
|
+
message += '\n' + obj_persona_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
895
|
+
return new TypeError(message);
|
|
896
|
+
}
|
|
897
|
+
const obj_userId = obj.userId;
|
|
898
|
+
const path_userId = path + '.userId';
|
|
899
|
+
let obj_userId_union0 = null;
|
|
900
|
+
const obj_userId_union0_error = (() => {
|
|
901
|
+
if (typeof obj_userId !== 'string') {
|
|
902
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userId + '" (at "' + path_userId + '")');
|
|
903
|
+
}
|
|
904
|
+
})();
|
|
905
|
+
if (obj_userId_union0_error != null) {
|
|
906
|
+
obj_userId_union0 = obj_userId_union0_error.message;
|
|
907
|
+
}
|
|
908
|
+
let obj_userId_union1 = null;
|
|
909
|
+
const obj_userId_union1_error = (() => {
|
|
910
|
+
if (obj_userId !== null) {
|
|
911
|
+
return new TypeError('Expected "null" but received "' + typeof obj_userId + '" (at "' + path_userId + '")');
|
|
912
|
+
}
|
|
913
|
+
})();
|
|
914
|
+
if (obj_userId_union1_error != null) {
|
|
915
|
+
obj_userId_union1 = obj_userId_union1_error.message;
|
|
916
|
+
}
|
|
917
|
+
if (obj_userId_union0 && obj_userId_union1) {
|
|
918
|
+
let message = 'Object doesn\'t match union (at "' + path_userId + '")';
|
|
919
|
+
message += '\n' + obj_userId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
920
|
+
message += '\n' + obj_userId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
921
|
+
return new TypeError(message);
|
|
922
|
+
}
|
|
923
|
+
})();
|
|
924
|
+
return v_error === undefined ? null : v_error;
|
|
925
|
+
}
|
|
926
|
+
const select$h = function ProgramPersonaOutputRepresentationSelect() {
|
|
927
|
+
return {
|
|
928
|
+
kind: 'Fragment',
|
|
929
|
+
version: VERSION$c,
|
|
930
|
+
private: [],
|
|
931
|
+
selections: [
|
|
932
|
+
{
|
|
933
|
+
name: 'name',
|
|
934
|
+
kind: 'Scalar'
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
name: 'persona',
|
|
938
|
+
kind: 'Scalar'
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
name: 'userId',
|
|
942
|
+
kind: 'Scalar'
|
|
943
|
+
}
|
|
944
|
+
]
|
|
945
|
+
};
|
|
946
|
+
};
|
|
947
|
+
function equals$c(existing, incoming) {
|
|
948
|
+
const existing_name = existing.name;
|
|
949
|
+
const incoming_name = incoming.name;
|
|
950
|
+
if (!(existing_name === incoming_name)) {
|
|
951
|
+
return false;
|
|
952
|
+
}
|
|
953
|
+
const existing_persona = existing.persona;
|
|
954
|
+
const incoming_persona = incoming.persona;
|
|
955
|
+
if (!(existing_persona === incoming_persona)) {
|
|
956
|
+
return false;
|
|
957
|
+
}
|
|
958
|
+
const existing_userId = existing.userId;
|
|
959
|
+
const incoming_userId = incoming.userId;
|
|
960
|
+
if (!(existing_userId === incoming_userId)) {
|
|
961
|
+
return false;
|
|
962
|
+
}
|
|
963
|
+
return true;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
const VERSION$b = "8a75f68ee07acfb4ce6ad72e84360b33";
|
|
840
967
|
function validate$d(obj, path = 'EnablementProgramOutputRepresentation') {
|
|
841
968
|
const v_error = (() => {
|
|
842
969
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -868,6 +995,35 @@ function validate$d(obj, path = 'EnablementProgramOutputRepresentation') {
|
|
|
868
995
|
message += '\n' + obj_assigneeId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
869
996
|
return new TypeError(message);
|
|
870
997
|
}
|
|
998
|
+
const obj_collaboratorPersona = obj.collaboratorPersona;
|
|
999
|
+
const path_collaboratorPersona = path + '.collaboratorPersona';
|
|
1000
|
+
let obj_collaboratorPersona_union0 = null;
|
|
1001
|
+
const obj_collaboratorPersona_union0_error = (() => {
|
|
1002
|
+
const referencepath_collaboratorPersonaValidationError = validate$e(obj_collaboratorPersona, path_collaboratorPersona);
|
|
1003
|
+
if (referencepath_collaboratorPersonaValidationError !== null) {
|
|
1004
|
+
let message = 'Object doesn\'t match ProgramPersonaOutputRepresentation (at "' + path_collaboratorPersona + '")\n';
|
|
1005
|
+
message += referencepath_collaboratorPersonaValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1006
|
+
return new TypeError(message);
|
|
1007
|
+
}
|
|
1008
|
+
})();
|
|
1009
|
+
if (obj_collaboratorPersona_union0_error != null) {
|
|
1010
|
+
obj_collaboratorPersona_union0 = obj_collaboratorPersona_union0_error.message;
|
|
1011
|
+
}
|
|
1012
|
+
let obj_collaboratorPersona_union1 = null;
|
|
1013
|
+
const obj_collaboratorPersona_union1_error = (() => {
|
|
1014
|
+
if (obj_collaboratorPersona !== null) {
|
|
1015
|
+
return new TypeError('Expected "null" but received "' + typeof obj_collaboratorPersona + '" (at "' + path_collaboratorPersona + '")');
|
|
1016
|
+
}
|
|
1017
|
+
})();
|
|
1018
|
+
if (obj_collaboratorPersona_union1_error != null) {
|
|
1019
|
+
obj_collaboratorPersona_union1 = obj_collaboratorPersona_union1_error.message;
|
|
1020
|
+
}
|
|
1021
|
+
if (obj_collaboratorPersona_union0 && obj_collaboratorPersona_union1) {
|
|
1022
|
+
let message = 'Object doesn\'t match union (at "' + path_collaboratorPersona + '")';
|
|
1023
|
+
message += '\n' + obj_collaboratorPersona_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1024
|
+
message += '\n' + obj_collaboratorPersona_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1025
|
+
return new TypeError(message);
|
|
1026
|
+
}
|
|
871
1027
|
const obj_completedDate = obj.completedDate;
|
|
872
1028
|
const path_completedDate = path + '.completedDate';
|
|
873
1029
|
let obj_completedDate_union0 = null;
|
|
@@ -1170,6 +1326,7 @@ function validate$d(obj, path = 'EnablementProgramOutputRepresentation') {
|
|
|
1170
1326
|
return v_error === undefined ? null : v_error;
|
|
1171
1327
|
}
|
|
1172
1328
|
const select$g = function EnablementProgramOutputRepresentationSelect() {
|
|
1329
|
+
const { selections: ProgramPersonaOutputRepresentation__selections, opaque: ProgramPersonaOutputRepresentation__opaque, } = select$h();
|
|
1173
1330
|
return {
|
|
1174
1331
|
kind: 'Fragment',
|
|
1175
1332
|
version: VERSION$b,
|
|
@@ -1179,6 +1336,12 @@ const select$g = function EnablementProgramOutputRepresentationSelect() {
|
|
|
1179
1336
|
name: 'assigneeId',
|
|
1180
1337
|
kind: 'Scalar'
|
|
1181
1338
|
},
|
|
1339
|
+
{
|
|
1340
|
+
name: 'collaboratorPersona',
|
|
1341
|
+
kind: 'Object',
|
|
1342
|
+
nullable: true,
|
|
1343
|
+
selections: ProgramPersonaOutputRepresentation__selections
|
|
1344
|
+
},
|
|
1182
1345
|
{
|
|
1183
1346
|
name: 'completedDate',
|
|
1184
1347
|
kind: 'Scalar'
|
|
@@ -1287,6 +1450,14 @@ function equals$b(existing, incoming) {
|
|
|
1287
1450
|
if (!(existing_assigneeId === incoming_assigneeId)) {
|
|
1288
1451
|
return false;
|
|
1289
1452
|
}
|
|
1453
|
+
const existing_collaboratorPersona = existing.collaboratorPersona;
|
|
1454
|
+
const incoming_collaboratorPersona = incoming.collaboratorPersona;
|
|
1455
|
+
if (!(existing_collaboratorPersona === incoming_collaboratorPersona
|
|
1456
|
+
|| (existing_collaboratorPersona != null &&
|
|
1457
|
+
incoming_collaboratorPersona != null &&
|
|
1458
|
+
equals$c(existing_collaboratorPersona, incoming_collaboratorPersona)))) {
|
|
1459
|
+
return false;
|
|
1460
|
+
}
|
|
1290
1461
|
const existing_completedDate = existing.completedDate;
|
|
1291
1462
|
const incoming_completedDate = incoming.completedDate;
|
|
1292
1463
|
if (!(existing_completedDate === incoming_completedDate)) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { ProgramPersonaOutputRepresentation as ProgramPersonaOutputRepresentation_ProgramPersonaOutputRepresentation } from './ProgramPersonaOutputRepresentation';
|
|
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 = "8a75f68ee07acfb4ce6ad72e84360b33";
|
|
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: EnablementProgramOutputRepresentation, existing: EnablementProgramOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EnablementProgramOutputRepresentationNormalized;
|
|
@@ -16,6 +17,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
16
17
|
export interface EnablementProgramOutputRepresentationNormalized {
|
|
17
18
|
/** Assignee of associated with the Program if applicable */
|
|
18
19
|
assigneeId: string | null;
|
|
20
|
+
/** Collaborator persona details. */
|
|
21
|
+
collaboratorPersona: ProgramPersonaOutputRepresentation_ProgramPersonaOutputRepresentation | null;
|
|
19
22
|
/** Completed date of the enablement program for the current user */
|
|
20
23
|
completedDate: string | null;
|
|
21
24
|
/** Percent complete of the enablement program for the current user */
|
|
@@ -59,6 +62,7 @@ export interface EnablementProgramOutputRepresentationNormalized {
|
|
|
59
62
|
*/
|
|
60
63
|
export interface EnablementProgramOutputRepresentation {
|
|
61
64
|
assigneeId: string | null;
|
|
65
|
+
collaboratorPersona: ProgramPersonaOutputRepresentation_ProgramPersonaOutputRepresentation | null;
|
|
62
66
|
completedDate: string | null;
|
|
63
67
|
completedPercent: number;
|
|
64
68
|
description: string | null;
|
package/dist/es/es2018/types/src/generated/types/EnablementProgramTaskOutputRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EnablementProgramItemDetailsOutputRepresentation as EnablementProgramItemDetailsOutputRepresentation_EnablementProgramItemDetailsOutputRepresentation } from './EnablementProgramItemDetailsOutputRepresentation';
|
|
2
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "646180b1593265c2b9a59b0907348d40";
|
|
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: EnablementProgramTaskOutputRepresentation, existing: EnablementProgramTaskOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EnablementProgramTaskOutputRepresentationNormalized;
|
|
@@ -23,6 +23,10 @@ export interface EnablementProgramTaskOutputRepresentationNormalized extends Ena
|
|
|
23
23
|
isOverdue: boolean | null;
|
|
24
24
|
/** Learning Item Id of the enablement task */
|
|
25
25
|
learningItemId: string | null;
|
|
26
|
+
/** Metadata for the persona this task is assigned to. */
|
|
27
|
+
personaConfig: {
|
|
28
|
+
[key: string]: {};
|
|
29
|
+
};
|
|
26
30
|
/** The day the program task is due */
|
|
27
31
|
programDay: number;
|
|
28
32
|
/** Category Type of the enablement task */
|
|
@@ -41,6 +45,9 @@ export interface EnablementProgramTaskOutputRepresentation extends EnablementPro
|
|
|
41
45
|
dueDate: string | null;
|
|
42
46
|
isOverdue: boolean | null;
|
|
43
47
|
learningItemId: string | null;
|
|
48
|
+
personaConfig: {
|
|
49
|
+
[key: string]: {};
|
|
50
|
+
};
|
|
44
51
|
programDay: number;
|
|
45
52
|
taskCategory: string;
|
|
46
53
|
taskSubCategory: string;
|
|
@@ -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 = "35737cd6e1b361c1180c9e0b05e133bb";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: ProgramPersonaOutputRepresentation, existing: ProgramPersonaOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProgramPersonaOutputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ProgramPersonaOutputRepresentationNormalized, incoming: ProgramPersonaOutputRepresentationNormalized): 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: ProgramPersonaOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Enablement program Collaborator Persona.
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface ProgramPersonaOutputRepresentationNormalized {
|
|
17
|
+
/** Name of the Collaborator */
|
|
18
|
+
name: string | null;
|
|
19
|
+
/** Persona of the Collaborator */
|
|
20
|
+
persona: string | null;
|
|
21
|
+
/** UserId of the Collaborator */
|
|
22
|
+
userId: string | null;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Enablement program Collaborator Persona.
|
|
26
|
+
*
|
|
27
|
+
* Keys:
|
|
28
|
+
* (none)
|
|
29
|
+
*/
|
|
30
|
+
export interface ProgramPersonaOutputRepresentation {
|
|
31
|
+
name: string | null;
|
|
32
|
+
persona: string | null;
|
|
33
|
+
userId: string | null;
|
|
34
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-serviceemployee",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.381.0",
|
|
4
4
|
"description": "Employee Service Resources",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/service-serviceemployee.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.381.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.381.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -102,7 +102,7 @@ function createLink(ref) {
|
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
function validate$
|
|
105
|
+
function validate$l(obj, path = 'PermissionSetsInputRepresentation') {
|
|
106
106
|
const v_error = (() => {
|
|
107
107
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
108
108
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -123,7 +123,7 @@ function validate$k(obj, path = 'PermissionSetsInputRepresentation') {
|
|
|
123
123
|
return v_error === undefined ? null : v_error;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
function validate$
|
|
126
|
+
function validate$k(obj, path = 'LicenseDetailsInputRepresentation') {
|
|
127
127
|
const v_error = (() => {
|
|
128
128
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
129
129
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -144,8 +144,8 @@ function validate$j(obj, path = 'LicenseDetailsInputRepresentation') {
|
|
|
144
144
|
return v_error === undefined ? null : v_error;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
const VERSION$
|
|
148
|
-
function validate$
|
|
147
|
+
const VERSION$j = "4d8f51e66bfbe4fc76183de7516d01bf";
|
|
148
|
+
function validate$j(obj, path = 'EmailEncodingDetailsRepresentation') {
|
|
149
149
|
const v_error = (() => {
|
|
150
150
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
151
151
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -163,10 +163,10 @@ function validate$i(obj, path = 'EmailEncodingDetailsRepresentation') {
|
|
|
163
163
|
})();
|
|
164
164
|
return v_error === undefined ? null : v_error;
|
|
165
165
|
}
|
|
166
|
-
const select$
|
|
166
|
+
const select$q = function EmailEncodingDetailsRepresentationSelect() {
|
|
167
167
|
return {
|
|
168
168
|
kind: 'Fragment',
|
|
169
|
-
version: VERSION$
|
|
169
|
+
version: VERSION$j,
|
|
170
170
|
private: [],
|
|
171
171
|
selections: [
|
|
172
172
|
{
|
|
@@ -180,7 +180,7 @@ const select$p = function EmailEncodingDetailsRepresentationSelect() {
|
|
|
180
180
|
]
|
|
181
181
|
};
|
|
182
182
|
};
|
|
183
|
-
function equals$
|
|
183
|
+
function equals$j(existing, incoming) {
|
|
184
184
|
const existing_label = existing.label;
|
|
185
185
|
const incoming_label = incoming.label;
|
|
186
186
|
if (!(existing_label === incoming_label)) {
|
|
@@ -194,8 +194,8 @@ function equals$i(existing, incoming) {
|
|
|
194
194
|
return true;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
-
const VERSION$
|
|
198
|
-
function validate$
|
|
197
|
+
const VERSION$i = "6c76c268c6383b710a0feadee62e3f30";
|
|
198
|
+
function validate$i(obj, path = 'PermissionSetGroupsDetailsRepresentation') {
|
|
199
199
|
const v_error = (() => {
|
|
200
200
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
201
201
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -218,10 +218,10 @@ function validate$h(obj, path = 'PermissionSetGroupsDetailsRepresentation') {
|
|
|
218
218
|
})();
|
|
219
219
|
return v_error === undefined ? null : v_error;
|
|
220
220
|
}
|
|
221
|
-
const select$
|
|
221
|
+
const select$p = function PermissionSetGroupsDetailsRepresentationSelect() {
|
|
222
222
|
return {
|
|
223
223
|
kind: 'Fragment',
|
|
224
|
-
version: VERSION$
|
|
224
|
+
version: VERSION$i,
|
|
225
225
|
private: [],
|
|
226
226
|
selections: [
|
|
227
227
|
{
|
|
@@ -239,7 +239,7 @@ const select$o = function PermissionSetGroupsDetailsRepresentationSelect() {
|
|
|
239
239
|
]
|
|
240
240
|
};
|
|
241
241
|
};
|
|
242
|
-
function equals$
|
|
242
|
+
function equals$i(existing, incoming) {
|
|
243
243
|
const existing_id = existing.id;
|
|
244
244
|
const incoming_id = incoming.id;
|
|
245
245
|
if (!(existing_id === incoming_id)) {
|
|
@@ -258,8 +258,8 @@ function equals$h(existing, incoming) {
|
|
|
258
258
|
return true;
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
const VERSION$
|
|
262
|
-
function validate$
|
|
261
|
+
const VERSION$h = "b5f28188b1ec90d88bbd9670b482323d";
|
|
262
|
+
function validate$h(obj, path = 'PermissionSetsDetailsRepresentation') {
|
|
263
263
|
const v_error = (() => {
|
|
264
264
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
265
265
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -292,10 +292,10 @@ function validate$g(obj, path = 'PermissionSetsDetailsRepresentation') {
|
|
|
292
292
|
})();
|
|
293
293
|
return v_error === undefined ? null : v_error;
|
|
294
294
|
}
|
|
295
|
-
const select$
|
|
295
|
+
const select$o = function PermissionSetsDetailsRepresentationSelect() {
|
|
296
296
|
return {
|
|
297
297
|
kind: 'Fragment',
|
|
298
|
-
version: VERSION$
|
|
298
|
+
version: VERSION$h,
|
|
299
299
|
private: [],
|
|
300
300
|
selections: [
|
|
301
301
|
{
|
|
@@ -321,7 +321,7 @@ const select$n = function PermissionSetsDetailsRepresentationSelect() {
|
|
|
321
321
|
]
|
|
322
322
|
};
|
|
323
323
|
};
|
|
324
|
-
function equals$
|
|
324
|
+
function equals$h(existing, incoming) {
|
|
325
325
|
const existing_id = existing.id;
|
|
326
326
|
const incoming_id = incoming.id;
|
|
327
327
|
if (!(existing_id === incoming_id)) {
|
|
@@ -350,8 +350,8 @@ function equals$g(existing, incoming) {
|
|
|
350
350
|
return true;
|
|
351
351
|
}
|
|
352
352
|
|
|
353
|
-
const VERSION$
|
|
354
|
-
function validate$
|
|
353
|
+
const VERSION$g = "2ec510f8b59acca487c03411f66bdee0";
|
|
354
|
+
function validate$g(obj, path = 'ProfileDetailsRepresentation') {
|
|
355
355
|
const v_error = (() => {
|
|
356
356
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
357
357
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -471,10 +471,10 @@ function validate$f(obj, path = 'ProfileDetailsRepresentation') {
|
|
|
471
471
|
})();
|
|
472
472
|
return v_error === undefined ? null : v_error;
|
|
473
473
|
}
|
|
474
|
-
const select$
|
|
474
|
+
const select$n = function ProfileDetailsRepresentationSelect() {
|
|
475
475
|
return {
|
|
476
476
|
kind: 'Fragment',
|
|
477
|
-
version: VERSION$
|
|
477
|
+
version: VERSION$g,
|
|
478
478
|
private: [],
|
|
479
479
|
selections: [
|
|
480
480
|
{
|
|
@@ -500,7 +500,7 @@ const select$m = function ProfileDetailsRepresentationSelect() {
|
|
|
500
500
|
]
|
|
501
501
|
};
|
|
502
502
|
};
|
|
503
|
-
function equals$
|
|
503
|
+
function equals$g(existing, incoming) {
|
|
504
504
|
const existing_licenseId = existing.licenseId;
|
|
505
505
|
const incoming_licenseId = incoming.licenseId;
|
|
506
506
|
// if at least one of these optionals is defined
|
|
@@ -556,8 +556,8 @@ function equals$f(existing, incoming) {
|
|
|
556
556
|
return true;
|
|
557
557
|
}
|
|
558
558
|
|
|
559
|
-
const VERSION$
|
|
560
|
-
function validate$
|
|
559
|
+
const VERSION$f = "9f5cd2dc8964436292fb9585399fc8d7";
|
|
560
|
+
function validate$f(obj, path = 'AvailableUserOptionsOutputRepresentation') {
|
|
561
561
|
const v_error = (() => {
|
|
562
562
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
563
563
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -570,7 +570,7 @@ function validate$e(obj, path = 'AvailableUserOptionsOutputRepresentation') {
|
|
|
570
570
|
for (let i = 0; i < obj_emailEncodings.length; i++) {
|
|
571
571
|
const obj_emailEncodings_item = obj_emailEncodings[i];
|
|
572
572
|
const path_emailEncodings_item = path_emailEncodings + '[' + i + ']';
|
|
573
|
-
const referencepath_emailEncodings_itemValidationError = validate$
|
|
573
|
+
const referencepath_emailEncodings_itemValidationError = validate$j(obj_emailEncodings_item, path_emailEncodings_item);
|
|
574
574
|
if (referencepath_emailEncodings_itemValidationError !== null) {
|
|
575
575
|
let message = 'Object doesn\'t match EmailEncodingDetailsRepresentation (at "' + path_emailEncodings_item + '")\n';
|
|
576
576
|
message += referencepath_emailEncodings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -598,7 +598,7 @@ function validate$e(obj, path = 'AvailableUserOptionsOutputRepresentation') {
|
|
|
598
598
|
for (let i = 0; i < obj_permissionSetGroups.length; i++) {
|
|
599
599
|
const obj_permissionSetGroups_item = obj_permissionSetGroups[i];
|
|
600
600
|
const path_permissionSetGroups_item = path_permissionSetGroups + '[' + i + ']';
|
|
601
|
-
const referencepath_permissionSetGroups_itemValidationError = validate$
|
|
601
|
+
const referencepath_permissionSetGroups_itemValidationError = validate$i(obj_permissionSetGroups_item, path_permissionSetGroups_item);
|
|
602
602
|
if (referencepath_permissionSetGroups_itemValidationError !== null) {
|
|
603
603
|
let message = 'Object doesn\'t match PermissionSetGroupsDetailsRepresentation (at "' + path_permissionSetGroups_item + '")\n';
|
|
604
604
|
message += referencepath_permissionSetGroups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -615,7 +615,7 @@ function validate$e(obj, path = 'AvailableUserOptionsOutputRepresentation') {
|
|
|
615
615
|
for (let i = 0; i < obj_permissionSets.length; i++) {
|
|
616
616
|
const obj_permissionSets_item = obj_permissionSets[i];
|
|
617
617
|
const path_permissionSets_item = path_permissionSets + '[' + i + ']';
|
|
618
|
-
const referencepath_permissionSets_itemValidationError = validate$
|
|
618
|
+
const referencepath_permissionSets_itemValidationError = validate$h(obj_permissionSets_item, path_permissionSets_item);
|
|
619
619
|
if (referencepath_permissionSets_itemValidationError !== null) {
|
|
620
620
|
let message = 'Object doesn\'t match PermissionSetsDetailsRepresentation (at "' + path_permissionSets_item + '")\n';
|
|
621
621
|
message += referencepath_permissionSets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -631,7 +631,7 @@ function validate$e(obj, path = 'AvailableUserOptionsOutputRepresentation') {
|
|
|
631
631
|
for (let i = 0; i < obj_profiles.length; i++) {
|
|
632
632
|
const obj_profiles_item = obj_profiles[i];
|
|
633
633
|
const path_profiles_item = path_profiles + '[' + i + ']';
|
|
634
|
-
const referencepath_profiles_itemValidationError = validate$
|
|
634
|
+
const referencepath_profiles_itemValidationError = validate$g(obj_profiles_item, path_profiles_item);
|
|
635
635
|
if (referencepath_profiles_itemValidationError !== null) {
|
|
636
636
|
let message = 'Object doesn\'t match ProfileDetailsRepresentation (at "' + path_profiles_item + '")\n';
|
|
637
637
|
message += referencepath_profiles_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -645,14 +645,14 @@ const RepresentationType$6 = 'AvailableUserOptionsOutputRepresentation';
|
|
|
645
645
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
646
646
|
return input;
|
|
647
647
|
}
|
|
648
|
-
const select$
|
|
649
|
-
const { selections: EmailEncodingDetailsRepresentation__selections, opaque: EmailEncodingDetailsRepresentation__opaque, } = select$
|
|
650
|
-
const { selections: PermissionSetGroupsDetailsRepresentation__selections, opaque: PermissionSetGroupsDetailsRepresentation__opaque, } = select$
|
|
651
|
-
const { selections: PermissionSetsDetailsRepresentation__selections, opaque: PermissionSetsDetailsRepresentation__opaque, } = select$
|
|
652
|
-
const { selections: ProfileDetailsRepresentation__selections, opaque: ProfileDetailsRepresentation__opaque, } = select$
|
|
648
|
+
const select$m = function AvailableUserOptionsOutputRepresentationSelect() {
|
|
649
|
+
const { selections: EmailEncodingDetailsRepresentation__selections, opaque: EmailEncodingDetailsRepresentation__opaque, } = select$q();
|
|
650
|
+
const { selections: PermissionSetGroupsDetailsRepresentation__selections, opaque: PermissionSetGroupsDetailsRepresentation__opaque, } = select$p();
|
|
651
|
+
const { selections: PermissionSetsDetailsRepresentation__selections, opaque: PermissionSetsDetailsRepresentation__opaque, } = select$o();
|
|
652
|
+
const { selections: ProfileDetailsRepresentation__selections, opaque: ProfileDetailsRepresentation__opaque, } = select$n();
|
|
653
653
|
return {
|
|
654
654
|
kind: 'Fragment',
|
|
655
|
-
version: VERSION$
|
|
655
|
+
version: VERSION$f,
|
|
656
656
|
private: [],
|
|
657
657
|
selections: [
|
|
658
658
|
{
|
|
@@ -689,11 +689,11 @@ const select$l = function AvailableUserOptionsOutputRepresentationSelect() {
|
|
|
689
689
|
]
|
|
690
690
|
};
|
|
691
691
|
};
|
|
692
|
-
function equals$
|
|
692
|
+
function equals$f(existing, incoming) {
|
|
693
693
|
const existing_emailEncodings = existing.emailEncodings;
|
|
694
694
|
const incoming_emailEncodings = incoming.emailEncodings;
|
|
695
695
|
const equals_emailEncodings_items = equalsArray(existing_emailEncodings, incoming_emailEncodings, (existing_emailEncodings_item, incoming_emailEncodings_item) => {
|
|
696
|
-
if (!(equals$
|
|
696
|
+
if (!(equals$j(existing_emailEncodings_item, incoming_emailEncodings_item))) {
|
|
697
697
|
return false;
|
|
698
698
|
}
|
|
699
699
|
});
|
|
@@ -720,7 +720,7 @@ function equals$e(existing, incoming) {
|
|
|
720
720
|
return false;
|
|
721
721
|
}
|
|
722
722
|
const equals_permissionSetGroups_items = equalsArray(existing_permissionSetGroups, incoming_permissionSetGroups, (existing_permissionSetGroups_item, incoming_permissionSetGroups_item) => {
|
|
723
|
-
if (!(equals$
|
|
723
|
+
if (!(equals$i(existing_permissionSetGroups_item, incoming_permissionSetGroups_item))) {
|
|
724
724
|
return false;
|
|
725
725
|
}
|
|
726
726
|
});
|
|
@@ -738,7 +738,7 @@ function equals$e(existing, incoming) {
|
|
|
738
738
|
return false;
|
|
739
739
|
}
|
|
740
740
|
const equals_permissionSets_items = equalsArray(existing_permissionSets, incoming_permissionSets, (existing_permissionSets_item, incoming_permissionSets_item) => {
|
|
741
|
-
if (!(equals$
|
|
741
|
+
if (!(equals$h(existing_permissionSets_item, incoming_permissionSets_item))) {
|
|
742
742
|
return false;
|
|
743
743
|
}
|
|
744
744
|
});
|
|
@@ -749,7 +749,7 @@ function equals$e(existing, incoming) {
|
|
|
749
749
|
const existing_profiles = existing.profiles;
|
|
750
750
|
const incoming_profiles = incoming.profiles;
|
|
751
751
|
const equals_profiles_items = equalsArray(existing_profiles, incoming_profiles, (existing_profiles_item, incoming_profiles_item) => {
|
|
752
|
-
if (!(equals$
|
|
752
|
+
if (!(equals$g(existing_profiles_item, incoming_profiles_item))) {
|
|
753
753
|
return false;
|
|
754
754
|
}
|
|
755
755
|
});
|
|
@@ -760,14 +760,14 @@ function equals$e(existing, incoming) {
|
|
|
760
760
|
}
|
|
761
761
|
const ingest$6 = function AvailableUserOptionsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
762
762
|
if (process.env.NODE_ENV !== 'production') {
|
|
763
|
-
const validateError = validate$
|
|
763
|
+
const validateError = validate$f(input);
|
|
764
764
|
if (validateError !== null) {
|
|
765
765
|
throw validateError;
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
768
|
const key = path.fullPath;
|
|
769
769
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 300;
|
|
770
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "Service-employee", VERSION$
|
|
770
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "Service-employee", VERSION$f, RepresentationType$6, equals$f);
|
|
771
771
|
return createLink(key);
|
|
772
772
|
};
|
|
773
773
|
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -780,8 +780,8 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
780
780
|
});
|
|
781
781
|
}
|
|
782
782
|
|
|
783
|
-
function select$
|
|
784
|
-
return select$
|
|
783
|
+
function select$l(luvio, params) {
|
|
784
|
+
return select$m();
|
|
785
785
|
}
|
|
786
786
|
function keyBuilder$9(luvio, params) {
|
|
787
787
|
return keyPrefix + '::AvailableUserOptionsOutputRepresentation:(' + (params.body.permissionSets?.licenses === undefined ? 'permissionSets.licenses' : 'permissionSets.licenses:' + params.body.permissionSets?.licenses) + '::' + (params.body.profiles?.licenses === undefined ? 'profiles.licenses' : 'profiles.licenses:' + params.body.profiles?.licenses) + ')';
|
|
@@ -795,7 +795,7 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
795
795
|
luvio.storeIngest(key, ingest$6, body);
|
|
796
796
|
const snapshot = luvio.storeLookup({
|
|
797
797
|
recordId: key,
|
|
798
|
-
node: select$
|
|
798
|
+
node: select$l(),
|
|
799
799
|
variables: {},
|
|
800
800
|
}, snapshotRefresh);
|
|
801
801
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -840,12 +840,12 @@ function keyBuilder$8(luvio, config) {
|
|
|
840
840
|
function typeCheckConfig$6(untrustedConfig) {
|
|
841
841
|
const config = {};
|
|
842
842
|
const untrustedConfig_permissionSets = untrustedConfig.permissionSets;
|
|
843
|
-
const referencePermissionSetsInputRepresentationValidationError = validate$
|
|
843
|
+
const referencePermissionSetsInputRepresentationValidationError = validate$l(untrustedConfig_permissionSets);
|
|
844
844
|
if (referencePermissionSetsInputRepresentationValidationError === null) {
|
|
845
845
|
config.permissionSets = untrustedConfig_permissionSets;
|
|
846
846
|
}
|
|
847
847
|
const untrustedConfig_profiles = untrustedConfig.profiles;
|
|
848
|
-
const referenceLicenseDetailsInputRepresentationValidationError = validate$
|
|
848
|
+
const referenceLicenseDetailsInputRepresentationValidationError = validate$k(untrustedConfig_profiles);
|
|
849
849
|
if (referenceLicenseDetailsInputRepresentationValidationError === null) {
|
|
850
850
|
config.profiles = untrustedConfig_profiles;
|
|
851
851
|
}
|
|
@@ -866,7 +866,7 @@ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
|
866
866
|
}
|
|
867
867
|
function adapterFragment$2(luvio, config) {
|
|
868
868
|
createResourceParams$6(config);
|
|
869
|
-
return select$
|
|
869
|
+
return select$l();
|
|
870
870
|
}
|
|
871
871
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
872
872
|
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
@@ -922,7 +922,134 @@ const availableUserOptionsAdapterFactory = (luvio) => function serviceEmployee__
|
|
|
922
922
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
923
923
|
};
|
|
924
924
|
|
|
925
|
-
const VERSION$
|
|
925
|
+
const VERSION$e = "35737cd6e1b361c1180c9e0b05e133bb";
|
|
926
|
+
function validate$e(obj, path = 'ProgramPersonaOutputRepresentation') {
|
|
927
|
+
const v_error = (() => {
|
|
928
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
929
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
930
|
+
}
|
|
931
|
+
const obj_name = obj.name;
|
|
932
|
+
const path_name = path + '.name';
|
|
933
|
+
let obj_name_union0 = null;
|
|
934
|
+
const obj_name_union0_error = (() => {
|
|
935
|
+
if (typeof obj_name !== 'string') {
|
|
936
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
937
|
+
}
|
|
938
|
+
})();
|
|
939
|
+
if (obj_name_union0_error != null) {
|
|
940
|
+
obj_name_union0 = obj_name_union0_error.message;
|
|
941
|
+
}
|
|
942
|
+
let obj_name_union1 = null;
|
|
943
|
+
const obj_name_union1_error = (() => {
|
|
944
|
+
if (obj_name !== null) {
|
|
945
|
+
return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
946
|
+
}
|
|
947
|
+
})();
|
|
948
|
+
if (obj_name_union1_error != null) {
|
|
949
|
+
obj_name_union1 = obj_name_union1_error.message;
|
|
950
|
+
}
|
|
951
|
+
if (obj_name_union0 && obj_name_union1) {
|
|
952
|
+
let message = 'Object doesn\'t match union (at "' + path_name + '")';
|
|
953
|
+
message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
954
|
+
message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
955
|
+
return new TypeError(message);
|
|
956
|
+
}
|
|
957
|
+
const obj_persona = obj.persona;
|
|
958
|
+
const path_persona = path + '.persona';
|
|
959
|
+
let obj_persona_union0 = null;
|
|
960
|
+
const obj_persona_union0_error = (() => {
|
|
961
|
+
if (typeof obj_persona !== 'string') {
|
|
962
|
+
return new TypeError('Expected "string" but received "' + typeof obj_persona + '" (at "' + path_persona + '")');
|
|
963
|
+
}
|
|
964
|
+
})();
|
|
965
|
+
if (obj_persona_union0_error != null) {
|
|
966
|
+
obj_persona_union0 = obj_persona_union0_error.message;
|
|
967
|
+
}
|
|
968
|
+
let obj_persona_union1 = null;
|
|
969
|
+
const obj_persona_union1_error = (() => {
|
|
970
|
+
if (obj_persona !== null) {
|
|
971
|
+
return new TypeError('Expected "null" but received "' + typeof obj_persona + '" (at "' + path_persona + '")');
|
|
972
|
+
}
|
|
973
|
+
})();
|
|
974
|
+
if (obj_persona_union1_error != null) {
|
|
975
|
+
obj_persona_union1 = obj_persona_union1_error.message;
|
|
976
|
+
}
|
|
977
|
+
if (obj_persona_union0 && obj_persona_union1) {
|
|
978
|
+
let message = 'Object doesn\'t match union (at "' + path_persona + '")';
|
|
979
|
+
message += '\n' + obj_persona_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
980
|
+
message += '\n' + obj_persona_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
981
|
+
return new TypeError(message);
|
|
982
|
+
}
|
|
983
|
+
const obj_userId = obj.userId;
|
|
984
|
+
const path_userId = path + '.userId';
|
|
985
|
+
let obj_userId_union0 = null;
|
|
986
|
+
const obj_userId_union0_error = (() => {
|
|
987
|
+
if (typeof obj_userId !== 'string') {
|
|
988
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userId + '" (at "' + path_userId + '")');
|
|
989
|
+
}
|
|
990
|
+
})();
|
|
991
|
+
if (obj_userId_union0_error != null) {
|
|
992
|
+
obj_userId_union0 = obj_userId_union0_error.message;
|
|
993
|
+
}
|
|
994
|
+
let obj_userId_union1 = null;
|
|
995
|
+
const obj_userId_union1_error = (() => {
|
|
996
|
+
if (obj_userId !== null) {
|
|
997
|
+
return new TypeError('Expected "null" but received "' + typeof obj_userId + '" (at "' + path_userId + '")');
|
|
998
|
+
}
|
|
999
|
+
})();
|
|
1000
|
+
if (obj_userId_union1_error != null) {
|
|
1001
|
+
obj_userId_union1 = obj_userId_union1_error.message;
|
|
1002
|
+
}
|
|
1003
|
+
if (obj_userId_union0 && obj_userId_union1) {
|
|
1004
|
+
let message = 'Object doesn\'t match union (at "' + path_userId + '")';
|
|
1005
|
+
message += '\n' + obj_userId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1006
|
+
message += '\n' + obj_userId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1007
|
+
return new TypeError(message);
|
|
1008
|
+
}
|
|
1009
|
+
})();
|
|
1010
|
+
return v_error === undefined ? null : v_error;
|
|
1011
|
+
}
|
|
1012
|
+
const select$k = function ProgramPersonaOutputRepresentationSelect() {
|
|
1013
|
+
return {
|
|
1014
|
+
kind: 'Fragment',
|
|
1015
|
+
version: VERSION$e,
|
|
1016
|
+
private: [],
|
|
1017
|
+
selections: [
|
|
1018
|
+
{
|
|
1019
|
+
name: 'name',
|
|
1020
|
+
kind: 'Scalar'
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
name: 'persona',
|
|
1024
|
+
kind: 'Scalar'
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
name: 'userId',
|
|
1028
|
+
kind: 'Scalar'
|
|
1029
|
+
}
|
|
1030
|
+
]
|
|
1031
|
+
};
|
|
1032
|
+
};
|
|
1033
|
+
function equals$e(existing, incoming) {
|
|
1034
|
+
const existing_name = existing.name;
|
|
1035
|
+
const incoming_name = incoming.name;
|
|
1036
|
+
if (!(existing_name === incoming_name)) {
|
|
1037
|
+
return false;
|
|
1038
|
+
}
|
|
1039
|
+
const existing_persona = existing.persona;
|
|
1040
|
+
const incoming_persona = incoming.persona;
|
|
1041
|
+
if (!(existing_persona === incoming_persona)) {
|
|
1042
|
+
return false;
|
|
1043
|
+
}
|
|
1044
|
+
const existing_userId = existing.userId;
|
|
1045
|
+
const incoming_userId = incoming.userId;
|
|
1046
|
+
if (!(existing_userId === incoming_userId)) {
|
|
1047
|
+
return false;
|
|
1048
|
+
}
|
|
1049
|
+
return true;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
const VERSION$d = "8a75f68ee07acfb4ce6ad72e84360b33";
|
|
926
1053
|
function validate$d(obj, path = 'EnablementProgramOutputRepresentation') {
|
|
927
1054
|
const v_error = (() => {
|
|
928
1055
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -954,6 +1081,35 @@ function validate$d(obj, path = 'EnablementProgramOutputRepresentation') {
|
|
|
954
1081
|
message += '\n' + obj_assigneeId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
955
1082
|
return new TypeError(message);
|
|
956
1083
|
}
|
|
1084
|
+
const obj_collaboratorPersona = obj.collaboratorPersona;
|
|
1085
|
+
const path_collaboratorPersona = path + '.collaboratorPersona';
|
|
1086
|
+
let obj_collaboratorPersona_union0 = null;
|
|
1087
|
+
const obj_collaboratorPersona_union0_error = (() => {
|
|
1088
|
+
const referencepath_collaboratorPersonaValidationError = validate$e(obj_collaboratorPersona, path_collaboratorPersona);
|
|
1089
|
+
if (referencepath_collaboratorPersonaValidationError !== null) {
|
|
1090
|
+
let message = 'Object doesn\'t match ProgramPersonaOutputRepresentation (at "' + path_collaboratorPersona + '")\n';
|
|
1091
|
+
message += referencepath_collaboratorPersonaValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1092
|
+
return new TypeError(message);
|
|
1093
|
+
}
|
|
1094
|
+
})();
|
|
1095
|
+
if (obj_collaboratorPersona_union0_error != null) {
|
|
1096
|
+
obj_collaboratorPersona_union0 = obj_collaboratorPersona_union0_error.message;
|
|
1097
|
+
}
|
|
1098
|
+
let obj_collaboratorPersona_union1 = null;
|
|
1099
|
+
const obj_collaboratorPersona_union1_error = (() => {
|
|
1100
|
+
if (obj_collaboratorPersona !== null) {
|
|
1101
|
+
return new TypeError('Expected "null" but received "' + typeof obj_collaboratorPersona + '" (at "' + path_collaboratorPersona + '")');
|
|
1102
|
+
}
|
|
1103
|
+
})();
|
|
1104
|
+
if (obj_collaboratorPersona_union1_error != null) {
|
|
1105
|
+
obj_collaboratorPersona_union1 = obj_collaboratorPersona_union1_error.message;
|
|
1106
|
+
}
|
|
1107
|
+
if (obj_collaboratorPersona_union0 && obj_collaboratorPersona_union1) {
|
|
1108
|
+
let message = 'Object doesn\'t match union (at "' + path_collaboratorPersona + '")';
|
|
1109
|
+
message += '\n' + obj_collaboratorPersona_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1110
|
+
message += '\n' + obj_collaboratorPersona_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1111
|
+
return new TypeError(message);
|
|
1112
|
+
}
|
|
957
1113
|
const obj_completedDate = obj.completedDate;
|
|
958
1114
|
const path_completedDate = path + '.completedDate';
|
|
959
1115
|
let obj_completedDate_union0 = null;
|
|
@@ -1256,6 +1412,7 @@ function validate$d(obj, path = 'EnablementProgramOutputRepresentation') {
|
|
|
1256
1412
|
return v_error === undefined ? null : v_error;
|
|
1257
1413
|
}
|
|
1258
1414
|
const select$j = function EnablementProgramOutputRepresentationSelect() {
|
|
1415
|
+
const { selections: ProgramPersonaOutputRepresentation__selections, opaque: ProgramPersonaOutputRepresentation__opaque, } = select$k();
|
|
1259
1416
|
return {
|
|
1260
1417
|
kind: 'Fragment',
|
|
1261
1418
|
version: VERSION$d,
|
|
@@ -1265,6 +1422,12 @@ const select$j = function EnablementProgramOutputRepresentationSelect() {
|
|
|
1265
1422
|
name: 'assigneeId',
|
|
1266
1423
|
kind: 'Scalar'
|
|
1267
1424
|
},
|
|
1425
|
+
{
|
|
1426
|
+
name: 'collaboratorPersona',
|
|
1427
|
+
kind: 'Object',
|
|
1428
|
+
nullable: true,
|
|
1429
|
+
selections: ProgramPersonaOutputRepresentation__selections
|
|
1430
|
+
},
|
|
1268
1431
|
{
|
|
1269
1432
|
name: 'completedDate',
|
|
1270
1433
|
kind: 'Scalar'
|
|
@@ -1373,6 +1536,14 @@ function equals$d(existing, incoming) {
|
|
|
1373
1536
|
if (!(existing_assigneeId === incoming_assigneeId)) {
|
|
1374
1537
|
return false;
|
|
1375
1538
|
}
|
|
1539
|
+
const existing_collaboratorPersona = existing.collaboratorPersona;
|
|
1540
|
+
const incoming_collaboratorPersona = incoming.collaboratorPersona;
|
|
1541
|
+
if (!(existing_collaboratorPersona === incoming_collaboratorPersona
|
|
1542
|
+
|| (existing_collaboratorPersona != null &&
|
|
1543
|
+
incoming_collaboratorPersona != null &&
|
|
1544
|
+
equals$e(existing_collaboratorPersona, incoming_collaboratorPersona)))) {
|
|
1545
|
+
return false;
|
|
1546
|
+
}
|
|
1376
1547
|
const existing_completedDate = existing.completedDate;
|
|
1377
1548
|
const incoming_completedDate = incoming.completedDate;
|
|
1378
1549
|
if (!(existing_completedDate === incoming_completedDate)) {
|
|
@@ -2725,7 +2896,7 @@ function validate$2(obj, path = 'UserSettingsOutputRepresentations') {
|
|
|
2725
2896
|
const path_profileDetailsRepresentation = path + '.profileDetailsRepresentation';
|
|
2726
2897
|
let obj_profileDetailsRepresentation_union0 = null;
|
|
2727
2898
|
const obj_profileDetailsRepresentation_union0_error = (() => {
|
|
2728
|
-
const referencepath_profileDetailsRepresentationValidationError = validate$
|
|
2899
|
+
const referencepath_profileDetailsRepresentationValidationError = validate$g(obj_profileDetailsRepresentation, path_profileDetailsRepresentation);
|
|
2729
2900
|
if (referencepath_profileDetailsRepresentationValidationError !== null) {
|
|
2730
2901
|
let message = 'Object doesn\'t match ProfileDetailsRepresentation (at "' + path_profileDetailsRepresentation + '")\n';
|
|
2731
2902
|
message += referencepath_profileDetailsRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2765,7 +2936,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
2765
2936
|
}
|
|
2766
2937
|
const select$5 = function UserSettingsOutputRepresentationsSelect() {
|
|
2767
2938
|
const { selections: PermissionDetailsRepresentation__selections, opaque: PermissionDetailsRepresentation__opaque, } = select$6();
|
|
2768
|
-
const { selections: ProfileDetailsRepresentation__selections, opaque: ProfileDetailsRepresentation__opaque, } = select$
|
|
2939
|
+
const { selections: ProfileDetailsRepresentation__selections, opaque: ProfileDetailsRepresentation__opaque, } = select$n();
|
|
2769
2940
|
return {
|
|
2770
2941
|
kind: 'Fragment',
|
|
2771
2942
|
version: VERSION$2,
|
|
@@ -2916,7 +3087,7 @@ function equals$2(existing, incoming) {
|
|
|
2916
3087
|
if (!(existing_profileDetailsRepresentation === incoming_profileDetailsRepresentation
|
|
2917
3088
|
|| (existing_profileDetailsRepresentation != null &&
|
|
2918
3089
|
incoming_profileDetailsRepresentation != null &&
|
|
2919
|
-
equals$
|
|
3090
|
+
equals$g(existing_profileDetailsRepresentation, incoming_profileDetailsRepresentation)))) {
|
|
2920
3091
|
return false;
|
|
2921
3092
|
}
|
|
2922
3093
|
}
|
|
@@ -3517,4 +3688,4 @@ withDefaultLuvio((luvio) => {
|
|
|
3517
3688
|
});
|
|
3518
3689
|
|
|
3519
3690
|
export { availableUserOptions, availableUserOptions_imperative, getEmpEnablementPrograms, getEmpEnablementPrograms_imperative, getFieldDetailsFromCompactLayout, getUserProfileDetails, getUserSettings, getUserSettings_imperative, postEmployeeUserProvisioningJob, updateUserSettings };
|
|
3520
|
-
// version: 1.
|
|
3691
|
+
// version: 1.381.0-61e618aefd
|
package/src/raml/api.raml
CHANGED
|
@@ -440,6 +440,9 @@ types:
|
|
|
440
440
|
assigneeId:
|
|
441
441
|
description: Assignee of associated with the Program if applicable
|
|
442
442
|
type: string | nil
|
|
443
|
+
collaboratorPersona:
|
|
444
|
+
description: Collaborator persona details.
|
|
445
|
+
type: ProgramPersonaOutputRepresentation | nil
|
|
443
446
|
completedDate:
|
|
444
447
|
description: Completed date of the enablement program for the current user
|
|
445
448
|
type: string | nil
|
|
@@ -530,6 +533,12 @@ types:
|
|
|
530
533
|
learningItemId:
|
|
531
534
|
description: Learning Item Id of the enablement task
|
|
532
535
|
type: string | nil
|
|
536
|
+
personaConfig:
|
|
537
|
+
description: Metadata for the persona this task is assigned to.
|
|
538
|
+
type: object
|
|
539
|
+
properties:
|
|
540
|
+
//:
|
|
541
|
+
type: object
|
|
533
542
|
programDay:
|
|
534
543
|
description: The day the program task is due
|
|
535
544
|
type: integer
|
|
@@ -542,6 +551,20 @@ types:
|
|
|
542
551
|
taskSubCategory:
|
|
543
552
|
description: Sub Category Type of the enablement task
|
|
544
553
|
type: string
|
|
554
|
+
ProgramPersonaOutputRepresentation:
|
|
555
|
+
description: Enablement program Collaborator Persona.
|
|
556
|
+
discriminatorValue: Persona
|
|
557
|
+
type: object
|
|
558
|
+
properties:
|
|
559
|
+
name:
|
|
560
|
+
description: Name of the Collaborator
|
|
561
|
+
type: string | nil
|
|
562
|
+
persona:
|
|
563
|
+
description: Persona of the Collaborator
|
|
564
|
+
type: string | nil
|
|
565
|
+
userId:
|
|
566
|
+
description: UserId of the Collaborator
|
|
567
|
+
type: string | nil
|
|
545
568
|
/connect:
|
|
546
569
|
/employee-hub/employee-profile-card/employee-details:
|
|
547
570
|
post:
|