@salesforce/lds-adapters-sfap-analytics-insights 1.313.0 → 1.315.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/sfap-analytics-insights.js +1276 -139
- package/dist/es/es2018/types/src/generated/adapters/createInsightsBatch.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/adapters/generateInsights.d.ts +4 -2
- package/dist/es/es2018/types/src/generated/adapters/getMetricFilterValues.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postAnalyticsInsightsV1Batches.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postAnalyticsInsightsV1FilterValues.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postAnalyticsInsightsV1GenerateBundle.d.ts +4 -2
- package/dist/es/es2018/types/src/generated/types/BatchOptions.d.ts +7 -5
- package/dist/es/es2018/types/src/generated/types/GenerateInsightBatchRequest.d.ts +4 -3
- package/dist/es/es2018/types/src/generated/types/GenerateInsightBatchResponse.d.ts +4 -3
- package/dist/es/es2018/types/src/generated/types/GenerateInsightBundleRequest.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/types/GenerateInsightBundleResponse.d.ts +4 -3
- package/dist/es/es2018/types/src/generated/types/GetFilterValuesRequest.d.ts +4 -3
- package/dist/es/es2018/types/src/generated/types/GetInsightBatchResponse.d.ts +4 -3
- package/dist/es/es2018/types/src/generated/types/Insight.d.ts +5 -8
- package/dist/es/es2018/types/src/generated/types/MeasurementPeriod.d.ts +7 -9
- package/dist/es/es2018/types/src/generated/types/MetricDefinition.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/types/Overview.d.ts +3 -6
- package/dist/es/es2018/types/src/generated/types/Summary.d.ts +9 -9
- package/package.json +3 -3
- package/sfdc/index.js +1416 -279
- package/src/raml/api.raml +16 -51
|
@@ -92,7 +92,7 @@ function createLink(ref) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
function validate$
|
|
95
|
+
function validate$H(obj, path = 'MetricMetadata') {
|
|
96
96
|
const v_error = (() => {
|
|
97
97
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
98
98
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -115,7 +115,7 @@ function validate$u(obj, path = 'MetricMetadata') {
|
|
|
115
115
|
return v_error === undefined ? null : v_error;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
function validate$
|
|
118
|
+
function validate$G(obj, path = 'ExtensionOptions') {
|
|
119
119
|
const v_error = (() => {
|
|
120
120
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
121
121
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -145,7 +145,7 @@ function validate$t(obj, path = 'ExtensionOptions') {
|
|
|
145
145
|
return v_error === undefined ? null : v_error;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
function validate$
|
|
148
|
+
function validate$F(obj, path = 'InsightsOptions_InsightSetting') {
|
|
149
149
|
const v_error = (() => {
|
|
150
150
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
151
151
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -168,7 +168,7 @@ function validate$s(obj, path = 'InsightsOptions_InsightSetting') {
|
|
|
168
168
|
return v_error === undefined ? null : v_error;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
function validate$
|
|
171
|
+
function validate$E(obj, path = 'InsightsOptions') {
|
|
172
172
|
const v_error = (() => {
|
|
173
173
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
174
174
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -182,7 +182,7 @@ function validate$r(obj, path = 'InsightsOptions') {
|
|
|
182
182
|
for (let i = 0; i < obj_settings.length; i++) {
|
|
183
183
|
const obj_settings_item = obj_settings[i];
|
|
184
184
|
const path_settings_item = path_settings + '[' + i + ']';
|
|
185
|
-
const referencepath_settings_itemValidationError = validate$
|
|
185
|
+
const referencepath_settings_itemValidationError = validate$F(obj_settings_item, path_settings_item);
|
|
186
186
|
if (referencepath_settings_itemValidationError !== null) {
|
|
187
187
|
let message = 'Object doesn\'t match InsightsOptions_InsightSetting (at "' + path_settings_item + '")\n';
|
|
188
188
|
message += referencepath_settings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -194,7 +194,7 @@ function validate$r(obj, path = 'InsightsOptions') {
|
|
|
194
194
|
return v_error === undefined ? null : v_error;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
-
function validate$
|
|
197
|
+
function validate$D(obj, path = 'CategoricalFilterOptions') {
|
|
198
198
|
const v_error = (() => {
|
|
199
199
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
200
200
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -231,7 +231,7 @@ function validate$q(obj, path = 'CategoricalFilterOptions') {
|
|
|
231
231
|
return v_error === undefined ? null : v_error;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
function validate$
|
|
234
|
+
function validate$C(obj, path = 'FieldId') {
|
|
235
235
|
const v_error = (() => {
|
|
236
236
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
237
237
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -261,7 +261,7 @@ function validate$p(obj, path = 'FieldId') {
|
|
|
261
261
|
return v_error === undefined ? null : v_error;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
function validate$
|
|
264
|
+
function validate$B(obj, path = 'RangeFilterOptions') {
|
|
265
265
|
const v_error = (() => {
|
|
266
266
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
267
267
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -305,7 +305,7 @@ function validate$o(obj, path = 'RangeFilterOptions') {
|
|
|
305
305
|
return v_error === undefined ? null : v_error;
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
-
function validate$
|
|
308
|
+
function validate$A(obj, path = 'RelativeDate') {
|
|
309
309
|
const v_error = (() => {
|
|
310
310
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
311
311
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -335,7 +335,7 @@ function validate$n(obj, path = 'RelativeDate') {
|
|
|
335
335
|
return v_error === undefined ? null : v_error;
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
-
function validate$
|
|
338
|
+
function validate$z(obj, path = 'RelativeDateFilterOptions') {
|
|
339
339
|
const v_error = (() => {
|
|
340
340
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
341
341
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -349,7 +349,7 @@ function validate$m(obj, path = 'RelativeDateFilterOptions') {
|
|
|
349
349
|
}
|
|
350
350
|
const obj_max = obj.max;
|
|
351
351
|
const path_max = path + '.max';
|
|
352
|
-
const referencepath_maxValidationError = validate$
|
|
352
|
+
const referencepath_maxValidationError = validate$A(obj_max, path_max);
|
|
353
353
|
if (referencepath_maxValidationError !== null) {
|
|
354
354
|
let message = 'Object doesn\'t match RelativeDate (at "' + path_max + '")\n';
|
|
355
355
|
message += referencepath_maxValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -357,7 +357,7 @@ function validate$m(obj, path = 'RelativeDateFilterOptions') {
|
|
|
357
357
|
}
|
|
358
358
|
const obj_min = obj.min;
|
|
359
359
|
const path_min = path + '.min';
|
|
360
|
-
const referencepath_minValidationError = validate$
|
|
360
|
+
const referencepath_minValidationError = validate$A(obj_min, path_min);
|
|
361
361
|
if (referencepath_minValidationError !== null) {
|
|
362
362
|
let message = 'Object doesn\'t match RelativeDate (at "' + path_min + '")\n';
|
|
363
363
|
message += referencepath_minValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -367,14 +367,14 @@ function validate$m(obj, path = 'RelativeDateFilterOptions') {
|
|
|
367
367
|
return v_error === undefined ? null : v_error;
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
-
function validate$
|
|
370
|
+
function validate$y(obj, path = 'Filter') {
|
|
371
371
|
const v_error = (() => {
|
|
372
372
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
373
373
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
374
374
|
}
|
|
375
375
|
const obj_categoricalFilterOptions = obj.categoricalFilterOptions;
|
|
376
376
|
const path_categoricalFilterOptions = path + '.categoricalFilterOptions';
|
|
377
|
-
const referencepath_categoricalFilterOptionsValidationError = validate$
|
|
377
|
+
const referencepath_categoricalFilterOptionsValidationError = validate$D(obj_categoricalFilterOptions, path_categoricalFilterOptions);
|
|
378
378
|
if (referencepath_categoricalFilterOptionsValidationError !== null) {
|
|
379
379
|
let message = 'Object doesn\'t match CategoricalFilterOptions (at "' + path_categoricalFilterOptions + '")\n';
|
|
380
380
|
message += referencepath_categoricalFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -382,7 +382,7 @@ function validate$l(obj, path = 'Filter') {
|
|
|
382
382
|
}
|
|
383
383
|
const obj_field = obj.field;
|
|
384
384
|
const path_field = path + '.field';
|
|
385
|
-
const referencepath_fieldValidationError = validate$
|
|
385
|
+
const referencepath_fieldValidationError = validate$C(obj_field, path_field);
|
|
386
386
|
if (referencepath_fieldValidationError !== null) {
|
|
387
387
|
let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
|
|
388
388
|
message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -390,7 +390,7 @@ function validate$l(obj, path = 'Filter') {
|
|
|
390
390
|
}
|
|
391
391
|
const obj_rangeFilterOptions = obj.rangeFilterOptions;
|
|
392
392
|
const path_rangeFilterOptions = path + '.rangeFilterOptions';
|
|
393
|
-
const referencepath_rangeFilterOptionsValidationError = validate$
|
|
393
|
+
const referencepath_rangeFilterOptionsValidationError = validate$B(obj_rangeFilterOptions, path_rangeFilterOptions);
|
|
394
394
|
if (referencepath_rangeFilterOptionsValidationError !== null) {
|
|
395
395
|
let message = 'Object doesn\'t match RangeFilterOptions (at "' + path_rangeFilterOptions + '")\n';
|
|
396
396
|
message += referencepath_rangeFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -398,7 +398,7 @@ function validate$l(obj, path = 'Filter') {
|
|
|
398
398
|
}
|
|
399
399
|
const obj_relativeDateFilterOptions = obj.relativeDateFilterOptions;
|
|
400
400
|
const path_relativeDateFilterOptions = path + '.relativeDateFilterOptions';
|
|
401
|
-
const referencepath_relativeDateFilterOptionsValidationError = validate$
|
|
401
|
+
const referencepath_relativeDateFilterOptionsValidationError = validate$z(obj_relativeDateFilterOptions, path_relativeDateFilterOptions);
|
|
402
402
|
if (referencepath_relativeDateFilterOptionsValidationError !== null) {
|
|
403
403
|
let message = 'Object doesn\'t match RelativeDateFilterOptions (at "' + path_relativeDateFilterOptions + '")\n';
|
|
404
404
|
message += referencepath_relativeDateFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -415,7 +415,30 @@ function validate$l(obj, path = 'Filter') {
|
|
|
415
415
|
return v_error === undefined ? null : v_error;
|
|
416
416
|
}
|
|
417
417
|
|
|
418
|
-
function validate$
|
|
418
|
+
function validate$x(obj, path = 'RelativePeriod') {
|
|
419
|
+
const v_error = (() => {
|
|
420
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
421
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
422
|
+
}
|
|
423
|
+
if (obj.granularity !== undefined) {
|
|
424
|
+
const obj_granularity = obj.granularity;
|
|
425
|
+
const path_granularity = path + '.granularity';
|
|
426
|
+
if (typeof obj_granularity !== 'string') {
|
|
427
|
+
return new TypeError('Expected "string" but received "' + typeof obj_granularity + '" (at "' + path_granularity + '")');
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
if (obj.range !== undefined) {
|
|
431
|
+
const obj_range = obj.range;
|
|
432
|
+
const path_range = path + '.range';
|
|
433
|
+
if (typeof obj_range !== 'string') {
|
|
434
|
+
return new TypeError('Expected "string" but received "' + typeof obj_range + '" (at "' + path_range + '")');
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
})();
|
|
438
|
+
return v_error === undefined ? null : v_error;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
function validate$w(obj, path = 'MeasurementPeriod') {
|
|
419
442
|
const v_error = (() => {
|
|
420
443
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
421
444
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -423,22 +446,28 @@ function validate$k(obj, path = 'MeasurementPeriod') {
|
|
|
423
446
|
if (obj.filter !== undefined) {
|
|
424
447
|
const obj_filter = obj.filter;
|
|
425
448
|
const path_filter = path + '.filter';
|
|
426
|
-
|
|
427
|
-
|
|
449
|
+
const referencepath_filterValidationError = validate$y(obj_filter, path_filter);
|
|
450
|
+
if (referencepath_filterValidationError !== null) {
|
|
451
|
+
let message = 'Object doesn\'t match Filter (at "' + path_filter + '")\n';
|
|
452
|
+
message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
453
|
+
return new TypeError(message);
|
|
428
454
|
}
|
|
429
455
|
}
|
|
430
456
|
if (obj.relativePeriod !== undefined) {
|
|
431
457
|
const obj_relativePeriod = obj.relativePeriod;
|
|
432
458
|
const path_relativePeriod = path + '.relativePeriod';
|
|
433
|
-
|
|
434
|
-
|
|
459
|
+
const referencepath_relativePeriodValidationError = validate$x(obj_relativePeriod, path_relativePeriod);
|
|
460
|
+
if (referencepath_relativePeriodValidationError !== null) {
|
|
461
|
+
let message = 'Object doesn\'t match RelativePeriod (at "' + path_relativePeriod + '")\n';
|
|
462
|
+
message += referencepath_relativePeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
463
|
+
return new TypeError(message);
|
|
435
464
|
}
|
|
436
465
|
}
|
|
437
466
|
})();
|
|
438
467
|
return v_error === undefined ? null : v_error;
|
|
439
468
|
}
|
|
440
469
|
|
|
441
|
-
function validate$
|
|
470
|
+
function validate$v(obj, path = 'SemanticFilter') {
|
|
442
471
|
const v_error = (() => {
|
|
443
472
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
444
473
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -464,7 +493,7 @@ function validate$j(obj, path = 'SemanticFilter') {
|
|
|
464
493
|
return v_error === undefined ? null : v_error;
|
|
465
494
|
}
|
|
466
495
|
|
|
467
|
-
function validate$
|
|
496
|
+
function validate$u(obj, path = 'FlattenFilter') {
|
|
468
497
|
const v_error = (() => {
|
|
469
498
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
470
499
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -485,7 +514,7 @@ function validate$i(obj, path = 'FlattenFilter') {
|
|
|
485
514
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
486
515
|
const obj_filters_item = obj_filters[i];
|
|
487
516
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
488
|
-
const referencepath_filters_itemValidationError = validate$
|
|
517
|
+
const referencepath_filters_itemValidationError = validate$v(obj_filters_item, path_filters_item);
|
|
489
518
|
if (referencepath_filters_itemValidationError !== null) {
|
|
490
519
|
let message = 'Object doesn\'t match SemanticFilter (at "' + path_filters_item + '")\n';
|
|
491
520
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -497,7 +526,7 @@ function validate$i(obj, path = 'FlattenFilter') {
|
|
|
497
526
|
return v_error === undefined ? null : v_error;
|
|
498
527
|
}
|
|
499
528
|
|
|
500
|
-
function validate$
|
|
529
|
+
function validate$t(obj, path = 'MetricInstance') {
|
|
501
530
|
const v_error = (() => {
|
|
502
531
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
503
532
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -511,7 +540,7 @@ function validate$h(obj, path = 'MetricInstance') {
|
|
|
511
540
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
512
541
|
const obj_filters_item = obj_filters[i];
|
|
513
542
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
514
|
-
const referencepath_filters_itemValidationError = validate$
|
|
543
|
+
const referencepath_filters_itemValidationError = validate$y(obj_filters_item, path_filters_item);
|
|
515
544
|
if (referencepath_filters_itemValidationError !== null) {
|
|
516
545
|
let message = 'Object doesn\'t match Filter (at "' + path_filters_item + '")\n';
|
|
517
546
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -521,7 +550,7 @@ function validate$h(obj, path = 'MetricInstance') {
|
|
|
521
550
|
}
|
|
522
551
|
const obj_measurementPeriod = obj.measurementPeriod;
|
|
523
552
|
const path_measurementPeriod = path + '.measurementPeriod';
|
|
524
|
-
const referencepath_measurementPeriodValidationError = validate$
|
|
553
|
+
const referencepath_measurementPeriodValidationError = validate$w(obj_measurementPeriod, path_measurementPeriod);
|
|
525
554
|
if (referencepath_measurementPeriodValidationError !== null) {
|
|
526
555
|
let message = 'Object doesn\'t match MeasurementPeriod (at "' + path_measurementPeriod + '")\n';
|
|
527
556
|
message += referencepath_measurementPeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -529,7 +558,7 @@ function validate$h(obj, path = 'MetricInstance') {
|
|
|
529
558
|
}
|
|
530
559
|
const obj_semanticFilter = obj.semanticFilter;
|
|
531
560
|
const path_semanticFilter = path + '.semanticFilter';
|
|
532
|
-
const referencepath_semanticFilterValidationError = validate$
|
|
561
|
+
const referencepath_semanticFilterValidationError = validate$u(obj_semanticFilter, path_semanticFilter);
|
|
533
562
|
if (referencepath_semanticFilterValidationError !== null) {
|
|
534
563
|
let message = 'Object doesn\'t match FlattenFilter (at "' + path_semanticFilter + '")\n';
|
|
535
564
|
message += referencepath_semanticFilterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -539,7 +568,7 @@ function validate$h(obj, path = 'MetricInstance') {
|
|
|
539
568
|
return v_error === undefined ? null : v_error;
|
|
540
569
|
}
|
|
541
570
|
|
|
542
|
-
function validate$
|
|
571
|
+
function validate$s(obj, path = 'CompareConfig') {
|
|
543
572
|
const v_error = (() => {
|
|
544
573
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
545
574
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -555,7 +584,7 @@ function validate$g(obj, path = 'CompareConfig') {
|
|
|
555
584
|
return v_error === undefined ? null : v_error;
|
|
556
585
|
}
|
|
557
586
|
|
|
558
|
-
function validate$
|
|
587
|
+
function validate$r(obj, path = 'Measure') {
|
|
559
588
|
const v_error = (() => {
|
|
560
589
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
561
590
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -569,7 +598,7 @@ function validate$f(obj, path = 'Measure') {
|
|
|
569
598
|
}
|
|
570
599
|
const obj_field = obj.field;
|
|
571
600
|
const path_field = path + '.field';
|
|
572
|
-
const referencepath_fieldValidationError = validate$
|
|
601
|
+
const referencepath_fieldValidationError = validate$C(obj_field, path_field);
|
|
573
602
|
if (referencepath_fieldValidationError !== null) {
|
|
574
603
|
let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
|
|
575
604
|
message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -579,7 +608,7 @@ function validate$f(obj, path = 'Measure') {
|
|
|
579
608
|
return v_error === undefined ? null : v_error;
|
|
580
609
|
}
|
|
581
610
|
|
|
582
|
-
function validate$
|
|
611
|
+
function validate$q(obj, path = 'SemanticDataModel') {
|
|
583
612
|
const v_error = (() => {
|
|
584
613
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
585
614
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -595,14 +624,14 @@ function validate$e(obj, path = 'SemanticDataModel') {
|
|
|
595
624
|
return v_error === undefined ? null : v_error;
|
|
596
625
|
}
|
|
597
626
|
|
|
598
|
-
function validate$
|
|
627
|
+
function validate$p(obj, path = 'TimeDimension') {
|
|
599
628
|
const v_error = (() => {
|
|
600
629
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
601
630
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
602
631
|
}
|
|
603
632
|
const obj_field = obj.field;
|
|
604
633
|
const path_field = path + '.field';
|
|
605
|
-
const referencepath_fieldValidationError = validate$
|
|
634
|
+
const referencepath_fieldValidationError = validate$C(obj_field, path_field);
|
|
606
635
|
if (referencepath_fieldValidationError !== null) {
|
|
607
636
|
let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
|
|
608
637
|
message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -612,14 +641,14 @@ function validate$d(obj, path = 'TimeDimension') {
|
|
|
612
641
|
return v_error === undefined ? null : v_error;
|
|
613
642
|
}
|
|
614
643
|
|
|
615
|
-
function validate$
|
|
644
|
+
function validate$o(obj, path = 'MetricDefinition') {
|
|
616
645
|
const v_error = (() => {
|
|
617
646
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
618
647
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
619
648
|
}
|
|
620
649
|
const obj_comparison = obj.comparison;
|
|
621
650
|
const path_comparison = path + '.comparison';
|
|
622
|
-
const referencepath_comparisonValidationError = validate$
|
|
651
|
+
const referencepath_comparisonValidationError = validate$s(obj_comparison, path_comparison);
|
|
623
652
|
if (referencepath_comparisonValidationError !== null) {
|
|
624
653
|
let message = 'Object doesn\'t match CompareConfig (at "' + path_comparison + '")\n';
|
|
625
654
|
message += referencepath_comparisonValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -634,7 +663,7 @@ function validate$c(obj, path = 'MetricDefinition') {
|
|
|
634
663
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
635
664
|
const obj_filters_item = obj_filters[i];
|
|
636
665
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
637
|
-
const referencepath_filters_itemValidationError = validate$
|
|
666
|
+
const referencepath_filters_itemValidationError = validate$y(obj_filters_item, path_filters_item);
|
|
638
667
|
if (referencepath_filters_itemValidationError !== null) {
|
|
639
668
|
let message = 'Object doesn\'t match Filter (at "' + path_filters_item + '")\n';
|
|
640
669
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -644,7 +673,7 @@ function validate$c(obj, path = 'MetricDefinition') {
|
|
|
644
673
|
}
|
|
645
674
|
const obj_measure = obj.measure;
|
|
646
675
|
const path_measure = path + '.measure';
|
|
647
|
-
const referencepath_measureValidationError = validate$
|
|
676
|
+
const referencepath_measureValidationError = validate$r(obj_measure, path_measure);
|
|
648
677
|
if (referencepath_measureValidationError !== null) {
|
|
649
678
|
let message = 'Object doesn\'t match Measure (at "' + path_measure + '")\n';
|
|
650
679
|
message += referencepath_measureValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -659,7 +688,7 @@ function validate$c(obj, path = 'MetricDefinition') {
|
|
|
659
688
|
}
|
|
660
689
|
const obj_semanticDataModel = obj.semanticDataModel;
|
|
661
690
|
const path_semanticDataModel = path + '.semanticDataModel';
|
|
662
|
-
const referencepath_semanticDataModelValidationError = validate$
|
|
691
|
+
const referencepath_semanticDataModelValidationError = validate$q(obj_semanticDataModel, path_semanticDataModel);
|
|
663
692
|
if (referencepath_semanticDataModelValidationError !== null) {
|
|
664
693
|
let message = 'Object doesn\'t match SemanticDataModel (at "' + path_semanticDataModel + '")\n';
|
|
665
694
|
message += referencepath_semanticDataModelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -668,13 +697,16 @@ function validate$c(obj, path = 'MetricDefinition') {
|
|
|
668
697
|
if (obj.semanticFilter !== undefined) {
|
|
669
698
|
const obj_semanticFilter = obj.semanticFilter;
|
|
670
699
|
const path_semanticFilter = path + '.semanticFilter';
|
|
671
|
-
|
|
672
|
-
|
|
700
|
+
const referencepath_semanticFilterValidationError = validate$u(obj_semanticFilter, path_semanticFilter);
|
|
701
|
+
if (referencepath_semanticFilterValidationError !== null) {
|
|
702
|
+
let message = 'Object doesn\'t match FlattenFilter (at "' + path_semanticFilter + '")\n';
|
|
703
|
+
message += referencepath_semanticFilterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
704
|
+
return new TypeError(message);
|
|
673
705
|
}
|
|
674
706
|
}
|
|
675
707
|
const obj_timeDimension = obj.timeDimension;
|
|
676
708
|
const path_timeDimension = path + '.timeDimension';
|
|
677
|
-
const referencepath_timeDimensionValidationError = validate$
|
|
709
|
+
const referencepath_timeDimensionValidationError = validate$p(obj_timeDimension, path_timeDimension);
|
|
678
710
|
if (referencepath_timeDimensionValidationError !== null) {
|
|
679
711
|
let message = 'Object doesn\'t match TimeDimension (at "' + path_timeDimension + '")\n';
|
|
680
712
|
message += referencepath_timeDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -684,7 +716,7 @@ function validate$c(obj, path = 'MetricDefinition') {
|
|
|
684
716
|
return v_error === undefined ? null : v_error;
|
|
685
717
|
}
|
|
686
718
|
|
|
687
|
-
function validate$
|
|
719
|
+
function validate$n(obj, path = 'RepresentationOptions_NumberUnits') {
|
|
688
720
|
const v_error = (() => {
|
|
689
721
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
690
722
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -707,14 +739,14 @@ function validate$b(obj, path = 'RepresentationOptions_NumberUnits') {
|
|
|
707
739
|
return v_error === undefined ? null : v_error;
|
|
708
740
|
}
|
|
709
741
|
|
|
710
|
-
function validate$
|
|
742
|
+
function validate$m(obj, path = 'RepresentationOptions') {
|
|
711
743
|
const v_error = (() => {
|
|
712
744
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
713
745
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
714
746
|
}
|
|
715
747
|
const obj_numberUnits = obj.numberUnits;
|
|
716
748
|
const path_numberUnits = path + '.numberUnits';
|
|
717
|
-
const referencepath_numberUnitsValidationError = validate$
|
|
749
|
+
const referencepath_numberUnitsValidationError = validate$n(obj_numberUnits, path_numberUnits);
|
|
718
750
|
if (referencepath_numberUnitsValidationError !== null) {
|
|
719
751
|
let message = 'Object doesn\'t match RepresentationOptions_NumberUnits (at "' + path_numberUnits + '")\n';
|
|
720
752
|
message += referencepath_numberUnitsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -738,14 +770,14 @@ function validate$a(obj, path = 'RepresentationOptions') {
|
|
|
738
770
|
return v_error === undefined ? null : v_error;
|
|
739
771
|
}
|
|
740
772
|
|
|
741
|
-
function validate$
|
|
773
|
+
function validate$l(obj, path = 'InputMetric') {
|
|
742
774
|
const v_error = (() => {
|
|
743
775
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
744
776
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
745
777
|
}
|
|
746
778
|
const obj_extensionOptions = obj.extensionOptions;
|
|
747
779
|
const path_extensionOptions = path + '.extensionOptions';
|
|
748
|
-
const referencepath_extensionOptionsValidationError = validate$
|
|
780
|
+
const referencepath_extensionOptionsValidationError = validate$G(obj_extensionOptions, path_extensionOptions);
|
|
749
781
|
if (referencepath_extensionOptionsValidationError !== null) {
|
|
750
782
|
let message = 'Object doesn\'t match ExtensionOptions (at "' + path_extensionOptions + '")\n';
|
|
751
783
|
message += referencepath_extensionOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -753,7 +785,7 @@ function validate$9(obj, path = 'InputMetric') {
|
|
|
753
785
|
}
|
|
754
786
|
const obj_insightsOptions = obj.insightsOptions;
|
|
755
787
|
const path_insightsOptions = path + '.insightsOptions';
|
|
756
|
-
const referencepath_insightsOptionsValidationError = validate$
|
|
788
|
+
const referencepath_insightsOptionsValidationError = validate$E(obj_insightsOptions, path_insightsOptions);
|
|
757
789
|
if (referencepath_insightsOptionsValidationError !== null) {
|
|
758
790
|
let message = 'Object doesn\'t match InsightsOptions (at "' + path_insightsOptions + '")\n';
|
|
759
791
|
message += referencepath_insightsOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -761,7 +793,7 @@ function validate$9(obj, path = 'InputMetric') {
|
|
|
761
793
|
}
|
|
762
794
|
const obj_instance = obj.instance;
|
|
763
795
|
const path_instance = path + '.instance';
|
|
764
|
-
const referencepath_instanceValidationError = validate$
|
|
796
|
+
const referencepath_instanceValidationError = validate$t(obj_instance, path_instance);
|
|
765
797
|
if (referencepath_instanceValidationError !== null) {
|
|
766
798
|
let message = 'Object doesn\'t match MetricInstance (at "' + path_instance + '")\n';
|
|
767
799
|
message += referencepath_instanceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -769,7 +801,7 @@ function validate$9(obj, path = 'InputMetric') {
|
|
|
769
801
|
}
|
|
770
802
|
const obj_metric = obj.metric;
|
|
771
803
|
const path_metric = path + '.metric';
|
|
772
|
-
const referencepath_metricValidationError = validate$
|
|
804
|
+
const referencepath_metricValidationError = validate$o(obj_metric, path_metric);
|
|
773
805
|
if (referencepath_metricValidationError !== null) {
|
|
774
806
|
let message = 'Object doesn\'t match MetricDefinition (at "' + path_metric + '")\n';
|
|
775
807
|
message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -777,7 +809,7 @@ function validate$9(obj, path = 'InputMetric') {
|
|
|
777
809
|
}
|
|
778
810
|
const obj_representationOptions = obj.representationOptions;
|
|
779
811
|
const path_representationOptions = path + '.representationOptions';
|
|
780
|
-
const referencepath_representationOptionsValidationError = validate$
|
|
812
|
+
const referencepath_representationOptionsValidationError = validate$m(obj_representationOptions, path_representationOptions);
|
|
781
813
|
if (referencepath_representationOptionsValidationError !== null) {
|
|
782
814
|
let message = 'Object doesn\'t match RepresentationOptions (at "' + path_representationOptions + '")\n';
|
|
783
815
|
message += referencepath_representationOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -787,14 +819,14 @@ function validate$9(obj, path = 'InputMetric') {
|
|
|
787
819
|
return v_error === undefined ? null : v_error;
|
|
788
820
|
}
|
|
789
821
|
|
|
790
|
-
function validate$
|
|
822
|
+
function validate$k(obj, path = 'InsightBundleInput') {
|
|
791
823
|
const v_error = (() => {
|
|
792
824
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
793
825
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
794
826
|
}
|
|
795
827
|
const obj_metadata = obj.metadata;
|
|
796
828
|
const path_metadata = path + '.metadata';
|
|
797
|
-
const referencepath_metadataValidationError = validate$
|
|
829
|
+
const referencepath_metadataValidationError = validate$H(obj_metadata, path_metadata);
|
|
798
830
|
if (referencepath_metadataValidationError !== null) {
|
|
799
831
|
let message = 'Object doesn\'t match MetricMetadata (at "' + path_metadata + '")\n';
|
|
800
832
|
message += referencepath_metadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -802,7 +834,7 @@ function validate$8(obj, path = 'InsightBundleInput') {
|
|
|
802
834
|
}
|
|
803
835
|
const obj_metric = obj.metric;
|
|
804
836
|
const path_metric = path + '.metric';
|
|
805
|
-
const referencepath_metricValidationError = validate$
|
|
837
|
+
const referencepath_metricValidationError = validate$l(obj_metric, path_metric);
|
|
806
838
|
if (referencepath_metricValidationError !== null) {
|
|
807
839
|
let message = 'Object doesn\'t match InputMetric (at "' + path_metric + '")\n';
|
|
808
840
|
message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -812,7 +844,7 @@ function validate$8(obj, path = 'InsightBundleInput') {
|
|
|
812
844
|
return v_error === undefined ? null : v_error;
|
|
813
845
|
}
|
|
814
846
|
|
|
815
|
-
function validate$
|
|
847
|
+
function validate$j(obj, path = 'MetricInstanceInput') {
|
|
816
848
|
const v_error = (() => {
|
|
817
849
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
818
850
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -831,7 +863,7 @@ function validate$7(obj, path = 'MetricInstanceInput') {
|
|
|
831
863
|
return v_error === undefined ? null : v_error;
|
|
832
864
|
}
|
|
833
865
|
|
|
834
|
-
function validate$
|
|
866
|
+
function validate$i(obj, path = 'BatchInput') {
|
|
835
867
|
const v_error = (() => {
|
|
836
868
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
837
869
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -839,7 +871,7 @@ function validate$6(obj, path = 'BatchInput') {
|
|
|
839
871
|
if (obj.bundleInput !== undefined) {
|
|
840
872
|
const obj_bundleInput = obj.bundleInput;
|
|
841
873
|
const path_bundleInput = path + '.bundleInput';
|
|
842
|
-
const referencepath_bundleInputValidationError = validate$
|
|
874
|
+
const referencepath_bundleInputValidationError = validate$k(obj_bundleInput, path_bundleInput);
|
|
843
875
|
if (referencepath_bundleInputValidationError !== null) {
|
|
844
876
|
let message = 'Object doesn\'t match InsightBundleInput (at "' + path_bundleInput + '")\n';
|
|
845
877
|
message += referencepath_bundleInputValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -849,7 +881,7 @@ function validate$6(obj, path = 'BatchInput') {
|
|
|
849
881
|
if (obj.metricInstanceInput !== undefined) {
|
|
850
882
|
const obj_metricInstanceInput = obj.metricInstanceInput;
|
|
851
883
|
const path_metricInstanceInput = path + '.metricInstanceInput';
|
|
852
|
-
const referencepath_metricInstanceInputValidationError = validate$
|
|
884
|
+
const referencepath_metricInstanceInputValidationError = validate$j(obj_metricInstanceInput, path_metricInstanceInput);
|
|
853
885
|
if (referencepath_metricInstanceInputValidationError !== null) {
|
|
854
886
|
let message = 'Object doesn\'t match MetricInstanceInput (at "' + path_metricInstanceInput + '")\n';
|
|
855
887
|
message += referencepath_metricInstanceInputValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -860,8 +892,311 @@ function validate$6(obj, path = 'BatchInput') {
|
|
|
860
892
|
return v_error === undefined ? null : v_error;
|
|
861
893
|
}
|
|
862
894
|
|
|
863
|
-
|
|
864
|
-
|
|
895
|
+
function validate$h(obj, path = 'InsightBundleOptions') {
|
|
896
|
+
const v_error = (() => {
|
|
897
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
898
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
899
|
+
}
|
|
900
|
+
if (obj.now !== undefined) {
|
|
901
|
+
const obj_now = obj.now;
|
|
902
|
+
const path_now = path + '.now';
|
|
903
|
+
if (typeof obj_now !== 'string') {
|
|
904
|
+
return new TypeError('Expected "string" but received "' + typeof obj_now + '" (at "' + path_now + '")');
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
if (obj.outputFormat !== undefined) {
|
|
908
|
+
const obj_outputFormat = obj.outputFormat;
|
|
909
|
+
const path_outputFormat = path + '.outputFormat';
|
|
910
|
+
if (typeof obj_outputFormat !== 'string') {
|
|
911
|
+
return new TypeError('Expected "string" but received "' + typeof obj_outputFormat + '" (at "' + path_outputFormat + '")');
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
if (obj.timeZone !== undefined) {
|
|
915
|
+
const obj_timeZone = obj.timeZone;
|
|
916
|
+
const path_timeZone = path + '.timeZone';
|
|
917
|
+
if (typeof obj_timeZone !== 'string') {
|
|
918
|
+
return new TypeError('Expected "string" but received "' + typeof obj_timeZone + '" (at "' + path_timeZone + '")');
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
})();
|
|
922
|
+
return v_error === undefined ? null : v_error;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
function validate$g(obj, path = 'SummarizationOptions') {
|
|
926
|
+
const v_error = (() => {
|
|
927
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
928
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
929
|
+
}
|
|
930
|
+
if (obj.strategy !== undefined) {
|
|
931
|
+
const obj_strategy = obj.strategy;
|
|
932
|
+
const path_strategy = path + '.strategy';
|
|
933
|
+
if (typeof obj_strategy !== 'string') {
|
|
934
|
+
return new TypeError('Expected "string" but received "' + typeof obj_strategy + '" (at "' + path_strategy + '")');
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
})();
|
|
938
|
+
return v_error === undefined ? null : v_error;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
function validate$f(obj, path = 'BatchOptions') {
|
|
942
|
+
const v_error = (() => {
|
|
943
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
944
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
945
|
+
}
|
|
946
|
+
if (obj.bundle !== undefined) {
|
|
947
|
+
const obj_bundle = obj.bundle;
|
|
948
|
+
const path_bundle = path + '.bundle';
|
|
949
|
+
const referencepath_bundleValidationError = validate$h(obj_bundle, path_bundle);
|
|
950
|
+
if (referencepath_bundleValidationError !== null) {
|
|
951
|
+
let message = 'Object doesn\'t match InsightBundleOptions (at "' + path_bundle + '")\n';
|
|
952
|
+
message += referencepath_bundleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
953
|
+
return new TypeError(message);
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
if (obj.skipCache !== undefined) {
|
|
957
|
+
const obj_skipCache = obj.skipCache;
|
|
958
|
+
const path_skipCache = path + '.skipCache';
|
|
959
|
+
if (typeof obj_skipCache !== 'boolean') {
|
|
960
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_skipCache + '" (at "' + path_skipCache + '")');
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
if (obj.summarization !== undefined) {
|
|
964
|
+
const obj_summarization = obj.summarization;
|
|
965
|
+
const path_summarization = path + '.summarization';
|
|
966
|
+
const referencepath_summarizationValidationError = validate$g(obj_summarization, path_summarization);
|
|
967
|
+
if (referencepath_summarizationValidationError !== null) {
|
|
968
|
+
let message = 'Object doesn\'t match SummarizationOptions (at "' + path_summarization + '")\n';
|
|
969
|
+
message += referencepath_summarizationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
970
|
+
return new TypeError(message);
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
})();
|
|
974
|
+
return v_error === undefined ? null : v_error;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
const VERSION$e = "07a8c889542dbad6f958515513d4e3fb";
|
|
978
|
+
function validate$e(obj, path = 'Error') {
|
|
979
|
+
const v_error = (() => {
|
|
980
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
981
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
982
|
+
}
|
|
983
|
+
if (obj.code !== undefined) {
|
|
984
|
+
const obj_code = obj.code;
|
|
985
|
+
const path_code = path + '.code';
|
|
986
|
+
if (typeof obj_code !== 'string') {
|
|
987
|
+
return new TypeError('Expected "string" but received "' + typeof obj_code + '" (at "' + path_code + '")');
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
if (obj.message !== undefined) {
|
|
991
|
+
const obj_message = obj.message;
|
|
992
|
+
const path_message = path + '.message';
|
|
993
|
+
if (typeof obj_message !== 'string') {
|
|
994
|
+
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
})();
|
|
998
|
+
return v_error === undefined ? null : v_error;
|
|
999
|
+
}
|
|
1000
|
+
const select$i = function ErrorSelect() {
|
|
1001
|
+
return {
|
|
1002
|
+
kind: 'Fragment',
|
|
1003
|
+
version: VERSION$e,
|
|
1004
|
+
private: [],
|
|
1005
|
+
selections: [
|
|
1006
|
+
{
|
|
1007
|
+
name: 'code',
|
|
1008
|
+
kind: 'Scalar',
|
|
1009
|
+
required: false
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
name: 'message',
|
|
1013
|
+
kind: 'Scalar',
|
|
1014
|
+
required: false
|
|
1015
|
+
}
|
|
1016
|
+
]
|
|
1017
|
+
};
|
|
1018
|
+
};
|
|
1019
|
+
function equals$e(existing, incoming) {
|
|
1020
|
+
const existing_code = existing.code;
|
|
1021
|
+
const incoming_code = incoming.code;
|
|
1022
|
+
// if at least one of these optionals is defined
|
|
1023
|
+
if (existing_code !== undefined || incoming_code !== undefined) {
|
|
1024
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1025
|
+
// not equal
|
|
1026
|
+
if (existing_code === undefined || incoming_code === undefined) {
|
|
1027
|
+
return false;
|
|
1028
|
+
}
|
|
1029
|
+
if (!(existing_code === incoming_code)) {
|
|
1030
|
+
return false;
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
const existing_message = existing.message;
|
|
1034
|
+
const incoming_message = incoming.message;
|
|
1035
|
+
// if at least one of these optionals is defined
|
|
1036
|
+
if (existing_message !== undefined || incoming_message !== undefined) {
|
|
1037
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1038
|
+
// not equal
|
|
1039
|
+
if (existing_message === undefined || incoming_message === undefined) {
|
|
1040
|
+
return false;
|
|
1041
|
+
}
|
|
1042
|
+
if (!(existing_message === incoming_message)) {
|
|
1043
|
+
return false;
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
return true;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
const VERSION$d = "c4ce5385f4ed571b518d799c4e627709";
|
|
1050
|
+
function validate$d(obj, path = 'Summary') {
|
|
1051
|
+
const v_error = (() => {
|
|
1052
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1053
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1054
|
+
}
|
|
1055
|
+
const obj_generationId = obj.generationId;
|
|
1056
|
+
const path_generationId = path + '.generationId';
|
|
1057
|
+
if (typeof obj_generationId !== 'string') {
|
|
1058
|
+
return new TypeError('Expected "string" but received "' + typeof obj_generationId + '" (at "' + path_generationId + '")');
|
|
1059
|
+
}
|
|
1060
|
+
const obj_markup = obj.markup;
|
|
1061
|
+
const path_markup = path + '.markup';
|
|
1062
|
+
if (typeof obj_markup !== 'string') {
|
|
1063
|
+
return new TypeError('Expected "string" but received "' + typeof obj_markup + '" (at "' + path_markup + '")');
|
|
1064
|
+
}
|
|
1065
|
+
const obj_strategy = obj.strategy;
|
|
1066
|
+
const path_strategy = path + '.strategy';
|
|
1067
|
+
if (typeof obj_strategy !== 'string') {
|
|
1068
|
+
return new TypeError('Expected "string" but received "' + typeof obj_strategy + '" (at "' + path_strategy + '")');
|
|
1069
|
+
}
|
|
1070
|
+
const obj_timestamp = obj.timestamp;
|
|
1071
|
+
const path_timestamp = path + '.timestamp';
|
|
1072
|
+
if (typeof obj_timestamp !== 'string') {
|
|
1073
|
+
return new TypeError('Expected "string" but received "' + typeof obj_timestamp + '" (at "' + path_timestamp + '")');
|
|
1074
|
+
}
|
|
1075
|
+
})();
|
|
1076
|
+
return v_error === undefined ? null : v_error;
|
|
1077
|
+
}
|
|
1078
|
+
const select$h = function SummarySelect() {
|
|
1079
|
+
return {
|
|
1080
|
+
kind: 'Fragment',
|
|
1081
|
+
version: VERSION$d,
|
|
1082
|
+
private: [],
|
|
1083
|
+
selections: [
|
|
1084
|
+
{
|
|
1085
|
+
name: 'generationId',
|
|
1086
|
+
kind: 'Scalar'
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
name: 'markup',
|
|
1090
|
+
kind: 'Scalar'
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
name: 'strategy',
|
|
1094
|
+
kind: 'Scalar'
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
name: 'timestamp',
|
|
1098
|
+
kind: 'Scalar'
|
|
1099
|
+
}
|
|
1100
|
+
]
|
|
1101
|
+
};
|
|
1102
|
+
};
|
|
1103
|
+
function equals$d(existing, incoming) {
|
|
1104
|
+
const existing_generationId = existing.generationId;
|
|
1105
|
+
const incoming_generationId = incoming.generationId;
|
|
1106
|
+
if (!(existing_generationId === incoming_generationId)) {
|
|
1107
|
+
return false;
|
|
1108
|
+
}
|
|
1109
|
+
const existing_markup = existing.markup;
|
|
1110
|
+
const incoming_markup = incoming.markup;
|
|
1111
|
+
if (!(existing_markup === incoming_markup)) {
|
|
1112
|
+
return false;
|
|
1113
|
+
}
|
|
1114
|
+
const existing_strategy = existing.strategy;
|
|
1115
|
+
const incoming_strategy = incoming.strategy;
|
|
1116
|
+
if (!(existing_strategy === incoming_strategy)) {
|
|
1117
|
+
return false;
|
|
1118
|
+
}
|
|
1119
|
+
const existing_timestamp = existing.timestamp;
|
|
1120
|
+
const incoming_timestamp = incoming.timestamp;
|
|
1121
|
+
if (!(existing_timestamp === incoming_timestamp)) {
|
|
1122
|
+
return false;
|
|
1123
|
+
}
|
|
1124
|
+
return true;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
const VERSION$c = "fc433e1c68019470090193fa4fdf976f";
|
|
1128
|
+
function validate$c(obj, path = 'SummaryResponse') {
|
|
1129
|
+
const v_error = (() => {
|
|
1130
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1131
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1132
|
+
}
|
|
1133
|
+
if (obj.error !== undefined) {
|
|
1134
|
+
const obj_error = obj.error;
|
|
1135
|
+
const path_error = path + '.error';
|
|
1136
|
+
const referencepath_errorValidationError = validate$e(obj_error, path_error);
|
|
1137
|
+
if (referencepath_errorValidationError !== null) {
|
|
1138
|
+
let message = 'Object doesn\'t match Error (at "' + path_error + '")\n';
|
|
1139
|
+
message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1140
|
+
return new TypeError(message);
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
const obj_result = obj.result;
|
|
1144
|
+
const path_result = path + '.result';
|
|
1145
|
+
const referencepath_resultValidationError = validate$d(obj_result, path_result);
|
|
1146
|
+
if (referencepath_resultValidationError !== null) {
|
|
1147
|
+
let message = 'Object doesn\'t match Summary (at "' + path_result + '")\n';
|
|
1148
|
+
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1149
|
+
return new TypeError(message);
|
|
1150
|
+
}
|
|
1151
|
+
})();
|
|
1152
|
+
return v_error === undefined ? null : v_error;
|
|
1153
|
+
}
|
|
1154
|
+
const select$g = function SummaryResponseSelect() {
|
|
1155
|
+
const { selections: Error__selections, opaque: Error__opaque, } = select$i();
|
|
1156
|
+
const { selections: Summary__selections, opaque: Summary__opaque, } = select$h();
|
|
1157
|
+
return {
|
|
1158
|
+
kind: 'Fragment',
|
|
1159
|
+
version: VERSION$c,
|
|
1160
|
+
private: [],
|
|
1161
|
+
selections: [
|
|
1162
|
+
{
|
|
1163
|
+
name: 'error',
|
|
1164
|
+
kind: 'Object',
|
|
1165
|
+
selections: Error__selections,
|
|
1166
|
+
required: false
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
name: 'result',
|
|
1170
|
+
kind: 'Object',
|
|
1171
|
+
selections: Summary__selections
|
|
1172
|
+
}
|
|
1173
|
+
]
|
|
1174
|
+
};
|
|
1175
|
+
};
|
|
1176
|
+
function equals$c(existing, incoming) {
|
|
1177
|
+
const existing_error = existing.error;
|
|
1178
|
+
const incoming_error = incoming.error;
|
|
1179
|
+
// if at least one of these optionals is defined
|
|
1180
|
+
if (existing_error !== undefined || incoming_error !== undefined) {
|
|
1181
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1182
|
+
// not equal
|
|
1183
|
+
if (existing_error === undefined || incoming_error === undefined) {
|
|
1184
|
+
return false;
|
|
1185
|
+
}
|
|
1186
|
+
if (!(equals$e(existing_error, incoming_error))) {
|
|
1187
|
+
return false;
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
const existing_result = existing.result;
|
|
1191
|
+
const incoming_result = incoming.result;
|
|
1192
|
+
if (!(equals$d(existing_result, incoming_result))) {
|
|
1193
|
+
return false;
|
|
1194
|
+
}
|
|
1195
|
+
return true;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
const VERSION$b = "18d65084646c870abf335d268675999e";
|
|
1199
|
+
function validate$b(obj, path = 'GenerateInsightBatchResponse') {
|
|
865
1200
|
const v_error = (() => {
|
|
866
1201
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
867
1202
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -881,8 +1216,11 @@ function validate$5(obj, path = 'GenerateInsightBatchResponse') {
|
|
|
881
1216
|
if (obj.summary !== undefined) {
|
|
882
1217
|
const obj_summary = obj.summary;
|
|
883
1218
|
const path_summary = path + '.summary';
|
|
884
|
-
|
|
885
|
-
|
|
1219
|
+
const referencepath_summaryValidationError = validate$c(obj_summary, path_summary);
|
|
1220
|
+
if (referencepath_summaryValidationError !== null) {
|
|
1221
|
+
let message = 'Object doesn\'t match SummaryResponse (at "' + path_summary + '")\n';
|
|
1222
|
+
message += referencepath_summaryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1223
|
+
return new TypeError(message);
|
|
886
1224
|
}
|
|
887
1225
|
}
|
|
888
1226
|
if (obj.timestamp !== undefined) {
|
|
@@ -908,10 +1246,11 @@ function keyBuilderFromType$3(luvio, object) {
|
|
|
908
1246
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
909
1247
|
return input;
|
|
910
1248
|
}
|
|
911
|
-
const select$
|
|
1249
|
+
const select$f = function GenerateInsightBatchResponseSelect() {
|
|
1250
|
+
const { selections: SummaryResponse__selections, opaque: SummaryResponse__opaque, } = select$g();
|
|
912
1251
|
return {
|
|
913
1252
|
kind: 'Fragment',
|
|
914
|
-
version: VERSION$
|
|
1253
|
+
version: VERSION$b,
|
|
915
1254
|
private: [],
|
|
916
1255
|
selections: [
|
|
917
1256
|
{
|
|
@@ -926,7 +1265,8 @@ const select$9 = function GenerateInsightBatchResponseSelect() {
|
|
|
926
1265
|
{
|
|
927
1266
|
name: 'summary',
|
|
928
1267
|
kind: 'Object',
|
|
929
|
-
|
|
1268
|
+
selections: SummaryResponse__selections,
|
|
1269
|
+
required: false
|
|
930
1270
|
},
|
|
931
1271
|
{
|
|
932
1272
|
name: 'timestamp',
|
|
@@ -936,7 +1276,7 @@ const select$9 = function GenerateInsightBatchResponseSelect() {
|
|
|
936
1276
|
]
|
|
937
1277
|
};
|
|
938
1278
|
};
|
|
939
|
-
function equals$
|
|
1279
|
+
function equals$b(existing, incoming) {
|
|
940
1280
|
const existing_generatingSummary = existing.generatingSummary;
|
|
941
1281
|
const incoming_generatingSummary = incoming.generatingSummary;
|
|
942
1282
|
// if at least one of these optionals is defined
|
|
@@ -977,7 +1317,7 @@ function equals$5(existing, incoming) {
|
|
|
977
1317
|
if (existing_summary === undefined || incoming_summary === undefined) {
|
|
978
1318
|
return false;
|
|
979
1319
|
}
|
|
980
|
-
if (
|
|
1320
|
+
if (!(equals$c(existing_summary, incoming_summary))) {
|
|
981
1321
|
return false;
|
|
982
1322
|
}
|
|
983
1323
|
}
|
|
@@ -985,14 +1325,14 @@ function equals$5(existing, incoming) {
|
|
|
985
1325
|
}
|
|
986
1326
|
const ingest$3 = function GenerateInsightBatchResponseIngest(input, path, luvio, store, timestamp) {
|
|
987
1327
|
if (process.env.NODE_ENV !== 'production') {
|
|
988
|
-
const validateError = validate$
|
|
1328
|
+
const validateError = validate$b(input);
|
|
989
1329
|
if (validateError !== null) {
|
|
990
1330
|
throw validateError;
|
|
991
1331
|
}
|
|
992
1332
|
}
|
|
993
1333
|
const key = keyBuilderFromType$3(luvio, input);
|
|
994
1334
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
|
|
995
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "analytics-insights", VERSION$
|
|
1335
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "analytics-insights", VERSION$b, RepresentationType$3, equals$b);
|
|
996
1336
|
return createLink(key);
|
|
997
1337
|
};
|
|
998
1338
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1005,8 +1345,8 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1005
1345
|
});
|
|
1006
1346
|
}
|
|
1007
1347
|
|
|
1008
|
-
function select$
|
|
1009
|
-
return select$
|
|
1348
|
+
function select$e(luvio, params) {
|
|
1349
|
+
return select$f();
|
|
1010
1350
|
}
|
|
1011
1351
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
1012
1352
|
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
@@ -1017,7 +1357,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
|
|
|
1017
1357
|
luvio.storeIngest(key, ingest$3, body);
|
|
1018
1358
|
const snapshot = luvio.storeLookup({
|
|
1019
1359
|
recordId: key,
|
|
1020
|
-
node: select$
|
|
1360
|
+
node: select$e(),
|
|
1021
1361
|
variables: {},
|
|
1022
1362
|
});
|
|
1023
1363
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1056,7 +1396,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
1056
1396
|
const untrustedConfig_batchInput_array = [];
|
|
1057
1397
|
for (let i = 0, arrayLength = untrustedConfig_batchInput.length; i < arrayLength; i++) {
|
|
1058
1398
|
const untrustedConfig_batchInput_item = untrustedConfig_batchInput[i];
|
|
1059
|
-
const referenceBatchInputValidationError = validate$
|
|
1399
|
+
const referenceBatchInputValidationError = validate$i(untrustedConfig_batchInput_item);
|
|
1060
1400
|
if (referenceBatchInputValidationError === null) {
|
|
1061
1401
|
untrustedConfig_batchInput_array.push(untrustedConfig_batchInput_item);
|
|
1062
1402
|
}
|
|
@@ -1064,7 +1404,10 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
1064
1404
|
config.batchInput = untrustedConfig_batchInput_array;
|
|
1065
1405
|
}
|
|
1066
1406
|
const untrustedConfig_options = untrustedConfig.options;
|
|
1067
|
-
|
|
1407
|
+
const referenceBatchOptionsValidationError = validate$f(untrustedConfig_options);
|
|
1408
|
+
if (referenceBatchOptionsValidationError === null) {
|
|
1409
|
+
config.options = untrustedConfig_options;
|
|
1410
|
+
}
|
|
1068
1411
|
return config;
|
|
1069
1412
|
}
|
|
1070
1413
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -1109,8 +1452,8 @@ const createInsightsBatchAdapterFactory = (luvio) => {
|
|
|
1109
1452
|
};
|
|
1110
1453
|
};
|
|
1111
1454
|
|
|
1112
|
-
const VERSION$
|
|
1113
|
-
function validate$
|
|
1455
|
+
const VERSION$a = "f898ff84f82ad0ca1eca0045e17ce492";
|
|
1456
|
+
function validate$a(obj, path = 'GetFilterValuesResponse_CategoricalValues') {
|
|
1114
1457
|
const v_error = (() => {
|
|
1115
1458
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1116
1459
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1173,10 +1516,10 @@ function validate$4(obj, path = 'GetFilterValuesResponse_CategoricalValues') {
|
|
|
1173
1516
|
})();
|
|
1174
1517
|
return v_error === undefined ? null : v_error;
|
|
1175
1518
|
}
|
|
1176
|
-
const select$
|
|
1519
|
+
const select$d = function GetFilterValuesResponse_CategoricalValuesSelect() {
|
|
1177
1520
|
return {
|
|
1178
1521
|
kind: 'Fragment',
|
|
1179
|
-
version: VERSION$
|
|
1522
|
+
version: VERSION$a,
|
|
1180
1523
|
private: [],
|
|
1181
1524
|
selections: [
|
|
1182
1525
|
{
|
|
@@ -1188,7 +1531,7 @@ const select$7 = function GetFilterValuesResponse_CategoricalValuesSelect() {
|
|
|
1188
1531
|
]
|
|
1189
1532
|
};
|
|
1190
1533
|
};
|
|
1191
|
-
function equals$
|
|
1534
|
+
function equals$a(existing, incoming) {
|
|
1192
1535
|
const existing_values = existing.values;
|
|
1193
1536
|
const incoming_values = incoming.values;
|
|
1194
1537
|
// if at least one of these optionals is defined
|
|
@@ -1210,15 +1553,15 @@ function equals$4(existing, incoming) {
|
|
|
1210
1553
|
return true;
|
|
1211
1554
|
}
|
|
1212
1555
|
|
|
1213
|
-
const VERSION$
|
|
1214
|
-
function validate$
|
|
1556
|
+
const VERSION$9 = "2025bbf393050a10fae76d5b4d5d0f58";
|
|
1557
|
+
function validate$9(obj, path = 'GetFilterValuesResponse') {
|
|
1215
1558
|
const v_error = (() => {
|
|
1216
1559
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1217
1560
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1218
1561
|
}
|
|
1219
1562
|
const obj_categoricalValues = obj.categoricalValues;
|
|
1220
1563
|
const path_categoricalValues = path + '.categoricalValues';
|
|
1221
|
-
const referencepath_categoricalValuesValidationError = validate$
|
|
1564
|
+
const referencepath_categoricalValuesValidationError = validate$a(obj_categoricalValues, path_categoricalValues);
|
|
1222
1565
|
if (referencepath_categoricalValuesValidationError !== null) {
|
|
1223
1566
|
let message = 'Object doesn\'t match GetFilterValuesResponse_CategoricalValues (at "' + path_categoricalValues + '")\n';
|
|
1224
1567
|
message += referencepath_categoricalValuesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1259,11 +1602,11 @@ function keyBuilderFromType$2(luvio, object) {
|
|
|
1259
1602
|
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
1260
1603
|
return input;
|
|
1261
1604
|
}
|
|
1262
|
-
const select$
|
|
1263
|
-
const { selections: GetFilterValuesResponse_CategoricalValues__selections, opaque: GetFilterValuesResponse_CategoricalValues__opaque, } = select$
|
|
1605
|
+
const select$c = function GetFilterValuesResponseSelect() {
|
|
1606
|
+
const { selections: GetFilterValuesResponse_CategoricalValues__selections, opaque: GetFilterValuesResponse_CategoricalValues__opaque, } = select$d();
|
|
1264
1607
|
return {
|
|
1265
1608
|
kind: 'Fragment',
|
|
1266
|
-
version: VERSION$
|
|
1609
|
+
version: VERSION$9,
|
|
1267
1610
|
private: [],
|
|
1268
1611
|
selections: [
|
|
1269
1612
|
{
|
|
@@ -1288,7 +1631,7 @@ const select$6 = function GetFilterValuesResponseSelect() {
|
|
|
1288
1631
|
]
|
|
1289
1632
|
};
|
|
1290
1633
|
};
|
|
1291
|
-
function equals$
|
|
1634
|
+
function equals$9(existing, incoming) {
|
|
1292
1635
|
const existing_totalAvailable = existing.totalAvailable;
|
|
1293
1636
|
const incoming_totalAvailable = incoming.totalAvailable;
|
|
1294
1637
|
// if at least one of these optionals is defined
|
|
@@ -1322,21 +1665,21 @@ function equals$3(existing, incoming) {
|
|
|
1322
1665
|
}
|
|
1323
1666
|
const existing_categoricalValues = existing.categoricalValues;
|
|
1324
1667
|
const incoming_categoricalValues = incoming.categoricalValues;
|
|
1325
|
-
if (!(equals$
|
|
1668
|
+
if (!(equals$a(existing_categoricalValues, incoming_categoricalValues))) {
|
|
1326
1669
|
return false;
|
|
1327
1670
|
}
|
|
1328
1671
|
return true;
|
|
1329
1672
|
}
|
|
1330
1673
|
const ingest$2 = function GetFilterValuesResponseIngest(input, path, luvio, store, timestamp) {
|
|
1331
1674
|
if (process.env.NODE_ENV !== 'production') {
|
|
1332
|
-
const validateError = validate$
|
|
1675
|
+
const validateError = validate$9(input);
|
|
1333
1676
|
if (validateError !== null) {
|
|
1334
1677
|
throw validateError;
|
|
1335
1678
|
}
|
|
1336
1679
|
}
|
|
1337
1680
|
const key = keyBuilderFromType$2(luvio, input);
|
|
1338
1681
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
|
|
1339
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "analytics-insights", VERSION$
|
|
1682
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "analytics-insights", VERSION$9, RepresentationType$2, equals$9);
|
|
1340
1683
|
return createLink(key);
|
|
1341
1684
|
};
|
|
1342
1685
|
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1349,8 +1692,8 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1349
1692
|
});
|
|
1350
1693
|
}
|
|
1351
1694
|
|
|
1352
|
-
function select$
|
|
1353
|
-
return select$
|
|
1695
|
+
function select$b(luvio, params) {
|
|
1696
|
+
return select$c();
|
|
1354
1697
|
}
|
|
1355
1698
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
1356
1699
|
getTypeCacheKeys$2(storeKeyMap, luvio, response);
|
|
@@ -1361,7 +1704,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
|
|
|
1361
1704
|
luvio.storeIngest(key, ingest$2, body);
|
|
1362
1705
|
const snapshot = luvio.storeLookup({
|
|
1363
1706
|
recordId: key,
|
|
1364
|
-
node: select$
|
|
1707
|
+
node: select$b(),
|
|
1365
1708
|
variables: {},
|
|
1366
1709
|
});
|
|
1367
1710
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1402,12 +1745,12 @@ function typeCheckConfig$2(untrustedConfig) {
|
|
|
1402
1745
|
const config = {};
|
|
1403
1746
|
typeCheckConfig$4(untrustedConfig, config, getMetricFilterValues_ConfigPropertyMetadata);
|
|
1404
1747
|
const untrustedConfig_semanticDataModel = untrustedConfig.semanticDataModel;
|
|
1405
|
-
const referenceSemanticDataModelValidationError = validate$
|
|
1748
|
+
const referenceSemanticDataModelValidationError = validate$q(untrustedConfig_semanticDataModel);
|
|
1406
1749
|
if (referenceSemanticDataModelValidationError === null) {
|
|
1407
1750
|
config.semanticDataModel = untrustedConfig_semanticDataModel;
|
|
1408
1751
|
}
|
|
1409
1752
|
const untrustedConfig_field = untrustedConfig.field;
|
|
1410
|
-
const referenceFieldIdValidationError = validate$
|
|
1753
|
+
const referenceFieldIdValidationError = validate$C(untrustedConfig_field);
|
|
1411
1754
|
if (referenceFieldIdValidationError === null) {
|
|
1412
1755
|
config.field = untrustedConfig_field;
|
|
1413
1756
|
}
|
|
@@ -1416,7 +1759,7 @@ function typeCheckConfig$2(untrustedConfig) {
|
|
|
1416
1759
|
const untrustedConfig_filters_array = [];
|
|
1417
1760
|
for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
|
|
1418
1761
|
const untrustedConfig_filters_item = untrustedConfig_filters[i];
|
|
1419
|
-
const referenceFilterValidationError = validate$
|
|
1762
|
+
const referenceFilterValidationError = validate$y(untrustedConfig_filters_item);
|
|
1420
1763
|
if (referenceFilterValidationError === null) {
|
|
1421
1764
|
untrustedConfig_filters_array.push(untrustedConfig_filters_item);
|
|
1422
1765
|
}
|
|
@@ -1424,7 +1767,10 @@ function typeCheckConfig$2(untrustedConfig) {
|
|
|
1424
1767
|
config.filters = untrustedConfig_filters_array;
|
|
1425
1768
|
}
|
|
1426
1769
|
const untrustedConfig_semanticFilter = untrustedConfig.semanticFilter;
|
|
1427
|
-
|
|
1770
|
+
const referenceFlattenFilterValidationError = validate$u(untrustedConfig_semanticFilter);
|
|
1771
|
+
if (referenceFlattenFilterValidationError === null) {
|
|
1772
|
+
config.semanticFilter = untrustedConfig_semanticFilter;
|
|
1773
|
+
}
|
|
1428
1774
|
return config;
|
|
1429
1775
|
}
|
|
1430
1776
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -1469,79 +1815,854 @@ const getMetricFilterValuesAdapterFactory = (luvio) => {
|
|
|
1469
1815
|
};
|
|
1470
1816
|
};
|
|
1471
1817
|
|
|
1472
|
-
const VERSION$
|
|
1473
|
-
function validate$
|
|
1818
|
+
const VERSION$8 = "6b47d2ed35a900956ff58b7d8a527e7f";
|
|
1819
|
+
function validate$8(obj, path = 'InsightFeedbackMetadata') {
|
|
1474
1820
|
const v_error = (() => {
|
|
1475
1821
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1476
1822
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1477
1823
|
}
|
|
1478
|
-
if (obj.
|
|
1479
|
-
const
|
|
1480
|
-
const
|
|
1481
|
-
if (typeof
|
|
1482
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
1824
|
+
if (obj.dimensionHash !== undefined) {
|
|
1825
|
+
const obj_dimensionHash = obj.dimensionHash;
|
|
1826
|
+
const path_dimensionHash = path + '.dimensionHash';
|
|
1827
|
+
if (typeof obj_dimensionHash !== 'string') {
|
|
1828
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dimensionHash + '" (at "' + path_dimensionHash + '")');
|
|
1483
1829
|
}
|
|
1484
1830
|
}
|
|
1485
|
-
if (obj.
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1831
|
+
if (obj.score !== undefined) {
|
|
1832
|
+
obj.score;
|
|
1833
|
+
}
|
|
1834
|
+
if (obj.type !== undefined) {
|
|
1835
|
+
const obj_type = obj.type;
|
|
1836
|
+
const path_type = path + '.type';
|
|
1837
|
+
if (typeof obj_type !== 'string') {
|
|
1838
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1490
1839
|
}
|
|
1491
1840
|
}
|
|
1492
1841
|
})();
|
|
1493
1842
|
return v_error === undefined ? null : v_error;
|
|
1494
1843
|
}
|
|
1495
|
-
const select$
|
|
1844
|
+
const select$a = function InsightFeedbackMetadataSelect() {
|
|
1496
1845
|
return {
|
|
1497
1846
|
kind: 'Fragment',
|
|
1498
|
-
version: VERSION$
|
|
1847
|
+
version: VERSION$8,
|
|
1499
1848
|
private: [],
|
|
1500
1849
|
selections: [
|
|
1501
1850
|
{
|
|
1502
|
-
name: '
|
|
1851
|
+
name: 'dimensionHash',
|
|
1503
1852
|
kind: 'Scalar',
|
|
1504
1853
|
required: false
|
|
1505
1854
|
},
|
|
1506
1855
|
{
|
|
1507
|
-
name: '
|
|
1856
|
+
name: 'score',
|
|
1857
|
+
kind: 'Scalar',
|
|
1858
|
+
required: false
|
|
1859
|
+
},
|
|
1860
|
+
{
|
|
1861
|
+
name: 'type',
|
|
1508
1862
|
kind: 'Scalar',
|
|
1509
1863
|
required: false
|
|
1510
1864
|
}
|
|
1511
1865
|
]
|
|
1512
1866
|
};
|
|
1513
1867
|
};
|
|
1514
|
-
function equals$
|
|
1515
|
-
const
|
|
1516
|
-
const
|
|
1868
|
+
function equals$8(existing, incoming) {
|
|
1869
|
+
const existing_dimensionHash = existing.dimensionHash;
|
|
1870
|
+
const incoming_dimensionHash = incoming.dimensionHash;
|
|
1871
|
+
// if at least one of these optionals is defined
|
|
1872
|
+
if (existing_dimensionHash !== undefined || incoming_dimensionHash !== undefined) {
|
|
1873
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1874
|
+
// not equal
|
|
1875
|
+
if (existing_dimensionHash === undefined || incoming_dimensionHash === undefined) {
|
|
1876
|
+
return false;
|
|
1877
|
+
}
|
|
1878
|
+
if (!(existing_dimensionHash === incoming_dimensionHash)) {
|
|
1879
|
+
return false;
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
const existing_type = existing.type;
|
|
1883
|
+
const incoming_type = incoming.type;
|
|
1884
|
+
// if at least one of these optionals is defined
|
|
1885
|
+
if (existing_type !== undefined || incoming_type !== undefined) {
|
|
1886
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1887
|
+
// not equal
|
|
1888
|
+
if (existing_type === undefined || incoming_type === undefined) {
|
|
1889
|
+
return false;
|
|
1890
|
+
}
|
|
1891
|
+
if (!(existing_type === incoming_type)) {
|
|
1892
|
+
return false;
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
const existing_score = existing.score;
|
|
1896
|
+
const incoming_score = incoming.score;
|
|
1897
|
+
// if at least one of these optionals is defined
|
|
1898
|
+
if (existing_score !== undefined || incoming_score !== undefined) {
|
|
1899
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1900
|
+
// not equal
|
|
1901
|
+
if (existing_score === undefined || incoming_score === undefined) {
|
|
1902
|
+
return false;
|
|
1903
|
+
}
|
|
1904
|
+
if (!(existing_score === incoming_score)) {
|
|
1905
|
+
return false;
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
return true;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
const VERSION$7 = "be7014b0043386672b06a22807d7e549";
|
|
1912
|
+
function validate$7(obj, path = 'Insight') {
|
|
1913
|
+
const v_error = (() => {
|
|
1914
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1915
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1916
|
+
}
|
|
1917
|
+
if (obj.characterization !== undefined) {
|
|
1918
|
+
const obj_characterization = obj.characterization;
|
|
1919
|
+
const path_characterization = path + '.characterization';
|
|
1920
|
+
if (typeof obj_characterization !== 'string') {
|
|
1921
|
+
return new TypeError('Expected "string" but received "' + typeof obj_characterization + '" (at "' + path_characterization + '")');
|
|
1922
|
+
}
|
|
1923
|
+
}
|
|
1924
|
+
if (obj.facts !== undefined) {
|
|
1925
|
+
const obj_facts = obj.facts;
|
|
1926
|
+
const path_facts = path + '.facts';
|
|
1927
|
+
if (obj_facts === undefined) {
|
|
1928
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_facts + '" (at "' + path_facts + '")');
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
if (obj.id !== undefined) {
|
|
1932
|
+
const obj_id = obj.id;
|
|
1933
|
+
const path_id = path + '.id';
|
|
1934
|
+
if (typeof obj_id !== 'string') {
|
|
1935
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
const obj_insightFeedbackMetadata = obj.insightFeedbackMetadata;
|
|
1939
|
+
const path_insightFeedbackMetadata = path + '.insightFeedbackMetadata';
|
|
1940
|
+
const referencepath_insightFeedbackMetadataValidationError = validate$8(obj_insightFeedbackMetadata, path_insightFeedbackMetadata);
|
|
1941
|
+
if (referencepath_insightFeedbackMetadataValidationError !== null) {
|
|
1942
|
+
let message = 'Object doesn\'t match InsightFeedbackMetadata (at "' + path_insightFeedbackMetadata + '")\n';
|
|
1943
|
+
message += referencepath_insightFeedbackMetadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1944
|
+
return new TypeError(message);
|
|
1945
|
+
}
|
|
1946
|
+
if (obj.markup !== undefined) {
|
|
1947
|
+
const obj_markup = obj.markup;
|
|
1948
|
+
const path_markup = path + '.markup';
|
|
1949
|
+
if (typeof obj_markup !== 'string') {
|
|
1950
|
+
return new TypeError('Expected "string" but received "' + typeof obj_markup + '" (at "' + path_markup + '")');
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
if (obj.question !== undefined) {
|
|
1954
|
+
const obj_question = obj.question;
|
|
1955
|
+
const path_question = path + '.question';
|
|
1956
|
+
if (typeof obj_question !== 'string') {
|
|
1957
|
+
return new TypeError('Expected "string" but received "' + typeof obj_question + '" (at "' + path_question + '")');
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
if (obj.score !== undefined) {
|
|
1961
|
+
obj.score;
|
|
1962
|
+
}
|
|
1963
|
+
if (obj.type !== undefined) {
|
|
1964
|
+
const obj_type = obj.type;
|
|
1965
|
+
const path_type = path + '.type';
|
|
1966
|
+
if (typeof obj_type !== 'string') {
|
|
1967
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
if (obj.version !== undefined) {
|
|
1971
|
+
const obj_version = obj.version;
|
|
1972
|
+
const path_version = path + '.version';
|
|
1973
|
+
if (typeof obj_version !== 'number' || (typeof obj_version === 'number' && Math.floor(obj_version) !== obj_version)) {
|
|
1974
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_version + '" (at "' + path_version + '")');
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
if (obj.viz !== undefined) {
|
|
1978
|
+
const obj_viz = obj.viz;
|
|
1979
|
+
const path_viz = path + '.viz';
|
|
1980
|
+
if (obj_viz === undefined) {
|
|
1981
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_viz + '" (at "' + path_viz + '")');
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1984
|
+
})();
|
|
1985
|
+
return v_error === undefined ? null : v_error;
|
|
1986
|
+
}
|
|
1987
|
+
const select$9 = function InsightSelect() {
|
|
1988
|
+
const { selections: InsightFeedbackMetadata__selections, opaque: InsightFeedbackMetadata__opaque, } = select$a();
|
|
1989
|
+
return {
|
|
1990
|
+
kind: 'Fragment',
|
|
1991
|
+
version: VERSION$7,
|
|
1992
|
+
private: [],
|
|
1993
|
+
selections: [
|
|
1994
|
+
{
|
|
1995
|
+
name: 'characterization',
|
|
1996
|
+
kind: 'Scalar',
|
|
1997
|
+
required: false
|
|
1998
|
+
},
|
|
1999
|
+
{
|
|
2000
|
+
name: 'facts',
|
|
2001
|
+
kind: 'Object',
|
|
2002
|
+
// any
|
|
2003
|
+
},
|
|
2004
|
+
{
|
|
2005
|
+
name: 'id',
|
|
2006
|
+
kind: 'Scalar',
|
|
2007
|
+
required: false
|
|
2008
|
+
},
|
|
2009
|
+
{
|
|
2010
|
+
name: 'insightFeedbackMetadata',
|
|
2011
|
+
kind: 'Object',
|
|
2012
|
+
selections: InsightFeedbackMetadata__selections
|
|
2013
|
+
},
|
|
2014
|
+
{
|
|
2015
|
+
name: 'markup',
|
|
2016
|
+
kind: 'Scalar',
|
|
2017
|
+
required: false
|
|
2018
|
+
},
|
|
2019
|
+
{
|
|
2020
|
+
name: 'question',
|
|
2021
|
+
kind: 'Scalar',
|
|
2022
|
+
required: false
|
|
2023
|
+
},
|
|
2024
|
+
{
|
|
2025
|
+
name: 'score',
|
|
2026
|
+
kind: 'Scalar',
|
|
2027
|
+
required: false
|
|
2028
|
+
},
|
|
2029
|
+
{
|
|
2030
|
+
name: 'type',
|
|
2031
|
+
kind: 'Scalar',
|
|
2032
|
+
required: false
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
name: 'version',
|
|
2036
|
+
kind: 'Scalar',
|
|
2037
|
+
required: false
|
|
2038
|
+
},
|
|
2039
|
+
{
|
|
2040
|
+
name: 'viz',
|
|
2041
|
+
kind: 'Object',
|
|
2042
|
+
// any
|
|
2043
|
+
}
|
|
2044
|
+
]
|
|
2045
|
+
};
|
|
2046
|
+
};
|
|
2047
|
+
function equals$7(existing, incoming) {
|
|
2048
|
+
const existing_version = existing.version;
|
|
2049
|
+
const incoming_version = incoming.version;
|
|
2050
|
+
// if at least one of these optionals is defined
|
|
2051
|
+
if (existing_version !== undefined || incoming_version !== undefined) {
|
|
2052
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2053
|
+
// not equal
|
|
2054
|
+
if (existing_version === undefined || incoming_version === undefined) {
|
|
2055
|
+
return false;
|
|
2056
|
+
}
|
|
2057
|
+
if (!(existing_version === incoming_version)) {
|
|
2058
|
+
return false;
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
const existing_characterization = existing.characterization;
|
|
2062
|
+
const incoming_characterization = incoming.characterization;
|
|
2063
|
+
// if at least one of these optionals is defined
|
|
2064
|
+
if (existing_characterization !== undefined || incoming_characterization !== undefined) {
|
|
2065
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2066
|
+
// not equal
|
|
2067
|
+
if (existing_characterization === undefined || incoming_characterization === undefined) {
|
|
2068
|
+
return false;
|
|
2069
|
+
}
|
|
2070
|
+
if (!(existing_characterization === incoming_characterization)) {
|
|
2071
|
+
return false;
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
const existing_id = existing.id;
|
|
2075
|
+
const incoming_id = incoming.id;
|
|
2076
|
+
// if at least one of these optionals is defined
|
|
2077
|
+
if (existing_id !== undefined || incoming_id !== undefined) {
|
|
2078
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2079
|
+
// not equal
|
|
2080
|
+
if (existing_id === undefined || incoming_id === undefined) {
|
|
2081
|
+
return false;
|
|
2082
|
+
}
|
|
2083
|
+
if (!(existing_id === incoming_id)) {
|
|
2084
|
+
return false;
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
const existing_markup = existing.markup;
|
|
2088
|
+
const incoming_markup = incoming.markup;
|
|
2089
|
+
// if at least one of these optionals is defined
|
|
2090
|
+
if (existing_markup !== undefined || incoming_markup !== undefined) {
|
|
2091
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2092
|
+
// not equal
|
|
2093
|
+
if (existing_markup === undefined || incoming_markup === undefined) {
|
|
2094
|
+
return false;
|
|
2095
|
+
}
|
|
2096
|
+
if (!(existing_markup === incoming_markup)) {
|
|
2097
|
+
return false;
|
|
2098
|
+
}
|
|
2099
|
+
}
|
|
2100
|
+
const existing_question = existing.question;
|
|
2101
|
+
const incoming_question = incoming.question;
|
|
2102
|
+
// if at least one of these optionals is defined
|
|
2103
|
+
if (existing_question !== undefined || incoming_question !== undefined) {
|
|
2104
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2105
|
+
// not equal
|
|
2106
|
+
if (existing_question === undefined || incoming_question === undefined) {
|
|
2107
|
+
return false;
|
|
2108
|
+
}
|
|
2109
|
+
if (!(existing_question === incoming_question)) {
|
|
2110
|
+
return false;
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
const existing_type = existing.type;
|
|
2114
|
+
const incoming_type = incoming.type;
|
|
2115
|
+
// if at least one of these optionals is defined
|
|
2116
|
+
if (existing_type !== undefined || incoming_type !== undefined) {
|
|
2117
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2118
|
+
// not equal
|
|
2119
|
+
if (existing_type === undefined || incoming_type === undefined) {
|
|
2120
|
+
return false;
|
|
2121
|
+
}
|
|
2122
|
+
if (!(existing_type === incoming_type)) {
|
|
2123
|
+
return false;
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
const existing_score = existing.score;
|
|
2127
|
+
const incoming_score = incoming.score;
|
|
2128
|
+
// if at least one of these optionals is defined
|
|
2129
|
+
if (existing_score !== undefined || incoming_score !== undefined) {
|
|
2130
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2131
|
+
// not equal
|
|
2132
|
+
if (existing_score === undefined || incoming_score === undefined) {
|
|
2133
|
+
return false;
|
|
2134
|
+
}
|
|
2135
|
+
if (!(existing_score === incoming_score)) {
|
|
2136
|
+
return false;
|
|
2137
|
+
}
|
|
2138
|
+
}
|
|
2139
|
+
const existing_facts = existing.facts;
|
|
2140
|
+
const incoming_facts = incoming.facts;
|
|
2141
|
+
// if at least one of these optionals is defined
|
|
2142
|
+
if (existing_facts !== undefined || incoming_facts !== undefined) {
|
|
2143
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2144
|
+
// not equal
|
|
2145
|
+
if (existing_facts === undefined || incoming_facts === undefined) {
|
|
2146
|
+
return false;
|
|
2147
|
+
}
|
|
2148
|
+
if (JSONStringify(incoming_facts) !== JSONStringify(existing_facts)) {
|
|
2149
|
+
return false;
|
|
2150
|
+
}
|
|
2151
|
+
}
|
|
2152
|
+
const existing_insightFeedbackMetadata = existing.insightFeedbackMetadata;
|
|
2153
|
+
const incoming_insightFeedbackMetadata = incoming.insightFeedbackMetadata;
|
|
2154
|
+
if (!(equals$8(existing_insightFeedbackMetadata, incoming_insightFeedbackMetadata))) {
|
|
2155
|
+
return false;
|
|
2156
|
+
}
|
|
2157
|
+
const existing_viz = existing.viz;
|
|
2158
|
+
const incoming_viz = incoming.viz;
|
|
2159
|
+
// if at least one of these optionals is defined
|
|
2160
|
+
if (existing_viz !== undefined || incoming_viz !== undefined) {
|
|
2161
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2162
|
+
// not equal
|
|
2163
|
+
if (existing_viz === undefined || incoming_viz === undefined) {
|
|
2164
|
+
return false;
|
|
2165
|
+
}
|
|
2166
|
+
if (JSONStringify(incoming_viz) !== JSONStringify(existing_viz)) {
|
|
2167
|
+
return false;
|
|
2168
|
+
}
|
|
2169
|
+
}
|
|
2170
|
+
return true;
|
|
2171
|
+
}
|
|
2172
|
+
|
|
2173
|
+
const VERSION$6 = "6707f0d0aa09112abbca1db5e32bb172";
|
|
2174
|
+
function validate$6(obj, path = 'InsightResponse') {
|
|
2175
|
+
const v_error = (() => {
|
|
2176
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2177
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2178
|
+
}
|
|
2179
|
+
if (obj.error !== undefined) {
|
|
2180
|
+
const obj_error = obj.error;
|
|
2181
|
+
const path_error = path + '.error';
|
|
2182
|
+
const referencepath_errorValidationError = validate$e(obj_error, path_error);
|
|
2183
|
+
if (referencepath_errorValidationError !== null) {
|
|
2184
|
+
let message = 'Object doesn\'t match Error (at "' + path_error + '")\n';
|
|
2185
|
+
message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2186
|
+
return new TypeError(message);
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
if (obj.insightType !== undefined) {
|
|
2190
|
+
const obj_insightType = obj.insightType;
|
|
2191
|
+
const path_insightType = path + '.insightType';
|
|
2192
|
+
if (typeof obj_insightType !== 'string') {
|
|
2193
|
+
return new TypeError('Expected "string" but received "' + typeof obj_insightType + '" (at "' + path_insightType + '")');
|
|
2194
|
+
}
|
|
2195
|
+
}
|
|
2196
|
+
const obj_result = obj.result;
|
|
2197
|
+
const path_result = path + '.result';
|
|
2198
|
+
const referencepath_resultValidationError = validate$7(obj_result, path_result);
|
|
2199
|
+
if (referencepath_resultValidationError !== null) {
|
|
2200
|
+
let message = 'Object doesn\'t match Insight (at "' + path_result + '")\n';
|
|
2201
|
+
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2202
|
+
return new TypeError(message);
|
|
2203
|
+
}
|
|
2204
|
+
})();
|
|
2205
|
+
return v_error === undefined ? null : v_error;
|
|
2206
|
+
}
|
|
2207
|
+
const select$8 = function InsightResponseSelect() {
|
|
2208
|
+
const { selections: Error__selections, opaque: Error__opaque, } = select$i();
|
|
2209
|
+
const { selections: Insight__selections, opaque: Insight__opaque, } = select$9();
|
|
2210
|
+
return {
|
|
2211
|
+
kind: 'Fragment',
|
|
2212
|
+
version: VERSION$6,
|
|
2213
|
+
private: [],
|
|
2214
|
+
selections: [
|
|
2215
|
+
{
|
|
2216
|
+
name: 'error',
|
|
2217
|
+
kind: 'Object',
|
|
2218
|
+
selections: Error__selections,
|
|
2219
|
+
required: false
|
|
2220
|
+
},
|
|
2221
|
+
{
|
|
2222
|
+
name: 'insightType',
|
|
2223
|
+
kind: 'Scalar',
|
|
2224
|
+
required: false
|
|
2225
|
+
},
|
|
2226
|
+
{
|
|
2227
|
+
name: 'result',
|
|
2228
|
+
kind: 'Object',
|
|
2229
|
+
selections: Insight__selections
|
|
2230
|
+
}
|
|
2231
|
+
]
|
|
2232
|
+
};
|
|
2233
|
+
};
|
|
2234
|
+
function equals$6(existing, incoming) {
|
|
2235
|
+
const existing_insightType = existing.insightType;
|
|
2236
|
+
const incoming_insightType = incoming.insightType;
|
|
2237
|
+
// if at least one of these optionals is defined
|
|
2238
|
+
if (existing_insightType !== undefined || incoming_insightType !== undefined) {
|
|
2239
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2240
|
+
// not equal
|
|
2241
|
+
if (existing_insightType === undefined || incoming_insightType === undefined) {
|
|
2242
|
+
return false;
|
|
2243
|
+
}
|
|
2244
|
+
if (!(existing_insightType === incoming_insightType)) {
|
|
2245
|
+
return false;
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
const existing_error = existing.error;
|
|
2249
|
+
const incoming_error = incoming.error;
|
|
2250
|
+
// if at least one of these optionals is defined
|
|
2251
|
+
if (existing_error !== undefined || incoming_error !== undefined) {
|
|
2252
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2253
|
+
// not equal
|
|
2254
|
+
if (existing_error === undefined || incoming_error === undefined) {
|
|
2255
|
+
return false;
|
|
2256
|
+
}
|
|
2257
|
+
if (!(equals$e(existing_error, incoming_error))) {
|
|
2258
|
+
return false;
|
|
2259
|
+
}
|
|
2260
|
+
}
|
|
2261
|
+
const existing_result = existing.result;
|
|
2262
|
+
const incoming_result = incoming.result;
|
|
2263
|
+
if (!(equals$7(existing_result, incoming_result))) {
|
|
2264
|
+
return false;
|
|
2265
|
+
}
|
|
2266
|
+
return true;
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2269
|
+
const VERSION$5 = "490320cd71bdb83b6c4dcfe5b2b48b25";
|
|
2270
|
+
function validate$5(obj, path = 'Overview') {
|
|
2271
|
+
const v_error = (() => {
|
|
2272
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2273
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2274
|
+
}
|
|
2275
|
+
if (obj.viz !== undefined) {
|
|
2276
|
+
const obj_viz = obj.viz;
|
|
2277
|
+
const path_viz = path + '.viz';
|
|
2278
|
+
if (obj_viz === undefined) {
|
|
2279
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_viz + '" (at "' + path_viz + '")');
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
})();
|
|
2283
|
+
return v_error === undefined ? null : v_error;
|
|
2284
|
+
}
|
|
2285
|
+
const select$7 = function OverviewSelect() {
|
|
2286
|
+
return {
|
|
2287
|
+
kind: 'Fragment',
|
|
2288
|
+
version: VERSION$5,
|
|
2289
|
+
private: [],
|
|
2290
|
+
selections: [
|
|
2291
|
+
{
|
|
2292
|
+
name: 'viz',
|
|
2293
|
+
kind: 'Object',
|
|
2294
|
+
// any
|
|
2295
|
+
}
|
|
2296
|
+
]
|
|
2297
|
+
};
|
|
2298
|
+
};
|
|
2299
|
+
function equals$5(existing, incoming) {
|
|
2300
|
+
const existing_viz = existing.viz;
|
|
2301
|
+
const incoming_viz = incoming.viz;
|
|
1517
2302
|
// if at least one of these optionals is defined
|
|
1518
|
-
if (
|
|
2303
|
+
if (existing_viz !== undefined || incoming_viz !== undefined) {
|
|
1519
2304
|
// if one of these is not defined we know the other is defined and therefore
|
|
1520
2305
|
// not equal
|
|
1521
|
-
if (
|
|
2306
|
+
if (existing_viz === undefined || incoming_viz === undefined) {
|
|
1522
2307
|
return false;
|
|
1523
2308
|
}
|
|
1524
|
-
if (
|
|
2309
|
+
if (JSONStringify(incoming_viz) !== JSONStringify(existing_viz)) {
|
|
1525
2310
|
return false;
|
|
1526
2311
|
}
|
|
1527
2312
|
}
|
|
1528
|
-
|
|
1529
|
-
|
|
2313
|
+
return true;
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
const VERSION$4 = "ac3296a9832f46fda66420bc753d8c61";
|
|
2317
|
+
function validate$4(obj, path = 'OverviewResponse') {
|
|
2318
|
+
const v_error = (() => {
|
|
2319
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2320
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2321
|
+
}
|
|
2322
|
+
if (obj.error !== undefined) {
|
|
2323
|
+
const obj_error = obj.error;
|
|
2324
|
+
const path_error = path + '.error';
|
|
2325
|
+
const referencepath_errorValidationError = validate$e(obj_error, path_error);
|
|
2326
|
+
if (referencepath_errorValidationError !== null) {
|
|
2327
|
+
let message = 'Object doesn\'t match Error (at "' + path_error + '")\n';
|
|
2328
|
+
message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2329
|
+
return new TypeError(message);
|
|
2330
|
+
}
|
|
2331
|
+
}
|
|
2332
|
+
const obj_result = obj.result;
|
|
2333
|
+
const path_result = path + '.result';
|
|
2334
|
+
const referencepath_resultValidationError = validate$5(obj_result, path_result);
|
|
2335
|
+
if (referencepath_resultValidationError !== null) {
|
|
2336
|
+
let message = 'Object doesn\'t match Overview (at "' + path_result + '")\n';
|
|
2337
|
+
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2338
|
+
return new TypeError(message);
|
|
2339
|
+
}
|
|
2340
|
+
})();
|
|
2341
|
+
return v_error === undefined ? null : v_error;
|
|
2342
|
+
}
|
|
2343
|
+
const select$6 = function OverviewResponseSelect() {
|
|
2344
|
+
const { selections: Error__selections, opaque: Error__opaque, } = select$i();
|
|
2345
|
+
const { selections: Overview__selections, opaque: Overview__opaque, } = select$7();
|
|
2346
|
+
return {
|
|
2347
|
+
kind: 'Fragment',
|
|
2348
|
+
version: VERSION$4,
|
|
2349
|
+
private: [],
|
|
2350
|
+
selections: [
|
|
2351
|
+
{
|
|
2352
|
+
name: 'error',
|
|
2353
|
+
kind: 'Object',
|
|
2354
|
+
selections: Error__selections,
|
|
2355
|
+
required: false
|
|
2356
|
+
},
|
|
2357
|
+
{
|
|
2358
|
+
name: 'result',
|
|
2359
|
+
kind: 'Object',
|
|
2360
|
+
selections: Overview__selections
|
|
2361
|
+
}
|
|
2362
|
+
]
|
|
2363
|
+
};
|
|
2364
|
+
};
|
|
2365
|
+
function equals$4(existing, incoming) {
|
|
2366
|
+
const existing_error = existing.error;
|
|
2367
|
+
const incoming_error = incoming.error;
|
|
1530
2368
|
// if at least one of these optionals is defined
|
|
1531
|
-
if (
|
|
2369
|
+
if (existing_error !== undefined || incoming_error !== undefined) {
|
|
1532
2370
|
// if one of these is not defined we know the other is defined and therefore
|
|
1533
2371
|
// not equal
|
|
1534
|
-
if (
|
|
2372
|
+
if (existing_error === undefined || incoming_error === undefined) {
|
|
1535
2373
|
return false;
|
|
1536
2374
|
}
|
|
1537
|
-
if (!(
|
|
2375
|
+
if (!(equals$e(existing_error, incoming_error))) {
|
|
2376
|
+
return false;
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
const existing_result = existing.result;
|
|
2380
|
+
const incoming_result = incoming.result;
|
|
2381
|
+
if (!(equals$5(existing_result, incoming_result))) {
|
|
2382
|
+
return false;
|
|
2383
|
+
}
|
|
2384
|
+
return true;
|
|
2385
|
+
}
|
|
2386
|
+
|
|
2387
|
+
const VERSION$3 = "a70a5e68e786c3f38efb73cc0812d394";
|
|
2388
|
+
function validate$3(obj, path = 'InsightGroup') {
|
|
2389
|
+
const v_error = (() => {
|
|
2390
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2391
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2392
|
+
}
|
|
2393
|
+
if (obj.error !== undefined) {
|
|
2394
|
+
const obj_error = obj.error;
|
|
2395
|
+
const path_error = path + '.error';
|
|
2396
|
+
const referencepath_errorValidationError = validate$e(obj_error, path_error);
|
|
2397
|
+
if (referencepath_errorValidationError !== null) {
|
|
2398
|
+
let message = 'Object doesn\'t match Error (at "' + path_error + '")\n';
|
|
2399
|
+
message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2400
|
+
return new TypeError(message);
|
|
2401
|
+
}
|
|
2402
|
+
}
|
|
2403
|
+
if (obj.insights !== undefined) {
|
|
2404
|
+
const obj_insights = obj.insights;
|
|
2405
|
+
const path_insights = path + '.insights';
|
|
2406
|
+
if (!ArrayIsArray(obj_insights)) {
|
|
2407
|
+
return new TypeError('Expected "array" but received "' + typeof obj_insights + '" (at "' + path_insights + '")');
|
|
2408
|
+
}
|
|
2409
|
+
for (let i = 0; i < obj_insights.length; i++) {
|
|
2410
|
+
const obj_insights_item = obj_insights[i];
|
|
2411
|
+
const path_insights_item = path_insights + '[' + i + ']';
|
|
2412
|
+
const referencepath_insights_itemValidationError = validate$6(obj_insights_item, path_insights_item);
|
|
2413
|
+
if (referencepath_insights_itemValidationError !== null) {
|
|
2414
|
+
let message = 'Object doesn\'t match InsightResponse (at "' + path_insights_item + '")\n';
|
|
2415
|
+
message += referencepath_insights_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2416
|
+
return new TypeError(message);
|
|
2417
|
+
}
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
if (obj.overviews !== undefined) {
|
|
2421
|
+
const obj_overviews = obj.overviews;
|
|
2422
|
+
const path_overviews = path + '.overviews';
|
|
2423
|
+
if (!ArrayIsArray(obj_overviews)) {
|
|
2424
|
+
return new TypeError('Expected "array" but received "' + typeof obj_overviews + '" (at "' + path_overviews + '")');
|
|
2425
|
+
}
|
|
2426
|
+
for (let i = 0; i < obj_overviews.length; i++) {
|
|
2427
|
+
const obj_overviews_item = obj_overviews[i];
|
|
2428
|
+
const path_overviews_item = path_overviews + '[' + i + ']';
|
|
2429
|
+
const referencepath_overviews_itemValidationError = validate$4(obj_overviews_item, path_overviews_item);
|
|
2430
|
+
if (referencepath_overviews_itemValidationError !== null) {
|
|
2431
|
+
let message = 'Object doesn\'t match OverviewResponse (at "' + path_overviews_item + '")\n';
|
|
2432
|
+
message += referencepath_overviews_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2433
|
+
return new TypeError(message);
|
|
2434
|
+
}
|
|
2435
|
+
}
|
|
2436
|
+
}
|
|
2437
|
+
if (obj.type !== undefined) {
|
|
2438
|
+
const obj_type = obj.type;
|
|
2439
|
+
const path_type = path + '.type';
|
|
2440
|
+
if (typeof obj_type !== 'string') {
|
|
2441
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
2442
|
+
}
|
|
2443
|
+
}
|
|
2444
|
+
})();
|
|
2445
|
+
return v_error === undefined ? null : v_error;
|
|
2446
|
+
}
|
|
2447
|
+
const select$5 = function InsightGroupSelect() {
|
|
2448
|
+
const { selections: Error__selections, opaque: Error__opaque, } = select$i();
|
|
2449
|
+
const { selections: InsightResponse__selections, opaque: InsightResponse__opaque, } = select$8();
|
|
2450
|
+
const { selections: OverviewResponse__selections, opaque: OverviewResponse__opaque, } = select$6();
|
|
2451
|
+
return {
|
|
2452
|
+
kind: 'Fragment',
|
|
2453
|
+
version: VERSION$3,
|
|
2454
|
+
private: [],
|
|
2455
|
+
selections: [
|
|
2456
|
+
{
|
|
2457
|
+
name: 'error',
|
|
2458
|
+
kind: 'Object',
|
|
2459
|
+
selections: Error__selections,
|
|
2460
|
+
required: false
|
|
2461
|
+
},
|
|
2462
|
+
{
|
|
2463
|
+
name: 'insights',
|
|
2464
|
+
kind: 'Object',
|
|
2465
|
+
plural: true,
|
|
2466
|
+
selections: InsightResponse__selections,
|
|
2467
|
+
required: false
|
|
2468
|
+
},
|
|
2469
|
+
{
|
|
2470
|
+
name: 'overviews',
|
|
2471
|
+
kind: 'Object',
|
|
2472
|
+
plural: true,
|
|
2473
|
+
selections: OverviewResponse__selections,
|
|
2474
|
+
required: false
|
|
2475
|
+
},
|
|
2476
|
+
{
|
|
2477
|
+
name: 'type',
|
|
2478
|
+
kind: 'Scalar',
|
|
2479
|
+
required: false
|
|
2480
|
+
}
|
|
2481
|
+
]
|
|
2482
|
+
};
|
|
2483
|
+
};
|
|
2484
|
+
function equals$3(existing, incoming) {
|
|
2485
|
+
const existing_type = existing.type;
|
|
2486
|
+
const incoming_type = incoming.type;
|
|
2487
|
+
// if at least one of these optionals is defined
|
|
2488
|
+
if (existing_type !== undefined || incoming_type !== undefined) {
|
|
2489
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2490
|
+
// not equal
|
|
2491
|
+
if (existing_type === undefined || incoming_type === undefined) {
|
|
2492
|
+
return false;
|
|
2493
|
+
}
|
|
2494
|
+
if (!(existing_type === incoming_type)) {
|
|
2495
|
+
return false;
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
const existing_error = existing.error;
|
|
2499
|
+
const incoming_error = incoming.error;
|
|
2500
|
+
// if at least one of these optionals is defined
|
|
2501
|
+
if (existing_error !== undefined || incoming_error !== undefined) {
|
|
2502
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2503
|
+
// not equal
|
|
2504
|
+
if (existing_error === undefined || incoming_error === undefined) {
|
|
2505
|
+
return false;
|
|
2506
|
+
}
|
|
2507
|
+
if (!(equals$e(existing_error, incoming_error))) {
|
|
2508
|
+
return false;
|
|
2509
|
+
}
|
|
2510
|
+
}
|
|
2511
|
+
const existing_insights = existing.insights;
|
|
2512
|
+
const incoming_insights = incoming.insights;
|
|
2513
|
+
// if at least one of these optionals is defined
|
|
2514
|
+
if (existing_insights !== undefined || incoming_insights !== undefined) {
|
|
2515
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2516
|
+
// not equal
|
|
2517
|
+
if (existing_insights === undefined || incoming_insights === undefined) {
|
|
2518
|
+
return false;
|
|
2519
|
+
}
|
|
2520
|
+
const equals_insights_items = equalsArray(existing_insights, incoming_insights, (existing_insights_item, incoming_insights_item) => {
|
|
2521
|
+
if (!(equals$6(existing_insights_item, incoming_insights_item))) {
|
|
2522
|
+
return false;
|
|
2523
|
+
}
|
|
2524
|
+
});
|
|
2525
|
+
if (equals_insights_items === false) {
|
|
2526
|
+
return false;
|
|
2527
|
+
}
|
|
2528
|
+
}
|
|
2529
|
+
const existing_overviews = existing.overviews;
|
|
2530
|
+
const incoming_overviews = incoming.overviews;
|
|
2531
|
+
// if at least one of these optionals is defined
|
|
2532
|
+
if (existing_overviews !== undefined || incoming_overviews !== undefined) {
|
|
2533
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2534
|
+
// not equal
|
|
2535
|
+
if (existing_overviews === undefined || incoming_overviews === undefined) {
|
|
2536
|
+
return false;
|
|
2537
|
+
}
|
|
2538
|
+
const equals_overviews_items = equalsArray(existing_overviews, incoming_overviews, (existing_overviews_item, incoming_overviews_item) => {
|
|
2539
|
+
if (!(equals$4(existing_overviews_item, incoming_overviews_item))) {
|
|
2540
|
+
return false;
|
|
2541
|
+
}
|
|
2542
|
+
});
|
|
2543
|
+
if (equals_overviews_items === false) {
|
|
2544
|
+
return false;
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2547
|
+
return true;
|
|
2548
|
+
}
|
|
2549
|
+
|
|
2550
|
+
const VERSION$2 = "ccf83d258110a04c1949592c91b69b3b";
|
|
2551
|
+
function validate$2(obj, path = 'InsightBundle') {
|
|
2552
|
+
const v_error = (() => {
|
|
2553
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2554
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2555
|
+
}
|
|
2556
|
+
if (obj.characterization !== undefined) {
|
|
2557
|
+
const obj_characterization = obj.characterization;
|
|
2558
|
+
const path_characterization = path + '.characterization';
|
|
2559
|
+
if (typeof obj_characterization !== 'string') {
|
|
2560
|
+
return new TypeError('Expected "string" but received "' + typeof obj_characterization + '" (at "' + path_characterization + '")');
|
|
2561
|
+
}
|
|
2562
|
+
}
|
|
2563
|
+
if (obj.hasErrors !== undefined) {
|
|
2564
|
+
const obj_hasErrors = obj.hasErrors;
|
|
2565
|
+
const path_hasErrors = path + '.hasErrors';
|
|
2566
|
+
if (typeof obj_hasErrors !== 'boolean') {
|
|
2567
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_hasErrors + '" (at "' + path_hasErrors + '")');
|
|
2568
|
+
}
|
|
2569
|
+
}
|
|
2570
|
+
if (obj.insightGroups !== undefined) {
|
|
2571
|
+
const obj_insightGroups = obj.insightGroups;
|
|
2572
|
+
const path_insightGroups = path + '.insightGroups';
|
|
2573
|
+
if (!ArrayIsArray(obj_insightGroups)) {
|
|
2574
|
+
return new TypeError('Expected "array" but received "' + typeof obj_insightGroups + '" (at "' + path_insightGroups + '")');
|
|
2575
|
+
}
|
|
2576
|
+
for (let i = 0; i < obj_insightGroups.length; i++) {
|
|
2577
|
+
const obj_insightGroups_item = obj_insightGroups[i];
|
|
2578
|
+
const path_insightGroups_item = path_insightGroups + '[' + i + ']';
|
|
2579
|
+
const referencepath_insightGroups_itemValidationError = validate$3(obj_insightGroups_item, path_insightGroups_item);
|
|
2580
|
+
if (referencepath_insightGroups_itemValidationError !== null) {
|
|
2581
|
+
let message = 'Object doesn\'t match InsightGroup (at "' + path_insightGroups_item + '")\n';
|
|
2582
|
+
message += referencepath_insightGroups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2583
|
+
return new TypeError(message);
|
|
2584
|
+
}
|
|
2585
|
+
}
|
|
2586
|
+
}
|
|
2587
|
+
})();
|
|
2588
|
+
return v_error === undefined ? null : v_error;
|
|
2589
|
+
}
|
|
2590
|
+
const select$4 = function InsightBundleSelect() {
|
|
2591
|
+
const { selections: InsightGroup__selections, opaque: InsightGroup__opaque, } = select$5();
|
|
2592
|
+
return {
|
|
2593
|
+
kind: 'Fragment',
|
|
2594
|
+
version: VERSION$2,
|
|
2595
|
+
private: [],
|
|
2596
|
+
selections: [
|
|
2597
|
+
{
|
|
2598
|
+
name: 'characterization',
|
|
2599
|
+
kind: 'Scalar',
|
|
2600
|
+
required: false
|
|
2601
|
+
},
|
|
2602
|
+
{
|
|
2603
|
+
name: 'hasErrors',
|
|
2604
|
+
kind: 'Scalar',
|
|
2605
|
+
required: false
|
|
2606
|
+
},
|
|
2607
|
+
{
|
|
2608
|
+
name: 'insightGroups',
|
|
2609
|
+
kind: 'Object',
|
|
2610
|
+
plural: true,
|
|
2611
|
+
selections: InsightGroup__selections,
|
|
2612
|
+
required: false
|
|
2613
|
+
}
|
|
2614
|
+
]
|
|
2615
|
+
};
|
|
2616
|
+
};
|
|
2617
|
+
function equals$2(existing, incoming) {
|
|
2618
|
+
const existing_hasErrors = existing.hasErrors;
|
|
2619
|
+
const incoming_hasErrors = incoming.hasErrors;
|
|
2620
|
+
// if at least one of these optionals is defined
|
|
2621
|
+
if (existing_hasErrors !== undefined || incoming_hasErrors !== undefined) {
|
|
2622
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2623
|
+
// not equal
|
|
2624
|
+
if (existing_hasErrors === undefined || incoming_hasErrors === undefined) {
|
|
2625
|
+
return false;
|
|
2626
|
+
}
|
|
2627
|
+
if (!(existing_hasErrors === incoming_hasErrors)) {
|
|
2628
|
+
return false;
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2631
|
+
const existing_characterization = existing.characterization;
|
|
2632
|
+
const incoming_characterization = incoming.characterization;
|
|
2633
|
+
// if at least one of these optionals is defined
|
|
2634
|
+
if (existing_characterization !== undefined || incoming_characterization !== undefined) {
|
|
2635
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2636
|
+
// not equal
|
|
2637
|
+
if (existing_characterization === undefined || incoming_characterization === undefined) {
|
|
2638
|
+
return false;
|
|
2639
|
+
}
|
|
2640
|
+
if (!(existing_characterization === incoming_characterization)) {
|
|
2641
|
+
return false;
|
|
2642
|
+
}
|
|
2643
|
+
}
|
|
2644
|
+
const existing_insightGroups = existing.insightGroups;
|
|
2645
|
+
const incoming_insightGroups = incoming.insightGroups;
|
|
2646
|
+
// if at least one of these optionals is defined
|
|
2647
|
+
if (existing_insightGroups !== undefined || incoming_insightGroups !== undefined) {
|
|
2648
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2649
|
+
// not equal
|
|
2650
|
+
if (existing_insightGroups === undefined || incoming_insightGroups === undefined) {
|
|
2651
|
+
return false;
|
|
2652
|
+
}
|
|
2653
|
+
const equals_insightGroups_items = equalsArray(existing_insightGroups, incoming_insightGroups, (existing_insightGroups_item, incoming_insightGroups_item) => {
|
|
2654
|
+
if (!(equals$3(existing_insightGroups_item, incoming_insightGroups_item))) {
|
|
2655
|
+
return false;
|
|
2656
|
+
}
|
|
2657
|
+
});
|
|
2658
|
+
if (equals_insightGroups_items === false) {
|
|
1538
2659
|
return false;
|
|
1539
2660
|
}
|
|
1540
2661
|
}
|
|
1541
2662
|
return true;
|
|
1542
2663
|
}
|
|
1543
2664
|
|
|
1544
|
-
const VERSION$1 = "
|
|
2665
|
+
const VERSION$1 = "2f50f3271c566971f91d15a361482b6c";
|
|
1545
2666
|
function validate$1(obj, path = 'GenerateInsightBundleResponse') {
|
|
1546
2667
|
const v_error = (() => {
|
|
1547
2668
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1550,7 +2671,7 @@ function validate$1(obj, path = 'GenerateInsightBundleResponse') {
|
|
|
1550
2671
|
if (obj.error !== undefined) {
|
|
1551
2672
|
const obj_error = obj.error;
|
|
1552
2673
|
const path_error = path + '.error';
|
|
1553
|
-
const referencepath_errorValidationError = validate$
|
|
2674
|
+
const referencepath_errorValidationError = validate$e(obj_error, path_error);
|
|
1554
2675
|
if (referencepath_errorValidationError !== null) {
|
|
1555
2676
|
let message = 'Object doesn\'t match Error (at "' + path_error + '")\n';
|
|
1556
2677
|
message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1560,8 +2681,11 @@ function validate$1(obj, path = 'GenerateInsightBundleResponse') {
|
|
|
1560
2681
|
if (obj.result !== undefined) {
|
|
1561
2682
|
const obj_result = obj.result;
|
|
1562
2683
|
const path_result = path + '.result';
|
|
1563
|
-
|
|
1564
|
-
|
|
2684
|
+
const referencepath_resultValidationError = validate$2(obj_result, path_result);
|
|
2685
|
+
if (referencepath_resultValidationError !== null) {
|
|
2686
|
+
let message = 'Object doesn\'t match InsightBundle (at "' + path_result + '")\n';
|
|
2687
|
+
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2688
|
+
return new TypeError(message);
|
|
1565
2689
|
}
|
|
1566
2690
|
}
|
|
1567
2691
|
const obj_sdm = obj.sdm;
|
|
@@ -1591,7 +2715,8 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
1591
2715
|
return input;
|
|
1592
2716
|
}
|
|
1593
2717
|
const select$3 = function GenerateInsightBundleResponseSelect() {
|
|
1594
|
-
const { selections: Error__selections, opaque: Error__opaque, } = select$
|
|
2718
|
+
const { selections: Error__selections, opaque: Error__opaque, } = select$i();
|
|
2719
|
+
const { selections: InsightBundle__selections, opaque: InsightBundle__opaque, } = select$4();
|
|
1595
2720
|
return {
|
|
1596
2721
|
kind: 'Fragment',
|
|
1597
2722
|
version: VERSION$1,
|
|
@@ -1606,7 +2731,8 @@ const select$3 = function GenerateInsightBundleResponseSelect() {
|
|
|
1606
2731
|
{
|
|
1607
2732
|
name: 'result',
|
|
1608
2733
|
kind: 'Object',
|
|
1609
|
-
|
|
2734
|
+
selections: InsightBundle__selections,
|
|
2735
|
+
required: false
|
|
1610
2736
|
},
|
|
1611
2737
|
{
|
|
1612
2738
|
name: 'sdm',
|
|
@@ -1639,7 +2765,7 @@ function equals$1(existing, incoming) {
|
|
|
1639
2765
|
if (existing_error === undefined || incoming_error === undefined) {
|
|
1640
2766
|
return false;
|
|
1641
2767
|
}
|
|
1642
|
-
if (!(equals$
|
|
2768
|
+
if (!(equals$e(existing_error, incoming_error))) {
|
|
1643
2769
|
return false;
|
|
1644
2770
|
}
|
|
1645
2771
|
}
|
|
@@ -1652,7 +2778,7 @@ function equals$1(existing, incoming) {
|
|
|
1652
2778
|
if (existing_result === undefined || incoming_result === undefined) {
|
|
1653
2779
|
return false;
|
|
1654
2780
|
}
|
|
1655
|
-
if (
|
|
2781
|
+
if (!(equals$2(existing_result, incoming_result))) {
|
|
1656
2782
|
return false;
|
|
1657
2783
|
}
|
|
1658
2784
|
}
|
|
@@ -1730,9 +2856,15 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
1730
2856
|
const config = {};
|
|
1731
2857
|
typeCheckConfig$4(untrustedConfig, config, generateInsights_ConfigPropertyMetadata);
|
|
1732
2858
|
const untrustedConfig_input = untrustedConfig.input;
|
|
1733
|
-
|
|
2859
|
+
const referenceInsightBundleInputValidationError = validate$k(untrustedConfig_input);
|
|
2860
|
+
if (referenceInsightBundleInputValidationError === null) {
|
|
2861
|
+
config.input = untrustedConfig_input;
|
|
2862
|
+
}
|
|
1734
2863
|
const untrustedConfig_options = untrustedConfig.options;
|
|
1735
|
-
|
|
2864
|
+
const referenceInsightBundleOptionsValidationError = validate$h(untrustedConfig_options);
|
|
2865
|
+
if (referenceInsightBundleOptionsValidationError === null) {
|
|
2866
|
+
config.options = untrustedConfig_options;
|
|
2867
|
+
}
|
|
1736
2868
|
return config;
|
|
1737
2869
|
}
|
|
1738
2870
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -1777,7 +2909,7 @@ const generateInsightsAdapterFactory = (luvio) => {
|
|
|
1777
2909
|
};
|
|
1778
2910
|
};
|
|
1779
2911
|
|
|
1780
|
-
const VERSION = "
|
|
2912
|
+
const VERSION = "b3ecf416df1c88948a22534e1143e6d5";
|
|
1781
2913
|
function validate(obj, path = 'GetInsightBatchResponse') {
|
|
1782
2914
|
const v_error = (() => {
|
|
1783
2915
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1819,8 +2951,11 @@ function validate(obj, path = 'GetInsightBatchResponse') {
|
|
|
1819
2951
|
if (obj.summary !== undefined) {
|
|
1820
2952
|
const obj_summary = obj.summary;
|
|
1821
2953
|
const path_summary = path + '.summary';
|
|
1822
|
-
|
|
1823
|
-
|
|
2954
|
+
const referencepath_summaryValidationError = validate$c(obj_summary, path_summary);
|
|
2955
|
+
if (referencepath_summaryValidationError !== null) {
|
|
2956
|
+
let message = 'Object doesn\'t match SummaryResponse (at "' + path_summary + '")\n';
|
|
2957
|
+
message += referencepath_summaryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2958
|
+
return new TypeError(message);
|
|
1824
2959
|
}
|
|
1825
2960
|
}
|
|
1826
2961
|
})();
|
|
@@ -1858,6 +2993,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
1858
2993
|
return input;
|
|
1859
2994
|
}
|
|
1860
2995
|
const select$1 = function GetInsightBatchResponseSelect() {
|
|
2996
|
+
const { selections: SummaryResponse__selections, opaque: SummaryResponse__opaque, } = select$g();
|
|
1861
2997
|
return {
|
|
1862
2998
|
kind: 'Fragment',
|
|
1863
2999
|
version: VERSION,
|
|
@@ -1887,7 +3023,8 @@ const select$1 = function GetInsightBatchResponseSelect() {
|
|
|
1887
3023
|
{
|
|
1888
3024
|
name: 'summary',
|
|
1889
3025
|
kind: 'Object',
|
|
1890
|
-
|
|
3026
|
+
selections: SummaryResponse__selections,
|
|
3027
|
+
required: false
|
|
1891
3028
|
}
|
|
1892
3029
|
]
|
|
1893
3030
|
};
|
|
@@ -1951,7 +3088,7 @@ function equals(existing, incoming) {
|
|
|
1951
3088
|
if (existing_summary === undefined || incoming_summary === undefined) {
|
|
1952
3089
|
return false;
|
|
1953
3090
|
}
|
|
1954
|
-
if (
|
|
3091
|
+
if (!(equals$c(existing_summary, incoming_summary))) {
|
|
1955
3092
|
return false;
|
|
1956
3093
|
}
|
|
1957
3094
|
}
|