@salesforce/lds-adapters-sfap-analytics-insights 1.332.0-dev2 → 1.332.0-dev20

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$H(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$H(obj, path = 'MetricMetadata') {
115
115
  return v_error === undefined ? null : v_error;
116
116
  }
117
117
 
118
- function validate$G(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,91 @@ function validate$G(obj, path = 'ExtensionOptions') {
145
145
  return v_error === undefined ? null : v_error;
146
146
  }
147
147
 
148
- function validate$F(obj, path = 'InsightsOptions_InsightSetting') {
148
+ function validate$G(obj, path = 'GoalMetadata_StatusCondition') {
149
+ const v_error = (() => {
150
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
151
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
152
+ }
153
+ if (obj.color !== undefined) {
154
+ const obj_color = obj.color;
155
+ const path_color = path + '.color';
156
+ if (typeof obj_color !== 'string') {
157
+ return new TypeError('Expected "string" but received "' + typeof obj_color + '" (at "' + path_color + '")');
158
+ }
159
+ }
160
+ if (obj.currencyIsoCode !== undefined) {
161
+ const obj_currencyIsoCode = obj.currencyIsoCode;
162
+ const path_currencyIsoCode = path + '.currencyIsoCode';
163
+ if (typeof obj_currencyIsoCode !== 'string') {
164
+ return new TypeError('Expected "string" but received "' + typeof obj_currencyIsoCode + '" (at "' + path_currencyIsoCode + '")');
165
+ }
166
+ }
167
+ if (obj.operator !== undefined) {
168
+ const obj_operator = obj.operator;
169
+ const path_operator = path + '.operator';
170
+ if (typeof obj_operator !== 'string') {
171
+ return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
172
+ }
173
+ }
174
+ if (obj.primary !== undefined) {
175
+ const obj_primary = obj.primary;
176
+ const path_primary = path + '.primary';
177
+ if (typeof obj_primary !== 'boolean') {
178
+ return new TypeError('Expected "boolean" but received "' + typeof obj_primary + '" (at "' + path_primary + '")');
179
+ }
180
+ }
181
+ if (obj.statusName !== undefined) {
182
+ const obj_statusName = obj.statusName;
183
+ const path_statusName = path + '.statusName';
184
+ if (typeof obj_statusName !== 'string') {
185
+ return new TypeError('Expected "string" but received "' + typeof obj_statusName + '" (at "' + path_statusName + '")');
186
+ }
187
+ }
188
+ if (obj.value !== undefined) {
189
+ const obj_value = obj.value;
190
+ const path_value = path + '.value';
191
+ if (typeof obj_value !== 'string') {
192
+ return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
193
+ }
194
+ }
195
+ })();
196
+ return v_error === undefined ? null : v_error;
197
+ }
198
+
199
+ function validate$F(obj, path = 'GoalMetadata') {
200
+ const v_error = (() => {
201
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
202
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
203
+ }
204
+ if (obj.forecasting !== undefined) {
205
+ const obj_forecasting = obj.forecasting;
206
+ const path_forecasting = path + '.forecasting';
207
+ if (typeof obj_forecasting !== 'boolean') {
208
+ return new TypeError('Expected "boolean" but received "' + typeof obj_forecasting + '" (at "' + path_forecasting + '")');
209
+ }
210
+ }
211
+ if (obj.statusConditions !== undefined) {
212
+ const obj_statusConditions = obj.statusConditions;
213
+ const path_statusConditions = path + '.statusConditions';
214
+ if (!ArrayIsArray(obj_statusConditions)) {
215
+ return new TypeError('Expected "array" but received "' + typeof obj_statusConditions + '" (at "' + path_statusConditions + '")');
216
+ }
217
+ for (let i = 0; i < obj_statusConditions.length; i++) {
218
+ const obj_statusConditions_item = obj_statusConditions[i];
219
+ const path_statusConditions_item = path_statusConditions + '[' + i + ']';
220
+ const referencepath_statusConditions_itemValidationError = validate$G(obj_statusConditions_item, path_statusConditions_item);
221
+ if (referencepath_statusConditions_itemValidationError !== null) {
222
+ let message = 'Object doesn\'t match GoalMetadata_StatusCondition (at "' + path_statusConditions_item + '")\n';
223
+ message += referencepath_statusConditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
224
+ return new TypeError(message);
225
+ }
226
+ }
227
+ }
228
+ })();
229
+ return v_error === undefined ? null : v_error;
230
+ }
231
+
232
+ function validate$E(obj, path = 'InsightsOptions_InsightSetting') {
149
233
  const v_error = (() => {
150
234
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
151
235
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -168,7 +252,7 @@ function validate$F(obj, path = 'InsightsOptions_InsightSetting') {
168
252
  return v_error === undefined ? null : v_error;
169
253
  }
170
254
 
171
- function validate$E(obj, path = 'InsightsOptions') {
255
+ function validate$D(obj, path = 'InsightsOptions') {
172
256
  const v_error = (() => {
173
257
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
174
258
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -182,7 +266,7 @@ function validate$E(obj, path = 'InsightsOptions') {
182
266
  for (let i = 0; i < obj_settings.length; i++) {
183
267
  const obj_settings_item = obj_settings[i];
184
268
  const path_settings_item = path_settings + '[' + i + ']';
185
- 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);
186
270
  if (referencepath_settings_itemValidationError !== null) {
187
271
  let message = 'Object doesn\'t match InsightsOptions_InsightSetting (at "' + path_settings_item + '")\n';
188
272
  message += referencepath_settings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -194,7 +278,7 @@ function validate$E(obj, path = 'InsightsOptions') {
194
278
  return v_error === undefined ? null : v_error;
195
279
  }
196
280
 
197
- function validate$D(obj, path = 'CategoricalFilterOptions') {
281
+ function validate$C(obj, path = 'CategoricalFilterOptions') {
198
282
  const v_error = (() => {
199
283
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
200
284
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -231,7 +315,7 @@ function validate$D(obj, path = 'CategoricalFilterOptions') {
231
315
  return v_error === undefined ? null : v_error;
232
316
  }
233
317
 
234
- function validate$C(obj, path = 'FieldId') {
318
+ function validate$B(obj, path = 'FieldId') {
235
319
  const v_error = (() => {
236
320
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
237
321
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -261,7 +345,7 @@ function validate$C(obj, path = 'FieldId') {
261
345
  return v_error === undefined ? null : v_error;
262
346
  }
263
347
 
264
- function validate$B(obj, path = 'RangeFilterOptions') {
348
+ function validate$A(obj, path = 'RangeFilterOptions') {
265
349
  const v_error = (() => {
266
350
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
267
351
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -305,7 +389,7 @@ function validate$B(obj, path = 'RangeFilterOptions') {
305
389
  return v_error === undefined ? null : v_error;
306
390
  }
307
391
 
308
- function validate$A(obj, path = 'RelativeDateFilterOptions') {
392
+ function validate$z(obj, path = 'RelativeDateFilterOptions') {
309
393
  const v_error = (() => {
310
394
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
311
395
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -314,7 +398,7 @@ function validate$A(obj, path = 'RelativeDateFilterOptions') {
314
398
  return v_error === undefined ? null : v_error;
315
399
  }
316
400
 
317
- function validate$z(obj, path = 'Filter') {
401
+ function validate$y(obj, path = 'Filter') {
318
402
  const v_error = (() => {
319
403
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
320
404
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -322,7 +406,7 @@ function validate$z(obj, path = 'Filter') {
322
406
  if (obj.categoricalFilterOptions !== undefined) {
323
407
  const obj_categoricalFilterOptions = obj.categoricalFilterOptions;
324
408
  const path_categoricalFilterOptions = path + '.categoricalFilterOptions';
325
- const referencepath_categoricalFilterOptionsValidationError = validate$D(obj_categoricalFilterOptions, path_categoricalFilterOptions);
409
+ const referencepath_categoricalFilterOptionsValidationError = validate$C(obj_categoricalFilterOptions, path_categoricalFilterOptions);
326
410
  if (referencepath_categoricalFilterOptionsValidationError !== null) {
327
411
  let message = 'Object doesn\'t match CategoricalFilterOptions (at "' + path_categoricalFilterOptions + '")\n';
328
412
  message += referencepath_categoricalFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -332,7 +416,7 @@ function validate$z(obj, path = 'Filter') {
332
416
  if (obj.field !== undefined) {
333
417
  const obj_field = obj.field;
334
418
  const path_field = path + '.field';
335
- const referencepath_fieldValidationError = validate$C(obj_field, path_field);
419
+ const referencepath_fieldValidationError = validate$B(obj_field, path_field);
336
420
  if (referencepath_fieldValidationError !== null) {
337
421
  let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
338
422
  message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -342,7 +426,7 @@ function validate$z(obj, path = 'Filter') {
342
426
  if (obj.fieldId !== undefined) {
343
427
  const obj_fieldId = obj.fieldId;
344
428
  const path_fieldId = path + '.fieldId';
345
- const referencepath_fieldIdValidationError = validate$C(obj_fieldId, path_fieldId);
429
+ const referencepath_fieldIdValidationError = validate$B(obj_fieldId, path_fieldId);
346
430
  if (referencepath_fieldIdValidationError !== null) {
347
431
  let message = 'Object doesn\'t match FieldId (at "' + path_fieldId + '")\n';
348
432
  message += referencepath_fieldIdValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -352,7 +436,7 @@ function validate$z(obj, path = 'Filter') {
352
436
  if (obj.rangeFilterOptions !== undefined) {
353
437
  const obj_rangeFilterOptions = obj.rangeFilterOptions;
354
438
  const path_rangeFilterOptions = path + '.rangeFilterOptions';
355
- const referencepath_rangeFilterOptionsValidationError = validate$B(obj_rangeFilterOptions, path_rangeFilterOptions);
439
+ const referencepath_rangeFilterOptionsValidationError = validate$A(obj_rangeFilterOptions, path_rangeFilterOptions);
356
440
  if (referencepath_rangeFilterOptionsValidationError !== null) {
357
441
  let message = 'Object doesn\'t match RangeFilterOptions (at "' + path_rangeFilterOptions + '")\n';
358
442
  message += referencepath_rangeFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -362,7 +446,7 @@ function validate$z(obj, path = 'Filter') {
362
446
  if (obj.relativeDateFilterOptions !== undefined) {
363
447
  const obj_relativeDateFilterOptions = obj.relativeDateFilterOptions;
364
448
  const path_relativeDateFilterOptions = path + '.relativeDateFilterOptions';
365
- const referencepath_relativeDateFilterOptionsValidationError = validate$A(obj_relativeDateFilterOptions, path_relativeDateFilterOptions);
449
+ const referencepath_relativeDateFilterOptionsValidationError = validate$z(obj_relativeDateFilterOptions, path_relativeDateFilterOptions);
366
450
  if (referencepath_relativeDateFilterOptionsValidationError !== null) {
367
451
  let message = 'Object doesn\'t match RelativeDateFilterOptions (at "' + path_relativeDateFilterOptions + '")\n';
368
452
  message += referencepath_relativeDateFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -380,59 +464,7 @@ function validate$z(obj, path = 'Filter') {
380
464
  return v_error === undefined ? null : v_error;
381
465
  }
382
466
 
383
- function validate$y(obj, path = 'RelativePeriod') {
384
- const v_error = (() => {
385
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
386
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
387
- }
388
- if (obj.granularity !== undefined) {
389
- const obj_granularity = obj.granularity;
390
- const path_granularity = path + '.granularity';
391
- if (typeof obj_granularity !== 'string') {
392
- return new TypeError('Expected "string" but received "' + typeof obj_granularity + '" (at "' + path_granularity + '")');
393
- }
394
- }
395
- if (obj.range !== undefined) {
396
- const obj_range = obj.range;
397
- const path_range = path + '.range';
398
- if (typeof obj_range !== 'string') {
399
- return new TypeError('Expected "string" but received "' + typeof obj_range + '" (at "' + path_range + '")');
400
- }
401
- }
402
- })();
403
- return v_error === undefined ? null : v_error;
404
- }
405
-
406
- function validate$x(obj, path = 'MeasurementPeriod') {
407
- const v_error = (() => {
408
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
409
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
410
- }
411
- if (obj.filter !== undefined) {
412
- const obj_filter = obj.filter;
413
- const path_filter = path + '.filter';
414
- const referencepath_filterValidationError = validate$z(obj_filter, path_filter);
415
- if (referencepath_filterValidationError !== null) {
416
- let message = 'Object doesn\'t match Filter (at "' + path_filter + '")\n';
417
- message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
418
- return new TypeError(message);
419
- }
420
- }
421
- if (obj.relativePeriod !== undefined) {
422
- const obj_relativePeriod = obj.relativePeriod;
423
- const path_relativePeriod = path + '.relativePeriod';
424
- const referencepath_relativePeriodValidationError = validate$y(obj_relativePeriod, path_relativePeriod);
425
- if (referencepath_relativePeriodValidationError !== null) {
426
- let message = 'Object doesn\'t match RelativePeriod (at "' + path_relativePeriod + '")\n';
427
- message += referencepath_relativePeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
428
- return new TypeError(message);
429
- }
430
- }
431
- })();
432
- return v_error === undefined ? null : v_error;
433
- }
434
-
435
- function validate$w(obj, path = 'SemanticFilter') {
467
+ function validate$x(obj, path = 'SemanticFilter') {
436
468
  const v_error = (() => {
437
469
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
438
470
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -458,7 +490,7 @@ function validate$w(obj, path = 'SemanticFilter') {
458
490
  return v_error === undefined ? null : v_error;
459
491
  }
460
492
 
461
- function validate$v(obj, path = 'FlattenFilter') {
493
+ function validate$w(obj, path = 'FlattenFilter') {
462
494
  const v_error = (() => {
463
495
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
464
496
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -479,7 +511,7 @@ function validate$v(obj, path = 'FlattenFilter') {
479
511
  for (let i = 0; i < obj_filters.length; i++) {
480
512
  const obj_filters_item = obj_filters[i];
481
513
  const path_filters_item = path_filters + '[' + i + ']';
482
- 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);
483
515
  if (referencepath_filters_itemValidationError !== null) {
484
516
  let message = 'Object doesn\'t match SemanticFilter (at "' + path_filters_item + '")\n';
485
517
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -491,7 +523,7 @@ function validate$v(obj, path = 'FlattenFilter') {
491
523
  return v_error === undefined ? null : v_error;
492
524
  }
493
525
 
494
- function validate$u(obj, path = 'MetricInstance') {
526
+ function validate$v(obj, path = 'MetricInstance') {
495
527
  const v_error = (() => {
496
528
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
497
529
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -505,7 +537,7 @@ function validate$u(obj, path = 'MetricInstance') {
505
537
  for (let i = 0; i < obj_filters.length; i++) {
506
538
  const obj_filters_item = obj_filters[i];
507
539
  const path_filters_item = path_filters + '[' + i + ']';
508
- 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);
509
541
  if (referencepath_filters_itemValidationError !== null) {
510
542
  let message = 'Object doesn\'t match Filter (at "' + path_filters_item + '")\n';
511
543
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -513,18 +545,17 @@ function validate$u(obj, path = 'MetricInstance') {
513
545
  }
514
546
  }
515
547
  }
516
- const obj_measurementPeriod = obj.measurementPeriod;
517
- const path_measurementPeriod = path + '.measurementPeriod';
518
- const referencepath_measurementPeriodValidationError = validate$x(obj_measurementPeriod, path_measurementPeriod);
519
- if (referencepath_measurementPeriodValidationError !== null) {
520
- let message = 'Object doesn\'t match MeasurementPeriod (at "' + path_measurementPeriod + '")\n';
521
- message += referencepath_measurementPeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
522
- 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
+ }
523
554
  }
524
555
  if (obj.semanticFilter !== undefined) {
525
556
  const obj_semanticFilter = obj.semanticFilter;
526
557
  const path_semanticFilter = path + '.semanticFilter';
527
- const referencepath_semanticFilterValidationError = validate$v(obj_semanticFilter, path_semanticFilter);
558
+ const referencepath_semanticFilterValidationError = validate$w(obj_semanticFilter, path_semanticFilter);
528
559
  if (referencepath_semanticFilterValidationError !== null) {
529
560
  let message = 'Object doesn\'t match FlattenFilter (at "' + path_semanticFilter + '")\n';
530
561
  message += referencepath_semanticFilterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -535,7 +566,7 @@ function validate$u(obj, path = 'MetricInstance') {
535
566
  return v_error === undefined ? null : v_error;
536
567
  }
537
568
 
538
- function validate$t(obj, path = 'CompareConfig') {
569
+ function validate$u(obj, path = 'CompareConfig') {
539
570
  const v_error = (() => {
540
571
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
541
572
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -551,7 +582,7 @@ function validate$t(obj, path = 'CompareConfig') {
551
582
  return v_error === undefined ? null : v_error;
552
583
  }
553
584
 
554
- function validate$s(obj, path = 'Measure') {
585
+ function validate$t(obj, path = 'Measure') {
555
586
  const v_error = (() => {
556
587
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
557
588
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -565,7 +596,7 @@ function validate$s(obj, path = 'Measure') {
565
596
  }
566
597
  const obj_field = obj.field;
567
598
  const path_field = path + '.field';
568
- const referencepath_fieldValidationError = validate$C(obj_field, path_field);
599
+ const referencepath_fieldValidationError = validate$B(obj_field, path_field);
569
600
  if (referencepath_fieldValidationError !== null) {
570
601
  let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
571
602
  message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -575,7 +606,7 @@ function validate$s(obj, path = 'Measure') {
575
606
  return v_error === undefined ? null : v_error;
576
607
  }
577
608
 
578
- function validate$r(obj, path = 'SemanticDataModel') {
609
+ function validate$s(obj, path = 'SemanticDataModel') {
579
610
  const v_error = (() => {
580
611
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
581
612
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -591,14 +622,14 @@ function validate$r(obj, path = 'SemanticDataModel') {
591
622
  return v_error === undefined ? null : v_error;
592
623
  }
593
624
 
594
- function validate$q(obj, path = 'TimeDimension') {
625
+ function validate$r(obj, path = 'TimeDimension') {
595
626
  const v_error = (() => {
596
627
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
597
628
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
598
629
  }
599
630
  const obj_field = obj.field;
600
631
  const path_field = path + '.field';
601
- const referencepath_fieldValidationError = validate$C(obj_field, path_field);
632
+ const referencepath_fieldValidationError = validate$B(obj_field, path_field);
602
633
  if (referencepath_fieldValidationError !== null) {
603
634
  let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
604
635
  message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -608,14 +639,14 @@ function validate$q(obj, path = 'TimeDimension') {
608
639
  return v_error === undefined ? null : v_error;
609
640
  }
610
641
 
611
- function validate$p(obj, path = 'MetricDefinition') {
642
+ function validate$q(obj, path = 'MetricDefinition') {
612
643
  const v_error = (() => {
613
644
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
614
645
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
615
646
  }
616
647
  const obj_comparison = obj.comparison;
617
648
  const path_comparison = path + '.comparison';
618
- const referencepath_comparisonValidationError = validate$t(obj_comparison, path_comparison);
649
+ const referencepath_comparisonValidationError = validate$u(obj_comparison, path_comparison);
619
650
  if (referencepath_comparisonValidationError !== null) {
620
651
  let message = 'Object doesn\'t match CompareConfig (at "' + path_comparison + '")\n';
621
652
  message += referencepath_comparisonValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -630,7 +661,7 @@ function validate$p(obj, path = 'MetricDefinition') {
630
661
  for (let i = 0; i < obj_filters.length; i++) {
631
662
  const obj_filters_item = obj_filters[i];
632
663
  const path_filters_item = path_filters + '[' + i + ']';
633
- 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);
634
665
  if (referencepath_filters_itemValidationError !== null) {
635
666
  let message = 'Object doesn\'t match Filter (at "' + path_filters_item + '")\n';
636
667
  message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -640,7 +671,7 @@ function validate$p(obj, path = 'MetricDefinition') {
640
671
  }
641
672
  const obj_measure = obj.measure;
642
673
  const path_measure = path + '.measure';
643
- const referencepath_measureValidationError = validate$s(obj_measure, path_measure);
674
+ const referencepath_measureValidationError = validate$t(obj_measure, path_measure);
644
675
  if (referencepath_measureValidationError !== null) {
645
676
  let message = 'Object doesn\'t match Measure (at "' + path_measure + '")\n';
646
677
  message += referencepath_measureValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -655,7 +686,7 @@ function validate$p(obj, path = 'MetricDefinition') {
655
686
  }
656
687
  const obj_semanticDataModel = obj.semanticDataModel;
657
688
  const path_semanticDataModel = path + '.semanticDataModel';
658
- const referencepath_semanticDataModelValidationError = validate$r(obj_semanticDataModel, path_semanticDataModel);
689
+ const referencepath_semanticDataModelValidationError = validate$s(obj_semanticDataModel, path_semanticDataModel);
659
690
  if (referencepath_semanticDataModelValidationError !== null) {
660
691
  let message = 'Object doesn\'t match SemanticDataModel (at "' + path_semanticDataModel + '")\n';
661
692
  message += referencepath_semanticDataModelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -664,7 +695,7 @@ function validate$p(obj, path = 'MetricDefinition') {
664
695
  if (obj.semanticFilter !== undefined) {
665
696
  const obj_semanticFilter = obj.semanticFilter;
666
697
  const path_semanticFilter = path + '.semanticFilter';
667
- const referencepath_semanticFilterValidationError = validate$v(obj_semanticFilter, path_semanticFilter);
698
+ const referencepath_semanticFilterValidationError = validate$w(obj_semanticFilter, path_semanticFilter);
668
699
  if (referencepath_semanticFilterValidationError !== null) {
669
700
  let message = 'Object doesn\'t match FlattenFilter (at "' + path_semanticFilter + '")\n';
670
701
  message += referencepath_semanticFilterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -673,7 +704,7 @@ function validate$p(obj, path = 'MetricDefinition') {
673
704
  }
674
705
  const obj_timeDimension = obj.timeDimension;
675
706
  const path_timeDimension = path + '.timeDimension';
676
- const referencepath_timeDimensionValidationError = validate$q(obj_timeDimension, path_timeDimension);
707
+ const referencepath_timeDimensionValidationError = validate$r(obj_timeDimension, path_timeDimension);
677
708
  if (referencepath_timeDimensionValidationError !== null) {
678
709
  let message = 'Object doesn\'t match TimeDimension (at "' + path_timeDimension + '")\n';
679
710
  message += referencepath_timeDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -683,7 +714,7 @@ function validate$p(obj, path = 'MetricDefinition') {
683
714
  return v_error === undefined ? null : v_error;
684
715
  }
685
716
 
686
- function validate$o(obj, path = 'RepresentationOptions_NumberUnits') {
717
+ function validate$p(obj, path = 'RepresentationOptions_NumberUnits') {
687
718
  const v_error = (() => {
688
719
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
689
720
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -706,14 +737,14 @@ function validate$o(obj, path = 'RepresentationOptions_NumberUnits') {
706
737
  return v_error === undefined ? null : v_error;
707
738
  }
708
739
 
709
- function validate$n(obj, path = 'RepresentationOptions') {
740
+ function validate$o(obj, path = 'RepresentationOptions') {
710
741
  const v_error = (() => {
711
742
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
712
743
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
713
744
  }
714
745
  const obj_numberUnits = obj.numberUnits;
715
746
  const path_numberUnits = path + '.numberUnits';
716
- const referencepath_numberUnitsValidationError = validate$o(obj_numberUnits, path_numberUnits);
747
+ const referencepath_numberUnitsValidationError = validate$p(obj_numberUnits, path_numberUnits);
717
748
  if (referencepath_numberUnitsValidationError !== null) {
718
749
  let message = 'Object doesn\'t match RepresentationOptions_NumberUnits (at "' + path_numberUnits + '")\n';
719
750
  message += referencepath_numberUnitsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -737,22 +768,32 @@ function validate$n(obj, path = 'RepresentationOptions') {
737
768
  return v_error === undefined ? null : v_error;
738
769
  }
739
770
 
740
- function validate$m(obj, path = 'InputMetric') {
771
+ function validate$n(obj, path = 'InputMetric') {
741
772
  const v_error = (() => {
742
773
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
743
774
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
744
775
  }
745
776
  const obj_extensionOptions = obj.extensionOptions;
746
777
  const path_extensionOptions = path + '.extensionOptions';
747
- const referencepath_extensionOptionsValidationError = validate$G(obj_extensionOptions, path_extensionOptions);
778
+ const referencepath_extensionOptionsValidationError = validate$H(obj_extensionOptions, path_extensionOptions);
748
779
  if (referencepath_extensionOptionsValidationError !== null) {
749
780
  let message = 'Object doesn\'t match ExtensionOptions (at "' + path_extensionOptions + '")\n';
750
781
  message += referencepath_extensionOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
751
782
  return new TypeError(message);
752
783
  }
784
+ if (obj.goals !== undefined) {
785
+ const obj_goals = obj.goals;
786
+ const path_goals = path + '.goals';
787
+ const referencepath_goalsValidationError = validate$F(obj_goals, path_goals);
788
+ if (referencepath_goalsValidationError !== null) {
789
+ let message = 'Object doesn\'t match GoalMetadata (at "' + path_goals + '")\n';
790
+ message += referencepath_goalsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
791
+ return new TypeError(message);
792
+ }
793
+ }
753
794
  const obj_insightsOptions = obj.insightsOptions;
754
795
  const path_insightsOptions = path + '.insightsOptions';
755
- const referencepath_insightsOptionsValidationError = validate$E(obj_insightsOptions, path_insightsOptions);
796
+ const referencepath_insightsOptionsValidationError = validate$D(obj_insightsOptions, path_insightsOptions);
756
797
  if (referencepath_insightsOptionsValidationError !== null) {
757
798
  let message = 'Object doesn\'t match InsightsOptions (at "' + path_insightsOptions + '")\n';
758
799
  message += referencepath_insightsOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -760,7 +801,7 @@ function validate$m(obj, path = 'InputMetric') {
760
801
  }
761
802
  const obj_instance = obj.instance;
762
803
  const path_instance = path + '.instance';
763
- const referencepath_instanceValidationError = validate$u(obj_instance, path_instance);
804
+ const referencepath_instanceValidationError = validate$v(obj_instance, path_instance);
764
805
  if (referencepath_instanceValidationError !== null) {
765
806
  let message = 'Object doesn\'t match MetricInstance (at "' + path_instance + '")\n';
766
807
  message += referencepath_instanceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -768,7 +809,7 @@ function validate$m(obj, path = 'InputMetric') {
768
809
  }
769
810
  const obj_metric = obj.metric;
770
811
  const path_metric = path + '.metric';
771
- const referencepath_metricValidationError = validate$p(obj_metric, path_metric);
812
+ const referencepath_metricValidationError = validate$q(obj_metric, path_metric);
772
813
  if (referencepath_metricValidationError !== null) {
773
814
  let message = 'Object doesn\'t match MetricDefinition (at "' + path_metric + '")\n';
774
815
  message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -776,7 +817,7 @@ function validate$m(obj, path = 'InputMetric') {
776
817
  }
777
818
  const obj_representationOptions = obj.representationOptions;
778
819
  const path_representationOptions = path + '.representationOptions';
779
- const referencepath_representationOptionsValidationError = validate$n(obj_representationOptions, path_representationOptions);
820
+ const referencepath_representationOptionsValidationError = validate$o(obj_representationOptions, path_representationOptions);
780
821
  if (referencepath_representationOptionsValidationError !== null) {
781
822
  let message = 'Object doesn\'t match RepresentationOptions (at "' + path_representationOptions + '")\n';
782
823
  message += referencepath_representationOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -786,14 +827,14 @@ function validate$m(obj, path = 'InputMetric') {
786
827
  return v_error === undefined ? null : v_error;
787
828
  }
788
829
 
789
- function validate$l(obj, path = 'InsightBundleInput') {
830
+ function validate$m(obj, path = 'InsightBundleInput') {
790
831
  const v_error = (() => {
791
832
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
792
833
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
793
834
  }
794
835
  const obj_metadata = obj.metadata;
795
836
  const path_metadata = path + '.metadata';
796
- const referencepath_metadataValidationError = validate$H(obj_metadata, path_metadata);
837
+ const referencepath_metadataValidationError = validate$I(obj_metadata, path_metadata);
797
838
  if (referencepath_metadataValidationError !== null) {
798
839
  let message = 'Object doesn\'t match MetricMetadata (at "' + path_metadata + '")\n';
799
840
  message += referencepath_metadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -801,7 +842,7 @@ function validate$l(obj, path = 'InsightBundleInput') {
801
842
  }
802
843
  const obj_metric = obj.metric;
803
844
  const path_metric = path + '.metric';
804
- const referencepath_metricValidationError = validate$m(obj_metric, path_metric);
845
+ const referencepath_metricValidationError = validate$n(obj_metric, path_metric);
805
846
  if (referencepath_metricValidationError !== null) {
806
847
  let message = 'Object doesn\'t match InputMetric (at "' + path_metric + '")\n';
807
848
  message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -811,11 +852,58 @@ function validate$l(obj, path = 'InsightBundleInput') {
811
852
  return v_error === undefined ? null : v_error;
812
853
  }
813
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
+
814
892
  function validate$k(obj, path = 'MetricInstanceInput') {
815
893
  const v_error = (() => {
816
894
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
817
895
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
818
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
+ }
819
907
  const obj_metricInstanceId = obj.metricInstanceId;
820
908
  const path_metricInstanceId = path + '.metricInstanceId';
821
909
  if (typeof obj_metricInstanceId !== 'string') {
@@ -838,7 +926,7 @@ function validate$j(obj, path = 'BatchInput') {
838
926
  if (obj.bundleInput !== undefined) {
839
927
  const obj_bundleInput = obj.bundleInput;
840
928
  const path_bundleInput = path + '.bundleInput';
841
- const referencepath_bundleInputValidationError = validate$l(obj_bundleInput, path_bundleInput);
929
+ const referencepath_bundleInputValidationError = validate$m(obj_bundleInput, path_bundleInput);
842
930
  if (referencepath_bundleInputValidationError !== null) {
843
931
  let message = 'Object doesn\'t match InsightBundleInput (at "' + path_bundleInput + '")\n';
844
932
  message += referencepath_bundleInputValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1723,12 +1811,12 @@ function typeCheckConfig$3(untrustedConfig) {
1723
1811
  const config = {};
1724
1812
  typeCheckConfig$5(untrustedConfig, config, getMetricFilterValues_ConfigPropertyMetadata);
1725
1813
  const untrustedConfig_semanticDataModel = untrustedConfig.semanticDataModel;
1726
- const referenceSemanticDataModelValidationError = validate$r(untrustedConfig_semanticDataModel);
1814
+ const referenceSemanticDataModelValidationError = validate$s(untrustedConfig_semanticDataModel);
1727
1815
  if (referenceSemanticDataModelValidationError === null) {
1728
1816
  config.semanticDataModel = untrustedConfig_semanticDataModel;
1729
1817
  }
1730
1818
  const untrustedConfig_field = untrustedConfig.field;
1731
- const referenceFieldIdValidationError = validate$C(untrustedConfig_field);
1819
+ const referenceFieldIdValidationError = validate$B(untrustedConfig_field);
1732
1820
  if (referenceFieldIdValidationError === null) {
1733
1821
  config.field = untrustedConfig_field;
1734
1822
  }
@@ -1737,7 +1825,7 @@ function typeCheckConfig$3(untrustedConfig) {
1737
1825
  const untrustedConfig_filters_array = [];
1738
1826
  for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
1739
1827
  const untrustedConfig_filters_item = untrustedConfig_filters[i];
1740
- const referenceFilterValidationError = validate$z(untrustedConfig_filters_item);
1828
+ const referenceFilterValidationError = validate$y(untrustedConfig_filters_item);
1741
1829
  if (referenceFilterValidationError === null) {
1742
1830
  untrustedConfig_filters_array.push(untrustedConfig_filters_item);
1743
1831
  }
@@ -1745,7 +1833,7 @@ function typeCheckConfig$3(untrustedConfig) {
1745
1833
  config.filters = untrustedConfig_filters_array;
1746
1834
  }
1747
1835
  const untrustedConfig_semanticFilter = untrustedConfig.semanticFilter;
1748
- const referenceFlattenFilterValidationError = validate$v(untrustedConfig_semanticFilter);
1836
+ const referenceFlattenFilterValidationError = validate$w(untrustedConfig_semanticFilter);
1749
1837
  if (referenceFlattenFilterValidationError === null) {
1750
1838
  config.semanticFilter = untrustedConfig_semanticFilter;
1751
1839
  }
@@ -2958,7 +3046,7 @@ function typeCheckConfig$2(untrustedConfig) {
2958
3046
  const config = {};
2959
3047
  typeCheckConfig$5(untrustedConfig, config, generateInsights_ConfigPropertyMetadata);
2960
3048
  const untrustedConfig_input = untrustedConfig.input;
2961
- const referenceInsightBundleInputValidationError = validate$l(untrustedConfig_input);
3049
+ const referenceInsightBundleInputValidationError = validate$m(untrustedConfig_input);
2962
3050
  if (referenceInsightBundleInputValidationError === null) {
2963
3051
  config.input = untrustedConfig_input;
2964
3052
  }
@@ -3061,7 +3149,7 @@ function typeCheckConfig$1(untrustedConfig) {
3061
3149
  const config = {};
3062
3150
  typeCheckConfig$5(untrustedConfig, config, generateInsightsBasic_ConfigPropertyMetadata);
3063
3151
  const untrustedConfig_input = untrustedConfig.input;
3064
- const referenceInsightBundleInputValidationError = validate$l(untrustedConfig_input);
3152
+ const referenceInsightBundleInputValidationError = validate$m(untrustedConfig_input);
3065
3153
  if (referenceInsightBundleInputValidationError === null) {
3066
3154
  config.input = untrustedConfig_input;
3067
3155
  }