@salesforce/lds-adapters-industries-timeline 1.278.0 → 1.280.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-timeline.js +681 -155
- package/dist/es/es2018/types/src/generated/adapters/getDataGraphMetadata.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/getEngagementEvents.d.ts +1 -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/getConnectTimelineCustDataPfrmDataGraphMetadata.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectTimelineTimelineDefinitionsCustDataPfrmEventsByTimelineConfigFullNameAndTimelineObjRecordId.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/types/DGObjectOutputRepresentation.d.ts +55 -0
- package/dist/es/es2018/types/src/generated/types/DataGraphMetadataRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/DataGraphOutputRepresentation.d.ts +53 -0
- package/dist/es/es2018/types/src/generated/types/EngagementEventTimelineDataRepresentation.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/types/EngagementEventsRelatedListFieldsRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/EngagementEventsRelatedListRecordsRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/PathToDmoRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/TimelineDataCloudEventRepresentation.d.ts +48 -0
- package/dist/es/es2018/types/src/generated/types/TimelineEngagementRelatedListEventsRepresentation.d.ts +36 -0
- package/package.json +4 -4
- package/sfdc/index.js +708 -170
- package/src/raml/api.raml +200 -18
- package/src/raml/luvio.raml +44 -20
|
@@ -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$5, typeCheckConfig as typeCheckConfig$5, StoreKeyMap, createResourceParams as createResourceParams$5 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -79,7 +79,7 @@ function createLink(ref) {
|
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
function validate$
|
|
82
|
+
function validate$n(obj, path = 'TimelineErrorRepresentation') {
|
|
83
83
|
const v_error = (() => {
|
|
84
84
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
85
85
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -140,7 +140,7 @@ function validate$f(obj, path = 'TimelineErrorRepresentation') {
|
|
|
140
140
|
return v_error === undefined ? null : v_error;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
function validate$
|
|
143
|
+
function validate$m(obj, path = 'TimelineEventTypeRepresentation') {
|
|
144
144
|
const v_error = (() => {
|
|
145
145
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
146
146
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -201,7 +201,7 @@ function validate$e(obj, path = 'TimelineEventTypeRepresentation') {
|
|
|
201
201
|
return v_error === undefined ? null : v_error;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
function validate$
|
|
204
|
+
function validate$l(obj, path = 'TimelineEventFieldRepresentation') {
|
|
205
205
|
const v_error = (() => {
|
|
206
206
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
207
207
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -262,7 +262,418 @@ function validate$d(obj, path = 'TimelineEventFieldRepresentation') {
|
|
|
262
262
|
return v_error === undefined ? null : v_error;
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
function validate$
|
|
265
|
+
function validate$k(obj, path = 'PathToDmoRepresentation') {
|
|
266
|
+
const v_error = (() => {
|
|
267
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
268
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
269
|
+
}
|
|
270
|
+
const obj_dmoName = obj.dmoName;
|
|
271
|
+
const path_dmoName = path + '.dmoName';
|
|
272
|
+
if (typeof obj_dmoName !== 'string') {
|
|
273
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dmoName + '" (at "' + path_dmoName + '")');
|
|
274
|
+
}
|
|
275
|
+
const obj_pathToDmoRepresentation = obj.pathToDmoRepresentation;
|
|
276
|
+
const path_pathToDmoRepresentation = path + '.pathToDmoRepresentation';
|
|
277
|
+
const referencepath_pathToDmoRepresentationValidationError = validate$k(obj_pathToDmoRepresentation, path_pathToDmoRepresentation);
|
|
278
|
+
if (referencepath_pathToDmoRepresentationValidationError !== null) {
|
|
279
|
+
let message = 'Object doesn\'t match PathToDmoRepresentation (at "' + path_pathToDmoRepresentation + '")\n';
|
|
280
|
+
message += referencepath_pathToDmoRepresentationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
281
|
+
return new TypeError(message);
|
|
282
|
+
}
|
|
283
|
+
})();
|
|
284
|
+
return v_error === undefined ? null : v_error;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
function validate$j(obj, path = 'EngagementEventsRelatedListFieldsRepresentation') {
|
|
288
|
+
const v_error = (() => {
|
|
289
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
290
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
291
|
+
}
|
|
292
|
+
const obj_label = obj.label;
|
|
293
|
+
const path_label = path + '.label';
|
|
294
|
+
if (typeof obj_label !== 'string') {
|
|
295
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
296
|
+
}
|
|
297
|
+
const obj_type = obj.type;
|
|
298
|
+
const path_type = path + '.type';
|
|
299
|
+
if (typeof obj_type !== 'string') {
|
|
300
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
301
|
+
}
|
|
302
|
+
const obj_value = obj.value;
|
|
303
|
+
const path_value = path + '.value';
|
|
304
|
+
if (typeof obj_value !== 'string') {
|
|
305
|
+
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
306
|
+
}
|
|
307
|
+
})();
|
|
308
|
+
return v_error === undefined ? null : v_error;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
function validate$i(obj, path = 'EngagementEventsRelatedListRecordsRepresentation') {
|
|
312
|
+
const v_error = (() => {
|
|
313
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
314
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
315
|
+
}
|
|
316
|
+
const obj_fields = obj.fields;
|
|
317
|
+
const path_fields = path + '.fields';
|
|
318
|
+
if (!ArrayIsArray(obj_fields)) {
|
|
319
|
+
return new TypeError('Expected "array" but received "' + typeof obj_fields + '" (at "' + path_fields + '")');
|
|
320
|
+
}
|
|
321
|
+
for (let i = 0; i < obj_fields.length; i++) {
|
|
322
|
+
const obj_fields_item = obj_fields[i];
|
|
323
|
+
const path_fields_item = path_fields + '[' + i + ']';
|
|
324
|
+
const referencepath_fields_itemValidationError = validate$j(obj_fields_item, path_fields_item);
|
|
325
|
+
if (referencepath_fields_itemValidationError !== null) {
|
|
326
|
+
let message = 'Object doesn\'t match EngagementEventsRelatedListFieldsRepresentation (at "' + path_fields_item + '")\n';
|
|
327
|
+
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
328
|
+
return new TypeError(message);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
})();
|
|
332
|
+
return v_error === undefined ? null : v_error;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
function validate$h(obj, path = 'TimelineEngagementRelatedListEventsRepresentation') {
|
|
336
|
+
const v_error = (() => {
|
|
337
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
338
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
339
|
+
}
|
|
340
|
+
const obj_nameOfDmo = obj.nameOfDmo;
|
|
341
|
+
const path_nameOfDmo = path + '.nameOfDmo';
|
|
342
|
+
if (typeof obj_nameOfDmo !== 'string') {
|
|
343
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nameOfDmo + '" (at "' + path_nameOfDmo + '")');
|
|
344
|
+
}
|
|
345
|
+
const obj_pathToDmo = obj.pathToDmo;
|
|
346
|
+
const path_pathToDmo = path + '.pathToDmo';
|
|
347
|
+
const referencepath_pathToDmoValidationError = validate$k(obj_pathToDmo, path_pathToDmo);
|
|
348
|
+
if (referencepath_pathToDmoValidationError !== null) {
|
|
349
|
+
let message = 'Object doesn\'t match PathToDmoRepresentation (at "' + path_pathToDmo + '")\n';
|
|
350
|
+
message += referencepath_pathToDmoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
351
|
+
return new TypeError(message);
|
|
352
|
+
}
|
|
353
|
+
const obj_records = obj.records;
|
|
354
|
+
const path_records = path + '.records';
|
|
355
|
+
if (!ArrayIsArray(obj_records)) {
|
|
356
|
+
return new TypeError('Expected "array" but received "' + typeof obj_records + '" (at "' + path_records + '")');
|
|
357
|
+
}
|
|
358
|
+
for (let i = 0; i < obj_records.length; i++) {
|
|
359
|
+
const obj_records_item = obj_records[i];
|
|
360
|
+
const path_records_item = path_records + '[' + i + ']';
|
|
361
|
+
const referencepath_records_itemValidationError = validate$i(obj_records_item, path_records_item);
|
|
362
|
+
if (referencepath_records_itemValidationError !== null) {
|
|
363
|
+
let message = 'Object doesn\'t match EngagementEventsRelatedListRecordsRepresentation (at "' + path_records_item + '")\n';
|
|
364
|
+
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
365
|
+
return new TypeError(message);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
})();
|
|
369
|
+
return v_error === undefined ? null : v_error;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
function validate$g(obj, path = 'TimelineDataCloudEventRepresentation') {
|
|
373
|
+
const v_error = (() => {
|
|
374
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
375
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
376
|
+
}
|
|
377
|
+
const obj_description = obj.description;
|
|
378
|
+
const path_description = path + '.description';
|
|
379
|
+
if (typeof obj_description !== 'string') {
|
|
380
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
381
|
+
}
|
|
382
|
+
const obj_eventDateTime = obj.eventDateTime;
|
|
383
|
+
const path_eventDateTime = path + '.eventDateTime';
|
|
384
|
+
if (typeof obj_eventDateTime !== 'string') {
|
|
385
|
+
return new TypeError('Expected "string" but received "' + typeof obj_eventDateTime + '" (at "' + path_eventDateTime + '")');
|
|
386
|
+
}
|
|
387
|
+
const obj_fields = obj.fields;
|
|
388
|
+
const path_fields = path + '.fields';
|
|
389
|
+
if (!ArrayIsArray(obj_fields)) {
|
|
390
|
+
return new TypeError('Expected "array" but received "' + typeof obj_fields + '" (at "' + path_fields + '")');
|
|
391
|
+
}
|
|
392
|
+
for (let i = 0; i < obj_fields.length; i++) {
|
|
393
|
+
const obj_fields_item = obj_fields[i];
|
|
394
|
+
const path_fields_item = path_fields + '[' + i + ']';
|
|
395
|
+
const referencepath_fields_itemValidationError = validate$l(obj_fields_item, path_fields_item);
|
|
396
|
+
if (referencepath_fields_itemValidationError !== null) {
|
|
397
|
+
let message = 'Object doesn\'t match TimelineEventFieldRepresentation (at "' + path_fields_item + '")\n';
|
|
398
|
+
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
399
|
+
return new TypeError(message);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
const obj_id = obj.id;
|
|
403
|
+
const path_id = path + '.id';
|
|
404
|
+
if (typeof obj_id !== 'string') {
|
|
405
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
406
|
+
}
|
|
407
|
+
const obj_relatedListEvents = obj.relatedListEvents;
|
|
408
|
+
const path_relatedListEvents = path + '.relatedListEvents';
|
|
409
|
+
if (!ArrayIsArray(obj_relatedListEvents)) {
|
|
410
|
+
return new TypeError('Expected "array" but received "' + typeof obj_relatedListEvents + '" (at "' + path_relatedListEvents + '")');
|
|
411
|
+
}
|
|
412
|
+
for (let i = 0; i < obj_relatedListEvents.length; i++) {
|
|
413
|
+
const obj_relatedListEvents_item = obj_relatedListEvents[i];
|
|
414
|
+
const path_relatedListEvents_item = path_relatedListEvents + '[' + i + ']';
|
|
415
|
+
const referencepath_relatedListEvents_itemValidationError = validate$h(obj_relatedListEvents_item, path_relatedListEvents_item);
|
|
416
|
+
if (referencepath_relatedListEvents_itemValidationError !== null) {
|
|
417
|
+
let message = 'Object doesn\'t match TimelineEngagementRelatedListEventsRepresentation (at "' + path_relatedListEvents_item + '")\n';
|
|
418
|
+
message += referencepath_relatedListEvents_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
419
|
+
return new TypeError(message);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
const obj_title = obj.title;
|
|
423
|
+
const path_title = path + '.title';
|
|
424
|
+
if (typeof obj_title !== 'string') {
|
|
425
|
+
return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
426
|
+
}
|
|
427
|
+
const obj_type = obj.type;
|
|
428
|
+
const path_type = path + '.type';
|
|
429
|
+
if (typeof obj_type !== 'string') {
|
|
430
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
431
|
+
}
|
|
432
|
+
})();
|
|
433
|
+
return v_error === undefined ? null : v_error;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
const TTL$4 = 600000;
|
|
437
|
+
const VERSION$4 = "31ad4122bb5e1ca42f04395b0e0212cf";
|
|
438
|
+
function validate$f(obj, path = 'EngagementEventTimelineDataRepresentation') {
|
|
439
|
+
const v_error = (() => {
|
|
440
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
441
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
442
|
+
}
|
|
443
|
+
const obj_errors = obj.errors;
|
|
444
|
+
const path_errors = path + '.errors';
|
|
445
|
+
if (!ArrayIsArray(obj_errors)) {
|
|
446
|
+
return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
|
|
447
|
+
}
|
|
448
|
+
for (let i = 0; i < obj_errors.length; i++) {
|
|
449
|
+
const obj_errors_item = obj_errors[i];
|
|
450
|
+
const path_errors_item = path_errors + '[' + i + ']';
|
|
451
|
+
const referencepath_errors_itemValidationError = validate$n(obj_errors_item, path_errors_item);
|
|
452
|
+
if (referencepath_errors_itemValidationError !== null) {
|
|
453
|
+
let message = 'Object doesn\'t match TimelineErrorRepresentation (at "' + path_errors_item + '")\n';
|
|
454
|
+
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
455
|
+
return new TypeError(message);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
const obj_eventTypes = obj.eventTypes;
|
|
459
|
+
const path_eventTypes = path + '.eventTypes';
|
|
460
|
+
if (!ArrayIsArray(obj_eventTypes)) {
|
|
461
|
+
return new TypeError('Expected "array" but received "' + typeof obj_eventTypes + '" (at "' + path_eventTypes + '")');
|
|
462
|
+
}
|
|
463
|
+
for (let i = 0; i < obj_eventTypes.length; i++) {
|
|
464
|
+
const obj_eventTypes_item = obj_eventTypes[i];
|
|
465
|
+
const path_eventTypes_item = path_eventTypes + '[' + i + ']';
|
|
466
|
+
const referencepath_eventTypes_itemValidationError = validate$m(obj_eventTypes_item, path_eventTypes_item);
|
|
467
|
+
if (referencepath_eventTypes_itemValidationError !== null) {
|
|
468
|
+
let message = 'Object doesn\'t match TimelineEventTypeRepresentation (at "' + path_eventTypes_item + '")\n';
|
|
469
|
+
message += referencepath_eventTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
470
|
+
return new TypeError(message);
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
const obj_events = obj.events;
|
|
474
|
+
const path_events = path + '.events';
|
|
475
|
+
if (!ArrayIsArray(obj_events)) {
|
|
476
|
+
return new TypeError('Expected "array" but received "' + typeof obj_events + '" (at "' + path_events + '")');
|
|
477
|
+
}
|
|
478
|
+
for (let i = 0; i < obj_events.length; i++) {
|
|
479
|
+
const obj_events_item = obj_events[i];
|
|
480
|
+
const path_events_item = path_events + '[' + i + ']';
|
|
481
|
+
const referencepath_events_itemValidationError = validate$g(obj_events_item, path_events_item);
|
|
482
|
+
if (referencepath_events_itemValidationError !== null) {
|
|
483
|
+
let message = 'Object doesn\'t match TimelineDataCloudEventRepresentation (at "' + path_events_item + '")\n';
|
|
484
|
+
message += referencepath_events_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
485
|
+
return new TypeError(message);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
const obj_isSuccess = obj.isSuccess;
|
|
489
|
+
const path_isSuccess = path + '.isSuccess';
|
|
490
|
+
if (typeof obj_isSuccess !== 'boolean') {
|
|
491
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
492
|
+
}
|
|
493
|
+
})();
|
|
494
|
+
return v_error === undefined ? null : v_error;
|
|
495
|
+
}
|
|
496
|
+
const RepresentationType$4 = 'EngagementEventTimelineDataRepresentation';
|
|
497
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
498
|
+
return input;
|
|
499
|
+
}
|
|
500
|
+
const select$9 = function EngagementEventTimelineDataRepresentationSelect() {
|
|
501
|
+
return {
|
|
502
|
+
kind: 'Fragment',
|
|
503
|
+
version: VERSION$4,
|
|
504
|
+
private: [],
|
|
505
|
+
opaque: true
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
function equals$4(existing, incoming) {
|
|
509
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
510
|
+
return false;
|
|
511
|
+
}
|
|
512
|
+
return true;
|
|
513
|
+
}
|
|
514
|
+
const ingest$4 = function EngagementEventTimelineDataRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
515
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
516
|
+
const validateError = validate$f(input);
|
|
517
|
+
if (validateError !== null) {
|
|
518
|
+
throw validateError;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
const key = path.fullPath;
|
|
522
|
+
const ttlToUse = TTL$4;
|
|
523
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "Timeline", VERSION$4, RepresentationType$4, equals$4);
|
|
524
|
+
return createLink(key);
|
|
525
|
+
};
|
|
526
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
527
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
528
|
+
const rootKey = fullPathFactory();
|
|
529
|
+
rootKeySet.set(rootKey, {
|
|
530
|
+
namespace: keyPrefix,
|
|
531
|
+
representationName: RepresentationType$4,
|
|
532
|
+
mergeable: false
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
function select$8(luvio, params) {
|
|
537
|
+
return select$9();
|
|
538
|
+
}
|
|
539
|
+
function keyBuilder$9(luvio, params) {
|
|
540
|
+
return keyPrefix + '::EngagementEventTimelineDataRepresentation:(' + 'dataCloudEventSource:' + params.queryParams.dataCloudEventSource + ',' + 'timelineConfigFullName:' + params.urlParams.timelineConfigFullName + ',' + 'timelineObjRecordId:' + params.urlParams.timelineObjRecordId + ')';
|
|
541
|
+
}
|
|
542
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
543
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
544
|
+
}
|
|
545
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
546
|
+
const { body } = response;
|
|
547
|
+
const key = keyBuilder$9(luvio, resourceParams);
|
|
548
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
549
|
+
const snapshot = luvio.storeLookup({
|
|
550
|
+
recordId: key,
|
|
551
|
+
node: select$8(),
|
|
552
|
+
variables: {},
|
|
553
|
+
}, snapshotRefresh);
|
|
554
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
555
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
556
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
deepFreeze(snapshot.data);
|
|
560
|
+
return snapshot;
|
|
561
|
+
}
|
|
562
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
563
|
+
const key = keyBuilder$9(luvio, params);
|
|
564
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
565
|
+
const storeMetadataParams = {
|
|
566
|
+
ttl: TTL$4,
|
|
567
|
+
namespace: keyPrefix,
|
|
568
|
+
version: VERSION$4,
|
|
569
|
+
representationName: RepresentationType$4
|
|
570
|
+
};
|
|
571
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
572
|
+
return errorSnapshot;
|
|
573
|
+
}
|
|
574
|
+
function createResourceRequest$4(config) {
|
|
575
|
+
const headers = {};
|
|
576
|
+
return {
|
|
577
|
+
baseUri: '/services/data/v61.0',
|
|
578
|
+
basePath: '/connect/timeline/' + config.urlParams.timelineObjRecordId + '/timeline-definitions/' + config.urlParams.timelineConfigFullName + '/cust-data-pfrm/events',
|
|
579
|
+
method: 'get',
|
|
580
|
+
body: null,
|
|
581
|
+
urlParams: config.urlParams,
|
|
582
|
+
queryParams: config.queryParams,
|
|
583
|
+
headers,
|
|
584
|
+
priority: 'normal',
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
const adapterName$4 = 'getEngagementEvents';
|
|
589
|
+
const getEngagementEvents_ConfigPropertyMetadata = [
|
|
590
|
+
generateParamConfigMetadata('timelineConfigFullName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
591
|
+
generateParamConfigMetadata('timelineObjRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
592
|
+
generateParamConfigMetadata('dataCloudEventSource', false, 1 /* QueryParameter */, 0 /* String */),
|
|
593
|
+
];
|
|
594
|
+
const getEngagementEvents_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getEngagementEvents_ConfigPropertyMetadata);
|
|
595
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$5(getEngagementEvents_ConfigPropertyMetadata);
|
|
596
|
+
function keyBuilder$8(luvio, config) {
|
|
597
|
+
const resourceParams = createResourceParams$4(config);
|
|
598
|
+
return keyBuilder$9(luvio, resourceParams);
|
|
599
|
+
}
|
|
600
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
601
|
+
const config = {};
|
|
602
|
+
typeCheckConfig$5(untrustedConfig, config, getEngagementEvents_ConfigPropertyMetadata);
|
|
603
|
+
return config;
|
|
604
|
+
}
|
|
605
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
606
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
607
|
+
return null;
|
|
608
|
+
}
|
|
609
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
610
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
611
|
+
}
|
|
612
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
613
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
614
|
+
return null;
|
|
615
|
+
}
|
|
616
|
+
return config;
|
|
617
|
+
}
|
|
618
|
+
function adapterFragment$4(luvio, config) {
|
|
619
|
+
createResourceParams$4(config);
|
|
620
|
+
return select$8();
|
|
621
|
+
}
|
|
622
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
623
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
624
|
+
config,
|
|
625
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
626
|
+
});
|
|
627
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
628
|
+
}
|
|
629
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
630
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
631
|
+
config,
|
|
632
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
633
|
+
});
|
|
634
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
635
|
+
}
|
|
636
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
637
|
+
const resourceParams = createResourceParams$4(config);
|
|
638
|
+
const request = createResourceRequest$4(resourceParams);
|
|
639
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
640
|
+
.then((response) => {
|
|
641
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
642
|
+
const cache = new StoreKeyMap();
|
|
643
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
644
|
+
return cache;
|
|
645
|
+
});
|
|
646
|
+
}, (response) => {
|
|
647
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
651
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
652
|
+
}
|
|
653
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
654
|
+
const { luvio, config } = context;
|
|
655
|
+
const selector = {
|
|
656
|
+
recordId: keyBuilder$8(luvio, config),
|
|
657
|
+
node: adapterFragment$4(luvio, config),
|
|
658
|
+
variables: {},
|
|
659
|
+
};
|
|
660
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
661
|
+
config,
|
|
662
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
663
|
+
});
|
|
664
|
+
return cacheSnapshot;
|
|
665
|
+
}
|
|
666
|
+
const getEngagementEventsAdapterFactory = (luvio) => function Timeline__getEngagementEvents(untrustedConfig, requestContext) {
|
|
667
|
+
const config = validateAdapterConfig$4(untrustedConfig, getEngagementEvents_ConfigPropertyNames);
|
|
668
|
+
// Invalid or incomplete config
|
|
669
|
+
if (config === null) {
|
|
670
|
+
return null;
|
|
671
|
+
}
|
|
672
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
673
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
674
|
+
};
|
|
675
|
+
|
|
676
|
+
function validate$e(obj, path = 'TimelineEventRepresentation') {
|
|
266
677
|
const v_error = (() => {
|
|
267
678
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
268
679
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -328,7 +739,7 @@ function validate$c(obj, path = 'TimelineEventRepresentation') {
|
|
|
328
739
|
for (let i = 0; i < obj_fields.length; i++) {
|
|
329
740
|
const obj_fields_item = obj_fields[i];
|
|
330
741
|
const path_fields_item = path_fields + '[' + i + ']';
|
|
331
|
-
const referencepath_fields_itemValidationError = validate$
|
|
742
|
+
const referencepath_fields_itemValidationError = validate$l(obj_fields_item, path_fields_item);
|
|
332
743
|
if (referencepath_fields_itemValidationError !== null) {
|
|
333
744
|
let message = 'Object doesn\'t match TimelineEventFieldRepresentation (at "' + path_fields_item + '")\n';
|
|
334
745
|
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -418,71 +829,86 @@ function validate$c(obj, path = 'TimelineEventRepresentation') {
|
|
|
418
829
|
return v_error === undefined ? null : v_error;
|
|
419
830
|
}
|
|
420
831
|
|
|
421
|
-
const TTL$3 =
|
|
422
|
-
const VERSION$3 = "
|
|
423
|
-
function validate$
|
|
832
|
+
const TTL$3 = 500;
|
|
833
|
+
const VERSION$3 = "fdc9f6f24a05bf6064b5dd39db6e4e4d";
|
|
834
|
+
function validate$d(obj, path = 'TimelineDataGetResultRepresentation') {
|
|
424
835
|
const v_error = (() => {
|
|
425
836
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
426
837
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
427
838
|
}
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
839
|
+
if (obj.errors !== undefined) {
|
|
840
|
+
const obj_errors = obj.errors;
|
|
841
|
+
const path_errors = path + '.errors';
|
|
842
|
+
if (!ArrayIsArray(obj_errors)) {
|
|
843
|
+
return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
|
|
844
|
+
}
|
|
845
|
+
for (let i = 0; i < obj_errors.length; i++) {
|
|
846
|
+
const obj_errors_item = obj_errors[i];
|
|
847
|
+
const path_errors_item = path_errors + '[' + i + ']';
|
|
848
|
+
const referencepath_errors_itemValidationError = validate$n(obj_errors_item, path_errors_item);
|
|
849
|
+
if (referencepath_errors_itemValidationError !== null) {
|
|
850
|
+
let message = 'Object doesn\'t match TimelineErrorRepresentation (at "' + path_errors_item + '")\n';
|
|
851
|
+
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
852
|
+
return new TypeError(message);
|
|
853
|
+
}
|
|
441
854
|
}
|
|
442
855
|
}
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
856
|
+
if (obj.eventTypes !== undefined) {
|
|
857
|
+
const obj_eventTypes = obj.eventTypes;
|
|
858
|
+
const path_eventTypes = path + '.eventTypes';
|
|
859
|
+
if (!ArrayIsArray(obj_eventTypes)) {
|
|
860
|
+
return new TypeError('Expected "array" but received "' + typeof obj_eventTypes + '" (at "' + path_eventTypes + '")');
|
|
861
|
+
}
|
|
862
|
+
for (let i = 0; i < obj_eventTypes.length; i++) {
|
|
863
|
+
const obj_eventTypes_item = obj_eventTypes[i];
|
|
864
|
+
const path_eventTypes_item = path_eventTypes + '[' + i + ']';
|
|
865
|
+
const referencepath_eventTypes_itemValidationError = validate$m(obj_eventTypes_item, path_eventTypes_item);
|
|
866
|
+
if (referencepath_eventTypes_itemValidationError !== null) {
|
|
867
|
+
let message = 'Object doesn\'t match TimelineEventTypeRepresentation (at "' + path_eventTypes_item + '")\n';
|
|
868
|
+
message += referencepath_eventTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
869
|
+
return new TypeError(message);
|
|
870
|
+
}
|
|
456
871
|
}
|
|
457
872
|
}
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
873
|
+
if (obj.events !== undefined) {
|
|
874
|
+
const obj_events = obj.events;
|
|
875
|
+
const path_events = path + '.events';
|
|
876
|
+
if (!ArrayIsArray(obj_events)) {
|
|
877
|
+
return new TypeError('Expected "array" but received "' + typeof obj_events + '" (at "' + path_events + '")');
|
|
878
|
+
}
|
|
879
|
+
for (let i = 0; i < obj_events.length; i++) {
|
|
880
|
+
const obj_events_item = obj_events[i];
|
|
881
|
+
const path_events_item = path_events + '[' + i + ']';
|
|
882
|
+
const referencepath_events_itemValidationError = validate$e(obj_events_item, path_events_item);
|
|
883
|
+
if (referencepath_events_itemValidationError !== null) {
|
|
884
|
+
let message = 'Object doesn\'t match TimelineEventRepresentation (at "' + path_events_item + '")\n';
|
|
885
|
+
message += referencepath_events_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
886
|
+
return new TypeError(message);
|
|
887
|
+
}
|
|
888
|
+
}
|
|
462
889
|
}
|
|
463
|
-
|
|
464
|
-
const
|
|
465
|
-
const
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
let message = 'Object doesn\'t match TimelineEventRepresentation (at "' + path_events_item + '")\n';
|
|
469
|
-
message += referencepath_events_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
470
|
-
return new TypeError(message);
|
|
890
|
+
if (obj.hasMoreData !== undefined) {
|
|
891
|
+
const obj_hasMoreData = obj.hasMoreData;
|
|
892
|
+
const path_hasMoreData = path + '.hasMoreData';
|
|
893
|
+
if (typeof obj_hasMoreData !== 'boolean') {
|
|
894
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_hasMoreData + '" (at "' + path_hasMoreData + '")');
|
|
471
895
|
}
|
|
472
896
|
}
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
897
|
+
if (obj.isSuccess !== undefined) {
|
|
898
|
+
const obj_isSuccess = obj.isSuccess;
|
|
899
|
+
const path_isSuccess = path + '.isSuccess';
|
|
900
|
+
if (typeof obj_isSuccess !== 'boolean') {
|
|
901
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
902
|
+
}
|
|
477
903
|
}
|
|
478
904
|
})();
|
|
479
905
|
return v_error === undefined ? null : v_error;
|
|
480
906
|
}
|
|
481
|
-
const RepresentationType$3 = '
|
|
907
|
+
const RepresentationType$3 = 'TimelineDataGetResultRepresentation';
|
|
482
908
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
483
909
|
return input;
|
|
484
910
|
}
|
|
485
|
-
const select$7 = function
|
|
911
|
+
const select$7 = function TimelineDataGetResultRepresentationSelect() {
|
|
486
912
|
return {
|
|
487
913
|
kind: 'Fragment',
|
|
488
914
|
version: VERSION$3,
|
|
@@ -496,9 +922,9 @@ function equals$3(existing, incoming) {
|
|
|
496
922
|
}
|
|
497
923
|
return true;
|
|
498
924
|
}
|
|
499
|
-
const ingest$3 = function
|
|
925
|
+
const ingest$3 = function TimelineDataGetResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
500
926
|
if (process.env.NODE_ENV !== 'production') {
|
|
501
|
-
const validateError = validate$
|
|
927
|
+
const validateError = validate$d(input);
|
|
502
928
|
if (validateError !== null) {
|
|
503
929
|
throw validateError;
|
|
504
930
|
}
|
|
@@ -522,7 +948,7 @@ function select$6(luvio, params) {
|
|
|
522
948
|
return select$7();
|
|
523
949
|
}
|
|
524
950
|
function keyBuilder$7(luvio, params) {
|
|
525
|
-
return keyPrefix + '::
|
|
951
|
+
return keyPrefix + '::TimelineDataGetResultRepresentation:(' + 'direction:' + params.queryParams.direction + ',' + 'endDate:' + params.queryParams.endDate + ',' + 'eventTypeOffsets:' + params.queryParams.eventTypeOffsets + ',' + 'eventTypes:' + params.queryParams.eventTypes + ',' + 'startDate:' + params.queryParams.startDate + ',' + 'timelineConfigFullName:' + params.urlParams.timelineConfigFullName + ',' + 'timelineObjRecordId:' + params.urlParams.timelineObjRecordId + ')';
|
|
526
952
|
}
|
|
527
953
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
528
954
|
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
@@ -560,30 +986,35 @@ function createResourceRequest$3(config) {
|
|
|
560
986
|
const headers = {};
|
|
561
987
|
return {
|
|
562
988
|
baseUri: '/services/data/v61.0',
|
|
563
|
-
basePath: '/connect/timeline/' + config.urlParams.timelineObjRecordId + '/timeline-definitions/' + config.urlParams.timelineConfigFullName + '/
|
|
989
|
+
basePath: '/connect/timeline/' + config.urlParams.timelineObjRecordId + '/timeline-definitions/' + config.urlParams.timelineConfigFullName + '/events',
|
|
564
990
|
method: 'get',
|
|
565
991
|
body: null,
|
|
566
992
|
urlParams: config.urlParams,
|
|
567
|
-
queryParams:
|
|
993
|
+
queryParams: config.queryParams,
|
|
568
994
|
headers,
|
|
569
995
|
priority: 'normal',
|
|
570
996
|
};
|
|
571
997
|
}
|
|
572
998
|
|
|
573
|
-
const adapterName$3 = '
|
|
574
|
-
const
|
|
999
|
+
const adapterName$3 = 'getTimelineData';
|
|
1000
|
+
const getTimelineData_ConfigPropertyMetadata = [
|
|
575
1001
|
generateParamConfigMetadata('timelineConfigFullName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
576
1002
|
generateParamConfigMetadata('timelineObjRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1003
|
+
generateParamConfigMetadata('direction', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1004
|
+
generateParamConfigMetadata('endDate', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1005
|
+
generateParamConfigMetadata('eventTypeOffsets', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1006
|
+
generateParamConfigMetadata('eventTypes', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1007
|
+
generateParamConfigMetadata('startDate', false, 1 /* QueryParameter */, 0 /* String */),
|
|
577
1008
|
];
|
|
578
|
-
const
|
|
579
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
1009
|
+
const getTimelineData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getTimelineData_ConfigPropertyMetadata);
|
|
1010
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$5(getTimelineData_ConfigPropertyMetadata);
|
|
580
1011
|
function keyBuilder$6(luvio, config) {
|
|
581
1012
|
const resourceParams = createResourceParams$3(config);
|
|
582
1013
|
return keyBuilder$7(luvio, resourceParams);
|
|
583
1014
|
}
|
|
584
1015
|
function typeCheckConfig$3(untrustedConfig) {
|
|
585
1016
|
const config = {};
|
|
586
|
-
typeCheckConfig$
|
|
1017
|
+
typeCheckConfig$5(untrustedConfig, config, getTimelineData_ConfigPropertyMetadata);
|
|
587
1018
|
return config;
|
|
588
1019
|
}
|
|
589
1020
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -632,7 +1063,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
632
1063
|
});
|
|
633
1064
|
}
|
|
634
1065
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
635
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1066
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
636
1067
|
}
|
|
637
1068
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
638
1069
|
const { luvio, config } = context;
|
|
@@ -647,8 +1078,8 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
|
647
1078
|
});
|
|
648
1079
|
return cacheSnapshot;
|
|
649
1080
|
}
|
|
650
|
-
const
|
|
651
|
-
const config = validateAdapterConfig$3(untrustedConfig,
|
|
1081
|
+
const getTimelineDataAdapterFactory = (luvio) => function Timeline__getTimelineData(untrustedConfig, requestContext) {
|
|
1082
|
+
const config = validateAdapterConfig$3(untrustedConfig, getTimelineData_ConfigPropertyNames);
|
|
652
1083
|
// Invalid or incomplete config
|
|
653
1084
|
if (config === null) {
|
|
654
1085
|
return null;
|
|
@@ -657,86 +1088,187 @@ const getEngagementEventsAdapterFactory = (luvio) => function Timeline__getEngag
|
|
|
657
1088
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
658
1089
|
};
|
|
659
1090
|
|
|
660
|
-
|
|
661
|
-
const VERSION$2 = "fdc9f6f24a05bf6064b5dd39db6e4e4d";
|
|
662
|
-
function validate$a(obj, path = 'TimelineDataGetResultRepresentation') {
|
|
1091
|
+
function validate$c(obj, path = 'DGObjectOutputRepresentation') {
|
|
663
1092
|
const v_error = (() => {
|
|
664
1093
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
665
1094
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
666
1095
|
}
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
|
|
672
|
-
}
|
|
673
|
-
for (let i = 0; i < obj_errors.length; i++) {
|
|
674
|
-
const obj_errors_item = obj_errors[i];
|
|
675
|
-
const path_errors_item = path_errors + '[' + i + ']';
|
|
676
|
-
const referencepath_errors_itemValidationError = validate$f(obj_errors_item, path_errors_item);
|
|
677
|
-
if (referencepath_errors_itemValidationError !== null) {
|
|
678
|
-
let message = 'Object doesn\'t match TimelineErrorRepresentation (at "' + path_errors_item + '")\n';
|
|
679
|
-
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
680
|
-
return new TypeError(message);
|
|
681
|
-
}
|
|
682
|
-
}
|
|
1096
|
+
const obj_category = obj.category;
|
|
1097
|
+
const path_category = path + '.category';
|
|
1098
|
+
if (typeof obj_category !== 'string') {
|
|
1099
|
+
return new TypeError('Expected "string" but received "' + typeof obj_category + '" (at "' + path_category + '")');
|
|
683
1100
|
}
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
return new TypeError('Expected "array" but received "' + typeof obj_eventTypes + '" (at "' + path_eventTypes + '")');
|
|
689
|
-
}
|
|
690
|
-
for (let i = 0; i < obj_eventTypes.length; i++) {
|
|
691
|
-
const obj_eventTypes_item = obj_eventTypes[i];
|
|
692
|
-
const path_eventTypes_item = path_eventTypes + '[' + i + ']';
|
|
693
|
-
const referencepath_eventTypes_itemValidationError = validate$e(obj_eventTypes_item, path_eventTypes_item);
|
|
694
|
-
if (referencepath_eventTypes_itemValidationError !== null) {
|
|
695
|
-
let message = 'Object doesn\'t match TimelineEventTypeRepresentation (at "' + path_eventTypes_item + '")\n';
|
|
696
|
-
message += referencepath_eventTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
697
|
-
return new TypeError(message);
|
|
698
|
-
}
|
|
699
|
-
}
|
|
1101
|
+
const obj_developerName = obj.developerName;
|
|
1102
|
+
const path_developerName = path + '.developerName';
|
|
1103
|
+
if (typeof obj_developerName !== 'string') {
|
|
1104
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
700
1105
|
}
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
1106
|
+
const obj_displayName = obj.displayName;
|
|
1107
|
+
const path_displayName = path + '.displayName';
|
|
1108
|
+
if (typeof obj_displayName !== 'string') {
|
|
1109
|
+
return new TypeError('Expected "string" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
1110
|
+
}
|
|
1111
|
+
const obj_fields = obj.fields;
|
|
1112
|
+
const path_fields = path + '.fields';
|
|
1113
|
+
if (!ArrayIsArray(obj_fields)) {
|
|
1114
|
+
return new TypeError('Expected "array" but received "' + typeof obj_fields + '" (at "' + path_fields + '")');
|
|
1115
|
+
}
|
|
1116
|
+
for (let i = 0; i < obj_fields.length; i++) {
|
|
1117
|
+
const obj_fields_item = obj_fields[i];
|
|
1118
|
+
const path_fields_item = path_fields + '[' + i + ']';
|
|
1119
|
+
if (obj_fields_item === undefined) {
|
|
1120
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_fields_item + '" (at "' + path_fields_item + '")');
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
if (obj.filterCriteria !== undefined) {
|
|
1124
|
+
const obj_filterCriteria = obj.filterCriteria;
|
|
1125
|
+
const path_filterCriteria = path + '.filterCriteria';
|
|
1126
|
+
if (typeof obj_filterCriteria !== 'string') {
|
|
1127
|
+
return new TypeError('Expected "string" but received "' + typeof obj_filterCriteria + '" (at "' + path_filterCriteria + '")');
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
const obj_memberDmoName = obj.memberDmoName;
|
|
1131
|
+
const path_memberDmoName = path + '.memberDmoName';
|
|
1132
|
+
if (typeof obj_memberDmoName !== 'string') {
|
|
1133
|
+
return new TypeError('Expected "string" but received "' + typeof obj_memberDmoName + '" (at "' + path_memberDmoName + '")');
|
|
1134
|
+
}
|
|
1135
|
+
const obj_paths = obj.paths;
|
|
1136
|
+
const path_paths = path + '.paths';
|
|
1137
|
+
if (!ArrayIsArray(obj_paths)) {
|
|
1138
|
+
return new TypeError('Expected "array" but received "' + typeof obj_paths + '" (at "' + path_paths + '")');
|
|
1139
|
+
}
|
|
1140
|
+
for (let i = 0; i < obj_paths.length; i++) {
|
|
1141
|
+
const obj_paths_item = obj_paths[i];
|
|
1142
|
+
const path_paths_item = path_paths + '[' + i + ']';
|
|
1143
|
+
if (obj_paths_item === undefined) {
|
|
1144
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_paths_item + '" (at "' + path_paths_item + '")');
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
const obj_recencyCriteria = obj.recencyCriteria;
|
|
1148
|
+
const path_recencyCriteria = path + '.recencyCriteria';
|
|
1149
|
+
if (!ArrayIsArray(obj_recencyCriteria)) {
|
|
1150
|
+
return new TypeError('Expected "array" but received "' + typeof obj_recencyCriteria + '" (at "' + path_recencyCriteria + '")');
|
|
1151
|
+
}
|
|
1152
|
+
for (let i = 0; i < obj_recencyCriteria.length; i++) {
|
|
1153
|
+
const obj_recencyCriteria_item = obj_recencyCriteria[i];
|
|
1154
|
+
const path_recencyCriteria_item = path_recencyCriteria + '[' + i + ']';
|
|
1155
|
+
if (obj_recencyCriteria_item === undefined) {
|
|
1156
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_recencyCriteria_item + '" (at "' + path_recencyCriteria_item + '")');
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
const obj_relatedObjects = obj.relatedObjects;
|
|
1160
|
+
const path_relatedObjects = path + '.relatedObjects';
|
|
1161
|
+
if (!ArrayIsArray(obj_relatedObjects)) {
|
|
1162
|
+
return new TypeError('Expected "array" but received "' + typeof obj_relatedObjects + '" (at "' + path_relatedObjects + '")');
|
|
1163
|
+
}
|
|
1164
|
+
for (let i = 0; i < obj_relatedObjects.length; i++) {
|
|
1165
|
+
const obj_relatedObjects_item = obj_relatedObjects[i];
|
|
1166
|
+
const path_relatedObjects_item = path_relatedObjects + '[' + i + ']';
|
|
1167
|
+
const referencepath_relatedObjects_itemValidationError = validate$c(obj_relatedObjects_item, path_relatedObjects_item);
|
|
1168
|
+
if (referencepath_relatedObjects_itemValidationError !== null) {
|
|
1169
|
+
let message = 'Object doesn\'t match DGObjectOutputRepresentation (at "' + path_relatedObjects_item + '")\n';
|
|
1170
|
+
message += referencepath_relatedObjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1171
|
+
return new TypeError(message);
|
|
716
1172
|
}
|
|
717
1173
|
}
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
1174
|
+
const obj_type = obj.type;
|
|
1175
|
+
const path_type = path + '.type';
|
|
1176
|
+
if (typeof obj_type !== 'string') {
|
|
1177
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1178
|
+
}
|
|
1179
|
+
})();
|
|
1180
|
+
return v_error === undefined ? null : v_error;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
function validate$b(obj, path = 'DataGraphOutputRepresentation') {
|
|
1184
|
+
const v_error = (() => {
|
|
1185
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1186
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1187
|
+
}
|
|
1188
|
+
const obj_dataspaceName = obj.dataspaceName;
|
|
1189
|
+
const path_dataspaceName = path + '.dataspaceName';
|
|
1190
|
+
if (typeof obj_dataspaceName !== 'string') {
|
|
1191
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataspaceName + '" (at "' + path_dataspaceName + '")');
|
|
1192
|
+
}
|
|
1193
|
+
if (obj.description !== undefined) {
|
|
1194
|
+
const obj_description = obj.description;
|
|
1195
|
+
const path_description = path + '.description';
|
|
1196
|
+
if (typeof obj_description !== 'string') {
|
|
1197
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
723
1198
|
}
|
|
724
1199
|
}
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
1200
|
+
const obj_developerName = obj.developerName;
|
|
1201
|
+
const path_developerName = path + '.developerName';
|
|
1202
|
+
if (typeof obj_developerName !== 'string') {
|
|
1203
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
1204
|
+
}
|
|
1205
|
+
const obj_dgObject = obj.dgObject;
|
|
1206
|
+
const path_dgObject = path + '.dgObject';
|
|
1207
|
+
const referencepath_dgObjectValidationError = validate$c(obj_dgObject, path_dgObject);
|
|
1208
|
+
if (referencepath_dgObjectValidationError !== null) {
|
|
1209
|
+
let message = 'Object doesn\'t match DGObjectOutputRepresentation (at "' + path_dgObject + '")\n';
|
|
1210
|
+
message += referencepath_dgObjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1211
|
+
return new TypeError(message);
|
|
1212
|
+
}
|
|
1213
|
+
const obj_displayName = obj.displayName;
|
|
1214
|
+
const path_displayName = path + '.displayName';
|
|
1215
|
+
if (typeof obj_displayName !== 'string') {
|
|
1216
|
+
return new TypeError('Expected "string" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
1217
|
+
}
|
|
1218
|
+
const obj_idDmoName = obj.idDmoName;
|
|
1219
|
+
const path_idDmoName = path + '.idDmoName';
|
|
1220
|
+
if (typeof obj_idDmoName !== 'string') {
|
|
1221
|
+
return new TypeError('Expected "string" but received "' + typeof obj_idDmoName + '" (at "' + path_idDmoName + '")');
|
|
1222
|
+
}
|
|
1223
|
+
const obj_primaryObjectName = obj.primaryObjectName;
|
|
1224
|
+
const path_primaryObjectName = path + '.primaryObjectName';
|
|
1225
|
+
if (typeof obj_primaryObjectName !== 'string') {
|
|
1226
|
+
return new TypeError('Expected "string" but received "' + typeof obj_primaryObjectName + '" (at "' + path_primaryObjectName + '")');
|
|
1227
|
+
}
|
|
1228
|
+
const obj_valuesDmoName = obj.valuesDmoName;
|
|
1229
|
+
const path_valuesDmoName = path + '.valuesDmoName';
|
|
1230
|
+
if (typeof obj_valuesDmoName !== 'string') {
|
|
1231
|
+
return new TypeError('Expected "string" but received "' + typeof obj_valuesDmoName + '" (at "' + path_valuesDmoName + '")');
|
|
1232
|
+
}
|
|
1233
|
+
const obj_version = obj.version;
|
|
1234
|
+
const path_version = path + '.version';
|
|
1235
|
+
if (typeof obj_version !== 'string') {
|
|
1236
|
+
return new TypeError('Expected "string" but received "' + typeof obj_version + '" (at "' + path_version + '")');
|
|
1237
|
+
}
|
|
1238
|
+
})();
|
|
1239
|
+
return v_error === undefined ? null : v_error;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
const TTL$2 = 300000;
|
|
1243
|
+
const VERSION$2 = "44b2bb1d9b3f3da028d27540301a3b52";
|
|
1244
|
+
function validate$a(obj, path = 'DataGraphMetadataRepresentation') {
|
|
1245
|
+
const v_error = (() => {
|
|
1246
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1247
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1248
|
+
}
|
|
1249
|
+
const obj_dataGraphMetadata = obj.dataGraphMetadata;
|
|
1250
|
+
const path_dataGraphMetadata = path + '.dataGraphMetadata';
|
|
1251
|
+
if (!ArrayIsArray(obj_dataGraphMetadata)) {
|
|
1252
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dataGraphMetadata + '" (at "' + path_dataGraphMetadata + '")');
|
|
1253
|
+
}
|
|
1254
|
+
for (let i = 0; i < obj_dataGraphMetadata.length; i++) {
|
|
1255
|
+
const obj_dataGraphMetadata_item = obj_dataGraphMetadata[i];
|
|
1256
|
+
const path_dataGraphMetadata_item = path_dataGraphMetadata + '[' + i + ']';
|
|
1257
|
+
const referencepath_dataGraphMetadata_itemValidationError = validate$b(obj_dataGraphMetadata_item, path_dataGraphMetadata_item);
|
|
1258
|
+
if (referencepath_dataGraphMetadata_itemValidationError !== null) {
|
|
1259
|
+
let message = 'Object doesn\'t match DataGraphOutputRepresentation (at "' + path_dataGraphMetadata_item + '")\n';
|
|
1260
|
+
message += referencepath_dataGraphMetadata_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1261
|
+
return new TypeError(message);
|
|
730
1262
|
}
|
|
731
1263
|
}
|
|
732
1264
|
})();
|
|
733
1265
|
return v_error === undefined ? null : v_error;
|
|
734
1266
|
}
|
|
735
|
-
const RepresentationType$2 = '
|
|
1267
|
+
const RepresentationType$2 = 'DataGraphMetadataRepresentation';
|
|
736
1268
|
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
737
1269
|
return input;
|
|
738
1270
|
}
|
|
739
|
-
const select$5 = function
|
|
1271
|
+
const select$5 = function DataGraphMetadataRepresentationSelect() {
|
|
740
1272
|
return {
|
|
741
1273
|
kind: 'Fragment',
|
|
742
1274
|
version: VERSION$2,
|
|
@@ -750,7 +1282,7 @@ function equals$2(existing, incoming) {
|
|
|
750
1282
|
}
|
|
751
1283
|
return true;
|
|
752
1284
|
}
|
|
753
|
-
const ingest$2 = function
|
|
1285
|
+
const ingest$2 = function DataGraphMetadataRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
754
1286
|
if (process.env.NODE_ENV !== 'production') {
|
|
755
1287
|
const validateError = validate$a(input);
|
|
756
1288
|
if (validateError !== null) {
|
|
@@ -776,7 +1308,7 @@ function select$4(luvio, params) {
|
|
|
776
1308
|
return select$5();
|
|
777
1309
|
}
|
|
778
1310
|
function keyBuilder$5(luvio, params) {
|
|
779
|
-
return keyPrefix + '::
|
|
1311
|
+
return keyPrefix + '::DataGraphMetadataRepresentation:(' + 'dataSpaceApiName:' + params.queryParams.dataSpaceApiName + ')';
|
|
780
1312
|
}
|
|
781
1313
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
782
1314
|
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
@@ -814,35 +1346,29 @@ function createResourceRequest$2(config) {
|
|
|
814
1346
|
const headers = {};
|
|
815
1347
|
return {
|
|
816
1348
|
baseUri: '/services/data/v61.0',
|
|
817
|
-
basePath: '/connect/timeline/
|
|
1349
|
+
basePath: '/connect/timeline/cust-data-pfrm/data-graph-metadata',
|
|
818
1350
|
method: 'get',
|
|
819
1351
|
body: null,
|
|
820
|
-
urlParams:
|
|
1352
|
+
urlParams: {},
|
|
821
1353
|
queryParams: config.queryParams,
|
|
822
1354
|
headers,
|
|
823
1355
|
priority: 'normal',
|
|
824
1356
|
};
|
|
825
1357
|
}
|
|
826
1358
|
|
|
827
|
-
const adapterName$2 = '
|
|
828
|
-
const
|
|
829
|
-
generateParamConfigMetadata('
|
|
830
|
-
generateParamConfigMetadata('timelineObjRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
831
|
-
generateParamConfigMetadata('direction', false, 1 /* QueryParameter */, 0 /* String */),
|
|
832
|
-
generateParamConfigMetadata('endDate', false, 1 /* QueryParameter */, 0 /* String */),
|
|
833
|
-
generateParamConfigMetadata('eventTypeOffsets', false, 1 /* QueryParameter */, 0 /* String */),
|
|
834
|
-
generateParamConfigMetadata('eventTypes', false, 1 /* QueryParameter */, 0 /* String */),
|
|
835
|
-
generateParamConfigMetadata('startDate', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1359
|
+
const adapterName$2 = 'getDataGraphMetadata';
|
|
1360
|
+
const getDataGraphMetadata_ConfigPropertyMetadata = [
|
|
1361
|
+
generateParamConfigMetadata('dataSpaceApiName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
836
1362
|
];
|
|
837
|
-
const
|
|
838
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
1363
|
+
const getDataGraphMetadata_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDataGraphMetadata_ConfigPropertyMetadata);
|
|
1364
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$5(getDataGraphMetadata_ConfigPropertyMetadata);
|
|
839
1365
|
function keyBuilder$4(luvio, config) {
|
|
840
1366
|
const resourceParams = createResourceParams$2(config);
|
|
841
1367
|
return keyBuilder$5(luvio, resourceParams);
|
|
842
1368
|
}
|
|
843
1369
|
function typeCheckConfig$2(untrustedConfig) {
|
|
844
1370
|
const config = {};
|
|
845
|
-
typeCheckConfig$
|
|
1371
|
+
typeCheckConfig$5(untrustedConfig, config, getDataGraphMetadata_ConfigPropertyMetadata);
|
|
846
1372
|
return config;
|
|
847
1373
|
}
|
|
848
1374
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -891,7 +1417,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
891
1417
|
});
|
|
892
1418
|
}
|
|
893
1419
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
894
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1420
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
895
1421
|
}
|
|
896
1422
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
897
1423
|
const { luvio, config } = context;
|
|
@@ -906,8 +1432,8 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
|
906
1432
|
});
|
|
907
1433
|
return cacheSnapshot;
|
|
908
1434
|
}
|
|
909
|
-
const
|
|
910
|
-
const config = validateAdapterConfig$2(untrustedConfig,
|
|
1435
|
+
const getDataGraphMetadataAdapterFactory = (luvio) => function Timeline__getDataGraphMetadata(untrustedConfig, requestContext) {
|
|
1436
|
+
const config = validateAdapterConfig$2(untrustedConfig, getDataGraphMetadata_ConfigPropertyNames);
|
|
911
1437
|
// Invalid or incomplete config
|
|
912
1438
|
if (config === null) {
|
|
913
1439
|
return null;
|
|
@@ -1166,14 +1692,14 @@ const getDataModelObjects_ConfigPropertyMetadata = [
|
|
|
1166
1692
|
generateParamConfigMetadata('objectCategory', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1167
1693
|
];
|
|
1168
1694
|
const getDataModelObjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getDataModelObjects_ConfigPropertyMetadata);
|
|
1169
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
1695
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$5(getDataModelObjects_ConfigPropertyMetadata);
|
|
1170
1696
|
function keyBuilder$2(luvio, config) {
|
|
1171
1697
|
const resourceParams = createResourceParams$1(config);
|
|
1172
1698
|
return keyBuilder$3(luvio, resourceParams);
|
|
1173
1699
|
}
|
|
1174
1700
|
function typeCheckConfig$1(untrustedConfig) {
|
|
1175
1701
|
const config = {};
|
|
1176
|
-
typeCheckConfig$
|
|
1702
|
+
typeCheckConfig$5(untrustedConfig, config, getDataModelObjects_ConfigPropertyMetadata);
|
|
1177
1703
|
return config;
|
|
1178
1704
|
}
|
|
1179
1705
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -1222,7 +1748,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
1222
1748
|
});
|
|
1223
1749
|
}
|
|
1224
1750
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
1225
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1751
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
1226
1752
|
}
|
|
1227
1753
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1228
1754
|
const { luvio, config } = context;
|
|
@@ -1786,7 +2312,7 @@ function validate(obj, path = 'TimelineMetadataResultRepresentation') {
|
|
|
1786
2312
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
1787
2313
|
const obj_errors_item = obj_errors[i];
|
|
1788
2314
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
1789
|
-
const referencepath_errors_itemValidationError = validate$
|
|
2315
|
+
const referencepath_errors_itemValidationError = validate$n(obj_errors_item, path_errors_item);
|
|
1790
2316
|
if (referencepath_errors_itemValidationError !== null) {
|
|
1791
2317
|
let message = 'Object doesn\'t match TimelineErrorRepresentation (at "' + path_errors_item + '")\n';
|
|
1792
2318
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1920,14 +2446,14 @@ const getTimelineMetadata_ConfigPropertyMetadata = [
|
|
|
1920
2446
|
generateParamConfigMetadata('fullNames', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
1921
2447
|
];
|
|
1922
2448
|
const getTimelineMetadata_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getTimelineMetadata_ConfigPropertyMetadata);
|
|
1923
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
2449
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$5(getTimelineMetadata_ConfigPropertyMetadata);
|
|
1924
2450
|
function keyBuilder(luvio, config) {
|
|
1925
2451
|
const resourceParams = createResourceParams(config);
|
|
1926
2452
|
return keyBuilder$1(luvio, resourceParams);
|
|
1927
2453
|
}
|
|
1928
2454
|
function typeCheckConfig(untrustedConfig) {
|
|
1929
2455
|
const config = {};
|
|
1930
|
-
typeCheckConfig$
|
|
2456
|
+
typeCheckConfig$5(untrustedConfig, config, getTimelineMetadata_ConfigPropertyMetadata);
|
|
1931
2457
|
return config;
|
|
1932
2458
|
}
|
|
1933
2459
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -1976,7 +2502,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
1976
2502
|
});
|
|
1977
2503
|
}
|
|
1978
2504
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
1979
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2505
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
1980
2506
|
}
|
|
1981
2507
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
1982
2508
|
const { luvio, config } = context;
|
|
@@ -2001,4 +2527,4 @@ const getTimelineMetadataAdapterFactory = (luvio) => function Timeline__getTimel
|
|
|
2001
2527
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
2002
2528
|
};
|
|
2003
2529
|
|
|
2004
|
-
export { getDataModelObjectsAdapterFactory, getEngagementEventsAdapterFactory, getTimelineDataAdapterFactory, getTimelineMetadataAdapterFactory };
|
|
2530
|
+
export { getDataGraphMetadataAdapterFactory, getDataModelObjectsAdapterFactory, getEngagementEventsAdapterFactory, getTimelineDataAdapterFactory, getTimelineMetadataAdapterFactory };
|