@salesforce/lds-adapters-sfap-analytics-insights 1.309.0-dev12 → 1.309.0-dev14

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.
Files changed (24) hide show
  1. package/dist/es/es2018/sfap-analytics-insights.js +1355 -198
  2. package/dist/es/es2018/types/src/generated/adapters/createInsightsBatch.d.ts +2 -1
  3. package/dist/es/es2018/types/src/generated/adapters/generateInsights.d.ts +4 -2
  4. package/dist/es/es2018/types/src/generated/adapters/getMetricFilterValues.d.ts +2 -1
  5. package/dist/es/es2018/types/src/generated/resources/postAnalyticsInsightsV1Batches.d.ts +2 -1
  6. package/dist/es/es2018/types/src/generated/resources/postAnalyticsInsightsV1FilterValues.d.ts +2 -1
  7. package/dist/es/es2018/types/src/generated/resources/postAnalyticsInsightsV1GenerateBundle.d.ts +4 -2
  8. package/dist/es/es2018/types/src/generated/types/BatchOptions.d.ts +7 -5
  9. package/dist/es/es2018/types/src/generated/types/Filter.d.ts +11 -9
  10. package/dist/es/es2018/types/src/generated/types/GenerateInsightBatchRequest.d.ts +4 -3
  11. package/dist/es/es2018/types/src/generated/types/GenerateInsightBatchResponse.d.ts +4 -3
  12. package/dist/es/es2018/types/src/generated/types/GenerateInsightBundleRequest.d.ts +7 -7
  13. package/dist/es/es2018/types/src/generated/types/GenerateInsightBundleResponse.d.ts +4 -3
  14. package/dist/es/es2018/types/src/generated/types/GetFilterValuesRequest.d.ts +4 -3
  15. package/dist/es/es2018/types/src/generated/types/GetInsightBatchResponse.d.ts +4 -3
  16. package/dist/es/es2018/types/src/generated/types/Insight.d.ts +5 -8
  17. package/dist/es/es2018/types/src/generated/types/MeasurementPeriod.d.ts +7 -9
  18. package/dist/es/es2018/types/src/generated/types/MetricDefinition.d.ts +4 -4
  19. package/dist/es/es2018/types/src/generated/types/MetricInstance.d.ts +3 -3
  20. package/dist/es/es2018/types/src/generated/types/Overview.d.ts +3 -6
  21. package/dist/es/es2018/types/src/generated/types/Summary.d.ts +9 -9
  22. package/package.json +3 -3
  23. package/sfdc/index.js +1466 -309
  24. package/src/raml/api.raml +34 -56
@@ -92,7 +92,7 @@ function createLink(ref) {
92
92
  };
93
93
  }
94
94
 
95
- function validate$u(obj, path = 'MetricMetadata') {
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$t(obj, path = 'ExtensionOptions') {
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$s(obj, path = 'InsightsOptions_InsightSetting') {
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$r(obj, path = 'InsightsOptions') {
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$s(obj_settings_item, path_settings_item);
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$q(obj, path = 'CategoricalFilterOptions') {
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$p(obj, path = 'FieldId') {
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$o(obj, path = 'RangeFilterOptions') {
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$n(obj, path = 'RelativeDate') {
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$m(obj, path = 'RelativeDateFilterOptions') {
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$n(obj_max, path_max);
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$n(obj_min, path_min);
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,42 +367,60 @@ function validate$m(obj, path = 'RelativeDateFilterOptions') {
367
367
  return v_error === undefined ? null : v_error;
368
368
  }
369
369
 
370
- function validate$l(obj, path = 'Filter') {
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
- const obj_categoricalFilterOptions = obj.categoricalFilterOptions;
376
- const path_categoricalFilterOptions = path + '.categoricalFilterOptions';
377
- const referencepath_categoricalFilterOptionsValidationError = validate$q(obj_categoricalFilterOptions, path_categoricalFilterOptions);
378
- if (referencepath_categoricalFilterOptionsValidationError !== null) {
379
- let message = 'Object doesn\'t match CategoricalFilterOptions (at "' + path_categoricalFilterOptions + '")\n';
380
- message += referencepath_categoricalFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
381
- return new TypeError(message);
375
+ if (obj.categoricalFilterOptions !== undefined) {
376
+ const obj_categoricalFilterOptions = obj.categoricalFilterOptions;
377
+ const path_categoricalFilterOptions = path + '.categoricalFilterOptions';
378
+ const referencepath_categoricalFilterOptionsValidationError = validate$D(obj_categoricalFilterOptions, path_categoricalFilterOptions);
379
+ if (referencepath_categoricalFilterOptionsValidationError !== null) {
380
+ let message = 'Object doesn\'t match CategoricalFilterOptions (at "' + path_categoricalFilterOptions + '")\n';
381
+ message += referencepath_categoricalFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
382
+ return new TypeError(message);
383
+ }
382
384
  }
383
- const obj_field = obj.field;
384
- const path_field = path + '.field';
385
- const referencepath_fieldValidationError = validate$p(obj_field, path_field);
386
- if (referencepath_fieldValidationError !== null) {
387
- let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
388
- message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
389
- return new TypeError(message);
385
+ if (obj.field !== undefined) {
386
+ const obj_field = obj.field;
387
+ const path_field = path + '.field';
388
+ const referencepath_fieldValidationError = validate$C(obj_field, path_field);
389
+ if (referencepath_fieldValidationError !== null) {
390
+ let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
391
+ message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
392
+ return new TypeError(message);
393
+ }
390
394
  }
391
- const obj_rangeFilterOptions = obj.rangeFilterOptions;
392
- const path_rangeFilterOptions = path + '.rangeFilterOptions';
393
- const referencepath_rangeFilterOptionsValidationError = validate$o(obj_rangeFilterOptions, path_rangeFilterOptions);
394
- if (referencepath_rangeFilterOptionsValidationError !== null) {
395
- let message = 'Object doesn\'t match RangeFilterOptions (at "' + path_rangeFilterOptions + '")\n';
396
- message += referencepath_rangeFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
397
- return new TypeError(message);
395
+ if (obj.fieldId !== undefined) {
396
+ const obj_fieldId = obj.fieldId;
397
+ const path_fieldId = path + '.fieldId';
398
+ const referencepath_fieldIdValidationError = validate$C(obj_fieldId, path_fieldId);
399
+ if (referencepath_fieldIdValidationError !== null) {
400
+ let message = 'Object doesn\'t match FieldId (at "' + path_fieldId + '")\n';
401
+ message += referencepath_fieldIdValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
402
+ return new TypeError(message);
403
+ }
398
404
  }
399
- const obj_relativeDateFilterOptions = obj.relativeDateFilterOptions;
400
- const path_relativeDateFilterOptions = path + '.relativeDateFilterOptions';
401
- const referencepath_relativeDateFilterOptionsValidationError = validate$m(obj_relativeDateFilterOptions, path_relativeDateFilterOptions);
402
- if (referencepath_relativeDateFilterOptionsValidationError !== null) {
403
- let message = 'Object doesn\'t match RelativeDateFilterOptions (at "' + path_relativeDateFilterOptions + '")\n';
404
- message += referencepath_relativeDateFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
405
- return new TypeError(message);
405
+ if (obj.rangeFilterOptions !== undefined) {
406
+ const obj_rangeFilterOptions = obj.rangeFilterOptions;
407
+ const path_rangeFilterOptions = path + '.rangeFilterOptions';
408
+ const referencepath_rangeFilterOptionsValidationError = validate$B(obj_rangeFilterOptions, path_rangeFilterOptions);
409
+ if (referencepath_rangeFilterOptionsValidationError !== null) {
410
+ let message = 'Object doesn\'t match RangeFilterOptions (at "' + path_rangeFilterOptions + '")\n';
411
+ message += referencepath_rangeFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
412
+ return new TypeError(message);
413
+ }
414
+ }
415
+ if (obj.relativeDateFilterOptions !== undefined) {
416
+ const obj_relativeDateFilterOptions = obj.relativeDateFilterOptions;
417
+ const path_relativeDateFilterOptions = path + '.relativeDateFilterOptions';
418
+ const referencepath_relativeDateFilterOptionsValidationError = validate$z(obj_relativeDateFilterOptions, path_relativeDateFilterOptions);
419
+ if (referencepath_relativeDateFilterOptionsValidationError !== null) {
420
+ let message = 'Object doesn\'t match RelativeDateFilterOptions (at "' + path_relativeDateFilterOptions + '")\n';
421
+ message += referencepath_relativeDateFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
422
+ return new TypeError(message);
423
+ }
406
424
  }
407
425
  if (obj.type !== undefined) {
408
426
  const obj_type = obj.type;
@@ -415,7 +433,30 @@ function validate$l(obj, path = 'Filter') {
415
433
  return v_error === undefined ? null : v_error;
416
434
  }
417
435
 
418
- function validate$k(obj, path = 'MeasurementPeriod') {
436
+ function validate$x(obj, path = 'RelativePeriod') {
437
+ const v_error = (() => {
438
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
439
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
440
+ }
441
+ if (obj.granularity !== undefined) {
442
+ const obj_granularity = obj.granularity;
443
+ const path_granularity = path + '.granularity';
444
+ if (typeof obj_granularity !== 'string') {
445
+ return new TypeError('Expected "string" but received "' + typeof obj_granularity + '" (at "' + path_granularity + '")');
446
+ }
447
+ }
448
+ if (obj.range !== undefined) {
449
+ const obj_range = obj.range;
450
+ const path_range = path + '.range';
451
+ if (typeof obj_range !== 'string') {
452
+ return new TypeError('Expected "string" but received "' + typeof obj_range + '" (at "' + path_range + '")');
453
+ }
454
+ }
455
+ })();
456
+ return v_error === undefined ? null : v_error;
457
+ }
458
+
459
+ function validate$w(obj, path = 'MeasurementPeriod') {
419
460
  const v_error = (() => {
420
461
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
421
462
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -423,22 +464,28 @@ function validate$k(obj, path = 'MeasurementPeriod') {
423
464
  if (obj.filter !== undefined) {
424
465
  const obj_filter = obj.filter;
425
466
  const path_filter = path + '.filter';
426
- if (obj_filter === undefined) {
427
- return new TypeError('Expected "defined" but received "' + typeof obj_filter + '" (at "' + path_filter + '")');
467
+ const referencepath_filterValidationError = validate$y(obj_filter, path_filter);
468
+ if (referencepath_filterValidationError !== null) {
469
+ let message = 'Object doesn\'t match Filter (at "' + path_filter + '")\n';
470
+ message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
471
+ return new TypeError(message);
428
472
  }
429
473
  }
430
474
  if (obj.relativePeriod !== undefined) {
431
475
  const obj_relativePeriod = obj.relativePeriod;
432
476
  const path_relativePeriod = path + '.relativePeriod';
433
- if (obj_relativePeriod === undefined) {
434
- return new TypeError('Expected "defined" but received "' + typeof obj_relativePeriod + '" (at "' + path_relativePeriod + '")');
477
+ const referencepath_relativePeriodValidationError = validate$x(obj_relativePeriod, path_relativePeriod);
478
+ if (referencepath_relativePeriodValidationError !== null) {
479
+ let message = 'Object doesn\'t match RelativePeriod (at "' + path_relativePeriod + '")\n';
480
+ message += referencepath_relativePeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
481
+ return new TypeError(message);
435
482
  }
436
483
  }
437
484
  })();
438
485
  return v_error === undefined ? null : v_error;
439
486
  }
440
487
 
441
- function validate$j(obj, path = 'SemanticFilter') {
488
+ function validate$v(obj, path = 'SemanticFilter') {
442
489
  const v_error = (() => {
443
490
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
444
491
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -464,7 +511,7 @@ function validate$j(obj, path = 'SemanticFilter') {
464
511
  return v_error === undefined ? null : v_error;
465
512
  }
466
513
 
467
- function validate$i(obj, path = 'FlattenFilter') {
514
+ function validate$u(obj, path = 'FlattenFilter') {
468
515
  const v_error = (() => {
469
516
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
470
517
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -485,7 +532,7 @@ function validate$i(obj, path = 'FlattenFilter') {
485
532
  for (let i = 0; i < obj_filters.length; i++) {
486
533
  const obj_filters_item = obj_filters[i];
487
534
  const path_filters_item = path_filters + '[' + i + ']';
488
- const referencepath_filters_itemValidationError = validate$j(obj_filters_item, path_filters_item);
535
+ const referencepath_filters_itemValidationError = validate$v(obj_filters_item, path_filters_item);
489
536
  if (referencepath_filters_itemValidationError !== null) {
490
537
  let message = 'Object doesn\'t match SemanticFilter (at "' + path_filters_item + '")\n';
491
538
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -497,7 +544,7 @@ function validate$i(obj, path = 'FlattenFilter') {
497
544
  return v_error === undefined ? null : v_error;
498
545
  }
499
546
 
500
- function validate$h(obj, path = 'MetricInstance') {
547
+ function validate$t(obj, path = 'MetricInstance') {
501
548
  const v_error = (() => {
502
549
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
503
550
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -511,7 +558,7 @@ function validate$h(obj, path = 'MetricInstance') {
511
558
  for (let i = 0; i < obj_filters.length; i++) {
512
559
  const obj_filters_item = obj_filters[i];
513
560
  const path_filters_item = path_filters + '[' + i + ']';
514
- const referencepath_filters_itemValidationError = validate$l(obj_filters_item, path_filters_item);
561
+ const referencepath_filters_itemValidationError = validate$y(obj_filters_item, path_filters_item);
515
562
  if (referencepath_filters_itemValidationError !== null) {
516
563
  let message = 'Object doesn\'t match Filter (at "' + path_filters_item + '")\n';
517
564
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -521,25 +568,27 @@ function validate$h(obj, path = 'MetricInstance') {
521
568
  }
522
569
  const obj_measurementPeriod = obj.measurementPeriod;
523
570
  const path_measurementPeriod = path + '.measurementPeriod';
524
- const referencepath_measurementPeriodValidationError = validate$k(obj_measurementPeriod, path_measurementPeriod);
571
+ const referencepath_measurementPeriodValidationError = validate$w(obj_measurementPeriod, path_measurementPeriod);
525
572
  if (referencepath_measurementPeriodValidationError !== null) {
526
573
  let message = 'Object doesn\'t match MeasurementPeriod (at "' + path_measurementPeriod + '")\n';
527
574
  message += referencepath_measurementPeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
528
575
  return new TypeError(message);
529
576
  }
530
- const obj_semanticFilter = obj.semanticFilter;
531
- const path_semanticFilter = path + '.semanticFilter';
532
- const referencepath_semanticFilterValidationError = validate$i(obj_semanticFilter, path_semanticFilter);
533
- if (referencepath_semanticFilterValidationError !== null) {
534
- let message = 'Object doesn\'t match FlattenFilter (at "' + path_semanticFilter + '")\n';
535
- message += referencepath_semanticFilterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
536
- return new TypeError(message);
577
+ if (obj.semanticFilter !== undefined) {
578
+ const obj_semanticFilter = obj.semanticFilter;
579
+ const path_semanticFilter = path + '.semanticFilter';
580
+ const referencepath_semanticFilterValidationError = validate$u(obj_semanticFilter, path_semanticFilter);
581
+ if (referencepath_semanticFilterValidationError !== null) {
582
+ let message = 'Object doesn\'t match FlattenFilter (at "' + path_semanticFilter + '")\n';
583
+ message += referencepath_semanticFilterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
584
+ return new TypeError(message);
585
+ }
537
586
  }
538
587
  })();
539
588
  return v_error === undefined ? null : v_error;
540
589
  }
541
590
 
542
- function validate$g(obj, path = 'CompareConfig') {
591
+ function validate$s(obj, path = 'CompareConfig') {
543
592
  const v_error = (() => {
544
593
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
545
594
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -555,7 +604,7 @@ function validate$g(obj, path = 'CompareConfig') {
555
604
  return v_error === undefined ? null : v_error;
556
605
  }
557
606
 
558
- function validate$f(obj, path = 'Measure') {
607
+ function validate$r(obj, path = 'Measure') {
559
608
  const v_error = (() => {
560
609
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
561
610
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -569,7 +618,7 @@ function validate$f(obj, path = 'Measure') {
569
618
  }
570
619
  const obj_field = obj.field;
571
620
  const path_field = path + '.field';
572
- const referencepath_fieldValidationError = validate$p(obj_field, path_field);
621
+ const referencepath_fieldValidationError = validate$C(obj_field, path_field);
573
622
  if (referencepath_fieldValidationError !== null) {
574
623
  let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
575
624
  message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -579,7 +628,7 @@ function validate$f(obj, path = 'Measure') {
579
628
  return v_error === undefined ? null : v_error;
580
629
  }
581
630
 
582
- function validate$e(obj, path = 'SemanticDataModel') {
631
+ function validate$q(obj, path = 'SemanticDataModel') {
583
632
  const v_error = (() => {
584
633
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
585
634
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -595,14 +644,14 @@ function validate$e(obj, path = 'SemanticDataModel') {
595
644
  return v_error === undefined ? null : v_error;
596
645
  }
597
646
 
598
- function validate$d(obj, path = 'TimeDimension') {
647
+ function validate$p(obj, path = 'TimeDimension') {
599
648
  const v_error = (() => {
600
649
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
601
650
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
602
651
  }
603
652
  const obj_field = obj.field;
604
653
  const path_field = path + '.field';
605
- const referencepath_fieldValidationError = validate$p(obj_field, path_field);
654
+ const referencepath_fieldValidationError = validate$C(obj_field, path_field);
606
655
  if (referencepath_fieldValidationError !== null) {
607
656
  let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
608
657
  message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -612,14 +661,14 @@ function validate$d(obj, path = 'TimeDimension') {
612
661
  return v_error === undefined ? null : v_error;
613
662
  }
614
663
 
615
- function validate$c(obj, path = 'MetricDefinition') {
664
+ function validate$o(obj, path = 'MetricDefinition') {
616
665
  const v_error = (() => {
617
666
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
618
667
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
619
668
  }
620
669
  const obj_comparison = obj.comparison;
621
670
  const path_comparison = path + '.comparison';
622
- const referencepath_comparisonValidationError = validate$g(obj_comparison, path_comparison);
671
+ const referencepath_comparisonValidationError = validate$s(obj_comparison, path_comparison);
623
672
  if (referencepath_comparisonValidationError !== null) {
624
673
  let message = 'Object doesn\'t match CompareConfig (at "' + path_comparison + '")\n';
625
674
  message += referencepath_comparisonValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -634,7 +683,7 @@ function validate$c(obj, path = 'MetricDefinition') {
634
683
  for (let i = 0; i < obj_filters.length; i++) {
635
684
  const obj_filters_item = obj_filters[i];
636
685
  const path_filters_item = path_filters + '[' + i + ']';
637
- const referencepath_filters_itemValidationError = validate$l(obj_filters_item, path_filters_item);
686
+ const referencepath_filters_itemValidationError = validate$y(obj_filters_item, path_filters_item);
638
687
  if (referencepath_filters_itemValidationError !== null) {
639
688
  let message = 'Object doesn\'t match Filter (at "' + path_filters_item + '")\n';
640
689
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -644,7 +693,7 @@ function validate$c(obj, path = 'MetricDefinition') {
644
693
  }
645
694
  const obj_measure = obj.measure;
646
695
  const path_measure = path + '.measure';
647
- const referencepath_measureValidationError = validate$f(obj_measure, path_measure);
696
+ const referencepath_measureValidationError = validate$r(obj_measure, path_measure);
648
697
  if (referencepath_measureValidationError !== null) {
649
698
  let message = 'Object doesn\'t match Measure (at "' + path_measure + '")\n';
650
699
  message += referencepath_measureValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -659,7 +708,7 @@ function validate$c(obj, path = 'MetricDefinition') {
659
708
  }
660
709
  const obj_semanticDataModel = obj.semanticDataModel;
661
710
  const path_semanticDataModel = path + '.semanticDataModel';
662
- const referencepath_semanticDataModelValidationError = validate$e(obj_semanticDataModel, path_semanticDataModel);
711
+ const referencepath_semanticDataModelValidationError = validate$q(obj_semanticDataModel, path_semanticDataModel);
663
712
  if (referencepath_semanticDataModelValidationError !== null) {
664
713
  let message = 'Object doesn\'t match SemanticDataModel (at "' + path_semanticDataModel + '")\n';
665
714
  message += referencepath_semanticDataModelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -668,13 +717,16 @@ function validate$c(obj, path = 'MetricDefinition') {
668
717
  if (obj.semanticFilter !== undefined) {
669
718
  const obj_semanticFilter = obj.semanticFilter;
670
719
  const path_semanticFilter = path + '.semanticFilter';
671
- if (obj_semanticFilter === undefined) {
672
- return new TypeError('Expected "defined" but received "' + typeof obj_semanticFilter + '" (at "' + path_semanticFilter + '")');
720
+ const referencepath_semanticFilterValidationError = validate$u(obj_semanticFilter, path_semanticFilter);
721
+ if (referencepath_semanticFilterValidationError !== null) {
722
+ let message = 'Object doesn\'t match FlattenFilter (at "' + path_semanticFilter + '")\n';
723
+ message += referencepath_semanticFilterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
724
+ return new TypeError(message);
673
725
  }
674
726
  }
675
727
  const obj_timeDimension = obj.timeDimension;
676
728
  const path_timeDimension = path + '.timeDimension';
677
- const referencepath_timeDimensionValidationError = validate$d(obj_timeDimension, path_timeDimension);
729
+ const referencepath_timeDimensionValidationError = validate$p(obj_timeDimension, path_timeDimension);
678
730
  if (referencepath_timeDimensionValidationError !== null) {
679
731
  let message = 'Object doesn\'t match TimeDimension (at "' + path_timeDimension + '")\n';
680
732
  message += referencepath_timeDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -684,7 +736,7 @@ function validate$c(obj, path = 'MetricDefinition') {
684
736
  return v_error === undefined ? null : v_error;
685
737
  }
686
738
 
687
- function validate$b(obj, path = 'RepresentationOptions_NumberUnits') {
739
+ function validate$n(obj, path = 'RepresentationOptions_NumberUnits') {
688
740
  const v_error = (() => {
689
741
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
690
742
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -707,14 +759,14 @@ function validate$b(obj, path = 'RepresentationOptions_NumberUnits') {
707
759
  return v_error === undefined ? null : v_error;
708
760
  }
709
761
 
710
- function validate$a(obj, path = 'RepresentationOptions') {
762
+ function validate$m(obj, path = 'RepresentationOptions') {
711
763
  const v_error = (() => {
712
764
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
713
765
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
714
766
  }
715
767
  const obj_numberUnits = obj.numberUnits;
716
768
  const path_numberUnits = path + '.numberUnits';
717
- const referencepath_numberUnitsValidationError = validate$b(obj_numberUnits, path_numberUnits);
769
+ const referencepath_numberUnitsValidationError = validate$n(obj_numberUnits, path_numberUnits);
718
770
  if (referencepath_numberUnitsValidationError !== null) {
719
771
  let message = 'Object doesn\'t match RepresentationOptions_NumberUnits (at "' + path_numberUnits + '")\n';
720
772
  message += referencepath_numberUnitsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -738,14 +790,14 @@ function validate$a(obj, path = 'RepresentationOptions') {
738
790
  return v_error === undefined ? null : v_error;
739
791
  }
740
792
 
741
- function validate$9(obj, path = 'InputMetric') {
793
+ function validate$l(obj, path = 'InputMetric') {
742
794
  const v_error = (() => {
743
795
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
744
796
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
745
797
  }
746
798
  const obj_extensionOptions = obj.extensionOptions;
747
799
  const path_extensionOptions = path + '.extensionOptions';
748
- const referencepath_extensionOptionsValidationError = validate$t(obj_extensionOptions, path_extensionOptions);
800
+ const referencepath_extensionOptionsValidationError = validate$G(obj_extensionOptions, path_extensionOptions);
749
801
  if (referencepath_extensionOptionsValidationError !== null) {
750
802
  let message = 'Object doesn\'t match ExtensionOptions (at "' + path_extensionOptions + '")\n';
751
803
  message += referencepath_extensionOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -753,7 +805,7 @@ function validate$9(obj, path = 'InputMetric') {
753
805
  }
754
806
  const obj_insightsOptions = obj.insightsOptions;
755
807
  const path_insightsOptions = path + '.insightsOptions';
756
- const referencepath_insightsOptionsValidationError = validate$r(obj_insightsOptions, path_insightsOptions);
808
+ const referencepath_insightsOptionsValidationError = validate$E(obj_insightsOptions, path_insightsOptions);
757
809
  if (referencepath_insightsOptionsValidationError !== null) {
758
810
  let message = 'Object doesn\'t match InsightsOptions (at "' + path_insightsOptions + '")\n';
759
811
  message += referencepath_insightsOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -761,7 +813,7 @@ function validate$9(obj, path = 'InputMetric') {
761
813
  }
762
814
  const obj_instance = obj.instance;
763
815
  const path_instance = path + '.instance';
764
- const referencepath_instanceValidationError = validate$h(obj_instance, path_instance);
816
+ const referencepath_instanceValidationError = validate$t(obj_instance, path_instance);
765
817
  if (referencepath_instanceValidationError !== null) {
766
818
  let message = 'Object doesn\'t match MetricInstance (at "' + path_instance + '")\n';
767
819
  message += referencepath_instanceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -769,7 +821,7 @@ function validate$9(obj, path = 'InputMetric') {
769
821
  }
770
822
  const obj_metric = obj.metric;
771
823
  const path_metric = path + '.metric';
772
- const referencepath_metricValidationError = validate$c(obj_metric, path_metric);
824
+ const referencepath_metricValidationError = validate$o(obj_metric, path_metric);
773
825
  if (referencepath_metricValidationError !== null) {
774
826
  let message = 'Object doesn\'t match MetricDefinition (at "' + path_metric + '")\n';
775
827
  message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -777,7 +829,7 @@ function validate$9(obj, path = 'InputMetric') {
777
829
  }
778
830
  const obj_representationOptions = obj.representationOptions;
779
831
  const path_representationOptions = path + '.representationOptions';
780
- const referencepath_representationOptionsValidationError = validate$a(obj_representationOptions, path_representationOptions);
832
+ const referencepath_representationOptionsValidationError = validate$m(obj_representationOptions, path_representationOptions);
781
833
  if (referencepath_representationOptionsValidationError !== null) {
782
834
  let message = 'Object doesn\'t match RepresentationOptions (at "' + path_representationOptions + '")\n';
783
835
  message += referencepath_representationOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -787,14 +839,14 @@ function validate$9(obj, path = 'InputMetric') {
787
839
  return v_error === undefined ? null : v_error;
788
840
  }
789
841
 
790
- function validate$8(obj, path = 'InsightBundleInput') {
842
+ function validate$k(obj, path = 'InsightBundleInput') {
791
843
  const v_error = (() => {
792
844
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
793
845
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
794
846
  }
795
847
  const obj_metadata = obj.metadata;
796
848
  const path_metadata = path + '.metadata';
797
- const referencepath_metadataValidationError = validate$u(obj_metadata, path_metadata);
849
+ const referencepath_metadataValidationError = validate$H(obj_metadata, path_metadata);
798
850
  if (referencepath_metadataValidationError !== null) {
799
851
  let message = 'Object doesn\'t match MetricMetadata (at "' + path_metadata + '")\n';
800
852
  message += referencepath_metadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -802,7 +854,7 @@ function validate$8(obj, path = 'InsightBundleInput') {
802
854
  }
803
855
  const obj_metric = obj.metric;
804
856
  const path_metric = path + '.metric';
805
- const referencepath_metricValidationError = validate$9(obj_metric, path_metric);
857
+ const referencepath_metricValidationError = validate$l(obj_metric, path_metric);
806
858
  if (referencepath_metricValidationError !== null) {
807
859
  let message = 'Object doesn\'t match InputMetric (at "' + path_metric + '")\n';
808
860
  message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -812,7 +864,7 @@ function validate$8(obj, path = 'InsightBundleInput') {
812
864
  return v_error === undefined ? null : v_error;
813
865
  }
814
866
 
815
- function validate$7(obj, path = 'MetricInstanceInput') {
867
+ function validate$j(obj, path = 'MetricInstanceInput') {
816
868
  const v_error = (() => {
817
869
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
818
870
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -831,7 +883,7 @@ function validate$7(obj, path = 'MetricInstanceInput') {
831
883
  return v_error === undefined ? null : v_error;
832
884
  }
833
885
 
834
- function validate$6(obj, path = 'BatchInput') {
886
+ function validate$i(obj, path = 'BatchInput') {
835
887
  const v_error = (() => {
836
888
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
837
889
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -839,7 +891,7 @@ function validate$6(obj, path = 'BatchInput') {
839
891
  if (obj.bundleInput !== undefined) {
840
892
  const obj_bundleInput = obj.bundleInput;
841
893
  const path_bundleInput = path + '.bundleInput';
842
- const referencepath_bundleInputValidationError = validate$8(obj_bundleInput, path_bundleInput);
894
+ const referencepath_bundleInputValidationError = validate$k(obj_bundleInput, path_bundleInput);
843
895
  if (referencepath_bundleInputValidationError !== null) {
844
896
  let message = 'Object doesn\'t match InsightBundleInput (at "' + path_bundleInput + '")\n';
845
897
  message += referencepath_bundleInputValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -849,7 +901,7 @@ function validate$6(obj, path = 'BatchInput') {
849
901
  if (obj.metricInstanceInput !== undefined) {
850
902
  const obj_metricInstanceInput = obj.metricInstanceInput;
851
903
  const path_metricInstanceInput = path + '.metricInstanceInput';
852
- const referencepath_metricInstanceInputValidationError = validate$7(obj_metricInstanceInput, path_metricInstanceInput);
904
+ const referencepath_metricInstanceInputValidationError = validate$j(obj_metricInstanceInput, path_metricInstanceInput);
853
905
  if (referencepath_metricInstanceInputValidationError !== null) {
854
906
  let message = 'Object doesn\'t match MetricInstanceInput (at "' + path_metricInstanceInput + '")\n';
855
907
  message += referencepath_metricInstanceInputValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -860,8 +912,311 @@ function validate$6(obj, path = 'BatchInput') {
860
912
  return v_error === undefined ? null : v_error;
861
913
  }
862
914
 
863
- const VERSION$5 = "a8b8e8e21e2dc1b5b067efa90209dce3";
864
- function validate$5(obj, path = 'GenerateInsightBatchResponse') {
915
+ function validate$h(obj, path = 'InsightBundleOptions') {
916
+ const v_error = (() => {
917
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
918
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
919
+ }
920
+ if (obj.now !== undefined) {
921
+ const obj_now = obj.now;
922
+ const path_now = path + '.now';
923
+ if (typeof obj_now !== 'string') {
924
+ return new TypeError('Expected "string" but received "' + typeof obj_now + '" (at "' + path_now + '")');
925
+ }
926
+ }
927
+ if (obj.outputFormat !== undefined) {
928
+ const obj_outputFormat = obj.outputFormat;
929
+ const path_outputFormat = path + '.outputFormat';
930
+ if (typeof obj_outputFormat !== 'string') {
931
+ return new TypeError('Expected "string" but received "' + typeof obj_outputFormat + '" (at "' + path_outputFormat + '")');
932
+ }
933
+ }
934
+ if (obj.timeZone !== undefined) {
935
+ const obj_timeZone = obj.timeZone;
936
+ const path_timeZone = path + '.timeZone';
937
+ if (typeof obj_timeZone !== 'string') {
938
+ return new TypeError('Expected "string" but received "' + typeof obj_timeZone + '" (at "' + path_timeZone + '")');
939
+ }
940
+ }
941
+ })();
942
+ return v_error === undefined ? null : v_error;
943
+ }
944
+
945
+ function validate$g(obj, path = 'SummarizationOptions') {
946
+ const v_error = (() => {
947
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
948
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
949
+ }
950
+ if (obj.strategy !== undefined) {
951
+ const obj_strategy = obj.strategy;
952
+ const path_strategy = path + '.strategy';
953
+ if (typeof obj_strategy !== 'string') {
954
+ return new TypeError('Expected "string" but received "' + typeof obj_strategy + '" (at "' + path_strategy + '")');
955
+ }
956
+ }
957
+ })();
958
+ return v_error === undefined ? null : v_error;
959
+ }
960
+
961
+ function validate$f(obj, path = 'BatchOptions') {
962
+ const v_error = (() => {
963
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
964
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
965
+ }
966
+ if (obj.bundle !== undefined) {
967
+ const obj_bundle = obj.bundle;
968
+ const path_bundle = path + '.bundle';
969
+ const referencepath_bundleValidationError = validate$h(obj_bundle, path_bundle);
970
+ if (referencepath_bundleValidationError !== null) {
971
+ let message = 'Object doesn\'t match InsightBundleOptions (at "' + path_bundle + '")\n';
972
+ message += referencepath_bundleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
973
+ return new TypeError(message);
974
+ }
975
+ }
976
+ if (obj.skipCache !== undefined) {
977
+ const obj_skipCache = obj.skipCache;
978
+ const path_skipCache = path + '.skipCache';
979
+ if (typeof obj_skipCache !== 'boolean') {
980
+ return new TypeError('Expected "boolean" but received "' + typeof obj_skipCache + '" (at "' + path_skipCache + '")');
981
+ }
982
+ }
983
+ if (obj.summarization !== undefined) {
984
+ const obj_summarization = obj.summarization;
985
+ const path_summarization = path + '.summarization';
986
+ const referencepath_summarizationValidationError = validate$g(obj_summarization, path_summarization);
987
+ if (referencepath_summarizationValidationError !== null) {
988
+ let message = 'Object doesn\'t match SummarizationOptions (at "' + path_summarization + '")\n';
989
+ message += referencepath_summarizationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
990
+ return new TypeError(message);
991
+ }
992
+ }
993
+ })();
994
+ return v_error === undefined ? null : v_error;
995
+ }
996
+
997
+ const VERSION$e = "07a8c889542dbad6f958515513d4e3fb";
998
+ function validate$e(obj, path = 'Error') {
999
+ const v_error = (() => {
1000
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1001
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1002
+ }
1003
+ if (obj.code !== undefined) {
1004
+ const obj_code = obj.code;
1005
+ const path_code = path + '.code';
1006
+ if (typeof obj_code !== 'string') {
1007
+ return new TypeError('Expected "string" but received "' + typeof obj_code + '" (at "' + path_code + '")');
1008
+ }
1009
+ }
1010
+ if (obj.message !== undefined) {
1011
+ const obj_message = obj.message;
1012
+ const path_message = path + '.message';
1013
+ if (typeof obj_message !== 'string') {
1014
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
1015
+ }
1016
+ }
1017
+ })();
1018
+ return v_error === undefined ? null : v_error;
1019
+ }
1020
+ const select$i = function ErrorSelect() {
1021
+ return {
1022
+ kind: 'Fragment',
1023
+ version: VERSION$e,
1024
+ private: [],
1025
+ selections: [
1026
+ {
1027
+ name: 'code',
1028
+ kind: 'Scalar',
1029
+ required: false
1030
+ },
1031
+ {
1032
+ name: 'message',
1033
+ kind: 'Scalar',
1034
+ required: false
1035
+ }
1036
+ ]
1037
+ };
1038
+ };
1039
+ function equals$e(existing, incoming) {
1040
+ const existing_code = existing.code;
1041
+ const incoming_code = incoming.code;
1042
+ // if at least one of these optionals is defined
1043
+ if (existing_code !== undefined || incoming_code !== undefined) {
1044
+ // if one of these is not defined we know the other is defined and therefore
1045
+ // not equal
1046
+ if (existing_code === undefined || incoming_code === undefined) {
1047
+ return false;
1048
+ }
1049
+ if (!(existing_code === incoming_code)) {
1050
+ return false;
1051
+ }
1052
+ }
1053
+ const existing_message = existing.message;
1054
+ const incoming_message = incoming.message;
1055
+ // if at least one of these optionals is defined
1056
+ if (existing_message !== undefined || incoming_message !== undefined) {
1057
+ // if one of these is not defined we know the other is defined and therefore
1058
+ // not equal
1059
+ if (existing_message === undefined || incoming_message === undefined) {
1060
+ return false;
1061
+ }
1062
+ if (!(existing_message === incoming_message)) {
1063
+ return false;
1064
+ }
1065
+ }
1066
+ return true;
1067
+ }
1068
+
1069
+ const VERSION$d = "c4ce5385f4ed571b518d799c4e627709";
1070
+ function validate$d(obj, path = 'Summary') {
1071
+ const v_error = (() => {
1072
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1073
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1074
+ }
1075
+ const obj_generationId = obj.generationId;
1076
+ const path_generationId = path + '.generationId';
1077
+ if (typeof obj_generationId !== 'string') {
1078
+ return new TypeError('Expected "string" but received "' + typeof obj_generationId + '" (at "' + path_generationId + '")');
1079
+ }
1080
+ const obj_markup = obj.markup;
1081
+ const path_markup = path + '.markup';
1082
+ if (typeof obj_markup !== 'string') {
1083
+ return new TypeError('Expected "string" but received "' + typeof obj_markup + '" (at "' + path_markup + '")');
1084
+ }
1085
+ const obj_strategy = obj.strategy;
1086
+ const path_strategy = path + '.strategy';
1087
+ if (typeof obj_strategy !== 'string') {
1088
+ return new TypeError('Expected "string" but received "' + typeof obj_strategy + '" (at "' + path_strategy + '")');
1089
+ }
1090
+ const obj_timestamp = obj.timestamp;
1091
+ const path_timestamp = path + '.timestamp';
1092
+ if (typeof obj_timestamp !== 'string') {
1093
+ return new TypeError('Expected "string" but received "' + typeof obj_timestamp + '" (at "' + path_timestamp + '")');
1094
+ }
1095
+ })();
1096
+ return v_error === undefined ? null : v_error;
1097
+ }
1098
+ const select$h = function SummarySelect() {
1099
+ return {
1100
+ kind: 'Fragment',
1101
+ version: VERSION$d,
1102
+ private: [],
1103
+ selections: [
1104
+ {
1105
+ name: 'generationId',
1106
+ kind: 'Scalar'
1107
+ },
1108
+ {
1109
+ name: 'markup',
1110
+ kind: 'Scalar'
1111
+ },
1112
+ {
1113
+ name: 'strategy',
1114
+ kind: 'Scalar'
1115
+ },
1116
+ {
1117
+ name: 'timestamp',
1118
+ kind: 'Scalar'
1119
+ }
1120
+ ]
1121
+ };
1122
+ };
1123
+ function equals$d(existing, incoming) {
1124
+ const existing_generationId = existing.generationId;
1125
+ const incoming_generationId = incoming.generationId;
1126
+ if (!(existing_generationId === incoming_generationId)) {
1127
+ return false;
1128
+ }
1129
+ const existing_markup = existing.markup;
1130
+ const incoming_markup = incoming.markup;
1131
+ if (!(existing_markup === incoming_markup)) {
1132
+ return false;
1133
+ }
1134
+ const existing_strategy = existing.strategy;
1135
+ const incoming_strategy = incoming.strategy;
1136
+ if (!(existing_strategy === incoming_strategy)) {
1137
+ return false;
1138
+ }
1139
+ const existing_timestamp = existing.timestamp;
1140
+ const incoming_timestamp = incoming.timestamp;
1141
+ if (!(existing_timestamp === incoming_timestamp)) {
1142
+ return false;
1143
+ }
1144
+ return true;
1145
+ }
1146
+
1147
+ const VERSION$c = "fc433e1c68019470090193fa4fdf976f";
1148
+ function validate$c(obj, path = 'SummaryResponse') {
1149
+ const v_error = (() => {
1150
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1151
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1152
+ }
1153
+ if (obj.error !== undefined) {
1154
+ const obj_error = obj.error;
1155
+ const path_error = path + '.error';
1156
+ const referencepath_errorValidationError = validate$e(obj_error, path_error);
1157
+ if (referencepath_errorValidationError !== null) {
1158
+ let message = 'Object doesn\'t match Error (at "' + path_error + '")\n';
1159
+ message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1160
+ return new TypeError(message);
1161
+ }
1162
+ }
1163
+ const obj_result = obj.result;
1164
+ const path_result = path + '.result';
1165
+ const referencepath_resultValidationError = validate$d(obj_result, path_result);
1166
+ if (referencepath_resultValidationError !== null) {
1167
+ let message = 'Object doesn\'t match Summary (at "' + path_result + '")\n';
1168
+ message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1169
+ return new TypeError(message);
1170
+ }
1171
+ })();
1172
+ return v_error === undefined ? null : v_error;
1173
+ }
1174
+ const select$g = function SummaryResponseSelect() {
1175
+ const { selections: Error__selections, opaque: Error__opaque, } = select$i();
1176
+ const { selections: Summary__selections, opaque: Summary__opaque, } = select$h();
1177
+ return {
1178
+ kind: 'Fragment',
1179
+ version: VERSION$c,
1180
+ private: [],
1181
+ selections: [
1182
+ {
1183
+ name: 'error',
1184
+ kind: 'Object',
1185
+ selections: Error__selections,
1186
+ required: false
1187
+ },
1188
+ {
1189
+ name: 'result',
1190
+ kind: 'Object',
1191
+ selections: Summary__selections
1192
+ }
1193
+ ]
1194
+ };
1195
+ };
1196
+ function equals$c(existing, incoming) {
1197
+ const existing_error = existing.error;
1198
+ const incoming_error = incoming.error;
1199
+ // if at least one of these optionals is defined
1200
+ if (existing_error !== undefined || incoming_error !== undefined) {
1201
+ // if one of these is not defined we know the other is defined and therefore
1202
+ // not equal
1203
+ if (existing_error === undefined || incoming_error === undefined) {
1204
+ return false;
1205
+ }
1206
+ if (!(equals$e(existing_error, incoming_error))) {
1207
+ return false;
1208
+ }
1209
+ }
1210
+ const existing_result = existing.result;
1211
+ const incoming_result = incoming.result;
1212
+ if (!(equals$d(existing_result, incoming_result))) {
1213
+ return false;
1214
+ }
1215
+ return true;
1216
+ }
1217
+
1218
+ const VERSION$b = "18d65084646c870abf335d268675999e";
1219
+ function validate$b(obj, path = 'GenerateInsightBatchResponse') {
865
1220
  const v_error = (() => {
866
1221
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
867
1222
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -881,8 +1236,11 @@ function validate$5(obj, path = 'GenerateInsightBatchResponse') {
881
1236
  if (obj.summary !== undefined) {
882
1237
  const obj_summary = obj.summary;
883
1238
  const path_summary = path + '.summary';
884
- if (obj_summary === undefined) {
885
- return new TypeError('Expected "defined" but received "' + typeof obj_summary + '" (at "' + path_summary + '")');
1239
+ const referencepath_summaryValidationError = validate$c(obj_summary, path_summary);
1240
+ if (referencepath_summaryValidationError !== null) {
1241
+ let message = 'Object doesn\'t match SummaryResponse (at "' + path_summary + '")\n';
1242
+ message += referencepath_summaryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1243
+ return new TypeError(message);
886
1244
  }
887
1245
  }
888
1246
  if (obj.timestamp !== undefined) {
@@ -908,10 +1266,11 @@ function keyBuilderFromType$3(luvio, object) {
908
1266
  function normalize$3(input, existing, path, luvio, store, timestamp) {
909
1267
  return input;
910
1268
  }
911
- const select$9 = function GenerateInsightBatchResponseSelect() {
1269
+ const select$f = function GenerateInsightBatchResponseSelect() {
1270
+ const { selections: SummaryResponse__selections, opaque: SummaryResponse__opaque, } = select$g();
912
1271
  return {
913
1272
  kind: 'Fragment',
914
- version: VERSION$5,
1273
+ version: VERSION$b,
915
1274
  private: [],
916
1275
  selections: [
917
1276
  {
@@ -926,7 +1285,8 @@ const select$9 = function GenerateInsightBatchResponseSelect() {
926
1285
  {
927
1286
  name: 'summary',
928
1287
  kind: 'Object',
929
- // any
1288
+ selections: SummaryResponse__selections,
1289
+ required: false
930
1290
  },
931
1291
  {
932
1292
  name: 'timestamp',
@@ -936,7 +1296,7 @@ const select$9 = function GenerateInsightBatchResponseSelect() {
936
1296
  ]
937
1297
  };
938
1298
  };
939
- function equals$5(existing, incoming) {
1299
+ function equals$b(existing, incoming) {
940
1300
  const existing_generatingSummary = existing.generatingSummary;
941
1301
  const incoming_generatingSummary = incoming.generatingSummary;
942
1302
  // if at least one of these optionals is defined
@@ -977,7 +1337,7 @@ function equals$5(existing, incoming) {
977
1337
  if (existing_summary === undefined || incoming_summary === undefined) {
978
1338
  return false;
979
1339
  }
980
- if (JSONStringify(incoming_summary) !== JSONStringify(existing_summary)) {
1340
+ if (!(equals$c(existing_summary, incoming_summary))) {
981
1341
  return false;
982
1342
  }
983
1343
  }
@@ -985,14 +1345,14 @@ function equals$5(existing, incoming) {
985
1345
  }
986
1346
  const ingest$3 = function GenerateInsightBatchResponseIngest(input, path, luvio, store, timestamp) {
987
1347
  if (process.env.NODE_ENV !== 'production') {
988
- const validateError = validate$5(input);
1348
+ const validateError = validate$b(input);
989
1349
  if (validateError !== null) {
990
1350
  throw validateError;
991
1351
  }
992
1352
  }
993
1353
  const key = keyBuilderFromType$3(luvio, input);
994
1354
  const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
995
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "analytics-insights", VERSION$5, RepresentationType$3, equals$5);
1355
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "analytics-insights", VERSION$b, RepresentationType$3, equals$b);
996
1356
  return createLink(key);
997
1357
  };
998
1358
  function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
@@ -1005,8 +1365,8 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1005
1365
  });
1006
1366
  }
1007
1367
 
1008
- function select$8(luvio, params) {
1009
- return select$9();
1368
+ function select$e(luvio, params) {
1369
+ return select$f();
1010
1370
  }
1011
1371
  function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
1012
1372
  getTypeCacheKeys$3(storeKeyMap, luvio, response);
@@ -1017,7 +1377,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
1017
1377
  luvio.storeIngest(key, ingest$3, body);
1018
1378
  const snapshot = luvio.storeLookup({
1019
1379
  recordId: key,
1020
- node: select$8(),
1380
+ node: select$e(),
1021
1381
  variables: {},
1022
1382
  });
1023
1383
  if (process.env.NODE_ENV !== 'production') {
@@ -1056,7 +1416,7 @@ function typeCheckConfig$3(untrustedConfig) {
1056
1416
  const untrustedConfig_batchInput_array = [];
1057
1417
  for (let i = 0, arrayLength = untrustedConfig_batchInput.length; i < arrayLength; i++) {
1058
1418
  const untrustedConfig_batchInput_item = untrustedConfig_batchInput[i];
1059
- const referenceBatchInputValidationError = validate$6(untrustedConfig_batchInput_item);
1419
+ const referenceBatchInputValidationError = validate$i(untrustedConfig_batchInput_item);
1060
1420
  if (referenceBatchInputValidationError === null) {
1061
1421
  untrustedConfig_batchInput_array.push(untrustedConfig_batchInput_item);
1062
1422
  }
@@ -1064,7 +1424,10 @@ function typeCheckConfig$3(untrustedConfig) {
1064
1424
  config.batchInput = untrustedConfig_batchInput_array;
1065
1425
  }
1066
1426
  const untrustedConfig_options = untrustedConfig.options;
1067
- config.options = untrustedConfig_options;
1427
+ const referenceBatchOptionsValidationError = validate$f(untrustedConfig_options);
1428
+ if (referenceBatchOptionsValidationError === null) {
1429
+ config.options = untrustedConfig_options;
1430
+ }
1068
1431
  return config;
1069
1432
  }
1070
1433
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -1109,8 +1472,8 @@ const createInsightsBatchAdapterFactory = (luvio) => {
1109
1472
  };
1110
1473
  };
1111
1474
 
1112
- const VERSION$4 = "f898ff84f82ad0ca1eca0045e17ce492";
1113
- function validate$4(obj, path = 'GetFilterValuesResponse_CategoricalValues') {
1475
+ const VERSION$a = "f898ff84f82ad0ca1eca0045e17ce492";
1476
+ function validate$a(obj, path = 'GetFilterValuesResponse_CategoricalValues') {
1114
1477
  const v_error = (() => {
1115
1478
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1116
1479
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1173,10 +1536,10 @@ function validate$4(obj, path = 'GetFilterValuesResponse_CategoricalValues') {
1173
1536
  })();
1174
1537
  return v_error === undefined ? null : v_error;
1175
1538
  }
1176
- const select$7 = function GetFilterValuesResponse_CategoricalValuesSelect() {
1539
+ const select$d = function GetFilterValuesResponse_CategoricalValuesSelect() {
1177
1540
  return {
1178
1541
  kind: 'Fragment',
1179
- version: VERSION$4,
1542
+ version: VERSION$a,
1180
1543
  private: [],
1181
1544
  selections: [
1182
1545
  {
@@ -1188,7 +1551,7 @@ const select$7 = function GetFilterValuesResponse_CategoricalValuesSelect() {
1188
1551
  ]
1189
1552
  };
1190
1553
  };
1191
- function equals$4(existing, incoming) {
1554
+ function equals$a(existing, incoming) {
1192
1555
  const existing_values = existing.values;
1193
1556
  const incoming_values = incoming.values;
1194
1557
  // if at least one of these optionals is defined
@@ -1210,15 +1573,15 @@ function equals$4(existing, incoming) {
1210
1573
  return true;
1211
1574
  }
1212
1575
 
1213
- const VERSION$3 = "2025bbf393050a10fae76d5b4d5d0f58";
1214
- function validate$3(obj, path = 'GetFilterValuesResponse') {
1576
+ const VERSION$9 = "2025bbf393050a10fae76d5b4d5d0f58";
1577
+ function validate$9(obj, path = 'GetFilterValuesResponse') {
1215
1578
  const v_error = (() => {
1216
1579
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1217
1580
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1218
1581
  }
1219
1582
  const obj_categoricalValues = obj.categoricalValues;
1220
1583
  const path_categoricalValues = path + '.categoricalValues';
1221
- const referencepath_categoricalValuesValidationError = validate$4(obj_categoricalValues, path_categoricalValues);
1584
+ const referencepath_categoricalValuesValidationError = validate$a(obj_categoricalValues, path_categoricalValues);
1222
1585
  if (referencepath_categoricalValuesValidationError !== null) {
1223
1586
  let message = 'Object doesn\'t match GetFilterValuesResponse_CategoricalValues (at "' + path_categoricalValues + '")\n';
1224
1587
  message += referencepath_categoricalValuesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1259,11 +1622,11 @@ function keyBuilderFromType$2(luvio, object) {
1259
1622
  function normalize$2(input, existing, path, luvio, store, timestamp) {
1260
1623
  return input;
1261
1624
  }
1262
- const select$6 = function GetFilterValuesResponseSelect() {
1263
- const { selections: GetFilterValuesResponse_CategoricalValues__selections, opaque: GetFilterValuesResponse_CategoricalValues__opaque, } = select$7();
1625
+ const select$c = function GetFilterValuesResponseSelect() {
1626
+ const { selections: GetFilterValuesResponse_CategoricalValues__selections, opaque: GetFilterValuesResponse_CategoricalValues__opaque, } = select$d();
1264
1627
  return {
1265
1628
  kind: 'Fragment',
1266
- version: VERSION$3,
1629
+ version: VERSION$9,
1267
1630
  private: [],
1268
1631
  selections: [
1269
1632
  {
@@ -1288,7 +1651,7 @@ const select$6 = function GetFilterValuesResponseSelect() {
1288
1651
  ]
1289
1652
  };
1290
1653
  };
1291
- function equals$3(existing, incoming) {
1654
+ function equals$9(existing, incoming) {
1292
1655
  const existing_totalAvailable = existing.totalAvailable;
1293
1656
  const incoming_totalAvailable = incoming.totalAvailable;
1294
1657
  // if at least one of these optionals is defined
@@ -1322,21 +1685,21 @@ function equals$3(existing, incoming) {
1322
1685
  }
1323
1686
  const existing_categoricalValues = existing.categoricalValues;
1324
1687
  const incoming_categoricalValues = incoming.categoricalValues;
1325
- if (!(equals$4(existing_categoricalValues, incoming_categoricalValues))) {
1688
+ if (!(equals$a(existing_categoricalValues, incoming_categoricalValues))) {
1326
1689
  return false;
1327
1690
  }
1328
1691
  return true;
1329
1692
  }
1330
1693
  const ingest$2 = function GetFilterValuesResponseIngest(input, path, luvio, store, timestamp) {
1331
1694
  if (process.env.NODE_ENV !== 'production') {
1332
- const validateError = validate$3(input);
1695
+ const validateError = validate$9(input);
1333
1696
  if (validateError !== null) {
1334
1697
  throw validateError;
1335
1698
  }
1336
1699
  }
1337
1700
  const key = keyBuilderFromType$2(luvio, input);
1338
1701
  const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
1339
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "analytics-insights", VERSION$3, RepresentationType$2, equals$3);
1702
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "analytics-insights", VERSION$9, RepresentationType$2, equals$9);
1340
1703
  return createLink(key);
1341
1704
  };
1342
1705
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
@@ -1349,8 +1712,8 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1349
1712
  });
1350
1713
  }
1351
1714
 
1352
- function select$5(luvio, params) {
1353
- return select$6();
1715
+ function select$b(luvio, params) {
1716
+ return select$c();
1354
1717
  }
1355
1718
  function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
1356
1719
  getTypeCacheKeys$2(storeKeyMap, luvio, response);
@@ -1361,7 +1724,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
1361
1724
  luvio.storeIngest(key, ingest$2, body);
1362
1725
  const snapshot = luvio.storeLookup({
1363
1726
  recordId: key,
1364
- node: select$5(),
1727
+ node: select$b(),
1365
1728
  variables: {},
1366
1729
  });
1367
1730
  if (process.env.NODE_ENV !== 'production') {
@@ -1402,12 +1765,12 @@ function typeCheckConfig$2(untrustedConfig) {
1402
1765
  const config = {};
1403
1766
  typeCheckConfig$4(untrustedConfig, config, getMetricFilterValues_ConfigPropertyMetadata);
1404
1767
  const untrustedConfig_semanticDataModel = untrustedConfig.semanticDataModel;
1405
- const referenceSemanticDataModelValidationError = validate$e(untrustedConfig_semanticDataModel);
1768
+ const referenceSemanticDataModelValidationError = validate$q(untrustedConfig_semanticDataModel);
1406
1769
  if (referenceSemanticDataModelValidationError === null) {
1407
1770
  config.semanticDataModel = untrustedConfig_semanticDataModel;
1408
1771
  }
1409
1772
  const untrustedConfig_field = untrustedConfig.field;
1410
- const referenceFieldIdValidationError = validate$p(untrustedConfig_field);
1773
+ const referenceFieldIdValidationError = validate$C(untrustedConfig_field);
1411
1774
  if (referenceFieldIdValidationError === null) {
1412
1775
  config.field = untrustedConfig_field;
1413
1776
  }
@@ -1416,7 +1779,7 @@ function typeCheckConfig$2(untrustedConfig) {
1416
1779
  const untrustedConfig_filters_array = [];
1417
1780
  for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
1418
1781
  const untrustedConfig_filters_item = untrustedConfig_filters[i];
1419
- const referenceFilterValidationError = validate$l(untrustedConfig_filters_item);
1782
+ const referenceFilterValidationError = validate$y(untrustedConfig_filters_item);
1420
1783
  if (referenceFilterValidationError === null) {
1421
1784
  untrustedConfig_filters_array.push(untrustedConfig_filters_item);
1422
1785
  }
@@ -1424,124 +1787,902 @@ function typeCheckConfig$2(untrustedConfig) {
1424
1787
  config.filters = untrustedConfig_filters_array;
1425
1788
  }
1426
1789
  const untrustedConfig_semanticFilter = untrustedConfig.semanticFilter;
1427
- config.semanticFilter = untrustedConfig_semanticFilter;
1790
+ const referenceFlattenFilterValidationError = validate$u(untrustedConfig_semanticFilter);
1791
+ if (referenceFlattenFilterValidationError === null) {
1792
+ config.semanticFilter = untrustedConfig_semanticFilter;
1793
+ }
1428
1794
  return config;
1429
1795
  }
1430
1796
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
1431
1797
  if (!untrustedIsObject(untrustedConfig)) {
1432
1798
  return null;
1433
1799
  }
1434
- if (process.env.NODE_ENV !== 'production') {
1435
- validateConfig(untrustedConfig, configPropertyNames);
1800
+ if (process.env.NODE_ENV !== 'production') {
1801
+ validateConfig(untrustedConfig, configPropertyNames);
1802
+ }
1803
+ const config = typeCheckConfig$2(untrustedConfig);
1804
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1805
+ return null;
1806
+ }
1807
+ return config;
1808
+ }
1809
+ function buildNetworkSnapshot$2(luvio, config, options) {
1810
+ const resourceParams = createResourceParams$2(config);
1811
+ const request = createResourceRequest$2(resourceParams);
1812
+ return luvio.dispatchResourceRequest(request, options)
1813
+ .then((response) => {
1814
+ return luvio.handleSuccessResponse(() => {
1815
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response);
1816
+ return luvio.storeBroadcast().then(() => snapshot);
1817
+ }, () => {
1818
+ const cache = new StoreKeyMap();
1819
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
1820
+ return cache;
1821
+ });
1822
+ }, (response) => {
1823
+ deepFreeze(response);
1824
+ throw response;
1825
+ });
1826
+ }
1827
+ const getMetricFilterValuesAdapterFactory = (luvio) => {
1828
+ return function getMetricFilterValues(untrustedConfig) {
1829
+ const config = validateAdapterConfig$2(untrustedConfig, getMetricFilterValues_ConfigPropertyNames);
1830
+ // Invalid or incomplete config
1831
+ if (config === null) {
1832
+ throw new Error('Invalid config for "getMetricFilterValues"');
1833
+ }
1834
+ return buildNetworkSnapshot$2(luvio, config);
1835
+ };
1836
+ };
1837
+
1838
+ const VERSION$8 = "6b47d2ed35a900956ff58b7d8a527e7f";
1839
+ function validate$8(obj, path = 'InsightFeedbackMetadata') {
1840
+ const v_error = (() => {
1841
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1842
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1843
+ }
1844
+ if (obj.dimensionHash !== undefined) {
1845
+ const obj_dimensionHash = obj.dimensionHash;
1846
+ const path_dimensionHash = path + '.dimensionHash';
1847
+ if (typeof obj_dimensionHash !== 'string') {
1848
+ return new TypeError('Expected "string" but received "' + typeof obj_dimensionHash + '" (at "' + path_dimensionHash + '")');
1849
+ }
1850
+ }
1851
+ if (obj.score !== undefined) {
1852
+ obj.score;
1853
+ }
1854
+ if (obj.type !== undefined) {
1855
+ const obj_type = obj.type;
1856
+ const path_type = path + '.type';
1857
+ if (typeof obj_type !== 'string') {
1858
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
1859
+ }
1860
+ }
1861
+ })();
1862
+ return v_error === undefined ? null : v_error;
1863
+ }
1864
+ const select$a = function InsightFeedbackMetadataSelect() {
1865
+ return {
1866
+ kind: 'Fragment',
1867
+ version: VERSION$8,
1868
+ private: [],
1869
+ selections: [
1870
+ {
1871
+ name: 'dimensionHash',
1872
+ kind: 'Scalar',
1873
+ required: false
1874
+ },
1875
+ {
1876
+ name: 'score',
1877
+ kind: 'Scalar',
1878
+ required: false
1879
+ },
1880
+ {
1881
+ name: 'type',
1882
+ kind: 'Scalar',
1883
+ required: false
1884
+ }
1885
+ ]
1886
+ };
1887
+ };
1888
+ function equals$8(existing, incoming) {
1889
+ const existing_dimensionHash = existing.dimensionHash;
1890
+ const incoming_dimensionHash = incoming.dimensionHash;
1891
+ // if at least one of these optionals is defined
1892
+ if (existing_dimensionHash !== undefined || incoming_dimensionHash !== undefined) {
1893
+ // if one of these is not defined we know the other is defined and therefore
1894
+ // not equal
1895
+ if (existing_dimensionHash === undefined || incoming_dimensionHash === undefined) {
1896
+ return false;
1897
+ }
1898
+ if (!(existing_dimensionHash === incoming_dimensionHash)) {
1899
+ return false;
1900
+ }
1901
+ }
1902
+ const existing_type = existing.type;
1903
+ const incoming_type = incoming.type;
1904
+ // if at least one of these optionals is defined
1905
+ if (existing_type !== undefined || incoming_type !== undefined) {
1906
+ // if one of these is not defined we know the other is defined and therefore
1907
+ // not equal
1908
+ if (existing_type === undefined || incoming_type === undefined) {
1909
+ return false;
1910
+ }
1911
+ if (!(existing_type === incoming_type)) {
1912
+ return false;
1913
+ }
1914
+ }
1915
+ const existing_score = existing.score;
1916
+ const incoming_score = incoming.score;
1917
+ // if at least one of these optionals is defined
1918
+ if (existing_score !== undefined || incoming_score !== undefined) {
1919
+ // if one of these is not defined we know the other is defined and therefore
1920
+ // not equal
1921
+ if (existing_score === undefined || incoming_score === undefined) {
1922
+ return false;
1923
+ }
1924
+ if (!(existing_score === incoming_score)) {
1925
+ return false;
1926
+ }
1927
+ }
1928
+ return true;
1929
+ }
1930
+
1931
+ const VERSION$7 = "be7014b0043386672b06a22807d7e549";
1932
+ function validate$7(obj, path = 'Insight') {
1933
+ const v_error = (() => {
1934
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1935
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1936
+ }
1937
+ if (obj.characterization !== undefined) {
1938
+ const obj_characterization = obj.characterization;
1939
+ const path_characterization = path + '.characterization';
1940
+ if (typeof obj_characterization !== 'string') {
1941
+ return new TypeError('Expected "string" but received "' + typeof obj_characterization + '" (at "' + path_characterization + '")');
1942
+ }
1943
+ }
1944
+ if (obj.facts !== undefined) {
1945
+ const obj_facts = obj.facts;
1946
+ const path_facts = path + '.facts';
1947
+ if (obj_facts === undefined) {
1948
+ return new TypeError('Expected "defined" but received "' + typeof obj_facts + '" (at "' + path_facts + '")');
1949
+ }
1950
+ }
1951
+ if (obj.id !== undefined) {
1952
+ const obj_id = obj.id;
1953
+ const path_id = path + '.id';
1954
+ if (typeof obj_id !== 'string') {
1955
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1956
+ }
1957
+ }
1958
+ const obj_insightFeedbackMetadata = obj.insightFeedbackMetadata;
1959
+ const path_insightFeedbackMetadata = path + '.insightFeedbackMetadata';
1960
+ const referencepath_insightFeedbackMetadataValidationError = validate$8(obj_insightFeedbackMetadata, path_insightFeedbackMetadata);
1961
+ if (referencepath_insightFeedbackMetadataValidationError !== null) {
1962
+ let message = 'Object doesn\'t match InsightFeedbackMetadata (at "' + path_insightFeedbackMetadata + '")\n';
1963
+ message += referencepath_insightFeedbackMetadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1964
+ return new TypeError(message);
1965
+ }
1966
+ if (obj.markup !== undefined) {
1967
+ const obj_markup = obj.markup;
1968
+ const path_markup = path + '.markup';
1969
+ if (typeof obj_markup !== 'string') {
1970
+ return new TypeError('Expected "string" but received "' + typeof obj_markup + '" (at "' + path_markup + '")');
1971
+ }
1972
+ }
1973
+ if (obj.question !== undefined) {
1974
+ const obj_question = obj.question;
1975
+ const path_question = path + '.question';
1976
+ if (typeof obj_question !== 'string') {
1977
+ return new TypeError('Expected "string" but received "' + typeof obj_question + '" (at "' + path_question + '")');
1978
+ }
1979
+ }
1980
+ if (obj.score !== undefined) {
1981
+ obj.score;
1982
+ }
1983
+ if (obj.type !== undefined) {
1984
+ const obj_type = obj.type;
1985
+ const path_type = path + '.type';
1986
+ if (typeof obj_type !== 'string') {
1987
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
1988
+ }
1989
+ }
1990
+ if (obj.version !== undefined) {
1991
+ const obj_version = obj.version;
1992
+ const path_version = path + '.version';
1993
+ if (typeof obj_version !== 'number' || (typeof obj_version === 'number' && Math.floor(obj_version) !== obj_version)) {
1994
+ return new TypeError('Expected "integer" but received "' + typeof obj_version + '" (at "' + path_version + '")');
1995
+ }
1996
+ }
1997
+ if (obj.viz !== undefined) {
1998
+ const obj_viz = obj.viz;
1999
+ const path_viz = path + '.viz';
2000
+ if (obj_viz === undefined) {
2001
+ return new TypeError('Expected "defined" but received "' + typeof obj_viz + '" (at "' + path_viz + '")');
2002
+ }
2003
+ }
2004
+ })();
2005
+ return v_error === undefined ? null : v_error;
2006
+ }
2007
+ const select$9 = function InsightSelect() {
2008
+ const { selections: InsightFeedbackMetadata__selections, opaque: InsightFeedbackMetadata__opaque, } = select$a();
2009
+ return {
2010
+ kind: 'Fragment',
2011
+ version: VERSION$7,
2012
+ private: [],
2013
+ selections: [
2014
+ {
2015
+ name: 'characterization',
2016
+ kind: 'Scalar',
2017
+ required: false
2018
+ },
2019
+ {
2020
+ name: 'facts',
2021
+ kind: 'Object',
2022
+ // any
2023
+ },
2024
+ {
2025
+ name: 'id',
2026
+ kind: 'Scalar',
2027
+ required: false
2028
+ },
2029
+ {
2030
+ name: 'insightFeedbackMetadata',
2031
+ kind: 'Object',
2032
+ selections: InsightFeedbackMetadata__selections
2033
+ },
2034
+ {
2035
+ name: 'markup',
2036
+ kind: 'Scalar',
2037
+ required: false
2038
+ },
2039
+ {
2040
+ name: 'question',
2041
+ kind: 'Scalar',
2042
+ required: false
2043
+ },
2044
+ {
2045
+ name: 'score',
2046
+ kind: 'Scalar',
2047
+ required: false
2048
+ },
2049
+ {
2050
+ name: 'type',
2051
+ kind: 'Scalar',
2052
+ required: false
2053
+ },
2054
+ {
2055
+ name: 'version',
2056
+ kind: 'Scalar',
2057
+ required: false
2058
+ },
2059
+ {
2060
+ name: 'viz',
2061
+ kind: 'Object',
2062
+ // any
2063
+ }
2064
+ ]
2065
+ };
2066
+ };
2067
+ function equals$7(existing, incoming) {
2068
+ const existing_version = existing.version;
2069
+ const incoming_version = incoming.version;
2070
+ // if at least one of these optionals is defined
2071
+ if (existing_version !== undefined || incoming_version !== undefined) {
2072
+ // if one of these is not defined we know the other is defined and therefore
2073
+ // not equal
2074
+ if (existing_version === undefined || incoming_version === undefined) {
2075
+ return false;
2076
+ }
2077
+ if (!(existing_version === incoming_version)) {
2078
+ return false;
2079
+ }
2080
+ }
2081
+ const existing_characterization = existing.characterization;
2082
+ const incoming_characterization = incoming.characterization;
2083
+ // if at least one of these optionals is defined
2084
+ if (existing_characterization !== undefined || incoming_characterization !== undefined) {
2085
+ // if one of these is not defined we know the other is defined and therefore
2086
+ // not equal
2087
+ if (existing_characterization === undefined || incoming_characterization === undefined) {
2088
+ return false;
2089
+ }
2090
+ if (!(existing_characterization === incoming_characterization)) {
2091
+ return false;
2092
+ }
2093
+ }
2094
+ const existing_id = existing.id;
2095
+ const incoming_id = incoming.id;
2096
+ // if at least one of these optionals is defined
2097
+ if (existing_id !== undefined || incoming_id !== undefined) {
2098
+ // if one of these is not defined we know the other is defined and therefore
2099
+ // not equal
2100
+ if (existing_id === undefined || incoming_id === undefined) {
2101
+ return false;
2102
+ }
2103
+ if (!(existing_id === incoming_id)) {
2104
+ return false;
2105
+ }
2106
+ }
2107
+ const existing_markup = existing.markup;
2108
+ const incoming_markup = incoming.markup;
2109
+ // if at least one of these optionals is defined
2110
+ if (existing_markup !== undefined || incoming_markup !== undefined) {
2111
+ // if one of these is not defined we know the other is defined and therefore
2112
+ // not equal
2113
+ if (existing_markup === undefined || incoming_markup === undefined) {
2114
+ return false;
2115
+ }
2116
+ if (!(existing_markup === incoming_markup)) {
2117
+ return false;
2118
+ }
2119
+ }
2120
+ const existing_question = existing.question;
2121
+ const incoming_question = incoming.question;
2122
+ // if at least one of these optionals is defined
2123
+ if (existing_question !== undefined || incoming_question !== undefined) {
2124
+ // if one of these is not defined we know the other is defined and therefore
2125
+ // not equal
2126
+ if (existing_question === undefined || incoming_question === undefined) {
2127
+ return false;
2128
+ }
2129
+ if (!(existing_question === incoming_question)) {
2130
+ return false;
2131
+ }
2132
+ }
2133
+ const existing_type = existing.type;
2134
+ const incoming_type = incoming.type;
2135
+ // if at least one of these optionals is defined
2136
+ if (existing_type !== undefined || incoming_type !== undefined) {
2137
+ // if one of these is not defined we know the other is defined and therefore
2138
+ // not equal
2139
+ if (existing_type === undefined || incoming_type === undefined) {
2140
+ return false;
2141
+ }
2142
+ if (!(existing_type === incoming_type)) {
2143
+ return false;
2144
+ }
2145
+ }
2146
+ const existing_score = existing.score;
2147
+ const incoming_score = incoming.score;
2148
+ // if at least one of these optionals is defined
2149
+ if (existing_score !== undefined || incoming_score !== undefined) {
2150
+ // if one of these is not defined we know the other is defined and therefore
2151
+ // not equal
2152
+ if (existing_score === undefined || incoming_score === undefined) {
2153
+ return false;
2154
+ }
2155
+ if (!(existing_score === incoming_score)) {
2156
+ return false;
2157
+ }
2158
+ }
2159
+ const existing_facts = existing.facts;
2160
+ const incoming_facts = incoming.facts;
2161
+ // if at least one of these optionals is defined
2162
+ if (existing_facts !== undefined || incoming_facts !== undefined) {
2163
+ // if one of these is not defined we know the other is defined and therefore
2164
+ // not equal
2165
+ if (existing_facts === undefined || incoming_facts === undefined) {
2166
+ return false;
2167
+ }
2168
+ if (JSONStringify(incoming_facts) !== JSONStringify(existing_facts)) {
2169
+ return false;
2170
+ }
2171
+ }
2172
+ const existing_insightFeedbackMetadata = existing.insightFeedbackMetadata;
2173
+ const incoming_insightFeedbackMetadata = incoming.insightFeedbackMetadata;
2174
+ if (!(equals$8(existing_insightFeedbackMetadata, incoming_insightFeedbackMetadata))) {
2175
+ return false;
2176
+ }
2177
+ const existing_viz = existing.viz;
2178
+ const incoming_viz = incoming.viz;
2179
+ // if at least one of these optionals is defined
2180
+ if (existing_viz !== undefined || incoming_viz !== undefined) {
2181
+ // if one of these is not defined we know the other is defined and therefore
2182
+ // not equal
2183
+ if (existing_viz === undefined || incoming_viz === undefined) {
2184
+ return false;
2185
+ }
2186
+ if (JSONStringify(incoming_viz) !== JSONStringify(existing_viz)) {
2187
+ return false;
2188
+ }
2189
+ }
2190
+ return true;
2191
+ }
2192
+
2193
+ const VERSION$6 = "6707f0d0aa09112abbca1db5e32bb172";
2194
+ function validate$6(obj, path = 'InsightResponse') {
2195
+ const v_error = (() => {
2196
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2197
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2198
+ }
2199
+ if (obj.error !== undefined) {
2200
+ const obj_error = obj.error;
2201
+ const path_error = path + '.error';
2202
+ const referencepath_errorValidationError = validate$e(obj_error, path_error);
2203
+ if (referencepath_errorValidationError !== null) {
2204
+ let message = 'Object doesn\'t match Error (at "' + path_error + '")\n';
2205
+ message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2206
+ return new TypeError(message);
2207
+ }
2208
+ }
2209
+ if (obj.insightType !== undefined) {
2210
+ const obj_insightType = obj.insightType;
2211
+ const path_insightType = path + '.insightType';
2212
+ if (typeof obj_insightType !== 'string') {
2213
+ return new TypeError('Expected "string" but received "' + typeof obj_insightType + '" (at "' + path_insightType + '")');
2214
+ }
2215
+ }
2216
+ const obj_result = obj.result;
2217
+ const path_result = path + '.result';
2218
+ const referencepath_resultValidationError = validate$7(obj_result, path_result);
2219
+ if (referencepath_resultValidationError !== null) {
2220
+ let message = 'Object doesn\'t match Insight (at "' + path_result + '")\n';
2221
+ message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2222
+ return new TypeError(message);
2223
+ }
2224
+ })();
2225
+ return v_error === undefined ? null : v_error;
2226
+ }
2227
+ const select$8 = function InsightResponseSelect() {
2228
+ const { selections: Error__selections, opaque: Error__opaque, } = select$i();
2229
+ const { selections: Insight__selections, opaque: Insight__opaque, } = select$9();
2230
+ return {
2231
+ kind: 'Fragment',
2232
+ version: VERSION$6,
2233
+ private: [],
2234
+ selections: [
2235
+ {
2236
+ name: 'error',
2237
+ kind: 'Object',
2238
+ selections: Error__selections,
2239
+ required: false
2240
+ },
2241
+ {
2242
+ name: 'insightType',
2243
+ kind: 'Scalar',
2244
+ required: false
2245
+ },
2246
+ {
2247
+ name: 'result',
2248
+ kind: 'Object',
2249
+ selections: Insight__selections
2250
+ }
2251
+ ]
2252
+ };
2253
+ };
2254
+ function equals$6(existing, incoming) {
2255
+ const existing_insightType = existing.insightType;
2256
+ const incoming_insightType = incoming.insightType;
2257
+ // if at least one of these optionals is defined
2258
+ if (existing_insightType !== undefined || incoming_insightType !== undefined) {
2259
+ // if one of these is not defined we know the other is defined and therefore
2260
+ // not equal
2261
+ if (existing_insightType === undefined || incoming_insightType === undefined) {
2262
+ return false;
2263
+ }
2264
+ if (!(existing_insightType === incoming_insightType)) {
2265
+ return false;
2266
+ }
2267
+ }
2268
+ const existing_error = existing.error;
2269
+ const incoming_error = incoming.error;
2270
+ // if at least one of these optionals is defined
2271
+ if (existing_error !== undefined || incoming_error !== undefined) {
2272
+ // if one of these is not defined we know the other is defined and therefore
2273
+ // not equal
2274
+ if (existing_error === undefined || incoming_error === undefined) {
2275
+ return false;
2276
+ }
2277
+ if (!(equals$e(existing_error, incoming_error))) {
2278
+ return false;
2279
+ }
2280
+ }
2281
+ const existing_result = existing.result;
2282
+ const incoming_result = incoming.result;
2283
+ if (!(equals$7(existing_result, incoming_result))) {
2284
+ return false;
2285
+ }
2286
+ return true;
2287
+ }
2288
+
2289
+ const VERSION$5 = "490320cd71bdb83b6c4dcfe5b2b48b25";
2290
+ function validate$5(obj, path = 'Overview') {
2291
+ const v_error = (() => {
2292
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2293
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2294
+ }
2295
+ if (obj.viz !== undefined) {
2296
+ const obj_viz = obj.viz;
2297
+ const path_viz = path + '.viz';
2298
+ if (obj_viz === undefined) {
2299
+ return new TypeError('Expected "defined" but received "' + typeof obj_viz + '" (at "' + path_viz + '")');
2300
+ }
2301
+ }
2302
+ })();
2303
+ return v_error === undefined ? null : v_error;
2304
+ }
2305
+ const select$7 = function OverviewSelect() {
2306
+ return {
2307
+ kind: 'Fragment',
2308
+ version: VERSION$5,
2309
+ private: [],
2310
+ selections: [
2311
+ {
2312
+ name: 'viz',
2313
+ kind: 'Object',
2314
+ // any
2315
+ }
2316
+ ]
2317
+ };
2318
+ };
2319
+ function equals$5(existing, incoming) {
2320
+ const existing_viz = existing.viz;
2321
+ const incoming_viz = incoming.viz;
2322
+ // if at least one of these optionals is defined
2323
+ if (existing_viz !== undefined || incoming_viz !== undefined) {
2324
+ // if one of these is not defined we know the other is defined and therefore
2325
+ // not equal
2326
+ if (existing_viz === undefined || incoming_viz === undefined) {
2327
+ return false;
2328
+ }
2329
+ if (JSONStringify(incoming_viz) !== JSONStringify(existing_viz)) {
2330
+ return false;
2331
+ }
2332
+ }
2333
+ return true;
2334
+ }
2335
+
2336
+ const VERSION$4 = "ac3296a9832f46fda66420bc753d8c61";
2337
+ function validate$4(obj, path = 'OverviewResponse') {
2338
+ const v_error = (() => {
2339
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2340
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2341
+ }
2342
+ if (obj.error !== undefined) {
2343
+ const obj_error = obj.error;
2344
+ const path_error = path + '.error';
2345
+ const referencepath_errorValidationError = validate$e(obj_error, path_error);
2346
+ if (referencepath_errorValidationError !== null) {
2347
+ let message = 'Object doesn\'t match Error (at "' + path_error + '")\n';
2348
+ message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2349
+ return new TypeError(message);
2350
+ }
2351
+ }
2352
+ const obj_result = obj.result;
2353
+ const path_result = path + '.result';
2354
+ const referencepath_resultValidationError = validate$5(obj_result, path_result);
2355
+ if (referencepath_resultValidationError !== null) {
2356
+ let message = 'Object doesn\'t match Overview (at "' + path_result + '")\n';
2357
+ message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2358
+ return new TypeError(message);
2359
+ }
2360
+ })();
2361
+ return v_error === undefined ? null : v_error;
2362
+ }
2363
+ const select$6 = function OverviewResponseSelect() {
2364
+ const { selections: Error__selections, opaque: Error__opaque, } = select$i();
2365
+ const { selections: Overview__selections, opaque: Overview__opaque, } = select$7();
2366
+ return {
2367
+ kind: 'Fragment',
2368
+ version: VERSION$4,
2369
+ private: [],
2370
+ selections: [
2371
+ {
2372
+ name: 'error',
2373
+ kind: 'Object',
2374
+ selections: Error__selections,
2375
+ required: false
2376
+ },
2377
+ {
2378
+ name: 'result',
2379
+ kind: 'Object',
2380
+ selections: Overview__selections
2381
+ }
2382
+ ]
2383
+ };
2384
+ };
2385
+ function equals$4(existing, incoming) {
2386
+ const existing_error = existing.error;
2387
+ const incoming_error = incoming.error;
2388
+ // if at least one of these optionals is defined
2389
+ if (existing_error !== undefined || incoming_error !== undefined) {
2390
+ // if one of these is not defined we know the other is defined and therefore
2391
+ // not equal
2392
+ if (existing_error === undefined || incoming_error === undefined) {
2393
+ return false;
2394
+ }
2395
+ if (!(equals$e(existing_error, incoming_error))) {
2396
+ return false;
2397
+ }
1436
2398
  }
1437
- const config = typeCheckConfig$2(untrustedConfig);
1438
- if (!areRequiredParametersPresent(config, configPropertyNames)) {
1439
- return null;
2399
+ const existing_result = existing.result;
2400
+ const incoming_result = incoming.result;
2401
+ if (!(equals$5(existing_result, incoming_result))) {
2402
+ return false;
1440
2403
  }
1441
- return config;
1442
- }
1443
- function buildNetworkSnapshot$2(luvio, config, options) {
1444
- const resourceParams = createResourceParams$2(config);
1445
- const request = createResourceRequest$2(resourceParams);
1446
- return luvio.dispatchResourceRequest(request, options)
1447
- .then((response) => {
1448
- return luvio.handleSuccessResponse(() => {
1449
- const snapshot = ingestSuccess$2(luvio, resourceParams, response);
1450
- return luvio.storeBroadcast().then(() => snapshot);
1451
- }, () => {
1452
- const cache = new StoreKeyMap();
1453
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
1454
- return cache;
1455
- });
1456
- }, (response) => {
1457
- deepFreeze(response);
1458
- throw response;
1459
- });
2404
+ return true;
1460
2405
  }
1461
- const getMetricFilterValuesAdapterFactory = (luvio) => {
1462
- return function getMetricFilterValues(untrustedConfig) {
1463
- const config = validateAdapterConfig$2(untrustedConfig, getMetricFilterValues_ConfigPropertyNames);
1464
- // Invalid or incomplete config
1465
- if (config === null) {
1466
- throw new Error('Invalid config for "getMetricFilterValues"');
2406
+
2407
+ const VERSION$3 = "a70a5e68e786c3f38efb73cc0812d394";
2408
+ function validate$3(obj, path = 'InsightGroup') {
2409
+ const v_error = (() => {
2410
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2411
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1467
2412
  }
1468
- return buildNetworkSnapshot$2(luvio, config);
2413
+ if (obj.error !== undefined) {
2414
+ const obj_error = obj.error;
2415
+ const path_error = path + '.error';
2416
+ const referencepath_errorValidationError = validate$e(obj_error, path_error);
2417
+ if (referencepath_errorValidationError !== null) {
2418
+ let message = 'Object doesn\'t match Error (at "' + path_error + '")\n';
2419
+ message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2420
+ return new TypeError(message);
2421
+ }
2422
+ }
2423
+ if (obj.insights !== undefined) {
2424
+ const obj_insights = obj.insights;
2425
+ const path_insights = path + '.insights';
2426
+ if (!ArrayIsArray(obj_insights)) {
2427
+ return new TypeError('Expected "array" but received "' + typeof obj_insights + '" (at "' + path_insights + '")');
2428
+ }
2429
+ for (let i = 0; i < obj_insights.length; i++) {
2430
+ const obj_insights_item = obj_insights[i];
2431
+ const path_insights_item = path_insights + '[' + i + ']';
2432
+ const referencepath_insights_itemValidationError = validate$6(obj_insights_item, path_insights_item);
2433
+ if (referencepath_insights_itemValidationError !== null) {
2434
+ let message = 'Object doesn\'t match InsightResponse (at "' + path_insights_item + '")\n';
2435
+ message += referencepath_insights_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2436
+ return new TypeError(message);
2437
+ }
2438
+ }
2439
+ }
2440
+ if (obj.overviews !== undefined) {
2441
+ const obj_overviews = obj.overviews;
2442
+ const path_overviews = path + '.overviews';
2443
+ if (!ArrayIsArray(obj_overviews)) {
2444
+ return new TypeError('Expected "array" but received "' + typeof obj_overviews + '" (at "' + path_overviews + '")');
2445
+ }
2446
+ for (let i = 0; i < obj_overviews.length; i++) {
2447
+ const obj_overviews_item = obj_overviews[i];
2448
+ const path_overviews_item = path_overviews + '[' + i + ']';
2449
+ const referencepath_overviews_itemValidationError = validate$4(obj_overviews_item, path_overviews_item);
2450
+ if (referencepath_overviews_itemValidationError !== null) {
2451
+ let message = 'Object doesn\'t match OverviewResponse (at "' + path_overviews_item + '")\n';
2452
+ message += referencepath_overviews_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2453
+ return new TypeError(message);
2454
+ }
2455
+ }
2456
+ }
2457
+ if (obj.type !== undefined) {
2458
+ const obj_type = obj.type;
2459
+ const path_type = path + '.type';
2460
+ if (typeof obj_type !== 'string') {
2461
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
2462
+ }
2463
+ }
2464
+ })();
2465
+ return v_error === undefined ? null : v_error;
2466
+ }
2467
+ const select$5 = function InsightGroupSelect() {
2468
+ const { selections: Error__selections, opaque: Error__opaque, } = select$i();
2469
+ const { selections: InsightResponse__selections, opaque: InsightResponse__opaque, } = select$8();
2470
+ const { selections: OverviewResponse__selections, opaque: OverviewResponse__opaque, } = select$6();
2471
+ return {
2472
+ kind: 'Fragment',
2473
+ version: VERSION$3,
2474
+ private: [],
2475
+ selections: [
2476
+ {
2477
+ name: 'error',
2478
+ kind: 'Object',
2479
+ selections: Error__selections,
2480
+ required: false
2481
+ },
2482
+ {
2483
+ name: 'insights',
2484
+ kind: 'Object',
2485
+ plural: true,
2486
+ selections: InsightResponse__selections,
2487
+ required: false
2488
+ },
2489
+ {
2490
+ name: 'overviews',
2491
+ kind: 'Object',
2492
+ plural: true,
2493
+ selections: OverviewResponse__selections,
2494
+ required: false
2495
+ },
2496
+ {
2497
+ name: 'type',
2498
+ kind: 'Scalar',
2499
+ required: false
2500
+ }
2501
+ ]
1469
2502
  };
1470
2503
  };
2504
+ function equals$3(existing, incoming) {
2505
+ const existing_type = existing.type;
2506
+ const incoming_type = incoming.type;
2507
+ // if at least one of these optionals is defined
2508
+ if (existing_type !== undefined || incoming_type !== undefined) {
2509
+ // if one of these is not defined we know the other is defined and therefore
2510
+ // not equal
2511
+ if (existing_type === undefined || incoming_type === undefined) {
2512
+ return false;
2513
+ }
2514
+ if (!(existing_type === incoming_type)) {
2515
+ return false;
2516
+ }
2517
+ }
2518
+ const existing_error = existing.error;
2519
+ const incoming_error = incoming.error;
2520
+ // if at least one of these optionals is defined
2521
+ if (existing_error !== undefined || incoming_error !== undefined) {
2522
+ // if one of these is not defined we know the other is defined and therefore
2523
+ // not equal
2524
+ if (existing_error === undefined || incoming_error === undefined) {
2525
+ return false;
2526
+ }
2527
+ if (!(equals$e(existing_error, incoming_error))) {
2528
+ return false;
2529
+ }
2530
+ }
2531
+ const existing_insights = existing.insights;
2532
+ const incoming_insights = incoming.insights;
2533
+ // if at least one of these optionals is defined
2534
+ if (existing_insights !== undefined || incoming_insights !== undefined) {
2535
+ // if one of these is not defined we know the other is defined and therefore
2536
+ // not equal
2537
+ if (existing_insights === undefined || incoming_insights === undefined) {
2538
+ return false;
2539
+ }
2540
+ const equals_insights_items = equalsArray(existing_insights, incoming_insights, (existing_insights_item, incoming_insights_item) => {
2541
+ if (!(equals$6(existing_insights_item, incoming_insights_item))) {
2542
+ return false;
2543
+ }
2544
+ });
2545
+ if (equals_insights_items === false) {
2546
+ return false;
2547
+ }
2548
+ }
2549
+ const existing_overviews = existing.overviews;
2550
+ const incoming_overviews = incoming.overviews;
2551
+ // if at least one of these optionals is defined
2552
+ if (existing_overviews !== undefined || incoming_overviews !== undefined) {
2553
+ // if one of these is not defined we know the other is defined and therefore
2554
+ // not equal
2555
+ if (existing_overviews === undefined || incoming_overviews === undefined) {
2556
+ return false;
2557
+ }
2558
+ const equals_overviews_items = equalsArray(existing_overviews, incoming_overviews, (existing_overviews_item, incoming_overviews_item) => {
2559
+ if (!(equals$4(existing_overviews_item, incoming_overviews_item))) {
2560
+ return false;
2561
+ }
2562
+ });
2563
+ if (equals_overviews_items === false) {
2564
+ return false;
2565
+ }
2566
+ }
2567
+ return true;
2568
+ }
1471
2569
 
1472
- const VERSION$2 = "07a8c889542dbad6f958515513d4e3fb";
1473
- function validate$2(obj, path = 'Error') {
2570
+ const VERSION$2 = "ccf83d258110a04c1949592c91b69b3b";
2571
+ function validate$2(obj, path = 'InsightBundle') {
1474
2572
  const v_error = (() => {
1475
2573
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1476
2574
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1477
2575
  }
1478
- if (obj.code !== undefined) {
1479
- const obj_code = obj.code;
1480
- const path_code = path + '.code';
1481
- if (typeof obj_code !== 'string') {
1482
- return new TypeError('Expected "string" but received "' + typeof obj_code + '" (at "' + path_code + '")');
2576
+ if (obj.characterization !== undefined) {
2577
+ const obj_characterization = obj.characterization;
2578
+ const path_characterization = path + '.characterization';
2579
+ if (typeof obj_characterization !== 'string') {
2580
+ return new TypeError('Expected "string" but received "' + typeof obj_characterization + '" (at "' + path_characterization + '")');
1483
2581
  }
1484
2582
  }
1485
- if (obj.message !== undefined) {
1486
- const obj_message = obj.message;
1487
- const path_message = path + '.message';
1488
- if (typeof obj_message !== 'string') {
1489
- return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
2583
+ if (obj.hasErrors !== undefined) {
2584
+ const obj_hasErrors = obj.hasErrors;
2585
+ const path_hasErrors = path + '.hasErrors';
2586
+ if (typeof obj_hasErrors !== 'boolean') {
2587
+ return new TypeError('Expected "boolean" but received "' + typeof obj_hasErrors + '" (at "' + path_hasErrors + '")');
2588
+ }
2589
+ }
2590
+ if (obj.insightGroups !== undefined) {
2591
+ const obj_insightGroups = obj.insightGroups;
2592
+ const path_insightGroups = path + '.insightGroups';
2593
+ if (!ArrayIsArray(obj_insightGroups)) {
2594
+ return new TypeError('Expected "array" but received "' + typeof obj_insightGroups + '" (at "' + path_insightGroups + '")');
2595
+ }
2596
+ for (let i = 0; i < obj_insightGroups.length; i++) {
2597
+ const obj_insightGroups_item = obj_insightGroups[i];
2598
+ const path_insightGroups_item = path_insightGroups + '[' + i + ']';
2599
+ const referencepath_insightGroups_itemValidationError = validate$3(obj_insightGroups_item, path_insightGroups_item);
2600
+ if (referencepath_insightGroups_itemValidationError !== null) {
2601
+ let message = 'Object doesn\'t match InsightGroup (at "' + path_insightGroups_item + '")\n';
2602
+ message += referencepath_insightGroups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2603
+ return new TypeError(message);
2604
+ }
1490
2605
  }
1491
2606
  }
1492
2607
  })();
1493
2608
  return v_error === undefined ? null : v_error;
1494
2609
  }
1495
- const select$4 = function ErrorSelect() {
2610
+ const select$4 = function InsightBundleSelect() {
2611
+ const { selections: InsightGroup__selections, opaque: InsightGroup__opaque, } = select$5();
1496
2612
  return {
1497
2613
  kind: 'Fragment',
1498
2614
  version: VERSION$2,
1499
2615
  private: [],
1500
2616
  selections: [
1501
2617
  {
1502
- name: 'code',
2618
+ name: 'characterization',
1503
2619
  kind: 'Scalar',
1504
2620
  required: false
1505
2621
  },
1506
2622
  {
1507
- name: 'message',
2623
+ name: 'hasErrors',
1508
2624
  kind: 'Scalar',
1509
2625
  required: false
2626
+ },
2627
+ {
2628
+ name: 'insightGroups',
2629
+ kind: 'Object',
2630
+ plural: true,
2631
+ selections: InsightGroup__selections,
2632
+ required: false
1510
2633
  }
1511
2634
  ]
1512
2635
  };
1513
2636
  };
1514
2637
  function equals$2(existing, incoming) {
1515
- const existing_code = existing.code;
1516
- const incoming_code = incoming.code;
2638
+ const existing_hasErrors = existing.hasErrors;
2639
+ const incoming_hasErrors = incoming.hasErrors;
1517
2640
  // if at least one of these optionals is defined
1518
- if (existing_code !== undefined || incoming_code !== undefined) {
2641
+ if (existing_hasErrors !== undefined || incoming_hasErrors !== undefined) {
1519
2642
  // if one of these is not defined we know the other is defined and therefore
1520
2643
  // not equal
1521
- if (existing_code === undefined || incoming_code === undefined) {
2644
+ if (existing_hasErrors === undefined || incoming_hasErrors === undefined) {
1522
2645
  return false;
1523
2646
  }
1524
- if (!(existing_code === incoming_code)) {
2647
+ if (!(existing_hasErrors === incoming_hasErrors)) {
1525
2648
  return false;
1526
2649
  }
1527
2650
  }
1528
- const existing_message = existing.message;
1529
- const incoming_message = incoming.message;
2651
+ const existing_characterization = existing.characterization;
2652
+ const incoming_characterization = incoming.characterization;
1530
2653
  // if at least one of these optionals is defined
1531
- if (existing_message !== undefined || incoming_message !== undefined) {
2654
+ if (existing_characterization !== undefined || incoming_characterization !== undefined) {
1532
2655
  // if one of these is not defined we know the other is defined and therefore
1533
2656
  // not equal
1534
- if (existing_message === undefined || incoming_message === undefined) {
2657
+ if (existing_characterization === undefined || incoming_characterization === undefined) {
1535
2658
  return false;
1536
2659
  }
1537
- if (!(existing_message === incoming_message)) {
2660
+ if (!(existing_characterization === incoming_characterization)) {
2661
+ return false;
2662
+ }
2663
+ }
2664
+ const existing_insightGroups = existing.insightGroups;
2665
+ const incoming_insightGroups = incoming.insightGroups;
2666
+ // if at least one of these optionals is defined
2667
+ if (existing_insightGroups !== undefined || incoming_insightGroups !== undefined) {
2668
+ // if one of these is not defined we know the other is defined and therefore
2669
+ // not equal
2670
+ if (existing_insightGroups === undefined || incoming_insightGroups === undefined) {
2671
+ return false;
2672
+ }
2673
+ const equals_insightGroups_items = equalsArray(existing_insightGroups, incoming_insightGroups, (existing_insightGroups_item, incoming_insightGroups_item) => {
2674
+ if (!(equals$3(existing_insightGroups_item, incoming_insightGroups_item))) {
2675
+ return false;
2676
+ }
2677
+ });
2678
+ if (equals_insightGroups_items === false) {
1538
2679
  return false;
1539
2680
  }
1540
2681
  }
1541
2682
  return true;
1542
2683
  }
1543
2684
 
1544
- const VERSION$1 = "8dd18b6afd3fc20ff954cca4d0124897";
2685
+ const VERSION$1 = "2f50f3271c566971f91d15a361482b6c";
1545
2686
  function validate$1(obj, path = 'GenerateInsightBundleResponse') {
1546
2687
  const v_error = (() => {
1547
2688
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1550,7 +2691,7 @@ function validate$1(obj, path = 'GenerateInsightBundleResponse') {
1550
2691
  if (obj.error !== undefined) {
1551
2692
  const obj_error = obj.error;
1552
2693
  const path_error = path + '.error';
1553
- const referencepath_errorValidationError = validate$2(obj_error, path_error);
2694
+ const referencepath_errorValidationError = validate$e(obj_error, path_error);
1554
2695
  if (referencepath_errorValidationError !== null) {
1555
2696
  let message = 'Object doesn\'t match Error (at "' + path_error + '")\n';
1556
2697
  message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1560,8 +2701,11 @@ function validate$1(obj, path = 'GenerateInsightBundleResponse') {
1560
2701
  if (obj.result !== undefined) {
1561
2702
  const obj_result = obj.result;
1562
2703
  const path_result = path + '.result';
1563
- if (obj_result === undefined) {
1564
- return new TypeError('Expected "defined" but received "' + typeof obj_result + '" (at "' + path_result + '")');
2704
+ const referencepath_resultValidationError = validate$2(obj_result, path_result);
2705
+ if (referencepath_resultValidationError !== null) {
2706
+ let message = 'Object doesn\'t match InsightBundle (at "' + path_result + '")\n';
2707
+ message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2708
+ return new TypeError(message);
1565
2709
  }
1566
2710
  }
1567
2711
  const obj_sdm = obj.sdm;
@@ -1591,7 +2735,8 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
1591
2735
  return input;
1592
2736
  }
1593
2737
  const select$3 = function GenerateInsightBundleResponseSelect() {
1594
- const { selections: Error__selections, opaque: Error__opaque, } = select$4();
2738
+ const { selections: Error__selections, opaque: Error__opaque, } = select$i();
2739
+ const { selections: InsightBundle__selections, opaque: InsightBundle__opaque, } = select$4();
1595
2740
  return {
1596
2741
  kind: 'Fragment',
1597
2742
  version: VERSION$1,
@@ -1606,7 +2751,8 @@ const select$3 = function GenerateInsightBundleResponseSelect() {
1606
2751
  {
1607
2752
  name: 'result',
1608
2753
  kind: 'Object',
1609
- // any
2754
+ selections: InsightBundle__selections,
2755
+ required: false
1610
2756
  },
1611
2757
  {
1612
2758
  name: 'sdm',
@@ -1639,7 +2785,7 @@ function equals$1(existing, incoming) {
1639
2785
  if (existing_error === undefined || incoming_error === undefined) {
1640
2786
  return false;
1641
2787
  }
1642
- if (!(equals$2(existing_error, incoming_error))) {
2788
+ if (!(equals$e(existing_error, incoming_error))) {
1643
2789
  return false;
1644
2790
  }
1645
2791
  }
@@ -1652,7 +2798,7 @@ function equals$1(existing, incoming) {
1652
2798
  if (existing_result === undefined || incoming_result === undefined) {
1653
2799
  return false;
1654
2800
  }
1655
- if (JSONStringify(incoming_result) !== JSONStringify(existing_result)) {
2801
+ if (!(equals$2(existing_result, incoming_result))) {
1656
2802
  return false;
1657
2803
  }
1658
2804
  }
@@ -1730,9 +2876,15 @@ function typeCheckConfig$1(untrustedConfig) {
1730
2876
  const config = {};
1731
2877
  typeCheckConfig$4(untrustedConfig, config, generateInsights_ConfigPropertyMetadata);
1732
2878
  const untrustedConfig_input = untrustedConfig.input;
1733
- config.input = untrustedConfig_input;
2879
+ const referenceInsightBundleInputValidationError = validate$k(untrustedConfig_input);
2880
+ if (referenceInsightBundleInputValidationError === null) {
2881
+ config.input = untrustedConfig_input;
2882
+ }
1734
2883
  const untrustedConfig_options = untrustedConfig.options;
1735
- config.options = untrustedConfig_options;
2884
+ const referenceInsightBundleOptionsValidationError = validate$h(untrustedConfig_options);
2885
+ if (referenceInsightBundleOptionsValidationError === null) {
2886
+ config.options = untrustedConfig_options;
2887
+ }
1736
2888
  return config;
1737
2889
  }
1738
2890
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -1777,7 +2929,7 @@ const generateInsightsAdapterFactory = (luvio) => {
1777
2929
  };
1778
2930
  };
1779
2931
 
1780
- const VERSION = "94ce8446612f6dc54775a9c8489b1b52";
2932
+ const VERSION = "b3ecf416df1c88948a22534e1143e6d5";
1781
2933
  function validate(obj, path = 'GetInsightBatchResponse') {
1782
2934
  const v_error = (() => {
1783
2935
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1819,8 +2971,11 @@ function validate(obj, path = 'GetInsightBatchResponse') {
1819
2971
  if (obj.summary !== undefined) {
1820
2972
  const obj_summary = obj.summary;
1821
2973
  const path_summary = path + '.summary';
1822
- if (obj_summary === undefined) {
1823
- return new TypeError('Expected "defined" but received "' + typeof obj_summary + '" (at "' + path_summary + '")');
2974
+ const referencepath_summaryValidationError = validate$c(obj_summary, path_summary);
2975
+ if (referencepath_summaryValidationError !== null) {
2976
+ let message = 'Object doesn\'t match SummaryResponse (at "' + path_summary + '")\n';
2977
+ message += referencepath_summaryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2978
+ return new TypeError(message);
1824
2979
  }
1825
2980
  }
1826
2981
  })();
@@ -1858,6 +3013,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
1858
3013
  return input;
1859
3014
  }
1860
3015
  const select$1 = function GetInsightBatchResponseSelect() {
3016
+ const { selections: SummaryResponse__selections, opaque: SummaryResponse__opaque, } = select$g();
1861
3017
  return {
1862
3018
  kind: 'Fragment',
1863
3019
  version: VERSION,
@@ -1887,7 +3043,8 @@ const select$1 = function GetInsightBatchResponseSelect() {
1887
3043
  {
1888
3044
  name: 'summary',
1889
3045
  kind: 'Object',
1890
- // any
3046
+ selections: SummaryResponse__selections,
3047
+ required: false
1891
3048
  }
1892
3049
  ]
1893
3050
  };
@@ -1951,7 +3108,7 @@ function equals(existing, incoming) {
1951
3108
  if (existing_summary === undefined || incoming_summary === undefined) {
1952
3109
  return false;
1953
3110
  }
1954
- if (JSONStringify(incoming_summary) !== JSONStringify(existing_summary)) {
3111
+ if (!(equals$c(existing_summary, incoming_summary))) {
1955
3112
  return false;
1956
3113
  }
1957
3114
  }