@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.
- package/dist/es/es2018/sfap-analytics-insights.js +200 -112
- package/dist/es/es2018/types/src/generated/types/GoalMetadata.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/GoalMetadata_StatusCondition.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/InputMetric.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/MeasurementPeriod.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/MetricDefinition.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/MetricInstance.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/types/MetricInstanceInput.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/RelativePeriod.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/Status.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/UnifiedFilter.d.ts +33 -0
- package/package.json +3 -3
- package/sfdc/index.js +201 -113
- package/src/raml/api.raml +159 -8
package/sfdc/index.js
CHANGED
|
@@ -102,7 +102,7 @@ function createLink(ref) {
|
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
function validate$
|
|
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$H(obj, path = 'MetricMetadata') {
|
|
|
125
125
|
return v_error === undefined ? null : v_error;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
function validate$
|
|
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,91 @@ function validate$G(obj, path = 'ExtensionOptions') {
|
|
|
155
155
|
return v_error === undefined ? null : v_error;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
function validate$
|
|
158
|
+
function validate$G(obj, path = 'GoalMetadata_StatusCondition') {
|
|
159
|
+
const v_error = (() => {
|
|
160
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
161
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
162
|
+
}
|
|
163
|
+
if (obj.color !== undefined) {
|
|
164
|
+
const obj_color = obj.color;
|
|
165
|
+
const path_color = path + '.color';
|
|
166
|
+
if (typeof obj_color !== 'string') {
|
|
167
|
+
return new TypeError('Expected "string" but received "' + typeof obj_color + '" (at "' + path_color + '")');
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
if (obj.currencyIsoCode !== undefined) {
|
|
171
|
+
const obj_currencyIsoCode = obj.currencyIsoCode;
|
|
172
|
+
const path_currencyIsoCode = path + '.currencyIsoCode';
|
|
173
|
+
if (typeof obj_currencyIsoCode !== 'string') {
|
|
174
|
+
return new TypeError('Expected "string" but received "' + typeof obj_currencyIsoCode + '" (at "' + path_currencyIsoCode + '")');
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
if (obj.operator !== undefined) {
|
|
178
|
+
const obj_operator = obj.operator;
|
|
179
|
+
const path_operator = path + '.operator';
|
|
180
|
+
if (typeof obj_operator !== 'string') {
|
|
181
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
if (obj.primary !== undefined) {
|
|
185
|
+
const obj_primary = obj.primary;
|
|
186
|
+
const path_primary = path + '.primary';
|
|
187
|
+
if (typeof obj_primary !== 'boolean') {
|
|
188
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_primary + '" (at "' + path_primary + '")');
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
if (obj.statusName !== undefined) {
|
|
192
|
+
const obj_statusName = obj.statusName;
|
|
193
|
+
const path_statusName = path + '.statusName';
|
|
194
|
+
if (typeof obj_statusName !== 'string') {
|
|
195
|
+
return new TypeError('Expected "string" but received "' + typeof obj_statusName + '" (at "' + path_statusName + '")');
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
if (obj.value !== undefined) {
|
|
199
|
+
const obj_value = obj.value;
|
|
200
|
+
const path_value = path + '.value';
|
|
201
|
+
if (typeof obj_value !== 'string') {
|
|
202
|
+
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
})();
|
|
206
|
+
return v_error === undefined ? null : v_error;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
function validate$F(obj, path = 'GoalMetadata') {
|
|
210
|
+
const v_error = (() => {
|
|
211
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
212
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
213
|
+
}
|
|
214
|
+
if (obj.forecasting !== undefined) {
|
|
215
|
+
const obj_forecasting = obj.forecasting;
|
|
216
|
+
const path_forecasting = path + '.forecasting';
|
|
217
|
+
if (typeof obj_forecasting !== 'boolean') {
|
|
218
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_forecasting + '" (at "' + path_forecasting + '")');
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
if (obj.statusConditions !== undefined) {
|
|
222
|
+
const obj_statusConditions = obj.statusConditions;
|
|
223
|
+
const path_statusConditions = path + '.statusConditions';
|
|
224
|
+
if (!ArrayIsArray(obj_statusConditions)) {
|
|
225
|
+
return new TypeError('Expected "array" but received "' + typeof obj_statusConditions + '" (at "' + path_statusConditions + '")');
|
|
226
|
+
}
|
|
227
|
+
for (let i = 0; i < obj_statusConditions.length; i++) {
|
|
228
|
+
const obj_statusConditions_item = obj_statusConditions[i];
|
|
229
|
+
const path_statusConditions_item = path_statusConditions + '[' + i + ']';
|
|
230
|
+
const referencepath_statusConditions_itemValidationError = validate$G(obj_statusConditions_item, path_statusConditions_item);
|
|
231
|
+
if (referencepath_statusConditions_itemValidationError !== null) {
|
|
232
|
+
let message = 'Object doesn\'t match GoalMetadata_StatusCondition (at "' + path_statusConditions_item + '")\n';
|
|
233
|
+
message += referencepath_statusConditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
234
|
+
return new TypeError(message);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
})();
|
|
239
|
+
return v_error === undefined ? null : v_error;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
function validate$E(obj, path = 'InsightsOptions_InsightSetting') {
|
|
159
243
|
const v_error = (() => {
|
|
160
244
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
161
245
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -178,7 +262,7 @@ function validate$F(obj, path = 'InsightsOptions_InsightSetting') {
|
|
|
178
262
|
return v_error === undefined ? null : v_error;
|
|
179
263
|
}
|
|
180
264
|
|
|
181
|
-
function validate$
|
|
265
|
+
function validate$D(obj, path = 'InsightsOptions') {
|
|
182
266
|
const v_error = (() => {
|
|
183
267
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
184
268
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -192,7 +276,7 @@ function validate$E(obj, path = 'InsightsOptions') {
|
|
|
192
276
|
for (let i = 0; i < obj_settings.length; i++) {
|
|
193
277
|
const obj_settings_item = obj_settings[i];
|
|
194
278
|
const path_settings_item = path_settings + '[' + i + ']';
|
|
195
|
-
const referencepath_settings_itemValidationError = validate$
|
|
279
|
+
const referencepath_settings_itemValidationError = validate$E(obj_settings_item, path_settings_item);
|
|
196
280
|
if (referencepath_settings_itemValidationError !== null) {
|
|
197
281
|
let message = 'Object doesn\'t match InsightsOptions_InsightSetting (at "' + path_settings_item + '")\n';
|
|
198
282
|
message += referencepath_settings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -204,7 +288,7 @@ function validate$E(obj, path = 'InsightsOptions') {
|
|
|
204
288
|
return v_error === undefined ? null : v_error;
|
|
205
289
|
}
|
|
206
290
|
|
|
207
|
-
function validate$
|
|
291
|
+
function validate$C(obj, path = 'CategoricalFilterOptions') {
|
|
208
292
|
const v_error = (() => {
|
|
209
293
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
210
294
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -241,7 +325,7 @@ function validate$D(obj, path = 'CategoricalFilterOptions') {
|
|
|
241
325
|
return v_error === undefined ? null : v_error;
|
|
242
326
|
}
|
|
243
327
|
|
|
244
|
-
function validate$
|
|
328
|
+
function validate$B(obj, path = 'FieldId') {
|
|
245
329
|
const v_error = (() => {
|
|
246
330
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
247
331
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -271,7 +355,7 @@ function validate$C(obj, path = 'FieldId') {
|
|
|
271
355
|
return v_error === undefined ? null : v_error;
|
|
272
356
|
}
|
|
273
357
|
|
|
274
|
-
function validate$
|
|
358
|
+
function validate$A(obj, path = 'RangeFilterOptions') {
|
|
275
359
|
const v_error = (() => {
|
|
276
360
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
277
361
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -315,7 +399,7 @@ function validate$B(obj, path = 'RangeFilterOptions') {
|
|
|
315
399
|
return v_error === undefined ? null : v_error;
|
|
316
400
|
}
|
|
317
401
|
|
|
318
|
-
function validate$
|
|
402
|
+
function validate$z(obj, path = 'RelativeDateFilterOptions') {
|
|
319
403
|
const v_error = (() => {
|
|
320
404
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
321
405
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -324,7 +408,7 @@ function validate$A(obj, path = 'RelativeDateFilterOptions') {
|
|
|
324
408
|
return v_error === undefined ? null : v_error;
|
|
325
409
|
}
|
|
326
410
|
|
|
327
|
-
function validate$
|
|
411
|
+
function validate$y(obj, path = 'Filter') {
|
|
328
412
|
const v_error = (() => {
|
|
329
413
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
330
414
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -332,7 +416,7 @@ function validate$z(obj, path = 'Filter') {
|
|
|
332
416
|
if (obj.categoricalFilterOptions !== undefined) {
|
|
333
417
|
const obj_categoricalFilterOptions = obj.categoricalFilterOptions;
|
|
334
418
|
const path_categoricalFilterOptions = path + '.categoricalFilterOptions';
|
|
335
|
-
const referencepath_categoricalFilterOptionsValidationError = validate$
|
|
419
|
+
const referencepath_categoricalFilterOptionsValidationError = validate$C(obj_categoricalFilterOptions, path_categoricalFilterOptions);
|
|
336
420
|
if (referencepath_categoricalFilterOptionsValidationError !== null) {
|
|
337
421
|
let message = 'Object doesn\'t match CategoricalFilterOptions (at "' + path_categoricalFilterOptions + '")\n';
|
|
338
422
|
message += referencepath_categoricalFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -342,7 +426,7 @@ function validate$z(obj, path = 'Filter') {
|
|
|
342
426
|
if (obj.field !== undefined) {
|
|
343
427
|
const obj_field = obj.field;
|
|
344
428
|
const path_field = path + '.field';
|
|
345
|
-
const referencepath_fieldValidationError = validate$
|
|
429
|
+
const referencepath_fieldValidationError = validate$B(obj_field, path_field);
|
|
346
430
|
if (referencepath_fieldValidationError !== null) {
|
|
347
431
|
let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
|
|
348
432
|
message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -352,7 +436,7 @@ function validate$z(obj, path = 'Filter') {
|
|
|
352
436
|
if (obj.fieldId !== undefined) {
|
|
353
437
|
const obj_fieldId = obj.fieldId;
|
|
354
438
|
const path_fieldId = path + '.fieldId';
|
|
355
|
-
const referencepath_fieldIdValidationError = validate$
|
|
439
|
+
const referencepath_fieldIdValidationError = validate$B(obj_fieldId, path_fieldId);
|
|
356
440
|
if (referencepath_fieldIdValidationError !== null) {
|
|
357
441
|
let message = 'Object doesn\'t match FieldId (at "' + path_fieldId + '")\n';
|
|
358
442
|
message += referencepath_fieldIdValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -362,7 +446,7 @@ function validate$z(obj, path = 'Filter') {
|
|
|
362
446
|
if (obj.rangeFilterOptions !== undefined) {
|
|
363
447
|
const obj_rangeFilterOptions = obj.rangeFilterOptions;
|
|
364
448
|
const path_rangeFilterOptions = path + '.rangeFilterOptions';
|
|
365
|
-
const referencepath_rangeFilterOptionsValidationError = validate$
|
|
449
|
+
const referencepath_rangeFilterOptionsValidationError = validate$A(obj_rangeFilterOptions, path_rangeFilterOptions);
|
|
366
450
|
if (referencepath_rangeFilterOptionsValidationError !== null) {
|
|
367
451
|
let message = 'Object doesn\'t match RangeFilterOptions (at "' + path_rangeFilterOptions + '")\n';
|
|
368
452
|
message += referencepath_rangeFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -372,7 +456,7 @@ function validate$z(obj, path = 'Filter') {
|
|
|
372
456
|
if (obj.relativeDateFilterOptions !== undefined) {
|
|
373
457
|
const obj_relativeDateFilterOptions = obj.relativeDateFilterOptions;
|
|
374
458
|
const path_relativeDateFilterOptions = path + '.relativeDateFilterOptions';
|
|
375
|
-
const referencepath_relativeDateFilterOptionsValidationError = validate$
|
|
459
|
+
const referencepath_relativeDateFilterOptionsValidationError = validate$z(obj_relativeDateFilterOptions, path_relativeDateFilterOptions);
|
|
376
460
|
if (referencepath_relativeDateFilterOptionsValidationError !== null) {
|
|
377
461
|
let message = 'Object doesn\'t match RelativeDateFilterOptions (at "' + path_relativeDateFilterOptions + '")\n';
|
|
378
462
|
message += referencepath_relativeDateFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -390,59 +474,7 @@ function validate$z(obj, path = 'Filter') {
|
|
|
390
474
|
return v_error === undefined ? null : v_error;
|
|
391
475
|
}
|
|
392
476
|
|
|
393
|
-
function validate$
|
|
394
|
-
const v_error = (() => {
|
|
395
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
396
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
397
|
-
}
|
|
398
|
-
if (obj.granularity !== undefined) {
|
|
399
|
-
const obj_granularity = obj.granularity;
|
|
400
|
-
const path_granularity = path + '.granularity';
|
|
401
|
-
if (typeof obj_granularity !== 'string') {
|
|
402
|
-
return new TypeError('Expected "string" but received "' + typeof obj_granularity + '" (at "' + path_granularity + '")');
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
if (obj.range !== undefined) {
|
|
406
|
-
const obj_range = obj.range;
|
|
407
|
-
const path_range = path + '.range';
|
|
408
|
-
if (typeof obj_range !== 'string') {
|
|
409
|
-
return new TypeError('Expected "string" but received "' + typeof obj_range + '" (at "' + path_range + '")');
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
})();
|
|
413
|
-
return v_error === undefined ? null : v_error;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
function validate$x(obj, path = 'MeasurementPeriod') {
|
|
417
|
-
const v_error = (() => {
|
|
418
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
419
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
420
|
-
}
|
|
421
|
-
if (obj.filter !== undefined) {
|
|
422
|
-
const obj_filter = obj.filter;
|
|
423
|
-
const path_filter = path + '.filter';
|
|
424
|
-
const referencepath_filterValidationError = validate$z(obj_filter, path_filter);
|
|
425
|
-
if (referencepath_filterValidationError !== null) {
|
|
426
|
-
let message = 'Object doesn\'t match Filter (at "' + path_filter + '")\n';
|
|
427
|
-
message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
428
|
-
return new TypeError(message);
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
if (obj.relativePeriod !== undefined) {
|
|
432
|
-
const obj_relativePeriod = obj.relativePeriod;
|
|
433
|
-
const path_relativePeriod = path + '.relativePeriod';
|
|
434
|
-
const referencepath_relativePeriodValidationError = validate$y(obj_relativePeriod, path_relativePeriod);
|
|
435
|
-
if (referencepath_relativePeriodValidationError !== null) {
|
|
436
|
-
let message = 'Object doesn\'t match RelativePeriod (at "' + path_relativePeriod + '")\n';
|
|
437
|
-
message += referencepath_relativePeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
438
|
-
return new TypeError(message);
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
})();
|
|
442
|
-
return v_error === undefined ? null : v_error;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
function validate$w(obj, path = 'SemanticFilter') {
|
|
477
|
+
function validate$x(obj, path = 'SemanticFilter') {
|
|
446
478
|
const v_error = (() => {
|
|
447
479
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
448
480
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -468,7 +500,7 @@ function validate$w(obj, path = 'SemanticFilter') {
|
|
|
468
500
|
return v_error === undefined ? null : v_error;
|
|
469
501
|
}
|
|
470
502
|
|
|
471
|
-
function validate$
|
|
503
|
+
function validate$w(obj, path = 'FlattenFilter') {
|
|
472
504
|
const v_error = (() => {
|
|
473
505
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
474
506
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -489,7 +521,7 @@ function validate$v(obj, path = 'FlattenFilter') {
|
|
|
489
521
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
490
522
|
const obj_filters_item = obj_filters[i];
|
|
491
523
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
492
|
-
const referencepath_filters_itemValidationError = validate$
|
|
524
|
+
const referencepath_filters_itemValidationError = validate$x(obj_filters_item, path_filters_item);
|
|
493
525
|
if (referencepath_filters_itemValidationError !== null) {
|
|
494
526
|
let message = 'Object doesn\'t match SemanticFilter (at "' + path_filters_item + '")\n';
|
|
495
527
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -501,7 +533,7 @@ function validate$v(obj, path = 'FlattenFilter') {
|
|
|
501
533
|
return v_error === undefined ? null : v_error;
|
|
502
534
|
}
|
|
503
535
|
|
|
504
|
-
function validate$
|
|
536
|
+
function validate$v(obj, path = 'MetricInstance') {
|
|
505
537
|
const v_error = (() => {
|
|
506
538
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
507
539
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -515,7 +547,7 @@ function validate$u(obj, path = 'MetricInstance') {
|
|
|
515
547
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
516
548
|
const obj_filters_item = obj_filters[i];
|
|
517
549
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
518
|
-
const referencepath_filters_itemValidationError = validate$
|
|
550
|
+
const referencepath_filters_itemValidationError = validate$y(obj_filters_item, path_filters_item);
|
|
519
551
|
if (referencepath_filters_itemValidationError !== null) {
|
|
520
552
|
let message = 'Object doesn\'t match Filter (at "' + path_filters_item + '")\n';
|
|
521
553
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -523,18 +555,17 @@ function validate$u(obj, path = 'MetricInstance') {
|
|
|
523
555
|
}
|
|
524
556
|
}
|
|
525
557
|
}
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
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
|
+
}
|
|
533
564
|
}
|
|
534
565
|
if (obj.semanticFilter !== undefined) {
|
|
535
566
|
const obj_semanticFilter = obj.semanticFilter;
|
|
536
567
|
const path_semanticFilter = path + '.semanticFilter';
|
|
537
|
-
const referencepath_semanticFilterValidationError = validate$
|
|
568
|
+
const referencepath_semanticFilterValidationError = validate$w(obj_semanticFilter, path_semanticFilter);
|
|
538
569
|
if (referencepath_semanticFilterValidationError !== null) {
|
|
539
570
|
let message = 'Object doesn\'t match FlattenFilter (at "' + path_semanticFilter + '")\n';
|
|
540
571
|
message += referencepath_semanticFilterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -545,7 +576,7 @@ function validate$u(obj, path = 'MetricInstance') {
|
|
|
545
576
|
return v_error === undefined ? null : v_error;
|
|
546
577
|
}
|
|
547
578
|
|
|
548
|
-
function validate$
|
|
579
|
+
function validate$u(obj, path = 'CompareConfig') {
|
|
549
580
|
const v_error = (() => {
|
|
550
581
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
551
582
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -561,7 +592,7 @@ function validate$t(obj, path = 'CompareConfig') {
|
|
|
561
592
|
return v_error === undefined ? null : v_error;
|
|
562
593
|
}
|
|
563
594
|
|
|
564
|
-
function validate$
|
|
595
|
+
function validate$t(obj, path = 'Measure') {
|
|
565
596
|
const v_error = (() => {
|
|
566
597
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
567
598
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -575,7 +606,7 @@ function validate$s(obj, path = 'Measure') {
|
|
|
575
606
|
}
|
|
576
607
|
const obj_field = obj.field;
|
|
577
608
|
const path_field = path + '.field';
|
|
578
|
-
const referencepath_fieldValidationError = validate$
|
|
609
|
+
const referencepath_fieldValidationError = validate$B(obj_field, path_field);
|
|
579
610
|
if (referencepath_fieldValidationError !== null) {
|
|
580
611
|
let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
|
|
581
612
|
message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -585,7 +616,7 @@ function validate$s(obj, path = 'Measure') {
|
|
|
585
616
|
return v_error === undefined ? null : v_error;
|
|
586
617
|
}
|
|
587
618
|
|
|
588
|
-
function validate$
|
|
619
|
+
function validate$s(obj, path = 'SemanticDataModel') {
|
|
589
620
|
const v_error = (() => {
|
|
590
621
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
591
622
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -601,14 +632,14 @@ function validate$r(obj, path = 'SemanticDataModel') {
|
|
|
601
632
|
return v_error === undefined ? null : v_error;
|
|
602
633
|
}
|
|
603
634
|
|
|
604
|
-
function validate$
|
|
635
|
+
function validate$r(obj, path = 'TimeDimension') {
|
|
605
636
|
const v_error = (() => {
|
|
606
637
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
607
638
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
608
639
|
}
|
|
609
640
|
const obj_field = obj.field;
|
|
610
641
|
const path_field = path + '.field';
|
|
611
|
-
const referencepath_fieldValidationError = validate$
|
|
642
|
+
const referencepath_fieldValidationError = validate$B(obj_field, path_field);
|
|
612
643
|
if (referencepath_fieldValidationError !== null) {
|
|
613
644
|
let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
|
|
614
645
|
message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -618,14 +649,14 @@ function validate$q(obj, path = 'TimeDimension') {
|
|
|
618
649
|
return v_error === undefined ? null : v_error;
|
|
619
650
|
}
|
|
620
651
|
|
|
621
|
-
function validate$
|
|
652
|
+
function validate$q(obj, path = 'MetricDefinition') {
|
|
622
653
|
const v_error = (() => {
|
|
623
654
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
624
655
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
625
656
|
}
|
|
626
657
|
const obj_comparison = obj.comparison;
|
|
627
658
|
const path_comparison = path + '.comparison';
|
|
628
|
-
const referencepath_comparisonValidationError = validate$
|
|
659
|
+
const referencepath_comparisonValidationError = validate$u(obj_comparison, path_comparison);
|
|
629
660
|
if (referencepath_comparisonValidationError !== null) {
|
|
630
661
|
let message = 'Object doesn\'t match CompareConfig (at "' + path_comparison + '")\n';
|
|
631
662
|
message += referencepath_comparisonValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -640,7 +671,7 @@ function validate$p(obj, path = 'MetricDefinition') {
|
|
|
640
671
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
641
672
|
const obj_filters_item = obj_filters[i];
|
|
642
673
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
643
|
-
const referencepath_filters_itemValidationError = validate$
|
|
674
|
+
const referencepath_filters_itemValidationError = validate$y(obj_filters_item, path_filters_item);
|
|
644
675
|
if (referencepath_filters_itemValidationError !== null) {
|
|
645
676
|
let message = 'Object doesn\'t match Filter (at "' + path_filters_item + '")\n';
|
|
646
677
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -650,7 +681,7 @@ function validate$p(obj, path = 'MetricDefinition') {
|
|
|
650
681
|
}
|
|
651
682
|
const obj_measure = obj.measure;
|
|
652
683
|
const path_measure = path + '.measure';
|
|
653
|
-
const referencepath_measureValidationError = validate$
|
|
684
|
+
const referencepath_measureValidationError = validate$t(obj_measure, path_measure);
|
|
654
685
|
if (referencepath_measureValidationError !== null) {
|
|
655
686
|
let message = 'Object doesn\'t match Measure (at "' + path_measure + '")\n';
|
|
656
687
|
message += referencepath_measureValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -665,7 +696,7 @@ function validate$p(obj, path = 'MetricDefinition') {
|
|
|
665
696
|
}
|
|
666
697
|
const obj_semanticDataModel = obj.semanticDataModel;
|
|
667
698
|
const path_semanticDataModel = path + '.semanticDataModel';
|
|
668
|
-
const referencepath_semanticDataModelValidationError = validate$
|
|
699
|
+
const referencepath_semanticDataModelValidationError = validate$s(obj_semanticDataModel, path_semanticDataModel);
|
|
669
700
|
if (referencepath_semanticDataModelValidationError !== null) {
|
|
670
701
|
let message = 'Object doesn\'t match SemanticDataModel (at "' + path_semanticDataModel + '")\n';
|
|
671
702
|
message += referencepath_semanticDataModelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -674,7 +705,7 @@ function validate$p(obj, path = 'MetricDefinition') {
|
|
|
674
705
|
if (obj.semanticFilter !== undefined) {
|
|
675
706
|
const obj_semanticFilter = obj.semanticFilter;
|
|
676
707
|
const path_semanticFilter = path + '.semanticFilter';
|
|
677
|
-
const referencepath_semanticFilterValidationError = validate$
|
|
708
|
+
const referencepath_semanticFilterValidationError = validate$w(obj_semanticFilter, path_semanticFilter);
|
|
678
709
|
if (referencepath_semanticFilterValidationError !== null) {
|
|
679
710
|
let message = 'Object doesn\'t match FlattenFilter (at "' + path_semanticFilter + '")\n';
|
|
680
711
|
message += referencepath_semanticFilterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -683,7 +714,7 @@ function validate$p(obj, path = 'MetricDefinition') {
|
|
|
683
714
|
}
|
|
684
715
|
const obj_timeDimension = obj.timeDimension;
|
|
685
716
|
const path_timeDimension = path + '.timeDimension';
|
|
686
|
-
const referencepath_timeDimensionValidationError = validate$
|
|
717
|
+
const referencepath_timeDimensionValidationError = validate$r(obj_timeDimension, path_timeDimension);
|
|
687
718
|
if (referencepath_timeDimensionValidationError !== null) {
|
|
688
719
|
let message = 'Object doesn\'t match TimeDimension (at "' + path_timeDimension + '")\n';
|
|
689
720
|
message += referencepath_timeDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -693,7 +724,7 @@ function validate$p(obj, path = 'MetricDefinition') {
|
|
|
693
724
|
return v_error === undefined ? null : v_error;
|
|
694
725
|
}
|
|
695
726
|
|
|
696
|
-
function validate$
|
|
727
|
+
function validate$p(obj, path = 'RepresentationOptions_NumberUnits') {
|
|
697
728
|
const v_error = (() => {
|
|
698
729
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
699
730
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -716,14 +747,14 @@ function validate$o(obj, path = 'RepresentationOptions_NumberUnits') {
|
|
|
716
747
|
return v_error === undefined ? null : v_error;
|
|
717
748
|
}
|
|
718
749
|
|
|
719
|
-
function validate$
|
|
750
|
+
function validate$o(obj, path = 'RepresentationOptions') {
|
|
720
751
|
const v_error = (() => {
|
|
721
752
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
722
753
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
723
754
|
}
|
|
724
755
|
const obj_numberUnits = obj.numberUnits;
|
|
725
756
|
const path_numberUnits = path + '.numberUnits';
|
|
726
|
-
const referencepath_numberUnitsValidationError = validate$
|
|
757
|
+
const referencepath_numberUnitsValidationError = validate$p(obj_numberUnits, path_numberUnits);
|
|
727
758
|
if (referencepath_numberUnitsValidationError !== null) {
|
|
728
759
|
let message = 'Object doesn\'t match RepresentationOptions_NumberUnits (at "' + path_numberUnits + '")\n';
|
|
729
760
|
message += referencepath_numberUnitsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -747,22 +778,32 @@ function validate$n(obj, path = 'RepresentationOptions') {
|
|
|
747
778
|
return v_error === undefined ? null : v_error;
|
|
748
779
|
}
|
|
749
780
|
|
|
750
|
-
function validate$
|
|
781
|
+
function validate$n(obj, path = 'InputMetric') {
|
|
751
782
|
const v_error = (() => {
|
|
752
783
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
753
784
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
754
785
|
}
|
|
755
786
|
const obj_extensionOptions = obj.extensionOptions;
|
|
756
787
|
const path_extensionOptions = path + '.extensionOptions';
|
|
757
|
-
const referencepath_extensionOptionsValidationError = validate$
|
|
788
|
+
const referencepath_extensionOptionsValidationError = validate$H(obj_extensionOptions, path_extensionOptions);
|
|
758
789
|
if (referencepath_extensionOptionsValidationError !== null) {
|
|
759
790
|
let message = 'Object doesn\'t match ExtensionOptions (at "' + path_extensionOptions + '")\n';
|
|
760
791
|
message += referencepath_extensionOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
761
792
|
return new TypeError(message);
|
|
762
793
|
}
|
|
794
|
+
if (obj.goals !== undefined) {
|
|
795
|
+
const obj_goals = obj.goals;
|
|
796
|
+
const path_goals = path + '.goals';
|
|
797
|
+
const referencepath_goalsValidationError = validate$F(obj_goals, path_goals);
|
|
798
|
+
if (referencepath_goalsValidationError !== null) {
|
|
799
|
+
let message = 'Object doesn\'t match GoalMetadata (at "' + path_goals + '")\n';
|
|
800
|
+
message += referencepath_goalsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
801
|
+
return new TypeError(message);
|
|
802
|
+
}
|
|
803
|
+
}
|
|
763
804
|
const obj_insightsOptions = obj.insightsOptions;
|
|
764
805
|
const path_insightsOptions = path + '.insightsOptions';
|
|
765
|
-
const referencepath_insightsOptionsValidationError = validate$
|
|
806
|
+
const referencepath_insightsOptionsValidationError = validate$D(obj_insightsOptions, path_insightsOptions);
|
|
766
807
|
if (referencepath_insightsOptionsValidationError !== null) {
|
|
767
808
|
let message = 'Object doesn\'t match InsightsOptions (at "' + path_insightsOptions + '")\n';
|
|
768
809
|
message += referencepath_insightsOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -770,7 +811,7 @@ function validate$m(obj, path = 'InputMetric') {
|
|
|
770
811
|
}
|
|
771
812
|
const obj_instance = obj.instance;
|
|
772
813
|
const path_instance = path + '.instance';
|
|
773
|
-
const referencepath_instanceValidationError = validate$
|
|
814
|
+
const referencepath_instanceValidationError = validate$v(obj_instance, path_instance);
|
|
774
815
|
if (referencepath_instanceValidationError !== null) {
|
|
775
816
|
let message = 'Object doesn\'t match MetricInstance (at "' + path_instance + '")\n';
|
|
776
817
|
message += referencepath_instanceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -778,7 +819,7 @@ function validate$m(obj, path = 'InputMetric') {
|
|
|
778
819
|
}
|
|
779
820
|
const obj_metric = obj.metric;
|
|
780
821
|
const path_metric = path + '.metric';
|
|
781
|
-
const referencepath_metricValidationError = validate$
|
|
822
|
+
const referencepath_metricValidationError = validate$q(obj_metric, path_metric);
|
|
782
823
|
if (referencepath_metricValidationError !== null) {
|
|
783
824
|
let message = 'Object doesn\'t match MetricDefinition (at "' + path_metric + '")\n';
|
|
784
825
|
message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -786,7 +827,7 @@ function validate$m(obj, path = 'InputMetric') {
|
|
|
786
827
|
}
|
|
787
828
|
const obj_representationOptions = obj.representationOptions;
|
|
788
829
|
const path_representationOptions = path + '.representationOptions';
|
|
789
|
-
const referencepath_representationOptionsValidationError = validate$
|
|
830
|
+
const referencepath_representationOptionsValidationError = validate$o(obj_representationOptions, path_representationOptions);
|
|
790
831
|
if (referencepath_representationOptionsValidationError !== null) {
|
|
791
832
|
let message = 'Object doesn\'t match RepresentationOptions (at "' + path_representationOptions + '")\n';
|
|
792
833
|
message += referencepath_representationOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -796,14 +837,14 @@ function validate$m(obj, path = 'InputMetric') {
|
|
|
796
837
|
return v_error === undefined ? null : v_error;
|
|
797
838
|
}
|
|
798
839
|
|
|
799
|
-
function validate$
|
|
840
|
+
function validate$m(obj, path = 'InsightBundleInput') {
|
|
800
841
|
const v_error = (() => {
|
|
801
842
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
802
843
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
803
844
|
}
|
|
804
845
|
const obj_metadata = obj.metadata;
|
|
805
846
|
const path_metadata = path + '.metadata';
|
|
806
|
-
const referencepath_metadataValidationError = validate$
|
|
847
|
+
const referencepath_metadataValidationError = validate$I(obj_metadata, path_metadata);
|
|
807
848
|
if (referencepath_metadataValidationError !== null) {
|
|
808
849
|
let message = 'Object doesn\'t match MetricMetadata (at "' + path_metadata + '")\n';
|
|
809
850
|
message += referencepath_metadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -811,7 +852,7 @@ function validate$l(obj, path = 'InsightBundleInput') {
|
|
|
811
852
|
}
|
|
812
853
|
const obj_metric = obj.metric;
|
|
813
854
|
const path_metric = path + '.metric';
|
|
814
|
-
const referencepath_metricValidationError = validate$
|
|
855
|
+
const referencepath_metricValidationError = validate$n(obj_metric, path_metric);
|
|
815
856
|
if (referencepath_metricValidationError !== null) {
|
|
816
857
|
let message = 'Object doesn\'t match InputMetric (at "' + path_metric + '")\n';
|
|
817
858
|
message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -821,11 +862,58 @@ function validate$l(obj, path = 'InsightBundleInput') {
|
|
|
821
862
|
return v_error === undefined ? null : v_error;
|
|
822
863
|
}
|
|
823
864
|
|
|
865
|
+
function validate$l(obj, path = 'UnifiedFilter') {
|
|
866
|
+
const v_error = (() => {
|
|
867
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
868
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
869
|
+
}
|
|
870
|
+
if (obj.fieldName !== undefined) {
|
|
871
|
+
const obj_fieldName = obj.fieldName;
|
|
872
|
+
const path_fieldName = path + '.fieldName';
|
|
873
|
+
if (typeof obj_fieldName !== 'string') {
|
|
874
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldName + '" (at "' + path_fieldName + '")');
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
if (obj.operator !== undefined) {
|
|
878
|
+
const obj_operator = obj.operator;
|
|
879
|
+
const path_operator = path + '.operator';
|
|
880
|
+
if (typeof obj_operator !== 'string') {
|
|
881
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
if (obj.values !== undefined) {
|
|
885
|
+
const obj_values = obj.values;
|
|
886
|
+
const path_values = path + '.values';
|
|
887
|
+
if (!ArrayIsArray(obj_values)) {
|
|
888
|
+
return new TypeError('Expected "array" but received "' + typeof obj_values + '" (at "' + path_values + '")');
|
|
889
|
+
}
|
|
890
|
+
for (let i = 0; i < obj_values.length; i++) {
|
|
891
|
+
const obj_values_item = obj_values[i];
|
|
892
|
+
const path_values_item = path_values + '[' + i + ']';
|
|
893
|
+
if (obj_values_item === undefined) {
|
|
894
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_values_item + '" (at "' + path_values_item + '")');
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
})();
|
|
899
|
+
return v_error === undefined ? null : v_error;
|
|
900
|
+
}
|
|
901
|
+
|
|
824
902
|
function validate$k(obj, path = 'MetricInstanceInput') {
|
|
825
903
|
const v_error = (() => {
|
|
826
904
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
827
905
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
828
906
|
}
|
|
907
|
+
if (obj.measurementPeriod !== undefined) {
|
|
908
|
+
const obj_measurementPeriod = obj.measurementPeriod;
|
|
909
|
+
const path_measurementPeriod = path + '.measurementPeriod';
|
|
910
|
+
const referencepath_measurementPeriodValidationError = validate$l(obj_measurementPeriod, path_measurementPeriod);
|
|
911
|
+
if (referencepath_measurementPeriodValidationError !== null) {
|
|
912
|
+
let message = 'Object doesn\'t match UnifiedFilter (at "' + path_measurementPeriod + '")\n';
|
|
913
|
+
message += referencepath_measurementPeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
914
|
+
return new TypeError(message);
|
|
915
|
+
}
|
|
916
|
+
}
|
|
829
917
|
const obj_metricInstanceId = obj.metricInstanceId;
|
|
830
918
|
const path_metricInstanceId = path + '.metricInstanceId';
|
|
831
919
|
if (typeof obj_metricInstanceId !== 'string') {
|
|
@@ -848,7 +936,7 @@ function validate$j(obj, path = 'BatchInput') {
|
|
|
848
936
|
if (obj.bundleInput !== undefined) {
|
|
849
937
|
const obj_bundleInput = obj.bundleInput;
|
|
850
938
|
const path_bundleInput = path + '.bundleInput';
|
|
851
|
-
const referencepath_bundleInputValidationError = validate$
|
|
939
|
+
const referencepath_bundleInputValidationError = validate$m(obj_bundleInput, path_bundleInput);
|
|
852
940
|
if (referencepath_bundleInputValidationError !== null) {
|
|
853
941
|
let message = 'Object doesn\'t match InsightBundleInput (at "' + path_bundleInput + '")\n';
|
|
854
942
|
message += referencepath_bundleInputValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2605,7 +2693,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
2605
2693
|
const config = {};
|
|
2606
2694
|
typeCheckConfig$5(untrustedConfig, config, generateInsights_ConfigPropertyMetadata);
|
|
2607
2695
|
const untrustedConfig_input = untrustedConfig.input;
|
|
2608
|
-
const referenceInsightBundleInputValidationError = validate$
|
|
2696
|
+
const referenceInsightBundleInputValidationError = validate$m(untrustedConfig_input);
|
|
2609
2697
|
if (referenceInsightBundleInputValidationError === null) {
|
|
2610
2698
|
config.input = untrustedConfig_input;
|
|
2611
2699
|
}
|
|
@@ -2708,7 +2796,7 @@ function typeCheckConfig$2(untrustedConfig) {
|
|
|
2708
2796
|
const config = {};
|
|
2709
2797
|
typeCheckConfig$5(untrustedConfig, config, generateInsightsBasic_ConfigPropertyMetadata);
|
|
2710
2798
|
const untrustedConfig_input = untrustedConfig.input;
|
|
2711
|
-
const referenceInsightBundleInputValidationError = validate$
|
|
2799
|
+
const referenceInsightBundleInputValidationError = validate$m(untrustedConfig_input);
|
|
2712
2800
|
if (referenceInsightBundleInputValidationError === null) {
|
|
2713
2801
|
config.input = untrustedConfig_input;
|
|
2714
2802
|
}
|
|
@@ -3449,12 +3537,12 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
3449
3537
|
const config = {};
|
|
3450
3538
|
typeCheckConfig$5(untrustedConfig, config, getMetricFilterValues_ConfigPropertyMetadata);
|
|
3451
3539
|
const untrustedConfig_semanticDataModel = untrustedConfig.semanticDataModel;
|
|
3452
|
-
const referenceSemanticDataModelValidationError = validate$
|
|
3540
|
+
const referenceSemanticDataModelValidationError = validate$s(untrustedConfig_semanticDataModel);
|
|
3453
3541
|
if (referenceSemanticDataModelValidationError === null) {
|
|
3454
3542
|
config.semanticDataModel = untrustedConfig_semanticDataModel;
|
|
3455
3543
|
}
|
|
3456
3544
|
const untrustedConfig_field = untrustedConfig.field;
|
|
3457
|
-
const referenceFieldIdValidationError = validate$
|
|
3545
|
+
const referenceFieldIdValidationError = validate$B(untrustedConfig_field);
|
|
3458
3546
|
if (referenceFieldIdValidationError === null) {
|
|
3459
3547
|
config.field = untrustedConfig_field;
|
|
3460
3548
|
}
|
|
@@ -3463,7 +3551,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
3463
3551
|
const untrustedConfig_filters_array = [];
|
|
3464
3552
|
for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
|
|
3465
3553
|
const untrustedConfig_filters_item = untrustedConfig_filters[i];
|
|
3466
|
-
const referenceFilterValidationError = validate$
|
|
3554
|
+
const referenceFilterValidationError = validate$y(untrustedConfig_filters_item);
|
|
3467
3555
|
if (referenceFilterValidationError === null) {
|
|
3468
3556
|
untrustedConfig_filters_array.push(untrustedConfig_filters_item);
|
|
3469
3557
|
}
|
|
@@ -3471,7 +3559,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
3471
3559
|
config.filters = untrustedConfig_filters_array;
|
|
3472
3560
|
}
|
|
3473
3561
|
const untrustedConfig_semanticFilter = untrustedConfig.semanticFilter;
|
|
3474
|
-
const referenceFlattenFilterValidationError = validate$
|
|
3562
|
+
const referenceFlattenFilterValidationError = validate$w(untrustedConfig_semanticFilter);
|
|
3475
3563
|
if (referenceFlattenFilterValidationError === null) {
|
|
3476
3564
|
config.semanticFilter = untrustedConfig_semanticFilter;
|
|
3477
3565
|
}
|
|
@@ -3565,4 +3653,4 @@ withDefaultLuvio((luvio) => {
|
|
|
3565
3653
|
});
|
|
3566
3654
|
|
|
3567
3655
|
export { createInsightsBatch, generateInsights, generateInsightsBasic, getInsightsBatch, getInsightsBatchNotifyChange, getInsightsBatch_imperative, getMetricFilterValues };
|
|
3568
|
-
// version: 1.332.0-
|
|
3656
|
+
// version: 1.332.0-dev20-8600de247a
|