@salesforce/lds-adapters-sfap-analytics-insights 1.347.1 → 1.348.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$K(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$K(obj, path = 'MetricMetadata') {
115
115
  return v_error === undefined ? null : v_error;
116
116
  }
117
117
 
118
- function validate$J(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$J(obj, path = 'ExtensionOptions') {
145
145
  return v_error === undefined ? null : v_error;
146
146
  }
147
147
 
148
- function validate$I(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$I(obj, path = 'GoalMetadata_StatusCondition') {
196
196
  return v_error === undefined ? null : v_error;
197
197
  }
198
198
 
199
- function validate$H(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$H(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$I(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$H(obj, path = 'GoalMetadata') {
229
229
  return v_error === undefined ? null : v_error;
230
230
  }
231
231
 
232
- function validate$G(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$G(obj, path = 'InsightsOptions_InsightSetting') {
252
252
  return v_error === undefined ? null : v_error;
253
253
  }
254
254
 
255
- function validate$F(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$F(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$G(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$F(obj, path = 'InsightsOptions') {
278
278
  return v_error === undefined ? null : v_error;
279
279
  }
280
280
 
281
- function validate$E(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$E(obj, path = 'CategoricalFilterOptions') {
315
315
  return v_error === undefined ? null : v_error;
316
316
  }
317
317
 
318
- function validate$D(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$D(obj, path = 'FieldId') {
345
345
  return v_error === undefined ? null : v_error;
346
346
  }
347
347
 
348
- function validate$C(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$C(obj, path = 'RangeFilterOptions') {
389
389
  return v_error === undefined ? null : v_error;
390
390
  }
391
391
 
392
- function validate$B(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$B(obj, path = 'RelativeDateFilterOptions') {
398
398
  return v_error === undefined ? null : v_error;
399
399
  }
400
400
 
401
- function validate$A(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$A(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$E(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$A(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$D(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$A(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$D(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$A(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$C(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$A(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$B(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,65 +464,6 @@ function validate$A(obj, path = 'Filter') {
464
464
  return v_error === undefined ? null : v_error;
465
465
  }
466
466
 
467
- function validate$z(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$y(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$A(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$z(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
- 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
- }
522
- })();
523
- return v_error === undefined ? null : v_error;
524
- }
525
-
526
467
  function validate$x(obj, path = 'SemanticFilter') {
527
468
  const v_error = (() => {
528
469
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -596,7 +537,7 @@ function validate$v(obj, path = 'MetricInstance') {
596
537
  for (let i = 0; i < obj_filters.length; i++) {
597
538
  const obj_filters_item = obj_filters[i];
598
539
  const path_filters_item = path_filters + '[' + i + ']';
599
- const referencepath_filters_itemValidationError = validate$A(obj_filters_item, path_filters_item);
540
+ const referencepath_filters_itemValidationError = validate$y(obj_filters_item, path_filters_item);
600
541
  if (referencepath_filters_itemValidationError !== null) {
601
542
  let message = 'Object doesn\'t match Filter (at "' + path_filters_item + '")\n';
602
543
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -604,13 +545,12 @@ function validate$v(obj, path = 'MetricInstance') {
604
545
  }
605
546
  }
606
547
  }
607
- const obj_measurementPeriod = obj.measurementPeriod;
608
- const path_measurementPeriod = path + '.measurementPeriod';
609
- const referencepath_measurementPeriodValidationError = validate$y(obj_measurementPeriod, path_measurementPeriod);
610
- if (referencepath_measurementPeriodValidationError !== null) {
611
- let message = 'Object doesn\'t match MeasurementPeriod (at "' + path_measurementPeriod + '")\n';
612
- message += referencepath_measurementPeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
613
- 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
+ }
614
554
  }
615
555
  if (obj.semanticFilter !== undefined) {
616
556
  const obj_semanticFilter = obj.semanticFilter;
@@ -656,7 +596,7 @@ function validate$t(obj, path = 'Measure') {
656
596
  }
657
597
  const obj_field = obj.field;
658
598
  const path_field = path + '.field';
659
- const referencepath_fieldValidationError = validate$D(obj_field, path_field);
599
+ const referencepath_fieldValidationError = validate$B(obj_field, path_field);
660
600
  if (referencepath_fieldValidationError !== null) {
661
601
  let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
662
602
  message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -689,7 +629,7 @@ function validate$r(obj, path = 'TimeDimension') {
689
629
  }
690
630
  const obj_field = obj.field;
691
631
  const path_field = path + '.field';
692
- const referencepath_fieldValidationError = validate$D(obj_field, path_field);
632
+ const referencepath_fieldValidationError = validate$B(obj_field, path_field);
693
633
  if (referencepath_fieldValidationError !== null) {
694
634
  let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
695
635
  message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -721,7 +661,7 @@ function validate$q(obj, path = 'MetricDefinition') {
721
661
  for (let i = 0; i < obj_filters.length; i++) {
722
662
  const obj_filters_item = obj_filters[i];
723
663
  const path_filters_item = path_filters + '[' + i + ']';
724
- const referencepath_filters_itemValidationError = validate$A(obj_filters_item, path_filters_item);
664
+ const referencepath_filters_itemValidationError = validate$y(obj_filters_item, path_filters_item);
725
665
  if (referencepath_filters_itemValidationError !== null) {
726
666
  let message = 'Object doesn\'t match Filter (at "' + path_filters_item + '")\n';
727
667
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -835,7 +775,7 @@ function validate$n(obj, path = 'InputMetric') {
835
775
  }
836
776
  const obj_extensionOptions = obj.extensionOptions;
837
777
  const path_extensionOptions = path + '.extensionOptions';
838
- const referencepath_extensionOptionsValidationError = validate$J(obj_extensionOptions, path_extensionOptions);
778
+ const referencepath_extensionOptionsValidationError = validate$H(obj_extensionOptions, path_extensionOptions);
839
779
  if (referencepath_extensionOptionsValidationError !== null) {
840
780
  let message = 'Object doesn\'t match ExtensionOptions (at "' + path_extensionOptions + '")\n';
841
781
  message += referencepath_extensionOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -844,7 +784,7 @@ function validate$n(obj, path = 'InputMetric') {
844
784
  if (obj.goals !== undefined) {
845
785
  const obj_goals = obj.goals;
846
786
  const path_goals = path + '.goals';
847
- const referencepath_goalsValidationError = validate$H(obj_goals, path_goals);
787
+ const referencepath_goalsValidationError = validate$F(obj_goals, path_goals);
848
788
  if (referencepath_goalsValidationError !== null) {
849
789
  let message = 'Object doesn\'t match GoalMetadata (at "' + path_goals + '")\n';
850
790
  message += referencepath_goalsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -853,7 +793,7 @@ function validate$n(obj, path = 'InputMetric') {
853
793
  }
854
794
  const obj_insightsOptions = obj.insightsOptions;
855
795
  const path_insightsOptions = path + '.insightsOptions';
856
- const referencepath_insightsOptionsValidationError = validate$F(obj_insightsOptions, path_insightsOptions);
796
+ const referencepath_insightsOptionsValidationError = validate$D(obj_insightsOptions, path_insightsOptions);
857
797
  if (referencepath_insightsOptionsValidationError !== null) {
858
798
  let message = 'Object doesn\'t match InsightsOptions (at "' + path_insightsOptions + '")\n';
859
799
  message += referencepath_insightsOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -894,7 +834,7 @@ function validate$m(obj, path = 'InsightBundleInput') {
894
834
  }
895
835
  const obj_metadata = obj.metadata;
896
836
  const path_metadata = path + '.metadata';
897
- const referencepath_metadataValidationError = validate$K(obj_metadata, path_metadata);
837
+ const referencepath_metadataValidationError = validate$I(obj_metadata, path_metadata);
898
838
  if (referencepath_metadataValidationError !== null) {
899
839
  let message = 'Object doesn\'t match MetricMetadata (at "' + path_metadata + '")\n';
900
840
  message += referencepath_metadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1876,7 +1816,7 @@ function typeCheckConfig$3(untrustedConfig) {
1876
1816
  config.semanticDataModel = untrustedConfig_semanticDataModel;
1877
1817
  }
1878
1818
  const untrustedConfig_field = untrustedConfig.field;
1879
- const referenceFieldIdValidationError = validate$D(untrustedConfig_field);
1819
+ const referenceFieldIdValidationError = validate$B(untrustedConfig_field);
1880
1820
  if (referenceFieldIdValidationError === null) {
1881
1821
  config.field = untrustedConfig_field;
1882
1822
  }
@@ -1885,7 +1825,7 @@ function typeCheckConfig$3(untrustedConfig) {
1885
1825
  const untrustedConfig_filters_array = [];
1886
1826
  for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
1887
1827
  const untrustedConfig_filters_item = untrustedConfig_filters[i];
1888
- const referenceFilterValidationError = validate$A(untrustedConfig_filters_item);
1828
+ const referenceFilterValidationError = validate$y(untrustedConfig_filters_item);
1889
1829
  if (referenceFilterValidationError === null) {
1890
1830
  untrustedConfig_filters_array.push(untrustedConfig_filters_item);
1891
1831
  }
@@ -1,8 +1,7 @@
1
1
  import { Filter as Filter_Filter } from './Filter';
2
- import { MeasurementPeriod as MeasurementPeriod_MeasurementPeriod } from './MeasurementPeriod';
3
2
  import { FlattenFilter as FlattenFilter_FlattenFilter } from './FlattenFilter';
4
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';
5
- export declare const VERSION = "6109c7c8602d73ca0af0de991ebfdc58";
4
+ export declare const VERSION = "0278f9efb04f0f3d2165d5c8f69125fb";
6
5
  export declare function validate(obj: any, path?: string): TypeError | null;
7
6
  export declare const RepresentationType: string;
8
7
  export declare function normalize(input: MetricInstance, existing: MetricInstanceNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): MetricInstanceNormalized;
@@ -20,7 +19,7 @@ export interface MetricInstanceNormalized {
20
19
  /** DEPRECATED Please don't use this field.
21
20
  The 'filters' and 'semantic_filters' will be ANDed together */
22
21
  filters?: Array<Filter_Filter>;
23
- measurementPeriod: MeasurementPeriod_MeasurementPeriod;
22
+ measurementPeriod?: unknown;
24
23
  semanticFilter?: FlattenFilter_FlattenFilter;
25
24
  }
26
25
  /**
@@ -31,6 +30,6 @@ export interface MetricInstanceNormalized {
31
30
  */
32
31
  export interface MetricInstance {
33
32
  filters?: Array<Filter_Filter>;
34
- measurementPeriod: MeasurementPeriod_MeasurementPeriod;
33
+ measurementPeriod?: unknown;
35
34
  semanticFilter?: FlattenFilter_FlattenFilter;
36
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-sfap-analytics-insights",
3
- "version": "1.347.1",
3
+ "version": "1.348.0",
4
4
  "description": "APIs for generating insights about metrics",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/sfap-analytics-insights.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.347.1"
43
+ "@salesforce/lds-bindings": "^1.348.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.347.1"
46
+ "@salesforce/lds-compiler-plugins": "^1.348.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -102,7 +102,7 @@ function createLink(ref) {
102
102
  };
103
103
  }
104
104
 
105
- function validate$K(obj, path = 'MetricMetadata') {
105
+ function validate$I(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$K(obj, path = 'MetricMetadata') {
125
125
  return v_error === undefined ? null : v_error;
126
126
  }
127
127
 
128
- function validate$J(obj, path = 'ExtensionOptions') {
128
+ function validate$H(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$J(obj, path = 'ExtensionOptions') {
155
155
  return v_error === undefined ? null : v_error;
156
156
  }
157
157
 
158
- function validate$I(obj, path = 'GoalMetadata_StatusCondition') {
158
+ function validate$G(obj, path = 'GoalMetadata_StatusCondition') {
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 + '")');
@@ -206,7 +206,7 @@ function validate$I(obj, path = 'GoalMetadata_StatusCondition') {
206
206
  return v_error === undefined ? null : v_error;
207
207
  }
208
208
 
209
- function validate$H(obj, path = 'GoalMetadata') {
209
+ function validate$F(obj, path = 'GoalMetadata') {
210
210
  const v_error = (() => {
211
211
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
212
212
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -227,7 +227,7 @@ function validate$H(obj, path = 'GoalMetadata') {
227
227
  for (let i = 0; i < obj_statusConditions.length; i++) {
228
228
  const obj_statusConditions_item = obj_statusConditions[i];
229
229
  const path_statusConditions_item = path_statusConditions + '[' + i + ']';
230
- const referencepath_statusConditions_itemValidationError = validate$I(obj_statusConditions_item, path_statusConditions_item);
230
+ const referencepath_statusConditions_itemValidationError = validate$G(obj_statusConditions_item, path_statusConditions_item);
231
231
  if (referencepath_statusConditions_itemValidationError !== null) {
232
232
  let message = 'Object doesn\'t match GoalMetadata_StatusCondition (at "' + path_statusConditions_item + '")\n';
233
233
  message += referencepath_statusConditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -239,7 +239,7 @@ function validate$H(obj, path = 'GoalMetadata') {
239
239
  return v_error === undefined ? null : v_error;
240
240
  }
241
241
 
242
- function validate$G(obj, path = 'InsightsOptions_InsightSetting') {
242
+ function validate$E(obj, path = 'InsightsOptions_InsightSetting') {
243
243
  const v_error = (() => {
244
244
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
245
245
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -262,7 +262,7 @@ function validate$G(obj, path = 'InsightsOptions_InsightSetting') {
262
262
  return v_error === undefined ? null : v_error;
263
263
  }
264
264
 
265
- function validate$F(obj, path = 'InsightsOptions') {
265
+ function validate$D(obj, path = 'InsightsOptions') {
266
266
  const v_error = (() => {
267
267
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
268
268
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -276,7 +276,7 @@ function validate$F(obj, path = 'InsightsOptions') {
276
276
  for (let i = 0; i < obj_settings.length; i++) {
277
277
  const obj_settings_item = obj_settings[i];
278
278
  const path_settings_item = path_settings + '[' + i + ']';
279
- const referencepath_settings_itemValidationError = validate$G(obj_settings_item, path_settings_item);
279
+ const referencepath_settings_itemValidationError = validate$E(obj_settings_item, path_settings_item);
280
280
  if (referencepath_settings_itemValidationError !== null) {
281
281
  let message = 'Object doesn\'t match InsightsOptions_InsightSetting (at "' + path_settings_item + '")\n';
282
282
  message += referencepath_settings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -288,7 +288,7 @@ function validate$F(obj, path = 'InsightsOptions') {
288
288
  return v_error === undefined ? null : v_error;
289
289
  }
290
290
 
291
- function validate$E(obj, path = 'CategoricalFilterOptions') {
291
+ function validate$C(obj, path = 'CategoricalFilterOptions') {
292
292
  const v_error = (() => {
293
293
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
294
294
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -325,7 +325,7 @@ function validate$E(obj, path = 'CategoricalFilterOptions') {
325
325
  return v_error === undefined ? null : v_error;
326
326
  }
327
327
 
328
- function validate$D(obj, path = 'FieldId') {
328
+ function validate$B(obj, path = 'FieldId') {
329
329
  const v_error = (() => {
330
330
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
331
331
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -355,7 +355,7 @@ function validate$D(obj, path = 'FieldId') {
355
355
  return v_error === undefined ? null : v_error;
356
356
  }
357
357
 
358
- function validate$C(obj, path = 'RangeFilterOptions') {
358
+ function validate$A(obj, path = 'RangeFilterOptions') {
359
359
  const v_error = (() => {
360
360
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
361
361
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -399,7 +399,7 @@ function validate$C(obj, path = 'RangeFilterOptions') {
399
399
  return v_error === undefined ? null : v_error;
400
400
  }
401
401
 
402
- function validate$B(obj, path = 'RelativeDateFilterOptions') {
402
+ function validate$z(obj, path = 'RelativeDateFilterOptions') {
403
403
  const v_error = (() => {
404
404
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
405
405
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -408,7 +408,7 @@ function validate$B(obj, path = 'RelativeDateFilterOptions') {
408
408
  return v_error === undefined ? null : v_error;
409
409
  }
410
410
 
411
- function validate$A(obj, path = 'Filter') {
411
+ function validate$y(obj, path = 'Filter') {
412
412
  const v_error = (() => {
413
413
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
414
414
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -416,7 +416,7 @@ function validate$A(obj, path = 'Filter') {
416
416
  if (obj.categoricalFilterOptions !== undefined) {
417
417
  const obj_categoricalFilterOptions = obj.categoricalFilterOptions;
418
418
  const path_categoricalFilterOptions = path + '.categoricalFilterOptions';
419
- const referencepath_categoricalFilterOptionsValidationError = validate$E(obj_categoricalFilterOptions, path_categoricalFilterOptions);
419
+ const referencepath_categoricalFilterOptionsValidationError = validate$C(obj_categoricalFilterOptions, path_categoricalFilterOptions);
420
420
  if (referencepath_categoricalFilterOptionsValidationError !== null) {
421
421
  let message = 'Object doesn\'t match CategoricalFilterOptions (at "' + path_categoricalFilterOptions + '")\n';
422
422
  message += referencepath_categoricalFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -426,7 +426,7 @@ function validate$A(obj, path = 'Filter') {
426
426
  if (obj.field !== undefined) {
427
427
  const obj_field = obj.field;
428
428
  const path_field = path + '.field';
429
- const referencepath_fieldValidationError = validate$D(obj_field, path_field);
429
+ const referencepath_fieldValidationError = validate$B(obj_field, path_field);
430
430
  if (referencepath_fieldValidationError !== null) {
431
431
  let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
432
432
  message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -436,7 +436,7 @@ function validate$A(obj, path = 'Filter') {
436
436
  if (obj.fieldId !== undefined) {
437
437
  const obj_fieldId = obj.fieldId;
438
438
  const path_fieldId = path + '.fieldId';
439
- const referencepath_fieldIdValidationError = validate$D(obj_fieldId, path_fieldId);
439
+ const referencepath_fieldIdValidationError = validate$B(obj_fieldId, path_fieldId);
440
440
  if (referencepath_fieldIdValidationError !== null) {
441
441
  let message = 'Object doesn\'t match FieldId (at "' + path_fieldId + '")\n';
442
442
  message += referencepath_fieldIdValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -446,7 +446,7 @@ function validate$A(obj, path = 'Filter') {
446
446
  if (obj.rangeFilterOptions !== undefined) {
447
447
  const obj_rangeFilterOptions = obj.rangeFilterOptions;
448
448
  const path_rangeFilterOptions = path + '.rangeFilterOptions';
449
- const referencepath_rangeFilterOptionsValidationError = validate$C(obj_rangeFilterOptions, path_rangeFilterOptions);
449
+ const referencepath_rangeFilterOptionsValidationError = validate$A(obj_rangeFilterOptions, path_rangeFilterOptions);
450
450
  if (referencepath_rangeFilterOptionsValidationError !== null) {
451
451
  let message = 'Object doesn\'t match RangeFilterOptions (at "' + path_rangeFilterOptions + '")\n';
452
452
  message += referencepath_rangeFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -456,7 +456,7 @@ function validate$A(obj, path = 'Filter') {
456
456
  if (obj.relativeDateFilterOptions !== undefined) {
457
457
  const obj_relativeDateFilterOptions = obj.relativeDateFilterOptions;
458
458
  const path_relativeDateFilterOptions = path + '.relativeDateFilterOptions';
459
- const referencepath_relativeDateFilterOptionsValidationError = validate$B(obj_relativeDateFilterOptions, path_relativeDateFilterOptions);
459
+ const referencepath_relativeDateFilterOptionsValidationError = validate$z(obj_relativeDateFilterOptions, path_relativeDateFilterOptions);
460
460
  if (referencepath_relativeDateFilterOptionsValidationError !== null) {
461
461
  let message = 'Object doesn\'t match RelativeDateFilterOptions (at "' + path_relativeDateFilterOptions + '")\n';
462
462
  message += referencepath_relativeDateFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -474,65 +474,6 @@ function validate$A(obj, path = 'Filter') {
474
474
  return v_error === undefined ? null : v_error;
475
475
  }
476
476
 
477
- function validate$z(obj, path = 'RelativePeriod') {
478
- const v_error = (() => {
479
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
480
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
481
- }
482
- if (obj.granularity !== undefined) {
483
- const obj_granularity = obj.granularity;
484
- const path_granularity = path + '.granularity';
485
- if (typeof obj_granularity !== 'string') {
486
- return new TypeError('Expected "string" but received "' + typeof obj_granularity + '" (at "' + path_granularity + '")');
487
- }
488
- }
489
- if (obj.range !== undefined) {
490
- const obj_range = obj.range;
491
- const path_range = path + '.range';
492
- if (typeof obj_range !== 'string') {
493
- return new TypeError('Expected "string" but received "' + typeof obj_range + '" (at "' + path_range + '")');
494
- }
495
- }
496
- })();
497
- return v_error === undefined ? null : v_error;
498
- }
499
-
500
- function validate$y(obj, path = 'MeasurementPeriod') {
501
- const v_error = (() => {
502
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
503
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
504
- }
505
- if (obj.filter !== undefined) {
506
- const obj_filter = obj.filter;
507
- const path_filter = path + '.filter';
508
- const referencepath_filterValidationError = validate$A(obj_filter, path_filter);
509
- if (referencepath_filterValidationError !== null) {
510
- let message = 'Object doesn\'t match Filter (at "' + path_filter + '")\n';
511
- message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
512
- return new TypeError(message);
513
- }
514
- }
515
- if (obj.relativePeriod !== undefined) {
516
- const obj_relativePeriod = obj.relativePeriod;
517
- const path_relativePeriod = path + '.relativePeriod';
518
- const referencepath_relativePeriodValidationError = validate$z(obj_relativePeriod, path_relativePeriod);
519
- if (referencepath_relativePeriodValidationError !== null) {
520
- let message = 'Object doesn\'t match RelativePeriod (at "' + path_relativePeriod + '")\n';
521
- message += referencepath_relativePeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
522
- return new TypeError(message);
523
- }
524
- }
525
- if (obj.semanticFilter !== undefined) {
526
- const obj_semanticFilter = obj.semanticFilter;
527
- const path_semanticFilter = path + '.semanticFilter';
528
- if (obj_semanticFilter === undefined) {
529
- return new TypeError('Expected "defined" but received "' + typeof obj_semanticFilter + '" (at "' + path_semanticFilter + '")');
530
- }
531
- }
532
- })();
533
- return v_error === undefined ? null : v_error;
534
- }
535
-
536
477
  function validate$x(obj, path = 'SemanticFilter') {
537
478
  const v_error = (() => {
538
479
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -606,7 +547,7 @@ function validate$v(obj, path = 'MetricInstance') {
606
547
  for (let i = 0; i < obj_filters.length; i++) {
607
548
  const obj_filters_item = obj_filters[i];
608
549
  const path_filters_item = path_filters + '[' + i + ']';
609
- const referencepath_filters_itemValidationError = validate$A(obj_filters_item, path_filters_item);
550
+ const referencepath_filters_itemValidationError = validate$y(obj_filters_item, path_filters_item);
610
551
  if (referencepath_filters_itemValidationError !== null) {
611
552
  let message = 'Object doesn\'t match Filter (at "' + path_filters_item + '")\n';
612
553
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -614,13 +555,12 @@ function validate$v(obj, path = 'MetricInstance') {
614
555
  }
615
556
  }
616
557
  }
617
- const obj_measurementPeriod = obj.measurementPeriod;
618
- const path_measurementPeriod = path + '.measurementPeriod';
619
- const referencepath_measurementPeriodValidationError = validate$y(obj_measurementPeriod, path_measurementPeriod);
620
- if (referencepath_measurementPeriodValidationError !== null) {
621
- let message = 'Object doesn\'t match MeasurementPeriod (at "' + path_measurementPeriod + '")\n';
622
- message += referencepath_measurementPeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
623
- return new TypeError(message);
558
+ if (obj.measurementPeriod !== undefined) {
559
+ const obj_measurementPeriod = obj.measurementPeriod;
560
+ const path_measurementPeriod = path + '.measurementPeriod';
561
+ if (obj_measurementPeriod === undefined) {
562
+ return new TypeError('Expected "defined" but received "' + typeof obj_measurementPeriod + '" (at "' + path_measurementPeriod + '")');
563
+ }
624
564
  }
625
565
  if (obj.semanticFilter !== undefined) {
626
566
  const obj_semanticFilter = obj.semanticFilter;
@@ -666,7 +606,7 @@ function validate$t(obj, path = 'Measure') {
666
606
  }
667
607
  const obj_field = obj.field;
668
608
  const path_field = path + '.field';
669
- const referencepath_fieldValidationError = validate$D(obj_field, path_field);
609
+ const referencepath_fieldValidationError = validate$B(obj_field, path_field);
670
610
  if (referencepath_fieldValidationError !== null) {
671
611
  let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
672
612
  message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -699,7 +639,7 @@ function validate$r(obj, path = 'TimeDimension') {
699
639
  }
700
640
  const obj_field = obj.field;
701
641
  const path_field = path + '.field';
702
- const referencepath_fieldValidationError = validate$D(obj_field, path_field);
642
+ const referencepath_fieldValidationError = validate$B(obj_field, path_field);
703
643
  if (referencepath_fieldValidationError !== null) {
704
644
  let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
705
645
  message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -731,7 +671,7 @@ function validate$q(obj, path = 'MetricDefinition') {
731
671
  for (let i = 0; i < obj_filters.length; i++) {
732
672
  const obj_filters_item = obj_filters[i];
733
673
  const path_filters_item = path_filters + '[' + i + ']';
734
- const referencepath_filters_itemValidationError = validate$A(obj_filters_item, path_filters_item);
674
+ const referencepath_filters_itemValidationError = validate$y(obj_filters_item, path_filters_item);
735
675
  if (referencepath_filters_itemValidationError !== null) {
736
676
  let message = 'Object doesn\'t match Filter (at "' + path_filters_item + '")\n';
737
677
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -845,7 +785,7 @@ function validate$n(obj, path = 'InputMetric') {
845
785
  }
846
786
  const obj_extensionOptions = obj.extensionOptions;
847
787
  const path_extensionOptions = path + '.extensionOptions';
848
- const referencepath_extensionOptionsValidationError = validate$J(obj_extensionOptions, path_extensionOptions);
788
+ const referencepath_extensionOptionsValidationError = validate$H(obj_extensionOptions, path_extensionOptions);
849
789
  if (referencepath_extensionOptionsValidationError !== null) {
850
790
  let message = 'Object doesn\'t match ExtensionOptions (at "' + path_extensionOptions + '")\n';
851
791
  message += referencepath_extensionOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -854,7 +794,7 @@ function validate$n(obj, path = 'InputMetric') {
854
794
  if (obj.goals !== undefined) {
855
795
  const obj_goals = obj.goals;
856
796
  const path_goals = path + '.goals';
857
- const referencepath_goalsValidationError = validate$H(obj_goals, path_goals);
797
+ const referencepath_goalsValidationError = validate$F(obj_goals, path_goals);
858
798
  if (referencepath_goalsValidationError !== null) {
859
799
  let message = 'Object doesn\'t match GoalMetadata (at "' + path_goals + '")\n';
860
800
  message += referencepath_goalsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -863,7 +803,7 @@ function validate$n(obj, path = 'InputMetric') {
863
803
  }
864
804
  const obj_insightsOptions = obj.insightsOptions;
865
805
  const path_insightsOptions = path + '.insightsOptions';
866
- const referencepath_insightsOptionsValidationError = validate$F(obj_insightsOptions, path_insightsOptions);
806
+ const referencepath_insightsOptionsValidationError = validate$D(obj_insightsOptions, path_insightsOptions);
867
807
  if (referencepath_insightsOptionsValidationError !== null) {
868
808
  let message = 'Object doesn\'t match InsightsOptions (at "' + path_insightsOptions + '")\n';
869
809
  message += referencepath_insightsOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -904,7 +844,7 @@ function validate$m(obj, path = 'InsightBundleInput') {
904
844
  }
905
845
  const obj_metadata = obj.metadata;
906
846
  const path_metadata = path + '.metadata';
907
- const referencepath_metadataValidationError = validate$K(obj_metadata, path_metadata);
847
+ const referencepath_metadataValidationError = validate$I(obj_metadata, path_metadata);
908
848
  if (referencepath_metadataValidationError !== null) {
909
849
  let message = 'Object doesn\'t match MetricMetadata (at "' + path_metadata + '")\n';
910
850
  message += referencepath_metadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3602,7 +3542,7 @@ function typeCheckConfig(untrustedConfig) {
3602
3542
  config.semanticDataModel = untrustedConfig_semanticDataModel;
3603
3543
  }
3604
3544
  const untrustedConfig_field = untrustedConfig.field;
3605
- const referenceFieldIdValidationError = validate$D(untrustedConfig_field);
3545
+ const referenceFieldIdValidationError = validate$B(untrustedConfig_field);
3606
3546
  if (referenceFieldIdValidationError === null) {
3607
3547
  config.field = untrustedConfig_field;
3608
3548
  }
@@ -3611,7 +3551,7 @@ function typeCheckConfig(untrustedConfig) {
3611
3551
  const untrustedConfig_filters_array = [];
3612
3552
  for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
3613
3553
  const untrustedConfig_filters_item = untrustedConfig_filters[i];
3614
- const referenceFilterValidationError = validate$A(untrustedConfig_filters_item);
3554
+ const referenceFilterValidationError = validate$y(untrustedConfig_filters_item);
3615
3555
  if (referenceFilterValidationError === null) {
3616
3556
  untrustedConfig_filters_array.push(untrustedConfig_filters_item);
3617
3557
  }
@@ -3713,4 +3653,4 @@ withDefaultLuvio((luvio) => {
3713
3653
  });
3714
3654
 
3715
3655
  export { createInsightsBatch, generateInsights, generateInsightsBasic, getInsightsBatch, getInsightsBatchNotifyChange, getInsightsBatch_imperative, getMetricFilterValues };
3716
- // version: 1.347.1-60ff64f212
3656
+ // version: 1.348.0-4aa8c0c0cb
package/src/raml/api.raml CHANGED
@@ -359,7 +359,11 @@ types:
359
359
  MetricInstance:
360
360
  type: object
361
361
  properties:
362
- measurementPeriod: MeasurementPeriod
362
+ measurementPeriod:
363
+ (amf-and):
364
+ - MeasurementPeriod
365
+ type: any
366
+ required: false
363
367
  filters:
364
368
  description: |-
365
369
  DEPRECATED Please don't use this field.