@salesforce/lds-adapters-industries-education 1.280.0 → 1.282.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/industries-education.js +192 -103
- package/dist/es/es2018/types/src/generated/adapters/postMatchingSelector.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectEducationMentoringMatchingSelectorByBenefitAssignmentId.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/types/FilterConfig.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/LearnerProgramRequirement.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/LearningProgramPlanRequirementOutput.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/MentoringMatchingSelectorInputRepresentation.d.ts +4 -3
- package/dist/es/es2018/types/src/generated/types/RequirementDuration.d.ts +7 -7
- package/package.json +4 -4
- package/sfdc/index.js +242 -153
- package/src/raml/api.raml +41 -10
|
@@ -113,7 +113,7 @@ function createLink(ref) {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
const VERSION$J = "25644bb9c14397ee2eee2a59a6de4b8c";
|
|
116
|
-
function validate$
|
|
116
|
+
function validate$1a(obj, path = 'Applicant') {
|
|
117
117
|
const v_error = (() => {
|
|
118
118
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
119
119
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -209,7 +209,7 @@ function equals$H(existing, incoming) {
|
|
|
209
209
|
return true;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
function validate$
|
|
212
|
+
function validate$19(obj, path = 'Submitter') {
|
|
213
213
|
const v_error = (() => {
|
|
214
214
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
215
215
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -232,7 +232,7 @@ function validate$18(obj, path = 'Submitter') {
|
|
|
232
232
|
return v_error === undefined ? null : v_error;
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
function validate$
|
|
235
|
+
function validate$18(obj, path = 'Application') {
|
|
236
236
|
const v_error = (() => {
|
|
237
237
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
238
238
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -247,7 +247,7 @@ function validate$17(obj, path = 'Application') {
|
|
|
247
247
|
if (obj.applicant !== undefined) {
|
|
248
248
|
const obj_applicant = obj.applicant;
|
|
249
249
|
const path_applicant = path + '.applicant';
|
|
250
|
-
const referencepath_applicantValidationError = validate$
|
|
250
|
+
const referencepath_applicantValidationError = validate$1a(obj_applicant, path_applicant);
|
|
251
251
|
if (referencepath_applicantValidationError !== null) {
|
|
252
252
|
let message = 'Object doesn\'t match Applicant (at "' + path_applicant + '")\n';
|
|
253
253
|
message += referencepath_applicantValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -306,7 +306,7 @@ function validate$17(obj, path = 'Application') {
|
|
|
306
306
|
if (obj.submitter !== undefined) {
|
|
307
307
|
const obj_submitter = obj.submitter;
|
|
308
308
|
const path_submitter = path + '.submitter';
|
|
309
|
-
const referencepath_submitterValidationError = validate$
|
|
309
|
+
const referencepath_submitterValidationError = validate$19(obj_submitter, path_submitter);
|
|
310
310
|
if (referencepath_submitterValidationError !== null) {
|
|
311
311
|
let message = 'Object doesn\'t match Submitter (at "' + path_submitter + '")\n';
|
|
312
312
|
message += referencepath_submitterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -331,7 +331,7 @@ function validate$17(obj, path = 'Application') {
|
|
|
331
331
|
return v_error === undefined ? null : v_error;
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
-
function validate$
|
|
334
|
+
function validate$17(obj, path = 'GetApplicationsResult') {
|
|
335
335
|
const v_error = (() => {
|
|
336
336
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
337
337
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -345,7 +345,7 @@ function validate$16(obj, path = 'GetApplicationsResult') {
|
|
|
345
345
|
for (let i = 0; i < obj_applications.length; i++) {
|
|
346
346
|
const obj_applications_item = obj_applications[i];
|
|
347
347
|
const path_applications_item = path_applications + '[' + i + ']';
|
|
348
|
-
const referencepath_applications_itemValidationError = validate$
|
|
348
|
+
const referencepath_applications_itemValidationError = validate$18(obj_applications_item, path_applications_item);
|
|
349
349
|
if (referencepath_applications_itemValidationError !== null) {
|
|
350
350
|
let message = 'Object doesn\'t match Application (at "' + path_applications_item + '")\n';
|
|
351
351
|
message += referencepath_applications_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -359,7 +359,7 @@ function validate$16(obj, path = 'GetApplicationsResult') {
|
|
|
359
359
|
|
|
360
360
|
const TTL$6 = 100;
|
|
361
361
|
const VERSION$I = "1947ca622740f63d1812cfa7d4dd5989";
|
|
362
|
-
function validate$
|
|
362
|
+
function validate$16(obj, path = 'ApplicationsOutputRepresentation') {
|
|
363
363
|
const v_error = (() => {
|
|
364
364
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
365
365
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -367,7 +367,7 @@ function validate$15(obj, path = 'ApplicationsOutputRepresentation') {
|
|
|
367
367
|
if (obj.result !== undefined) {
|
|
368
368
|
const obj_result = obj.result;
|
|
369
369
|
const path_result = path + '.result';
|
|
370
|
-
const referencepath_resultValidationError = validate$
|
|
370
|
+
const referencepath_resultValidationError = validate$17(obj_result, path_result);
|
|
371
371
|
if (referencepath_resultValidationError !== null) {
|
|
372
372
|
let message = 'Object doesn\'t match GetApplicationsResult (at "' + path_result + '")\n';
|
|
373
373
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -397,7 +397,7 @@ function equals$G(existing, incoming) {
|
|
|
397
397
|
}
|
|
398
398
|
const ingest$k = function ApplicationsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
399
399
|
if (process.env.NODE_ENV !== 'production') {
|
|
400
|
-
const validateError = validate$
|
|
400
|
+
const validateError = validate$16(input);
|
|
401
401
|
if (validateError !== null) {
|
|
402
402
|
throw validateError;
|
|
403
403
|
}
|
|
@@ -552,7 +552,7 @@ const getApplicationsAdapterFactory = (luvio) => function education__getApplicat
|
|
|
552
552
|
buildCachedSnapshotCachePolicy$e, buildNetworkSnapshotCachePolicy$e);
|
|
553
553
|
};
|
|
554
554
|
|
|
555
|
-
function validate$
|
|
555
|
+
function validate$15(obj, path = 'ApplicationRenderMethod') {
|
|
556
556
|
const v_error = (() => {
|
|
557
557
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
558
558
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -589,7 +589,7 @@ function validate$14(obj, path = 'ApplicationRenderMethod') {
|
|
|
589
589
|
return v_error === undefined ? null : v_error;
|
|
590
590
|
}
|
|
591
591
|
|
|
592
|
-
function validate$
|
|
592
|
+
function validate$14(obj, path = 'IndividualApplicationTask') {
|
|
593
593
|
const v_error = (() => {
|
|
594
594
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
595
595
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -603,7 +603,7 @@ function validate$13(obj, path = 'IndividualApplicationTask') {
|
|
|
603
603
|
for (let i = 0; i < obj_applicationRenderMethods.length; i++) {
|
|
604
604
|
const obj_applicationRenderMethods_item = obj_applicationRenderMethods[i];
|
|
605
605
|
const path_applicationRenderMethods_item = path_applicationRenderMethods + '[' + i + ']';
|
|
606
|
-
const referencepath_applicationRenderMethods_itemValidationError = validate$
|
|
606
|
+
const referencepath_applicationRenderMethods_itemValidationError = validate$15(obj_applicationRenderMethods_item, path_applicationRenderMethods_item);
|
|
607
607
|
if (referencepath_applicationRenderMethods_itemValidationError !== null) {
|
|
608
608
|
let message = 'Object doesn\'t match ApplicationRenderMethod (at "' + path_applicationRenderMethods_item + '")\n';
|
|
609
609
|
message += referencepath_applicationRenderMethods_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -685,7 +685,7 @@ function validate$13(obj, path = 'IndividualApplicationTask') {
|
|
|
685
685
|
return v_error === undefined ? null : v_error;
|
|
686
686
|
}
|
|
687
687
|
|
|
688
|
-
function validate$
|
|
688
|
+
function validate$13(obj, path = 'GetApplicationDetailsResult') {
|
|
689
689
|
const v_error = (() => {
|
|
690
690
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
691
691
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -700,7 +700,7 @@ function validate$12(obj, path = 'GetApplicationDetailsResult') {
|
|
|
700
700
|
if (obj.applicant !== undefined) {
|
|
701
701
|
const obj_applicant = obj.applicant;
|
|
702
702
|
const path_applicant = path + '.applicant';
|
|
703
|
-
const referencepath_applicantValidationError = validate$
|
|
703
|
+
const referencepath_applicantValidationError = validate$1a(obj_applicant, path_applicant);
|
|
704
704
|
if (referencepath_applicantValidationError !== null) {
|
|
705
705
|
let message = 'Object doesn\'t match Applicant (at "' + path_applicant + '")\n';
|
|
706
706
|
message += referencepath_applicantValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -744,7 +744,7 @@ function validate$12(obj, path = 'GetApplicationDetailsResult') {
|
|
|
744
744
|
for (let i = 0; i < obj_individualApplicationTasks.length; i++) {
|
|
745
745
|
const obj_individualApplicationTasks_item = obj_individualApplicationTasks[i];
|
|
746
746
|
const path_individualApplicationTasks_item = path_individualApplicationTasks + '[' + i + ']';
|
|
747
|
-
const referencepath_individualApplicationTasks_itemValidationError = validate$
|
|
747
|
+
const referencepath_individualApplicationTasks_itemValidationError = validate$14(obj_individualApplicationTasks_item, path_individualApplicationTasks_item);
|
|
748
748
|
if (referencepath_individualApplicationTasks_itemValidationError !== null) {
|
|
749
749
|
let message = 'Object doesn\'t match IndividualApplicationTask (at "' + path_individualApplicationTasks_item + '")\n';
|
|
750
750
|
message += referencepath_individualApplicationTasks_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -776,7 +776,7 @@ function validate$12(obj, path = 'GetApplicationDetailsResult') {
|
|
|
776
776
|
if (obj.submitter !== undefined) {
|
|
777
777
|
const obj_submitter = obj.submitter;
|
|
778
778
|
const path_submitter = path + '.submitter';
|
|
779
|
-
const referencepath_submitterValidationError = validate$
|
|
779
|
+
const referencepath_submitterValidationError = validate$19(obj_submitter, path_submitter);
|
|
780
780
|
if (referencepath_submitterValidationError !== null) {
|
|
781
781
|
let message = 'Object doesn\'t match Submitter (at "' + path_submitter + '")\n';
|
|
782
782
|
message += referencepath_submitterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -803,7 +803,7 @@ function validate$12(obj, path = 'GetApplicationDetailsResult') {
|
|
|
803
803
|
|
|
804
804
|
const TTL$5 = 100;
|
|
805
805
|
const VERSION$H = "20a50ee9f09ba0dc956412cc14d5b6d5";
|
|
806
|
-
function validate$
|
|
806
|
+
function validate$12(obj, path = 'ApplicationDetailsOutputRepresentation') {
|
|
807
807
|
const v_error = (() => {
|
|
808
808
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
809
809
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -811,7 +811,7 @@ function validate$11(obj, path = 'ApplicationDetailsOutputRepresentation') {
|
|
|
811
811
|
if (obj.result !== undefined) {
|
|
812
812
|
const obj_result = obj.result;
|
|
813
813
|
const path_result = path + '.result';
|
|
814
|
-
const referencepath_resultValidationError = validate$
|
|
814
|
+
const referencepath_resultValidationError = validate$13(obj_result, path_result);
|
|
815
815
|
if (referencepath_resultValidationError !== null) {
|
|
816
816
|
let message = 'Object doesn\'t match GetApplicationDetailsResult (at "' + path_result + '")\n';
|
|
817
817
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -841,7 +841,7 @@ function equals$F(existing, incoming) {
|
|
|
841
841
|
}
|
|
842
842
|
const ingest$j = function ApplicationDetailsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
843
843
|
if (process.env.NODE_ENV !== 'production') {
|
|
844
|
-
const validateError = validate$
|
|
844
|
+
const validateError = validate$12(input);
|
|
845
845
|
if (validateError !== null) {
|
|
846
846
|
throw validateError;
|
|
847
847
|
}
|
|
@@ -999,7 +999,7 @@ const getApplicationDetailsAdapterFactory = (luvio) => function education__getAp
|
|
|
999
999
|
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
|
|
1000
1000
|
};
|
|
1001
1001
|
|
|
1002
|
-
function validate$
|
|
1002
|
+
function validate$11(obj, path = 'AvailableTimeSlotsInputRepresentation') {
|
|
1003
1003
|
const v_error = (() => {
|
|
1004
1004
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1005
1005
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1064,7 +1064,7 @@ function validate$10(obj, path = 'AvailableTimeSlotsInputRepresentation') {
|
|
|
1064
1064
|
}
|
|
1065
1065
|
|
|
1066
1066
|
const VERSION$G = "cfd94fbef61f52ffe43428e23e7a68c8";
|
|
1067
|
-
function validate
|
|
1067
|
+
function validate$10(obj, path = 'TimeSlot') {
|
|
1068
1068
|
const v_error = (() => {
|
|
1069
1069
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1070
1070
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1186,7 +1186,7 @@ function equals$E(existing, incoming) {
|
|
|
1186
1186
|
}
|
|
1187
1187
|
|
|
1188
1188
|
const VERSION$F = "9c2ef94b89ee532c50c8423528617441";
|
|
1189
|
-
function validate
|
|
1189
|
+
function validate$$(obj, path = 'AvailableTimeSlotsOuputRepresentation') {
|
|
1190
1190
|
const v_error = (() => {
|
|
1191
1191
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1192
1192
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1199,7 +1199,7 @@ function validate$_(obj, path = 'AvailableTimeSlotsOuputRepresentation') {
|
|
|
1199
1199
|
for (let i = 0; i < obj_timeSlots.length; i++) {
|
|
1200
1200
|
const obj_timeSlots_item = obj_timeSlots[i];
|
|
1201
1201
|
const path_timeSlots_item = path_timeSlots + '[' + i + ']';
|
|
1202
|
-
const referencepath_timeSlots_itemValidationError = validate
|
|
1202
|
+
const referencepath_timeSlots_itemValidationError = validate$10(obj_timeSlots_item, path_timeSlots_item);
|
|
1203
1203
|
if (referencepath_timeSlots_itemValidationError !== null) {
|
|
1204
1204
|
let message = 'Object doesn\'t match TimeSlot (at "' + path_timeSlots_item + '")\n';
|
|
1205
1205
|
message += referencepath_timeSlots_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1244,7 +1244,7 @@ function equals$D(existing, incoming) {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
const ingest$i = function AvailableTimeSlotsOuputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1246
1246
|
if (process.env.NODE_ENV !== 'production') {
|
|
1247
|
-
const validateError = validate
|
|
1247
|
+
const validateError = validate$$(input);
|
|
1248
1248
|
if (validateError !== null) {
|
|
1249
1249
|
throw validateError;
|
|
1250
1250
|
}
|
|
@@ -1323,7 +1323,7 @@ function keyBuilder$u(luvio, config) {
|
|
|
1323
1323
|
function typeCheckConfig$k(untrustedConfig) {
|
|
1324
1324
|
const config = {};
|
|
1325
1325
|
const untrustedConfig_availableTimeSlotsInput = untrustedConfig.availableTimeSlotsInput;
|
|
1326
|
-
const referenceAvailableTimeSlotsInputRepresentationValidationError = validate$
|
|
1326
|
+
const referenceAvailableTimeSlotsInputRepresentationValidationError = validate$11(untrustedConfig_availableTimeSlotsInput);
|
|
1327
1327
|
if (referenceAvailableTimeSlotsInputRepresentationValidationError === null) {
|
|
1328
1328
|
config.availableTimeSlotsInput = untrustedConfig_availableTimeSlotsInput;
|
|
1329
1329
|
}
|
|
@@ -1401,7 +1401,7 @@ const getAvailableTimeSlotsAdapterFactory = (luvio) => function education__getAv
|
|
|
1401
1401
|
};
|
|
1402
1402
|
|
|
1403
1403
|
const VERSION$E = "c470aba735607497dd11c1fcd34489d1";
|
|
1404
|
-
function validate$
|
|
1404
|
+
function validate$_(obj, path = 'AvailableTopic') {
|
|
1405
1405
|
const v_error = (() => {
|
|
1406
1406
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1407
1407
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1537,7 +1537,7 @@ function equals$C(existing, incoming) {
|
|
|
1537
1537
|
}
|
|
1538
1538
|
|
|
1539
1539
|
const VERSION$D = "3cb0110faf688dc57056aa83be527181";
|
|
1540
|
-
function validate$
|
|
1540
|
+
function validate$Z(obj, path = 'AvailableTopicsOutputRepresentation') {
|
|
1541
1541
|
const v_error = (() => {
|
|
1542
1542
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1543
1543
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1550,7 +1550,7 @@ function validate$Y(obj, path = 'AvailableTopicsOutputRepresentation') {
|
|
|
1550
1550
|
for (let i = 0; i < obj_topics.length; i++) {
|
|
1551
1551
|
const obj_topics_item = obj_topics[i];
|
|
1552
1552
|
const path_topics_item = path_topics + '[' + i + ']';
|
|
1553
|
-
const referencepath_topics_itemValidationError = validate$
|
|
1553
|
+
const referencepath_topics_itemValidationError = validate$_(obj_topics_item, path_topics_item);
|
|
1554
1554
|
if (referencepath_topics_itemValidationError !== null) {
|
|
1555
1555
|
let message = 'Object doesn\'t match AvailableTopic (at "' + path_topics_item + '")\n';
|
|
1556
1556
|
message += referencepath_topics_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1595,7 +1595,7 @@ function equals$B(existing, incoming) {
|
|
|
1595
1595
|
}
|
|
1596
1596
|
const ingest$h = function AvailableTopicsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1597
1597
|
if (process.env.NODE_ENV !== 'production') {
|
|
1598
|
-
const validateError = validate$
|
|
1598
|
+
const validateError = validate$Z(input);
|
|
1599
1599
|
if (validateError !== null) {
|
|
1600
1600
|
throw validateError;
|
|
1601
1601
|
}
|
|
@@ -1806,7 +1806,7 @@ var DiscriminatorValues;
|
|
|
1806
1806
|
DiscriminatorValues["LearningProgram"] = "LearningProgram";
|
|
1807
1807
|
})(DiscriminatorValues || (DiscriminatorValues = {}));
|
|
1808
1808
|
const VERSION$A = "4cbea421d9f8469662b2fe303c2f4ba2";
|
|
1809
|
-
function validate$
|
|
1809
|
+
function validate$Y(obj, path = 'LearningOutput') {
|
|
1810
1810
|
const v_error = (() => {
|
|
1811
1811
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1812
1812
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2126,7 +2126,7 @@ function equals$A(existing, incoming) {
|
|
|
2126
2126
|
}
|
|
2127
2127
|
|
|
2128
2128
|
const VERSION$z = "97ece1d620b7a7775b8ec069c727fb0c";
|
|
2129
|
-
function validate$
|
|
2129
|
+
function validate$X(obj, path = 'LearningOutcomeItemOutput') {
|
|
2130
2130
|
const v_error = (() => {
|
|
2131
2131
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2132
2132
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2219,7 +2219,7 @@ function equals$z(existing, incoming) {
|
|
|
2219
2219
|
}
|
|
2220
2220
|
|
|
2221
2221
|
const VERSION$y = "1bdbecc684e08a141881821c200a3684";
|
|
2222
|
-
function validate$
|
|
2222
|
+
function validate$W(obj, path = 'LearningStatus') {
|
|
2223
2223
|
const v_error = (() => {
|
|
2224
2224
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2225
2225
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2380,7 +2380,7 @@ function equals$y(existing, incoming) {
|
|
|
2380
2380
|
}
|
|
2381
2381
|
|
|
2382
2382
|
const VERSION$x = "626a699b7d94feb238f5a5a6641daa16";
|
|
2383
|
-
function validate$
|
|
2383
|
+
function validate$V(obj, path = 'LearningFulfiller') {
|
|
2384
2384
|
const v_error = (() => {
|
|
2385
2385
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2386
2386
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2388,7 +2388,7 @@ function validate$U(obj, path = 'LearningFulfiller') {
|
|
|
2388
2388
|
if (obj.learning !== undefined) {
|
|
2389
2389
|
const obj_learning = obj.learning;
|
|
2390
2390
|
const path_learning = path + '.learning';
|
|
2391
|
-
const referencepath_learningValidationError = validate$
|
|
2391
|
+
const referencepath_learningValidationError = validate$Y(obj_learning, path_learning);
|
|
2392
2392
|
if (referencepath_learningValidationError !== null) {
|
|
2393
2393
|
let message = 'Object doesn\'t match LearningOutput (at "' + path_learning + '")\n';
|
|
2394
2394
|
message += referencepath_learningValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2398,7 +2398,7 @@ function validate$U(obj, path = 'LearningFulfiller') {
|
|
|
2398
2398
|
if (obj.learningOutcomeItem !== undefined) {
|
|
2399
2399
|
const obj_learningOutcomeItem = obj.learningOutcomeItem;
|
|
2400
2400
|
const path_learningOutcomeItem = path + '.learningOutcomeItem';
|
|
2401
|
-
const referencepath_learningOutcomeItemValidationError = validate$
|
|
2401
|
+
const referencepath_learningOutcomeItemValidationError = validate$X(obj_learningOutcomeItem, path_learningOutcomeItem);
|
|
2402
2402
|
if (referencepath_learningOutcomeItemValidationError !== null) {
|
|
2403
2403
|
let message = 'Object doesn\'t match LearningOutcomeItemOutput (at "' + path_learningOutcomeItem + '")\n';
|
|
2404
2404
|
message += referencepath_learningOutcomeItemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2408,7 +2408,7 @@ function validate$U(obj, path = 'LearningFulfiller') {
|
|
|
2408
2408
|
if (obj.learningStatus !== undefined) {
|
|
2409
2409
|
const obj_learningStatus = obj.learningStatus;
|
|
2410
2410
|
const path_learningStatus = path + '.learningStatus';
|
|
2411
|
-
const referencepath_learningStatusValidationError = validate$
|
|
2411
|
+
const referencepath_learningStatusValidationError = validate$W(obj_learningStatus, path_learningStatus);
|
|
2412
2412
|
if (referencepath_learningStatusValidationError !== null) {
|
|
2413
2413
|
let message = 'Object doesn\'t match LearningStatus (at "' + path_learningStatus + '")\n';
|
|
2414
2414
|
message += referencepath_learningStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2493,8 +2493,8 @@ function equals$x(existing, incoming) {
|
|
|
2493
2493
|
return true;
|
|
2494
2494
|
}
|
|
2495
2495
|
|
|
2496
|
-
const VERSION$w = "
|
|
2497
|
-
function validate$
|
|
2496
|
+
const VERSION$w = "ed4788c6324cb7fee773d388cf21b1b4";
|
|
2497
|
+
function validate$U(obj, path = 'LearningProgramPlanRequirementOutput') {
|
|
2498
2498
|
const v_error = (() => {
|
|
2499
2499
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2500
2500
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2532,7 +2532,7 @@ function validate$T(obj, path = 'LearningProgramPlanRequirementOutput') {
|
|
|
2532
2532
|
for (let i = 0; i < obj_fulfilledBy.length; i++) {
|
|
2533
2533
|
const obj_fulfilledBy_item = obj_fulfilledBy[i];
|
|
2534
2534
|
const path_fulfilledBy_item = path_fulfilledBy + '[' + i + ']';
|
|
2535
|
-
const referencepath_fulfilledBy_itemValidationError = validate$
|
|
2535
|
+
const referencepath_fulfilledBy_itemValidationError = validate$V(obj_fulfilledBy_item, path_fulfilledBy_item);
|
|
2536
2536
|
if (referencepath_fulfilledBy_itemValidationError !== null) {
|
|
2537
2537
|
let message = 'Object doesn\'t match LearningFulfiller (at "' + path_fulfilledBy_item + '")\n';
|
|
2538
2538
|
message += referencepath_fulfilledBy_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2540,6 +2540,13 @@ function validate$T(obj, path = 'LearningProgramPlanRequirementOutput') {
|
|
|
2540
2540
|
}
|
|
2541
2541
|
}
|
|
2542
2542
|
}
|
|
2543
|
+
if (obj.groupName !== undefined) {
|
|
2544
|
+
const obj_groupName = obj.groupName;
|
|
2545
|
+
const path_groupName = path + '.groupName';
|
|
2546
|
+
if (typeof obj_groupName !== 'string') {
|
|
2547
|
+
return new TypeError('Expected "string" but received "' + typeof obj_groupName + '" (at "' + path_groupName + '")');
|
|
2548
|
+
}
|
|
2549
|
+
}
|
|
2543
2550
|
if (obj.learningAchievementId !== undefined) {
|
|
2544
2551
|
const obj_learningAchievementId = obj.learningAchievementId;
|
|
2545
2552
|
const path_learningAchievementId = path + '.learningAchievementId';
|
|
@@ -2605,6 +2612,11 @@ const select$P = function LearningProgramPlanRequirementOutputSelect() {
|
|
|
2605
2612
|
selections: LearningFulfiller__selections,
|
|
2606
2613
|
required: false
|
|
2607
2614
|
},
|
|
2615
|
+
{
|
|
2616
|
+
name: 'groupName',
|
|
2617
|
+
kind: 'Scalar',
|
|
2618
|
+
required: false
|
|
2619
|
+
},
|
|
2608
2620
|
{
|
|
2609
2621
|
name: 'learningAchievementId',
|
|
2610
2622
|
kind: 'Scalar',
|
|
@@ -2668,6 +2680,19 @@ function equals$w(existing, incoming) {
|
|
|
2668
2680
|
return false;
|
|
2669
2681
|
}
|
|
2670
2682
|
}
|
|
2683
|
+
const existing_groupName = existing.groupName;
|
|
2684
|
+
const incoming_groupName = incoming.groupName;
|
|
2685
|
+
// if at least one of these optionals is defined
|
|
2686
|
+
if (existing_groupName !== undefined || incoming_groupName !== undefined) {
|
|
2687
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2688
|
+
// not equal
|
|
2689
|
+
if (existing_groupName === undefined || incoming_groupName === undefined) {
|
|
2690
|
+
return false;
|
|
2691
|
+
}
|
|
2692
|
+
if (!(existing_groupName === incoming_groupName)) {
|
|
2693
|
+
return false;
|
|
2694
|
+
}
|
|
2695
|
+
}
|
|
2671
2696
|
const existing_learningAchievementId = existing.learningAchievementId;
|
|
2672
2697
|
const incoming_learningAchievementId = incoming.learningAchievementId;
|
|
2673
2698
|
// if at least one of these optionals is defined
|
|
@@ -2754,8 +2779,8 @@ function equals$w(existing, incoming) {
|
|
|
2754
2779
|
return true;
|
|
2755
2780
|
}
|
|
2756
2781
|
|
|
2757
|
-
const VERSION$v = "
|
|
2758
|
-
function validate$
|
|
2782
|
+
const VERSION$v = "d7af2bfee148ac8ae983037e910f21ac";
|
|
2783
|
+
function validate$T(obj, path = 'LearnerProgramRequirement') {
|
|
2759
2784
|
const v_error = (() => {
|
|
2760
2785
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2761
2786
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2782,13 +2807,20 @@ function validate$S(obj, path = 'LearnerProgramRequirement') {
|
|
|
2782
2807
|
if (obj.learningProgramPlanRequirement !== undefined) {
|
|
2783
2808
|
const obj_learningProgramPlanRequirement = obj.learningProgramPlanRequirement;
|
|
2784
2809
|
const path_learningProgramPlanRequirement = path + '.learningProgramPlanRequirement';
|
|
2785
|
-
const referencepath_learningProgramPlanRequirementValidationError = validate$
|
|
2810
|
+
const referencepath_learningProgramPlanRequirementValidationError = validate$U(obj_learningProgramPlanRequirement, path_learningProgramPlanRequirement);
|
|
2786
2811
|
if (referencepath_learningProgramPlanRequirementValidationError !== null) {
|
|
2787
2812
|
let message = 'Object doesn\'t match LearningProgramPlanRequirementOutput (at "' + path_learningProgramPlanRequirement + '")\n';
|
|
2788
2813
|
message += referencepath_learningProgramPlanRequirementValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2789
2814
|
return new TypeError(message);
|
|
2790
2815
|
}
|
|
2791
2816
|
}
|
|
2817
|
+
if (obj.learningProgramPlanRequirementId !== undefined) {
|
|
2818
|
+
const obj_learningProgramPlanRequirementId = obj.learningProgramPlanRequirementId;
|
|
2819
|
+
const path_learningProgramPlanRequirementId = path + '.learningProgramPlanRequirementId';
|
|
2820
|
+
if (typeof obj_learningProgramPlanRequirementId !== 'string') {
|
|
2821
|
+
return new TypeError('Expected "string" but received "' + typeof obj_learningProgramPlanRequirementId + '" (at "' + path_learningProgramPlanRequirementId + '")');
|
|
2822
|
+
}
|
|
2823
|
+
}
|
|
2792
2824
|
const obj_name = obj.name;
|
|
2793
2825
|
const path_name = path + '.name';
|
|
2794
2826
|
if (typeof obj_name !== 'string') {
|
|
@@ -2847,6 +2879,11 @@ const select$O = function LearnerProgramRequirementSelect() {
|
|
|
2847
2879
|
selections: LearningProgramPlanRequirementOutput__selections,
|
|
2848
2880
|
required: false
|
|
2849
2881
|
},
|
|
2882
|
+
{
|
|
2883
|
+
name: 'learningProgramPlanRequirementId',
|
|
2884
|
+
kind: 'Scalar',
|
|
2885
|
+
required: false
|
|
2886
|
+
},
|
|
2850
2887
|
{
|
|
2851
2888
|
name: 'name',
|
|
2852
2889
|
kind: 'Scalar'
|
|
@@ -2896,6 +2933,19 @@ function equals$v(existing, incoming) {
|
|
|
2896
2933
|
return false;
|
|
2897
2934
|
}
|
|
2898
2935
|
}
|
|
2936
|
+
const existing_learningProgramPlanRequirementId = existing.learningProgramPlanRequirementId;
|
|
2937
|
+
const incoming_learningProgramPlanRequirementId = incoming.learningProgramPlanRequirementId;
|
|
2938
|
+
// if at least one of these optionals is defined
|
|
2939
|
+
if (existing_learningProgramPlanRequirementId !== undefined || incoming_learningProgramPlanRequirementId !== undefined) {
|
|
2940
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2941
|
+
// not equal
|
|
2942
|
+
if (existing_learningProgramPlanRequirementId === undefined || incoming_learningProgramPlanRequirementId === undefined) {
|
|
2943
|
+
return false;
|
|
2944
|
+
}
|
|
2945
|
+
if (!(existing_learningProgramPlanRequirementId === incoming_learningProgramPlanRequirementId)) {
|
|
2946
|
+
return false;
|
|
2947
|
+
}
|
|
2948
|
+
}
|
|
2899
2949
|
const existing_name = existing.name;
|
|
2900
2950
|
const incoming_name = incoming.name;
|
|
2901
2951
|
if (!(existing_name === incoming_name)) {
|
|
@@ -2949,7 +2999,7 @@ function equals$v(existing, incoming) {
|
|
|
2949
2999
|
}
|
|
2950
3000
|
|
|
2951
3001
|
const VERSION$u = "9b999e9822e37e43506982e4548078a0";
|
|
2952
|
-
function validate$
|
|
3002
|
+
function validate$S(obj, path = 'LearnerProgram') {
|
|
2953
3003
|
const v_error = (() => {
|
|
2954
3004
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2955
3005
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3019,7 +3069,7 @@ function validate$R(obj, path = 'LearnerProgram') {
|
|
|
3019
3069
|
for (let i = 0; i < obj_requirements.length; i++) {
|
|
3020
3070
|
const obj_requirements_item = obj_requirements[i];
|
|
3021
3071
|
const path_requirements_item = path_requirements + '[' + i + ']';
|
|
3022
|
-
const referencepath_requirements_itemValidationError = validate$
|
|
3072
|
+
const referencepath_requirements_itemValidationError = validate$T(obj_requirements_item, path_requirements_item);
|
|
3023
3073
|
if (referencepath_requirements_itemValidationError !== null) {
|
|
3024
3074
|
let message = 'Object doesn\'t match LearnerProgramRequirement (at "' + path_requirements_item + '")\n';
|
|
3025
3075
|
message += referencepath_requirements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3237,7 +3287,7 @@ function equals$u(existing, incoming) {
|
|
|
3237
3287
|
}
|
|
3238
3288
|
|
|
3239
3289
|
const VERSION$t = "a14b9073a0ed9a08a5bb2c6ae6d8eac0";
|
|
3240
|
-
function validate$
|
|
3290
|
+
function validate$R(obj, path = 'LearnerProgressOutputRepresentation') {
|
|
3241
3291
|
const v_error = (() => {
|
|
3242
3292
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3243
3293
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3251,7 +3301,7 @@ function validate$Q(obj, path = 'LearnerProgressOutputRepresentation') {
|
|
|
3251
3301
|
for (let i = 0; i < obj_learnerPrograms.length; i++) {
|
|
3252
3302
|
const obj_learnerPrograms_item = obj_learnerPrograms[i];
|
|
3253
3303
|
const path_learnerPrograms_item = path_learnerPrograms + '[' + i + ']';
|
|
3254
|
-
const referencepath_learnerPrograms_itemValidationError = validate$
|
|
3304
|
+
const referencepath_learnerPrograms_itemValidationError = validate$S(obj_learnerPrograms_item, path_learnerPrograms_item);
|
|
3255
3305
|
if (referencepath_learnerPrograms_itemValidationError !== null) {
|
|
3256
3306
|
let message = 'Object doesn\'t match LearnerProgram (at "' + path_learnerPrograms_item + '")\n';
|
|
3257
3307
|
message += referencepath_learnerPrograms_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3306,7 +3356,7 @@ function equals$t(existing, incoming) {
|
|
|
3306
3356
|
}
|
|
3307
3357
|
const ingest$g = function LearnerProgressOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3308
3358
|
if (process.env.NODE_ENV !== 'production') {
|
|
3309
|
-
const validateError = validate$
|
|
3359
|
+
const validateError = validate$R(input);
|
|
3310
3360
|
if (validateError !== null) {
|
|
3311
3361
|
throw validateError;
|
|
3312
3362
|
}
|
|
@@ -3458,7 +3508,7 @@ const getLearnerProgressAdapterFactory = (luvio) => function education__getLearn
|
|
|
3458
3508
|
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
3459
3509
|
};
|
|
3460
3510
|
|
|
3461
|
-
function validate$
|
|
3511
|
+
function validate$Q(obj, path = 'CreateLearningInputRepresentation') {
|
|
3462
3512
|
const v_error = (() => {
|
|
3463
3513
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3464
3514
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3544,7 +3594,7 @@ function validate$P(obj, path = 'CreateLearningInputRepresentation') {
|
|
|
3544
3594
|
|
|
3545
3595
|
const TTL$4 = 100;
|
|
3546
3596
|
const VERSION$s = "007261ab77a4c0e4b59ae9c1245e9305";
|
|
3547
|
-
function validate$
|
|
3597
|
+
function validate$P(obj, path = 'CreateLearningOutputRepresentation') {
|
|
3548
3598
|
const v_error = (() => {
|
|
3549
3599
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3550
3600
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3642,7 +3692,7 @@ function equals$s(existing, incoming) {
|
|
|
3642
3692
|
}
|
|
3643
3693
|
const ingest$f = function CreateLearningOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3644
3694
|
if (process.env.NODE_ENV !== 'production') {
|
|
3645
|
-
const validateError = validate$
|
|
3695
|
+
const validateError = validate$P(input);
|
|
3646
3696
|
if (validateError !== null) {
|
|
3647
3697
|
throw validateError;
|
|
3648
3698
|
}
|
|
@@ -3708,7 +3758,7 @@ const createResourceParams$h = /*#__PURE__*/ createResourceParams$n(postCreateLe
|
|
|
3708
3758
|
function typeCheckConfig$h(untrustedConfig) {
|
|
3709
3759
|
const config = {};
|
|
3710
3760
|
const untrustedConfig_createLearningRecord = untrustedConfig.createLearningRecord;
|
|
3711
|
-
const referenceCreateLearningInputRepresentationValidationError = validate$
|
|
3761
|
+
const referenceCreateLearningInputRepresentationValidationError = validate$Q(untrustedConfig_createLearningRecord);
|
|
3712
3762
|
if (referenceCreateLearningInputRepresentationValidationError === null) {
|
|
3713
3763
|
config.createLearningRecord = untrustedConfig_createLearningRecord;
|
|
3714
3764
|
}
|
|
@@ -3756,7 +3806,7 @@ const postCreateLearningAdapterFactory = (luvio) => {
|
|
|
3756
3806
|
};
|
|
3757
3807
|
};
|
|
3758
3808
|
|
|
3759
|
-
function validate$
|
|
3809
|
+
function validate$O(obj, path = 'UpdateLearningInputRepresentation') {
|
|
3760
3810
|
const v_error = (() => {
|
|
3761
3811
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3762
3812
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3851,7 +3901,7 @@ const createResourceParams$g = /*#__PURE__*/ createResourceParams$n(updateLearni
|
|
|
3851
3901
|
function typeCheckConfig$g(untrustedConfig) {
|
|
3852
3902
|
const config = {};
|
|
3853
3903
|
const untrustedConfig_updateLearningRecord = untrustedConfig.updateLearningRecord;
|
|
3854
|
-
const referenceUpdateLearningInputRepresentationValidationError = validate$
|
|
3904
|
+
const referenceUpdateLearningInputRepresentationValidationError = validate$O(untrustedConfig_updateLearningRecord);
|
|
3855
3905
|
if (referenceUpdateLearningInputRepresentationValidationError === null) {
|
|
3856
3906
|
config.updateLearningRecord = untrustedConfig_updateLearningRecord;
|
|
3857
3907
|
}
|
|
@@ -3899,7 +3949,7 @@ const updateLearningAdapterFactory = (luvio) => {
|
|
|
3899
3949
|
};
|
|
3900
3950
|
};
|
|
3901
3951
|
|
|
3902
|
-
function validate$
|
|
3952
|
+
function validate$N(obj, path = 'Requirement') {
|
|
3903
3953
|
const v_error = (() => {
|
|
3904
3954
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3905
3955
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3918,7 +3968,7 @@ function validate$M(obj, path = 'Requirement') {
|
|
|
3918
3968
|
return v_error === undefined ? null : v_error;
|
|
3919
3969
|
}
|
|
3920
3970
|
|
|
3921
|
-
function validate$
|
|
3971
|
+
function validate$M(obj, path = 'LearningProgramPlanInputRepresentation') {
|
|
3922
3972
|
const v_error = (() => {
|
|
3923
3973
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3924
3974
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3936,7 +3986,7 @@ function validate$L(obj, path = 'LearningProgramPlanInputRepresentation') {
|
|
|
3936
3986
|
for (let i = 0; i < obj_requirement.length; i++) {
|
|
3937
3987
|
const obj_requirement_item = obj_requirement[i];
|
|
3938
3988
|
const path_requirement_item = path_requirement + '[' + i + ']';
|
|
3939
|
-
const referencepath_requirement_itemValidationError = validate$
|
|
3989
|
+
const referencepath_requirement_itemValidationError = validate$N(obj_requirement_item, path_requirement_item);
|
|
3940
3990
|
if (referencepath_requirement_itemValidationError !== null) {
|
|
3941
3991
|
let message = 'Object doesn\'t match Requirement (at "' + path_requirement_item + '")\n';
|
|
3942
3992
|
message += referencepath_requirement_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3949,7 +3999,7 @@ function validate$L(obj, path = 'LearningProgramPlanInputRepresentation') {
|
|
|
3949
3999
|
|
|
3950
4000
|
const TTL$3 = 100;
|
|
3951
4001
|
const VERSION$r = "0218a0ed0a2278eb0405096372ffa5de";
|
|
3952
|
-
function validate$
|
|
4002
|
+
function validate$L(obj, path = 'LearningProgramPlanOutputRepresentation') {
|
|
3953
4003
|
const v_error = (() => {
|
|
3954
4004
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3955
4005
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3991,7 +4041,7 @@ function equals$r(existing, incoming) {
|
|
|
3991
4041
|
}
|
|
3992
4042
|
const ingest$e = function LearningProgramPlanOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3993
4043
|
if (process.env.NODE_ENV !== 'production') {
|
|
3994
|
-
const validateError = validate$
|
|
4044
|
+
const validateError = validate$L(input);
|
|
3995
4045
|
if (validateError !== null) {
|
|
3996
4046
|
throw validateError;
|
|
3997
4047
|
}
|
|
@@ -4057,7 +4107,7 @@ const createResourceParams$f = /*#__PURE__*/ createResourceParams$n(postPublishL
|
|
|
4057
4107
|
function typeCheckConfig$f(untrustedConfig) {
|
|
4058
4108
|
const config = {};
|
|
4059
4109
|
const untrustedConfig_publishLearningProgramPlan = untrustedConfig.publishLearningProgramPlan;
|
|
4060
|
-
const referenceLearningProgramPlanInputRepresentationValidationError = validate$
|
|
4110
|
+
const referenceLearningProgramPlanInputRepresentationValidationError = validate$M(untrustedConfig_publishLearningProgramPlan);
|
|
4061
4111
|
if (referenceLearningProgramPlanInputRepresentationValidationError === null) {
|
|
4062
4112
|
config.publishLearningProgramPlan = untrustedConfig_publishLearningProgramPlan;
|
|
4063
4113
|
}
|
|
@@ -4106,7 +4156,7 @@ const postPublishLearningProgramPlanAdapterFactory = (luvio) => {
|
|
|
4106
4156
|
};
|
|
4107
4157
|
|
|
4108
4158
|
const VERSION$q = "201f86357276cc8ed2ee9d7f51616b64";
|
|
4109
|
-
function validate$
|
|
4159
|
+
function validate$K(obj, path = 'PreviewLearningProgramPlanOutputRepresentation') {
|
|
4110
4160
|
const v_error = (() => {
|
|
4111
4161
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4112
4162
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4139,7 +4189,7 @@ function validate$J(obj, path = 'PreviewLearningProgramPlanOutputRepresentation'
|
|
|
4139
4189
|
for (let i = 0; i < obj_programPlanRequirements.length; i++) {
|
|
4140
4190
|
const obj_programPlanRequirements_item = obj_programPlanRequirements[i];
|
|
4141
4191
|
const path_programPlanRequirements_item = path_programPlanRequirements + '[' + i + ']';
|
|
4142
|
-
const referencepath_programPlanRequirements_itemValidationError = validate$
|
|
4192
|
+
const referencepath_programPlanRequirements_itemValidationError = validate$U(obj_programPlanRequirements_item, path_programPlanRequirements_item);
|
|
4143
4193
|
if (referencepath_programPlanRequirements_itemValidationError !== null) {
|
|
4144
4194
|
let message = 'Object doesn\'t match LearningProgramPlanRequirementOutput (at "' + path_programPlanRequirements_item + '")\n';
|
|
4145
4195
|
message += referencepath_programPlanRequirements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4239,7 +4289,7 @@ function equals$q(existing, incoming) {
|
|
|
4239
4289
|
}
|
|
4240
4290
|
const ingest$d = function PreviewLearningProgramPlanOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4241
4291
|
if (process.env.NODE_ENV !== 'production') {
|
|
4242
|
-
const validateError = validate$
|
|
4292
|
+
const validateError = validate$K(input);
|
|
4243
4293
|
if (validateError !== null) {
|
|
4244
4294
|
throw validateError;
|
|
4245
4295
|
}
|
|
@@ -4391,7 +4441,7 @@ const getPreviewLearningProgramPlanAdapterFactory = (luvio) => function educatio
|
|
|
4391
4441
|
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
4392
4442
|
};
|
|
4393
4443
|
|
|
4394
|
-
function validate$
|
|
4444
|
+
function validate$J(obj, path = 'CarePlanTaskInputRepresentation') {
|
|
4395
4445
|
const v_error = (() => {
|
|
4396
4446
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4397
4447
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4456,7 +4506,7 @@ function validate$I(obj, path = 'CarePlanTaskInputRepresentation') {
|
|
|
4456
4506
|
return v_error === undefined ? null : v_error;
|
|
4457
4507
|
}
|
|
4458
4508
|
|
|
4459
|
-
function validate$
|
|
4509
|
+
function validate$I(obj, path = 'BenefitDisbursementForBenefitSessionInputRepresentation') {
|
|
4460
4510
|
const v_error = (() => {
|
|
4461
4511
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4462
4512
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4510,7 +4560,7 @@ function validate$H(obj, path = 'BenefitDisbursementForBenefitSessionInputRepres
|
|
|
4510
4560
|
return v_error === undefined ? null : v_error;
|
|
4511
4561
|
}
|
|
4512
4562
|
|
|
4513
|
-
function validate$
|
|
4563
|
+
function validate$H(obj, path = 'BenefitDisbursementListInputRepresentation') {
|
|
4514
4564
|
const v_error = (() => {
|
|
4515
4565
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4516
4566
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4523,7 +4573,7 @@ function validate$G(obj, path = 'BenefitDisbursementListInputRepresentation') {
|
|
|
4523
4573
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4524
4574
|
const obj_records_item = obj_records[i];
|
|
4525
4575
|
const path_records_item = path_records + '[' + i + ']';
|
|
4526
|
-
const referencepath_records_itemValidationError = validate$
|
|
4576
|
+
const referencepath_records_itemValidationError = validate$I(obj_records_item, path_records_item);
|
|
4527
4577
|
if (referencepath_records_itemValidationError !== null) {
|
|
4528
4578
|
let message = 'Object doesn\'t match BenefitDisbursementForBenefitSessionInputRepresentation (at "' + path_records_item + '")\n';
|
|
4529
4579
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4534,7 +4584,7 @@ function validate$G(obj, path = 'BenefitDisbursementListInputRepresentation') {
|
|
|
4534
4584
|
return v_error === undefined ? null : v_error;
|
|
4535
4585
|
}
|
|
4536
4586
|
|
|
4537
|
-
function validate$
|
|
4587
|
+
function validate$G(obj, path = 'CustomFieldInputRepresentation') {
|
|
4538
4588
|
const v_error = (() => {
|
|
4539
4589
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4540
4590
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4560,7 +4610,7 @@ function validate$F(obj, path = 'CustomFieldInputRepresentation') {
|
|
|
4560
4610
|
return v_error === undefined ? null : v_error;
|
|
4561
4611
|
}
|
|
4562
4612
|
|
|
4563
|
-
function validate$
|
|
4613
|
+
function validate$F(obj, path = 'CustomFieldListInputRepresentation') {
|
|
4564
4614
|
const v_error = (() => {
|
|
4565
4615
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4566
4616
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4573,7 +4623,7 @@ function validate$E(obj, path = 'CustomFieldListInputRepresentation') {
|
|
|
4573
4623
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4574
4624
|
const obj_records_item = obj_records[i];
|
|
4575
4625
|
const path_records_item = path_records + '[' + i + ']';
|
|
4576
|
-
const referencepath_records_itemValidationError = validate$
|
|
4626
|
+
const referencepath_records_itemValidationError = validate$G(obj_records_item, path_records_item);
|
|
4577
4627
|
if (referencepath_records_itemValidationError !== null) {
|
|
4578
4628
|
let message = 'Object doesn\'t match CustomFieldInputRepresentation (at "' + path_records_item + '")\n';
|
|
4579
4629
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4584,7 +4634,7 @@ function validate$E(obj, path = 'CustomFieldListInputRepresentation') {
|
|
|
4584
4634
|
return v_error === undefined ? null : v_error;
|
|
4585
4635
|
}
|
|
4586
4636
|
|
|
4587
|
-
function validate$
|
|
4637
|
+
function validate$E(obj, path = 'BenefitAssignmentInputRepresentation') {
|
|
4588
4638
|
const v_error = (() => {
|
|
4589
4639
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4590
4640
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4592,7 +4642,7 @@ function validate$D(obj, path = 'BenefitAssignmentInputRepresentation') {
|
|
|
4592
4642
|
if (obj.benefitAssignmentTasks !== undefined) {
|
|
4593
4643
|
const obj_benefitAssignmentTasks = obj.benefitAssignmentTasks;
|
|
4594
4644
|
const path_benefitAssignmentTasks = path + '.benefitAssignmentTasks';
|
|
4595
|
-
const referencepath_benefitAssignmentTasksValidationError = validate$
|
|
4645
|
+
const referencepath_benefitAssignmentTasksValidationError = validate$J(obj_benefitAssignmentTasks, path_benefitAssignmentTasks);
|
|
4596
4646
|
if (referencepath_benefitAssignmentTasksValidationError !== null) {
|
|
4597
4647
|
let message = 'Object doesn\'t match CarePlanTaskInputRepresentation (at "' + path_benefitAssignmentTasks + '")\n';
|
|
4598
4648
|
message += referencepath_benefitAssignmentTasksValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4602,7 +4652,7 @@ function validate$D(obj, path = 'BenefitAssignmentInputRepresentation') {
|
|
|
4602
4652
|
if (obj.benefitDisbursements !== undefined) {
|
|
4603
4653
|
const obj_benefitDisbursements = obj.benefitDisbursements;
|
|
4604
4654
|
const path_benefitDisbursements = path + '.benefitDisbursements';
|
|
4605
|
-
const referencepath_benefitDisbursementsValidationError = validate$
|
|
4655
|
+
const referencepath_benefitDisbursementsValidationError = validate$H(obj_benefitDisbursements, path_benefitDisbursements);
|
|
4606
4656
|
if (referencepath_benefitDisbursementsValidationError !== null) {
|
|
4607
4657
|
let message = 'Object doesn\'t match BenefitDisbursementListInputRepresentation (at "' + path_benefitDisbursements + '")\n';
|
|
4608
4658
|
message += referencepath_benefitDisbursementsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4624,7 +4674,7 @@ function validate$D(obj, path = 'BenefitAssignmentInputRepresentation') {
|
|
|
4624
4674
|
if (obj.customFields !== undefined) {
|
|
4625
4675
|
const obj_customFields = obj.customFields;
|
|
4626
4676
|
const path_customFields = path + '.customFields';
|
|
4627
|
-
const referencepath_customFieldsValidationError = validate$
|
|
4677
|
+
const referencepath_customFieldsValidationError = validate$F(obj_customFields, path_customFields);
|
|
4628
4678
|
if (referencepath_customFieldsValidationError !== null) {
|
|
4629
4679
|
let message = 'Object doesn\'t match CustomFieldListInputRepresentation (at "' + path_customFields + '")\n';
|
|
4630
4680
|
message += referencepath_customFieldsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4695,7 +4745,7 @@ function validate$D(obj, path = 'BenefitAssignmentInputRepresentation') {
|
|
|
4695
4745
|
return v_error === undefined ? null : v_error;
|
|
4696
4746
|
}
|
|
4697
4747
|
|
|
4698
|
-
function validate$
|
|
4748
|
+
function validate$D(obj, path = 'BenefitAssignmentListInputRepresentation') {
|
|
4699
4749
|
const v_error = (() => {
|
|
4700
4750
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4701
4751
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4708,7 +4758,7 @@ function validate$C(obj, path = 'BenefitAssignmentListInputRepresentation') {
|
|
|
4708
4758
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4709
4759
|
const obj_records_item = obj_records[i];
|
|
4710
4760
|
const path_records_item = path_records + '[' + i + ']';
|
|
4711
|
-
const referencepath_records_itemValidationError = validate$
|
|
4761
|
+
const referencepath_records_itemValidationError = validate$E(obj_records_item, path_records_item);
|
|
4712
4762
|
if (referencepath_records_itemValidationError !== null) {
|
|
4713
4763
|
let message = 'Object doesn\'t match BenefitAssignmentInputRepresentation (at "' + path_records_item + '")\n';
|
|
4714
4764
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4719,7 +4769,7 @@ function validate$C(obj, path = 'BenefitAssignmentListInputRepresentation') {
|
|
|
4719
4769
|
return v_error === undefined ? null : v_error;
|
|
4720
4770
|
}
|
|
4721
4771
|
|
|
4722
|
-
function validate$
|
|
4772
|
+
function validate$C(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
4723
4773
|
const v_error = (() => {
|
|
4724
4774
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4725
4775
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4727,7 +4777,7 @@ function validate$B(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
|
4727
4777
|
if (obj.associatedBenefitAssignments !== undefined) {
|
|
4728
4778
|
const obj_associatedBenefitAssignments = obj.associatedBenefitAssignments;
|
|
4729
4779
|
const path_associatedBenefitAssignments = path + '.associatedBenefitAssignments';
|
|
4730
|
-
const referencepath_associatedBenefitAssignmentsValidationError = validate$
|
|
4780
|
+
const referencepath_associatedBenefitAssignmentsValidationError = validate$D(obj_associatedBenefitAssignments, path_associatedBenefitAssignments);
|
|
4731
4781
|
if (referencepath_associatedBenefitAssignmentsValidationError !== null) {
|
|
4732
4782
|
let message = 'Object doesn\'t match BenefitAssignmentListInputRepresentation (at "' + path_associatedBenefitAssignments + '")\n';
|
|
4733
4783
|
message += referencepath_associatedBenefitAssignmentsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4737,7 +4787,7 @@ function validate$B(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
|
4737
4787
|
if (obj.associatedSubGoalAssignments !== undefined) {
|
|
4738
4788
|
const obj_associatedSubGoalAssignments = obj.associatedSubGoalAssignments;
|
|
4739
4789
|
const path_associatedSubGoalAssignments = path + '.associatedSubGoalAssignments';
|
|
4740
|
-
const referencepath_associatedSubGoalAssignmentsValidationError = validate$
|
|
4790
|
+
const referencepath_associatedSubGoalAssignmentsValidationError = validate$B(obj_associatedSubGoalAssignments, path_associatedSubGoalAssignments);
|
|
4741
4791
|
if (referencepath_associatedSubGoalAssignmentsValidationError !== null) {
|
|
4742
4792
|
let message = 'Object doesn\'t match GoalAssignmentListInputRepresentation (at "' + path_associatedSubGoalAssignments + '")\n';
|
|
4743
4793
|
message += referencepath_associatedSubGoalAssignmentsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4757,7 +4807,7 @@ function validate$B(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
|
4757
4807
|
if (obj.customFields !== undefined) {
|
|
4758
4808
|
const obj_customFields = obj.customFields;
|
|
4759
4809
|
const path_customFields = path + '.customFields';
|
|
4760
|
-
const referencepath_customFieldsValidationError = validate$
|
|
4810
|
+
const referencepath_customFieldsValidationError = validate$F(obj_customFields, path_customFields);
|
|
4761
4811
|
if (referencepath_customFieldsValidationError !== null) {
|
|
4762
4812
|
let message = 'Object doesn\'t match CustomFieldListInputRepresentation (at "' + path_customFields + '")\n';
|
|
4763
4813
|
message += referencepath_customFieldsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4781,7 +4831,7 @@ function validate$B(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
|
4781
4831
|
if (obj.goalAssignmentTasks !== undefined) {
|
|
4782
4832
|
const obj_goalAssignmentTasks = obj.goalAssignmentTasks;
|
|
4783
4833
|
const path_goalAssignmentTasks = path + '.goalAssignmentTasks';
|
|
4784
|
-
const referencepath_goalAssignmentTasksValidationError = validate$
|
|
4834
|
+
const referencepath_goalAssignmentTasksValidationError = validate$J(obj_goalAssignmentTasks, path_goalAssignmentTasks);
|
|
4785
4835
|
if (referencepath_goalAssignmentTasksValidationError !== null) {
|
|
4786
4836
|
let message = 'Object doesn\'t match CarePlanTaskInputRepresentation (at "' + path_goalAssignmentTasks + '")\n';
|
|
4787
4837
|
message += referencepath_goalAssignmentTasksValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4832,7 +4882,7 @@ function validate$B(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
|
4832
4882
|
return v_error === undefined ? null : v_error;
|
|
4833
4883
|
}
|
|
4834
4884
|
|
|
4835
|
-
function validate$
|
|
4885
|
+
function validate$B(obj, path = 'GoalAssignmentListInputRepresentation') {
|
|
4836
4886
|
const v_error = (() => {
|
|
4837
4887
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4838
4888
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4845,7 +4895,7 @@ function validate$A(obj, path = 'GoalAssignmentListInputRepresentation') {
|
|
|
4845
4895
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4846
4896
|
const obj_records_item = obj_records[i];
|
|
4847
4897
|
const path_records_item = path_records + '[' + i + ']';
|
|
4848
|
-
const referencepath_records_itemValidationError = validate$
|
|
4898
|
+
const referencepath_records_itemValidationError = validate$C(obj_records_item, path_records_item);
|
|
4849
4899
|
if (referencepath_records_itemValidationError !== null) {
|
|
4850
4900
|
let message = 'Object doesn\'t match GoalAssignmentInputRepresentation (at "' + path_records_item + '")\n';
|
|
4851
4901
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4856,7 +4906,7 @@ function validate$A(obj, path = 'GoalAssignmentListInputRepresentation') {
|
|
|
4856
4906
|
return v_error === undefined ? null : v_error;
|
|
4857
4907
|
}
|
|
4858
4908
|
|
|
4859
|
-
function validate$
|
|
4909
|
+
function validate$A(obj, path = 'CarePlanInputRepresentation') {
|
|
4860
4910
|
const v_error = (() => {
|
|
4861
4911
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4862
4912
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4864,7 +4914,7 @@ function validate$z(obj, path = 'CarePlanInputRepresentation') {
|
|
|
4864
4914
|
if (obj.benefitAssignments !== undefined) {
|
|
4865
4915
|
const obj_benefitAssignments = obj.benefitAssignments;
|
|
4866
4916
|
const path_benefitAssignments = path + '.benefitAssignments';
|
|
4867
|
-
const referencepath_benefitAssignmentsValidationError = validate$
|
|
4917
|
+
const referencepath_benefitAssignmentsValidationError = validate$D(obj_benefitAssignments, path_benefitAssignments);
|
|
4868
4918
|
if (referencepath_benefitAssignmentsValidationError !== null) {
|
|
4869
4919
|
let message = 'Object doesn\'t match BenefitAssignmentListInputRepresentation (at "' + path_benefitAssignments + '")\n';
|
|
4870
4920
|
message += referencepath_benefitAssignmentsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4874,7 +4924,7 @@ function validate$z(obj, path = 'CarePlanInputRepresentation') {
|
|
|
4874
4924
|
if (obj.carePlanTasks !== undefined) {
|
|
4875
4925
|
const obj_carePlanTasks = obj.carePlanTasks;
|
|
4876
4926
|
const path_carePlanTasks = path + '.carePlanTasks';
|
|
4877
|
-
const referencepath_carePlanTasksValidationError = validate$
|
|
4927
|
+
const referencepath_carePlanTasksValidationError = validate$J(obj_carePlanTasks, path_carePlanTasks);
|
|
4878
4928
|
if (referencepath_carePlanTasksValidationError !== null) {
|
|
4879
4929
|
let message = 'Object doesn\'t match CarePlanTaskInputRepresentation (at "' + path_carePlanTasks + '")\n';
|
|
4880
4930
|
message += referencepath_carePlanTasksValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4896,7 +4946,7 @@ function validate$z(obj, path = 'CarePlanInputRepresentation') {
|
|
|
4896
4946
|
if (obj.customFields !== undefined) {
|
|
4897
4947
|
const obj_customFields = obj.customFields;
|
|
4898
4948
|
const path_customFields = path + '.customFields';
|
|
4899
|
-
const referencepath_customFieldsValidationError = validate$
|
|
4949
|
+
const referencepath_customFieldsValidationError = validate$F(obj_customFields, path_customFields);
|
|
4900
4950
|
if (referencepath_customFieldsValidationError !== null) {
|
|
4901
4951
|
let message = 'Object doesn\'t match CustomFieldListInputRepresentation (at "' + path_customFields + '")\n';
|
|
4902
4952
|
message += referencepath_customFieldsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4920,7 +4970,7 @@ function validate$z(obj, path = 'CarePlanInputRepresentation') {
|
|
|
4920
4970
|
if (obj.goalAssignments !== undefined) {
|
|
4921
4971
|
const obj_goalAssignments = obj.goalAssignments;
|
|
4922
4972
|
const path_goalAssignments = path + '.goalAssignments';
|
|
4923
|
-
const referencepath_goalAssignmentsValidationError = validate$
|
|
4973
|
+
const referencepath_goalAssignmentsValidationError = validate$B(obj_goalAssignments, path_goalAssignments);
|
|
4924
4974
|
if (referencepath_goalAssignmentsValidationError !== null) {
|
|
4925
4975
|
let message = 'Object doesn\'t match GoalAssignmentListInputRepresentation (at "' + path_goalAssignments + '")\n';
|
|
4926
4976
|
message += referencepath_goalAssignmentsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4967,7 +5017,7 @@ function validate$z(obj, path = 'CarePlanInputRepresentation') {
|
|
|
4967
5017
|
return v_error === undefined ? null : v_error;
|
|
4968
5018
|
}
|
|
4969
5019
|
|
|
4970
|
-
function validate$
|
|
5020
|
+
function validate$z(obj, path = 'CarePlanListInputRepresentation') {
|
|
4971
5021
|
const v_error = (() => {
|
|
4972
5022
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4973
5023
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4980,7 +5030,7 @@ function validate$y(obj, path = 'CarePlanListInputRepresentation') {
|
|
|
4980
5030
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4981
5031
|
const obj_records_item = obj_records[i];
|
|
4982
5032
|
const path_records_item = path_records + '[' + i + ']';
|
|
4983
|
-
const referencepath_records_itemValidationError = validate$
|
|
5033
|
+
const referencepath_records_itemValidationError = validate$A(obj_records_item, path_records_item);
|
|
4984
5034
|
if (referencepath_records_itemValidationError !== null) {
|
|
4985
5035
|
let message = 'Object doesn\'t match CarePlanInputRepresentation (at "' + path_records_item + '")\n';
|
|
4986
5036
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4991,14 +5041,14 @@ function validate$y(obj, path = 'CarePlanListInputRepresentation') {
|
|
|
4991
5041
|
return v_error === undefined ? null : v_error;
|
|
4992
5042
|
}
|
|
4993
5043
|
|
|
4994
|
-
function validate$
|
|
5044
|
+
function validate$y(obj, path = 'CarePlanBulkInputRepresentation') {
|
|
4995
5045
|
const v_error = (() => {
|
|
4996
5046
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4997
5047
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4998
5048
|
}
|
|
4999
5049
|
const obj_carePlans = obj.carePlans;
|
|
5000
5050
|
const path_carePlans = path + '.carePlans';
|
|
5001
|
-
const referencepath_carePlansValidationError = validate$
|
|
5051
|
+
const referencepath_carePlansValidationError = validate$z(obj_carePlans, path_carePlans);
|
|
5002
5052
|
if (referencepath_carePlansValidationError !== null) {
|
|
5003
5053
|
let message = 'Object doesn\'t match CarePlanListInputRepresentation (at "' + path_carePlans + '")\n';
|
|
5004
5054
|
message += referencepath_carePlansValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5010,7 +5060,7 @@ function validate$x(obj, path = 'CarePlanBulkInputRepresentation') {
|
|
|
5010
5060
|
|
|
5011
5061
|
const TTL$2 = 100;
|
|
5012
5062
|
const VERSION$p = "83a45266096a71720e9049cb0f0477d6";
|
|
5013
|
-
function validate$
|
|
5063
|
+
function validate$x(obj, path = 'CarePlanBulkOutputRepresentation') {
|
|
5014
5064
|
const v_error = (() => {
|
|
5015
5065
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5016
5066
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5066,7 +5116,7 @@ function equals$p(existing, incoming) {
|
|
|
5066
5116
|
}
|
|
5067
5117
|
const ingest$c = function CarePlanBulkOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5068
5118
|
if (process.env.NODE_ENV !== 'production') {
|
|
5069
|
-
const validateError = validate$
|
|
5119
|
+
const validateError = validate$x(input);
|
|
5070
5120
|
if (validateError !== null) {
|
|
5071
5121
|
throw validateError;
|
|
5072
5122
|
}
|
|
@@ -5132,7 +5182,7 @@ const createResourceParams$d = /*#__PURE__*/ createResourceParams$n(createCarePl
|
|
|
5132
5182
|
function typeCheckConfig$d(untrustedConfig) {
|
|
5133
5183
|
const config = {};
|
|
5134
5184
|
const untrustedConfig_carePlanBulkRecord = untrustedConfig.carePlanBulkRecord;
|
|
5135
|
-
const referenceCarePlanBulkInputRepresentationValidationError = validate$
|
|
5185
|
+
const referenceCarePlanBulkInputRepresentationValidationError = validate$y(untrustedConfig_carePlanBulkRecord);
|
|
5136
5186
|
if (referenceCarePlanBulkInputRepresentationValidationError === null) {
|
|
5137
5187
|
config.carePlanBulkRecord = untrustedConfig_carePlanBulkRecord;
|
|
5138
5188
|
}
|
|
@@ -5180,7 +5230,7 @@ const createCarePlansAdapterFactory = (luvio) => {
|
|
|
5180
5230
|
};
|
|
5181
5231
|
};
|
|
5182
5232
|
|
|
5183
|
-
function validate$
|
|
5233
|
+
function validate$w(obj, path = 'MentoringBenefitAssignment') {
|
|
5184
5234
|
const v_error = (() => {
|
|
5185
5235
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5186
5236
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5342,14 +5392,14 @@ function validate$v(obj, path = 'MentoringBenefitAssignment') {
|
|
|
5342
5392
|
}
|
|
5343
5393
|
|
|
5344
5394
|
const VERSION$o = "4056cc46e5eff095d36ae486ac5908bc";
|
|
5345
|
-
function validate$
|
|
5395
|
+
function validate$v(obj, path = 'MentoringBenefitAssignmentOutputRepresentation') {
|
|
5346
5396
|
const v_error = (() => {
|
|
5347
5397
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5348
5398
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5349
5399
|
}
|
|
5350
5400
|
const obj_mentoringBenefitAssignment = obj.mentoringBenefitAssignment;
|
|
5351
5401
|
const path_mentoringBenefitAssignment = path + '.mentoringBenefitAssignment';
|
|
5352
|
-
const referencepath_mentoringBenefitAssignmentValidationError = validate$
|
|
5402
|
+
const referencepath_mentoringBenefitAssignmentValidationError = validate$w(obj_mentoringBenefitAssignment, path_mentoringBenefitAssignment);
|
|
5353
5403
|
if (referencepath_mentoringBenefitAssignmentValidationError !== null) {
|
|
5354
5404
|
let message = 'Object doesn\'t match MentoringBenefitAssignment (at "' + path_mentoringBenefitAssignment + '")\n';
|
|
5355
5405
|
message += referencepath_mentoringBenefitAssignmentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5387,7 +5437,7 @@ function equals$o(existing, incoming) {
|
|
|
5387
5437
|
}
|
|
5388
5438
|
const ingest$b = function MentoringBenefitAssignmentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5389
5439
|
if (process.env.NODE_ENV !== 'production') {
|
|
5390
|
-
const validateError = validate$
|
|
5440
|
+
const validateError = validate$v(input);
|
|
5391
5441
|
if (validateError !== null) {
|
|
5392
5442
|
throw validateError;
|
|
5393
5443
|
}
|
|
@@ -5498,6 +5548,42 @@ const postBenefitAssignmentAdapterFactory = (luvio) => {
|
|
|
5498
5548
|
};
|
|
5499
5549
|
};
|
|
5500
5550
|
|
|
5551
|
+
function validate$u(obj, path = 'FilterConfig') {
|
|
5552
|
+
const v_error = (() => {
|
|
5553
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5554
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5555
|
+
}
|
|
5556
|
+
const obj_apiName = obj.apiName;
|
|
5557
|
+
const path_apiName = path + '.apiName';
|
|
5558
|
+
if (typeof obj_apiName !== 'string') {
|
|
5559
|
+
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
5560
|
+
}
|
|
5561
|
+
const obj_fieldType = obj.fieldType;
|
|
5562
|
+
const path_fieldType = path + '.fieldType';
|
|
5563
|
+
if (typeof obj_fieldType !== 'string') {
|
|
5564
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldType + '" (at "' + path_fieldType + '")');
|
|
5565
|
+
}
|
|
5566
|
+
const obj_filterValue = obj.filterValue;
|
|
5567
|
+
const path_filterValue = path + '.filterValue';
|
|
5568
|
+
if (!ArrayIsArray(obj_filterValue)) {
|
|
5569
|
+
return new TypeError('Expected "array" but received "' + typeof obj_filterValue + '" (at "' + path_filterValue + '")');
|
|
5570
|
+
}
|
|
5571
|
+
for (let i = 0; i < obj_filterValue.length; i++) {
|
|
5572
|
+
const obj_filterValue_item = obj_filterValue[i];
|
|
5573
|
+
const path_filterValue_item = path_filterValue + '[' + i + ']';
|
|
5574
|
+
if (typeof obj_filterValue_item !== 'string') {
|
|
5575
|
+
return new TypeError('Expected "string" but received "' + typeof obj_filterValue_item + '" (at "' + path_filterValue_item + '")');
|
|
5576
|
+
}
|
|
5577
|
+
}
|
|
5578
|
+
const obj_operator = obj.operator;
|
|
5579
|
+
const path_operator = path + '.operator';
|
|
5580
|
+
if (typeof obj_operator !== 'string') {
|
|
5581
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
5582
|
+
}
|
|
5583
|
+
})();
|
|
5584
|
+
return v_error === undefined ? null : v_error;
|
|
5585
|
+
}
|
|
5586
|
+
|
|
5501
5587
|
const VERSION$n = "21bdda1d3836a2c358ee187ea8dee2b2";
|
|
5502
5588
|
function validate$t(obj, path = 'MentoringProfileOption') {
|
|
5503
5589
|
const v_error = (() => {
|
|
@@ -5617,7 +5703,7 @@ function select$x(luvio, params) {
|
|
|
5617
5703
|
return select$y();
|
|
5618
5704
|
}
|
|
5619
5705
|
function keyBuilder$j(luvio, params) {
|
|
5620
|
-
return keyPrefix + '::MentoringMatchingSelectorOutputRepresentation:(' + 'benefitAssignmentId:' + params.urlParams.benefitAssignmentId + ',' + '
|
|
5706
|
+
return keyPrefix + '::MentoringMatchingSelectorOutputRepresentation:(' + 'benefitAssignmentId:' + params.urlParams.benefitAssignmentId + ',' + '[' + params.body.filtersConfig.map(element => 'filtersConfig.apiName:' + element.apiName + '::' + 'filtersConfig.fieldType:' + element.fieldType + '::' + 'filtersConfig.operator:' + element.operator + '::' + 'filtersConfig.filterValue:' + element.filterValue).join(',') + ']' + ')';
|
|
5621
5707
|
}
|
|
5622
5708
|
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
5623
5709
|
getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
|
|
@@ -5678,7 +5764,10 @@ function typeCheckConfig$b(untrustedConfig) {
|
|
|
5678
5764
|
const untrustedConfig_filtersConfig_array = [];
|
|
5679
5765
|
for (let i = 0, arrayLength = untrustedConfig_filtersConfig.length; i < arrayLength; i++) {
|
|
5680
5766
|
const untrustedConfig_filtersConfig_item = untrustedConfig_filtersConfig[i];
|
|
5681
|
-
|
|
5767
|
+
const referenceFilterConfigValidationError = validate$u(untrustedConfig_filtersConfig_item);
|
|
5768
|
+
if (referenceFilterConfigValidationError === null) {
|
|
5769
|
+
untrustedConfig_filtersConfig_array.push(untrustedConfig_filtersConfig_item);
|
|
5770
|
+
}
|
|
5682
5771
|
}
|
|
5683
5772
|
config.filtersConfig = untrustedConfig_filtersConfig_array;
|
|
5684
5773
|
}
|
|
@@ -5765,7 +5854,7 @@ function validate$r(obj, path = 'IndividualApplicationTaskOutputRepresentation')
|
|
|
5765
5854
|
if (obj.result !== undefined) {
|
|
5766
5855
|
const obj_result = obj.result;
|
|
5767
5856
|
const path_result = path + '.result';
|
|
5768
|
-
const referencepath_resultValidationError = validate$
|
|
5857
|
+
const referencepath_resultValidationError = validate$14(obj_result, path_result);
|
|
5769
5858
|
if (referencepath_resultValidationError !== null) {
|
|
5770
5859
|
let message = 'Object doesn\'t match IndividualApplicationTask (at "' + path_result + '")\n';
|
|
5771
5860
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6581,7 +6670,7 @@ function validate$l(obj, path = 'GetNewApplicationPreliminaryDataResult') {
|
|
|
6581
6670
|
for (let i = 0; i < obj_applicants.length; i++) {
|
|
6582
6671
|
const obj_applicants_item = obj_applicants[i];
|
|
6583
6672
|
const path_applicants_item = path_applicants + '[' + i + ']';
|
|
6584
|
-
const referencepath_applicants_itemValidationError = validate$
|
|
6673
|
+
const referencepath_applicants_itemValidationError = validate$1a(obj_applicants_item, path_applicants_item);
|
|
6585
6674
|
if (referencepath_applicants_itemValidationError !== null) {
|
|
6586
6675
|
let message = 'Object doesn\'t match Applicant (at "' + path_applicants_item + '")\n';
|
|
6587
6676
|
message += referencepath_applicants_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|