@salesforce/lds-adapters-sfap-analytics-insights 1.328.0 → 1.329.1
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 +282 -169
- package/dist/es/es2018/types/src/generated/types/Overview.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/Status.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/Summary.d.ts +3 -3
- package/package.json +3 -3
- package/sfdc/index.js +265 -152
- package/src/raml/api.raml +40 -2
package/sfdc/index.js
CHANGED
|
@@ -102,7 +102,7 @@ function createLink(ref) {
|
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
function validate$
|
|
105
|
+
function validate$H(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$G(obj, path = 'MetricMetadata') {
|
|
|
125
125
|
return v_error === undefined ? null : v_error;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
function validate$
|
|
128
|
+
function validate$G(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$F(obj, path = 'ExtensionOptions') {
|
|
|
155
155
|
return v_error === undefined ? null : v_error;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
function validate$
|
|
158
|
+
function validate$F(obj, path = 'InsightsOptions_InsightSetting') {
|
|
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 + '")');
|
|
@@ -178,7 +178,7 @@ function validate$E(obj, path = 'InsightsOptions_InsightSetting') {
|
|
|
178
178
|
return v_error === undefined ? null : v_error;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
function validate$
|
|
181
|
+
function validate$E(obj, path = 'InsightsOptions') {
|
|
182
182
|
const v_error = (() => {
|
|
183
183
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
184
184
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -192,7 +192,7 @@ function validate$D(obj, path = 'InsightsOptions') {
|
|
|
192
192
|
for (let i = 0; i < obj_settings.length; i++) {
|
|
193
193
|
const obj_settings_item = obj_settings[i];
|
|
194
194
|
const path_settings_item = path_settings + '[' + i + ']';
|
|
195
|
-
const referencepath_settings_itemValidationError = validate$
|
|
195
|
+
const referencepath_settings_itemValidationError = validate$F(obj_settings_item, path_settings_item);
|
|
196
196
|
if (referencepath_settings_itemValidationError !== null) {
|
|
197
197
|
let message = 'Object doesn\'t match InsightsOptions_InsightSetting (at "' + path_settings_item + '")\n';
|
|
198
198
|
message += referencepath_settings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -204,7 +204,7 @@ function validate$D(obj, path = 'InsightsOptions') {
|
|
|
204
204
|
return v_error === undefined ? null : v_error;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
function validate$
|
|
207
|
+
function validate$D(obj, path = 'CategoricalFilterOptions') {
|
|
208
208
|
const v_error = (() => {
|
|
209
209
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
210
210
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -241,7 +241,7 @@ function validate$C(obj, path = 'CategoricalFilterOptions') {
|
|
|
241
241
|
return v_error === undefined ? null : v_error;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
function validate$
|
|
244
|
+
function validate$C(obj, path = 'FieldId') {
|
|
245
245
|
const v_error = (() => {
|
|
246
246
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
247
247
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -271,7 +271,7 @@ function validate$B(obj, path = 'FieldId') {
|
|
|
271
271
|
return v_error === undefined ? null : v_error;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
function validate$
|
|
274
|
+
function validate$B(obj, path = 'RangeFilterOptions') {
|
|
275
275
|
const v_error = (() => {
|
|
276
276
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
277
277
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -315,7 +315,7 @@ function validate$A(obj, path = 'RangeFilterOptions') {
|
|
|
315
315
|
return v_error === undefined ? null : v_error;
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
function validate$
|
|
318
|
+
function validate$A(obj, path = 'RelativeDateFilterOptions') {
|
|
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 + '")');
|
|
@@ -324,7 +324,7 @@ function validate$z(obj, path = 'RelativeDateFilterOptions') {
|
|
|
324
324
|
return v_error === undefined ? null : v_error;
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
-
function validate$
|
|
327
|
+
function validate$z(obj, path = 'Filter') {
|
|
328
328
|
const v_error = (() => {
|
|
329
329
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
330
330
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -332,7 +332,7 @@ function validate$y(obj, path = 'Filter') {
|
|
|
332
332
|
if (obj.categoricalFilterOptions !== undefined) {
|
|
333
333
|
const obj_categoricalFilterOptions = obj.categoricalFilterOptions;
|
|
334
334
|
const path_categoricalFilterOptions = path + '.categoricalFilterOptions';
|
|
335
|
-
const referencepath_categoricalFilterOptionsValidationError = validate$
|
|
335
|
+
const referencepath_categoricalFilterOptionsValidationError = validate$D(obj_categoricalFilterOptions, path_categoricalFilterOptions);
|
|
336
336
|
if (referencepath_categoricalFilterOptionsValidationError !== null) {
|
|
337
337
|
let message = 'Object doesn\'t match CategoricalFilterOptions (at "' + path_categoricalFilterOptions + '")\n';
|
|
338
338
|
message += referencepath_categoricalFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -342,7 +342,7 @@ function validate$y(obj, path = 'Filter') {
|
|
|
342
342
|
if (obj.field !== undefined) {
|
|
343
343
|
const obj_field = obj.field;
|
|
344
344
|
const path_field = path + '.field';
|
|
345
|
-
const referencepath_fieldValidationError = validate$
|
|
345
|
+
const referencepath_fieldValidationError = validate$C(obj_field, path_field);
|
|
346
346
|
if (referencepath_fieldValidationError !== null) {
|
|
347
347
|
let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
|
|
348
348
|
message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -352,7 +352,7 @@ function validate$y(obj, path = 'Filter') {
|
|
|
352
352
|
if (obj.fieldId !== undefined) {
|
|
353
353
|
const obj_fieldId = obj.fieldId;
|
|
354
354
|
const path_fieldId = path + '.fieldId';
|
|
355
|
-
const referencepath_fieldIdValidationError = validate$
|
|
355
|
+
const referencepath_fieldIdValidationError = validate$C(obj_fieldId, path_fieldId);
|
|
356
356
|
if (referencepath_fieldIdValidationError !== null) {
|
|
357
357
|
let message = 'Object doesn\'t match FieldId (at "' + path_fieldId + '")\n';
|
|
358
358
|
message += referencepath_fieldIdValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -362,7 +362,7 @@ function validate$y(obj, path = 'Filter') {
|
|
|
362
362
|
if (obj.rangeFilterOptions !== undefined) {
|
|
363
363
|
const obj_rangeFilterOptions = obj.rangeFilterOptions;
|
|
364
364
|
const path_rangeFilterOptions = path + '.rangeFilterOptions';
|
|
365
|
-
const referencepath_rangeFilterOptionsValidationError = validate$
|
|
365
|
+
const referencepath_rangeFilterOptionsValidationError = validate$B(obj_rangeFilterOptions, path_rangeFilterOptions);
|
|
366
366
|
if (referencepath_rangeFilterOptionsValidationError !== null) {
|
|
367
367
|
let message = 'Object doesn\'t match RangeFilterOptions (at "' + path_rangeFilterOptions + '")\n';
|
|
368
368
|
message += referencepath_rangeFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -372,7 +372,7 @@ function validate$y(obj, path = 'Filter') {
|
|
|
372
372
|
if (obj.relativeDateFilterOptions !== undefined) {
|
|
373
373
|
const obj_relativeDateFilterOptions = obj.relativeDateFilterOptions;
|
|
374
374
|
const path_relativeDateFilterOptions = path + '.relativeDateFilterOptions';
|
|
375
|
-
const referencepath_relativeDateFilterOptionsValidationError = validate$
|
|
375
|
+
const referencepath_relativeDateFilterOptionsValidationError = validate$A(obj_relativeDateFilterOptions, path_relativeDateFilterOptions);
|
|
376
376
|
if (referencepath_relativeDateFilterOptionsValidationError !== null) {
|
|
377
377
|
let message = 'Object doesn\'t match RelativeDateFilterOptions (at "' + path_relativeDateFilterOptions + '")\n';
|
|
378
378
|
message += referencepath_relativeDateFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -390,7 +390,7 @@ function validate$y(obj, path = 'Filter') {
|
|
|
390
390
|
return v_error === undefined ? null : v_error;
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
function validate$
|
|
393
|
+
function validate$y(obj, path = 'RelativePeriod') {
|
|
394
394
|
const v_error = (() => {
|
|
395
395
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
396
396
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -413,7 +413,7 @@ function validate$x(obj, path = 'RelativePeriod') {
|
|
|
413
413
|
return v_error === undefined ? null : v_error;
|
|
414
414
|
}
|
|
415
415
|
|
|
416
|
-
function validate$
|
|
416
|
+
function validate$x(obj, path = 'MeasurementPeriod') {
|
|
417
417
|
const v_error = (() => {
|
|
418
418
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
419
419
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -421,7 +421,7 @@ function validate$w(obj, path = 'MeasurementPeriod') {
|
|
|
421
421
|
if (obj.filter !== undefined) {
|
|
422
422
|
const obj_filter = obj.filter;
|
|
423
423
|
const path_filter = path + '.filter';
|
|
424
|
-
const referencepath_filterValidationError = validate$
|
|
424
|
+
const referencepath_filterValidationError = validate$z(obj_filter, path_filter);
|
|
425
425
|
if (referencepath_filterValidationError !== null) {
|
|
426
426
|
let message = 'Object doesn\'t match Filter (at "' + path_filter + '")\n';
|
|
427
427
|
message += referencepath_filterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -431,7 +431,7 @@ function validate$w(obj, path = 'MeasurementPeriod') {
|
|
|
431
431
|
if (obj.relativePeriod !== undefined) {
|
|
432
432
|
const obj_relativePeriod = obj.relativePeriod;
|
|
433
433
|
const path_relativePeriod = path + '.relativePeriod';
|
|
434
|
-
const referencepath_relativePeriodValidationError = validate$
|
|
434
|
+
const referencepath_relativePeriodValidationError = validate$y(obj_relativePeriod, path_relativePeriod);
|
|
435
435
|
if (referencepath_relativePeriodValidationError !== null) {
|
|
436
436
|
let message = 'Object doesn\'t match RelativePeriod (at "' + path_relativePeriod + '")\n';
|
|
437
437
|
message += referencepath_relativePeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -442,7 +442,7 @@ function validate$w(obj, path = 'MeasurementPeriod') {
|
|
|
442
442
|
return v_error === undefined ? null : v_error;
|
|
443
443
|
}
|
|
444
444
|
|
|
445
|
-
function validate$
|
|
445
|
+
function validate$w(obj, path = 'SemanticFilter') {
|
|
446
446
|
const v_error = (() => {
|
|
447
447
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
448
448
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -468,7 +468,7 @@ function validate$v(obj, path = 'SemanticFilter') {
|
|
|
468
468
|
return v_error === undefined ? null : v_error;
|
|
469
469
|
}
|
|
470
470
|
|
|
471
|
-
function validate$
|
|
471
|
+
function validate$v(obj, path = 'FlattenFilter') {
|
|
472
472
|
const v_error = (() => {
|
|
473
473
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
474
474
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -489,7 +489,7 @@ function validate$u(obj, path = 'FlattenFilter') {
|
|
|
489
489
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
490
490
|
const obj_filters_item = obj_filters[i];
|
|
491
491
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
492
|
-
const referencepath_filters_itemValidationError = validate$
|
|
492
|
+
const referencepath_filters_itemValidationError = validate$w(obj_filters_item, path_filters_item);
|
|
493
493
|
if (referencepath_filters_itemValidationError !== null) {
|
|
494
494
|
let message = 'Object doesn\'t match SemanticFilter (at "' + path_filters_item + '")\n';
|
|
495
495
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -501,7 +501,7 @@ function validate$u(obj, path = 'FlattenFilter') {
|
|
|
501
501
|
return v_error === undefined ? null : v_error;
|
|
502
502
|
}
|
|
503
503
|
|
|
504
|
-
function validate$
|
|
504
|
+
function validate$u(obj, path = 'MetricInstance') {
|
|
505
505
|
const v_error = (() => {
|
|
506
506
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
507
507
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -515,7 +515,7 @@ function validate$t(obj, path = 'MetricInstance') {
|
|
|
515
515
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
516
516
|
const obj_filters_item = obj_filters[i];
|
|
517
517
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
518
|
-
const referencepath_filters_itemValidationError = validate$
|
|
518
|
+
const referencepath_filters_itemValidationError = validate$z(obj_filters_item, path_filters_item);
|
|
519
519
|
if (referencepath_filters_itemValidationError !== null) {
|
|
520
520
|
let message = 'Object doesn\'t match Filter (at "' + path_filters_item + '")\n';
|
|
521
521
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -525,7 +525,7 @@ function validate$t(obj, path = 'MetricInstance') {
|
|
|
525
525
|
}
|
|
526
526
|
const obj_measurementPeriod = obj.measurementPeriod;
|
|
527
527
|
const path_measurementPeriod = path + '.measurementPeriod';
|
|
528
|
-
const referencepath_measurementPeriodValidationError = validate$
|
|
528
|
+
const referencepath_measurementPeriodValidationError = validate$x(obj_measurementPeriod, path_measurementPeriod);
|
|
529
529
|
if (referencepath_measurementPeriodValidationError !== null) {
|
|
530
530
|
let message = 'Object doesn\'t match MeasurementPeriod (at "' + path_measurementPeriod + '")\n';
|
|
531
531
|
message += referencepath_measurementPeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -534,7 +534,7 @@ function validate$t(obj, path = 'MetricInstance') {
|
|
|
534
534
|
if (obj.semanticFilter !== undefined) {
|
|
535
535
|
const obj_semanticFilter = obj.semanticFilter;
|
|
536
536
|
const path_semanticFilter = path + '.semanticFilter';
|
|
537
|
-
const referencepath_semanticFilterValidationError = validate$
|
|
537
|
+
const referencepath_semanticFilterValidationError = validate$v(obj_semanticFilter, path_semanticFilter);
|
|
538
538
|
if (referencepath_semanticFilterValidationError !== null) {
|
|
539
539
|
let message = 'Object doesn\'t match FlattenFilter (at "' + path_semanticFilter + '")\n';
|
|
540
540
|
message += referencepath_semanticFilterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -545,7 +545,7 @@ function validate$t(obj, path = 'MetricInstance') {
|
|
|
545
545
|
return v_error === undefined ? null : v_error;
|
|
546
546
|
}
|
|
547
547
|
|
|
548
|
-
function validate$
|
|
548
|
+
function validate$t(obj, path = 'CompareConfig') {
|
|
549
549
|
const v_error = (() => {
|
|
550
550
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
551
551
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -561,7 +561,7 @@ function validate$s(obj, path = 'CompareConfig') {
|
|
|
561
561
|
return v_error === undefined ? null : v_error;
|
|
562
562
|
}
|
|
563
563
|
|
|
564
|
-
function validate$
|
|
564
|
+
function validate$s(obj, path = 'Measure') {
|
|
565
565
|
const v_error = (() => {
|
|
566
566
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
567
567
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -575,7 +575,7 @@ function validate$r(obj, path = 'Measure') {
|
|
|
575
575
|
}
|
|
576
576
|
const obj_field = obj.field;
|
|
577
577
|
const path_field = path + '.field';
|
|
578
|
-
const referencepath_fieldValidationError = validate$
|
|
578
|
+
const referencepath_fieldValidationError = validate$C(obj_field, path_field);
|
|
579
579
|
if (referencepath_fieldValidationError !== null) {
|
|
580
580
|
let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
|
|
581
581
|
message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -585,7 +585,7 @@ function validate$r(obj, path = 'Measure') {
|
|
|
585
585
|
return v_error === undefined ? null : v_error;
|
|
586
586
|
}
|
|
587
587
|
|
|
588
|
-
function validate$
|
|
588
|
+
function validate$r(obj, path = 'SemanticDataModel') {
|
|
589
589
|
const v_error = (() => {
|
|
590
590
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
591
591
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -601,14 +601,14 @@ function validate$q(obj, path = 'SemanticDataModel') {
|
|
|
601
601
|
return v_error === undefined ? null : v_error;
|
|
602
602
|
}
|
|
603
603
|
|
|
604
|
-
function validate$
|
|
604
|
+
function validate$q(obj, path = 'TimeDimension') {
|
|
605
605
|
const v_error = (() => {
|
|
606
606
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
607
607
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
608
608
|
}
|
|
609
609
|
const obj_field = obj.field;
|
|
610
610
|
const path_field = path + '.field';
|
|
611
|
-
const referencepath_fieldValidationError = validate$
|
|
611
|
+
const referencepath_fieldValidationError = validate$C(obj_field, path_field);
|
|
612
612
|
if (referencepath_fieldValidationError !== null) {
|
|
613
613
|
let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
|
|
614
614
|
message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -618,14 +618,14 @@ function validate$p(obj, path = 'TimeDimension') {
|
|
|
618
618
|
return v_error === undefined ? null : v_error;
|
|
619
619
|
}
|
|
620
620
|
|
|
621
|
-
function validate$
|
|
621
|
+
function validate$p(obj, path = 'MetricDefinition') {
|
|
622
622
|
const v_error = (() => {
|
|
623
623
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
624
624
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
625
625
|
}
|
|
626
626
|
const obj_comparison = obj.comparison;
|
|
627
627
|
const path_comparison = path + '.comparison';
|
|
628
|
-
const referencepath_comparisonValidationError = validate$
|
|
628
|
+
const referencepath_comparisonValidationError = validate$t(obj_comparison, path_comparison);
|
|
629
629
|
if (referencepath_comparisonValidationError !== null) {
|
|
630
630
|
let message = 'Object doesn\'t match CompareConfig (at "' + path_comparison + '")\n';
|
|
631
631
|
message += referencepath_comparisonValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -640,7 +640,7 @@ function validate$o(obj, path = 'MetricDefinition') {
|
|
|
640
640
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
641
641
|
const obj_filters_item = obj_filters[i];
|
|
642
642
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
643
|
-
const referencepath_filters_itemValidationError = validate$
|
|
643
|
+
const referencepath_filters_itemValidationError = validate$z(obj_filters_item, path_filters_item);
|
|
644
644
|
if (referencepath_filters_itemValidationError !== null) {
|
|
645
645
|
let message = 'Object doesn\'t match Filter (at "' + path_filters_item + '")\n';
|
|
646
646
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -650,7 +650,7 @@ function validate$o(obj, path = 'MetricDefinition') {
|
|
|
650
650
|
}
|
|
651
651
|
const obj_measure = obj.measure;
|
|
652
652
|
const path_measure = path + '.measure';
|
|
653
|
-
const referencepath_measureValidationError = validate$
|
|
653
|
+
const referencepath_measureValidationError = validate$s(obj_measure, path_measure);
|
|
654
654
|
if (referencepath_measureValidationError !== null) {
|
|
655
655
|
let message = 'Object doesn\'t match Measure (at "' + path_measure + '")\n';
|
|
656
656
|
message += referencepath_measureValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -665,7 +665,7 @@ function validate$o(obj, path = 'MetricDefinition') {
|
|
|
665
665
|
}
|
|
666
666
|
const obj_semanticDataModel = obj.semanticDataModel;
|
|
667
667
|
const path_semanticDataModel = path + '.semanticDataModel';
|
|
668
|
-
const referencepath_semanticDataModelValidationError = validate$
|
|
668
|
+
const referencepath_semanticDataModelValidationError = validate$r(obj_semanticDataModel, path_semanticDataModel);
|
|
669
669
|
if (referencepath_semanticDataModelValidationError !== null) {
|
|
670
670
|
let message = 'Object doesn\'t match SemanticDataModel (at "' + path_semanticDataModel + '")\n';
|
|
671
671
|
message += referencepath_semanticDataModelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -674,7 +674,7 @@ function validate$o(obj, path = 'MetricDefinition') {
|
|
|
674
674
|
if (obj.semanticFilter !== undefined) {
|
|
675
675
|
const obj_semanticFilter = obj.semanticFilter;
|
|
676
676
|
const path_semanticFilter = path + '.semanticFilter';
|
|
677
|
-
const referencepath_semanticFilterValidationError = validate$
|
|
677
|
+
const referencepath_semanticFilterValidationError = validate$v(obj_semanticFilter, path_semanticFilter);
|
|
678
678
|
if (referencepath_semanticFilterValidationError !== null) {
|
|
679
679
|
let message = 'Object doesn\'t match FlattenFilter (at "' + path_semanticFilter + '")\n';
|
|
680
680
|
message += referencepath_semanticFilterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -683,7 +683,7 @@ function validate$o(obj, path = 'MetricDefinition') {
|
|
|
683
683
|
}
|
|
684
684
|
const obj_timeDimension = obj.timeDimension;
|
|
685
685
|
const path_timeDimension = path + '.timeDimension';
|
|
686
|
-
const referencepath_timeDimensionValidationError = validate$
|
|
686
|
+
const referencepath_timeDimensionValidationError = validate$q(obj_timeDimension, path_timeDimension);
|
|
687
687
|
if (referencepath_timeDimensionValidationError !== null) {
|
|
688
688
|
let message = 'Object doesn\'t match TimeDimension (at "' + path_timeDimension + '")\n';
|
|
689
689
|
message += referencepath_timeDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -693,7 +693,7 @@ function validate$o(obj, path = 'MetricDefinition') {
|
|
|
693
693
|
return v_error === undefined ? null : v_error;
|
|
694
694
|
}
|
|
695
695
|
|
|
696
|
-
function validate$
|
|
696
|
+
function validate$o(obj, path = 'RepresentationOptions_NumberUnits') {
|
|
697
697
|
const v_error = (() => {
|
|
698
698
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
699
699
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -716,14 +716,14 @@ function validate$n(obj, path = 'RepresentationOptions_NumberUnits') {
|
|
|
716
716
|
return v_error === undefined ? null : v_error;
|
|
717
717
|
}
|
|
718
718
|
|
|
719
|
-
function validate$
|
|
719
|
+
function validate$n(obj, path = 'RepresentationOptions') {
|
|
720
720
|
const v_error = (() => {
|
|
721
721
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
722
722
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
723
723
|
}
|
|
724
724
|
const obj_numberUnits = obj.numberUnits;
|
|
725
725
|
const path_numberUnits = path + '.numberUnits';
|
|
726
|
-
const referencepath_numberUnitsValidationError = validate$
|
|
726
|
+
const referencepath_numberUnitsValidationError = validate$o(obj_numberUnits, path_numberUnits);
|
|
727
727
|
if (referencepath_numberUnitsValidationError !== null) {
|
|
728
728
|
let message = 'Object doesn\'t match RepresentationOptions_NumberUnits (at "' + path_numberUnits + '")\n';
|
|
729
729
|
message += referencepath_numberUnitsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -747,14 +747,14 @@ function validate$m(obj, path = 'RepresentationOptions') {
|
|
|
747
747
|
return v_error === undefined ? null : v_error;
|
|
748
748
|
}
|
|
749
749
|
|
|
750
|
-
function validate$
|
|
750
|
+
function validate$m(obj, path = 'InputMetric') {
|
|
751
751
|
const v_error = (() => {
|
|
752
752
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
753
753
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
754
754
|
}
|
|
755
755
|
const obj_extensionOptions = obj.extensionOptions;
|
|
756
756
|
const path_extensionOptions = path + '.extensionOptions';
|
|
757
|
-
const referencepath_extensionOptionsValidationError = validate$
|
|
757
|
+
const referencepath_extensionOptionsValidationError = validate$G(obj_extensionOptions, path_extensionOptions);
|
|
758
758
|
if (referencepath_extensionOptionsValidationError !== null) {
|
|
759
759
|
let message = 'Object doesn\'t match ExtensionOptions (at "' + path_extensionOptions + '")\n';
|
|
760
760
|
message += referencepath_extensionOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -762,7 +762,7 @@ function validate$l(obj, path = 'InputMetric') {
|
|
|
762
762
|
}
|
|
763
763
|
const obj_insightsOptions = obj.insightsOptions;
|
|
764
764
|
const path_insightsOptions = path + '.insightsOptions';
|
|
765
|
-
const referencepath_insightsOptionsValidationError = validate$
|
|
765
|
+
const referencepath_insightsOptionsValidationError = validate$E(obj_insightsOptions, path_insightsOptions);
|
|
766
766
|
if (referencepath_insightsOptionsValidationError !== null) {
|
|
767
767
|
let message = 'Object doesn\'t match InsightsOptions (at "' + path_insightsOptions + '")\n';
|
|
768
768
|
message += referencepath_insightsOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -770,7 +770,7 @@ function validate$l(obj, path = 'InputMetric') {
|
|
|
770
770
|
}
|
|
771
771
|
const obj_instance = obj.instance;
|
|
772
772
|
const path_instance = path + '.instance';
|
|
773
|
-
const referencepath_instanceValidationError = validate$
|
|
773
|
+
const referencepath_instanceValidationError = validate$u(obj_instance, path_instance);
|
|
774
774
|
if (referencepath_instanceValidationError !== null) {
|
|
775
775
|
let message = 'Object doesn\'t match MetricInstance (at "' + path_instance + '")\n';
|
|
776
776
|
message += referencepath_instanceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -778,7 +778,7 @@ function validate$l(obj, path = 'InputMetric') {
|
|
|
778
778
|
}
|
|
779
779
|
const obj_metric = obj.metric;
|
|
780
780
|
const path_metric = path + '.metric';
|
|
781
|
-
const referencepath_metricValidationError = validate$
|
|
781
|
+
const referencepath_metricValidationError = validate$p(obj_metric, path_metric);
|
|
782
782
|
if (referencepath_metricValidationError !== null) {
|
|
783
783
|
let message = 'Object doesn\'t match MetricDefinition (at "' + path_metric + '")\n';
|
|
784
784
|
message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -786,7 +786,7 @@ function validate$l(obj, path = 'InputMetric') {
|
|
|
786
786
|
}
|
|
787
787
|
const obj_representationOptions = obj.representationOptions;
|
|
788
788
|
const path_representationOptions = path + '.representationOptions';
|
|
789
|
-
const referencepath_representationOptionsValidationError = validate$
|
|
789
|
+
const referencepath_representationOptionsValidationError = validate$n(obj_representationOptions, path_representationOptions);
|
|
790
790
|
if (referencepath_representationOptionsValidationError !== null) {
|
|
791
791
|
let message = 'Object doesn\'t match RepresentationOptions (at "' + path_representationOptions + '")\n';
|
|
792
792
|
message += referencepath_representationOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -796,14 +796,14 @@ function validate$l(obj, path = 'InputMetric') {
|
|
|
796
796
|
return v_error === undefined ? null : v_error;
|
|
797
797
|
}
|
|
798
798
|
|
|
799
|
-
function validate$
|
|
799
|
+
function validate$l(obj, path = 'InsightBundleInput') {
|
|
800
800
|
const v_error = (() => {
|
|
801
801
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
802
802
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
803
803
|
}
|
|
804
804
|
const obj_metadata = obj.metadata;
|
|
805
805
|
const path_metadata = path + '.metadata';
|
|
806
|
-
const referencepath_metadataValidationError = validate$
|
|
806
|
+
const referencepath_metadataValidationError = validate$H(obj_metadata, path_metadata);
|
|
807
807
|
if (referencepath_metadataValidationError !== null) {
|
|
808
808
|
let message = 'Object doesn\'t match MetricMetadata (at "' + path_metadata + '")\n';
|
|
809
809
|
message += referencepath_metadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -811,7 +811,7 @@ function validate$k(obj, path = 'InsightBundleInput') {
|
|
|
811
811
|
}
|
|
812
812
|
const obj_metric = obj.metric;
|
|
813
813
|
const path_metric = path + '.metric';
|
|
814
|
-
const referencepath_metricValidationError = validate$
|
|
814
|
+
const referencepath_metricValidationError = validate$m(obj_metric, path_metric);
|
|
815
815
|
if (referencepath_metricValidationError !== null) {
|
|
816
816
|
let message = 'Object doesn\'t match InputMetric (at "' + path_metric + '")\n';
|
|
817
817
|
message += referencepath_metricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -821,7 +821,7 @@ function validate$k(obj, path = 'InsightBundleInput') {
|
|
|
821
821
|
return v_error === undefined ? null : v_error;
|
|
822
822
|
}
|
|
823
823
|
|
|
824
|
-
function validate$
|
|
824
|
+
function validate$k(obj, path = 'MetricInstanceInput') {
|
|
825
825
|
const v_error = (() => {
|
|
826
826
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
827
827
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -840,7 +840,7 @@ function validate$j(obj, path = 'MetricInstanceInput') {
|
|
|
840
840
|
return v_error === undefined ? null : v_error;
|
|
841
841
|
}
|
|
842
842
|
|
|
843
|
-
function validate$
|
|
843
|
+
function validate$j(obj, path = 'BatchInput') {
|
|
844
844
|
const v_error = (() => {
|
|
845
845
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
846
846
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -848,7 +848,7 @@ function validate$i(obj, path = 'BatchInput') {
|
|
|
848
848
|
if (obj.bundleInput !== undefined) {
|
|
849
849
|
const obj_bundleInput = obj.bundleInput;
|
|
850
850
|
const path_bundleInput = path + '.bundleInput';
|
|
851
|
-
const referencepath_bundleInputValidationError = validate$
|
|
851
|
+
const referencepath_bundleInputValidationError = validate$l(obj_bundleInput, path_bundleInput);
|
|
852
852
|
if (referencepath_bundleInputValidationError !== null) {
|
|
853
853
|
let message = 'Object doesn\'t match InsightBundleInput (at "' + path_bundleInput + '")\n';
|
|
854
854
|
message += referencepath_bundleInputValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -858,7 +858,7 @@ function validate$i(obj, path = 'BatchInput') {
|
|
|
858
858
|
if (obj.metricInstanceInput !== undefined) {
|
|
859
859
|
const obj_metricInstanceInput = obj.metricInstanceInput;
|
|
860
860
|
const path_metricInstanceInput = path + '.metricInstanceInput';
|
|
861
|
-
const referencepath_metricInstanceInputValidationError = validate$
|
|
861
|
+
const referencepath_metricInstanceInputValidationError = validate$k(obj_metricInstanceInput, path_metricInstanceInput);
|
|
862
862
|
if (referencepath_metricInstanceInputValidationError !== null) {
|
|
863
863
|
let message = 'Object doesn\'t match MetricInstanceInput (at "' + path_metricInstanceInput + '")\n';
|
|
864
864
|
message += referencepath_metricInstanceInputValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -869,7 +869,7 @@ function validate$i(obj, path = 'BatchInput') {
|
|
|
869
869
|
return v_error === undefined ? null : v_error;
|
|
870
870
|
}
|
|
871
871
|
|
|
872
|
-
function validate$
|
|
872
|
+
function validate$i(obj, path = 'InsightBundleOptions') {
|
|
873
873
|
const v_error = (() => {
|
|
874
874
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
875
875
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -899,7 +899,7 @@ function validate$h(obj, path = 'InsightBundleOptions') {
|
|
|
899
899
|
return v_error === undefined ? null : v_error;
|
|
900
900
|
}
|
|
901
901
|
|
|
902
|
-
function validate$
|
|
902
|
+
function validate$h(obj, path = 'SummarizationOptions') {
|
|
903
903
|
const v_error = (() => {
|
|
904
904
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
905
905
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -915,7 +915,7 @@ function validate$g(obj, path = 'SummarizationOptions') {
|
|
|
915
915
|
return v_error === undefined ? null : v_error;
|
|
916
916
|
}
|
|
917
917
|
|
|
918
|
-
function validate$
|
|
918
|
+
function validate$g(obj, path = 'BatchOptions') {
|
|
919
919
|
const v_error = (() => {
|
|
920
920
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
921
921
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -923,7 +923,7 @@ function validate$f(obj, path = 'BatchOptions') {
|
|
|
923
923
|
if (obj.bundle !== undefined) {
|
|
924
924
|
const obj_bundle = obj.bundle;
|
|
925
925
|
const path_bundle = path + '.bundle';
|
|
926
|
-
const referencepath_bundleValidationError = validate$
|
|
926
|
+
const referencepath_bundleValidationError = validate$i(obj_bundle, path_bundle);
|
|
927
927
|
if (referencepath_bundleValidationError !== null) {
|
|
928
928
|
let message = 'Object doesn\'t match InsightBundleOptions (at "' + path_bundle + '")\n';
|
|
929
929
|
message += referencepath_bundleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -940,7 +940,7 @@ function validate$f(obj, path = 'BatchOptions') {
|
|
|
940
940
|
if (obj.summarization !== undefined) {
|
|
941
941
|
const obj_summarization = obj.summarization;
|
|
942
942
|
const path_summarization = path + '.summarization';
|
|
943
|
-
const referencepath_summarizationValidationError = validate$
|
|
943
|
+
const referencepath_summarizationValidationError = validate$h(obj_summarization, path_summarization);
|
|
944
944
|
if (referencepath_summarizationValidationError !== null) {
|
|
945
945
|
let message = 'Object doesn\'t match SummarizationOptions (at "' + path_summarization + '")\n';
|
|
946
946
|
message += referencepath_summarizationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -951,8 +951,8 @@ function validate$f(obj, path = 'BatchOptions') {
|
|
|
951
951
|
return v_error === undefined ? null : v_error;
|
|
952
952
|
}
|
|
953
953
|
|
|
954
|
-
const VERSION$
|
|
955
|
-
function validate$
|
|
954
|
+
const VERSION$f = "07a8c889542dbad6f958515513d4e3fb";
|
|
955
|
+
function validate$f(obj, path = 'Error') {
|
|
956
956
|
const v_error = (() => {
|
|
957
957
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
958
958
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -974,10 +974,10 @@ function validate$e(obj, path = 'Error') {
|
|
|
974
974
|
})();
|
|
975
975
|
return v_error === undefined ? null : v_error;
|
|
976
976
|
}
|
|
977
|
-
const select$
|
|
977
|
+
const select$k = function ErrorSelect() {
|
|
978
978
|
return {
|
|
979
979
|
kind: 'Fragment',
|
|
980
|
-
version: VERSION$
|
|
980
|
+
version: VERSION$f,
|
|
981
981
|
private: [],
|
|
982
982
|
selections: [
|
|
983
983
|
{
|
|
@@ -993,7 +993,7 @@ const select$j = function ErrorSelect() {
|
|
|
993
993
|
]
|
|
994
994
|
};
|
|
995
995
|
};
|
|
996
|
-
function equals$
|
|
996
|
+
function equals$f(existing, incoming) {
|
|
997
997
|
const existing_code = existing.code;
|
|
998
998
|
const incoming_code = incoming.code;
|
|
999
999
|
// if at least one of these optionals is defined
|
|
@@ -1023,16 +1023,18 @@ function equals$e(existing, incoming) {
|
|
|
1023
1023
|
return true;
|
|
1024
1024
|
}
|
|
1025
1025
|
|
|
1026
|
-
const VERSION$
|
|
1027
|
-
function validate$
|
|
1026
|
+
const VERSION$e = "6e24eb6767cb7eb05e4ae19fffe299b1";
|
|
1027
|
+
function validate$e(obj, path = 'Summary') {
|
|
1028
1028
|
const v_error = (() => {
|
|
1029
1029
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1030
1030
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1031
1031
|
}
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1032
|
+
if (obj.generationId !== undefined) {
|
|
1033
|
+
const obj_generationId = obj.generationId;
|
|
1034
|
+
const path_generationId = path + '.generationId';
|
|
1035
|
+
if (typeof obj_generationId !== 'string') {
|
|
1036
|
+
return new TypeError('Expected "string" but received "' + typeof obj_generationId + '" (at "' + path_generationId + '")');
|
|
1037
|
+
}
|
|
1036
1038
|
}
|
|
1037
1039
|
const obj_markup = obj.markup;
|
|
1038
1040
|
const path_markup = path + '.markup';
|
|
@@ -1052,15 +1054,16 @@ function validate$d(obj, path = 'Summary') {
|
|
|
1052
1054
|
})();
|
|
1053
1055
|
return v_error === undefined ? null : v_error;
|
|
1054
1056
|
}
|
|
1055
|
-
const select$
|
|
1057
|
+
const select$j = function SummarySelect() {
|
|
1056
1058
|
return {
|
|
1057
1059
|
kind: 'Fragment',
|
|
1058
|
-
version: VERSION$
|
|
1060
|
+
version: VERSION$e,
|
|
1059
1061
|
private: [],
|
|
1060
1062
|
selections: [
|
|
1061
1063
|
{
|
|
1062
1064
|
name: 'generationId',
|
|
1063
|
-
kind: 'Scalar'
|
|
1065
|
+
kind: 'Scalar',
|
|
1066
|
+
required: false
|
|
1064
1067
|
},
|
|
1065
1068
|
{
|
|
1066
1069
|
name: 'markup',
|
|
@@ -1077,11 +1080,19 @@ const select$i = function SummarySelect() {
|
|
|
1077
1080
|
]
|
|
1078
1081
|
};
|
|
1079
1082
|
};
|
|
1080
|
-
function equals$
|
|
1083
|
+
function equals$e(existing, incoming) {
|
|
1081
1084
|
const existing_generationId = existing.generationId;
|
|
1082
1085
|
const incoming_generationId = incoming.generationId;
|
|
1083
|
-
if
|
|
1084
|
-
|
|
1086
|
+
// if at least one of these optionals is defined
|
|
1087
|
+
if (existing_generationId !== undefined || incoming_generationId !== undefined) {
|
|
1088
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1089
|
+
// not equal
|
|
1090
|
+
if (existing_generationId === undefined || incoming_generationId === undefined) {
|
|
1091
|
+
return false;
|
|
1092
|
+
}
|
|
1093
|
+
if (!(existing_generationId === incoming_generationId)) {
|
|
1094
|
+
return false;
|
|
1095
|
+
}
|
|
1085
1096
|
}
|
|
1086
1097
|
const existing_markup = existing.markup;
|
|
1087
1098
|
const incoming_markup = incoming.markup;
|
|
@@ -1101,8 +1112,8 @@ function equals$d(existing, incoming) {
|
|
|
1101
1112
|
return true;
|
|
1102
1113
|
}
|
|
1103
1114
|
|
|
1104
|
-
const VERSION$
|
|
1105
|
-
function validate$
|
|
1115
|
+
const VERSION$d = "fc433e1c68019470090193fa4fdf976f";
|
|
1116
|
+
function validate$d(obj, path = 'SummaryResponse') {
|
|
1106
1117
|
const v_error = (() => {
|
|
1107
1118
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1108
1119
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1110,7 +1121,7 @@ function validate$c(obj, path = 'SummaryResponse') {
|
|
|
1110
1121
|
if (obj.error !== undefined) {
|
|
1111
1122
|
const obj_error = obj.error;
|
|
1112
1123
|
const path_error = path + '.error';
|
|
1113
|
-
const referencepath_errorValidationError = validate$
|
|
1124
|
+
const referencepath_errorValidationError = validate$f(obj_error, path_error);
|
|
1114
1125
|
if (referencepath_errorValidationError !== null) {
|
|
1115
1126
|
let message = 'Object doesn\'t match Error (at "' + path_error + '")\n';
|
|
1116
1127
|
message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1119,7 +1130,7 @@ function validate$c(obj, path = 'SummaryResponse') {
|
|
|
1119
1130
|
}
|
|
1120
1131
|
const obj_result = obj.result;
|
|
1121
1132
|
const path_result = path + '.result';
|
|
1122
|
-
const referencepath_resultValidationError = validate$
|
|
1133
|
+
const referencepath_resultValidationError = validate$e(obj_result, path_result);
|
|
1123
1134
|
if (referencepath_resultValidationError !== null) {
|
|
1124
1135
|
let message = 'Object doesn\'t match Summary (at "' + path_result + '")\n';
|
|
1125
1136
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1128,12 +1139,12 @@ function validate$c(obj, path = 'SummaryResponse') {
|
|
|
1128
1139
|
})();
|
|
1129
1140
|
return v_error === undefined ? null : v_error;
|
|
1130
1141
|
}
|
|
1131
|
-
const select$
|
|
1132
|
-
const { selections: Error__selections, opaque: Error__opaque, } = select$
|
|
1133
|
-
const { selections: Summary__selections, opaque: Summary__opaque, } = select$
|
|
1142
|
+
const select$i = function SummaryResponseSelect() {
|
|
1143
|
+
const { selections: Error__selections, opaque: Error__opaque, } = select$k();
|
|
1144
|
+
const { selections: Summary__selections, opaque: Summary__opaque, } = select$j();
|
|
1134
1145
|
return {
|
|
1135
1146
|
kind: 'Fragment',
|
|
1136
|
-
version: VERSION$
|
|
1147
|
+
version: VERSION$d,
|
|
1137
1148
|
private: [],
|
|
1138
1149
|
selections: [
|
|
1139
1150
|
{
|
|
@@ -1150,7 +1161,7 @@ const select$h = function SummaryResponseSelect() {
|
|
|
1150
1161
|
]
|
|
1151
1162
|
};
|
|
1152
1163
|
};
|
|
1153
|
-
function equals$
|
|
1164
|
+
function equals$d(existing, incoming) {
|
|
1154
1165
|
const existing_error = existing.error;
|
|
1155
1166
|
const incoming_error = incoming.error;
|
|
1156
1167
|
// if at least one of these optionals is defined
|
|
@@ -1160,20 +1171,20 @@ function equals$c(existing, incoming) {
|
|
|
1160
1171
|
if (existing_error === undefined || incoming_error === undefined) {
|
|
1161
1172
|
return false;
|
|
1162
1173
|
}
|
|
1163
|
-
if (!(equals$
|
|
1174
|
+
if (!(equals$f(existing_error, incoming_error))) {
|
|
1164
1175
|
return false;
|
|
1165
1176
|
}
|
|
1166
1177
|
}
|
|
1167
1178
|
const existing_result = existing.result;
|
|
1168
1179
|
const incoming_result = incoming.result;
|
|
1169
|
-
if (!(equals$
|
|
1180
|
+
if (!(equals$e(existing_result, incoming_result))) {
|
|
1170
1181
|
return false;
|
|
1171
1182
|
}
|
|
1172
1183
|
return true;
|
|
1173
1184
|
}
|
|
1174
1185
|
|
|
1175
|
-
const VERSION$
|
|
1176
|
-
function validate$
|
|
1186
|
+
const VERSION$c = "18d65084646c870abf335d268675999e";
|
|
1187
|
+
function validate$c(obj, path = 'GenerateInsightBatchResponse') {
|
|
1177
1188
|
const v_error = (() => {
|
|
1178
1189
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1179
1190
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1193,7 +1204,7 @@ function validate$b(obj, path = 'GenerateInsightBatchResponse') {
|
|
|
1193
1204
|
if (obj.summary !== undefined) {
|
|
1194
1205
|
const obj_summary = obj.summary;
|
|
1195
1206
|
const path_summary = path + '.summary';
|
|
1196
|
-
const referencepath_summaryValidationError = validate$
|
|
1207
|
+
const referencepath_summaryValidationError = validate$d(obj_summary, path_summary);
|
|
1197
1208
|
if (referencepath_summaryValidationError !== null) {
|
|
1198
1209
|
let message = 'Object doesn\'t match SummaryResponse (at "' + path_summary + '")\n';
|
|
1199
1210
|
message += referencepath_summaryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1223,11 +1234,11 @@ function keyBuilderFromType$3(luvio, object) {
|
|
|
1223
1234
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
1224
1235
|
return input;
|
|
1225
1236
|
}
|
|
1226
|
-
const select$
|
|
1227
|
-
const { selections: SummaryResponse__selections, opaque: SummaryResponse__opaque, } = select$
|
|
1237
|
+
const select$h = function GenerateInsightBatchResponseSelect() {
|
|
1238
|
+
const { selections: SummaryResponse__selections, opaque: SummaryResponse__opaque, } = select$i();
|
|
1228
1239
|
return {
|
|
1229
1240
|
kind: 'Fragment',
|
|
1230
|
-
version: VERSION$
|
|
1241
|
+
version: VERSION$c,
|
|
1231
1242
|
private: [],
|
|
1232
1243
|
selections: [
|
|
1233
1244
|
{
|
|
@@ -1253,7 +1264,7 @@ const select$g = function GenerateInsightBatchResponseSelect() {
|
|
|
1253
1264
|
]
|
|
1254
1265
|
};
|
|
1255
1266
|
};
|
|
1256
|
-
function equals$
|
|
1267
|
+
function equals$c(existing, incoming) {
|
|
1257
1268
|
const existing_generatingSummary = existing.generatingSummary;
|
|
1258
1269
|
const incoming_generatingSummary = incoming.generatingSummary;
|
|
1259
1270
|
// if at least one of these optionals is defined
|
|
@@ -1294,7 +1305,7 @@ function equals$b(existing, incoming) {
|
|
|
1294
1305
|
if (existing_summary === undefined || incoming_summary === undefined) {
|
|
1295
1306
|
return false;
|
|
1296
1307
|
}
|
|
1297
|
-
if (!(equals$
|
|
1308
|
+
if (!(equals$d(existing_summary, incoming_summary))) {
|
|
1298
1309
|
return false;
|
|
1299
1310
|
}
|
|
1300
1311
|
}
|
|
@@ -1302,14 +1313,14 @@ function equals$b(existing, incoming) {
|
|
|
1302
1313
|
}
|
|
1303
1314
|
const ingest$3 = function GenerateInsightBatchResponseIngest(input, path, luvio, store, timestamp) {
|
|
1304
1315
|
if (process.env.NODE_ENV !== 'production') {
|
|
1305
|
-
const validateError = validate$
|
|
1316
|
+
const validateError = validate$c(input);
|
|
1306
1317
|
if (validateError !== null) {
|
|
1307
1318
|
throw validateError;
|
|
1308
1319
|
}
|
|
1309
1320
|
}
|
|
1310
1321
|
const key = keyBuilderFromType$3(luvio, input);
|
|
1311
1322
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
|
|
1312
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "analytics-insights", VERSION$
|
|
1323
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "analytics-insights", VERSION$c, RepresentationType$3, equals$c);
|
|
1313
1324
|
return createLink(key);
|
|
1314
1325
|
};
|
|
1315
1326
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1322,8 +1333,8 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1322
1333
|
});
|
|
1323
1334
|
}
|
|
1324
1335
|
|
|
1325
|
-
function select$
|
|
1326
|
-
return select$
|
|
1336
|
+
function select$g(luvio, params) {
|
|
1337
|
+
return select$h();
|
|
1327
1338
|
}
|
|
1328
1339
|
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
1329
1340
|
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
@@ -1334,7 +1345,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
|
|
|
1334
1345
|
luvio.storeIngest(key, ingest$3, body);
|
|
1335
1346
|
const snapshot = luvio.storeLookup({
|
|
1336
1347
|
recordId: key,
|
|
1337
|
-
node: select$
|
|
1348
|
+
node: select$g(),
|
|
1338
1349
|
variables: {},
|
|
1339
1350
|
});
|
|
1340
1351
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1373,7 +1384,7 @@ function typeCheckConfig$4(untrustedConfig) {
|
|
|
1373
1384
|
const untrustedConfig_batchInput_array = [];
|
|
1374
1385
|
for (let i = 0, arrayLength = untrustedConfig_batchInput.length; i < arrayLength; i++) {
|
|
1375
1386
|
const untrustedConfig_batchInput_item = untrustedConfig_batchInput[i];
|
|
1376
|
-
const referenceBatchInputValidationError = validate$
|
|
1387
|
+
const referenceBatchInputValidationError = validate$j(untrustedConfig_batchInput_item);
|
|
1377
1388
|
if (referenceBatchInputValidationError === null) {
|
|
1378
1389
|
untrustedConfig_batchInput_array.push(untrustedConfig_batchInput_item);
|
|
1379
1390
|
}
|
|
@@ -1381,7 +1392,7 @@ function typeCheckConfig$4(untrustedConfig) {
|
|
|
1381
1392
|
config.batchInput = untrustedConfig_batchInput_array;
|
|
1382
1393
|
}
|
|
1383
1394
|
const untrustedConfig_options = untrustedConfig.options;
|
|
1384
|
-
const referenceBatchOptionsValidationError = validate$
|
|
1395
|
+
const referenceBatchOptionsValidationError = validate$g(untrustedConfig_options);
|
|
1385
1396
|
if (referenceBatchOptionsValidationError === null) {
|
|
1386
1397
|
config.options = untrustedConfig_options;
|
|
1387
1398
|
}
|
|
@@ -1429,8 +1440,8 @@ const createInsightsBatchAdapterFactory = (luvio) => {
|
|
|
1429
1440
|
};
|
|
1430
1441
|
};
|
|
1431
1442
|
|
|
1432
|
-
const VERSION$
|
|
1433
|
-
function validate$
|
|
1443
|
+
const VERSION$b = "6b47d2ed35a900956ff58b7d8a527e7f";
|
|
1444
|
+
function validate$b(obj, path = 'InsightFeedbackMetadata') {
|
|
1434
1445
|
const v_error = (() => {
|
|
1435
1446
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1436
1447
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1455,10 +1466,10 @@ function validate$a(obj, path = 'InsightFeedbackMetadata') {
|
|
|
1455
1466
|
})();
|
|
1456
1467
|
return v_error === undefined ? null : v_error;
|
|
1457
1468
|
}
|
|
1458
|
-
const select$
|
|
1469
|
+
const select$f = function InsightFeedbackMetadataSelect() {
|
|
1459
1470
|
return {
|
|
1460
1471
|
kind: 'Fragment',
|
|
1461
|
-
version: VERSION$
|
|
1472
|
+
version: VERSION$b,
|
|
1462
1473
|
private: [],
|
|
1463
1474
|
selections: [
|
|
1464
1475
|
{
|
|
@@ -1479,7 +1490,7 @@ const select$e = function InsightFeedbackMetadataSelect() {
|
|
|
1479
1490
|
]
|
|
1480
1491
|
};
|
|
1481
1492
|
};
|
|
1482
|
-
function equals$
|
|
1493
|
+
function equals$b(existing, incoming) {
|
|
1483
1494
|
const existing_dimensionHash = existing.dimensionHash;
|
|
1484
1495
|
const incoming_dimensionHash = incoming.dimensionHash;
|
|
1485
1496
|
// if at least one of these optionals is defined
|
|
@@ -1522,8 +1533,8 @@ function equals$a(existing, incoming) {
|
|
|
1522
1533
|
return true;
|
|
1523
1534
|
}
|
|
1524
1535
|
|
|
1525
|
-
const VERSION$
|
|
1526
|
-
function validate$
|
|
1536
|
+
const VERSION$a = "be7014b0043386672b06a22807d7e549";
|
|
1537
|
+
function validate$a(obj, path = 'Insight') {
|
|
1527
1538
|
const v_error = (() => {
|
|
1528
1539
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1529
1540
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1551,7 +1562,7 @@ function validate$9(obj, path = 'Insight') {
|
|
|
1551
1562
|
}
|
|
1552
1563
|
const obj_insightFeedbackMetadata = obj.insightFeedbackMetadata;
|
|
1553
1564
|
const path_insightFeedbackMetadata = path + '.insightFeedbackMetadata';
|
|
1554
|
-
const referencepath_insightFeedbackMetadataValidationError = validate$
|
|
1565
|
+
const referencepath_insightFeedbackMetadataValidationError = validate$b(obj_insightFeedbackMetadata, path_insightFeedbackMetadata);
|
|
1555
1566
|
if (referencepath_insightFeedbackMetadataValidationError !== null) {
|
|
1556
1567
|
let message = 'Object doesn\'t match InsightFeedbackMetadata (at "' + path_insightFeedbackMetadata + '")\n';
|
|
1557
1568
|
message += referencepath_insightFeedbackMetadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1598,11 +1609,11 @@ function validate$9(obj, path = 'Insight') {
|
|
|
1598
1609
|
})();
|
|
1599
1610
|
return v_error === undefined ? null : v_error;
|
|
1600
1611
|
}
|
|
1601
|
-
const select$
|
|
1602
|
-
const { selections: InsightFeedbackMetadata__selections, opaque: InsightFeedbackMetadata__opaque, } = select$
|
|
1612
|
+
const select$e = function InsightSelect() {
|
|
1613
|
+
const { selections: InsightFeedbackMetadata__selections, opaque: InsightFeedbackMetadata__opaque, } = select$f();
|
|
1603
1614
|
return {
|
|
1604
1615
|
kind: 'Fragment',
|
|
1605
|
-
version: VERSION$
|
|
1616
|
+
version: VERSION$a,
|
|
1606
1617
|
private: [],
|
|
1607
1618
|
selections: [
|
|
1608
1619
|
{
|
|
@@ -1658,7 +1669,7 @@ const select$d = function InsightSelect() {
|
|
|
1658
1669
|
]
|
|
1659
1670
|
};
|
|
1660
1671
|
};
|
|
1661
|
-
function equals$
|
|
1672
|
+
function equals$a(existing, incoming) {
|
|
1662
1673
|
const existing_version = existing.version;
|
|
1663
1674
|
const incoming_version = incoming.version;
|
|
1664
1675
|
// if at least one of these optionals is defined
|
|
@@ -1765,7 +1776,7 @@ function equals$9(existing, incoming) {
|
|
|
1765
1776
|
}
|
|
1766
1777
|
const existing_insightFeedbackMetadata = existing.insightFeedbackMetadata;
|
|
1767
1778
|
const incoming_insightFeedbackMetadata = incoming.insightFeedbackMetadata;
|
|
1768
|
-
if (!(equals$
|
|
1779
|
+
if (!(equals$b(existing_insightFeedbackMetadata, incoming_insightFeedbackMetadata))) {
|
|
1769
1780
|
return false;
|
|
1770
1781
|
}
|
|
1771
1782
|
const existing_viz = existing.viz;
|
|
@@ -1784,8 +1795,8 @@ function equals$9(existing, incoming) {
|
|
|
1784
1795
|
return true;
|
|
1785
1796
|
}
|
|
1786
1797
|
|
|
1787
|
-
const VERSION$
|
|
1788
|
-
function validate$
|
|
1798
|
+
const VERSION$9 = "09a140bdbc97294bdce2b9555910f209";
|
|
1799
|
+
function validate$9(obj, path = 'InsightResponse') {
|
|
1789
1800
|
const v_error = (() => {
|
|
1790
1801
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1791
1802
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1793,7 +1804,7 @@ function validate$8(obj, path = 'InsightResponse') {
|
|
|
1793
1804
|
if (obj.error !== undefined) {
|
|
1794
1805
|
const obj_error = obj.error;
|
|
1795
1806
|
const path_error = path + '.error';
|
|
1796
|
-
const referencepath_errorValidationError = validate$
|
|
1807
|
+
const referencepath_errorValidationError = validate$f(obj_error, path_error);
|
|
1797
1808
|
if (referencepath_errorValidationError !== null) {
|
|
1798
1809
|
let message = 'Object doesn\'t match Error (at "' + path_error + '")\n';
|
|
1799
1810
|
message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1810,7 +1821,7 @@ function validate$8(obj, path = 'InsightResponse') {
|
|
|
1810
1821
|
if (obj.result !== undefined) {
|
|
1811
1822
|
const obj_result = obj.result;
|
|
1812
1823
|
const path_result = path + '.result';
|
|
1813
|
-
const referencepath_resultValidationError = validate$
|
|
1824
|
+
const referencepath_resultValidationError = validate$a(obj_result, path_result);
|
|
1814
1825
|
if (referencepath_resultValidationError !== null) {
|
|
1815
1826
|
let message = 'Object doesn\'t match Insight (at "' + path_result + '")\n';
|
|
1816
1827
|
message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1820,12 +1831,12 @@ function validate$8(obj, path = 'InsightResponse') {
|
|
|
1820
1831
|
})();
|
|
1821
1832
|
return v_error === undefined ? null : v_error;
|
|
1822
1833
|
}
|
|
1823
|
-
const select$
|
|
1824
|
-
const { selections: Error__selections, opaque: Error__opaque, } = select$
|
|
1825
|
-
const { selections: Insight__selections, opaque: Insight__opaque, } = select$
|
|
1834
|
+
const select$d = function InsightResponseSelect() {
|
|
1835
|
+
const { selections: Error__selections, opaque: Error__opaque, } = select$k();
|
|
1836
|
+
const { selections: Insight__selections, opaque: Insight__opaque, } = select$e();
|
|
1826
1837
|
return {
|
|
1827
1838
|
kind: 'Fragment',
|
|
1828
|
-
version: VERSION$
|
|
1839
|
+
version: VERSION$9,
|
|
1829
1840
|
private: [],
|
|
1830
1841
|
selections: [
|
|
1831
1842
|
{
|
|
@@ -1848,7 +1859,7 @@ const select$c = function InsightResponseSelect() {
|
|
|
1848
1859
|
]
|
|
1849
1860
|
};
|
|
1850
1861
|
};
|
|
1851
|
-
function equals$
|
|
1862
|
+
function equals$9(existing, incoming) {
|
|
1852
1863
|
const existing_insightType = existing.insightType;
|
|
1853
1864
|
const incoming_insightType = incoming.insightType;
|
|
1854
1865
|
// if at least one of these optionals is defined
|
|
@@ -1871,7 +1882,7 @@ function equals$8(existing, incoming) {
|
|
|
1871
1882
|
if (existing_error === undefined || incoming_error === undefined) {
|
|
1872
1883
|
return false;
|
|
1873
1884
|
}
|
|
1874
|
-
if (!(equals$
|
|
1885
|
+
if (!(equals$f(existing_error, incoming_error))) {
|
|
1875
1886
|
return false;
|
|
1876
1887
|
}
|
|
1877
1888
|
}
|
|
@@ -1884,19 +1895,101 @@ function equals$8(existing, incoming) {
|
|
|
1884
1895
|
if (existing_result === undefined || incoming_result === undefined) {
|
|
1885
1896
|
return false;
|
|
1886
1897
|
}
|
|
1887
|
-
if (!(equals$
|
|
1898
|
+
if (!(equals$a(existing_result, incoming_result))) {
|
|
1899
|
+
return false;
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
return true;
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
const VERSION$8 = "bbba5f281b443221e96fa2e9e8eae2d9";
|
|
1906
|
+
function validate$8(obj, path = 'Status') {
|
|
1907
|
+
const v_error = (() => {
|
|
1908
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1909
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1910
|
+
}
|
|
1911
|
+
if (obj.qualifier !== undefined) {
|
|
1912
|
+
const obj_qualifier = obj.qualifier;
|
|
1913
|
+
const path_qualifier = path + '.qualifier';
|
|
1914
|
+
if (typeof obj_qualifier !== 'string') {
|
|
1915
|
+
return new TypeError('Expected "string" but received "' + typeof obj_qualifier + '" (at "' + path_qualifier + '")');
|
|
1916
|
+
}
|
|
1917
|
+
}
|
|
1918
|
+
if (obj.sentiment !== undefined) {
|
|
1919
|
+
const obj_sentiment = obj.sentiment;
|
|
1920
|
+
const path_sentiment = path + '.sentiment';
|
|
1921
|
+
if (typeof obj_sentiment !== 'string') {
|
|
1922
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sentiment + '" (at "' + path_sentiment + '")');
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
})();
|
|
1926
|
+
return v_error === undefined ? null : v_error;
|
|
1927
|
+
}
|
|
1928
|
+
const select$c = function StatusSelect() {
|
|
1929
|
+
return {
|
|
1930
|
+
kind: 'Fragment',
|
|
1931
|
+
version: VERSION$8,
|
|
1932
|
+
private: [],
|
|
1933
|
+
selections: [
|
|
1934
|
+
{
|
|
1935
|
+
name: 'qualifier',
|
|
1936
|
+
kind: 'Scalar',
|
|
1937
|
+
required: false
|
|
1938
|
+
},
|
|
1939
|
+
{
|
|
1940
|
+
name: 'sentiment',
|
|
1941
|
+
kind: 'Scalar',
|
|
1942
|
+
required: false
|
|
1943
|
+
}
|
|
1944
|
+
]
|
|
1945
|
+
};
|
|
1946
|
+
};
|
|
1947
|
+
function equals$8(existing, incoming) {
|
|
1948
|
+
const existing_qualifier = existing.qualifier;
|
|
1949
|
+
const incoming_qualifier = incoming.qualifier;
|
|
1950
|
+
// if at least one of these optionals is defined
|
|
1951
|
+
if (existing_qualifier !== undefined || incoming_qualifier !== undefined) {
|
|
1952
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1953
|
+
// not equal
|
|
1954
|
+
if (existing_qualifier === undefined || incoming_qualifier === undefined) {
|
|
1955
|
+
return false;
|
|
1956
|
+
}
|
|
1957
|
+
if (!(existing_qualifier === incoming_qualifier)) {
|
|
1958
|
+
return false;
|
|
1959
|
+
}
|
|
1960
|
+
}
|
|
1961
|
+
const existing_sentiment = existing.sentiment;
|
|
1962
|
+
const incoming_sentiment = incoming.sentiment;
|
|
1963
|
+
// if at least one of these optionals is defined
|
|
1964
|
+
if (existing_sentiment !== undefined || incoming_sentiment !== undefined) {
|
|
1965
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1966
|
+
// not equal
|
|
1967
|
+
if (existing_sentiment === undefined || incoming_sentiment === undefined) {
|
|
1968
|
+
return false;
|
|
1969
|
+
}
|
|
1970
|
+
if (!(existing_sentiment === incoming_sentiment)) {
|
|
1888
1971
|
return false;
|
|
1889
1972
|
}
|
|
1890
1973
|
}
|
|
1891
1974
|
return true;
|
|
1892
1975
|
}
|
|
1893
1976
|
|
|
1894
|
-
const VERSION$7 = "
|
|
1977
|
+
const VERSION$7 = "b8ee380c83f9ec2fff1e8045ba2301fc";
|
|
1895
1978
|
function validate$7(obj, path = 'Overview') {
|
|
1896
1979
|
const v_error = (() => {
|
|
1897
1980
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1898
1981
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1899
1982
|
}
|
|
1983
|
+
if (obj.status !== undefined) {
|
|
1984
|
+
const obj_status = obj.status;
|
|
1985
|
+
const path_status = path + '.status';
|
|
1986
|
+
const referencepath_statusValidationError = validate$8(obj_status, path_status);
|
|
1987
|
+
if (referencepath_statusValidationError !== null) {
|
|
1988
|
+
let message = 'Object doesn\'t match Status (at "' + path_status + '")\n';
|
|
1989
|
+
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1990
|
+
return new TypeError(message);
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1900
1993
|
if (obj.viz !== undefined) {
|
|
1901
1994
|
const obj_viz = obj.viz;
|
|
1902
1995
|
const path_viz = path + '.viz';
|
|
@@ -1908,11 +2001,18 @@ function validate$7(obj, path = 'Overview') {
|
|
|
1908
2001
|
return v_error === undefined ? null : v_error;
|
|
1909
2002
|
}
|
|
1910
2003
|
const select$b = function OverviewSelect() {
|
|
2004
|
+
const { selections: Status__selections, opaque: Status__opaque, } = select$c();
|
|
1911
2005
|
return {
|
|
1912
2006
|
kind: 'Fragment',
|
|
1913
2007
|
version: VERSION$7,
|
|
1914
2008
|
private: [],
|
|
1915
2009
|
selections: [
|
|
2010
|
+
{
|
|
2011
|
+
name: 'status',
|
|
2012
|
+
kind: 'Object',
|
|
2013
|
+
selections: Status__selections,
|
|
2014
|
+
required: false
|
|
2015
|
+
},
|
|
1916
2016
|
{
|
|
1917
2017
|
name: 'viz',
|
|
1918
2018
|
kind: 'Object',
|
|
@@ -1922,6 +2022,19 @@ const select$b = function OverviewSelect() {
|
|
|
1922
2022
|
};
|
|
1923
2023
|
};
|
|
1924
2024
|
function equals$7(existing, incoming) {
|
|
2025
|
+
const existing_status = existing.status;
|
|
2026
|
+
const incoming_status = incoming.status;
|
|
2027
|
+
// if at least one of these optionals is defined
|
|
2028
|
+
if (existing_status !== undefined || incoming_status !== undefined) {
|
|
2029
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2030
|
+
// not equal
|
|
2031
|
+
if (existing_status === undefined || incoming_status === undefined) {
|
|
2032
|
+
return false;
|
|
2033
|
+
}
|
|
2034
|
+
if (!(equals$8(existing_status, incoming_status))) {
|
|
2035
|
+
return false;
|
|
2036
|
+
}
|
|
2037
|
+
}
|
|
1925
2038
|
const existing_viz = existing.viz;
|
|
1926
2039
|
const incoming_viz = incoming.viz;
|
|
1927
2040
|
// if at least one of these optionals is defined
|
|
@@ -1947,7 +2060,7 @@ function validate$6(obj, path = 'OverviewResponse') {
|
|
|
1947
2060
|
if (obj.error !== undefined) {
|
|
1948
2061
|
const obj_error = obj.error;
|
|
1949
2062
|
const path_error = path + '.error';
|
|
1950
|
-
const referencepath_errorValidationError = validate$
|
|
2063
|
+
const referencepath_errorValidationError = validate$f(obj_error, path_error);
|
|
1951
2064
|
if (referencepath_errorValidationError !== null) {
|
|
1952
2065
|
let message = 'Object doesn\'t match Error (at "' + path_error + '")\n';
|
|
1953
2066
|
message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1968,7 +2081,7 @@ function validate$6(obj, path = 'OverviewResponse') {
|
|
|
1968
2081
|
return v_error === undefined ? null : v_error;
|
|
1969
2082
|
}
|
|
1970
2083
|
const select$a = function OverviewResponseSelect() {
|
|
1971
|
-
const { selections: Error__selections, opaque: Error__opaque, } = select$
|
|
2084
|
+
const { selections: Error__selections, opaque: Error__opaque, } = select$k();
|
|
1972
2085
|
const { selections: Overview__selections, opaque: Overview__opaque, } = select$b();
|
|
1973
2086
|
return {
|
|
1974
2087
|
kind: 'Fragment',
|
|
@@ -2000,7 +2113,7 @@ function equals$6(existing, incoming) {
|
|
|
2000
2113
|
if (existing_error === undefined || incoming_error === undefined) {
|
|
2001
2114
|
return false;
|
|
2002
2115
|
}
|
|
2003
|
-
if (!(equals$
|
|
2116
|
+
if (!(equals$f(existing_error, incoming_error))) {
|
|
2004
2117
|
return false;
|
|
2005
2118
|
}
|
|
2006
2119
|
}
|
|
@@ -2029,7 +2142,7 @@ function validate$5(obj, path = 'InsightGroup') {
|
|
|
2029
2142
|
if (obj.error !== undefined) {
|
|
2030
2143
|
const obj_error = obj.error;
|
|
2031
2144
|
const path_error = path + '.error';
|
|
2032
|
-
const referencepath_errorValidationError = validate$
|
|
2145
|
+
const referencepath_errorValidationError = validate$f(obj_error, path_error);
|
|
2033
2146
|
if (referencepath_errorValidationError !== null) {
|
|
2034
2147
|
let message = 'Object doesn\'t match Error (at "' + path_error + '")\n';
|
|
2035
2148
|
message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2045,7 +2158,7 @@ function validate$5(obj, path = 'InsightGroup') {
|
|
|
2045
2158
|
for (let i = 0; i < obj_insights.length; i++) {
|
|
2046
2159
|
const obj_insights_item = obj_insights[i];
|
|
2047
2160
|
const path_insights_item = path_insights + '[' + i + ']';
|
|
2048
|
-
const referencepath_insights_itemValidationError = validate$
|
|
2161
|
+
const referencepath_insights_itemValidationError = validate$9(obj_insights_item, path_insights_item);
|
|
2049
2162
|
if (referencepath_insights_itemValidationError !== null) {
|
|
2050
2163
|
let message = 'Object doesn\'t match InsightResponse (at "' + path_insights_item + '")\n';
|
|
2051
2164
|
message += referencepath_insights_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2081,8 +2194,8 @@ function validate$5(obj, path = 'InsightGroup') {
|
|
|
2081
2194
|
return v_error === undefined ? null : v_error;
|
|
2082
2195
|
}
|
|
2083
2196
|
const select$9 = function InsightGroupSelect() {
|
|
2084
|
-
const { selections: Error__selections, opaque: Error__opaque, } = select$
|
|
2085
|
-
const { selections: InsightResponse__selections, opaque: InsightResponse__opaque, } = select$
|
|
2197
|
+
const { selections: Error__selections, opaque: Error__opaque, } = select$k();
|
|
2198
|
+
const { selections: InsightResponse__selections, opaque: InsightResponse__opaque, } = select$d();
|
|
2086
2199
|
const { selections: OverviewResponse__selections, opaque: OverviewResponse__opaque, } = select$a();
|
|
2087
2200
|
return {
|
|
2088
2201
|
kind: 'Fragment',
|
|
@@ -2140,7 +2253,7 @@ function equals$5(existing, incoming) {
|
|
|
2140
2253
|
if (existing_error === undefined || incoming_error === undefined) {
|
|
2141
2254
|
return false;
|
|
2142
2255
|
}
|
|
2143
|
-
if (!(equals$
|
|
2256
|
+
if (!(equals$f(existing_error, incoming_error))) {
|
|
2144
2257
|
return false;
|
|
2145
2258
|
}
|
|
2146
2259
|
}
|
|
@@ -2154,7 +2267,7 @@ function equals$5(existing, incoming) {
|
|
|
2154
2267
|
return false;
|
|
2155
2268
|
}
|
|
2156
2269
|
const equals_insights_items = equalsArray(existing_insights, incoming_insights, (existing_insights_item, incoming_insights_item) => {
|
|
2157
|
-
if (!(equals$
|
|
2270
|
+
if (!(equals$9(existing_insights_item, incoming_insights_item))) {
|
|
2158
2271
|
return false;
|
|
2159
2272
|
}
|
|
2160
2273
|
});
|
|
@@ -2307,7 +2420,7 @@ function validate$3(obj, path = 'GenerateInsightBundleResponse') {
|
|
|
2307
2420
|
if (obj.error !== undefined) {
|
|
2308
2421
|
const obj_error = obj.error;
|
|
2309
2422
|
const path_error = path + '.error';
|
|
2310
|
-
const referencepath_errorValidationError = validate$
|
|
2423
|
+
const referencepath_errorValidationError = validate$f(obj_error, path_error);
|
|
2311
2424
|
if (referencepath_errorValidationError !== null) {
|
|
2312
2425
|
let message = 'Object doesn\'t match Error (at "' + path_error + '")\n';
|
|
2313
2426
|
message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2351,7 +2464,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
2351
2464
|
return input;
|
|
2352
2465
|
}
|
|
2353
2466
|
const select$7 = function GenerateInsightBundleResponseSelect() {
|
|
2354
|
-
const { selections: Error__selections, opaque: Error__opaque, } = select$
|
|
2467
|
+
const { selections: Error__selections, opaque: Error__opaque, } = select$k();
|
|
2355
2468
|
const { selections: InsightBundle__selections, opaque: InsightBundle__opaque, } = select$8();
|
|
2356
2469
|
return {
|
|
2357
2470
|
kind: 'Fragment',
|
|
@@ -2401,7 +2514,7 @@ function equals$3(existing, incoming) {
|
|
|
2401
2514
|
if (existing_error === undefined || incoming_error === undefined) {
|
|
2402
2515
|
return false;
|
|
2403
2516
|
}
|
|
2404
|
-
if (!(equals$
|
|
2517
|
+
if (!(equals$f(existing_error, incoming_error))) {
|
|
2405
2518
|
return false;
|
|
2406
2519
|
}
|
|
2407
2520
|
}
|
|
@@ -2492,12 +2605,12 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
2492
2605
|
const config = {};
|
|
2493
2606
|
typeCheckConfig$5(untrustedConfig, config, generateInsights_ConfigPropertyMetadata);
|
|
2494
2607
|
const untrustedConfig_input = untrustedConfig.input;
|
|
2495
|
-
const referenceInsightBundleInputValidationError = validate$
|
|
2608
|
+
const referenceInsightBundleInputValidationError = validate$l(untrustedConfig_input);
|
|
2496
2609
|
if (referenceInsightBundleInputValidationError === null) {
|
|
2497
2610
|
config.input = untrustedConfig_input;
|
|
2498
2611
|
}
|
|
2499
2612
|
const untrustedConfig_options = untrustedConfig.options;
|
|
2500
|
-
const referenceInsightBundleOptionsValidationError = validate$
|
|
2613
|
+
const referenceInsightBundleOptionsValidationError = validate$i(untrustedConfig_options);
|
|
2501
2614
|
if (referenceInsightBundleOptionsValidationError === null) {
|
|
2502
2615
|
config.options = untrustedConfig_options;
|
|
2503
2616
|
}
|
|
@@ -2595,12 +2708,12 @@ function typeCheckConfig$2(untrustedConfig) {
|
|
|
2595
2708
|
const config = {};
|
|
2596
2709
|
typeCheckConfig$5(untrustedConfig, config, generateInsightsBasic_ConfigPropertyMetadata);
|
|
2597
2710
|
const untrustedConfig_input = untrustedConfig.input;
|
|
2598
|
-
const referenceInsightBundleInputValidationError = validate$
|
|
2711
|
+
const referenceInsightBundleInputValidationError = validate$l(untrustedConfig_input);
|
|
2599
2712
|
if (referenceInsightBundleInputValidationError === null) {
|
|
2600
2713
|
config.input = untrustedConfig_input;
|
|
2601
2714
|
}
|
|
2602
2715
|
const untrustedConfig_options = untrustedConfig.options;
|
|
2603
|
-
const referenceInsightBundleOptionsValidationError = validate$
|
|
2716
|
+
const referenceInsightBundleOptionsValidationError = validate$i(untrustedConfig_options);
|
|
2604
2717
|
if (referenceInsightBundleOptionsValidationError === null) {
|
|
2605
2718
|
config.options = untrustedConfig_options;
|
|
2606
2719
|
}
|
|
@@ -2691,7 +2804,7 @@ function validate$2(obj, path = 'GetInsightBatchResponse') {
|
|
|
2691
2804
|
if (obj.summary !== undefined) {
|
|
2692
2805
|
const obj_summary = obj.summary;
|
|
2693
2806
|
const path_summary = path + '.summary';
|
|
2694
|
-
const referencepath_summaryValidationError = validate$
|
|
2807
|
+
const referencepath_summaryValidationError = validate$d(obj_summary, path_summary);
|
|
2695
2808
|
if (referencepath_summaryValidationError !== null) {
|
|
2696
2809
|
let message = 'Object doesn\'t match SummaryResponse (at "' + path_summary + '")\n';
|
|
2697
2810
|
message += referencepath_summaryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2733,7 +2846,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
2733
2846
|
return input;
|
|
2734
2847
|
}
|
|
2735
2848
|
const select$4 = function GetInsightBatchResponseSelect() {
|
|
2736
|
-
const { selections: SummaryResponse__selections, opaque: SummaryResponse__opaque, } = select$
|
|
2849
|
+
const { selections: SummaryResponse__selections, opaque: SummaryResponse__opaque, } = select$i();
|
|
2737
2850
|
return {
|
|
2738
2851
|
kind: 'Fragment',
|
|
2739
2852
|
version: VERSION$2,
|
|
@@ -2828,7 +2941,7 @@ function equals$2(existing, incoming) {
|
|
|
2828
2941
|
if (existing_summary === undefined || incoming_summary === undefined) {
|
|
2829
2942
|
return false;
|
|
2830
2943
|
}
|
|
2831
|
-
if (!(equals$
|
|
2944
|
+
if (!(equals$d(existing_summary, incoming_summary))) {
|
|
2832
2945
|
return false;
|
|
2833
2946
|
}
|
|
2834
2947
|
}
|
|
@@ -3336,12 +3449,12 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
3336
3449
|
const config = {};
|
|
3337
3450
|
typeCheckConfig$5(untrustedConfig, config, getMetricFilterValues_ConfigPropertyMetadata);
|
|
3338
3451
|
const untrustedConfig_semanticDataModel = untrustedConfig.semanticDataModel;
|
|
3339
|
-
const referenceSemanticDataModelValidationError = validate$
|
|
3452
|
+
const referenceSemanticDataModelValidationError = validate$r(untrustedConfig_semanticDataModel);
|
|
3340
3453
|
if (referenceSemanticDataModelValidationError === null) {
|
|
3341
3454
|
config.semanticDataModel = untrustedConfig_semanticDataModel;
|
|
3342
3455
|
}
|
|
3343
3456
|
const untrustedConfig_field = untrustedConfig.field;
|
|
3344
|
-
const referenceFieldIdValidationError = validate$
|
|
3457
|
+
const referenceFieldIdValidationError = validate$C(untrustedConfig_field);
|
|
3345
3458
|
if (referenceFieldIdValidationError === null) {
|
|
3346
3459
|
config.field = untrustedConfig_field;
|
|
3347
3460
|
}
|
|
@@ -3350,7 +3463,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
3350
3463
|
const untrustedConfig_filters_array = [];
|
|
3351
3464
|
for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
|
|
3352
3465
|
const untrustedConfig_filters_item = untrustedConfig_filters[i];
|
|
3353
|
-
const referenceFilterValidationError = validate$
|
|
3466
|
+
const referenceFilterValidationError = validate$z(untrustedConfig_filters_item);
|
|
3354
3467
|
if (referenceFilterValidationError === null) {
|
|
3355
3468
|
untrustedConfig_filters_array.push(untrustedConfig_filters_item);
|
|
3356
3469
|
}
|
|
@@ -3358,7 +3471,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
3358
3471
|
config.filters = untrustedConfig_filters_array;
|
|
3359
3472
|
}
|
|
3360
3473
|
const untrustedConfig_semanticFilter = untrustedConfig.semanticFilter;
|
|
3361
|
-
const referenceFlattenFilterValidationError = validate$
|
|
3474
|
+
const referenceFlattenFilterValidationError = validate$v(untrustedConfig_semanticFilter);
|
|
3362
3475
|
if (referenceFlattenFilterValidationError === null) {
|
|
3363
3476
|
config.semanticFilter = untrustedConfig_semanticFilter;
|
|
3364
3477
|
}
|
|
@@ -3452,4 +3565,4 @@ withDefaultLuvio((luvio) => {
|
|
|
3452
3565
|
});
|
|
3453
3566
|
|
|
3454
3567
|
export { createInsightsBatch, generateInsights, generateInsightsBasic, getInsightsBatch, getInsightsBatchNotifyChange, getInsightsBatch_imperative, getMetricFilterValues };
|
|
3455
|
-
// version: 1.
|
|
3568
|
+
// version: 1.329.1-c9b166ef17
|