@salesforce/lds-adapters-sfap-analytics-insights 1.309.0-dev11 → 1.309.0-dev13

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
package/sfdc/index.js CHANGED
@@ -102,7 +102,7 @@ function createLink(ref) {
102
102
  };
103
103
  }
104
104
 
105
- function validate$u(obj, path = 'MetricMetadata') {
105
+ function validate$H(obj, path = 'MetricMetadata') {
106
106
  const v_error = (() => {
107
107
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
108
108
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -125,7 +125,7 @@ function validate$u(obj, path = 'MetricMetadata') {
125
125
  return v_error === undefined ? null : v_error;
126
126
  }
127
127
 
128
- function validate$t(obj, path = 'ExtensionOptions') {
128
+ function validate$G(obj, path = 'ExtensionOptions') {
129
129
  const v_error = (() => {
130
130
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
131
131
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -155,7 +155,7 @@ function validate$t(obj, path = 'ExtensionOptions') {
155
155
  return v_error === undefined ? null : v_error;
156
156
  }
157
157
 
158
- function validate$s(obj, path = 'InsightsOptions_InsightSetting') {
158
+ function validate$F(obj, path = 'InsightsOptions_InsightSetting') {
159
159
  const v_error = (() => {
160
160
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
161
161
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -178,7 +178,7 @@ function validate$s(obj, path = 'InsightsOptions_InsightSetting') {
178
178
  return v_error === undefined ? null : v_error;
179
179
  }
180
180
 
181
- function validate$r(obj, path = 'InsightsOptions') {
181
+ function validate$E(obj, path = 'InsightsOptions') {
182
182
  const v_error = (() => {
183
183
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
184
184
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -192,7 +192,7 @@ function validate$r(obj, path = 'InsightsOptions') {
192
192
  for (let i = 0; i < obj_settings.length; i++) {
193
193
  const obj_settings_item = obj_settings[i];
194
194
  const path_settings_item = path_settings + '[' + i + ']';
195
- const referencepath_settings_itemValidationError = validate$s(obj_settings_item, path_settings_item);
195
+ const referencepath_settings_itemValidationError = validate$F(obj_settings_item, path_settings_item);
196
196
  if (referencepath_settings_itemValidationError !== null) {
197
197
  let message = 'Object doesn\'t match InsightsOptions_InsightSetting (at "' + path_settings_item + '")\n';
198
198
  message += referencepath_settings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -204,7 +204,7 @@ function validate$r(obj, path = 'InsightsOptions') {
204
204
  return v_error === undefined ? null : v_error;
205
205
  }
206
206
 
207
- function validate$q(obj, path = 'CategoricalFilterOptions') {
207
+ function validate$D(obj, path = 'CategoricalFilterOptions') {
208
208
  const v_error = (() => {
209
209
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
210
210
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -241,7 +241,7 @@ function validate$q(obj, path = 'CategoricalFilterOptions') {
241
241
  return v_error === undefined ? null : v_error;
242
242
  }
243
243
 
244
- function validate$p(obj, path = 'FieldId') {
244
+ function validate$C(obj, path = 'FieldId') {
245
245
  const v_error = (() => {
246
246
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
247
247
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -271,7 +271,7 @@ function validate$p(obj, path = 'FieldId') {
271
271
  return v_error === undefined ? null : v_error;
272
272
  }
273
273
 
274
- function validate$o(obj, path = 'RangeFilterOptions') {
274
+ function validate$B(obj, path = 'RangeFilterOptions') {
275
275
  const v_error = (() => {
276
276
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
277
277
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -315,7 +315,7 @@ function validate$o(obj, path = 'RangeFilterOptions') {
315
315
  return v_error === undefined ? null : v_error;
316
316
  }
317
317
 
318
- function validate$n(obj, path = 'RelativeDate') {
318
+ function validate$A(obj, path = 'RelativeDate') {
319
319
  const v_error = (() => {
320
320
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
321
321
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -345,7 +345,7 @@ function validate$n(obj, path = 'RelativeDate') {
345
345
  return v_error === undefined ? null : v_error;
346
346
  }
347
347
 
348
- function validate$m(obj, path = 'RelativeDateFilterOptions') {
348
+ function validate$z(obj, path = 'RelativeDateFilterOptions') {
349
349
  const v_error = (() => {
350
350
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
351
351
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -359,7 +359,7 @@ function validate$m(obj, path = 'RelativeDateFilterOptions') {
359
359
  }
360
360
  const obj_max = obj.max;
361
361
  const path_max = path + '.max';
362
- const referencepath_maxValidationError = validate$n(obj_max, path_max);
362
+ const referencepath_maxValidationError = validate$A(obj_max, path_max);
363
363
  if (referencepath_maxValidationError !== null) {
364
364
  let message = 'Object doesn\'t match RelativeDate (at "' + path_max + '")\n';
365
365
  message += referencepath_maxValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -367,7 +367,7 @@ function validate$m(obj, path = 'RelativeDateFilterOptions') {
367
367
  }
368
368
  const obj_min = obj.min;
369
369
  const path_min = path + '.min';
370
- const referencepath_minValidationError = validate$n(obj_min, path_min);
370
+ const referencepath_minValidationError = validate$A(obj_min, path_min);
371
371
  if (referencepath_minValidationError !== null) {
372
372
  let message = 'Object doesn\'t match RelativeDate (at "' + path_min + '")\n';
373
373
  message += referencepath_minValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -377,42 +377,60 @@ function validate$m(obj, path = 'RelativeDateFilterOptions') {
377
377
  return v_error === undefined ? null : v_error;
378
378
  }
379
379
 
380
- function validate$l(obj, path = 'Filter') {
380
+ function validate$y(obj, path = 'Filter') {
381
381
  const v_error = (() => {
382
382
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
383
383
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
384
384
  }
385
- const obj_categoricalFilterOptions = obj.categoricalFilterOptions;
386
- const path_categoricalFilterOptions = path + '.categoricalFilterOptions';
387
- const referencepath_categoricalFilterOptionsValidationError = validate$q(obj_categoricalFilterOptions, path_categoricalFilterOptions);
388
- if (referencepath_categoricalFilterOptionsValidationError !== null) {
389
- let message = 'Object doesn\'t match CategoricalFilterOptions (at "' + path_categoricalFilterOptions + '")\n';
390
- message += referencepath_categoricalFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
391
- return new TypeError(message);
385
+ if (obj.categoricalFilterOptions !== undefined) {
386
+ const obj_categoricalFilterOptions = obj.categoricalFilterOptions;
387
+ const path_categoricalFilterOptions = path + '.categoricalFilterOptions';
388
+ const referencepath_categoricalFilterOptionsValidationError = validate$D(obj_categoricalFilterOptions, path_categoricalFilterOptions);
389
+ if (referencepath_categoricalFilterOptionsValidationError !== null) {
390
+ let message = 'Object doesn\'t match CategoricalFilterOptions (at "' + path_categoricalFilterOptions + '")\n';
391
+ message += referencepath_categoricalFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
392
+ return new TypeError(message);
393
+ }
392
394
  }
393
- const obj_field = obj.field;
394
- const path_field = path + '.field';
395
- const referencepath_fieldValidationError = validate$p(obj_field, path_field);
396
- if (referencepath_fieldValidationError !== null) {
397
- let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
398
- message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
399
- return new TypeError(message);
395
+ if (obj.field !== undefined) {
396
+ const obj_field = obj.field;
397
+ const path_field = path + '.field';
398
+ const referencepath_fieldValidationError = validate$C(obj_field, path_field);
399
+ if (referencepath_fieldValidationError !== null) {
400
+ let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
401
+ message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
402
+ return new TypeError(message);
403
+ }
400
404
  }
401
- const obj_rangeFilterOptions = obj.rangeFilterOptions;
402
- const path_rangeFilterOptions = path + '.rangeFilterOptions';
403
- const referencepath_rangeFilterOptionsValidationError = validate$o(obj_rangeFilterOptions, path_rangeFilterOptions);
404
- if (referencepath_rangeFilterOptionsValidationError !== null) {
405
- let message = 'Object doesn\'t match RangeFilterOptions (at "' + path_rangeFilterOptions + '")\n';
406
- message += referencepath_rangeFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
407
- return new TypeError(message);
405
+ if (obj.fieldId !== undefined) {
406
+ const obj_fieldId = obj.fieldId;
407
+ const path_fieldId = path + '.fieldId';
408
+ const referencepath_fieldIdValidationError = validate$C(obj_fieldId, path_fieldId);
409
+ if (referencepath_fieldIdValidationError !== null) {
410
+ let message = 'Object doesn\'t match FieldId (at "' + path_fieldId + '")\n';
411
+ message += referencepath_fieldIdValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
412
+ return new TypeError(message);
413
+ }
408
414
  }
409
- const obj_relativeDateFilterOptions = obj.relativeDateFilterOptions;
410
- const path_relativeDateFilterOptions = path + '.relativeDateFilterOptions';
411
- const referencepath_relativeDateFilterOptionsValidationError = validate$m(obj_relativeDateFilterOptions, path_relativeDateFilterOptions);
412
- if (referencepath_relativeDateFilterOptionsValidationError !== null) {
413
- let message = 'Object doesn\'t match RelativeDateFilterOptions (at "' + path_relativeDateFilterOptions + '")\n';
414
- message += referencepath_relativeDateFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
415
- return new TypeError(message);
415
+ if (obj.rangeFilterOptions !== undefined) {
416
+ const obj_rangeFilterOptions = obj.rangeFilterOptions;
417
+ const path_rangeFilterOptions = path + '.rangeFilterOptions';
418
+ const referencepath_rangeFilterOptionsValidationError = validate$B(obj_rangeFilterOptions, path_rangeFilterOptions);
419
+ if (referencepath_rangeFilterOptionsValidationError !== null) {
420
+ let message = 'Object doesn\'t match RangeFilterOptions (at "' + path_rangeFilterOptions + '")\n';
421
+ message += referencepath_rangeFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
422
+ return new TypeError(message);
423
+ }
424
+ }
425
+ if (obj.relativeDateFilterOptions !== undefined) {
426
+ const obj_relativeDateFilterOptions = obj.relativeDateFilterOptions;
427
+ const path_relativeDateFilterOptions = path + '.relativeDateFilterOptions';
428
+ const referencepath_relativeDateFilterOptionsValidationError = validate$z(obj_relativeDateFilterOptions, path_relativeDateFilterOptions);
429
+ if (referencepath_relativeDateFilterOptionsValidationError !== null) {
430
+ let message = 'Object doesn\'t match RelativeDateFilterOptions (at "' + path_relativeDateFilterOptions + '")\n';
431
+ message += referencepath_relativeDateFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
432
+ return new TypeError(message);
433
+ }
416
434
  }
417
435
  if (obj.type !== undefined) {
418
436
  const obj_type = obj.type;
@@ -425,7 +443,30 @@ function validate$l(obj, path = 'Filter') {
425
443
  return v_error === undefined ? null : v_error;
426
444
  }
427
445
 
428
- function validate$k(obj, path = 'MeasurementPeriod') {
446
+ function validate$x(obj, path = 'RelativePeriod') {
447
+ const v_error = (() => {
448
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
449
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
450
+ }
451
+ if (obj.granularity !== undefined) {
452
+ const obj_granularity = obj.granularity;
453
+ const path_granularity = path + '.granularity';
454
+ if (typeof obj_granularity !== 'string') {
455
+ return new TypeError('Expected "string" but received "' + typeof obj_granularity + '" (at "' + path_granularity + '")');
456
+ }
457
+ }
458
+ if (obj.range !== undefined) {
459
+ const obj_range = obj.range;
460
+ const path_range = path + '.range';
461
+ if (typeof obj_range !== 'string') {
462
+ return new TypeError('Expected "string" but received "' + typeof obj_range + '" (at "' + path_range + '")');
463
+ }
464
+ }
465
+ })();
466
+ return v_error === undefined ? null : v_error;
467
+ }
468
+
469
+ function validate$w(obj, path = 'MeasurementPeriod') {
429
470
  const v_error = (() => {
430
471
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
431
472
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -433,22 +474,28 @@ function validate$k(obj, path = 'MeasurementPeriod') {
433
474
  if (obj.filter !== undefined) {
434
475
  const obj_filter = obj.filter;
435
476
  const path_filter = path + '.filter';
436
- if (obj_filter === undefined) {
437
- return new TypeError('Expected "defined" but received "' + typeof obj_filter + '" (at "' + path_filter + '")');
477
+ const referencepath_filterValidationError = validate$y(obj_filter, path_filter);
478
+ if (referencepath_filterValidationError !== null) {
479
+ let message = 'Object doesn\'t match Filter (at "' + path_filter + '")\n';
480
+ message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
481
+ return new TypeError(message);
438
482
  }
439
483
  }
440
484
  if (obj.relativePeriod !== undefined) {
441
485
  const obj_relativePeriod = obj.relativePeriod;
442
486
  const path_relativePeriod = path + '.relativePeriod';
443
- if (obj_relativePeriod === undefined) {
444
- return new TypeError('Expected "defined" but received "' + typeof obj_relativePeriod + '" (at "' + path_relativePeriod + '")');
487
+ const referencepath_relativePeriodValidationError = validate$x(obj_relativePeriod, path_relativePeriod);
488
+ if (referencepath_relativePeriodValidationError !== null) {
489
+ let message = 'Object doesn\'t match RelativePeriod (at "' + path_relativePeriod + '")\n';
490
+ message += referencepath_relativePeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
491
+ return new TypeError(message);
445
492
  }
446
493
  }
447
494
  })();
448
495
  return v_error === undefined ? null : v_error;
449
496
  }
450
497
 
451
- function validate$j(obj, path = 'SemanticFilter') {
498
+ function validate$v(obj, path = 'SemanticFilter') {
452
499
  const v_error = (() => {
453
500
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
454
501
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -474,7 +521,7 @@ function validate$j(obj, path = 'SemanticFilter') {
474
521
  return v_error === undefined ? null : v_error;
475
522
  }
476
523
 
477
- function validate$i(obj, path = 'FlattenFilter') {
524
+ function validate$u(obj, path = 'FlattenFilter') {
478
525
  const v_error = (() => {
479
526
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
480
527
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -495,7 +542,7 @@ function validate$i(obj, path = 'FlattenFilter') {
495
542
  for (let i = 0; i < obj_filters.length; i++) {
496
543
  const obj_filters_item = obj_filters[i];
497
544
  const path_filters_item = path_filters + '[' + i + ']';
498
- const referencepath_filters_itemValidationError = validate$j(obj_filters_item, path_filters_item);
545
+ const referencepath_filters_itemValidationError = validate$v(obj_filters_item, path_filters_item);
499
546
  if (referencepath_filters_itemValidationError !== null) {
500
547
  let message = 'Object doesn\'t match SemanticFilter (at "' + path_filters_item + '")\n';
501
548
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -507,7 +554,7 @@ function validate$i(obj, path = 'FlattenFilter') {
507
554
  return v_error === undefined ? null : v_error;
508
555
  }
509
556
 
510
- function validate$h(obj, path = 'MetricInstance') {
557
+ function validate$t(obj, path = 'MetricInstance') {
511
558
  const v_error = (() => {
512
559
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
513
560
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -521,7 +568,7 @@ function validate$h(obj, path = 'MetricInstance') {
521
568
  for (let i = 0; i < obj_filters.length; i++) {
522
569
  const obj_filters_item = obj_filters[i];
523
570
  const path_filters_item = path_filters + '[' + i + ']';
524
- const referencepath_filters_itemValidationError = validate$l(obj_filters_item, path_filters_item);
571
+ const referencepath_filters_itemValidationError = validate$y(obj_filters_item, path_filters_item);
525
572
  if (referencepath_filters_itemValidationError !== null) {
526
573
  let message = 'Object doesn\'t match Filter (at "' + path_filters_item + '")\n';
527
574
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -531,25 +578,27 @@ function validate$h(obj, path = 'MetricInstance') {
531
578
  }
532
579
  const obj_measurementPeriod = obj.measurementPeriod;
533
580
  const path_measurementPeriod = path + '.measurementPeriod';
534
- const referencepath_measurementPeriodValidationError = validate$k(obj_measurementPeriod, path_measurementPeriod);
581
+ const referencepath_measurementPeriodValidationError = validate$w(obj_measurementPeriod, path_measurementPeriod);
535
582
  if (referencepath_measurementPeriodValidationError !== null) {
536
583
  let message = 'Object doesn\'t match MeasurementPeriod (at "' + path_measurementPeriod + '")\n';
537
584
  message += referencepath_measurementPeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
538
585
  return new TypeError(message);
539
586
  }
540
- const obj_semanticFilter = obj.semanticFilter;
541
- const path_semanticFilter = path + '.semanticFilter';
542
- const referencepath_semanticFilterValidationError = validate$i(obj_semanticFilter, path_semanticFilter);
543
- if (referencepath_semanticFilterValidationError !== null) {
544
- let message = 'Object doesn\'t match FlattenFilter (at "' + path_semanticFilter + '")\n';
545
- message += referencepath_semanticFilterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
546
- return new TypeError(message);
587
+ if (obj.semanticFilter !== undefined) {
588
+ const obj_semanticFilter = obj.semanticFilter;
589
+ const path_semanticFilter = path + '.semanticFilter';
590
+ const referencepath_semanticFilterValidationError = validate$u(obj_semanticFilter, path_semanticFilter);
591
+ if (referencepath_semanticFilterValidationError !== null) {
592
+ let message = 'Object doesn\'t match FlattenFilter (at "' + path_semanticFilter + '")\n';
593
+ message += referencepath_semanticFilterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
594
+ return new TypeError(message);
595
+ }
547
596
  }
548
597
  })();
549
598
  return v_error === undefined ? null : v_error;
550
599
  }
551
600
 
552
- function validate$g(obj, path = 'CompareConfig') {
601
+ function validate$s(obj, path = 'CompareConfig') {
553
602
  const v_error = (() => {
554
603
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
555
604
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -565,7 +614,7 @@ function validate$g(obj, path = 'CompareConfig') {
565
614
  return v_error === undefined ? null : v_error;
566
615
  }
567
616
 
568
- function validate$f(obj, path = 'Measure') {
617
+ function validate$r(obj, path = 'Measure') {
569
618
  const v_error = (() => {
570
619
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
571
620
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -579,7 +628,7 @@ function validate$f(obj, path = 'Measure') {
579
628
  }
580
629
  const obj_field = obj.field;
581
630
  const path_field = path + '.field';
582
- const referencepath_fieldValidationError = validate$p(obj_field, path_field);
631
+ const referencepath_fieldValidationError = validate$C(obj_field, path_field);
583
632
  if (referencepath_fieldValidationError !== null) {
584
633
  let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
585
634
  message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -589,7 +638,7 @@ function validate$f(obj, path = 'Measure') {
589
638
  return v_error === undefined ? null : v_error;
590
639
  }
591
640
 
592
- function validate$e(obj, path = 'SemanticDataModel') {
641
+ function validate$q(obj, path = 'SemanticDataModel') {
593
642
  const v_error = (() => {
594
643
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
595
644
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -605,14 +654,14 @@ function validate$e(obj, path = 'SemanticDataModel') {
605
654
  return v_error === undefined ? null : v_error;
606
655
  }
607
656
 
608
- function validate$d(obj, path = 'TimeDimension') {
657
+ function validate$p(obj, path = 'TimeDimension') {
609
658
  const v_error = (() => {
610
659
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
611
660
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
612
661
  }
613
662
  const obj_field = obj.field;
614
663
  const path_field = path + '.field';
615
- const referencepath_fieldValidationError = validate$p(obj_field, path_field);
664
+ const referencepath_fieldValidationError = validate$C(obj_field, path_field);
616
665
  if (referencepath_fieldValidationError !== null) {
617
666
  let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
618
667
  message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -622,14 +671,14 @@ function validate$d(obj, path = 'TimeDimension') {
622
671
  return v_error === undefined ? null : v_error;
623
672
  }
624
673
 
625
- function validate$c(obj, path = 'MetricDefinition') {
674
+ function validate$o(obj, path = 'MetricDefinition') {
626
675
  const v_error = (() => {
627
676
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
628
677
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
629
678
  }
630
679
  const obj_comparison = obj.comparison;
631
680
  const path_comparison = path + '.comparison';
632
- const referencepath_comparisonValidationError = validate$g(obj_comparison, path_comparison);
681
+ const referencepath_comparisonValidationError = validate$s(obj_comparison, path_comparison);
633
682
  if (referencepath_comparisonValidationError !== null) {
634
683
  let message = 'Object doesn\'t match CompareConfig (at "' + path_comparison + '")\n';
635
684
  message += referencepath_comparisonValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -644,7 +693,7 @@ function validate$c(obj, path = 'MetricDefinition') {
644
693
  for (let i = 0; i < obj_filters.length; i++) {
645
694
  const obj_filters_item = obj_filters[i];
646
695
  const path_filters_item = path_filters + '[' + i + ']';
647
- const referencepath_filters_itemValidationError = validate$l(obj_filters_item, path_filters_item);
696
+ const referencepath_filters_itemValidationError = validate$y(obj_filters_item, path_filters_item);
648
697
  if (referencepath_filters_itemValidationError !== null) {
649
698
  let message = 'Object doesn\'t match Filter (at "' + path_filters_item + '")\n';
650
699
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -654,7 +703,7 @@ function validate$c(obj, path = 'MetricDefinition') {
654
703
  }
655
704
  const obj_measure = obj.measure;
656
705
  const path_measure = path + '.measure';
657
- const referencepath_measureValidationError = validate$f(obj_measure, path_measure);
706
+ const referencepath_measureValidationError = validate$r(obj_measure, path_measure);
658
707
  if (referencepath_measureValidationError !== null) {
659
708
  let message = 'Object doesn\'t match Measure (at "' + path_measure + '")\n';
660
709
  message += referencepath_measureValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -669,7 +718,7 @@ function validate$c(obj, path = 'MetricDefinition') {
669
718
  }
670
719
  const obj_semanticDataModel = obj.semanticDataModel;
671
720
  const path_semanticDataModel = path + '.semanticDataModel';
672
- const referencepath_semanticDataModelValidationError = validate$e(obj_semanticDataModel, path_semanticDataModel);
721
+ const referencepath_semanticDataModelValidationError = validate$q(obj_semanticDataModel, path_semanticDataModel);
673
722
  if (referencepath_semanticDataModelValidationError !== null) {
674
723
  let message = 'Object doesn\'t match SemanticDataModel (at "' + path_semanticDataModel + '")\n';
675
724
  message += referencepath_semanticDataModelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -678,13 +727,16 @@ function validate$c(obj, path = 'MetricDefinition') {
678
727
  if (obj.semanticFilter !== undefined) {
679
728
  const obj_semanticFilter = obj.semanticFilter;
680
729
  const path_semanticFilter = path + '.semanticFilter';
681
- if (obj_semanticFilter === undefined) {
682
- return new TypeError('Expected "defined" but received "' + typeof obj_semanticFilter + '" (at "' + path_semanticFilter + '")');
730
+ const referencepath_semanticFilterValidationError = validate$u(obj_semanticFilter, path_semanticFilter);
731
+ if (referencepath_semanticFilterValidationError !== null) {
732
+ let message = 'Object doesn\'t match FlattenFilter (at "' + path_semanticFilter + '")\n';
733
+ message += referencepath_semanticFilterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
734
+ return new TypeError(message);
683
735
  }
684
736
  }
685
737
  const obj_timeDimension = obj.timeDimension;
686
738
  const path_timeDimension = path + '.timeDimension';
687
- const referencepath_timeDimensionValidationError = validate$d(obj_timeDimension, path_timeDimension);
739
+ const referencepath_timeDimensionValidationError = validate$p(obj_timeDimension, path_timeDimension);
688
740
  if (referencepath_timeDimensionValidationError !== null) {
689
741
  let message = 'Object doesn\'t match TimeDimension (at "' + path_timeDimension + '")\n';
690
742
  message += referencepath_timeDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -694,7 +746,7 @@ function validate$c(obj, path = 'MetricDefinition') {
694
746
  return v_error === undefined ? null : v_error;
695
747
  }
696
748
 
697
- function validate$b(obj, path = 'RepresentationOptions_NumberUnits') {
749
+ function validate$n(obj, path = 'RepresentationOptions_NumberUnits') {
698
750
  const v_error = (() => {
699
751
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
700
752
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -717,14 +769,14 @@ function validate$b(obj, path = 'RepresentationOptions_NumberUnits') {
717
769
  return v_error === undefined ? null : v_error;
718
770
  }
719
771
 
720
- function validate$a(obj, path = 'RepresentationOptions') {
772
+ function validate$m(obj, path = 'RepresentationOptions') {
721
773
  const v_error = (() => {
722
774
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
723
775
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
724
776
  }
725
777
  const obj_numberUnits = obj.numberUnits;
726
778
  const path_numberUnits = path + '.numberUnits';
727
- const referencepath_numberUnitsValidationError = validate$b(obj_numberUnits, path_numberUnits);
779
+ const referencepath_numberUnitsValidationError = validate$n(obj_numberUnits, path_numberUnits);
728
780
  if (referencepath_numberUnitsValidationError !== null) {
729
781
  let message = 'Object doesn\'t match RepresentationOptions_NumberUnits (at "' + path_numberUnits + '")\n';
730
782
  message += referencepath_numberUnitsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -748,14 +800,14 @@ function validate$a(obj, path = 'RepresentationOptions') {
748
800
  return v_error === undefined ? null : v_error;
749
801
  }
750
802
 
751
- function validate$9(obj, path = 'InputMetric') {
803
+ function validate$l(obj, path = 'InputMetric') {
752
804
  const v_error = (() => {
753
805
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
754
806
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
755
807
  }
756
808
  const obj_extensionOptions = obj.extensionOptions;
757
809
  const path_extensionOptions = path + '.extensionOptions';
758
- const referencepath_extensionOptionsValidationError = validate$t(obj_extensionOptions, path_extensionOptions);
810
+ const referencepath_extensionOptionsValidationError = validate$G(obj_extensionOptions, path_extensionOptions);
759
811
  if (referencepath_extensionOptionsValidationError !== null) {
760
812
  let message = 'Object doesn\'t match ExtensionOptions (at "' + path_extensionOptions + '")\n';
761
813
  message += referencepath_extensionOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -763,7 +815,7 @@ function validate$9(obj, path = 'InputMetric') {
763
815
  }
764
816
  const obj_insightsOptions = obj.insightsOptions;
765
817
  const path_insightsOptions = path + '.insightsOptions';
766
- const referencepath_insightsOptionsValidationError = validate$r(obj_insightsOptions, path_insightsOptions);
818
+ const referencepath_insightsOptionsValidationError = validate$E(obj_insightsOptions, path_insightsOptions);
767
819
  if (referencepath_insightsOptionsValidationError !== null) {
768
820
  let message = 'Object doesn\'t match InsightsOptions (at "' + path_insightsOptions + '")\n';
769
821
  message += referencepath_insightsOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -771,7 +823,7 @@ function validate$9(obj, path = 'InputMetric') {
771
823
  }
772
824
  const obj_instance = obj.instance;
773
825
  const path_instance = path + '.instance';
774
- const referencepath_instanceValidationError = validate$h(obj_instance, path_instance);
826
+ const referencepath_instanceValidationError = validate$t(obj_instance, path_instance);
775
827
  if (referencepath_instanceValidationError !== null) {
776
828
  let message = 'Object doesn\'t match MetricInstance (at "' + path_instance + '")\n';
777
829
  message += referencepath_instanceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -779,7 +831,7 @@ function validate$9(obj, path = 'InputMetric') {
779
831
  }
780
832
  const obj_metric = obj.metric;
781
833
  const path_metric = path + '.metric';
782
- const referencepath_metricValidationError = validate$c(obj_metric, path_metric);
834
+ const referencepath_metricValidationError = validate$o(obj_metric, path_metric);
783
835
  if (referencepath_metricValidationError !== null) {
784
836
  let message = 'Object doesn\'t match MetricDefinition (at "' + path_metric + '")\n';
785
837
  message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -787,7 +839,7 @@ function validate$9(obj, path = 'InputMetric') {
787
839
  }
788
840
  const obj_representationOptions = obj.representationOptions;
789
841
  const path_representationOptions = path + '.representationOptions';
790
- const referencepath_representationOptionsValidationError = validate$a(obj_representationOptions, path_representationOptions);
842
+ const referencepath_representationOptionsValidationError = validate$m(obj_representationOptions, path_representationOptions);
791
843
  if (referencepath_representationOptionsValidationError !== null) {
792
844
  let message = 'Object doesn\'t match RepresentationOptions (at "' + path_representationOptions + '")\n';
793
845
  message += referencepath_representationOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -797,14 +849,14 @@ function validate$9(obj, path = 'InputMetric') {
797
849
  return v_error === undefined ? null : v_error;
798
850
  }
799
851
 
800
- function validate$8(obj, path = 'InsightBundleInput') {
852
+ function validate$k(obj, path = 'InsightBundleInput') {
801
853
  const v_error = (() => {
802
854
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
803
855
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
804
856
  }
805
857
  const obj_metadata = obj.metadata;
806
858
  const path_metadata = path + '.metadata';
807
- const referencepath_metadataValidationError = validate$u(obj_metadata, path_metadata);
859
+ const referencepath_metadataValidationError = validate$H(obj_metadata, path_metadata);
808
860
  if (referencepath_metadataValidationError !== null) {
809
861
  let message = 'Object doesn\'t match MetricMetadata (at "' + path_metadata + '")\n';
810
862
  message += referencepath_metadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -812,7 +864,7 @@ function validate$8(obj, path = 'InsightBundleInput') {
812
864
  }
813
865
  const obj_metric = obj.metric;
814
866
  const path_metric = path + '.metric';
815
- const referencepath_metricValidationError = validate$9(obj_metric, path_metric);
867
+ const referencepath_metricValidationError = validate$l(obj_metric, path_metric);
816
868
  if (referencepath_metricValidationError !== null) {
817
869
  let message = 'Object doesn\'t match InputMetric (at "' + path_metric + '")\n';
818
870
  message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -822,7 +874,7 @@ function validate$8(obj, path = 'InsightBundleInput') {
822
874
  return v_error === undefined ? null : v_error;
823
875
  }
824
876
 
825
- function validate$7(obj, path = 'MetricInstanceInput') {
877
+ function validate$j(obj, path = 'MetricInstanceInput') {
826
878
  const v_error = (() => {
827
879
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
828
880
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -841,7 +893,7 @@ function validate$7(obj, path = 'MetricInstanceInput') {
841
893
  return v_error === undefined ? null : v_error;
842
894
  }
843
895
 
844
- function validate$6(obj, path = 'BatchInput') {
896
+ function validate$i(obj, path = 'BatchInput') {
845
897
  const v_error = (() => {
846
898
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
847
899
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -849,7 +901,7 @@ function validate$6(obj, path = 'BatchInput') {
849
901
  if (obj.bundleInput !== undefined) {
850
902
  const obj_bundleInput = obj.bundleInput;
851
903
  const path_bundleInput = path + '.bundleInput';
852
- const referencepath_bundleInputValidationError = validate$8(obj_bundleInput, path_bundleInput);
904
+ const referencepath_bundleInputValidationError = validate$k(obj_bundleInput, path_bundleInput);
853
905
  if (referencepath_bundleInputValidationError !== null) {
854
906
  let message = 'Object doesn\'t match InsightBundleInput (at "' + path_bundleInput + '")\n';
855
907
  message += referencepath_bundleInputValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -859,7 +911,7 @@ function validate$6(obj, path = 'BatchInput') {
859
911
  if (obj.metricInstanceInput !== undefined) {
860
912
  const obj_metricInstanceInput = obj.metricInstanceInput;
861
913
  const path_metricInstanceInput = path + '.metricInstanceInput';
862
- const referencepath_metricInstanceInputValidationError = validate$7(obj_metricInstanceInput, path_metricInstanceInput);
914
+ const referencepath_metricInstanceInputValidationError = validate$j(obj_metricInstanceInput, path_metricInstanceInput);
863
915
  if (referencepath_metricInstanceInputValidationError !== null) {
864
916
  let message = 'Object doesn\'t match MetricInstanceInput (at "' + path_metricInstanceInput + '")\n';
865
917
  message += referencepath_metricInstanceInputValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -870,8 +922,311 @@ function validate$6(obj, path = 'BatchInput') {
870
922
  return v_error === undefined ? null : v_error;
871
923
  }
872
924
 
873
- const VERSION$5 = "a8b8e8e21e2dc1b5b067efa90209dce3";
874
- function validate$5(obj, path = 'GenerateInsightBatchResponse') {
925
+ function validate$h(obj, path = 'InsightBundleOptions') {
926
+ const v_error = (() => {
927
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
928
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
929
+ }
930
+ if (obj.now !== undefined) {
931
+ const obj_now = obj.now;
932
+ const path_now = path + '.now';
933
+ if (typeof obj_now !== 'string') {
934
+ return new TypeError('Expected "string" but received "' + typeof obj_now + '" (at "' + path_now + '")');
935
+ }
936
+ }
937
+ if (obj.outputFormat !== undefined) {
938
+ const obj_outputFormat = obj.outputFormat;
939
+ const path_outputFormat = path + '.outputFormat';
940
+ if (typeof obj_outputFormat !== 'string') {
941
+ return new TypeError('Expected "string" but received "' + typeof obj_outputFormat + '" (at "' + path_outputFormat + '")');
942
+ }
943
+ }
944
+ if (obj.timeZone !== undefined) {
945
+ const obj_timeZone = obj.timeZone;
946
+ const path_timeZone = path + '.timeZone';
947
+ if (typeof obj_timeZone !== 'string') {
948
+ return new TypeError('Expected "string" but received "' + typeof obj_timeZone + '" (at "' + path_timeZone + '")');
949
+ }
950
+ }
951
+ })();
952
+ return v_error === undefined ? null : v_error;
953
+ }
954
+
955
+ function validate$g(obj, path = 'SummarizationOptions') {
956
+ const v_error = (() => {
957
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
958
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
959
+ }
960
+ if (obj.strategy !== undefined) {
961
+ const obj_strategy = obj.strategy;
962
+ const path_strategy = path + '.strategy';
963
+ if (typeof obj_strategy !== 'string') {
964
+ return new TypeError('Expected "string" but received "' + typeof obj_strategy + '" (at "' + path_strategy + '")');
965
+ }
966
+ }
967
+ })();
968
+ return v_error === undefined ? null : v_error;
969
+ }
970
+
971
+ function validate$f(obj, path = 'BatchOptions') {
972
+ const v_error = (() => {
973
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
974
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
975
+ }
976
+ if (obj.bundle !== undefined) {
977
+ const obj_bundle = obj.bundle;
978
+ const path_bundle = path + '.bundle';
979
+ const referencepath_bundleValidationError = validate$h(obj_bundle, path_bundle);
980
+ if (referencepath_bundleValidationError !== null) {
981
+ let message = 'Object doesn\'t match InsightBundleOptions (at "' + path_bundle + '")\n';
982
+ message += referencepath_bundleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
983
+ return new TypeError(message);
984
+ }
985
+ }
986
+ if (obj.skipCache !== undefined) {
987
+ const obj_skipCache = obj.skipCache;
988
+ const path_skipCache = path + '.skipCache';
989
+ if (typeof obj_skipCache !== 'boolean') {
990
+ return new TypeError('Expected "boolean" but received "' + typeof obj_skipCache + '" (at "' + path_skipCache + '")');
991
+ }
992
+ }
993
+ if (obj.summarization !== undefined) {
994
+ const obj_summarization = obj.summarization;
995
+ const path_summarization = path + '.summarization';
996
+ const referencepath_summarizationValidationError = validate$g(obj_summarization, path_summarization);
997
+ if (referencepath_summarizationValidationError !== null) {
998
+ let message = 'Object doesn\'t match SummarizationOptions (at "' + path_summarization + '")\n';
999
+ message += referencepath_summarizationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1000
+ return new TypeError(message);
1001
+ }
1002
+ }
1003
+ })();
1004
+ return v_error === undefined ? null : v_error;
1005
+ }
1006
+
1007
+ const VERSION$e = "07a8c889542dbad6f958515513d4e3fb";
1008
+ function validate$e(obj, path = 'Error') {
1009
+ const v_error = (() => {
1010
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1011
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1012
+ }
1013
+ if (obj.code !== undefined) {
1014
+ const obj_code = obj.code;
1015
+ const path_code = path + '.code';
1016
+ if (typeof obj_code !== 'string') {
1017
+ return new TypeError('Expected "string" but received "' + typeof obj_code + '" (at "' + path_code + '")');
1018
+ }
1019
+ }
1020
+ if (obj.message !== undefined) {
1021
+ const obj_message = obj.message;
1022
+ const path_message = path + '.message';
1023
+ if (typeof obj_message !== 'string') {
1024
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
1025
+ }
1026
+ }
1027
+ })();
1028
+ return v_error === undefined ? null : v_error;
1029
+ }
1030
+ const select$i = function ErrorSelect() {
1031
+ return {
1032
+ kind: 'Fragment',
1033
+ version: VERSION$e,
1034
+ private: [],
1035
+ selections: [
1036
+ {
1037
+ name: 'code',
1038
+ kind: 'Scalar',
1039
+ required: false
1040
+ },
1041
+ {
1042
+ name: 'message',
1043
+ kind: 'Scalar',
1044
+ required: false
1045
+ }
1046
+ ]
1047
+ };
1048
+ };
1049
+ function equals$e(existing, incoming) {
1050
+ const existing_code = existing.code;
1051
+ const incoming_code = incoming.code;
1052
+ // if at least one of these optionals is defined
1053
+ if (existing_code !== undefined || incoming_code !== undefined) {
1054
+ // if one of these is not defined we know the other is defined and therefore
1055
+ // not equal
1056
+ if (existing_code === undefined || incoming_code === undefined) {
1057
+ return false;
1058
+ }
1059
+ if (!(existing_code === incoming_code)) {
1060
+ return false;
1061
+ }
1062
+ }
1063
+ const existing_message = existing.message;
1064
+ const incoming_message = incoming.message;
1065
+ // if at least one of these optionals is defined
1066
+ if (existing_message !== undefined || incoming_message !== undefined) {
1067
+ // if one of these is not defined we know the other is defined and therefore
1068
+ // not equal
1069
+ if (existing_message === undefined || incoming_message === undefined) {
1070
+ return false;
1071
+ }
1072
+ if (!(existing_message === incoming_message)) {
1073
+ return false;
1074
+ }
1075
+ }
1076
+ return true;
1077
+ }
1078
+
1079
+ const VERSION$d = "c4ce5385f4ed571b518d799c4e627709";
1080
+ function validate$d(obj, path = 'Summary') {
1081
+ const v_error = (() => {
1082
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1083
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1084
+ }
1085
+ const obj_generationId = obj.generationId;
1086
+ const path_generationId = path + '.generationId';
1087
+ if (typeof obj_generationId !== 'string') {
1088
+ return new TypeError('Expected "string" but received "' + typeof obj_generationId + '" (at "' + path_generationId + '")');
1089
+ }
1090
+ const obj_markup = obj.markup;
1091
+ const path_markup = path + '.markup';
1092
+ if (typeof obj_markup !== 'string') {
1093
+ return new TypeError('Expected "string" but received "' + typeof obj_markup + '" (at "' + path_markup + '")');
1094
+ }
1095
+ const obj_strategy = obj.strategy;
1096
+ const path_strategy = path + '.strategy';
1097
+ if (typeof obj_strategy !== 'string') {
1098
+ return new TypeError('Expected "string" but received "' + typeof obj_strategy + '" (at "' + path_strategy + '")');
1099
+ }
1100
+ const obj_timestamp = obj.timestamp;
1101
+ const path_timestamp = path + '.timestamp';
1102
+ if (typeof obj_timestamp !== 'string') {
1103
+ return new TypeError('Expected "string" but received "' + typeof obj_timestamp + '" (at "' + path_timestamp + '")');
1104
+ }
1105
+ })();
1106
+ return v_error === undefined ? null : v_error;
1107
+ }
1108
+ const select$h = function SummarySelect() {
1109
+ return {
1110
+ kind: 'Fragment',
1111
+ version: VERSION$d,
1112
+ private: [],
1113
+ selections: [
1114
+ {
1115
+ name: 'generationId',
1116
+ kind: 'Scalar'
1117
+ },
1118
+ {
1119
+ name: 'markup',
1120
+ kind: 'Scalar'
1121
+ },
1122
+ {
1123
+ name: 'strategy',
1124
+ kind: 'Scalar'
1125
+ },
1126
+ {
1127
+ name: 'timestamp',
1128
+ kind: 'Scalar'
1129
+ }
1130
+ ]
1131
+ };
1132
+ };
1133
+ function equals$d(existing, incoming) {
1134
+ const existing_generationId = existing.generationId;
1135
+ const incoming_generationId = incoming.generationId;
1136
+ if (!(existing_generationId === incoming_generationId)) {
1137
+ return false;
1138
+ }
1139
+ const existing_markup = existing.markup;
1140
+ const incoming_markup = incoming.markup;
1141
+ if (!(existing_markup === incoming_markup)) {
1142
+ return false;
1143
+ }
1144
+ const existing_strategy = existing.strategy;
1145
+ const incoming_strategy = incoming.strategy;
1146
+ if (!(existing_strategy === incoming_strategy)) {
1147
+ return false;
1148
+ }
1149
+ const existing_timestamp = existing.timestamp;
1150
+ const incoming_timestamp = incoming.timestamp;
1151
+ if (!(existing_timestamp === incoming_timestamp)) {
1152
+ return false;
1153
+ }
1154
+ return true;
1155
+ }
1156
+
1157
+ const VERSION$c = "fc433e1c68019470090193fa4fdf976f";
1158
+ function validate$c(obj, path = 'SummaryResponse') {
1159
+ const v_error = (() => {
1160
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1161
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1162
+ }
1163
+ if (obj.error !== undefined) {
1164
+ const obj_error = obj.error;
1165
+ const path_error = path + '.error';
1166
+ const referencepath_errorValidationError = validate$e(obj_error, path_error);
1167
+ if (referencepath_errorValidationError !== null) {
1168
+ let message = 'Object doesn\'t match Error (at "' + path_error + '")\n';
1169
+ message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1170
+ return new TypeError(message);
1171
+ }
1172
+ }
1173
+ const obj_result = obj.result;
1174
+ const path_result = path + '.result';
1175
+ const referencepath_resultValidationError = validate$d(obj_result, path_result);
1176
+ if (referencepath_resultValidationError !== null) {
1177
+ let message = 'Object doesn\'t match Summary (at "' + path_result + '")\n';
1178
+ message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1179
+ return new TypeError(message);
1180
+ }
1181
+ })();
1182
+ return v_error === undefined ? null : v_error;
1183
+ }
1184
+ const select$g = function SummaryResponseSelect() {
1185
+ const { selections: Error__selections, opaque: Error__opaque, } = select$i();
1186
+ const { selections: Summary__selections, opaque: Summary__opaque, } = select$h();
1187
+ return {
1188
+ kind: 'Fragment',
1189
+ version: VERSION$c,
1190
+ private: [],
1191
+ selections: [
1192
+ {
1193
+ name: 'error',
1194
+ kind: 'Object',
1195
+ selections: Error__selections,
1196
+ required: false
1197
+ },
1198
+ {
1199
+ name: 'result',
1200
+ kind: 'Object',
1201
+ selections: Summary__selections
1202
+ }
1203
+ ]
1204
+ };
1205
+ };
1206
+ function equals$c(existing, incoming) {
1207
+ const existing_error = existing.error;
1208
+ const incoming_error = incoming.error;
1209
+ // if at least one of these optionals is defined
1210
+ if (existing_error !== undefined || incoming_error !== undefined) {
1211
+ // if one of these is not defined we know the other is defined and therefore
1212
+ // not equal
1213
+ if (existing_error === undefined || incoming_error === undefined) {
1214
+ return false;
1215
+ }
1216
+ if (!(equals$e(existing_error, incoming_error))) {
1217
+ return false;
1218
+ }
1219
+ }
1220
+ const existing_result = existing.result;
1221
+ const incoming_result = incoming.result;
1222
+ if (!(equals$d(existing_result, incoming_result))) {
1223
+ return false;
1224
+ }
1225
+ return true;
1226
+ }
1227
+
1228
+ const VERSION$b = "18d65084646c870abf335d268675999e";
1229
+ function validate$b(obj, path = 'GenerateInsightBatchResponse') {
875
1230
  const v_error = (() => {
876
1231
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
877
1232
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -888,58 +1243,905 @@ function validate$5(obj, path = 'GenerateInsightBatchResponse') {
888
1243
  return new TypeError('Expected "boolean" but received "' + typeof obj_generatingSummary + '" (at "' + path_generatingSummary + '")');
889
1244
  }
890
1245
  }
891
- if (obj.summary !== undefined) {
892
- const obj_summary = obj.summary;
893
- const path_summary = path + '.summary';
894
- if (obj_summary === undefined) {
895
- return new TypeError('Expected "defined" but received "' + typeof obj_summary + '" (at "' + path_summary + '")');
1246
+ if (obj.summary !== undefined) {
1247
+ const obj_summary = obj.summary;
1248
+ const path_summary = path + '.summary';
1249
+ const referencepath_summaryValidationError = validate$c(obj_summary, path_summary);
1250
+ if (referencepath_summaryValidationError !== null) {
1251
+ let message = 'Object doesn\'t match SummaryResponse (at "' + path_summary + '")\n';
1252
+ message += referencepath_summaryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1253
+ return new TypeError(message);
1254
+ }
1255
+ }
1256
+ if (obj.timestamp !== undefined) {
1257
+ const obj_timestamp = obj.timestamp;
1258
+ const path_timestamp = path + '.timestamp';
1259
+ if (typeof obj_timestamp !== 'string') {
1260
+ return new TypeError('Expected "string" but received "' + typeof obj_timestamp + '" (at "' + path_timestamp + '")');
1261
+ }
1262
+ }
1263
+ })();
1264
+ return v_error === undefined ? null : v_error;
1265
+ }
1266
+ const RepresentationType$3 = 'GenerateInsightBatchResponse';
1267
+ function keyBuilder$5(luvio, config) {
1268
+ return keyPrefix + '::' + RepresentationType$3 + ':' + config.batchid;
1269
+ }
1270
+ function keyBuilderFromType$3(luvio, object) {
1271
+ const keyParams = {
1272
+ batchid: object.batchId
1273
+ };
1274
+ return keyBuilder$5(luvio, keyParams);
1275
+ }
1276
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
1277
+ return input;
1278
+ }
1279
+ const select$f = function GenerateInsightBatchResponseSelect() {
1280
+ const { selections: SummaryResponse__selections, opaque: SummaryResponse__opaque, } = select$g();
1281
+ return {
1282
+ kind: 'Fragment',
1283
+ version: VERSION$b,
1284
+ private: [],
1285
+ selections: [
1286
+ {
1287
+ name: 'batchId',
1288
+ kind: 'Scalar'
1289
+ },
1290
+ {
1291
+ name: 'generatingSummary',
1292
+ kind: 'Scalar',
1293
+ required: false
1294
+ },
1295
+ {
1296
+ name: 'summary',
1297
+ kind: 'Object',
1298
+ selections: SummaryResponse__selections,
1299
+ required: false
1300
+ },
1301
+ {
1302
+ name: 'timestamp',
1303
+ kind: 'Scalar',
1304
+ required: false
1305
+ }
1306
+ ]
1307
+ };
1308
+ };
1309
+ function equals$b(existing, incoming) {
1310
+ const existing_generatingSummary = existing.generatingSummary;
1311
+ const incoming_generatingSummary = incoming.generatingSummary;
1312
+ // if at least one of these optionals is defined
1313
+ if (existing_generatingSummary !== undefined || incoming_generatingSummary !== undefined) {
1314
+ // if one of these is not defined we know the other is defined and therefore
1315
+ // not equal
1316
+ if (existing_generatingSummary === undefined || incoming_generatingSummary === undefined) {
1317
+ return false;
1318
+ }
1319
+ if (!(existing_generatingSummary === incoming_generatingSummary)) {
1320
+ return false;
1321
+ }
1322
+ }
1323
+ const existing_batchId = existing.batchId;
1324
+ const incoming_batchId = incoming.batchId;
1325
+ if (!(existing_batchId === incoming_batchId)) {
1326
+ return false;
1327
+ }
1328
+ const existing_timestamp = existing.timestamp;
1329
+ const incoming_timestamp = incoming.timestamp;
1330
+ // if at least one of these optionals is defined
1331
+ if (existing_timestamp !== undefined || incoming_timestamp !== undefined) {
1332
+ // if one of these is not defined we know the other is defined and therefore
1333
+ // not equal
1334
+ if (existing_timestamp === undefined || incoming_timestamp === undefined) {
1335
+ return false;
1336
+ }
1337
+ if (!(existing_timestamp === incoming_timestamp)) {
1338
+ return false;
1339
+ }
1340
+ }
1341
+ const existing_summary = existing.summary;
1342
+ const incoming_summary = incoming.summary;
1343
+ // if at least one of these optionals is defined
1344
+ if (existing_summary !== undefined || incoming_summary !== undefined) {
1345
+ // if one of these is not defined we know the other is defined and therefore
1346
+ // not equal
1347
+ if (existing_summary === undefined || incoming_summary === undefined) {
1348
+ return false;
1349
+ }
1350
+ if (!(equals$c(existing_summary, incoming_summary))) {
1351
+ return false;
1352
+ }
1353
+ }
1354
+ return true;
1355
+ }
1356
+ const ingest$3 = function GenerateInsightBatchResponseIngest(input, path, luvio, store, timestamp) {
1357
+ if (process.env.NODE_ENV !== 'production') {
1358
+ const validateError = validate$b(input);
1359
+ if (validateError !== null) {
1360
+ throw validateError;
1361
+ }
1362
+ }
1363
+ const key = keyBuilderFromType$3(luvio, input);
1364
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
1365
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "analytics-insights", VERSION$b, RepresentationType$3, equals$b);
1366
+ return createLink(key);
1367
+ };
1368
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1369
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1370
+ const rootKey = keyBuilderFromType$3(luvio, input);
1371
+ rootKeySet.set(rootKey, {
1372
+ namespace: keyPrefix,
1373
+ representationName: RepresentationType$3,
1374
+ mergeable: false
1375
+ });
1376
+ }
1377
+
1378
+ function select$e(luvio, params) {
1379
+ return select$f();
1380
+ }
1381
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
1382
+ getTypeCacheKeys$3(storeKeyMap, luvio, response);
1383
+ }
1384
+ function ingestSuccess$3(luvio, resourceParams, response) {
1385
+ const { body } = response;
1386
+ const key = keyBuilderFromType$3(luvio, body);
1387
+ luvio.storeIngest(key, ingest$3, body);
1388
+ const snapshot = luvio.storeLookup({
1389
+ recordId: key,
1390
+ node: select$e(),
1391
+ variables: {},
1392
+ });
1393
+ if (process.env.NODE_ENV !== 'production') {
1394
+ if (snapshot.state !== 'Fulfilled') {
1395
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1396
+ }
1397
+ }
1398
+ deepFreeze(snapshot.data);
1399
+ return snapshot;
1400
+ }
1401
+ function createResourceRequest$3(config) {
1402
+ const headers = {};
1403
+ return {
1404
+ baseUri: 'api.salesforce.com',
1405
+ basePath: '/analytics/insights/v1/batches',
1406
+ method: 'post',
1407
+ body: config.body,
1408
+ urlParams: {},
1409
+ queryParams: {},
1410
+ headers,
1411
+ priority: 'normal',
1412
+ };
1413
+ }
1414
+
1415
+ const adapterName$3 = 'createInsightsBatch';
1416
+ const createInsightsBatch_ConfigPropertyMetadata = [
1417
+ generateParamConfigMetadata('batchInput', false, 2 /* Body */, 4 /* Unsupported */, true),
1418
+ generateParamConfigMetadata('options', false, 2 /* Body */, 4 /* Unsupported */),
1419
+ ];
1420
+ const createInsightsBatch_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createInsightsBatch_ConfigPropertyMetadata);
1421
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(createInsightsBatch_ConfigPropertyMetadata);
1422
+ function typeCheckConfig$3(untrustedConfig) {
1423
+ const config = {};
1424
+ const untrustedConfig_batchInput = untrustedConfig.batchInput;
1425
+ if (ArrayIsArray$1(untrustedConfig_batchInput)) {
1426
+ const untrustedConfig_batchInput_array = [];
1427
+ for (let i = 0, arrayLength = untrustedConfig_batchInput.length; i < arrayLength; i++) {
1428
+ const untrustedConfig_batchInput_item = untrustedConfig_batchInput[i];
1429
+ const referenceBatchInputValidationError = validate$i(untrustedConfig_batchInput_item);
1430
+ if (referenceBatchInputValidationError === null) {
1431
+ untrustedConfig_batchInput_array.push(untrustedConfig_batchInput_item);
1432
+ }
1433
+ }
1434
+ config.batchInput = untrustedConfig_batchInput_array;
1435
+ }
1436
+ const untrustedConfig_options = untrustedConfig.options;
1437
+ const referenceBatchOptionsValidationError = validate$f(untrustedConfig_options);
1438
+ if (referenceBatchOptionsValidationError === null) {
1439
+ config.options = untrustedConfig_options;
1440
+ }
1441
+ return config;
1442
+ }
1443
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
1444
+ if (!untrustedIsObject(untrustedConfig)) {
1445
+ return null;
1446
+ }
1447
+ if (process.env.NODE_ENV !== 'production') {
1448
+ validateConfig(untrustedConfig, configPropertyNames);
1449
+ }
1450
+ const config = typeCheckConfig$3(untrustedConfig);
1451
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1452
+ return null;
1453
+ }
1454
+ return config;
1455
+ }
1456
+ function buildNetworkSnapshot$3(luvio, config, options) {
1457
+ const resourceParams = createResourceParams$3(config);
1458
+ const request = createResourceRequest$3(resourceParams);
1459
+ return luvio.dispatchResourceRequest(request, options)
1460
+ .then((response) => {
1461
+ return luvio.handleSuccessResponse(() => {
1462
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response);
1463
+ return luvio.storeBroadcast().then(() => snapshot);
1464
+ }, () => {
1465
+ const cache = new StoreKeyMap();
1466
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
1467
+ return cache;
1468
+ });
1469
+ }, (response) => {
1470
+ deepFreeze(response);
1471
+ throw response;
1472
+ });
1473
+ }
1474
+ const createInsightsBatchAdapterFactory = (luvio) => {
1475
+ return function createInsightsBatch(untrustedConfig) {
1476
+ const config = validateAdapterConfig$3(untrustedConfig, createInsightsBatch_ConfigPropertyNames);
1477
+ // Invalid or incomplete config
1478
+ if (config === null) {
1479
+ throw new Error('Invalid config for "createInsightsBatch"');
1480
+ }
1481
+ return buildNetworkSnapshot$3(luvio, config);
1482
+ };
1483
+ };
1484
+
1485
+ const VERSION$a = "6b47d2ed35a900956ff58b7d8a527e7f";
1486
+ function validate$a(obj, path = 'InsightFeedbackMetadata') {
1487
+ const v_error = (() => {
1488
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1489
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1490
+ }
1491
+ if (obj.dimensionHash !== undefined) {
1492
+ const obj_dimensionHash = obj.dimensionHash;
1493
+ const path_dimensionHash = path + '.dimensionHash';
1494
+ if (typeof obj_dimensionHash !== 'string') {
1495
+ return new TypeError('Expected "string" but received "' + typeof obj_dimensionHash + '" (at "' + path_dimensionHash + '")');
1496
+ }
1497
+ }
1498
+ if (obj.score !== undefined) {
1499
+ obj.score;
1500
+ }
1501
+ if (obj.type !== undefined) {
1502
+ const obj_type = obj.type;
1503
+ const path_type = path + '.type';
1504
+ if (typeof obj_type !== 'string') {
1505
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
1506
+ }
1507
+ }
1508
+ })();
1509
+ return v_error === undefined ? null : v_error;
1510
+ }
1511
+ const select$d = function InsightFeedbackMetadataSelect() {
1512
+ return {
1513
+ kind: 'Fragment',
1514
+ version: VERSION$a,
1515
+ private: [],
1516
+ selections: [
1517
+ {
1518
+ name: 'dimensionHash',
1519
+ kind: 'Scalar',
1520
+ required: false
1521
+ },
1522
+ {
1523
+ name: 'score',
1524
+ kind: 'Scalar',
1525
+ required: false
1526
+ },
1527
+ {
1528
+ name: 'type',
1529
+ kind: 'Scalar',
1530
+ required: false
1531
+ }
1532
+ ]
1533
+ };
1534
+ };
1535
+ function equals$a(existing, incoming) {
1536
+ const existing_dimensionHash = existing.dimensionHash;
1537
+ const incoming_dimensionHash = incoming.dimensionHash;
1538
+ // if at least one of these optionals is defined
1539
+ if (existing_dimensionHash !== undefined || incoming_dimensionHash !== undefined) {
1540
+ // if one of these is not defined we know the other is defined and therefore
1541
+ // not equal
1542
+ if (existing_dimensionHash === undefined || incoming_dimensionHash === undefined) {
1543
+ return false;
1544
+ }
1545
+ if (!(existing_dimensionHash === incoming_dimensionHash)) {
1546
+ return false;
1547
+ }
1548
+ }
1549
+ const existing_type = existing.type;
1550
+ const incoming_type = incoming.type;
1551
+ // if at least one of these optionals is defined
1552
+ if (existing_type !== undefined || incoming_type !== undefined) {
1553
+ // if one of these is not defined we know the other is defined and therefore
1554
+ // not equal
1555
+ if (existing_type === undefined || incoming_type === undefined) {
1556
+ return false;
1557
+ }
1558
+ if (!(existing_type === incoming_type)) {
1559
+ return false;
1560
+ }
1561
+ }
1562
+ const existing_score = existing.score;
1563
+ const incoming_score = incoming.score;
1564
+ // if at least one of these optionals is defined
1565
+ if (existing_score !== undefined || incoming_score !== undefined) {
1566
+ // if one of these is not defined we know the other is defined and therefore
1567
+ // not equal
1568
+ if (existing_score === undefined || incoming_score === undefined) {
1569
+ return false;
1570
+ }
1571
+ if (!(existing_score === incoming_score)) {
1572
+ return false;
1573
+ }
1574
+ }
1575
+ return true;
1576
+ }
1577
+
1578
+ const VERSION$9 = "be7014b0043386672b06a22807d7e549";
1579
+ function validate$9(obj, path = 'Insight') {
1580
+ const v_error = (() => {
1581
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1582
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1583
+ }
1584
+ if (obj.characterization !== undefined) {
1585
+ const obj_characterization = obj.characterization;
1586
+ const path_characterization = path + '.characterization';
1587
+ if (typeof obj_characterization !== 'string') {
1588
+ return new TypeError('Expected "string" but received "' + typeof obj_characterization + '" (at "' + path_characterization + '")');
1589
+ }
1590
+ }
1591
+ if (obj.facts !== undefined) {
1592
+ const obj_facts = obj.facts;
1593
+ const path_facts = path + '.facts';
1594
+ if (obj_facts === undefined) {
1595
+ return new TypeError('Expected "defined" but received "' + typeof obj_facts + '" (at "' + path_facts + '")');
1596
+ }
1597
+ }
1598
+ if (obj.id !== undefined) {
1599
+ const obj_id = obj.id;
1600
+ const path_id = path + '.id';
1601
+ if (typeof obj_id !== 'string') {
1602
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1603
+ }
1604
+ }
1605
+ const obj_insightFeedbackMetadata = obj.insightFeedbackMetadata;
1606
+ const path_insightFeedbackMetadata = path + '.insightFeedbackMetadata';
1607
+ const referencepath_insightFeedbackMetadataValidationError = validate$a(obj_insightFeedbackMetadata, path_insightFeedbackMetadata);
1608
+ if (referencepath_insightFeedbackMetadataValidationError !== null) {
1609
+ let message = 'Object doesn\'t match InsightFeedbackMetadata (at "' + path_insightFeedbackMetadata + '")\n';
1610
+ message += referencepath_insightFeedbackMetadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1611
+ return new TypeError(message);
1612
+ }
1613
+ if (obj.markup !== undefined) {
1614
+ const obj_markup = obj.markup;
1615
+ const path_markup = path + '.markup';
1616
+ if (typeof obj_markup !== 'string') {
1617
+ return new TypeError('Expected "string" but received "' + typeof obj_markup + '" (at "' + path_markup + '")');
1618
+ }
1619
+ }
1620
+ if (obj.question !== undefined) {
1621
+ const obj_question = obj.question;
1622
+ const path_question = path + '.question';
1623
+ if (typeof obj_question !== 'string') {
1624
+ return new TypeError('Expected "string" but received "' + typeof obj_question + '" (at "' + path_question + '")');
1625
+ }
1626
+ }
1627
+ if (obj.score !== undefined) {
1628
+ obj.score;
1629
+ }
1630
+ if (obj.type !== undefined) {
1631
+ const obj_type = obj.type;
1632
+ const path_type = path + '.type';
1633
+ if (typeof obj_type !== 'string') {
1634
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
1635
+ }
1636
+ }
1637
+ if (obj.version !== undefined) {
1638
+ const obj_version = obj.version;
1639
+ const path_version = path + '.version';
1640
+ if (typeof obj_version !== 'number' || (typeof obj_version === 'number' && Math.floor(obj_version) !== obj_version)) {
1641
+ return new TypeError('Expected "integer" but received "' + typeof obj_version + '" (at "' + path_version + '")');
1642
+ }
1643
+ }
1644
+ if (obj.viz !== undefined) {
1645
+ const obj_viz = obj.viz;
1646
+ const path_viz = path + '.viz';
1647
+ if (obj_viz === undefined) {
1648
+ return new TypeError('Expected "defined" but received "' + typeof obj_viz + '" (at "' + path_viz + '")');
1649
+ }
1650
+ }
1651
+ })();
1652
+ return v_error === undefined ? null : v_error;
1653
+ }
1654
+ const select$c = function InsightSelect() {
1655
+ const { selections: InsightFeedbackMetadata__selections, opaque: InsightFeedbackMetadata__opaque, } = select$d();
1656
+ return {
1657
+ kind: 'Fragment',
1658
+ version: VERSION$9,
1659
+ private: [],
1660
+ selections: [
1661
+ {
1662
+ name: 'characterization',
1663
+ kind: 'Scalar',
1664
+ required: false
1665
+ },
1666
+ {
1667
+ name: 'facts',
1668
+ kind: 'Object',
1669
+ // any
1670
+ },
1671
+ {
1672
+ name: 'id',
1673
+ kind: 'Scalar',
1674
+ required: false
1675
+ },
1676
+ {
1677
+ name: 'insightFeedbackMetadata',
1678
+ kind: 'Object',
1679
+ selections: InsightFeedbackMetadata__selections
1680
+ },
1681
+ {
1682
+ name: 'markup',
1683
+ kind: 'Scalar',
1684
+ required: false
1685
+ },
1686
+ {
1687
+ name: 'question',
1688
+ kind: 'Scalar',
1689
+ required: false
1690
+ },
1691
+ {
1692
+ name: 'score',
1693
+ kind: 'Scalar',
1694
+ required: false
1695
+ },
1696
+ {
1697
+ name: 'type',
1698
+ kind: 'Scalar',
1699
+ required: false
1700
+ },
1701
+ {
1702
+ name: 'version',
1703
+ kind: 'Scalar',
1704
+ required: false
1705
+ },
1706
+ {
1707
+ name: 'viz',
1708
+ kind: 'Object',
1709
+ // any
1710
+ }
1711
+ ]
1712
+ };
1713
+ };
1714
+ function equals$9(existing, incoming) {
1715
+ const existing_version = existing.version;
1716
+ const incoming_version = incoming.version;
1717
+ // if at least one of these optionals is defined
1718
+ if (existing_version !== undefined || incoming_version !== undefined) {
1719
+ // if one of these is not defined we know the other is defined and therefore
1720
+ // not equal
1721
+ if (existing_version === undefined || incoming_version === undefined) {
1722
+ return false;
1723
+ }
1724
+ if (!(existing_version === incoming_version)) {
1725
+ return false;
1726
+ }
1727
+ }
1728
+ const existing_characterization = existing.characterization;
1729
+ const incoming_characterization = incoming.characterization;
1730
+ // if at least one of these optionals is defined
1731
+ if (existing_characterization !== undefined || incoming_characterization !== undefined) {
1732
+ // if one of these is not defined we know the other is defined and therefore
1733
+ // not equal
1734
+ if (existing_characterization === undefined || incoming_characterization === undefined) {
1735
+ return false;
1736
+ }
1737
+ if (!(existing_characterization === incoming_characterization)) {
1738
+ return false;
1739
+ }
1740
+ }
1741
+ const existing_id = existing.id;
1742
+ const incoming_id = incoming.id;
1743
+ // if at least one of these optionals is defined
1744
+ if (existing_id !== undefined || incoming_id !== undefined) {
1745
+ // if one of these is not defined we know the other is defined and therefore
1746
+ // not equal
1747
+ if (existing_id === undefined || incoming_id === undefined) {
1748
+ return false;
1749
+ }
1750
+ if (!(existing_id === incoming_id)) {
1751
+ return false;
1752
+ }
1753
+ }
1754
+ const existing_markup = existing.markup;
1755
+ const incoming_markup = incoming.markup;
1756
+ // if at least one of these optionals is defined
1757
+ if (existing_markup !== undefined || incoming_markup !== undefined) {
1758
+ // if one of these is not defined we know the other is defined and therefore
1759
+ // not equal
1760
+ if (existing_markup === undefined || incoming_markup === undefined) {
1761
+ return false;
1762
+ }
1763
+ if (!(existing_markup === incoming_markup)) {
1764
+ return false;
1765
+ }
1766
+ }
1767
+ const existing_question = existing.question;
1768
+ const incoming_question = incoming.question;
1769
+ // if at least one of these optionals is defined
1770
+ if (existing_question !== undefined || incoming_question !== undefined) {
1771
+ // if one of these is not defined we know the other is defined and therefore
1772
+ // not equal
1773
+ if (existing_question === undefined || incoming_question === undefined) {
1774
+ return false;
1775
+ }
1776
+ if (!(existing_question === incoming_question)) {
1777
+ return false;
1778
+ }
1779
+ }
1780
+ const existing_type = existing.type;
1781
+ const incoming_type = incoming.type;
1782
+ // if at least one of these optionals is defined
1783
+ if (existing_type !== undefined || incoming_type !== undefined) {
1784
+ // if one of these is not defined we know the other is defined and therefore
1785
+ // not equal
1786
+ if (existing_type === undefined || incoming_type === undefined) {
1787
+ return false;
1788
+ }
1789
+ if (!(existing_type === incoming_type)) {
1790
+ return false;
1791
+ }
1792
+ }
1793
+ const existing_score = existing.score;
1794
+ const incoming_score = incoming.score;
1795
+ // if at least one of these optionals is defined
1796
+ if (existing_score !== undefined || incoming_score !== undefined) {
1797
+ // if one of these is not defined we know the other is defined and therefore
1798
+ // not equal
1799
+ if (existing_score === undefined || incoming_score === undefined) {
1800
+ return false;
1801
+ }
1802
+ if (!(existing_score === incoming_score)) {
1803
+ return false;
1804
+ }
1805
+ }
1806
+ const existing_facts = existing.facts;
1807
+ const incoming_facts = incoming.facts;
1808
+ // if at least one of these optionals is defined
1809
+ if (existing_facts !== undefined || incoming_facts !== undefined) {
1810
+ // if one of these is not defined we know the other is defined and therefore
1811
+ // not equal
1812
+ if (existing_facts === undefined || incoming_facts === undefined) {
1813
+ return false;
1814
+ }
1815
+ if (JSONStringify(incoming_facts) !== JSONStringify(existing_facts)) {
1816
+ return false;
1817
+ }
1818
+ }
1819
+ const existing_insightFeedbackMetadata = existing.insightFeedbackMetadata;
1820
+ const incoming_insightFeedbackMetadata = incoming.insightFeedbackMetadata;
1821
+ if (!(equals$a(existing_insightFeedbackMetadata, incoming_insightFeedbackMetadata))) {
1822
+ return false;
1823
+ }
1824
+ const existing_viz = existing.viz;
1825
+ const incoming_viz = incoming.viz;
1826
+ // if at least one of these optionals is defined
1827
+ if (existing_viz !== undefined || incoming_viz !== undefined) {
1828
+ // if one of these is not defined we know the other is defined and therefore
1829
+ // not equal
1830
+ if (existing_viz === undefined || incoming_viz === undefined) {
1831
+ return false;
1832
+ }
1833
+ if (JSONStringify(incoming_viz) !== JSONStringify(existing_viz)) {
1834
+ return false;
1835
+ }
1836
+ }
1837
+ return true;
1838
+ }
1839
+
1840
+ const VERSION$8 = "6707f0d0aa09112abbca1db5e32bb172";
1841
+ function validate$8(obj, path = 'InsightResponse') {
1842
+ const v_error = (() => {
1843
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1844
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1845
+ }
1846
+ if (obj.error !== undefined) {
1847
+ const obj_error = obj.error;
1848
+ const path_error = path + '.error';
1849
+ const referencepath_errorValidationError = validate$e(obj_error, path_error);
1850
+ if (referencepath_errorValidationError !== null) {
1851
+ let message = 'Object doesn\'t match Error (at "' + path_error + '")\n';
1852
+ message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1853
+ return new TypeError(message);
1854
+ }
1855
+ }
1856
+ if (obj.insightType !== undefined) {
1857
+ const obj_insightType = obj.insightType;
1858
+ const path_insightType = path + '.insightType';
1859
+ if (typeof obj_insightType !== 'string') {
1860
+ return new TypeError('Expected "string" but received "' + typeof obj_insightType + '" (at "' + path_insightType + '")');
1861
+ }
1862
+ }
1863
+ const obj_result = obj.result;
1864
+ const path_result = path + '.result';
1865
+ const referencepath_resultValidationError = validate$9(obj_result, path_result);
1866
+ if (referencepath_resultValidationError !== null) {
1867
+ let message = 'Object doesn\'t match Insight (at "' + path_result + '")\n';
1868
+ message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1869
+ return new TypeError(message);
1870
+ }
1871
+ })();
1872
+ return v_error === undefined ? null : v_error;
1873
+ }
1874
+ const select$b = function InsightResponseSelect() {
1875
+ const { selections: Error__selections, opaque: Error__opaque, } = select$i();
1876
+ const { selections: Insight__selections, opaque: Insight__opaque, } = select$c();
1877
+ return {
1878
+ kind: 'Fragment',
1879
+ version: VERSION$8,
1880
+ private: [],
1881
+ selections: [
1882
+ {
1883
+ name: 'error',
1884
+ kind: 'Object',
1885
+ selections: Error__selections,
1886
+ required: false
1887
+ },
1888
+ {
1889
+ name: 'insightType',
1890
+ kind: 'Scalar',
1891
+ required: false
1892
+ },
1893
+ {
1894
+ name: 'result',
1895
+ kind: 'Object',
1896
+ selections: Insight__selections
1897
+ }
1898
+ ]
1899
+ };
1900
+ };
1901
+ function equals$8(existing, incoming) {
1902
+ const existing_insightType = existing.insightType;
1903
+ const incoming_insightType = incoming.insightType;
1904
+ // if at least one of these optionals is defined
1905
+ if (existing_insightType !== undefined || incoming_insightType !== undefined) {
1906
+ // if one of these is not defined we know the other is defined and therefore
1907
+ // not equal
1908
+ if (existing_insightType === undefined || incoming_insightType === undefined) {
1909
+ return false;
1910
+ }
1911
+ if (!(existing_insightType === incoming_insightType)) {
1912
+ return false;
1913
+ }
1914
+ }
1915
+ const existing_error = existing.error;
1916
+ const incoming_error = incoming.error;
1917
+ // if at least one of these optionals is defined
1918
+ if (existing_error !== undefined || incoming_error !== undefined) {
1919
+ // if one of these is not defined we know the other is defined and therefore
1920
+ // not equal
1921
+ if (existing_error === undefined || incoming_error === undefined) {
1922
+ return false;
1923
+ }
1924
+ if (!(equals$e(existing_error, incoming_error))) {
1925
+ return false;
1926
+ }
1927
+ }
1928
+ const existing_result = existing.result;
1929
+ const incoming_result = incoming.result;
1930
+ if (!(equals$9(existing_result, incoming_result))) {
1931
+ return false;
1932
+ }
1933
+ return true;
1934
+ }
1935
+
1936
+ const VERSION$7 = "490320cd71bdb83b6c4dcfe5b2b48b25";
1937
+ function validate$7(obj, path = 'Overview') {
1938
+ const v_error = (() => {
1939
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1940
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1941
+ }
1942
+ if (obj.viz !== undefined) {
1943
+ const obj_viz = obj.viz;
1944
+ const path_viz = path + '.viz';
1945
+ if (obj_viz === undefined) {
1946
+ return new TypeError('Expected "defined" but received "' + typeof obj_viz + '" (at "' + path_viz + '")');
1947
+ }
1948
+ }
1949
+ })();
1950
+ return v_error === undefined ? null : v_error;
1951
+ }
1952
+ const select$a = function OverviewSelect() {
1953
+ return {
1954
+ kind: 'Fragment',
1955
+ version: VERSION$7,
1956
+ private: [],
1957
+ selections: [
1958
+ {
1959
+ name: 'viz',
1960
+ kind: 'Object',
1961
+ // any
1962
+ }
1963
+ ]
1964
+ };
1965
+ };
1966
+ function equals$7(existing, incoming) {
1967
+ const existing_viz = existing.viz;
1968
+ const incoming_viz = incoming.viz;
1969
+ // if at least one of these optionals is defined
1970
+ if (existing_viz !== undefined || incoming_viz !== undefined) {
1971
+ // if one of these is not defined we know the other is defined and therefore
1972
+ // not equal
1973
+ if (existing_viz === undefined || incoming_viz === undefined) {
1974
+ return false;
1975
+ }
1976
+ if (JSONStringify(incoming_viz) !== JSONStringify(existing_viz)) {
1977
+ return false;
1978
+ }
1979
+ }
1980
+ return true;
1981
+ }
1982
+
1983
+ const VERSION$6 = "ac3296a9832f46fda66420bc753d8c61";
1984
+ function validate$6(obj, path = 'OverviewResponse') {
1985
+ const v_error = (() => {
1986
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1987
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1988
+ }
1989
+ if (obj.error !== undefined) {
1990
+ const obj_error = obj.error;
1991
+ const path_error = path + '.error';
1992
+ const referencepath_errorValidationError = validate$e(obj_error, path_error);
1993
+ if (referencepath_errorValidationError !== null) {
1994
+ let message = 'Object doesn\'t match Error (at "' + path_error + '")\n';
1995
+ message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1996
+ return new TypeError(message);
1997
+ }
1998
+ }
1999
+ const obj_result = obj.result;
2000
+ const path_result = path + '.result';
2001
+ const referencepath_resultValidationError = validate$7(obj_result, path_result);
2002
+ if (referencepath_resultValidationError !== null) {
2003
+ let message = 'Object doesn\'t match Overview (at "' + path_result + '")\n';
2004
+ message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2005
+ return new TypeError(message);
2006
+ }
2007
+ })();
2008
+ return v_error === undefined ? null : v_error;
2009
+ }
2010
+ const select$9 = function OverviewResponseSelect() {
2011
+ const { selections: Error__selections, opaque: Error__opaque, } = select$i();
2012
+ const { selections: Overview__selections, opaque: Overview__opaque, } = select$a();
2013
+ return {
2014
+ kind: 'Fragment',
2015
+ version: VERSION$6,
2016
+ private: [],
2017
+ selections: [
2018
+ {
2019
+ name: 'error',
2020
+ kind: 'Object',
2021
+ selections: Error__selections,
2022
+ required: false
2023
+ },
2024
+ {
2025
+ name: 'result',
2026
+ kind: 'Object',
2027
+ selections: Overview__selections
2028
+ }
2029
+ ]
2030
+ };
2031
+ };
2032
+ function equals$6(existing, incoming) {
2033
+ const existing_error = existing.error;
2034
+ const incoming_error = incoming.error;
2035
+ // if at least one of these optionals is defined
2036
+ if (existing_error !== undefined || incoming_error !== undefined) {
2037
+ // if one of these is not defined we know the other is defined and therefore
2038
+ // not equal
2039
+ if (existing_error === undefined || incoming_error === undefined) {
2040
+ return false;
2041
+ }
2042
+ if (!(equals$e(existing_error, incoming_error))) {
2043
+ return false;
2044
+ }
2045
+ }
2046
+ const existing_result = existing.result;
2047
+ const incoming_result = incoming.result;
2048
+ if (!(equals$7(existing_result, incoming_result))) {
2049
+ return false;
2050
+ }
2051
+ return true;
2052
+ }
2053
+
2054
+ const VERSION$5 = "a70a5e68e786c3f38efb73cc0812d394";
2055
+ function validate$5(obj, path = 'InsightGroup') {
2056
+ const v_error = (() => {
2057
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2058
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2059
+ }
2060
+ if (obj.error !== undefined) {
2061
+ const obj_error = obj.error;
2062
+ const path_error = path + '.error';
2063
+ const referencepath_errorValidationError = validate$e(obj_error, path_error);
2064
+ if (referencepath_errorValidationError !== null) {
2065
+ let message = 'Object doesn\'t match Error (at "' + path_error + '")\n';
2066
+ message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2067
+ return new TypeError(message);
2068
+ }
2069
+ }
2070
+ if (obj.insights !== undefined) {
2071
+ const obj_insights = obj.insights;
2072
+ const path_insights = path + '.insights';
2073
+ if (!ArrayIsArray(obj_insights)) {
2074
+ return new TypeError('Expected "array" but received "' + typeof obj_insights + '" (at "' + path_insights + '")');
2075
+ }
2076
+ for (let i = 0; i < obj_insights.length; i++) {
2077
+ const obj_insights_item = obj_insights[i];
2078
+ const path_insights_item = path_insights + '[' + i + ']';
2079
+ const referencepath_insights_itemValidationError = validate$8(obj_insights_item, path_insights_item);
2080
+ if (referencepath_insights_itemValidationError !== null) {
2081
+ let message = 'Object doesn\'t match InsightResponse (at "' + path_insights_item + '")\n';
2082
+ message += referencepath_insights_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2083
+ return new TypeError(message);
2084
+ }
2085
+ }
2086
+ }
2087
+ if (obj.overviews !== undefined) {
2088
+ const obj_overviews = obj.overviews;
2089
+ const path_overviews = path + '.overviews';
2090
+ if (!ArrayIsArray(obj_overviews)) {
2091
+ return new TypeError('Expected "array" but received "' + typeof obj_overviews + '" (at "' + path_overviews + '")');
2092
+ }
2093
+ for (let i = 0; i < obj_overviews.length; i++) {
2094
+ const obj_overviews_item = obj_overviews[i];
2095
+ const path_overviews_item = path_overviews + '[' + i + ']';
2096
+ const referencepath_overviews_itemValidationError = validate$6(obj_overviews_item, path_overviews_item);
2097
+ if (referencepath_overviews_itemValidationError !== null) {
2098
+ let message = 'Object doesn\'t match OverviewResponse (at "' + path_overviews_item + '")\n';
2099
+ message += referencepath_overviews_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2100
+ return new TypeError(message);
2101
+ }
896
2102
  }
897
2103
  }
898
- if (obj.timestamp !== undefined) {
899
- const obj_timestamp = obj.timestamp;
900
- const path_timestamp = path + '.timestamp';
901
- if (typeof obj_timestamp !== 'string') {
902
- return new TypeError('Expected "string" but received "' + typeof obj_timestamp + '" (at "' + path_timestamp + '")');
2104
+ if (obj.type !== undefined) {
2105
+ const obj_type = obj.type;
2106
+ const path_type = path + '.type';
2107
+ if (typeof obj_type !== 'string') {
2108
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
903
2109
  }
904
2110
  }
905
2111
  })();
906
2112
  return v_error === undefined ? null : v_error;
907
2113
  }
908
- const RepresentationType$3 = 'GenerateInsightBatchResponse';
909
- function keyBuilder$5(luvio, config) {
910
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.batchid;
911
- }
912
- function keyBuilderFromType$3(luvio, object) {
913
- const keyParams = {
914
- batchid: object.batchId
915
- };
916
- return keyBuilder$5(luvio, keyParams);
917
- }
918
- function normalize$3(input, existing, path, luvio, store, timestamp) {
919
- return input;
920
- }
921
- const select$9 = function GenerateInsightBatchResponseSelect() {
2114
+ const select$8 = function InsightGroupSelect() {
2115
+ const { selections: Error__selections, opaque: Error__opaque, } = select$i();
2116
+ const { selections: InsightResponse__selections, opaque: InsightResponse__opaque, } = select$b();
2117
+ const { selections: OverviewResponse__selections, opaque: OverviewResponse__opaque, } = select$9();
922
2118
  return {
923
2119
  kind: 'Fragment',
924
2120
  version: VERSION$5,
925
2121
  private: [],
926
2122
  selections: [
927
2123
  {
928
- name: 'batchId',
929
- kind: 'Scalar'
2124
+ name: 'error',
2125
+ kind: 'Object',
2126
+ selections: Error__selections,
2127
+ required: false
930
2128
  },
931
2129
  {
932
- name: 'generatingSummary',
933
- kind: 'Scalar',
2130
+ name: 'insights',
2131
+ kind: 'Object',
2132
+ plural: true,
2133
+ selections: InsightResponse__selections,
934
2134
  required: false
935
2135
  },
936
2136
  {
937
- name: 'summary',
2137
+ name: 'overviews',
938
2138
  kind: 'Object',
939
- // any
2139
+ plural: true,
2140
+ selections: OverviewResponse__selections,
2141
+ required: false
940
2142
  },
941
2143
  {
942
- name: 'timestamp',
2144
+ name: 'type',
943
2145
  kind: 'Scalar',
944
2146
  required: false
945
2147
  }
@@ -947,251 +2149,187 @@ const select$9 = function GenerateInsightBatchResponseSelect() {
947
2149
  };
948
2150
  };
949
2151
  function equals$5(existing, incoming) {
950
- const existing_generatingSummary = existing.generatingSummary;
951
- const incoming_generatingSummary = incoming.generatingSummary;
2152
+ const existing_type = existing.type;
2153
+ const incoming_type = incoming.type;
952
2154
  // if at least one of these optionals is defined
953
- if (existing_generatingSummary !== undefined || incoming_generatingSummary !== undefined) {
2155
+ if (existing_type !== undefined || incoming_type !== undefined) {
954
2156
  // if one of these is not defined we know the other is defined and therefore
955
2157
  // not equal
956
- if (existing_generatingSummary === undefined || incoming_generatingSummary === undefined) {
2158
+ if (existing_type === undefined || incoming_type === undefined) {
957
2159
  return false;
958
2160
  }
959
- if (!(existing_generatingSummary === incoming_generatingSummary)) {
2161
+ if (!(existing_type === incoming_type)) {
960
2162
  return false;
961
2163
  }
962
2164
  }
963
- const existing_batchId = existing.batchId;
964
- const incoming_batchId = incoming.batchId;
965
- if (!(existing_batchId === incoming_batchId)) {
966
- return false;
967
- }
968
- const existing_timestamp = existing.timestamp;
969
- const incoming_timestamp = incoming.timestamp;
2165
+ const existing_error = existing.error;
2166
+ const incoming_error = incoming.error;
970
2167
  // if at least one of these optionals is defined
971
- if (existing_timestamp !== undefined || incoming_timestamp !== undefined) {
2168
+ if (existing_error !== undefined || incoming_error !== undefined) {
972
2169
  // if one of these is not defined we know the other is defined and therefore
973
2170
  // not equal
974
- if (existing_timestamp === undefined || incoming_timestamp === undefined) {
2171
+ if (existing_error === undefined || incoming_error === undefined) {
975
2172
  return false;
976
2173
  }
977
- if (!(existing_timestamp === incoming_timestamp)) {
2174
+ if (!(equals$e(existing_error, incoming_error))) {
978
2175
  return false;
979
2176
  }
980
2177
  }
981
- const existing_summary = existing.summary;
982
- const incoming_summary = incoming.summary;
2178
+ const existing_insights = existing.insights;
2179
+ const incoming_insights = incoming.insights;
983
2180
  // if at least one of these optionals is defined
984
- if (existing_summary !== undefined || incoming_summary !== undefined) {
2181
+ if (existing_insights !== undefined || incoming_insights !== undefined) {
985
2182
  // if one of these is not defined we know the other is defined and therefore
986
2183
  // not equal
987
- if (existing_summary === undefined || incoming_summary === undefined) {
2184
+ if (existing_insights === undefined || incoming_insights === undefined) {
988
2185
  return false;
989
2186
  }
990
- if (JSONStringify(incoming_summary) !== JSONStringify(existing_summary)) {
2187
+ const equals_insights_items = equalsArray(existing_insights, incoming_insights, (existing_insights_item, incoming_insights_item) => {
2188
+ if (!(equals$8(existing_insights_item, incoming_insights_item))) {
2189
+ return false;
2190
+ }
2191
+ });
2192
+ if (equals_insights_items === false) {
991
2193
  return false;
992
2194
  }
993
2195
  }
994
- return true;
995
- }
996
- const ingest$3 = function GenerateInsightBatchResponseIngest(input, path, luvio, store, timestamp) {
997
- if (process.env.NODE_ENV !== 'production') {
998
- const validateError = validate$5(input);
999
- if (validateError !== null) {
1000
- throw validateError;
1001
- }
1002
- }
1003
- const key = keyBuilderFromType$3(luvio, input);
1004
- const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
1005
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "analytics-insights", VERSION$5, RepresentationType$3, equals$5);
1006
- return createLink(key);
1007
- };
1008
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1009
- // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1010
- const rootKey = keyBuilderFromType$3(luvio, input);
1011
- rootKeySet.set(rootKey, {
1012
- namespace: keyPrefix,
1013
- representationName: RepresentationType$3,
1014
- mergeable: false
1015
- });
1016
- }
1017
-
1018
- function select$8(luvio, params) {
1019
- return select$9();
1020
- }
1021
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
1022
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
1023
- }
1024
- function ingestSuccess$3(luvio, resourceParams, response) {
1025
- const { body } = response;
1026
- const key = keyBuilderFromType$3(luvio, body);
1027
- luvio.storeIngest(key, ingest$3, body);
1028
- const snapshot = luvio.storeLookup({
1029
- recordId: key,
1030
- node: select$8(),
1031
- variables: {},
1032
- });
1033
- if (process.env.NODE_ENV !== 'production') {
1034
- if (snapshot.state !== 'Fulfilled') {
1035
- throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2196
+ const existing_overviews = existing.overviews;
2197
+ const incoming_overviews = incoming.overviews;
2198
+ // if at least one of these optionals is defined
2199
+ if (existing_overviews !== undefined || incoming_overviews !== undefined) {
2200
+ // if one of these is not defined we know the other is defined and therefore
2201
+ // not equal
2202
+ if (existing_overviews === undefined || incoming_overviews === undefined) {
2203
+ return false;
1036
2204
  }
1037
- }
1038
- deepFreeze(snapshot.data);
1039
- return snapshot;
1040
- }
1041
- function createResourceRequest$3(config) {
1042
- const headers = {};
1043
- return {
1044
- baseUri: 'api.salesforce.com',
1045
- basePath: '/analytics/insights/v1/batches',
1046
- method: 'post',
1047
- body: config.body,
1048
- urlParams: {},
1049
- queryParams: {},
1050
- headers,
1051
- priority: 'normal',
1052
- };
1053
- }
1054
-
1055
- const adapterName$3 = 'createInsightsBatch';
1056
- const createInsightsBatch_ConfigPropertyMetadata = [
1057
- generateParamConfigMetadata('batchInput', false, 2 /* Body */, 4 /* Unsupported */, true),
1058
- generateParamConfigMetadata('options', false, 2 /* Body */, 4 /* Unsupported */),
1059
- ];
1060
- const createInsightsBatch_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createInsightsBatch_ConfigPropertyMetadata);
1061
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(createInsightsBatch_ConfigPropertyMetadata);
1062
- function typeCheckConfig$3(untrustedConfig) {
1063
- const config = {};
1064
- const untrustedConfig_batchInput = untrustedConfig.batchInput;
1065
- if (ArrayIsArray$1(untrustedConfig_batchInput)) {
1066
- const untrustedConfig_batchInput_array = [];
1067
- for (let i = 0, arrayLength = untrustedConfig_batchInput.length; i < arrayLength; i++) {
1068
- const untrustedConfig_batchInput_item = untrustedConfig_batchInput[i];
1069
- const referenceBatchInputValidationError = validate$6(untrustedConfig_batchInput_item);
1070
- if (referenceBatchInputValidationError === null) {
1071
- untrustedConfig_batchInput_array.push(untrustedConfig_batchInput_item);
2205
+ const equals_overviews_items = equalsArray(existing_overviews, incoming_overviews, (existing_overviews_item, incoming_overviews_item) => {
2206
+ if (!(equals$6(existing_overviews_item, incoming_overviews_item))) {
2207
+ return false;
1072
2208
  }
2209
+ });
2210
+ if (equals_overviews_items === false) {
2211
+ return false;
1073
2212
  }
1074
- config.batchInput = untrustedConfig_batchInput_array;
1075
- }
1076
- const untrustedConfig_options = untrustedConfig.options;
1077
- config.options = untrustedConfig_options;
1078
- return config;
1079
- }
1080
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
1081
- if (!untrustedIsObject(untrustedConfig)) {
1082
- return null;
1083
- }
1084
- if (process.env.NODE_ENV !== 'production') {
1085
- validateConfig(untrustedConfig, configPropertyNames);
1086
- }
1087
- const config = typeCheckConfig$3(untrustedConfig);
1088
- if (!areRequiredParametersPresent(config, configPropertyNames)) {
1089
- return null;
1090
2213
  }
1091
- return config;
1092
- }
1093
- function buildNetworkSnapshot$3(luvio, config, options) {
1094
- const resourceParams = createResourceParams$3(config);
1095
- const request = createResourceRequest$3(resourceParams);
1096
- return luvio.dispatchResourceRequest(request, options)
1097
- .then((response) => {
1098
- return luvio.handleSuccessResponse(() => {
1099
- const snapshot = ingestSuccess$3(luvio, resourceParams, response);
1100
- return luvio.storeBroadcast().then(() => snapshot);
1101
- }, () => {
1102
- const cache = new StoreKeyMap();
1103
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
1104
- return cache;
1105
- });
1106
- }, (response) => {
1107
- deepFreeze(response);
1108
- throw response;
1109
- });
2214
+ return true;
1110
2215
  }
1111
- const createInsightsBatchAdapterFactory = (luvio) => {
1112
- return function createInsightsBatch(untrustedConfig) {
1113
- const config = validateAdapterConfig$3(untrustedConfig, createInsightsBatch_ConfigPropertyNames);
1114
- // Invalid or incomplete config
1115
- if (config === null) {
1116
- throw new Error('Invalid config for "createInsightsBatch"');
1117
- }
1118
- return buildNetworkSnapshot$3(luvio, config);
1119
- };
1120
- };
1121
2216
 
1122
- const VERSION$4 = "07a8c889542dbad6f958515513d4e3fb";
1123
- function validate$4(obj, path = 'Error') {
2217
+ const VERSION$4 = "ccf83d258110a04c1949592c91b69b3b";
2218
+ function validate$4(obj, path = 'InsightBundle') {
1124
2219
  const v_error = (() => {
1125
2220
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1126
2221
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1127
2222
  }
1128
- if (obj.code !== undefined) {
1129
- const obj_code = obj.code;
1130
- const path_code = path + '.code';
1131
- if (typeof obj_code !== 'string') {
1132
- return new TypeError('Expected "string" but received "' + typeof obj_code + '" (at "' + path_code + '")');
2223
+ if (obj.characterization !== undefined) {
2224
+ const obj_characterization = obj.characterization;
2225
+ const path_characterization = path + '.characterization';
2226
+ if (typeof obj_characterization !== 'string') {
2227
+ return new TypeError('Expected "string" but received "' + typeof obj_characterization + '" (at "' + path_characterization + '")');
1133
2228
  }
1134
2229
  }
1135
- if (obj.message !== undefined) {
1136
- const obj_message = obj.message;
1137
- const path_message = path + '.message';
1138
- if (typeof obj_message !== 'string') {
1139
- return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
2230
+ if (obj.hasErrors !== undefined) {
2231
+ const obj_hasErrors = obj.hasErrors;
2232
+ const path_hasErrors = path + '.hasErrors';
2233
+ if (typeof obj_hasErrors !== 'boolean') {
2234
+ return new TypeError('Expected "boolean" but received "' + typeof obj_hasErrors + '" (at "' + path_hasErrors + '")');
2235
+ }
2236
+ }
2237
+ if (obj.insightGroups !== undefined) {
2238
+ const obj_insightGroups = obj.insightGroups;
2239
+ const path_insightGroups = path + '.insightGroups';
2240
+ if (!ArrayIsArray(obj_insightGroups)) {
2241
+ return new TypeError('Expected "array" but received "' + typeof obj_insightGroups + '" (at "' + path_insightGroups + '")');
2242
+ }
2243
+ for (let i = 0; i < obj_insightGroups.length; i++) {
2244
+ const obj_insightGroups_item = obj_insightGroups[i];
2245
+ const path_insightGroups_item = path_insightGroups + '[' + i + ']';
2246
+ const referencepath_insightGroups_itemValidationError = validate$5(obj_insightGroups_item, path_insightGroups_item);
2247
+ if (referencepath_insightGroups_itemValidationError !== null) {
2248
+ let message = 'Object doesn\'t match InsightGroup (at "' + path_insightGroups_item + '")\n';
2249
+ message += referencepath_insightGroups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2250
+ return new TypeError(message);
2251
+ }
1140
2252
  }
1141
2253
  }
1142
2254
  })();
1143
2255
  return v_error === undefined ? null : v_error;
1144
2256
  }
1145
- const select$7 = function ErrorSelect() {
2257
+ const select$7 = function InsightBundleSelect() {
2258
+ const { selections: InsightGroup__selections, opaque: InsightGroup__opaque, } = select$8();
1146
2259
  return {
1147
2260
  kind: 'Fragment',
1148
2261
  version: VERSION$4,
1149
2262
  private: [],
1150
2263
  selections: [
1151
2264
  {
1152
- name: 'code',
2265
+ name: 'characterization',
1153
2266
  kind: 'Scalar',
1154
2267
  required: false
1155
2268
  },
1156
2269
  {
1157
- name: 'message',
2270
+ name: 'hasErrors',
1158
2271
  kind: 'Scalar',
1159
2272
  required: false
2273
+ },
2274
+ {
2275
+ name: 'insightGroups',
2276
+ kind: 'Object',
2277
+ plural: true,
2278
+ selections: InsightGroup__selections,
2279
+ required: false
1160
2280
  }
1161
2281
  ]
1162
2282
  };
1163
2283
  };
1164
2284
  function equals$4(existing, incoming) {
1165
- const existing_code = existing.code;
1166
- const incoming_code = incoming.code;
2285
+ const existing_hasErrors = existing.hasErrors;
2286
+ const incoming_hasErrors = incoming.hasErrors;
1167
2287
  // if at least one of these optionals is defined
1168
- if (existing_code !== undefined || incoming_code !== undefined) {
2288
+ if (existing_hasErrors !== undefined || incoming_hasErrors !== undefined) {
1169
2289
  // if one of these is not defined we know the other is defined and therefore
1170
2290
  // not equal
1171
- if (existing_code === undefined || incoming_code === undefined) {
2291
+ if (existing_hasErrors === undefined || incoming_hasErrors === undefined) {
1172
2292
  return false;
1173
2293
  }
1174
- if (!(existing_code === incoming_code)) {
2294
+ if (!(existing_hasErrors === incoming_hasErrors)) {
1175
2295
  return false;
1176
2296
  }
1177
2297
  }
1178
- const existing_message = existing.message;
1179
- const incoming_message = incoming.message;
2298
+ const existing_characterization = existing.characterization;
2299
+ const incoming_characterization = incoming.characterization;
1180
2300
  // if at least one of these optionals is defined
1181
- if (existing_message !== undefined || incoming_message !== undefined) {
2301
+ if (existing_characterization !== undefined || incoming_characterization !== undefined) {
1182
2302
  // if one of these is not defined we know the other is defined and therefore
1183
2303
  // not equal
1184
- if (existing_message === undefined || incoming_message === undefined) {
2304
+ if (existing_characterization === undefined || incoming_characterization === undefined) {
1185
2305
  return false;
1186
2306
  }
1187
- if (!(existing_message === incoming_message)) {
2307
+ if (!(existing_characterization === incoming_characterization)) {
2308
+ return false;
2309
+ }
2310
+ }
2311
+ const existing_insightGroups = existing.insightGroups;
2312
+ const incoming_insightGroups = incoming.insightGroups;
2313
+ // if at least one of these optionals is defined
2314
+ if (existing_insightGroups !== undefined || incoming_insightGroups !== undefined) {
2315
+ // if one of these is not defined we know the other is defined and therefore
2316
+ // not equal
2317
+ if (existing_insightGroups === undefined || incoming_insightGroups === undefined) {
2318
+ return false;
2319
+ }
2320
+ const equals_insightGroups_items = equalsArray(existing_insightGroups, incoming_insightGroups, (existing_insightGroups_item, incoming_insightGroups_item) => {
2321
+ if (!(equals$5(existing_insightGroups_item, incoming_insightGroups_item))) {
2322
+ return false;
2323
+ }
2324
+ });
2325
+ if (equals_insightGroups_items === false) {
1188
2326
  return false;
1189
2327
  }
1190
2328
  }
1191
2329
  return true;
1192
2330
  }
1193
2331
 
1194
- const VERSION$3 = "8dd18b6afd3fc20ff954cca4d0124897";
2332
+ const VERSION$3 = "2f50f3271c566971f91d15a361482b6c";
1195
2333
  function validate$3(obj, path = 'GenerateInsightBundleResponse') {
1196
2334
  const v_error = (() => {
1197
2335
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1200,7 +2338,7 @@ function validate$3(obj, path = 'GenerateInsightBundleResponse') {
1200
2338
  if (obj.error !== undefined) {
1201
2339
  const obj_error = obj.error;
1202
2340
  const path_error = path + '.error';
1203
- const referencepath_errorValidationError = validate$4(obj_error, path_error);
2341
+ const referencepath_errorValidationError = validate$e(obj_error, path_error);
1204
2342
  if (referencepath_errorValidationError !== null) {
1205
2343
  let message = 'Object doesn\'t match Error (at "' + path_error + '")\n';
1206
2344
  message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1210,8 +2348,11 @@ function validate$3(obj, path = 'GenerateInsightBundleResponse') {
1210
2348
  if (obj.result !== undefined) {
1211
2349
  const obj_result = obj.result;
1212
2350
  const path_result = path + '.result';
1213
- if (obj_result === undefined) {
1214
- return new TypeError('Expected "defined" but received "' + typeof obj_result + '" (at "' + path_result + '")');
2351
+ const referencepath_resultValidationError = validate$4(obj_result, path_result);
2352
+ if (referencepath_resultValidationError !== null) {
2353
+ let message = 'Object doesn\'t match InsightBundle (at "' + path_result + '")\n';
2354
+ message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2355
+ return new TypeError(message);
1215
2356
  }
1216
2357
  }
1217
2358
  const obj_sdm = obj.sdm;
@@ -1241,7 +2382,8 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
1241
2382
  return input;
1242
2383
  }
1243
2384
  const select$6 = function GenerateInsightBundleResponseSelect() {
1244
- const { selections: Error__selections, opaque: Error__opaque, } = select$7();
2385
+ const { selections: Error__selections, opaque: Error__opaque, } = select$i();
2386
+ const { selections: InsightBundle__selections, opaque: InsightBundle__opaque, } = select$7();
1245
2387
  return {
1246
2388
  kind: 'Fragment',
1247
2389
  version: VERSION$3,
@@ -1256,7 +2398,8 @@ const select$6 = function GenerateInsightBundleResponseSelect() {
1256
2398
  {
1257
2399
  name: 'result',
1258
2400
  kind: 'Object',
1259
- // any
2401
+ selections: InsightBundle__selections,
2402
+ required: false
1260
2403
  },
1261
2404
  {
1262
2405
  name: 'sdm',
@@ -1289,7 +2432,7 @@ function equals$3(existing, incoming) {
1289
2432
  if (existing_error === undefined || incoming_error === undefined) {
1290
2433
  return false;
1291
2434
  }
1292
- if (!(equals$4(existing_error, incoming_error))) {
2435
+ if (!(equals$e(existing_error, incoming_error))) {
1293
2436
  return false;
1294
2437
  }
1295
2438
  }
@@ -1302,7 +2445,7 @@ function equals$3(existing, incoming) {
1302
2445
  if (existing_result === undefined || incoming_result === undefined) {
1303
2446
  return false;
1304
2447
  }
1305
- if (JSONStringify(incoming_result) !== JSONStringify(existing_result)) {
2448
+ if (!(equals$4(existing_result, incoming_result))) {
1306
2449
  return false;
1307
2450
  }
1308
2451
  }
@@ -1380,9 +2523,15 @@ function typeCheckConfig$2(untrustedConfig) {
1380
2523
  const config = {};
1381
2524
  typeCheckConfig$4(untrustedConfig, config, generateInsights_ConfigPropertyMetadata);
1382
2525
  const untrustedConfig_input = untrustedConfig.input;
1383
- config.input = untrustedConfig_input;
2526
+ const referenceInsightBundleInputValidationError = validate$k(untrustedConfig_input);
2527
+ if (referenceInsightBundleInputValidationError === null) {
2528
+ config.input = untrustedConfig_input;
2529
+ }
1384
2530
  const untrustedConfig_options = untrustedConfig.options;
1385
- config.options = untrustedConfig_options;
2531
+ const referenceInsightBundleOptionsValidationError = validate$h(untrustedConfig_options);
2532
+ if (referenceInsightBundleOptionsValidationError === null) {
2533
+ config.options = untrustedConfig_options;
2534
+ }
1386
2535
  return config;
1387
2536
  }
1388
2537
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -1427,7 +2576,7 @@ const generateInsightsAdapterFactory = (luvio) => {
1427
2576
  };
1428
2577
  };
1429
2578
 
1430
- const VERSION$2 = "94ce8446612f6dc54775a9c8489b1b52";
2579
+ const VERSION$2 = "b3ecf416df1c88948a22534e1143e6d5";
1431
2580
  function validate$2(obj, path = 'GetInsightBatchResponse') {
1432
2581
  const v_error = (() => {
1433
2582
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1469,8 +2618,11 @@ function validate$2(obj, path = 'GetInsightBatchResponse') {
1469
2618
  if (obj.summary !== undefined) {
1470
2619
  const obj_summary = obj.summary;
1471
2620
  const path_summary = path + '.summary';
1472
- if (obj_summary === undefined) {
1473
- return new TypeError('Expected "defined" but received "' + typeof obj_summary + '" (at "' + path_summary + '")');
2621
+ const referencepath_summaryValidationError = validate$c(obj_summary, path_summary);
2622
+ if (referencepath_summaryValidationError !== null) {
2623
+ let message = 'Object doesn\'t match SummaryResponse (at "' + path_summary + '")\n';
2624
+ message += referencepath_summaryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2625
+ return new TypeError(message);
1474
2626
  }
1475
2627
  }
1476
2628
  })();
@@ -1508,6 +2660,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
1508
2660
  return input;
1509
2661
  }
1510
2662
  const select$4 = function GetInsightBatchResponseSelect() {
2663
+ const { selections: SummaryResponse__selections, opaque: SummaryResponse__opaque, } = select$g();
1511
2664
  return {
1512
2665
  kind: 'Fragment',
1513
2666
  version: VERSION$2,
@@ -1537,7 +2690,8 @@ const select$4 = function GetInsightBatchResponseSelect() {
1537
2690
  {
1538
2691
  name: 'summary',
1539
2692
  kind: 'Object',
1540
- // any
2693
+ selections: SummaryResponse__selections,
2694
+ required: false
1541
2695
  }
1542
2696
  ]
1543
2697
  };
@@ -1601,7 +2755,7 @@ function equals$2(existing, incoming) {
1601
2755
  if (existing_summary === undefined || incoming_summary === undefined) {
1602
2756
  return false;
1603
2757
  }
1604
- if (JSONStringify(incoming_summary) !== JSONStringify(existing_summary)) {
2758
+ if (!(equals$c(existing_summary, incoming_summary))) {
1605
2759
  return false;
1606
2760
  }
1607
2761
  }
@@ -2098,12 +3252,12 @@ function typeCheckConfig(untrustedConfig) {
2098
3252
  const config = {};
2099
3253
  typeCheckConfig$4(untrustedConfig, config, getMetricFilterValues_ConfigPropertyMetadata);
2100
3254
  const untrustedConfig_semanticDataModel = untrustedConfig.semanticDataModel;
2101
- const referenceSemanticDataModelValidationError = validate$e(untrustedConfig_semanticDataModel);
3255
+ const referenceSemanticDataModelValidationError = validate$q(untrustedConfig_semanticDataModel);
2102
3256
  if (referenceSemanticDataModelValidationError === null) {
2103
3257
  config.semanticDataModel = untrustedConfig_semanticDataModel;
2104
3258
  }
2105
3259
  const untrustedConfig_field = untrustedConfig.field;
2106
- const referenceFieldIdValidationError = validate$p(untrustedConfig_field);
3260
+ const referenceFieldIdValidationError = validate$C(untrustedConfig_field);
2107
3261
  if (referenceFieldIdValidationError === null) {
2108
3262
  config.field = untrustedConfig_field;
2109
3263
  }
@@ -2112,7 +3266,7 @@ function typeCheckConfig(untrustedConfig) {
2112
3266
  const untrustedConfig_filters_array = [];
2113
3267
  for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
2114
3268
  const untrustedConfig_filters_item = untrustedConfig_filters[i];
2115
- const referenceFilterValidationError = validate$l(untrustedConfig_filters_item);
3269
+ const referenceFilterValidationError = validate$y(untrustedConfig_filters_item);
2116
3270
  if (referenceFilterValidationError === null) {
2117
3271
  untrustedConfig_filters_array.push(untrustedConfig_filters_item);
2118
3272
  }
@@ -2120,7 +3274,10 @@ function typeCheckConfig(untrustedConfig) {
2120
3274
  config.filters = untrustedConfig_filters_array;
2121
3275
  }
2122
3276
  const untrustedConfig_semanticFilter = untrustedConfig.semanticFilter;
2123
- config.semanticFilter = untrustedConfig_semanticFilter;
3277
+ const referenceFlattenFilterValidationError = validate$u(untrustedConfig_semanticFilter);
3278
+ if (referenceFlattenFilterValidationError === null) {
3279
+ config.semanticFilter = untrustedConfig_semanticFilter;
3280
+ }
2124
3281
  return config;
2125
3282
  }
2126
3283
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -2204,4 +3361,4 @@ withDefaultLuvio((luvio) => {
2204
3361
  });
2205
3362
 
2206
3363
  export { createInsightsBatch, generateInsights, getInsightsBatch, getInsightsBatchNotifyChange, getInsightsBatch_imperative, getMetricFilterValues };
2207
- // version: 1.309.0-dev11-e18434ec95
3364
+ // version: 1.309.0-dev13-f443187b81