@salesforce/lds-adapters-industries-education 1.396.0 → 1.398.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 +960 -741
- package/dist/es/es2018/types/src/generated/adapters/getDocumentTypes.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectEducationDocumentsDocumentType.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/types/DocumentTypeOutputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/DocumentTypesResultRepresentation.d.ts +29 -0
- package/package.json +4 -4
- package/sfdc/index.js +845 -618
- package/src/raml/api.raml +34 -0
- package/src/raml/luvio.raml +6 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$i, typeCheckConfig as typeCheckConfig$q, StoreKeyMap, createResourceParams as createResourceParams$q } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -173,7 +173,7 @@ var DiscriminatorValues;
|
|
|
173
173
|
DiscriminatorValues["LearningCourse"] = "LearningCourse";
|
|
174
174
|
DiscriminatorValues["LearningProgram"] = "LearningProgram";
|
|
175
175
|
})(DiscriminatorValues || (DiscriminatorValues = {}));
|
|
176
|
-
function validate$
|
|
176
|
+
function validate$1j(obj, path = 'LearningOutput') {
|
|
177
177
|
const v_error = (() => {
|
|
178
178
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
179
179
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -267,7 +267,7 @@ function validate$1h(obj, path = 'LearningOutput') {
|
|
|
267
267
|
return v_error === undefined ? null : v_error;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
function validate$
|
|
270
|
+
function validate$1i(obj, path = 'LearningOutcomeItemOutput') {
|
|
271
271
|
const v_error = (() => {
|
|
272
272
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
273
273
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -331,7 +331,7 @@ function validate$1g(obj, path = 'LearningOutcomeItemOutput') {
|
|
|
331
331
|
return v_error === undefined ? null : v_error;
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
-
function validate$
|
|
334
|
+
function validate$1h(obj, path = 'LearningEquivalency') {
|
|
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 + '")');
|
|
@@ -361,7 +361,7 @@ function validate$1f(obj, path = 'LearningEquivalency') {
|
|
|
361
361
|
return v_error === undefined ? null : v_error;
|
|
362
362
|
}
|
|
363
363
|
|
|
364
|
-
function validate$
|
|
364
|
+
function validate$1g(obj, path = 'LearningStatus') {
|
|
365
365
|
const v_error = (() => {
|
|
366
366
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
367
367
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -431,7 +431,7 @@ function validate$1e(obj, path = 'LearningStatus') {
|
|
|
431
431
|
for (let i = 0; i < obj_learningEquivalencies.length; i++) {
|
|
432
432
|
const obj_learningEquivalencies_item = obj_learningEquivalencies[i];
|
|
433
433
|
const path_learningEquivalencies_item = path_learningEquivalencies + '[' + i + ']';
|
|
434
|
-
const referencepath_learningEquivalencies_itemValidationError = validate$
|
|
434
|
+
const referencepath_learningEquivalencies_itemValidationError = validate$1h(obj_learningEquivalencies_item, path_learningEquivalencies_item);
|
|
435
435
|
if (referencepath_learningEquivalencies_itemValidationError !== null) {
|
|
436
436
|
let message = 'Object doesn\'t match LearningEquivalency (at "' + path_learningEquivalencies_item + '")\n';
|
|
437
437
|
message += referencepath_learningEquivalencies_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -493,7 +493,7 @@ function validate$1e(obj, path = 'LearningStatus') {
|
|
|
493
493
|
return v_error === undefined ? null : v_error;
|
|
494
494
|
}
|
|
495
495
|
|
|
496
|
-
function validate$
|
|
496
|
+
function validate$1f(obj, path = 'LearningFulfiller') {
|
|
497
497
|
const v_error = (() => {
|
|
498
498
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
499
499
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -508,7 +508,7 @@ function validate$1d(obj, path = 'LearningFulfiller') {
|
|
|
508
508
|
if (obj.learning !== undefined) {
|
|
509
509
|
const obj_learning = obj.learning;
|
|
510
510
|
const path_learning = path + '.learning';
|
|
511
|
-
const referencepath_learningValidationError = validate$
|
|
511
|
+
const referencepath_learningValidationError = validate$1j(obj_learning, path_learning);
|
|
512
512
|
if (referencepath_learningValidationError !== null) {
|
|
513
513
|
let message = 'Object doesn\'t match LearningOutput (at "' + path_learning + '")\n';
|
|
514
514
|
message += referencepath_learningValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -518,7 +518,7 @@ function validate$1d(obj, path = 'LearningFulfiller') {
|
|
|
518
518
|
if (obj.learningOutcomeItem !== undefined) {
|
|
519
519
|
const obj_learningOutcomeItem = obj.learningOutcomeItem;
|
|
520
520
|
const path_learningOutcomeItem = path + '.learningOutcomeItem';
|
|
521
|
-
const referencepath_learningOutcomeItemValidationError = validate$
|
|
521
|
+
const referencepath_learningOutcomeItemValidationError = validate$1i(obj_learningOutcomeItem, path_learningOutcomeItem);
|
|
522
522
|
if (referencepath_learningOutcomeItemValidationError !== null) {
|
|
523
523
|
let message = 'Object doesn\'t match LearningOutcomeItemOutput (at "' + path_learningOutcomeItem + '")\n';
|
|
524
524
|
message += referencepath_learningOutcomeItemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -528,7 +528,7 @@ function validate$1d(obj, path = 'LearningFulfiller') {
|
|
|
528
528
|
if (obj.learningStatus !== undefined) {
|
|
529
529
|
const obj_learningStatus = obj.learningStatus;
|
|
530
530
|
const path_learningStatus = path + '.learningStatus';
|
|
531
|
-
const referencepath_learningStatusValidationError = validate$
|
|
531
|
+
const referencepath_learningStatusValidationError = validate$1g(obj_learningStatus, path_learningStatus);
|
|
532
532
|
if (referencepath_learningStatusValidationError !== null) {
|
|
533
533
|
let message = 'Object doesn\'t match LearningStatus (at "' + path_learningStatus + '")\n';
|
|
534
534
|
message += referencepath_learningStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -544,7 +544,7 @@ function validate$1d(obj, path = 'LearningFulfiller') {
|
|
|
544
544
|
for (let i = 0; i < obj_otherLearningStatus.length; i++) {
|
|
545
545
|
const obj_otherLearningStatus_item = obj_otherLearningStatus[i];
|
|
546
546
|
const path_otherLearningStatus_item = path_otherLearningStatus + '[' + i + ']';
|
|
547
|
-
const referencepath_otherLearningStatus_itemValidationError = validate$
|
|
547
|
+
const referencepath_otherLearningStatus_itemValidationError = validate$1g(obj_otherLearningStatus_item, path_otherLearningStatus_item);
|
|
548
548
|
if (referencepath_otherLearningStatus_itemValidationError !== null) {
|
|
549
549
|
let message = 'Object doesn\'t match LearningStatus (at "' + path_otherLearningStatus_item + '")\n';
|
|
550
550
|
message += referencepath_otherLearningStatus_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -556,7 +556,7 @@ function validate$1d(obj, path = 'LearningFulfiller') {
|
|
|
556
556
|
return v_error === undefined ? null : v_error;
|
|
557
557
|
}
|
|
558
558
|
|
|
559
|
-
function validate$
|
|
559
|
+
function validate$1e(obj, path = 'LearningFoundationItemOutput') {
|
|
560
560
|
const v_error = (() => {
|
|
561
561
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
562
562
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -587,7 +587,7 @@ function validate$1c(obj, path = 'LearningFoundationItemOutput') {
|
|
|
587
587
|
for (let i = 0; i < obj_fulfilledBy.length; i++) {
|
|
588
588
|
const obj_fulfilledBy_item = obj_fulfilledBy[i];
|
|
589
589
|
const path_fulfilledBy_item = path_fulfilledBy + '[' + i + ']';
|
|
590
|
-
const referencepath_fulfilledBy_itemValidationError = validate$
|
|
590
|
+
const referencepath_fulfilledBy_itemValidationError = validate$1f(obj_fulfilledBy_item, path_fulfilledBy_item);
|
|
591
591
|
if (referencepath_fulfilledBy_itemValidationError !== null) {
|
|
592
592
|
let message = 'Object doesn\'t match LearningFulfiller (at "' + path_fulfilledBy_item + '")\n';
|
|
593
593
|
message += referencepath_fulfilledBy_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -669,7 +669,7 @@ function validate$1c(obj, path = 'LearningFoundationItemOutput') {
|
|
|
669
669
|
return v_error === undefined ? null : v_error;
|
|
670
670
|
}
|
|
671
671
|
|
|
672
|
-
function validate$
|
|
672
|
+
function validate$1d(obj, path = 'EducationApiErrorDetails') {
|
|
673
673
|
const v_error = (() => {
|
|
674
674
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
675
675
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -688,7 +688,7 @@ function validate$1b(obj, path = 'EducationApiErrorDetails') {
|
|
|
688
688
|
return v_error === undefined ? null : v_error;
|
|
689
689
|
}
|
|
690
690
|
|
|
691
|
-
function validate$
|
|
691
|
+
function validate$1c(obj, path = 'LearningPolicyRuleOutput') {
|
|
692
692
|
const v_error = (() => {
|
|
693
693
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
694
694
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -717,8 +717,8 @@ function validate$1a(obj, path = 'LearningPolicyRuleOutput') {
|
|
|
717
717
|
return v_error === undefined ? null : v_error;
|
|
718
718
|
}
|
|
719
719
|
|
|
720
|
-
const VERSION$
|
|
721
|
-
function validate$
|
|
720
|
+
const VERSION$D = "00d976655763261f8c025fa68734a565";
|
|
721
|
+
function validate$1b(obj, path = 'GetLearningOutputRepresentation') {
|
|
722
722
|
const v_error = (() => {
|
|
723
723
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
724
724
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -732,7 +732,7 @@ function validate$19(obj, path = 'GetLearningOutputRepresentation') {
|
|
|
732
732
|
for (let i = 0; i < obj_corequisites.length; i++) {
|
|
733
733
|
const obj_corequisites_item = obj_corequisites[i];
|
|
734
734
|
const path_corequisites_item = path_corequisites + '[' + i + ']';
|
|
735
|
-
const referencepath_corequisites_itemValidationError = validate$
|
|
735
|
+
const referencepath_corequisites_itemValidationError = validate$1e(obj_corequisites_item, path_corequisites_item);
|
|
736
736
|
if (referencepath_corequisites_itemValidationError !== null) {
|
|
737
737
|
let message = 'Object doesn\'t match LearningFoundationItemOutput (at "' + path_corequisites_item + '")\n';
|
|
738
738
|
message += referencepath_corequisites_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -749,7 +749,7 @@ function validate$19(obj, path = 'GetLearningOutputRepresentation') {
|
|
|
749
749
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
750
750
|
const obj_errors_item = obj_errors[i];
|
|
751
751
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
752
|
-
const referencepath_errors_itemValidationError = validate$
|
|
752
|
+
const referencepath_errors_itemValidationError = validate$1d(obj_errors_item, path_errors_item);
|
|
753
753
|
if (referencepath_errors_itemValidationError !== null) {
|
|
754
754
|
let message = 'Object doesn\'t match EducationApiErrorDetails (at "' + path_errors_item + '")\n';
|
|
755
755
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -760,7 +760,7 @@ function validate$19(obj, path = 'GetLearningOutputRepresentation') {
|
|
|
760
760
|
if (obj.learning !== undefined) {
|
|
761
761
|
const obj_learning = obj.learning;
|
|
762
762
|
const path_learning = path + '.learning';
|
|
763
|
-
const referencepath_learningValidationError = validate$
|
|
763
|
+
const referencepath_learningValidationError = validate$1j(obj_learning, path_learning);
|
|
764
764
|
if (referencepath_learningValidationError !== null) {
|
|
765
765
|
let message = 'Object doesn\'t match LearningOutput (at "' + path_learning + '")\n';
|
|
766
766
|
message += referencepath_learningValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -776,7 +776,7 @@ function validate$19(obj, path = 'GetLearningOutputRepresentation') {
|
|
|
776
776
|
for (let i = 0; i < obj_learningPolicyRules.length; i++) {
|
|
777
777
|
const obj_learningPolicyRules_item = obj_learningPolicyRules[i];
|
|
778
778
|
const path_learningPolicyRules_item = path_learningPolicyRules + '[' + i + ']';
|
|
779
|
-
const referencepath_learningPolicyRules_itemValidationError = validate$
|
|
779
|
+
const referencepath_learningPolicyRules_itemValidationError = validate$1c(obj_learningPolicyRules_item, path_learningPolicyRules_item);
|
|
780
780
|
if (referencepath_learningPolicyRules_itemValidationError !== null) {
|
|
781
781
|
let message = 'Object doesn\'t match LearningPolicyRuleOutput (at "' + path_learningPolicyRules_item + '")\n';
|
|
782
782
|
message += referencepath_learningPolicyRules_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -793,7 +793,7 @@ function validate$19(obj, path = 'GetLearningOutputRepresentation') {
|
|
|
793
793
|
for (let i = 0; i < obj_linked.length; i++) {
|
|
794
794
|
const obj_linked_item = obj_linked[i];
|
|
795
795
|
const path_linked_item = path_linked + '[' + i + ']';
|
|
796
|
-
const referencepath_linked_itemValidationError = validate$
|
|
796
|
+
const referencepath_linked_itemValidationError = validate$1e(obj_linked_item, path_linked_item);
|
|
797
797
|
if (referencepath_linked_itemValidationError !== null) {
|
|
798
798
|
let message = 'Object doesn\'t match LearningFoundationItemOutput (at "' + path_linked_item + '")\n';
|
|
799
799
|
message += referencepath_linked_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -810,7 +810,7 @@ function validate$19(obj, path = 'GetLearningOutputRepresentation') {
|
|
|
810
810
|
for (let i = 0; i < obj_outcomes.length; i++) {
|
|
811
811
|
const obj_outcomes_item = obj_outcomes[i];
|
|
812
812
|
const path_outcomes_item = path_outcomes + '[' + i + ']';
|
|
813
|
-
const referencepath_outcomes_itemValidationError = validate$
|
|
813
|
+
const referencepath_outcomes_itemValidationError = validate$1i(obj_outcomes_item, path_outcomes_item);
|
|
814
814
|
if (referencepath_outcomes_itemValidationError !== null) {
|
|
815
815
|
let message = 'Object doesn\'t match LearningOutcomeItemOutput (at "' + path_outcomes_item + '")\n';
|
|
816
816
|
message += referencepath_outcomes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -827,7 +827,7 @@ function validate$19(obj, path = 'GetLearningOutputRepresentation') {
|
|
|
827
827
|
for (let i = 0; i < obj_preOrCorequisites.length; i++) {
|
|
828
828
|
const obj_preOrCorequisites_item = obj_preOrCorequisites[i];
|
|
829
829
|
const path_preOrCorequisites_item = path_preOrCorequisites + '[' + i + ']';
|
|
830
|
-
const referencepath_preOrCorequisites_itemValidationError = validate$
|
|
830
|
+
const referencepath_preOrCorequisites_itemValidationError = validate$1e(obj_preOrCorequisites_item, path_preOrCorequisites_item);
|
|
831
831
|
if (referencepath_preOrCorequisites_itemValidationError !== null) {
|
|
832
832
|
let message = 'Object doesn\'t match LearningFoundationItemOutput (at "' + path_preOrCorequisites_item + '")\n';
|
|
833
833
|
message += referencepath_preOrCorequisites_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -844,7 +844,7 @@ function validate$19(obj, path = 'GetLearningOutputRepresentation') {
|
|
|
844
844
|
for (let i = 0; i < obj_prerequisites.length; i++) {
|
|
845
845
|
const obj_prerequisites_item = obj_prerequisites[i];
|
|
846
846
|
const path_prerequisites_item = path_prerequisites + '[' + i + ']';
|
|
847
|
-
const referencepath_prerequisites_itemValidationError = validate$
|
|
847
|
+
const referencepath_prerequisites_itemValidationError = validate$1e(obj_prerequisites_item, path_prerequisites_item);
|
|
848
848
|
if (referencepath_prerequisites_itemValidationError !== null) {
|
|
849
849
|
let message = 'Object doesn\'t match LearningFoundationItemOutput (at "' + path_prerequisites_item + '")\n';
|
|
850
850
|
message += referencepath_prerequisites_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -861,7 +861,7 @@ function validate$19(obj, path = 'GetLearningOutputRepresentation') {
|
|
|
861
861
|
for (let i = 0; i < obj_recommended.length; i++) {
|
|
862
862
|
const obj_recommended_item = obj_recommended[i];
|
|
863
863
|
const path_recommended_item = path_recommended + '[' + i + ']';
|
|
864
|
-
const referencepath_recommended_itemValidationError = validate$
|
|
864
|
+
const referencepath_recommended_itemValidationError = validate$1e(obj_recommended_item, path_recommended_item);
|
|
865
865
|
if (referencepath_recommended_itemValidationError !== null) {
|
|
866
866
|
let message = 'Object doesn\'t match LearningFoundationItemOutput (at "' + path_recommended_item + '")\n';
|
|
867
867
|
message += referencepath_recommended_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -879,62 +879,62 @@ function validate$19(obj, path = 'GetLearningOutputRepresentation') {
|
|
|
879
879
|
})();
|
|
880
880
|
return v_error === undefined ? null : v_error;
|
|
881
881
|
}
|
|
882
|
-
const RepresentationType$
|
|
883
|
-
function normalize$
|
|
882
|
+
const RepresentationType$n = 'GetLearningOutputRepresentation';
|
|
883
|
+
function normalize$n(input, existing, path, luvio, store, timestamp) {
|
|
884
884
|
return input;
|
|
885
885
|
}
|
|
886
|
-
const select
|
|
886
|
+
const select$11 = function GetLearningOutputRepresentationSelect() {
|
|
887
887
|
return {
|
|
888
888
|
kind: 'Fragment',
|
|
889
|
-
version: VERSION$
|
|
889
|
+
version: VERSION$D,
|
|
890
890
|
private: [],
|
|
891
891
|
opaque: true
|
|
892
892
|
};
|
|
893
893
|
};
|
|
894
|
-
function equals$
|
|
894
|
+
function equals$D(existing, incoming) {
|
|
895
895
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
896
896
|
return false;
|
|
897
897
|
}
|
|
898
898
|
return true;
|
|
899
899
|
}
|
|
900
|
-
const ingest$
|
|
900
|
+
const ingest$n = function GetLearningOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
901
901
|
if (process.env.NODE_ENV !== 'production') {
|
|
902
|
-
const validateError = validate$
|
|
902
|
+
const validateError = validate$1b(input);
|
|
903
903
|
if (validateError !== null) {
|
|
904
904
|
throw validateError;
|
|
905
905
|
}
|
|
906
906
|
}
|
|
907
907
|
const key = path.fullPath;
|
|
908
908
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
909
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
909
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$n, "education", VERSION$D, RepresentationType$n, equals$D);
|
|
910
910
|
return createLink(key);
|
|
911
911
|
};
|
|
912
|
-
function getTypeCacheKeys$
|
|
912
|
+
function getTypeCacheKeys$n(rootKeySet, luvio, input, fullPathFactory) {
|
|
913
913
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
914
914
|
const rootKey = fullPathFactory();
|
|
915
915
|
rootKeySet.set(rootKey, {
|
|
916
916
|
namespace: keyPrefix,
|
|
917
|
-
representationName: RepresentationType$
|
|
917
|
+
representationName: RepresentationType$n,
|
|
918
918
|
mergeable: false
|
|
919
919
|
});
|
|
920
920
|
}
|
|
921
921
|
|
|
922
|
-
function select$
|
|
923
|
-
return select
|
|
922
|
+
function select$10(luvio, params) {
|
|
923
|
+
return select$11();
|
|
924
924
|
}
|
|
925
|
-
function keyBuilder$
|
|
925
|
+
function keyBuilder$F(luvio, params) {
|
|
926
926
|
return keyPrefix + '::GetLearningOutputRepresentation:(' + 'course_external_id_field:' + params.queryParams.course_external_id_field + ',' + 'program_external_id_field:' + params.queryParams.program_external_id_field + ',' + 'recordId:' + params.urlParams.recordId + ')';
|
|
927
927
|
}
|
|
928
|
-
function getResponseCacheKeys$
|
|
929
|
-
getTypeCacheKeys$
|
|
928
|
+
function getResponseCacheKeys$p(storeKeyMap, luvio, resourceParams, response) {
|
|
929
|
+
getTypeCacheKeys$n(storeKeyMap, luvio, response, () => keyBuilder$F(luvio, resourceParams));
|
|
930
930
|
}
|
|
931
|
-
function ingestSuccess$
|
|
931
|
+
function ingestSuccess$p(luvio, resourceParams, response, snapshotRefresh) {
|
|
932
932
|
const { body } = response;
|
|
933
|
-
const key = keyBuilder$
|
|
934
|
-
luvio.storeIngest(key, ingest$
|
|
933
|
+
const key = keyBuilder$F(luvio, resourceParams);
|
|
934
|
+
luvio.storeIngest(key, ingest$n, body);
|
|
935
935
|
const snapshot = luvio.storeLookup({
|
|
936
936
|
recordId: key,
|
|
937
|
-
node: select$
|
|
937
|
+
node: select$10(),
|
|
938
938
|
variables: {},
|
|
939
939
|
}, snapshotRefresh);
|
|
940
940
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -945,13 +945,13 @@ function ingestSuccess$o(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
945
945
|
deepFreeze(snapshot.data);
|
|
946
946
|
return snapshot;
|
|
947
947
|
}
|
|
948
|
-
function ingestError$
|
|
949
|
-
const key = keyBuilder$
|
|
948
|
+
function ingestError$h(luvio, params, error, snapshotRefresh) {
|
|
949
|
+
const key = keyBuilder$F(luvio, params);
|
|
950
950
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
951
951
|
luvio.storeIngestError(key, errorSnapshot);
|
|
952
952
|
return errorSnapshot;
|
|
953
953
|
}
|
|
954
|
-
function createResourceRequest$
|
|
954
|
+
function createResourceRequest$p(config) {
|
|
955
955
|
const headers = {};
|
|
956
956
|
return {
|
|
957
957
|
baseUri: '/services/data/v66.0',
|
|
@@ -965,95 +965,95 @@ function createResourceRequest$o(config) {
|
|
|
965
965
|
};
|
|
966
966
|
}
|
|
967
967
|
|
|
968
|
-
const adapterName$
|
|
968
|
+
const adapterName$p = 'getLearning';
|
|
969
969
|
const getLearning_ConfigPropertyMetadata = [
|
|
970
970
|
generateParamConfigMetadata('recordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
971
971
|
generateParamConfigMetadata('course_external_id_field', false, 1 /* QueryParameter */, 0 /* String */),
|
|
972
972
|
generateParamConfigMetadata('program_external_id_field', false, 1 /* QueryParameter */, 0 /* String */),
|
|
973
973
|
];
|
|
974
|
-
const getLearning_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
975
|
-
const createResourceParams$
|
|
976
|
-
function keyBuilder$
|
|
977
|
-
const resourceParams = createResourceParams$
|
|
978
|
-
return keyBuilder$
|
|
974
|
+
const getLearning_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$p, getLearning_ConfigPropertyMetadata);
|
|
975
|
+
const createResourceParams$p = /*#__PURE__*/ createResourceParams$q(getLearning_ConfigPropertyMetadata);
|
|
976
|
+
function keyBuilder$E(luvio, config) {
|
|
977
|
+
const resourceParams = createResourceParams$p(config);
|
|
978
|
+
return keyBuilder$F(luvio, resourceParams);
|
|
979
979
|
}
|
|
980
|
-
function typeCheckConfig$
|
|
980
|
+
function typeCheckConfig$p(untrustedConfig) {
|
|
981
981
|
const config = {};
|
|
982
|
-
typeCheckConfig$
|
|
982
|
+
typeCheckConfig$q(untrustedConfig, config, getLearning_ConfigPropertyMetadata);
|
|
983
983
|
return config;
|
|
984
984
|
}
|
|
985
|
-
function validateAdapterConfig$
|
|
985
|
+
function validateAdapterConfig$p(untrustedConfig, configPropertyNames) {
|
|
986
986
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
987
987
|
return null;
|
|
988
988
|
}
|
|
989
989
|
if (process.env.NODE_ENV !== 'production') {
|
|
990
990
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
991
991
|
}
|
|
992
|
-
const config = typeCheckConfig$
|
|
992
|
+
const config = typeCheckConfig$p(untrustedConfig);
|
|
993
993
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
994
994
|
return null;
|
|
995
995
|
}
|
|
996
996
|
return config;
|
|
997
997
|
}
|
|
998
|
-
function adapterFragment$
|
|
999
|
-
createResourceParams$
|
|
1000
|
-
return select$
|
|
998
|
+
function adapterFragment$h(luvio, config) {
|
|
999
|
+
createResourceParams$p(config);
|
|
1000
|
+
return select$10();
|
|
1001
1001
|
}
|
|
1002
|
-
function onFetchResponseSuccess$
|
|
1003
|
-
const snapshot = ingestSuccess$
|
|
1002
|
+
function onFetchResponseSuccess$h(luvio, config, resourceParams, response) {
|
|
1003
|
+
const snapshot = ingestSuccess$p(luvio, resourceParams, response, {
|
|
1004
1004
|
config,
|
|
1005
|
-
resolve: () => buildNetworkSnapshot$
|
|
1005
|
+
resolve: () => buildNetworkSnapshot$p(luvio, config, snapshotRefreshOptions)
|
|
1006
1006
|
});
|
|
1007
1007
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1008
1008
|
}
|
|
1009
|
-
function onFetchResponseError$
|
|
1010
|
-
const snapshot = ingestError$
|
|
1009
|
+
function onFetchResponseError$h(luvio, config, resourceParams, response) {
|
|
1010
|
+
const snapshot = ingestError$h(luvio, resourceParams, response, {
|
|
1011
1011
|
config,
|
|
1012
|
-
resolve: () => buildNetworkSnapshot$
|
|
1012
|
+
resolve: () => buildNetworkSnapshot$p(luvio, config, snapshotRefreshOptions)
|
|
1013
1013
|
});
|
|
1014
1014
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1015
1015
|
}
|
|
1016
|
-
function buildNetworkSnapshot$
|
|
1017
|
-
const resourceParams = createResourceParams$
|
|
1018
|
-
const request = createResourceRequest$
|
|
1016
|
+
function buildNetworkSnapshot$p(luvio, config, options) {
|
|
1017
|
+
const resourceParams = createResourceParams$p(config);
|
|
1018
|
+
const request = createResourceRequest$p(resourceParams);
|
|
1019
1019
|
return luvio.dispatchResourceRequest(request, options)
|
|
1020
1020
|
.then((response) => {
|
|
1021
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1021
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$h(luvio, config, resourceParams, response), () => {
|
|
1022
1022
|
const cache = new StoreKeyMap();
|
|
1023
|
-
getResponseCacheKeys$
|
|
1023
|
+
getResponseCacheKeys$p(cache, luvio, resourceParams, response.body);
|
|
1024
1024
|
return cache;
|
|
1025
1025
|
});
|
|
1026
1026
|
}, (response) => {
|
|
1027
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1027
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$h(luvio, config, resourceParams, response));
|
|
1028
1028
|
});
|
|
1029
1029
|
}
|
|
1030
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1031
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1030
|
+
function buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext) {
|
|
1031
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$p, undefined, false);
|
|
1032
1032
|
}
|
|
1033
|
-
function buildCachedSnapshotCachePolicy$
|
|
1033
|
+
function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
|
|
1034
1034
|
const { luvio, config } = context;
|
|
1035
1035
|
const selector = {
|
|
1036
|
-
recordId: keyBuilder$
|
|
1037
|
-
node: adapterFragment$
|
|
1036
|
+
recordId: keyBuilder$E(luvio, config),
|
|
1037
|
+
node: adapterFragment$h(luvio, config),
|
|
1038
1038
|
variables: {},
|
|
1039
1039
|
};
|
|
1040
1040
|
const cacheSnapshot = storeLookup(selector, {
|
|
1041
1041
|
config,
|
|
1042
|
-
resolve: () => buildNetworkSnapshot$
|
|
1042
|
+
resolve: () => buildNetworkSnapshot$p(luvio, config, snapshotRefreshOptions)
|
|
1043
1043
|
});
|
|
1044
1044
|
return cacheSnapshot;
|
|
1045
1045
|
}
|
|
1046
1046
|
const getLearningAdapterFactory = (luvio) => function education__getLearning(untrustedConfig, requestContext) {
|
|
1047
|
-
const config = validateAdapterConfig$
|
|
1047
|
+
const config = validateAdapterConfig$p(untrustedConfig, getLearning_ConfigPropertyNames);
|
|
1048
1048
|
// Invalid or incomplete config
|
|
1049
1049
|
if (config === null) {
|
|
1050
1050
|
return null;
|
|
1051
1051
|
}
|
|
1052
1052
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1053
|
-
buildCachedSnapshotCachePolicy$
|
|
1053
|
+
buildCachedSnapshotCachePolicy$h, buildNetworkSnapshotCachePolicy$h);
|
|
1054
1054
|
};
|
|
1055
1055
|
|
|
1056
|
-
function validate$
|
|
1056
|
+
function validate$1a(obj, path = 'CreateLearningOutputRepresentation') {
|
|
1057
1057
|
const v_error = (() => {
|
|
1058
1058
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1059
1059
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1067,7 +1067,7 @@ function validate$18(obj, path = 'CreateLearningOutputRepresentation') {
|
|
|
1067
1067
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
1068
1068
|
const obj_errors_item = obj_errors[i];
|
|
1069
1069
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
1070
|
-
const referencepath_errors_itemValidationError = validate$
|
|
1070
|
+
const referencepath_errors_itemValidationError = validate$1d(obj_errors_item, path_errors_item);
|
|
1071
1071
|
if (referencepath_errors_itemValidationError !== null) {
|
|
1072
1072
|
let message = 'Object doesn\'t match EducationApiErrorDetails (at "' + path_errors_item + '")\n';
|
|
1073
1073
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1150,8 +1150,8 @@ function validate$18(obj, path = 'CreateLearningOutputRepresentation') {
|
|
|
1150
1150
|
}
|
|
1151
1151
|
|
|
1152
1152
|
const TTL$8 = 100;
|
|
1153
|
-
const VERSION$
|
|
1154
|
-
function validate$
|
|
1153
|
+
const VERSION$C = "ff34ed5afbde8f8c0e3ba4441dd19c08";
|
|
1154
|
+
function validate$19(obj, path = 'CreateLearningsOutputRepresentation') {
|
|
1155
1155
|
const v_error = (() => {
|
|
1156
1156
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1157
1157
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1165,7 +1165,7 @@ function validate$17(obj, path = 'CreateLearningsOutputRepresentation') {
|
|
|
1165
1165
|
for (let i = 0; i < obj_details.length; i++) {
|
|
1166
1166
|
const obj_details_item = obj_details[i];
|
|
1167
1167
|
const path_details_item = path_details + '[' + i + ']';
|
|
1168
|
-
const referencepath_details_itemValidationError = validate$
|
|
1168
|
+
const referencepath_details_itemValidationError = validate$1a(obj_details_item, path_details_item);
|
|
1169
1169
|
if (referencepath_details_itemValidationError !== null) {
|
|
1170
1170
|
let message = 'Object doesn\'t match CreateLearningOutputRepresentation (at "' + path_details_item + '")\n';
|
|
1171
1171
|
message += referencepath_details_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1195,68 +1195,68 @@ function validate$17(obj, path = 'CreateLearningsOutputRepresentation') {
|
|
|
1195
1195
|
})();
|
|
1196
1196
|
return v_error === undefined ? null : v_error;
|
|
1197
1197
|
}
|
|
1198
|
-
const RepresentationType$
|
|
1199
|
-
function keyBuilder$
|
|
1200
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1198
|
+
const RepresentationType$m = 'CreateLearningsOutputRepresentation';
|
|
1199
|
+
function keyBuilder$D(luvio, config) {
|
|
1200
|
+
return keyPrefix + '::' + RepresentationType$m + ':' + config.id;
|
|
1201
1201
|
}
|
|
1202
1202
|
function keyBuilderFromType$5(luvio, object) {
|
|
1203
1203
|
const keyParams = {
|
|
1204
1204
|
id: object.status
|
|
1205
1205
|
};
|
|
1206
|
-
return keyBuilder$
|
|
1206
|
+
return keyBuilder$D(luvio, keyParams);
|
|
1207
1207
|
}
|
|
1208
|
-
function normalize$
|
|
1208
|
+
function normalize$m(input, existing, path, luvio, store, timestamp) {
|
|
1209
1209
|
return input;
|
|
1210
1210
|
}
|
|
1211
|
-
const select
|
|
1211
|
+
const select$$ = function CreateLearningsOutputRepresentationSelect() {
|
|
1212
1212
|
return {
|
|
1213
1213
|
kind: 'Fragment',
|
|
1214
|
-
version: VERSION$
|
|
1214
|
+
version: VERSION$C,
|
|
1215
1215
|
private: [],
|
|
1216
1216
|
opaque: true
|
|
1217
1217
|
};
|
|
1218
1218
|
};
|
|
1219
|
-
function equals$
|
|
1219
|
+
function equals$C(existing, incoming) {
|
|
1220
1220
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1221
1221
|
return false;
|
|
1222
1222
|
}
|
|
1223
1223
|
return true;
|
|
1224
1224
|
}
|
|
1225
|
-
const ingest$
|
|
1225
|
+
const ingest$m = function CreateLearningsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1226
1226
|
if (process.env.NODE_ENV !== 'production') {
|
|
1227
|
-
const validateError = validate$
|
|
1227
|
+
const validateError = validate$19(input);
|
|
1228
1228
|
if (validateError !== null) {
|
|
1229
1229
|
throw validateError;
|
|
1230
1230
|
}
|
|
1231
1231
|
}
|
|
1232
1232
|
const key = keyBuilderFromType$5(luvio, input);
|
|
1233
1233
|
const ttlToUse = TTL$8;
|
|
1234
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1234
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$m, "education", VERSION$C, RepresentationType$m, equals$C);
|
|
1235
1235
|
return createLink(key);
|
|
1236
1236
|
};
|
|
1237
|
-
function getTypeCacheKeys$
|
|
1237
|
+
function getTypeCacheKeys$m(rootKeySet, luvio, input, fullPathFactory) {
|
|
1238
1238
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1239
1239
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
1240
1240
|
rootKeySet.set(rootKey, {
|
|
1241
1241
|
namespace: keyPrefix,
|
|
1242
|
-
representationName: RepresentationType$
|
|
1242
|
+
representationName: RepresentationType$m,
|
|
1243
1243
|
mergeable: false
|
|
1244
1244
|
});
|
|
1245
1245
|
}
|
|
1246
1246
|
|
|
1247
|
-
function select$
|
|
1248
|
-
return select
|
|
1247
|
+
function select$_(luvio, params) {
|
|
1248
|
+
return select$$();
|
|
1249
1249
|
}
|
|
1250
|
-
function getResponseCacheKeys$
|
|
1251
|
-
getTypeCacheKeys$
|
|
1250
|
+
function getResponseCacheKeys$o(storeKeyMap, luvio, resourceParams, response) {
|
|
1251
|
+
getTypeCacheKeys$m(storeKeyMap, luvio, response);
|
|
1252
1252
|
}
|
|
1253
|
-
function ingestSuccess$
|
|
1253
|
+
function ingestSuccess$o(luvio, resourceParams, response) {
|
|
1254
1254
|
const { body } = response;
|
|
1255
1255
|
const key = keyBuilderFromType$5(luvio, body);
|
|
1256
|
-
luvio.storeIngest(key, ingest$
|
|
1256
|
+
luvio.storeIngest(key, ingest$m, body);
|
|
1257
1257
|
const snapshot = luvio.storeLookup({
|
|
1258
1258
|
recordId: key,
|
|
1259
|
-
node: select$
|
|
1259
|
+
node: select$_(),
|
|
1260
1260
|
variables: {},
|
|
1261
1261
|
});
|
|
1262
1262
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1267,7 +1267,7 @@ function ingestSuccess$n(luvio, resourceParams, response) {
|
|
|
1267
1267
|
deepFreeze(snapshot.data);
|
|
1268
1268
|
return snapshot;
|
|
1269
1269
|
}
|
|
1270
|
-
function createResourceRequest$
|
|
1270
|
+
function createResourceRequest$o(config) {
|
|
1271
1271
|
const headers = {};
|
|
1272
1272
|
return {
|
|
1273
1273
|
baseUri: '/services/data/v66.0',
|
|
@@ -1281,13 +1281,13 @@ function createResourceRequest$n(config) {
|
|
|
1281
1281
|
};
|
|
1282
1282
|
}
|
|
1283
1283
|
|
|
1284
|
-
const adapterName$
|
|
1284
|
+
const adapterName$o = 'createLearnings';
|
|
1285
1285
|
const createLearnings_ConfigPropertyMetadata = [
|
|
1286
1286
|
generateParamConfigMetadata('learnings', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
1287
1287
|
];
|
|
1288
|
-
const createLearnings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1289
|
-
const createResourceParams$
|
|
1290
|
-
function typeCheckConfig$
|
|
1288
|
+
const createLearnings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, createLearnings_ConfigPropertyMetadata);
|
|
1289
|
+
const createResourceParams$o = /*#__PURE__*/ createResourceParams$q(createLearnings_ConfigPropertyMetadata);
|
|
1290
|
+
function typeCheckConfig$o(untrustedConfig) {
|
|
1291
1291
|
const config = {};
|
|
1292
1292
|
const untrustedConfig_learnings = untrustedConfig.learnings;
|
|
1293
1293
|
if (ArrayIsArray$1(untrustedConfig_learnings)) {
|
|
@@ -1300,30 +1300,30 @@ function typeCheckConfig$n(untrustedConfig) {
|
|
|
1300
1300
|
}
|
|
1301
1301
|
return config;
|
|
1302
1302
|
}
|
|
1303
|
-
function validateAdapterConfig$
|
|
1303
|
+
function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
|
|
1304
1304
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1305
1305
|
return null;
|
|
1306
1306
|
}
|
|
1307
1307
|
if (process.env.NODE_ENV !== 'production') {
|
|
1308
1308
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1309
1309
|
}
|
|
1310
|
-
const config = typeCheckConfig$
|
|
1310
|
+
const config = typeCheckConfig$o(untrustedConfig);
|
|
1311
1311
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1312
1312
|
return null;
|
|
1313
1313
|
}
|
|
1314
1314
|
return config;
|
|
1315
1315
|
}
|
|
1316
|
-
function buildNetworkSnapshot$
|
|
1317
|
-
const resourceParams = createResourceParams$
|
|
1318
|
-
const request = createResourceRequest$
|
|
1316
|
+
function buildNetworkSnapshot$o(luvio, config, options) {
|
|
1317
|
+
const resourceParams = createResourceParams$o(config);
|
|
1318
|
+
const request = createResourceRequest$o(resourceParams);
|
|
1319
1319
|
return luvio.dispatchResourceRequest(request, options)
|
|
1320
1320
|
.then((response) => {
|
|
1321
1321
|
return luvio.handleSuccessResponse(() => {
|
|
1322
|
-
const snapshot = ingestSuccess$
|
|
1322
|
+
const snapshot = ingestSuccess$o(luvio, resourceParams, response);
|
|
1323
1323
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1324
1324
|
}, () => {
|
|
1325
1325
|
const cache = new StoreKeyMap();
|
|
1326
|
-
getResponseCacheKeys$
|
|
1326
|
+
getResponseCacheKeys$o(cache, luvio, resourceParams, response.body);
|
|
1327
1327
|
return cache;
|
|
1328
1328
|
});
|
|
1329
1329
|
}, (response) => {
|
|
@@ -1333,28 +1333,28 @@ function buildNetworkSnapshot$n(luvio, config, options) {
|
|
|
1333
1333
|
}
|
|
1334
1334
|
const createLearningsAdapterFactory = (luvio) => {
|
|
1335
1335
|
return function createLearnings(untrustedConfig) {
|
|
1336
|
-
const config = validateAdapterConfig$
|
|
1336
|
+
const config = validateAdapterConfig$o(untrustedConfig, createLearnings_ConfigPropertyNames);
|
|
1337
1337
|
// Invalid or incomplete config
|
|
1338
1338
|
if (config === null) {
|
|
1339
1339
|
throw new Error('Invalid config for "createLearnings"');
|
|
1340
1340
|
}
|
|
1341
|
-
return buildNetworkSnapshot$
|
|
1341
|
+
return buildNetworkSnapshot$o(luvio, config);
|
|
1342
1342
|
};
|
|
1343
1343
|
};
|
|
1344
1344
|
|
|
1345
|
-
function select$
|
|
1346
|
-
return select
|
|
1345
|
+
function select$Z(luvio, params) {
|
|
1346
|
+
return select$$();
|
|
1347
1347
|
}
|
|
1348
|
-
function getResponseCacheKeys$
|
|
1349
|
-
getTypeCacheKeys$
|
|
1348
|
+
function getResponseCacheKeys$n(storeKeyMap, luvio, resourceParams, response) {
|
|
1349
|
+
getTypeCacheKeys$m(storeKeyMap, luvio, response);
|
|
1350
1350
|
}
|
|
1351
|
-
function ingestSuccess$
|
|
1351
|
+
function ingestSuccess$n(luvio, resourceParams, response) {
|
|
1352
1352
|
const { body } = response;
|
|
1353
1353
|
const key = keyBuilderFromType$5(luvio, body);
|
|
1354
|
-
luvio.storeIngest(key, ingest$
|
|
1354
|
+
luvio.storeIngest(key, ingest$m, body);
|
|
1355
1355
|
const snapshot = luvio.storeLookup({
|
|
1356
1356
|
recordId: key,
|
|
1357
|
-
node: select$
|
|
1357
|
+
node: select$Z(),
|
|
1358
1358
|
variables: {},
|
|
1359
1359
|
});
|
|
1360
1360
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1365,7 +1365,7 @@ function ingestSuccess$m(luvio, resourceParams, response) {
|
|
|
1365
1365
|
deepFreeze(snapshot.data);
|
|
1366
1366
|
return snapshot;
|
|
1367
1367
|
}
|
|
1368
|
-
function createResourceRequest$
|
|
1368
|
+
function createResourceRequest$n(config) {
|
|
1369
1369
|
const headers = {};
|
|
1370
1370
|
return {
|
|
1371
1371
|
baseUri: '/services/data/v66.0',
|
|
@@ -1379,13 +1379,13 @@ function createResourceRequest$m(config) {
|
|
|
1379
1379
|
};
|
|
1380
1380
|
}
|
|
1381
1381
|
|
|
1382
|
-
const adapterName$
|
|
1382
|
+
const adapterName$n = 'updateLearnings';
|
|
1383
1383
|
const updateLearnings_ConfigPropertyMetadata = [
|
|
1384
1384
|
generateParamConfigMetadata('learnings', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
1385
1385
|
];
|
|
1386
|
-
const updateLearnings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1387
|
-
const createResourceParams$
|
|
1388
|
-
function typeCheckConfig$
|
|
1386
|
+
const updateLearnings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, updateLearnings_ConfigPropertyMetadata);
|
|
1387
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$q(updateLearnings_ConfigPropertyMetadata);
|
|
1388
|
+
function typeCheckConfig$n(untrustedConfig) {
|
|
1389
1389
|
const config = {};
|
|
1390
1390
|
const untrustedConfig_learnings = untrustedConfig.learnings;
|
|
1391
1391
|
if (ArrayIsArray$1(untrustedConfig_learnings)) {
|
|
@@ -1398,30 +1398,30 @@ function typeCheckConfig$m(untrustedConfig) {
|
|
|
1398
1398
|
}
|
|
1399
1399
|
return config;
|
|
1400
1400
|
}
|
|
1401
|
-
function validateAdapterConfig$
|
|
1401
|
+
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
1402
1402
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1403
1403
|
return null;
|
|
1404
1404
|
}
|
|
1405
1405
|
if (process.env.NODE_ENV !== 'production') {
|
|
1406
1406
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1407
1407
|
}
|
|
1408
|
-
const config = typeCheckConfig$
|
|
1408
|
+
const config = typeCheckConfig$n(untrustedConfig);
|
|
1409
1409
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1410
1410
|
return null;
|
|
1411
1411
|
}
|
|
1412
1412
|
return config;
|
|
1413
1413
|
}
|
|
1414
|
-
function buildNetworkSnapshot$
|
|
1415
|
-
const resourceParams = createResourceParams$
|
|
1416
|
-
const request = createResourceRequest$
|
|
1414
|
+
function buildNetworkSnapshot$n(luvio, config, options) {
|
|
1415
|
+
const resourceParams = createResourceParams$n(config);
|
|
1416
|
+
const request = createResourceRequest$n(resourceParams);
|
|
1417
1417
|
return luvio.dispatchResourceRequest(request, options)
|
|
1418
1418
|
.then((response) => {
|
|
1419
1419
|
return luvio.handleSuccessResponse(() => {
|
|
1420
|
-
const snapshot = ingestSuccess$
|
|
1420
|
+
const snapshot = ingestSuccess$n(luvio, resourceParams, response);
|
|
1421
1421
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1422
1422
|
}, () => {
|
|
1423
1423
|
const cache = new StoreKeyMap();
|
|
1424
|
-
getResponseCacheKeys$
|
|
1424
|
+
getResponseCacheKeys$n(cache, luvio, resourceParams, response.body);
|
|
1425
1425
|
return cache;
|
|
1426
1426
|
});
|
|
1427
1427
|
}, (response) => {
|
|
@@ -1431,17 +1431,17 @@ function buildNetworkSnapshot$m(luvio, config, options) {
|
|
|
1431
1431
|
}
|
|
1432
1432
|
const updateLearningsAdapterFactory = (luvio) => {
|
|
1433
1433
|
return function updateLearnings(untrustedConfig) {
|
|
1434
|
-
const config = validateAdapterConfig$
|
|
1434
|
+
const config = validateAdapterConfig$n(untrustedConfig, updateLearnings_ConfigPropertyNames);
|
|
1435
1435
|
// Invalid or incomplete config
|
|
1436
1436
|
if (config === null) {
|
|
1437
1437
|
throw new Error('Invalid config for "updateLearnings"');
|
|
1438
1438
|
}
|
|
1439
|
-
return buildNetworkSnapshot$
|
|
1439
|
+
return buildNetworkSnapshot$n(luvio, config);
|
|
1440
1440
|
};
|
|
1441
1441
|
};
|
|
1442
1442
|
|
|
1443
|
-
const VERSION$
|
|
1444
|
-
function validate$
|
|
1443
|
+
const VERSION$B = "25644bb9c14397ee2eee2a59a6de4b8c";
|
|
1444
|
+
function validate$18(obj, path = 'Applicant') {
|
|
1445
1445
|
const v_error = (() => {
|
|
1446
1446
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1447
1447
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1470,10 +1470,10 @@ function validate$16(obj, path = 'Applicant') {
|
|
|
1470
1470
|
})();
|
|
1471
1471
|
return v_error === undefined ? null : v_error;
|
|
1472
1472
|
}
|
|
1473
|
-
const select$
|
|
1473
|
+
const select$Y = function ApplicantSelect() {
|
|
1474
1474
|
return {
|
|
1475
1475
|
kind: 'Fragment',
|
|
1476
|
-
version: VERSION$
|
|
1476
|
+
version: VERSION$B,
|
|
1477
1477
|
private: [],
|
|
1478
1478
|
selections: [
|
|
1479
1479
|
{
|
|
@@ -1494,7 +1494,7 @@ const select$W = function ApplicantSelect() {
|
|
|
1494
1494
|
]
|
|
1495
1495
|
};
|
|
1496
1496
|
};
|
|
1497
|
-
function equals$
|
|
1497
|
+
function equals$B(existing, incoming) {
|
|
1498
1498
|
const existing_contactId = existing.contactId;
|
|
1499
1499
|
const incoming_contactId = incoming.contactId;
|
|
1500
1500
|
// if at least one of these optionals is defined
|
|
@@ -1537,7 +1537,7 @@ function equals$A(existing, incoming) {
|
|
|
1537
1537
|
return true;
|
|
1538
1538
|
}
|
|
1539
1539
|
|
|
1540
|
-
function validate$
|
|
1540
|
+
function validate$17(obj, path = 'Submitter') {
|
|
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 + '")');
|
|
@@ -1560,7 +1560,7 @@ function validate$15(obj, path = 'Submitter') {
|
|
|
1560
1560
|
return v_error === undefined ? null : v_error;
|
|
1561
1561
|
}
|
|
1562
1562
|
|
|
1563
|
-
function validate$
|
|
1563
|
+
function validate$16(obj, path = 'Application') {
|
|
1564
1564
|
const v_error = (() => {
|
|
1565
1565
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1566
1566
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1575,7 +1575,7 @@ function validate$14(obj, path = 'Application') {
|
|
|
1575
1575
|
if (obj.applicant !== undefined) {
|
|
1576
1576
|
const obj_applicant = obj.applicant;
|
|
1577
1577
|
const path_applicant = path + '.applicant';
|
|
1578
|
-
const referencepath_applicantValidationError = validate$
|
|
1578
|
+
const referencepath_applicantValidationError = validate$18(obj_applicant, path_applicant);
|
|
1579
1579
|
if (referencepath_applicantValidationError !== null) {
|
|
1580
1580
|
let message = 'Object doesn\'t match Applicant (at "' + path_applicant + '")\n';
|
|
1581
1581
|
message += referencepath_applicantValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1641,7 +1641,7 @@ function validate$14(obj, path = 'Application') {
|
|
|
1641
1641
|
if (obj.submitter !== undefined) {
|
|
1642
1642
|
const obj_submitter = obj.submitter;
|
|
1643
1643
|
const path_submitter = path + '.submitter';
|
|
1644
|
-
const referencepath_submitterValidationError = validate$
|
|
1644
|
+
const referencepath_submitterValidationError = validate$17(obj_submitter, path_submitter);
|
|
1645
1645
|
if (referencepath_submitterValidationError !== null) {
|
|
1646
1646
|
let message = 'Object doesn\'t match Submitter (at "' + path_submitter + '")\n';
|
|
1647
1647
|
message += referencepath_submitterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1666,7 +1666,7 @@ function validate$14(obj, path = 'Application') {
|
|
|
1666
1666
|
return v_error === undefined ? null : v_error;
|
|
1667
1667
|
}
|
|
1668
1668
|
|
|
1669
|
-
function validate$
|
|
1669
|
+
function validate$15(obj, path = 'GetApplicationsResult') {
|
|
1670
1670
|
const v_error = (() => {
|
|
1671
1671
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1672
1672
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1680,7 +1680,7 @@ function validate$13(obj, path = 'GetApplicationsResult') {
|
|
|
1680
1680
|
for (let i = 0; i < obj_applications.length; i++) {
|
|
1681
1681
|
const obj_applications_item = obj_applications[i];
|
|
1682
1682
|
const path_applications_item = path_applications + '[' + i + ']';
|
|
1683
|
-
const referencepath_applications_itemValidationError = validate$
|
|
1683
|
+
const referencepath_applications_itemValidationError = validate$16(obj_applications_item, path_applications_item);
|
|
1684
1684
|
if (referencepath_applications_itemValidationError !== null) {
|
|
1685
1685
|
let message = 'Object doesn\'t match Application (at "' + path_applications_item + '")\n';
|
|
1686
1686
|
message += referencepath_applications_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1693,8 +1693,8 @@ function validate$13(obj, path = 'GetApplicationsResult') {
|
|
|
1693
1693
|
}
|
|
1694
1694
|
|
|
1695
1695
|
const TTL$7 = 100;
|
|
1696
|
-
const VERSION$
|
|
1697
|
-
function validate$
|
|
1696
|
+
const VERSION$A = "1947ca622740f63d1812cfa7d4dd5989";
|
|
1697
|
+
function validate$14(obj, path = 'ApplicationsOutputRepresentation') {
|
|
1698
1698
|
const v_error = (() => {
|
|
1699
1699
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1700
1700
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1702,7 +1702,7 @@ function validate$12(obj, path = 'ApplicationsOutputRepresentation') {
|
|
|
1702
1702
|
if (obj.result !== undefined) {
|
|
1703
1703
|
const obj_result = obj.result;
|
|
1704
1704
|
const path_result = path + '.result';
|
|
1705
|
-
const referencepath_resultValidationError = validate$
|
|
1705
|
+
const referencepath_resultValidationError = validate$15(obj_result, path_result);
|
|
1706
1706
|
if (referencepath_resultValidationError !== null) {
|
|
1707
1707
|
let message = 'Object doesn\'t match GetApplicationsResult (at "' + path_result + '")\n';
|
|
1708
1708
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1712,62 +1712,62 @@ function validate$12(obj, path = 'ApplicationsOutputRepresentation') {
|
|
|
1712
1712
|
})();
|
|
1713
1713
|
return v_error === undefined ? null : v_error;
|
|
1714
1714
|
}
|
|
1715
|
-
const RepresentationType$
|
|
1716
|
-
function normalize$
|
|
1715
|
+
const RepresentationType$l = 'ApplicationsOutputRepresentation';
|
|
1716
|
+
function normalize$l(input, existing, path, luvio, store, timestamp) {
|
|
1717
1717
|
return input;
|
|
1718
1718
|
}
|
|
1719
|
-
const select$
|
|
1719
|
+
const select$X = function ApplicationsOutputRepresentationSelect() {
|
|
1720
1720
|
return {
|
|
1721
1721
|
kind: 'Fragment',
|
|
1722
|
-
version: VERSION$
|
|
1722
|
+
version: VERSION$A,
|
|
1723
1723
|
private: [],
|
|
1724
1724
|
opaque: true
|
|
1725
1725
|
};
|
|
1726
1726
|
};
|
|
1727
|
-
function equals$
|
|
1727
|
+
function equals$A(existing, incoming) {
|
|
1728
1728
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1729
1729
|
return false;
|
|
1730
1730
|
}
|
|
1731
1731
|
return true;
|
|
1732
1732
|
}
|
|
1733
|
-
const ingest$
|
|
1733
|
+
const ingest$l = function ApplicationsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1734
1734
|
if (process.env.NODE_ENV !== 'production') {
|
|
1735
|
-
const validateError = validate$
|
|
1735
|
+
const validateError = validate$14(input);
|
|
1736
1736
|
if (validateError !== null) {
|
|
1737
1737
|
throw validateError;
|
|
1738
1738
|
}
|
|
1739
1739
|
}
|
|
1740
1740
|
const key = path.fullPath;
|
|
1741
1741
|
const ttlToUse = TTL$7;
|
|
1742
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1742
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$l, "education", VERSION$A, RepresentationType$l, equals$A);
|
|
1743
1743
|
return createLink(key);
|
|
1744
1744
|
};
|
|
1745
|
-
function getTypeCacheKeys$
|
|
1745
|
+
function getTypeCacheKeys$l(rootKeySet, luvio, input, fullPathFactory) {
|
|
1746
1746
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1747
1747
|
const rootKey = fullPathFactory();
|
|
1748
1748
|
rootKeySet.set(rootKey, {
|
|
1749
1749
|
namespace: keyPrefix,
|
|
1750
|
-
representationName: RepresentationType$
|
|
1750
|
+
representationName: RepresentationType$l,
|
|
1751
1751
|
mergeable: false
|
|
1752
1752
|
});
|
|
1753
1753
|
}
|
|
1754
1754
|
|
|
1755
|
-
function select$
|
|
1756
|
-
return select$
|
|
1755
|
+
function select$W(luvio, params) {
|
|
1756
|
+
return select$X();
|
|
1757
1757
|
}
|
|
1758
|
-
function keyBuilder$
|
|
1758
|
+
function keyBuilder$C(luvio, params) {
|
|
1759
1759
|
return keyPrefix + '::ApplicationsOutputRepresentation:(' + ')';
|
|
1760
1760
|
}
|
|
1761
|
-
function getResponseCacheKeys$
|
|
1762
|
-
getTypeCacheKeys$
|
|
1761
|
+
function getResponseCacheKeys$m(storeKeyMap, luvio, resourceParams, response) {
|
|
1762
|
+
getTypeCacheKeys$l(storeKeyMap, luvio, response, () => keyBuilder$C());
|
|
1763
1763
|
}
|
|
1764
|
-
function ingestSuccess$
|
|
1764
|
+
function ingestSuccess$m(luvio, resourceParams, response, snapshotRefresh) {
|
|
1765
1765
|
const { body } = response;
|
|
1766
|
-
const key = keyBuilder$
|
|
1767
|
-
luvio.storeIngest(key, ingest$
|
|
1766
|
+
const key = keyBuilder$C();
|
|
1767
|
+
luvio.storeIngest(key, ingest$l, body);
|
|
1768
1768
|
const snapshot = luvio.storeLookup({
|
|
1769
1769
|
recordId: key,
|
|
1770
|
-
node: select$
|
|
1770
|
+
node: select$W(),
|
|
1771
1771
|
variables: {},
|
|
1772
1772
|
}, snapshotRefresh);
|
|
1773
1773
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1778,19 +1778,19 @@ function ingestSuccess$l(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1778
1778
|
deepFreeze(snapshot.data);
|
|
1779
1779
|
return snapshot;
|
|
1780
1780
|
}
|
|
1781
|
-
function ingestError$
|
|
1782
|
-
const key = keyBuilder$
|
|
1781
|
+
function ingestError$g(luvio, params, error, snapshotRefresh) {
|
|
1782
|
+
const key = keyBuilder$C();
|
|
1783
1783
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1784
1784
|
const storeMetadataParams = {
|
|
1785
1785
|
ttl: TTL$7,
|
|
1786
1786
|
namespace: keyPrefix,
|
|
1787
|
-
version: VERSION$
|
|
1788
|
-
representationName: RepresentationType$
|
|
1787
|
+
version: VERSION$A,
|
|
1788
|
+
representationName: RepresentationType$l
|
|
1789
1789
|
};
|
|
1790
1790
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1791
1791
|
return errorSnapshot;
|
|
1792
1792
|
}
|
|
1793
|
-
function createResourceRequest$
|
|
1793
|
+
function createResourceRequest$m(config) {
|
|
1794
1794
|
const headers = {};
|
|
1795
1795
|
return {
|
|
1796
1796
|
baseUri: '/services/data/v66.0',
|
|
@@ -1804,90 +1804,90 @@ function createResourceRequest$l(config) {
|
|
|
1804
1804
|
};
|
|
1805
1805
|
}
|
|
1806
1806
|
|
|
1807
|
-
const adapterName$
|
|
1807
|
+
const adapterName$m = 'getApplications';
|
|
1808
1808
|
const getApplications_ConfigPropertyMetadata = [];
|
|
1809
|
-
const getApplications_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1810
|
-
const createResourceParams$
|
|
1811
|
-
function keyBuilder$
|
|
1812
|
-
createResourceParams$
|
|
1813
|
-
return keyBuilder$
|
|
1809
|
+
const getApplications_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, getApplications_ConfigPropertyMetadata);
|
|
1810
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$q(getApplications_ConfigPropertyMetadata);
|
|
1811
|
+
function keyBuilder$B(luvio, config) {
|
|
1812
|
+
createResourceParams$m(config);
|
|
1813
|
+
return keyBuilder$C();
|
|
1814
1814
|
}
|
|
1815
|
-
function typeCheckConfig$
|
|
1815
|
+
function typeCheckConfig$m(untrustedConfig) {
|
|
1816
1816
|
const config = {};
|
|
1817
1817
|
return config;
|
|
1818
1818
|
}
|
|
1819
|
-
function validateAdapterConfig$
|
|
1819
|
+
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
1820
1820
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1821
1821
|
return null;
|
|
1822
1822
|
}
|
|
1823
1823
|
if (process.env.NODE_ENV !== 'production') {
|
|
1824
1824
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1825
1825
|
}
|
|
1826
|
-
const config = typeCheckConfig$
|
|
1826
|
+
const config = typeCheckConfig$m();
|
|
1827
1827
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1828
1828
|
return null;
|
|
1829
1829
|
}
|
|
1830
1830
|
return config;
|
|
1831
1831
|
}
|
|
1832
|
-
function adapterFragment$
|
|
1833
|
-
createResourceParams$
|
|
1834
|
-
return select$
|
|
1832
|
+
function adapterFragment$g(luvio, config) {
|
|
1833
|
+
createResourceParams$m(config);
|
|
1834
|
+
return select$W();
|
|
1835
1835
|
}
|
|
1836
|
-
function onFetchResponseSuccess$
|
|
1837
|
-
const snapshot = ingestSuccess$
|
|
1836
|
+
function onFetchResponseSuccess$g(luvio, config, resourceParams, response) {
|
|
1837
|
+
const snapshot = ingestSuccess$m(luvio, resourceParams, response, {
|
|
1838
1838
|
config,
|
|
1839
|
-
resolve: () => buildNetworkSnapshot$
|
|
1839
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
1840
1840
|
});
|
|
1841
1841
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1842
1842
|
}
|
|
1843
|
-
function onFetchResponseError$
|
|
1844
|
-
const snapshot = ingestError$
|
|
1843
|
+
function onFetchResponseError$g(luvio, config, resourceParams, response) {
|
|
1844
|
+
const snapshot = ingestError$g(luvio, resourceParams, response, {
|
|
1845
1845
|
config,
|
|
1846
|
-
resolve: () => buildNetworkSnapshot$
|
|
1846
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
1847
1847
|
});
|
|
1848
1848
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1849
1849
|
}
|
|
1850
|
-
function buildNetworkSnapshot$
|
|
1851
|
-
const resourceParams = createResourceParams$
|
|
1852
|
-
const request = createResourceRequest$
|
|
1850
|
+
function buildNetworkSnapshot$m(luvio, config, options) {
|
|
1851
|
+
const resourceParams = createResourceParams$m(config);
|
|
1852
|
+
const request = createResourceRequest$m();
|
|
1853
1853
|
return luvio.dispatchResourceRequest(request, options)
|
|
1854
1854
|
.then((response) => {
|
|
1855
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1855
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$g(luvio, config, resourceParams, response), () => {
|
|
1856
1856
|
const cache = new StoreKeyMap();
|
|
1857
|
-
getResponseCacheKeys$
|
|
1857
|
+
getResponseCacheKeys$m(cache, luvio, resourceParams, response.body);
|
|
1858
1858
|
return cache;
|
|
1859
1859
|
});
|
|
1860
1860
|
}, (response) => {
|
|
1861
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1861
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$g(luvio, config, resourceParams, response));
|
|
1862
1862
|
});
|
|
1863
1863
|
}
|
|
1864
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1865
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1864
|
+
function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
|
|
1865
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$m, undefined, false);
|
|
1866
1866
|
}
|
|
1867
|
-
function buildCachedSnapshotCachePolicy$
|
|
1867
|
+
function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
1868
1868
|
const { luvio, config } = context;
|
|
1869
1869
|
const selector = {
|
|
1870
|
-
recordId: keyBuilder$
|
|
1871
|
-
node: adapterFragment$
|
|
1870
|
+
recordId: keyBuilder$B(luvio, config),
|
|
1871
|
+
node: adapterFragment$g(luvio, config),
|
|
1872
1872
|
variables: {},
|
|
1873
1873
|
};
|
|
1874
1874
|
const cacheSnapshot = storeLookup(selector, {
|
|
1875
1875
|
config,
|
|
1876
|
-
resolve: () => buildNetworkSnapshot$
|
|
1876
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
1877
1877
|
});
|
|
1878
1878
|
return cacheSnapshot;
|
|
1879
1879
|
}
|
|
1880
1880
|
const getApplicationsAdapterFactory = (luvio) => function education__getApplications(untrustedConfig, requestContext) {
|
|
1881
|
-
const config = validateAdapterConfig$
|
|
1881
|
+
const config = validateAdapterConfig$m(untrustedConfig, getApplications_ConfigPropertyNames);
|
|
1882
1882
|
// Invalid or incomplete config
|
|
1883
1883
|
if (config === null) {
|
|
1884
1884
|
return null;
|
|
1885
1885
|
}
|
|
1886
1886
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1887
|
-
buildCachedSnapshotCachePolicy$
|
|
1887
|
+
buildCachedSnapshotCachePolicy$g, buildNetworkSnapshotCachePolicy$g);
|
|
1888
1888
|
};
|
|
1889
1889
|
|
|
1890
|
-
function validate$
|
|
1890
|
+
function validate$13(obj, path = 'ApplicationRenderMethod') {
|
|
1891
1891
|
const v_error = (() => {
|
|
1892
1892
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1893
1893
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1924,7 +1924,7 @@ function validate$11(obj, path = 'ApplicationRenderMethod') {
|
|
|
1924
1924
|
return v_error === undefined ? null : v_error;
|
|
1925
1925
|
}
|
|
1926
1926
|
|
|
1927
|
-
function validate$
|
|
1927
|
+
function validate$12(obj, path = 'IndividualApplicationTask') {
|
|
1928
1928
|
const v_error = (() => {
|
|
1929
1929
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1930
1930
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1938,7 +1938,7 @@ function validate$10(obj, path = 'IndividualApplicationTask') {
|
|
|
1938
1938
|
for (let i = 0; i < obj_applicationRenderMethods.length; i++) {
|
|
1939
1939
|
const obj_applicationRenderMethods_item = obj_applicationRenderMethods[i];
|
|
1940
1940
|
const path_applicationRenderMethods_item = path_applicationRenderMethods + '[' + i + ']';
|
|
1941
|
-
const referencepath_applicationRenderMethods_itemValidationError = validate$
|
|
1941
|
+
const referencepath_applicationRenderMethods_itemValidationError = validate$13(obj_applicationRenderMethods_item, path_applicationRenderMethods_item);
|
|
1942
1942
|
if (referencepath_applicationRenderMethods_itemValidationError !== null) {
|
|
1943
1943
|
let message = 'Object doesn\'t match ApplicationRenderMethod (at "' + path_applicationRenderMethods_item + '")\n';
|
|
1944
1944
|
message += referencepath_applicationRenderMethods_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2027,7 +2027,7 @@ function validate$10(obj, path = 'IndividualApplicationTask') {
|
|
|
2027
2027
|
return v_error === undefined ? null : v_error;
|
|
2028
2028
|
}
|
|
2029
2029
|
|
|
2030
|
-
function validate
|
|
2030
|
+
function validate$11(obj, path = 'GetApplicationDetailsResult') {
|
|
2031
2031
|
const v_error = (() => {
|
|
2032
2032
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2033
2033
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2042,7 +2042,7 @@ function validate$$(obj, path = 'GetApplicationDetailsResult') {
|
|
|
2042
2042
|
if (obj.applicant !== undefined) {
|
|
2043
2043
|
const obj_applicant = obj.applicant;
|
|
2044
2044
|
const path_applicant = path + '.applicant';
|
|
2045
|
-
const referencepath_applicantValidationError = validate$
|
|
2045
|
+
const referencepath_applicantValidationError = validate$18(obj_applicant, path_applicant);
|
|
2046
2046
|
if (referencepath_applicantValidationError !== null) {
|
|
2047
2047
|
let message = 'Object doesn\'t match Applicant (at "' + path_applicant + '")\n';
|
|
2048
2048
|
message += referencepath_applicantValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2086,7 +2086,7 @@ function validate$$(obj, path = 'GetApplicationDetailsResult') {
|
|
|
2086
2086
|
for (let i = 0; i < obj_individualApplicationTasks.length; i++) {
|
|
2087
2087
|
const obj_individualApplicationTasks_item = obj_individualApplicationTasks[i];
|
|
2088
2088
|
const path_individualApplicationTasks_item = path_individualApplicationTasks + '[' + i + ']';
|
|
2089
|
-
const referencepath_individualApplicationTasks_itemValidationError = validate$
|
|
2089
|
+
const referencepath_individualApplicationTasks_itemValidationError = validate$12(obj_individualApplicationTasks_item, path_individualApplicationTasks_item);
|
|
2090
2090
|
if (referencepath_individualApplicationTasks_itemValidationError !== null) {
|
|
2091
2091
|
let message = 'Object doesn\'t match IndividualApplicationTask (at "' + path_individualApplicationTasks_item + '")\n';
|
|
2092
2092
|
message += referencepath_individualApplicationTasks_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2132,7 +2132,7 @@ function validate$$(obj, path = 'GetApplicationDetailsResult') {
|
|
|
2132
2132
|
if (obj.submitter !== undefined) {
|
|
2133
2133
|
const obj_submitter = obj.submitter;
|
|
2134
2134
|
const path_submitter = path + '.submitter';
|
|
2135
|
-
const referencepath_submitterValidationError = validate$
|
|
2135
|
+
const referencepath_submitterValidationError = validate$17(obj_submitter, path_submitter);
|
|
2136
2136
|
if (referencepath_submitterValidationError !== null) {
|
|
2137
2137
|
let message = 'Object doesn\'t match Submitter (at "' + path_submitter + '")\n';
|
|
2138
2138
|
message += referencepath_submitterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2158,8 +2158,8 @@ function validate$$(obj, path = 'GetApplicationDetailsResult') {
|
|
|
2158
2158
|
}
|
|
2159
2159
|
|
|
2160
2160
|
const TTL$6 = 100;
|
|
2161
|
-
const VERSION$
|
|
2162
|
-
function validate$
|
|
2161
|
+
const VERSION$z = "20a50ee9f09ba0dc956412cc14d5b6d5";
|
|
2162
|
+
function validate$10(obj, path = 'ApplicationDetailsOutputRepresentation') {
|
|
2163
2163
|
const v_error = (() => {
|
|
2164
2164
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2165
2165
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2167,7 +2167,7 @@ function validate$_(obj, path = 'ApplicationDetailsOutputRepresentation') {
|
|
|
2167
2167
|
if (obj.result !== undefined) {
|
|
2168
2168
|
const obj_result = obj.result;
|
|
2169
2169
|
const path_result = path + '.result';
|
|
2170
|
-
const referencepath_resultValidationError = validate
|
|
2170
|
+
const referencepath_resultValidationError = validate$11(obj_result, path_result);
|
|
2171
2171
|
if (referencepath_resultValidationError !== null) {
|
|
2172
2172
|
let message = 'Object doesn\'t match GetApplicationDetailsResult (at "' + path_result + '")\n';
|
|
2173
2173
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2177,62 +2177,62 @@ function validate$_(obj, path = 'ApplicationDetailsOutputRepresentation') {
|
|
|
2177
2177
|
})();
|
|
2178
2178
|
return v_error === undefined ? null : v_error;
|
|
2179
2179
|
}
|
|
2180
|
-
const RepresentationType$
|
|
2181
|
-
function normalize$
|
|
2180
|
+
const RepresentationType$k = 'ApplicationDetailsOutputRepresentation';
|
|
2181
|
+
function normalize$k(input, existing, path, luvio, store, timestamp) {
|
|
2182
2182
|
return input;
|
|
2183
2183
|
}
|
|
2184
|
-
const select$
|
|
2184
|
+
const select$V = function ApplicationDetailsOutputRepresentationSelect() {
|
|
2185
2185
|
return {
|
|
2186
2186
|
kind: 'Fragment',
|
|
2187
|
-
version: VERSION$
|
|
2187
|
+
version: VERSION$z,
|
|
2188
2188
|
private: [],
|
|
2189
2189
|
opaque: true
|
|
2190
2190
|
};
|
|
2191
2191
|
};
|
|
2192
|
-
function equals$
|
|
2192
|
+
function equals$z(existing, incoming) {
|
|
2193
2193
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2194
2194
|
return false;
|
|
2195
2195
|
}
|
|
2196
2196
|
return true;
|
|
2197
2197
|
}
|
|
2198
|
-
const ingest$
|
|
2198
|
+
const ingest$k = function ApplicationDetailsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2199
2199
|
if (process.env.NODE_ENV !== 'production') {
|
|
2200
|
-
const validateError = validate$
|
|
2200
|
+
const validateError = validate$10(input);
|
|
2201
2201
|
if (validateError !== null) {
|
|
2202
2202
|
throw validateError;
|
|
2203
2203
|
}
|
|
2204
2204
|
}
|
|
2205
2205
|
const key = path.fullPath;
|
|
2206
2206
|
const ttlToUse = TTL$6;
|
|
2207
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2207
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$k, "education", VERSION$z, RepresentationType$k, equals$z);
|
|
2208
2208
|
return createLink(key);
|
|
2209
2209
|
};
|
|
2210
|
-
function getTypeCacheKeys$
|
|
2210
|
+
function getTypeCacheKeys$k(rootKeySet, luvio, input, fullPathFactory) {
|
|
2211
2211
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2212
2212
|
const rootKey = fullPathFactory();
|
|
2213
2213
|
rootKeySet.set(rootKey, {
|
|
2214
2214
|
namespace: keyPrefix,
|
|
2215
|
-
representationName: RepresentationType$
|
|
2215
|
+
representationName: RepresentationType$k,
|
|
2216
2216
|
mergeable: false
|
|
2217
2217
|
});
|
|
2218
2218
|
}
|
|
2219
2219
|
|
|
2220
|
-
function select$
|
|
2221
|
-
return select$
|
|
2220
|
+
function select$U(luvio, params) {
|
|
2221
|
+
return select$V();
|
|
2222
2222
|
}
|
|
2223
|
-
function keyBuilder$
|
|
2223
|
+
function keyBuilder$A(luvio, params) {
|
|
2224
2224
|
return keyPrefix + '::ApplicationDetailsOutputRepresentation:(' + 'preliminaryApplicationRefId:' + params.urlParams.preliminaryApplicationRefId + ')';
|
|
2225
2225
|
}
|
|
2226
|
-
function getResponseCacheKeys$
|
|
2227
|
-
getTypeCacheKeys$
|
|
2226
|
+
function getResponseCacheKeys$l(storeKeyMap, luvio, resourceParams, response) {
|
|
2227
|
+
getTypeCacheKeys$k(storeKeyMap, luvio, response, () => keyBuilder$A(luvio, resourceParams));
|
|
2228
2228
|
}
|
|
2229
|
-
function ingestSuccess$
|
|
2229
|
+
function ingestSuccess$l(luvio, resourceParams, response, snapshotRefresh) {
|
|
2230
2230
|
const { body } = response;
|
|
2231
|
-
const key = keyBuilder$
|
|
2232
|
-
luvio.storeIngest(key, ingest$
|
|
2231
|
+
const key = keyBuilder$A(luvio, resourceParams);
|
|
2232
|
+
luvio.storeIngest(key, ingest$k, body);
|
|
2233
2233
|
const snapshot = luvio.storeLookup({
|
|
2234
2234
|
recordId: key,
|
|
2235
|
-
node: select$
|
|
2235
|
+
node: select$U(),
|
|
2236
2236
|
variables: {},
|
|
2237
2237
|
}, snapshotRefresh);
|
|
2238
2238
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2243,19 +2243,19 @@ function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2243
2243
|
deepFreeze(snapshot.data);
|
|
2244
2244
|
return snapshot;
|
|
2245
2245
|
}
|
|
2246
|
-
function ingestError$
|
|
2247
|
-
const key = keyBuilder$
|
|
2246
|
+
function ingestError$f(luvio, params, error, snapshotRefresh) {
|
|
2247
|
+
const key = keyBuilder$A(luvio, params);
|
|
2248
2248
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2249
2249
|
const storeMetadataParams = {
|
|
2250
2250
|
ttl: TTL$6,
|
|
2251
2251
|
namespace: keyPrefix,
|
|
2252
|
-
version: VERSION$
|
|
2253
|
-
representationName: RepresentationType$
|
|
2252
|
+
version: VERSION$z,
|
|
2253
|
+
representationName: RepresentationType$k
|
|
2254
2254
|
};
|
|
2255
2255
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2256
2256
|
return errorSnapshot;
|
|
2257
2257
|
}
|
|
2258
|
-
function createResourceRequest$
|
|
2258
|
+
function createResourceRequest$l(config) {
|
|
2259
2259
|
const headers = {};
|
|
2260
2260
|
return {
|
|
2261
2261
|
baseUri: '/services/data/v66.0',
|
|
@@ -2269,93 +2269,93 @@ function createResourceRequest$k(config) {
|
|
|
2269
2269
|
};
|
|
2270
2270
|
}
|
|
2271
2271
|
|
|
2272
|
-
const adapterName$
|
|
2272
|
+
const adapterName$l = 'getApplicationDetails';
|
|
2273
2273
|
const getApplicationDetails_ConfigPropertyMetadata = [
|
|
2274
2274
|
generateParamConfigMetadata('preliminaryApplicationRefId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2275
2275
|
];
|
|
2276
|
-
const getApplicationDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2277
|
-
const createResourceParams$
|
|
2278
|
-
function keyBuilder$
|
|
2279
|
-
const resourceParams = createResourceParams$
|
|
2280
|
-
return keyBuilder$
|
|
2276
|
+
const getApplicationDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, getApplicationDetails_ConfigPropertyMetadata);
|
|
2277
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$q(getApplicationDetails_ConfigPropertyMetadata);
|
|
2278
|
+
function keyBuilder$z(luvio, config) {
|
|
2279
|
+
const resourceParams = createResourceParams$l(config);
|
|
2280
|
+
return keyBuilder$A(luvio, resourceParams);
|
|
2281
2281
|
}
|
|
2282
|
-
function typeCheckConfig$
|
|
2282
|
+
function typeCheckConfig$l(untrustedConfig) {
|
|
2283
2283
|
const config = {};
|
|
2284
|
-
typeCheckConfig$
|
|
2284
|
+
typeCheckConfig$q(untrustedConfig, config, getApplicationDetails_ConfigPropertyMetadata);
|
|
2285
2285
|
return config;
|
|
2286
2286
|
}
|
|
2287
|
-
function validateAdapterConfig$
|
|
2287
|
+
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
2288
2288
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2289
2289
|
return null;
|
|
2290
2290
|
}
|
|
2291
2291
|
if (process.env.NODE_ENV !== 'production') {
|
|
2292
2292
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2293
2293
|
}
|
|
2294
|
-
const config = typeCheckConfig$
|
|
2294
|
+
const config = typeCheckConfig$l(untrustedConfig);
|
|
2295
2295
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2296
2296
|
return null;
|
|
2297
2297
|
}
|
|
2298
2298
|
return config;
|
|
2299
2299
|
}
|
|
2300
|
-
function adapterFragment$
|
|
2301
|
-
createResourceParams$
|
|
2302
|
-
return select$
|
|
2300
|
+
function adapterFragment$f(luvio, config) {
|
|
2301
|
+
createResourceParams$l(config);
|
|
2302
|
+
return select$U();
|
|
2303
2303
|
}
|
|
2304
|
-
function onFetchResponseSuccess$
|
|
2305
|
-
const snapshot = ingestSuccess$
|
|
2304
|
+
function onFetchResponseSuccess$f(luvio, config, resourceParams, response) {
|
|
2305
|
+
const snapshot = ingestSuccess$l(luvio, resourceParams, response, {
|
|
2306
2306
|
config,
|
|
2307
|
-
resolve: () => buildNetworkSnapshot$
|
|
2307
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
2308
2308
|
});
|
|
2309
2309
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2310
2310
|
}
|
|
2311
|
-
function onFetchResponseError$
|
|
2312
|
-
const snapshot = ingestError$
|
|
2311
|
+
function onFetchResponseError$f(luvio, config, resourceParams, response) {
|
|
2312
|
+
const snapshot = ingestError$f(luvio, resourceParams, response, {
|
|
2313
2313
|
config,
|
|
2314
|
-
resolve: () => buildNetworkSnapshot$
|
|
2314
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
2315
2315
|
});
|
|
2316
2316
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2317
2317
|
}
|
|
2318
|
-
function buildNetworkSnapshot$
|
|
2319
|
-
const resourceParams = createResourceParams$
|
|
2320
|
-
const request = createResourceRequest$
|
|
2318
|
+
function buildNetworkSnapshot$l(luvio, config, options) {
|
|
2319
|
+
const resourceParams = createResourceParams$l(config);
|
|
2320
|
+
const request = createResourceRequest$l(resourceParams);
|
|
2321
2321
|
return luvio.dispatchResourceRequest(request, options)
|
|
2322
2322
|
.then((response) => {
|
|
2323
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2323
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$f(luvio, config, resourceParams, response), () => {
|
|
2324
2324
|
const cache = new StoreKeyMap();
|
|
2325
|
-
getResponseCacheKeys$
|
|
2325
|
+
getResponseCacheKeys$l(cache, luvio, resourceParams, response.body);
|
|
2326
2326
|
return cache;
|
|
2327
2327
|
});
|
|
2328
2328
|
}, (response) => {
|
|
2329
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2329
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$f(luvio, config, resourceParams, response));
|
|
2330
2330
|
});
|
|
2331
2331
|
}
|
|
2332
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2333
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2332
|
+
function buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext) {
|
|
2333
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$l, undefined, false);
|
|
2334
2334
|
}
|
|
2335
|
-
function buildCachedSnapshotCachePolicy$
|
|
2335
|
+
function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
|
|
2336
2336
|
const { luvio, config } = context;
|
|
2337
2337
|
const selector = {
|
|
2338
|
-
recordId: keyBuilder$
|
|
2339
|
-
node: adapterFragment$
|
|
2338
|
+
recordId: keyBuilder$z(luvio, config),
|
|
2339
|
+
node: adapterFragment$f(luvio, config),
|
|
2340
2340
|
variables: {},
|
|
2341
2341
|
};
|
|
2342
2342
|
const cacheSnapshot = storeLookup(selector, {
|
|
2343
2343
|
config,
|
|
2344
|
-
resolve: () => buildNetworkSnapshot$
|
|
2344
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
2345
2345
|
});
|
|
2346
2346
|
return cacheSnapshot;
|
|
2347
2347
|
}
|
|
2348
2348
|
const getApplicationDetailsAdapterFactory = (luvio) => function education__getApplicationDetails(untrustedConfig, requestContext) {
|
|
2349
|
-
const config = validateAdapterConfig$
|
|
2349
|
+
const config = validateAdapterConfig$l(untrustedConfig, getApplicationDetails_ConfigPropertyNames);
|
|
2350
2350
|
// Invalid or incomplete config
|
|
2351
2351
|
if (config === null) {
|
|
2352
2352
|
return null;
|
|
2353
2353
|
}
|
|
2354
2354
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2355
|
-
buildCachedSnapshotCachePolicy$
|
|
2355
|
+
buildCachedSnapshotCachePolicy$f, buildNetworkSnapshotCachePolicy$f);
|
|
2356
2356
|
};
|
|
2357
2357
|
|
|
2358
|
-
function validate
|
|
2358
|
+
function validate$$(obj, path = 'AvailableTimeSlotsInputRepresentation') {
|
|
2359
2359
|
const v_error = (() => {
|
|
2360
2360
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2361
2361
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2426,8 +2426,8 @@ function validate$Z(obj, path = 'AvailableTimeSlotsInputRepresentation') {
|
|
|
2426
2426
|
return v_error === undefined ? null : v_error;
|
|
2427
2427
|
}
|
|
2428
2428
|
|
|
2429
|
-
const VERSION$
|
|
2430
|
-
function validate$
|
|
2429
|
+
const VERSION$y = "d144e25bec059139dfc7c8e6b35f69e9";
|
|
2430
|
+
function validate$_(obj, path = 'TimeSlot') {
|
|
2431
2431
|
const v_error = (() => {
|
|
2432
2432
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2433
2433
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2470,10 +2470,10 @@ function validate$Y(obj, path = 'TimeSlot') {
|
|
|
2470
2470
|
})();
|
|
2471
2471
|
return v_error === undefined ? null : v_error;
|
|
2472
2472
|
}
|
|
2473
|
-
const select$
|
|
2473
|
+
const select$T = function TimeSlotSelect() {
|
|
2474
2474
|
return {
|
|
2475
2475
|
kind: 'Fragment',
|
|
2476
|
-
version: VERSION$
|
|
2476
|
+
version: VERSION$y,
|
|
2477
2477
|
private: [],
|
|
2478
2478
|
selections: [
|
|
2479
2479
|
{
|
|
@@ -2504,7 +2504,7 @@ const select$R = function TimeSlotSelect() {
|
|
|
2504
2504
|
]
|
|
2505
2505
|
};
|
|
2506
2506
|
};
|
|
2507
|
-
function equals$
|
|
2507
|
+
function equals$y(existing, incoming) {
|
|
2508
2508
|
const existing_endTime = existing.endTime;
|
|
2509
2509
|
const incoming_endTime = incoming.endTime;
|
|
2510
2510
|
// if at least one of these optionals is defined
|
|
@@ -2573,8 +2573,8 @@ function equals$x(existing, incoming) {
|
|
|
2573
2573
|
return true;
|
|
2574
2574
|
}
|
|
2575
2575
|
|
|
2576
|
-
const VERSION$
|
|
2577
|
-
function validate$
|
|
2576
|
+
const VERSION$x = "9c2ef94b89ee532c50c8423528617441";
|
|
2577
|
+
function validate$Z(obj, path = 'AvailableTimeSlotsOuputRepresentation') {
|
|
2578
2578
|
const v_error = (() => {
|
|
2579
2579
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2580
2580
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2587,7 +2587,7 @@ function validate$X(obj, path = 'AvailableTimeSlotsOuputRepresentation') {
|
|
|
2587
2587
|
for (let i = 0; i < obj_timeSlots.length; i++) {
|
|
2588
2588
|
const obj_timeSlots_item = obj_timeSlots[i];
|
|
2589
2589
|
const path_timeSlots_item = path_timeSlots + '[' + i + ']';
|
|
2590
|
-
const referencepath_timeSlots_itemValidationError = validate$
|
|
2590
|
+
const referencepath_timeSlots_itemValidationError = validate$_(obj_timeSlots_item, path_timeSlots_item);
|
|
2591
2591
|
if (referencepath_timeSlots_itemValidationError !== null) {
|
|
2592
2592
|
let message = 'Object doesn\'t match TimeSlot (at "' + path_timeSlots_item + '")\n';
|
|
2593
2593
|
message += referencepath_timeSlots_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2597,15 +2597,15 @@ function validate$X(obj, path = 'AvailableTimeSlotsOuputRepresentation') {
|
|
|
2597
2597
|
})();
|
|
2598
2598
|
return v_error === undefined ? null : v_error;
|
|
2599
2599
|
}
|
|
2600
|
-
const RepresentationType$
|
|
2601
|
-
function normalize$
|
|
2600
|
+
const RepresentationType$j = 'AvailableTimeSlotsOuputRepresentation';
|
|
2601
|
+
function normalize$j(input, existing, path, luvio, store, timestamp) {
|
|
2602
2602
|
return input;
|
|
2603
2603
|
}
|
|
2604
|
-
const select$
|
|
2605
|
-
const { selections: TimeSlot__selections, opaque: TimeSlot__opaque, } = select$
|
|
2604
|
+
const select$S = function AvailableTimeSlotsOuputRepresentationSelect() {
|
|
2605
|
+
const { selections: TimeSlot__selections, opaque: TimeSlot__opaque, } = select$T();
|
|
2606
2606
|
return {
|
|
2607
2607
|
kind: 'Fragment',
|
|
2608
|
-
version: VERSION$
|
|
2608
|
+
version: VERSION$x,
|
|
2609
2609
|
private: [],
|
|
2610
2610
|
selections: [
|
|
2611
2611
|
{
|
|
@@ -2617,11 +2617,11 @@ const select$Q = function AvailableTimeSlotsOuputRepresentationSelect() {
|
|
|
2617
2617
|
]
|
|
2618
2618
|
};
|
|
2619
2619
|
};
|
|
2620
|
-
function equals$
|
|
2620
|
+
function equals$x(existing, incoming) {
|
|
2621
2621
|
const existing_timeSlots = existing.timeSlots;
|
|
2622
2622
|
const incoming_timeSlots = incoming.timeSlots;
|
|
2623
2623
|
const equals_timeSlots_items = equalsArray(existing_timeSlots, incoming_timeSlots, (existing_timeSlots_item, incoming_timeSlots_item) => {
|
|
2624
|
-
if (!(equals$
|
|
2624
|
+
if (!(equals$y(existing_timeSlots_item, incoming_timeSlots_item))) {
|
|
2625
2625
|
return false;
|
|
2626
2626
|
}
|
|
2627
2627
|
});
|
|
@@ -2630,44 +2630,44 @@ function equals$w(existing, incoming) {
|
|
|
2630
2630
|
}
|
|
2631
2631
|
return true;
|
|
2632
2632
|
}
|
|
2633
|
-
const ingest$
|
|
2633
|
+
const ingest$j = function AvailableTimeSlotsOuputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2634
2634
|
if (process.env.NODE_ENV !== 'production') {
|
|
2635
|
-
const validateError = validate$
|
|
2635
|
+
const validateError = validate$Z(input);
|
|
2636
2636
|
if (validateError !== null) {
|
|
2637
2637
|
throw validateError;
|
|
2638
2638
|
}
|
|
2639
2639
|
}
|
|
2640
2640
|
const key = path.fullPath;
|
|
2641
2641
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
2642
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2642
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$j, "education", VERSION$x, RepresentationType$j, equals$x);
|
|
2643
2643
|
return createLink(key);
|
|
2644
2644
|
};
|
|
2645
|
-
function getTypeCacheKeys$
|
|
2645
|
+
function getTypeCacheKeys$j(rootKeySet, luvio, input, fullPathFactory) {
|
|
2646
2646
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2647
2647
|
const rootKey = fullPathFactory();
|
|
2648
2648
|
rootKeySet.set(rootKey, {
|
|
2649
2649
|
namespace: keyPrefix,
|
|
2650
|
-
representationName: RepresentationType$
|
|
2650
|
+
representationName: RepresentationType$j,
|
|
2651
2651
|
mergeable: false
|
|
2652
2652
|
});
|
|
2653
2653
|
}
|
|
2654
2654
|
|
|
2655
|
-
function select$
|
|
2656
|
-
return select$
|
|
2655
|
+
function select$R(luvio, params) {
|
|
2656
|
+
return select$S();
|
|
2657
2657
|
}
|
|
2658
|
-
function keyBuilder$
|
|
2658
|
+
function keyBuilder$y(luvio, params) {
|
|
2659
2659
|
return keyPrefix + '::AvailableTimeSlotsOuputRepresentation:(' + (params.body.availableTimeSlotsInput.automaticResourceAssignment === undefined ? 'availableTimeSlotsInput.automaticResourceAssignment' : 'availableTimeSlotsInput.automaticResourceAssignment:' + params.body.availableTimeSlotsInput.automaticResourceAssignment) + '::' + (params.body.availableTimeSlotsInput.endTime === undefined ? 'availableTimeSlotsInput.endTime' : 'availableTimeSlotsInput.endTime:' + params.body.availableTimeSlotsInput.endTime) + '::' + 'availableTimeSlotsInput.engagementChannelTypeIds:' + params.body.availableTimeSlotsInput.engagementChannelTypeIds + '::' + 'availableTimeSlotsInput.serviceResourceIds:' + params.body.availableTimeSlotsInput.serviceResourceIds + '::' + 'availableTimeSlotsInput.serviceTerritoryIds:' + params.body.availableTimeSlotsInput.serviceTerritoryIds + '::' + (params.body.availableTimeSlotsInput.startTime === undefined ? 'availableTimeSlotsInput.startTime' : 'availableTimeSlotsInput.startTime:' + params.body.availableTimeSlotsInput.startTime) + '::' + 'availableTimeSlotsInput.workTypeGroupId:' + params.body.availableTimeSlotsInput.workTypeGroupId + ')';
|
|
2660
2660
|
}
|
|
2661
|
-
function getResponseCacheKeys$
|
|
2662
|
-
getTypeCacheKeys$
|
|
2661
|
+
function getResponseCacheKeys$k(storeKeyMap, luvio, resourceParams, response) {
|
|
2662
|
+
getTypeCacheKeys$j(storeKeyMap, luvio, response, () => keyBuilder$y(luvio, resourceParams));
|
|
2663
2663
|
}
|
|
2664
|
-
function ingestSuccess$
|
|
2664
|
+
function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
|
|
2665
2665
|
const { body } = response;
|
|
2666
|
-
const key = keyBuilder$
|
|
2667
|
-
luvio.storeIngest(key, ingest$
|
|
2666
|
+
const key = keyBuilder$y(luvio, resourceParams);
|
|
2667
|
+
luvio.storeIngest(key, ingest$j, body);
|
|
2668
2668
|
const snapshot = luvio.storeLookup({
|
|
2669
2669
|
recordId: key,
|
|
2670
|
-
node: select$
|
|
2670
|
+
node: select$R(),
|
|
2671
2671
|
variables: {},
|
|
2672
2672
|
}, snapshotRefresh);
|
|
2673
2673
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2678,13 +2678,13 @@ function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2678
2678
|
deepFreeze(snapshot.data);
|
|
2679
2679
|
return snapshot;
|
|
2680
2680
|
}
|
|
2681
|
-
function ingestError$
|
|
2682
|
-
const key = keyBuilder$
|
|
2681
|
+
function ingestError$e(luvio, params, error, snapshotRefresh) {
|
|
2682
|
+
const key = keyBuilder$y(luvio, params);
|
|
2683
2683
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2684
2684
|
luvio.storeIngestError(key, errorSnapshot);
|
|
2685
2685
|
return errorSnapshot;
|
|
2686
2686
|
}
|
|
2687
|
-
function createResourceRequest$
|
|
2687
|
+
function createResourceRequest$k(config) {
|
|
2688
2688
|
const headers = {};
|
|
2689
2689
|
return {
|
|
2690
2690
|
baseUri: '/services/data/v66.0',
|
|
@@ -2698,98 +2698,98 @@ function createResourceRequest$j(config) {
|
|
|
2698
2698
|
};
|
|
2699
2699
|
}
|
|
2700
2700
|
|
|
2701
|
-
const adapterName$
|
|
2701
|
+
const adapterName$k = 'getAvailableTimeSlots';
|
|
2702
2702
|
const getAvailableTimeSlots_ConfigPropertyMetadata = [
|
|
2703
2703
|
generateParamConfigMetadata('availableTimeSlotsInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2704
2704
|
];
|
|
2705
|
-
const getAvailableTimeSlots_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2706
|
-
const createResourceParams$
|
|
2707
|
-
function keyBuilder$
|
|
2708
|
-
const resourceParams = createResourceParams$
|
|
2709
|
-
return keyBuilder$
|
|
2705
|
+
const getAvailableTimeSlots_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getAvailableTimeSlots_ConfigPropertyMetadata);
|
|
2706
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$q(getAvailableTimeSlots_ConfigPropertyMetadata);
|
|
2707
|
+
function keyBuilder$x(luvio, config) {
|
|
2708
|
+
const resourceParams = createResourceParams$k(config);
|
|
2709
|
+
return keyBuilder$y(luvio, resourceParams);
|
|
2710
2710
|
}
|
|
2711
|
-
function typeCheckConfig$
|
|
2711
|
+
function typeCheckConfig$k(untrustedConfig) {
|
|
2712
2712
|
const config = {};
|
|
2713
2713
|
const untrustedConfig_availableTimeSlotsInput = untrustedConfig.availableTimeSlotsInput;
|
|
2714
|
-
const referenceAvailableTimeSlotsInputRepresentationValidationError = validate
|
|
2714
|
+
const referenceAvailableTimeSlotsInputRepresentationValidationError = validate$$(untrustedConfig_availableTimeSlotsInput);
|
|
2715
2715
|
if (referenceAvailableTimeSlotsInputRepresentationValidationError === null) {
|
|
2716
2716
|
config.availableTimeSlotsInput = untrustedConfig_availableTimeSlotsInput;
|
|
2717
2717
|
}
|
|
2718
2718
|
return config;
|
|
2719
2719
|
}
|
|
2720
|
-
function validateAdapterConfig$
|
|
2720
|
+
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
2721
2721
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2722
2722
|
return null;
|
|
2723
2723
|
}
|
|
2724
2724
|
if (process.env.NODE_ENV !== 'production') {
|
|
2725
2725
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2726
2726
|
}
|
|
2727
|
-
const config = typeCheckConfig$
|
|
2727
|
+
const config = typeCheckConfig$k(untrustedConfig);
|
|
2728
2728
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2729
2729
|
return null;
|
|
2730
2730
|
}
|
|
2731
2731
|
return config;
|
|
2732
2732
|
}
|
|
2733
|
-
function adapterFragment$
|
|
2734
|
-
createResourceParams$
|
|
2735
|
-
return select$
|
|
2733
|
+
function adapterFragment$e(luvio, config) {
|
|
2734
|
+
createResourceParams$k(config);
|
|
2735
|
+
return select$R();
|
|
2736
2736
|
}
|
|
2737
|
-
function onFetchResponseSuccess$
|
|
2738
|
-
const snapshot = ingestSuccess$
|
|
2737
|
+
function onFetchResponseSuccess$e(luvio, config, resourceParams, response) {
|
|
2738
|
+
const snapshot = ingestSuccess$k(luvio, resourceParams, response, {
|
|
2739
2739
|
config,
|
|
2740
|
-
resolve: () => buildNetworkSnapshot$
|
|
2740
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
2741
2741
|
});
|
|
2742
2742
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2743
2743
|
}
|
|
2744
|
-
function onFetchResponseError$
|
|
2745
|
-
const snapshot = ingestError$
|
|
2744
|
+
function onFetchResponseError$e(luvio, config, resourceParams, response) {
|
|
2745
|
+
const snapshot = ingestError$e(luvio, resourceParams, response, {
|
|
2746
2746
|
config,
|
|
2747
|
-
resolve: () => buildNetworkSnapshot$
|
|
2747
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
2748
2748
|
});
|
|
2749
2749
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2750
2750
|
}
|
|
2751
|
-
function buildNetworkSnapshot$
|
|
2752
|
-
const resourceParams = createResourceParams$
|
|
2753
|
-
const request = createResourceRequest$
|
|
2751
|
+
function buildNetworkSnapshot$k(luvio, config, options) {
|
|
2752
|
+
const resourceParams = createResourceParams$k(config);
|
|
2753
|
+
const request = createResourceRequest$k(resourceParams);
|
|
2754
2754
|
return luvio.dispatchResourceRequest(request, options)
|
|
2755
2755
|
.then((response) => {
|
|
2756
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2756
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$e(luvio, config, resourceParams, response), () => {
|
|
2757
2757
|
const cache = new StoreKeyMap();
|
|
2758
|
-
getResponseCacheKeys$
|
|
2758
|
+
getResponseCacheKeys$k(cache, luvio, resourceParams, response.body);
|
|
2759
2759
|
return cache;
|
|
2760
2760
|
});
|
|
2761
2761
|
}, (response) => {
|
|
2762
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2762
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$e(luvio, config, resourceParams, response));
|
|
2763
2763
|
});
|
|
2764
2764
|
}
|
|
2765
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2766
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2765
|
+
function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
|
|
2766
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, 'get', false);
|
|
2767
2767
|
}
|
|
2768
|
-
function buildCachedSnapshotCachePolicy$
|
|
2768
|
+
function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
|
|
2769
2769
|
const { luvio, config } = context;
|
|
2770
2770
|
const selector = {
|
|
2771
|
-
recordId: keyBuilder$
|
|
2772
|
-
node: adapterFragment$
|
|
2771
|
+
recordId: keyBuilder$x(luvio, config),
|
|
2772
|
+
node: adapterFragment$e(luvio, config),
|
|
2773
2773
|
variables: {},
|
|
2774
2774
|
};
|
|
2775
2775
|
const cacheSnapshot = storeLookup(selector, {
|
|
2776
2776
|
config,
|
|
2777
|
-
resolve: () => buildNetworkSnapshot$
|
|
2777
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
2778
2778
|
});
|
|
2779
2779
|
return cacheSnapshot;
|
|
2780
2780
|
}
|
|
2781
2781
|
const getAvailableTimeSlotsAdapterFactory = (luvio) => function education__getAvailableTimeSlots(untrustedConfig, requestContext) {
|
|
2782
|
-
const config = validateAdapterConfig$
|
|
2782
|
+
const config = validateAdapterConfig$k(untrustedConfig, getAvailableTimeSlots_ConfigPropertyNames);
|
|
2783
2783
|
// Invalid or incomplete config
|
|
2784
2784
|
if (config === null) {
|
|
2785
2785
|
return null;
|
|
2786
2786
|
}
|
|
2787
2787
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2788
|
-
buildCachedSnapshotCachePolicy$
|
|
2788
|
+
buildCachedSnapshotCachePolicy$e, buildNetworkSnapshotCachePolicy$e);
|
|
2789
2789
|
};
|
|
2790
2790
|
|
|
2791
|
-
const VERSION$
|
|
2792
|
-
function validate$
|
|
2791
|
+
const VERSION$w = "c470aba735607497dd11c1fcd34489d1";
|
|
2792
|
+
function validate$Y(obj, path = 'AvailableTopic') {
|
|
2793
2793
|
const v_error = (() => {
|
|
2794
2794
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2795
2795
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2834,10 +2834,10 @@ function validate$W(obj, path = 'AvailableTopic') {
|
|
|
2834
2834
|
})();
|
|
2835
2835
|
return v_error === undefined ? null : v_error;
|
|
2836
2836
|
}
|
|
2837
|
-
const select$
|
|
2837
|
+
const select$Q = function AvailableTopicSelect() {
|
|
2838
2838
|
return {
|
|
2839
2839
|
kind: 'Fragment',
|
|
2840
|
-
version: VERSION$
|
|
2840
|
+
version: VERSION$w,
|
|
2841
2841
|
private: [],
|
|
2842
2842
|
selections: [
|
|
2843
2843
|
{
|
|
@@ -2863,7 +2863,7 @@ const select$O = function AvailableTopicSelect() {
|
|
|
2863
2863
|
]
|
|
2864
2864
|
};
|
|
2865
2865
|
};
|
|
2866
|
-
function equals$
|
|
2866
|
+
function equals$w(existing, incoming) {
|
|
2867
2867
|
const existing_parentWorkTypeGroupName = existing.parentWorkTypeGroupName;
|
|
2868
2868
|
const incoming_parentWorkTypeGroupName = incoming.parentWorkTypeGroupName;
|
|
2869
2869
|
// if at least one of these optionals is defined
|
|
@@ -2924,8 +2924,8 @@ function equals$v(existing, incoming) {
|
|
|
2924
2924
|
return true;
|
|
2925
2925
|
}
|
|
2926
2926
|
|
|
2927
|
-
const VERSION$
|
|
2928
|
-
function validate$
|
|
2927
|
+
const VERSION$v = "3cb0110faf688dc57056aa83be527181";
|
|
2928
|
+
function validate$X(obj, path = 'AvailableTopicsOutputRepresentation') {
|
|
2929
2929
|
const v_error = (() => {
|
|
2930
2930
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2931
2931
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2938,7 +2938,7 @@ function validate$V(obj, path = 'AvailableTopicsOutputRepresentation') {
|
|
|
2938
2938
|
for (let i = 0; i < obj_topics.length; i++) {
|
|
2939
2939
|
const obj_topics_item = obj_topics[i];
|
|
2940
2940
|
const path_topics_item = path_topics + '[' + i + ']';
|
|
2941
|
-
const referencepath_topics_itemValidationError = validate$
|
|
2941
|
+
const referencepath_topics_itemValidationError = validate$Y(obj_topics_item, path_topics_item);
|
|
2942
2942
|
if (referencepath_topics_itemValidationError !== null) {
|
|
2943
2943
|
let message = 'Object doesn\'t match AvailableTopic (at "' + path_topics_item + '")\n';
|
|
2944
2944
|
message += referencepath_topics_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2948,15 +2948,15 @@ function validate$V(obj, path = 'AvailableTopicsOutputRepresentation') {
|
|
|
2948
2948
|
})();
|
|
2949
2949
|
return v_error === undefined ? null : v_error;
|
|
2950
2950
|
}
|
|
2951
|
-
const RepresentationType$
|
|
2952
|
-
function normalize$
|
|
2951
|
+
const RepresentationType$i = 'AvailableTopicsOutputRepresentation';
|
|
2952
|
+
function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
2953
2953
|
return input;
|
|
2954
2954
|
}
|
|
2955
|
-
const select$
|
|
2956
|
-
const { selections: AvailableTopic__selections, opaque: AvailableTopic__opaque, } = select$
|
|
2955
|
+
const select$P = function AvailableTopicsOutputRepresentationSelect() {
|
|
2956
|
+
const { selections: AvailableTopic__selections, opaque: AvailableTopic__opaque, } = select$Q();
|
|
2957
2957
|
return {
|
|
2958
2958
|
kind: 'Fragment',
|
|
2959
|
-
version: VERSION$
|
|
2959
|
+
version: VERSION$v,
|
|
2960
2960
|
private: [],
|
|
2961
2961
|
selections: [
|
|
2962
2962
|
{
|
|
@@ -2968,11 +2968,11 @@ const select$N = function AvailableTopicsOutputRepresentationSelect() {
|
|
|
2968
2968
|
]
|
|
2969
2969
|
};
|
|
2970
2970
|
};
|
|
2971
|
-
function equals$
|
|
2971
|
+
function equals$v(existing, incoming) {
|
|
2972
2972
|
const existing_topics = existing.topics;
|
|
2973
2973
|
const incoming_topics = incoming.topics;
|
|
2974
2974
|
const equals_topics_items = equalsArray(existing_topics, incoming_topics, (existing_topics_item, incoming_topics_item) => {
|
|
2975
|
-
if (!(equals$
|
|
2975
|
+
if (!(equals$w(existing_topics_item, incoming_topics_item))) {
|
|
2976
2976
|
return false;
|
|
2977
2977
|
}
|
|
2978
2978
|
});
|
|
@@ -2981,44 +2981,44 @@ function equals$u(existing, incoming) {
|
|
|
2981
2981
|
}
|
|
2982
2982
|
return true;
|
|
2983
2983
|
}
|
|
2984
|
-
const ingest$
|
|
2984
|
+
const ingest$i = function AvailableTopicsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2985
2985
|
if (process.env.NODE_ENV !== 'production') {
|
|
2986
|
-
const validateError = validate$
|
|
2986
|
+
const validateError = validate$X(input);
|
|
2987
2987
|
if (validateError !== null) {
|
|
2988
2988
|
throw validateError;
|
|
2989
2989
|
}
|
|
2990
2990
|
}
|
|
2991
2991
|
const key = path.fullPath;
|
|
2992
2992
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
2993
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2993
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "education", VERSION$v, RepresentationType$i, equals$v);
|
|
2994
2994
|
return createLink(key);
|
|
2995
2995
|
};
|
|
2996
|
-
function getTypeCacheKeys$
|
|
2996
|
+
function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
2997
2997
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2998
2998
|
const rootKey = fullPathFactory();
|
|
2999
2999
|
rootKeySet.set(rootKey, {
|
|
3000
3000
|
namespace: keyPrefix,
|
|
3001
|
-
representationName: RepresentationType$
|
|
3001
|
+
representationName: RepresentationType$i,
|
|
3002
3002
|
mergeable: false
|
|
3003
3003
|
});
|
|
3004
3004
|
}
|
|
3005
3005
|
|
|
3006
|
-
function select$
|
|
3007
|
-
return select$
|
|
3006
|
+
function select$O(luvio, params) {
|
|
3007
|
+
return select$P();
|
|
3008
3008
|
}
|
|
3009
|
-
function keyBuilder$
|
|
3009
|
+
function keyBuilder$w(luvio, params) {
|
|
3010
3010
|
return keyPrefix + '::AvailableTopicsOutputRepresentation:(' + ')';
|
|
3011
3011
|
}
|
|
3012
|
-
function getResponseCacheKeys$
|
|
3013
|
-
getTypeCacheKeys$
|
|
3012
|
+
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
3013
|
+
getTypeCacheKeys$i(storeKeyMap, luvio, response, () => keyBuilder$w());
|
|
3014
3014
|
}
|
|
3015
|
-
function ingestSuccess$
|
|
3015
|
+
function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
3016
3016
|
const { body } = response;
|
|
3017
|
-
const key = keyBuilder$
|
|
3018
|
-
luvio.storeIngest(key, ingest$
|
|
3017
|
+
const key = keyBuilder$w();
|
|
3018
|
+
luvio.storeIngest(key, ingest$i, body);
|
|
3019
3019
|
const snapshot = luvio.storeLookup({
|
|
3020
3020
|
recordId: key,
|
|
3021
|
-
node: select$
|
|
3021
|
+
node: select$O(),
|
|
3022
3022
|
variables: {},
|
|
3023
3023
|
}, snapshotRefresh);
|
|
3024
3024
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3029,13 +3029,13 @@ function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3029
3029
|
deepFreeze(snapshot.data);
|
|
3030
3030
|
return snapshot;
|
|
3031
3031
|
}
|
|
3032
|
-
function ingestError$
|
|
3033
|
-
const key = keyBuilder$
|
|
3032
|
+
function ingestError$d(luvio, params, error, snapshotRefresh) {
|
|
3033
|
+
const key = keyBuilder$w();
|
|
3034
3034
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3035
3035
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3036
3036
|
return errorSnapshot;
|
|
3037
3037
|
}
|
|
3038
|
-
function createResourceRequest$
|
|
3038
|
+
function createResourceRequest$j(config) {
|
|
3039
3039
|
const headers = {};
|
|
3040
3040
|
return {
|
|
3041
3041
|
baseUri: '/services/data/v66.0',
|
|
@@ -3049,90 +3049,90 @@ function createResourceRequest$i(config) {
|
|
|
3049
3049
|
};
|
|
3050
3050
|
}
|
|
3051
3051
|
|
|
3052
|
-
const adapterName$
|
|
3052
|
+
const adapterName$j = 'getAvailableTopics';
|
|
3053
3053
|
const getAvailableTopics_ConfigPropertyMetadata = [];
|
|
3054
|
-
const getAvailableTopics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3055
|
-
const createResourceParams$
|
|
3056
|
-
function keyBuilder$
|
|
3057
|
-
createResourceParams$
|
|
3058
|
-
return keyBuilder$
|
|
3054
|
+
const getAvailableTopics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, getAvailableTopics_ConfigPropertyMetadata);
|
|
3055
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$q(getAvailableTopics_ConfigPropertyMetadata);
|
|
3056
|
+
function keyBuilder$v(luvio, config) {
|
|
3057
|
+
createResourceParams$j(config);
|
|
3058
|
+
return keyBuilder$w();
|
|
3059
3059
|
}
|
|
3060
|
-
function typeCheckConfig$
|
|
3060
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
3061
3061
|
const config = {};
|
|
3062
3062
|
return config;
|
|
3063
3063
|
}
|
|
3064
|
-
function validateAdapterConfig$
|
|
3064
|
+
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
3065
3065
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3066
3066
|
return null;
|
|
3067
3067
|
}
|
|
3068
3068
|
if (process.env.NODE_ENV !== 'production') {
|
|
3069
3069
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3070
3070
|
}
|
|
3071
|
-
const config = typeCheckConfig$
|
|
3071
|
+
const config = typeCheckConfig$j();
|
|
3072
3072
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3073
3073
|
return null;
|
|
3074
3074
|
}
|
|
3075
3075
|
return config;
|
|
3076
3076
|
}
|
|
3077
|
-
function adapterFragment$
|
|
3078
|
-
createResourceParams$
|
|
3079
|
-
return select$
|
|
3077
|
+
function adapterFragment$d(luvio, config) {
|
|
3078
|
+
createResourceParams$j(config);
|
|
3079
|
+
return select$O();
|
|
3080
3080
|
}
|
|
3081
|
-
function onFetchResponseSuccess$
|
|
3082
|
-
const snapshot = ingestSuccess$
|
|
3081
|
+
function onFetchResponseSuccess$d(luvio, config, resourceParams, response) {
|
|
3082
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
|
|
3083
3083
|
config,
|
|
3084
|
-
resolve: () => buildNetworkSnapshot$
|
|
3084
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
3085
3085
|
});
|
|
3086
3086
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3087
3087
|
}
|
|
3088
|
-
function onFetchResponseError$
|
|
3089
|
-
const snapshot = ingestError$
|
|
3088
|
+
function onFetchResponseError$d(luvio, config, resourceParams, response) {
|
|
3089
|
+
const snapshot = ingestError$d(luvio, resourceParams, response, {
|
|
3090
3090
|
config,
|
|
3091
|
-
resolve: () => buildNetworkSnapshot$
|
|
3091
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
3092
3092
|
});
|
|
3093
3093
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3094
3094
|
}
|
|
3095
|
-
function buildNetworkSnapshot$
|
|
3096
|
-
const resourceParams = createResourceParams$
|
|
3097
|
-
const request = createResourceRequest$
|
|
3095
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
3096
|
+
const resourceParams = createResourceParams$j(config);
|
|
3097
|
+
const request = createResourceRequest$j();
|
|
3098
3098
|
return luvio.dispatchResourceRequest(request, options)
|
|
3099
3099
|
.then((response) => {
|
|
3100
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3100
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$d(luvio, config, resourceParams, response), () => {
|
|
3101
3101
|
const cache = new StoreKeyMap();
|
|
3102
|
-
getResponseCacheKeys$
|
|
3102
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
3103
3103
|
return cache;
|
|
3104
3104
|
});
|
|
3105
3105
|
}, (response) => {
|
|
3106
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3106
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$d(luvio, config, resourceParams, response));
|
|
3107
3107
|
});
|
|
3108
3108
|
}
|
|
3109
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3110
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3109
|
+
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
3110
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$j, undefined, false);
|
|
3111
3111
|
}
|
|
3112
|
-
function buildCachedSnapshotCachePolicy$
|
|
3112
|
+
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
3113
3113
|
const { luvio, config } = context;
|
|
3114
3114
|
const selector = {
|
|
3115
|
-
recordId: keyBuilder$
|
|
3116
|
-
node: adapterFragment$
|
|
3115
|
+
recordId: keyBuilder$v(luvio, config),
|
|
3116
|
+
node: adapterFragment$d(luvio, config),
|
|
3117
3117
|
variables: {},
|
|
3118
3118
|
};
|
|
3119
3119
|
const cacheSnapshot = storeLookup(selector, {
|
|
3120
3120
|
config,
|
|
3121
|
-
resolve: () => buildNetworkSnapshot$
|
|
3121
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
3122
3122
|
});
|
|
3123
3123
|
return cacheSnapshot;
|
|
3124
3124
|
}
|
|
3125
3125
|
const getAvailableTopicsAdapterFactory = (luvio) => function education__getAvailableTopics(untrustedConfig, requestContext) {
|
|
3126
|
-
const config = validateAdapterConfig$
|
|
3126
|
+
const config = validateAdapterConfig$j(untrustedConfig, getAvailableTopics_ConfigPropertyNames);
|
|
3127
3127
|
// Invalid or incomplete config
|
|
3128
3128
|
if (config === null) {
|
|
3129
3129
|
return null;
|
|
3130
3130
|
}
|
|
3131
3131
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3132
|
-
buildCachedSnapshotCachePolicy$
|
|
3132
|
+
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
|
|
3133
3133
|
};
|
|
3134
3134
|
|
|
3135
|
-
function validate$
|
|
3135
|
+
function validate$W(obj, path = 'LearningProgramPlanRequirementOutput') {
|
|
3136
3136
|
const v_error = (() => {
|
|
3137
3137
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3138
3138
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3170,7 +3170,7 @@ function validate$U(obj, path = 'LearningProgramPlanRequirementOutput') {
|
|
|
3170
3170
|
for (let i = 0; i < obj_fulfilledBy.length; i++) {
|
|
3171
3171
|
const obj_fulfilledBy_item = obj_fulfilledBy[i];
|
|
3172
3172
|
const path_fulfilledBy_item = path_fulfilledBy + '[' + i + ']';
|
|
3173
|
-
const referencepath_fulfilledBy_itemValidationError = validate$
|
|
3173
|
+
const referencepath_fulfilledBy_itemValidationError = validate$1f(obj_fulfilledBy_item, path_fulfilledBy_item);
|
|
3174
3174
|
if (referencepath_fulfilledBy_itemValidationError !== null) {
|
|
3175
3175
|
let message = 'Object doesn\'t match LearningFulfiller (at "' + path_fulfilledBy_item + '")\n';
|
|
3176
3176
|
message += referencepath_fulfilledBy_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3217,7 +3217,7 @@ function validate$U(obj, path = 'LearningProgramPlanRequirementOutput') {
|
|
|
3217
3217
|
return v_error === undefined ? null : v_error;
|
|
3218
3218
|
}
|
|
3219
3219
|
|
|
3220
|
-
function validate$
|
|
3220
|
+
function validate$V(obj, path = 'LearnerProgramRequirement') {
|
|
3221
3221
|
const v_error = (() => {
|
|
3222
3222
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3223
3223
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3244,7 +3244,7 @@ function validate$T(obj, path = 'LearnerProgramRequirement') {
|
|
|
3244
3244
|
if (obj.learningProgramPlanRequirement !== undefined) {
|
|
3245
3245
|
const obj_learningProgramPlanRequirement = obj.learningProgramPlanRequirement;
|
|
3246
3246
|
const path_learningProgramPlanRequirement = path + '.learningProgramPlanRequirement';
|
|
3247
|
-
const referencepath_learningProgramPlanRequirementValidationError = validate$
|
|
3247
|
+
const referencepath_learningProgramPlanRequirementValidationError = validate$W(obj_learningProgramPlanRequirement, path_learningProgramPlanRequirement);
|
|
3248
3248
|
if (referencepath_learningProgramPlanRequirementValidationError !== null) {
|
|
3249
3249
|
let message = 'Object doesn\'t match LearningProgramPlanRequirementOutput (at "' + path_learningProgramPlanRequirement + '")\n';
|
|
3250
3250
|
message += referencepath_learningProgramPlanRequirementValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3290,7 +3290,7 @@ function validate$T(obj, path = 'LearnerProgramRequirement') {
|
|
|
3290
3290
|
return v_error === undefined ? null : v_error;
|
|
3291
3291
|
}
|
|
3292
3292
|
|
|
3293
|
-
function validate$
|
|
3293
|
+
function validate$U(obj, path = 'LearnerProgram') {
|
|
3294
3294
|
const v_error = (() => {
|
|
3295
3295
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3296
3296
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3340,7 +3340,7 @@ function validate$S(obj, path = 'LearnerProgram') {
|
|
|
3340
3340
|
if (obj.learningOutcomeItem !== undefined) {
|
|
3341
3341
|
const obj_learningOutcomeItem = obj.learningOutcomeItem;
|
|
3342
3342
|
const path_learningOutcomeItem = path + '.learningOutcomeItem';
|
|
3343
|
-
const referencepath_learningOutcomeItemValidationError = validate$
|
|
3343
|
+
const referencepath_learningOutcomeItemValidationError = validate$1i(obj_learningOutcomeItem, path_learningOutcomeItem);
|
|
3344
3344
|
if (referencepath_learningOutcomeItemValidationError !== null) {
|
|
3345
3345
|
let message = 'Object doesn\'t match LearningOutcomeItemOutput (at "' + path_learningOutcomeItem + '")\n';
|
|
3346
3346
|
message += referencepath_learningOutcomeItemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3426,7 +3426,7 @@ function validate$S(obj, path = 'LearnerProgram') {
|
|
|
3426
3426
|
for (let i = 0; i < obj_requirements.length; i++) {
|
|
3427
3427
|
const obj_requirements_item = obj_requirements[i];
|
|
3428
3428
|
const path_requirements_item = path_requirements + '[' + i + ']';
|
|
3429
|
-
const referencepath_requirements_itemValidationError = validate$
|
|
3429
|
+
const referencepath_requirements_itemValidationError = validate$V(obj_requirements_item, path_requirements_item);
|
|
3430
3430
|
if (referencepath_requirements_itemValidationError !== null) {
|
|
3431
3431
|
let message = 'Object doesn\'t match LearnerProgramRequirement (at "' + path_requirements_item + '")\n';
|
|
3432
3432
|
message += referencepath_requirements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3452,8 +3452,8 @@ function validate$S(obj, path = 'LearnerProgram') {
|
|
|
3452
3452
|
return v_error === undefined ? null : v_error;
|
|
3453
3453
|
}
|
|
3454
3454
|
|
|
3455
|
-
const VERSION$
|
|
3456
|
-
function validate$
|
|
3455
|
+
const VERSION$u = "a465786ab4e5c95e1d888615e32dd640";
|
|
3456
|
+
function validate$T(obj, path = 'LearnerProgressOutputRepresentation') {
|
|
3457
3457
|
const v_error = (() => {
|
|
3458
3458
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3459
3459
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3467,7 +3467,7 @@ function validate$R(obj, path = 'LearnerProgressOutputRepresentation') {
|
|
|
3467
3467
|
for (let i = 0; i < obj_learnerPrograms.length; i++) {
|
|
3468
3468
|
const obj_learnerPrograms_item = obj_learnerPrograms[i];
|
|
3469
3469
|
const path_learnerPrograms_item = path_learnerPrograms + '[' + i + ']';
|
|
3470
|
-
const referencepath_learnerPrograms_itemValidationError = validate$
|
|
3470
|
+
const referencepath_learnerPrograms_itemValidationError = validate$U(obj_learnerPrograms_item, path_learnerPrograms_item);
|
|
3471
3471
|
if (referencepath_learnerPrograms_itemValidationError !== null) {
|
|
3472
3472
|
let message = 'Object doesn\'t match LearnerProgram (at "' + path_learnerPrograms_item + '")\n';
|
|
3473
3473
|
message += referencepath_learnerPrograms_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3484,7 +3484,7 @@ function validate$R(obj, path = 'LearnerProgressOutputRepresentation') {
|
|
|
3484
3484
|
for (let i = 0; i < obj_nonRequiredLearnings.length; i++) {
|
|
3485
3485
|
const obj_nonRequiredLearnings_item = obj_nonRequiredLearnings[i];
|
|
3486
3486
|
const path_nonRequiredLearnings_item = path_nonRequiredLearnings + '[' + i + ']';
|
|
3487
|
-
const referencepath_nonRequiredLearnings_itemValidationError = validate$
|
|
3487
|
+
const referencepath_nonRequiredLearnings_itemValidationError = validate$1f(obj_nonRequiredLearnings_item, path_nonRequiredLearnings_item);
|
|
3488
3488
|
if (referencepath_nonRequiredLearnings_itemValidationError !== null) {
|
|
3489
3489
|
let message = 'Object doesn\'t match LearningFulfiller (at "' + path_nonRequiredLearnings_item + '")\n';
|
|
3490
3490
|
message += referencepath_nonRequiredLearnings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3495,62 +3495,62 @@ function validate$R(obj, path = 'LearnerProgressOutputRepresentation') {
|
|
|
3495
3495
|
})();
|
|
3496
3496
|
return v_error === undefined ? null : v_error;
|
|
3497
3497
|
}
|
|
3498
|
-
const RepresentationType$
|
|
3499
|
-
function normalize$
|
|
3498
|
+
const RepresentationType$h = 'LearnerProgressOutputRepresentation';
|
|
3499
|
+
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
3500
3500
|
return input;
|
|
3501
3501
|
}
|
|
3502
|
-
const select$
|
|
3502
|
+
const select$N = function LearnerProgressOutputRepresentationSelect() {
|
|
3503
3503
|
return {
|
|
3504
3504
|
kind: 'Fragment',
|
|
3505
|
-
version: VERSION$
|
|
3505
|
+
version: VERSION$u,
|
|
3506
3506
|
private: [],
|
|
3507
3507
|
opaque: true
|
|
3508
3508
|
};
|
|
3509
3509
|
};
|
|
3510
|
-
function equals$
|
|
3510
|
+
function equals$u(existing, incoming) {
|
|
3511
3511
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3512
3512
|
return false;
|
|
3513
3513
|
}
|
|
3514
3514
|
return true;
|
|
3515
3515
|
}
|
|
3516
|
-
const ingest$
|
|
3516
|
+
const ingest$h = function LearnerProgressOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3517
3517
|
if (process.env.NODE_ENV !== 'production') {
|
|
3518
|
-
const validateError = validate$
|
|
3518
|
+
const validateError = validate$T(input);
|
|
3519
3519
|
if (validateError !== null) {
|
|
3520
3520
|
throw validateError;
|
|
3521
3521
|
}
|
|
3522
3522
|
}
|
|
3523
3523
|
const key = path.fullPath;
|
|
3524
3524
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
3525
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3525
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "education", VERSION$u, RepresentationType$h, equals$u);
|
|
3526
3526
|
return createLink(key);
|
|
3527
3527
|
};
|
|
3528
|
-
function getTypeCacheKeys$
|
|
3528
|
+
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
3529
3529
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3530
3530
|
const rootKey = fullPathFactory();
|
|
3531
3531
|
rootKeySet.set(rootKey, {
|
|
3532
3532
|
namespace: keyPrefix,
|
|
3533
|
-
representationName: RepresentationType$
|
|
3533
|
+
representationName: RepresentationType$h,
|
|
3534
3534
|
mergeable: false
|
|
3535
3535
|
});
|
|
3536
3536
|
}
|
|
3537
3537
|
|
|
3538
|
-
function select$
|
|
3539
|
-
return select$
|
|
3538
|
+
function select$M(luvio, params) {
|
|
3539
|
+
return select$N();
|
|
3540
3540
|
}
|
|
3541
|
-
function keyBuilder$
|
|
3541
|
+
function keyBuilder$u(luvio, params) {
|
|
3542
3542
|
return keyPrefix + '::LearnerProgressOutputRepresentation:(' + 'learnerPathwayId:' + params.queryParams.learnerPathwayId + ',' + 'contactId:' + params.urlParams.contactId + ')';
|
|
3543
3543
|
}
|
|
3544
|
-
function getResponseCacheKeys$
|
|
3545
|
-
getTypeCacheKeys$
|
|
3544
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
3545
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response, () => keyBuilder$u(luvio, resourceParams));
|
|
3546
3546
|
}
|
|
3547
|
-
function ingestSuccess$
|
|
3547
|
+
function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
3548
3548
|
const { body } = response;
|
|
3549
|
-
const key = keyBuilder$
|
|
3550
|
-
luvio.storeIngest(key, ingest$
|
|
3549
|
+
const key = keyBuilder$u(luvio, resourceParams);
|
|
3550
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
3551
3551
|
const snapshot = luvio.storeLookup({
|
|
3552
3552
|
recordId: key,
|
|
3553
|
-
node: select$
|
|
3553
|
+
node: select$M(),
|
|
3554
3554
|
variables: {},
|
|
3555
3555
|
}, snapshotRefresh);
|
|
3556
3556
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3561,13 +3561,13 @@ function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3561
3561
|
deepFreeze(snapshot.data);
|
|
3562
3562
|
return snapshot;
|
|
3563
3563
|
}
|
|
3564
|
-
function ingestError$
|
|
3565
|
-
const key = keyBuilder$
|
|
3564
|
+
function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
3565
|
+
const key = keyBuilder$u(luvio, params);
|
|
3566
3566
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3567
3567
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3568
3568
|
return errorSnapshot;
|
|
3569
3569
|
}
|
|
3570
|
-
function createResourceRequest$
|
|
3570
|
+
function createResourceRequest$i(config) {
|
|
3571
3571
|
const headers = {};
|
|
3572
3572
|
return {
|
|
3573
3573
|
baseUri: '/services/data/v66.0',
|
|
@@ -3581,94 +3581,94 @@ function createResourceRequest$h(config) {
|
|
|
3581
3581
|
};
|
|
3582
3582
|
}
|
|
3583
3583
|
|
|
3584
|
-
const adapterName$
|
|
3584
|
+
const adapterName$i = 'getLearnerProgress';
|
|
3585
3585
|
const getLearnerProgress_ConfigPropertyMetadata = [
|
|
3586
3586
|
generateParamConfigMetadata('contactId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3587
3587
|
generateParamConfigMetadata('learnerPathwayId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3588
3588
|
];
|
|
3589
|
-
const getLearnerProgress_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3590
|
-
const createResourceParams$
|
|
3591
|
-
function keyBuilder$
|
|
3592
|
-
const resourceParams = createResourceParams$
|
|
3593
|
-
return keyBuilder$
|
|
3589
|
+
const getLearnerProgress_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getLearnerProgress_ConfigPropertyMetadata);
|
|
3590
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$q(getLearnerProgress_ConfigPropertyMetadata);
|
|
3591
|
+
function keyBuilder$t(luvio, config) {
|
|
3592
|
+
const resourceParams = createResourceParams$i(config);
|
|
3593
|
+
return keyBuilder$u(luvio, resourceParams);
|
|
3594
3594
|
}
|
|
3595
|
-
function typeCheckConfig$
|
|
3595
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
3596
3596
|
const config = {};
|
|
3597
|
-
typeCheckConfig$
|
|
3597
|
+
typeCheckConfig$q(untrustedConfig, config, getLearnerProgress_ConfigPropertyMetadata);
|
|
3598
3598
|
return config;
|
|
3599
3599
|
}
|
|
3600
|
-
function validateAdapterConfig$
|
|
3600
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
3601
3601
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3602
3602
|
return null;
|
|
3603
3603
|
}
|
|
3604
3604
|
if (process.env.NODE_ENV !== 'production') {
|
|
3605
3605
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3606
3606
|
}
|
|
3607
|
-
const config = typeCheckConfig$
|
|
3607
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
3608
3608
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3609
3609
|
return null;
|
|
3610
3610
|
}
|
|
3611
3611
|
return config;
|
|
3612
3612
|
}
|
|
3613
|
-
function adapterFragment$
|
|
3614
|
-
createResourceParams$
|
|
3615
|
-
return select$
|
|
3613
|
+
function adapterFragment$c(luvio, config) {
|
|
3614
|
+
createResourceParams$i(config);
|
|
3615
|
+
return select$M();
|
|
3616
3616
|
}
|
|
3617
|
-
function onFetchResponseSuccess$
|
|
3618
|
-
const snapshot = ingestSuccess$
|
|
3617
|
+
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
3618
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
|
|
3619
3619
|
config,
|
|
3620
|
-
resolve: () => buildNetworkSnapshot$
|
|
3620
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
3621
3621
|
});
|
|
3622
3622
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3623
3623
|
}
|
|
3624
|
-
function onFetchResponseError$
|
|
3625
|
-
const snapshot = ingestError$
|
|
3624
|
+
function onFetchResponseError$c(luvio, config, resourceParams, response) {
|
|
3625
|
+
const snapshot = ingestError$c(luvio, resourceParams, response, {
|
|
3626
3626
|
config,
|
|
3627
|
-
resolve: () => buildNetworkSnapshot$
|
|
3627
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
3628
3628
|
});
|
|
3629
3629
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3630
3630
|
}
|
|
3631
|
-
function buildNetworkSnapshot$
|
|
3632
|
-
const resourceParams = createResourceParams$
|
|
3633
|
-
const request = createResourceRequest$
|
|
3631
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
3632
|
+
const resourceParams = createResourceParams$i(config);
|
|
3633
|
+
const request = createResourceRequest$i(resourceParams);
|
|
3634
3634
|
return luvio.dispatchResourceRequest(request, options)
|
|
3635
3635
|
.then((response) => {
|
|
3636
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3636
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => {
|
|
3637
3637
|
const cache = new StoreKeyMap();
|
|
3638
|
-
getResponseCacheKeys$
|
|
3638
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
3639
3639
|
return cache;
|
|
3640
3640
|
});
|
|
3641
3641
|
}, (response) => {
|
|
3642
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3642
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$c(luvio, config, resourceParams, response));
|
|
3643
3643
|
});
|
|
3644
3644
|
}
|
|
3645
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3646
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3645
|
+
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
3646
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
3647
3647
|
}
|
|
3648
|
-
function buildCachedSnapshotCachePolicy$
|
|
3648
|
+
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
3649
3649
|
const { luvio, config } = context;
|
|
3650
3650
|
const selector = {
|
|
3651
|
-
recordId: keyBuilder$
|
|
3652
|
-
node: adapterFragment$
|
|
3651
|
+
recordId: keyBuilder$t(luvio, config),
|
|
3652
|
+
node: adapterFragment$c(luvio, config),
|
|
3653
3653
|
variables: {},
|
|
3654
3654
|
};
|
|
3655
3655
|
const cacheSnapshot = storeLookup(selector, {
|
|
3656
3656
|
config,
|
|
3657
|
-
resolve: () => buildNetworkSnapshot$
|
|
3657
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
3658
3658
|
});
|
|
3659
3659
|
return cacheSnapshot;
|
|
3660
3660
|
}
|
|
3661
3661
|
const getLearnerProgressAdapterFactory = (luvio) => function education__getLearnerProgress(untrustedConfig, requestContext) {
|
|
3662
|
-
const config = validateAdapterConfig$
|
|
3662
|
+
const config = validateAdapterConfig$i(untrustedConfig, getLearnerProgress_ConfigPropertyNames);
|
|
3663
3663
|
// Invalid or incomplete config
|
|
3664
3664
|
if (config === null) {
|
|
3665
3665
|
return null;
|
|
3666
3666
|
}
|
|
3667
3667
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3668
|
-
buildCachedSnapshotCachePolicy$
|
|
3668
|
+
buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
|
|
3669
3669
|
};
|
|
3670
3670
|
|
|
3671
|
-
function validate$
|
|
3671
|
+
function validate$S(obj, path = 'LearningFoundationItemValidationInput') {
|
|
3672
3672
|
const v_error = (() => {
|
|
3673
3673
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3674
3674
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3706,7 +3706,7 @@ function validate$Q(obj, path = 'LearningFoundationItemValidationInput') {
|
|
|
3706
3706
|
return v_error === undefined ? null : v_error;
|
|
3707
3707
|
}
|
|
3708
3708
|
|
|
3709
|
-
function validate$
|
|
3709
|
+
function validate$R(obj, path = 'LearningFoundationItemValidationOutput') {
|
|
3710
3710
|
const v_error = (() => {
|
|
3711
3711
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3712
3712
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3719,7 +3719,7 @@ function validate$P(obj, path = 'LearningFoundationItemValidationOutput') {
|
|
|
3719
3719
|
for (let i = 0; i < obj_corequisites.length; i++) {
|
|
3720
3720
|
const obj_corequisites_item = obj_corequisites[i];
|
|
3721
3721
|
const path_corequisites_item = path_corequisites + '[' + i + ']';
|
|
3722
|
-
const referencepath_corequisites_itemValidationError = validate$
|
|
3722
|
+
const referencepath_corequisites_itemValidationError = validate$1e(obj_corequisites_item, path_corequisites_item);
|
|
3723
3723
|
if (referencepath_corequisites_itemValidationError !== null) {
|
|
3724
3724
|
let message = 'Object doesn\'t match LearningFoundationItemOutput (at "' + path_corequisites_item + '")\n';
|
|
3725
3725
|
message += referencepath_corequisites_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3744,7 +3744,7 @@ function validate$P(obj, path = 'LearningFoundationItemValidationOutput') {
|
|
|
3744
3744
|
for (let i = 0; i < obj_prerequisites.length; i++) {
|
|
3745
3745
|
const obj_prerequisites_item = obj_prerequisites[i];
|
|
3746
3746
|
const path_prerequisites_item = path_prerequisites + '[' + i + ']';
|
|
3747
|
-
const referencepath_prerequisites_itemValidationError = validate$
|
|
3747
|
+
const referencepath_prerequisites_itemValidationError = validate$1e(obj_prerequisites_item, path_prerequisites_item);
|
|
3748
3748
|
if (referencepath_prerequisites_itemValidationError !== null) {
|
|
3749
3749
|
let message = 'Object doesn\'t match LearningFoundationItemOutput (at "' + path_prerequisites_item + '")\n';
|
|
3750
3750
|
message += referencepath_prerequisites_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3756,8 +3756,8 @@ function validate$P(obj, path = 'LearningFoundationItemValidationOutput') {
|
|
|
3756
3756
|
}
|
|
3757
3757
|
|
|
3758
3758
|
const TTL$5 = 100;
|
|
3759
|
-
const VERSION$
|
|
3760
|
-
function validate$
|
|
3759
|
+
const VERSION$t = "eb1835cf065251dc34d1e37c3dc02cc7";
|
|
3760
|
+
function validate$Q(obj, path = 'LearningFoundationItemValidationOutputRepresentation') {
|
|
3761
3761
|
const v_error = (() => {
|
|
3762
3762
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3763
3763
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3770,7 +3770,7 @@ function validate$O(obj, path = 'LearningFoundationItemValidationOutputRepresent
|
|
|
3770
3770
|
for (let i = 0; i < obj_validateLearningsOutput.length; i++) {
|
|
3771
3771
|
const obj_validateLearningsOutput_item = obj_validateLearningsOutput[i];
|
|
3772
3772
|
const path_validateLearningsOutput_item = path_validateLearningsOutput + '[' + i + ']';
|
|
3773
|
-
const referencepath_validateLearningsOutput_itemValidationError = validate$
|
|
3773
|
+
const referencepath_validateLearningsOutput_itemValidationError = validate$R(obj_validateLearningsOutput_item, path_validateLearningsOutput_item);
|
|
3774
3774
|
if (referencepath_validateLearningsOutput_itemValidationError !== null) {
|
|
3775
3775
|
let message = 'Object doesn\'t match LearningFoundationItemValidationOutput (at "' + path_validateLearningsOutput_item + '")\n';
|
|
3776
3776
|
message += referencepath_validateLearningsOutput_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3780,62 +3780,62 @@ function validate$O(obj, path = 'LearningFoundationItemValidationOutputRepresent
|
|
|
3780
3780
|
})();
|
|
3781
3781
|
return v_error === undefined ? null : v_error;
|
|
3782
3782
|
}
|
|
3783
|
-
const RepresentationType$
|
|
3784
|
-
function normalize$
|
|
3783
|
+
const RepresentationType$g = 'LearningFoundationItemValidationOutputRepresentation';
|
|
3784
|
+
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
3785
3785
|
return input;
|
|
3786
3786
|
}
|
|
3787
|
-
const select$
|
|
3787
|
+
const select$L = function LearningFoundationItemValidationOutputRepresentationSelect() {
|
|
3788
3788
|
return {
|
|
3789
3789
|
kind: 'Fragment',
|
|
3790
|
-
version: VERSION$
|
|
3790
|
+
version: VERSION$t,
|
|
3791
3791
|
private: [],
|
|
3792
3792
|
opaque: true
|
|
3793
3793
|
};
|
|
3794
3794
|
};
|
|
3795
|
-
function equals$
|
|
3795
|
+
function equals$t(existing, incoming) {
|
|
3796
3796
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3797
3797
|
return false;
|
|
3798
3798
|
}
|
|
3799
3799
|
return true;
|
|
3800
3800
|
}
|
|
3801
|
-
const ingest$
|
|
3801
|
+
const ingest$g = function LearningFoundationItemValidationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3802
3802
|
if (process.env.NODE_ENV !== 'production') {
|
|
3803
|
-
const validateError = validate$
|
|
3803
|
+
const validateError = validate$Q(input);
|
|
3804
3804
|
if (validateError !== null) {
|
|
3805
3805
|
throw validateError;
|
|
3806
3806
|
}
|
|
3807
3807
|
}
|
|
3808
3808
|
const key = path.fullPath;
|
|
3809
3809
|
const ttlToUse = TTL$5;
|
|
3810
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3810
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "education", VERSION$t, RepresentationType$g, equals$t);
|
|
3811
3811
|
return createLink(key);
|
|
3812
3812
|
};
|
|
3813
|
-
function getTypeCacheKeys$
|
|
3813
|
+
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
3814
3814
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3815
3815
|
const rootKey = fullPathFactory();
|
|
3816
3816
|
rootKeySet.set(rootKey, {
|
|
3817
3817
|
namespace: keyPrefix,
|
|
3818
|
-
representationName: RepresentationType$
|
|
3818
|
+
representationName: RepresentationType$g,
|
|
3819
3819
|
mergeable: false
|
|
3820
3820
|
});
|
|
3821
3821
|
}
|
|
3822
3822
|
|
|
3823
|
-
function select$
|
|
3824
|
-
return select$
|
|
3823
|
+
function select$K(luvio, params) {
|
|
3824
|
+
return select$L();
|
|
3825
3825
|
}
|
|
3826
|
-
function keyBuilder$
|
|
3826
|
+
function keyBuilder$s(luvio, params) {
|
|
3827
3827
|
return keyPrefix + '::LearningFoundationItemValidationOutputRepresentation:(' + '[' + params.body.learningFoundationItemValidationInputList.map(element => '[' + element.concurrentLearnings.map(element => stableJSONStringify(element)).join(',') + ']' + '::' + 'learningFoundationItemValidationInputList.learningId:' + element.learningId + '::' + '[' + element.precedingLearnings.map(element => stableJSONStringify(element)).join(',') + ']').join(',') + ']' + ')';
|
|
3828
3828
|
}
|
|
3829
|
-
function getResponseCacheKeys$
|
|
3830
|
-
getTypeCacheKeys$
|
|
3829
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
3830
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response, () => keyBuilder$s(luvio, resourceParams));
|
|
3831
3831
|
}
|
|
3832
|
-
function ingestSuccess$
|
|
3832
|
+
function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
3833
3833
|
const { body } = response;
|
|
3834
|
-
const key = keyBuilder$
|
|
3835
|
-
luvio.storeIngest(key, ingest$
|
|
3834
|
+
const key = keyBuilder$s(luvio, resourceParams);
|
|
3835
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
3836
3836
|
const snapshot = luvio.storeLookup({
|
|
3837
3837
|
recordId: key,
|
|
3838
|
-
node: select$
|
|
3838
|
+
node: select$K(),
|
|
3839
3839
|
variables: {},
|
|
3840
3840
|
}, snapshotRefresh);
|
|
3841
3841
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3846,19 +3846,19 @@ function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3846
3846
|
deepFreeze(snapshot.data);
|
|
3847
3847
|
return snapshot;
|
|
3848
3848
|
}
|
|
3849
|
-
function ingestError$
|
|
3850
|
-
const key = keyBuilder$
|
|
3849
|
+
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
3850
|
+
const key = keyBuilder$s(luvio, params);
|
|
3851
3851
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3852
3852
|
const storeMetadataParams = {
|
|
3853
3853
|
ttl: TTL$5,
|
|
3854
3854
|
namespace: keyPrefix,
|
|
3855
|
-
version: VERSION$
|
|
3856
|
-
representationName: RepresentationType$
|
|
3855
|
+
version: VERSION$t,
|
|
3856
|
+
representationName: RepresentationType$g
|
|
3857
3857
|
};
|
|
3858
3858
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
3859
3859
|
return errorSnapshot;
|
|
3860
3860
|
}
|
|
3861
|
-
function createResourceRequest$
|
|
3861
|
+
function createResourceRequest$h(config) {
|
|
3862
3862
|
const headers = {};
|
|
3863
3863
|
return {
|
|
3864
3864
|
baseUri: '/services/data/v66.0',
|
|
@@ -3872,24 +3872,24 @@ function createResourceRequest$g(config) {
|
|
|
3872
3872
|
};
|
|
3873
3873
|
}
|
|
3874
3874
|
|
|
3875
|
-
const adapterName$
|
|
3875
|
+
const adapterName$h = 'postValidateLearningFoundationList';
|
|
3876
3876
|
const postValidateLearningFoundationList_ConfigPropertyMetadata = [
|
|
3877
3877
|
generateParamConfigMetadata('learningFoundationItemValidationInputList', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
3878
3878
|
];
|
|
3879
|
-
const postValidateLearningFoundationList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3880
|
-
const createResourceParams$
|
|
3881
|
-
function keyBuilder$
|
|
3882
|
-
const resourceParams = createResourceParams$
|
|
3883
|
-
return keyBuilder$
|
|
3879
|
+
const postValidateLearningFoundationList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, postValidateLearningFoundationList_ConfigPropertyMetadata);
|
|
3880
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$q(postValidateLearningFoundationList_ConfigPropertyMetadata);
|
|
3881
|
+
function keyBuilder$r(luvio, config) {
|
|
3882
|
+
const resourceParams = createResourceParams$h(config);
|
|
3883
|
+
return keyBuilder$s(luvio, resourceParams);
|
|
3884
3884
|
}
|
|
3885
|
-
function typeCheckConfig$
|
|
3885
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
3886
3886
|
const config = {};
|
|
3887
3887
|
const untrustedConfig_learningFoundationItemValidationInputList = untrustedConfig.learningFoundationItemValidationInputList;
|
|
3888
3888
|
if (ArrayIsArray$1(untrustedConfig_learningFoundationItemValidationInputList)) {
|
|
3889
3889
|
const untrustedConfig_learningFoundationItemValidationInputList_array = [];
|
|
3890
3890
|
for (let i = 0, arrayLength = untrustedConfig_learningFoundationItemValidationInputList.length; i < arrayLength; i++) {
|
|
3891
3891
|
const untrustedConfig_learningFoundationItemValidationInputList_item = untrustedConfig_learningFoundationItemValidationInputList[i];
|
|
3892
|
-
const referenceLearningFoundationItemValidationInputValidationError = validate$
|
|
3892
|
+
const referenceLearningFoundationItemValidationInputValidationError = validate$S(untrustedConfig_learningFoundationItemValidationInputList_item);
|
|
3893
3893
|
if (referenceLearningFoundationItemValidationInputValidationError === null) {
|
|
3894
3894
|
untrustedConfig_learningFoundationItemValidationInputList_array.push(untrustedConfig_learningFoundationItemValidationInputList_item);
|
|
3895
3895
|
}
|
|
@@ -3898,78 +3898,78 @@ function typeCheckConfig$g(untrustedConfig) {
|
|
|
3898
3898
|
}
|
|
3899
3899
|
return config;
|
|
3900
3900
|
}
|
|
3901
|
-
function validateAdapterConfig$
|
|
3901
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
3902
3902
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3903
3903
|
return null;
|
|
3904
3904
|
}
|
|
3905
3905
|
if (process.env.NODE_ENV !== 'production') {
|
|
3906
3906
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3907
3907
|
}
|
|
3908
|
-
const config = typeCheckConfig$
|
|
3908
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
3909
3909
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3910
3910
|
return null;
|
|
3911
3911
|
}
|
|
3912
3912
|
return config;
|
|
3913
3913
|
}
|
|
3914
|
-
function adapterFragment$
|
|
3915
|
-
createResourceParams$
|
|
3916
|
-
return select$
|
|
3914
|
+
function adapterFragment$b(luvio, config) {
|
|
3915
|
+
createResourceParams$h(config);
|
|
3916
|
+
return select$K();
|
|
3917
3917
|
}
|
|
3918
|
-
function onFetchResponseSuccess$
|
|
3919
|
-
const snapshot = ingestSuccess$
|
|
3918
|
+
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
3919
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
|
|
3920
3920
|
config,
|
|
3921
|
-
resolve: () => buildNetworkSnapshot$
|
|
3921
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
3922
3922
|
});
|
|
3923
3923
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3924
3924
|
}
|
|
3925
|
-
function onFetchResponseError$
|
|
3926
|
-
const snapshot = ingestError$
|
|
3925
|
+
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
3926
|
+
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
3927
3927
|
config,
|
|
3928
|
-
resolve: () => buildNetworkSnapshot$
|
|
3928
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
3929
3929
|
});
|
|
3930
3930
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3931
3931
|
}
|
|
3932
|
-
function buildNetworkSnapshot$
|
|
3933
|
-
const resourceParams = createResourceParams$
|
|
3934
|
-
const request = createResourceRequest$
|
|
3932
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
3933
|
+
const resourceParams = createResourceParams$h(config);
|
|
3934
|
+
const request = createResourceRequest$h(resourceParams);
|
|
3935
3935
|
return luvio.dispatchResourceRequest(request, options)
|
|
3936
3936
|
.then((response) => {
|
|
3937
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3937
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
|
|
3938
3938
|
const cache = new StoreKeyMap();
|
|
3939
|
-
getResponseCacheKeys$
|
|
3939
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
3940
3940
|
return cache;
|
|
3941
3941
|
});
|
|
3942
3942
|
}, (response) => {
|
|
3943
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3943
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$b(luvio, config, resourceParams, response));
|
|
3944
3944
|
});
|
|
3945
3945
|
}
|
|
3946
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3947
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3946
|
+
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
3947
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, 'get', false);
|
|
3948
3948
|
}
|
|
3949
|
-
function buildCachedSnapshotCachePolicy$
|
|
3949
|
+
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
3950
3950
|
const { luvio, config } = context;
|
|
3951
3951
|
const selector = {
|
|
3952
|
-
recordId: keyBuilder$
|
|
3953
|
-
node: adapterFragment$
|
|
3952
|
+
recordId: keyBuilder$r(luvio, config),
|
|
3953
|
+
node: adapterFragment$b(luvio, config),
|
|
3954
3954
|
variables: {},
|
|
3955
3955
|
};
|
|
3956
3956
|
const cacheSnapshot = storeLookup(selector, {
|
|
3957
3957
|
config,
|
|
3958
|
-
resolve: () => buildNetworkSnapshot$
|
|
3958
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
3959
3959
|
});
|
|
3960
3960
|
return cacheSnapshot;
|
|
3961
3961
|
}
|
|
3962
3962
|
const postValidateLearningFoundationListAdapterFactory = (luvio) => function education__postValidateLearningFoundationList(untrustedConfig, requestContext) {
|
|
3963
|
-
const config = validateAdapterConfig$
|
|
3963
|
+
const config = validateAdapterConfig$h(untrustedConfig, postValidateLearningFoundationList_ConfigPropertyNames);
|
|
3964
3964
|
// Invalid or incomplete config
|
|
3965
3965
|
if (config === null) {
|
|
3966
3966
|
return null;
|
|
3967
3967
|
}
|
|
3968
3968
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3969
|
-
buildCachedSnapshotCachePolicy$
|
|
3969
|
+
buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
|
|
3970
3970
|
};
|
|
3971
3971
|
|
|
3972
|
-
function validate$
|
|
3972
|
+
function validate$P(obj, path = 'Requirement') {
|
|
3973
3973
|
const v_error = (() => {
|
|
3974
3974
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3975
3975
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3988,7 +3988,7 @@ function validate$N(obj, path = 'Requirement') {
|
|
|
3988
3988
|
return v_error === undefined ? null : v_error;
|
|
3989
3989
|
}
|
|
3990
3990
|
|
|
3991
|
-
function validate$
|
|
3991
|
+
function validate$O(obj, path = 'LearningProgramPlanInputRepresentation') {
|
|
3992
3992
|
const v_error = (() => {
|
|
3993
3993
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3994
3994
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4006,7 +4006,7 @@ function validate$M(obj, path = 'LearningProgramPlanInputRepresentation') {
|
|
|
4006
4006
|
for (let i = 0; i < obj_requirement.length; i++) {
|
|
4007
4007
|
const obj_requirement_item = obj_requirement[i];
|
|
4008
4008
|
const path_requirement_item = path_requirement + '[' + i + ']';
|
|
4009
|
-
const referencepath_requirement_itemValidationError = validate$
|
|
4009
|
+
const referencepath_requirement_itemValidationError = validate$P(obj_requirement_item, path_requirement_item);
|
|
4010
4010
|
if (referencepath_requirement_itemValidationError !== null) {
|
|
4011
4011
|
let message = 'Object doesn\'t match Requirement (at "' + path_requirement_item + '")\n';
|
|
4012
4012
|
message += referencepath_requirement_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4018,8 +4018,8 @@ function validate$M(obj, path = 'LearningProgramPlanInputRepresentation') {
|
|
|
4018
4018
|
}
|
|
4019
4019
|
|
|
4020
4020
|
const TTL$4 = 100;
|
|
4021
|
-
const VERSION$
|
|
4022
|
-
function validate$
|
|
4021
|
+
const VERSION$s = "0218a0ed0a2278eb0405096372ffa5de";
|
|
4022
|
+
function validate$N(obj, path = 'LearningProgramPlanOutputRepresentation') {
|
|
4023
4023
|
const v_error = (() => {
|
|
4024
4024
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4025
4025
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4032,68 +4032,68 @@ function validate$L(obj, path = 'LearningProgramPlanOutputRepresentation') {
|
|
|
4032
4032
|
})();
|
|
4033
4033
|
return v_error === undefined ? null : v_error;
|
|
4034
4034
|
}
|
|
4035
|
-
const RepresentationType$
|
|
4036
|
-
function keyBuilder$
|
|
4037
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4035
|
+
const RepresentationType$f = 'LearningProgramPlanOutputRepresentation';
|
|
4036
|
+
function keyBuilder$q(luvio, config) {
|
|
4037
|
+
return keyPrefix + '::' + RepresentationType$f + ':' + config.id;
|
|
4038
4038
|
}
|
|
4039
4039
|
function keyBuilderFromType$4(luvio, object) {
|
|
4040
4040
|
const keyParams = {
|
|
4041
4041
|
id: object.learningProgramPlanId
|
|
4042
4042
|
};
|
|
4043
|
-
return keyBuilder$
|
|
4043
|
+
return keyBuilder$q(luvio, keyParams);
|
|
4044
4044
|
}
|
|
4045
|
-
function normalize$
|
|
4045
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
4046
4046
|
return input;
|
|
4047
4047
|
}
|
|
4048
|
-
const select$
|
|
4048
|
+
const select$J = function LearningProgramPlanOutputRepresentationSelect() {
|
|
4049
4049
|
return {
|
|
4050
4050
|
kind: 'Fragment',
|
|
4051
|
-
version: VERSION$
|
|
4051
|
+
version: VERSION$s,
|
|
4052
4052
|
private: [],
|
|
4053
4053
|
opaque: true
|
|
4054
4054
|
};
|
|
4055
4055
|
};
|
|
4056
|
-
function equals$
|
|
4056
|
+
function equals$s(existing, incoming) {
|
|
4057
4057
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4058
4058
|
return false;
|
|
4059
4059
|
}
|
|
4060
4060
|
return true;
|
|
4061
4061
|
}
|
|
4062
|
-
const ingest$
|
|
4062
|
+
const ingest$f = function LearningProgramPlanOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4063
4063
|
if (process.env.NODE_ENV !== 'production') {
|
|
4064
|
-
const validateError = validate$
|
|
4064
|
+
const validateError = validate$N(input);
|
|
4065
4065
|
if (validateError !== null) {
|
|
4066
4066
|
throw validateError;
|
|
4067
4067
|
}
|
|
4068
4068
|
}
|
|
4069
4069
|
const key = keyBuilderFromType$4(luvio, input);
|
|
4070
4070
|
const ttlToUse = TTL$4;
|
|
4071
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4071
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "education", VERSION$s, RepresentationType$f, equals$s);
|
|
4072
4072
|
return createLink(key);
|
|
4073
4073
|
};
|
|
4074
|
-
function getTypeCacheKeys$
|
|
4074
|
+
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
4075
4075
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4076
4076
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
4077
4077
|
rootKeySet.set(rootKey, {
|
|
4078
4078
|
namespace: keyPrefix,
|
|
4079
|
-
representationName: RepresentationType$
|
|
4079
|
+
representationName: RepresentationType$f,
|
|
4080
4080
|
mergeable: false
|
|
4081
4081
|
});
|
|
4082
4082
|
}
|
|
4083
4083
|
|
|
4084
|
-
function select$
|
|
4085
|
-
return select$
|
|
4084
|
+
function select$I(luvio, params) {
|
|
4085
|
+
return select$J();
|
|
4086
4086
|
}
|
|
4087
|
-
function getResponseCacheKeys$
|
|
4088
|
-
getTypeCacheKeys$
|
|
4087
|
+
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
4088
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
4089
4089
|
}
|
|
4090
|
-
function ingestSuccess$
|
|
4090
|
+
function ingestSuccess$g(luvio, resourceParams, response) {
|
|
4091
4091
|
const { body } = response;
|
|
4092
4092
|
const key = keyBuilderFromType$4(luvio, body);
|
|
4093
|
-
luvio.storeIngest(key, ingest$
|
|
4093
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
4094
4094
|
const snapshot = luvio.storeLookup({
|
|
4095
4095
|
recordId: key,
|
|
4096
|
-
node: select$
|
|
4096
|
+
node: select$I(),
|
|
4097
4097
|
variables: {},
|
|
4098
4098
|
});
|
|
4099
4099
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4104,7 +4104,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
|
|
|
4104
4104
|
deepFreeze(snapshot.data);
|
|
4105
4105
|
return snapshot;
|
|
4106
4106
|
}
|
|
4107
|
-
function createResourceRequest$
|
|
4107
|
+
function createResourceRequest$g(config) {
|
|
4108
4108
|
const headers = {};
|
|
4109
4109
|
return {
|
|
4110
4110
|
baseUri: '/services/data/v66.0',
|
|
@@ -4118,45 +4118,45 @@ function createResourceRequest$f(config) {
|
|
|
4118
4118
|
};
|
|
4119
4119
|
}
|
|
4120
4120
|
|
|
4121
|
-
const adapterName$
|
|
4121
|
+
const adapterName$g = 'postPublishLearningProgramPlan';
|
|
4122
4122
|
const postPublishLearningProgramPlan_ConfigPropertyMetadata = [
|
|
4123
4123
|
generateParamConfigMetadata('publishLearningProgramPlan', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4124
4124
|
];
|
|
4125
|
-
const postPublishLearningProgramPlan_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4126
|
-
const createResourceParams$
|
|
4127
|
-
function typeCheckConfig$
|
|
4125
|
+
const postPublishLearningProgramPlan_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, postPublishLearningProgramPlan_ConfigPropertyMetadata);
|
|
4126
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$q(postPublishLearningProgramPlan_ConfigPropertyMetadata);
|
|
4127
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
4128
4128
|
const config = {};
|
|
4129
4129
|
const untrustedConfig_publishLearningProgramPlan = untrustedConfig.publishLearningProgramPlan;
|
|
4130
|
-
const referenceLearningProgramPlanInputRepresentationValidationError = validate$
|
|
4130
|
+
const referenceLearningProgramPlanInputRepresentationValidationError = validate$O(untrustedConfig_publishLearningProgramPlan);
|
|
4131
4131
|
if (referenceLearningProgramPlanInputRepresentationValidationError === null) {
|
|
4132
4132
|
config.publishLearningProgramPlan = untrustedConfig_publishLearningProgramPlan;
|
|
4133
4133
|
}
|
|
4134
4134
|
return config;
|
|
4135
4135
|
}
|
|
4136
|
-
function validateAdapterConfig$
|
|
4136
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
4137
4137
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4138
4138
|
return null;
|
|
4139
4139
|
}
|
|
4140
4140
|
if (process.env.NODE_ENV !== 'production') {
|
|
4141
4141
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4142
4142
|
}
|
|
4143
|
-
const config = typeCheckConfig$
|
|
4143
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
4144
4144
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4145
4145
|
return null;
|
|
4146
4146
|
}
|
|
4147
4147
|
return config;
|
|
4148
4148
|
}
|
|
4149
|
-
function buildNetworkSnapshot$
|
|
4150
|
-
const resourceParams = createResourceParams$
|
|
4151
|
-
const request = createResourceRequest$
|
|
4149
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
4150
|
+
const resourceParams = createResourceParams$g(config);
|
|
4151
|
+
const request = createResourceRequest$g(resourceParams);
|
|
4152
4152
|
return luvio.dispatchResourceRequest(request, options)
|
|
4153
4153
|
.then((response) => {
|
|
4154
4154
|
return luvio.handleSuccessResponse(() => {
|
|
4155
|
-
const snapshot = ingestSuccess$
|
|
4155
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response);
|
|
4156
4156
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4157
4157
|
}, () => {
|
|
4158
4158
|
const cache = new StoreKeyMap();
|
|
4159
|
-
getResponseCacheKeys$
|
|
4159
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
|
|
4160
4160
|
return cache;
|
|
4161
4161
|
});
|
|
4162
4162
|
}, (response) => {
|
|
@@ -4166,17 +4166,17 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
4166
4166
|
}
|
|
4167
4167
|
const postPublishLearningProgramPlanAdapterFactory = (luvio) => {
|
|
4168
4168
|
return function postPublishLearningProgramPlan(untrustedConfig) {
|
|
4169
|
-
const config = validateAdapterConfig$
|
|
4169
|
+
const config = validateAdapterConfig$g(untrustedConfig, postPublishLearningProgramPlan_ConfigPropertyNames);
|
|
4170
4170
|
// Invalid or incomplete config
|
|
4171
4171
|
if (config === null) {
|
|
4172
4172
|
throw new Error('Invalid config for "postPublishLearningProgramPlan"');
|
|
4173
4173
|
}
|
|
4174
|
-
return buildNetworkSnapshot$
|
|
4174
|
+
return buildNetworkSnapshot$g(luvio, config);
|
|
4175
4175
|
};
|
|
4176
4176
|
};
|
|
4177
4177
|
|
|
4178
|
-
const VERSION$
|
|
4179
|
-
function validate$
|
|
4178
|
+
const VERSION$r = "201f86357276cc8ed2ee9d7f51616b64";
|
|
4179
|
+
function validate$M(obj, path = 'PreviewLearningProgramPlanOutputRepresentation') {
|
|
4180
4180
|
const v_error = (() => {
|
|
4181
4181
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4182
4182
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4209,7 +4209,7 @@ function validate$K(obj, path = 'PreviewLearningProgramPlanOutputRepresentation'
|
|
|
4209
4209
|
for (let i = 0; i < obj_programPlanRequirements.length; i++) {
|
|
4210
4210
|
const obj_programPlanRequirements_item = obj_programPlanRequirements[i];
|
|
4211
4211
|
const path_programPlanRequirements_item = path_programPlanRequirements + '[' + i + ']';
|
|
4212
|
-
const referencepath_programPlanRequirements_itemValidationError = validate$
|
|
4212
|
+
const referencepath_programPlanRequirements_itemValidationError = validate$W(obj_programPlanRequirements_item, path_programPlanRequirements_item);
|
|
4213
4213
|
if (referencepath_programPlanRequirements_itemValidationError !== null) {
|
|
4214
4214
|
let message = 'Object doesn\'t match LearningProgramPlanRequirementOutput (at "' + path_programPlanRequirements_item + '")\n';
|
|
4215
4215
|
message += referencepath_programPlanRequirements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4220,62 +4220,62 @@ function validate$K(obj, path = 'PreviewLearningProgramPlanOutputRepresentation'
|
|
|
4220
4220
|
})();
|
|
4221
4221
|
return v_error === undefined ? null : v_error;
|
|
4222
4222
|
}
|
|
4223
|
-
const RepresentationType$
|
|
4224
|
-
function normalize$
|
|
4223
|
+
const RepresentationType$e = 'PreviewLearningProgramPlanOutputRepresentation';
|
|
4224
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
4225
4225
|
return input;
|
|
4226
4226
|
}
|
|
4227
|
-
const select$
|
|
4227
|
+
const select$H = function PreviewLearningProgramPlanOutputRepresentationSelect() {
|
|
4228
4228
|
return {
|
|
4229
4229
|
kind: 'Fragment',
|
|
4230
|
-
version: VERSION$
|
|
4230
|
+
version: VERSION$r,
|
|
4231
4231
|
private: [],
|
|
4232
4232
|
opaque: true
|
|
4233
4233
|
};
|
|
4234
4234
|
};
|
|
4235
|
-
function equals$
|
|
4235
|
+
function equals$r(existing, incoming) {
|
|
4236
4236
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4237
4237
|
return false;
|
|
4238
4238
|
}
|
|
4239
4239
|
return true;
|
|
4240
4240
|
}
|
|
4241
|
-
const ingest$
|
|
4241
|
+
const ingest$e = function PreviewLearningProgramPlanOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4242
4242
|
if (process.env.NODE_ENV !== 'production') {
|
|
4243
|
-
const validateError = validate$
|
|
4243
|
+
const validateError = validate$M(input);
|
|
4244
4244
|
if (validateError !== null) {
|
|
4245
4245
|
throw validateError;
|
|
4246
4246
|
}
|
|
4247
4247
|
}
|
|
4248
4248
|
const key = path.fullPath;
|
|
4249
4249
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
4250
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4250
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "education", VERSION$r, RepresentationType$e, equals$r);
|
|
4251
4251
|
return createLink(key);
|
|
4252
4252
|
};
|
|
4253
|
-
function getTypeCacheKeys$
|
|
4253
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
4254
4254
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4255
4255
|
const rootKey = fullPathFactory();
|
|
4256
4256
|
rootKeySet.set(rootKey, {
|
|
4257
4257
|
namespace: keyPrefix,
|
|
4258
|
-
representationName: RepresentationType$
|
|
4258
|
+
representationName: RepresentationType$e,
|
|
4259
4259
|
mergeable: false
|
|
4260
4260
|
});
|
|
4261
4261
|
}
|
|
4262
4262
|
|
|
4263
|
-
function select$
|
|
4264
|
-
return select$
|
|
4263
|
+
function select$G(luvio, params) {
|
|
4264
|
+
return select$H();
|
|
4265
4265
|
}
|
|
4266
|
-
function keyBuilder$
|
|
4266
|
+
function keyBuilder$p(luvio, params) {
|
|
4267
4267
|
return keyPrefix + '::PreviewLearningProgramPlanOutputRepresentation:(' + 'learningProgramPlanId:' + params.urlParams.learningProgramPlanId + ')';
|
|
4268
4268
|
}
|
|
4269
|
-
function getResponseCacheKeys$
|
|
4270
|
-
getTypeCacheKeys$
|
|
4269
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
4270
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response, () => keyBuilder$p(luvio, resourceParams));
|
|
4271
4271
|
}
|
|
4272
|
-
function ingestSuccess$
|
|
4272
|
+
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
4273
4273
|
const { body } = response;
|
|
4274
|
-
const key = keyBuilder$
|
|
4275
|
-
luvio.storeIngest(key, ingest$
|
|
4274
|
+
const key = keyBuilder$p(luvio, resourceParams);
|
|
4275
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
4276
4276
|
const snapshot = luvio.storeLookup({
|
|
4277
4277
|
recordId: key,
|
|
4278
|
-
node: select$
|
|
4278
|
+
node: select$G(),
|
|
4279
4279
|
variables: {},
|
|
4280
4280
|
}, snapshotRefresh);
|
|
4281
4281
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4286,13 +4286,13 @@ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4286
4286
|
deepFreeze(snapshot.data);
|
|
4287
4287
|
return snapshot;
|
|
4288
4288
|
}
|
|
4289
|
-
function ingestError$
|
|
4290
|
-
const key = keyBuilder$
|
|
4289
|
+
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
4290
|
+
const key = keyBuilder$p(luvio, params);
|
|
4291
4291
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4292
4292
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4293
4293
|
return errorSnapshot;
|
|
4294
4294
|
}
|
|
4295
|
-
function createResourceRequest$
|
|
4295
|
+
function createResourceRequest$f(config) {
|
|
4296
4296
|
const headers = {};
|
|
4297
4297
|
return {
|
|
4298
4298
|
baseUri: '/services/data/v66.0',
|
|
@@ -4306,93 +4306,93 @@ function createResourceRequest$e(config) {
|
|
|
4306
4306
|
};
|
|
4307
4307
|
}
|
|
4308
4308
|
|
|
4309
|
-
const adapterName$
|
|
4309
|
+
const adapterName$f = 'getPreviewLearningProgramPlan';
|
|
4310
4310
|
const getPreviewLearningProgramPlan_ConfigPropertyMetadata = [
|
|
4311
4311
|
generateParamConfigMetadata('learningProgramPlanId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4312
4312
|
];
|
|
4313
|
-
const getPreviewLearningProgramPlan_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4314
|
-
const createResourceParams$
|
|
4315
|
-
function keyBuilder$
|
|
4316
|
-
const resourceParams = createResourceParams$
|
|
4317
|
-
return keyBuilder$
|
|
4313
|
+
const getPreviewLearningProgramPlan_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getPreviewLearningProgramPlan_ConfigPropertyMetadata);
|
|
4314
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$q(getPreviewLearningProgramPlan_ConfigPropertyMetadata);
|
|
4315
|
+
function keyBuilder$o(luvio, config) {
|
|
4316
|
+
const resourceParams = createResourceParams$f(config);
|
|
4317
|
+
return keyBuilder$p(luvio, resourceParams);
|
|
4318
4318
|
}
|
|
4319
|
-
function typeCheckConfig$
|
|
4319
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
4320
4320
|
const config = {};
|
|
4321
|
-
typeCheckConfig$
|
|
4321
|
+
typeCheckConfig$q(untrustedConfig, config, getPreviewLearningProgramPlan_ConfigPropertyMetadata);
|
|
4322
4322
|
return config;
|
|
4323
4323
|
}
|
|
4324
|
-
function validateAdapterConfig$
|
|
4324
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
4325
4325
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4326
4326
|
return null;
|
|
4327
4327
|
}
|
|
4328
4328
|
if (process.env.NODE_ENV !== 'production') {
|
|
4329
4329
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4330
4330
|
}
|
|
4331
|
-
const config = typeCheckConfig$
|
|
4331
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
4332
4332
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4333
4333
|
return null;
|
|
4334
4334
|
}
|
|
4335
4335
|
return config;
|
|
4336
4336
|
}
|
|
4337
|
-
function adapterFragment$
|
|
4338
|
-
createResourceParams$
|
|
4339
|
-
return select$
|
|
4337
|
+
function adapterFragment$a(luvio, config) {
|
|
4338
|
+
createResourceParams$f(config);
|
|
4339
|
+
return select$G();
|
|
4340
4340
|
}
|
|
4341
|
-
function onFetchResponseSuccess$
|
|
4342
|
-
const snapshot = ingestSuccess$
|
|
4341
|
+
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
4342
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
|
|
4343
4343
|
config,
|
|
4344
|
-
resolve: () => buildNetworkSnapshot$
|
|
4344
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
4345
4345
|
});
|
|
4346
4346
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4347
4347
|
}
|
|
4348
|
-
function onFetchResponseError$
|
|
4349
|
-
const snapshot = ingestError$
|
|
4348
|
+
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
4349
|
+
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
4350
4350
|
config,
|
|
4351
|
-
resolve: () => buildNetworkSnapshot$
|
|
4351
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
4352
4352
|
});
|
|
4353
4353
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4354
4354
|
}
|
|
4355
|
-
function buildNetworkSnapshot$
|
|
4356
|
-
const resourceParams = createResourceParams$
|
|
4357
|
-
const request = createResourceRequest$
|
|
4355
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
4356
|
+
const resourceParams = createResourceParams$f(config);
|
|
4357
|
+
const request = createResourceRequest$f(resourceParams);
|
|
4358
4358
|
return luvio.dispatchResourceRequest(request, options)
|
|
4359
4359
|
.then((response) => {
|
|
4360
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4360
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
4361
4361
|
const cache = new StoreKeyMap();
|
|
4362
|
-
getResponseCacheKeys$
|
|
4362
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
4363
4363
|
return cache;
|
|
4364
4364
|
});
|
|
4365
4365
|
}, (response) => {
|
|
4366
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4366
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
|
|
4367
4367
|
});
|
|
4368
4368
|
}
|
|
4369
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4370
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4369
|
+
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
4370
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
4371
4371
|
}
|
|
4372
|
-
function buildCachedSnapshotCachePolicy$
|
|
4372
|
+
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
4373
4373
|
const { luvio, config } = context;
|
|
4374
4374
|
const selector = {
|
|
4375
|
-
recordId: keyBuilder$
|
|
4376
|
-
node: adapterFragment$
|
|
4375
|
+
recordId: keyBuilder$o(luvio, config),
|
|
4376
|
+
node: adapterFragment$a(luvio, config),
|
|
4377
4377
|
variables: {},
|
|
4378
4378
|
};
|
|
4379
4379
|
const cacheSnapshot = storeLookup(selector, {
|
|
4380
4380
|
config,
|
|
4381
|
-
resolve: () => buildNetworkSnapshot$
|
|
4381
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
4382
4382
|
});
|
|
4383
4383
|
return cacheSnapshot;
|
|
4384
4384
|
}
|
|
4385
4385
|
const getPreviewLearningProgramPlanAdapterFactory = (luvio) => function education__getPreviewLearningProgramPlan(untrustedConfig, requestContext) {
|
|
4386
|
-
const config = validateAdapterConfig$
|
|
4386
|
+
const config = validateAdapterConfig$f(untrustedConfig, getPreviewLearningProgramPlan_ConfigPropertyNames);
|
|
4387
4387
|
// Invalid or incomplete config
|
|
4388
4388
|
if (config === null) {
|
|
4389
4389
|
return null;
|
|
4390
4390
|
}
|
|
4391
4391
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4392
|
-
buildCachedSnapshotCachePolicy$
|
|
4392
|
+
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
4393
4393
|
};
|
|
4394
4394
|
|
|
4395
|
-
function validate$
|
|
4395
|
+
function validate$L(obj, path = 'CarePlanTaskInputRepresentation') {
|
|
4396
4396
|
const v_error = (() => {
|
|
4397
4397
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4398
4398
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4457,7 +4457,7 @@ function validate$J(obj, path = 'CarePlanTaskInputRepresentation') {
|
|
|
4457
4457
|
return v_error === undefined ? null : v_error;
|
|
4458
4458
|
}
|
|
4459
4459
|
|
|
4460
|
-
function validate$
|
|
4460
|
+
function validate$K(obj, path = 'BenefitDisbursementForBenefitSessionInputRepresentation') {
|
|
4461
4461
|
const v_error = (() => {
|
|
4462
4462
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4463
4463
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4511,7 +4511,7 @@ function validate$I(obj, path = 'BenefitDisbursementForBenefitSessionInputRepres
|
|
|
4511
4511
|
return v_error === undefined ? null : v_error;
|
|
4512
4512
|
}
|
|
4513
4513
|
|
|
4514
|
-
function validate$
|
|
4514
|
+
function validate$J(obj, path = 'BenefitDisbursementListInputRepresentation') {
|
|
4515
4515
|
const v_error = (() => {
|
|
4516
4516
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4517
4517
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4524,7 +4524,7 @@ function validate$H(obj, path = 'BenefitDisbursementListInputRepresentation') {
|
|
|
4524
4524
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4525
4525
|
const obj_records_item = obj_records[i];
|
|
4526
4526
|
const path_records_item = path_records + '[' + i + ']';
|
|
4527
|
-
const referencepath_records_itemValidationError = validate$
|
|
4527
|
+
const referencepath_records_itemValidationError = validate$K(obj_records_item, path_records_item);
|
|
4528
4528
|
if (referencepath_records_itemValidationError !== null) {
|
|
4529
4529
|
let message = 'Object doesn\'t match BenefitDisbursementForBenefitSessionInputRepresentation (at "' + path_records_item + '")\n';
|
|
4530
4530
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4535,7 +4535,7 @@ function validate$H(obj, path = 'BenefitDisbursementListInputRepresentation') {
|
|
|
4535
4535
|
return v_error === undefined ? null : v_error;
|
|
4536
4536
|
}
|
|
4537
4537
|
|
|
4538
|
-
function validate$
|
|
4538
|
+
function validate$I(obj, path = 'CustomFieldInputRepresentation') {
|
|
4539
4539
|
const v_error = (() => {
|
|
4540
4540
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4541
4541
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4561,7 +4561,7 @@ function validate$G(obj, path = 'CustomFieldInputRepresentation') {
|
|
|
4561
4561
|
return v_error === undefined ? null : v_error;
|
|
4562
4562
|
}
|
|
4563
4563
|
|
|
4564
|
-
function validate$
|
|
4564
|
+
function validate$H(obj, path = 'CustomFieldListInputRepresentation') {
|
|
4565
4565
|
const v_error = (() => {
|
|
4566
4566
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4567
4567
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4574,7 +4574,7 @@ function validate$F(obj, path = 'CustomFieldListInputRepresentation') {
|
|
|
4574
4574
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4575
4575
|
const obj_records_item = obj_records[i];
|
|
4576
4576
|
const path_records_item = path_records + '[' + i + ']';
|
|
4577
|
-
const referencepath_records_itemValidationError = validate$
|
|
4577
|
+
const referencepath_records_itemValidationError = validate$I(obj_records_item, path_records_item);
|
|
4578
4578
|
if (referencepath_records_itemValidationError !== null) {
|
|
4579
4579
|
let message = 'Object doesn\'t match CustomFieldInputRepresentation (at "' + path_records_item + '")\n';
|
|
4580
4580
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4585,7 +4585,7 @@ function validate$F(obj, path = 'CustomFieldListInputRepresentation') {
|
|
|
4585
4585
|
return v_error === undefined ? null : v_error;
|
|
4586
4586
|
}
|
|
4587
4587
|
|
|
4588
|
-
function validate$
|
|
4588
|
+
function validate$G(obj, path = 'BenefitAssignmentInputRepresentation') {
|
|
4589
4589
|
const v_error = (() => {
|
|
4590
4590
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4591
4591
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4593,7 +4593,7 @@ function validate$E(obj, path = 'BenefitAssignmentInputRepresentation') {
|
|
|
4593
4593
|
if (obj.benefitAssignmentTasks !== undefined) {
|
|
4594
4594
|
const obj_benefitAssignmentTasks = obj.benefitAssignmentTasks;
|
|
4595
4595
|
const path_benefitAssignmentTasks = path + '.benefitAssignmentTasks';
|
|
4596
|
-
const referencepath_benefitAssignmentTasksValidationError = validate$
|
|
4596
|
+
const referencepath_benefitAssignmentTasksValidationError = validate$L(obj_benefitAssignmentTasks, path_benefitAssignmentTasks);
|
|
4597
4597
|
if (referencepath_benefitAssignmentTasksValidationError !== null) {
|
|
4598
4598
|
let message = 'Object doesn\'t match CarePlanTaskInputRepresentation (at "' + path_benefitAssignmentTasks + '")\n';
|
|
4599
4599
|
message += referencepath_benefitAssignmentTasksValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4603,7 +4603,7 @@ function validate$E(obj, path = 'BenefitAssignmentInputRepresentation') {
|
|
|
4603
4603
|
if (obj.benefitDisbursements !== undefined) {
|
|
4604
4604
|
const obj_benefitDisbursements = obj.benefitDisbursements;
|
|
4605
4605
|
const path_benefitDisbursements = path + '.benefitDisbursements';
|
|
4606
|
-
const referencepath_benefitDisbursementsValidationError = validate$
|
|
4606
|
+
const referencepath_benefitDisbursementsValidationError = validate$J(obj_benefitDisbursements, path_benefitDisbursements);
|
|
4607
4607
|
if (referencepath_benefitDisbursementsValidationError !== null) {
|
|
4608
4608
|
let message = 'Object doesn\'t match BenefitDisbursementListInputRepresentation (at "' + path_benefitDisbursements + '")\n';
|
|
4609
4609
|
message += referencepath_benefitDisbursementsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4625,7 +4625,7 @@ function validate$E(obj, path = 'BenefitAssignmentInputRepresentation') {
|
|
|
4625
4625
|
if (obj.customFields !== undefined) {
|
|
4626
4626
|
const obj_customFields = obj.customFields;
|
|
4627
4627
|
const path_customFields = path + '.customFields';
|
|
4628
|
-
const referencepath_customFieldsValidationError = validate$
|
|
4628
|
+
const referencepath_customFieldsValidationError = validate$H(obj_customFields, path_customFields);
|
|
4629
4629
|
if (referencepath_customFieldsValidationError !== null) {
|
|
4630
4630
|
let message = 'Object doesn\'t match CustomFieldListInputRepresentation (at "' + path_customFields + '")\n';
|
|
4631
4631
|
message += referencepath_customFieldsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4696,7 +4696,7 @@ function validate$E(obj, path = 'BenefitAssignmentInputRepresentation') {
|
|
|
4696
4696
|
return v_error === undefined ? null : v_error;
|
|
4697
4697
|
}
|
|
4698
4698
|
|
|
4699
|
-
function validate$
|
|
4699
|
+
function validate$F(obj, path = 'BenefitAssignmentListInputRepresentation') {
|
|
4700
4700
|
const v_error = (() => {
|
|
4701
4701
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4702
4702
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4709,7 +4709,7 @@ function validate$D(obj, path = 'BenefitAssignmentListInputRepresentation') {
|
|
|
4709
4709
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4710
4710
|
const obj_records_item = obj_records[i];
|
|
4711
4711
|
const path_records_item = path_records + '[' + i + ']';
|
|
4712
|
-
const referencepath_records_itemValidationError = validate$
|
|
4712
|
+
const referencepath_records_itemValidationError = validate$G(obj_records_item, path_records_item);
|
|
4713
4713
|
if (referencepath_records_itemValidationError !== null) {
|
|
4714
4714
|
let message = 'Object doesn\'t match BenefitAssignmentInputRepresentation (at "' + path_records_item + '")\n';
|
|
4715
4715
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4720,7 +4720,7 @@ function validate$D(obj, path = 'BenefitAssignmentListInputRepresentation') {
|
|
|
4720
4720
|
return v_error === undefined ? null : v_error;
|
|
4721
4721
|
}
|
|
4722
4722
|
|
|
4723
|
-
function validate$
|
|
4723
|
+
function validate$E(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
4724
4724
|
const v_error = (() => {
|
|
4725
4725
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4726
4726
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4728,7 +4728,7 @@ function validate$C(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
|
4728
4728
|
if (obj.associatedBenefitAssignments !== undefined) {
|
|
4729
4729
|
const obj_associatedBenefitAssignments = obj.associatedBenefitAssignments;
|
|
4730
4730
|
const path_associatedBenefitAssignments = path + '.associatedBenefitAssignments';
|
|
4731
|
-
const referencepath_associatedBenefitAssignmentsValidationError = validate$
|
|
4731
|
+
const referencepath_associatedBenefitAssignmentsValidationError = validate$F(obj_associatedBenefitAssignments, path_associatedBenefitAssignments);
|
|
4732
4732
|
if (referencepath_associatedBenefitAssignmentsValidationError !== null) {
|
|
4733
4733
|
let message = 'Object doesn\'t match BenefitAssignmentListInputRepresentation (at "' + path_associatedBenefitAssignments + '")\n';
|
|
4734
4734
|
message += referencepath_associatedBenefitAssignmentsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4738,7 +4738,7 @@ function validate$C(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
|
4738
4738
|
if (obj.associatedSubGoalAssignments !== undefined) {
|
|
4739
4739
|
const obj_associatedSubGoalAssignments = obj.associatedSubGoalAssignments;
|
|
4740
4740
|
const path_associatedSubGoalAssignments = path + '.associatedSubGoalAssignments';
|
|
4741
|
-
const referencepath_associatedSubGoalAssignmentsValidationError = validate$
|
|
4741
|
+
const referencepath_associatedSubGoalAssignmentsValidationError = validate$D(obj_associatedSubGoalAssignments, path_associatedSubGoalAssignments);
|
|
4742
4742
|
if (referencepath_associatedSubGoalAssignmentsValidationError !== null) {
|
|
4743
4743
|
let message = 'Object doesn\'t match GoalAssignmentListInputRepresentation (at "' + path_associatedSubGoalAssignments + '")\n';
|
|
4744
4744
|
message += referencepath_associatedSubGoalAssignmentsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4758,7 +4758,7 @@ function validate$C(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
|
4758
4758
|
if (obj.customFields !== undefined) {
|
|
4759
4759
|
const obj_customFields = obj.customFields;
|
|
4760
4760
|
const path_customFields = path + '.customFields';
|
|
4761
|
-
const referencepath_customFieldsValidationError = validate$
|
|
4761
|
+
const referencepath_customFieldsValidationError = validate$H(obj_customFields, path_customFields);
|
|
4762
4762
|
if (referencepath_customFieldsValidationError !== null) {
|
|
4763
4763
|
let message = 'Object doesn\'t match CustomFieldListInputRepresentation (at "' + path_customFields + '")\n';
|
|
4764
4764
|
message += referencepath_customFieldsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4782,7 +4782,7 @@ function validate$C(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
|
4782
4782
|
if (obj.goalAssignmentTasks !== undefined) {
|
|
4783
4783
|
const obj_goalAssignmentTasks = obj.goalAssignmentTasks;
|
|
4784
4784
|
const path_goalAssignmentTasks = path + '.goalAssignmentTasks';
|
|
4785
|
-
const referencepath_goalAssignmentTasksValidationError = validate$
|
|
4785
|
+
const referencepath_goalAssignmentTasksValidationError = validate$L(obj_goalAssignmentTasks, path_goalAssignmentTasks);
|
|
4786
4786
|
if (referencepath_goalAssignmentTasksValidationError !== null) {
|
|
4787
4787
|
let message = 'Object doesn\'t match CarePlanTaskInputRepresentation (at "' + path_goalAssignmentTasks + '")\n';
|
|
4788
4788
|
message += referencepath_goalAssignmentTasksValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4833,7 +4833,7 @@ function validate$C(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
|
4833
4833
|
return v_error === undefined ? null : v_error;
|
|
4834
4834
|
}
|
|
4835
4835
|
|
|
4836
|
-
function validate$
|
|
4836
|
+
function validate$D(obj, path = 'GoalAssignmentListInputRepresentation') {
|
|
4837
4837
|
const v_error = (() => {
|
|
4838
4838
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4839
4839
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4846,7 +4846,7 @@ function validate$B(obj, path = 'GoalAssignmentListInputRepresentation') {
|
|
|
4846
4846
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4847
4847
|
const obj_records_item = obj_records[i];
|
|
4848
4848
|
const path_records_item = path_records + '[' + i + ']';
|
|
4849
|
-
const referencepath_records_itemValidationError = validate$
|
|
4849
|
+
const referencepath_records_itemValidationError = validate$E(obj_records_item, path_records_item);
|
|
4850
4850
|
if (referencepath_records_itemValidationError !== null) {
|
|
4851
4851
|
let message = 'Object doesn\'t match GoalAssignmentInputRepresentation (at "' + path_records_item + '")\n';
|
|
4852
4852
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4857,7 +4857,7 @@ function validate$B(obj, path = 'GoalAssignmentListInputRepresentation') {
|
|
|
4857
4857
|
return v_error === undefined ? null : v_error;
|
|
4858
4858
|
}
|
|
4859
4859
|
|
|
4860
|
-
function validate$
|
|
4860
|
+
function validate$C(obj, path = 'CarePlanInputRepresentation') {
|
|
4861
4861
|
const v_error = (() => {
|
|
4862
4862
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4863
4863
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4865,7 +4865,7 @@ function validate$A(obj, path = 'CarePlanInputRepresentation') {
|
|
|
4865
4865
|
if (obj.benefitAssignments !== undefined) {
|
|
4866
4866
|
const obj_benefitAssignments = obj.benefitAssignments;
|
|
4867
4867
|
const path_benefitAssignments = path + '.benefitAssignments';
|
|
4868
|
-
const referencepath_benefitAssignmentsValidationError = validate$
|
|
4868
|
+
const referencepath_benefitAssignmentsValidationError = validate$F(obj_benefitAssignments, path_benefitAssignments);
|
|
4869
4869
|
if (referencepath_benefitAssignmentsValidationError !== null) {
|
|
4870
4870
|
let message = 'Object doesn\'t match BenefitAssignmentListInputRepresentation (at "' + path_benefitAssignments + '")\n';
|
|
4871
4871
|
message += referencepath_benefitAssignmentsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4875,7 +4875,7 @@ function validate$A(obj, path = 'CarePlanInputRepresentation') {
|
|
|
4875
4875
|
if (obj.carePlanTasks !== undefined) {
|
|
4876
4876
|
const obj_carePlanTasks = obj.carePlanTasks;
|
|
4877
4877
|
const path_carePlanTasks = path + '.carePlanTasks';
|
|
4878
|
-
const referencepath_carePlanTasksValidationError = validate$
|
|
4878
|
+
const referencepath_carePlanTasksValidationError = validate$L(obj_carePlanTasks, path_carePlanTasks);
|
|
4879
4879
|
if (referencepath_carePlanTasksValidationError !== null) {
|
|
4880
4880
|
let message = 'Object doesn\'t match CarePlanTaskInputRepresentation (at "' + path_carePlanTasks + '")\n';
|
|
4881
4881
|
message += referencepath_carePlanTasksValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4897,7 +4897,7 @@ function validate$A(obj, path = 'CarePlanInputRepresentation') {
|
|
|
4897
4897
|
if (obj.customFields !== undefined) {
|
|
4898
4898
|
const obj_customFields = obj.customFields;
|
|
4899
4899
|
const path_customFields = path + '.customFields';
|
|
4900
|
-
const referencepath_customFieldsValidationError = validate$
|
|
4900
|
+
const referencepath_customFieldsValidationError = validate$H(obj_customFields, path_customFields);
|
|
4901
4901
|
if (referencepath_customFieldsValidationError !== null) {
|
|
4902
4902
|
let message = 'Object doesn\'t match CustomFieldListInputRepresentation (at "' + path_customFields + '")\n';
|
|
4903
4903
|
message += referencepath_customFieldsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4921,7 +4921,7 @@ function validate$A(obj, path = 'CarePlanInputRepresentation') {
|
|
|
4921
4921
|
if (obj.goalAssignments !== undefined) {
|
|
4922
4922
|
const obj_goalAssignments = obj.goalAssignments;
|
|
4923
4923
|
const path_goalAssignments = path + '.goalAssignments';
|
|
4924
|
-
const referencepath_goalAssignmentsValidationError = validate$
|
|
4924
|
+
const referencepath_goalAssignmentsValidationError = validate$D(obj_goalAssignments, path_goalAssignments);
|
|
4925
4925
|
if (referencepath_goalAssignmentsValidationError !== null) {
|
|
4926
4926
|
let message = 'Object doesn\'t match GoalAssignmentListInputRepresentation (at "' + path_goalAssignments + '")\n';
|
|
4927
4927
|
message += referencepath_goalAssignmentsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4968,7 +4968,7 @@ function validate$A(obj, path = 'CarePlanInputRepresentation') {
|
|
|
4968
4968
|
return v_error === undefined ? null : v_error;
|
|
4969
4969
|
}
|
|
4970
4970
|
|
|
4971
|
-
function validate$
|
|
4971
|
+
function validate$B(obj, path = 'CarePlanListInputRepresentation') {
|
|
4972
4972
|
const v_error = (() => {
|
|
4973
4973
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4974
4974
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4981,7 +4981,7 @@ function validate$z(obj, path = 'CarePlanListInputRepresentation') {
|
|
|
4981
4981
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4982
4982
|
const obj_records_item = obj_records[i];
|
|
4983
4983
|
const path_records_item = path_records + '[' + i + ']';
|
|
4984
|
-
const referencepath_records_itemValidationError = validate$
|
|
4984
|
+
const referencepath_records_itemValidationError = validate$C(obj_records_item, path_records_item);
|
|
4985
4985
|
if (referencepath_records_itemValidationError !== null) {
|
|
4986
4986
|
let message = 'Object doesn\'t match CarePlanInputRepresentation (at "' + path_records_item + '")\n';
|
|
4987
4987
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4992,14 +4992,14 @@ function validate$z(obj, path = 'CarePlanListInputRepresentation') {
|
|
|
4992
4992
|
return v_error === undefined ? null : v_error;
|
|
4993
4993
|
}
|
|
4994
4994
|
|
|
4995
|
-
function validate$
|
|
4995
|
+
function validate$A(obj, path = 'CarePlanBulkInputRepresentation') {
|
|
4996
4996
|
const v_error = (() => {
|
|
4997
4997
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4998
4998
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4999
4999
|
}
|
|
5000
5000
|
const obj_carePlans = obj.carePlans;
|
|
5001
5001
|
const path_carePlans = path + '.carePlans';
|
|
5002
|
-
const referencepath_carePlansValidationError = validate$
|
|
5002
|
+
const referencepath_carePlansValidationError = validate$B(obj_carePlans, path_carePlans);
|
|
5003
5003
|
if (referencepath_carePlansValidationError !== null) {
|
|
5004
5004
|
let message = 'Object doesn\'t match CarePlanListInputRepresentation (at "' + path_carePlans + '")\n';
|
|
5005
5005
|
message += referencepath_carePlansValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5010,8 +5010,8 @@ function validate$y(obj, path = 'CarePlanBulkInputRepresentation') {
|
|
|
5010
5010
|
}
|
|
5011
5011
|
|
|
5012
5012
|
const TTL$3 = 100;
|
|
5013
|
-
const VERSION$
|
|
5014
|
-
function validate$
|
|
5013
|
+
const VERSION$q = "83a45266096a71720e9049cb0f0477d6";
|
|
5014
|
+
function validate$z(obj, path = 'CarePlanBulkOutputRepresentation') {
|
|
5015
5015
|
const v_error = (() => {
|
|
5016
5016
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5017
5017
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5038,68 +5038,68 @@ function validate$x(obj, path = 'CarePlanBulkOutputRepresentation') {
|
|
|
5038
5038
|
})();
|
|
5039
5039
|
return v_error === undefined ? null : v_error;
|
|
5040
5040
|
}
|
|
5041
|
-
const RepresentationType$
|
|
5042
|
-
function keyBuilder$
|
|
5043
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5041
|
+
const RepresentationType$d = 'CarePlanBulkOutputRepresentation';
|
|
5042
|
+
function keyBuilder$n(luvio, config) {
|
|
5043
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.id;
|
|
5044
5044
|
}
|
|
5045
5045
|
function keyBuilderFromType$3(luvio, object) {
|
|
5046
5046
|
const keyParams = {
|
|
5047
5047
|
id: object.statusCode
|
|
5048
5048
|
};
|
|
5049
|
-
return keyBuilder$
|
|
5049
|
+
return keyBuilder$n(luvio, keyParams);
|
|
5050
5050
|
}
|
|
5051
|
-
function normalize$
|
|
5051
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
5052
5052
|
return input;
|
|
5053
5053
|
}
|
|
5054
|
-
const select$
|
|
5054
|
+
const select$F = function CarePlanBulkOutputRepresentationSelect() {
|
|
5055
5055
|
return {
|
|
5056
5056
|
kind: 'Fragment',
|
|
5057
|
-
version: VERSION$
|
|
5057
|
+
version: VERSION$q,
|
|
5058
5058
|
private: [],
|
|
5059
5059
|
opaque: true
|
|
5060
5060
|
};
|
|
5061
5061
|
};
|
|
5062
|
-
function equals$
|
|
5062
|
+
function equals$q(existing, incoming) {
|
|
5063
5063
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5064
5064
|
return false;
|
|
5065
5065
|
}
|
|
5066
5066
|
return true;
|
|
5067
5067
|
}
|
|
5068
|
-
const ingest$
|
|
5068
|
+
const ingest$d = function CarePlanBulkOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5069
5069
|
if (process.env.NODE_ENV !== 'production') {
|
|
5070
|
-
const validateError = validate$
|
|
5070
|
+
const validateError = validate$z(input);
|
|
5071
5071
|
if (validateError !== null) {
|
|
5072
5072
|
throw validateError;
|
|
5073
5073
|
}
|
|
5074
5074
|
}
|
|
5075
5075
|
const key = keyBuilderFromType$3(luvio, input);
|
|
5076
5076
|
const ttlToUse = TTL$3;
|
|
5077
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5077
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "education", VERSION$q, RepresentationType$d, equals$q);
|
|
5078
5078
|
return createLink(key);
|
|
5079
5079
|
};
|
|
5080
|
-
function getTypeCacheKeys$
|
|
5080
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
5081
5081
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5082
5082
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
5083
5083
|
rootKeySet.set(rootKey, {
|
|
5084
5084
|
namespace: keyPrefix,
|
|
5085
|
-
representationName: RepresentationType$
|
|
5085
|
+
representationName: RepresentationType$d,
|
|
5086
5086
|
mergeable: false
|
|
5087
5087
|
});
|
|
5088
5088
|
}
|
|
5089
5089
|
|
|
5090
|
-
function select$
|
|
5091
|
-
return select$
|
|
5090
|
+
function select$E(luvio, params) {
|
|
5091
|
+
return select$F();
|
|
5092
5092
|
}
|
|
5093
|
-
function getResponseCacheKeys$
|
|
5094
|
-
getTypeCacheKeys$
|
|
5093
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
5094
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
5095
5095
|
}
|
|
5096
|
-
function ingestSuccess$
|
|
5096
|
+
function ingestSuccess$e(luvio, resourceParams, response) {
|
|
5097
5097
|
const { body } = response;
|
|
5098
5098
|
const key = keyBuilderFromType$3(luvio, body);
|
|
5099
|
-
luvio.storeIngest(key, ingest$
|
|
5099
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
5100
5100
|
const snapshot = luvio.storeLookup({
|
|
5101
5101
|
recordId: key,
|
|
5102
|
-
node: select$
|
|
5102
|
+
node: select$E(),
|
|
5103
5103
|
variables: {},
|
|
5104
5104
|
});
|
|
5105
5105
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5110,7 +5110,7 @@ function ingestSuccess$d(luvio, resourceParams, response) {
|
|
|
5110
5110
|
deepFreeze(snapshot.data);
|
|
5111
5111
|
return snapshot;
|
|
5112
5112
|
}
|
|
5113
|
-
function createResourceRequest$
|
|
5113
|
+
function createResourceRequest$e(config) {
|
|
5114
5114
|
const headers = {};
|
|
5115
5115
|
return {
|
|
5116
5116
|
baseUri: '/services/data/v66.0',
|
|
@@ -5124,45 +5124,45 @@ function createResourceRequest$d(config) {
|
|
|
5124
5124
|
};
|
|
5125
5125
|
}
|
|
5126
5126
|
|
|
5127
|
-
const adapterName$
|
|
5127
|
+
const adapterName$e = 'createCarePlans';
|
|
5128
5128
|
const createCarePlans_ConfigPropertyMetadata = [
|
|
5129
5129
|
generateParamConfigMetadata('carePlanBulkRecord', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5130
5130
|
];
|
|
5131
|
-
const createCarePlans_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5132
|
-
const createResourceParams$
|
|
5133
|
-
function typeCheckConfig$
|
|
5131
|
+
const createCarePlans_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, createCarePlans_ConfigPropertyMetadata);
|
|
5132
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$q(createCarePlans_ConfigPropertyMetadata);
|
|
5133
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
5134
5134
|
const config = {};
|
|
5135
5135
|
const untrustedConfig_carePlanBulkRecord = untrustedConfig.carePlanBulkRecord;
|
|
5136
|
-
const referenceCarePlanBulkInputRepresentationValidationError = validate$
|
|
5136
|
+
const referenceCarePlanBulkInputRepresentationValidationError = validate$A(untrustedConfig_carePlanBulkRecord);
|
|
5137
5137
|
if (referenceCarePlanBulkInputRepresentationValidationError === null) {
|
|
5138
5138
|
config.carePlanBulkRecord = untrustedConfig_carePlanBulkRecord;
|
|
5139
5139
|
}
|
|
5140
5140
|
return config;
|
|
5141
5141
|
}
|
|
5142
|
-
function validateAdapterConfig$
|
|
5142
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
5143
5143
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5144
5144
|
return null;
|
|
5145
5145
|
}
|
|
5146
5146
|
if (process.env.NODE_ENV !== 'production') {
|
|
5147
5147
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5148
5148
|
}
|
|
5149
|
-
const config = typeCheckConfig$
|
|
5149
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
5150
5150
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5151
5151
|
return null;
|
|
5152
5152
|
}
|
|
5153
5153
|
return config;
|
|
5154
5154
|
}
|
|
5155
|
-
function buildNetworkSnapshot$
|
|
5156
|
-
const resourceParams = createResourceParams$
|
|
5157
|
-
const request = createResourceRequest$
|
|
5155
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
5156
|
+
const resourceParams = createResourceParams$e(config);
|
|
5157
|
+
const request = createResourceRequest$e(resourceParams);
|
|
5158
5158
|
return luvio.dispatchResourceRequest(request, options)
|
|
5159
5159
|
.then((response) => {
|
|
5160
5160
|
return luvio.handleSuccessResponse(() => {
|
|
5161
|
-
const snapshot = ingestSuccess$
|
|
5161
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response);
|
|
5162
5162
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5163
5163
|
}, () => {
|
|
5164
5164
|
const cache = new StoreKeyMap();
|
|
5165
|
-
getResponseCacheKeys$
|
|
5165
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
5166
5166
|
return cache;
|
|
5167
5167
|
});
|
|
5168
5168
|
}, (response) => {
|
|
@@ -5172,13 +5172,232 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
5172
5172
|
}
|
|
5173
5173
|
const createCarePlansAdapterFactory = (luvio) => {
|
|
5174
5174
|
return function createCarePlans(untrustedConfig) {
|
|
5175
|
-
const config = validateAdapterConfig$
|
|
5175
|
+
const config = validateAdapterConfig$e(untrustedConfig, createCarePlans_ConfigPropertyNames);
|
|
5176
5176
|
// Invalid or incomplete config
|
|
5177
5177
|
if (config === null) {
|
|
5178
5178
|
throw new Error('Invalid config for "createCarePlans"');
|
|
5179
5179
|
}
|
|
5180
|
-
return buildNetworkSnapshot$
|
|
5180
|
+
return buildNetworkSnapshot$e(luvio, config);
|
|
5181
|
+
};
|
|
5182
|
+
};
|
|
5183
|
+
|
|
5184
|
+
function validate$y(obj, path = 'DocumentTypeOutputRepresentation') {
|
|
5185
|
+
const v_error = (() => {
|
|
5186
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5187
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5188
|
+
}
|
|
5189
|
+
const obj_developerName = obj.developerName;
|
|
5190
|
+
const path_developerName = path + '.developerName';
|
|
5191
|
+
if (typeof obj_developerName !== 'string') {
|
|
5192
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
5193
|
+
}
|
|
5194
|
+
const obj_id = obj.id;
|
|
5195
|
+
const path_id = path + '.id';
|
|
5196
|
+
if (typeof obj_id !== 'string') {
|
|
5197
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
5198
|
+
}
|
|
5199
|
+
const obj_masterLabel = obj.masterLabel;
|
|
5200
|
+
const path_masterLabel = path + '.masterLabel';
|
|
5201
|
+
if (typeof obj_masterLabel !== 'string') {
|
|
5202
|
+
return new TypeError('Expected "string" but received "' + typeof obj_masterLabel + '" (at "' + path_masterLabel + '")');
|
|
5203
|
+
}
|
|
5204
|
+
})();
|
|
5205
|
+
return v_error === undefined ? null : v_error;
|
|
5206
|
+
}
|
|
5207
|
+
|
|
5208
|
+
const VERSION$p = "3382bf1d16fe6ce84fa66bad415e358f";
|
|
5209
|
+
function validate$x(obj, path = 'DocumentTypesResultRepresentation') {
|
|
5210
|
+
const v_error = (() => {
|
|
5211
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5212
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5213
|
+
}
|
|
5214
|
+
if (obj.documentTypes !== undefined) {
|
|
5215
|
+
const obj_documentTypes = obj.documentTypes;
|
|
5216
|
+
const path_documentTypes = path + '.documentTypes';
|
|
5217
|
+
if (!ArrayIsArray(obj_documentTypes)) {
|
|
5218
|
+
return new TypeError('Expected "array" but received "' + typeof obj_documentTypes + '" (at "' + path_documentTypes + '")');
|
|
5219
|
+
}
|
|
5220
|
+
for (let i = 0; i < obj_documentTypes.length; i++) {
|
|
5221
|
+
const obj_documentTypes_item = obj_documentTypes[i];
|
|
5222
|
+
const path_documentTypes_item = path_documentTypes + '[' + i + ']';
|
|
5223
|
+
const referencepath_documentTypes_itemValidationError = validate$y(obj_documentTypes_item, path_documentTypes_item);
|
|
5224
|
+
if (referencepath_documentTypes_itemValidationError !== null) {
|
|
5225
|
+
let message = 'Object doesn\'t match DocumentTypeOutputRepresentation (at "' + path_documentTypes_item + '")\n';
|
|
5226
|
+
message += referencepath_documentTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5227
|
+
return new TypeError(message);
|
|
5228
|
+
}
|
|
5229
|
+
}
|
|
5230
|
+
}
|
|
5231
|
+
})();
|
|
5232
|
+
return v_error === undefined ? null : v_error;
|
|
5233
|
+
}
|
|
5234
|
+
const RepresentationType$c = 'DocumentTypesResultRepresentation';
|
|
5235
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
5236
|
+
return input;
|
|
5237
|
+
}
|
|
5238
|
+
const select$D = function DocumentTypesResultRepresentationSelect() {
|
|
5239
|
+
return {
|
|
5240
|
+
kind: 'Fragment',
|
|
5241
|
+
version: VERSION$p,
|
|
5242
|
+
private: [],
|
|
5243
|
+
opaque: true
|
|
5244
|
+
};
|
|
5245
|
+
};
|
|
5246
|
+
function equals$p(existing, incoming) {
|
|
5247
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5248
|
+
return false;
|
|
5249
|
+
}
|
|
5250
|
+
return true;
|
|
5251
|
+
}
|
|
5252
|
+
const ingest$c = function DocumentTypesResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5253
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5254
|
+
const validateError = validate$x(input);
|
|
5255
|
+
if (validateError !== null) {
|
|
5256
|
+
throw validateError;
|
|
5257
|
+
}
|
|
5258
|
+
}
|
|
5259
|
+
const key = path.fullPath;
|
|
5260
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
5261
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "education", VERSION$p, RepresentationType$c, equals$p);
|
|
5262
|
+
return createLink(key);
|
|
5263
|
+
};
|
|
5264
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
5265
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5266
|
+
const rootKey = fullPathFactory();
|
|
5267
|
+
rootKeySet.set(rootKey, {
|
|
5268
|
+
namespace: keyPrefix,
|
|
5269
|
+
representationName: RepresentationType$c,
|
|
5270
|
+
mergeable: false
|
|
5271
|
+
});
|
|
5272
|
+
}
|
|
5273
|
+
|
|
5274
|
+
function select$C(luvio, params) {
|
|
5275
|
+
return select$D();
|
|
5276
|
+
}
|
|
5277
|
+
function keyBuilder$m(luvio, params) {
|
|
5278
|
+
return keyPrefix + '::DocumentTypesResultRepresentation:(' + ')';
|
|
5279
|
+
}
|
|
5280
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
5281
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response, () => keyBuilder$m());
|
|
5282
|
+
}
|
|
5283
|
+
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
5284
|
+
const { body } = response;
|
|
5285
|
+
const key = keyBuilder$m();
|
|
5286
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
5287
|
+
const snapshot = luvio.storeLookup({
|
|
5288
|
+
recordId: key,
|
|
5289
|
+
node: select$C(),
|
|
5290
|
+
variables: {},
|
|
5291
|
+
}, snapshotRefresh);
|
|
5292
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5293
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
5294
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
5295
|
+
}
|
|
5296
|
+
}
|
|
5297
|
+
deepFreeze(snapshot.data);
|
|
5298
|
+
return snapshot;
|
|
5299
|
+
}
|
|
5300
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
5301
|
+
const key = keyBuilder$m();
|
|
5302
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5303
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
5304
|
+
return errorSnapshot;
|
|
5305
|
+
}
|
|
5306
|
+
function createResourceRequest$d(config) {
|
|
5307
|
+
const headers = {};
|
|
5308
|
+
return {
|
|
5309
|
+
baseUri: '/services/data/v66.0',
|
|
5310
|
+
basePath: '/connect/education/documents/document-type',
|
|
5311
|
+
method: 'get',
|
|
5312
|
+
body: null,
|
|
5313
|
+
urlParams: {},
|
|
5314
|
+
queryParams: {},
|
|
5315
|
+
headers,
|
|
5316
|
+
priority: 'normal',
|
|
5317
|
+
};
|
|
5318
|
+
}
|
|
5319
|
+
|
|
5320
|
+
const adapterName$d = 'getDocumentTypes';
|
|
5321
|
+
const getDocumentTypes_ConfigPropertyMetadata = [];
|
|
5322
|
+
const getDocumentTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getDocumentTypes_ConfigPropertyMetadata);
|
|
5323
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$q(getDocumentTypes_ConfigPropertyMetadata);
|
|
5324
|
+
function keyBuilder$l(luvio, config) {
|
|
5325
|
+
createResourceParams$d(config);
|
|
5326
|
+
return keyBuilder$m();
|
|
5327
|
+
}
|
|
5328
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
5329
|
+
const config = {};
|
|
5330
|
+
return config;
|
|
5331
|
+
}
|
|
5332
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
5333
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
5334
|
+
return null;
|
|
5335
|
+
}
|
|
5336
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5337
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
5338
|
+
}
|
|
5339
|
+
const config = typeCheckConfig$d();
|
|
5340
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5341
|
+
return null;
|
|
5342
|
+
}
|
|
5343
|
+
return config;
|
|
5344
|
+
}
|
|
5345
|
+
function adapterFragment$9(luvio, config) {
|
|
5346
|
+
createResourceParams$d(config);
|
|
5347
|
+
return select$C();
|
|
5348
|
+
}
|
|
5349
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
5350
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
5351
|
+
config,
|
|
5352
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
5353
|
+
});
|
|
5354
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5355
|
+
}
|
|
5356
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
5357
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
5358
|
+
config,
|
|
5359
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
5360
|
+
});
|
|
5361
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5362
|
+
}
|
|
5363
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
5364
|
+
const resourceParams = createResourceParams$d(config);
|
|
5365
|
+
const request = createResourceRequest$d();
|
|
5366
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
5367
|
+
.then((response) => {
|
|
5368
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
5369
|
+
const cache = new StoreKeyMap();
|
|
5370
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
5371
|
+
return cache;
|
|
5372
|
+
});
|
|
5373
|
+
}, (response) => {
|
|
5374
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
5375
|
+
});
|
|
5376
|
+
}
|
|
5377
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
5378
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
5379
|
+
}
|
|
5380
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
5381
|
+
const { luvio, config } = context;
|
|
5382
|
+
const selector = {
|
|
5383
|
+
recordId: keyBuilder$l(luvio, config),
|
|
5384
|
+
node: adapterFragment$9(luvio, config),
|
|
5385
|
+
variables: {},
|
|
5181
5386
|
};
|
|
5387
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
5388
|
+
config,
|
|
5389
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
5390
|
+
});
|
|
5391
|
+
return cacheSnapshot;
|
|
5392
|
+
}
|
|
5393
|
+
const getDocumentTypesAdapterFactory = (luvio) => function education__getDocumentTypes(untrustedConfig, requestContext) {
|
|
5394
|
+
const config = validateAdapterConfig$d(untrustedConfig, getDocumentTypes_ConfigPropertyNames);
|
|
5395
|
+
// Invalid or incomplete config
|
|
5396
|
+
if (config === null) {
|
|
5397
|
+
return null;
|
|
5398
|
+
}
|
|
5399
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5400
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
5182
5401
|
};
|
|
5183
5402
|
|
|
5184
5403
|
function validate$w(obj, path = 'MentoringBenefitAssignment') {
|
|
@@ -5451,10 +5670,10 @@ const postBenefitAssignment_ConfigPropertyMetadata = [
|
|
|
5451
5670
|
generateParamConfigMetadata('providerId', true, 2 /* Body */, 0 /* String */),
|
|
5452
5671
|
];
|
|
5453
5672
|
const postBenefitAssignment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, postBenefitAssignment_ConfigPropertyMetadata);
|
|
5454
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
5673
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$q(postBenefitAssignment_ConfigPropertyMetadata);
|
|
5455
5674
|
function typeCheckConfig$c(untrustedConfig) {
|
|
5456
5675
|
const config = {};
|
|
5457
|
-
typeCheckConfig$
|
|
5676
|
+
typeCheckConfig$q(untrustedConfig, config, postBenefitAssignment_ConfigPropertyMetadata);
|
|
5458
5677
|
return config;
|
|
5459
5678
|
}
|
|
5460
5679
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -5709,14 +5928,14 @@ const postMatchingSelector_ConfigPropertyMetadata = [
|
|
|
5709
5928
|
generateParamConfigMetadata('filtersConfig', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5710
5929
|
];
|
|
5711
5930
|
const postMatchingSelector_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, postMatchingSelector_ConfigPropertyMetadata);
|
|
5712
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
5931
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$q(postMatchingSelector_ConfigPropertyMetadata);
|
|
5713
5932
|
function keyBuilder$i(luvio, config) {
|
|
5714
5933
|
const resourceParams = createResourceParams$b(config);
|
|
5715
5934
|
return keyBuilder$j(luvio, resourceParams);
|
|
5716
5935
|
}
|
|
5717
5936
|
function typeCheckConfig$b(untrustedConfig) {
|
|
5718
5937
|
const config = {};
|
|
5719
|
-
typeCheckConfig$
|
|
5938
|
+
typeCheckConfig$q(untrustedConfig, config, postMatchingSelector_ConfigPropertyMetadata);
|
|
5720
5939
|
const untrustedConfig_filtersConfig = untrustedConfig.filtersConfig;
|
|
5721
5940
|
if (ArrayIsArray$1(untrustedConfig_filtersConfig)) {
|
|
5722
5941
|
const untrustedConfig_filtersConfig_array = [];
|
|
@@ -5777,7 +5996,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
5777
5996
|
});
|
|
5778
5997
|
}
|
|
5779
5998
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
5780
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5999
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, 'get', false);
|
|
5781
6000
|
}
|
|
5782
6001
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
5783
6002
|
const { luvio, config } = context;
|
|
@@ -5812,7 +6031,7 @@ function validate$r(obj, path = 'IndividualApplicationTaskOutputRepresentation')
|
|
|
5812
6031
|
if (obj.result !== undefined) {
|
|
5813
6032
|
const obj_result = obj.result;
|
|
5814
6033
|
const path_result = path + '.result';
|
|
5815
|
-
const referencepath_resultValidationError = validate$
|
|
6034
|
+
const referencepath_resultValidationError = validate$12(obj_result, path_result);
|
|
5816
6035
|
if (referencepath_resultValidationError !== null) {
|
|
5817
6036
|
let message = 'Object doesn\'t match IndividualApplicationTask (at "' + path_result + '")\n';
|
|
5818
6037
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5919,14 +6138,14 @@ const getIndividualApplicationTask_ConfigPropertyMetadata = [
|
|
|
5919
6138
|
generateParamConfigMetadata('individualApplicationTaskId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5920
6139
|
];
|
|
5921
6140
|
const getIndividualApplicationTask_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getIndividualApplicationTask_ConfigPropertyMetadata);
|
|
5922
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
6141
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$q(getIndividualApplicationTask_ConfigPropertyMetadata);
|
|
5923
6142
|
function keyBuilder$g(luvio, config) {
|
|
5924
6143
|
const resourceParams = createResourceParams$a(config);
|
|
5925
6144
|
return keyBuilder$h(luvio, resourceParams);
|
|
5926
6145
|
}
|
|
5927
6146
|
function typeCheckConfig$a(untrustedConfig) {
|
|
5928
6147
|
const config = {};
|
|
5929
|
-
typeCheckConfig$
|
|
6148
|
+
typeCheckConfig$q(untrustedConfig, config, getIndividualApplicationTask_ConfigPropertyMetadata);
|
|
5930
6149
|
return config;
|
|
5931
6150
|
}
|
|
5932
6151
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -5975,7 +6194,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
5975
6194
|
});
|
|
5976
6195
|
}
|
|
5977
6196
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
5978
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6197
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
5979
6198
|
}
|
|
5980
6199
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
5981
6200
|
const { luvio, config } = context;
|
|
@@ -6238,14 +6457,14 @@ const getAcademicTerms_ConfigPropertyMetadata = [
|
|
|
6238
6457
|
generateParamConfigMetadata('academicLevel', true, 1 /* QueryParameter */, 0 /* String */),
|
|
6239
6458
|
];
|
|
6240
6459
|
const getAcademicTerms_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getAcademicTerms_ConfigPropertyMetadata);
|
|
6241
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
6460
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$q(getAcademicTerms_ConfigPropertyMetadata);
|
|
6242
6461
|
function keyBuilder$e(luvio, config) {
|
|
6243
6462
|
const resourceParams = createResourceParams$9(config);
|
|
6244
6463
|
return keyBuilder$f(luvio, resourceParams);
|
|
6245
6464
|
}
|
|
6246
6465
|
function typeCheckConfig$9(untrustedConfig) {
|
|
6247
6466
|
const config = {};
|
|
6248
|
-
typeCheckConfig$
|
|
6467
|
+
typeCheckConfig$q(untrustedConfig, config, getAcademicTerms_ConfigPropertyMetadata);
|
|
6249
6468
|
return config;
|
|
6250
6469
|
}
|
|
6251
6470
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -6294,7 +6513,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
6294
6513
|
});
|
|
6295
6514
|
}
|
|
6296
6515
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
6297
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6516
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
6298
6517
|
}
|
|
6299
6518
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
6300
6519
|
const { luvio, config } = context;
|
|
@@ -6472,7 +6691,7 @@ const createPreliminaryApplicationReferences_ConfigPropertyMetadata = [
|
|
|
6472
6691
|
generateParamConfigMetadata('preliminaryAppRefInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
6473
6692
|
];
|
|
6474
6693
|
const createPreliminaryApplicationReferences_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createPreliminaryApplicationReferences_ConfigPropertyMetadata);
|
|
6475
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
6694
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$q(createPreliminaryApplicationReferences_ConfigPropertyMetadata);
|
|
6476
6695
|
function typeCheckConfig$8(untrustedConfig) {
|
|
6477
6696
|
const config = {};
|
|
6478
6697
|
const untrustedConfig_preliminaryAppRefInput = untrustedConfig.preliminaryAppRefInput;
|
|
@@ -6628,7 +6847,7 @@ function validate$l(obj, path = 'GetNewApplicationPreliminaryDataResult') {
|
|
|
6628
6847
|
for (let i = 0; i < obj_applicants.length; i++) {
|
|
6629
6848
|
const obj_applicants_item = obj_applicants[i];
|
|
6630
6849
|
const path_applicants_item = path_applicants + '[' + i + ']';
|
|
6631
|
-
const referencepath_applicants_itemValidationError = validate$
|
|
6850
|
+
const referencepath_applicants_itemValidationError = validate$18(obj_applicants_item, path_applicants_item);
|
|
6632
6851
|
if (referencepath_applicants_itemValidationError !== null) {
|
|
6633
6852
|
let message = 'Object doesn\'t match Applicant (at "' + path_applicants_item + '")\n';
|
|
6634
6853
|
message += referencepath_applicants_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6641,7 +6860,7 @@ function validate$l(obj, path = 'GetNewApplicationPreliminaryDataResult') {
|
|
|
6641
6860
|
}
|
|
6642
6861
|
const select$o = function GetNewApplicationPreliminaryDataResultSelect() {
|
|
6643
6862
|
const { selections: ApplicationAcademicLevel__selections, opaque: ApplicationAcademicLevel__opaque, } = select$p();
|
|
6644
|
-
const { selections: Applicant__selections, opaque: Applicant__opaque, } = select$
|
|
6863
|
+
const { selections: Applicant__selections, opaque: Applicant__opaque, } = select$Y();
|
|
6645
6864
|
return {
|
|
6646
6865
|
kind: 'Fragment',
|
|
6647
6866
|
version: VERSION$g,
|
|
@@ -6693,7 +6912,7 @@ function equals$g(existing, incoming) {
|
|
|
6693
6912
|
return false;
|
|
6694
6913
|
}
|
|
6695
6914
|
const equals_applicants_items = equalsArray(existing_applicants, incoming_applicants, (existing_applicants_item, incoming_applicants_item) => {
|
|
6696
|
-
if (!(equals$
|
|
6915
|
+
if (!(equals$B(existing_applicants_item, incoming_applicants_item))) {
|
|
6697
6916
|
return false;
|
|
6698
6917
|
}
|
|
6699
6918
|
});
|
|
@@ -6832,14 +7051,14 @@ const getNewApplicationPreliminaryData_ConfigPropertyMetadata = [
|
|
|
6832
7051
|
generateParamConfigMetadata('context', true, 1 /* QueryParameter */, 0 /* String */),
|
|
6833
7052
|
];
|
|
6834
7053
|
const getNewApplicationPreliminaryData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getNewApplicationPreliminaryData_ConfigPropertyMetadata);
|
|
6835
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
7054
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$q(getNewApplicationPreliminaryData_ConfigPropertyMetadata);
|
|
6836
7055
|
function keyBuilder$b(luvio, config) {
|
|
6837
7056
|
const resourceParams = createResourceParams$7(config);
|
|
6838
7057
|
return keyBuilder$c(luvio, resourceParams);
|
|
6839
7058
|
}
|
|
6840
7059
|
function typeCheckConfig$7(untrustedConfig) {
|
|
6841
7060
|
const config = {};
|
|
6842
|
-
typeCheckConfig$
|
|
7061
|
+
typeCheckConfig$q(untrustedConfig, config, getNewApplicationPreliminaryData_ConfigPropertyMetadata);
|
|
6843
7062
|
return config;
|
|
6844
7063
|
}
|
|
6845
7064
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -6888,7 +7107,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
6888
7107
|
});
|
|
6889
7108
|
}
|
|
6890
7109
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
6891
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7110
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
6892
7111
|
}
|
|
6893
7112
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
6894
7113
|
const { luvio, config } = context;
|
|
@@ -7152,14 +7371,14 @@ const getProgramTermApplicationTimelines_ConfigPropertyMetadata = [
|
|
|
7152
7371
|
generateParamConfigMetadata('academicLevel', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7153
7372
|
];
|
|
7154
7373
|
const getProgramTermApplicationTimelines_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getProgramTermApplicationTimelines_ConfigPropertyMetadata);
|
|
7155
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
7374
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$q(getProgramTermApplicationTimelines_ConfigPropertyMetadata);
|
|
7156
7375
|
function keyBuilder$9(luvio, config) {
|
|
7157
7376
|
const resourceParams = createResourceParams$6(config);
|
|
7158
7377
|
return keyBuilder$a(luvio, resourceParams);
|
|
7159
7378
|
}
|
|
7160
7379
|
function typeCheckConfig$6(untrustedConfig) {
|
|
7161
7380
|
const config = {};
|
|
7162
|
-
typeCheckConfig$
|
|
7381
|
+
typeCheckConfig$q(untrustedConfig, config, getProgramTermApplicationTimelines_ConfigPropertyMetadata);
|
|
7163
7382
|
return config;
|
|
7164
7383
|
}
|
|
7165
7384
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -7208,7 +7427,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
7208
7427
|
});
|
|
7209
7428
|
}
|
|
7210
7429
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
7211
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7430
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
7212
7431
|
}
|
|
7213
7432
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
7214
7433
|
const { luvio, config } = context;
|
|
@@ -7625,14 +7844,14 @@ const getPersonPublicProfile_ConfigPropertyMetadata = [
|
|
|
7625
7844
|
generateParamConfigMetadata('usageType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7626
7845
|
];
|
|
7627
7846
|
const getPersonPublicProfile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getPersonPublicProfile_ConfigPropertyMetadata);
|
|
7628
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
7847
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$q(getPersonPublicProfile_ConfigPropertyMetadata);
|
|
7629
7848
|
function keyBuilder$7(luvio, config) {
|
|
7630
7849
|
const resourceParams = createResourceParams$5(config);
|
|
7631
7850
|
return keyBuilder$8(luvio, resourceParams);
|
|
7632
7851
|
}
|
|
7633
7852
|
function typeCheckConfig$5(untrustedConfig) {
|
|
7634
7853
|
const config = {};
|
|
7635
|
-
typeCheckConfig$
|
|
7854
|
+
typeCheckConfig$q(untrustedConfig, config, getPersonPublicProfile_ConfigPropertyMetadata);
|
|
7636
7855
|
return config;
|
|
7637
7856
|
}
|
|
7638
7857
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -7681,7 +7900,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
7681
7900
|
});
|
|
7682
7901
|
}
|
|
7683
7902
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
7684
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7903
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
7685
7904
|
}
|
|
7686
7905
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
7687
7906
|
const { luvio, config } = context;
|
|
@@ -8175,14 +8394,14 @@ const getSuccessTeam_ConfigPropertyMetadata = [
|
|
|
8175
8394
|
generateParamConfigMetadata('teamTypes', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
8176
8395
|
];
|
|
8177
8396
|
const getSuccessTeam_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSuccessTeam_ConfigPropertyMetadata);
|
|
8178
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
8397
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$q(getSuccessTeam_ConfigPropertyMetadata);
|
|
8179
8398
|
function keyBuilder$5(luvio, config) {
|
|
8180
8399
|
const resourceParams = createResourceParams$4(config);
|
|
8181
8400
|
return keyBuilder$6(luvio, resourceParams);
|
|
8182
8401
|
}
|
|
8183
8402
|
function typeCheckConfig$4(untrustedConfig) {
|
|
8184
8403
|
const config = {};
|
|
8185
|
-
typeCheckConfig$
|
|
8404
|
+
typeCheckConfig$q(untrustedConfig, config, getSuccessTeam_ConfigPropertyMetadata);
|
|
8186
8405
|
return config;
|
|
8187
8406
|
}
|
|
8188
8407
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -8231,7 +8450,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
8231
8450
|
});
|
|
8232
8451
|
}
|
|
8233
8452
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
8234
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8453
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
8235
8454
|
}
|
|
8236
8455
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
8237
8456
|
const { luvio, config } = context;
|
|
@@ -8431,10 +8650,10 @@ const createTask_ConfigPropertyMetadata = [
|
|
|
8431
8650
|
generateParamConfigMetadata('whoId', false, 2 /* Body */, 0 /* String */),
|
|
8432
8651
|
];
|
|
8433
8652
|
const createTask_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createTask_ConfigPropertyMetadata);
|
|
8434
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
8653
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$q(createTask_ConfigPropertyMetadata);
|
|
8435
8654
|
function typeCheckConfig$3(untrustedConfig) {
|
|
8436
8655
|
const config = {};
|
|
8437
|
-
typeCheckConfig$
|
|
8656
|
+
typeCheckConfig$q(untrustedConfig, config, createTask_ConfigPropertyMetadata);
|
|
8438
8657
|
return config;
|
|
8439
8658
|
}
|
|
8440
8659
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -8791,14 +9010,14 @@ const getPicklistValues_ConfigPropertyMetadata = [
|
|
|
8791
9010
|
generateParamConfigMetadata('fieldNames', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
8792
9011
|
];
|
|
8793
9012
|
const getPicklistValues_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getPicklistValues_ConfigPropertyMetadata);
|
|
8794
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
9013
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$q(getPicklistValues_ConfigPropertyMetadata);
|
|
8795
9014
|
function keyBuilder$2(luvio, config) {
|
|
8796
9015
|
const resourceParams = createResourceParams$2(config);
|
|
8797
9016
|
return keyBuilder$3(luvio, resourceParams);
|
|
8798
9017
|
}
|
|
8799
9018
|
function typeCheckConfig$2(untrustedConfig) {
|
|
8800
9019
|
const config = {};
|
|
8801
|
-
typeCheckConfig$
|
|
9020
|
+
typeCheckConfig$q(untrustedConfig, config, getPicklistValues_ConfigPropertyMetadata);
|
|
8802
9021
|
return config;
|
|
8803
9022
|
}
|
|
8804
9023
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -8847,7 +9066,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
8847
9066
|
});
|
|
8848
9067
|
}
|
|
8849
9068
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
8850
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9069
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
8851
9070
|
}
|
|
8852
9071
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
8853
9072
|
const { luvio, config } = context;
|
|
@@ -8922,10 +9141,10 @@ const updateTaskStatus_ConfigPropertyMetadata = [
|
|
|
8922
9141
|
generateParamConfigMetadata('whoId', false, 2 /* Body */, 0 /* String */),
|
|
8923
9142
|
];
|
|
8924
9143
|
const updateTaskStatus_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateTaskStatus_ConfigPropertyMetadata);
|
|
8925
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
9144
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$q(updateTaskStatus_ConfigPropertyMetadata);
|
|
8926
9145
|
function typeCheckConfig$1(untrustedConfig) {
|
|
8927
9146
|
const config = {};
|
|
8928
|
-
typeCheckConfig$
|
|
9147
|
+
typeCheckConfig$q(untrustedConfig, config, updateTaskStatus_ConfigPropertyMetadata);
|
|
8929
9148
|
return config;
|
|
8930
9149
|
}
|
|
8931
9150
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -10170,14 +10389,14 @@ const getAptsTasksPlans_ConfigPropertyMetadata = [
|
|
|
10170
10389
|
generateParamConfigMetadata('objectType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10171
10390
|
];
|
|
10172
10391
|
const getAptsTasksPlans_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getAptsTasksPlans_ConfigPropertyMetadata);
|
|
10173
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
10392
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$q(getAptsTasksPlans_ConfigPropertyMetadata);
|
|
10174
10393
|
function keyBuilder(luvio, config) {
|
|
10175
10394
|
const resourceParams = createResourceParams(config);
|
|
10176
10395
|
return keyBuilder$1(luvio, resourceParams);
|
|
10177
10396
|
}
|
|
10178
10397
|
function typeCheckConfig(untrustedConfig) {
|
|
10179
10398
|
const config = {};
|
|
10180
|
-
typeCheckConfig$
|
|
10399
|
+
typeCheckConfig$q(untrustedConfig, config, getAptsTasksPlans_ConfigPropertyMetadata);
|
|
10181
10400
|
return config;
|
|
10182
10401
|
}
|
|
10183
10402
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -10226,7 +10445,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
10226
10445
|
});
|
|
10227
10446
|
}
|
|
10228
10447
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
10229
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10448
|
+
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
10230
10449
|
}
|
|
10231
10450
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
10232
10451
|
const { luvio, config } = context;
|
|
@@ -10251,4 +10470,4 @@ const getAptsTasksPlansAdapterFactory = (luvio) => function education__getAptsTa
|
|
|
10251
10470
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
10252
10471
|
};
|
|
10253
10472
|
|
|
10254
|
-
export { createCarePlansAdapterFactory, createLearningsAdapterFactory, createPreliminaryApplicationReferencesAdapterFactory, createTaskAdapterFactory, getAcademicTermsAdapterFactory, getApplicationDetailsAdapterFactory, getApplicationsAdapterFactory, getAptsTasksPlansAdapterFactory, getAvailableTimeSlotsAdapterFactory, getAvailableTopicsAdapterFactory, getIndividualApplicationTaskAdapterFactory, getLearnerProgressAdapterFactory, getLearningAdapterFactory, getNewApplicationPreliminaryDataAdapterFactory, getPersonPublicProfileAdapterFactory, getPicklistValuesAdapterFactory, getPreviewLearningProgramPlanAdapterFactory, getProgramTermApplicationTimelinesAdapterFactory, getSuccessTeamAdapterFactory, postBenefitAssignmentAdapterFactory, postMatchingSelectorAdapterFactory, postPublishLearningProgramPlanAdapterFactory, postValidateLearningFoundationListAdapterFactory, updateLearningsAdapterFactory, updateTaskStatusAdapterFactory };
|
|
10473
|
+
export { createCarePlansAdapterFactory, createLearningsAdapterFactory, createPreliminaryApplicationReferencesAdapterFactory, createTaskAdapterFactory, getAcademicTermsAdapterFactory, getApplicationDetailsAdapterFactory, getApplicationsAdapterFactory, getAptsTasksPlansAdapterFactory, getAvailableTimeSlotsAdapterFactory, getAvailableTopicsAdapterFactory, getDocumentTypesAdapterFactory, getIndividualApplicationTaskAdapterFactory, getLearnerProgressAdapterFactory, getLearningAdapterFactory, getNewApplicationPreliminaryDataAdapterFactory, getPersonPublicProfileAdapterFactory, getPicklistValuesAdapterFactory, getPreviewLearningProgramPlanAdapterFactory, getProgramTermApplicationTimelinesAdapterFactory, getSuccessTeamAdapterFactory, postBenefitAssignmentAdapterFactory, postMatchingSelectorAdapterFactory, postPublishLearningProgramPlanAdapterFactory, postValidateLearningFoundationListAdapterFactory, updateLearningsAdapterFactory, updateTaskStatusAdapterFactory };
|