@salesforce/lds-adapters-sfap-analytics-insights 1.346.0 → 1.347.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -92,7 +92,7 @@ function createLink(ref) {
92
92
  };
93
93
  }
94
94
 
95
- function validate$J(obj, path = 'MetricMetadata') {
95
+ function validate$K(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$J(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$I(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$H(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$I(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$G(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$F(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$G(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$E(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$D(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$C(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$B(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$A(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$E(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$D(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$D(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$C(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$B(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,7 +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') {
467
+ function validate$z(obj, path = 'RelativePeriod') {
468
468
  const v_error = (() => {
469
469
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
470
470
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -487,7 +487,7 @@ function validate$y(obj, path = 'RelativePeriod') {
487
487
  return v_error === undefined ? null : v_error;
488
488
  }
489
489
 
490
- function validate$x(obj, path = 'MeasurementPeriod') {
490
+ function validate$y(obj, path = 'MeasurementPeriod') {
491
491
  const v_error = (() => {
492
492
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
493
493
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -495,7 +495,7 @@ function validate$x(obj, path = 'MeasurementPeriod') {
495
495
  if (obj.filter !== undefined) {
496
496
  const obj_filter = obj.filter;
497
497
  const path_filter = path + '.filter';
498
- const referencepath_filterValidationError = validate$z(obj_filter, path_filter);
498
+ const referencepath_filterValidationError = validate$A(obj_filter, path_filter);
499
499
  if (referencepath_filterValidationError !== null) {
500
500
  let message = 'Object doesn\'t match Filter (at "' + path_filter + '")\n';
501
501
  message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -505,18 +505,25 @@ function validate$x(obj, path = 'MeasurementPeriod') {
505
505
  if (obj.relativePeriod !== undefined) {
506
506
  const obj_relativePeriod = obj.relativePeriod;
507
507
  const path_relativePeriod = path + '.relativePeriod';
508
- const referencepath_relativePeriodValidationError = validate$y(obj_relativePeriod, path_relativePeriod);
508
+ const referencepath_relativePeriodValidationError = validate$z(obj_relativePeriod, path_relativePeriod);
509
509
  if (referencepath_relativePeriodValidationError !== null) {
510
510
  let message = 'Object doesn\'t match RelativePeriod (at "' + path_relativePeriod + '")\n';
511
511
  message += referencepath_relativePeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
512
512
  return new TypeError(message);
513
513
  }
514
514
  }
515
+ if (obj.semanticFilter !== undefined) {
516
+ const obj_semanticFilter = obj.semanticFilter;
517
+ const path_semanticFilter = path + '.semanticFilter';
518
+ if (obj_semanticFilter === undefined) {
519
+ return new TypeError('Expected "defined" but received "' + typeof obj_semanticFilter + '" (at "' + path_semanticFilter + '")');
520
+ }
521
+ }
515
522
  })();
516
523
  return v_error === undefined ? null : v_error;
517
524
  }
518
525
 
519
- function validate$w(obj, path = 'SemanticFilter') {
526
+ function validate$x(obj, path = 'SemanticFilter') {
520
527
  const v_error = (() => {
521
528
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
522
529
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -542,7 +549,7 @@ function validate$w(obj, path = 'SemanticFilter') {
542
549
  return v_error === undefined ? null : v_error;
543
550
  }
544
551
 
545
- function validate$v(obj, path = 'FlattenFilter') {
552
+ function validate$w(obj, path = 'FlattenFilter') {
546
553
  const v_error = (() => {
547
554
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
548
555
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -563,7 +570,7 @@ function validate$v(obj, path = 'FlattenFilter') {
563
570
  for (let i = 0; i < obj_filters.length; i++) {
564
571
  const obj_filters_item = obj_filters[i];
565
572
  const path_filters_item = path_filters + '[' + i + ']';
566
- const referencepath_filters_itemValidationError = validate$w(obj_filters_item, path_filters_item);
573
+ const referencepath_filters_itemValidationError = validate$x(obj_filters_item, path_filters_item);
567
574
  if (referencepath_filters_itemValidationError !== null) {
568
575
  let message = 'Object doesn\'t match SemanticFilter (at "' + path_filters_item + '")\n';
569
576
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -575,7 +582,7 @@ function validate$v(obj, path = 'FlattenFilter') {
575
582
  return v_error === undefined ? null : v_error;
576
583
  }
577
584
 
578
- function validate$u(obj, path = 'MetricInstance') {
585
+ function validate$v(obj, path = 'MetricInstance') {
579
586
  const v_error = (() => {
580
587
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
581
588
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -589,7 +596,7 @@ function validate$u(obj, path = 'MetricInstance') {
589
596
  for (let i = 0; i < obj_filters.length; i++) {
590
597
  const obj_filters_item = obj_filters[i];
591
598
  const path_filters_item = path_filters + '[' + i + ']';
592
- const referencepath_filters_itemValidationError = validate$z(obj_filters_item, path_filters_item);
599
+ const referencepath_filters_itemValidationError = validate$A(obj_filters_item, path_filters_item);
593
600
  if (referencepath_filters_itemValidationError !== null) {
594
601
  let message = 'Object doesn\'t match Filter (at "' + path_filters_item + '")\n';
595
602
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -599,7 +606,7 @@ function validate$u(obj, path = 'MetricInstance') {
599
606
  }
600
607
  const obj_measurementPeriod = obj.measurementPeriod;
601
608
  const path_measurementPeriod = path + '.measurementPeriod';
602
- const referencepath_measurementPeriodValidationError = validate$x(obj_measurementPeriod, path_measurementPeriod);
609
+ const referencepath_measurementPeriodValidationError = validate$y(obj_measurementPeriod, path_measurementPeriod);
603
610
  if (referencepath_measurementPeriodValidationError !== null) {
604
611
  let message = 'Object doesn\'t match MeasurementPeriod (at "' + path_measurementPeriod + '")\n';
605
612
  message += referencepath_measurementPeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -608,7 +615,7 @@ function validate$u(obj, path = 'MetricInstance') {
608
615
  if (obj.semanticFilter !== undefined) {
609
616
  const obj_semanticFilter = obj.semanticFilter;
610
617
  const path_semanticFilter = path + '.semanticFilter';
611
- const referencepath_semanticFilterValidationError = validate$v(obj_semanticFilter, path_semanticFilter);
618
+ const referencepath_semanticFilterValidationError = validate$w(obj_semanticFilter, path_semanticFilter);
612
619
  if (referencepath_semanticFilterValidationError !== null) {
613
620
  let message = 'Object doesn\'t match FlattenFilter (at "' + path_semanticFilter + '")\n';
614
621
  message += referencepath_semanticFilterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -619,7 +626,7 @@ function validate$u(obj, path = 'MetricInstance') {
619
626
  return v_error === undefined ? null : v_error;
620
627
  }
621
628
 
622
- function validate$t(obj, path = 'CompareConfig') {
629
+ function validate$u(obj, path = 'CompareConfig') {
623
630
  const v_error = (() => {
624
631
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
625
632
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -635,7 +642,7 @@ function validate$t(obj, path = 'CompareConfig') {
635
642
  return v_error === undefined ? null : v_error;
636
643
  }
637
644
 
638
- function validate$s(obj, path = 'Measure') {
645
+ function validate$t(obj, path = 'Measure') {
639
646
  const v_error = (() => {
640
647
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
641
648
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -649,7 +656,7 @@ function validate$s(obj, path = 'Measure') {
649
656
  }
650
657
  const obj_field = obj.field;
651
658
  const path_field = path + '.field';
652
- const referencepath_fieldValidationError = validate$C(obj_field, path_field);
659
+ const referencepath_fieldValidationError = validate$D(obj_field, path_field);
653
660
  if (referencepath_fieldValidationError !== null) {
654
661
  let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
655
662
  message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -659,7 +666,7 @@ function validate$s(obj, path = 'Measure') {
659
666
  return v_error === undefined ? null : v_error;
660
667
  }
661
668
 
662
- function validate$r(obj, path = 'SemanticDataModel') {
669
+ function validate$s(obj, path = 'SemanticDataModel') {
663
670
  const v_error = (() => {
664
671
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
665
672
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -675,14 +682,14 @@ function validate$r(obj, path = 'SemanticDataModel') {
675
682
  return v_error === undefined ? null : v_error;
676
683
  }
677
684
 
678
- function validate$q(obj, path = 'TimeDimension') {
685
+ function validate$r(obj, path = 'TimeDimension') {
679
686
  const v_error = (() => {
680
687
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
681
688
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
682
689
  }
683
690
  const obj_field = obj.field;
684
691
  const path_field = path + '.field';
685
- const referencepath_fieldValidationError = validate$C(obj_field, path_field);
692
+ const referencepath_fieldValidationError = validate$D(obj_field, path_field);
686
693
  if (referencepath_fieldValidationError !== null) {
687
694
  let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
688
695
  message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -692,14 +699,14 @@ function validate$q(obj, path = 'TimeDimension') {
692
699
  return v_error === undefined ? null : v_error;
693
700
  }
694
701
 
695
- function validate$p(obj, path = 'MetricDefinition') {
702
+ function validate$q(obj, path = 'MetricDefinition') {
696
703
  const v_error = (() => {
697
704
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
698
705
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
699
706
  }
700
707
  const obj_comparison = obj.comparison;
701
708
  const path_comparison = path + '.comparison';
702
- const referencepath_comparisonValidationError = validate$t(obj_comparison, path_comparison);
709
+ const referencepath_comparisonValidationError = validate$u(obj_comparison, path_comparison);
703
710
  if (referencepath_comparisonValidationError !== null) {
704
711
  let message = 'Object doesn\'t match CompareConfig (at "' + path_comparison + '")\n';
705
712
  message += referencepath_comparisonValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -714,7 +721,7 @@ function validate$p(obj, path = 'MetricDefinition') {
714
721
  for (let i = 0; i < obj_filters.length; i++) {
715
722
  const obj_filters_item = obj_filters[i];
716
723
  const path_filters_item = path_filters + '[' + i + ']';
717
- const referencepath_filters_itemValidationError = validate$z(obj_filters_item, path_filters_item);
724
+ const referencepath_filters_itemValidationError = validate$A(obj_filters_item, path_filters_item);
718
725
  if (referencepath_filters_itemValidationError !== null) {
719
726
  let message = 'Object doesn\'t match Filter (at "' + path_filters_item + '")\n';
720
727
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -724,7 +731,7 @@ function validate$p(obj, path = 'MetricDefinition') {
724
731
  }
725
732
  const obj_measure = obj.measure;
726
733
  const path_measure = path + '.measure';
727
- const referencepath_measureValidationError = validate$s(obj_measure, path_measure);
734
+ const referencepath_measureValidationError = validate$t(obj_measure, path_measure);
728
735
  if (referencepath_measureValidationError !== null) {
729
736
  let message = 'Object doesn\'t match Measure (at "' + path_measure + '")\n';
730
737
  message += referencepath_measureValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -739,7 +746,7 @@ function validate$p(obj, path = 'MetricDefinition') {
739
746
  }
740
747
  const obj_semanticDataModel = obj.semanticDataModel;
741
748
  const path_semanticDataModel = path + '.semanticDataModel';
742
- const referencepath_semanticDataModelValidationError = validate$r(obj_semanticDataModel, path_semanticDataModel);
749
+ const referencepath_semanticDataModelValidationError = validate$s(obj_semanticDataModel, path_semanticDataModel);
743
750
  if (referencepath_semanticDataModelValidationError !== null) {
744
751
  let message = 'Object doesn\'t match SemanticDataModel (at "' + path_semanticDataModel + '")\n';
745
752
  message += referencepath_semanticDataModelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -748,7 +755,7 @@ function validate$p(obj, path = 'MetricDefinition') {
748
755
  if (obj.semanticFilter !== undefined) {
749
756
  const obj_semanticFilter = obj.semanticFilter;
750
757
  const path_semanticFilter = path + '.semanticFilter';
751
- const referencepath_semanticFilterValidationError = validate$v(obj_semanticFilter, path_semanticFilter);
758
+ const referencepath_semanticFilterValidationError = validate$w(obj_semanticFilter, path_semanticFilter);
752
759
  if (referencepath_semanticFilterValidationError !== null) {
753
760
  let message = 'Object doesn\'t match FlattenFilter (at "' + path_semanticFilter + '")\n';
754
761
  message += referencepath_semanticFilterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -757,7 +764,7 @@ function validate$p(obj, path = 'MetricDefinition') {
757
764
  }
758
765
  const obj_timeDimension = obj.timeDimension;
759
766
  const path_timeDimension = path + '.timeDimension';
760
- const referencepath_timeDimensionValidationError = validate$q(obj_timeDimension, path_timeDimension);
767
+ const referencepath_timeDimensionValidationError = validate$r(obj_timeDimension, path_timeDimension);
761
768
  if (referencepath_timeDimensionValidationError !== null) {
762
769
  let message = 'Object doesn\'t match TimeDimension (at "' + path_timeDimension + '")\n';
763
770
  message += referencepath_timeDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -767,7 +774,7 @@ function validate$p(obj, path = 'MetricDefinition') {
767
774
  return v_error === undefined ? null : v_error;
768
775
  }
769
776
 
770
- function validate$o(obj, path = 'RepresentationOptions_NumberUnits') {
777
+ function validate$p(obj, path = 'RepresentationOptions_NumberUnits') {
771
778
  const v_error = (() => {
772
779
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
773
780
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -790,14 +797,14 @@ function validate$o(obj, path = 'RepresentationOptions_NumberUnits') {
790
797
  return v_error === undefined ? null : v_error;
791
798
  }
792
799
 
793
- function validate$n(obj, path = 'RepresentationOptions') {
800
+ function validate$o(obj, path = 'RepresentationOptions') {
794
801
  const v_error = (() => {
795
802
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
796
803
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
797
804
  }
798
805
  const obj_numberUnits = obj.numberUnits;
799
806
  const path_numberUnits = path + '.numberUnits';
800
- const referencepath_numberUnitsValidationError = validate$o(obj_numberUnits, path_numberUnits);
807
+ const referencepath_numberUnitsValidationError = validate$p(obj_numberUnits, path_numberUnits);
801
808
  if (referencepath_numberUnitsValidationError !== null) {
802
809
  let message = 'Object doesn\'t match RepresentationOptions_NumberUnits (at "' + path_numberUnits + '")\n';
803
810
  message += referencepath_numberUnitsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -821,14 +828,14 @@ function validate$n(obj, path = 'RepresentationOptions') {
821
828
  return v_error === undefined ? null : v_error;
822
829
  }
823
830
 
824
- function validate$m(obj, path = 'InputMetric') {
831
+ function validate$n(obj, path = 'InputMetric') {
825
832
  const v_error = (() => {
826
833
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
827
834
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
828
835
  }
829
836
  const obj_extensionOptions = obj.extensionOptions;
830
837
  const path_extensionOptions = path + '.extensionOptions';
831
- const referencepath_extensionOptionsValidationError = validate$I(obj_extensionOptions, path_extensionOptions);
838
+ const referencepath_extensionOptionsValidationError = validate$J(obj_extensionOptions, path_extensionOptions);
832
839
  if (referencepath_extensionOptionsValidationError !== null) {
833
840
  let message = 'Object doesn\'t match ExtensionOptions (at "' + path_extensionOptions + '")\n';
834
841
  message += referencepath_extensionOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -837,7 +844,7 @@ function validate$m(obj, path = 'InputMetric') {
837
844
  if (obj.goals !== undefined) {
838
845
  const obj_goals = obj.goals;
839
846
  const path_goals = path + '.goals';
840
- const referencepath_goalsValidationError = validate$G(obj_goals, path_goals);
847
+ const referencepath_goalsValidationError = validate$H(obj_goals, path_goals);
841
848
  if (referencepath_goalsValidationError !== null) {
842
849
  let message = 'Object doesn\'t match GoalMetadata (at "' + path_goals + '")\n';
843
850
  message += referencepath_goalsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -846,7 +853,7 @@ function validate$m(obj, path = 'InputMetric') {
846
853
  }
847
854
  const obj_insightsOptions = obj.insightsOptions;
848
855
  const path_insightsOptions = path + '.insightsOptions';
849
- const referencepath_insightsOptionsValidationError = validate$E(obj_insightsOptions, path_insightsOptions);
856
+ const referencepath_insightsOptionsValidationError = validate$F(obj_insightsOptions, path_insightsOptions);
850
857
  if (referencepath_insightsOptionsValidationError !== null) {
851
858
  let message = 'Object doesn\'t match InsightsOptions (at "' + path_insightsOptions + '")\n';
852
859
  message += referencepath_insightsOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -854,7 +861,7 @@ function validate$m(obj, path = 'InputMetric') {
854
861
  }
855
862
  const obj_instance = obj.instance;
856
863
  const path_instance = path + '.instance';
857
- const referencepath_instanceValidationError = validate$u(obj_instance, path_instance);
864
+ const referencepath_instanceValidationError = validate$v(obj_instance, path_instance);
858
865
  if (referencepath_instanceValidationError !== null) {
859
866
  let message = 'Object doesn\'t match MetricInstance (at "' + path_instance + '")\n';
860
867
  message += referencepath_instanceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -862,7 +869,7 @@ function validate$m(obj, path = 'InputMetric') {
862
869
  }
863
870
  const obj_metric = obj.metric;
864
871
  const path_metric = path + '.metric';
865
- const referencepath_metricValidationError = validate$p(obj_metric, path_metric);
872
+ const referencepath_metricValidationError = validate$q(obj_metric, path_metric);
866
873
  if (referencepath_metricValidationError !== null) {
867
874
  let message = 'Object doesn\'t match MetricDefinition (at "' + path_metric + '")\n';
868
875
  message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -870,7 +877,7 @@ function validate$m(obj, path = 'InputMetric') {
870
877
  }
871
878
  const obj_representationOptions = obj.representationOptions;
872
879
  const path_representationOptions = path + '.representationOptions';
873
- const referencepath_representationOptionsValidationError = validate$n(obj_representationOptions, path_representationOptions);
880
+ const referencepath_representationOptionsValidationError = validate$o(obj_representationOptions, path_representationOptions);
874
881
  if (referencepath_representationOptionsValidationError !== null) {
875
882
  let message = 'Object doesn\'t match RepresentationOptions (at "' + path_representationOptions + '")\n';
876
883
  message += referencepath_representationOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -880,14 +887,14 @@ function validate$m(obj, path = 'InputMetric') {
880
887
  return v_error === undefined ? null : v_error;
881
888
  }
882
889
 
883
- function validate$l(obj, path = 'InsightBundleInput') {
890
+ function validate$m(obj, path = 'InsightBundleInput') {
884
891
  const v_error = (() => {
885
892
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
886
893
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
887
894
  }
888
895
  const obj_metadata = obj.metadata;
889
896
  const path_metadata = path + '.metadata';
890
- const referencepath_metadataValidationError = validate$J(obj_metadata, path_metadata);
897
+ const referencepath_metadataValidationError = validate$K(obj_metadata, path_metadata);
891
898
  if (referencepath_metadataValidationError !== null) {
892
899
  let message = 'Object doesn\'t match MetricMetadata (at "' + path_metadata + '")\n';
893
900
  message += referencepath_metadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -895,7 +902,7 @@ function validate$l(obj, path = 'InsightBundleInput') {
895
902
  }
896
903
  const obj_metric = obj.metric;
897
904
  const path_metric = path + '.metric';
898
- const referencepath_metricValidationError = validate$m(obj_metric, path_metric);
905
+ const referencepath_metricValidationError = validate$n(obj_metric, path_metric);
899
906
  if (referencepath_metricValidationError !== null) {
900
907
  let message = 'Object doesn\'t match InputMetric (at "' + path_metric + '")\n';
901
908
  message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -905,11 +912,58 @@ function validate$l(obj, path = 'InsightBundleInput') {
905
912
  return v_error === undefined ? null : v_error;
906
913
  }
907
914
 
915
+ function validate$l(obj, path = 'UnifiedFilter') {
916
+ const v_error = (() => {
917
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
918
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
919
+ }
920
+ if (obj.fieldName !== undefined) {
921
+ const obj_fieldName = obj.fieldName;
922
+ const path_fieldName = path + '.fieldName';
923
+ if (typeof obj_fieldName !== 'string') {
924
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldName + '" (at "' + path_fieldName + '")');
925
+ }
926
+ }
927
+ if (obj.operator !== undefined) {
928
+ const obj_operator = obj.operator;
929
+ const path_operator = path + '.operator';
930
+ if (typeof obj_operator !== 'string') {
931
+ return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
932
+ }
933
+ }
934
+ if (obj.values !== undefined) {
935
+ const obj_values = obj.values;
936
+ const path_values = path + '.values';
937
+ if (!ArrayIsArray(obj_values)) {
938
+ return new TypeError('Expected "array" but received "' + typeof obj_values + '" (at "' + path_values + '")');
939
+ }
940
+ for (let i = 0; i < obj_values.length; i++) {
941
+ const obj_values_item = obj_values[i];
942
+ const path_values_item = path_values + '[' + i + ']';
943
+ if (obj_values_item === undefined) {
944
+ return new TypeError('Expected "defined" but received "' + typeof obj_values_item + '" (at "' + path_values_item + '")');
945
+ }
946
+ }
947
+ }
948
+ })();
949
+ return v_error === undefined ? null : v_error;
950
+ }
951
+
908
952
  function validate$k(obj, path = 'MetricInstanceInput') {
909
953
  const v_error = (() => {
910
954
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
911
955
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
912
956
  }
957
+ if (obj.measurementPeriod !== undefined) {
958
+ const obj_measurementPeriod = obj.measurementPeriod;
959
+ const path_measurementPeriod = path + '.measurementPeriod';
960
+ const referencepath_measurementPeriodValidationError = validate$l(obj_measurementPeriod, path_measurementPeriod);
961
+ if (referencepath_measurementPeriodValidationError !== null) {
962
+ let message = 'Object doesn\'t match UnifiedFilter (at "' + path_measurementPeriod + '")\n';
963
+ message += referencepath_measurementPeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
964
+ return new TypeError(message);
965
+ }
966
+ }
913
967
  const obj_metricInstanceId = obj.metricInstanceId;
914
968
  const path_metricInstanceId = path + '.metricInstanceId';
915
969
  if (typeof obj_metricInstanceId !== 'string') {
@@ -932,7 +986,7 @@ function validate$j(obj, path = 'BatchInput') {
932
986
  if (obj.bundleInput !== undefined) {
933
987
  const obj_bundleInput = obj.bundleInput;
934
988
  const path_bundleInput = path + '.bundleInput';
935
- const referencepath_bundleInputValidationError = validate$l(obj_bundleInput, path_bundleInput);
989
+ const referencepath_bundleInputValidationError = validate$m(obj_bundleInput, path_bundleInput);
936
990
  if (referencepath_bundleInputValidationError !== null) {
937
991
  let message = 'Object doesn\'t match InsightBundleInput (at "' + path_bundleInput + '")\n';
938
992
  message += referencepath_bundleInputValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1817,12 +1871,12 @@ function typeCheckConfig$3(untrustedConfig) {
1817
1871
  const config = {};
1818
1872
  typeCheckConfig$5(untrustedConfig, config, getMetricFilterValues_ConfigPropertyMetadata);
1819
1873
  const untrustedConfig_semanticDataModel = untrustedConfig.semanticDataModel;
1820
- const referenceSemanticDataModelValidationError = validate$r(untrustedConfig_semanticDataModel);
1874
+ const referenceSemanticDataModelValidationError = validate$s(untrustedConfig_semanticDataModel);
1821
1875
  if (referenceSemanticDataModelValidationError === null) {
1822
1876
  config.semanticDataModel = untrustedConfig_semanticDataModel;
1823
1877
  }
1824
1878
  const untrustedConfig_field = untrustedConfig.field;
1825
- const referenceFieldIdValidationError = validate$C(untrustedConfig_field);
1879
+ const referenceFieldIdValidationError = validate$D(untrustedConfig_field);
1826
1880
  if (referenceFieldIdValidationError === null) {
1827
1881
  config.field = untrustedConfig_field;
1828
1882
  }
@@ -1831,7 +1885,7 @@ function typeCheckConfig$3(untrustedConfig) {
1831
1885
  const untrustedConfig_filters_array = [];
1832
1886
  for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
1833
1887
  const untrustedConfig_filters_item = untrustedConfig_filters[i];
1834
- const referenceFilterValidationError = validate$z(untrustedConfig_filters_item);
1888
+ const referenceFilterValidationError = validate$A(untrustedConfig_filters_item);
1835
1889
  if (referenceFilterValidationError === null) {
1836
1890
  untrustedConfig_filters_array.push(untrustedConfig_filters_item);
1837
1891
  }
@@ -1839,7 +1893,7 @@ function typeCheckConfig$3(untrustedConfig) {
1839
1893
  config.filters = untrustedConfig_filters_array;
1840
1894
  }
1841
1895
  const untrustedConfig_semanticFilter = untrustedConfig.semanticFilter;
1842
- const referenceFlattenFilterValidationError = validate$v(untrustedConfig_semanticFilter);
1896
+ const referenceFlattenFilterValidationError = validate$w(untrustedConfig_semanticFilter);
1843
1897
  if (referenceFlattenFilterValidationError === null) {
1844
1898
  config.semanticFilter = untrustedConfig_semanticFilter;
1845
1899
  }
@@ -3052,7 +3106,7 @@ function typeCheckConfig$2(untrustedConfig) {
3052
3106
  const config = {};
3053
3107
  typeCheckConfig$5(untrustedConfig, config, generateInsights_ConfigPropertyMetadata);
3054
3108
  const untrustedConfig_input = untrustedConfig.input;
3055
- const referenceInsightBundleInputValidationError = validate$l(untrustedConfig_input);
3109
+ const referenceInsightBundleInputValidationError = validate$m(untrustedConfig_input);
3056
3110
  if (referenceInsightBundleInputValidationError === null) {
3057
3111
  config.input = untrustedConfig_input;
3058
3112
  }
@@ -3155,7 +3209,7 @@ function typeCheckConfig$1(untrustedConfig) {
3155
3209
  const config = {};
3156
3210
  typeCheckConfig$5(untrustedConfig, config, generateInsightsBasic_ConfigPropertyMetadata);
3157
3211
  const untrustedConfig_input = untrustedConfig.input;
3158
- const referenceInsightBundleInputValidationError = validate$l(untrustedConfig_input);
3212
+ const referenceInsightBundleInputValidationError = validate$m(untrustedConfig_input);
3159
3213
  if (referenceInsightBundleInputValidationError === null) {
3160
3214
  config.input = untrustedConfig_input;
3161
3215
  }
@@ -1,7 +1,7 @@
1
1
  import { Filter as Filter_Filter } from './Filter';
2
2
  import { RelativePeriod as RelativePeriod_RelativePeriod } from './RelativePeriod';
3
3
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
4
- export declare const VERSION = "1e869467244de8345ef0ae47db7efe5a";
4
+ export declare const VERSION = "4a016b66b546a8ae805a5271877fa734";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export declare function normalize(input: MeasurementPeriod, existing: MeasurementPeriodNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): MeasurementPeriodNormalized;
@@ -18,6 +18,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
18
18
  export interface MeasurementPeriodNormalized {
19
19
  filter?: Filter_Filter;
20
20
  relativePeriod?: RelativePeriod_RelativePeriod;
21
+ /** We do not yet have support for fiscal year */
22
+ semanticFilter?: unknown;
21
23
  }
22
24
  /**
23
25
  *
@@ -28,4 +30,5 @@ export interface MeasurementPeriodNormalized {
28
30
  export interface MeasurementPeriod {
29
31
  filter?: Filter_Filter;
30
32
  relativePeriod?: RelativePeriod_RelativePeriod;
33
+ semanticFilter?: unknown;
31
34
  }
@@ -21,6 +21,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
21
21
  */
22
22
  export interface MetricDefinitionNormalized {
23
23
  comparison: CompareConfig_CompareConfig;
24
+ /** DEPRECATED Please don't use this field. */
24
25
  filters?: Array<Filter_Filter>;
25
26
  measure: Measure_Measure;
26
27
  runningTotal?: boolean;