@salesforce/lds-adapters-sfap-analytics-insights 1.332.0-dev17 → 1.332.0-dev19

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.
@@ -92,7 +92,7 @@ function createLink(ref) {
92
92
  };
93
93
  }
94
94
 
95
- function validate$J(obj, path = 'MetricMetadata') {
95
+ function validate$I(obj, path = 'MetricMetadata') {
96
96
  const v_error = (() => {
97
97
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
98
98
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -115,7 +115,7 @@ function validate$J(obj, path = 'MetricMetadata') {
115
115
  return v_error === undefined ? null : v_error;
116
116
  }
117
117
 
118
- function validate$I(obj, path = 'ExtensionOptions') {
118
+ function validate$H(obj, path = 'ExtensionOptions') {
119
119
  const v_error = (() => {
120
120
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
121
121
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -145,7 +145,7 @@ function validate$I(obj, path = 'ExtensionOptions') {
145
145
  return v_error === undefined ? null : v_error;
146
146
  }
147
147
 
148
- function validate$H(obj, path = 'GoalMetadata_StatusCondition') {
148
+ function validate$G(obj, path = 'GoalMetadata_StatusCondition') {
149
149
  const v_error = (() => {
150
150
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
151
151
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -196,7 +196,7 @@ function validate$H(obj, path = 'GoalMetadata_StatusCondition') {
196
196
  return v_error === undefined ? null : v_error;
197
197
  }
198
198
 
199
- function validate$G(obj, path = 'GoalMetadata') {
199
+ function validate$F(obj, path = 'GoalMetadata') {
200
200
  const v_error = (() => {
201
201
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
202
202
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -217,7 +217,7 @@ function validate$G(obj, path = 'GoalMetadata') {
217
217
  for (let i = 0; i < obj_statusConditions.length; i++) {
218
218
  const obj_statusConditions_item = obj_statusConditions[i];
219
219
  const path_statusConditions_item = path_statusConditions + '[' + i + ']';
220
- const referencepath_statusConditions_itemValidationError = validate$H(obj_statusConditions_item, path_statusConditions_item);
220
+ const referencepath_statusConditions_itemValidationError = validate$G(obj_statusConditions_item, path_statusConditions_item);
221
221
  if (referencepath_statusConditions_itemValidationError !== null) {
222
222
  let message = 'Object doesn\'t match GoalMetadata_StatusCondition (at "' + path_statusConditions_item + '")\n';
223
223
  message += referencepath_statusConditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -229,7 +229,7 @@ function validate$G(obj, path = 'GoalMetadata') {
229
229
  return v_error === undefined ? null : v_error;
230
230
  }
231
231
 
232
- function validate$F(obj, path = 'InsightsOptions_InsightSetting') {
232
+ function validate$E(obj, path = 'InsightsOptions_InsightSetting') {
233
233
  const v_error = (() => {
234
234
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
235
235
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -252,7 +252,7 @@ function validate$F(obj, path = 'InsightsOptions_InsightSetting') {
252
252
  return v_error === undefined ? null : v_error;
253
253
  }
254
254
 
255
- function validate$E(obj, path = 'InsightsOptions') {
255
+ function validate$D(obj, path = 'InsightsOptions') {
256
256
  const v_error = (() => {
257
257
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
258
258
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -266,7 +266,7 @@ function validate$E(obj, path = 'InsightsOptions') {
266
266
  for (let i = 0; i < obj_settings.length; i++) {
267
267
  const obj_settings_item = obj_settings[i];
268
268
  const path_settings_item = path_settings + '[' + i + ']';
269
- const referencepath_settings_itemValidationError = validate$F(obj_settings_item, path_settings_item);
269
+ const referencepath_settings_itemValidationError = validate$E(obj_settings_item, path_settings_item);
270
270
  if (referencepath_settings_itemValidationError !== null) {
271
271
  let message = 'Object doesn\'t match InsightsOptions_InsightSetting (at "' + path_settings_item + '")\n';
272
272
  message += referencepath_settings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -278,7 +278,7 @@ function validate$E(obj, path = 'InsightsOptions') {
278
278
  return v_error === undefined ? null : v_error;
279
279
  }
280
280
 
281
- function validate$D(obj, path = 'CategoricalFilterOptions') {
281
+ function validate$C(obj, path = 'CategoricalFilterOptions') {
282
282
  const v_error = (() => {
283
283
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
284
284
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -315,7 +315,7 @@ function validate$D(obj, path = 'CategoricalFilterOptions') {
315
315
  return v_error === undefined ? null : v_error;
316
316
  }
317
317
 
318
- function validate$C(obj, path = 'FieldId') {
318
+ function validate$B(obj, path = 'FieldId') {
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$C(obj, path = 'FieldId') {
345
345
  return v_error === undefined ? null : v_error;
346
346
  }
347
347
 
348
- function validate$B(obj, path = 'RangeFilterOptions') {
348
+ function validate$A(obj, path = 'RangeFilterOptions') {
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 + '")');
@@ -389,7 +389,7 @@ function validate$B(obj, path = 'RangeFilterOptions') {
389
389
  return v_error === undefined ? null : v_error;
390
390
  }
391
391
 
392
- function validate$A(obj, path = 'RelativeDateFilterOptions') {
392
+ function validate$z(obj, path = 'RelativeDateFilterOptions') {
393
393
  const v_error = (() => {
394
394
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
395
395
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -398,7 +398,7 @@ function validate$A(obj, path = 'RelativeDateFilterOptions') {
398
398
  return v_error === undefined ? null : v_error;
399
399
  }
400
400
 
401
- function validate$z(obj, path = 'Filter') {
401
+ function validate$y(obj, path = 'Filter') {
402
402
  const v_error = (() => {
403
403
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
404
404
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -406,7 +406,7 @@ function validate$z(obj, path = 'Filter') {
406
406
  if (obj.categoricalFilterOptions !== undefined) {
407
407
  const obj_categoricalFilterOptions = obj.categoricalFilterOptions;
408
408
  const path_categoricalFilterOptions = path + '.categoricalFilterOptions';
409
- const referencepath_categoricalFilterOptionsValidationError = validate$D(obj_categoricalFilterOptions, path_categoricalFilterOptions);
409
+ const referencepath_categoricalFilterOptionsValidationError = validate$C(obj_categoricalFilterOptions, path_categoricalFilterOptions);
410
410
  if (referencepath_categoricalFilterOptionsValidationError !== null) {
411
411
  let message = 'Object doesn\'t match CategoricalFilterOptions (at "' + path_categoricalFilterOptions + '")\n';
412
412
  message += referencepath_categoricalFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -416,7 +416,7 @@ function validate$z(obj, path = 'Filter') {
416
416
  if (obj.field !== undefined) {
417
417
  const obj_field = obj.field;
418
418
  const path_field = path + '.field';
419
- const referencepath_fieldValidationError = validate$C(obj_field, path_field);
419
+ const referencepath_fieldValidationError = validate$B(obj_field, path_field);
420
420
  if (referencepath_fieldValidationError !== null) {
421
421
  let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
422
422
  message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -426,7 +426,7 @@ function validate$z(obj, path = 'Filter') {
426
426
  if (obj.fieldId !== undefined) {
427
427
  const obj_fieldId = obj.fieldId;
428
428
  const path_fieldId = path + '.fieldId';
429
- const referencepath_fieldIdValidationError = validate$C(obj_fieldId, path_fieldId);
429
+ const referencepath_fieldIdValidationError = validate$B(obj_fieldId, path_fieldId);
430
430
  if (referencepath_fieldIdValidationError !== null) {
431
431
  let message = 'Object doesn\'t match FieldId (at "' + path_fieldId + '")\n';
432
432
  message += referencepath_fieldIdValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -436,7 +436,7 @@ function validate$z(obj, path = 'Filter') {
436
436
  if (obj.rangeFilterOptions !== undefined) {
437
437
  const obj_rangeFilterOptions = obj.rangeFilterOptions;
438
438
  const path_rangeFilterOptions = path + '.rangeFilterOptions';
439
- const referencepath_rangeFilterOptionsValidationError = validate$B(obj_rangeFilterOptions, path_rangeFilterOptions);
439
+ const referencepath_rangeFilterOptionsValidationError = validate$A(obj_rangeFilterOptions, path_rangeFilterOptions);
440
440
  if (referencepath_rangeFilterOptionsValidationError !== null) {
441
441
  let message = 'Object doesn\'t match RangeFilterOptions (at "' + path_rangeFilterOptions + '")\n';
442
442
  message += referencepath_rangeFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -446,7 +446,7 @@ function validate$z(obj, path = 'Filter') {
446
446
  if (obj.relativeDateFilterOptions !== undefined) {
447
447
  const obj_relativeDateFilterOptions = obj.relativeDateFilterOptions;
448
448
  const path_relativeDateFilterOptions = path + '.relativeDateFilterOptions';
449
- const referencepath_relativeDateFilterOptionsValidationError = validate$A(obj_relativeDateFilterOptions, path_relativeDateFilterOptions);
449
+ const referencepath_relativeDateFilterOptionsValidationError = validate$z(obj_relativeDateFilterOptions, path_relativeDateFilterOptions);
450
450
  if (referencepath_relativeDateFilterOptionsValidationError !== null) {
451
451
  let message = 'Object doesn\'t match RelativeDateFilterOptions (at "' + path_relativeDateFilterOptions + '")\n';
452
452
  message += referencepath_relativeDateFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -464,59 +464,7 @@ function validate$z(obj, path = 'Filter') {
464
464
  return v_error === undefined ? null : v_error;
465
465
  }
466
466
 
467
- function validate$y(obj, path = 'RelativePeriod') {
468
- const v_error = (() => {
469
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
470
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
471
- }
472
- if (obj.granularity !== undefined) {
473
- const obj_granularity = obj.granularity;
474
- const path_granularity = path + '.granularity';
475
- if (typeof obj_granularity !== 'string') {
476
- return new TypeError('Expected "string" but received "' + typeof obj_granularity + '" (at "' + path_granularity + '")');
477
- }
478
- }
479
- if (obj.range !== undefined) {
480
- const obj_range = obj.range;
481
- const path_range = path + '.range';
482
- if (typeof obj_range !== 'string') {
483
- return new TypeError('Expected "string" but received "' + typeof obj_range + '" (at "' + path_range + '")');
484
- }
485
- }
486
- })();
487
- return v_error === undefined ? null : v_error;
488
- }
489
-
490
- function validate$x(obj, path = 'MeasurementPeriod') {
491
- const v_error = (() => {
492
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
493
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
494
- }
495
- if (obj.filter !== undefined) {
496
- const obj_filter = obj.filter;
497
- const path_filter = path + '.filter';
498
- const referencepath_filterValidationError = validate$z(obj_filter, path_filter);
499
- if (referencepath_filterValidationError !== null) {
500
- let message = 'Object doesn\'t match Filter (at "' + path_filter + '")\n';
501
- message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
502
- return new TypeError(message);
503
- }
504
- }
505
- if (obj.relativePeriod !== undefined) {
506
- const obj_relativePeriod = obj.relativePeriod;
507
- const path_relativePeriod = path + '.relativePeriod';
508
- const referencepath_relativePeriodValidationError = validate$y(obj_relativePeriod, path_relativePeriod);
509
- if (referencepath_relativePeriodValidationError !== null) {
510
- let message = 'Object doesn\'t match RelativePeriod (at "' + path_relativePeriod + '")\n';
511
- message += referencepath_relativePeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
512
- return new TypeError(message);
513
- }
514
- }
515
- })();
516
- return v_error === undefined ? null : v_error;
517
- }
518
-
519
- function validate$w(obj, path = 'SemanticFilter') {
467
+ function validate$x(obj, path = 'SemanticFilter') {
520
468
  const v_error = (() => {
521
469
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
522
470
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -542,7 +490,7 @@ function validate$w(obj, path = 'SemanticFilter') {
542
490
  return v_error === undefined ? null : v_error;
543
491
  }
544
492
 
545
- function validate$v(obj, path = 'FlattenFilter') {
493
+ function validate$w(obj, path = 'FlattenFilter') {
546
494
  const v_error = (() => {
547
495
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
548
496
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -563,7 +511,7 @@ function validate$v(obj, path = 'FlattenFilter') {
563
511
  for (let i = 0; i < obj_filters.length; i++) {
564
512
  const obj_filters_item = obj_filters[i];
565
513
  const path_filters_item = path_filters + '[' + i + ']';
566
- const referencepath_filters_itemValidationError = validate$w(obj_filters_item, path_filters_item);
514
+ const referencepath_filters_itemValidationError = validate$x(obj_filters_item, path_filters_item);
567
515
  if (referencepath_filters_itemValidationError !== null) {
568
516
  let message = 'Object doesn\'t match SemanticFilter (at "' + path_filters_item + '")\n';
569
517
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -575,7 +523,7 @@ function validate$v(obj, path = 'FlattenFilter') {
575
523
  return v_error === undefined ? null : v_error;
576
524
  }
577
525
 
578
- function validate$u(obj, path = 'MetricInstance') {
526
+ function validate$v(obj, path = 'MetricInstance') {
579
527
  const v_error = (() => {
580
528
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
581
529
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -589,7 +537,7 @@ function validate$u(obj, path = 'MetricInstance') {
589
537
  for (let i = 0; i < obj_filters.length; i++) {
590
538
  const obj_filters_item = obj_filters[i];
591
539
  const path_filters_item = path_filters + '[' + i + ']';
592
- const referencepath_filters_itemValidationError = validate$z(obj_filters_item, path_filters_item);
540
+ const referencepath_filters_itemValidationError = validate$y(obj_filters_item, path_filters_item);
593
541
  if (referencepath_filters_itemValidationError !== null) {
594
542
  let message = 'Object doesn\'t match Filter (at "' + path_filters_item + '")\n';
595
543
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -597,18 +545,17 @@ function validate$u(obj, path = 'MetricInstance') {
597
545
  }
598
546
  }
599
547
  }
600
- const obj_measurementPeriod = obj.measurementPeriod;
601
- const path_measurementPeriod = path + '.measurementPeriod';
602
- const referencepath_measurementPeriodValidationError = validate$x(obj_measurementPeriod, path_measurementPeriod);
603
- if (referencepath_measurementPeriodValidationError !== null) {
604
- let message = 'Object doesn\'t match MeasurementPeriod (at "' + path_measurementPeriod + '")\n';
605
- message += referencepath_measurementPeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
606
- return new TypeError(message);
548
+ if (obj.measurementPeriod !== undefined) {
549
+ const obj_measurementPeriod = obj.measurementPeriod;
550
+ const path_measurementPeriod = path + '.measurementPeriod';
551
+ if (obj_measurementPeriod === undefined) {
552
+ return new TypeError('Expected "defined" but received "' + typeof obj_measurementPeriod + '" (at "' + path_measurementPeriod + '")');
553
+ }
607
554
  }
608
555
  if (obj.semanticFilter !== undefined) {
609
556
  const obj_semanticFilter = obj.semanticFilter;
610
557
  const path_semanticFilter = path + '.semanticFilter';
611
- const referencepath_semanticFilterValidationError = validate$v(obj_semanticFilter, path_semanticFilter);
558
+ const referencepath_semanticFilterValidationError = validate$w(obj_semanticFilter, path_semanticFilter);
612
559
  if (referencepath_semanticFilterValidationError !== null) {
613
560
  let message = 'Object doesn\'t match FlattenFilter (at "' + path_semanticFilter + '")\n';
614
561
  message += referencepath_semanticFilterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -619,7 +566,7 @@ function validate$u(obj, path = 'MetricInstance') {
619
566
  return v_error === undefined ? null : v_error;
620
567
  }
621
568
 
622
- function validate$t(obj, path = 'CompareConfig') {
569
+ function validate$u(obj, path = 'CompareConfig') {
623
570
  const v_error = (() => {
624
571
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
625
572
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -635,7 +582,7 @@ function validate$t(obj, path = 'CompareConfig') {
635
582
  return v_error === undefined ? null : v_error;
636
583
  }
637
584
 
638
- function validate$s(obj, path = 'Measure') {
585
+ function validate$t(obj, path = 'Measure') {
639
586
  const v_error = (() => {
640
587
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
641
588
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -649,7 +596,7 @@ function validate$s(obj, path = 'Measure') {
649
596
  }
650
597
  const obj_field = obj.field;
651
598
  const path_field = path + '.field';
652
- const referencepath_fieldValidationError = validate$C(obj_field, path_field);
599
+ const referencepath_fieldValidationError = validate$B(obj_field, path_field);
653
600
  if (referencepath_fieldValidationError !== null) {
654
601
  let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
655
602
  message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -659,7 +606,7 @@ function validate$s(obj, path = 'Measure') {
659
606
  return v_error === undefined ? null : v_error;
660
607
  }
661
608
 
662
- function validate$r(obj, path = 'SemanticDataModel') {
609
+ function validate$s(obj, path = 'SemanticDataModel') {
663
610
  const v_error = (() => {
664
611
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
665
612
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -675,14 +622,14 @@ function validate$r(obj, path = 'SemanticDataModel') {
675
622
  return v_error === undefined ? null : v_error;
676
623
  }
677
624
 
678
- function validate$q(obj, path = 'TimeDimension') {
625
+ function validate$r(obj, path = 'TimeDimension') {
679
626
  const v_error = (() => {
680
627
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
681
628
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
682
629
  }
683
630
  const obj_field = obj.field;
684
631
  const path_field = path + '.field';
685
- const referencepath_fieldValidationError = validate$C(obj_field, path_field);
632
+ const referencepath_fieldValidationError = validate$B(obj_field, path_field);
686
633
  if (referencepath_fieldValidationError !== null) {
687
634
  let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
688
635
  message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -692,14 +639,14 @@ function validate$q(obj, path = 'TimeDimension') {
692
639
  return v_error === undefined ? null : v_error;
693
640
  }
694
641
 
695
- function validate$p(obj, path = 'MetricDefinition') {
642
+ function validate$q(obj, path = 'MetricDefinition') {
696
643
  const v_error = (() => {
697
644
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
698
645
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
699
646
  }
700
647
  const obj_comparison = obj.comparison;
701
648
  const path_comparison = path + '.comparison';
702
- const referencepath_comparisonValidationError = validate$t(obj_comparison, path_comparison);
649
+ const referencepath_comparisonValidationError = validate$u(obj_comparison, path_comparison);
703
650
  if (referencepath_comparisonValidationError !== null) {
704
651
  let message = 'Object doesn\'t match CompareConfig (at "' + path_comparison + '")\n';
705
652
  message += referencepath_comparisonValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -714,7 +661,7 @@ function validate$p(obj, path = 'MetricDefinition') {
714
661
  for (let i = 0; i < obj_filters.length; i++) {
715
662
  const obj_filters_item = obj_filters[i];
716
663
  const path_filters_item = path_filters + '[' + i + ']';
717
- const referencepath_filters_itemValidationError = validate$z(obj_filters_item, path_filters_item);
664
+ const referencepath_filters_itemValidationError = validate$y(obj_filters_item, path_filters_item);
718
665
  if (referencepath_filters_itemValidationError !== null) {
719
666
  let message = 'Object doesn\'t match Filter (at "' + path_filters_item + '")\n';
720
667
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -724,7 +671,7 @@ function validate$p(obj, path = 'MetricDefinition') {
724
671
  }
725
672
  const obj_measure = obj.measure;
726
673
  const path_measure = path + '.measure';
727
- const referencepath_measureValidationError = validate$s(obj_measure, path_measure);
674
+ const referencepath_measureValidationError = validate$t(obj_measure, path_measure);
728
675
  if (referencepath_measureValidationError !== null) {
729
676
  let message = 'Object doesn\'t match Measure (at "' + path_measure + '")\n';
730
677
  message += referencepath_measureValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -739,7 +686,7 @@ function validate$p(obj, path = 'MetricDefinition') {
739
686
  }
740
687
  const obj_semanticDataModel = obj.semanticDataModel;
741
688
  const path_semanticDataModel = path + '.semanticDataModel';
742
- const referencepath_semanticDataModelValidationError = validate$r(obj_semanticDataModel, path_semanticDataModel);
689
+ const referencepath_semanticDataModelValidationError = validate$s(obj_semanticDataModel, path_semanticDataModel);
743
690
  if (referencepath_semanticDataModelValidationError !== null) {
744
691
  let message = 'Object doesn\'t match SemanticDataModel (at "' + path_semanticDataModel + '")\n';
745
692
  message += referencepath_semanticDataModelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -748,7 +695,7 @@ function validate$p(obj, path = 'MetricDefinition') {
748
695
  if (obj.semanticFilter !== undefined) {
749
696
  const obj_semanticFilter = obj.semanticFilter;
750
697
  const path_semanticFilter = path + '.semanticFilter';
751
- const referencepath_semanticFilterValidationError = validate$v(obj_semanticFilter, path_semanticFilter);
698
+ const referencepath_semanticFilterValidationError = validate$w(obj_semanticFilter, path_semanticFilter);
752
699
  if (referencepath_semanticFilterValidationError !== null) {
753
700
  let message = 'Object doesn\'t match FlattenFilter (at "' + path_semanticFilter + '")\n';
754
701
  message += referencepath_semanticFilterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -757,7 +704,7 @@ function validate$p(obj, path = 'MetricDefinition') {
757
704
  }
758
705
  const obj_timeDimension = obj.timeDimension;
759
706
  const path_timeDimension = path + '.timeDimension';
760
- const referencepath_timeDimensionValidationError = validate$q(obj_timeDimension, path_timeDimension);
707
+ const referencepath_timeDimensionValidationError = validate$r(obj_timeDimension, path_timeDimension);
761
708
  if (referencepath_timeDimensionValidationError !== null) {
762
709
  let message = 'Object doesn\'t match TimeDimension (at "' + path_timeDimension + '")\n';
763
710
  message += referencepath_timeDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -767,7 +714,7 @@ function validate$p(obj, path = 'MetricDefinition') {
767
714
  return v_error === undefined ? null : v_error;
768
715
  }
769
716
 
770
- function validate$o(obj, path = 'RepresentationOptions_NumberUnits') {
717
+ function validate$p(obj, path = 'RepresentationOptions_NumberUnits') {
771
718
  const v_error = (() => {
772
719
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
773
720
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -790,14 +737,14 @@ function validate$o(obj, path = 'RepresentationOptions_NumberUnits') {
790
737
  return v_error === undefined ? null : v_error;
791
738
  }
792
739
 
793
- function validate$n(obj, path = 'RepresentationOptions') {
740
+ function validate$o(obj, path = 'RepresentationOptions') {
794
741
  const v_error = (() => {
795
742
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
796
743
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
797
744
  }
798
745
  const obj_numberUnits = obj.numberUnits;
799
746
  const path_numberUnits = path + '.numberUnits';
800
- const referencepath_numberUnitsValidationError = validate$o(obj_numberUnits, path_numberUnits);
747
+ const referencepath_numberUnitsValidationError = validate$p(obj_numberUnits, path_numberUnits);
801
748
  if (referencepath_numberUnitsValidationError !== null) {
802
749
  let message = 'Object doesn\'t match RepresentationOptions_NumberUnits (at "' + path_numberUnits + '")\n';
803
750
  message += referencepath_numberUnitsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -821,14 +768,14 @@ function validate$n(obj, path = 'RepresentationOptions') {
821
768
  return v_error === undefined ? null : v_error;
822
769
  }
823
770
 
824
- function validate$m(obj, path = 'InputMetric') {
771
+ function validate$n(obj, path = 'InputMetric') {
825
772
  const v_error = (() => {
826
773
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
827
774
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
828
775
  }
829
776
  const obj_extensionOptions = obj.extensionOptions;
830
777
  const path_extensionOptions = path + '.extensionOptions';
831
- const referencepath_extensionOptionsValidationError = validate$I(obj_extensionOptions, path_extensionOptions);
778
+ const referencepath_extensionOptionsValidationError = validate$H(obj_extensionOptions, path_extensionOptions);
832
779
  if (referencepath_extensionOptionsValidationError !== null) {
833
780
  let message = 'Object doesn\'t match ExtensionOptions (at "' + path_extensionOptions + '")\n';
834
781
  message += referencepath_extensionOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -837,7 +784,7 @@ function validate$m(obj, path = 'InputMetric') {
837
784
  if (obj.goals !== undefined) {
838
785
  const obj_goals = obj.goals;
839
786
  const path_goals = path + '.goals';
840
- const referencepath_goalsValidationError = validate$G(obj_goals, path_goals);
787
+ const referencepath_goalsValidationError = validate$F(obj_goals, path_goals);
841
788
  if (referencepath_goalsValidationError !== null) {
842
789
  let message = 'Object doesn\'t match GoalMetadata (at "' + path_goals + '")\n';
843
790
  message += referencepath_goalsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -846,7 +793,7 @@ function validate$m(obj, path = 'InputMetric') {
846
793
  }
847
794
  const obj_insightsOptions = obj.insightsOptions;
848
795
  const path_insightsOptions = path + '.insightsOptions';
849
- const referencepath_insightsOptionsValidationError = validate$E(obj_insightsOptions, path_insightsOptions);
796
+ const referencepath_insightsOptionsValidationError = validate$D(obj_insightsOptions, path_insightsOptions);
850
797
  if (referencepath_insightsOptionsValidationError !== null) {
851
798
  let message = 'Object doesn\'t match InsightsOptions (at "' + path_insightsOptions + '")\n';
852
799
  message += referencepath_insightsOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -854,7 +801,7 @@ function validate$m(obj, path = 'InputMetric') {
854
801
  }
855
802
  const obj_instance = obj.instance;
856
803
  const path_instance = path + '.instance';
857
- const referencepath_instanceValidationError = validate$u(obj_instance, path_instance);
804
+ const referencepath_instanceValidationError = validate$v(obj_instance, path_instance);
858
805
  if (referencepath_instanceValidationError !== null) {
859
806
  let message = 'Object doesn\'t match MetricInstance (at "' + path_instance + '")\n';
860
807
  message += referencepath_instanceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -862,7 +809,7 @@ function validate$m(obj, path = 'InputMetric') {
862
809
  }
863
810
  const obj_metric = obj.metric;
864
811
  const path_metric = path + '.metric';
865
- const referencepath_metricValidationError = validate$p(obj_metric, path_metric);
812
+ const referencepath_metricValidationError = validate$q(obj_metric, path_metric);
866
813
  if (referencepath_metricValidationError !== null) {
867
814
  let message = 'Object doesn\'t match MetricDefinition (at "' + path_metric + '")\n';
868
815
  message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -870,7 +817,7 @@ function validate$m(obj, path = 'InputMetric') {
870
817
  }
871
818
  const obj_representationOptions = obj.representationOptions;
872
819
  const path_representationOptions = path + '.representationOptions';
873
- const referencepath_representationOptionsValidationError = validate$n(obj_representationOptions, path_representationOptions);
820
+ const referencepath_representationOptionsValidationError = validate$o(obj_representationOptions, path_representationOptions);
874
821
  if (referencepath_representationOptionsValidationError !== null) {
875
822
  let message = 'Object doesn\'t match RepresentationOptions (at "' + path_representationOptions + '")\n';
876
823
  message += referencepath_representationOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -880,14 +827,14 @@ function validate$m(obj, path = 'InputMetric') {
880
827
  return v_error === undefined ? null : v_error;
881
828
  }
882
829
 
883
- function validate$l(obj, path = 'InsightBundleInput') {
830
+ function validate$m(obj, path = 'InsightBundleInput') {
884
831
  const v_error = (() => {
885
832
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
886
833
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
887
834
  }
888
835
  const obj_metadata = obj.metadata;
889
836
  const path_metadata = path + '.metadata';
890
- const referencepath_metadataValidationError = validate$J(obj_metadata, path_metadata);
837
+ const referencepath_metadataValidationError = validate$I(obj_metadata, path_metadata);
891
838
  if (referencepath_metadataValidationError !== null) {
892
839
  let message = 'Object doesn\'t match MetricMetadata (at "' + path_metadata + '")\n';
893
840
  message += referencepath_metadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -895,7 +842,7 @@ function validate$l(obj, path = 'InsightBundleInput') {
895
842
  }
896
843
  const obj_metric = obj.metric;
897
844
  const path_metric = path + '.metric';
898
- const referencepath_metricValidationError = validate$m(obj_metric, path_metric);
845
+ const referencepath_metricValidationError = validate$n(obj_metric, path_metric);
899
846
  if (referencepath_metricValidationError !== null) {
900
847
  let message = 'Object doesn\'t match InputMetric (at "' + path_metric + '")\n';
901
848
  message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -905,11 +852,58 @@ function validate$l(obj, path = 'InsightBundleInput') {
905
852
  return v_error === undefined ? null : v_error;
906
853
  }
907
854
 
855
+ function validate$l(obj, path = 'UnifiedFilter') {
856
+ const v_error = (() => {
857
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
858
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
859
+ }
860
+ if (obj.fieldName !== undefined) {
861
+ const obj_fieldName = obj.fieldName;
862
+ const path_fieldName = path + '.fieldName';
863
+ if (typeof obj_fieldName !== 'string') {
864
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldName + '" (at "' + path_fieldName + '")');
865
+ }
866
+ }
867
+ if (obj.operator !== undefined) {
868
+ const obj_operator = obj.operator;
869
+ const path_operator = path + '.operator';
870
+ if (typeof obj_operator !== 'string') {
871
+ return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
872
+ }
873
+ }
874
+ if (obj.values !== undefined) {
875
+ const obj_values = obj.values;
876
+ const path_values = path + '.values';
877
+ if (!ArrayIsArray(obj_values)) {
878
+ return new TypeError('Expected "array" but received "' + typeof obj_values + '" (at "' + path_values + '")');
879
+ }
880
+ for (let i = 0; i < obj_values.length; i++) {
881
+ const obj_values_item = obj_values[i];
882
+ const path_values_item = path_values + '[' + i + ']';
883
+ if (obj_values_item === undefined) {
884
+ return new TypeError('Expected "defined" but received "' + typeof obj_values_item + '" (at "' + path_values_item + '")');
885
+ }
886
+ }
887
+ }
888
+ })();
889
+ return v_error === undefined ? null : v_error;
890
+ }
891
+
908
892
  function validate$k(obj, path = 'MetricInstanceInput') {
909
893
  const v_error = (() => {
910
894
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
911
895
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
912
896
  }
897
+ if (obj.measurementPeriod !== undefined) {
898
+ const obj_measurementPeriod = obj.measurementPeriod;
899
+ const path_measurementPeriod = path + '.measurementPeriod';
900
+ const referencepath_measurementPeriodValidationError = validate$l(obj_measurementPeriod, path_measurementPeriod);
901
+ if (referencepath_measurementPeriodValidationError !== null) {
902
+ let message = 'Object doesn\'t match UnifiedFilter (at "' + path_measurementPeriod + '")\n';
903
+ message += referencepath_measurementPeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
904
+ return new TypeError(message);
905
+ }
906
+ }
913
907
  const obj_metricInstanceId = obj.metricInstanceId;
914
908
  const path_metricInstanceId = path + '.metricInstanceId';
915
909
  if (typeof obj_metricInstanceId !== 'string') {
@@ -932,7 +926,7 @@ function validate$j(obj, path = 'BatchInput') {
932
926
  if (obj.bundleInput !== undefined) {
933
927
  const obj_bundleInput = obj.bundleInput;
934
928
  const path_bundleInput = path + '.bundleInput';
935
- const referencepath_bundleInputValidationError = validate$l(obj_bundleInput, path_bundleInput);
929
+ const referencepath_bundleInputValidationError = validate$m(obj_bundleInput, path_bundleInput);
936
930
  if (referencepath_bundleInputValidationError !== null) {
937
931
  let message = 'Object doesn\'t match InsightBundleInput (at "' + path_bundleInput + '")\n';
938
932
  message += referencepath_bundleInputValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1817,12 +1811,12 @@ function typeCheckConfig$3(untrustedConfig) {
1817
1811
  const config = {};
1818
1812
  typeCheckConfig$5(untrustedConfig, config, getMetricFilterValues_ConfigPropertyMetadata);
1819
1813
  const untrustedConfig_semanticDataModel = untrustedConfig.semanticDataModel;
1820
- const referenceSemanticDataModelValidationError = validate$r(untrustedConfig_semanticDataModel);
1814
+ const referenceSemanticDataModelValidationError = validate$s(untrustedConfig_semanticDataModel);
1821
1815
  if (referenceSemanticDataModelValidationError === null) {
1822
1816
  config.semanticDataModel = untrustedConfig_semanticDataModel;
1823
1817
  }
1824
1818
  const untrustedConfig_field = untrustedConfig.field;
1825
- const referenceFieldIdValidationError = validate$C(untrustedConfig_field);
1819
+ const referenceFieldIdValidationError = validate$B(untrustedConfig_field);
1826
1820
  if (referenceFieldIdValidationError === null) {
1827
1821
  config.field = untrustedConfig_field;
1828
1822
  }
@@ -1831,7 +1825,7 @@ function typeCheckConfig$3(untrustedConfig) {
1831
1825
  const untrustedConfig_filters_array = [];
1832
1826
  for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
1833
1827
  const untrustedConfig_filters_item = untrustedConfig_filters[i];
1834
- const referenceFilterValidationError = validate$z(untrustedConfig_filters_item);
1828
+ const referenceFilterValidationError = validate$y(untrustedConfig_filters_item);
1835
1829
  if (referenceFilterValidationError === null) {
1836
1830
  untrustedConfig_filters_array.push(untrustedConfig_filters_item);
1837
1831
  }
@@ -1839,7 +1833,7 @@ function typeCheckConfig$3(untrustedConfig) {
1839
1833
  config.filters = untrustedConfig_filters_array;
1840
1834
  }
1841
1835
  const untrustedConfig_semanticFilter = untrustedConfig.semanticFilter;
1842
- const referenceFlattenFilterValidationError = validate$v(untrustedConfig_semanticFilter);
1836
+ const referenceFlattenFilterValidationError = validate$w(untrustedConfig_semanticFilter);
1843
1837
  if (referenceFlattenFilterValidationError === null) {
1844
1838
  config.semanticFilter = untrustedConfig_semanticFilter;
1845
1839
  }
@@ -3052,7 +3046,7 @@ function typeCheckConfig$2(untrustedConfig) {
3052
3046
  const config = {};
3053
3047
  typeCheckConfig$5(untrustedConfig, config, generateInsights_ConfigPropertyMetadata);
3054
3048
  const untrustedConfig_input = untrustedConfig.input;
3055
- const referenceInsightBundleInputValidationError = validate$l(untrustedConfig_input);
3049
+ const referenceInsightBundleInputValidationError = validate$m(untrustedConfig_input);
3056
3050
  if (referenceInsightBundleInputValidationError === null) {
3057
3051
  config.input = untrustedConfig_input;
3058
3052
  }
@@ -3155,7 +3149,7 @@ function typeCheckConfig$1(untrustedConfig) {
3155
3149
  const config = {};
3156
3150
  typeCheckConfig$5(untrustedConfig, config, generateInsightsBasic_ConfigPropertyMetadata);
3157
3151
  const untrustedConfig_input = untrustedConfig.input;
3158
- const referenceInsightBundleInputValidationError = validate$l(untrustedConfig_input);
3152
+ const referenceInsightBundleInputValidationError = validate$m(untrustedConfig_input);
3159
3153
  if (referenceInsightBundleInputValidationError === null) {
3160
3154
  config.input = untrustedConfig_input;
3161
3155
  }