@salesforce/lds-adapters-industries-education 1.301.0 → 1.303.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 +826 -1055
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +1 -3
- package/package.json +4 -4
- package/sfdc/index.js +1194 -1431
- package/src/raml/api.raml +0 -46
- package/src/raml/luvio.raml +0 -8
- package/dist/es/es2018/types/src/generated/adapters/getPromptTemplates.d.ts +0 -28
- package/dist/es/es2018/types/src/generated/resources/postConnectEducationPromptBuilderPromptTemplates.d.ts +0 -16
- package/dist/es/es2018/types/src/generated/types/PromptTemplate.d.ts +0 -31
- package/dist/es/es2018/types/src/generated/types/PromptTemplateInputRepresentation.d.ts +0 -31
- package/dist/es/es2018/types/src/generated/types/PromptTemplateOutputRepresentation.d.ts +0 -30
|
@@ -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$h, typeCheckConfig as typeCheckConfig$p, StoreKeyMap, createResourceParams as createResourceParams$p } 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$1f(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 + '")');
|
|
@@ -260,7 +260,7 @@ function validate$1h(obj, path = 'LearningOutput') {
|
|
|
260
260
|
return v_error === undefined ? null : v_error;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
function validate$
|
|
263
|
+
function validate$1e(obj, path = 'LearningOutcomeItemOutput') {
|
|
264
264
|
const v_error = (() => {
|
|
265
265
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
266
266
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -324,7 +324,7 @@ function validate$1g(obj, path = 'LearningOutcomeItemOutput') {
|
|
|
324
324
|
return v_error === undefined ? null : v_error;
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
-
function validate$
|
|
327
|
+
function validate$1d(obj, path = 'LearningStatus') {
|
|
328
328
|
const v_error = (() => {
|
|
329
329
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
330
330
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -402,7 +402,7 @@ function validate$1f(obj, path = 'LearningStatus') {
|
|
|
402
402
|
return v_error === undefined ? null : v_error;
|
|
403
403
|
}
|
|
404
404
|
|
|
405
|
-
function validate$
|
|
405
|
+
function validate$1c(obj, path = 'LearningFulfiller') {
|
|
406
406
|
const v_error = (() => {
|
|
407
407
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
408
408
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -410,7 +410,7 @@ function validate$1e(obj, path = 'LearningFulfiller') {
|
|
|
410
410
|
if (obj.learning !== undefined) {
|
|
411
411
|
const obj_learning = obj.learning;
|
|
412
412
|
const path_learning = path + '.learning';
|
|
413
|
-
const referencepath_learningValidationError = validate$
|
|
413
|
+
const referencepath_learningValidationError = validate$1f(obj_learning, path_learning);
|
|
414
414
|
if (referencepath_learningValidationError !== null) {
|
|
415
415
|
let message = 'Object doesn\'t match LearningOutput (at "' + path_learning + '")\n';
|
|
416
416
|
message += referencepath_learningValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -420,7 +420,7 @@ function validate$1e(obj, path = 'LearningFulfiller') {
|
|
|
420
420
|
if (obj.learningOutcomeItem !== undefined) {
|
|
421
421
|
const obj_learningOutcomeItem = obj.learningOutcomeItem;
|
|
422
422
|
const path_learningOutcomeItem = path + '.learningOutcomeItem';
|
|
423
|
-
const referencepath_learningOutcomeItemValidationError = validate$
|
|
423
|
+
const referencepath_learningOutcomeItemValidationError = validate$1e(obj_learningOutcomeItem, path_learningOutcomeItem);
|
|
424
424
|
if (referencepath_learningOutcomeItemValidationError !== null) {
|
|
425
425
|
let message = 'Object doesn\'t match LearningOutcomeItemOutput (at "' + path_learningOutcomeItem + '")\n';
|
|
426
426
|
message += referencepath_learningOutcomeItemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -430,7 +430,7 @@ function validate$1e(obj, path = 'LearningFulfiller') {
|
|
|
430
430
|
if (obj.learningStatus !== undefined) {
|
|
431
431
|
const obj_learningStatus = obj.learningStatus;
|
|
432
432
|
const path_learningStatus = path + '.learningStatus';
|
|
433
|
-
const referencepath_learningStatusValidationError = validate$
|
|
433
|
+
const referencepath_learningStatusValidationError = validate$1d(obj_learningStatus, path_learningStatus);
|
|
434
434
|
if (referencepath_learningStatusValidationError !== null) {
|
|
435
435
|
let message = 'Object doesn\'t match LearningStatus (at "' + path_learningStatus + '")\n';
|
|
436
436
|
message += referencepath_learningStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -441,7 +441,7 @@ function validate$1e(obj, path = 'LearningFulfiller') {
|
|
|
441
441
|
return v_error === undefined ? null : v_error;
|
|
442
442
|
}
|
|
443
443
|
|
|
444
|
-
function validate$
|
|
444
|
+
function validate$1b(obj, path = 'LearningFoundationItemOutput') {
|
|
445
445
|
const v_error = (() => {
|
|
446
446
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
447
447
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -472,7 +472,7 @@ function validate$1d(obj, path = 'LearningFoundationItemOutput') {
|
|
|
472
472
|
for (let i = 0; i < obj_fulfilledBy.length; i++) {
|
|
473
473
|
const obj_fulfilledBy_item = obj_fulfilledBy[i];
|
|
474
474
|
const path_fulfilledBy_item = path_fulfilledBy + '[' + i + ']';
|
|
475
|
-
const referencepath_fulfilledBy_itemValidationError = validate$
|
|
475
|
+
const referencepath_fulfilledBy_itemValidationError = validate$1c(obj_fulfilledBy_item, path_fulfilledBy_item);
|
|
476
476
|
if (referencepath_fulfilledBy_itemValidationError !== null) {
|
|
477
477
|
let message = 'Object doesn\'t match LearningFulfiller (at "' + path_fulfilledBy_item + '")\n';
|
|
478
478
|
message += referencepath_fulfilledBy_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -540,8 +540,8 @@ function validate$1d(obj, path = 'LearningFoundationItemOutput') {
|
|
|
540
540
|
return v_error === undefined ? null : v_error;
|
|
541
541
|
}
|
|
542
542
|
|
|
543
|
-
const VERSION$
|
|
544
|
-
function validate$
|
|
543
|
+
const VERSION$C = "9fe359b03ed5c97f158551fd4d040bab";
|
|
544
|
+
function validate$1a(obj, path = 'GetLearningOutputRepresentation') {
|
|
545
545
|
const v_error = (() => {
|
|
546
546
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
547
547
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -555,7 +555,7 @@ function validate$1c(obj, path = 'GetLearningOutputRepresentation') {
|
|
|
555
555
|
for (let i = 0; i < obj_corequisites.length; i++) {
|
|
556
556
|
const obj_corequisites_item = obj_corequisites[i];
|
|
557
557
|
const path_corequisites_item = path_corequisites + '[' + i + ']';
|
|
558
|
-
const referencepath_corequisites_itemValidationError = validate$
|
|
558
|
+
const referencepath_corequisites_itemValidationError = validate$1b(obj_corequisites_item, path_corequisites_item);
|
|
559
559
|
if (referencepath_corequisites_itemValidationError !== null) {
|
|
560
560
|
let message = 'Object doesn\'t match LearningFoundationItemOutput (at "' + path_corequisites_item + '")\n';
|
|
561
561
|
message += referencepath_corequisites_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -566,7 +566,7 @@ function validate$1c(obj, path = 'GetLearningOutputRepresentation') {
|
|
|
566
566
|
if (obj.learning !== undefined) {
|
|
567
567
|
const obj_learning = obj.learning;
|
|
568
568
|
const path_learning = path + '.learning';
|
|
569
|
-
const referencepath_learningValidationError = validate$
|
|
569
|
+
const referencepath_learningValidationError = validate$1f(obj_learning, path_learning);
|
|
570
570
|
if (referencepath_learningValidationError !== null) {
|
|
571
571
|
let message = 'Object doesn\'t match LearningOutput (at "' + path_learning + '")\n';
|
|
572
572
|
message += referencepath_learningValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -582,7 +582,7 @@ function validate$1c(obj, path = 'GetLearningOutputRepresentation') {
|
|
|
582
582
|
for (let i = 0; i < obj_outcomes.length; i++) {
|
|
583
583
|
const obj_outcomes_item = obj_outcomes[i];
|
|
584
584
|
const path_outcomes_item = path_outcomes + '[' + i + ']';
|
|
585
|
-
const referencepath_outcomes_itemValidationError = validate$
|
|
585
|
+
const referencepath_outcomes_itemValidationError = validate$1e(obj_outcomes_item, path_outcomes_item);
|
|
586
586
|
if (referencepath_outcomes_itemValidationError !== null) {
|
|
587
587
|
let message = 'Object doesn\'t match LearningOutcomeItemOutput (at "' + path_outcomes_item + '")\n';
|
|
588
588
|
message += referencepath_outcomes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -599,7 +599,7 @@ function validate$1c(obj, path = 'GetLearningOutputRepresentation') {
|
|
|
599
599
|
for (let i = 0; i < obj_prerequisites.length; i++) {
|
|
600
600
|
const obj_prerequisites_item = obj_prerequisites[i];
|
|
601
601
|
const path_prerequisites_item = path_prerequisites + '[' + i + ']';
|
|
602
|
-
const referencepath_prerequisites_itemValidationError = validate$
|
|
602
|
+
const referencepath_prerequisites_itemValidationError = validate$1b(obj_prerequisites_item, path_prerequisites_item);
|
|
603
603
|
if (referencepath_prerequisites_itemValidationError !== null) {
|
|
604
604
|
let message = 'Object doesn\'t match LearningFoundationItemOutput (at "' + path_prerequisites_item + '")\n';
|
|
605
605
|
message += referencepath_prerequisites_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -616,7 +616,7 @@ function validate$1c(obj, path = 'GetLearningOutputRepresentation') {
|
|
|
616
616
|
for (let i = 0; i < obj_recommended.length; i++) {
|
|
617
617
|
const obj_recommended_item = obj_recommended[i];
|
|
618
618
|
const path_recommended_item = path_recommended + '[' + i + ']';
|
|
619
|
-
const referencepath_recommended_itemValidationError = validate$
|
|
619
|
+
const referencepath_recommended_itemValidationError = validate$1b(obj_recommended_item, path_recommended_item);
|
|
620
620
|
if (referencepath_recommended_itemValidationError !== null) {
|
|
621
621
|
let message = 'Object doesn\'t match LearningFoundationItemOutput (at "' + path_recommended_item + '")\n';
|
|
622
622
|
message += referencepath_recommended_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -627,62 +627,62 @@ function validate$1c(obj, path = 'GetLearningOutputRepresentation') {
|
|
|
627
627
|
})();
|
|
628
628
|
return v_error === undefined ? null : v_error;
|
|
629
629
|
}
|
|
630
|
-
const RepresentationType$
|
|
631
|
-
function normalize$
|
|
630
|
+
const RepresentationType$m = 'GetLearningOutputRepresentation';
|
|
631
|
+
function normalize$m(input, existing, path, luvio, store, timestamp) {
|
|
632
632
|
return input;
|
|
633
633
|
}
|
|
634
|
-
const select
|
|
634
|
+
const select$$ = function GetLearningOutputRepresentationSelect() {
|
|
635
635
|
return {
|
|
636
636
|
kind: 'Fragment',
|
|
637
|
-
version: VERSION$
|
|
637
|
+
version: VERSION$C,
|
|
638
638
|
private: [],
|
|
639
639
|
opaque: true
|
|
640
640
|
};
|
|
641
641
|
};
|
|
642
|
-
function equals$
|
|
642
|
+
function equals$C(existing, incoming) {
|
|
643
643
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
644
644
|
return false;
|
|
645
645
|
}
|
|
646
646
|
return true;
|
|
647
647
|
}
|
|
648
|
-
const ingest$
|
|
648
|
+
const ingest$m = function GetLearningOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
649
649
|
if (process.env.NODE_ENV !== 'production') {
|
|
650
|
-
const validateError = validate$
|
|
650
|
+
const validateError = validate$1a(input);
|
|
651
651
|
if (validateError !== null) {
|
|
652
652
|
throw validateError;
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
const key = path.fullPath;
|
|
656
656
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
657
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
657
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$m, "education", VERSION$C, RepresentationType$m, equals$C);
|
|
658
658
|
return createLink(key);
|
|
659
659
|
};
|
|
660
|
-
function getTypeCacheKeys$
|
|
660
|
+
function getTypeCacheKeys$m(rootKeySet, luvio, input, fullPathFactory) {
|
|
661
661
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
662
662
|
const rootKey = fullPathFactory();
|
|
663
663
|
rootKeySet.set(rootKey, {
|
|
664
664
|
namespace: keyPrefix,
|
|
665
|
-
representationName: RepresentationType$
|
|
665
|
+
representationName: RepresentationType$m,
|
|
666
666
|
mergeable: false
|
|
667
667
|
});
|
|
668
668
|
}
|
|
669
669
|
|
|
670
|
-
function select$
|
|
671
|
-
return select
|
|
670
|
+
function select$_(luvio, params) {
|
|
671
|
+
return select$$();
|
|
672
672
|
}
|
|
673
|
-
function keyBuilder$
|
|
673
|
+
function keyBuilder$D(luvio, params) {
|
|
674
674
|
return keyPrefix + '::GetLearningOutputRepresentation:(' + 'learningId:' + params.urlParams.learningId + ')';
|
|
675
675
|
}
|
|
676
|
-
function getResponseCacheKeys$
|
|
677
|
-
getTypeCacheKeys$
|
|
676
|
+
function getResponseCacheKeys$o(storeKeyMap, luvio, resourceParams, response) {
|
|
677
|
+
getTypeCacheKeys$m(storeKeyMap, luvio, response, () => keyBuilder$D(luvio, resourceParams));
|
|
678
678
|
}
|
|
679
|
-
function ingestSuccess$
|
|
679
|
+
function ingestSuccess$o(luvio, resourceParams, response, snapshotRefresh) {
|
|
680
680
|
const { body } = response;
|
|
681
|
-
const key = keyBuilder$
|
|
682
|
-
luvio.storeIngest(key, ingest$
|
|
681
|
+
const key = keyBuilder$D(luvio, resourceParams);
|
|
682
|
+
luvio.storeIngest(key, ingest$m, body);
|
|
683
683
|
const snapshot = luvio.storeLookup({
|
|
684
684
|
recordId: key,
|
|
685
|
-
node: select$
|
|
685
|
+
node: select$_(),
|
|
686
686
|
variables: {},
|
|
687
687
|
}, snapshotRefresh);
|
|
688
688
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -693,13 +693,13 @@ function ingestSuccess$p(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
693
693
|
deepFreeze(snapshot.data);
|
|
694
694
|
return snapshot;
|
|
695
695
|
}
|
|
696
|
-
function ingestError$
|
|
697
|
-
const key = keyBuilder$
|
|
696
|
+
function ingestError$g(luvio, params, error, snapshotRefresh) {
|
|
697
|
+
const key = keyBuilder$D(luvio, params);
|
|
698
698
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
699
699
|
luvio.storeIngestError(key, errorSnapshot);
|
|
700
700
|
return errorSnapshot;
|
|
701
701
|
}
|
|
702
|
-
function createResourceRequest$
|
|
702
|
+
function createResourceRequest$o(config) {
|
|
703
703
|
const headers = {};
|
|
704
704
|
return {
|
|
705
705
|
baseUri: '/services/data/v62.0',
|
|
@@ -713,94 +713,94 @@ function createResourceRequest$p(config) {
|
|
|
713
713
|
};
|
|
714
714
|
}
|
|
715
715
|
|
|
716
|
-
const adapterName$
|
|
716
|
+
const adapterName$o = 'getLearning';
|
|
717
717
|
const getLearning_ConfigPropertyMetadata = [
|
|
718
718
|
generateParamConfigMetadata('learningId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
719
719
|
];
|
|
720
|
-
const getLearning_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
721
|
-
const createResourceParams$
|
|
722
|
-
function keyBuilder$
|
|
723
|
-
const resourceParams = createResourceParams$
|
|
724
|
-
return keyBuilder$
|
|
720
|
+
const getLearning_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, getLearning_ConfigPropertyMetadata);
|
|
721
|
+
const createResourceParams$o = /*#__PURE__*/ createResourceParams$p(getLearning_ConfigPropertyMetadata);
|
|
722
|
+
function keyBuilder$C(luvio, config) {
|
|
723
|
+
const resourceParams = createResourceParams$o(config);
|
|
724
|
+
return keyBuilder$D(luvio, resourceParams);
|
|
725
725
|
}
|
|
726
|
-
function typeCheckConfig$
|
|
726
|
+
function typeCheckConfig$o(untrustedConfig) {
|
|
727
727
|
const config = {};
|
|
728
|
-
typeCheckConfig$
|
|
728
|
+
typeCheckConfig$p(untrustedConfig, config, getLearning_ConfigPropertyMetadata);
|
|
729
729
|
return config;
|
|
730
730
|
}
|
|
731
|
-
function validateAdapterConfig$
|
|
731
|
+
function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
|
|
732
732
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
733
733
|
return null;
|
|
734
734
|
}
|
|
735
735
|
if (process.env.NODE_ENV !== 'production') {
|
|
736
736
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
737
737
|
}
|
|
738
|
-
const config = typeCheckConfig$
|
|
738
|
+
const config = typeCheckConfig$o(untrustedConfig);
|
|
739
739
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
740
740
|
return null;
|
|
741
741
|
}
|
|
742
742
|
return config;
|
|
743
743
|
}
|
|
744
|
-
function adapterFragment$
|
|
745
|
-
createResourceParams$
|
|
746
|
-
return select$
|
|
744
|
+
function adapterFragment$g(luvio, config) {
|
|
745
|
+
createResourceParams$o(config);
|
|
746
|
+
return select$_();
|
|
747
747
|
}
|
|
748
|
-
function onFetchResponseSuccess$
|
|
749
|
-
const snapshot = ingestSuccess$
|
|
748
|
+
function onFetchResponseSuccess$g(luvio, config, resourceParams, response) {
|
|
749
|
+
const snapshot = ingestSuccess$o(luvio, resourceParams, response, {
|
|
750
750
|
config,
|
|
751
|
-
resolve: () => buildNetworkSnapshot$
|
|
751
|
+
resolve: () => buildNetworkSnapshot$o(luvio, config, snapshotRefreshOptions)
|
|
752
752
|
});
|
|
753
753
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
754
754
|
}
|
|
755
|
-
function onFetchResponseError$
|
|
756
|
-
const snapshot = ingestError$
|
|
755
|
+
function onFetchResponseError$g(luvio, config, resourceParams, response) {
|
|
756
|
+
const snapshot = ingestError$g(luvio, resourceParams, response, {
|
|
757
757
|
config,
|
|
758
|
-
resolve: () => buildNetworkSnapshot$
|
|
758
|
+
resolve: () => buildNetworkSnapshot$o(luvio, config, snapshotRefreshOptions)
|
|
759
759
|
});
|
|
760
760
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
761
761
|
}
|
|
762
|
-
function buildNetworkSnapshot$
|
|
763
|
-
const resourceParams = createResourceParams$
|
|
764
|
-
const request = createResourceRequest$
|
|
762
|
+
function buildNetworkSnapshot$o(luvio, config, options) {
|
|
763
|
+
const resourceParams = createResourceParams$o(config);
|
|
764
|
+
const request = createResourceRequest$o(resourceParams);
|
|
765
765
|
return luvio.dispatchResourceRequest(request, options)
|
|
766
766
|
.then((response) => {
|
|
767
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
767
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$g(luvio, config, resourceParams, response), () => {
|
|
768
768
|
const cache = new StoreKeyMap();
|
|
769
|
-
getResponseCacheKeys$
|
|
769
|
+
getResponseCacheKeys$o(cache, luvio, resourceParams, response.body);
|
|
770
770
|
return cache;
|
|
771
771
|
});
|
|
772
772
|
}, (response) => {
|
|
773
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
773
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$g(luvio, config, resourceParams, response));
|
|
774
774
|
});
|
|
775
775
|
}
|
|
776
|
-
function buildNetworkSnapshotCachePolicy$
|
|
777
|
-
return buildNetworkSnapshotCachePolicy$
|
|
776
|
+
function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
|
|
777
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$o, undefined, false);
|
|
778
778
|
}
|
|
779
|
-
function buildCachedSnapshotCachePolicy$
|
|
779
|
+
function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
780
780
|
const { luvio, config } = context;
|
|
781
781
|
const selector = {
|
|
782
|
-
recordId: keyBuilder$
|
|
783
|
-
node: adapterFragment$
|
|
782
|
+
recordId: keyBuilder$C(luvio, config),
|
|
783
|
+
node: adapterFragment$g(luvio, config),
|
|
784
784
|
variables: {},
|
|
785
785
|
};
|
|
786
786
|
const cacheSnapshot = storeLookup(selector, {
|
|
787
787
|
config,
|
|
788
|
-
resolve: () => buildNetworkSnapshot$
|
|
788
|
+
resolve: () => buildNetworkSnapshot$o(luvio, config, snapshotRefreshOptions)
|
|
789
789
|
});
|
|
790
790
|
return cacheSnapshot;
|
|
791
791
|
}
|
|
792
792
|
const getLearningAdapterFactory = (luvio) => function education__getLearning(untrustedConfig, requestContext) {
|
|
793
|
-
const config = validateAdapterConfig$
|
|
793
|
+
const config = validateAdapterConfig$o(untrustedConfig, getLearning_ConfigPropertyNames);
|
|
794
794
|
// Invalid or incomplete config
|
|
795
795
|
if (config === null) {
|
|
796
796
|
return null;
|
|
797
797
|
}
|
|
798
798
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
799
|
-
buildCachedSnapshotCachePolicy$
|
|
799
|
+
buildCachedSnapshotCachePolicy$g, buildNetworkSnapshotCachePolicy$g);
|
|
800
800
|
};
|
|
801
801
|
|
|
802
|
-
const VERSION$
|
|
803
|
-
function validate$
|
|
802
|
+
const VERSION$B = "25644bb9c14397ee2eee2a59a6de4b8c";
|
|
803
|
+
function validate$19(obj, path = 'Applicant') {
|
|
804
804
|
const v_error = (() => {
|
|
805
805
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
806
806
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -829,10 +829,10 @@ function validate$1b(obj, path = 'Applicant') {
|
|
|
829
829
|
})();
|
|
830
830
|
return v_error === undefined ? null : v_error;
|
|
831
831
|
}
|
|
832
|
-
const select
|
|
832
|
+
const select$Z = function ApplicantSelect() {
|
|
833
833
|
return {
|
|
834
834
|
kind: 'Fragment',
|
|
835
|
-
version: VERSION$
|
|
835
|
+
version: VERSION$B,
|
|
836
836
|
private: [],
|
|
837
837
|
selections: [
|
|
838
838
|
{
|
|
@@ -853,7 +853,7 @@ const select$$ = function ApplicantSelect() {
|
|
|
853
853
|
]
|
|
854
854
|
};
|
|
855
855
|
};
|
|
856
|
-
function equals$
|
|
856
|
+
function equals$B(existing, incoming) {
|
|
857
857
|
const existing_contactId = existing.contactId;
|
|
858
858
|
const incoming_contactId = incoming.contactId;
|
|
859
859
|
// if at least one of these optionals is defined
|
|
@@ -896,7 +896,7 @@ function equals$C(existing, incoming) {
|
|
|
896
896
|
return true;
|
|
897
897
|
}
|
|
898
898
|
|
|
899
|
-
function validate$
|
|
899
|
+
function validate$18(obj, path = 'Submitter') {
|
|
900
900
|
const v_error = (() => {
|
|
901
901
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
902
902
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -919,7 +919,7 @@ function validate$1a(obj, path = 'Submitter') {
|
|
|
919
919
|
return v_error === undefined ? null : v_error;
|
|
920
920
|
}
|
|
921
921
|
|
|
922
|
-
function validate$
|
|
922
|
+
function validate$17(obj, path = 'Application') {
|
|
923
923
|
const v_error = (() => {
|
|
924
924
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
925
925
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -934,7 +934,7 @@ function validate$19(obj, path = 'Application') {
|
|
|
934
934
|
if (obj.applicant !== undefined) {
|
|
935
935
|
const obj_applicant = obj.applicant;
|
|
936
936
|
const path_applicant = path + '.applicant';
|
|
937
|
-
const referencepath_applicantValidationError = validate$
|
|
937
|
+
const referencepath_applicantValidationError = validate$19(obj_applicant, path_applicant);
|
|
938
938
|
if (referencepath_applicantValidationError !== null) {
|
|
939
939
|
let message = 'Object doesn\'t match Applicant (at "' + path_applicant + '")\n';
|
|
940
940
|
message += referencepath_applicantValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -993,7 +993,7 @@ function validate$19(obj, path = 'Application') {
|
|
|
993
993
|
if (obj.submitter !== undefined) {
|
|
994
994
|
const obj_submitter = obj.submitter;
|
|
995
995
|
const path_submitter = path + '.submitter';
|
|
996
|
-
const referencepath_submitterValidationError = validate$
|
|
996
|
+
const referencepath_submitterValidationError = validate$18(obj_submitter, path_submitter);
|
|
997
997
|
if (referencepath_submitterValidationError !== null) {
|
|
998
998
|
let message = 'Object doesn\'t match Submitter (at "' + path_submitter + '")\n';
|
|
999
999
|
message += referencepath_submitterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1018,7 +1018,7 @@ function validate$19(obj, path = 'Application') {
|
|
|
1018
1018
|
return v_error === undefined ? null : v_error;
|
|
1019
1019
|
}
|
|
1020
1020
|
|
|
1021
|
-
function validate$
|
|
1021
|
+
function validate$16(obj, path = 'GetApplicationsResult') {
|
|
1022
1022
|
const v_error = (() => {
|
|
1023
1023
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1024
1024
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1032,7 +1032,7 @@ function validate$18(obj, path = 'GetApplicationsResult') {
|
|
|
1032
1032
|
for (let i = 0; i < obj_applications.length; i++) {
|
|
1033
1033
|
const obj_applications_item = obj_applications[i];
|
|
1034
1034
|
const path_applications_item = path_applications + '[' + i + ']';
|
|
1035
|
-
const referencepath_applications_itemValidationError = validate$
|
|
1035
|
+
const referencepath_applications_itemValidationError = validate$17(obj_applications_item, path_applications_item);
|
|
1036
1036
|
if (referencepath_applications_itemValidationError !== null) {
|
|
1037
1037
|
let message = 'Object doesn\'t match Application (at "' + path_applications_item + '")\n';
|
|
1038
1038
|
message += referencepath_applications_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1044,9 +1044,9 @@ function validate$18(obj, path = 'GetApplicationsResult') {
|
|
|
1044
1044
|
return v_error === undefined ? null : v_error;
|
|
1045
1045
|
}
|
|
1046
1046
|
|
|
1047
|
-
const TTL$
|
|
1048
|
-
const VERSION$
|
|
1049
|
-
function validate$
|
|
1047
|
+
const TTL$8 = 100;
|
|
1048
|
+
const VERSION$A = "1947ca622740f63d1812cfa7d4dd5989";
|
|
1049
|
+
function validate$15(obj, path = 'ApplicationsOutputRepresentation') {
|
|
1050
1050
|
const v_error = (() => {
|
|
1051
1051
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1052
1052
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1054,7 +1054,7 @@ function validate$17(obj, path = 'ApplicationsOutputRepresentation') {
|
|
|
1054
1054
|
if (obj.result !== undefined) {
|
|
1055
1055
|
const obj_result = obj.result;
|
|
1056
1056
|
const path_result = path + '.result';
|
|
1057
|
-
const referencepath_resultValidationError = validate$
|
|
1057
|
+
const referencepath_resultValidationError = validate$16(obj_result, path_result);
|
|
1058
1058
|
if (referencepath_resultValidationError !== null) {
|
|
1059
1059
|
let message = 'Object doesn\'t match GetApplicationsResult (at "' + path_result + '")\n';
|
|
1060
1060
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1064,62 +1064,62 @@ function validate$17(obj, path = 'ApplicationsOutputRepresentation') {
|
|
|
1064
1064
|
})();
|
|
1065
1065
|
return v_error === undefined ? null : v_error;
|
|
1066
1066
|
}
|
|
1067
|
-
const RepresentationType$
|
|
1068
|
-
function normalize$
|
|
1067
|
+
const RepresentationType$l = 'ApplicationsOutputRepresentation';
|
|
1068
|
+
function normalize$l(input, existing, path, luvio, store, timestamp) {
|
|
1069
1069
|
return input;
|
|
1070
1070
|
}
|
|
1071
|
-
const select$
|
|
1071
|
+
const select$Y = function ApplicationsOutputRepresentationSelect() {
|
|
1072
1072
|
return {
|
|
1073
1073
|
kind: 'Fragment',
|
|
1074
|
-
version: VERSION$
|
|
1074
|
+
version: VERSION$A,
|
|
1075
1075
|
private: [],
|
|
1076
1076
|
opaque: true
|
|
1077
1077
|
};
|
|
1078
1078
|
};
|
|
1079
|
-
function equals$
|
|
1079
|
+
function equals$A(existing, incoming) {
|
|
1080
1080
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1081
1081
|
return false;
|
|
1082
1082
|
}
|
|
1083
1083
|
return true;
|
|
1084
1084
|
}
|
|
1085
|
-
const ingest$
|
|
1085
|
+
const ingest$l = function ApplicationsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1086
1086
|
if (process.env.NODE_ENV !== 'production') {
|
|
1087
|
-
const validateError = validate$
|
|
1087
|
+
const validateError = validate$15(input);
|
|
1088
1088
|
if (validateError !== null) {
|
|
1089
1089
|
throw validateError;
|
|
1090
1090
|
}
|
|
1091
1091
|
}
|
|
1092
1092
|
const key = path.fullPath;
|
|
1093
|
-
const ttlToUse = TTL$
|
|
1094
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1093
|
+
const ttlToUse = TTL$8;
|
|
1094
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$l, "education", VERSION$A, RepresentationType$l, equals$A);
|
|
1095
1095
|
return createLink(key);
|
|
1096
1096
|
};
|
|
1097
|
-
function getTypeCacheKeys$
|
|
1097
|
+
function getTypeCacheKeys$l(rootKeySet, luvio, input, fullPathFactory) {
|
|
1098
1098
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1099
1099
|
const rootKey = fullPathFactory();
|
|
1100
1100
|
rootKeySet.set(rootKey, {
|
|
1101
1101
|
namespace: keyPrefix,
|
|
1102
|
-
representationName: RepresentationType$
|
|
1102
|
+
representationName: RepresentationType$l,
|
|
1103
1103
|
mergeable: false
|
|
1104
1104
|
});
|
|
1105
1105
|
}
|
|
1106
1106
|
|
|
1107
|
-
function select$
|
|
1108
|
-
return select$
|
|
1107
|
+
function select$X(luvio, params) {
|
|
1108
|
+
return select$Y();
|
|
1109
1109
|
}
|
|
1110
|
-
function keyBuilder$
|
|
1110
|
+
function keyBuilder$B(luvio, params) {
|
|
1111
1111
|
return keyPrefix + '::ApplicationsOutputRepresentation:(' + ')';
|
|
1112
1112
|
}
|
|
1113
|
-
function getResponseCacheKeys$
|
|
1114
|
-
getTypeCacheKeys$
|
|
1113
|
+
function getResponseCacheKeys$n(storeKeyMap, luvio, resourceParams, response) {
|
|
1114
|
+
getTypeCacheKeys$l(storeKeyMap, luvio, response, () => keyBuilder$B());
|
|
1115
1115
|
}
|
|
1116
|
-
function ingestSuccess$
|
|
1116
|
+
function ingestSuccess$n(luvio, resourceParams, response, snapshotRefresh) {
|
|
1117
1117
|
const { body } = response;
|
|
1118
|
-
const key = keyBuilder$
|
|
1119
|
-
luvio.storeIngest(key, ingest$
|
|
1118
|
+
const key = keyBuilder$B();
|
|
1119
|
+
luvio.storeIngest(key, ingest$l, body);
|
|
1120
1120
|
const snapshot = luvio.storeLookup({
|
|
1121
1121
|
recordId: key,
|
|
1122
|
-
node: select$
|
|
1122
|
+
node: select$X(),
|
|
1123
1123
|
variables: {},
|
|
1124
1124
|
}, snapshotRefresh);
|
|
1125
1125
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1130,19 +1130,19 @@ function ingestSuccess$o(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1130
1130
|
deepFreeze(snapshot.data);
|
|
1131
1131
|
return snapshot;
|
|
1132
1132
|
}
|
|
1133
|
-
function ingestError$
|
|
1134
|
-
const key = keyBuilder$
|
|
1133
|
+
function ingestError$f(luvio, params, error, snapshotRefresh) {
|
|
1134
|
+
const key = keyBuilder$B();
|
|
1135
1135
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1136
1136
|
const storeMetadataParams = {
|
|
1137
|
-
ttl: TTL$
|
|
1137
|
+
ttl: TTL$8,
|
|
1138
1138
|
namespace: keyPrefix,
|
|
1139
|
-
version: VERSION$
|
|
1140
|
-
representationName: RepresentationType$
|
|
1139
|
+
version: VERSION$A,
|
|
1140
|
+
representationName: RepresentationType$l
|
|
1141
1141
|
};
|
|
1142
1142
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1143
1143
|
return errorSnapshot;
|
|
1144
1144
|
}
|
|
1145
|
-
function createResourceRequest$
|
|
1145
|
+
function createResourceRequest$n(config) {
|
|
1146
1146
|
const headers = {};
|
|
1147
1147
|
return {
|
|
1148
1148
|
baseUri: '/services/data/v62.0',
|
|
@@ -1156,90 +1156,90 @@ function createResourceRequest$o(config) {
|
|
|
1156
1156
|
};
|
|
1157
1157
|
}
|
|
1158
1158
|
|
|
1159
|
-
const adapterName$
|
|
1159
|
+
const adapterName$n = 'getApplications';
|
|
1160
1160
|
const getApplications_ConfigPropertyMetadata = [];
|
|
1161
|
-
const getApplications_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1162
|
-
const createResourceParams$
|
|
1163
|
-
function keyBuilder$
|
|
1164
|
-
createResourceParams$
|
|
1165
|
-
return keyBuilder$
|
|
1161
|
+
const getApplications_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, getApplications_ConfigPropertyMetadata);
|
|
1162
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$p(getApplications_ConfigPropertyMetadata);
|
|
1163
|
+
function keyBuilder$A(luvio, config) {
|
|
1164
|
+
createResourceParams$n(config);
|
|
1165
|
+
return keyBuilder$B();
|
|
1166
1166
|
}
|
|
1167
|
-
function typeCheckConfig$
|
|
1167
|
+
function typeCheckConfig$n(untrustedConfig) {
|
|
1168
1168
|
const config = {};
|
|
1169
1169
|
return config;
|
|
1170
1170
|
}
|
|
1171
|
-
function validateAdapterConfig$
|
|
1171
|
+
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
1172
1172
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1173
1173
|
return null;
|
|
1174
1174
|
}
|
|
1175
1175
|
if (process.env.NODE_ENV !== 'production') {
|
|
1176
1176
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1177
1177
|
}
|
|
1178
|
-
const config = typeCheckConfig$
|
|
1178
|
+
const config = typeCheckConfig$n();
|
|
1179
1179
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1180
1180
|
return null;
|
|
1181
1181
|
}
|
|
1182
1182
|
return config;
|
|
1183
1183
|
}
|
|
1184
|
-
function adapterFragment$
|
|
1185
|
-
createResourceParams$
|
|
1186
|
-
return select$
|
|
1184
|
+
function adapterFragment$f(luvio, config) {
|
|
1185
|
+
createResourceParams$n(config);
|
|
1186
|
+
return select$X();
|
|
1187
1187
|
}
|
|
1188
|
-
function onFetchResponseSuccess$
|
|
1189
|
-
const snapshot = ingestSuccess$
|
|
1188
|
+
function onFetchResponseSuccess$f(luvio, config, resourceParams, response) {
|
|
1189
|
+
const snapshot = ingestSuccess$n(luvio, resourceParams, response, {
|
|
1190
1190
|
config,
|
|
1191
|
-
resolve: () => buildNetworkSnapshot$
|
|
1191
|
+
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
|
|
1192
1192
|
});
|
|
1193
1193
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1194
1194
|
}
|
|
1195
|
-
function onFetchResponseError$
|
|
1196
|
-
const snapshot = ingestError$
|
|
1195
|
+
function onFetchResponseError$f(luvio, config, resourceParams, response) {
|
|
1196
|
+
const snapshot = ingestError$f(luvio, resourceParams, response, {
|
|
1197
1197
|
config,
|
|
1198
|
-
resolve: () => buildNetworkSnapshot$
|
|
1198
|
+
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
|
|
1199
1199
|
});
|
|
1200
1200
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1201
1201
|
}
|
|
1202
|
-
function buildNetworkSnapshot$
|
|
1203
|
-
const resourceParams = createResourceParams$
|
|
1204
|
-
const request = createResourceRequest$
|
|
1202
|
+
function buildNetworkSnapshot$n(luvio, config, options) {
|
|
1203
|
+
const resourceParams = createResourceParams$n(config);
|
|
1204
|
+
const request = createResourceRequest$n();
|
|
1205
1205
|
return luvio.dispatchResourceRequest(request, options)
|
|
1206
1206
|
.then((response) => {
|
|
1207
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1207
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$f(luvio, config, resourceParams, response), () => {
|
|
1208
1208
|
const cache = new StoreKeyMap();
|
|
1209
|
-
getResponseCacheKeys$
|
|
1209
|
+
getResponseCacheKeys$n(cache, luvio, resourceParams, response.body);
|
|
1210
1210
|
return cache;
|
|
1211
1211
|
});
|
|
1212
1212
|
}, (response) => {
|
|
1213
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1213
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$f(luvio, config, resourceParams, response));
|
|
1214
1214
|
});
|
|
1215
1215
|
}
|
|
1216
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1217
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1216
|
+
function buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext) {
|
|
1217
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$n, undefined, false);
|
|
1218
1218
|
}
|
|
1219
|
-
function buildCachedSnapshotCachePolicy$
|
|
1219
|
+
function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
|
|
1220
1220
|
const { luvio, config } = context;
|
|
1221
1221
|
const selector = {
|
|
1222
|
-
recordId: keyBuilder$
|
|
1223
|
-
node: adapterFragment$
|
|
1222
|
+
recordId: keyBuilder$A(luvio, config),
|
|
1223
|
+
node: adapterFragment$f(luvio, config),
|
|
1224
1224
|
variables: {},
|
|
1225
1225
|
};
|
|
1226
1226
|
const cacheSnapshot = storeLookup(selector, {
|
|
1227
1227
|
config,
|
|
1228
|
-
resolve: () => buildNetworkSnapshot$
|
|
1228
|
+
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
|
|
1229
1229
|
});
|
|
1230
1230
|
return cacheSnapshot;
|
|
1231
1231
|
}
|
|
1232
1232
|
const getApplicationsAdapterFactory = (luvio) => function education__getApplications(untrustedConfig, requestContext) {
|
|
1233
|
-
const config = validateAdapterConfig$
|
|
1233
|
+
const config = validateAdapterConfig$n(untrustedConfig, getApplications_ConfigPropertyNames);
|
|
1234
1234
|
// Invalid or incomplete config
|
|
1235
1235
|
if (config === null) {
|
|
1236
1236
|
return null;
|
|
1237
1237
|
}
|
|
1238
1238
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1239
|
-
buildCachedSnapshotCachePolicy$
|
|
1239
|
+
buildCachedSnapshotCachePolicy$f, buildNetworkSnapshotCachePolicy$f);
|
|
1240
1240
|
};
|
|
1241
1241
|
|
|
1242
|
-
function validate$
|
|
1242
|
+
function validate$14(obj, path = 'ApplicationRenderMethod') {
|
|
1243
1243
|
const v_error = (() => {
|
|
1244
1244
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1245
1245
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1276,7 +1276,7 @@ function validate$16(obj, path = 'ApplicationRenderMethod') {
|
|
|
1276
1276
|
return v_error === undefined ? null : v_error;
|
|
1277
1277
|
}
|
|
1278
1278
|
|
|
1279
|
-
function validate$
|
|
1279
|
+
function validate$13(obj, path = 'IndividualApplicationTask') {
|
|
1280
1280
|
const v_error = (() => {
|
|
1281
1281
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1282
1282
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1290,7 +1290,7 @@ function validate$15(obj, path = 'IndividualApplicationTask') {
|
|
|
1290
1290
|
for (let i = 0; i < obj_applicationRenderMethods.length; i++) {
|
|
1291
1291
|
const obj_applicationRenderMethods_item = obj_applicationRenderMethods[i];
|
|
1292
1292
|
const path_applicationRenderMethods_item = path_applicationRenderMethods + '[' + i + ']';
|
|
1293
|
-
const referencepath_applicationRenderMethods_itemValidationError = validate$
|
|
1293
|
+
const referencepath_applicationRenderMethods_itemValidationError = validate$14(obj_applicationRenderMethods_item, path_applicationRenderMethods_item);
|
|
1294
1294
|
if (referencepath_applicationRenderMethods_itemValidationError !== null) {
|
|
1295
1295
|
let message = 'Object doesn\'t match ApplicationRenderMethod (at "' + path_applicationRenderMethods_item + '")\n';
|
|
1296
1296
|
message += referencepath_applicationRenderMethods_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1372,7 +1372,7 @@ function validate$15(obj, path = 'IndividualApplicationTask') {
|
|
|
1372
1372
|
return v_error === undefined ? null : v_error;
|
|
1373
1373
|
}
|
|
1374
1374
|
|
|
1375
|
-
function validate$
|
|
1375
|
+
function validate$12(obj, path = 'GetApplicationDetailsResult') {
|
|
1376
1376
|
const v_error = (() => {
|
|
1377
1377
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1378
1378
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1387,7 +1387,7 @@ function validate$14(obj, path = 'GetApplicationDetailsResult') {
|
|
|
1387
1387
|
if (obj.applicant !== undefined) {
|
|
1388
1388
|
const obj_applicant = obj.applicant;
|
|
1389
1389
|
const path_applicant = path + '.applicant';
|
|
1390
|
-
const referencepath_applicantValidationError = validate$
|
|
1390
|
+
const referencepath_applicantValidationError = validate$19(obj_applicant, path_applicant);
|
|
1391
1391
|
if (referencepath_applicantValidationError !== null) {
|
|
1392
1392
|
let message = 'Object doesn\'t match Applicant (at "' + path_applicant + '")\n';
|
|
1393
1393
|
message += referencepath_applicantValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1431,7 +1431,7 @@ function validate$14(obj, path = 'GetApplicationDetailsResult') {
|
|
|
1431
1431
|
for (let i = 0; i < obj_individualApplicationTasks.length; i++) {
|
|
1432
1432
|
const obj_individualApplicationTasks_item = obj_individualApplicationTasks[i];
|
|
1433
1433
|
const path_individualApplicationTasks_item = path_individualApplicationTasks + '[' + i + ']';
|
|
1434
|
-
const referencepath_individualApplicationTasks_itemValidationError = validate$
|
|
1434
|
+
const referencepath_individualApplicationTasks_itemValidationError = validate$13(obj_individualApplicationTasks_item, path_individualApplicationTasks_item);
|
|
1435
1435
|
if (referencepath_individualApplicationTasks_itemValidationError !== null) {
|
|
1436
1436
|
let message = 'Object doesn\'t match IndividualApplicationTask (at "' + path_individualApplicationTasks_item + '")\n';
|
|
1437
1437
|
message += referencepath_individualApplicationTasks_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1463,7 +1463,7 @@ function validate$14(obj, path = 'GetApplicationDetailsResult') {
|
|
|
1463
1463
|
if (obj.submitter !== undefined) {
|
|
1464
1464
|
const obj_submitter = obj.submitter;
|
|
1465
1465
|
const path_submitter = path + '.submitter';
|
|
1466
|
-
const referencepath_submitterValidationError = validate$
|
|
1466
|
+
const referencepath_submitterValidationError = validate$18(obj_submitter, path_submitter);
|
|
1467
1467
|
if (referencepath_submitterValidationError !== null) {
|
|
1468
1468
|
let message = 'Object doesn\'t match Submitter (at "' + path_submitter + '")\n';
|
|
1469
1469
|
message += referencepath_submitterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1488,9 +1488,9 @@ function validate$14(obj, path = 'GetApplicationDetailsResult') {
|
|
|
1488
1488
|
return v_error === undefined ? null : v_error;
|
|
1489
1489
|
}
|
|
1490
1490
|
|
|
1491
|
-
const TTL$
|
|
1492
|
-
const VERSION$
|
|
1493
|
-
function validate$
|
|
1491
|
+
const TTL$7 = 100;
|
|
1492
|
+
const VERSION$z = "20a50ee9f09ba0dc956412cc14d5b6d5";
|
|
1493
|
+
function validate$11(obj, path = 'ApplicationDetailsOutputRepresentation') {
|
|
1494
1494
|
const v_error = (() => {
|
|
1495
1495
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1496
1496
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1498,7 +1498,7 @@ function validate$13(obj, path = 'ApplicationDetailsOutputRepresentation') {
|
|
|
1498
1498
|
if (obj.result !== undefined) {
|
|
1499
1499
|
const obj_result = obj.result;
|
|
1500
1500
|
const path_result = path + '.result';
|
|
1501
|
-
const referencepath_resultValidationError = validate$
|
|
1501
|
+
const referencepath_resultValidationError = validate$12(obj_result, path_result);
|
|
1502
1502
|
if (referencepath_resultValidationError !== null) {
|
|
1503
1503
|
let message = 'Object doesn\'t match GetApplicationDetailsResult (at "' + path_result + '")\n';
|
|
1504
1504
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1508,62 +1508,62 @@ function validate$13(obj, path = 'ApplicationDetailsOutputRepresentation') {
|
|
|
1508
1508
|
})();
|
|
1509
1509
|
return v_error === undefined ? null : v_error;
|
|
1510
1510
|
}
|
|
1511
|
-
const RepresentationType$
|
|
1512
|
-
function normalize$
|
|
1511
|
+
const RepresentationType$k = 'ApplicationDetailsOutputRepresentation';
|
|
1512
|
+
function normalize$k(input, existing, path, luvio, store, timestamp) {
|
|
1513
1513
|
return input;
|
|
1514
1514
|
}
|
|
1515
|
-
const select$
|
|
1515
|
+
const select$W = function ApplicationDetailsOutputRepresentationSelect() {
|
|
1516
1516
|
return {
|
|
1517
1517
|
kind: 'Fragment',
|
|
1518
|
-
version: VERSION$
|
|
1518
|
+
version: VERSION$z,
|
|
1519
1519
|
private: [],
|
|
1520
1520
|
opaque: true
|
|
1521
1521
|
};
|
|
1522
1522
|
};
|
|
1523
|
-
function equals$
|
|
1523
|
+
function equals$z(existing, incoming) {
|
|
1524
1524
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1525
1525
|
return false;
|
|
1526
1526
|
}
|
|
1527
1527
|
return true;
|
|
1528
1528
|
}
|
|
1529
|
-
const ingest$
|
|
1529
|
+
const ingest$k = function ApplicationDetailsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1530
1530
|
if (process.env.NODE_ENV !== 'production') {
|
|
1531
|
-
const validateError = validate$
|
|
1531
|
+
const validateError = validate$11(input);
|
|
1532
1532
|
if (validateError !== null) {
|
|
1533
1533
|
throw validateError;
|
|
1534
1534
|
}
|
|
1535
1535
|
}
|
|
1536
1536
|
const key = path.fullPath;
|
|
1537
|
-
const ttlToUse = TTL$
|
|
1538
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1537
|
+
const ttlToUse = TTL$7;
|
|
1538
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$k, "education", VERSION$z, RepresentationType$k, equals$z);
|
|
1539
1539
|
return createLink(key);
|
|
1540
1540
|
};
|
|
1541
|
-
function getTypeCacheKeys$
|
|
1541
|
+
function getTypeCacheKeys$k(rootKeySet, luvio, input, fullPathFactory) {
|
|
1542
1542
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1543
1543
|
const rootKey = fullPathFactory();
|
|
1544
1544
|
rootKeySet.set(rootKey, {
|
|
1545
1545
|
namespace: keyPrefix,
|
|
1546
|
-
representationName: RepresentationType$
|
|
1546
|
+
representationName: RepresentationType$k,
|
|
1547
1547
|
mergeable: false
|
|
1548
1548
|
});
|
|
1549
1549
|
}
|
|
1550
1550
|
|
|
1551
|
-
function select$
|
|
1552
|
-
return select$
|
|
1551
|
+
function select$V(luvio, params) {
|
|
1552
|
+
return select$W();
|
|
1553
1553
|
}
|
|
1554
|
-
function keyBuilder$
|
|
1554
|
+
function keyBuilder$z(luvio, params) {
|
|
1555
1555
|
return keyPrefix + '::ApplicationDetailsOutputRepresentation:(' + 'preliminaryApplicationRefId:' + params.urlParams.preliminaryApplicationRefId + ')';
|
|
1556
1556
|
}
|
|
1557
|
-
function getResponseCacheKeys$
|
|
1558
|
-
getTypeCacheKeys$
|
|
1557
|
+
function getResponseCacheKeys$m(storeKeyMap, luvio, resourceParams, response) {
|
|
1558
|
+
getTypeCacheKeys$k(storeKeyMap, luvio, response, () => keyBuilder$z(luvio, resourceParams));
|
|
1559
1559
|
}
|
|
1560
|
-
function ingestSuccess$
|
|
1560
|
+
function ingestSuccess$m(luvio, resourceParams, response, snapshotRefresh) {
|
|
1561
1561
|
const { body } = response;
|
|
1562
|
-
const key = keyBuilder$
|
|
1563
|
-
luvio.storeIngest(key, ingest$
|
|
1562
|
+
const key = keyBuilder$z(luvio, resourceParams);
|
|
1563
|
+
luvio.storeIngest(key, ingest$k, body);
|
|
1564
1564
|
const snapshot = luvio.storeLookup({
|
|
1565
1565
|
recordId: key,
|
|
1566
|
-
node: select$
|
|
1566
|
+
node: select$V(),
|
|
1567
1567
|
variables: {},
|
|
1568
1568
|
}, snapshotRefresh);
|
|
1569
1569
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1574,19 +1574,19 @@ function ingestSuccess$n(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1574
1574
|
deepFreeze(snapshot.data);
|
|
1575
1575
|
return snapshot;
|
|
1576
1576
|
}
|
|
1577
|
-
function ingestError$
|
|
1578
|
-
const key = keyBuilder$
|
|
1577
|
+
function ingestError$e(luvio, params, error, snapshotRefresh) {
|
|
1578
|
+
const key = keyBuilder$z(luvio, params);
|
|
1579
1579
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1580
1580
|
const storeMetadataParams = {
|
|
1581
|
-
ttl: TTL$
|
|
1581
|
+
ttl: TTL$7,
|
|
1582
1582
|
namespace: keyPrefix,
|
|
1583
|
-
version: VERSION$
|
|
1584
|
-
representationName: RepresentationType$
|
|
1583
|
+
version: VERSION$z,
|
|
1584
|
+
representationName: RepresentationType$k
|
|
1585
1585
|
};
|
|
1586
1586
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1587
1587
|
return errorSnapshot;
|
|
1588
1588
|
}
|
|
1589
|
-
function createResourceRequest$
|
|
1589
|
+
function createResourceRequest$m(config) {
|
|
1590
1590
|
const headers = {};
|
|
1591
1591
|
return {
|
|
1592
1592
|
baseUri: '/services/data/v62.0',
|
|
@@ -1600,93 +1600,93 @@ function createResourceRequest$n(config) {
|
|
|
1600
1600
|
};
|
|
1601
1601
|
}
|
|
1602
1602
|
|
|
1603
|
-
const adapterName$
|
|
1603
|
+
const adapterName$m = 'getApplicationDetails';
|
|
1604
1604
|
const getApplicationDetails_ConfigPropertyMetadata = [
|
|
1605
1605
|
generateParamConfigMetadata('preliminaryApplicationRefId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1606
1606
|
];
|
|
1607
|
-
const getApplicationDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1608
|
-
const createResourceParams$
|
|
1609
|
-
function keyBuilder$
|
|
1610
|
-
const resourceParams = createResourceParams$
|
|
1611
|
-
return keyBuilder$
|
|
1607
|
+
const getApplicationDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, getApplicationDetails_ConfigPropertyMetadata);
|
|
1608
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$p(getApplicationDetails_ConfigPropertyMetadata);
|
|
1609
|
+
function keyBuilder$y(luvio, config) {
|
|
1610
|
+
const resourceParams = createResourceParams$m(config);
|
|
1611
|
+
return keyBuilder$z(luvio, resourceParams);
|
|
1612
1612
|
}
|
|
1613
|
-
function typeCheckConfig$
|
|
1613
|
+
function typeCheckConfig$m(untrustedConfig) {
|
|
1614
1614
|
const config = {};
|
|
1615
|
-
typeCheckConfig$
|
|
1615
|
+
typeCheckConfig$p(untrustedConfig, config, getApplicationDetails_ConfigPropertyMetadata);
|
|
1616
1616
|
return config;
|
|
1617
1617
|
}
|
|
1618
|
-
function validateAdapterConfig$
|
|
1618
|
+
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
1619
1619
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1620
1620
|
return null;
|
|
1621
1621
|
}
|
|
1622
1622
|
if (process.env.NODE_ENV !== 'production') {
|
|
1623
1623
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1624
1624
|
}
|
|
1625
|
-
const config = typeCheckConfig$
|
|
1625
|
+
const config = typeCheckConfig$m(untrustedConfig);
|
|
1626
1626
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1627
1627
|
return null;
|
|
1628
1628
|
}
|
|
1629
1629
|
return config;
|
|
1630
1630
|
}
|
|
1631
|
-
function adapterFragment$
|
|
1632
|
-
createResourceParams$
|
|
1633
|
-
return select$
|
|
1631
|
+
function adapterFragment$e(luvio, config) {
|
|
1632
|
+
createResourceParams$m(config);
|
|
1633
|
+
return select$V();
|
|
1634
1634
|
}
|
|
1635
|
-
function onFetchResponseSuccess$
|
|
1636
|
-
const snapshot = ingestSuccess$
|
|
1635
|
+
function onFetchResponseSuccess$e(luvio, config, resourceParams, response) {
|
|
1636
|
+
const snapshot = ingestSuccess$m(luvio, resourceParams, response, {
|
|
1637
1637
|
config,
|
|
1638
|
-
resolve: () => buildNetworkSnapshot$
|
|
1638
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
1639
1639
|
});
|
|
1640
1640
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1641
1641
|
}
|
|
1642
|
-
function onFetchResponseError$
|
|
1643
|
-
const snapshot = ingestError$
|
|
1642
|
+
function onFetchResponseError$e(luvio, config, resourceParams, response) {
|
|
1643
|
+
const snapshot = ingestError$e(luvio, resourceParams, response, {
|
|
1644
1644
|
config,
|
|
1645
|
-
resolve: () => buildNetworkSnapshot$
|
|
1645
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
1646
1646
|
});
|
|
1647
1647
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1648
1648
|
}
|
|
1649
|
-
function buildNetworkSnapshot$
|
|
1650
|
-
const resourceParams = createResourceParams$
|
|
1651
|
-
const request = createResourceRequest$
|
|
1649
|
+
function buildNetworkSnapshot$m(luvio, config, options) {
|
|
1650
|
+
const resourceParams = createResourceParams$m(config);
|
|
1651
|
+
const request = createResourceRequest$m(resourceParams);
|
|
1652
1652
|
return luvio.dispatchResourceRequest(request, options)
|
|
1653
1653
|
.then((response) => {
|
|
1654
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1654
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$e(luvio, config, resourceParams, response), () => {
|
|
1655
1655
|
const cache = new StoreKeyMap();
|
|
1656
|
-
getResponseCacheKeys$
|
|
1656
|
+
getResponseCacheKeys$m(cache, luvio, resourceParams, response.body);
|
|
1657
1657
|
return cache;
|
|
1658
1658
|
});
|
|
1659
1659
|
}, (response) => {
|
|
1660
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1660
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$e(luvio, config, resourceParams, response));
|
|
1661
1661
|
});
|
|
1662
1662
|
}
|
|
1663
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1664
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1663
|
+
function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
|
|
1664
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$m, undefined, false);
|
|
1665
1665
|
}
|
|
1666
|
-
function buildCachedSnapshotCachePolicy$
|
|
1666
|
+
function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
|
|
1667
1667
|
const { luvio, config } = context;
|
|
1668
1668
|
const selector = {
|
|
1669
|
-
recordId: keyBuilder$
|
|
1670
|
-
node: adapterFragment$
|
|
1669
|
+
recordId: keyBuilder$y(luvio, config),
|
|
1670
|
+
node: adapterFragment$e(luvio, config),
|
|
1671
1671
|
variables: {},
|
|
1672
1672
|
};
|
|
1673
1673
|
const cacheSnapshot = storeLookup(selector, {
|
|
1674
1674
|
config,
|
|
1675
|
-
resolve: () => buildNetworkSnapshot$
|
|
1675
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
1676
1676
|
});
|
|
1677
1677
|
return cacheSnapshot;
|
|
1678
1678
|
}
|
|
1679
1679
|
const getApplicationDetailsAdapterFactory = (luvio) => function education__getApplicationDetails(untrustedConfig, requestContext) {
|
|
1680
|
-
const config = validateAdapterConfig$
|
|
1680
|
+
const config = validateAdapterConfig$m(untrustedConfig, getApplicationDetails_ConfigPropertyNames);
|
|
1681
1681
|
// Invalid or incomplete config
|
|
1682
1682
|
if (config === null) {
|
|
1683
1683
|
return null;
|
|
1684
1684
|
}
|
|
1685
1685
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1686
|
-
buildCachedSnapshotCachePolicy$
|
|
1686
|
+
buildCachedSnapshotCachePolicy$e, buildNetworkSnapshotCachePolicy$e);
|
|
1687
1687
|
};
|
|
1688
1688
|
|
|
1689
|
-
function validate$
|
|
1689
|
+
function validate$10(obj, path = 'AvailableTimeSlotsInputRepresentation') {
|
|
1690
1690
|
const v_error = (() => {
|
|
1691
1691
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1692
1692
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1750,8 +1750,8 @@ function validate$12(obj, path = 'AvailableTimeSlotsInputRepresentation') {
|
|
|
1750
1750
|
return v_error === undefined ? null : v_error;
|
|
1751
1751
|
}
|
|
1752
1752
|
|
|
1753
|
-
const VERSION$
|
|
1754
|
-
function validate
|
|
1753
|
+
const VERSION$y = "cfd94fbef61f52ffe43428e23e7a68c8";
|
|
1754
|
+
function validate$$(obj, path = 'TimeSlot') {
|
|
1755
1755
|
const v_error = (() => {
|
|
1756
1756
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1757
1757
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1787,10 +1787,10 @@ function validate$11(obj, path = 'TimeSlot') {
|
|
|
1787
1787
|
})();
|
|
1788
1788
|
return v_error === undefined ? null : v_error;
|
|
1789
1789
|
}
|
|
1790
|
-
const select$
|
|
1790
|
+
const select$U = function TimeSlotSelect() {
|
|
1791
1791
|
return {
|
|
1792
1792
|
kind: 'Fragment',
|
|
1793
|
-
version: VERSION$
|
|
1793
|
+
version: VERSION$y,
|
|
1794
1794
|
private: [],
|
|
1795
1795
|
selections: [
|
|
1796
1796
|
{
|
|
@@ -1816,7 +1816,7 @@ const select$W = function TimeSlotSelect() {
|
|
|
1816
1816
|
]
|
|
1817
1817
|
};
|
|
1818
1818
|
};
|
|
1819
|
-
function equals$
|
|
1819
|
+
function equals$y(existing, incoming) {
|
|
1820
1820
|
const existing_endTime = existing.endTime;
|
|
1821
1821
|
const incoming_endTime = incoming.endTime;
|
|
1822
1822
|
// if at least one of these optionals is defined
|
|
@@ -1872,8 +1872,8 @@ function equals$z(existing, incoming) {
|
|
|
1872
1872
|
return true;
|
|
1873
1873
|
}
|
|
1874
1874
|
|
|
1875
|
-
const VERSION$
|
|
1876
|
-
function validate$
|
|
1875
|
+
const VERSION$x = "9c2ef94b89ee532c50c8423528617441";
|
|
1876
|
+
function validate$_(obj, path = 'AvailableTimeSlotsOuputRepresentation') {
|
|
1877
1877
|
const v_error = (() => {
|
|
1878
1878
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1879
1879
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1886,7 +1886,7 @@ function validate$10(obj, path = 'AvailableTimeSlotsOuputRepresentation') {
|
|
|
1886
1886
|
for (let i = 0; i < obj_timeSlots.length; i++) {
|
|
1887
1887
|
const obj_timeSlots_item = obj_timeSlots[i];
|
|
1888
1888
|
const path_timeSlots_item = path_timeSlots + '[' + i + ']';
|
|
1889
|
-
const referencepath_timeSlots_itemValidationError = validate
|
|
1889
|
+
const referencepath_timeSlots_itemValidationError = validate$$(obj_timeSlots_item, path_timeSlots_item);
|
|
1890
1890
|
if (referencepath_timeSlots_itemValidationError !== null) {
|
|
1891
1891
|
let message = 'Object doesn\'t match TimeSlot (at "' + path_timeSlots_item + '")\n';
|
|
1892
1892
|
message += referencepath_timeSlots_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1896,15 +1896,15 @@ function validate$10(obj, path = 'AvailableTimeSlotsOuputRepresentation') {
|
|
|
1896
1896
|
})();
|
|
1897
1897
|
return v_error === undefined ? null : v_error;
|
|
1898
1898
|
}
|
|
1899
|
-
const RepresentationType$
|
|
1900
|
-
function normalize$
|
|
1899
|
+
const RepresentationType$j = 'AvailableTimeSlotsOuputRepresentation';
|
|
1900
|
+
function normalize$j(input, existing, path, luvio, store, timestamp) {
|
|
1901
1901
|
return input;
|
|
1902
1902
|
}
|
|
1903
|
-
const select$
|
|
1904
|
-
const { selections: TimeSlot__selections, opaque: TimeSlot__opaque, } = select$
|
|
1903
|
+
const select$T = function AvailableTimeSlotsOuputRepresentationSelect() {
|
|
1904
|
+
const { selections: TimeSlot__selections, opaque: TimeSlot__opaque, } = select$U();
|
|
1905
1905
|
return {
|
|
1906
1906
|
kind: 'Fragment',
|
|
1907
|
-
version: VERSION$
|
|
1907
|
+
version: VERSION$x,
|
|
1908
1908
|
private: [],
|
|
1909
1909
|
selections: [
|
|
1910
1910
|
{
|
|
@@ -1916,11 +1916,11 @@ const select$V = function AvailableTimeSlotsOuputRepresentationSelect() {
|
|
|
1916
1916
|
]
|
|
1917
1917
|
};
|
|
1918
1918
|
};
|
|
1919
|
-
function equals$
|
|
1919
|
+
function equals$x(existing, incoming) {
|
|
1920
1920
|
const existing_timeSlots = existing.timeSlots;
|
|
1921
1921
|
const incoming_timeSlots = incoming.timeSlots;
|
|
1922
1922
|
const equals_timeSlots_items = equalsArray(existing_timeSlots, incoming_timeSlots, (existing_timeSlots_item, incoming_timeSlots_item) => {
|
|
1923
|
-
if (!(equals$
|
|
1923
|
+
if (!(equals$y(existing_timeSlots_item, incoming_timeSlots_item))) {
|
|
1924
1924
|
return false;
|
|
1925
1925
|
}
|
|
1926
1926
|
});
|
|
@@ -1929,44 +1929,44 @@ function equals$y(existing, incoming) {
|
|
|
1929
1929
|
}
|
|
1930
1930
|
return true;
|
|
1931
1931
|
}
|
|
1932
|
-
const ingest$
|
|
1932
|
+
const ingest$j = function AvailableTimeSlotsOuputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1933
1933
|
if (process.env.NODE_ENV !== 'production') {
|
|
1934
|
-
const validateError = validate$
|
|
1934
|
+
const validateError = validate$_(input);
|
|
1935
1935
|
if (validateError !== null) {
|
|
1936
1936
|
throw validateError;
|
|
1937
1937
|
}
|
|
1938
1938
|
}
|
|
1939
1939
|
const key = path.fullPath;
|
|
1940
1940
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
1941
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1941
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$j, "education", VERSION$x, RepresentationType$j, equals$x);
|
|
1942
1942
|
return createLink(key);
|
|
1943
1943
|
};
|
|
1944
|
-
function getTypeCacheKeys$
|
|
1944
|
+
function getTypeCacheKeys$j(rootKeySet, luvio, input, fullPathFactory) {
|
|
1945
1945
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1946
1946
|
const rootKey = fullPathFactory();
|
|
1947
1947
|
rootKeySet.set(rootKey, {
|
|
1948
1948
|
namespace: keyPrefix,
|
|
1949
|
-
representationName: RepresentationType$
|
|
1949
|
+
representationName: RepresentationType$j,
|
|
1950
1950
|
mergeable: false
|
|
1951
1951
|
});
|
|
1952
1952
|
}
|
|
1953
1953
|
|
|
1954
|
-
function select$
|
|
1955
|
-
return select$
|
|
1954
|
+
function select$S(luvio, params) {
|
|
1955
|
+
return select$T();
|
|
1956
1956
|
}
|
|
1957
|
-
function keyBuilder$
|
|
1957
|
+
function keyBuilder$x(luvio, params) {
|
|
1958
1958
|
return keyPrefix + '::AvailableTimeSlotsOuputRepresentation:(' + (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 + ')';
|
|
1959
1959
|
}
|
|
1960
|
-
function getResponseCacheKeys$
|
|
1961
|
-
getTypeCacheKeys$
|
|
1960
|
+
function getResponseCacheKeys$l(storeKeyMap, luvio, resourceParams, response) {
|
|
1961
|
+
getTypeCacheKeys$j(storeKeyMap, luvio, response, () => keyBuilder$x(luvio, resourceParams));
|
|
1962
1962
|
}
|
|
1963
|
-
function ingestSuccess$
|
|
1963
|
+
function ingestSuccess$l(luvio, resourceParams, response, snapshotRefresh) {
|
|
1964
1964
|
const { body } = response;
|
|
1965
|
-
const key = keyBuilder$
|
|
1966
|
-
luvio.storeIngest(key, ingest$
|
|
1965
|
+
const key = keyBuilder$x(luvio, resourceParams);
|
|
1966
|
+
luvio.storeIngest(key, ingest$j, body);
|
|
1967
1967
|
const snapshot = luvio.storeLookup({
|
|
1968
1968
|
recordId: key,
|
|
1969
|
-
node: select$
|
|
1969
|
+
node: select$S(),
|
|
1970
1970
|
variables: {},
|
|
1971
1971
|
}, snapshotRefresh);
|
|
1972
1972
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1977,13 +1977,13 @@ function ingestSuccess$m(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1977
1977
|
deepFreeze(snapshot.data);
|
|
1978
1978
|
return snapshot;
|
|
1979
1979
|
}
|
|
1980
|
-
function ingestError$
|
|
1981
|
-
const key = keyBuilder$
|
|
1980
|
+
function ingestError$d(luvio, params, error, snapshotRefresh) {
|
|
1981
|
+
const key = keyBuilder$x(luvio, params);
|
|
1982
1982
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1983
1983
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1984
1984
|
return errorSnapshot;
|
|
1985
1985
|
}
|
|
1986
|
-
function createResourceRequest$
|
|
1986
|
+
function createResourceRequest$l(config) {
|
|
1987
1987
|
const headers = {};
|
|
1988
1988
|
return {
|
|
1989
1989
|
baseUri: '/services/data/v62.0',
|
|
@@ -1997,98 +1997,98 @@ function createResourceRequest$m(config) {
|
|
|
1997
1997
|
};
|
|
1998
1998
|
}
|
|
1999
1999
|
|
|
2000
|
-
const adapterName$
|
|
2000
|
+
const adapterName$l = 'getAvailableTimeSlots';
|
|
2001
2001
|
const getAvailableTimeSlots_ConfigPropertyMetadata = [
|
|
2002
2002
|
generateParamConfigMetadata('availableTimeSlotsInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2003
2003
|
];
|
|
2004
|
-
const getAvailableTimeSlots_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2005
|
-
const createResourceParams$
|
|
2006
|
-
function keyBuilder$
|
|
2007
|
-
const resourceParams = createResourceParams$
|
|
2008
|
-
return keyBuilder$
|
|
2004
|
+
const getAvailableTimeSlots_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, getAvailableTimeSlots_ConfigPropertyMetadata);
|
|
2005
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$p(getAvailableTimeSlots_ConfigPropertyMetadata);
|
|
2006
|
+
function keyBuilder$w(luvio, config) {
|
|
2007
|
+
const resourceParams = createResourceParams$l(config);
|
|
2008
|
+
return keyBuilder$x(luvio, resourceParams);
|
|
2009
2009
|
}
|
|
2010
|
-
function typeCheckConfig$
|
|
2010
|
+
function typeCheckConfig$l(untrustedConfig) {
|
|
2011
2011
|
const config = {};
|
|
2012
2012
|
const untrustedConfig_availableTimeSlotsInput = untrustedConfig.availableTimeSlotsInput;
|
|
2013
|
-
const referenceAvailableTimeSlotsInputRepresentationValidationError = validate$
|
|
2013
|
+
const referenceAvailableTimeSlotsInputRepresentationValidationError = validate$10(untrustedConfig_availableTimeSlotsInput);
|
|
2014
2014
|
if (referenceAvailableTimeSlotsInputRepresentationValidationError === null) {
|
|
2015
2015
|
config.availableTimeSlotsInput = untrustedConfig_availableTimeSlotsInput;
|
|
2016
2016
|
}
|
|
2017
2017
|
return config;
|
|
2018
2018
|
}
|
|
2019
|
-
function validateAdapterConfig$
|
|
2019
|
+
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
2020
2020
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2021
2021
|
return null;
|
|
2022
2022
|
}
|
|
2023
2023
|
if (process.env.NODE_ENV !== 'production') {
|
|
2024
2024
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2025
2025
|
}
|
|
2026
|
-
const config = typeCheckConfig$
|
|
2026
|
+
const config = typeCheckConfig$l(untrustedConfig);
|
|
2027
2027
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2028
2028
|
return null;
|
|
2029
2029
|
}
|
|
2030
2030
|
return config;
|
|
2031
2031
|
}
|
|
2032
|
-
function adapterFragment$
|
|
2033
|
-
createResourceParams$
|
|
2034
|
-
return select$
|
|
2032
|
+
function adapterFragment$d(luvio, config) {
|
|
2033
|
+
createResourceParams$l(config);
|
|
2034
|
+
return select$S();
|
|
2035
2035
|
}
|
|
2036
|
-
function onFetchResponseSuccess$
|
|
2037
|
-
const snapshot = ingestSuccess$
|
|
2038
|
-
config,
|
|
2039
|
-
resolve: () => buildNetworkSnapshot$
|
|
2036
|
+
function onFetchResponseSuccess$d(luvio, config, resourceParams, response) {
|
|
2037
|
+
const snapshot = ingestSuccess$l(luvio, resourceParams, response, {
|
|
2038
|
+
config,
|
|
2039
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
2040
2040
|
});
|
|
2041
2041
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2042
2042
|
}
|
|
2043
|
-
function onFetchResponseError$
|
|
2044
|
-
const snapshot = ingestError$
|
|
2043
|
+
function onFetchResponseError$d(luvio, config, resourceParams, response) {
|
|
2044
|
+
const snapshot = ingestError$d(luvio, resourceParams, response, {
|
|
2045
2045
|
config,
|
|
2046
|
-
resolve: () => buildNetworkSnapshot$
|
|
2046
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
2047
2047
|
});
|
|
2048
2048
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2049
2049
|
}
|
|
2050
|
-
function buildNetworkSnapshot$
|
|
2051
|
-
const resourceParams = createResourceParams$
|
|
2052
|
-
const request = createResourceRequest$
|
|
2050
|
+
function buildNetworkSnapshot$l(luvio, config, options) {
|
|
2051
|
+
const resourceParams = createResourceParams$l(config);
|
|
2052
|
+
const request = createResourceRequest$l(resourceParams);
|
|
2053
2053
|
return luvio.dispatchResourceRequest(request, options)
|
|
2054
2054
|
.then((response) => {
|
|
2055
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2055
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$d(luvio, config, resourceParams, response), () => {
|
|
2056
2056
|
const cache = new StoreKeyMap();
|
|
2057
|
-
getResponseCacheKeys$
|
|
2057
|
+
getResponseCacheKeys$l(cache, luvio, resourceParams, response.body);
|
|
2058
2058
|
return cache;
|
|
2059
2059
|
});
|
|
2060
2060
|
}, (response) => {
|
|
2061
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2061
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$d(luvio, config, resourceParams, response));
|
|
2062
2062
|
});
|
|
2063
2063
|
}
|
|
2064
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2065
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2064
|
+
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
2065
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$l, 'get', false);
|
|
2066
2066
|
}
|
|
2067
|
-
function buildCachedSnapshotCachePolicy$
|
|
2067
|
+
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
2068
2068
|
const { luvio, config } = context;
|
|
2069
2069
|
const selector = {
|
|
2070
|
-
recordId: keyBuilder$
|
|
2071
|
-
node: adapterFragment$
|
|
2070
|
+
recordId: keyBuilder$w(luvio, config),
|
|
2071
|
+
node: adapterFragment$d(luvio, config),
|
|
2072
2072
|
variables: {},
|
|
2073
2073
|
};
|
|
2074
2074
|
const cacheSnapshot = storeLookup(selector, {
|
|
2075
2075
|
config,
|
|
2076
|
-
resolve: () => buildNetworkSnapshot$
|
|
2076
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
2077
2077
|
});
|
|
2078
2078
|
return cacheSnapshot;
|
|
2079
2079
|
}
|
|
2080
2080
|
const getAvailableTimeSlotsAdapterFactory = (luvio) => function education__getAvailableTimeSlots(untrustedConfig, requestContext) {
|
|
2081
|
-
const config = validateAdapterConfig$
|
|
2081
|
+
const config = validateAdapterConfig$l(untrustedConfig, getAvailableTimeSlots_ConfigPropertyNames);
|
|
2082
2082
|
// Invalid or incomplete config
|
|
2083
2083
|
if (config === null) {
|
|
2084
2084
|
return null;
|
|
2085
2085
|
}
|
|
2086
2086
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2087
|
-
buildCachedSnapshotCachePolicy$
|
|
2087
|
+
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
|
|
2088
2088
|
};
|
|
2089
2089
|
|
|
2090
|
-
const VERSION$
|
|
2091
|
-
function validate
|
|
2090
|
+
const VERSION$w = "c470aba735607497dd11c1fcd34489d1";
|
|
2091
|
+
function validate$Z(obj, path = 'AvailableTopic') {
|
|
2092
2092
|
const v_error = (() => {
|
|
2093
2093
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2094
2094
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2133,10 +2133,10 @@ function validate$$(obj, path = 'AvailableTopic') {
|
|
|
2133
2133
|
})();
|
|
2134
2134
|
return v_error === undefined ? null : v_error;
|
|
2135
2135
|
}
|
|
2136
|
-
const select$
|
|
2136
|
+
const select$R = function AvailableTopicSelect() {
|
|
2137
2137
|
return {
|
|
2138
2138
|
kind: 'Fragment',
|
|
2139
|
-
version: VERSION$
|
|
2139
|
+
version: VERSION$w,
|
|
2140
2140
|
private: [],
|
|
2141
2141
|
selections: [
|
|
2142
2142
|
{
|
|
@@ -2162,7 +2162,7 @@ const select$T = function AvailableTopicSelect() {
|
|
|
2162
2162
|
]
|
|
2163
2163
|
};
|
|
2164
2164
|
};
|
|
2165
|
-
function equals$
|
|
2165
|
+
function equals$w(existing, incoming) {
|
|
2166
2166
|
const existing_parentWorkTypeGroupName = existing.parentWorkTypeGroupName;
|
|
2167
2167
|
const incoming_parentWorkTypeGroupName = incoming.parentWorkTypeGroupName;
|
|
2168
2168
|
// if at least one of these optionals is defined
|
|
@@ -2223,8 +2223,8 @@ function equals$x(existing, incoming) {
|
|
|
2223
2223
|
return true;
|
|
2224
2224
|
}
|
|
2225
2225
|
|
|
2226
|
-
const VERSION$
|
|
2227
|
-
function validate$
|
|
2226
|
+
const VERSION$v = "3cb0110faf688dc57056aa83be527181";
|
|
2227
|
+
function validate$Y(obj, path = 'AvailableTopicsOutputRepresentation') {
|
|
2228
2228
|
const v_error = (() => {
|
|
2229
2229
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2230
2230
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2237,7 +2237,7 @@ function validate$_(obj, path = 'AvailableTopicsOutputRepresentation') {
|
|
|
2237
2237
|
for (let i = 0; i < obj_topics.length; i++) {
|
|
2238
2238
|
const obj_topics_item = obj_topics[i];
|
|
2239
2239
|
const path_topics_item = path_topics + '[' + i + ']';
|
|
2240
|
-
const referencepath_topics_itemValidationError = validate
|
|
2240
|
+
const referencepath_topics_itemValidationError = validate$Z(obj_topics_item, path_topics_item);
|
|
2241
2241
|
if (referencepath_topics_itemValidationError !== null) {
|
|
2242
2242
|
let message = 'Object doesn\'t match AvailableTopic (at "' + path_topics_item + '")\n';
|
|
2243
2243
|
message += referencepath_topics_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2247,15 +2247,15 @@ function validate$_(obj, path = 'AvailableTopicsOutputRepresentation') {
|
|
|
2247
2247
|
})();
|
|
2248
2248
|
return v_error === undefined ? null : v_error;
|
|
2249
2249
|
}
|
|
2250
|
-
const RepresentationType$
|
|
2251
|
-
function normalize$
|
|
2250
|
+
const RepresentationType$i = 'AvailableTopicsOutputRepresentation';
|
|
2251
|
+
function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
2252
2252
|
return input;
|
|
2253
2253
|
}
|
|
2254
|
-
const select$
|
|
2255
|
-
const { selections: AvailableTopic__selections, opaque: AvailableTopic__opaque, } = select$
|
|
2254
|
+
const select$Q = function AvailableTopicsOutputRepresentationSelect() {
|
|
2255
|
+
const { selections: AvailableTopic__selections, opaque: AvailableTopic__opaque, } = select$R();
|
|
2256
2256
|
return {
|
|
2257
2257
|
kind: 'Fragment',
|
|
2258
|
-
version: VERSION$
|
|
2258
|
+
version: VERSION$v,
|
|
2259
2259
|
private: [],
|
|
2260
2260
|
selections: [
|
|
2261
2261
|
{
|
|
@@ -2267,11 +2267,11 @@ const select$S = function AvailableTopicsOutputRepresentationSelect() {
|
|
|
2267
2267
|
]
|
|
2268
2268
|
};
|
|
2269
2269
|
};
|
|
2270
|
-
function equals$
|
|
2270
|
+
function equals$v(existing, incoming) {
|
|
2271
2271
|
const existing_topics = existing.topics;
|
|
2272
2272
|
const incoming_topics = incoming.topics;
|
|
2273
2273
|
const equals_topics_items = equalsArray(existing_topics, incoming_topics, (existing_topics_item, incoming_topics_item) => {
|
|
2274
|
-
if (!(equals$
|
|
2274
|
+
if (!(equals$w(existing_topics_item, incoming_topics_item))) {
|
|
2275
2275
|
return false;
|
|
2276
2276
|
}
|
|
2277
2277
|
});
|
|
@@ -2280,44 +2280,44 @@ function equals$w(existing, incoming) {
|
|
|
2280
2280
|
}
|
|
2281
2281
|
return true;
|
|
2282
2282
|
}
|
|
2283
|
-
const ingest$
|
|
2283
|
+
const ingest$i = function AvailableTopicsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2284
2284
|
if (process.env.NODE_ENV !== 'production') {
|
|
2285
|
-
const validateError = validate$
|
|
2285
|
+
const validateError = validate$Y(input);
|
|
2286
2286
|
if (validateError !== null) {
|
|
2287
2287
|
throw validateError;
|
|
2288
2288
|
}
|
|
2289
2289
|
}
|
|
2290
2290
|
const key = path.fullPath;
|
|
2291
2291
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
2292
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2292
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "education", VERSION$v, RepresentationType$i, equals$v);
|
|
2293
2293
|
return createLink(key);
|
|
2294
2294
|
};
|
|
2295
|
-
function getTypeCacheKeys$
|
|
2295
|
+
function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
2296
2296
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2297
2297
|
const rootKey = fullPathFactory();
|
|
2298
2298
|
rootKeySet.set(rootKey, {
|
|
2299
2299
|
namespace: keyPrefix,
|
|
2300
|
-
representationName: RepresentationType$
|
|
2300
|
+
representationName: RepresentationType$i,
|
|
2301
2301
|
mergeable: false
|
|
2302
2302
|
});
|
|
2303
2303
|
}
|
|
2304
2304
|
|
|
2305
|
-
function select$
|
|
2306
|
-
return select$
|
|
2305
|
+
function select$P(luvio, params) {
|
|
2306
|
+
return select$Q();
|
|
2307
2307
|
}
|
|
2308
|
-
function keyBuilder$
|
|
2308
|
+
function keyBuilder$v(luvio, params) {
|
|
2309
2309
|
return keyPrefix + '::AvailableTopicsOutputRepresentation:(' + ')';
|
|
2310
2310
|
}
|
|
2311
|
-
function getResponseCacheKeys$
|
|
2312
|
-
getTypeCacheKeys$
|
|
2311
|
+
function getResponseCacheKeys$k(storeKeyMap, luvio, resourceParams, response) {
|
|
2312
|
+
getTypeCacheKeys$i(storeKeyMap, luvio, response, () => keyBuilder$v());
|
|
2313
2313
|
}
|
|
2314
|
-
function ingestSuccess$
|
|
2314
|
+
function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
|
|
2315
2315
|
const { body } = response;
|
|
2316
|
-
const key = keyBuilder$
|
|
2317
|
-
luvio.storeIngest(key, ingest$
|
|
2316
|
+
const key = keyBuilder$v();
|
|
2317
|
+
luvio.storeIngest(key, ingest$i, body);
|
|
2318
2318
|
const snapshot = luvio.storeLookup({
|
|
2319
2319
|
recordId: key,
|
|
2320
|
-
node: select$
|
|
2320
|
+
node: select$P(),
|
|
2321
2321
|
variables: {},
|
|
2322
2322
|
}, snapshotRefresh);
|
|
2323
2323
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2328,13 +2328,13 @@ function ingestSuccess$l(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2328
2328
|
deepFreeze(snapshot.data);
|
|
2329
2329
|
return snapshot;
|
|
2330
2330
|
}
|
|
2331
|
-
function ingestError$
|
|
2332
|
-
const key = keyBuilder$
|
|
2331
|
+
function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
2332
|
+
const key = keyBuilder$v();
|
|
2333
2333
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2334
2334
|
luvio.storeIngestError(key, errorSnapshot);
|
|
2335
2335
|
return errorSnapshot;
|
|
2336
2336
|
}
|
|
2337
|
-
function createResourceRequest$
|
|
2337
|
+
function createResourceRequest$k(config) {
|
|
2338
2338
|
const headers = {};
|
|
2339
2339
|
return {
|
|
2340
2340
|
baseUri: '/services/data/v62.0',
|
|
@@ -2348,90 +2348,90 @@ function createResourceRequest$l(config) {
|
|
|
2348
2348
|
};
|
|
2349
2349
|
}
|
|
2350
2350
|
|
|
2351
|
-
const adapterName$
|
|
2351
|
+
const adapterName$k = 'getAvailableTopics';
|
|
2352
2352
|
const getAvailableTopics_ConfigPropertyMetadata = [];
|
|
2353
|
-
const getAvailableTopics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2354
|
-
const createResourceParams$
|
|
2355
|
-
function keyBuilder$
|
|
2356
|
-
createResourceParams$
|
|
2357
|
-
return keyBuilder$
|
|
2353
|
+
const getAvailableTopics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getAvailableTopics_ConfigPropertyMetadata);
|
|
2354
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$p(getAvailableTopics_ConfigPropertyMetadata);
|
|
2355
|
+
function keyBuilder$u(luvio, config) {
|
|
2356
|
+
createResourceParams$k(config);
|
|
2357
|
+
return keyBuilder$v();
|
|
2358
2358
|
}
|
|
2359
|
-
function typeCheckConfig$
|
|
2359
|
+
function typeCheckConfig$k(untrustedConfig) {
|
|
2360
2360
|
const config = {};
|
|
2361
2361
|
return config;
|
|
2362
2362
|
}
|
|
2363
|
-
function validateAdapterConfig$
|
|
2363
|
+
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
2364
2364
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2365
2365
|
return null;
|
|
2366
2366
|
}
|
|
2367
2367
|
if (process.env.NODE_ENV !== 'production') {
|
|
2368
2368
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2369
2369
|
}
|
|
2370
|
-
const config = typeCheckConfig$
|
|
2370
|
+
const config = typeCheckConfig$k();
|
|
2371
2371
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2372
2372
|
return null;
|
|
2373
2373
|
}
|
|
2374
2374
|
return config;
|
|
2375
2375
|
}
|
|
2376
|
-
function adapterFragment$
|
|
2377
|
-
createResourceParams$
|
|
2378
|
-
return select$
|
|
2376
|
+
function adapterFragment$c(luvio, config) {
|
|
2377
|
+
createResourceParams$k(config);
|
|
2378
|
+
return select$P();
|
|
2379
2379
|
}
|
|
2380
|
-
function onFetchResponseSuccess$
|
|
2381
|
-
const snapshot = ingestSuccess$
|
|
2380
|
+
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
2381
|
+
const snapshot = ingestSuccess$k(luvio, resourceParams, response, {
|
|
2382
2382
|
config,
|
|
2383
|
-
resolve: () => buildNetworkSnapshot$
|
|
2383
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
2384
2384
|
});
|
|
2385
2385
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2386
2386
|
}
|
|
2387
|
-
function onFetchResponseError$
|
|
2388
|
-
const snapshot = ingestError$
|
|
2387
|
+
function onFetchResponseError$c(luvio, config, resourceParams, response) {
|
|
2388
|
+
const snapshot = ingestError$c(luvio, resourceParams, response, {
|
|
2389
2389
|
config,
|
|
2390
|
-
resolve: () => buildNetworkSnapshot$
|
|
2390
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
2391
2391
|
});
|
|
2392
2392
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2393
2393
|
}
|
|
2394
|
-
function buildNetworkSnapshot$
|
|
2395
|
-
const resourceParams = createResourceParams$
|
|
2396
|
-
const request = createResourceRequest$
|
|
2394
|
+
function buildNetworkSnapshot$k(luvio, config, options) {
|
|
2395
|
+
const resourceParams = createResourceParams$k(config);
|
|
2396
|
+
const request = createResourceRequest$k();
|
|
2397
2397
|
return luvio.dispatchResourceRequest(request, options)
|
|
2398
2398
|
.then((response) => {
|
|
2399
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2399
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => {
|
|
2400
2400
|
const cache = new StoreKeyMap();
|
|
2401
|
-
getResponseCacheKeys$
|
|
2401
|
+
getResponseCacheKeys$k(cache, luvio, resourceParams, response.body);
|
|
2402
2402
|
return cache;
|
|
2403
2403
|
});
|
|
2404
2404
|
}, (response) => {
|
|
2405
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2405
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$c(luvio, config, resourceParams, response));
|
|
2406
2406
|
});
|
|
2407
2407
|
}
|
|
2408
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2409
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2408
|
+
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
2409
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
2410
2410
|
}
|
|
2411
|
-
function buildCachedSnapshotCachePolicy$
|
|
2411
|
+
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
2412
2412
|
const { luvio, config } = context;
|
|
2413
2413
|
const selector = {
|
|
2414
|
-
recordId: keyBuilder$
|
|
2415
|
-
node: adapterFragment$
|
|
2414
|
+
recordId: keyBuilder$u(luvio, config),
|
|
2415
|
+
node: adapterFragment$c(luvio, config),
|
|
2416
2416
|
variables: {},
|
|
2417
2417
|
};
|
|
2418
2418
|
const cacheSnapshot = storeLookup(selector, {
|
|
2419
2419
|
config,
|
|
2420
|
-
resolve: () => buildNetworkSnapshot$
|
|
2420
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
2421
2421
|
});
|
|
2422
2422
|
return cacheSnapshot;
|
|
2423
2423
|
}
|
|
2424
2424
|
const getAvailableTopicsAdapterFactory = (luvio) => function education__getAvailableTopics(untrustedConfig, requestContext) {
|
|
2425
|
-
const config = validateAdapterConfig$
|
|
2425
|
+
const config = validateAdapterConfig$k(untrustedConfig, getAvailableTopics_ConfigPropertyNames);
|
|
2426
2426
|
// Invalid or incomplete config
|
|
2427
2427
|
if (config === null) {
|
|
2428
2428
|
return null;
|
|
2429
2429
|
}
|
|
2430
2430
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2431
|
-
buildCachedSnapshotCachePolicy$
|
|
2431
|
+
buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
|
|
2432
2432
|
};
|
|
2433
2433
|
|
|
2434
|
-
function validate$
|
|
2434
|
+
function validate$X(obj, path = 'LearningProgramPlanRequirementOutput') {
|
|
2435
2435
|
const v_error = (() => {
|
|
2436
2436
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2437
2437
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2469,7 +2469,7 @@ function validate$Z(obj, path = 'LearningProgramPlanRequirementOutput') {
|
|
|
2469
2469
|
for (let i = 0; i < obj_fulfilledBy.length; i++) {
|
|
2470
2470
|
const obj_fulfilledBy_item = obj_fulfilledBy[i];
|
|
2471
2471
|
const path_fulfilledBy_item = path_fulfilledBy + '[' + i + ']';
|
|
2472
|
-
const referencepath_fulfilledBy_itemValidationError = validate$
|
|
2472
|
+
const referencepath_fulfilledBy_itemValidationError = validate$1c(obj_fulfilledBy_item, path_fulfilledBy_item);
|
|
2473
2473
|
if (referencepath_fulfilledBy_itemValidationError !== null) {
|
|
2474
2474
|
let message = 'Object doesn\'t match LearningFulfiller (at "' + path_fulfilledBy_item + '")\n';
|
|
2475
2475
|
message += referencepath_fulfilledBy_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2516,7 +2516,7 @@ function validate$Z(obj, path = 'LearningProgramPlanRequirementOutput') {
|
|
|
2516
2516
|
return v_error === undefined ? null : v_error;
|
|
2517
2517
|
}
|
|
2518
2518
|
|
|
2519
|
-
function validate$
|
|
2519
|
+
function validate$W(obj, path = 'LearnerProgramRequirement') {
|
|
2520
2520
|
const v_error = (() => {
|
|
2521
2521
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2522
2522
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2543,7 +2543,7 @@ function validate$Y(obj, path = 'LearnerProgramRequirement') {
|
|
|
2543
2543
|
if (obj.learningProgramPlanRequirement !== undefined) {
|
|
2544
2544
|
const obj_learningProgramPlanRequirement = obj.learningProgramPlanRequirement;
|
|
2545
2545
|
const path_learningProgramPlanRequirement = path + '.learningProgramPlanRequirement';
|
|
2546
|
-
const referencepath_learningProgramPlanRequirementValidationError = validate$
|
|
2546
|
+
const referencepath_learningProgramPlanRequirementValidationError = validate$X(obj_learningProgramPlanRequirement, path_learningProgramPlanRequirement);
|
|
2547
2547
|
if (referencepath_learningProgramPlanRequirementValidationError !== null) {
|
|
2548
2548
|
let message = 'Object doesn\'t match LearningProgramPlanRequirementOutput (at "' + path_learningProgramPlanRequirement + '")\n';
|
|
2549
2549
|
message += referencepath_learningProgramPlanRequirementValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2589,7 +2589,7 @@ function validate$Y(obj, path = 'LearnerProgramRequirement') {
|
|
|
2589
2589
|
return v_error === undefined ? null : v_error;
|
|
2590
2590
|
}
|
|
2591
2591
|
|
|
2592
|
-
function validate$
|
|
2592
|
+
function validate$V(obj, path = 'LearnerProgram') {
|
|
2593
2593
|
const v_error = (() => {
|
|
2594
2594
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2595
2595
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2639,7 +2639,7 @@ function validate$X(obj, path = 'LearnerProgram') {
|
|
|
2639
2639
|
if (obj.learningOutcomeItem !== undefined) {
|
|
2640
2640
|
const obj_learningOutcomeItem = obj.learningOutcomeItem;
|
|
2641
2641
|
const path_learningOutcomeItem = path + '.learningOutcomeItem';
|
|
2642
|
-
const referencepath_learningOutcomeItemValidationError = validate$
|
|
2642
|
+
const referencepath_learningOutcomeItemValidationError = validate$1e(obj_learningOutcomeItem, path_learningOutcomeItem);
|
|
2643
2643
|
if (referencepath_learningOutcomeItemValidationError !== null) {
|
|
2644
2644
|
let message = 'Object doesn\'t match LearningOutcomeItemOutput (at "' + path_learningOutcomeItem + '")\n';
|
|
2645
2645
|
message += referencepath_learningOutcomeItemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2725,7 +2725,7 @@ function validate$X(obj, path = 'LearnerProgram') {
|
|
|
2725
2725
|
for (let i = 0; i < obj_requirements.length; i++) {
|
|
2726
2726
|
const obj_requirements_item = obj_requirements[i];
|
|
2727
2727
|
const path_requirements_item = path_requirements + '[' + i + ']';
|
|
2728
|
-
const referencepath_requirements_itemValidationError = validate$
|
|
2728
|
+
const referencepath_requirements_itemValidationError = validate$W(obj_requirements_item, path_requirements_item);
|
|
2729
2729
|
if (referencepath_requirements_itemValidationError !== null) {
|
|
2730
2730
|
let message = 'Object doesn\'t match LearnerProgramRequirement (at "' + path_requirements_item + '")\n';
|
|
2731
2731
|
message += referencepath_requirements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2751,8 +2751,8 @@ function validate$X(obj, path = 'LearnerProgram') {
|
|
|
2751
2751
|
return v_error === undefined ? null : v_error;
|
|
2752
2752
|
}
|
|
2753
2753
|
|
|
2754
|
-
const VERSION$
|
|
2755
|
-
function validate$
|
|
2754
|
+
const VERSION$u = "a465786ab4e5c95e1d888615e32dd640";
|
|
2755
|
+
function validate$U(obj, path = 'LearnerProgressOutputRepresentation') {
|
|
2756
2756
|
const v_error = (() => {
|
|
2757
2757
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2758
2758
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2766,7 +2766,7 @@ function validate$W(obj, path = 'LearnerProgressOutputRepresentation') {
|
|
|
2766
2766
|
for (let i = 0; i < obj_learnerPrograms.length; i++) {
|
|
2767
2767
|
const obj_learnerPrograms_item = obj_learnerPrograms[i];
|
|
2768
2768
|
const path_learnerPrograms_item = path_learnerPrograms + '[' + i + ']';
|
|
2769
|
-
const referencepath_learnerPrograms_itemValidationError = validate$
|
|
2769
|
+
const referencepath_learnerPrograms_itemValidationError = validate$V(obj_learnerPrograms_item, path_learnerPrograms_item);
|
|
2770
2770
|
if (referencepath_learnerPrograms_itemValidationError !== null) {
|
|
2771
2771
|
let message = 'Object doesn\'t match LearnerProgram (at "' + path_learnerPrograms_item + '")\n';
|
|
2772
2772
|
message += referencepath_learnerPrograms_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2783,7 +2783,7 @@ function validate$W(obj, path = 'LearnerProgressOutputRepresentation') {
|
|
|
2783
2783
|
for (let i = 0; i < obj_nonRequiredLearnings.length; i++) {
|
|
2784
2784
|
const obj_nonRequiredLearnings_item = obj_nonRequiredLearnings[i];
|
|
2785
2785
|
const path_nonRequiredLearnings_item = path_nonRequiredLearnings + '[' + i + ']';
|
|
2786
|
-
const referencepath_nonRequiredLearnings_itemValidationError = validate$
|
|
2786
|
+
const referencepath_nonRequiredLearnings_itemValidationError = validate$1c(obj_nonRequiredLearnings_item, path_nonRequiredLearnings_item);
|
|
2787
2787
|
if (referencepath_nonRequiredLearnings_itemValidationError !== null) {
|
|
2788
2788
|
let message = 'Object doesn\'t match LearningFulfiller (at "' + path_nonRequiredLearnings_item + '")\n';
|
|
2789
2789
|
message += referencepath_nonRequiredLearnings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2794,62 +2794,62 @@ function validate$W(obj, path = 'LearnerProgressOutputRepresentation') {
|
|
|
2794
2794
|
})();
|
|
2795
2795
|
return v_error === undefined ? null : v_error;
|
|
2796
2796
|
}
|
|
2797
|
-
const RepresentationType$
|
|
2798
|
-
function normalize$
|
|
2797
|
+
const RepresentationType$h = 'LearnerProgressOutputRepresentation';
|
|
2798
|
+
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
2799
2799
|
return input;
|
|
2800
2800
|
}
|
|
2801
|
-
const select$
|
|
2801
|
+
const select$O = function LearnerProgressOutputRepresentationSelect() {
|
|
2802
2802
|
return {
|
|
2803
2803
|
kind: 'Fragment',
|
|
2804
|
-
version: VERSION$
|
|
2804
|
+
version: VERSION$u,
|
|
2805
2805
|
private: [],
|
|
2806
2806
|
opaque: true
|
|
2807
2807
|
};
|
|
2808
2808
|
};
|
|
2809
|
-
function equals$
|
|
2809
|
+
function equals$u(existing, incoming) {
|
|
2810
2810
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2811
2811
|
return false;
|
|
2812
2812
|
}
|
|
2813
2813
|
return true;
|
|
2814
2814
|
}
|
|
2815
|
-
const ingest$
|
|
2815
|
+
const ingest$h = function LearnerProgressOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2816
2816
|
if (process.env.NODE_ENV !== 'production') {
|
|
2817
|
-
const validateError = validate$
|
|
2817
|
+
const validateError = validate$U(input);
|
|
2818
2818
|
if (validateError !== null) {
|
|
2819
2819
|
throw validateError;
|
|
2820
2820
|
}
|
|
2821
2821
|
}
|
|
2822
2822
|
const key = path.fullPath;
|
|
2823
2823
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
2824
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2824
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "education", VERSION$u, RepresentationType$h, equals$u);
|
|
2825
2825
|
return createLink(key);
|
|
2826
2826
|
};
|
|
2827
|
-
function getTypeCacheKeys$
|
|
2827
|
+
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
2828
2828
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2829
2829
|
const rootKey = fullPathFactory();
|
|
2830
2830
|
rootKeySet.set(rootKey, {
|
|
2831
2831
|
namespace: keyPrefix,
|
|
2832
|
-
representationName: RepresentationType$
|
|
2832
|
+
representationName: RepresentationType$h,
|
|
2833
2833
|
mergeable: false
|
|
2834
2834
|
});
|
|
2835
2835
|
}
|
|
2836
2836
|
|
|
2837
|
-
function select$
|
|
2838
|
-
return select$
|
|
2837
|
+
function select$N(luvio, params) {
|
|
2838
|
+
return select$O();
|
|
2839
2839
|
}
|
|
2840
|
-
function keyBuilder$
|
|
2840
|
+
function keyBuilder$t(luvio, params) {
|
|
2841
2841
|
return keyPrefix + '::LearnerProgressOutputRepresentation:(' + 'learnerPathwayId:' + params.queryParams.learnerPathwayId + ',' + 'contactId:' + params.urlParams.contactId + ')';
|
|
2842
2842
|
}
|
|
2843
|
-
function getResponseCacheKeys$
|
|
2844
|
-
getTypeCacheKeys$
|
|
2843
|
+
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
2844
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response, () => keyBuilder$t(luvio, resourceParams));
|
|
2845
2845
|
}
|
|
2846
|
-
function ingestSuccess$
|
|
2846
|
+
function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
2847
2847
|
const { body } = response;
|
|
2848
|
-
const key = keyBuilder$
|
|
2849
|
-
luvio.storeIngest(key, ingest$
|
|
2848
|
+
const key = keyBuilder$t(luvio, resourceParams);
|
|
2849
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
2850
2850
|
const snapshot = luvio.storeLookup({
|
|
2851
2851
|
recordId: key,
|
|
2852
|
-
node: select$
|
|
2852
|
+
node: select$N(),
|
|
2853
2853
|
variables: {},
|
|
2854
2854
|
}, snapshotRefresh);
|
|
2855
2855
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2860,13 +2860,13 @@ function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2860
2860
|
deepFreeze(snapshot.data);
|
|
2861
2861
|
return snapshot;
|
|
2862
2862
|
}
|
|
2863
|
-
function ingestError$
|
|
2864
|
-
const key = keyBuilder$
|
|
2863
|
+
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
2864
|
+
const key = keyBuilder$t(luvio, params);
|
|
2865
2865
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2866
2866
|
luvio.storeIngestError(key, errorSnapshot);
|
|
2867
2867
|
return errorSnapshot;
|
|
2868
2868
|
}
|
|
2869
|
-
function createResourceRequest$
|
|
2869
|
+
function createResourceRequest$j(config) {
|
|
2870
2870
|
const headers = {};
|
|
2871
2871
|
return {
|
|
2872
2872
|
baseUri: '/services/data/v62.0',
|
|
@@ -2880,94 +2880,94 @@ function createResourceRequest$k(config) {
|
|
|
2880
2880
|
};
|
|
2881
2881
|
}
|
|
2882
2882
|
|
|
2883
|
-
const adapterName$
|
|
2883
|
+
const adapterName$j = 'getLearnerProgress';
|
|
2884
2884
|
const getLearnerProgress_ConfigPropertyMetadata = [
|
|
2885
2885
|
generateParamConfigMetadata('contactId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2886
2886
|
generateParamConfigMetadata('learnerPathwayId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2887
2887
|
];
|
|
2888
|
-
const getLearnerProgress_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2889
|
-
const createResourceParams$
|
|
2890
|
-
function keyBuilder$
|
|
2891
|
-
const resourceParams = createResourceParams$
|
|
2892
|
-
return keyBuilder$
|
|
2888
|
+
const getLearnerProgress_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, getLearnerProgress_ConfigPropertyMetadata);
|
|
2889
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$p(getLearnerProgress_ConfigPropertyMetadata);
|
|
2890
|
+
function keyBuilder$s(luvio, config) {
|
|
2891
|
+
const resourceParams = createResourceParams$j(config);
|
|
2892
|
+
return keyBuilder$t(luvio, resourceParams);
|
|
2893
2893
|
}
|
|
2894
|
-
function typeCheckConfig$
|
|
2894
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
2895
2895
|
const config = {};
|
|
2896
|
-
typeCheckConfig$
|
|
2896
|
+
typeCheckConfig$p(untrustedConfig, config, getLearnerProgress_ConfigPropertyMetadata);
|
|
2897
2897
|
return config;
|
|
2898
2898
|
}
|
|
2899
|
-
function validateAdapterConfig$
|
|
2899
|
+
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
2900
2900
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2901
2901
|
return null;
|
|
2902
2902
|
}
|
|
2903
2903
|
if (process.env.NODE_ENV !== 'production') {
|
|
2904
2904
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2905
2905
|
}
|
|
2906
|
-
const config = typeCheckConfig$
|
|
2906
|
+
const config = typeCheckConfig$j(untrustedConfig);
|
|
2907
2907
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2908
2908
|
return null;
|
|
2909
2909
|
}
|
|
2910
2910
|
return config;
|
|
2911
2911
|
}
|
|
2912
|
-
function adapterFragment$
|
|
2913
|
-
createResourceParams$
|
|
2914
|
-
return select$
|
|
2912
|
+
function adapterFragment$b(luvio, config) {
|
|
2913
|
+
createResourceParams$j(config);
|
|
2914
|
+
return select$N();
|
|
2915
2915
|
}
|
|
2916
|
-
function onFetchResponseSuccess$
|
|
2917
|
-
const snapshot = ingestSuccess$
|
|
2916
|
+
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
2917
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
|
|
2918
2918
|
config,
|
|
2919
|
-
resolve: () => buildNetworkSnapshot$
|
|
2919
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
2920
2920
|
});
|
|
2921
2921
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2922
2922
|
}
|
|
2923
|
-
function onFetchResponseError$
|
|
2924
|
-
const snapshot = ingestError$
|
|
2923
|
+
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
2924
|
+
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
2925
2925
|
config,
|
|
2926
|
-
resolve: () => buildNetworkSnapshot$
|
|
2926
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
2927
2927
|
});
|
|
2928
2928
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2929
2929
|
}
|
|
2930
|
-
function buildNetworkSnapshot$
|
|
2931
|
-
const resourceParams = createResourceParams$
|
|
2932
|
-
const request = createResourceRequest$
|
|
2930
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
2931
|
+
const resourceParams = createResourceParams$j(config);
|
|
2932
|
+
const request = createResourceRequest$j(resourceParams);
|
|
2933
2933
|
return luvio.dispatchResourceRequest(request, options)
|
|
2934
2934
|
.then((response) => {
|
|
2935
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2935
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
|
|
2936
2936
|
const cache = new StoreKeyMap();
|
|
2937
|
-
getResponseCacheKeys$
|
|
2937
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
2938
2938
|
return cache;
|
|
2939
2939
|
});
|
|
2940
2940
|
}, (response) => {
|
|
2941
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2941
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$b(luvio, config, resourceParams, response));
|
|
2942
2942
|
});
|
|
2943
2943
|
}
|
|
2944
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2945
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2944
|
+
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
2945
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$j, undefined, false);
|
|
2946
2946
|
}
|
|
2947
|
-
function buildCachedSnapshotCachePolicy$
|
|
2947
|
+
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
2948
2948
|
const { luvio, config } = context;
|
|
2949
2949
|
const selector = {
|
|
2950
|
-
recordId: keyBuilder$
|
|
2951
|
-
node: adapterFragment$
|
|
2950
|
+
recordId: keyBuilder$s(luvio, config),
|
|
2951
|
+
node: adapterFragment$b(luvio, config),
|
|
2952
2952
|
variables: {},
|
|
2953
2953
|
};
|
|
2954
2954
|
const cacheSnapshot = storeLookup(selector, {
|
|
2955
2955
|
config,
|
|
2956
|
-
resolve: () => buildNetworkSnapshot$
|
|
2956
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
2957
2957
|
});
|
|
2958
2958
|
return cacheSnapshot;
|
|
2959
2959
|
}
|
|
2960
2960
|
const getLearnerProgressAdapterFactory = (luvio) => function education__getLearnerProgress(untrustedConfig, requestContext) {
|
|
2961
|
-
const config = validateAdapterConfig$
|
|
2961
|
+
const config = validateAdapterConfig$j(untrustedConfig, getLearnerProgress_ConfigPropertyNames);
|
|
2962
2962
|
// Invalid or incomplete config
|
|
2963
2963
|
if (config === null) {
|
|
2964
2964
|
return null;
|
|
2965
2965
|
}
|
|
2966
2966
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2967
|
-
buildCachedSnapshotCachePolicy$
|
|
2967
|
+
buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
|
|
2968
2968
|
};
|
|
2969
2969
|
|
|
2970
|
-
function validate$
|
|
2970
|
+
function validate$T(obj, path = 'CreateLearningInputRepresentation') {
|
|
2971
2971
|
const v_error = (() => {
|
|
2972
2972
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2973
2973
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3051,9 +3051,9 @@ function validate$V(obj, path = 'CreateLearningInputRepresentation') {
|
|
|
3051
3051
|
return v_error === undefined ? null : v_error;
|
|
3052
3052
|
}
|
|
3053
3053
|
|
|
3054
|
-
const TTL$
|
|
3055
|
-
const VERSION$
|
|
3056
|
-
function validate$
|
|
3054
|
+
const TTL$6 = 100;
|
|
3055
|
+
const VERSION$t = "007261ab77a4c0e4b59ae9c1245e9305";
|
|
3056
|
+
function validate$S(obj, path = 'CreateLearningOutputRepresentation') {
|
|
3057
3057
|
const v_error = (() => {
|
|
3058
3058
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3059
3059
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3122,68 +3122,68 @@ function validate$U(obj, path = 'CreateLearningOutputRepresentation') {
|
|
|
3122
3122
|
})();
|
|
3123
3123
|
return v_error === undefined ? null : v_error;
|
|
3124
3124
|
}
|
|
3125
|
-
const RepresentationType$
|
|
3126
|
-
function keyBuilder$
|
|
3127
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3125
|
+
const RepresentationType$g = 'CreateLearningOutputRepresentation';
|
|
3126
|
+
function keyBuilder$r(luvio, config) {
|
|
3127
|
+
return keyPrefix + '::' + RepresentationType$g + ':' + config.id;
|
|
3128
3128
|
}
|
|
3129
3129
|
function keyBuilderFromType$5(luvio, object) {
|
|
3130
3130
|
const keyParams = {
|
|
3131
3131
|
id: object.learningId
|
|
3132
3132
|
};
|
|
3133
|
-
return keyBuilder$
|
|
3133
|
+
return keyBuilder$r(luvio, keyParams);
|
|
3134
3134
|
}
|
|
3135
|
-
function normalize$
|
|
3135
|
+
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
3136
3136
|
return input;
|
|
3137
3137
|
}
|
|
3138
|
-
const select$
|
|
3138
|
+
const select$M = function CreateLearningOutputRepresentationSelect() {
|
|
3139
3139
|
return {
|
|
3140
3140
|
kind: 'Fragment',
|
|
3141
|
-
version: VERSION$
|
|
3141
|
+
version: VERSION$t,
|
|
3142
3142
|
private: [],
|
|
3143
3143
|
opaque: true
|
|
3144
3144
|
};
|
|
3145
3145
|
};
|
|
3146
|
-
function equals$
|
|
3146
|
+
function equals$t(existing, incoming) {
|
|
3147
3147
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3148
3148
|
return false;
|
|
3149
3149
|
}
|
|
3150
3150
|
return true;
|
|
3151
3151
|
}
|
|
3152
|
-
const ingest$
|
|
3152
|
+
const ingest$g = function CreateLearningOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3153
3153
|
if (process.env.NODE_ENV !== 'production') {
|
|
3154
|
-
const validateError = validate$
|
|
3154
|
+
const validateError = validate$S(input);
|
|
3155
3155
|
if (validateError !== null) {
|
|
3156
3156
|
throw validateError;
|
|
3157
3157
|
}
|
|
3158
3158
|
}
|
|
3159
3159
|
const key = keyBuilderFromType$5(luvio, input);
|
|
3160
|
-
const ttlToUse = TTL$
|
|
3161
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3160
|
+
const ttlToUse = TTL$6;
|
|
3161
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "education", VERSION$t, RepresentationType$g, equals$t);
|
|
3162
3162
|
return createLink(key);
|
|
3163
3163
|
};
|
|
3164
|
-
function getTypeCacheKeys$
|
|
3164
|
+
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
3165
3165
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3166
3166
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
3167
3167
|
rootKeySet.set(rootKey, {
|
|
3168
3168
|
namespace: keyPrefix,
|
|
3169
|
-
representationName: RepresentationType$
|
|
3169
|
+
representationName: RepresentationType$g,
|
|
3170
3170
|
mergeable: false
|
|
3171
3171
|
});
|
|
3172
3172
|
}
|
|
3173
3173
|
|
|
3174
|
-
function select$
|
|
3175
|
-
return select$
|
|
3174
|
+
function select$L(luvio, params) {
|
|
3175
|
+
return select$M();
|
|
3176
3176
|
}
|
|
3177
|
-
function getResponseCacheKeys$
|
|
3178
|
-
getTypeCacheKeys$
|
|
3177
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
3178
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
3179
3179
|
}
|
|
3180
|
-
function ingestSuccess$
|
|
3180
|
+
function ingestSuccess$i(luvio, resourceParams, response) {
|
|
3181
3181
|
const { body } = response;
|
|
3182
3182
|
const key = keyBuilderFromType$5(luvio, body);
|
|
3183
|
-
luvio.storeIngest(key, ingest$
|
|
3183
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
3184
3184
|
const snapshot = luvio.storeLookup({
|
|
3185
3185
|
recordId: key,
|
|
3186
|
-
node: select$
|
|
3186
|
+
node: select$L(),
|
|
3187
3187
|
variables: {},
|
|
3188
3188
|
});
|
|
3189
3189
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3194,7 +3194,7 @@ function ingestSuccess$j(luvio, resourceParams, response) {
|
|
|
3194
3194
|
deepFreeze(snapshot.data);
|
|
3195
3195
|
return snapshot;
|
|
3196
3196
|
}
|
|
3197
|
-
function createResourceRequest$
|
|
3197
|
+
function createResourceRequest$i(config) {
|
|
3198
3198
|
const headers = {};
|
|
3199
3199
|
return {
|
|
3200
3200
|
baseUri: '/services/data/v62.0',
|
|
@@ -3208,45 +3208,45 @@ function createResourceRequest$j(config) {
|
|
|
3208
3208
|
};
|
|
3209
3209
|
}
|
|
3210
3210
|
|
|
3211
|
-
const adapterName$
|
|
3211
|
+
const adapterName$i = 'postCreateLearning';
|
|
3212
3212
|
const postCreateLearning_ConfigPropertyMetadata = [
|
|
3213
3213
|
generateParamConfigMetadata('createLearningRecord', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3214
3214
|
];
|
|
3215
|
-
const postCreateLearning_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3216
|
-
const createResourceParams$
|
|
3217
|
-
function typeCheckConfig$
|
|
3215
|
+
const postCreateLearning_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, postCreateLearning_ConfigPropertyMetadata);
|
|
3216
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$p(postCreateLearning_ConfigPropertyMetadata);
|
|
3217
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
3218
3218
|
const config = {};
|
|
3219
3219
|
const untrustedConfig_createLearningRecord = untrustedConfig.createLearningRecord;
|
|
3220
|
-
const referenceCreateLearningInputRepresentationValidationError = validate$
|
|
3220
|
+
const referenceCreateLearningInputRepresentationValidationError = validate$T(untrustedConfig_createLearningRecord);
|
|
3221
3221
|
if (referenceCreateLearningInputRepresentationValidationError === null) {
|
|
3222
3222
|
config.createLearningRecord = untrustedConfig_createLearningRecord;
|
|
3223
3223
|
}
|
|
3224
3224
|
return config;
|
|
3225
3225
|
}
|
|
3226
|
-
function validateAdapterConfig$
|
|
3226
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
3227
3227
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3228
3228
|
return null;
|
|
3229
3229
|
}
|
|
3230
3230
|
if (process.env.NODE_ENV !== 'production') {
|
|
3231
3231
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3232
3232
|
}
|
|
3233
|
-
const config = typeCheckConfig$
|
|
3233
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
3234
3234
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3235
3235
|
return null;
|
|
3236
3236
|
}
|
|
3237
3237
|
return config;
|
|
3238
3238
|
}
|
|
3239
|
-
function buildNetworkSnapshot$
|
|
3240
|
-
const resourceParams = createResourceParams$
|
|
3241
|
-
const request = createResourceRequest$
|
|
3239
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
3240
|
+
const resourceParams = createResourceParams$i(config);
|
|
3241
|
+
const request = createResourceRequest$i(resourceParams);
|
|
3242
3242
|
return luvio.dispatchResourceRequest(request, options)
|
|
3243
3243
|
.then((response) => {
|
|
3244
3244
|
return luvio.handleSuccessResponse(() => {
|
|
3245
|
-
const snapshot = ingestSuccess$
|
|
3245
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response);
|
|
3246
3246
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3247
3247
|
}, () => {
|
|
3248
3248
|
const cache = new StoreKeyMap();
|
|
3249
|
-
getResponseCacheKeys$
|
|
3249
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
3250
3250
|
return cache;
|
|
3251
3251
|
});
|
|
3252
3252
|
}, (response) => {
|
|
@@ -3256,16 +3256,16 @@ function buildNetworkSnapshot$j(luvio, config, options) {
|
|
|
3256
3256
|
}
|
|
3257
3257
|
const postCreateLearningAdapterFactory = (luvio) => {
|
|
3258
3258
|
return function postCreateLearning(untrustedConfig) {
|
|
3259
|
-
const config = validateAdapterConfig$
|
|
3259
|
+
const config = validateAdapterConfig$i(untrustedConfig, postCreateLearning_ConfigPropertyNames);
|
|
3260
3260
|
// Invalid or incomplete config
|
|
3261
3261
|
if (config === null) {
|
|
3262
3262
|
throw new Error('Invalid config for "postCreateLearning"');
|
|
3263
3263
|
}
|
|
3264
|
-
return buildNetworkSnapshot$
|
|
3264
|
+
return buildNetworkSnapshot$i(luvio, config);
|
|
3265
3265
|
};
|
|
3266
3266
|
};
|
|
3267
3267
|
|
|
3268
|
-
function validate$
|
|
3268
|
+
function validate$R(obj, path = 'UpdateLearningInputRepresentation') {
|
|
3269
3269
|
const v_error = (() => {
|
|
3270
3270
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3271
3271
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3314,19 +3314,19 @@ function validate$T(obj, path = 'UpdateLearningInputRepresentation') {
|
|
|
3314
3314
|
return v_error === undefined ? null : v_error;
|
|
3315
3315
|
}
|
|
3316
3316
|
|
|
3317
|
-
function select$
|
|
3318
|
-
return select$
|
|
3317
|
+
function select$K(luvio, params) {
|
|
3318
|
+
return select$M();
|
|
3319
3319
|
}
|
|
3320
|
-
function getResponseCacheKeys$
|
|
3321
|
-
getTypeCacheKeys$
|
|
3320
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
3321
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
3322
3322
|
}
|
|
3323
|
-
function ingestSuccess$
|
|
3323
|
+
function ingestSuccess$h(luvio, resourceParams, response) {
|
|
3324
3324
|
const { body } = response;
|
|
3325
3325
|
const key = keyBuilderFromType$5(luvio, body);
|
|
3326
|
-
luvio.storeIngest(key, ingest$
|
|
3326
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
3327
3327
|
const snapshot = luvio.storeLookup({
|
|
3328
3328
|
recordId: key,
|
|
3329
|
-
node: select$
|
|
3329
|
+
node: select$K(),
|
|
3330
3330
|
variables: {},
|
|
3331
3331
|
});
|
|
3332
3332
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3337,7 +3337,7 @@ function ingestSuccess$i(luvio, resourceParams, response) {
|
|
|
3337
3337
|
deepFreeze(snapshot.data);
|
|
3338
3338
|
return snapshot;
|
|
3339
3339
|
}
|
|
3340
|
-
function createResourceRequest$
|
|
3340
|
+
function createResourceRequest$h(config) {
|
|
3341
3341
|
const headers = {};
|
|
3342
3342
|
return {
|
|
3343
3343
|
baseUri: '/services/data/v62.0',
|
|
@@ -3351,45 +3351,45 @@ function createResourceRequest$i(config) {
|
|
|
3351
3351
|
};
|
|
3352
3352
|
}
|
|
3353
3353
|
|
|
3354
|
-
const adapterName$
|
|
3354
|
+
const adapterName$h = 'updateLearning';
|
|
3355
3355
|
const updateLearning_ConfigPropertyMetadata = [
|
|
3356
3356
|
generateParamConfigMetadata('updateLearningRecord', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3357
3357
|
];
|
|
3358
|
-
const updateLearning_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3359
|
-
const createResourceParams$
|
|
3360
|
-
function typeCheckConfig$
|
|
3358
|
+
const updateLearning_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, updateLearning_ConfigPropertyMetadata);
|
|
3359
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$p(updateLearning_ConfigPropertyMetadata);
|
|
3360
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
3361
3361
|
const config = {};
|
|
3362
3362
|
const untrustedConfig_updateLearningRecord = untrustedConfig.updateLearningRecord;
|
|
3363
|
-
const referenceUpdateLearningInputRepresentationValidationError = validate$
|
|
3363
|
+
const referenceUpdateLearningInputRepresentationValidationError = validate$R(untrustedConfig_updateLearningRecord);
|
|
3364
3364
|
if (referenceUpdateLearningInputRepresentationValidationError === null) {
|
|
3365
3365
|
config.updateLearningRecord = untrustedConfig_updateLearningRecord;
|
|
3366
3366
|
}
|
|
3367
3367
|
return config;
|
|
3368
3368
|
}
|
|
3369
|
-
function validateAdapterConfig$
|
|
3369
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
3370
3370
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3371
3371
|
return null;
|
|
3372
3372
|
}
|
|
3373
3373
|
if (process.env.NODE_ENV !== 'production') {
|
|
3374
3374
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3375
3375
|
}
|
|
3376
|
-
const config = typeCheckConfig$
|
|
3376
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
3377
3377
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3378
3378
|
return null;
|
|
3379
3379
|
}
|
|
3380
3380
|
return config;
|
|
3381
3381
|
}
|
|
3382
|
-
function buildNetworkSnapshot$
|
|
3383
|
-
const resourceParams = createResourceParams$
|
|
3384
|
-
const request = createResourceRequest$
|
|
3382
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
3383
|
+
const resourceParams = createResourceParams$h(config);
|
|
3384
|
+
const request = createResourceRequest$h(resourceParams);
|
|
3385
3385
|
return luvio.dispatchResourceRequest(request, options)
|
|
3386
3386
|
.then((response) => {
|
|
3387
3387
|
return luvio.handleSuccessResponse(() => {
|
|
3388
|
-
const snapshot = ingestSuccess$
|
|
3388
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response);
|
|
3389
3389
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3390
3390
|
}, () => {
|
|
3391
3391
|
const cache = new StoreKeyMap();
|
|
3392
|
-
getResponseCacheKeys$
|
|
3392
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
3393
3393
|
return cache;
|
|
3394
3394
|
});
|
|
3395
3395
|
}, (response) => {
|
|
@@ -3399,16 +3399,16 @@ function buildNetworkSnapshot$i(luvio, config, options) {
|
|
|
3399
3399
|
}
|
|
3400
3400
|
const updateLearningAdapterFactory = (luvio) => {
|
|
3401
3401
|
return function updateLearning(untrustedConfig) {
|
|
3402
|
-
const config = validateAdapterConfig$
|
|
3402
|
+
const config = validateAdapterConfig$h(untrustedConfig, updateLearning_ConfigPropertyNames);
|
|
3403
3403
|
// Invalid or incomplete config
|
|
3404
3404
|
if (config === null) {
|
|
3405
3405
|
throw new Error('Invalid config for "updateLearning"');
|
|
3406
3406
|
}
|
|
3407
|
-
return buildNetworkSnapshot$
|
|
3407
|
+
return buildNetworkSnapshot$h(luvio, config);
|
|
3408
3408
|
};
|
|
3409
3409
|
};
|
|
3410
3410
|
|
|
3411
|
-
function validate$
|
|
3411
|
+
function validate$Q(obj, path = 'LearningFoundationItemValidationInput') {
|
|
3412
3412
|
const v_error = (() => {
|
|
3413
3413
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3414
3414
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3446,7 +3446,7 @@ function validate$S(obj, path = 'LearningFoundationItemValidationInput') {
|
|
|
3446
3446
|
return v_error === undefined ? null : v_error;
|
|
3447
3447
|
}
|
|
3448
3448
|
|
|
3449
|
-
function validate$
|
|
3449
|
+
function validate$P(obj, path = 'LearningFoundationItemValidationOutput') {
|
|
3450
3450
|
const v_error = (() => {
|
|
3451
3451
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3452
3452
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3459,7 +3459,7 @@ function validate$R(obj, path = 'LearningFoundationItemValidationOutput') {
|
|
|
3459
3459
|
for (let i = 0; i < obj_corequisites.length; i++) {
|
|
3460
3460
|
const obj_corequisites_item = obj_corequisites[i];
|
|
3461
3461
|
const path_corequisites_item = path_corequisites + '[' + i + ']';
|
|
3462
|
-
const referencepath_corequisites_itemValidationError = validate$
|
|
3462
|
+
const referencepath_corequisites_itemValidationError = validate$1b(obj_corequisites_item, path_corequisites_item);
|
|
3463
3463
|
if (referencepath_corequisites_itemValidationError !== null) {
|
|
3464
3464
|
let message = 'Object doesn\'t match LearningFoundationItemOutput (at "' + path_corequisites_item + '")\n';
|
|
3465
3465
|
message += referencepath_corequisites_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3484,7 +3484,7 @@ function validate$R(obj, path = 'LearningFoundationItemValidationOutput') {
|
|
|
3484
3484
|
for (let i = 0; i < obj_prerequisites.length; i++) {
|
|
3485
3485
|
const obj_prerequisites_item = obj_prerequisites[i];
|
|
3486
3486
|
const path_prerequisites_item = path_prerequisites + '[' + i + ']';
|
|
3487
|
-
const referencepath_prerequisites_itemValidationError = validate$
|
|
3487
|
+
const referencepath_prerequisites_itemValidationError = validate$1b(obj_prerequisites_item, path_prerequisites_item);
|
|
3488
3488
|
if (referencepath_prerequisites_itemValidationError !== null) {
|
|
3489
3489
|
let message = 'Object doesn\'t match LearningFoundationItemOutput (at "' + path_prerequisites_item + '")\n';
|
|
3490
3490
|
message += referencepath_prerequisites_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3495,9 +3495,9 @@ function validate$R(obj, path = 'LearningFoundationItemValidationOutput') {
|
|
|
3495
3495
|
return v_error === undefined ? null : v_error;
|
|
3496
3496
|
}
|
|
3497
3497
|
|
|
3498
|
-
const TTL$
|
|
3499
|
-
const VERSION$
|
|
3500
|
-
function validate$
|
|
3498
|
+
const TTL$5 = 100;
|
|
3499
|
+
const VERSION$s = "eb1835cf065251dc34d1e37c3dc02cc7";
|
|
3500
|
+
function validate$O(obj, path = 'LearningFoundationItemValidationOutputRepresentation') {
|
|
3501
3501
|
const v_error = (() => {
|
|
3502
3502
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3503
3503
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3510,7 +3510,7 @@ function validate$Q(obj, path = 'LearningFoundationItemValidationOutputRepresent
|
|
|
3510
3510
|
for (let i = 0; i < obj_validateLearningsOutput.length; i++) {
|
|
3511
3511
|
const obj_validateLearningsOutput_item = obj_validateLearningsOutput[i];
|
|
3512
3512
|
const path_validateLearningsOutput_item = path_validateLearningsOutput + '[' + i + ']';
|
|
3513
|
-
const referencepath_validateLearningsOutput_itemValidationError = validate$
|
|
3513
|
+
const referencepath_validateLearningsOutput_itemValidationError = validate$P(obj_validateLearningsOutput_item, path_validateLearningsOutput_item);
|
|
3514
3514
|
if (referencepath_validateLearningsOutput_itemValidationError !== null) {
|
|
3515
3515
|
let message = 'Object doesn\'t match LearningFoundationItemValidationOutput (at "' + path_validateLearningsOutput_item + '")\n';
|
|
3516
3516
|
message += referencepath_validateLearningsOutput_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3520,62 +3520,62 @@ function validate$Q(obj, path = 'LearningFoundationItemValidationOutputRepresent
|
|
|
3520
3520
|
})();
|
|
3521
3521
|
return v_error === undefined ? null : v_error;
|
|
3522
3522
|
}
|
|
3523
|
-
const RepresentationType$
|
|
3524
|
-
function normalize$
|
|
3523
|
+
const RepresentationType$f = 'LearningFoundationItemValidationOutputRepresentation';
|
|
3524
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
3525
3525
|
return input;
|
|
3526
3526
|
}
|
|
3527
|
-
const select$
|
|
3527
|
+
const select$J = function LearningFoundationItemValidationOutputRepresentationSelect() {
|
|
3528
3528
|
return {
|
|
3529
3529
|
kind: 'Fragment',
|
|
3530
|
-
version: VERSION$
|
|
3530
|
+
version: VERSION$s,
|
|
3531
3531
|
private: [],
|
|
3532
3532
|
opaque: true
|
|
3533
3533
|
};
|
|
3534
3534
|
};
|
|
3535
|
-
function equals$
|
|
3535
|
+
function equals$s(existing, incoming) {
|
|
3536
3536
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3537
3537
|
return false;
|
|
3538
3538
|
}
|
|
3539
3539
|
return true;
|
|
3540
3540
|
}
|
|
3541
|
-
const ingest$
|
|
3541
|
+
const ingest$f = function LearningFoundationItemValidationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3542
3542
|
if (process.env.NODE_ENV !== 'production') {
|
|
3543
|
-
const validateError = validate$
|
|
3543
|
+
const validateError = validate$O(input);
|
|
3544
3544
|
if (validateError !== null) {
|
|
3545
3545
|
throw validateError;
|
|
3546
3546
|
}
|
|
3547
3547
|
}
|
|
3548
3548
|
const key = path.fullPath;
|
|
3549
|
-
const ttlToUse = TTL$
|
|
3550
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3549
|
+
const ttlToUse = TTL$5;
|
|
3550
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "education", VERSION$s, RepresentationType$f, equals$s);
|
|
3551
3551
|
return createLink(key);
|
|
3552
3552
|
};
|
|
3553
|
-
function getTypeCacheKeys$
|
|
3553
|
+
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
3554
3554
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3555
3555
|
const rootKey = fullPathFactory();
|
|
3556
3556
|
rootKeySet.set(rootKey, {
|
|
3557
3557
|
namespace: keyPrefix,
|
|
3558
|
-
representationName: RepresentationType$
|
|
3558
|
+
representationName: RepresentationType$f,
|
|
3559
3559
|
mergeable: false
|
|
3560
3560
|
});
|
|
3561
3561
|
}
|
|
3562
3562
|
|
|
3563
|
-
function select$
|
|
3564
|
-
return select$
|
|
3563
|
+
function select$I(luvio, params) {
|
|
3564
|
+
return select$J();
|
|
3565
3565
|
}
|
|
3566
|
-
function keyBuilder$
|
|
3566
|
+
function keyBuilder$q(luvio, params) {
|
|
3567
3567
|
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(',') + ']' + ')';
|
|
3568
3568
|
}
|
|
3569
|
-
function getResponseCacheKeys$
|
|
3570
|
-
getTypeCacheKeys$
|
|
3569
|
+
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
3570
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response, () => keyBuilder$q(luvio, resourceParams));
|
|
3571
3571
|
}
|
|
3572
|
-
function ingestSuccess$
|
|
3572
|
+
function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
3573
3573
|
const { body } = response;
|
|
3574
|
-
const key = keyBuilder$
|
|
3575
|
-
luvio.storeIngest(key, ingest$
|
|
3574
|
+
const key = keyBuilder$q(luvio, resourceParams);
|
|
3575
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
3576
3576
|
const snapshot = luvio.storeLookup({
|
|
3577
3577
|
recordId: key,
|
|
3578
|
-
node: select$
|
|
3578
|
+
node: select$I(),
|
|
3579
3579
|
variables: {},
|
|
3580
3580
|
}, snapshotRefresh);
|
|
3581
3581
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3586,19 +3586,19 @@ function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3586
3586
|
deepFreeze(snapshot.data);
|
|
3587
3587
|
return snapshot;
|
|
3588
3588
|
}
|
|
3589
|
-
function ingestError$
|
|
3590
|
-
const key = keyBuilder$
|
|
3589
|
+
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
3590
|
+
const key = keyBuilder$q(luvio, params);
|
|
3591
3591
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3592
3592
|
const storeMetadataParams = {
|
|
3593
|
-
ttl: TTL$
|
|
3593
|
+
ttl: TTL$5,
|
|
3594
3594
|
namespace: keyPrefix,
|
|
3595
|
-
version: VERSION$
|
|
3596
|
-
representationName: RepresentationType$
|
|
3595
|
+
version: VERSION$s,
|
|
3596
|
+
representationName: RepresentationType$f
|
|
3597
3597
|
};
|
|
3598
3598
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
3599
3599
|
return errorSnapshot;
|
|
3600
3600
|
}
|
|
3601
|
-
function createResourceRequest$
|
|
3601
|
+
function createResourceRequest$g(config) {
|
|
3602
3602
|
const headers = {};
|
|
3603
3603
|
return {
|
|
3604
3604
|
baseUri: '/services/data/v62.0',
|
|
@@ -3612,24 +3612,24 @@ function createResourceRequest$h(config) {
|
|
|
3612
3612
|
};
|
|
3613
3613
|
}
|
|
3614
3614
|
|
|
3615
|
-
const adapterName$
|
|
3615
|
+
const adapterName$g = 'postValidateLearningFoundationList';
|
|
3616
3616
|
const postValidateLearningFoundationList_ConfigPropertyMetadata = [
|
|
3617
3617
|
generateParamConfigMetadata('learningFoundationItemValidationInputList', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
3618
3618
|
];
|
|
3619
|
-
const postValidateLearningFoundationList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3620
|
-
const createResourceParams$
|
|
3621
|
-
function keyBuilder$
|
|
3622
|
-
const resourceParams = createResourceParams$
|
|
3623
|
-
return keyBuilder$
|
|
3619
|
+
const postValidateLearningFoundationList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, postValidateLearningFoundationList_ConfigPropertyMetadata);
|
|
3620
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$p(postValidateLearningFoundationList_ConfigPropertyMetadata);
|
|
3621
|
+
function keyBuilder$p(luvio, config) {
|
|
3622
|
+
const resourceParams = createResourceParams$g(config);
|
|
3623
|
+
return keyBuilder$q(luvio, resourceParams);
|
|
3624
3624
|
}
|
|
3625
|
-
function typeCheckConfig$
|
|
3625
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
3626
3626
|
const config = {};
|
|
3627
3627
|
const untrustedConfig_learningFoundationItemValidationInputList = untrustedConfig.learningFoundationItemValidationInputList;
|
|
3628
3628
|
if (ArrayIsArray$1(untrustedConfig_learningFoundationItemValidationInputList)) {
|
|
3629
3629
|
const untrustedConfig_learningFoundationItemValidationInputList_array = [];
|
|
3630
3630
|
for (let i = 0, arrayLength = untrustedConfig_learningFoundationItemValidationInputList.length; i < arrayLength; i++) {
|
|
3631
3631
|
const untrustedConfig_learningFoundationItemValidationInputList_item = untrustedConfig_learningFoundationItemValidationInputList[i];
|
|
3632
|
-
const referenceLearningFoundationItemValidationInputValidationError = validate$
|
|
3632
|
+
const referenceLearningFoundationItemValidationInputValidationError = validate$Q(untrustedConfig_learningFoundationItemValidationInputList_item);
|
|
3633
3633
|
if (referenceLearningFoundationItemValidationInputValidationError === null) {
|
|
3634
3634
|
untrustedConfig_learningFoundationItemValidationInputList_array.push(untrustedConfig_learningFoundationItemValidationInputList_item);
|
|
3635
3635
|
}
|
|
@@ -3638,78 +3638,78 @@ function typeCheckConfig$h(untrustedConfig) {
|
|
|
3638
3638
|
}
|
|
3639
3639
|
return config;
|
|
3640
3640
|
}
|
|
3641
|
-
function validateAdapterConfig$
|
|
3641
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
3642
3642
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3643
3643
|
return null;
|
|
3644
3644
|
}
|
|
3645
3645
|
if (process.env.NODE_ENV !== 'production') {
|
|
3646
3646
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3647
3647
|
}
|
|
3648
|
-
const config = typeCheckConfig$
|
|
3648
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
3649
3649
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3650
3650
|
return null;
|
|
3651
3651
|
}
|
|
3652
3652
|
return config;
|
|
3653
3653
|
}
|
|
3654
|
-
function adapterFragment$
|
|
3655
|
-
createResourceParams$
|
|
3656
|
-
return select$
|
|
3654
|
+
function adapterFragment$a(luvio, config) {
|
|
3655
|
+
createResourceParams$g(config);
|
|
3656
|
+
return select$I();
|
|
3657
3657
|
}
|
|
3658
|
-
function onFetchResponseSuccess$
|
|
3659
|
-
const snapshot = ingestSuccess$
|
|
3658
|
+
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
3659
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
3660
3660
|
config,
|
|
3661
|
-
resolve: () => buildNetworkSnapshot$
|
|
3661
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
3662
3662
|
});
|
|
3663
3663
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3664
3664
|
}
|
|
3665
|
-
function onFetchResponseError$
|
|
3666
|
-
const snapshot = ingestError$
|
|
3665
|
+
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
3666
|
+
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
3667
3667
|
config,
|
|
3668
|
-
resolve: () => buildNetworkSnapshot$
|
|
3668
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
3669
3669
|
});
|
|
3670
3670
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3671
3671
|
}
|
|
3672
|
-
function buildNetworkSnapshot$
|
|
3673
|
-
const resourceParams = createResourceParams$
|
|
3674
|
-
const request = createResourceRequest$
|
|
3672
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
3673
|
+
const resourceParams = createResourceParams$g(config);
|
|
3674
|
+
const request = createResourceRequest$g(resourceParams);
|
|
3675
3675
|
return luvio.dispatchResourceRequest(request, options)
|
|
3676
3676
|
.then((response) => {
|
|
3677
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3677
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
3678
3678
|
const cache = new StoreKeyMap();
|
|
3679
|
-
getResponseCacheKeys$
|
|
3679
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
|
|
3680
3680
|
return cache;
|
|
3681
3681
|
});
|
|
3682
3682
|
}, (response) => {
|
|
3683
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3683
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
|
|
3684
3684
|
});
|
|
3685
3685
|
}
|
|
3686
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3687
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3686
|
+
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
3687
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, 'get', false);
|
|
3688
3688
|
}
|
|
3689
|
-
function buildCachedSnapshotCachePolicy$
|
|
3689
|
+
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
3690
3690
|
const { luvio, config } = context;
|
|
3691
3691
|
const selector = {
|
|
3692
|
-
recordId: keyBuilder$
|
|
3693
|
-
node: adapterFragment$
|
|
3692
|
+
recordId: keyBuilder$p(luvio, config),
|
|
3693
|
+
node: adapterFragment$a(luvio, config),
|
|
3694
3694
|
variables: {},
|
|
3695
3695
|
};
|
|
3696
3696
|
const cacheSnapshot = storeLookup(selector, {
|
|
3697
3697
|
config,
|
|
3698
|
-
resolve: () => buildNetworkSnapshot$
|
|
3698
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
3699
3699
|
});
|
|
3700
3700
|
return cacheSnapshot;
|
|
3701
3701
|
}
|
|
3702
3702
|
const postValidateLearningFoundationListAdapterFactory = (luvio) => function education__postValidateLearningFoundationList(untrustedConfig, requestContext) {
|
|
3703
|
-
const config = validateAdapterConfig$
|
|
3703
|
+
const config = validateAdapterConfig$g(untrustedConfig, postValidateLearningFoundationList_ConfigPropertyNames);
|
|
3704
3704
|
// Invalid or incomplete config
|
|
3705
3705
|
if (config === null) {
|
|
3706
3706
|
return null;
|
|
3707
3707
|
}
|
|
3708
3708
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3709
|
-
buildCachedSnapshotCachePolicy$
|
|
3709
|
+
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
3710
3710
|
};
|
|
3711
3711
|
|
|
3712
|
-
function validate$
|
|
3712
|
+
function validate$N(obj, path = 'Requirement') {
|
|
3713
3713
|
const v_error = (() => {
|
|
3714
3714
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3715
3715
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3728,7 +3728,7 @@ function validate$P(obj, path = 'Requirement') {
|
|
|
3728
3728
|
return v_error === undefined ? null : v_error;
|
|
3729
3729
|
}
|
|
3730
3730
|
|
|
3731
|
-
function validate$
|
|
3731
|
+
function validate$M(obj, path = 'LearningProgramPlanInputRepresentation') {
|
|
3732
3732
|
const v_error = (() => {
|
|
3733
3733
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3734
3734
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3746,7 +3746,7 @@ function validate$O(obj, path = 'LearningProgramPlanInputRepresentation') {
|
|
|
3746
3746
|
for (let i = 0; i < obj_requirement.length; i++) {
|
|
3747
3747
|
const obj_requirement_item = obj_requirement[i];
|
|
3748
3748
|
const path_requirement_item = path_requirement + '[' + i + ']';
|
|
3749
|
-
const referencepath_requirement_itemValidationError = validate$
|
|
3749
|
+
const referencepath_requirement_itemValidationError = validate$N(obj_requirement_item, path_requirement_item);
|
|
3750
3750
|
if (referencepath_requirement_itemValidationError !== null) {
|
|
3751
3751
|
let message = 'Object doesn\'t match Requirement (at "' + path_requirement_item + '")\n';
|
|
3752
3752
|
message += referencepath_requirement_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3757,9 +3757,9 @@ function validate$O(obj, path = 'LearningProgramPlanInputRepresentation') {
|
|
|
3757
3757
|
return v_error === undefined ? null : v_error;
|
|
3758
3758
|
}
|
|
3759
3759
|
|
|
3760
|
-
const TTL$
|
|
3761
|
-
const VERSION$
|
|
3762
|
-
function validate$
|
|
3760
|
+
const TTL$4 = 100;
|
|
3761
|
+
const VERSION$r = "0218a0ed0a2278eb0405096372ffa5de";
|
|
3762
|
+
function validate$L(obj, path = 'LearningProgramPlanOutputRepresentation') {
|
|
3763
3763
|
const v_error = (() => {
|
|
3764
3764
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3765
3765
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3772,68 +3772,68 @@ function validate$N(obj, path = 'LearningProgramPlanOutputRepresentation') {
|
|
|
3772
3772
|
})();
|
|
3773
3773
|
return v_error === undefined ? null : v_error;
|
|
3774
3774
|
}
|
|
3775
|
-
const RepresentationType$
|
|
3776
|
-
function keyBuilder$
|
|
3777
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3775
|
+
const RepresentationType$e = 'LearningProgramPlanOutputRepresentation';
|
|
3776
|
+
function keyBuilder$o(luvio, config) {
|
|
3777
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + config.id;
|
|
3778
3778
|
}
|
|
3779
3779
|
function keyBuilderFromType$4(luvio, object) {
|
|
3780
3780
|
const keyParams = {
|
|
3781
3781
|
id: object.learningProgramPlanId
|
|
3782
3782
|
};
|
|
3783
|
-
return keyBuilder$
|
|
3783
|
+
return keyBuilder$o(luvio, keyParams);
|
|
3784
3784
|
}
|
|
3785
|
-
function normalize$
|
|
3785
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
3786
3786
|
return input;
|
|
3787
3787
|
}
|
|
3788
|
-
const select$
|
|
3788
|
+
const select$H = function LearningProgramPlanOutputRepresentationSelect() {
|
|
3789
3789
|
return {
|
|
3790
3790
|
kind: 'Fragment',
|
|
3791
|
-
version: VERSION$
|
|
3791
|
+
version: VERSION$r,
|
|
3792
3792
|
private: [],
|
|
3793
3793
|
opaque: true
|
|
3794
3794
|
};
|
|
3795
3795
|
};
|
|
3796
|
-
function equals$
|
|
3796
|
+
function equals$r(existing, incoming) {
|
|
3797
3797
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3798
3798
|
return false;
|
|
3799
3799
|
}
|
|
3800
3800
|
return true;
|
|
3801
3801
|
}
|
|
3802
|
-
const ingest$
|
|
3802
|
+
const ingest$e = function LearningProgramPlanOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3803
3803
|
if (process.env.NODE_ENV !== 'production') {
|
|
3804
|
-
const validateError = validate$
|
|
3804
|
+
const validateError = validate$L(input);
|
|
3805
3805
|
if (validateError !== null) {
|
|
3806
3806
|
throw validateError;
|
|
3807
3807
|
}
|
|
3808
3808
|
}
|
|
3809
3809
|
const key = keyBuilderFromType$4(luvio, input);
|
|
3810
|
-
const ttlToUse = TTL$
|
|
3811
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3810
|
+
const ttlToUse = TTL$4;
|
|
3811
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "education", VERSION$r, RepresentationType$e, equals$r);
|
|
3812
3812
|
return createLink(key);
|
|
3813
3813
|
};
|
|
3814
|
-
function getTypeCacheKeys$
|
|
3814
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
3815
3815
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3816
3816
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
3817
3817
|
rootKeySet.set(rootKey, {
|
|
3818
3818
|
namespace: keyPrefix,
|
|
3819
|
-
representationName: RepresentationType$
|
|
3819
|
+
representationName: RepresentationType$e,
|
|
3820
3820
|
mergeable: false
|
|
3821
3821
|
});
|
|
3822
3822
|
}
|
|
3823
3823
|
|
|
3824
|
-
function select$
|
|
3825
|
-
return select$
|
|
3824
|
+
function select$G(luvio, params) {
|
|
3825
|
+
return select$H();
|
|
3826
3826
|
}
|
|
3827
|
-
function getResponseCacheKeys$
|
|
3828
|
-
getTypeCacheKeys$
|
|
3827
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
3828
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
3829
3829
|
}
|
|
3830
|
-
function ingestSuccess$
|
|
3830
|
+
function ingestSuccess$f(luvio, resourceParams, response) {
|
|
3831
3831
|
const { body } = response;
|
|
3832
3832
|
const key = keyBuilderFromType$4(luvio, body);
|
|
3833
|
-
luvio.storeIngest(key, ingest$
|
|
3833
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
3834
3834
|
const snapshot = luvio.storeLookup({
|
|
3835
3835
|
recordId: key,
|
|
3836
|
-
node: select$
|
|
3836
|
+
node: select$G(),
|
|
3837
3837
|
variables: {},
|
|
3838
3838
|
});
|
|
3839
3839
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3844,7 +3844,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
|
|
|
3844
3844
|
deepFreeze(snapshot.data);
|
|
3845
3845
|
return snapshot;
|
|
3846
3846
|
}
|
|
3847
|
-
function createResourceRequest$
|
|
3847
|
+
function createResourceRequest$f(config) {
|
|
3848
3848
|
const headers = {};
|
|
3849
3849
|
return {
|
|
3850
3850
|
baseUri: '/services/data/v62.0',
|
|
@@ -3858,45 +3858,45 @@ function createResourceRequest$g(config) {
|
|
|
3858
3858
|
};
|
|
3859
3859
|
}
|
|
3860
3860
|
|
|
3861
|
-
const adapterName$
|
|
3861
|
+
const adapterName$f = 'postPublishLearningProgramPlan';
|
|
3862
3862
|
const postPublishLearningProgramPlan_ConfigPropertyMetadata = [
|
|
3863
3863
|
generateParamConfigMetadata('publishLearningProgramPlan', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3864
3864
|
];
|
|
3865
|
-
const postPublishLearningProgramPlan_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3866
|
-
const createResourceParams$
|
|
3867
|
-
function typeCheckConfig$
|
|
3865
|
+
const postPublishLearningProgramPlan_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, postPublishLearningProgramPlan_ConfigPropertyMetadata);
|
|
3866
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$p(postPublishLearningProgramPlan_ConfigPropertyMetadata);
|
|
3867
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
3868
3868
|
const config = {};
|
|
3869
3869
|
const untrustedConfig_publishLearningProgramPlan = untrustedConfig.publishLearningProgramPlan;
|
|
3870
|
-
const referenceLearningProgramPlanInputRepresentationValidationError = validate$
|
|
3870
|
+
const referenceLearningProgramPlanInputRepresentationValidationError = validate$M(untrustedConfig_publishLearningProgramPlan);
|
|
3871
3871
|
if (referenceLearningProgramPlanInputRepresentationValidationError === null) {
|
|
3872
3872
|
config.publishLearningProgramPlan = untrustedConfig_publishLearningProgramPlan;
|
|
3873
3873
|
}
|
|
3874
3874
|
return config;
|
|
3875
3875
|
}
|
|
3876
|
-
function validateAdapterConfig$
|
|
3876
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
3877
3877
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3878
3878
|
return null;
|
|
3879
3879
|
}
|
|
3880
3880
|
if (process.env.NODE_ENV !== 'production') {
|
|
3881
3881
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3882
3882
|
}
|
|
3883
|
-
const config = typeCheckConfig$
|
|
3883
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
3884
3884
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3885
3885
|
return null;
|
|
3886
3886
|
}
|
|
3887
3887
|
return config;
|
|
3888
3888
|
}
|
|
3889
|
-
function buildNetworkSnapshot$
|
|
3890
|
-
const resourceParams = createResourceParams$
|
|
3891
|
-
const request = createResourceRequest$
|
|
3889
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
3890
|
+
const resourceParams = createResourceParams$f(config);
|
|
3891
|
+
const request = createResourceRequest$f(resourceParams);
|
|
3892
3892
|
return luvio.dispatchResourceRequest(request, options)
|
|
3893
3893
|
.then((response) => {
|
|
3894
3894
|
return luvio.handleSuccessResponse(() => {
|
|
3895
|
-
const snapshot = ingestSuccess$
|
|
3895
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response);
|
|
3896
3896
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3897
3897
|
}, () => {
|
|
3898
3898
|
const cache = new StoreKeyMap();
|
|
3899
|
-
getResponseCacheKeys$
|
|
3899
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
3900
3900
|
return cache;
|
|
3901
3901
|
});
|
|
3902
3902
|
}, (response) => {
|
|
@@ -3906,17 +3906,17 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
3906
3906
|
}
|
|
3907
3907
|
const postPublishLearningProgramPlanAdapterFactory = (luvio) => {
|
|
3908
3908
|
return function postPublishLearningProgramPlan(untrustedConfig) {
|
|
3909
|
-
const config = validateAdapterConfig$
|
|
3909
|
+
const config = validateAdapterConfig$f(untrustedConfig, postPublishLearningProgramPlan_ConfigPropertyNames);
|
|
3910
3910
|
// Invalid or incomplete config
|
|
3911
3911
|
if (config === null) {
|
|
3912
3912
|
throw new Error('Invalid config for "postPublishLearningProgramPlan"');
|
|
3913
3913
|
}
|
|
3914
|
-
return buildNetworkSnapshot$
|
|
3914
|
+
return buildNetworkSnapshot$f(luvio, config);
|
|
3915
3915
|
};
|
|
3916
3916
|
};
|
|
3917
3917
|
|
|
3918
|
-
const VERSION$
|
|
3919
|
-
function validate$
|
|
3918
|
+
const VERSION$q = "201f86357276cc8ed2ee9d7f51616b64";
|
|
3919
|
+
function validate$K(obj, path = 'PreviewLearningProgramPlanOutputRepresentation') {
|
|
3920
3920
|
const v_error = (() => {
|
|
3921
3921
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3922
3922
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3949,7 +3949,7 @@ function validate$M(obj, path = 'PreviewLearningProgramPlanOutputRepresentation'
|
|
|
3949
3949
|
for (let i = 0; i < obj_programPlanRequirements.length; i++) {
|
|
3950
3950
|
const obj_programPlanRequirements_item = obj_programPlanRequirements[i];
|
|
3951
3951
|
const path_programPlanRequirements_item = path_programPlanRequirements + '[' + i + ']';
|
|
3952
|
-
const referencepath_programPlanRequirements_itemValidationError = validate$
|
|
3952
|
+
const referencepath_programPlanRequirements_itemValidationError = validate$X(obj_programPlanRequirements_item, path_programPlanRequirements_item);
|
|
3953
3953
|
if (referencepath_programPlanRequirements_itemValidationError !== null) {
|
|
3954
3954
|
let message = 'Object doesn\'t match LearningProgramPlanRequirementOutput (at "' + path_programPlanRequirements_item + '")\n';
|
|
3955
3955
|
message += referencepath_programPlanRequirements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3960,62 +3960,62 @@ function validate$M(obj, path = 'PreviewLearningProgramPlanOutputRepresentation'
|
|
|
3960
3960
|
})();
|
|
3961
3961
|
return v_error === undefined ? null : v_error;
|
|
3962
3962
|
}
|
|
3963
|
-
const RepresentationType$
|
|
3964
|
-
function normalize$
|
|
3963
|
+
const RepresentationType$d = 'PreviewLearningProgramPlanOutputRepresentation';
|
|
3964
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
3965
3965
|
return input;
|
|
3966
3966
|
}
|
|
3967
|
-
const select$
|
|
3967
|
+
const select$F = function PreviewLearningProgramPlanOutputRepresentationSelect() {
|
|
3968
3968
|
return {
|
|
3969
3969
|
kind: 'Fragment',
|
|
3970
|
-
version: VERSION$
|
|
3970
|
+
version: VERSION$q,
|
|
3971
3971
|
private: [],
|
|
3972
3972
|
opaque: true
|
|
3973
3973
|
};
|
|
3974
3974
|
};
|
|
3975
|
-
function equals$
|
|
3975
|
+
function equals$q(existing, incoming) {
|
|
3976
3976
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3977
3977
|
return false;
|
|
3978
3978
|
}
|
|
3979
3979
|
return true;
|
|
3980
3980
|
}
|
|
3981
|
-
const ingest$
|
|
3981
|
+
const ingest$d = function PreviewLearningProgramPlanOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3982
3982
|
if (process.env.NODE_ENV !== 'production') {
|
|
3983
|
-
const validateError = validate$
|
|
3983
|
+
const validateError = validate$K(input);
|
|
3984
3984
|
if (validateError !== null) {
|
|
3985
3985
|
throw validateError;
|
|
3986
3986
|
}
|
|
3987
3987
|
}
|
|
3988
3988
|
const key = path.fullPath;
|
|
3989
3989
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
3990
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3990
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "education", VERSION$q, RepresentationType$d, equals$q);
|
|
3991
3991
|
return createLink(key);
|
|
3992
3992
|
};
|
|
3993
|
-
function getTypeCacheKeys$
|
|
3993
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
3994
3994
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3995
3995
|
const rootKey = fullPathFactory();
|
|
3996
3996
|
rootKeySet.set(rootKey, {
|
|
3997
3997
|
namespace: keyPrefix,
|
|
3998
|
-
representationName: RepresentationType$
|
|
3998
|
+
representationName: RepresentationType$d,
|
|
3999
3999
|
mergeable: false
|
|
4000
4000
|
});
|
|
4001
4001
|
}
|
|
4002
4002
|
|
|
4003
|
-
function select$
|
|
4004
|
-
return select$
|
|
4003
|
+
function select$E(luvio, params) {
|
|
4004
|
+
return select$F();
|
|
4005
4005
|
}
|
|
4006
|
-
function keyBuilder$
|
|
4006
|
+
function keyBuilder$n(luvio, params) {
|
|
4007
4007
|
return keyPrefix + '::PreviewLearningProgramPlanOutputRepresentation:(' + 'learningProgramPlanId:' + params.urlParams.learningProgramPlanId + ')';
|
|
4008
4008
|
}
|
|
4009
|
-
function getResponseCacheKeys$
|
|
4010
|
-
getTypeCacheKeys$
|
|
4009
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
4010
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response, () => keyBuilder$n(luvio, resourceParams));
|
|
4011
4011
|
}
|
|
4012
|
-
function ingestSuccess$
|
|
4012
|
+
function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
4013
4013
|
const { body } = response;
|
|
4014
|
-
const key = keyBuilder$
|
|
4015
|
-
luvio.storeIngest(key, ingest$
|
|
4014
|
+
const key = keyBuilder$n(luvio, resourceParams);
|
|
4015
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
4016
4016
|
const snapshot = luvio.storeLookup({
|
|
4017
4017
|
recordId: key,
|
|
4018
|
-
node: select$
|
|
4018
|
+
node: select$E(),
|
|
4019
4019
|
variables: {},
|
|
4020
4020
|
}, snapshotRefresh);
|
|
4021
4021
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4026,13 +4026,13 @@ function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4026
4026
|
deepFreeze(snapshot.data);
|
|
4027
4027
|
return snapshot;
|
|
4028
4028
|
}
|
|
4029
|
-
function ingestError$
|
|
4030
|
-
const key = keyBuilder$
|
|
4029
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
4030
|
+
const key = keyBuilder$n(luvio, params);
|
|
4031
4031
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4032
4032
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4033
4033
|
return errorSnapshot;
|
|
4034
4034
|
}
|
|
4035
|
-
function createResourceRequest$
|
|
4035
|
+
function createResourceRequest$e(config) {
|
|
4036
4036
|
const headers = {};
|
|
4037
4037
|
return {
|
|
4038
4038
|
baseUri: '/services/data/v62.0',
|
|
@@ -4046,93 +4046,93 @@ function createResourceRequest$f(config) {
|
|
|
4046
4046
|
};
|
|
4047
4047
|
}
|
|
4048
4048
|
|
|
4049
|
-
const adapterName$
|
|
4049
|
+
const adapterName$e = 'getPreviewLearningProgramPlan';
|
|
4050
4050
|
const getPreviewLearningProgramPlan_ConfigPropertyMetadata = [
|
|
4051
4051
|
generateParamConfigMetadata('learningProgramPlanId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4052
4052
|
];
|
|
4053
|
-
const getPreviewLearningProgramPlan_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4054
|
-
const createResourceParams$
|
|
4055
|
-
function keyBuilder$
|
|
4056
|
-
const resourceParams = createResourceParams$
|
|
4057
|
-
return keyBuilder$
|
|
4053
|
+
const getPreviewLearningProgramPlan_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getPreviewLearningProgramPlan_ConfigPropertyMetadata);
|
|
4054
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$p(getPreviewLearningProgramPlan_ConfigPropertyMetadata);
|
|
4055
|
+
function keyBuilder$m(luvio, config) {
|
|
4056
|
+
const resourceParams = createResourceParams$e(config);
|
|
4057
|
+
return keyBuilder$n(luvio, resourceParams);
|
|
4058
4058
|
}
|
|
4059
|
-
function typeCheckConfig$
|
|
4059
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
4060
4060
|
const config = {};
|
|
4061
|
-
typeCheckConfig$
|
|
4061
|
+
typeCheckConfig$p(untrustedConfig, config, getPreviewLearningProgramPlan_ConfigPropertyMetadata);
|
|
4062
4062
|
return config;
|
|
4063
4063
|
}
|
|
4064
|
-
function validateAdapterConfig$
|
|
4064
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
4065
4065
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4066
4066
|
return null;
|
|
4067
4067
|
}
|
|
4068
4068
|
if (process.env.NODE_ENV !== 'production') {
|
|
4069
4069
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4070
4070
|
}
|
|
4071
|
-
const config = typeCheckConfig$
|
|
4071
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
4072
4072
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4073
4073
|
return null;
|
|
4074
4074
|
}
|
|
4075
4075
|
return config;
|
|
4076
4076
|
}
|
|
4077
|
-
function adapterFragment$
|
|
4078
|
-
createResourceParams$
|
|
4079
|
-
return select$
|
|
4077
|
+
function adapterFragment$9(luvio, config) {
|
|
4078
|
+
createResourceParams$e(config);
|
|
4079
|
+
return select$E();
|
|
4080
4080
|
}
|
|
4081
|
-
function onFetchResponseSuccess$
|
|
4082
|
-
const snapshot = ingestSuccess$
|
|
4081
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
4082
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
|
|
4083
4083
|
config,
|
|
4084
|
-
resolve: () => buildNetworkSnapshot$
|
|
4084
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
4085
4085
|
});
|
|
4086
4086
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4087
4087
|
}
|
|
4088
|
-
function onFetchResponseError$
|
|
4089
|
-
const snapshot = ingestError$
|
|
4088
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
4089
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
4090
4090
|
config,
|
|
4091
|
-
resolve: () => buildNetworkSnapshot$
|
|
4091
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
4092
4092
|
});
|
|
4093
4093
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4094
4094
|
}
|
|
4095
|
-
function buildNetworkSnapshot$
|
|
4096
|
-
const resourceParams = createResourceParams$
|
|
4097
|
-
const request = createResourceRequest$
|
|
4095
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
4096
|
+
const resourceParams = createResourceParams$e(config);
|
|
4097
|
+
const request = createResourceRequest$e(resourceParams);
|
|
4098
4098
|
return luvio.dispatchResourceRequest(request, options)
|
|
4099
4099
|
.then((response) => {
|
|
4100
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4100
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
4101
4101
|
const cache = new StoreKeyMap();
|
|
4102
|
-
getResponseCacheKeys$
|
|
4102
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
4103
4103
|
return cache;
|
|
4104
4104
|
});
|
|
4105
4105
|
}, (response) => {
|
|
4106
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4106
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
4107
4107
|
});
|
|
4108
4108
|
}
|
|
4109
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4110
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4109
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
4110
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
4111
4111
|
}
|
|
4112
|
-
function buildCachedSnapshotCachePolicy$
|
|
4112
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
4113
4113
|
const { luvio, config } = context;
|
|
4114
4114
|
const selector = {
|
|
4115
|
-
recordId: keyBuilder$
|
|
4116
|
-
node: adapterFragment$
|
|
4115
|
+
recordId: keyBuilder$m(luvio, config),
|
|
4116
|
+
node: adapterFragment$9(luvio, config),
|
|
4117
4117
|
variables: {},
|
|
4118
4118
|
};
|
|
4119
4119
|
const cacheSnapshot = storeLookup(selector, {
|
|
4120
4120
|
config,
|
|
4121
|
-
resolve: () => buildNetworkSnapshot$
|
|
4121
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
4122
4122
|
});
|
|
4123
4123
|
return cacheSnapshot;
|
|
4124
4124
|
}
|
|
4125
4125
|
const getPreviewLearningProgramPlanAdapterFactory = (luvio) => function education__getPreviewLearningProgramPlan(untrustedConfig, requestContext) {
|
|
4126
|
-
const config = validateAdapterConfig$
|
|
4126
|
+
const config = validateAdapterConfig$e(untrustedConfig, getPreviewLearningProgramPlan_ConfigPropertyNames);
|
|
4127
4127
|
// Invalid or incomplete config
|
|
4128
4128
|
if (config === null) {
|
|
4129
4129
|
return null;
|
|
4130
4130
|
}
|
|
4131
4131
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4132
|
-
buildCachedSnapshotCachePolicy$
|
|
4132
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
4133
4133
|
};
|
|
4134
4134
|
|
|
4135
|
-
function validate$
|
|
4135
|
+
function validate$J(obj, path = 'CarePlanTaskInputRepresentation') {
|
|
4136
4136
|
const v_error = (() => {
|
|
4137
4137
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4138
4138
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4197,7 +4197,7 @@ function validate$L(obj, path = 'CarePlanTaskInputRepresentation') {
|
|
|
4197
4197
|
return v_error === undefined ? null : v_error;
|
|
4198
4198
|
}
|
|
4199
4199
|
|
|
4200
|
-
function validate$
|
|
4200
|
+
function validate$I(obj, path = 'BenefitDisbursementForBenefitSessionInputRepresentation') {
|
|
4201
4201
|
const v_error = (() => {
|
|
4202
4202
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4203
4203
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4251,7 +4251,7 @@ function validate$K(obj, path = 'BenefitDisbursementForBenefitSessionInputRepres
|
|
|
4251
4251
|
return v_error === undefined ? null : v_error;
|
|
4252
4252
|
}
|
|
4253
4253
|
|
|
4254
|
-
function validate$
|
|
4254
|
+
function validate$H(obj, path = 'BenefitDisbursementListInputRepresentation') {
|
|
4255
4255
|
const v_error = (() => {
|
|
4256
4256
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4257
4257
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4264,7 +4264,7 @@ function validate$J(obj, path = 'BenefitDisbursementListInputRepresentation') {
|
|
|
4264
4264
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4265
4265
|
const obj_records_item = obj_records[i];
|
|
4266
4266
|
const path_records_item = path_records + '[' + i + ']';
|
|
4267
|
-
const referencepath_records_itemValidationError = validate$
|
|
4267
|
+
const referencepath_records_itemValidationError = validate$I(obj_records_item, path_records_item);
|
|
4268
4268
|
if (referencepath_records_itemValidationError !== null) {
|
|
4269
4269
|
let message = 'Object doesn\'t match BenefitDisbursementForBenefitSessionInputRepresentation (at "' + path_records_item + '")\n';
|
|
4270
4270
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4275,7 +4275,7 @@ function validate$J(obj, path = 'BenefitDisbursementListInputRepresentation') {
|
|
|
4275
4275
|
return v_error === undefined ? null : v_error;
|
|
4276
4276
|
}
|
|
4277
4277
|
|
|
4278
|
-
function validate$
|
|
4278
|
+
function validate$G(obj, path = 'CustomFieldInputRepresentation') {
|
|
4279
4279
|
const v_error = (() => {
|
|
4280
4280
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4281
4281
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4301,7 +4301,7 @@ function validate$I(obj, path = 'CustomFieldInputRepresentation') {
|
|
|
4301
4301
|
return v_error === undefined ? null : v_error;
|
|
4302
4302
|
}
|
|
4303
4303
|
|
|
4304
|
-
function validate$
|
|
4304
|
+
function validate$F(obj, path = 'CustomFieldListInputRepresentation') {
|
|
4305
4305
|
const v_error = (() => {
|
|
4306
4306
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4307
4307
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4314,7 +4314,7 @@ function validate$H(obj, path = 'CustomFieldListInputRepresentation') {
|
|
|
4314
4314
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4315
4315
|
const obj_records_item = obj_records[i];
|
|
4316
4316
|
const path_records_item = path_records + '[' + i + ']';
|
|
4317
|
-
const referencepath_records_itemValidationError = validate$
|
|
4317
|
+
const referencepath_records_itemValidationError = validate$G(obj_records_item, path_records_item);
|
|
4318
4318
|
if (referencepath_records_itemValidationError !== null) {
|
|
4319
4319
|
let message = 'Object doesn\'t match CustomFieldInputRepresentation (at "' + path_records_item + '")\n';
|
|
4320
4320
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4325,7 +4325,7 @@ function validate$H(obj, path = 'CustomFieldListInputRepresentation') {
|
|
|
4325
4325
|
return v_error === undefined ? null : v_error;
|
|
4326
4326
|
}
|
|
4327
4327
|
|
|
4328
|
-
function validate$
|
|
4328
|
+
function validate$E(obj, path = 'BenefitAssignmentInputRepresentation') {
|
|
4329
4329
|
const v_error = (() => {
|
|
4330
4330
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4331
4331
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4333,7 +4333,7 @@ function validate$G(obj, path = 'BenefitAssignmentInputRepresentation') {
|
|
|
4333
4333
|
if (obj.benefitAssignmentTasks !== undefined) {
|
|
4334
4334
|
const obj_benefitAssignmentTasks = obj.benefitAssignmentTasks;
|
|
4335
4335
|
const path_benefitAssignmentTasks = path + '.benefitAssignmentTasks';
|
|
4336
|
-
const referencepath_benefitAssignmentTasksValidationError = validate$
|
|
4336
|
+
const referencepath_benefitAssignmentTasksValidationError = validate$J(obj_benefitAssignmentTasks, path_benefitAssignmentTasks);
|
|
4337
4337
|
if (referencepath_benefitAssignmentTasksValidationError !== null) {
|
|
4338
4338
|
let message = 'Object doesn\'t match CarePlanTaskInputRepresentation (at "' + path_benefitAssignmentTasks + '")\n';
|
|
4339
4339
|
message += referencepath_benefitAssignmentTasksValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4343,7 +4343,7 @@ function validate$G(obj, path = 'BenefitAssignmentInputRepresentation') {
|
|
|
4343
4343
|
if (obj.benefitDisbursements !== undefined) {
|
|
4344
4344
|
const obj_benefitDisbursements = obj.benefitDisbursements;
|
|
4345
4345
|
const path_benefitDisbursements = path + '.benefitDisbursements';
|
|
4346
|
-
const referencepath_benefitDisbursementsValidationError = validate$
|
|
4346
|
+
const referencepath_benefitDisbursementsValidationError = validate$H(obj_benefitDisbursements, path_benefitDisbursements);
|
|
4347
4347
|
if (referencepath_benefitDisbursementsValidationError !== null) {
|
|
4348
4348
|
let message = 'Object doesn\'t match BenefitDisbursementListInputRepresentation (at "' + path_benefitDisbursements + '")\n';
|
|
4349
4349
|
message += referencepath_benefitDisbursementsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4365,7 +4365,7 @@ function validate$G(obj, path = 'BenefitAssignmentInputRepresentation') {
|
|
|
4365
4365
|
if (obj.customFields !== undefined) {
|
|
4366
4366
|
const obj_customFields = obj.customFields;
|
|
4367
4367
|
const path_customFields = path + '.customFields';
|
|
4368
|
-
const referencepath_customFieldsValidationError = validate$
|
|
4368
|
+
const referencepath_customFieldsValidationError = validate$F(obj_customFields, path_customFields);
|
|
4369
4369
|
if (referencepath_customFieldsValidationError !== null) {
|
|
4370
4370
|
let message = 'Object doesn\'t match CustomFieldListInputRepresentation (at "' + path_customFields + '")\n';
|
|
4371
4371
|
message += referencepath_customFieldsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4436,7 +4436,7 @@ function validate$G(obj, path = 'BenefitAssignmentInputRepresentation') {
|
|
|
4436
4436
|
return v_error === undefined ? null : v_error;
|
|
4437
4437
|
}
|
|
4438
4438
|
|
|
4439
|
-
function validate$
|
|
4439
|
+
function validate$D(obj, path = 'BenefitAssignmentListInputRepresentation') {
|
|
4440
4440
|
const v_error = (() => {
|
|
4441
4441
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4442
4442
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4449,7 +4449,7 @@ function validate$F(obj, path = 'BenefitAssignmentListInputRepresentation') {
|
|
|
4449
4449
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4450
4450
|
const obj_records_item = obj_records[i];
|
|
4451
4451
|
const path_records_item = path_records + '[' + i + ']';
|
|
4452
|
-
const referencepath_records_itemValidationError = validate$
|
|
4452
|
+
const referencepath_records_itemValidationError = validate$E(obj_records_item, path_records_item);
|
|
4453
4453
|
if (referencepath_records_itemValidationError !== null) {
|
|
4454
4454
|
let message = 'Object doesn\'t match BenefitAssignmentInputRepresentation (at "' + path_records_item + '")\n';
|
|
4455
4455
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4460,7 +4460,7 @@ function validate$F(obj, path = 'BenefitAssignmentListInputRepresentation') {
|
|
|
4460
4460
|
return v_error === undefined ? null : v_error;
|
|
4461
4461
|
}
|
|
4462
4462
|
|
|
4463
|
-
function validate$
|
|
4463
|
+
function validate$C(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
4464
4464
|
const v_error = (() => {
|
|
4465
4465
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4466
4466
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4468,7 +4468,7 @@ function validate$E(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
|
4468
4468
|
if (obj.associatedBenefitAssignments !== undefined) {
|
|
4469
4469
|
const obj_associatedBenefitAssignments = obj.associatedBenefitAssignments;
|
|
4470
4470
|
const path_associatedBenefitAssignments = path + '.associatedBenefitAssignments';
|
|
4471
|
-
const referencepath_associatedBenefitAssignmentsValidationError = validate$
|
|
4471
|
+
const referencepath_associatedBenefitAssignmentsValidationError = validate$D(obj_associatedBenefitAssignments, path_associatedBenefitAssignments);
|
|
4472
4472
|
if (referencepath_associatedBenefitAssignmentsValidationError !== null) {
|
|
4473
4473
|
let message = 'Object doesn\'t match BenefitAssignmentListInputRepresentation (at "' + path_associatedBenefitAssignments + '")\n';
|
|
4474
4474
|
message += referencepath_associatedBenefitAssignmentsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4478,7 +4478,7 @@ function validate$E(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
|
4478
4478
|
if (obj.associatedSubGoalAssignments !== undefined) {
|
|
4479
4479
|
const obj_associatedSubGoalAssignments = obj.associatedSubGoalAssignments;
|
|
4480
4480
|
const path_associatedSubGoalAssignments = path + '.associatedSubGoalAssignments';
|
|
4481
|
-
const referencepath_associatedSubGoalAssignmentsValidationError = validate$
|
|
4481
|
+
const referencepath_associatedSubGoalAssignmentsValidationError = validate$B(obj_associatedSubGoalAssignments, path_associatedSubGoalAssignments);
|
|
4482
4482
|
if (referencepath_associatedSubGoalAssignmentsValidationError !== null) {
|
|
4483
4483
|
let message = 'Object doesn\'t match GoalAssignmentListInputRepresentation (at "' + path_associatedSubGoalAssignments + '")\n';
|
|
4484
4484
|
message += referencepath_associatedSubGoalAssignmentsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4498,7 +4498,7 @@ function validate$E(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
|
4498
4498
|
if (obj.customFields !== undefined) {
|
|
4499
4499
|
const obj_customFields = obj.customFields;
|
|
4500
4500
|
const path_customFields = path + '.customFields';
|
|
4501
|
-
const referencepath_customFieldsValidationError = validate$
|
|
4501
|
+
const referencepath_customFieldsValidationError = validate$F(obj_customFields, path_customFields);
|
|
4502
4502
|
if (referencepath_customFieldsValidationError !== null) {
|
|
4503
4503
|
let message = 'Object doesn\'t match CustomFieldListInputRepresentation (at "' + path_customFields + '")\n';
|
|
4504
4504
|
message += referencepath_customFieldsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4522,7 +4522,7 @@ function validate$E(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
|
4522
4522
|
if (obj.goalAssignmentTasks !== undefined) {
|
|
4523
4523
|
const obj_goalAssignmentTasks = obj.goalAssignmentTasks;
|
|
4524
4524
|
const path_goalAssignmentTasks = path + '.goalAssignmentTasks';
|
|
4525
|
-
const referencepath_goalAssignmentTasksValidationError = validate$
|
|
4525
|
+
const referencepath_goalAssignmentTasksValidationError = validate$J(obj_goalAssignmentTasks, path_goalAssignmentTasks);
|
|
4526
4526
|
if (referencepath_goalAssignmentTasksValidationError !== null) {
|
|
4527
4527
|
let message = 'Object doesn\'t match CarePlanTaskInputRepresentation (at "' + path_goalAssignmentTasks + '")\n';
|
|
4528
4528
|
message += referencepath_goalAssignmentTasksValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4573,7 +4573,7 @@ function validate$E(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
|
4573
4573
|
return v_error === undefined ? null : v_error;
|
|
4574
4574
|
}
|
|
4575
4575
|
|
|
4576
|
-
function validate$
|
|
4576
|
+
function validate$B(obj, path = 'GoalAssignmentListInputRepresentation') {
|
|
4577
4577
|
const v_error = (() => {
|
|
4578
4578
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4579
4579
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4586,7 +4586,7 @@ function validate$D(obj, path = 'GoalAssignmentListInputRepresentation') {
|
|
|
4586
4586
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4587
4587
|
const obj_records_item = obj_records[i];
|
|
4588
4588
|
const path_records_item = path_records + '[' + i + ']';
|
|
4589
|
-
const referencepath_records_itemValidationError = validate$
|
|
4589
|
+
const referencepath_records_itemValidationError = validate$C(obj_records_item, path_records_item);
|
|
4590
4590
|
if (referencepath_records_itemValidationError !== null) {
|
|
4591
4591
|
let message = 'Object doesn\'t match GoalAssignmentInputRepresentation (at "' + path_records_item + '")\n';
|
|
4592
4592
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4597,7 +4597,7 @@ function validate$D(obj, path = 'GoalAssignmentListInputRepresentation') {
|
|
|
4597
4597
|
return v_error === undefined ? null : v_error;
|
|
4598
4598
|
}
|
|
4599
4599
|
|
|
4600
|
-
function validate$
|
|
4600
|
+
function validate$A(obj, path = 'CarePlanInputRepresentation') {
|
|
4601
4601
|
const v_error = (() => {
|
|
4602
4602
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4603
4603
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4605,7 +4605,7 @@ function validate$C(obj, path = 'CarePlanInputRepresentation') {
|
|
|
4605
4605
|
if (obj.benefitAssignments !== undefined) {
|
|
4606
4606
|
const obj_benefitAssignments = obj.benefitAssignments;
|
|
4607
4607
|
const path_benefitAssignments = path + '.benefitAssignments';
|
|
4608
|
-
const referencepath_benefitAssignmentsValidationError = validate$
|
|
4608
|
+
const referencepath_benefitAssignmentsValidationError = validate$D(obj_benefitAssignments, path_benefitAssignments);
|
|
4609
4609
|
if (referencepath_benefitAssignmentsValidationError !== null) {
|
|
4610
4610
|
let message = 'Object doesn\'t match BenefitAssignmentListInputRepresentation (at "' + path_benefitAssignments + '")\n';
|
|
4611
4611
|
message += referencepath_benefitAssignmentsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4615,7 +4615,7 @@ function validate$C(obj, path = 'CarePlanInputRepresentation') {
|
|
|
4615
4615
|
if (obj.carePlanTasks !== undefined) {
|
|
4616
4616
|
const obj_carePlanTasks = obj.carePlanTasks;
|
|
4617
4617
|
const path_carePlanTasks = path + '.carePlanTasks';
|
|
4618
|
-
const referencepath_carePlanTasksValidationError = validate$
|
|
4618
|
+
const referencepath_carePlanTasksValidationError = validate$J(obj_carePlanTasks, path_carePlanTasks);
|
|
4619
4619
|
if (referencepath_carePlanTasksValidationError !== null) {
|
|
4620
4620
|
let message = 'Object doesn\'t match CarePlanTaskInputRepresentation (at "' + path_carePlanTasks + '")\n';
|
|
4621
4621
|
message += referencepath_carePlanTasksValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4637,7 +4637,7 @@ function validate$C(obj, path = 'CarePlanInputRepresentation') {
|
|
|
4637
4637
|
if (obj.customFields !== undefined) {
|
|
4638
4638
|
const obj_customFields = obj.customFields;
|
|
4639
4639
|
const path_customFields = path + '.customFields';
|
|
4640
|
-
const referencepath_customFieldsValidationError = validate$
|
|
4640
|
+
const referencepath_customFieldsValidationError = validate$F(obj_customFields, path_customFields);
|
|
4641
4641
|
if (referencepath_customFieldsValidationError !== null) {
|
|
4642
4642
|
let message = 'Object doesn\'t match CustomFieldListInputRepresentation (at "' + path_customFields + '")\n';
|
|
4643
4643
|
message += referencepath_customFieldsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4661,7 +4661,7 @@ function validate$C(obj, path = 'CarePlanInputRepresentation') {
|
|
|
4661
4661
|
if (obj.goalAssignments !== undefined) {
|
|
4662
4662
|
const obj_goalAssignments = obj.goalAssignments;
|
|
4663
4663
|
const path_goalAssignments = path + '.goalAssignments';
|
|
4664
|
-
const referencepath_goalAssignmentsValidationError = validate$
|
|
4664
|
+
const referencepath_goalAssignmentsValidationError = validate$B(obj_goalAssignments, path_goalAssignments);
|
|
4665
4665
|
if (referencepath_goalAssignmentsValidationError !== null) {
|
|
4666
4666
|
let message = 'Object doesn\'t match GoalAssignmentListInputRepresentation (at "' + path_goalAssignments + '")\n';
|
|
4667
4667
|
message += referencepath_goalAssignmentsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4708,7 +4708,7 @@ function validate$C(obj, path = 'CarePlanInputRepresentation') {
|
|
|
4708
4708
|
return v_error === undefined ? null : v_error;
|
|
4709
4709
|
}
|
|
4710
4710
|
|
|
4711
|
-
function validate$
|
|
4711
|
+
function validate$z(obj, path = 'CarePlanListInputRepresentation') {
|
|
4712
4712
|
const v_error = (() => {
|
|
4713
4713
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4714
4714
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4721,7 +4721,7 @@ function validate$B(obj, path = 'CarePlanListInputRepresentation') {
|
|
|
4721
4721
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4722
4722
|
const obj_records_item = obj_records[i];
|
|
4723
4723
|
const path_records_item = path_records + '[' + i + ']';
|
|
4724
|
-
const referencepath_records_itemValidationError = validate$
|
|
4724
|
+
const referencepath_records_itemValidationError = validate$A(obj_records_item, path_records_item);
|
|
4725
4725
|
if (referencepath_records_itemValidationError !== null) {
|
|
4726
4726
|
let message = 'Object doesn\'t match CarePlanInputRepresentation (at "' + path_records_item + '")\n';
|
|
4727
4727
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4732,14 +4732,14 @@ function validate$B(obj, path = 'CarePlanListInputRepresentation') {
|
|
|
4732
4732
|
return v_error === undefined ? null : v_error;
|
|
4733
4733
|
}
|
|
4734
4734
|
|
|
4735
|
-
function validate$
|
|
4735
|
+
function validate$y(obj, path = 'CarePlanBulkInputRepresentation') {
|
|
4736
4736
|
const v_error = (() => {
|
|
4737
4737
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4738
4738
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4739
4739
|
}
|
|
4740
4740
|
const obj_carePlans = obj.carePlans;
|
|
4741
4741
|
const path_carePlans = path + '.carePlans';
|
|
4742
|
-
const referencepath_carePlansValidationError = validate$
|
|
4742
|
+
const referencepath_carePlansValidationError = validate$z(obj_carePlans, path_carePlans);
|
|
4743
4743
|
if (referencepath_carePlansValidationError !== null) {
|
|
4744
4744
|
let message = 'Object doesn\'t match CarePlanListInputRepresentation (at "' + path_carePlans + '")\n';
|
|
4745
4745
|
message += referencepath_carePlansValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4749,9 +4749,9 @@ function validate$A(obj, path = 'CarePlanBulkInputRepresentation') {
|
|
|
4749
4749
|
return v_error === undefined ? null : v_error;
|
|
4750
4750
|
}
|
|
4751
4751
|
|
|
4752
|
-
const TTL$
|
|
4753
|
-
const VERSION$
|
|
4754
|
-
function validate$
|
|
4752
|
+
const TTL$3 = 100;
|
|
4753
|
+
const VERSION$p = "83a45266096a71720e9049cb0f0477d6";
|
|
4754
|
+
function validate$x(obj, path = 'CarePlanBulkOutputRepresentation') {
|
|
4755
4755
|
const v_error = (() => {
|
|
4756
4756
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4757
4757
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4778,68 +4778,68 @@ function validate$z(obj, path = 'CarePlanBulkOutputRepresentation') {
|
|
|
4778
4778
|
})();
|
|
4779
4779
|
return v_error === undefined ? null : v_error;
|
|
4780
4780
|
}
|
|
4781
|
-
const RepresentationType$
|
|
4782
|
-
function keyBuilder$
|
|
4783
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4781
|
+
const RepresentationType$c = 'CarePlanBulkOutputRepresentation';
|
|
4782
|
+
function keyBuilder$l(luvio, config) {
|
|
4783
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.id;
|
|
4784
4784
|
}
|
|
4785
4785
|
function keyBuilderFromType$3(luvio, object) {
|
|
4786
4786
|
const keyParams = {
|
|
4787
4787
|
id: object.statusCode
|
|
4788
4788
|
};
|
|
4789
|
-
return keyBuilder$
|
|
4789
|
+
return keyBuilder$l(luvio, keyParams);
|
|
4790
4790
|
}
|
|
4791
|
-
function normalize$
|
|
4791
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
4792
4792
|
return input;
|
|
4793
4793
|
}
|
|
4794
|
-
const select$
|
|
4794
|
+
const select$D = function CarePlanBulkOutputRepresentationSelect() {
|
|
4795
4795
|
return {
|
|
4796
4796
|
kind: 'Fragment',
|
|
4797
|
-
version: VERSION$
|
|
4797
|
+
version: VERSION$p,
|
|
4798
4798
|
private: [],
|
|
4799
4799
|
opaque: true
|
|
4800
4800
|
};
|
|
4801
4801
|
};
|
|
4802
|
-
function equals$
|
|
4802
|
+
function equals$p(existing, incoming) {
|
|
4803
4803
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4804
4804
|
return false;
|
|
4805
4805
|
}
|
|
4806
4806
|
return true;
|
|
4807
4807
|
}
|
|
4808
|
-
const ingest$
|
|
4808
|
+
const ingest$c = function CarePlanBulkOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4809
4809
|
if (process.env.NODE_ENV !== 'production') {
|
|
4810
|
-
const validateError = validate$
|
|
4810
|
+
const validateError = validate$x(input);
|
|
4811
4811
|
if (validateError !== null) {
|
|
4812
4812
|
throw validateError;
|
|
4813
4813
|
}
|
|
4814
4814
|
}
|
|
4815
4815
|
const key = keyBuilderFromType$3(luvio, input);
|
|
4816
|
-
const ttlToUse = TTL$
|
|
4817
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4816
|
+
const ttlToUse = TTL$3;
|
|
4817
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "education", VERSION$p, RepresentationType$c, equals$p);
|
|
4818
4818
|
return createLink(key);
|
|
4819
4819
|
};
|
|
4820
|
-
function getTypeCacheKeys$
|
|
4820
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
4821
4821
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4822
4822
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
4823
4823
|
rootKeySet.set(rootKey, {
|
|
4824
4824
|
namespace: keyPrefix,
|
|
4825
|
-
representationName: RepresentationType$
|
|
4825
|
+
representationName: RepresentationType$c,
|
|
4826
4826
|
mergeable: false
|
|
4827
4827
|
});
|
|
4828
4828
|
}
|
|
4829
4829
|
|
|
4830
|
-
function select$
|
|
4831
|
-
return select$
|
|
4830
|
+
function select$C(luvio, params) {
|
|
4831
|
+
return select$D();
|
|
4832
4832
|
}
|
|
4833
|
-
function getResponseCacheKeys$
|
|
4834
|
-
getTypeCacheKeys$
|
|
4833
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
4834
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
4835
4835
|
}
|
|
4836
|
-
function ingestSuccess$
|
|
4836
|
+
function ingestSuccess$d(luvio, resourceParams, response) {
|
|
4837
4837
|
const { body } = response;
|
|
4838
4838
|
const key = keyBuilderFromType$3(luvio, body);
|
|
4839
|
-
luvio.storeIngest(key, ingest$
|
|
4839
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
4840
4840
|
const snapshot = luvio.storeLookup({
|
|
4841
4841
|
recordId: key,
|
|
4842
|
-
node: select$
|
|
4842
|
+
node: select$C(),
|
|
4843
4843
|
variables: {},
|
|
4844
4844
|
});
|
|
4845
4845
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4850,7 +4850,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
|
|
|
4850
4850
|
deepFreeze(snapshot.data);
|
|
4851
4851
|
return snapshot;
|
|
4852
4852
|
}
|
|
4853
|
-
function createResourceRequest$
|
|
4853
|
+
function createResourceRequest$d(config) {
|
|
4854
4854
|
const headers = {};
|
|
4855
4855
|
return {
|
|
4856
4856
|
baseUri: '/services/data/v62.0',
|
|
@@ -4864,45 +4864,45 @@ function createResourceRequest$e(config) {
|
|
|
4864
4864
|
};
|
|
4865
4865
|
}
|
|
4866
4866
|
|
|
4867
|
-
const adapterName$
|
|
4867
|
+
const adapterName$d = 'createCarePlans';
|
|
4868
4868
|
const createCarePlans_ConfigPropertyMetadata = [
|
|
4869
4869
|
generateParamConfigMetadata('carePlanBulkRecord', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4870
4870
|
];
|
|
4871
|
-
const createCarePlans_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4872
|
-
const createResourceParams$
|
|
4873
|
-
function typeCheckConfig$
|
|
4871
|
+
const createCarePlans_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, createCarePlans_ConfigPropertyMetadata);
|
|
4872
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$p(createCarePlans_ConfigPropertyMetadata);
|
|
4873
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
4874
4874
|
const config = {};
|
|
4875
4875
|
const untrustedConfig_carePlanBulkRecord = untrustedConfig.carePlanBulkRecord;
|
|
4876
|
-
const referenceCarePlanBulkInputRepresentationValidationError = validate$
|
|
4876
|
+
const referenceCarePlanBulkInputRepresentationValidationError = validate$y(untrustedConfig_carePlanBulkRecord);
|
|
4877
4877
|
if (referenceCarePlanBulkInputRepresentationValidationError === null) {
|
|
4878
4878
|
config.carePlanBulkRecord = untrustedConfig_carePlanBulkRecord;
|
|
4879
4879
|
}
|
|
4880
4880
|
return config;
|
|
4881
4881
|
}
|
|
4882
|
-
function validateAdapterConfig$
|
|
4882
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
4883
4883
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4884
4884
|
return null;
|
|
4885
4885
|
}
|
|
4886
4886
|
if (process.env.NODE_ENV !== 'production') {
|
|
4887
4887
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4888
4888
|
}
|
|
4889
|
-
const config = typeCheckConfig$
|
|
4889
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
4890
4890
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4891
4891
|
return null;
|
|
4892
4892
|
}
|
|
4893
4893
|
return config;
|
|
4894
4894
|
}
|
|
4895
|
-
function buildNetworkSnapshot$
|
|
4896
|
-
const resourceParams = createResourceParams$
|
|
4897
|
-
const request = createResourceRequest$
|
|
4895
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
4896
|
+
const resourceParams = createResourceParams$d(config);
|
|
4897
|
+
const request = createResourceRequest$d(resourceParams);
|
|
4898
4898
|
return luvio.dispatchResourceRequest(request, options)
|
|
4899
4899
|
.then((response) => {
|
|
4900
4900
|
return luvio.handleSuccessResponse(() => {
|
|
4901
|
-
const snapshot = ingestSuccess$
|
|
4901
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response);
|
|
4902
4902
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4903
4903
|
}, () => {
|
|
4904
4904
|
const cache = new StoreKeyMap();
|
|
4905
|
-
getResponseCacheKeys$
|
|
4905
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
4906
4906
|
return cache;
|
|
4907
4907
|
});
|
|
4908
4908
|
}, (response) => {
|
|
@@ -4912,16 +4912,16 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
4912
4912
|
}
|
|
4913
4913
|
const createCarePlansAdapterFactory = (luvio) => {
|
|
4914
4914
|
return function createCarePlans(untrustedConfig) {
|
|
4915
|
-
const config = validateAdapterConfig$
|
|
4915
|
+
const config = validateAdapterConfig$d(untrustedConfig, createCarePlans_ConfigPropertyNames);
|
|
4916
4916
|
// Invalid or incomplete config
|
|
4917
4917
|
if (config === null) {
|
|
4918
4918
|
throw new Error('Invalid config for "createCarePlans"');
|
|
4919
4919
|
}
|
|
4920
|
-
return buildNetworkSnapshot$
|
|
4920
|
+
return buildNetworkSnapshot$d(luvio, config);
|
|
4921
4921
|
};
|
|
4922
4922
|
};
|
|
4923
4923
|
|
|
4924
|
-
function validate$
|
|
4924
|
+
function validate$w(obj, path = 'MentoringBenefitAssignment') {
|
|
4925
4925
|
const v_error = (() => {
|
|
4926
4926
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4927
4927
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5082,15 +5082,15 @@ function validate$y(obj, path = 'MentoringBenefitAssignment') {
|
|
|
5082
5082
|
return v_error === undefined ? null : v_error;
|
|
5083
5083
|
}
|
|
5084
5084
|
|
|
5085
|
-
const VERSION$
|
|
5086
|
-
function validate$
|
|
5085
|
+
const VERSION$o = "4056cc46e5eff095d36ae486ac5908bc";
|
|
5086
|
+
function validate$v(obj, path = 'MentoringBenefitAssignmentOutputRepresentation') {
|
|
5087
5087
|
const v_error = (() => {
|
|
5088
5088
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5089
5089
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5090
5090
|
}
|
|
5091
5091
|
const obj_mentoringBenefitAssignment = obj.mentoringBenefitAssignment;
|
|
5092
5092
|
const path_mentoringBenefitAssignment = path + '.mentoringBenefitAssignment';
|
|
5093
|
-
const referencepath_mentoringBenefitAssignmentValidationError = validate$
|
|
5093
|
+
const referencepath_mentoringBenefitAssignmentValidationError = validate$w(obj_mentoringBenefitAssignment, path_mentoringBenefitAssignment);
|
|
5094
5094
|
if (referencepath_mentoringBenefitAssignmentValidationError !== null) {
|
|
5095
5095
|
let message = 'Object doesn\'t match MentoringBenefitAssignment (at "' + path_mentoringBenefitAssignment + '")\n';
|
|
5096
5096
|
message += referencepath_mentoringBenefitAssignmentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5099,68 +5099,68 @@ function validate$x(obj, path = 'MentoringBenefitAssignmentOutputRepresentation'
|
|
|
5099
5099
|
})();
|
|
5100
5100
|
return v_error === undefined ? null : v_error;
|
|
5101
5101
|
}
|
|
5102
|
-
const RepresentationType$
|
|
5103
|
-
function keyBuilder$
|
|
5104
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5102
|
+
const RepresentationType$b = 'MentoringBenefitAssignmentOutputRepresentation';
|
|
5103
|
+
function keyBuilder$k(luvio, config) {
|
|
5104
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.id;
|
|
5105
5105
|
}
|
|
5106
5106
|
function keyBuilderFromType$2(luvio, object) {
|
|
5107
5107
|
const keyParams = {
|
|
5108
5108
|
id: object.mentoringBenefitAssignment.id
|
|
5109
5109
|
};
|
|
5110
|
-
return keyBuilder$
|
|
5110
|
+
return keyBuilder$k(luvio, keyParams);
|
|
5111
5111
|
}
|
|
5112
|
-
function normalize$
|
|
5112
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
5113
5113
|
return input;
|
|
5114
5114
|
}
|
|
5115
|
-
const select$
|
|
5115
|
+
const select$B = function MentoringBenefitAssignmentOutputRepresentationSelect() {
|
|
5116
5116
|
return {
|
|
5117
5117
|
kind: 'Fragment',
|
|
5118
|
-
version: VERSION$
|
|
5118
|
+
version: VERSION$o,
|
|
5119
5119
|
private: [],
|
|
5120
5120
|
opaque: true
|
|
5121
5121
|
};
|
|
5122
5122
|
};
|
|
5123
|
-
function equals$
|
|
5123
|
+
function equals$o(existing, incoming) {
|
|
5124
5124
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5125
5125
|
return false;
|
|
5126
5126
|
}
|
|
5127
5127
|
return true;
|
|
5128
5128
|
}
|
|
5129
|
-
const ingest$
|
|
5129
|
+
const ingest$b = function MentoringBenefitAssignmentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5130
5130
|
if (process.env.NODE_ENV !== 'production') {
|
|
5131
|
-
const validateError = validate$
|
|
5131
|
+
const validateError = validate$v(input);
|
|
5132
5132
|
if (validateError !== null) {
|
|
5133
5133
|
throw validateError;
|
|
5134
5134
|
}
|
|
5135
5135
|
}
|
|
5136
5136
|
const key = keyBuilderFromType$2(luvio, input);
|
|
5137
5137
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
5138
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5138
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "education", VERSION$o, RepresentationType$b, equals$o);
|
|
5139
5139
|
return createLink(key);
|
|
5140
5140
|
};
|
|
5141
|
-
function getTypeCacheKeys$
|
|
5141
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
5142
5142
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5143
5143
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
5144
5144
|
rootKeySet.set(rootKey, {
|
|
5145
5145
|
namespace: keyPrefix,
|
|
5146
|
-
representationName: RepresentationType$
|
|
5146
|
+
representationName: RepresentationType$b,
|
|
5147
5147
|
mergeable: false
|
|
5148
5148
|
});
|
|
5149
5149
|
}
|
|
5150
5150
|
|
|
5151
|
-
function select$
|
|
5152
|
-
return select$
|
|
5151
|
+
function select$A(luvio, params) {
|
|
5152
|
+
return select$B();
|
|
5153
5153
|
}
|
|
5154
|
-
function getResponseCacheKeys$
|
|
5155
|
-
getTypeCacheKeys$
|
|
5154
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
5155
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response);
|
|
5156
5156
|
}
|
|
5157
|
-
function ingestSuccess$
|
|
5157
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
5158
5158
|
const { body } = response;
|
|
5159
5159
|
const key = keyBuilderFromType$2(luvio, body);
|
|
5160
|
-
luvio.storeIngest(key, ingest$
|
|
5160
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
5161
5161
|
const snapshot = luvio.storeLookup({
|
|
5162
5162
|
recordId: key,
|
|
5163
|
-
node: select$
|
|
5163
|
+
node: select$A(),
|
|
5164
5164
|
variables: {},
|
|
5165
5165
|
});
|
|
5166
5166
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5171,7 +5171,7 @@ function ingestSuccess$d(luvio, resourceParams, response) {
|
|
|
5171
5171
|
deepFreeze(snapshot.data);
|
|
5172
5172
|
return snapshot;
|
|
5173
5173
|
}
|
|
5174
|
-
function createResourceRequest$
|
|
5174
|
+
function createResourceRequest$c(config) {
|
|
5175
5175
|
const headers = {};
|
|
5176
5176
|
return {
|
|
5177
5177
|
baseUri: '/services/data/v62.0',
|
|
@@ -5185,42 +5185,42 @@ function createResourceRequest$d(config) {
|
|
|
5185
5185
|
};
|
|
5186
5186
|
}
|
|
5187
5187
|
|
|
5188
|
-
const adapterName$
|
|
5188
|
+
const adapterName$c = 'postBenefitAssignment';
|
|
5189
5189
|
const postBenefitAssignment_ConfigPropertyMetadata = [
|
|
5190
5190
|
generateParamConfigMetadata('benefitAssignmentId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5191
5191
|
generateParamConfigMetadata('providerId', true, 2 /* Body */, 0 /* String */),
|
|
5192
5192
|
];
|
|
5193
|
-
const postBenefitAssignment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5194
|
-
const createResourceParams$
|
|
5195
|
-
function typeCheckConfig$
|
|
5193
|
+
const postBenefitAssignment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, postBenefitAssignment_ConfigPropertyMetadata);
|
|
5194
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$p(postBenefitAssignment_ConfigPropertyMetadata);
|
|
5195
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
5196
5196
|
const config = {};
|
|
5197
|
-
typeCheckConfig$
|
|
5197
|
+
typeCheckConfig$p(untrustedConfig, config, postBenefitAssignment_ConfigPropertyMetadata);
|
|
5198
5198
|
return config;
|
|
5199
5199
|
}
|
|
5200
|
-
function validateAdapterConfig$
|
|
5200
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
5201
5201
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5202
5202
|
return null;
|
|
5203
5203
|
}
|
|
5204
5204
|
if (process.env.NODE_ENV !== 'production') {
|
|
5205
5205
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5206
5206
|
}
|
|
5207
|
-
const config = typeCheckConfig$
|
|
5207
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
5208
5208
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5209
5209
|
return null;
|
|
5210
5210
|
}
|
|
5211
5211
|
return config;
|
|
5212
5212
|
}
|
|
5213
|
-
function buildNetworkSnapshot$
|
|
5214
|
-
const resourceParams = createResourceParams$
|
|
5215
|
-
const request = createResourceRequest$
|
|
5213
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
5214
|
+
const resourceParams = createResourceParams$c(config);
|
|
5215
|
+
const request = createResourceRequest$c(resourceParams);
|
|
5216
5216
|
return luvio.dispatchResourceRequest(request, options)
|
|
5217
5217
|
.then((response) => {
|
|
5218
5218
|
return luvio.handleSuccessResponse(() => {
|
|
5219
|
-
const snapshot = ingestSuccess$
|
|
5219
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response);
|
|
5220
5220
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5221
5221
|
}, () => {
|
|
5222
5222
|
const cache = new StoreKeyMap();
|
|
5223
|
-
getResponseCacheKeys$
|
|
5223
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
5224
5224
|
return cache;
|
|
5225
5225
|
});
|
|
5226
5226
|
}, (response) => {
|
|
@@ -5230,16 +5230,16 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
5230
5230
|
}
|
|
5231
5231
|
const postBenefitAssignmentAdapterFactory = (luvio) => {
|
|
5232
5232
|
return function postBenefitAssignment(untrustedConfig) {
|
|
5233
|
-
const config = validateAdapterConfig$
|
|
5233
|
+
const config = validateAdapterConfig$c(untrustedConfig, postBenefitAssignment_ConfigPropertyNames);
|
|
5234
5234
|
// Invalid or incomplete config
|
|
5235
5235
|
if (config === null) {
|
|
5236
5236
|
throw new Error('Invalid config for "postBenefitAssignment"');
|
|
5237
5237
|
}
|
|
5238
|
-
return buildNetworkSnapshot$
|
|
5238
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
5239
5239
|
};
|
|
5240
5240
|
};
|
|
5241
5241
|
|
|
5242
|
-
function validate$
|
|
5242
|
+
function validate$u(obj, path = 'FilterConfig') {
|
|
5243
5243
|
const v_error = (() => {
|
|
5244
5244
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5245
5245
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5275,8 +5275,8 @@ function validate$w(obj, path = 'FilterConfig') {
|
|
|
5275
5275
|
return v_error === undefined ? null : v_error;
|
|
5276
5276
|
}
|
|
5277
5277
|
|
|
5278
|
-
const VERSION$
|
|
5279
|
-
function validate$
|
|
5278
|
+
const VERSION$n = "21bdda1d3836a2c358ee187ea8dee2b2";
|
|
5279
|
+
function validate$t(obj, path = 'MentoringProfileOption') {
|
|
5280
5280
|
const v_error = (() => {
|
|
5281
5281
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5282
5282
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5289,10 +5289,10 @@ function validate$v(obj, path = 'MentoringProfileOption') {
|
|
|
5289
5289
|
})();
|
|
5290
5290
|
return v_error === undefined ? null : v_error;
|
|
5291
5291
|
}
|
|
5292
|
-
const select$
|
|
5292
|
+
const select$z = function MentoringProfileOptionSelect() {
|
|
5293
5293
|
return {
|
|
5294
5294
|
kind: 'Fragment',
|
|
5295
|
-
version: VERSION$
|
|
5295
|
+
version: VERSION$n,
|
|
5296
5296
|
private: [],
|
|
5297
5297
|
selections: [
|
|
5298
5298
|
{
|
|
@@ -5302,7 +5302,7 @@ const select$B = function MentoringProfileOptionSelect() {
|
|
|
5302
5302
|
]
|
|
5303
5303
|
};
|
|
5304
5304
|
};
|
|
5305
|
-
function equals$
|
|
5305
|
+
function equals$n(existing, incoming) {
|
|
5306
5306
|
const existing_id = existing.id;
|
|
5307
5307
|
const incoming_id = incoming.id;
|
|
5308
5308
|
if (!(existing_id === incoming_id)) {
|
|
@@ -5311,9 +5311,9 @@ function equals$o(existing, incoming) {
|
|
|
5311
5311
|
return true;
|
|
5312
5312
|
}
|
|
5313
5313
|
|
|
5314
|
-
const TTL$
|
|
5315
|
-
const VERSION$
|
|
5316
|
-
function validate$
|
|
5314
|
+
const TTL$2 = 500;
|
|
5315
|
+
const VERSION$m = "33fcd02404150683fc2b8c66cd715130";
|
|
5316
|
+
function validate$s(obj, path = 'MentoringMatchingSelectorOutputRepresentation') {
|
|
5317
5317
|
const v_error = (() => {
|
|
5318
5318
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5319
5319
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5326,7 +5326,7 @@ function validate$u(obj, path = 'MentoringMatchingSelectorOutputRepresentation')
|
|
|
5326
5326
|
for (let i = 0; i < obj_mentoringProfiles.length; i++) {
|
|
5327
5327
|
const obj_mentoringProfiles_item = obj_mentoringProfiles[i];
|
|
5328
5328
|
const path_mentoringProfiles_item = path_mentoringProfiles + '[' + i + ']';
|
|
5329
|
-
const referencepath_mentoringProfiles_itemValidationError = validate$
|
|
5329
|
+
const referencepath_mentoringProfiles_itemValidationError = validate$t(obj_mentoringProfiles_item, path_mentoringProfiles_item);
|
|
5330
5330
|
if (referencepath_mentoringProfiles_itemValidationError !== null) {
|
|
5331
5331
|
let message = 'Object doesn\'t match MentoringProfileOption (at "' + path_mentoringProfiles_item + '")\n';
|
|
5332
5332
|
message += referencepath_mentoringProfiles_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5336,15 +5336,15 @@ function validate$u(obj, path = 'MentoringMatchingSelectorOutputRepresentation')
|
|
|
5336
5336
|
})();
|
|
5337
5337
|
return v_error === undefined ? null : v_error;
|
|
5338
5338
|
}
|
|
5339
|
-
const RepresentationType$
|
|
5340
|
-
function normalize$
|
|
5339
|
+
const RepresentationType$a = 'MentoringMatchingSelectorOutputRepresentation';
|
|
5340
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
5341
5341
|
return input;
|
|
5342
5342
|
}
|
|
5343
|
-
const select$
|
|
5344
|
-
const { selections: MentoringProfileOption__selections, opaque: MentoringProfileOption__opaque, } = select$
|
|
5343
|
+
const select$y = function MentoringMatchingSelectorOutputRepresentationSelect() {
|
|
5344
|
+
const { selections: MentoringProfileOption__selections, opaque: MentoringProfileOption__opaque, } = select$z();
|
|
5345
5345
|
return {
|
|
5346
5346
|
kind: 'Fragment',
|
|
5347
|
-
version: VERSION$
|
|
5347
|
+
version: VERSION$m,
|
|
5348
5348
|
private: [],
|
|
5349
5349
|
selections: [
|
|
5350
5350
|
{
|
|
@@ -5356,11 +5356,11 @@ const select$A = function MentoringMatchingSelectorOutputRepresentationSelect()
|
|
|
5356
5356
|
]
|
|
5357
5357
|
};
|
|
5358
5358
|
};
|
|
5359
|
-
function equals$
|
|
5359
|
+
function equals$m(existing, incoming) {
|
|
5360
5360
|
const existing_mentoringProfiles = existing.mentoringProfiles;
|
|
5361
5361
|
const incoming_mentoringProfiles = incoming.mentoringProfiles;
|
|
5362
5362
|
const equals_mentoringProfiles_items = equalsArray(existing_mentoringProfiles, incoming_mentoringProfiles, (existing_mentoringProfiles_item, incoming_mentoringProfiles_item) => {
|
|
5363
|
-
if (!(equals$
|
|
5363
|
+
if (!(equals$n(existing_mentoringProfiles_item, incoming_mentoringProfiles_item))) {
|
|
5364
5364
|
return false;
|
|
5365
5365
|
}
|
|
5366
5366
|
});
|
|
@@ -5369,248 +5369,7 @@ function equals$n(existing, incoming) {
|
|
|
5369
5369
|
}
|
|
5370
5370
|
return true;
|
|
5371
5371
|
}
|
|
5372
|
-
const ingest$
|
|
5373
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
5374
|
-
const validateError = validate$u(input);
|
|
5375
|
-
if (validateError !== null) {
|
|
5376
|
-
throw validateError;
|
|
5377
|
-
}
|
|
5378
|
-
}
|
|
5379
|
-
const key = path.fullPath;
|
|
5380
|
-
const ttlToUse = TTL$3;
|
|
5381
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "education", VERSION$n, RepresentationType$b, equals$n);
|
|
5382
|
-
return createLink(key);
|
|
5383
|
-
};
|
|
5384
|
-
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
5385
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5386
|
-
const rootKey = fullPathFactory();
|
|
5387
|
-
rootKeySet.set(rootKey, {
|
|
5388
|
-
namespace: keyPrefix,
|
|
5389
|
-
representationName: RepresentationType$b,
|
|
5390
|
-
mergeable: false
|
|
5391
|
-
});
|
|
5392
|
-
}
|
|
5393
|
-
|
|
5394
|
-
function select$z(luvio, params) {
|
|
5395
|
-
return select$A();
|
|
5396
|
-
}
|
|
5397
|
-
function keyBuilder$l(luvio, params) {
|
|
5398
|
-
return keyPrefix + '::MentoringMatchingSelectorOutputRepresentation:(' + 'benefitAssignmentId:' + params.urlParams.benefitAssignmentId + ',' + '[' + params.body.filtersConfig.map(element => 'filtersConfig.apiName:' + element.apiName + '::' + 'filtersConfig.fieldType:' + element.fieldType + '::' + 'filtersConfig.operator:' + element.operator + '::' + 'filtersConfig.filterValue:' + element.filterValue).join(',') + ']' + ')';
|
|
5399
|
-
}
|
|
5400
|
-
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
5401
|
-
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$l(luvio, resourceParams));
|
|
5402
|
-
}
|
|
5403
|
-
function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
5404
|
-
const { body } = response;
|
|
5405
|
-
const key = keyBuilder$l(luvio, resourceParams);
|
|
5406
|
-
luvio.storeIngest(key, ingest$b, body);
|
|
5407
|
-
const snapshot = luvio.storeLookup({
|
|
5408
|
-
recordId: key,
|
|
5409
|
-
node: select$z(),
|
|
5410
|
-
variables: {},
|
|
5411
|
-
}, snapshotRefresh);
|
|
5412
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
5413
|
-
if (snapshot.state !== 'Fulfilled') {
|
|
5414
|
-
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
5415
|
-
}
|
|
5416
|
-
}
|
|
5417
|
-
deepFreeze(snapshot.data);
|
|
5418
|
-
return snapshot;
|
|
5419
|
-
}
|
|
5420
|
-
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
5421
|
-
const key = keyBuilder$l(luvio, params);
|
|
5422
|
-
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5423
|
-
const storeMetadataParams = {
|
|
5424
|
-
ttl: TTL$3,
|
|
5425
|
-
namespace: keyPrefix,
|
|
5426
|
-
version: VERSION$n,
|
|
5427
|
-
representationName: RepresentationType$b
|
|
5428
|
-
};
|
|
5429
|
-
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5430
|
-
return errorSnapshot;
|
|
5431
|
-
}
|
|
5432
|
-
function createResourceRequest$c(config) {
|
|
5433
|
-
const headers = {};
|
|
5434
|
-
return {
|
|
5435
|
-
baseUri: '/services/data/v62.0',
|
|
5436
|
-
basePath: '/connect/education/mentoring/matching-selector/' + config.urlParams.benefitAssignmentId + '',
|
|
5437
|
-
method: 'post',
|
|
5438
|
-
body: config.body,
|
|
5439
|
-
urlParams: config.urlParams,
|
|
5440
|
-
queryParams: {},
|
|
5441
|
-
headers,
|
|
5442
|
-
priority: 'normal',
|
|
5443
|
-
};
|
|
5444
|
-
}
|
|
5445
|
-
|
|
5446
|
-
const adapterName$c = 'postMatchingSelector';
|
|
5447
|
-
const postMatchingSelector_ConfigPropertyMetadata = [
|
|
5448
|
-
generateParamConfigMetadata('benefitAssignmentId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5449
|
-
generateParamConfigMetadata('filtersConfig', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5450
|
-
];
|
|
5451
|
-
const postMatchingSelector_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, postMatchingSelector_ConfigPropertyMetadata);
|
|
5452
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$q(postMatchingSelector_ConfigPropertyMetadata);
|
|
5453
|
-
function keyBuilder$k(luvio, config) {
|
|
5454
|
-
const resourceParams = createResourceParams$c(config);
|
|
5455
|
-
return keyBuilder$l(luvio, resourceParams);
|
|
5456
|
-
}
|
|
5457
|
-
function typeCheckConfig$c(untrustedConfig) {
|
|
5458
|
-
const config = {};
|
|
5459
|
-
typeCheckConfig$q(untrustedConfig, config, postMatchingSelector_ConfigPropertyMetadata);
|
|
5460
|
-
const untrustedConfig_filtersConfig = untrustedConfig.filtersConfig;
|
|
5461
|
-
if (ArrayIsArray$1(untrustedConfig_filtersConfig)) {
|
|
5462
|
-
const untrustedConfig_filtersConfig_array = [];
|
|
5463
|
-
for (let i = 0, arrayLength = untrustedConfig_filtersConfig.length; i < arrayLength; i++) {
|
|
5464
|
-
const untrustedConfig_filtersConfig_item = untrustedConfig_filtersConfig[i];
|
|
5465
|
-
const referenceFilterConfigValidationError = validate$w(untrustedConfig_filtersConfig_item);
|
|
5466
|
-
if (referenceFilterConfigValidationError === null) {
|
|
5467
|
-
untrustedConfig_filtersConfig_array.push(untrustedConfig_filtersConfig_item);
|
|
5468
|
-
}
|
|
5469
|
-
}
|
|
5470
|
-
config.filtersConfig = untrustedConfig_filtersConfig_array;
|
|
5471
|
-
}
|
|
5472
|
-
return config;
|
|
5473
|
-
}
|
|
5474
|
-
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
5475
|
-
if (!untrustedIsObject(untrustedConfig)) {
|
|
5476
|
-
return null;
|
|
5477
|
-
}
|
|
5478
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
5479
|
-
validateConfig(untrustedConfig, configPropertyNames);
|
|
5480
|
-
}
|
|
5481
|
-
const config = typeCheckConfig$c(untrustedConfig);
|
|
5482
|
-
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5483
|
-
return null;
|
|
5484
|
-
}
|
|
5485
|
-
return config;
|
|
5486
|
-
}
|
|
5487
|
-
function adapterFragment$9(luvio, config) {
|
|
5488
|
-
createResourceParams$c(config);
|
|
5489
|
-
return select$z();
|
|
5490
|
-
}
|
|
5491
|
-
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
5492
|
-
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
5493
|
-
config,
|
|
5494
|
-
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
5495
|
-
});
|
|
5496
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
5497
|
-
}
|
|
5498
|
-
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
5499
|
-
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
5500
|
-
config,
|
|
5501
|
-
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
5502
|
-
});
|
|
5503
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
5504
|
-
}
|
|
5505
|
-
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
5506
|
-
const resourceParams = createResourceParams$c(config);
|
|
5507
|
-
const request = createResourceRequest$c(resourceParams);
|
|
5508
|
-
return luvio.dispatchResourceRequest(request, options)
|
|
5509
|
-
.then((response) => {
|
|
5510
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
5511
|
-
const cache = new StoreKeyMap();
|
|
5512
|
-
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
5513
|
-
return cache;
|
|
5514
|
-
});
|
|
5515
|
-
}, (response) => {
|
|
5516
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
5517
|
-
});
|
|
5518
|
-
}
|
|
5519
|
-
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
5520
|
-
return buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, 'get', false);
|
|
5521
|
-
}
|
|
5522
|
-
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
5523
|
-
const { luvio, config } = context;
|
|
5524
|
-
const selector = {
|
|
5525
|
-
recordId: keyBuilder$k(luvio, config),
|
|
5526
|
-
node: adapterFragment$9(luvio, config),
|
|
5527
|
-
variables: {},
|
|
5528
|
-
};
|
|
5529
|
-
const cacheSnapshot = storeLookup(selector, {
|
|
5530
|
-
config,
|
|
5531
|
-
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
5532
|
-
});
|
|
5533
|
-
return cacheSnapshot;
|
|
5534
|
-
}
|
|
5535
|
-
const postMatchingSelectorAdapterFactory = (luvio) => function education__postMatchingSelector(untrustedConfig, requestContext) {
|
|
5536
|
-
const config = validateAdapterConfig$c(untrustedConfig, postMatchingSelector_ConfigPropertyNames);
|
|
5537
|
-
// Invalid or incomplete config
|
|
5538
|
-
if (config === null) {
|
|
5539
|
-
return null;
|
|
5540
|
-
}
|
|
5541
|
-
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5542
|
-
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
5543
|
-
};
|
|
5544
|
-
|
|
5545
|
-
function validate$t(obj, path = 'PromptTemplate') {
|
|
5546
|
-
const v_error = (() => {
|
|
5547
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5548
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5549
|
-
}
|
|
5550
|
-
if (obj.id !== undefined) {
|
|
5551
|
-
const obj_id = obj.id;
|
|
5552
|
-
const path_id = path + '.id';
|
|
5553
|
-
if (typeof obj_id !== 'string') {
|
|
5554
|
-
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
5555
|
-
}
|
|
5556
|
-
}
|
|
5557
|
-
if (obj.name !== undefined) {
|
|
5558
|
-
const obj_name = obj.name;
|
|
5559
|
-
const path_name = path + '.name';
|
|
5560
|
-
if (typeof obj_name !== 'string') {
|
|
5561
|
-
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
5562
|
-
}
|
|
5563
|
-
}
|
|
5564
|
-
})();
|
|
5565
|
-
return v_error === undefined ? null : v_error;
|
|
5566
|
-
}
|
|
5567
|
-
|
|
5568
|
-
const TTL$2 = 100;
|
|
5569
|
-
const VERSION$m = "a4f2950496cf124eea76894ec3679162";
|
|
5570
|
-
function validate$s(obj, path = 'PromptTemplateOutputRepresentation') {
|
|
5571
|
-
const v_error = (() => {
|
|
5572
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5573
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5574
|
-
}
|
|
5575
|
-
if (obj.promptTemplates !== undefined) {
|
|
5576
|
-
const obj_promptTemplates = obj.promptTemplates;
|
|
5577
|
-
const path_promptTemplates = path + '.promptTemplates';
|
|
5578
|
-
if (!ArrayIsArray(obj_promptTemplates)) {
|
|
5579
|
-
return new TypeError('Expected "array" but received "' + typeof obj_promptTemplates + '" (at "' + path_promptTemplates + '")');
|
|
5580
|
-
}
|
|
5581
|
-
for (let i = 0; i < obj_promptTemplates.length; i++) {
|
|
5582
|
-
const obj_promptTemplates_item = obj_promptTemplates[i];
|
|
5583
|
-
const path_promptTemplates_item = path_promptTemplates + '[' + i + ']';
|
|
5584
|
-
const referencepath_promptTemplates_itemValidationError = validate$t(obj_promptTemplates_item, path_promptTemplates_item);
|
|
5585
|
-
if (referencepath_promptTemplates_itemValidationError !== null) {
|
|
5586
|
-
let message = 'Object doesn\'t match PromptTemplate (at "' + path_promptTemplates_item + '")\n';
|
|
5587
|
-
message += referencepath_promptTemplates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5588
|
-
return new TypeError(message);
|
|
5589
|
-
}
|
|
5590
|
-
}
|
|
5591
|
-
}
|
|
5592
|
-
})();
|
|
5593
|
-
return v_error === undefined ? null : v_error;
|
|
5594
|
-
}
|
|
5595
|
-
const RepresentationType$a = 'PromptTemplateOutputRepresentation';
|
|
5596
|
-
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
5597
|
-
return input;
|
|
5598
|
-
}
|
|
5599
|
-
const select$y = function PromptTemplateOutputRepresentationSelect() {
|
|
5600
|
-
return {
|
|
5601
|
-
kind: 'Fragment',
|
|
5602
|
-
version: VERSION$m,
|
|
5603
|
-
private: [],
|
|
5604
|
-
opaque: true
|
|
5605
|
-
};
|
|
5606
|
-
};
|
|
5607
|
-
function equals$m(existing, incoming) {
|
|
5608
|
-
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5609
|
-
return false;
|
|
5610
|
-
}
|
|
5611
|
-
return true;
|
|
5612
|
-
}
|
|
5613
|
-
const ingest$a = function PromptTemplateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5372
|
+
const ingest$a = function MentoringMatchingSelectorOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5614
5373
|
if (process.env.NODE_ENV !== 'production') {
|
|
5615
5374
|
const validateError = validate$s(input);
|
|
5616
5375
|
if (validateError !== null) {
|
|
@@ -5636,7 +5395,7 @@ function select$x(luvio, params) {
|
|
|
5636
5395
|
return select$y();
|
|
5637
5396
|
}
|
|
5638
5397
|
function keyBuilder$j(luvio, params) {
|
|
5639
|
-
return keyPrefix + '::
|
|
5398
|
+
return keyPrefix + '::MentoringMatchingSelectorOutputRepresentation:(' + 'benefitAssignmentId:' + params.urlParams.benefitAssignmentId + ',' + '[' + params.body.filtersConfig.map(element => 'filtersConfig.apiName:' + element.apiName + '::' + 'filtersConfig.fieldType:' + element.fieldType + '::' + 'filtersConfig.operator:' + element.operator + '::' + 'filtersConfig.filterValue:' + element.filterValue).join(',') + ']' + ')';
|
|
5640
5399
|
}
|
|
5641
5400
|
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
5642
5401
|
getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
|
|
@@ -5674,30 +5433,42 @@ function createResourceRequest$b(config) {
|
|
|
5674
5433
|
const headers = {};
|
|
5675
5434
|
return {
|
|
5676
5435
|
baseUri: '/services/data/v62.0',
|
|
5677
|
-
basePath: '/connect/education/
|
|
5436
|
+
basePath: '/connect/education/mentoring/matching-selector/' + config.urlParams.benefitAssignmentId + '',
|
|
5678
5437
|
method: 'post',
|
|
5679
5438
|
body: config.body,
|
|
5680
|
-
urlParams:
|
|
5439
|
+
urlParams: config.urlParams,
|
|
5681
5440
|
queryParams: {},
|
|
5682
5441
|
headers,
|
|
5683
5442
|
priority: 'normal',
|
|
5684
5443
|
};
|
|
5685
5444
|
}
|
|
5686
5445
|
|
|
5687
|
-
const adapterName$b = '
|
|
5688
|
-
const
|
|
5689
|
-
generateParamConfigMetadata('
|
|
5690
|
-
generateParamConfigMetadata('
|
|
5446
|
+
const adapterName$b = 'postMatchingSelector';
|
|
5447
|
+
const postMatchingSelector_ConfigPropertyMetadata = [
|
|
5448
|
+
generateParamConfigMetadata('benefitAssignmentId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5449
|
+
generateParamConfigMetadata('filtersConfig', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5691
5450
|
];
|
|
5692
|
-
const
|
|
5693
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
5451
|
+
const postMatchingSelector_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, postMatchingSelector_ConfigPropertyMetadata);
|
|
5452
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$p(postMatchingSelector_ConfigPropertyMetadata);
|
|
5694
5453
|
function keyBuilder$i(luvio, config) {
|
|
5695
5454
|
const resourceParams = createResourceParams$b(config);
|
|
5696
5455
|
return keyBuilder$j(luvio, resourceParams);
|
|
5697
5456
|
}
|
|
5698
5457
|
function typeCheckConfig$b(untrustedConfig) {
|
|
5699
5458
|
const config = {};
|
|
5700
|
-
typeCheckConfig$
|
|
5459
|
+
typeCheckConfig$p(untrustedConfig, config, postMatchingSelector_ConfigPropertyMetadata);
|
|
5460
|
+
const untrustedConfig_filtersConfig = untrustedConfig.filtersConfig;
|
|
5461
|
+
if (ArrayIsArray$1(untrustedConfig_filtersConfig)) {
|
|
5462
|
+
const untrustedConfig_filtersConfig_array = [];
|
|
5463
|
+
for (let i = 0, arrayLength = untrustedConfig_filtersConfig.length; i < arrayLength; i++) {
|
|
5464
|
+
const untrustedConfig_filtersConfig_item = untrustedConfig_filtersConfig[i];
|
|
5465
|
+
const referenceFilterConfigValidationError = validate$u(untrustedConfig_filtersConfig_item);
|
|
5466
|
+
if (referenceFilterConfigValidationError === null) {
|
|
5467
|
+
untrustedConfig_filtersConfig_array.push(untrustedConfig_filtersConfig_item);
|
|
5468
|
+
}
|
|
5469
|
+
}
|
|
5470
|
+
config.filtersConfig = untrustedConfig_filtersConfig_array;
|
|
5471
|
+
}
|
|
5701
5472
|
return config;
|
|
5702
5473
|
}
|
|
5703
5474
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -5746,7 +5517,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
5746
5517
|
});
|
|
5747
5518
|
}
|
|
5748
5519
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
5749
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5520
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, 'get', false);
|
|
5750
5521
|
}
|
|
5751
5522
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
5752
5523
|
const { luvio, config } = context;
|
|
@@ -5761,8 +5532,8 @@ function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
|
5761
5532
|
});
|
|
5762
5533
|
return cacheSnapshot;
|
|
5763
5534
|
}
|
|
5764
|
-
const
|
|
5765
|
-
const config = validateAdapterConfig$b(untrustedConfig,
|
|
5535
|
+
const postMatchingSelectorAdapterFactory = (luvio) => function education__postMatchingSelector(untrustedConfig, requestContext) {
|
|
5536
|
+
const config = validateAdapterConfig$b(untrustedConfig, postMatchingSelector_ConfigPropertyNames);
|
|
5766
5537
|
// Invalid or incomplete config
|
|
5767
5538
|
if (config === null) {
|
|
5768
5539
|
return null;
|
|
@@ -5781,7 +5552,7 @@ function validate$r(obj, path = 'IndividualApplicationTaskOutputRepresentation')
|
|
|
5781
5552
|
if (obj.result !== undefined) {
|
|
5782
5553
|
const obj_result = obj.result;
|
|
5783
5554
|
const path_result = path + '.result';
|
|
5784
|
-
const referencepath_resultValidationError = validate$
|
|
5555
|
+
const referencepath_resultValidationError = validate$13(obj_result, path_result);
|
|
5785
5556
|
if (referencepath_resultValidationError !== null) {
|
|
5786
5557
|
let message = 'Object doesn\'t match IndividualApplicationTask (at "' + path_result + '")\n';
|
|
5787
5558
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5888,14 +5659,14 @@ const getIndividualApplicationTask_ConfigPropertyMetadata = [
|
|
|
5888
5659
|
generateParamConfigMetadata('individualApplicationTaskId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5889
5660
|
];
|
|
5890
5661
|
const getIndividualApplicationTask_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getIndividualApplicationTask_ConfigPropertyMetadata);
|
|
5891
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
5662
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$p(getIndividualApplicationTask_ConfigPropertyMetadata);
|
|
5892
5663
|
function keyBuilder$g(luvio, config) {
|
|
5893
5664
|
const resourceParams = createResourceParams$a(config);
|
|
5894
5665
|
return keyBuilder$h(luvio, resourceParams);
|
|
5895
5666
|
}
|
|
5896
5667
|
function typeCheckConfig$a(untrustedConfig) {
|
|
5897
5668
|
const config = {};
|
|
5898
|
-
typeCheckConfig$
|
|
5669
|
+
typeCheckConfig$p(untrustedConfig, config, getIndividualApplicationTask_ConfigPropertyMetadata);
|
|
5899
5670
|
return config;
|
|
5900
5671
|
}
|
|
5901
5672
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -5944,7 +5715,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
5944
5715
|
});
|
|
5945
5716
|
}
|
|
5946
5717
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
5947
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5718
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
5948
5719
|
}
|
|
5949
5720
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
5950
5721
|
const { luvio, config } = context;
|
|
@@ -6207,14 +5978,14 @@ const getAcademicTerms_ConfigPropertyMetadata = [
|
|
|
6207
5978
|
generateParamConfigMetadata('academicLevel', true, 1 /* QueryParameter */, 0 /* String */),
|
|
6208
5979
|
];
|
|
6209
5980
|
const getAcademicTerms_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getAcademicTerms_ConfigPropertyMetadata);
|
|
6210
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
5981
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$p(getAcademicTerms_ConfigPropertyMetadata);
|
|
6211
5982
|
function keyBuilder$e(luvio, config) {
|
|
6212
5983
|
const resourceParams = createResourceParams$9(config);
|
|
6213
5984
|
return keyBuilder$f(luvio, resourceParams);
|
|
6214
5985
|
}
|
|
6215
5986
|
function typeCheckConfig$9(untrustedConfig) {
|
|
6216
5987
|
const config = {};
|
|
6217
|
-
typeCheckConfig$
|
|
5988
|
+
typeCheckConfig$p(untrustedConfig, config, getAcademicTerms_ConfigPropertyMetadata);
|
|
6218
5989
|
return config;
|
|
6219
5990
|
}
|
|
6220
5991
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -6263,7 +6034,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
6263
6034
|
});
|
|
6264
6035
|
}
|
|
6265
6036
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
6266
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6037
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
6267
6038
|
}
|
|
6268
6039
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
6269
6040
|
const { luvio, config } = context;
|
|
@@ -6441,7 +6212,7 @@ const createPreliminaryApplicationReferences_ConfigPropertyMetadata = [
|
|
|
6441
6212
|
generateParamConfigMetadata('preliminaryAppRefInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
6442
6213
|
];
|
|
6443
6214
|
const createPreliminaryApplicationReferences_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createPreliminaryApplicationReferences_ConfigPropertyMetadata);
|
|
6444
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
6215
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$p(createPreliminaryApplicationReferences_ConfigPropertyMetadata);
|
|
6445
6216
|
function typeCheckConfig$8(untrustedConfig) {
|
|
6446
6217
|
const config = {};
|
|
6447
6218
|
const untrustedConfig_preliminaryAppRefInput = untrustedConfig.preliminaryAppRefInput;
|
|
@@ -6597,7 +6368,7 @@ function validate$l(obj, path = 'GetNewApplicationPreliminaryDataResult') {
|
|
|
6597
6368
|
for (let i = 0; i < obj_applicants.length; i++) {
|
|
6598
6369
|
const obj_applicants_item = obj_applicants[i];
|
|
6599
6370
|
const path_applicants_item = path_applicants + '[' + i + ']';
|
|
6600
|
-
const referencepath_applicants_itemValidationError = validate$
|
|
6371
|
+
const referencepath_applicants_itemValidationError = validate$19(obj_applicants_item, path_applicants_item);
|
|
6601
6372
|
if (referencepath_applicants_itemValidationError !== null) {
|
|
6602
6373
|
let message = 'Object doesn\'t match Applicant (at "' + path_applicants_item + '")\n';
|
|
6603
6374
|
message += referencepath_applicants_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6610,7 +6381,7 @@ function validate$l(obj, path = 'GetNewApplicationPreliminaryDataResult') {
|
|
|
6610
6381
|
}
|
|
6611
6382
|
const select$o = function GetNewApplicationPreliminaryDataResultSelect() {
|
|
6612
6383
|
const { selections: ApplicationAcademicLevel__selections, opaque: ApplicationAcademicLevel__opaque, } = select$p();
|
|
6613
|
-
const { selections: Applicant__selections, opaque: Applicant__opaque, } = select
|
|
6384
|
+
const { selections: Applicant__selections, opaque: Applicant__opaque, } = select$Z();
|
|
6614
6385
|
return {
|
|
6615
6386
|
kind: 'Fragment',
|
|
6616
6387
|
version: VERSION$g,
|
|
@@ -6662,7 +6433,7 @@ function equals$g(existing, incoming) {
|
|
|
6662
6433
|
return false;
|
|
6663
6434
|
}
|
|
6664
6435
|
const equals_applicants_items = equalsArray(existing_applicants, incoming_applicants, (existing_applicants_item, incoming_applicants_item) => {
|
|
6665
|
-
if (!(equals$
|
|
6436
|
+
if (!(equals$B(existing_applicants_item, incoming_applicants_item))) {
|
|
6666
6437
|
return false;
|
|
6667
6438
|
}
|
|
6668
6439
|
});
|
|
@@ -6801,14 +6572,14 @@ const getNewApplicationPreliminaryData_ConfigPropertyMetadata = [
|
|
|
6801
6572
|
generateParamConfigMetadata('context', true, 1 /* QueryParameter */, 0 /* String */),
|
|
6802
6573
|
];
|
|
6803
6574
|
const getNewApplicationPreliminaryData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getNewApplicationPreliminaryData_ConfigPropertyMetadata);
|
|
6804
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
6575
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$p(getNewApplicationPreliminaryData_ConfigPropertyMetadata);
|
|
6805
6576
|
function keyBuilder$b(luvio, config) {
|
|
6806
6577
|
const resourceParams = createResourceParams$7(config);
|
|
6807
6578
|
return keyBuilder$c(luvio, resourceParams);
|
|
6808
6579
|
}
|
|
6809
6580
|
function typeCheckConfig$7(untrustedConfig) {
|
|
6810
6581
|
const config = {};
|
|
6811
|
-
typeCheckConfig$
|
|
6582
|
+
typeCheckConfig$p(untrustedConfig, config, getNewApplicationPreliminaryData_ConfigPropertyMetadata);
|
|
6812
6583
|
return config;
|
|
6813
6584
|
}
|
|
6814
6585
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -6857,7 +6628,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
6857
6628
|
});
|
|
6858
6629
|
}
|
|
6859
6630
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
6860
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6631
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
6861
6632
|
}
|
|
6862
6633
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
6863
6634
|
const { luvio, config } = context;
|
|
@@ -7121,14 +6892,14 @@ const getProgramTermApplicationTimelines_ConfigPropertyMetadata = [
|
|
|
7121
6892
|
generateParamConfigMetadata('academicLevel', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7122
6893
|
];
|
|
7123
6894
|
const getProgramTermApplicationTimelines_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getProgramTermApplicationTimelines_ConfigPropertyMetadata);
|
|
7124
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
6895
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$p(getProgramTermApplicationTimelines_ConfigPropertyMetadata);
|
|
7125
6896
|
function keyBuilder$9(luvio, config) {
|
|
7126
6897
|
const resourceParams = createResourceParams$6(config);
|
|
7127
6898
|
return keyBuilder$a(luvio, resourceParams);
|
|
7128
6899
|
}
|
|
7129
6900
|
function typeCheckConfig$6(untrustedConfig) {
|
|
7130
6901
|
const config = {};
|
|
7131
|
-
typeCheckConfig$
|
|
6902
|
+
typeCheckConfig$p(untrustedConfig, config, getProgramTermApplicationTimelines_ConfigPropertyMetadata);
|
|
7132
6903
|
return config;
|
|
7133
6904
|
}
|
|
7134
6905
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -7177,7 +6948,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
7177
6948
|
});
|
|
7178
6949
|
}
|
|
7179
6950
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
7180
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6951
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
7181
6952
|
}
|
|
7182
6953
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
7183
6954
|
const { luvio, config } = context;
|
|
@@ -7594,14 +7365,14 @@ const getPersonPublicProfile_ConfigPropertyMetadata = [
|
|
|
7594
7365
|
generateParamConfigMetadata('usageType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7595
7366
|
];
|
|
7596
7367
|
const getPersonPublicProfile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getPersonPublicProfile_ConfigPropertyMetadata);
|
|
7597
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
7368
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$p(getPersonPublicProfile_ConfigPropertyMetadata);
|
|
7598
7369
|
function keyBuilder$7(luvio, config) {
|
|
7599
7370
|
const resourceParams = createResourceParams$5(config);
|
|
7600
7371
|
return keyBuilder$8(luvio, resourceParams);
|
|
7601
7372
|
}
|
|
7602
7373
|
function typeCheckConfig$5(untrustedConfig) {
|
|
7603
7374
|
const config = {};
|
|
7604
|
-
typeCheckConfig$
|
|
7375
|
+
typeCheckConfig$p(untrustedConfig, config, getPersonPublicProfile_ConfigPropertyMetadata);
|
|
7605
7376
|
return config;
|
|
7606
7377
|
}
|
|
7607
7378
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -7650,7 +7421,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
7650
7421
|
});
|
|
7651
7422
|
}
|
|
7652
7423
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
7653
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7424
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
7654
7425
|
}
|
|
7655
7426
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
7656
7427
|
const { luvio, config } = context;
|
|
@@ -8119,14 +7890,14 @@ const getSuccessTeam_ConfigPropertyMetadata = [
|
|
|
8119
7890
|
generateParamConfigMetadata('teamTypes', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
8120
7891
|
];
|
|
8121
7892
|
const getSuccessTeam_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSuccessTeam_ConfigPropertyMetadata);
|
|
8122
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
7893
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$p(getSuccessTeam_ConfigPropertyMetadata);
|
|
8123
7894
|
function keyBuilder$5(luvio, config) {
|
|
8124
7895
|
const resourceParams = createResourceParams$4(config);
|
|
8125
7896
|
return keyBuilder$6(luvio, resourceParams);
|
|
8126
7897
|
}
|
|
8127
7898
|
function typeCheckConfig$4(untrustedConfig) {
|
|
8128
7899
|
const config = {};
|
|
8129
|
-
typeCheckConfig$
|
|
7900
|
+
typeCheckConfig$p(untrustedConfig, config, getSuccessTeam_ConfigPropertyMetadata);
|
|
8130
7901
|
return config;
|
|
8131
7902
|
}
|
|
8132
7903
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -8175,7 +7946,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
8175
7946
|
});
|
|
8176
7947
|
}
|
|
8177
7948
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
8178
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7949
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
8179
7950
|
}
|
|
8180
7951
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
8181
7952
|
const { luvio, config } = context;
|
|
@@ -8374,10 +8145,10 @@ const createTask_ConfigPropertyMetadata = [
|
|
|
8374
8145
|
generateParamConfigMetadata('subject', false, 2 /* Body */, 0 /* String */),
|
|
8375
8146
|
];
|
|
8376
8147
|
const createTask_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createTask_ConfigPropertyMetadata);
|
|
8377
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
8148
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$p(createTask_ConfigPropertyMetadata);
|
|
8378
8149
|
function typeCheckConfig$3(untrustedConfig) {
|
|
8379
8150
|
const config = {};
|
|
8380
|
-
typeCheckConfig$
|
|
8151
|
+
typeCheckConfig$p(untrustedConfig, config, createTask_ConfigPropertyMetadata);
|
|
8381
8152
|
return config;
|
|
8382
8153
|
}
|
|
8383
8154
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -8734,14 +8505,14 @@ const getPicklistValues_ConfigPropertyMetadata = [
|
|
|
8734
8505
|
generateParamConfigMetadata('fieldNames', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
8735
8506
|
];
|
|
8736
8507
|
const getPicklistValues_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getPicklistValues_ConfigPropertyMetadata);
|
|
8737
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
8508
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$p(getPicklistValues_ConfigPropertyMetadata);
|
|
8738
8509
|
function keyBuilder$2(luvio, config) {
|
|
8739
8510
|
const resourceParams = createResourceParams$2(config);
|
|
8740
8511
|
return keyBuilder$3(luvio, resourceParams);
|
|
8741
8512
|
}
|
|
8742
8513
|
function typeCheckConfig$2(untrustedConfig) {
|
|
8743
8514
|
const config = {};
|
|
8744
|
-
typeCheckConfig$
|
|
8515
|
+
typeCheckConfig$p(untrustedConfig, config, getPicklistValues_ConfigPropertyMetadata);
|
|
8745
8516
|
return config;
|
|
8746
8517
|
}
|
|
8747
8518
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -8790,7 +8561,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
8790
8561
|
});
|
|
8791
8562
|
}
|
|
8792
8563
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
8793
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8564
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
8794
8565
|
}
|
|
8795
8566
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
8796
8567
|
const { luvio, config } = context;
|
|
@@ -8864,10 +8635,10 @@ const updateTaskStatus_ConfigPropertyMetadata = [
|
|
|
8864
8635
|
generateParamConfigMetadata('subject', false, 2 /* Body */, 0 /* String */),
|
|
8865
8636
|
];
|
|
8866
8637
|
const updateTaskStatus_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateTaskStatus_ConfigPropertyMetadata);
|
|
8867
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
8638
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$p(updateTaskStatus_ConfigPropertyMetadata);
|
|
8868
8639
|
function typeCheckConfig$1(untrustedConfig) {
|
|
8869
8640
|
const config = {};
|
|
8870
|
-
typeCheckConfig$
|
|
8641
|
+
typeCheckConfig$p(untrustedConfig, config, updateTaskStatus_ConfigPropertyMetadata);
|
|
8871
8642
|
return config;
|
|
8872
8643
|
}
|
|
8873
8644
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -10112,14 +9883,14 @@ const getAptsTasksPlans_ConfigPropertyMetadata = [
|
|
|
10112
9883
|
generateParamConfigMetadata('objectType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10113
9884
|
];
|
|
10114
9885
|
const getAptsTasksPlans_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getAptsTasksPlans_ConfigPropertyMetadata);
|
|
10115
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
9886
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$p(getAptsTasksPlans_ConfigPropertyMetadata);
|
|
10116
9887
|
function keyBuilder(luvio, config) {
|
|
10117
9888
|
const resourceParams = createResourceParams(config);
|
|
10118
9889
|
return keyBuilder$1(luvio, resourceParams);
|
|
10119
9890
|
}
|
|
10120
9891
|
function typeCheckConfig(untrustedConfig) {
|
|
10121
9892
|
const config = {};
|
|
10122
|
-
typeCheckConfig$
|
|
9893
|
+
typeCheckConfig$p(untrustedConfig, config, getAptsTasksPlans_ConfigPropertyMetadata);
|
|
10123
9894
|
return config;
|
|
10124
9895
|
}
|
|
10125
9896
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -10168,7 +9939,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
10168
9939
|
});
|
|
10169
9940
|
}
|
|
10170
9941
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
10171
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9942
|
+
return buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
10172
9943
|
}
|
|
10173
9944
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
10174
9945
|
const { luvio, config } = context;
|
|
@@ -10193,4 +9964,4 @@ const getAptsTasksPlansAdapterFactory = (luvio) => function education__getAptsTa
|
|
|
10193
9964
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
10194
9965
|
};
|
|
10195
9966
|
|
|
10196
|
-
export { createCarePlansAdapterFactory, createPreliminaryApplicationReferencesAdapterFactory, createTaskAdapterFactory, getAcademicTermsAdapterFactory, getApplicationDetailsAdapterFactory, getApplicationsAdapterFactory, getAptsTasksPlansAdapterFactory, getAvailableTimeSlotsAdapterFactory, getAvailableTopicsAdapterFactory, getIndividualApplicationTaskAdapterFactory, getLearnerProgressAdapterFactory, getLearningAdapterFactory, getNewApplicationPreliminaryDataAdapterFactory, getPersonPublicProfileAdapterFactory, getPicklistValuesAdapterFactory, getPreviewLearningProgramPlanAdapterFactory, getProgramTermApplicationTimelinesAdapterFactory,
|
|
9967
|
+
export { createCarePlansAdapterFactory, createPreliminaryApplicationReferencesAdapterFactory, createTaskAdapterFactory, getAcademicTermsAdapterFactory, getApplicationDetailsAdapterFactory, getApplicationsAdapterFactory, getAptsTasksPlansAdapterFactory, getAvailableTimeSlotsAdapterFactory, getAvailableTopicsAdapterFactory, getIndividualApplicationTaskAdapterFactory, getLearnerProgressAdapterFactory, getLearningAdapterFactory, getNewApplicationPreliminaryDataAdapterFactory, getPersonPublicProfileAdapterFactory, getPicklistValuesAdapterFactory, getPreviewLearningProgramPlanAdapterFactory, getProgramTermApplicationTimelinesAdapterFactory, getSuccessTeamAdapterFactory, postBenefitAssignmentAdapterFactory, postCreateLearningAdapterFactory, postMatchingSelectorAdapterFactory, postPublishLearningProgramPlanAdapterFactory, postValidateLearningFoundationListAdapterFactory, updateLearningAdapterFactory, updateTaskStatusAdapterFactory };
|