@salesforce/lds-adapters-industries-education 1.294.0 → 1.296.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 +974 -745
- package/dist/es/es2018/types/src/generated/adapters/getPromptTemplates.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectEducationPromptBuilderPromptTemplates.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplate.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/PromptTemplateOutputRepresentation.d.ts +30 -0
- package/package.json +4 -4
- package/sfdc/index.js +1456 -1219
- package/src/raml/api.raml +46 -0
- package/src/raml/luvio.raml +8 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$g, StoreKeyMap, createResourceParams as createResourceParams$o, typeCheckConfig as typeCheckConfig$o } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -112,8 +112,8 @@ function createLink(ref) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
const VERSION$
|
|
116
|
-
function validate$
|
|
115
|
+
const VERSION$K = "25644bb9c14397ee2eee2a59a6de4b8c";
|
|
116
|
+
function validate$1c(obj, path = 'Applicant') {
|
|
117
117
|
const v_error = (() => {
|
|
118
118
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
119
119
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -142,10 +142,10 @@ function validate$1a(obj, path = 'Applicant') {
|
|
|
142
142
|
})();
|
|
143
143
|
return v_error === undefined ? null : v_error;
|
|
144
144
|
}
|
|
145
|
-
const select$
|
|
145
|
+
const select$16 = function ApplicantSelect() {
|
|
146
146
|
return {
|
|
147
147
|
kind: 'Fragment',
|
|
148
|
-
version: VERSION$
|
|
148
|
+
version: VERSION$K,
|
|
149
149
|
private: [],
|
|
150
150
|
selections: [
|
|
151
151
|
{
|
|
@@ -166,7 +166,7 @@ const select$14 = function ApplicantSelect() {
|
|
|
166
166
|
]
|
|
167
167
|
};
|
|
168
168
|
};
|
|
169
|
-
function equals$
|
|
169
|
+
function equals$I(existing, incoming) {
|
|
170
170
|
const existing_contactId = existing.contactId;
|
|
171
171
|
const incoming_contactId = incoming.contactId;
|
|
172
172
|
// if at least one of these optionals is defined
|
|
@@ -209,7 +209,7 @@ function equals$H(existing, incoming) {
|
|
|
209
209
|
return true;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
function validate$
|
|
212
|
+
function validate$1b(obj, path = 'Submitter') {
|
|
213
213
|
const v_error = (() => {
|
|
214
214
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
215
215
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -232,7 +232,7 @@ function validate$19(obj, path = 'Submitter') {
|
|
|
232
232
|
return v_error === undefined ? null : v_error;
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
function validate$
|
|
235
|
+
function validate$1a(obj, path = 'Application') {
|
|
236
236
|
const v_error = (() => {
|
|
237
237
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
238
238
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -247,7 +247,7 @@ function validate$18(obj, path = 'Application') {
|
|
|
247
247
|
if (obj.applicant !== undefined) {
|
|
248
248
|
const obj_applicant = obj.applicant;
|
|
249
249
|
const path_applicant = path + '.applicant';
|
|
250
|
-
const referencepath_applicantValidationError = validate$
|
|
250
|
+
const referencepath_applicantValidationError = validate$1c(obj_applicant, path_applicant);
|
|
251
251
|
if (referencepath_applicantValidationError !== null) {
|
|
252
252
|
let message = 'Object doesn\'t match Applicant (at "' + path_applicant + '")\n';
|
|
253
253
|
message += referencepath_applicantValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -306,7 +306,7 @@ function validate$18(obj, path = 'Application') {
|
|
|
306
306
|
if (obj.submitter !== undefined) {
|
|
307
307
|
const obj_submitter = obj.submitter;
|
|
308
308
|
const path_submitter = path + '.submitter';
|
|
309
|
-
const referencepath_submitterValidationError = validate$
|
|
309
|
+
const referencepath_submitterValidationError = validate$1b(obj_submitter, path_submitter);
|
|
310
310
|
if (referencepath_submitterValidationError !== null) {
|
|
311
311
|
let message = 'Object doesn\'t match Submitter (at "' + path_submitter + '")\n';
|
|
312
312
|
message += referencepath_submitterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -331,7 +331,7 @@ function validate$18(obj, path = 'Application') {
|
|
|
331
331
|
return v_error === undefined ? null : v_error;
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
-
function validate$
|
|
334
|
+
function validate$19(obj, path = 'GetApplicationsResult') {
|
|
335
335
|
const v_error = (() => {
|
|
336
336
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
337
337
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -345,7 +345,7 @@ function validate$17(obj, path = 'GetApplicationsResult') {
|
|
|
345
345
|
for (let i = 0; i < obj_applications.length; i++) {
|
|
346
346
|
const obj_applications_item = obj_applications[i];
|
|
347
347
|
const path_applications_item = path_applications + '[' + i + ']';
|
|
348
|
-
const referencepath_applications_itemValidationError = validate$
|
|
348
|
+
const referencepath_applications_itemValidationError = validate$1a(obj_applications_item, path_applications_item);
|
|
349
349
|
if (referencepath_applications_itemValidationError !== null) {
|
|
350
350
|
let message = 'Object doesn\'t match Application (at "' + path_applications_item + '")\n';
|
|
351
351
|
message += referencepath_applications_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -357,9 +357,9 @@ function validate$17(obj, path = 'GetApplicationsResult') {
|
|
|
357
357
|
return v_error === undefined ? null : v_error;
|
|
358
358
|
}
|
|
359
359
|
|
|
360
|
-
const TTL$
|
|
361
|
-
const VERSION$
|
|
362
|
-
function validate$
|
|
360
|
+
const TTL$8 = 100;
|
|
361
|
+
const VERSION$J = "1947ca622740f63d1812cfa7d4dd5989";
|
|
362
|
+
function validate$18(obj, path = 'ApplicationsOutputRepresentation') {
|
|
363
363
|
const v_error = (() => {
|
|
364
364
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
365
365
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -367,7 +367,7 @@ function validate$16(obj, path = 'ApplicationsOutputRepresentation') {
|
|
|
367
367
|
if (obj.result !== undefined) {
|
|
368
368
|
const obj_result = obj.result;
|
|
369
369
|
const path_result = path + '.result';
|
|
370
|
-
const referencepath_resultValidationError = validate$
|
|
370
|
+
const referencepath_resultValidationError = validate$19(obj_result, path_result);
|
|
371
371
|
if (referencepath_resultValidationError !== null) {
|
|
372
372
|
let message = 'Object doesn\'t match GetApplicationsResult (at "' + path_result + '")\n';
|
|
373
373
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -377,62 +377,62 @@ function validate$16(obj, path = 'ApplicationsOutputRepresentation') {
|
|
|
377
377
|
})();
|
|
378
378
|
return v_error === undefined ? null : v_error;
|
|
379
379
|
}
|
|
380
|
-
const RepresentationType$
|
|
381
|
-
function normalize$
|
|
380
|
+
const RepresentationType$l = 'ApplicationsOutputRepresentation';
|
|
381
|
+
function normalize$l(input, existing, path, luvio, store, timestamp) {
|
|
382
382
|
return input;
|
|
383
383
|
}
|
|
384
|
-
const select$
|
|
384
|
+
const select$15 = function ApplicationsOutputRepresentationSelect() {
|
|
385
385
|
return {
|
|
386
386
|
kind: 'Fragment',
|
|
387
|
-
version: VERSION$
|
|
387
|
+
version: VERSION$J,
|
|
388
388
|
private: [],
|
|
389
389
|
opaque: true
|
|
390
390
|
};
|
|
391
391
|
};
|
|
392
|
-
function equals$
|
|
392
|
+
function equals$H(existing, incoming) {
|
|
393
393
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
394
394
|
return false;
|
|
395
395
|
}
|
|
396
396
|
return true;
|
|
397
397
|
}
|
|
398
|
-
const ingest$
|
|
398
|
+
const ingest$l = function ApplicationsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
399
399
|
if (process.env.NODE_ENV !== 'production') {
|
|
400
|
-
const validateError = validate$
|
|
400
|
+
const validateError = validate$18(input);
|
|
401
401
|
if (validateError !== null) {
|
|
402
402
|
throw validateError;
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
const key = path.fullPath;
|
|
406
|
-
const ttlToUse = TTL$
|
|
407
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
406
|
+
const ttlToUse = TTL$8;
|
|
407
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$l, "education", VERSION$J, RepresentationType$l, equals$H);
|
|
408
408
|
return createLink(key);
|
|
409
409
|
};
|
|
410
|
-
function getTypeCacheKeys$
|
|
410
|
+
function getTypeCacheKeys$l(rootKeySet, luvio, input, fullPathFactory) {
|
|
411
411
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
412
412
|
const rootKey = fullPathFactory();
|
|
413
413
|
rootKeySet.set(rootKey, {
|
|
414
414
|
namespace: keyPrefix,
|
|
415
|
-
representationName: RepresentationType$
|
|
415
|
+
representationName: RepresentationType$l,
|
|
416
416
|
mergeable: false
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
-
function select$
|
|
421
|
-
return select$
|
|
420
|
+
function select$14(luvio, params) {
|
|
421
|
+
return select$15();
|
|
422
422
|
}
|
|
423
|
-
function keyBuilder$
|
|
423
|
+
function keyBuilder$B(luvio, params) {
|
|
424
424
|
return keyPrefix + '::ApplicationsOutputRepresentation:(' + ')';
|
|
425
425
|
}
|
|
426
|
-
function getResponseCacheKeys$
|
|
427
|
-
getTypeCacheKeys$
|
|
426
|
+
function getResponseCacheKeys$n(storeKeyMap, luvio, resourceParams, response) {
|
|
427
|
+
getTypeCacheKeys$l(storeKeyMap, luvio, response, () => keyBuilder$B());
|
|
428
428
|
}
|
|
429
|
-
function ingestSuccess$
|
|
429
|
+
function ingestSuccess$n(luvio, resourceParams, response, snapshotRefresh) {
|
|
430
430
|
const { body } = response;
|
|
431
|
-
const key = keyBuilder$
|
|
432
|
-
luvio.storeIngest(key, ingest$
|
|
431
|
+
const key = keyBuilder$B();
|
|
432
|
+
luvio.storeIngest(key, ingest$l, body);
|
|
433
433
|
const snapshot = luvio.storeLookup({
|
|
434
434
|
recordId: key,
|
|
435
|
-
node: select$
|
|
435
|
+
node: select$14(),
|
|
436
436
|
variables: {},
|
|
437
437
|
}, snapshotRefresh);
|
|
438
438
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -443,19 +443,19 @@ function ingestSuccess$m(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
443
443
|
deepFreeze(snapshot.data);
|
|
444
444
|
return snapshot;
|
|
445
445
|
}
|
|
446
|
-
function ingestError$
|
|
447
|
-
const key = keyBuilder$
|
|
446
|
+
function ingestError$f(luvio, params, error, snapshotRefresh) {
|
|
447
|
+
const key = keyBuilder$B();
|
|
448
448
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
449
449
|
const storeMetadataParams = {
|
|
450
|
-
ttl: TTL$
|
|
450
|
+
ttl: TTL$8,
|
|
451
451
|
namespace: keyPrefix,
|
|
452
|
-
version: VERSION$
|
|
453
|
-
representationName: RepresentationType$
|
|
452
|
+
version: VERSION$J,
|
|
453
|
+
representationName: RepresentationType$l
|
|
454
454
|
};
|
|
455
455
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
456
456
|
return errorSnapshot;
|
|
457
457
|
}
|
|
458
|
-
function createResourceRequest$
|
|
458
|
+
function createResourceRequest$n(config) {
|
|
459
459
|
const headers = {};
|
|
460
460
|
return {
|
|
461
461
|
baseUri: '/services/data/v62.0',
|
|
@@ -469,90 +469,90 @@ function createResourceRequest$m(config) {
|
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
471
|
|
|
472
|
-
const adapterName$
|
|
472
|
+
const adapterName$n = 'getApplications';
|
|
473
473
|
const getApplications_ConfigPropertyMetadata = [];
|
|
474
|
-
const getApplications_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
475
|
-
const createResourceParams$
|
|
476
|
-
function keyBuilder$
|
|
477
|
-
createResourceParams$
|
|
478
|
-
return keyBuilder$
|
|
474
|
+
const getApplications_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, getApplications_ConfigPropertyMetadata);
|
|
475
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$o(getApplications_ConfigPropertyMetadata);
|
|
476
|
+
function keyBuilder$A(luvio, config) {
|
|
477
|
+
createResourceParams$n(config);
|
|
478
|
+
return keyBuilder$B();
|
|
479
479
|
}
|
|
480
|
-
function typeCheckConfig$
|
|
480
|
+
function typeCheckConfig$n(untrustedConfig) {
|
|
481
481
|
const config = {};
|
|
482
482
|
return config;
|
|
483
483
|
}
|
|
484
|
-
function validateAdapterConfig$
|
|
484
|
+
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
485
485
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
486
486
|
return null;
|
|
487
487
|
}
|
|
488
488
|
if (process.env.NODE_ENV !== 'production') {
|
|
489
489
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
490
490
|
}
|
|
491
|
-
const config = typeCheckConfig$
|
|
491
|
+
const config = typeCheckConfig$n();
|
|
492
492
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
493
493
|
return null;
|
|
494
494
|
}
|
|
495
495
|
return config;
|
|
496
496
|
}
|
|
497
|
-
function adapterFragment$
|
|
498
|
-
createResourceParams$
|
|
499
|
-
return select$
|
|
497
|
+
function adapterFragment$f(luvio, config) {
|
|
498
|
+
createResourceParams$n(config);
|
|
499
|
+
return select$14();
|
|
500
500
|
}
|
|
501
|
-
function onFetchResponseSuccess$
|
|
502
|
-
const snapshot = ingestSuccess$
|
|
501
|
+
function onFetchResponseSuccess$f(luvio, config, resourceParams, response) {
|
|
502
|
+
const snapshot = ingestSuccess$n(luvio, resourceParams, response, {
|
|
503
503
|
config,
|
|
504
|
-
resolve: () => buildNetworkSnapshot$
|
|
504
|
+
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
|
|
505
505
|
});
|
|
506
506
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
507
507
|
}
|
|
508
|
-
function onFetchResponseError$
|
|
509
|
-
const snapshot = ingestError$
|
|
508
|
+
function onFetchResponseError$f(luvio, config, resourceParams, response) {
|
|
509
|
+
const snapshot = ingestError$f(luvio, resourceParams, response, {
|
|
510
510
|
config,
|
|
511
|
-
resolve: () => buildNetworkSnapshot$
|
|
511
|
+
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
|
|
512
512
|
});
|
|
513
513
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
514
514
|
}
|
|
515
|
-
function buildNetworkSnapshot$
|
|
516
|
-
const resourceParams = createResourceParams$
|
|
517
|
-
const request = createResourceRequest$
|
|
515
|
+
function buildNetworkSnapshot$n(luvio, config, options) {
|
|
516
|
+
const resourceParams = createResourceParams$n(config);
|
|
517
|
+
const request = createResourceRequest$n();
|
|
518
518
|
return luvio.dispatchResourceRequest(request, options)
|
|
519
519
|
.then((response) => {
|
|
520
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
520
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$f(luvio, config, resourceParams, response), () => {
|
|
521
521
|
const cache = new StoreKeyMap();
|
|
522
|
-
getResponseCacheKeys$
|
|
522
|
+
getResponseCacheKeys$n(cache, luvio, resourceParams, response.body);
|
|
523
523
|
return cache;
|
|
524
524
|
});
|
|
525
525
|
}, (response) => {
|
|
526
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
526
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$f(luvio, config, resourceParams, response));
|
|
527
527
|
});
|
|
528
528
|
}
|
|
529
|
-
function buildNetworkSnapshotCachePolicy$
|
|
530
|
-
return buildNetworkSnapshotCachePolicy$
|
|
529
|
+
function buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext) {
|
|
530
|
+
return buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext, buildNetworkSnapshot$n, undefined, false);
|
|
531
531
|
}
|
|
532
|
-
function buildCachedSnapshotCachePolicy$
|
|
532
|
+
function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
|
|
533
533
|
const { luvio, config } = context;
|
|
534
534
|
const selector = {
|
|
535
|
-
recordId: keyBuilder$
|
|
536
|
-
node: adapterFragment$
|
|
535
|
+
recordId: keyBuilder$A(luvio, config),
|
|
536
|
+
node: adapterFragment$f(luvio, config),
|
|
537
537
|
variables: {},
|
|
538
538
|
};
|
|
539
539
|
const cacheSnapshot = storeLookup(selector, {
|
|
540
540
|
config,
|
|
541
|
-
resolve: () => buildNetworkSnapshot$
|
|
541
|
+
resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
|
|
542
542
|
});
|
|
543
543
|
return cacheSnapshot;
|
|
544
544
|
}
|
|
545
545
|
const getApplicationsAdapterFactory = (luvio) => function education__getApplications(untrustedConfig, requestContext) {
|
|
546
|
-
const config = validateAdapterConfig$
|
|
546
|
+
const config = validateAdapterConfig$n(untrustedConfig, getApplications_ConfigPropertyNames);
|
|
547
547
|
// Invalid or incomplete config
|
|
548
548
|
if (config === null) {
|
|
549
549
|
return null;
|
|
550
550
|
}
|
|
551
551
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
552
|
-
buildCachedSnapshotCachePolicy$
|
|
552
|
+
buildCachedSnapshotCachePolicy$f, buildNetworkSnapshotCachePolicy$f);
|
|
553
553
|
};
|
|
554
554
|
|
|
555
|
-
function validate$
|
|
555
|
+
function validate$17(obj, path = 'ApplicationRenderMethod') {
|
|
556
556
|
const v_error = (() => {
|
|
557
557
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
558
558
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -589,7 +589,7 @@ function validate$15(obj, path = 'ApplicationRenderMethod') {
|
|
|
589
589
|
return v_error === undefined ? null : v_error;
|
|
590
590
|
}
|
|
591
591
|
|
|
592
|
-
function validate$
|
|
592
|
+
function validate$16(obj, path = 'IndividualApplicationTask') {
|
|
593
593
|
const v_error = (() => {
|
|
594
594
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
595
595
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -603,7 +603,7 @@ function validate$14(obj, path = 'IndividualApplicationTask') {
|
|
|
603
603
|
for (let i = 0; i < obj_applicationRenderMethods.length; i++) {
|
|
604
604
|
const obj_applicationRenderMethods_item = obj_applicationRenderMethods[i];
|
|
605
605
|
const path_applicationRenderMethods_item = path_applicationRenderMethods + '[' + i + ']';
|
|
606
|
-
const referencepath_applicationRenderMethods_itemValidationError = validate$
|
|
606
|
+
const referencepath_applicationRenderMethods_itemValidationError = validate$17(obj_applicationRenderMethods_item, path_applicationRenderMethods_item);
|
|
607
607
|
if (referencepath_applicationRenderMethods_itemValidationError !== null) {
|
|
608
608
|
let message = 'Object doesn\'t match ApplicationRenderMethod (at "' + path_applicationRenderMethods_item + '")\n';
|
|
609
609
|
message += referencepath_applicationRenderMethods_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -685,7 +685,7 @@ function validate$14(obj, path = 'IndividualApplicationTask') {
|
|
|
685
685
|
return v_error === undefined ? null : v_error;
|
|
686
686
|
}
|
|
687
687
|
|
|
688
|
-
function validate$
|
|
688
|
+
function validate$15(obj, path = 'GetApplicationDetailsResult') {
|
|
689
689
|
const v_error = (() => {
|
|
690
690
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
691
691
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -700,7 +700,7 @@ function validate$13(obj, path = 'GetApplicationDetailsResult') {
|
|
|
700
700
|
if (obj.applicant !== undefined) {
|
|
701
701
|
const obj_applicant = obj.applicant;
|
|
702
702
|
const path_applicant = path + '.applicant';
|
|
703
|
-
const referencepath_applicantValidationError = validate$
|
|
703
|
+
const referencepath_applicantValidationError = validate$1c(obj_applicant, path_applicant);
|
|
704
704
|
if (referencepath_applicantValidationError !== null) {
|
|
705
705
|
let message = 'Object doesn\'t match Applicant (at "' + path_applicant + '")\n';
|
|
706
706
|
message += referencepath_applicantValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -744,7 +744,7 @@ function validate$13(obj, path = 'GetApplicationDetailsResult') {
|
|
|
744
744
|
for (let i = 0; i < obj_individualApplicationTasks.length; i++) {
|
|
745
745
|
const obj_individualApplicationTasks_item = obj_individualApplicationTasks[i];
|
|
746
746
|
const path_individualApplicationTasks_item = path_individualApplicationTasks + '[' + i + ']';
|
|
747
|
-
const referencepath_individualApplicationTasks_itemValidationError = validate$
|
|
747
|
+
const referencepath_individualApplicationTasks_itemValidationError = validate$16(obj_individualApplicationTasks_item, path_individualApplicationTasks_item);
|
|
748
748
|
if (referencepath_individualApplicationTasks_itemValidationError !== null) {
|
|
749
749
|
let message = 'Object doesn\'t match IndividualApplicationTask (at "' + path_individualApplicationTasks_item + '")\n';
|
|
750
750
|
message += referencepath_individualApplicationTasks_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -776,7 +776,7 @@ function validate$13(obj, path = 'GetApplicationDetailsResult') {
|
|
|
776
776
|
if (obj.submitter !== undefined) {
|
|
777
777
|
const obj_submitter = obj.submitter;
|
|
778
778
|
const path_submitter = path + '.submitter';
|
|
779
|
-
const referencepath_submitterValidationError = validate$
|
|
779
|
+
const referencepath_submitterValidationError = validate$1b(obj_submitter, path_submitter);
|
|
780
780
|
if (referencepath_submitterValidationError !== null) {
|
|
781
781
|
let message = 'Object doesn\'t match Submitter (at "' + path_submitter + '")\n';
|
|
782
782
|
message += referencepath_submitterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -801,9 +801,9 @@ function validate$13(obj, path = 'GetApplicationDetailsResult') {
|
|
|
801
801
|
return v_error === undefined ? null : v_error;
|
|
802
802
|
}
|
|
803
803
|
|
|
804
|
-
const TTL$
|
|
805
|
-
const VERSION$
|
|
806
|
-
function validate$
|
|
804
|
+
const TTL$7 = 100;
|
|
805
|
+
const VERSION$I = "20a50ee9f09ba0dc956412cc14d5b6d5";
|
|
806
|
+
function validate$14(obj, path = 'ApplicationDetailsOutputRepresentation') {
|
|
807
807
|
const v_error = (() => {
|
|
808
808
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
809
809
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -811,7 +811,7 @@ function validate$12(obj, path = 'ApplicationDetailsOutputRepresentation') {
|
|
|
811
811
|
if (obj.result !== undefined) {
|
|
812
812
|
const obj_result = obj.result;
|
|
813
813
|
const path_result = path + '.result';
|
|
814
|
-
const referencepath_resultValidationError = validate$
|
|
814
|
+
const referencepath_resultValidationError = validate$15(obj_result, path_result);
|
|
815
815
|
if (referencepath_resultValidationError !== null) {
|
|
816
816
|
let message = 'Object doesn\'t match GetApplicationDetailsResult (at "' + path_result + '")\n';
|
|
817
817
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -821,62 +821,62 @@ function validate$12(obj, path = 'ApplicationDetailsOutputRepresentation') {
|
|
|
821
821
|
})();
|
|
822
822
|
return v_error === undefined ? null : v_error;
|
|
823
823
|
}
|
|
824
|
-
const RepresentationType$
|
|
825
|
-
function normalize$
|
|
824
|
+
const RepresentationType$k = 'ApplicationDetailsOutputRepresentation';
|
|
825
|
+
function normalize$k(input, existing, path, luvio, store, timestamp) {
|
|
826
826
|
return input;
|
|
827
827
|
}
|
|
828
|
-
const select$
|
|
828
|
+
const select$13 = function ApplicationDetailsOutputRepresentationSelect() {
|
|
829
829
|
return {
|
|
830
830
|
kind: 'Fragment',
|
|
831
|
-
version: VERSION$
|
|
831
|
+
version: VERSION$I,
|
|
832
832
|
private: [],
|
|
833
833
|
opaque: true
|
|
834
834
|
};
|
|
835
835
|
};
|
|
836
|
-
function equals$
|
|
836
|
+
function equals$G(existing, incoming) {
|
|
837
837
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
838
838
|
return false;
|
|
839
839
|
}
|
|
840
840
|
return true;
|
|
841
841
|
}
|
|
842
|
-
const ingest$
|
|
842
|
+
const ingest$k = function ApplicationDetailsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
843
843
|
if (process.env.NODE_ENV !== 'production') {
|
|
844
|
-
const validateError = validate$
|
|
844
|
+
const validateError = validate$14(input);
|
|
845
845
|
if (validateError !== null) {
|
|
846
846
|
throw validateError;
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
849
|
const key = path.fullPath;
|
|
850
|
-
const ttlToUse = TTL$
|
|
851
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
850
|
+
const ttlToUse = TTL$7;
|
|
851
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$k, "education", VERSION$I, RepresentationType$k, equals$G);
|
|
852
852
|
return createLink(key);
|
|
853
853
|
};
|
|
854
|
-
function getTypeCacheKeys$
|
|
854
|
+
function getTypeCacheKeys$k(rootKeySet, luvio, input, fullPathFactory) {
|
|
855
855
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
856
856
|
const rootKey = fullPathFactory();
|
|
857
857
|
rootKeySet.set(rootKey, {
|
|
858
858
|
namespace: keyPrefix,
|
|
859
|
-
representationName: RepresentationType$
|
|
859
|
+
representationName: RepresentationType$k,
|
|
860
860
|
mergeable: false
|
|
861
861
|
});
|
|
862
862
|
}
|
|
863
863
|
|
|
864
|
-
function select$
|
|
865
|
-
return select$
|
|
864
|
+
function select$12(luvio, params) {
|
|
865
|
+
return select$13();
|
|
866
866
|
}
|
|
867
|
-
function keyBuilder$
|
|
867
|
+
function keyBuilder$z(luvio, params) {
|
|
868
868
|
return keyPrefix + '::ApplicationDetailsOutputRepresentation:(' + 'preliminaryApplicationRefId:' + params.urlParams.preliminaryApplicationRefId + ')';
|
|
869
869
|
}
|
|
870
|
-
function getResponseCacheKeys$
|
|
871
|
-
getTypeCacheKeys$
|
|
870
|
+
function getResponseCacheKeys$m(storeKeyMap, luvio, resourceParams, response) {
|
|
871
|
+
getTypeCacheKeys$k(storeKeyMap, luvio, response, () => keyBuilder$z(luvio, resourceParams));
|
|
872
872
|
}
|
|
873
|
-
function ingestSuccess$
|
|
873
|
+
function ingestSuccess$m(luvio, resourceParams, response, snapshotRefresh) {
|
|
874
874
|
const { body } = response;
|
|
875
|
-
const key = keyBuilder$
|
|
876
|
-
luvio.storeIngest(key, ingest$
|
|
875
|
+
const key = keyBuilder$z(luvio, resourceParams);
|
|
876
|
+
luvio.storeIngest(key, ingest$k, body);
|
|
877
877
|
const snapshot = luvio.storeLookup({
|
|
878
878
|
recordId: key,
|
|
879
|
-
node: select$
|
|
879
|
+
node: select$12(),
|
|
880
880
|
variables: {},
|
|
881
881
|
}, snapshotRefresh);
|
|
882
882
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -887,19 +887,19 @@ function ingestSuccess$l(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
887
887
|
deepFreeze(snapshot.data);
|
|
888
888
|
return snapshot;
|
|
889
889
|
}
|
|
890
|
-
function ingestError$
|
|
891
|
-
const key = keyBuilder$
|
|
890
|
+
function ingestError$e(luvio, params, error, snapshotRefresh) {
|
|
891
|
+
const key = keyBuilder$z(luvio, params);
|
|
892
892
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
893
893
|
const storeMetadataParams = {
|
|
894
|
-
ttl: TTL$
|
|
894
|
+
ttl: TTL$7,
|
|
895
895
|
namespace: keyPrefix,
|
|
896
|
-
version: VERSION$
|
|
897
|
-
representationName: RepresentationType$
|
|
896
|
+
version: VERSION$I,
|
|
897
|
+
representationName: RepresentationType$k
|
|
898
898
|
};
|
|
899
899
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
900
900
|
return errorSnapshot;
|
|
901
901
|
}
|
|
902
|
-
function createResourceRequest$
|
|
902
|
+
function createResourceRequest$m(config) {
|
|
903
903
|
const headers = {};
|
|
904
904
|
return {
|
|
905
905
|
baseUri: '/services/data/v62.0',
|
|
@@ -913,93 +913,93 @@ function createResourceRequest$l(config) {
|
|
|
913
913
|
};
|
|
914
914
|
}
|
|
915
915
|
|
|
916
|
-
const adapterName$
|
|
916
|
+
const adapterName$m = 'getApplicationDetails';
|
|
917
917
|
const getApplicationDetails_ConfigPropertyMetadata = [
|
|
918
918
|
generateParamConfigMetadata('preliminaryApplicationRefId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
919
919
|
];
|
|
920
|
-
const getApplicationDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
921
|
-
const createResourceParams$
|
|
922
|
-
function keyBuilder$
|
|
923
|
-
const resourceParams = createResourceParams$
|
|
924
|
-
return keyBuilder$
|
|
920
|
+
const getApplicationDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, getApplicationDetails_ConfigPropertyMetadata);
|
|
921
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$o(getApplicationDetails_ConfigPropertyMetadata);
|
|
922
|
+
function keyBuilder$y(luvio, config) {
|
|
923
|
+
const resourceParams = createResourceParams$m(config);
|
|
924
|
+
return keyBuilder$z(luvio, resourceParams);
|
|
925
925
|
}
|
|
926
|
-
function typeCheckConfig$
|
|
926
|
+
function typeCheckConfig$m(untrustedConfig) {
|
|
927
927
|
const config = {};
|
|
928
|
-
typeCheckConfig$
|
|
928
|
+
typeCheckConfig$o(untrustedConfig, config, getApplicationDetails_ConfigPropertyMetadata);
|
|
929
929
|
return config;
|
|
930
930
|
}
|
|
931
|
-
function validateAdapterConfig$
|
|
931
|
+
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
932
932
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
933
933
|
return null;
|
|
934
934
|
}
|
|
935
935
|
if (process.env.NODE_ENV !== 'production') {
|
|
936
936
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
937
937
|
}
|
|
938
|
-
const config = typeCheckConfig$
|
|
938
|
+
const config = typeCheckConfig$m(untrustedConfig);
|
|
939
939
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
940
940
|
return null;
|
|
941
941
|
}
|
|
942
942
|
return config;
|
|
943
943
|
}
|
|
944
|
-
function adapterFragment$
|
|
945
|
-
createResourceParams$
|
|
946
|
-
return select$
|
|
944
|
+
function adapterFragment$e(luvio, config) {
|
|
945
|
+
createResourceParams$m(config);
|
|
946
|
+
return select$12();
|
|
947
947
|
}
|
|
948
|
-
function onFetchResponseSuccess$
|
|
949
|
-
const snapshot = ingestSuccess$
|
|
948
|
+
function onFetchResponseSuccess$e(luvio, config, resourceParams, response) {
|
|
949
|
+
const snapshot = ingestSuccess$m(luvio, resourceParams, response, {
|
|
950
950
|
config,
|
|
951
|
-
resolve: () => buildNetworkSnapshot$
|
|
951
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
952
952
|
});
|
|
953
953
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
954
954
|
}
|
|
955
|
-
function onFetchResponseError$
|
|
956
|
-
const snapshot = ingestError$
|
|
955
|
+
function onFetchResponseError$e(luvio, config, resourceParams, response) {
|
|
956
|
+
const snapshot = ingestError$e(luvio, resourceParams, response, {
|
|
957
957
|
config,
|
|
958
|
-
resolve: () => buildNetworkSnapshot$
|
|
958
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
959
959
|
});
|
|
960
960
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
961
961
|
}
|
|
962
|
-
function buildNetworkSnapshot$
|
|
963
|
-
const resourceParams = createResourceParams$
|
|
964
|
-
const request = createResourceRequest$
|
|
962
|
+
function buildNetworkSnapshot$m(luvio, config, options) {
|
|
963
|
+
const resourceParams = createResourceParams$m(config);
|
|
964
|
+
const request = createResourceRequest$m(resourceParams);
|
|
965
965
|
return luvio.dispatchResourceRequest(request, options)
|
|
966
966
|
.then((response) => {
|
|
967
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
967
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$e(luvio, config, resourceParams, response), () => {
|
|
968
968
|
const cache = new StoreKeyMap();
|
|
969
|
-
getResponseCacheKeys$
|
|
969
|
+
getResponseCacheKeys$m(cache, luvio, resourceParams, response.body);
|
|
970
970
|
return cache;
|
|
971
971
|
});
|
|
972
972
|
}, (response) => {
|
|
973
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
973
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$e(luvio, config, resourceParams, response));
|
|
974
974
|
});
|
|
975
975
|
}
|
|
976
|
-
function buildNetworkSnapshotCachePolicy$
|
|
977
|
-
return buildNetworkSnapshotCachePolicy$
|
|
976
|
+
function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
|
|
977
|
+
return buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext, buildNetworkSnapshot$m, undefined, false);
|
|
978
978
|
}
|
|
979
|
-
function buildCachedSnapshotCachePolicy$
|
|
979
|
+
function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
|
|
980
980
|
const { luvio, config } = context;
|
|
981
981
|
const selector = {
|
|
982
|
-
recordId: keyBuilder$
|
|
983
|
-
node: adapterFragment$
|
|
982
|
+
recordId: keyBuilder$y(luvio, config),
|
|
983
|
+
node: adapterFragment$e(luvio, config),
|
|
984
984
|
variables: {},
|
|
985
985
|
};
|
|
986
986
|
const cacheSnapshot = storeLookup(selector, {
|
|
987
987
|
config,
|
|
988
|
-
resolve: () => buildNetworkSnapshot$
|
|
988
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
989
989
|
});
|
|
990
990
|
return cacheSnapshot;
|
|
991
991
|
}
|
|
992
992
|
const getApplicationDetailsAdapterFactory = (luvio) => function education__getApplicationDetails(untrustedConfig, requestContext) {
|
|
993
|
-
const config = validateAdapterConfig$
|
|
993
|
+
const config = validateAdapterConfig$m(untrustedConfig, getApplicationDetails_ConfigPropertyNames);
|
|
994
994
|
// Invalid or incomplete config
|
|
995
995
|
if (config === null) {
|
|
996
996
|
return null;
|
|
997
997
|
}
|
|
998
998
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
999
|
-
buildCachedSnapshotCachePolicy$
|
|
999
|
+
buildCachedSnapshotCachePolicy$e, buildNetworkSnapshotCachePolicy$e);
|
|
1000
1000
|
};
|
|
1001
1001
|
|
|
1002
|
-
function validate$
|
|
1002
|
+
function validate$13(obj, path = 'AvailableTimeSlotsInputRepresentation') {
|
|
1003
1003
|
const v_error = (() => {
|
|
1004
1004
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1005
1005
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1063,8 +1063,8 @@ function validate$11(obj, path = 'AvailableTimeSlotsInputRepresentation') {
|
|
|
1063
1063
|
return v_error === undefined ? null : v_error;
|
|
1064
1064
|
}
|
|
1065
1065
|
|
|
1066
|
-
const VERSION$
|
|
1067
|
-
function validate$
|
|
1066
|
+
const VERSION$H = "cfd94fbef61f52ffe43428e23e7a68c8";
|
|
1067
|
+
function validate$12(obj, path = 'TimeSlot') {
|
|
1068
1068
|
const v_error = (() => {
|
|
1069
1069
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1070
1070
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1100,10 +1100,10 @@ function validate$10(obj, path = 'TimeSlot') {
|
|
|
1100
1100
|
})();
|
|
1101
1101
|
return v_error === undefined ? null : v_error;
|
|
1102
1102
|
}
|
|
1103
|
-
const select
|
|
1103
|
+
const select$11 = function TimeSlotSelect() {
|
|
1104
1104
|
return {
|
|
1105
1105
|
kind: 'Fragment',
|
|
1106
|
-
version: VERSION$
|
|
1106
|
+
version: VERSION$H,
|
|
1107
1107
|
private: [],
|
|
1108
1108
|
selections: [
|
|
1109
1109
|
{
|
|
@@ -1129,7 +1129,7 @@ const select$$ = function TimeSlotSelect() {
|
|
|
1129
1129
|
]
|
|
1130
1130
|
};
|
|
1131
1131
|
};
|
|
1132
|
-
function equals$
|
|
1132
|
+
function equals$F(existing, incoming) {
|
|
1133
1133
|
const existing_endTime = existing.endTime;
|
|
1134
1134
|
const incoming_endTime = incoming.endTime;
|
|
1135
1135
|
// if at least one of these optionals is defined
|
|
@@ -1185,8 +1185,8 @@ function equals$E(existing, incoming) {
|
|
|
1185
1185
|
return true;
|
|
1186
1186
|
}
|
|
1187
1187
|
|
|
1188
|
-
const VERSION$
|
|
1189
|
-
function validate
|
|
1188
|
+
const VERSION$G = "9c2ef94b89ee532c50c8423528617441";
|
|
1189
|
+
function validate$11(obj, path = 'AvailableTimeSlotsOuputRepresentation') {
|
|
1190
1190
|
const v_error = (() => {
|
|
1191
1191
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1192
1192
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1199,7 +1199,7 @@ function validate$$(obj, path = 'AvailableTimeSlotsOuputRepresentation') {
|
|
|
1199
1199
|
for (let i = 0; i < obj_timeSlots.length; i++) {
|
|
1200
1200
|
const obj_timeSlots_item = obj_timeSlots[i];
|
|
1201
1201
|
const path_timeSlots_item = path_timeSlots + '[' + i + ']';
|
|
1202
|
-
const referencepath_timeSlots_itemValidationError = validate$
|
|
1202
|
+
const referencepath_timeSlots_itemValidationError = validate$12(obj_timeSlots_item, path_timeSlots_item);
|
|
1203
1203
|
if (referencepath_timeSlots_itemValidationError !== null) {
|
|
1204
1204
|
let message = 'Object doesn\'t match TimeSlot (at "' + path_timeSlots_item + '")\n';
|
|
1205
1205
|
message += referencepath_timeSlots_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1209,15 +1209,15 @@ function validate$$(obj, path = 'AvailableTimeSlotsOuputRepresentation') {
|
|
|
1209
1209
|
})();
|
|
1210
1210
|
return v_error === undefined ? null : v_error;
|
|
1211
1211
|
}
|
|
1212
|
-
const RepresentationType$
|
|
1213
|
-
function normalize$
|
|
1212
|
+
const RepresentationType$j = 'AvailableTimeSlotsOuputRepresentation';
|
|
1213
|
+
function normalize$j(input, existing, path, luvio, store, timestamp) {
|
|
1214
1214
|
return input;
|
|
1215
1215
|
}
|
|
1216
|
-
const select$
|
|
1217
|
-
const { selections: TimeSlot__selections, opaque: TimeSlot__opaque, } = select
|
|
1216
|
+
const select$10 = function AvailableTimeSlotsOuputRepresentationSelect() {
|
|
1217
|
+
const { selections: TimeSlot__selections, opaque: TimeSlot__opaque, } = select$11();
|
|
1218
1218
|
return {
|
|
1219
1219
|
kind: 'Fragment',
|
|
1220
|
-
version: VERSION$
|
|
1220
|
+
version: VERSION$G,
|
|
1221
1221
|
private: [],
|
|
1222
1222
|
selections: [
|
|
1223
1223
|
{
|
|
@@ -1229,11 +1229,11 @@ const select$_ = function AvailableTimeSlotsOuputRepresentationSelect() {
|
|
|
1229
1229
|
]
|
|
1230
1230
|
};
|
|
1231
1231
|
};
|
|
1232
|
-
function equals$
|
|
1232
|
+
function equals$E(existing, incoming) {
|
|
1233
1233
|
const existing_timeSlots = existing.timeSlots;
|
|
1234
1234
|
const incoming_timeSlots = incoming.timeSlots;
|
|
1235
1235
|
const equals_timeSlots_items = equalsArray(existing_timeSlots, incoming_timeSlots, (existing_timeSlots_item, incoming_timeSlots_item) => {
|
|
1236
|
-
if (!(equals$
|
|
1236
|
+
if (!(equals$F(existing_timeSlots_item, incoming_timeSlots_item))) {
|
|
1237
1237
|
return false;
|
|
1238
1238
|
}
|
|
1239
1239
|
});
|
|
@@ -1242,44 +1242,44 @@ function equals$D(existing, incoming) {
|
|
|
1242
1242
|
}
|
|
1243
1243
|
return true;
|
|
1244
1244
|
}
|
|
1245
|
-
const ingest$
|
|
1245
|
+
const ingest$j = function AvailableTimeSlotsOuputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1246
1246
|
if (process.env.NODE_ENV !== 'production') {
|
|
1247
|
-
const validateError = validate
|
|
1247
|
+
const validateError = validate$11(input);
|
|
1248
1248
|
if (validateError !== null) {
|
|
1249
1249
|
throw validateError;
|
|
1250
1250
|
}
|
|
1251
1251
|
}
|
|
1252
1252
|
const key = path.fullPath;
|
|
1253
1253
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
1254
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1254
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$j, "education", VERSION$G, RepresentationType$j, equals$E);
|
|
1255
1255
|
return createLink(key);
|
|
1256
1256
|
};
|
|
1257
|
-
function getTypeCacheKeys$
|
|
1257
|
+
function getTypeCacheKeys$j(rootKeySet, luvio, input, fullPathFactory) {
|
|
1258
1258
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1259
1259
|
const rootKey = fullPathFactory();
|
|
1260
1260
|
rootKeySet.set(rootKey, {
|
|
1261
1261
|
namespace: keyPrefix,
|
|
1262
|
-
representationName: RepresentationType$
|
|
1262
|
+
representationName: RepresentationType$j,
|
|
1263
1263
|
mergeable: false
|
|
1264
1264
|
});
|
|
1265
1265
|
}
|
|
1266
1266
|
|
|
1267
|
-
function select
|
|
1268
|
-
return select$
|
|
1267
|
+
function select$$(luvio, params) {
|
|
1268
|
+
return select$10();
|
|
1269
1269
|
}
|
|
1270
|
-
function keyBuilder$
|
|
1270
|
+
function keyBuilder$x(luvio, params) {
|
|
1271
1271
|
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 + ')';
|
|
1272
1272
|
}
|
|
1273
|
-
function getResponseCacheKeys$
|
|
1274
|
-
getTypeCacheKeys$
|
|
1273
|
+
function getResponseCacheKeys$l(storeKeyMap, luvio, resourceParams, response) {
|
|
1274
|
+
getTypeCacheKeys$j(storeKeyMap, luvio, response, () => keyBuilder$x(luvio, resourceParams));
|
|
1275
1275
|
}
|
|
1276
|
-
function ingestSuccess$
|
|
1276
|
+
function ingestSuccess$l(luvio, resourceParams, response, snapshotRefresh) {
|
|
1277
1277
|
const { body } = response;
|
|
1278
|
-
const key = keyBuilder$
|
|
1279
|
-
luvio.storeIngest(key, ingest$
|
|
1278
|
+
const key = keyBuilder$x(luvio, resourceParams);
|
|
1279
|
+
luvio.storeIngest(key, ingest$j, body);
|
|
1280
1280
|
const snapshot = luvio.storeLookup({
|
|
1281
1281
|
recordId: key,
|
|
1282
|
-
node: select
|
|
1282
|
+
node: select$$(),
|
|
1283
1283
|
variables: {},
|
|
1284
1284
|
}, snapshotRefresh);
|
|
1285
1285
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1290,13 +1290,13 @@ function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1290
1290
|
deepFreeze(snapshot.data);
|
|
1291
1291
|
return snapshot;
|
|
1292
1292
|
}
|
|
1293
|
-
function ingestError$
|
|
1294
|
-
const key = keyBuilder$
|
|
1293
|
+
function ingestError$d(luvio, params, error, snapshotRefresh) {
|
|
1294
|
+
const key = keyBuilder$x(luvio, params);
|
|
1295
1295
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1296
1296
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1297
1297
|
return errorSnapshot;
|
|
1298
1298
|
}
|
|
1299
|
-
function createResourceRequest$
|
|
1299
|
+
function createResourceRequest$l(config) {
|
|
1300
1300
|
const headers = {};
|
|
1301
1301
|
return {
|
|
1302
1302
|
baseUri: '/services/data/v62.0',
|
|
@@ -1310,98 +1310,98 @@ function createResourceRequest$k(config) {
|
|
|
1310
1310
|
};
|
|
1311
1311
|
}
|
|
1312
1312
|
|
|
1313
|
-
const adapterName$
|
|
1313
|
+
const adapterName$l = 'getAvailableTimeSlots';
|
|
1314
1314
|
const getAvailableTimeSlots_ConfigPropertyMetadata = [
|
|
1315
1315
|
generateParamConfigMetadata('availableTimeSlotsInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1316
1316
|
];
|
|
1317
|
-
const getAvailableTimeSlots_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1318
|
-
const createResourceParams$
|
|
1319
|
-
function keyBuilder$
|
|
1320
|
-
const resourceParams = createResourceParams$
|
|
1321
|
-
return keyBuilder$
|
|
1317
|
+
const getAvailableTimeSlots_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, getAvailableTimeSlots_ConfigPropertyMetadata);
|
|
1318
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$o(getAvailableTimeSlots_ConfigPropertyMetadata);
|
|
1319
|
+
function keyBuilder$w(luvio, config) {
|
|
1320
|
+
const resourceParams = createResourceParams$l(config);
|
|
1321
|
+
return keyBuilder$x(luvio, resourceParams);
|
|
1322
1322
|
}
|
|
1323
|
-
function typeCheckConfig$
|
|
1323
|
+
function typeCheckConfig$l(untrustedConfig) {
|
|
1324
1324
|
const config = {};
|
|
1325
1325
|
const untrustedConfig_availableTimeSlotsInput = untrustedConfig.availableTimeSlotsInput;
|
|
1326
|
-
const referenceAvailableTimeSlotsInputRepresentationValidationError = validate$
|
|
1326
|
+
const referenceAvailableTimeSlotsInputRepresentationValidationError = validate$13(untrustedConfig_availableTimeSlotsInput);
|
|
1327
1327
|
if (referenceAvailableTimeSlotsInputRepresentationValidationError === null) {
|
|
1328
1328
|
config.availableTimeSlotsInput = untrustedConfig_availableTimeSlotsInput;
|
|
1329
1329
|
}
|
|
1330
1330
|
return config;
|
|
1331
1331
|
}
|
|
1332
|
-
function validateAdapterConfig$
|
|
1332
|
+
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
1333
1333
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1334
1334
|
return null;
|
|
1335
1335
|
}
|
|
1336
1336
|
if (process.env.NODE_ENV !== 'production') {
|
|
1337
1337
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1338
1338
|
}
|
|
1339
|
-
const config = typeCheckConfig$
|
|
1339
|
+
const config = typeCheckConfig$l(untrustedConfig);
|
|
1340
1340
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1341
1341
|
return null;
|
|
1342
1342
|
}
|
|
1343
1343
|
return config;
|
|
1344
1344
|
}
|
|
1345
|
-
function adapterFragment$
|
|
1346
|
-
createResourceParams$
|
|
1347
|
-
return select
|
|
1345
|
+
function adapterFragment$d(luvio, config) {
|
|
1346
|
+
createResourceParams$l(config);
|
|
1347
|
+
return select$$();
|
|
1348
1348
|
}
|
|
1349
|
-
function onFetchResponseSuccess$
|
|
1350
|
-
const snapshot = ingestSuccess$
|
|
1349
|
+
function onFetchResponseSuccess$d(luvio, config, resourceParams, response) {
|
|
1350
|
+
const snapshot = ingestSuccess$l(luvio, resourceParams, response, {
|
|
1351
1351
|
config,
|
|
1352
|
-
resolve: () => buildNetworkSnapshot$
|
|
1352
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
1353
1353
|
});
|
|
1354
1354
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1355
1355
|
}
|
|
1356
|
-
function onFetchResponseError$
|
|
1357
|
-
const snapshot = ingestError$
|
|
1356
|
+
function onFetchResponseError$d(luvio, config, resourceParams, response) {
|
|
1357
|
+
const snapshot = ingestError$d(luvio, resourceParams, response, {
|
|
1358
1358
|
config,
|
|
1359
|
-
resolve: () => buildNetworkSnapshot$
|
|
1359
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
1360
1360
|
});
|
|
1361
1361
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1362
1362
|
}
|
|
1363
|
-
function buildNetworkSnapshot$
|
|
1364
|
-
const resourceParams = createResourceParams$
|
|
1365
|
-
const request = createResourceRequest$
|
|
1363
|
+
function buildNetworkSnapshot$l(luvio, config, options) {
|
|
1364
|
+
const resourceParams = createResourceParams$l(config);
|
|
1365
|
+
const request = createResourceRequest$l(resourceParams);
|
|
1366
1366
|
return luvio.dispatchResourceRequest(request, options)
|
|
1367
1367
|
.then((response) => {
|
|
1368
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1368
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$d(luvio, config, resourceParams, response), () => {
|
|
1369
1369
|
const cache = new StoreKeyMap();
|
|
1370
|
-
getResponseCacheKeys$
|
|
1370
|
+
getResponseCacheKeys$l(cache, luvio, resourceParams, response.body);
|
|
1371
1371
|
return cache;
|
|
1372
1372
|
});
|
|
1373
1373
|
}, (response) => {
|
|
1374
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1374
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$d(luvio, config, resourceParams, response));
|
|
1375
1375
|
});
|
|
1376
1376
|
}
|
|
1377
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1378
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1377
|
+
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
1378
|
+
return buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext, buildNetworkSnapshot$l, 'get', false);
|
|
1379
1379
|
}
|
|
1380
|
-
function buildCachedSnapshotCachePolicy$
|
|
1380
|
+
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
1381
1381
|
const { luvio, config } = context;
|
|
1382
1382
|
const selector = {
|
|
1383
|
-
recordId: keyBuilder$
|
|
1384
|
-
node: adapterFragment$
|
|
1383
|
+
recordId: keyBuilder$w(luvio, config),
|
|
1384
|
+
node: adapterFragment$d(luvio, config),
|
|
1385
1385
|
variables: {},
|
|
1386
1386
|
};
|
|
1387
1387
|
const cacheSnapshot = storeLookup(selector, {
|
|
1388
1388
|
config,
|
|
1389
|
-
resolve: () => buildNetworkSnapshot$
|
|
1389
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
1390
1390
|
});
|
|
1391
1391
|
return cacheSnapshot;
|
|
1392
1392
|
}
|
|
1393
1393
|
const getAvailableTimeSlotsAdapterFactory = (luvio) => function education__getAvailableTimeSlots(untrustedConfig, requestContext) {
|
|
1394
|
-
const config = validateAdapterConfig$
|
|
1394
|
+
const config = validateAdapterConfig$l(untrustedConfig, getAvailableTimeSlots_ConfigPropertyNames);
|
|
1395
1395
|
// Invalid or incomplete config
|
|
1396
1396
|
if (config === null) {
|
|
1397
1397
|
return null;
|
|
1398
1398
|
}
|
|
1399
1399
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1400
|
-
buildCachedSnapshotCachePolicy$
|
|
1400
|
+
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
|
|
1401
1401
|
};
|
|
1402
1402
|
|
|
1403
|
-
const VERSION$
|
|
1404
|
-
function validate$
|
|
1403
|
+
const VERSION$F = "c470aba735607497dd11c1fcd34489d1";
|
|
1404
|
+
function validate$10(obj, path = 'AvailableTopic') {
|
|
1405
1405
|
const v_error = (() => {
|
|
1406
1406
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1407
1407
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1446,10 +1446,10 @@ function validate$_(obj, path = 'AvailableTopic') {
|
|
|
1446
1446
|
})();
|
|
1447
1447
|
return v_error === undefined ? null : v_error;
|
|
1448
1448
|
}
|
|
1449
|
-
const select$
|
|
1449
|
+
const select$_ = function AvailableTopicSelect() {
|
|
1450
1450
|
return {
|
|
1451
1451
|
kind: 'Fragment',
|
|
1452
|
-
version: VERSION$
|
|
1452
|
+
version: VERSION$F,
|
|
1453
1453
|
private: [],
|
|
1454
1454
|
selections: [
|
|
1455
1455
|
{
|
|
@@ -1475,7 +1475,7 @@ const select$Y = function AvailableTopicSelect() {
|
|
|
1475
1475
|
]
|
|
1476
1476
|
};
|
|
1477
1477
|
};
|
|
1478
|
-
function equals$
|
|
1478
|
+
function equals$D(existing, incoming) {
|
|
1479
1479
|
const existing_parentWorkTypeGroupName = existing.parentWorkTypeGroupName;
|
|
1480
1480
|
const incoming_parentWorkTypeGroupName = incoming.parentWorkTypeGroupName;
|
|
1481
1481
|
// if at least one of these optionals is defined
|
|
@@ -1536,8 +1536,8 @@ function equals$C(existing, incoming) {
|
|
|
1536
1536
|
return true;
|
|
1537
1537
|
}
|
|
1538
1538
|
|
|
1539
|
-
const VERSION$
|
|
1540
|
-
function validate
|
|
1539
|
+
const VERSION$E = "3cb0110faf688dc57056aa83be527181";
|
|
1540
|
+
function validate$$(obj, path = 'AvailableTopicsOutputRepresentation') {
|
|
1541
1541
|
const v_error = (() => {
|
|
1542
1542
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1543
1543
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1550,7 +1550,7 @@ function validate$Z(obj, path = 'AvailableTopicsOutputRepresentation') {
|
|
|
1550
1550
|
for (let i = 0; i < obj_topics.length; i++) {
|
|
1551
1551
|
const obj_topics_item = obj_topics[i];
|
|
1552
1552
|
const path_topics_item = path_topics + '[' + i + ']';
|
|
1553
|
-
const referencepath_topics_itemValidationError = validate$
|
|
1553
|
+
const referencepath_topics_itemValidationError = validate$10(obj_topics_item, path_topics_item);
|
|
1554
1554
|
if (referencepath_topics_itemValidationError !== null) {
|
|
1555
1555
|
let message = 'Object doesn\'t match AvailableTopic (at "' + path_topics_item + '")\n';
|
|
1556
1556
|
message += referencepath_topics_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1560,15 +1560,15 @@ function validate$Z(obj, path = 'AvailableTopicsOutputRepresentation') {
|
|
|
1560
1560
|
})();
|
|
1561
1561
|
return v_error === undefined ? null : v_error;
|
|
1562
1562
|
}
|
|
1563
|
-
const RepresentationType$
|
|
1564
|
-
function normalize$
|
|
1563
|
+
const RepresentationType$i = 'AvailableTopicsOutputRepresentation';
|
|
1564
|
+
function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
1565
1565
|
return input;
|
|
1566
1566
|
}
|
|
1567
|
-
const select$
|
|
1568
|
-
const { selections: AvailableTopic__selections, opaque: AvailableTopic__opaque, } = select$
|
|
1567
|
+
const select$Z = function AvailableTopicsOutputRepresentationSelect() {
|
|
1568
|
+
const { selections: AvailableTopic__selections, opaque: AvailableTopic__opaque, } = select$_();
|
|
1569
1569
|
return {
|
|
1570
1570
|
kind: 'Fragment',
|
|
1571
|
-
version: VERSION$
|
|
1571
|
+
version: VERSION$E,
|
|
1572
1572
|
private: [],
|
|
1573
1573
|
selections: [
|
|
1574
1574
|
{
|
|
@@ -1580,11 +1580,11 @@ const select$X = function AvailableTopicsOutputRepresentationSelect() {
|
|
|
1580
1580
|
]
|
|
1581
1581
|
};
|
|
1582
1582
|
};
|
|
1583
|
-
function equals$
|
|
1583
|
+
function equals$C(existing, incoming) {
|
|
1584
1584
|
const existing_topics = existing.topics;
|
|
1585
1585
|
const incoming_topics = incoming.topics;
|
|
1586
1586
|
const equals_topics_items = equalsArray(existing_topics, incoming_topics, (existing_topics_item, incoming_topics_item) => {
|
|
1587
|
-
if (!(equals$
|
|
1587
|
+
if (!(equals$D(existing_topics_item, incoming_topics_item))) {
|
|
1588
1588
|
return false;
|
|
1589
1589
|
}
|
|
1590
1590
|
});
|
|
@@ -1593,44 +1593,44 @@ function equals$B(existing, incoming) {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
return true;
|
|
1595
1595
|
}
|
|
1596
|
-
const ingest$
|
|
1596
|
+
const ingest$i = function AvailableTopicsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1597
1597
|
if (process.env.NODE_ENV !== 'production') {
|
|
1598
|
-
const validateError = validate
|
|
1598
|
+
const validateError = validate$$(input);
|
|
1599
1599
|
if (validateError !== null) {
|
|
1600
1600
|
throw validateError;
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
1603
|
const key = path.fullPath;
|
|
1604
1604
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
1605
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1605
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "education", VERSION$E, RepresentationType$i, equals$C);
|
|
1606
1606
|
return createLink(key);
|
|
1607
1607
|
};
|
|
1608
|
-
function getTypeCacheKeys$
|
|
1608
|
+
function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
1609
1609
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1610
1610
|
const rootKey = fullPathFactory();
|
|
1611
1611
|
rootKeySet.set(rootKey, {
|
|
1612
1612
|
namespace: keyPrefix,
|
|
1613
|
-
representationName: RepresentationType$
|
|
1613
|
+
representationName: RepresentationType$i,
|
|
1614
1614
|
mergeable: false
|
|
1615
1615
|
});
|
|
1616
1616
|
}
|
|
1617
1617
|
|
|
1618
|
-
function select$
|
|
1619
|
-
return select$
|
|
1618
|
+
function select$Y(luvio, params) {
|
|
1619
|
+
return select$Z();
|
|
1620
1620
|
}
|
|
1621
|
-
function keyBuilder$
|
|
1621
|
+
function keyBuilder$v(luvio, params) {
|
|
1622
1622
|
return keyPrefix + '::AvailableTopicsOutputRepresentation:(' + ')';
|
|
1623
1623
|
}
|
|
1624
|
-
function getResponseCacheKeys$
|
|
1625
|
-
getTypeCacheKeys$
|
|
1624
|
+
function getResponseCacheKeys$k(storeKeyMap, luvio, resourceParams, response) {
|
|
1625
|
+
getTypeCacheKeys$i(storeKeyMap, luvio, response, () => keyBuilder$v());
|
|
1626
1626
|
}
|
|
1627
|
-
function ingestSuccess$
|
|
1627
|
+
function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
|
|
1628
1628
|
const { body } = response;
|
|
1629
|
-
const key = keyBuilder$
|
|
1630
|
-
luvio.storeIngest(key, ingest$
|
|
1629
|
+
const key = keyBuilder$v();
|
|
1630
|
+
luvio.storeIngest(key, ingest$i, body);
|
|
1631
1631
|
const snapshot = luvio.storeLookup({
|
|
1632
1632
|
recordId: key,
|
|
1633
|
-
node: select$
|
|
1633
|
+
node: select$Y(),
|
|
1634
1634
|
variables: {},
|
|
1635
1635
|
}, snapshotRefresh);
|
|
1636
1636
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1641,13 +1641,13 @@ function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1641
1641
|
deepFreeze(snapshot.data);
|
|
1642
1642
|
return snapshot;
|
|
1643
1643
|
}
|
|
1644
|
-
function ingestError$
|
|
1645
|
-
const key = keyBuilder$
|
|
1644
|
+
function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
1645
|
+
const key = keyBuilder$v();
|
|
1646
1646
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1647
1647
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1648
1648
|
return errorSnapshot;
|
|
1649
1649
|
}
|
|
1650
|
-
function createResourceRequest$
|
|
1650
|
+
function createResourceRequest$k(config) {
|
|
1651
1651
|
const headers = {};
|
|
1652
1652
|
return {
|
|
1653
1653
|
baseUri: '/services/data/v62.0',
|
|
@@ -1661,95 +1661,95 @@ function createResourceRequest$j(config) {
|
|
|
1661
1661
|
};
|
|
1662
1662
|
}
|
|
1663
1663
|
|
|
1664
|
-
const adapterName$
|
|
1664
|
+
const adapterName$k = 'getAvailableTopics';
|
|
1665
1665
|
const getAvailableTopics_ConfigPropertyMetadata = [];
|
|
1666
|
-
const getAvailableTopics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1667
|
-
const createResourceParams$
|
|
1668
|
-
function keyBuilder$
|
|
1669
|
-
createResourceParams$
|
|
1670
|
-
return keyBuilder$
|
|
1666
|
+
const getAvailableTopics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getAvailableTopics_ConfigPropertyMetadata);
|
|
1667
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$o(getAvailableTopics_ConfigPropertyMetadata);
|
|
1668
|
+
function keyBuilder$u(luvio, config) {
|
|
1669
|
+
createResourceParams$k(config);
|
|
1670
|
+
return keyBuilder$v();
|
|
1671
1671
|
}
|
|
1672
|
-
function typeCheckConfig$
|
|
1672
|
+
function typeCheckConfig$k(untrustedConfig) {
|
|
1673
1673
|
const config = {};
|
|
1674
1674
|
return config;
|
|
1675
1675
|
}
|
|
1676
|
-
function validateAdapterConfig$
|
|
1676
|
+
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
1677
1677
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1678
1678
|
return null;
|
|
1679
1679
|
}
|
|
1680
1680
|
if (process.env.NODE_ENV !== 'production') {
|
|
1681
1681
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1682
1682
|
}
|
|
1683
|
-
const config = typeCheckConfig$
|
|
1683
|
+
const config = typeCheckConfig$k();
|
|
1684
1684
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1685
1685
|
return null;
|
|
1686
1686
|
}
|
|
1687
1687
|
return config;
|
|
1688
1688
|
}
|
|
1689
|
-
function adapterFragment$
|
|
1690
|
-
createResourceParams$
|
|
1691
|
-
return select$
|
|
1689
|
+
function adapterFragment$c(luvio, config) {
|
|
1690
|
+
createResourceParams$k(config);
|
|
1691
|
+
return select$Y();
|
|
1692
1692
|
}
|
|
1693
|
-
function onFetchResponseSuccess$
|
|
1694
|
-
const snapshot = ingestSuccess$
|
|
1693
|
+
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
1694
|
+
const snapshot = ingestSuccess$k(luvio, resourceParams, response, {
|
|
1695
1695
|
config,
|
|
1696
|
-
resolve: () => buildNetworkSnapshot$
|
|
1696
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
1697
1697
|
});
|
|
1698
1698
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1699
1699
|
}
|
|
1700
|
-
function onFetchResponseError$
|
|
1701
|
-
const snapshot = ingestError$
|
|
1700
|
+
function onFetchResponseError$c(luvio, config, resourceParams, response) {
|
|
1701
|
+
const snapshot = ingestError$c(luvio, resourceParams, response, {
|
|
1702
1702
|
config,
|
|
1703
|
-
resolve: () => buildNetworkSnapshot$
|
|
1703
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
1704
1704
|
});
|
|
1705
1705
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1706
1706
|
}
|
|
1707
|
-
function buildNetworkSnapshot$
|
|
1708
|
-
const resourceParams = createResourceParams$
|
|
1709
|
-
const request = createResourceRequest$
|
|
1707
|
+
function buildNetworkSnapshot$k(luvio, config, options) {
|
|
1708
|
+
const resourceParams = createResourceParams$k(config);
|
|
1709
|
+
const request = createResourceRequest$k();
|
|
1710
1710
|
return luvio.dispatchResourceRequest(request, options)
|
|
1711
1711
|
.then((response) => {
|
|
1712
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1712
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => {
|
|
1713
1713
|
const cache = new StoreKeyMap();
|
|
1714
|
-
getResponseCacheKeys$
|
|
1714
|
+
getResponseCacheKeys$k(cache, luvio, resourceParams, response.body);
|
|
1715
1715
|
return cache;
|
|
1716
1716
|
});
|
|
1717
1717
|
}, (response) => {
|
|
1718
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1718
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$c(luvio, config, resourceParams, response));
|
|
1719
1719
|
});
|
|
1720
1720
|
}
|
|
1721
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1722
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1721
|
+
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
1722
|
+
return buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
1723
1723
|
}
|
|
1724
|
-
function buildCachedSnapshotCachePolicy$
|
|
1724
|
+
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
1725
1725
|
const { luvio, config } = context;
|
|
1726
1726
|
const selector = {
|
|
1727
|
-
recordId: keyBuilder$
|
|
1728
|
-
node: adapterFragment$
|
|
1727
|
+
recordId: keyBuilder$u(luvio, config),
|
|
1728
|
+
node: adapterFragment$c(luvio, config),
|
|
1729
1729
|
variables: {},
|
|
1730
1730
|
};
|
|
1731
1731
|
const cacheSnapshot = storeLookup(selector, {
|
|
1732
1732
|
config,
|
|
1733
|
-
resolve: () => buildNetworkSnapshot$
|
|
1733
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
1734
1734
|
});
|
|
1735
1735
|
return cacheSnapshot;
|
|
1736
1736
|
}
|
|
1737
1737
|
const getAvailableTopicsAdapterFactory = (luvio) => function education__getAvailableTopics(untrustedConfig, requestContext) {
|
|
1738
|
-
const config = validateAdapterConfig$
|
|
1738
|
+
const config = validateAdapterConfig$k(untrustedConfig, getAvailableTopics_ConfigPropertyNames);
|
|
1739
1739
|
// Invalid or incomplete config
|
|
1740
1740
|
if (config === null) {
|
|
1741
1741
|
return null;
|
|
1742
1742
|
}
|
|
1743
1743
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1744
|
-
buildCachedSnapshotCachePolicy$
|
|
1744
|
+
buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
|
|
1745
1745
|
};
|
|
1746
1746
|
|
|
1747
|
-
const VERSION$
|
|
1748
|
-
const select$
|
|
1749
|
-
const { selections: LearningOutputSelections } = select$
|
|
1747
|
+
const VERSION$D = "b91b2c52908f1e75dc471ab19f3a612c";
|
|
1748
|
+
const select$X = function LearningCourseOutputSelect() {
|
|
1749
|
+
const { selections: LearningOutputSelections } = select$V();
|
|
1750
1750
|
return {
|
|
1751
1751
|
kind: 'Fragment',
|
|
1752
|
-
version: VERSION$
|
|
1752
|
+
version: VERSION$D,
|
|
1753
1753
|
private: [],
|
|
1754
1754
|
selections: [
|
|
1755
1755
|
...LearningOutputSelections,
|
|
@@ -1782,12 +1782,12 @@ const select$V = function LearningCourseOutputSelect() {
|
|
|
1782
1782
|
};
|
|
1783
1783
|
};
|
|
1784
1784
|
|
|
1785
|
-
const VERSION$
|
|
1786
|
-
const select$
|
|
1787
|
-
const { selections: LearningOutputSelections } = select$
|
|
1785
|
+
const VERSION$C = "cbcb4b73c08332ecb30476cf1c496a3d";
|
|
1786
|
+
const select$W = function LearningProgramOutputSelect() {
|
|
1787
|
+
const { selections: LearningOutputSelections } = select$V();
|
|
1788
1788
|
return {
|
|
1789
1789
|
kind: 'Fragment',
|
|
1790
|
-
version: VERSION$
|
|
1790
|
+
version: VERSION$C,
|
|
1791
1791
|
private: [],
|
|
1792
1792
|
selections: [
|
|
1793
1793
|
...LearningOutputSelections,
|
|
@@ -1805,8 +1805,8 @@ var DiscriminatorValues;
|
|
|
1805
1805
|
DiscriminatorValues["LearningCourse"] = "LearningCourse";
|
|
1806
1806
|
DiscriminatorValues["LearningProgram"] = "LearningProgram";
|
|
1807
1807
|
})(DiscriminatorValues || (DiscriminatorValues = {}));
|
|
1808
|
-
const VERSION$
|
|
1809
|
-
function validate$
|
|
1808
|
+
const VERSION$B = "4cbea421d9f8469662b2fe303c2f4ba2";
|
|
1809
|
+
function validate$_(obj, path = 'LearningOutput') {
|
|
1810
1810
|
const v_error = (() => {
|
|
1811
1811
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1812
1812
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1893,8 +1893,8 @@ function validate$Y(obj, path = 'LearningOutput') {
|
|
|
1893
1893
|
return v_error === undefined ? null : v_error;
|
|
1894
1894
|
}
|
|
1895
1895
|
const selectChildren = function LearningOutputSelectChildren() {
|
|
1896
|
-
const learningCourseOutputSelections = select$
|
|
1897
|
-
const learningProgramOutputSelections = select$
|
|
1896
|
+
const learningCourseOutputSelections = select$X();
|
|
1897
|
+
const learningProgramOutputSelections = select$W();
|
|
1898
1898
|
return {
|
|
1899
1899
|
kind: 'Fragment',
|
|
1900
1900
|
union: true,
|
|
@@ -1905,10 +1905,10 @@ const selectChildren = function LearningOutputSelectChildren() {
|
|
|
1905
1905
|
}
|
|
1906
1906
|
};
|
|
1907
1907
|
};
|
|
1908
|
-
const select$
|
|
1908
|
+
const select$V = function LearningOutputSelect() {
|
|
1909
1909
|
return {
|
|
1910
1910
|
kind: 'Fragment',
|
|
1911
|
-
version: VERSION$
|
|
1911
|
+
version: VERSION$B,
|
|
1912
1912
|
private: [],
|
|
1913
1913
|
selections: [
|
|
1914
1914
|
{
|
|
@@ -1973,7 +1973,7 @@ const select$T = function LearningOutputSelect() {
|
|
|
1973
1973
|
]
|
|
1974
1974
|
};
|
|
1975
1975
|
};
|
|
1976
|
-
function equals$
|
|
1976
|
+
function equals$B(existing, incoming) {
|
|
1977
1977
|
const existing_active = existing.active;
|
|
1978
1978
|
const incoming_active = incoming.active;
|
|
1979
1979
|
// if at least one of these optionals is defined
|
|
@@ -2125,8 +2125,8 @@ function equals$A(existing, incoming) {
|
|
|
2125
2125
|
return true;
|
|
2126
2126
|
}
|
|
2127
2127
|
|
|
2128
|
-
const VERSION$
|
|
2129
|
-
function validate$
|
|
2128
|
+
const VERSION$A = "97ece1d620b7a7775b8ec069c727fb0c";
|
|
2129
|
+
function validate$Z(obj, path = 'LearningOutcomeItemOutput') {
|
|
2130
2130
|
const v_error = (() => {
|
|
2131
2131
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2132
2132
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2151,10 +2151,10 @@ function validate$X(obj, path = 'LearningOutcomeItemOutput') {
|
|
|
2151
2151
|
})();
|
|
2152
2152
|
return v_error === undefined ? null : v_error;
|
|
2153
2153
|
}
|
|
2154
|
-
const select$
|
|
2154
|
+
const select$U = function LearningOutcomeItemOutputSelect() {
|
|
2155
2155
|
return {
|
|
2156
2156
|
kind: 'Fragment',
|
|
2157
|
-
version: VERSION$
|
|
2157
|
+
version: VERSION$A,
|
|
2158
2158
|
private: [],
|
|
2159
2159
|
selections: [
|
|
2160
2160
|
{
|
|
@@ -2175,7 +2175,7 @@ const select$S = function LearningOutcomeItemOutputSelect() {
|
|
|
2175
2175
|
]
|
|
2176
2176
|
};
|
|
2177
2177
|
};
|
|
2178
|
-
function equals$
|
|
2178
|
+
function equals$A(existing, incoming) {
|
|
2179
2179
|
const existing_durationUnit = existing.durationUnit;
|
|
2180
2180
|
const incoming_durationUnit = incoming.durationUnit;
|
|
2181
2181
|
// if at least one of these optionals is defined
|
|
@@ -2218,8 +2218,8 @@ function equals$z(existing, incoming) {
|
|
|
2218
2218
|
return true;
|
|
2219
2219
|
}
|
|
2220
2220
|
|
|
2221
|
-
const VERSION$
|
|
2222
|
-
function validate$
|
|
2221
|
+
const VERSION$z = "1bdbecc684e08a141881821c200a3684";
|
|
2222
|
+
function validate$Y(obj, path = 'LearningStatus') {
|
|
2223
2223
|
const v_error = (() => {
|
|
2224
2224
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2225
2225
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2267,10 +2267,10 @@ function validate$W(obj, path = 'LearningStatus') {
|
|
|
2267
2267
|
})();
|
|
2268
2268
|
return v_error === undefined ? null : v_error;
|
|
2269
2269
|
}
|
|
2270
|
-
const select$
|
|
2270
|
+
const select$T = function LearningStatusSelect() {
|
|
2271
2271
|
return {
|
|
2272
2272
|
kind: 'Fragment',
|
|
2273
|
-
version: VERSION$
|
|
2273
|
+
version: VERSION$z,
|
|
2274
2274
|
private: [],
|
|
2275
2275
|
selections: [
|
|
2276
2276
|
{
|
|
@@ -2305,7 +2305,7 @@ const select$R = function LearningStatusSelect() {
|
|
|
2305
2305
|
]
|
|
2306
2306
|
};
|
|
2307
2307
|
};
|
|
2308
|
-
function equals$
|
|
2308
|
+
function equals$z(existing, incoming) {
|
|
2309
2309
|
const existing_academicSeason = existing.academicSeason;
|
|
2310
2310
|
const incoming_academicSeason = incoming.academicSeason;
|
|
2311
2311
|
// if at least one of these optionals is defined
|
|
@@ -2379,8 +2379,8 @@ function equals$y(existing, incoming) {
|
|
|
2379
2379
|
return true;
|
|
2380
2380
|
}
|
|
2381
2381
|
|
|
2382
|
-
const VERSION$
|
|
2383
|
-
function validate$
|
|
2382
|
+
const VERSION$y = "626a699b7d94feb238f5a5a6641daa16";
|
|
2383
|
+
function validate$X(obj, path = 'LearningFulfiller') {
|
|
2384
2384
|
const v_error = (() => {
|
|
2385
2385
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2386
2386
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2388,7 +2388,7 @@ function validate$V(obj, path = 'LearningFulfiller') {
|
|
|
2388
2388
|
if (obj.learning !== undefined) {
|
|
2389
2389
|
const obj_learning = obj.learning;
|
|
2390
2390
|
const path_learning = path + '.learning';
|
|
2391
|
-
const referencepath_learningValidationError = validate$
|
|
2391
|
+
const referencepath_learningValidationError = validate$_(obj_learning, path_learning);
|
|
2392
2392
|
if (referencepath_learningValidationError !== null) {
|
|
2393
2393
|
let message = 'Object doesn\'t match LearningOutput (at "' + path_learning + '")\n';
|
|
2394
2394
|
message += referencepath_learningValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2398,7 +2398,7 @@ function validate$V(obj, path = 'LearningFulfiller') {
|
|
|
2398
2398
|
if (obj.learningOutcomeItem !== undefined) {
|
|
2399
2399
|
const obj_learningOutcomeItem = obj.learningOutcomeItem;
|
|
2400
2400
|
const path_learningOutcomeItem = path + '.learningOutcomeItem';
|
|
2401
|
-
const referencepath_learningOutcomeItemValidationError = validate$
|
|
2401
|
+
const referencepath_learningOutcomeItemValidationError = validate$Z(obj_learningOutcomeItem, path_learningOutcomeItem);
|
|
2402
2402
|
if (referencepath_learningOutcomeItemValidationError !== null) {
|
|
2403
2403
|
let message = 'Object doesn\'t match LearningOutcomeItemOutput (at "' + path_learningOutcomeItem + '")\n';
|
|
2404
2404
|
message += referencepath_learningOutcomeItemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2408,7 +2408,7 @@ function validate$V(obj, path = 'LearningFulfiller') {
|
|
|
2408
2408
|
if (obj.learningStatus !== undefined) {
|
|
2409
2409
|
const obj_learningStatus = obj.learningStatus;
|
|
2410
2410
|
const path_learningStatus = path + '.learningStatus';
|
|
2411
|
-
const referencepath_learningStatusValidationError = validate$
|
|
2411
|
+
const referencepath_learningStatusValidationError = validate$Y(obj_learningStatus, path_learningStatus);
|
|
2412
2412
|
if (referencepath_learningStatusValidationError !== null) {
|
|
2413
2413
|
let message = 'Object doesn\'t match LearningStatus (at "' + path_learningStatus + '")\n';
|
|
2414
2414
|
message += referencepath_learningStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2418,13 +2418,13 @@ function validate$V(obj, path = 'LearningFulfiller') {
|
|
|
2418
2418
|
})();
|
|
2419
2419
|
return v_error === undefined ? null : v_error;
|
|
2420
2420
|
}
|
|
2421
|
-
const select$
|
|
2421
|
+
const select$S = function LearningFulfillerSelect() {
|
|
2422
2422
|
const LearningOutput__unionSelections = selectChildren();
|
|
2423
|
-
const { selections: LearningOutcomeItemOutput__selections, opaque: LearningOutcomeItemOutput__opaque, } = select$
|
|
2424
|
-
const { selections: LearningStatus__selections, opaque: LearningStatus__opaque, } = select$
|
|
2423
|
+
const { selections: LearningOutcomeItemOutput__selections, opaque: LearningOutcomeItemOutput__opaque, } = select$U();
|
|
2424
|
+
const { selections: LearningStatus__selections, opaque: LearningStatus__opaque, } = select$T();
|
|
2425
2425
|
return {
|
|
2426
2426
|
kind: 'Fragment',
|
|
2427
|
-
version: VERSION$
|
|
2427
|
+
version: VERSION$y,
|
|
2428
2428
|
private: [],
|
|
2429
2429
|
selections: [
|
|
2430
2430
|
{
|
|
@@ -2450,7 +2450,7 @@ const select$Q = function LearningFulfillerSelect() {
|
|
|
2450
2450
|
]
|
|
2451
2451
|
};
|
|
2452
2452
|
};
|
|
2453
|
-
function equals$
|
|
2453
|
+
function equals$y(existing, incoming) {
|
|
2454
2454
|
const existing_learning = existing.learning;
|
|
2455
2455
|
const incoming_learning = incoming.learning;
|
|
2456
2456
|
// if at least one of these optionals is defined
|
|
@@ -2460,7 +2460,7 @@ function equals$x(existing, incoming) {
|
|
|
2460
2460
|
if (existing_learning === undefined || incoming_learning === undefined) {
|
|
2461
2461
|
return false;
|
|
2462
2462
|
}
|
|
2463
|
-
if (!(equals$
|
|
2463
|
+
if (!(equals$B(existing_learning, incoming_learning))) {
|
|
2464
2464
|
return false;
|
|
2465
2465
|
}
|
|
2466
2466
|
}
|
|
@@ -2473,7 +2473,7 @@ function equals$x(existing, incoming) {
|
|
|
2473
2473
|
if (existing_learningOutcomeItem === undefined || incoming_learningOutcomeItem === undefined) {
|
|
2474
2474
|
return false;
|
|
2475
2475
|
}
|
|
2476
|
-
if (!(equals$
|
|
2476
|
+
if (!(equals$A(existing_learningOutcomeItem, incoming_learningOutcomeItem))) {
|
|
2477
2477
|
return false;
|
|
2478
2478
|
}
|
|
2479
2479
|
}
|
|
@@ -2486,15 +2486,15 @@ function equals$x(existing, incoming) {
|
|
|
2486
2486
|
if (existing_learningStatus === undefined || incoming_learningStatus === undefined) {
|
|
2487
2487
|
return false;
|
|
2488
2488
|
}
|
|
2489
|
-
if (!(equals$
|
|
2489
|
+
if (!(equals$z(existing_learningStatus, incoming_learningStatus))) {
|
|
2490
2490
|
return false;
|
|
2491
2491
|
}
|
|
2492
2492
|
}
|
|
2493
2493
|
return true;
|
|
2494
2494
|
}
|
|
2495
2495
|
|
|
2496
|
-
const VERSION$
|
|
2497
|
-
function validate$
|
|
2496
|
+
const VERSION$x = "ed4788c6324cb7fee773d388cf21b1b4";
|
|
2497
|
+
function validate$W(obj, path = 'LearningProgramPlanRequirementOutput') {
|
|
2498
2498
|
const v_error = (() => {
|
|
2499
2499
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2500
2500
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2532,7 +2532,7 @@ function validate$U(obj, path = 'LearningProgramPlanRequirementOutput') {
|
|
|
2532
2532
|
for (let i = 0; i < obj_fulfilledBy.length; i++) {
|
|
2533
2533
|
const obj_fulfilledBy_item = obj_fulfilledBy[i];
|
|
2534
2534
|
const path_fulfilledBy_item = path_fulfilledBy + '[' + i + ']';
|
|
2535
|
-
const referencepath_fulfilledBy_itemValidationError = validate$
|
|
2535
|
+
const referencepath_fulfilledBy_itemValidationError = validate$X(obj_fulfilledBy_item, path_fulfilledBy_item);
|
|
2536
2536
|
if (referencepath_fulfilledBy_itemValidationError !== null) {
|
|
2537
2537
|
let message = 'Object doesn\'t match LearningFulfiller (at "' + path_fulfilledBy_item + '")\n';
|
|
2538
2538
|
message += referencepath_fulfilledBy_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2578,11 +2578,11 @@ function validate$U(obj, path = 'LearningProgramPlanRequirementOutput') {
|
|
|
2578
2578
|
})();
|
|
2579
2579
|
return v_error === undefined ? null : v_error;
|
|
2580
2580
|
}
|
|
2581
|
-
const select$
|
|
2582
|
-
const { selections: LearningFulfiller__selections, opaque: LearningFulfiller__opaque, } = select$
|
|
2581
|
+
const select$R = function LearningProgramPlanRequirementOutputSelect() {
|
|
2582
|
+
const { selections: LearningFulfiller__selections, opaque: LearningFulfiller__opaque, } = select$S();
|
|
2583
2583
|
return {
|
|
2584
2584
|
kind: 'Fragment',
|
|
2585
|
-
version: VERSION$
|
|
2585
|
+
version: VERSION$x,
|
|
2586
2586
|
private: [],
|
|
2587
2587
|
selections: [
|
|
2588
2588
|
{
|
|
@@ -2640,7 +2640,7 @@ const select$P = function LearningProgramPlanRequirementOutputSelect() {
|
|
|
2640
2640
|
]
|
|
2641
2641
|
};
|
|
2642
2642
|
};
|
|
2643
|
-
function equals$
|
|
2643
|
+
function equals$x(existing, incoming) {
|
|
2644
2644
|
const existing_category = existing.category;
|
|
2645
2645
|
const incoming_category = incoming.category;
|
|
2646
2646
|
// if at least one of these optionals is defined
|
|
@@ -2768,7 +2768,7 @@ function equals$w(existing, incoming) {
|
|
|
2768
2768
|
return false;
|
|
2769
2769
|
}
|
|
2770
2770
|
const equals_fulfilledBy_items = equalsArray(existing_fulfilledBy, incoming_fulfilledBy, (existing_fulfilledBy_item, incoming_fulfilledBy_item) => {
|
|
2771
|
-
if (!(equals$
|
|
2771
|
+
if (!(equals$y(existing_fulfilledBy_item, incoming_fulfilledBy_item))) {
|
|
2772
2772
|
return false;
|
|
2773
2773
|
}
|
|
2774
2774
|
});
|
|
@@ -2779,8 +2779,8 @@ function equals$w(existing, incoming) {
|
|
|
2779
2779
|
return true;
|
|
2780
2780
|
}
|
|
2781
2781
|
|
|
2782
|
-
const VERSION$
|
|
2783
|
-
function validate$
|
|
2782
|
+
const VERSION$w = "d7af2bfee148ac8ae983037e910f21ac";
|
|
2783
|
+
function validate$V(obj, path = 'LearnerProgramRequirement') {
|
|
2784
2784
|
const v_error = (() => {
|
|
2785
2785
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2786
2786
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2807,7 +2807,7 @@ function validate$T(obj, path = 'LearnerProgramRequirement') {
|
|
|
2807
2807
|
if (obj.learningProgramPlanRequirement !== undefined) {
|
|
2808
2808
|
const obj_learningProgramPlanRequirement = obj.learningProgramPlanRequirement;
|
|
2809
2809
|
const path_learningProgramPlanRequirement = path + '.learningProgramPlanRequirement';
|
|
2810
|
-
const referencepath_learningProgramPlanRequirementValidationError = validate$
|
|
2810
|
+
const referencepath_learningProgramPlanRequirementValidationError = validate$W(obj_learningProgramPlanRequirement, path_learningProgramPlanRequirement);
|
|
2811
2811
|
if (referencepath_learningProgramPlanRequirementValidationError !== null) {
|
|
2812
2812
|
let message = 'Object doesn\'t match LearningProgramPlanRequirementOutput (at "' + path_learningProgramPlanRequirement + '")\n';
|
|
2813
2813
|
message += referencepath_learningProgramPlanRequirementValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2852,11 +2852,11 @@ function validate$T(obj, path = 'LearnerProgramRequirement') {
|
|
|
2852
2852
|
})();
|
|
2853
2853
|
return v_error === undefined ? null : v_error;
|
|
2854
2854
|
}
|
|
2855
|
-
const select$
|
|
2856
|
-
const { selections: LearningProgramPlanRequirementOutput__selections, opaque: LearningProgramPlanRequirementOutput__opaque, } = select$
|
|
2855
|
+
const select$Q = function LearnerProgramRequirementSelect() {
|
|
2856
|
+
const { selections: LearningProgramPlanRequirementOutput__selections, opaque: LearningProgramPlanRequirementOutput__opaque, } = select$R();
|
|
2857
2857
|
return {
|
|
2858
2858
|
kind: 'Fragment',
|
|
2859
|
-
version: VERSION$
|
|
2859
|
+
version: VERSION$w,
|
|
2860
2860
|
private: [],
|
|
2861
2861
|
selections: [
|
|
2862
2862
|
{
|
|
@@ -2901,7 +2901,7 @@ const select$O = function LearnerProgramRequirementSelect() {
|
|
|
2901
2901
|
]
|
|
2902
2902
|
};
|
|
2903
2903
|
};
|
|
2904
|
-
function equals$
|
|
2904
|
+
function equals$w(existing, incoming) {
|
|
2905
2905
|
const existing_description = existing.description;
|
|
2906
2906
|
const incoming_description = incoming.description;
|
|
2907
2907
|
// if at least one of these optionals is defined
|
|
@@ -2973,7 +2973,7 @@ function equals$v(existing, incoming) {
|
|
|
2973
2973
|
if (existing_learningProgramPlanRequirement === undefined || incoming_learningProgramPlanRequirement === undefined) {
|
|
2974
2974
|
return false;
|
|
2975
2975
|
}
|
|
2976
|
-
if (!(equals$
|
|
2976
|
+
if (!(equals$x(existing_learningProgramPlanRequirement, incoming_learningProgramPlanRequirement))) {
|
|
2977
2977
|
return false;
|
|
2978
2978
|
}
|
|
2979
2979
|
}
|
|
@@ -2998,8 +2998,8 @@ function equals$v(existing, incoming) {
|
|
|
2998
2998
|
return true;
|
|
2999
2999
|
}
|
|
3000
3000
|
|
|
3001
|
-
const VERSION$
|
|
3002
|
-
function validate$
|
|
3001
|
+
const VERSION$v = "9b999e9822e37e43506982e4548078a0";
|
|
3002
|
+
function validate$U(obj, path = 'LearnerProgram') {
|
|
3003
3003
|
const v_error = (() => {
|
|
3004
3004
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3005
3005
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3069,7 +3069,7 @@ function validate$S(obj, path = 'LearnerProgram') {
|
|
|
3069
3069
|
for (let i = 0; i < obj_requirements.length; i++) {
|
|
3070
3070
|
const obj_requirements_item = obj_requirements[i];
|
|
3071
3071
|
const path_requirements_item = path_requirements + '[' + i + ']';
|
|
3072
|
-
const referencepath_requirements_itemValidationError = validate$
|
|
3072
|
+
const referencepath_requirements_itemValidationError = validate$V(obj_requirements_item, path_requirements_item);
|
|
3073
3073
|
if (referencepath_requirements_itemValidationError !== null) {
|
|
3074
3074
|
let message = 'Object doesn\'t match LearnerProgramRequirement (at "' + path_requirements_item + '")\n';
|
|
3075
3075
|
message += referencepath_requirements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3094,11 +3094,11 @@ function validate$S(obj, path = 'LearnerProgram') {
|
|
|
3094
3094
|
})();
|
|
3095
3095
|
return v_error === undefined ? null : v_error;
|
|
3096
3096
|
}
|
|
3097
|
-
const select$
|
|
3098
|
-
const { selections: LearnerProgramRequirement__selections, opaque: LearnerProgramRequirement__opaque, } = select$
|
|
3097
|
+
const select$P = function LearnerProgramSelect() {
|
|
3098
|
+
const { selections: LearnerProgramRequirement__selections, opaque: LearnerProgramRequirement__opaque, } = select$Q();
|
|
3099
3099
|
return {
|
|
3100
3100
|
kind: 'Fragment',
|
|
3101
|
-
version: VERSION$
|
|
3101
|
+
version: VERSION$v,
|
|
3102
3102
|
private: [],
|
|
3103
3103
|
selections: [
|
|
3104
3104
|
{
|
|
@@ -3164,7 +3164,7 @@ const select$N = function LearnerProgramSelect() {
|
|
|
3164
3164
|
]
|
|
3165
3165
|
};
|
|
3166
3166
|
};
|
|
3167
|
-
function equals$
|
|
3167
|
+
function equals$v(existing, incoming) {
|
|
3168
3168
|
const existing_description = existing.description;
|
|
3169
3169
|
const incoming_description = incoming.description;
|
|
3170
3170
|
// if at least one of these optionals is defined
|
|
@@ -3275,7 +3275,7 @@ function equals$u(existing, incoming) {
|
|
|
3275
3275
|
return false;
|
|
3276
3276
|
}
|
|
3277
3277
|
const equals_requirements_items = equalsArray(existing_requirements, incoming_requirements, (existing_requirements_item, incoming_requirements_item) => {
|
|
3278
|
-
if (!(equals$
|
|
3278
|
+
if (!(equals$w(existing_requirements_item, incoming_requirements_item))) {
|
|
3279
3279
|
return false;
|
|
3280
3280
|
}
|
|
3281
3281
|
});
|
|
@@ -3286,8 +3286,8 @@ function equals$u(existing, incoming) {
|
|
|
3286
3286
|
return true;
|
|
3287
3287
|
}
|
|
3288
3288
|
|
|
3289
|
-
const VERSION$
|
|
3290
|
-
function validate$
|
|
3289
|
+
const VERSION$u = "a14b9073a0ed9a08a5bb2c6ae6d8eac0";
|
|
3290
|
+
function validate$T(obj, path = 'LearnerProgressOutputRepresentation') {
|
|
3291
3291
|
const v_error = (() => {
|
|
3292
3292
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3293
3293
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3301,7 +3301,7 @@ function validate$R(obj, path = 'LearnerProgressOutputRepresentation') {
|
|
|
3301
3301
|
for (let i = 0; i < obj_learnerPrograms.length; i++) {
|
|
3302
3302
|
const obj_learnerPrograms_item = obj_learnerPrograms[i];
|
|
3303
3303
|
const path_learnerPrograms_item = path_learnerPrograms + '[' + i + ']';
|
|
3304
|
-
const referencepath_learnerPrograms_itemValidationError = validate$
|
|
3304
|
+
const referencepath_learnerPrograms_itemValidationError = validate$U(obj_learnerPrograms_item, path_learnerPrograms_item);
|
|
3305
3305
|
if (referencepath_learnerPrograms_itemValidationError !== null) {
|
|
3306
3306
|
let message = 'Object doesn\'t match LearnerProgram (at "' + path_learnerPrograms_item + '")\n';
|
|
3307
3307
|
message += referencepath_learnerPrograms_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3312,15 +3312,15 @@ function validate$R(obj, path = 'LearnerProgressOutputRepresentation') {
|
|
|
3312
3312
|
})();
|
|
3313
3313
|
return v_error === undefined ? null : v_error;
|
|
3314
3314
|
}
|
|
3315
|
-
const RepresentationType$
|
|
3316
|
-
function normalize$
|
|
3315
|
+
const RepresentationType$h = 'LearnerProgressOutputRepresentation';
|
|
3316
|
+
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
3317
3317
|
return input;
|
|
3318
3318
|
}
|
|
3319
|
-
const select$
|
|
3320
|
-
const { selections: LearnerProgram__selections, opaque: LearnerProgram__opaque, } = select$
|
|
3319
|
+
const select$O = function LearnerProgressOutputRepresentationSelect() {
|
|
3320
|
+
const { selections: LearnerProgram__selections, opaque: LearnerProgram__opaque, } = select$P();
|
|
3321
3321
|
return {
|
|
3322
3322
|
kind: 'Fragment',
|
|
3323
|
-
version: VERSION$
|
|
3323
|
+
version: VERSION$u,
|
|
3324
3324
|
private: [],
|
|
3325
3325
|
selections: [
|
|
3326
3326
|
{
|
|
@@ -3333,7 +3333,7 @@ const select$M = function LearnerProgressOutputRepresentationSelect() {
|
|
|
3333
3333
|
]
|
|
3334
3334
|
};
|
|
3335
3335
|
};
|
|
3336
|
-
function equals$
|
|
3336
|
+
function equals$u(existing, incoming) {
|
|
3337
3337
|
const existing_learnerPrograms = existing.learnerPrograms;
|
|
3338
3338
|
const incoming_learnerPrograms = incoming.learnerPrograms;
|
|
3339
3339
|
// if at least one of these optionals is defined
|
|
@@ -3344,7 +3344,7 @@ function equals$t(existing, incoming) {
|
|
|
3344
3344
|
return false;
|
|
3345
3345
|
}
|
|
3346
3346
|
const equals_learnerPrograms_items = equalsArray(existing_learnerPrograms, incoming_learnerPrograms, (existing_learnerPrograms_item, incoming_learnerPrograms_item) => {
|
|
3347
|
-
if (!(equals$
|
|
3347
|
+
if (!(equals$v(existing_learnerPrograms_item, incoming_learnerPrograms_item))) {
|
|
3348
3348
|
return false;
|
|
3349
3349
|
}
|
|
3350
3350
|
});
|
|
@@ -3354,44 +3354,44 @@ function equals$t(existing, incoming) {
|
|
|
3354
3354
|
}
|
|
3355
3355
|
return true;
|
|
3356
3356
|
}
|
|
3357
|
-
const ingest$
|
|
3357
|
+
const ingest$h = function LearnerProgressOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3358
3358
|
if (process.env.NODE_ENV !== 'production') {
|
|
3359
|
-
const validateError = validate$
|
|
3359
|
+
const validateError = validate$T(input);
|
|
3360
3360
|
if (validateError !== null) {
|
|
3361
3361
|
throw validateError;
|
|
3362
3362
|
}
|
|
3363
3363
|
}
|
|
3364
3364
|
const key = path.fullPath;
|
|
3365
3365
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
3366
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3366
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "education", VERSION$u, RepresentationType$h, equals$u);
|
|
3367
3367
|
return createLink(key);
|
|
3368
3368
|
};
|
|
3369
|
-
function getTypeCacheKeys$
|
|
3369
|
+
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
3370
3370
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3371
3371
|
const rootKey = fullPathFactory();
|
|
3372
3372
|
rootKeySet.set(rootKey, {
|
|
3373
3373
|
namespace: keyPrefix,
|
|
3374
|
-
representationName: RepresentationType$
|
|
3374
|
+
representationName: RepresentationType$h,
|
|
3375
3375
|
mergeable: false
|
|
3376
3376
|
});
|
|
3377
3377
|
}
|
|
3378
3378
|
|
|
3379
|
-
function select$
|
|
3380
|
-
return select$
|
|
3379
|
+
function select$N(luvio, params) {
|
|
3380
|
+
return select$O();
|
|
3381
3381
|
}
|
|
3382
|
-
function keyBuilder$
|
|
3382
|
+
function keyBuilder$t(luvio, params) {
|
|
3383
3383
|
return keyPrefix + '::LearnerProgressOutputRepresentation:(' + 'contactId:' + params.urlParams.contactId + ')';
|
|
3384
3384
|
}
|
|
3385
|
-
function getResponseCacheKeys$
|
|
3386
|
-
getTypeCacheKeys$
|
|
3385
|
+
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
3386
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response, () => keyBuilder$t(luvio, resourceParams));
|
|
3387
3387
|
}
|
|
3388
|
-
function ingestSuccess$
|
|
3388
|
+
function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
3389
3389
|
const { body } = response;
|
|
3390
|
-
const key = keyBuilder$
|
|
3391
|
-
luvio.storeIngest(key, ingest$
|
|
3390
|
+
const key = keyBuilder$t(luvio, resourceParams);
|
|
3391
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
3392
3392
|
const snapshot = luvio.storeLookup({
|
|
3393
3393
|
recordId: key,
|
|
3394
|
-
node: select$
|
|
3394
|
+
node: select$N(),
|
|
3395
3395
|
variables: {},
|
|
3396
3396
|
}, snapshotRefresh);
|
|
3397
3397
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3402,13 +3402,13 @@ function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3402
3402
|
deepFreeze(snapshot.data);
|
|
3403
3403
|
return snapshot;
|
|
3404
3404
|
}
|
|
3405
|
-
function ingestError$
|
|
3406
|
-
const key = keyBuilder$
|
|
3405
|
+
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
3406
|
+
const key = keyBuilder$t(luvio, params);
|
|
3407
3407
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3408
3408
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3409
3409
|
return errorSnapshot;
|
|
3410
3410
|
}
|
|
3411
|
-
function createResourceRequest$
|
|
3411
|
+
function createResourceRequest$j(config) {
|
|
3412
3412
|
const headers = {};
|
|
3413
3413
|
return {
|
|
3414
3414
|
baseUri: '/services/data/v62.0',
|
|
@@ -3422,93 +3422,93 @@ function createResourceRequest$i(config) {
|
|
|
3422
3422
|
};
|
|
3423
3423
|
}
|
|
3424
3424
|
|
|
3425
|
-
const adapterName$
|
|
3425
|
+
const adapterName$j = 'getLearnerProgress';
|
|
3426
3426
|
const getLearnerProgress_ConfigPropertyMetadata = [
|
|
3427
3427
|
generateParamConfigMetadata('contactId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3428
3428
|
];
|
|
3429
|
-
const getLearnerProgress_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3430
|
-
const createResourceParams$
|
|
3431
|
-
function keyBuilder$
|
|
3432
|
-
const resourceParams = createResourceParams$
|
|
3433
|
-
return keyBuilder$
|
|
3429
|
+
const getLearnerProgress_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, getLearnerProgress_ConfigPropertyMetadata);
|
|
3430
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$o(getLearnerProgress_ConfigPropertyMetadata);
|
|
3431
|
+
function keyBuilder$s(luvio, config) {
|
|
3432
|
+
const resourceParams = createResourceParams$j(config);
|
|
3433
|
+
return keyBuilder$t(luvio, resourceParams);
|
|
3434
3434
|
}
|
|
3435
|
-
function typeCheckConfig$
|
|
3435
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
3436
3436
|
const config = {};
|
|
3437
|
-
typeCheckConfig$
|
|
3437
|
+
typeCheckConfig$o(untrustedConfig, config, getLearnerProgress_ConfigPropertyMetadata);
|
|
3438
3438
|
return config;
|
|
3439
3439
|
}
|
|
3440
|
-
function validateAdapterConfig$
|
|
3440
|
+
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
3441
3441
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3442
3442
|
return null;
|
|
3443
3443
|
}
|
|
3444
3444
|
if (process.env.NODE_ENV !== 'production') {
|
|
3445
3445
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3446
3446
|
}
|
|
3447
|
-
const config = typeCheckConfig$
|
|
3447
|
+
const config = typeCheckConfig$j(untrustedConfig);
|
|
3448
3448
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3449
3449
|
return null;
|
|
3450
3450
|
}
|
|
3451
3451
|
return config;
|
|
3452
3452
|
}
|
|
3453
|
-
function adapterFragment$
|
|
3454
|
-
createResourceParams$
|
|
3455
|
-
return select$
|
|
3453
|
+
function adapterFragment$b(luvio, config) {
|
|
3454
|
+
createResourceParams$j(config);
|
|
3455
|
+
return select$N();
|
|
3456
3456
|
}
|
|
3457
|
-
function onFetchResponseSuccess$
|
|
3458
|
-
const snapshot = ingestSuccess$
|
|
3457
|
+
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
3458
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
|
|
3459
3459
|
config,
|
|
3460
|
-
resolve: () => buildNetworkSnapshot$
|
|
3460
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
3461
3461
|
});
|
|
3462
3462
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3463
3463
|
}
|
|
3464
|
-
function onFetchResponseError$
|
|
3465
|
-
const snapshot = ingestError$
|
|
3464
|
+
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
3465
|
+
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
3466
3466
|
config,
|
|
3467
|
-
resolve: () => buildNetworkSnapshot$
|
|
3467
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
3468
3468
|
});
|
|
3469
3469
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3470
3470
|
}
|
|
3471
|
-
function buildNetworkSnapshot$
|
|
3472
|
-
const resourceParams = createResourceParams$
|
|
3473
|
-
const request = createResourceRequest$
|
|
3471
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
3472
|
+
const resourceParams = createResourceParams$j(config);
|
|
3473
|
+
const request = createResourceRequest$j(resourceParams);
|
|
3474
3474
|
return luvio.dispatchResourceRequest(request, options)
|
|
3475
3475
|
.then((response) => {
|
|
3476
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3476
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
|
|
3477
3477
|
const cache = new StoreKeyMap();
|
|
3478
|
-
getResponseCacheKeys$
|
|
3478
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
3479
3479
|
return cache;
|
|
3480
3480
|
});
|
|
3481
3481
|
}, (response) => {
|
|
3482
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3482
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$b(luvio, config, resourceParams, response));
|
|
3483
3483
|
});
|
|
3484
3484
|
}
|
|
3485
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3486
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3485
|
+
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
3486
|
+
return buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext, buildNetworkSnapshot$j, undefined, false);
|
|
3487
3487
|
}
|
|
3488
|
-
function buildCachedSnapshotCachePolicy$
|
|
3488
|
+
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
3489
3489
|
const { luvio, config } = context;
|
|
3490
3490
|
const selector = {
|
|
3491
|
-
recordId: keyBuilder$
|
|
3492
|
-
node: adapterFragment$
|
|
3491
|
+
recordId: keyBuilder$s(luvio, config),
|
|
3492
|
+
node: adapterFragment$b(luvio, config),
|
|
3493
3493
|
variables: {},
|
|
3494
3494
|
};
|
|
3495
3495
|
const cacheSnapshot = storeLookup(selector, {
|
|
3496
3496
|
config,
|
|
3497
|
-
resolve: () => buildNetworkSnapshot$
|
|
3497
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
3498
3498
|
});
|
|
3499
3499
|
return cacheSnapshot;
|
|
3500
3500
|
}
|
|
3501
3501
|
const getLearnerProgressAdapterFactory = (luvio) => function education__getLearnerProgress(untrustedConfig, requestContext) {
|
|
3502
|
-
const config = validateAdapterConfig$
|
|
3502
|
+
const config = validateAdapterConfig$j(untrustedConfig, getLearnerProgress_ConfigPropertyNames);
|
|
3503
3503
|
// Invalid or incomplete config
|
|
3504
3504
|
if (config === null) {
|
|
3505
3505
|
return null;
|
|
3506
3506
|
}
|
|
3507
3507
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3508
|
-
buildCachedSnapshotCachePolicy$
|
|
3508
|
+
buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
|
|
3509
3509
|
};
|
|
3510
3510
|
|
|
3511
|
-
function validate$
|
|
3511
|
+
function validate$S(obj, path = 'CreateLearningInputRepresentation') {
|
|
3512
3512
|
const v_error = (() => {
|
|
3513
3513
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3514
3514
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3592,9 +3592,9 @@ function validate$Q(obj, path = 'CreateLearningInputRepresentation') {
|
|
|
3592
3592
|
return v_error === undefined ? null : v_error;
|
|
3593
3593
|
}
|
|
3594
3594
|
|
|
3595
|
-
const TTL$
|
|
3596
|
-
const VERSION$
|
|
3597
|
-
function validate$
|
|
3595
|
+
const TTL$6 = 100;
|
|
3596
|
+
const VERSION$t = "007261ab77a4c0e4b59ae9c1245e9305";
|
|
3597
|
+
function validate$R(obj, path = 'CreateLearningOutputRepresentation') {
|
|
3598
3598
|
const v_error = (() => {
|
|
3599
3599
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3600
3600
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3663,68 +3663,68 @@ function validate$P(obj, path = 'CreateLearningOutputRepresentation') {
|
|
|
3663
3663
|
})();
|
|
3664
3664
|
return v_error === undefined ? null : v_error;
|
|
3665
3665
|
}
|
|
3666
|
-
const RepresentationType$
|
|
3667
|
-
function keyBuilder$
|
|
3668
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3666
|
+
const RepresentationType$g = 'CreateLearningOutputRepresentation';
|
|
3667
|
+
function keyBuilder$r(luvio, config) {
|
|
3668
|
+
return keyPrefix + '::' + RepresentationType$g + ':' + config.id;
|
|
3669
3669
|
}
|
|
3670
3670
|
function keyBuilderFromType$5(luvio, object) {
|
|
3671
3671
|
const keyParams = {
|
|
3672
3672
|
id: object.learningId
|
|
3673
3673
|
};
|
|
3674
|
-
return keyBuilder$
|
|
3674
|
+
return keyBuilder$r(luvio, keyParams);
|
|
3675
3675
|
}
|
|
3676
|
-
function normalize$
|
|
3676
|
+
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
3677
3677
|
return input;
|
|
3678
3678
|
}
|
|
3679
|
-
const select$
|
|
3679
|
+
const select$M = function CreateLearningOutputRepresentationSelect() {
|
|
3680
3680
|
return {
|
|
3681
3681
|
kind: 'Fragment',
|
|
3682
|
-
version: VERSION$
|
|
3682
|
+
version: VERSION$t,
|
|
3683
3683
|
private: [],
|
|
3684
3684
|
opaque: true
|
|
3685
3685
|
};
|
|
3686
3686
|
};
|
|
3687
|
-
function equals$
|
|
3687
|
+
function equals$t(existing, incoming) {
|
|
3688
3688
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3689
3689
|
return false;
|
|
3690
3690
|
}
|
|
3691
3691
|
return true;
|
|
3692
3692
|
}
|
|
3693
|
-
const ingest$
|
|
3693
|
+
const ingest$g = function CreateLearningOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3694
3694
|
if (process.env.NODE_ENV !== 'production') {
|
|
3695
|
-
const validateError = validate$
|
|
3695
|
+
const validateError = validate$R(input);
|
|
3696
3696
|
if (validateError !== null) {
|
|
3697
3697
|
throw validateError;
|
|
3698
3698
|
}
|
|
3699
3699
|
}
|
|
3700
3700
|
const key = keyBuilderFromType$5(luvio, input);
|
|
3701
|
-
const ttlToUse = TTL$
|
|
3702
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3701
|
+
const ttlToUse = TTL$6;
|
|
3702
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "education", VERSION$t, RepresentationType$g, equals$t);
|
|
3703
3703
|
return createLink(key);
|
|
3704
3704
|
};
|
|
3705
|
-
function getTypeCacheKeys$
|
|
3705
|
+
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
3706
3706
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3707
3707
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
3708
3708
|
rootKeySet.set(rootKey, {
|
|
3709
3709
|
namespace: keyPrefix,
|
|
3710
|
-
representationName: RepresentationType$
|
|
3710
|
+
representationName: RepresentationType$g,
|
|
3711
3711
|
mergeable: false
|
|
3712
3712
|
});
|
|
3713
3713
|
}
|
|
3714
3714
|
|
|
3715
|
-
function select$
|
|
3716
|
-
return select$
|
|
3715
|
+
function select$L(luvio, params) {
|
|
3716
|
+
return select$M();
|
|
3717
3717
|
}
|
|
3718
|
-
function getResponseCacheKeys$
|
|
3719
|
-
getTypeCacheKeys$
|
|
3718
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
3719
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
3720
3720
|
}
|
|
3721
|
-
function ingestSuccess$
|
|
3721
|
+
function ingestSuccess$i(luvio, resourceParams, response) {
|
|
3722
3722
|
const { body } = response;
|
|
3723
3723
|
const key = keyBuilderFromType$5(luvio, body);
|
|
3724
|
-
luvio.storeIngest(key, ingest$
|
|
3724
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
3725
3725
|
const snapshot = luvio.storeLookup({
|
|
3726
3726
|
recordId: key,
|
|
3727
|
-
node: select$
|
|
3727
|
+
node: select$L(),
|
|
3728
3728
|
variables: {},
|
|
3729
3729
|
});
|
|
3730
3730
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3735,7 +3735,7 @@ function ingestSuccess$h(luvio, resourceParams, response) {
|
|
|
3735
3735
|
deepFreeze(snapshot.data);
|
|
3736
3736
|
return snapshot;
|
|
3737
3737
|
}
|
|
3738
|
-
function createResourceRequest$
|
|
3738
|
+
function createResourceRequest$i(config) {
|
|
3739
3739
|
const headers = {};
|
|
3740
3740
|
return {
|
|
3741
3741
|
baseUri: '/services/data/v62.0',
|
|
@@ -3749,45 +3749,45 @@ function createResourceRequest$h(config) {
|
|
|
3749
3749
|
};
|
|
3750
3750
|
}
|
|
3751
3751
|
|
|
3752
|
-
const adapterName$
|
|
3752
|
+
const adapterName$i = 'postCreateLearning';
|
|
3753
3753
|
const postCreateLearning_ConfigPropertyMetadata = [
|
|
3754
3754
|
generateParamConfigMetadata('createLearningRecord', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3755
3755
|
];
|
|
3756
|
-
const postCreateLearning_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3757
|
-
const createResourceParams$
|
|
3758
|
-
function typeCheckConfig$
|
|
3756
|
+
const postCreateLearning_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, postCreateLearning_ConfigPropertyMetadata);
|
|
3757
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$o(postCreateLearning_ConfigPropertyMetadata);
|
|
3758
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
3759
3759
|
const config = {};
|
|
3760
3760
|
const untrustedConfig_createLearningRecord = untrustedConfig.createLearningRecord;
|
|
3761
|
-
const referenceCreateLearningInputRepresentationValidationError = validate$
|
|
3761
|
+
const referenceCreateLearningInputRepresentationValidationError = validate$S(untrustedConfig_createLearningRecord);
|
|
3762
3762
|
if (referenceCreateLearningInputRepresentationValidationError === null) {
|
|
3763
3763
|
config.createLearningRecord = untrustedConfig_createLearningRecord;
|
|
3764
3764
|
}
|
|
3765
3765
|
return config;
|
|
3766
3766
|
}
|
|
3767
|
-
function validateAdapterConfig$
|
|
3767
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
3768
3768
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3769
3769
|
return null;
|
|
3770
3770
|
}
|
|
3771
3771
|
if (process.env.NODE_ENV !== 'production') {
|
|
3772
3772
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3773
3773
|
}
|
|
3774
|
-
const config = typeCheckConfig$
|
|
3774
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
3775
3775
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3776
3776
|
return null;
|
|
3777
3777
|
}
|
|
3778
3778
|
return config;
|
|
3779
3779
|
}
|
|
3780
|
-
function buildNetworkSnapshot$
|
|
3781
|
-
const resourceParams = createResourceParams$
|
|
3782
|
-
const request = createResourceRequest$
|
|
3780
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
3781
|
+
const resourceParams = createResourceParams$i(config);
|
|
3782
|
+
const request = createResourceRequest$i(resourceParams);
|
|
3783
3783
|
return luvio.dispatchResourceRequest(request, options)
|
|
3784
3784
|
.then((response) => {
|
|
3785
3785
|
return luvio.handleSuccessResponse(() => {
|
|
3786
|
-
const snapshot = ingestSuccess$
|
|
3786
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response);
|
|
3787
3787
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3788
3788
|
}, () => {
|
|
3789
3789
|
const cache = new StoreKeyMap();
|
|
3790
|
-
getResponseCacheKeys$
|
|
3790
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
3791
3791
|
return cache;
|
|
3792
3792
|
});
|
|
3793
3793
|
}, (response) => {
|
|
@@ -3797,16 +3797,16 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
3797
3797
|
}
|
|
3798
3798
|
const postCreateLearningAdapterFactory = (luvio) => {
|
|
3799
3799
|
return function postCreateLearning(untrustedConfig) {
|
|
3800
|
-
const config = validateAdapterConfig$
|
|
3800
|
+
const config = validateAdapterConfig$i(untrustedConfig, postCreateLearning_ConfigPropertyNames);
|
|
3801
3801
|
// Invalid or incomplete config
|
|
3802
3802
|
if (config === null) {
|
|
3803
3803
|
throw new Error('Invalid config for "postCreateLearning"');
|
|
3804
3804
|
}
|
|
3805
|
-
return buildNetworkSnapshot$
|
|
3805
|
+
return buildNetworkSnapshot$i(luvio, config);
|
|
3806
3806
|
};
|
|
3807
3807
|
};
|
|
3808
3808
|
|
|
3809
|
-
function validate$
|
|
3809
|
+
function validate$Q(obj, path = 'UpdateLearningInputRepresentation') {
|
|
3810
3810
|
const v_error = (() => {
|
|
3811
3811
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3812
3812
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3855,19 +3855,19 @@ function validate$O(obj, path = 'UpdateLearningInputRepresentation') {
|
|
|
3855
3855
|
return v_error === undefined ? null : v_error;
|
|
3856
3856
|
}
|
|
3857
3857
|
|
|
3858
|
-
function select$
|
|
3859
|
-
return select$
|
|
3858
|
+
function select$K(luvio, params) {
|
|
3859
|
+
return select$M();
|
|
3860
3860
|
}
|
|
3861
|
-
function getResponseCacheKeys$
|
|
3862
|
-
getTypeCacheKeys$
|
|
3861
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
3862
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
3863
3863
|
}
|
|
3864
|
-
function ingestSuccess$
|
|
3864
|
+
function ingestSuccess$h(luvio, resourceParams, response) {
|
|
3865
3865
|
const { body } = response;
|
|
3866
3866
|
const key = keyBuilderFromType$5(luvio, body);
|
|
3867
|
-
luvio.storeIngest(key, ingest$
|
|
3867
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
3868
3868
|
const snapshot = luvio.storeLookup({
|
|
3869
3869
|
recordId: key,
|
|
3870
|
-
node: select$
|
|
3870
|
+
node: select$K(),
|
|
3871
3871
|
variables: {},
|
|
3872
3872
|
});
|
|
3873
3873
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3878,7 +3878,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
|
|
|
3878
3878
|
deepFreeze(snapshot.data);
|
|
3879
3879
|
return snapshot;
|
|
3880
3880
|
}
|
|
3881
|
-
function createResourceRequest$
|
|
3881
|
+
function createResourceRequest$h(config) {
|
|
3882
3882
|
const headers = {};
|
|
3883
3883
|
return {
|
|
3884
3884
|
baseUri: '/services/data/v62.0',
|
|
@@ -3892,45 +3892,45 @@ function createResourceRequest$g(config) {
|
|
|
3892
3892
|
};
|
|
3893
3893
|
}
|
|
3894
3894
|
|
|
3895
|
-
const adapterName$
|
|
3895
|
+
const adapterName$h = 'updateLearning';
|
|
3896
3896
|
const updateLearning_ConfigPropertyMetadata = [
|
|
3897
3897
|
generateParamConfigMetadata('updateLearningRecord', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3898
3898
|
];
|
|
3899
|
-
const updateLearning_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3900
|
-
const createResourceParams$
|
|
3901
|
-
function typeCheckConfig$
|
|
3899
|
+
const updateLearning_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, updateLearning_ConfigPropertyMetadata);
|
|
3900
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$o(updateLearning_ConfigPropertyMetadata);
|
|
3901
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
3902
3902
|
const config = {};
|
|
3903
3903
|
const untrustedConfig_updateLearningRecord = untrustedConfig.updateLearningRecord;
|
|
3904
|
-
const referenceUpdateLearningInputRepresentationValidationError = validate$
|
|
3904
|
+
const referenceUpdateLearningInputRepresentationValidationError = validate$Q(untrustedConfig_updateLearningRecord);
|
|
3905
3905
|
if (referenceUpdateLearningInputRepresentationValidationError === null) {
|
|
3906
3906
|
config.updateLearningRecord = untrustedConfig_updateLearningRecord;
|
|
3907
3907
|
}
|
|
3908
3908
|
return config;
|
|
3909
3909
|
}
|
|
3910
|
-
function validateAdapterConfig$
|
|
3910
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
3911
3911
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3912
3912
|
return null;
|
|
3913
3913
|
}
|
|
3914
3914
|
if (process.env.NODE_ENV !== 'production') {
|
|
3915
3915
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3916
3916
|
}
|
|
3917
|
-
const config = typeCheckConfig$
|
|
3917
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
3918
3918
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3919
3919
|
return null;
|
|
3920
3920
|
}
|
|
3921
3921
|
return config;
|
|
3922
3922
|
}
|
|
3923
|
-
function buildNetworkSnapshot$
|
|
3924
|
-
const resourceParams = createResourceParams$
|
|
3925
|
-
const request = createResourceRequest$
|
|
3923
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
3924
|
+
const resourceParams = createResourceParams$h(config);
|
|
3925
|
+
const request = createResourceRequest$h(resourceParams);
|
|
3926
3926
|
return luvio.dispatchResourceRequest(request, options)
|
|
3927
3927
|
.then((response) => {
|
|
3928
3928
|
return luvio.handleSuccessResponse(() => {
|
|
3929
|
-
const snapshot = ingestSuccess$
|
|
3929
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response);
|
|
3930
3930
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3931
3931
|
}, () => {
|
|
3932
3932
|
const cache = new StoreKeyMap();
|
|
3933
|
-
getResponseCacheKeys$
|
|
3933
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
3934
3934
|
return cache;
|
|
3935
3935
|
});
|
|
3936
3936
|
}, (response) => {
|
|
@@ -3940,16 +3940,16 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
3940
3940
|
}
|
|
3941
3941
|
const updateLearningAdapterFactory = (luvio) => {
|
|
3942
3942
|
return function updateLearning(untrustedConfig) {
|
|
3943
|
-
const config = validateAdapterConfig$
|
|
3943
|
+
const config = validateAdapterConfig$h(untrustedConfig, updateLearning_ConfigPropertyNames);
|
|
3944
3944
|
// Invalid or incomplete config
|
|
3945
3945
|
if (config === null) {
|
|
3946
3946
|
throw new Error('Invalid config for "updateLearning"');
|
|
3947
3947
|
}
|
|
3948
|
-
return buildNetworkSnapshot$
|
|
3948
|
+
return buildNetworkSnapshot$h(luvio, config);
|
|
3949
3949
|
};
|
|
3950
3950
|
};
|
|
3951
3951
|
|
|
3952
|
-
function validate$
|
|
3952
|
+
function validate$P(obj, path = 'Requirement') {
|
|
3953
3953
|
const v_error = (() => {
|
|
3954
3954
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3955
3955
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3968,7 +3968,7 @@ function validate$N(obj, path = 'Requirement') {
|
|
|
3968
3968
|
return v_error === undefined ? null : v_error;
|
|
3969
3969
|
}
|
|
3970
3970
|
|
|
3971
|
-
function validate$
|
|
3971
|
+
function validate$O(obj, path = 'LearningProgramPlanInputRepresentation') {
|
|
3972
3972
|
const v_error = (() => {
|
|
3973
3973
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3974
3974
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3986,7 +3986,7 @@ function validate$M(obj, path = 'LearningProgramPlanInputRepresentation') {
|
|
|
3986
3986
|
for (let i = 0; i < obj_requirement.length; i++) {
|
|
3987
3987
|
const obj_requirement_item = obj_requirement[i];
|
|
3988
3988
|
const path_requirement_item = path_requirement + '[' + i + ']';
|
|
3989
|
-
const referencepath_requirement_itemValidationError = validate$
|
|
3989
|
+
const referencepath_requirement_itemValidationError = validate$P(obj_requirement_item, path_requirement_item);
|
|
3990
3990
|
if (referencepath_requirement_itemValidationError !== null) {
|
|
3991
3991
|
let message = 'Object doesn\'t match Requirement (at "' + path_requirement_item + '")\n';
|
|
3992
3992
|
message += referencepath_requirement_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3997,9 +3997,9 @@ function validate$M(obj, path = 'LearningProgramPlanInputRepresentation') {
|
|
|
3997
3997
|
return v_error === undefined ? null : v_error;
|
|
3998
3998
|
}
|
|
3999
3999
|
|
|
4000
|
-
const TTL$
|
|
4001
|
-
const VERSION$
|
|
4002
|
-
function validate$
|
|
4000
|
+
const TTL$5 = 100;
|
|
4001
|
+
const VERSION$s = "0218a0ed0a2278eb0405096372ffa5de";
|
|
4002
|
+
function validate$N(obj, path = 'LearningProgramPlanOutputRepresentation') {
|
|
4003
4003
|
const v_error = (() => {
|
|
4004
4004
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4005
4005
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4012,68 +4012,68 @@ function validate$L(obj, path = 'LearningProgramPlanOutputRepresentation') {
|
|
|
4012
4012
|
})();
|
|
4013
4013
|
return v_error === undefined ? null : v_error;
|
|
4014
4014
|
}
|
|
4015
|
-
const RepresentationType$
|
|
4016
|
-
function keyBuilder$
|
|
4017
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4015
|
+
const RepresentationType$f = 'LearningProgramPlanOutputRepresentation';
|
|
4016
|
+
function keyBuilder$q(luvio, config) {
|
|
4017
|
+
return keyPrefix + '::' + RepresentationType$f + ':' + config.id;
|
|
4018
4018
|
}
|
|
4019
4019
|
function keyBuilderFromType$4(luvio, object) {
|
|
4020
4020
|
const keyParams = {
|
|
4021
4021
|
id: object.learningProgramPlanId
|
|
4022
4022
|
};
|
|
4023
|
-
return keyBuilder$
|
|
4023
|
+
return keyBuilder$q(luvio, keyParams);
|
|
4024
4024
|
}
|
|
4025
|
-
function normalize$
|
|
4025
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
4026
4026
|
return input;
|
|
4027
4027
|
}
|
|
4028
|
-
const select$
|
|
4028
|
+
const select$J = function LearningProgramPlanOutputRepresentationSelect() {
|
|
4029
4029
|
return {
|
|
4030
4030
|
kind: 'Fragment',
|
|
4031
|
-
version: VERSION$
|
|
4031
|
+
version: VERSION$s,
|
|
4032
4032
|
private: [],
|
|
4033
4033
|
opaque: true
|
|
4034
4034
|
};
|
|
4035
4035
|
};
|
|
4036
|
-
function equals$
|
|
4036
|
+
function equals$s(existing, incoming) {
|
|
4037
4037
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4038
4038
|
return false;
|
|
4039
4039
|
}
|
|
4040
4040
|
return true;
|
|
4041
4041
|
}
|
|
4042
|
-
const ingest$
|
|
4042
|
+
const ingest$f = function LearningProgramPlanOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4043
4043
|
if (process.env.NODE_ENV !== 'production') {
|
|
4044
|
-
const validateError = validate$
|
|
4044
|
+
const validateError = validate$N(input);
|
|
4045
4045
|
if (validateError !== null) {
|
|
4046
4046
|
throw validateError;
|
|
4047
4047
|
}
|
|
4048
4048
|
}
|
|
4049
4049
|
const key = keyBuilderFromType$4(luvio, input);
|
|
4050
|
-
const ttlToUse = TTL$
|
|
4051
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4050
|
+
const ttlToUse = TTL$5;
|
|
4051
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "education", VERSION$s, RepresentationType$f, equals$s);
|
|
4052
4052
|
return createLink(key);
|
|
4053
4053
|
};
|
|
4054
|
-
function getTypeCacheKeys$
|
|
4054
|
+
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
4055
4055
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4056
4056
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
4057
4057
|
rootKeySet.set(rootKey, {
|
|
4058
4058
|
namespace: keyPrefix,
|
|
4059
|
-
representationName: RepresentationType$
|
|
4059
|
+
representationName: RepresentationType$f,
|
|
4060
4060
|
mergeable: false
|
|
4061
4061
|
});
|
|
4062
4062
|
}
|
|
4063
4063
|
|
|
4064
|
-
function select$
|
|
4065
|
-
return select$
|
|
4064
|
+
function select$I(luvio, params) {
|
|
4065
|
+
return select$J();
|
|
4066
4066
|
}
|
|
4067
|
-
function getResponseCacheKeys$
|
|
4068
|
-
getTypeCacheKeys$
|
|
4067
|
+
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
4068
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
4069
4069
|
}
|
|
4070
|
-
function ingestSuccess$
|
|
4070
|
+
function ingestSuccess$g(luvio, resourceParams, response) {
|
|
4071
4071
|
const { body } = response;
|
|
4072
4072
|
const key = keyBuilderFromType$4(luvio, body);
|
|
4073
|
-
luvio.storeIngest(key, ingest$
|
|
4073
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
4074
4074
|
const snapshot = luvio.storeLookup({
|
|
4075
4075
|
recordId: key,
|
|
4076
|
-
node: select$
|
|
4076
|
+
node: select$I(),
|
|
4077
4077
|
variables: {},
|
|
4078
4078
|
});
|
|
4079
4079
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4084,7 +4084,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
|
|
|
4084
4084
|
deepFreeze(snapshot.data);
|
|
4085
4085
|
return snapshot;
|
|
4086
4086
|
}
|
|
4087
|
-
function createResourceRequest$
|
|
4087
|
+
function createResourceRequest$g(config) {
|
|
4088
4088
|
const headers = {};
|
|
4089
4089
|
return {
|
|
4090
4090
|
baseUri: '/services/data/v62.0',
|
|
@@ -4098,45 +4098,45 @@ function createResourceRequest$f(config) {
|
|
|
4098
4098
|
};
|
|
4099
4099
|
}
|
|
4100
4100
|
|
|
4101
|
-
const adapterName$
|
|
4101
|
+
const adapterName$g = 'postPublishLearningProgramPlan';
|
|
4102
4102
|
const postPublishLearningProgramPlan_ConfigPropertyMetadata = [
|
|
4103
4103
|
generateParamConfigMetadata('publishLearningProgramPlan', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4104
4104
|
];
|
|
4105
|
-
const postPublishLearningProgramPlan_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4106
|
-
const createResourceParams$
|
|
4107
|
-
function typeCheckConfig$
|
|
4105
|
+
const postPublishLearningProgramPlan_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, postPublishLearningProgramPlan_ConfigPropertyMetadata);
|
|
4106
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$o(postPublishLearningProgramPlan_ConfigPropertyMetadata);
|
|
4107
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
4108
4108
|
const config = {};
|
|
4109
4109
|
const untrustedConfig_publishLearningProgramPlan = untrustedConfig.publishLearningProgramPlan;
|
|
4110
|
-
const referenceLearningProgramPlanInputRepresentationValidationError = validate$
|
|
4110
|
+
const referenceLearningProgramPlanInputRepresentationValidationError = validate$O(untrustedConfig_publishLearningProgramPlan);
|
|
4111
4111
|
if (referenceLearningProgramPlanInputRepresentationValidationError === null) {
|
|
4112
4112
|
config.publishLearningProgramPlan = untrustedConfig_publishLearningProgramPlan;
|
|
4113
4113
|
}
|
|
4114
4114
|
return config;
|
|
4115
4115
|
}
|
|
4116
|
-
function validateAdapterConfig$
|
|
4116
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
4117
4117
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4118
4118
|
return null;
|
|
4119
4119
|
}
|
|
4120
4120
|
if (process.env.NODE_ENV !== 'production') {
|
|
4121
4121
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4122
4122
|
}
|
|
4123
|
-
const config = typeCheckConfig$
|
|
4123
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
4124
4124
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4125
4125
|
return null;
|
|
4126
4126
|
}
|
|
4127
4127
|
return config;
|
|
4128
4128
|
}
|
|
4129
|
-
function buildNetworkSnapshot$
|
|
4130
|
-
const resourceParams = createResourceParams$
|
|
4131
|
-
const request = createResourceRequest$
|
|
4129
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
4130
|
+
const resourceParams = createResourceParams$g(config);
|
|
4131
|
+
const request = createResourceRequest$g(resourceParams);
|
|
4132
4132
|
return luvio.dispatchResourceRequest(request, options)
|
|
4133
4133
|
.then((response) => {
|
|
4134
4134
|
return luvio.handleSuccessResponse(() => {
|
|
4135
|
-
const snapshot = ingestSuccess$
|
|
4135
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response);
|
|
4136
4136
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4137
4137
|
}, () => {
|
|
4138
4138
|
const cache = new StoreKeyMap();
|
|
4139
|
-
getResponseCacheKeys$
|
|
4139
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
|
|
4140
4140
|
return cache;
|
|
4141
4141
|
});
|
|
4142
4142
|
}, (response) => {
|
|
@@ -4146,17 +4146,17 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
4146
4146
|
}
|
|
4147
4147
|
const postPublishLearningProgramPlanAdapterFactory = (luvio) => {
|
|
4148
4148
|
return function postPublishLearningProgramPlan(untrustedConfig) {
|
|
4149
|
-
const config = validateAdapterConfig$
|
|
4149
|
+
const config = validateAdapterConfig$g(untrustedConfig, postPublishLearningProgramPlan_ConfigPropertyNames);
|
|
4150
4150
|
// Invalid or incomplete config
|
|
4151
4151
|
if (config === null) {
|
|
4152
4152
|
throw new Error('Invalid config for "postPublishLearningProgramPlan"');
|
|
4153
4153
|
}
|
|
4154
|
-
return buildNetworkSnapshot$
|
|
4154
|
+
return buildNetworkSnapshot$g(luvio, config);
|
|
4155
4155
|
};
|
|
4156
4156
|
};
|
|
4157
4157
|
|
|
4158
|
-
const VERSION$
|
|
4159
|
-
function validate$
|
|
4158
|
+
const VERSION$r = "201f86357276cc8ed2ee9d7f51616b64";
|
|
4159
|
+
function validate$M(obj, path = 'PreviewLearningProgramPlanOutputRepresentation') {
|
|
4160
4160
|
const v_error = (() => {
|
|
4161
4161
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4162
4162
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4189,7 +4189,7 @@ function validate$K(obj, path = 'PreviewLearningProgramPlanOutputRepresentation'
|
|
|
4189
4189
|
for (let i = 0; i < obj_programPlanRequirements.length; i++) {
|
|
4190
4190
|
const obj_programPlanRequirements_item = obj_programPlanRequirements[i];
|
|
4191
4191
|
const path_programPlanRequirements_item = path_programPlanRequirements + '[' + i + ']';
|
|
4192
|
-
const referencepath_programPlanRequirements_itemValidationError = validate$
|
|
4192
|
+
const referencepath_programPlanRequirements_itemValidationError = validate$W(obj_programPlanRequirements_item, path_programPlanRequirements_item);
|
|
4193
4193
|
if (referencepath_programPlanRequirements_itemValidationError !== null) {
|
|
4194
4194
|
let message = 'Object doesn\'t match LearningProgramPlanRequirementOutput (at "' + path_programPlanRequirements_item + '")\n';
|
|
4195
4195
|
message += referencepath_programPlanRequirements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4200,15 +4200,15 @@ function validate$K(obj, path = 'PreviewLearningProgramPlanOutputRepresentation'
|
|
|
4200
4200
|
})();
|
|
4201
4201
|
return v_error === undefined ? null : v_error;
|
|
4202
4202
|
}
|
|
4203
|
-
const RepresentationType$
|
|
4204
|
-
function normalize$
|
|
4203
|
+
const RepresentationType$e = 'PreviewLearningProgramPlanOutputRepresentation';
|
|
4204
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
4205
4205
|
return input;
|
|
4206
4206
|
}
|
|
4207
|
-
const select$
|
|
4208
|
-
const { selections: LearningProgramPlanRequirementOutput__selections, opaque: LearningProgramPlanRequirementOutput__opaque, } = select$
|
|
4207
|
+
const select$H = function PreviewLearningProgramPlanOutputRepresentationSelect() {
|
|
4208
|
+
const { selections: LearningProgramPlanRequirementOutput__selections, opaque: LearningProgramPlanRequirementOutput__opaque, } = select$R();
|
|
4209
4209
|
return {
|
|
4210
4210
|
kind: 'Fragment',
|
|
4211
|
-
version: VERSION$
|
|
4211
|
+
version: VERSION$r,
|
|
4212
4212
|
private: [],
|
|
4213
4213
|
selections: [
|
|
4214
4214
|
{
|
|
@@ -4235,7 +4235,7 @@ const select$F = function PreviewLearningProgramPlanOutputRepresentationSelect()
|
|
|
4235
4235
|
]
|
|
4236
4236
|
};
|
|
4237
4237
|
};
|
|
4238
|
-
function equals$
|
|
4238
|
+
function equals$r(existing, incoming) {
|
|
4239
4239
|
const existing_description = existing.description;
|
|
4240
4240
|
const incoming_description = incoming.description;
|
|
4241
4241
|
// if at least one of these optionals is defined
|
|
@@ -4277,7 +4277,7 @@ function equals$q(existing, incoming) {
|
|
|
4277
4277
|
return false;
|
|
4278
4278
|
}
|
|
4279
4279
|
const equals_programPlanRequirements_items = equalsArray(existing_programPlanRequirements, incoming_programPlanRequirements, (existing_programPlanRequirements_item, incoming_programPlanRequirements_item) => {
|
|
4280
|
-
if (!(equals$
|
|
4280
|
+
if (!(equals$x(existing_programPlanRequirements_item, incoming_programPlanRequirements_item))) {
|
|
4281
4281
|
return false;
|
|
4282
4282
|
}
|
|
4283
4283
|
});
|
|
@@ -4287,44 +4287,44 @@ function equals$q(existing, incoming) {
|
|
|
4287
4287
|
}
|
|
4288
4288
|
return true;
|
|
4289
4289
|
}
|
|
4290
|
-
const ingest$
|
|
4290
|
+
const ingest$e = function PreviewLearningProgramPlanOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4291
4291
|
if (process.env.NODE_ENV !== 'production') {
|
|
4292
|
-
const validateError = validate$
|
|
4292
|
+
const validateError = validate$M(input);
|
|
4293
4293
|
if (validateError !== null) {
|
|
4294
4294
|
throw validateError;
|
|
4295
4295
|
}
|
|
4296
4296
|
}
|
|
4297
4297
|
const key = path.fullPath;
|
|
4298
4298
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
4299
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4299
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "education", VERSION$r, RepresentationType$e, equals$r);
|
|
4300
4300
|
return createLink(key);
|
|
4301
4301
|
};
|
|
4302
|
-
function getTypeCacheKeys$
|
|
4302
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
4303
4303
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4304
4304
|
const rootKey = fullPathFactory();
|
|
4305
4305
|
rootKeySet.set(rootKey, {
|
|
4306
4306
|
namespace: keyPrefix,
|
|
4307
|
-
representationName: RepresentationType$
|
|
4307
|
+
representationName: RepresentationType$e,
|
|
4308
4308
|
mergeable: false
|
|
4309
4309
|
});
|
|
4310
4310
|
}
|
|
4311
4311
|
|
|
4312
|
-
function select$
|
|
4313
|
-
return select$
|
|
4312
|
+
function select$G(luvio, params) {
|
|
4313
|
+
return select$H();
|
|
4314
4314
|
}
|
|
4315
|
-
function keyBuilder$
|
|
4315
|
+
function keyBuilder$p(luvio, params) {
|
|
4316
4316
|
return keyPrefix + '::PreviewLearningProgramPlanOutputRepresentation:(' + 'learningProgramPlanId:' + params.urlParams.learningProgramPlanId + ')';
|
|
4317
4317
|
}
|
|
4318
|
-
function getResponseCacheKeys$
|
|
4319
|
-
getTypeCacheKeys$
|
|
4318
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
4319
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response, () => keyBuilder$p(luvio, resourceParams));
|
|
4320
4320
|
}
|
|
4321
|
-
function ingestSuccess$
|
|
4321
|
+
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
4322
4322
|
const { body } = response;
|
|
4323
|
-
const key = keyBuilder$
|
|
4324
|
-
luvio.storeIngest(key, ingest$
|
|
4323
|
+
const key = keyBuilder$p(luvio, resourceParams);
|
|
4324
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
4325
4325
|
const snapshot = luvio.storeLookup({
|
|
4326
4326
|
recordId: key,
|
|
4327
|
-
node: select$
|
|
4327
|
+
node: select$G(),
|
|
4328
4328
|
variables: {},
|
|
4329
4329
|
}, snapshotRefresh);
|
|
4330
4330
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4335,13 +4335,13 @@ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4335
4335
|
deepFreeze(snapshot.data);
|
|
4336
4336
|
return snapshot;
|
|
4337
4337
|
}
|
|
4338
|
-
function ingestError$
|
|
4339
|
-
const key = keyBuilder$
|
|
4338
|
+
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
4339
|
+
const key = keyBuilder$p(luvio, params);
|
|
4340
4340
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4341
4341
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4342
4342
|
return errorSnapshot;
|
|
4343
4343
|
}
|
|
4344
|
-
function createResourceRequest$
|
|
4344
|
+
function createResourceRequest$f(config) {
|
|
4345
4345
|
const headers = {};
|
|
4346
4346
|
return {
|
|
4347
4347
|
baseUri: '/services/data/v62.0',
|
|
@@ -4355,93 +4355,93 @@ function createResourceRequest$e(config) {
|
|
|
4355
4355
|
};
|
|
4356
4356
|
}
|
|
4357
4357
|
|
|
4358
|
-
const adapterName$
|
|
4358
|
+
const adapterName$f = 'getPreviewLearningProgramPlan';
|
|
4359
4359
|
const getPreviewLearningProgramPlan_ConfigPropertyMetadata = [
|
|
4360
4360
|
generateParamConfigMetadata('learningProgramPlanId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4361
4361
|
];
|
|
4362
|
-
const getPreviewLearningProgramPlan_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4363
|
-
const createResourceParams$
|
|
4364
|
-
function keyBuilder$
|
|
4365
|
-
const resourceParams = createResourceParams$
|
|
4366
|
-
return keyBuilder$
|
|
4362
|
+
const getPreviewLearningProgramPlan_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getPreviewLearningProgramPlan_ConfigPropertyMetadata);
|
|
4363
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$o(getPreviewLearningProgramPlan_ConfigPropertyMetadata);
|
|
4364
|
+
function keyBuilder$o(luvio, config) {
|
|
4365
|
+
const resourceParams = createResourceParams$f(config);
|
|
4366
|
+
return keyBuilder$p(luvio, resourceParams);
|
|
4367
4367
|
}
|
|
4368
|
-
function typeCheckConfig$
|
|
4368
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
4369
4369
|
const config = {};
|
|
4370
|
-
typeCheckConfig$
|
|
4370
|
+
typeCheckConfig$o(untrustedConfig, config, getPreviewLearningProgramPlan_ConfigPropertyMetadata);
|
|
4371
4371
|
return config;
|
|
4372
4372
|
}
|
|
4373
|
-
function validateAdapterConfig$
|
|
4373
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
4374
4374
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4375
4375
|
return null;
|
|
4376
4376
|
}
|
|
4377
4377
|
if (process.env.NODE_ENV !== 'production') {
|
|
4378
4378
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4379
4379
|
}
|
|
4380
|
-
const config = typeCheckConfig$
|
|
4380
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
4381
4381
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4382
4382
|
return null;
|
|
4383
4383
|
}
|
|
4384
4384
|
return config;
|
|
4385
4385
|
}
|
|
4386
|
-
function adapterFragment$
|
|
4387
|
-
createResourceParams$
|
|
4388
|
-
return select$
|
|
4386
|
+
function adapterFragment$a(luvio, config) {
|
|
4387
|
+
createResourceParams$f(config);
|
|
4388
|
+
return select$G();
|
|
4389
4389
|
}
|
|
4390
|
-
function onFetchResponseSuccess$
|
|
4391
|
-
const snapshot = ingestSuccess$
|
|
4390
|
+
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
4391
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
|
|
4392
4392
|
config,
|
|
4393
|
-
resolve: () => buildNetworkSnapshot$
|
|
4393
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
4394
4394
|
});
|
|
4395
4395
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4396
4396
|
}
|
|
4397
|
-
function onFetchResponseError$
|
|
4398
|
-
const snapshot = ingestError$
|
|
4397
|
+
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
4398
|
+
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
4399
4399
|
config,
|
|
4400
|
-
resolve: () => buildNetworkSnapshot$
|
|
4400
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
4401
4401
|
});
|
|
4402
4402
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4403
4403
|
}
|
|
4404
|
-
function buildNetworkSnapshot$
|
|
4405
|
-
const resourceParams = createResourceParams$
|
|
4406
|
-
const request = createResourceRequest$
|
|
4404
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
4405
|
+
const resourceParams = createResourceParams$f(config);
|
|
4406
|
+
const request = createResourceRequest$f(resourceParams);
|
|
4407
4407
|
return luvio.dispatchResourceRequest(request, options)
|
|
4408
4408
|
.then((response) => {
|
|
4409
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4409
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
4410
4410
|
const cache = new StoreKeyMap();
|
|
4411
|
-
getResponseCacheKeys$
|
|
4411
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
4412
4412
|
return cache;
|
|
4413
4413
|
});
|
|
4414
4414
|
}, (response) => {
|
|
4415
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4415
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
|
|
4416
4416
|
});
|
|
4417
4417
|
}
|
|
4418
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4419
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4418
|
+
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
4419
|
+
return buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
4420
4420
|
}
|
|
4421
|
-
function buildCachedSnapshotCachePolicy$
|
|
4421
|
+
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
4422
4422
|
const { luvio, config } = context;
|
|
4423
4423
|
const selector = {
|
|
4424
|
-
recordId: keyBuilder$
|
|
4425
|
-
node: adapterFragment$
|
|
4424
|
+
recordId: keyBuilder$o(luvio, config),
|
|
4425
|
+
node: adapterFragment$a(luvio, config),
|
|
4426
4426
|
variables: {},
|
|
4427
4427
|
};
|
|
4428
4428
|
const cacheSnapshot = storeLookup(selector, {
|
|
4429
4429
|
config,
|
|
4430
|
-
resolve: () => buildNetworkSnapshot$
|
|
4430
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
4431
4431
|
});
|
|
4432
4432
|
return cacheSnapshot;
|
|
4433
4433
|
}
|
|
4434
4434
|
const getPreviewLearningProgramPlanAdapterFactory = (luvio) => function education__getPreviewLearningProgramPlan(untrustedConfig, requestContext) {
|
|
4435
|
-
const config = validateAdapterConfig$
|
|
4435
|
+
const config = validateAdapterConfig$f(untrustedConfig, getPreviewLearningProgramPlan_ConfigPropertyNames);
|
|
4436
4436
|
// Invalid or incomplete config
|
|
4437
4437
|
if (config === null) {
|
|
4438
4438
|
return null;
|
|
4439
4439
|
}
|
|
4440
4440
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4441
|
-
buildCachedSnapshotCachePolicy$
|
|
4441
|
+
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
4442
4442
|
};
|
|
4443
4443
|
|
|
4444
|
-
function validate$
|
|
4444
|
+
function validate$L(obj, path = 'CarePlanTaskInputRepresentation') {
|
|
4445
4445
|
const v_error = (() => {
|
|
4446
4446
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4447
4447
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4506,7 +4506,7 @@ function validate$J(obj, path = 'CarePlanTaskInputRepresentation') {
|
|
|
4506
4506
|
return v_error === undefined ? null : v_error;
|
|
4507
4507
|
}
|
|
4508
4508
|
|
|
4509
|
-
function validate$
|
|
4509
|
+
function validate$K(obj, path = 'BenefitDisbursementForBenefitSessionInputRepresentation') {
|
|
4510
4510
|
const v_error = (() => {
|
|
4511
4511
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4512
4512
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4560,7 +4560,7 @@ function validate$I(obj, path = 'BenefitDisbursementForBenefitSessionInputRepres
|
|
|
4560
4560
|
return v_error === undefined ? null : v_error;
|
|
4561
4561
|
}
|
|
4562
4562
|
|
|
4563
|
-
function validate$
|
|
4563
|
+
function validate$J(obj, path = 'BenefitDisbursementListInputRepresentation') {
|
|
4564
4564
|
const v_error = (() => {
|
|
4565
4565
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4566
4566
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4573,7 +4573,7 @@ function validate$H(obj, path = 'BenefitDisbursementListInputRepresentation') {
|
|
|
4573
4573
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4574
4574
|
const obj_records_item = obj_records[i];
|
|
4575
4575
|
const path_records_item = path_records + '[' + i + ']';
|
|
4576
|
-
const referencepath_records_itemValidationError = validate$
|
|
4576
|
+
const referencepath_records_itemValidationError = validate$K(obj_records_item, path_records_item);
|
|
4577
4577
|
if (referencepath_records_itemValidationError !== null) {
|
|
4578
4578
|
let message = 'Object doesn\'t match BenefitDisbursementForBenefitSessionInputRepresentation (at "' + path_records_item + '")\n';
|
|
4579
4579
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4584,7 +4584,7 @@ function validate$H(obj, path = 'BenefitDisbursementListInputRepresentation') {
|
|
|
4584
4584
|
return v_error === undefined ? null : v_error;
|
|
4585
4585
|
}
|
|
4586
4586
|
|
|
4587
|
-
function validate$
|
|
4587
|
+
function validate$I(obj, path = 'CustomFieldInputRepresentation') {
|
|
4588
4588
|
const v_error = (() => {
|
|
4589
4589
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4590
4590
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4610,7 +4610,7 @@ function validate$G(obj, path = 'CustomFieldInputRepresentation') {
|
|
|
4610
4610
|
return v_error === undefined ? null : v_error;
|
|
4611
4611
|
}
|
|
4612
4612
|
|
|
4613
|
-
function validate$
|
|
4613
|
+
function validate$H(obj, path = 'CustomFieldListInputRepresentation') {
|
|
4614
4614
|
const v_error = (() => {
|
|
4615
4615
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4616
4616
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4623,7 +4623,7 @@ function validate$F(obj, path = 'CustomFieldListInputRepresentation') {
|
|
|
4623
4623
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4624
4624
|
const obj_records_item = obj_records[i];
|
|
4625
4625
|
const path_records_item = path_records + '[' + i + ']';
|
|
4626
|
-
const referencepath_records_itemValidationError = validate$
|
|
4626
|
+
const referencepath_records_itemValidationError = validate$I(obj_records_item, path_records_item);
|
|
4627
4627
|
if (referencepath_records_itemValidationError !== null) {
|
|
4628
4628
|
let message = 'Object doesn\'t match CustomFieldInputRepresentation (at "' + path_records_item + '")\n';
|
|
4629
4629
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4634,7 +4634,7 @@ function validate$F(obj, path = 'CustomFieldListInputRepresentation') {
|
|
|
4634
4634
|
return v_error === undefined ? null : v_error;
|
|
4635
4635
|
}
|
|
4636
4636
|
|
|
4637
|
-
function validate$
|
|
4637
|
+
function validate$G(obj, path = 'BenefitAssignmentInputRepresentation') {
|
|
4638
4638
|
const v_error = (() => {
|
|
4639
4639
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4640
4640
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4642,7 +4642,7 @@ function validate$E(obj, path = 'BenefitAssignmentInputRepresentation') {
|
|
|
4642
4642
|
if (obj.benefitAssignmentTasks !== undefined) {
|
|
4643
4643
|
const obj_benefitAssignmentTasks = obj.benefitAssignmentTasks;
|
|
4644
4644
|
const path_benefitAssignmentTasks = path + '.benefitAssignmentTasks';
|
|
4645
|
-
const referencepath_benefitAssignmentTasksValidationError = validate$
|
|
4645
|
+
const referencepath_benefitAssignmentTasksValidationError = validate$L(obj_benefitAssignmentTasks, path_benefitAssignmentTasks);
|
|
4646
4646
|
if (referencepath_benefitAssignmentTasksValidationError !== null) {
|
|
4647
4647
|
let message = 'Object doesn\'t match CarePlanTaskInputRepresentation (at "' + path_benefitAssignmentTasks + '")\n';
|
|
4648
4648
|
message += referencepath_benefitAssignmentTasksValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4652,7 +4652,7 @@ function validate$E(obj, path = 'BenefitAssignmentInputRepresentation') {
|
|
|
4652
4652
|
if (obj.benefitDisbursements !== undefined) {
|
|
4653
4653
|
const obj_benefitDisbursements = obj.benefitDisbursements;
|
|
4654
4654
|
const path_benefitDisbursements = path + '.benefitDisbursements';
|
|
4655
|
-
const referencepath_benefitDisbursementsValidationError = validate$
|
|
4655
|
+
const referencepath_benefitDisbursementsValidationError = validate$J(obj_benefitDisbursements, path_benefitDisbursements);
|
|
4656
4656
|
if (referencepath_benefitDisbursementsValidationError !== null) {
|
|
4657
4657
|
let message = 'Object doesn\'t match BenefitDisbursementListInputRepresentation (at "' + path_benefitDisbursements + '")\n';
|
|
4658
4658
|
message += referencepath_benefitDisbursementsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4674,7 +4674,7 @@ function validate$E(obj, path = 'BenefitAssignmentInputRepresentation') {
|
|
|
4674
4674
|
if (obj.customFields !== undefined) {
|
|
4675
4675
|
const obj_customFields = obj.customFields;
|
|
4676
4676
|
const path_customFields = path + '.customFields';
|
|
4677
|
-
const referencepath_customFieldsValidationError = validate$
|
|
4677
|
+
const referencepath_customFieldsValidationError = validate$H(obj_customFields, path_customFields);
|
|
4678
4678
|
if (referencepath_customFieldsValidationError !== null) {
|
|
4679
4679
|
let message = 'Object doesn\'t match CustomFieldListInputRepresentation (at "' + path_customFields + '")\n';
|
|
4680
4680
|
message += referencepath_customFieldsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4745,7 +4745,7 @@ function validate$E(obj, path = 'BenefitAssignmentInputRepresentation') {
|
|
|
4745
4745
|
return v_error === undefined ? null : v_error;
|
|
4746
4746
|
}
|
|
4747
4747
|
|
|
4748
|
-
function validate$
|
|
4748
|
+
function validate$F(obj, path = 'BenefitAssignmentListInputRepresentation') {
|
|
4749
4749
|
const v_error = (() => {
|
|
4750
4750
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4751
4751
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4758,7 +4758,7 @@ function validate$D(obj, path = 'BenefitAssignmentListInputRepresentation') {
|
|
|
4758
4758
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4759
4759
|
const obj_records_item = obj_records[i];
|
|
4760
4760
|
const path_records_item = path_records + '[' + i + ']';
|
|
4761
|
-
const referencepath_records_itemValidationError = validate$
|
|
4761
|
+
const referencepath_records_itemValidationError = validate$G(obj_records_item, path_records_item);
|
|
4762
4762
|
if (referencepath_records_itemValidationError !== null) {
|
|
4763
4763
|
let message = 'Object doesn\'t match BenefitAssignmentInputRepresentation (at "' + path_records_item + '")\n';
|
|
4764
4764
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4769,7 +4769,7 @@ function validate$D(obj, path = 'BenefitAssignmentListInputRepresentation') {
|
|
|
4769
4769
|
return v_error === undefined ? null : v_error;
|
|
4770
4770
|
}
|
|
4771
4771
|
|
|
4772
|
-
function validate$
|
|
4772
|
+
function validate$E(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
4773
4773
|
const v_error = (() => {
|
|
4774
4774
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4775
4775
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4777,7 +4777,7 @@ function validate$C(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
|
4777
4777
|
if (obj.associatedBenefitAssignments !== undefined) {
|
|
4778
4778
|
const obj_associatedBenefitAssignments = obj.associatedBenefitAssignments;
|
|
4779
4779
|
const path_associatedBenefitAssignments = path + '.associatedBenefitAssignments';
|
|
4780
|
-
const referencepath_associatedBenefitAssignmentsValidationError = validate$
|
|
4780
|
+
const referencepath_associatedBenefitAssignmentsValidationError = validate$F(obj_associatedBenefitAssignments, path_associatedBenefitAssignments);
|
|
4781
4781
|
if (referencepath_associatedBenefitAssignmentsValidationError !== null) {
|
|
4782
4782
|
let message = 'Object doesn\'t match BenefitAssignmentListInputRepresentation (at "' + path_associatedBenefitAssignments + '")\n';
|
|
4783
4783
|
message += referencepath_associatedBenefitAssignmentsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4787,7 +4787,7 @@ function validate$C(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
|
4787
4787
|
if (obj.associatedSubGoalAssignments !== undefined) {
|
|
4788
4788
|
const obj_associatedSubGoalAssignments = obj.associatedSubGoalAssignments;
|
|
4789
4789
|
const path_associatedSubGoalAssignments = path + '.associatedSubGoalAssignments';
|
|
4790
|
-
const referencepath_associatedSubGoalAssignmentsValidationError = validate$
|
|
4790
|
+
const referencepath_associatedSubGoalAssignmentsValidationError = validate$D(obj_associatedSubGoalAssignments, path_associatedSubGoalAssignments);
|
|
4791
4791
|
if (referencepath_associatedSubGoalAssignmentsValidationError !== null) {
|
|
4792
4792
|
let message = 'Object doesn\'t match GoalAssignmentListInputRepresentation (at "' + path_associatedSubGoalAssignments + '")\n';
|
|
4793
4793
|
message += referencepath_associatedSubGoalAssignmentsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4807,7 +4807,7 @@ function validate$C(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
|
4807
4807
|
if (obj.customFields !== undefined) {
|
|
4808
4808
|
const obj_customFields = obj.customFields;
|
|
4809
4809
|
const path_customFields = path + '.customFields';
|
|
4810
|
-
const referencepath_customFieldsValidationError = validate$
|
|
4810
|
+
const referencepath_customFieldsValidationError = validate$H(obj_customFields, path_customFields);
|
|
4811
4811
|
if (referencepath_customFieldsValidationError !== null) {
|
|
4812
4812
|
let message = 'Object doesn\'t match CustomFieldListInputRepresentation (at "' + path_customFields + '")\n';
|
|
4813
4813
|
message += referencepath_customFieldsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4831,7 +4831,7 @@ function validate$C(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
|
4831
4831
|
if (obj.goalAssignmentTasks !== undefined) {
|
|
4832
4832
|
const obj_goalAssignmentTasks = obj.goalAssignmentTasks;
|
|
4833
4833
|
const path_goalAssignmentTasks = path + '.goalAssignmentTasks';
|
|
4834
|
-
const referencepath_goalAssignmentTasksValidationError = validate$
|
|
4834
|
+
const referencepath_goalAssignmentTasksValidationError = validate$L(obj_goalAssignmentTasks, path_goalAssignmentTasks);
|
|
4835
4835
|
if (referencepath_goalAssignmentTasksValidationError !== null) {
|
|
4836
4836
|
let message = 'Object doesn\'t match CarePlanTaskInputRepresentation (at "' + path_goalAssignmentTasks + '")\n';
|
|
4837
4837
|
message += referencepath_goalAssignmentTasksValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4882,7 +4882,7 @@ function validate$C(obj, path = 'GoalAssignmentInputRepresentation') {
|
|
|
4882
4882
|
return v_error === undefined ? null : v_error;
|
|
4883
4883
|
}
|
|
4884
4884
|
|
|
4885
|
-
function validate$
|
|
4885
|
+
function validate$D(obj, path = 'GoalAssignmentListInputRepresentation') {
|
|
4886
4886
|
const v_error = (() => {
|
|
4887
4887
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4888
4888
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4895,7 +4895,7 @@ function validate$B(obj, path = 'GoalAssignmentListInputRepresentation') {
|
|
|
4895
4895
|
for (let i = 0; i < obj_records.length; i++) {
|
|
4896
4896
|
const obj_records_item = obj_records[i];
|
|
4897
4897
|
const path_records_item = path_records + '[' + i + ']';
|
|
4898
|
-
const referencepath_records_itemValidationError = validate$
|
|
4898
|
+
const referencepath_records_itemValidationError = validate$E(obj_records_item, path_records_item);
|
|
4899
4899
|
if (referencepath_records_itemValidationError !== null) {
|
|
4900
4900
|
let message = 'Object doesn\'t match GoalAssignmentInputRepresentation (at "' + path_records_item + '")\n';
|
|
4901
4901
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4906,7 +4906,7 @@ function validate$B(obj, path = 'GoalAssignmentListInputRepresentation') {
|
|
|
4906
4906
|
return v_error === undefined ? null : v_error;
|
|
4907
4907
|
}
|
|
4908
4908
|
|
|
4909
|
-
function validate$
|
|
4909
|
+
function validate$C(obj, path = 'CarePlanInputRepresentation') {
|
|
4910
4910
|
const v_error = (() => {
|
|
4911
4911
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4912
4912
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4914,7 +4914,7 @@ function validate$A(obj, path = 'CarePlanInputRepresentation') {
|
|
|
4914
4914
|
if (obj.benefitAssignments !== undefined) {
|
|
4915
4915
|
const obj_benefitAssignments = obj.benefitAssignments;
|
|
4916
4916
|
const path_benefitAssignments = path + '.benefitAssignments';
|
|
4917
|
-
const referencepath_benefitAssignmentsValidationError = validate$
|
|
4917
|
+
const referencepath_benefitAssignmentsValidationError = validate$F(obj_benefitAssignments, path_benefitAssignments);
|
|
4918
4918
|
if (referencepath_benefitAssignmentsValidationError !== null) {
|
|
4919
4919
|
let message = 'Object doesn\'t match BenefitAssignmentListInputRepresentation (at "' + path_benefitAssignments + '")\n';
|
|
4920
4920
|
message += referencepath_benefitAssignmentsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4924,7 +4924,7 @@ function validate$A(obj, path = 'CarePlanInputRepresentation') {
|
|
|
4924
4924
|
if (obj.carePlanTasks !== undefined) {
|
|
4925
4925
|
const obj_carePlanTasks = obj.carePlanTasks;
|
|
4926
4926
|
const path_carePlanTasks = path + '.carePlanTasks';
|
|
4927
|
-
const referencepath_carePlanTasksValidationError = validate$
|
|
4927
|
+
const referencepath_carePlanTasksValidationError = validate$L(obj_carePlanTasks, path_carePlanTasks);
|
|
4928
4928
|
if (referencepath_carePlanTasksValidationError !== null) {
|
|
4929
4929
|
let message = 'Object doesn\'t match CarePlanTaskInputRepresentation (at "' + path_carePlanTasks + '")\n';
|
|
4930
4930
|
message += referencepath_carePlanTasksValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4946,7 +4946,7 @@ function validate$A(obj, path = 'CarePlanInputRepresentation') {
|
|
|
4946
4946
|
if (obj.customFields !== undefined) {
|
|
4947
4947
|
const obj_customFields = obj.customFields;
|
|
4948
4948
|
const path_customFields = path + '.customFields';
|
|
4949
|
-
const referencepath_customFieldsValidationError = validate$
|
|
4949
|
+
const referencepath_customFieldsValidationError = validate$H(obj_customFields, path_customFields);
|
|
4950
4950
|
if (referencepath_customFieldsValidationError !== null) {
|
|
4951
4951
|
let message = 'Object doesn\'t match CustomFieldListInputRepresentation (at "' + path_customFields + '")\n';
|
|
4952
4952
|
message += referencepath_customFieldsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4970,7 +4970,7 @@ function validate$A(obj, path = 'CarePlanInputRepresentation') {
|
|
|
4970
4970
|
if (obj.goalAssignments !== undefined) {
|
|
4971
4971
|
const obj_goalAssignments = obj.goalAssignments;
|
|
4972
4972
|
const path_goalAssignments = path + '.goalAssignments';
|
|
4973
|
-
const referencepath_goalAssignmentsValidationError = validate$
|
|
4973
|
+
const referencepath_goalAssignmentsValidationError = validate$D(obj_goalAssignments, path_goalAssignments);
|
|
4974
4974
|
if (referencepath_goalAssignmentsValidationError !== null) {
|
|
4975
4975
|
let message = 'Object doesn\'t match GoalAssignmentListInputRepresentation (at "' + path_goalAssignments + '")\n';
|
|
4976
4976
|
message += referencepath_goalAssignmentsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5017,7 +5017,7 @@ function validate$A(obj, path = 'CarePlanInputRepresentation') {
|
|
|
5017
5017
|
return v_error === undefined ? null : v_error;
|
|
5018
5018
|
}
|
|
5019
5019
|
|
|
5020
|
-
function validate$
|
|
5020
|
+
function validate$B(obj, path = 'CarePlanListInputRepresentation') {
|
|
5021
5021
|
const v_error = (() => {
|
|
5022
5022
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5023
5023
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5030,7 +5030,7 @@ function validate$z(obj, path = 'CarePlanListInputRepresentation') {
|
|
|
5030
5030
|
for (let i = 0; i < obj_records.length; i++) {
|
|
5031
5031
|
const obj_records_item = obj_records[i];
|
|
5032
5032
|
const path_records_item = path_records + '[' + i + ']';
|
|
5033
|
-
const referencepath_records_itemValidationError = validate$
|
|
5033
|
+
const referencepath_records_itemValidationError = validate$C(obj_records_item, path_records_item);
|
|
5034
5034
|
if (referencepath_records_itemValidationError !== null) {
|
|
5035
5035
|
let message = 'Object doesn\'t match CarePlanInputRepresentation (at "' + path_records_item + '")\n';
|
|
5036
5036
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5041,14 +5041,14 @@ function validate$z(obj, path = 'CarePlanListInputRepresentation') {
|
|
|
5041
5041
|
return v_error === undefined ? null : v_error;
|
|
5042
5042
|
}
|
|
5043
5043
|
|
|
5044
|
-
function validate$
|
|
5044
|
+
function validate$A(obj, path = 'CarePlanBulkInputRepresentation') {
|
|
5045
5045
|
const v_error = (() => {
|
|
5046
5046
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5047
5047
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5048
5048
|
}
|
|
5049
5049
|
const obj_carePlans = obj.carePlans;
|
|
5050
5050
|
const path_carePlans = path + '.carePlans';
|
|
5051
|
-
const referencepath_carePlansValidationError = validate$
|
|
5051
|
+
const referencepath_carePlansValidationError = validate$B(obj_carePlans, path_carePlans);
|
|
5052
5052
|
if (referencepath_carePlansValidationError !== null) {
|
|
5053
5053
|
let message = 'Object doesn\'t match CarePlanListInputRepresentation (at "' + path_carePlans + '")\n';
|
|
5054
5054
|
message += referencepath_carePlansValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5058,9 +5058,9 @@ function validate$y(obj, path = 'CarePlanBulkInputRepresentation') {
|
|
|
5058
5058
|
return v_error === undefined ? null : v_error;
|
|
5059
5059
|
}
|
|
5060
5060
|
|
|
5061
|
-
const TTL$
|
|
5062
|
-
const VERSION$
|
|
5063
|
-
function validate$
|
|
5061
|
+
const TTL$4 = 100;
|
|
5062
|
+
const VERSION$q = "83a45266096a71720e9049cb0f0477d6";
|
|
5063
|
+
function validate$z(obj, path = 'CarePlanBulkOutputRepresentation') {
|
|
5064
5064
|
const v_error = (() => {
|
|
5065
5065
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5066
5066
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5087,68 +5087,68 @@ function validate$x(obj, path = 'CarePlanBulkOutputRepresentation') {
|
|
|
5087
5087
|
})();
|
|
5088
5088
|
return v_error === undefined ? null : v_error;
|
|
5089
5089
|
}
|
|
5090
|
-
const RepresentationType$
|
|
5091
|
-
function keyBuilder$
|
|
5092
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5090
|
+
const RepresentationType$d = 'CarePlanBulkOutputRepresentation';
|
|
5091
|
+
function keyBuilder$n(luvio, config) {
|
|
5092
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.id;
|
|
5093
5093
|
}
|
|
5094
5094
|
function keyBuilderFromType$3(luvio, object) {
|
|
5095
5095
|
const keyParams = {
|
|
5096
5096
|
id: object.statusCode
|
|
5097
5097
|
};
|
|
5098
|
-
return keyBuilder$
|
|
5098
|
+
return keyBuilder$n(luvio, keyParams);
|
|
5099
5099
|
}
|
|
5100
|
-
function normalize$
|
|
5100
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
5101
5101
|
return input;
|
|
5102
5102
|
}
|
|
5103
|
-
const select$
|
|
5103
|
+
const select$F = function CarePlanBulkOutputRepresentationSelect() {
|
|
5104
5104
|
return {
|
|
5105
5105
|
kind: 'Fragment',
|
|
5106
|
-
version: VERSION$
|
|
5106
|
+
version: VERSION$q,
|
|
5107
5107
|
private: [],
|
|
5108
5108
|
opaque: true
|
|
5109
5109
|
};
|
|
5110
5110
|
};
|
|
5111
|
-
function equals$
|
|
5111
|
+
function equals$q(existing, incoming) {
|
|
5112
5112
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5113
5113
|
return false;
|
|
5114
5114
|
}
|
|
5115
5115
|
return true;
|
|
5116
5116
|
}
|
|
5117
|
-
const ingest$
|
|
5117
|
+
const ingest$d = function CarePlanBulkOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5118
5118
|
if (process.env.NODE_ENV !== 'production') {
|
|
5119
|
-
const validateError = validate$
|
|
5119
|
+
const validateError = validate$z(input);
|
|
5120
5120
|
if (validateError !== null) {
|
|
5121
5121
|
throw validateError;
|
|
5122
5122
|
}
|
|
5123
5123
|
}
|
|
5124
5124
|
const key = keyBuilderFromType$3(luvio, input);
|
|
5125
|
-
const ttlToUse = TTL$
|
|
5126
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5125
|
+
const ttlToUse = TTL$4;
|
|
5126
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "education", VERSION$q, RepresentationType$d, equals$q);
|
|
5127
5127
|
return createLink(key);
|
|
5128
5128
|
};
|
|
5129
|
-
function getTypeCacheKeys$
|
|
5129
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
5130
5130
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5131
5131
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
5132
5132
|
rootKeySet.set(rootKey, {
|
|
5133
5133
|
namespace: keyPrefix,
|
|
5134
|
-
representationName: RepresentationType$
|
|
5134
|
+
representationName: RepresentationType$d,
|
|
5135
5135
|
mergeable: false
|
|
5136
5136
|
});
|
|
5137
5137
|
}
|
|
5138
5138
|
|
|
5139
|
-
function select$
|
|
5140
|
-
return select$
|
|
5139
|
+
function select$E(luvio, params) {
|
|
5140
|
+
return select$F();
|
|
5141
5141
|
}
|
|
5142
|
-
function getResponseCacheKeys$
|
|
5143
|
-
getTypeCacheKeys$
|
|
5142
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
5143
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
5144
5144
|
}
|
|
5145
|
-
function ingestSuccess$
|
|
5145
|
+
function ingestSuccess$e(luvio, resourceParams, response) {
|
|
5146
5146
|
const { body } = response;
|
|
5147
5147
|
const key = keyBuilderFromType$3(luvio, body);
|
|
5148
|
-
luvio.storeIngest(key, ingest$
|
|
5148
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
5149
5149
|
const snapshot = luvio.storeLookup({
|
|
5150
5150
|
recordId: key,
|
|
5151
|
-
node: select$
|
|
5151
|
+
node: select$E(),
|
|
5152
5152
|
variables: {},
|
|
5153
5153
|
});
|
|
5154
5154
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5159,7 +5159,7 @@ function ingestSuccess$d(luvio, resourceParams, response) {
|
|
|
5159
5159
|
deepFreeze(snapshot.data);
|
|
5160
5160
|
return snapshot;
|
|
5161
5161
|
}
|
|
5162
|
-
function createResourceRequest$
|
|
5162
|
+
function createResourceRequest$e(config) {
|
|
5163
5163
|
const headers = {};
|
|
5164
5164
|
return {
|
|
5165
5165
|
baseUri: '/services/data/v62.0',
|
|
@@ -5173,45 +5173,45 @@ function createResourceRequest$d(config) {
|
|
|
5173
5173
|
};
|
|
5174
5174
|
}
|
|
5175
5175
|
|
|
5176
|
-
const adapterName$
|
|
5176
|
+
const adapterName$e = 'createCarePlans';
|
|
5177
5177
|
const createCarePlans_ConfigPropertyMetadata = [
|
|
5178
5178
|
generateParamConfigMetadata('carePlanBulkRecord', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5179
5179
|
];
|
|
5180
|
-
const createCarePlans_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5181
|
-
const createResourceParams$
|
|
5182
|
-
function typeCheckConfig$
|
|
5180
|
+
const createCarePlans_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, createCarePlans_ConfigPropertyMetadata);
|
|
5181
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$o(createCarePlans_ConfigPropertyMetadata);
|
|
5182
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
5183
5183
|
const config = {};
|
|
5184
5184
|
const untrustedConfig_carePlanBulkRecord = untrustedConfig.carePlanBulkRecord;
|
|
5185
|
-
const referenceCarePlanBulkInputRepresentationValidationError = validate$
|
|
5185
|
+
const referenceCarePlanBulkInputRepresentationValidationError = validate$A(untrustedConfig_carePlanBulkRecord);
|
|
5186
5186
|
if (referenceCarePlanBulkInputRepresentationValidationError === null) {
|
|
5187
5187
|
config.carePlanBulkRecord = untrustedConfig_carePlanBulkRecord;
|
|
5188
5188
|
}
|
|
5189
5189
|
return config;
|
|
5190
5190
|
}
|
|
5191
|
-
function validateAdapterConfig$
|
|
5191
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
5192
5192
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5193
5193
|
return null;
|
|
5194
5194
|
}
|
|
5195
5195
|
if (process.env.NODE_ENV !== 'production') {
|
|
5196
5196
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5197
5197
|
}
|
|
5198
|
-
const config = typeCheckConfig$
|
|
5198
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
5199
5199
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5200
5200
|
return null;
|
|
5201
5201
|
}
|
|
5202
5202
|
return config;
|
|
5203
5203
|
}
|
|
5204
|
-
function buildNetworkSnapshot$
|
|
5205
|
-
const resourceParams = createResourceParams$
|
|
5206
|
-
const request = createResourceRequest$
|
|
5204
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
5205
|
+
const resourceParams = createResourceParams$e(config);
|
|
5206
|
+
const request = createResourceRequest$e(resourceParams);
|
|
5207
5207
|
return luvio.dispatchResourceRequest(request, options)
|
|
5208
5208
|
.then((response) => {
|
|
5209
5209
|
return luvio.handleSuccessResponse(() => {
|
|
5210
|
-
const snapshot = ingestSuccess$
|
|
5210
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response);
|
|
5211
5211
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5212
5212
|
}, () => {
|
|
5213
5213
|
const cache = new StoreKeyMap();
|
|
5214
|
-
getResponseCacheKeys$
|
|
5214
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
5215
5215
|
return cache;
|
|
5216
5216
|
});
|
|
5217
5217
|
}, (response) => {
|
|
@@ -5221,16 +5221,16 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
5221
5221
|
}
|
|
5222
5222
|
const createCarePlansAdapterFactory = (luvio) => {
|
|
5223
5223
|
return function createCarePlans(untrustedConfig) {
|
|
5224
|
-
const config = validateAdapterConfig$
|
|
5224
|
+
const config = validateAdapterConfig$e(untrustedConfig, createCarePlans_ConfigPropertyNames);
|
|
5225
5225
|
// Invalid or incomplete config
|
|
5226
5226
|
if (config === null) {
|
|
5227
5227
|
throw new Error('Invalid config for "createCarePlans"');
|
|
5228
5228
|
}
|
|
5229
|
-
return buildNetworkSnapshot$
|
|
5229
|
+
return buildNetworkSnapshot$e(luvio, config);
|
|
5230
5230
|
};
|
|
5231
5231
|
};
|
|
5232
5232
|
|
|
5233
|
-
function validate$
|
|
5233
|
+
function validate$y(obj, path = 'MentoringBenefitAssignment') {
|
|
5234
5234
|
const v_error = (() => {
|
|
5235
5235
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5236
5236
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5391,15 +5391,15 @@ function validate$w(obj, path = 'MentoringBenefitAssignment') {
|
|
|
5391
5391
|
return v_error === undefined ? null : v_error;
|
|
5392
5392
|
}
|
|
5393
5393
|
|
|
5394
|
-
const VERSION$
|
|
5395
|
-
function validate$
|
|
5394
|
+
const VERSION$p = "4056cc46e5eff095d36ae486ac5908bc";
|
|
5395
|
+
function validate$x(obj, path = 'MentoringBenefitAssignmentOutputRepresentation') {
|
|
5396
5396
|
const v_error = (() => {
|
|
5397
5397
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5398
5398
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5399
5399
|
}
|
|
5400
5400
|
const obj_mentoringBenefitAssignment = obj.mentoringBenefitAssignment;
|
|
5401
5401
|
const path_mentoringBenefitAssignment = path + '.mentoringBenefitAssignment';
|
|
5402
|
-
const referencepath_mentoringBenefitAssignmentValidationError = validate$
|
|
5402
|
+
const referencepath_mentoringBenefitAssignmentValidationError = validate$y(obj_mentoringBenefitAssignment, path_mentoringBenefitAssignment);
|
|
5403
5403
|
if (referencepath_mentoringBenefitAssignmentValidationError !== null) {
|
|
5404
5404
|
let message = 'Object doesn\'t match MentoringBenefitAssignment (at "' + path_mentoringBenefitAssignment + '")\n';
|
|
5405
5405
|
message += referencepath_mentoringBenefitAssignmentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5408,68 +5408,68 @@ function validate$v(obj, path = 'MentoringBenefitAssignmentOutputRepresentation'
|
|
|
5408
5408
|
})();
|
|
5409
5409
|
return v_error === undefined ? null : v_error;
|
|
5410
5410
|
}
|
|
5411
|
-
const RepresentationType$
|
|
5412
|
-
function keyBuilder$
|
|
5413
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5411
|
+
const RepresentationType$c = 'MentoringBenefitAssignmentOutputRepresentation';
|
|
5412
|
+
function keyBuilder$m(luvio, config) {
|
|
5413
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.id;
|
|
5414
5414
|
}
|
|
5415
5415
|
function keyBuilderFromType$2(luvio, object) {
|
|
5416
5416
|
const keyParams = {
|
|
5417
5417
|
id: object.mentoringBenefitAssignment.id
|
|
5418
5418
|
};
|
|
5419
|
-
return keyBuilder$
|
|
5419
|
+
return keyBuilder$m(luvio, keyParams);
|
|
5420
5420
|
}
|
|
5421
|
-
function normalize$
|
|
5421
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
5422
5422
|
return input;
|
|
5423
5423
|
}
|
|
5424
|
-
const select$
|
|
5424
|
+
const select$D = function MentoringBenefitAssignmentOutputRepresentationSelect() {
|
|
5425
5425
|
return {
|
|
5426
5426
|
kind: 'Fragment',
|
|
5427
|
-
version: VERSION$
|
|
5427
|
+
version: VERSION$p,
|
|
5428
5428
|
private: [],
|
|
5429
5429
|
opaque: true
|
|
5430
5430
|
};
|
|
5431
5431
|
};
|
|
5432
|
-
function equals$
|
|
5432
|
+
function equals$p(existing, incoming) {
|
|
5433
5433
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5434
5434
|
return false;
|
|
5435
5435
|
}
|
|
5436
5436
|
return true;
|
|
5437
5437
|
}
|
|
5438
|
-
const ingest$
|
|
5438
|
+
const ingest$c = function MentoringBenefitAssignmentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5439
5439
|
if (process.env.NODE_ENV !== 'production') {
|
|
5440
|
-
const validateError = validate$
|
|
5440
|
+
const validateError = validate$x(input);
|
|
5441
5441
|
if (validateError !== null) {
|
|
5442
5442
|
throw validateError;
|
|
5443
5443
|
}
|
|
5444
5444
|
}
|
|
5445
5445
|
const key = keyBuilderFromType$2(luvio, input);
|
|
5446
5446
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
5447
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5447
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "education", VERSION$p, RepresentationType$c, equals$p);
|
|
5448
5448
|
return createLink(key);
|
|
5449
5449
|
};
|
|
5450
|
-
function getTypeCacheKeys$
|
|
5450
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
5451
5451
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5452
5452
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
5453
5453
|
rootKeySet.set(rootKey, {
|
|
5454
5454
|
namespace: keyPrefix,
|
|
5455
|
-
representationName: RepresentationType$
|
|
5455
|
+
representationName: RepresentationType$c,
|
|
5456
5456
|
mergeable: false
|
|
5457
5457
|
});
|
|
5458
5458
|
}
|
|
5459
5459
|
|
|
5460
|
-
function select$
|
|
5461
|
-
return select$
|
|
5460
|
+
function select$C(luvio, params) {
|
|
5461
|
+
return select$D();
|
|
5462
5462
|
}
|
|
5463
|
-
function getResponseCacheKeys$
|
|
5464
|
-
getTypeCacheKeys$
|
|
5463
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
5464
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
5465
5465
|
}
|
|
5466
|
-
function ingestSuccess$
|
|
5466
|
+
function ingestSuccess$d(luvio, resourceParams, response) {
|
|
5467
5467
|
const { body } = response;
|
|
5468
5468
|
const key = keyBuilderFromType$2(luvio, body);
|
|
5469
|
-
luvio.storeIngest(key, ingest$
|
|
5469
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
5470
5470
|
const snapshot = luvio.storeLookup({
|
|
5471
5471
|
recordId: key,
|
|
5472
|
-
node: select$
|
|
5472
|
+
node: select$C(),
|
|
5473
5473
|
variables: {},
|
|
5474
5474
|
});
|
|
5475
5475
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5480,7 +5480,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
5480
5480
|
deepFreeze(snapshot.data);
|
|
5481
5481
|
return snapshot;
|
|
5482
5482
|
}
|
|
5483
|
-
function createResourceRequest$
|
|
5483
|
+
function createResourceRequest$d(config) {
|
|
5484
5484
|
const headers = {};
|
|
5485
5485
|
return {
|
|
5486
5486
|
baseUri: '/services/data/v62.0',
|
|
@@ -5494,42 +5494,42 @@ function createResourceRequest$c(config) {
|
|
|
5494
5494
|
};
|
|
5495
5495
|
}
|
|
5496
5496
|
|
|
5497
|
-
const adapterName$
|
|
5497
|
+
const adapterName$d = 'postBenefitAssignment';
|
|
5498
5498
|
const postBenefitAssignment_ConfigPropertyMetadata = [
|
|
5499
5499
|
generateParamConfigMetadata('benefitAssignmentId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5500
5500
|
generateParamConfigMetadata('providerId', true, 2 /* Body */, 0 /* String */),
|
|
5501
5501
|
];
|
|
5502
|
-
const postBenefitAssignment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5503
|
-
const createResourceParams$
|
|
5504
|
-
function typeCheckConfig$
|
|
5502
|
+
const postBenefitAssignment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, postBenefitAssignment_ConfigPropertyMetadata);
|
|
5503
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$o(postBenefitAssignment_ConfigPropertyMetadata);
|
|
5504
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
5505
5505
|
const config = {};
|
|
5506
|
-
typeCheckConfig$
|
|
5506
|
+
typeCheckConfig$o(untrustedConfig, config, postBenefitAssignment_ConfigPropertyMetadata);
|
|
5507
5507
|
return config;
|
|
5508
5508
|
}
|
|
5509
|
-
function validateAdapterConfig$
|
|
5509
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
5510
5510
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5511
5511
|
return null;
|
|
5512
5512
|
}
|
|
5513
5513
|
if (process.env.NODE_ENV !== 'production') {
|
|
5514
5514
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5515
5515
|
}
|
|
5516
|
-
const config = typeCheckConfig$
|
|
5516
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
5517
5517
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5518
5518
|
return null;
|
|
5519
5519
|
}
|
|
5520
5520
|
return config;
|
|
5521
5521
|
}
|
|
5522
|
-
function buildNetworkSnapshot$
|
|
5523
|
-
const resourceParams = createResourceParams$
|
|
5524
|
-
const request = createResourceRequest$
|
|
5522
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
5523
|
+
const resourceParams = createResourceParams$d(config);
|
|
5524
|
+
const request = createResourceRequest$d(resourceParams);
|
|
5525
5525
|
return luvio.dispatchResourceRequest(request, options)
|
|
5526
5526
|
.then((response) => {
|
|
5527
5527
|
return luvio.handleSuccessResponse(() => {
|
|
5528
|
-
const snapshot = ingestSuccess$
|
|
5528
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response);
|
|
5529
5529
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5530
5530
|
}, () => {
|
|
5531
5531
|
const cache = new StoreKeyMap();
|
|
5532
|
-
getResponseCacheKeys$
|
|
5532
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
5533
5533
|
return cache;
|
|
5534
5534
|
});
|
|
5535
5535
|
}, (response) => {
|
|
@@ -5539,16 +5539,16 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
5539
5539
|
}
|
|
5540
5540
|
const postBenefitAssignmentAdapterFactory = (luvio) => {
|
|
5541
5541
|
return function postBenefitAssignment(untrustedConfig) {
|
|
5542
|
-
const config = validateAdapterConfig$
|
|
5542
|
+
const config = validateAdapterConfig$d(untrustedConfig, postBenefitAssignment_ConfigPropertyNames);
|
|
5543
5543
|
// Invalid or incomplete config
|
|
5544
5544
|
if (config === null) {
|
|
5545
5545
|
throw new Error('Invalid config for "postBenefitAssignment"');
|
|
5546
5546
|
}
|
|
5547
|
-
return buildNetworkSnapshot$
|
|
5547
|
+
return buildNetworkSnapshot$d(luvio, config);
|
|
5548
5548
|
};
|
|
5549
5549
|
};
|
|
5550
5550
|
|
|
5551
|
-
function validate$
|
|
5551
|
+
function validate$w(obj, path = 'FilterConfig') {
|
|
5552
5552
|
const v_error = (() => {
|
|
5553
5553
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5554
5554
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5584,8 +5584,8 @@ function validate$u(obj, path = 'FilterConfig') {
|
|
|
5584
5584
|
return v_error === undefined ? null : v_error;
|
|
5585
5585
|
}
|
|
5586
5586
|
|
|
5587
|
-
const VERSION$
|
|
5588
|
-
function validate$
|
|
5587
|
+
const VERSION$o = "21bdda1d3836a2c358ee187ea8dee2b2";
|
|
5588
|
+
function validate$v(obj, path = 'MentoringProfileOption') {
|
|
5589
5589
|
const v_error = (() => {
|
|
5590
5590
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5591
5591
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5598,10 +5598,10 @@ function validate$t(obj, path = 'MentoringProfileOption') {
|
|
|
5598
5598
|
})();
|
|
5599
5599
|
return v_error === undefined ? null : v_error;
|
|
5600
5600
|
}
|
|
5601
|
-
const select$
|
|
5601
|
+
const select$B = function MentoringProfileOptionSelect() {
|
|
5602
5602
|
return {
|
|
5603
5603
|
kind: 'Fragment',
|
|
5604
|
-
version: VERSION$
|
|
5604
|
+
version: VERSION$o,
|
|
5605
5605
|
private: [],
|
|
5606
5606
|
selections: [
|
|
5607
5607
|
{
|
|
@@ -5611,7 +5611,7 @@ const select$z = function MentoringProfileOptionSelect() {
|
|
|
5611
5611
|
]
|
|
5612
5612
|
};
|
|
5613
5613
|
};
|
|
5614
|
-
function equals$
|
|
5614
|
+
function equals$o(existing, incoming) {
|
|
5615
5615
|
const existing_id = existing.id;
|
|
5616
5616
|
const incoming_id = incoming.id;
|
|
5617
5617
|
if (!(existing_id === incoming_id)) {
|
|
@@ -5620,9 +5620,9 @@ function equals$n(existing, incoming) {
|
|
|
5620
5620
|
return true;
|
|
5621
5621
|
}
|
|
5622
5622
|
|
|
5623
|
-
const TTL$
|
|
5624
|
-
const VERSION$
|
|
5625
|
-
function validate$
|
|
5623
|
+
const TTL$3 = 500;
|
|
5624
|
+
const VERSION$n = "33fcd02404150683fc2b8c66cd715130";
|
|
5625
|
+
function validate$u(obj, path = 'MentoringMatchingSelectorOutputRepresentation') {
|
|
5626
5626
|
const v_error = (() => {
|
|
5627
5627
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5628
5628
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5635,7 +5635,7 @@ function validate$s(obj, path = 'MentoringMatchingSelectorOutputRepresentation')
|
|
|
5635
5635
|
for (let i = 0; i < obj_mentoringProfiles.length; i++) {
|
|
5636
5636
|
const obj_mentoringProfiles_item = obj_mentoringProfiles[i];
|
|
5637
5637
|
const path_mentoringProfiles_item = path_mentoringProfiles + '[' + i + ']';
|
|
5638
|
-
const referencepath_mentoringProfiles_itemValidationError = validate$
|
|
5638
|
+
const referencepath_mentoringProfiles_itemValidationError = validate$v(obj_mentoringProfiles_item, path_mentoringProfiles_item);
|
|
5639
5639
|
if (referencepath_mentoringProfiles_itemValidationError !== null) {
|
|
5640
5640
|
let message = 'Object doesn\'t match MentoringProfileOption (at "' + path_mentoringProfiles_item + '")\n';
|
|
5641
5641
|
message += referencepath_mentoringProfiles_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5645,15 +5645,15 @@ function validate$s(obj, path = 'MentoringMatchingSelectorOutputRepresentation')
|
|
|
5645
5645
|
})();
|
|
5646
5646
|
return v_error === undefined ? null : v_error;
|
|
5647
5647
|
}
|
|
5648
|
-
const RepresentationType$
|
|
5649
|
-
function normalize$
|
|
5648
|
+
const RepresentationType$b = 'MentoringMatchingSelectorOutputRepresentation';
|
|
5649
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
5650
5650
|
return input;
|
|
5651
5651
|
}
|
|
5652
|
-
const select$
|
|
5653
|
-
const { selections: MentoringProfileOption__selections, opaque: MentoringProfileOption__opaque, } = select$
|
|
5652
|
+
const select$A = function MentoringMatchingSelectorOutputRepresentationSelect() {
|
|
5653
|
+
const { selections: MentoringProfileOption__selections, opaque: MentoringProfileOption__opaque, } = select$B();
|
|
5654
5654
|
return {
|
|
5655
5655
|
kind: 'Fragment',
|
|
5656
|
-
version: VERSION$
|
|
5656
|
+
version: VERSION$n,
|
|
5657
5657
|
private: [],
|
|
5658
5658
|
selections: [
|
|
5659
5659
|
{
|
|
@@ -5665,11 +5665,11 @@ const select$y = function MentoringMatchingSelectorOutputRepresentationSelect()
|
|
|
5665
5665
|
]
|
|
5666
5666
|
};
|
|
5667
5667
|
};
|
|
5668
|
-
function equals$
|
|
5668
|
+
function equals$n(existing, incoming) {
|
|
5669
5669
|
const existing_mentoringProfiles = existing.mentoringProfiles;
|
|
5670
5670
|
const incoming_mentoringProfiles = incoming.mentoringProfiles;
|
|
5671
5671
|
const equals_mentoringProfiles_items = equalsArray(existing_mentoringProfiles, incoming_mentoringProfiles, (existing_mentoringProfiles_item, incoming_mentoringProfiles_item) => {
|
|
5672
|
-
if (!(equals$
|
|
5672
|
+
if (!(equals$o(existing_mentoringProfiles_item, incoming_mentoringProfiles_item))) {
|
|
5673
5673
|
return false;
|
|
5674
5674
|
}
|
|
5675
5675
|
});
|
|
@@ -5678,7 +5678,248 @@ function equals$m(existing, incoming) {
|
|
|
5678
5678
|
}
|
|
5679
5679
|
return true;
|
|
5680
5680
|
}
|
|
5681
|
-
const ingest$
|
|
5681
|
+
const ingest$b = function MentoringMatchingSelectorOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5682
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5683
|
+
const validateError = validate$u(input);
|
|
5684
|
+
if (validateError !== null) {
|
|
5685
|
+
throw validateError;
|
|
5686
|
+
}
|
|
5687
|
+
}
|
|
5688
|
+
const key = path.fullPath;
|
|
5689
|
+
const ttlToUse = TTL$3;
|
|
5690
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "education", VERSION$n, RepresentationType$b, equals$n);
|
|
5691
|
+
return createLink(key);
|
|
5692
|
+
};
|
|
5693
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
5694
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5695
|
+
const rootKey = fullPathFactory();
|
|
5696
|
+
rootKeySet.set(rootKey, {
|
|
5697
|
+
namespace: keyPrefix,
|
|
5698
|
+
representationName: RepresentationType$b,
|
|
5699
|
+
mergeable: false
|
|
5700
|
+
});
|
|
5701
|
+
}
|
|
5702
|
+
|
|
5703
|
+
function select$z(luvio, params) {
|
|
5704
|
+
return select$A();
|
|
5705
|
+
}
|
|
5706
|
+
function keyBuilder$l(luvio, params) {
|
|
5707
|
+
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(',') + ']' + ')';
|
|
5708
|
+
}
|
|
5709
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
5710
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$l(luvio, resourceParams));
|
|
5711
|
+
}
|
|
5712
|
+
function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
5713
|
+
const { body } = response;
|
|
5714
|
+
const key = keyBuilder$l(luvio, resourceParams);
|
|
5715
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
5716
|
+
const snapshot = luvio.storeLookup({
|
|
5717
|
+
recordId: key,
|
|
5718
|
+
node: select$z(),
|
|
5719
|
+
variables: {},
|
|
5720
|
+
}, snapshotRefresh);
|
|
5721
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5722
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
5723
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
5724
|
+
}
|
|
5725
|
+
}
|
|
5726
|
+
deepFreeze(snapshot.data);
|
|
5727
|
+
return snapshot;
|
|
5728
|
+
}
|
|
5729
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
5730
|
+
const key = keyBuilder$l(luvio, params);
|
|
5731
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5732
|
+
const storeMetadataParams = {
|
|
5733
|
+
ttl: TTL$3,
|
|
5734
|
+
namespace: keyPrefix,
|
|
5735
|
+
version: VERSION$n,
|
|
5736
|
+
representationName: RepresentationType$b
|
|
5737
|
+
};
|
|
5738
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5739
|
+
return errorSnapshot;
|
|
5740
|
+
}
|
|
5741
|
+
function createResourceRequest$c(config) {
|
|
5742
|
+
const headers = {};
|
|
5743
|
+
return {
|
|
5744
|
+
baseUri: '/services/data/v62.0',
|
|
5745
|
+
basePath: '/connect/education/mentoring/matching-selector/' + config.urlParams.benefitAssignmentId + '',
|
|
5746
|
+
method: 'post',
|
|
5747
|
+
body: config.body,
|
|
5748
|
+
urlParams: config.urlParams,
|
|
5749
|
+
queryParams: {},
|
|
5750
|
+
headers,
|
|
5751
|
+
priority: 'normal',
|
|
5752
|
+
};
|
|
5753
|
+
}
|
|
5754
|
+
|
|
5755
|
+
const adapterName$c = 'postMatchingSelector';
|
|
5756
|
+
const postMatchingSelector_ConfigPropertyMetadata = [
|
|
5757
|
+
generateParamConfigMetadata('benefitAssignmentId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5758
|
+
generateParamConfigMetadata('filtersConfig', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5759
|
+
];
|
|
5760
|
+
const postMatchingSelector_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, postMatchingSelector_ConfigPropertyMetadata);
|
|
5761
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$o(postMatchingSelector_ConfigPropertyMetadata);
|
|
5762
|
+
function keyBuilder$k(luvio, config) {
|
|
5763
|
+
const resourceParams = createResourceParams$c(config);
|
|
5764
|
+
return keyBuilder$l(luvio, resourceParams);
|
|
5765
|
+
}
|
|
5766
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
5767
|
+
const config = {};
|
|
5768
|
+
typeCheckConfig$o(untrustedConfig, config, postMatchingSelector_ConfigPropertyMetadata);
|
|
5769
|
+
const untrustedConfig_filtersConfig = untrustedConfig.filtersConfig;
|
|
5770
|
+
if (ArrayIsArray$1(untrustedConfig_filtersConfig)) {
|
|
5771
|
+
const untrustedConfig_filtersConfig_array = [];
|
|
5772
|
+
for (let i = 0, arrayLength = untrustedConfig_filtersConfig.length; i < arrayLength; i++) {
|
|
5773
|
+
const untrustedConfig_filtersConfig_item = untrustedConfig_filtersConfig[i];
|
|
5774
|
+
const referenceFilterConfigValidationError = validate$w(untrustedConfig_filtersConfig_item);
|
|
5775
|
+
if (referenceFilterConfigValidationError === null) {
|
|
5776
|
+
untrustedConfig_filtersConfig_array.push(untrustedConfig_filtersConfig_item);
|
|
5777
|
+
}
|
|
5778
|
+
}
|
|
5779
|
+
config.filtersConfig = untrustedConfig_filtersConfig_array;
|
|
5780
|
+
}
|
|
5781
|
+
return config;
|
|
5782
|
+
}
|
|
5783
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
5784
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
5785
|
+
return null;
|
|
5786
|
+
}
|
|
5787
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5788
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
5789
|
+
}
|
|
5790
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
5791
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5792
|
+
return null;
|
|
5793
|
+
}
|
|
5794
|
+
return config;
|
|
5795
|
+
}
|
|
5796
|
+
function adapterFragment$9(luvio, config) {
|
|
5797
|
+
createResourceParams$c(config);
|
|
5798
|
+
return select$z();
|
|
5799
|
+
}
|
|
5800
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
5801
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
5802
|
+
config,
|
|
5803
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
5804
|
+
});
|
|
5805
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5806
|
+
}
|
|
5807
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
5808
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
5809
|
+
config,
|
|
5810
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
5811
|
+
});
|
|
5812
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5813
|
+
}
|
|
5814
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
5815
|
+
const resourceParams = createResourceParams$c(config);
|
|
5816
|
+
const request = createResourceRequest$c(resourceParams);
|
|
5817
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
5818
|
+
.then((response) => {
|
|
5819
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
5820
|
+
const cache = new StoreKeyMap();
|
|
5821
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
5822
|
+
return cache;
|
|
5823
|
+
});
|
|
5824
|
+
}, (response) => {
|
|
5825
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
5826
|
+
});
|
|
5827
|
+
}
|
|
5828
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
5829
|
+
return buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, 'get', false);
|
|
5830
|
+
}
|
|
5831
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
5832
|
+
const { luvio, config } = context;
|
|
5833
|
+
const selector = {
|
|
5834
|
+
recordId: keyBuilder$k(luvio, config),
|
|
5835
|
+
node: adapterFragment$9(luvio, config),
|
|
5836
|
+
variables: {},
|
|
5837
|
+
};
|
|
5838
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
5839
|
+
config,
|
|
5840
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
5841
|
+
});
|
|
5842
|
+
return cacheSnapshot;
|
|
5843
|
+
}
|
|
5844
|
+
const postMatchingSelectorAdapterFactory = (luvio) => function education__postMatchingSelector(untrustedConfig, requestContext) {
|
|
5845
|
+
const config = validateAdapterConfig$c(untrustedConfig, postMatchingSelector_ConfigPropertyNames);
|
|
5846
|
+
// Invalid or incomplete config
|
|
5847
|
+
if (config === null) {
|
|
5848
|
+
return null;
|
|
5849
|
+
}
|
|
5850
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5851
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
5852
|
+
};
|
|
5853
|
+
|
|
5854
|
+
function validate$t(obj, path = 'PromptTemplate') {
|
|
5855
|
+
const v_error = (() => {
|
|
5856
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5857
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5858
|
+
}
|
|
5859
|
+
if (obj.id !== undefined) {
|
|
5860
|
+
const obj_id = obj.id;
|
|
5861
|
+
const path_id = path + '.id';
|
|
5862
|
+
if (typeof obj_id !== 'string') {
|
|
5863
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
5864
|
+
}
|
|
5865
|
+
}
|
|
5866
|
+
if (obj.name !== undefined) {
|
|
5867
|
+
const obj_name = obj.name;
|
|
5868
|
+
const path_name = path + '.name';
|
|
5869
|
+
if (typeof obj_name !== 'string') {
|
|
5870
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
5871
|
+
}
|
|
5872
|
+
}
|
|
5873
|
+
})();
|
|
5874
|
+
return v_error === undefined ? null : v_error;
|
|
5875
|
+
}
|
|
5876
|
+
|
|
5877
|
+
const TTL$2 = 100;
|
|
5878
|
+
const VERSION$m = "a4f2950496cf124eea76894ec3679162";
|
|
5879
|
+
function validate$s(obj, path = 'PromptTemplateOutputRepresentation') {
|
|
5880
|
+
const v_error = (() => {
|
|
5881
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5882
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5883
|
+
}
|
|
5884
|
+
if (obj.promptTemplates !== undefined) {
|
|
5885
|
+
const obj_promptTemplates = obj.promptTemplates;
|
|
5886
|
+
const path_promptTemplates = path + '.promptTemplates';
|
|
5887
|
+
if (!ArrayIsArray(obj_promptTemplates)) {
|
|
5888
|
+
return new TypeError('Expected "array" but received "' + typeof obj_promptTemplates + '" (at "' + path_promptTemplates + '")');
|
|
5889
|
+
}
|
|
5890
|
+
for (let i = 0; i < obj_promptTemplates.length; i++) {
|
|
5891
|
+
const obj_promptTemplates_item = obj_promptTemplates[i];
|
|
5892
|
+
const path_promptTemplates_item = path_promptTemplates + '[' + i + ']';
|
|
5893
|
+
const referencepath_promptTemplates_itemValidationError = validate$t(obj_promptTemplates_item, path_promptTemplates_item);
|
|
5894
|
+
if (referencepath_promptTemplates_itemValidationError !== null) {
|
|
5895
|
+
let message = 'Object doesn\'t match PromptTemplate (at "' + path_promptTemplates_item + '")\n';
|
|
5896
|
+
message += referencepath_promptTemplates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5897
|
+
return new TypeError(message);
|
|
5898
|
+
}
|
|
5899
|
+
}
|
|
5900
|
+
}
|
|
5901
|
+
})();
|
|
5902
|
+
return v_error === undefined ? null : v_error;
|
|
5903
|
+
}
|
|
5904
|
+
const RepresentationType$a = 'PromptTemplateOutputRepresentation';
|
|
5905
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
5906
|
+
return input;
|
|
5907
|
+
}
|
|
5908
|
+
const select$y = function PromptTemplateOutputRepresentationSelect() {
|
|
5909
|
+
return {
|
|
5910
|
+
kind: 'Fragment',
|
|
5911
|
+
version: VERSION$m,
|
|
5912
|
+
private: [],
|
|
5913
|
+
opaque: true
|
|
5914
|
+
};
|
|
5915
|
+
};
|
|
5916
|
+
function equals$m(existing, incoming) {
|
|
5917
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5918
|
+
return false;
|
|
5919
|
+
}
|
|
5920
|
+
return true;
|
|
5921
|
+
}
|
|
5922
|
+
const ingest$a = function PromptTemplateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5682
5923
|
if (process.env.NODE_ENV !== 'production') {
|
|
5683
5924
|
const validateError = validate$s(input);
|
|
5684
5925
|
if (validateError !== null) {
|
|
@@ -5704,7 +5945,7 @@ function select$x(luvio, params) {
|
|
|
5704
5945
|
return select$y();
|
|
5705
5946
|
}
|
|
5706
5947
|
function keyBuilder$j(luvio, params) {
|
|
5707
|
-
return keyPrefix + '::
|
|
5948
|
+
return keyPrefix + '::PromptTemplateOutputRepresentation:(' + 'objectName:' + params.body.objectName + '::' + 'promptType:' + params.body.promptType + ')';
|
|
5708
5949
|
}
|
|
5709
5950
|
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
5710
5951
|
getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
|
|
@@ -5742,42 +5983,30 @@ function createResourceRequest$b(config) {
|
|
|
5742
5983
|
const headers = {};
|
|
5743
5984
|
return {
|
|
5744
5985
|
baseUri: '/services/data/v62.0',
|
|
5745
|
-
basePath: '/connect/education/
|
|
5986
|
+
basePath: '/connect/education/prompt-builder/prompt-templates',
|
|
5746
5987
|
method: 'post',
|
|
5747
5988
|
body: config.body,
|
|
5748
|
-
urlParams:
|
|
5989
|
+
urlParams: {},
|
|
5749
5990
|
queryParams: {},
|
|
5750
5991
|
headers,
|
|
5751
5992
|
priority: 'normal',
|
|
5752
5993
|
};
|
|
5753
5994
|
}
|
|
5754
5995
|
|
|
5755
|
-
const adapterName$b = '
|
|
5756
|
-
const
|
|
5757
|
-
generateParamConfigMetadata('
|
|
5758
|
-
generateParamConfigMetadata('
|
|
5996
|
+
const adapterName$b = 'getPromptTemplates';
|
|
5997
|
+
const getPromptTemplates_ConfigPropertyMetadata = [
|
|
5998
|
+
generateParamConfigMetadata('objectName', true, 2 /* Body */, 0 /* String */),
|
|
5999
|
+
generateParamConfigMetadata('promptType', true, 2 /* Body */, 0 /* String */),
|
|
5759
6000
|
];
|
|
5760
|
-
const
|
|
5761
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
6001
|
+
const getPromptTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getPromptTemplates_ConfigPropertyMetadata);
|
|
6002
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$o(getPromptTemplates_ConfigPropertyMetadata);
|
|
5762
6003
|
function keyBuilder$i(luvio, config) {
|
|
5763
6004
|
const resourceParams = createResourceParams$b(config);
|
|
5764
6005
|
return keyBuilder$j(luvio, resourceParams);
|
|
5765
6006
|
}
|
|
5766
6007
|
function typeCheckConfig$b(untrustedConfig) {
|
|
5767
6008
|
const config = {};
|
|
5768
|
-
typeCheckConfig$
|
|
5769
|
-
const untrustedConfig_filtersConfig = untrustedConfig.filtersConfig;
|
|
5770
|
-
if (ArrayIsArray$1(untrustedConfig_filtersConfig)) {
|
|
5771
|
-
const untrustedConfig_filtersConfig_array = [];
|
|
5772
|
-
for (let i = 0, arrayLength = untrustedConfig_filtersConfig.length; i < arrayLength; i++) {
|
|
5773
|
-
const untrustedConfig_filtersConfig_item = untrustedConfig_filtersConfig[i];
|
|
5774
|
-
const referenceFilterConfigValidationError = validate$u(untrustedConfig_filtersConfig_item);
|
|
5775
|
-
if (referenceFilterConfigValidationError === null) {
|
|
5776
|
-
untrustedConfig_filtersConfig_array.push(untrustedConfig_filtersConfig_item);
|
|
5777
|
-
}
|
|
5778
|
-
}
|
|
5779
|
-
config.filtersConfig = untrustedConfig_filtersConfig_array;
|
|
5780
|
-
}
|
|
6009
|
+
typeCheckConfig$o(untrustedConfig, config, getPromptTemplates_ConfigPropertyMetadata);
|
|
5781
6010
|
return config;
|
|
5782
6011
|
}
|
|
5783
6012
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -5826,7 +6055,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
5826
6055
|
});
|
|
5827
6056
|
}
|
|
5828
6057
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
5829
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6058
|
+
return buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, 'get', false);
|
|
5830
6059
|
}
|
|
5831
6060
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
5832
6061
|
const { luvio, config } = context;
|
|
@@ -5841,8 +6070,8 @@ function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
|
5841
6070
|
});
|
|
5842
6071
|
return cacheSnapshot;
|
|
5843
6072
|
}
|
|
5844
|
-
const
|
|
5845
|
-
const config = validateAdapterConfig$b(untrustedConfig,
|
|
6073
|
+
const getPromptTemplatesAdapterFactory = (luvio) => function education__getPromptTemplates(untrustedConfig, requestContext) {
|
|
6074
|
+
const config = validateAdapterConfig$b(untrustedConfig, getPromptTemplates_ConfigPropertyNames);
|
|
5846
6075
|
// Invalid or incomplete config
|
|
5847
6076
|
if (config === null) {
|
|
5848
6077
|
return null;
|
|
@@ -5861,7 +6090,7 @@ function validate$r(obj, path = 'IndividualApplicationTaskOutputRepresentation')
|
|
|
5861
6090
|
if (obj.result !== undefined) {
|
|
5862
6091
|
const obj_result = obj.result;
|
|
5863
6092
|
const path_result = path + '.result';
|
|
5864
|
-
const referencepath_resultValidationError = validate$
|
|
6093
|
+
const referencepath_resultValidationError = validate$16(obj_result, path_result);
|
|
5865
6094
|
if (referencepath_resultValidationError !== null) {
|
|
5866
6095
|
let message = 'Object doesn\'t match IndividualApplicationTask (at "' + path_result + '")\n';
|
|
5867
6096
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5968,14 +6197,14 @@ const getIndividualApplicationTask_ConfigPropertyMetadata = [
|
|
|
5968
6197
|
generateParamConfigMetadata('individualApplicationTaskId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5969
6198
|
];
|
|
5970
6199
|
const getIndividualApplicationTask_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getIndividualApplicationTask_ConfigPropertyMetadata);
|
|
5971
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
6200
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$o(getIndividualApplicationTask_ConfigPropertyMetadata);
|
|
5972
6201
|
function keyBuilder$g(luvio, config) {
|
|
5973
6202
|
const resourceParams = createResourceParams$a(config);
|
|
5974
6203
|
return keyBuilder$h(luvio, resourceParams);
|
|
5975
6204
|
}
|
|
5976
6205
|
function typeCheckConfig$a(untrustedConfig) {
|
|
5977
6206
|
const config = {};
|
|
5978
|
-
typeCheckConfig$
|
|
6207
|
+
typeCheckConfig$o(untrustedConfig, config, getIndividualApplicationTask_ConfigPropertyMetadata);
|
|
5979
6208
|
return config;
|
|
5980
6209
|
}
|
|
5981
6210
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -6024,7 +6253,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
6024
6253
|
});
|
|
6025
6254
|
}
|
|
6026
6255
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
6027
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6256
|
+
return buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
6028
6257
|
}
|
|
6029
6258
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
6030
6259
|
const { luvio, config } = context;
|
|
@@ -6287,14 +6516,14 @@ const getAcademicTerms_ConfigPropertyMetadata = [
|
|
|
6287
6516
|
generateParamConfigMetadata('academicLevel', true, 1 /* QueryParameter */, 0 /* String */),
|
|
6288
6517
|
];
|
|
6289
6518
|
const getAcademicTerms_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getAcademicTerms_ConfigPropertyMetadata);
|
|
6290
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
6519
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$o(getAcademicTerms_ConfigPropertyMetadata);
|
|
6291
6520
|
function keyBuilder$e(luvio, config) {
|
|
6292
6521
|
const resourceParams = createResourceParams$9(config);
|
|
6293
6522
|
return keyBuilder$f(luvio, resourceParams);
|
|
6294
6523
|
}
|
|
6295
6524
|
function typeCheckConfig$9(untrustedConfig) {
|
|
6296
6525
|
const config = {};
|
|
6297
|
-
typeCheckConfig$
|
|
6526
|
+
typeCheckConfig$o(untrustedConfig, config, getAcademicTerms_ConfigPropertyMetadata);
|
|
6298
6527
|
return config;
|
|
6299
6528
|
}
|
|
6300
6529
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -6343,7 +6572,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
6343
6572
|
});
|
|
6344
6573
|
}
|
|
6345
6574
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
6346
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6575
|
+
return buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
6347
6576
|
}
|
|
6348
6577
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
6349
6578
|
const { luvio, config } = context;
|
|
@@ -6521,7 +6750,7 @@ const createPreliminaryApplicationReferences_ConfigPropertyMetadata = [
|
|
|
6521
6750
|
generateParamConfigMetadata('preliminaryAppRefInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
6522
6751
|
];
|
|
6523
6752
|
const createPreliminaryApplicationReferences_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createPreliminaryApplicationReferences_ConfigPropertyMetadata);
|
|
6524
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
6753
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$o(createPreliminaryApplicationReferences_ConfigPropertyMetadata);
|
|
6525
6754
|
function typeCheckConfig$8(untrustedConfig) {
|
|
6526
6755
|
const config = {};
|
|
6527
6756
|
const untrustedConfig_preliminaryAppRefInput = untrustedConfig.preliminaryAppRefInput;
|
|
@@ -6677,7 +6906,7 @@ function validate$l(obj, path = 'GetNewApplicationPreliminaryDataResult') {
|
|
|
6677
6906
|
for (let i = 0; i < obj_applicants.length; i++) {
|
|
6678
6907
|
const obj_applicants_item = obj_applicants[i];
|
|
6679
6908
|
const path_applicants_item = path_applicants + '[' + i + ']';
|
|
6680
|
-
const referencepath_applicants_itemValidationError = validate$
|
|
6909
|
+
const referencepath_applicants_itemValidationError = validate$1c(obj_applicants_item, path_applicants_item);
|
|
6681
6910
|
if (referencepath_applicants_itemValidationError !== null) {
|
|
6682
6911
|
let message = 'Object doesn\'t match Applicant (at "' + path_applicants_item + '")\n';
|
|
6683
6912
|
message += referencepath_applicants_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6690,7 +6919,7 @@ function validate$l(obj, path = 'GetNewApplicationPreliminaryDataResult') {
|
|
|
6690
6919
|
}
|
|
6691
6920
|
const select$o = function GetNewApplicationPreliminaryDataResultSelect() {
|
|
6692
6921
|
const { selections: ApplicationAcademicLevel__selections, opaque: ApplicationAcademicLevel__opaque, } = select$p();
|
|
6693
|
-
const { selections: Applicant__selections, opaque: Applicant__opaque, } = select$
|
|
6922
|
+
const { selections: Applicant__selections, opaque: Applicant__opaque, } = select$16();
|
|
6694
6923
|
return {
|
|
6695
6924
|
kind: 'Fragment',
|
|
6696
6925
|
version: VERSION$g,
|
|
@@ -6742,7 +6971,7 @@ function equals$g(existing, incoming) {
|
|
|
6742
6971
|
return false;
|
|
6743
6972
|
}
|
|
6744
6973
|
const equals_applicants_items = equalsArray(existing_applicants, incoming_applicants, (existing_applicants_item, incoming_applicants_item) => {
|
|
6745
|
-
if (!(equals$
|
|
6974
|
+
if (!(equals$I(existing_applicants_item, incoming_applicants_item))) {
|
|
6746
6975
|
return false;
|
|
6747
6976
|
}
|
|
6748
6977
|
});
|
|
@@ -6881,14 +7110,14 @@ const getNewApplicationPreliminaryData_ConfigPropertyMetadata = [
|
|
|
6881
7110
|
generateParamConfigMetadata('context', true, 1 /* QueryParameter */, 0 /* String */),
|
|
6882
7111
|
];
|
|
6883
7112
|
const getNewApplicationPreliminaryData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getNewApplicationPreliminaryData_ConfigPropertyMetadata);
|
|
6884
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
7113
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$o(getNewApplicationPreliminaryData_ConfigPropertyMetadata);
|
|
6885
7114
|
function keyBuilder$b(luvio, config) {
|
|
6886
7115
|
const resourceParams = createResourceParams$7(config);
|
|
6887
7116
|
return keyBuilder$c(luvio, resourceParams);
|
|
6888
7117
|
}
|
|
6889
7118
|
function typeCheckConfig$7(untrustedConfig) {
|
|
6890
7119
|
const config = {};
|
|
6891
|
-
typeCheckConfig$
|
|
7120
|
+
typeCheckConfig$o(untrustedConfig, config, getNewApplicationPreliminaryData_ConfigPropertyMetadata);
|
|
6892
7121
|
return config;
|
|
6893
7122
|
}
|
|
6894
7123
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -6937,7 +7166,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
6937
7166
|
});
|
|
6938
7167
|
}
|
|
6939
7168
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
6940
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7169
|
+
return buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
6941
7170
|
}
|
|
6942
7171
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
6943
7172
|
const { luvio, config } = context;
|
|
@@ -7201,14 +7430,14 @@ const getProgramTermApplicationTimelines_ConfigPropertyMetadata = [
|
|
|
7201
7430
|
generateParamConfigMetadata('academicLevel', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7202
7431
|
];
|
|
7203
7432
|
const getProgramTermApplicationTimelines_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getProgramTermApplicationTimelines_ConfigPropertyMetadata);
|
|
7204
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
7433
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$o(getProgramTermApplicationTimelines_ConfigPropertyMetadata);
|
|
7205
7434
|
function keyBuilder$9(luvio, config) {
|
|
7206
7435
|
const resourceParams = createResourceParams$6(config);
|
|
7207
7436
|
return keyBuilder$a(luvio, resourceParams);
|
|
7208
7437
|
}
|
|
7209
7438
|
function typeCheckConfig$6(untrustedConfig) {
|
|
7210
7439
|
const config = {};
|
|
7211
|
-
typeCheckConfig$
|
|
7440
|
+
typeCheckConfig$o(untrustedConfig, config, getProgramTermApplicationTimelines_ConfigPropertyMetadata);
|
|
7212
7441
|
return config;
|
|
7213
7442
|
}
|
|
7214
7443
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -7257,7 +7486,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
7257
7486
|
});
|
|
7258
7487
|
}
|
|
7259
7488
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
7260
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7489
|
+
return buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
7261
7490
|
}
|
|
7262
7491
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
7263
7492
|
const { luvio, config } = context;
|
|
@@ -7674,14 +7903,14 @@ const getPersonPublicProfile_ConfigPropertyMetadata = [
|
|
|
7674
7903
|
generateParamConfigMetadata('usageType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7675
7904
|
];
|
|
7676
7905
|
const getPersonPublicProfile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getPersonPublicProfile_ConfigPropertyMetadata);
|
|
7677
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
7906
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$o(getPersonPublicProfile_ConfigPropertyMetadata);
|
|
7678
7907
|
function keyBuilder$7(luvio, config) {
|
|
7679
7908
|
const resourceParams = createResourceParams$5(config);
|
|
7680
7909
|
return keyBuilder$8(luvio, resourceParams);
|
|
7681
7910
|
}
|
|
7682
7911
|
function typeCheckConfig$5(untrustedConfig) {
|
|
7683
7912
|
const config = {};
|
|
7684
|
-
typeCheckConfig$
|
|
7913
|
+
typeCheckConfig$o(untrustedConfig, config, getPersonPublicProfile_ConfigPropertyMetadata);
|
|
7685
7914
|
return config;
|
|
7686
7915
|
}
|
|
7687
7916
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -7730,7 +7959,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
7730
7959
|
});
|
|
7731
7960
|
}
|
|
7732
7961
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
7733
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7962
|
+
return buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
7734
7963
|
}
|
|
7735
7964
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
7736
7965
|
const { luvio, config } = context;
|
|
@@ -8199,14 +8428,14 @@ const getSuccessTeam_ConfigPropertyMetadata = [
|
|
|
8199
8428
|
generateParamConfigMetadata('teamTypes', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
8200
8429
|
];
|
|
8201
8430
|
const getSuccessTeam_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSuccessTeam_ConfigPropertyMetadata);
|
|
8202
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
8431
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$o(getSuccessTeam_ConfigPropertyMetadata);
|
|
8203
8432
|
function keyBuilder$5(luvio, config) {
|
|
8204
8433
|
const resourceParams = createResourceParams$4(config);
|
|
8205
8434
|
return keyBuilder$6(luvio, resourceParams);
|
|
8206
8435
|
}
|
|
8207
8436
|
function typeCheckConfig$4(untrustedConfig) {
|
|
8208
8437
|
const config = {};
|
|
8209
|
-
typeCheckConfig$
|
|
8438
|
+
typeCheckConfig$o(untrustedConfig, config, getSuccessTeam_ConfigPropertyMetadata);
|
|
8210
8439
|
return config;
|
|
8211
8440
|
}
|
|
8212
8441
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -8255,7 +8484,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
8255
8484
|
});
|
|
8256
8485
|
}
|
|
8257
8486
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
8258
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8487
|
+
return buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
8259
8488
|
}
|
|
8260
8489
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
8261
8490
|
const { luvio, config } = context;
|
|
@@ -8454,10 +8683,10 @@ const createTask_ConfigPropertyMetadata = [
|
|
|
8454
8683
|
generateParamConfigMetadata('subject', false, 2 /* Body */, 0 /* String */),
|
|
8455
8684
|
];
|
|
8456
8685
|
const createTask_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createTask_ConfigPropertyMetadata);
|
|
8457
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
8686
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$o(createTask_ConfigPropertyMetadata);
|
|
8458
8687
|
function typeCheckConfig$3(untrustedConfig) {
|
|
8459
8688
|
const config = {};
|
|
8460
|
-
typeCheckConfig$
|
|
8689
|
+
typeCheckConfig$o(untrustedConfig, config, createTask_ConfigPropertyMetadata);
|
|
8461
8690
|
return config;
|
|
8462
8691
|
}
|
|
8463
8692
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -8814,14 +9043,14 @@ const getPicklistValues_ConfigPropertyMetadata = [
|
|
|
8814
9043
|
generateParamConfigMetadata('fieldNames', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
8815
9044
|
];
|
|
8816
9045
|
const getPicklistValues_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getPicklistValues_ConfigPropertyMetadata);
|
|
8817
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
9046
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$o(getPicklistValues_ConfigPropertyMetadata);
|
|
8818
9047
|
function keyBuilder$2(luvio, config) {
|
|
8819
9048
|
const resourceParams = createResourceParams$2(config);
|
|
8820
9049
|
return keyBuilder$3(luvio, resourceParams);
|
|
8821
9050
|
}
|
|
8822
9051
|
function typeCheckConfig$2(untrustedConfig) {
|
|
8823
9052
|
const config = {};
|
|
8824
|
-
typeCheckConfig$
|
|
9053
|
+
typeCheckConfig$o(untrustedConfig, config, getPicklistValues_ConfigPropertyMetadata);
|
|
8825
9054
|
return config;
|
|
8826
9055
|
}
|
|
8827
9056
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -8870,7 +9099,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
8870
9099
|
});
|
|
8871
9100
|
}
|
|
8872
9101
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
8873
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9102
|
+
return buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
8874
9103
|
}
|
|
8875
9104
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
8876
9105
|
const { luvio, config } = context;
|
|
@@ -8944,10 +9173,10 @@ const updateTaskStatus_ConfigPropertyMetadata = [
|
|
|
8944
9173
|
generateParamConfigMetadata('subject', false, 2 /* Body */, 0 /* String */),
|
|
8945
9174
|
];
|
|
8946
9175
|
const updateTaskStatus_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateTaskStatus_ConfigPropertyMetadata);
|
|
8947
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
9176
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$o(updateTaskStatus_ConfigPropertyMetadata);
|
|
8948
9177
|
function typeCheckConfig$1(untrustedConfig) {
|
|
8949
9178
|
const config = {};
|
|
8950
|
-
typeCheckConfig$
|
|
9179
|
+
typeCheckConfig$o(untrustedConfig, config, updateTaskStatus_ConfigPropertyMetadata);
|
|
8951
9180
|
return config;
|
|
8952
9181
|
}
|
|
8953
9182
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -10192,14 +10421,14 @@ const getAptsTasksPlans_ConfigPropertyMetadata = [
|
|
|
10192
10421
|
generateParamConfigMetadata('objectType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10193
10422
|
];
|
|
10194
10423
|
const getAptsTasksPlans_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getAptsTasksPlans_ConfigPropertyMetadata);
|
|
10195
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
10424
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$o(getAptsTasksPlans_ConfigPropertyMetadata);
|
|
10196
10425
|
function keyBuilder(luvio, config) {
|
|
10197
10426
|
const resourceParams = createResourceParams(config);
|
|
10198
10427
|
return keyBuilder$1(luvio, resourceParams);
|
|
10199
10428
|
}
|
|
10200
10429
|
function typeCheckConfig(untrustedConfig) {
|
|
10201
10430
|
const config = {};
|
|
10202
|
-
typeCheckConfig$
|
|
10431
|
+
typeCheckConfig$o(untrustedConfig, config, getAptsTasksPlans_ConfigPropertyMetadata);
|
|
10203
10432
|
return config;
|
|
10204
10433
|
}
|
|
10205
10434
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -10248,7 +10477,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
10248
10477
|
});
|
|
10249
10478
|
}
|
|
10250
10479
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
10251
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10480
|
+
return buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
10252
10481
|
}
|
|
10253
10482
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
10254
10483
|
const { luvio, config } = context;
|
|
@@ -10273,4 +10502,4 @@ const getAptsTasksPlansAdapterFactory = (luvio) => function education__getAptsTa
|
|
|
10273
10502
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
10274
10503
|
};
|
|
10275
10504
|
|
|
10276
|
-
export { createCarePlansAdapterFactory, createPreliminaryApplicationReferencesAdapterFactory, createTaskAdapterFactory, getAcademicTermsAdapterFactory, getApplicationDetailsAdapterFactory, getApplicationsAdapterFactory, getAptsTasksPlansAdapterFactory, getAvailableTimeSlotsAdapterFactory, getAvailableTopicsAdapterFactory, getIndividualApplicationTaskAdapterFactory, getLearnerProgressAdapterFactory, getNewApplicationPreliminaryDataAdapterFactory, getPersonPublicProfileAdapterFactory, getPicklistValuesAdapterFactory, getPreviewLearningProgramPlanAdapterFactory, getProgramTermApplicationTimelinesAdapterFactory, getSuccessTeamAdapterFactory, postBenefitAssignmentAdapterFactory, postCreateLearningAdapterFactory, postMatchingSelectorAdapterFactory, postPublishLearningProgramPlanAdapterFactory, updateLearningAdapterFactory, updateTaskStatusAdapterFactory };
|
|
10505
|
+
export { createCarePlansAdapterFactory, createPreliminaryApplicationReferencesAdapterFactory, createTaskAdapterFactory, getAcademicTermsAdapterFactory, getApplicationDetailsAdapterFactory, getApplicationsAdapterFactory, getAptsTasksPlansAdapterFactory, getAvailableTimeSlotsAdapterFactory, getAvailableTopicsAdapterFactory, getIndividualApplicationTaskAdapterFactory, getLearnerProgressAdapterFactory, getNewApplicationPreliminaryDataAdapterFactory, getPersonPublicProfileAdapterFactory, getPicklistValuesAdapterFactory, getPreviewLearningProgramPlanAdapterFactory, getProgramTermApplicationTimelinesAdapterFactory, getPromptTemplatesAdapterFactory, getSuccessTeamAdapterFactory, postBenefitAssignmentAdapterFactory, postCreateLearningAdapterFactory, postMatchingSelectorAdapterFactory, postPublishLearningProgramPlanAdapterFactory, updateLearningAdapterFactory, updateTaskStatusAdapterFactory };
|