@salesforce/lds-adapters-sfap-analytics-insights 1.322.0 → 1.324.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/sfap-analytics-insights.js +69 -102
- package/dist/es/es2018/types/src/generated/types/Filter.d.ts +11 -9
- package/dist/es/es2018/types/src/generated/types/MetricInstance.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/RelativeDateFilterOptions.d.ts +1 -8
- package/package.json +3 -3
- package/sfdc/index.js +70 -103
- package/src/raml/api.raml +19 -11
|
@@ -92,7 +92,7 @@ function createLink(ref) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
function validate$
|
|
95
|
+
function validate$G(obj, path = 'MetricMetadata') {
|
|
96
96
|
const v_error = (() => {
|
|
97
97
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
98
98
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -115,7 +115,7 @@ function validate$H(obj, path = 'MetricMetadata') {
|
|
|
115
115
|
return v_error === undefined ? null : v_error;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
function validate$
|
|
118
|
+
function validate$F(obj, path = 'ExtensionOptions') {
|
|
119
119
|
const v_error = (() => {
|
|
120
120
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
121
121
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -145,7 +145,7 @@ function validate$G(obj, path = 'ExtensionOptions') {
|
|
|
145
145
|
return v_error === undefined ? null : v_error;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
function validate$
|
|
148
|
+
function validate$E(obj, path = 'InsightsOptions_InsightSetting') {
|
|
149
149
|
const v_error = (() => {
|
|
150
150
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
151
151
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -168,7 +168,7 @@ function validate$F(obj, path = 'InsightsOptions_InsightSetting') {
|
|
|
168
168
|
return v_error === undefined ? null : v_error;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
function validate$
|
|
171
|
+
function validate$D(obj, path = 'InsightsOptions') {
|
|
172
172
|
const v_error = (() => {
|
|
173
173
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
174
174
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -182,7 +182,7 @@ function validate$E(obj, path = 'InsightsOptions') {
|
|
|
182
182
|
for (let i = 0; i < obj_settings.length; i++) {
|
|
183
183
|
const obj_settings_item = obj_settings[i];
|
|
184
184
|
const path_settings_item = path_settings + '[' + i + ']';
|
|
185
|
-
const referencepath_settings_itemValidationError = validate$
|
|
185
|
+
const referencepath_settings_itemValidationError = validate$E(obj_settings_item, path_settings_item);
|
|
186
186
|
if (referencepath_settings_itemValidationError !== null) {
|
|
187
187
|
let message = 'Object doesn\'t match InsightsOptions_InsightSetting (at "' + path_settings_item + '")\n';
|
|
188
188
|
message += referencepath_settings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -194,7 +194,7 @@ function validate$E(obj, path = 'InsightsOptions') {
|
|
|
194
194
|
return v_error === undefined ? null : v_error;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
-
function validate$
|
|
197
|
+
function validate$C(obj, path = 'CategoricalFilterOptions') {
|
|
198
198
|
const v_error = (() => {
|
|
199
199
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
200
200
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -231,7 +231,7 @@ function validate$D(obj, path = 'CategoricalFilterOptions') {
|
|
|
231
231
|
return v_error === undefined ? null : v_error;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
function validate$
|
|
234
|
+
function validate$B(obj, path = 'FieldId') {
|
|
235
235
|
const v_error = (() => {
|
|
236
236
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
237
237
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -261,7 +261,7 @@ function validate$C(obj, path = 'FieldId') {
|
|
|
261
261
|
return v_error === undefined ? null : v_error;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
function validate$
|
|
264
|
+
function validate$A(obj, path = 'RangeFilterOptions') {
|
|
265
265
|
const v_error = (() => {
|
|
266
266
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
267
267
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -305,64 +305,11 @@ function validate$B(obj, path = 'RangeFilterOptions') {
|
|
|
305
305
|
return v_error === undefined ? null : v_error;
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
-
function validate$A(obj, path = 'RelativeDate') {
|
|
309
|
-
const v_error = (() => {
|
|
310
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
311
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
312
|
-
}
|
|
313
|
-
if (obj.periodType !== undefined) {
|
|
314
|
-
const obj_periodType = obj.periodType;
|
|
315
|
-
const path_periodType = path + '.periodType';
|
|
316
|
-
if (typeof obj_periodType !== 'string') {
|
|
317
|
-
return new TypeError('Expected "string" but received "' + typeof obj_periodType + '" (at "' + path_periodType + '")');
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
if (obj.rangeN !== undefined) {
|
|
321
|
-
const obj_rangeN = obj.rangeN;
|
|
322
|
-
const path_rangeN = path + '.rangeN';
|
|
323
|
-
if (typeof obj_rangeN !== 'number' || (typeof obj_rangeN === 'number' && Math.floor(obj_rangeN) !== obj_rangeN)) {
|
|
324
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_rangeN + '" (at "' + path_rangeN + '")');
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
if (obj.rangeType !== undefined) {
|
|
328
|
-
const obj_rangeType = obj.rangeType;
|
|
329
|
-
const path_rangeType = path + '.rangeType';
|
|
330
|
-
if (typeof obj_rangeType !== 'string') {
|
|
331
|
-
return new TypeError('Expected "string" but received "' + typeof obj_rangeType + '" (at "' + path_rangeType + '")');
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
})();
|
|
335
|
-
return v_error === undefined ? null : v_error;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
308
|
function validate$z(obj, path = 'RelativeDateFilterOptions') {
|
|
339
309
|
const v_error = (() => {
|
|
340
310
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
341
311
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
342
312
|
}
|
|
343
|
-
if (obj.anchorDate !== undefined) {
|
|
344
|
-
const obj_anchorDate = obj.anchorDate;
|
|
345
|
-
const path_anchorDate = path + '.anchorDate';
|
|
346
|
-
if (typeof obj_anchorDate !== 'string') {
|
|
347
|
-
return new TypeError('Expected "string" but received "' + typeof obj_anchorDate + '" (at "' + path_anchorDate + '")');
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
const obj_max = obj.max;
|
|
351
|
-
const path_max = path + '.max';
|
|
352
|
-
const referencepath_maxValidationError = validate$A(obj_max, path_max);
|
|
353
|
-
if (referencepath_maxValidationError !== null) {
|
|
354
|
-
let message = 'Object doesn\'t match RelativeDate (at "' + path_max + '")\n';
|
|
355
|
-
message += referencepath_maxValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
356
|
-
return new TypeError(message);
|
|
357
|
-
}
|
|
358
|
-
const obj_min = obj.min;
|
|
359
|
-
const path_min = path + '.min';
|
|
360
|
-
const referencepath_minValidationError = validate$A(obj_min, path_min);
|
|
361
|
-
if (referencepath_minValidationError !== null) {
|
|
362
|
-
let message = 'Object doesn\'t match RelativeDate (at "' + path_min + '")\n';
|
|
363
|
-
message += referencepath_minValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
364
|
-
return new TypeError(message);
|
|
365
|
-
}
|
|
366
313
|
})();
|
|
367
314
|
return v_error === undefined ? null : v_error;
|
|
368
315
|
}
|
|
@@ -372,37 +319,55 @@ function validate$y(obj, path = 'Filter') {
|
|
|
372
319
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
373
320
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
374
321
|
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
322
|
+
if (obj.categoricalFilterOptions !== undefined) {
|
|
323
|
+
const obj_categoricalFilterOptions = obj.categoricalFilterOptions;
|
|
324
|
+
const path_categoricalFilterOptions = path + '.categoricalFilterOptions';
|
|
325
|
+
const referencepath_categoricalFilterOptionsValidationError = validate$C(obj_categoricalFilterOptions, path_categoricalFilterOptions);
|
|
326
|
+
if (referencepath_categoricalFilterOptionsValidationError !== null) {
|
|
327
|
+
let message = 'Object doesn\'t match CategoricalFilterOptions (at "' + path_categoricalFilterOptions + '")\n';
|
|
328
|
+
message += referencepath_categoricalFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
329
|
+
return new TypeError(message);
|
|
330
|
+
}
|
|
382
331
|
}
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
332
|
+
if (obj.field !== undefined) {
|
|
333
|
+
const obj_field = obj.field;
|
|
334
|
+
const path_field = path + '.field';
|
|
335
|
+
const referencepath_fieldValidationError = validate$B(obj_field, path_field);
|
|
336
|
+
if (referencepath_fieldValidationError !== null) {
|
|
337
|
+
let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
|
|
338
|
+
message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
339
|
+
return new TypeError(message);
|
|
340
|
+
}
|
|
390
341
|
}
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
342
|
+
if (obj.fieldId !== undefined) {
|
|
343
|
+
const obj_fieldId = obj.fieldId;
|
|
344
|
+
const path_fieldId = path + '.fieldId';
|
|
345
|
+
const referencepath_fieldIdValidationError = validate$B(obj_fieldId, path_fieldId);
|
|
346
|
+
if (referencepath_fieldIdValidationError !== null) {
|
|
347
|
+
let message = 'Object doesn\'t match FieldId (at "' + path_fieldId + '")\n';
|
|
348
|
+
message += referencepath_fieldIdValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
349
|
+
return new TypeError(message);
|
|
350
|
+
}
|
|
398
351
|
}
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
352
|
+
if (obj.rangeFilterOptions !== undefined) {
|
|
353
|
+
const obj_rangeFilterOptions = obj.rangeFilterOptions;
|
|
354
|
+
const path_rangeFilterOptions = path + '.rangeFilterOptions';
|
|
355
|
+
const referencepath_rangeFilterOptionsValidationError = validate$A(obj_rangeFilterOptions, path_rangeFilterOptions);
|
|
356
|
+
if (referencepath_rangeFilterOptionsValidationError !== null) {
|
|
357
|
+
let message = 'Object doesn\'t match RangeFilterOptions (at "' + path_rangeFilterOptions + '")\n';
|
|
358
|
+
message += referencepath_rangeFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
359
|
+
return new TypeError(message);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
if (obj.relativeDateFilterOptions !== undefined) {
|
|
363
|
+
const obj_relativeDateFilterOptions = obj.relativeDateFilterOptions;
|
|
364
|
+
const path_relativeDateFilterOptions = path + '.relativeDateFilterOptions';
|
|
365
|
+
const referencepath_relativeDateFilterOptionsValidationError = validate$z(obj_relativeDateFilterOptions, path_relativeDateFilterOptions);
|
|
366
|
+
if (referencepath_relativeDateFilterOptionsValidationError !== null) {
|
|
367
|
+
let message = 'Object doesn\'t match RelativeDateFilterOptions (at "' + path_relativeDateFilterOptions + '")\n';
|
|
368
|
+
message += referencepath_relativeDateFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
369
|
+
return new TypeError(message);
|
|
370
|
+
}
|
|
406
371
|
}
|
|
407
372
|
if (obj.type !== undefined) {
|
|
408
373
|
const obj_type = obj.type;
|
|
@@ -556,13 +521,15 @@ function validate$t(obj, path = 'MetricInstance') {
|
|
|
556
521
|
message += referencepath_measurementPeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
557
522
|
return new TypeError(message);
|
|
558
523
|
}
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
524
|
+
if (obj.semanticFilter !== undefined) {
|
|
525
|
+
const obj_semanticFilter = obj.semanticFilter;
|
|
526
|
+
const path_semanticFilter = path + '.semanticFilter';
|
|
527
|
+
const referencepath_semanticFilterValidationError = validate$u(obj_semanticFilter, path_semanticFilter);
|
|
528
|
+
if (referencepath_semanticFilterValidationError !== null) {
|
|
529
|
+
let message = 'Object doesn\'t match FlattenFilter (at "' + path_semanticFilter + '")\n';
|
|
530
|
+
message += referencepath_semanticFilterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
531
|
+
return new TypeError(message);
|
|
532
|
+
}
|
|
566
533
|
}
|
|
567
534
|
})();
|
|
568
535
|
return v_error === undefined ? null : v_error;
|
|
@@ -598,7 +565,7 @@ function validate$r(obj, path = 'Measure') {
|
|
|
598
565
|
}
|
|
599
566
|
const obj_field = obj.field;
|
|
600
567
|
const path_field = path + '.field';
|
|
601
|
-
const referencepath_fieldValidationError = validate$
|
|
568
|
+
const referencepath_fieldValidationError = validate$B(obj_field, path_field);
|
|
602
569
|
if (referencepath_fieldValidationError !== null) {
|
|
603
570
|
let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
|
|
604
571
|
message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -631,7 +598,7 @@ function validate$p(obj, path = 'TimeDimension') {
|
|
|
631
598
|
}
|
|
632
599
|
const obj_field = obj.field;
|
|
633
600
|
const path_field = path + '.field';
|
|
634
|
-
const referencepath_fieldValidationError = validate$
|
|
601
|
+
const referencepath_fieldValidationError = validate$B(obj_field, path_field);
|
|
635
602
|
if (referencepath_fieldValidationError !== null) {
|
|
636
603
|
let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
|
|
637
604
|
message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -777,7 +744,7 @@ function validate$l(obj, path = 'InputMetric') {
|
|
|
777
744
|
}
|
|
778
745
|
const obj_extensionOptions = obj.extensionOptions;
|
|
779
746
|
const path_extensionOptions = path + '.extensionOptions';
|
|
780
|
-
const referencepath_extensionOptionsValidationError = validate$
|
|
747
|
+
const referencepath_extensionOptionsValidationError = validate$F(obj_extensionOptions, path_extensionOptions);
|
|
781
748
|
if (referencepath_extensionOptionsValidationError !== null) {
|
|
782
749
|
let message = 'Object doesn\'t match ExtensionOptions (at "' + path_extensionOptions + '")\n';
|
|
783
750
|
message += referencepath_extensionOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -785,7 +752,7 @@ function validate$l(obj, path = 'InputMetric') {
|
|
|
785
752
|
}
|
|
786
753
|
const obj_insightsOptions = obj.insightsOptions;
|
|
787
754
|
const path_insightsOptions = path + '.insightsOptions';
|
|
788
|
-
const referencepath_insightsOptionsValidationError = validate$
|
|
755
|
+
const referencepath_insightsOptionsValidationError = validate$D(obj_insightsOptions, path_insightsOptions);
|
|
789
756
|
if (referencepath_insightsOptionsValidationError !== null) {
|
|
790
757
|
let message = 'Object doesn\'t match InsightsOptions (at "' + path_insightsOptions + '")\n';
|
|
791
758
|
message += referencepath_insightsOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -826,7 +793,7 @@ function validate$k(obj, path = 'InsightBundleInput') {
|
|
|
826
793
|
}
|
|
827
794
|
const obj_metadata = obj.metadata;
|
|
828
795
|
const path_metadata = path + '.metadata';
|
|
829
|
-
const referencepath_metadataValidationError = validate$
|
|
796
|
+
const referencepath_metadataValidationError = validate$G(obj_metadata, path_metadata);
|
|
830
797
|
if (referencepath_metadataValidationError !== null) {
|
|
831
798
|
let message = 'Object doesn\'t match MetricMetadata (at "' + path_metadata + '")\n';
|
|
832
799
|
message += referencepath_metadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1750,7 +1717,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
1750
1717
|
config.semanticDataModel = untrustedConfig_semanticDataModel;
|
|
1751
1718
|
}
|
|
1752
1719
|
const untrustedConfig_field = untrustedConfig.field;
|
|
1753
|
-
const referenceFieldIdValidationError = validate$
|
|
1720
|
+
const referenceFieldIdValidationError = validate$B(untrustedConfig_field);
|
|
1754
1721
|
if (referenceFieldIdValidationError === null) {
|
|
1755
1722
|
config.field = untrustedConfig_field;
|
|
1756
1723
|
}
|
|
@@ -3,7 +3,7 @@ import { FieldId as FieldId_FieldId } from './FieldId';
|
|
|
3
3
|
import { RangeFilterOptions as RangeFilterOptions_RangeFilterOptions } from './RangeFilterOptions';
|
|
4
4
|
import { RelativeDateFilterOptions as RelativeDateFilterOptions_RelativeDateFilterOptions } from './RelativeDateFilterOptions';
|
|
5
5
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
6
|
-
export declare const VERSION = "
|
|
6
|
+
export declare const VERSION = "59e9f2b69e188e241b1ba88ba663e574";
|
|
7
7
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
8
8
|
export declare const RepresentationType: string;
|
|
9
9
|
export declare function normalize(input: Filter, existing: FilterNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FilterNormalized;
|
|
@@ -18,10 +18,11 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
18
18
|
* (none)
|
|
19
19
|
*/
|
|
20
20
|
export interface FilterNormalized {
|
|
21
|
-
categoricalFilterOptions
|
|
22
|
-
field
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
categoricalFilterOptions?: CategoricalFilterOptions_CategoricalFilterOptions;
|
|
22
|
+
field?: FieldId_FieldId;
|
|
23
|
+
fieldId?: FieldId_FieldId;
|
|
24
|
+
rangeFilterOptions?: RangeFilterOptions_RangeFilterOptions;
|
|
25
|
+
relativeDateFilterOptions?: RelativeDateFilterOptions_RelativeDateFilterOptions;
|
|
25
26
|
/** Acceptable types are:
|
|
26
27
|
'categorical'
|
|
27
28
|
'range'
|
|
@@ -35,9 +36,10 @@ export interface FilterNormalized {
|
|
|
35
36
|
* (none)
|
|
36
37
|
*/
|
|
37
38
|
export interface Filter {
|
|
38
|
-
categoricalFilterOptions
|
|
39
|
-
field
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
categoricalFilterOptions?: CategoricalFilterOptions_CategoricalFilterOptions;
|
|
40
|
+
field?: FieldId_FieldId;
|
|
41
|
+
fieldId?: FieldId_FieldId;
|
|
42
|
+
rangeFilterOptions?: RangeFilterOptions_RangeFilterOptions;
|
|
43
|
+
relativeDateFilterOptions?: RelativeDateFilterOptions_RelativeDateFilterOptions;
|
|
42
44
|
type?: string;
|
|
43
45
|
}
|
|
@@ -2,7 +2,7 @@ import { Filter as Filter_Filter } from './Filter';
|
|
|
2
2
|
import { MeasurementPeriod as MeasurementPeriod_MeasurementPeriod } from './MeasurementPeriod';
|
|
3
3
|
import { FlattenFilter as FlattenFilter_FlattenFilter } from './FlattenFilter';
|
|
4
4
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
5
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "6109c7c8602d73ca0af0de991ebfdc58";
|
|
6
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
7
|
export declare const RepresentationType: string;
|
|
8
8
|
export declare function normalize(input: MetricInstance, existing: MetricInstanceNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): MetricInstanceNormalized;
|
|
@@ -20,7 +20,7 @@ export interface MetricInstanceNormalized {
|
|
|
20
20
|
/** The 'filters' and 'semantic_filters' will be ANDed together */
|
|
21
21
|
filters?: Array<Filter_Filter>;
|
|
22
22
|
measurementPeriod: MeasurementPeriod_MeasurementPeriod;
|
|
23
|
-
semanticFilter
|
|
23
|
+
semanticFilter?: FlattenFilter_FlattenFilter;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
@@ -31,5 +31,5 @@ export interface MetricInstanceNormalized {
|
|
|
31
31
|
export interface MetricInstance {
|
|
32
32
|
filters?: Array<Filter_Filter>;
|
|
33
33
|
measurementPeriod: MeasurementPeriod_MeasurementPeriod;
|
|
34
|
-
semanticFilter
|
|
34
|
+
semanticFilter?: FlattenFilter_FlattenFilter;
|
|
35
35
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { RelativeDate as RelativeDate_RelativeDate } from './RelativeDate';
|
|
2
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "6b5a47b90c4dee171e819d1f19bd055d";
|
|
4
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
4
|
export declare const RepresentationType: string;
|
|
6
5
|
export declare function normalize(input: RelativeDateFilterOptions, existing: RelativeDateFilterOptionsNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): RelativeDateFilterOptionsNormalized;
|
|
@@ -15,9 +14,6 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
14
|
* (none)
|
|
16
15
|
*/
|
|
17
16
|
export interface RelativeDateFilterOptionsNormalized {
|
|
18
|
-
anchorDate?: string;
|
|
19
|
-
max: RelativeDate_RelativeDate;
|
|
20
|
-
min: RelativeDate_RelativeDate;
|
|
21
17
|
}
|
|
22
18
|
/**
|
|
23
19
|
*
|
|
@@ -26,7 +22,4 @@ export interface RelativeDateFilterOptionsNormalized {
|
|
|
26
22
|
* (none)
|
|
27
23
|
*/
|
|
28
24
|
export interface RelativeDateFilterOptions {
|
|
29
|
-
anchorDate?: string;
|
|
30
|
-
max: RelativeDate_RelativeDate;
|
|
31
|
-
min: RelativeDate_RelativeDate;
|
|
32
25
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-sfap-analytics-insights",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.324.0",
|
|
4
4
|
"description": "APIs for generating insights about metrics",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/sfap-analytics-insights.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.324.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.324.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -102,7 +102,7 @@ function createLink(ref) {
|
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
function validate$
|
|
105
|
+
function validate$G(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$F(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$G(obj, path = 'ExtensionOptions') {
|
|
|
155
155
|
return v_error === undefined ? null : v_error;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
function validate$
|
|
158
|
+
function validate$E(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$F(obj, path = 'InsightsOptions_InsightSetting') {
|
|
|
178
178
|
return v_error === undefined ? null : v_error;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
function validate$
|
|
181
|
+
function validate$D(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$E(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$E(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$E(obj, path = 'InsightsOptions') {
|
|
|
204
204
|
return v_error === undefined ? null : v_error;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
function validate$
|
|
207
|
+
function validate$C(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$D(obj, path = 'CategoricalFilterOptions') {
|
|
|
241
241
|
return v_error === undefined ? null : v_error;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
function validate$
|
|
244
|
+
function validate$B(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$C(obj, path = 'FieldId') {
|
|
|
271
271
|
return v_error === undefined ? null : v_error;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
function validate$
|
|
274
|
+
function validate$A(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,64 +315,11 @@ function validate$B(obj, path = 'RangeFilterOptions') {
|
|
|
315
315
|
return v_error === undefined ? null : v_error;
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
function validate$A(obj, path = 'RelativeDate') {
|
|
319
|
-
const v_error = (() => {
|
|
320
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
321
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
322
|
-
}
|
|
323
|
-
if (obj.periodType !== undefined) {
|
|
324
|
-
const obj_periodType = obj.periodType;
|
|
325
|
-
const path_periodType = path + '.periodType';
|
|
326
|
-
if (typeof obj_periodType !== 'string') {
|
|
327
|
-
return new TypeError('Expected "string" but received "' + typeof obj_periodType + '" (at "' + path_periodType + '")');
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
if (obj.rangeN !== undefined) {
|
|
331
|
-
const obj_rangeN = obj.rangeN;
|
|
332
|
-
const path_rangeN = path + '.rangeN';
|
|
333
|
-
if (typeof obj_rangeN !== 'number' || (typeof obj_rangeN === 'number' && Math.floor(obj_rangeN) !== obj_rangeN)) {
|
|
334
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_rangeN + '" (at "' + path_rangeN + '")');
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
if (obj.rangeType !== undefined) {
|
|
338
|
-
const obj_rangeType = obj.rangeType;
|
|
339
|
-
const path_rangeType = path + '.rangeType';
|
|
340
|
-
if (typeof obj_rangeType !== 'string') {
|
|
341
|
-
return new TypeError('Expected "string" but received "' + typeof obj_rangeType + '" (at "' + path_rangeType + '")');
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
})();
|
|
345
|
-
return v_error === undefined ? null : v_error;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
318
|
function validate$z(obj, path = 'RelativeDateFilterOptions') {
|
|
349
319
|
const v_error = (() => {
|
|
350
320
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
351
321
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
352
322
|
}
|
|
353
|
-
if (obj.anchorDate !== undefined) {
|
|
354
|
-
const obj_anchorDate = obj.anchorDate;
|
|
355
|
-
const path_anchorDate = path + '.anchorDate';
|
|
356
|
-
if (typeof obj_anchorDate !== 'string') {
|
|
357
|
-
return new TypeError('Expected "string" but received "' + typeof obj_anchorDate + '" (at "' + path_anchorDate + '")');
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
const obj_max = obj.max;
|
|
361
|
-
const path_max = path + '.max';
|
|
362
|
-
const referencepath_maxValidationError = validate$A(obj_max, path_max);
|
|
363
|
-
if (referencepath_maxValidationError !== null) {
|
|
364
|
-
let message = 'Object doesn\'t match RelativeDate (at "' + path_max + '")\n';
|
|
365
|
-
message += referencepath_maxValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
366
|
-
return new TypeError(message);
|
|
367
|
-
}
|
|
368
|
-
const obj_min = obj.min;
|
|
369
|
-
const path_min = path + '.min';
|
|
370
|
-
const referencepath_minValidationError = validate$A(obj_min, path_min);
|
|
371
|
-
if (referencepath_minValidationError !== null) {
|
|
372
|
-
let message = 'Object doesn\'t match RelativeDate (at "' + path_min + '")\n';
|
|
373
|
-
message += referencepath_minValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
374
|
-
return new TypeError(message);
|
|
375
|
-
}
|
|
376
323
|
})();
|
|
377
324
|
return v_error === undefined ? null : v_error;
|
|
378
325
|
}
|
|
@@ -382,37 +329,55 @@ function validate$y(obj, path = 'Filter') {
|
|
|
382
329
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
383
330
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
384
331
|
}
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
332
|
+
if (obj.categoricalFilterOptions !== undefined) {
|
|
333
|
+
const obj_categoricalFilterOptions = obj.categoricalFilterOptions;
|
|
334
|
+
const path_categoricalFilterOptions = path + '.categoricalFilterOptions';
|
|
335
|
+
const referencepath_categoricalFilterOptionsValidationError = validate$C(obj_categoricalFilterOptions, path_categoricalFilterOptions);
|
|
336
|
+
if (referencepath_categoricalFilterOptionsValidationError !== null) {
|
|
337
|
+
let message = 'Object doesn\'t match CategoricalFilterOptions (at "' + path_categoricalFilterOptions + '")\n';
|
|
338
|
+
message += referencepath_categoricalFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
339
|
+
return new TypeError(message);
|
|
340
|
+
}
|
|
392
341
|
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
342
|
+
if (obj.field !== undefined) {
|
|
343
|
+
const obj_field = obj.field;
|
|
344
|
+
const path_field = path + '.field';
|
|
345
|
+
const referencepath_fieldValidationError = validate$B(obj_field, path_field);
|
|
346
|
+
if (referencepath_fieldValidationError !== null) {
|
|
347
|
+
let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
|
|
348
|
+
message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
349
|
+
return new TypeError(message);
|
|
350
|
+
}
|
|
400
351
|
}
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
352
|
+
if (obj.fieldId !== undefined) {
|
|
353
|
+
const obj_fieldId = obj.fieldId;
|
|
354
|
+
const path_fieldId = path + '.fieldId';
|
|
355
|
+
const referencepath_fieldIdValidationError = validate$B(obj_fieldId, path_fieldId);
|
|
356
|
+
if (referencepath_fieldIdValidationError !== null) {
|
|
357
|
+
let message = 'Object doesn\'t match FieldId (at "' + path_fieldId + '")\n';
|
|
358
|
+
message += referencepath_fieldIdValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
359
|
+
return new TypeError(message);
|
|
360
|
+
}
|
|
408
361
|
}
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
362
|
+
if (obj.rangeFilterOptions !== undefined) {
|
|
363
|
+
const obj_rangeFilterOptions = obj.rangeFilterOptions;
|
|
364
|
+
const path_rangeFilterOptions = path + '.rangeFilterOptions';
|
|
365
|
+
const referencepath_rangeFilterOptionsValidationError = validate$A(obj_rangeFilterOptions, path_rangeFilterOptions);
|
|
366
|
+
if (referencepath_rangeFilterOptionsValidationError !== null) {
|
|
367
|
+
let message = 'Object doesn\'t match RangeFilterOptions (at "' + path_rangeFilterOptions + '")\n';
|
|
368
|
+
message += referencepath_rangeFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
369
|
+
return new TypeError(message);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
if (obj.relativeDateFilterOptions !== undefined) {
|
|
373
|
+
const obj_relativeDateFilterOptions = obj.relativeDateFilterOptions;
|
|
374
|
+
const path_relativeDateFilterOptions = path + '.relativeDateFilterOptions';
|
|
375
|
+
const referencepath_relativeDateFilterOptionsValidationError = validate$z(obj_relativeDateFilterOptions, path_relativeDateFilterOptions);
|
|
376
|
+
if (referencepath_relativeDateFilterOptionsValidationError !== null) {
|
|
377
|
+
let message = 'Object doesn\'t match RelativeDateFilterOptions (at "' + path_relativeDateFilterOptions + '")\n';
|
|
378
|
+
message += referencepath_relativeDateFilterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
379
|
+
return new TypeError(message);
|
|
380
|
+
}
|
|
416
381
|
}
|
|
417
382
|
if (obj.type !== undefined) {
|
|
418
383
|
const obj_type = obj.type;
|
|
@@ -566,13 +531,15 @@ function validate$t(obj, path = 'MetricInstance') {
|
|
|
566
531
|
message += referencepath_measurementPeriodValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
567
532
|
return new TypeError(message);
|
|
568
533
|
}
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
534
|
+
if (obj.semanticFilter !== undefined) {
|
|
535
|
+
const obj_semanticFilter = obj.semanticFilter;
|
|
536
|
+
const path_semanticFilter = path + '.semanticFilter';
|
|
537
|
+
const referencepath_semanticFilterValidationError = validate$u(obj_semanticFilter, path_semanticFilter);
|
|
538
|
+
if (referencepath_semanticFilterValidationError !== null) {
|
|
539
|
+
let message = 'Object doesn\'t match FlattenFilter (at "' + path_semanticFilter + '")\n';
|
|
540
|
+
message += referencepath_semanticFilterValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
541
|
+
return new TypeError(message);
|
|
542
|
+
}
|
|
576
543
|
}
|
|
577
544
|
})();
|
|
578
545
|
return v_error === undefined ? null : v_error;
|
|
@@ -608,7 +575,7 @@ function validate$r(obj, path = 'Measure') {
|
|
|
608
575
|
}
|
|
609
576
|
const obj_field = obj.field;
|
|
610
577
|
const path_field = path + '.field';
|
|
611
|
-
const referencepath_fieldValidationError = validate$
|
|
578
|
+
const referencepath_fieldValidationError = validate$B(obj_field, path_field);
|
|
612
579
|
if (referencepath_fieldValidationError !== null) {
|
|
613
580
|
let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
|
|
614
581
|
message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -641,7 +608,7 @@ function validate$p(obj, path = 'TimeDimension') {
|
|
|
641
608
|
}
|
|
642
609
|
const obj_field = obj.field;
|
|
643
610
|
const path_field = path + '.field';
|
|
644
|
-
const referencepath_fieldValidationError = validate$
|
|
611
|
+
const referencepath_fieldValidationError = validate$B(obj_field, path_field);
|
|
645
612
|
if (referencepath_fieldValidationError !== null) {
|
|
646
613
|
let message = 'Object doesn\'t match FieldId (at "' + path_field + '")\n';
|
|
647
614
|
message += referencepath_fieldValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -787,7 +754,7 @@ function validate$l(obj, path = 'InputMetric') {
|
|
|
787
754
|
}
|
|
788
755
|
const obj_extensionOptions = obj.extensionOptions;
|
|
789
756
|
const path_extensionOptions = path + '.extensionOptions';
|
|
790
|
-
const referencepath_extensionOptionsValidationError = validate$
|
|
757
|
+
const referencepath_extensionOptionsValidationError = validate$F(obj_extensionOptions, path_extensionOptions);
|
|
791
758
|
if (referencepath_extensionOptionsValidationError !== null) {
|
|
792
759
|
let message = 'Object doesn\'t match ExtensionOptions (at "' + path_extensionOptions + '")\n';
|
|
793
760
|
message += referencepath_extensionOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -795,7 +762,7 @@ function validate$l(obj, path = 'InputMetric') {
|
|
|
795
762
|
}
|
|
796
763
|
const obj_insightsOptions = obj.insightsOptions;
|
|
797
764
|
const path_insightsOptions = path + '.insightsOptions';
|
|
798
|
-
const referencepath_insightsOptionsValidationError = validate$
|
|
765
|
+
const referencepath_insightsOptionsValidationError = validate$D(obj_insightsOptions, path_insightsOptions);
|
|
799
766
|
if (referencepath_insightsOptionsValidationError !== null) {
|
|
800
767
|
let message = 'Object doesn\'t match InsightsOptions (at "' + path_insightsOptions + '")\n';
|
|
801
768
|
message += referencepath_insightsOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -836,7 +803,7 @@ function validate$k(obj, path = 'InsightBundleInput') {
|
|
|
836
803
|
}
|
|
837
804
|
const obj_metadata = obj.metadata;
|
|
838
805
|
const path_metadata = path + '.metadata';
|
|
839
|
-
const referencepath_metadataValidationError = validate$
|
|
806
|
+
const referencepath_metadataValidationError = validate$G(obj_metadata, path_metadata);
|
|
840
807
|
if (referencepath_metadataValidationError !== null) {
|
|
841
808
|
let message = 'Object doesn\'t match MetricMetadata (at "' + path_metadata + '")\n';
|
|
842
809
|
message += referencepath_metadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3340,7 +3307,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
3340
3307
|
config.semanticDataModel = untrustedConfig_semanticDataModel;
|
|
3341
3308
|
}
|
|
3342
3309
|
const untrustedConfig_field = untrustedConfig.field;
|
|
3343
|
-
const referenceFieldIdValidationError = validate$
|
|
3310
|
+
const referenceFieldIdValidationError = validate$B(untrustedConfig_field);
|
|
3344
3311
|
if (referenceFieldIdValidationError === null) {
|
|
3345
3312
|
config.field = untrustedConfig_field;
|
|
3346
3313
|
}
|
|
@@ -3447,4 +3414,4 @@ withDefaultLuvio((luvio) => {
|
|
|
3447
3414
|
});
|
|
3448
3415
|
|
|
3449
3416
|
export { createInsightsBatch, generateInsights, generateInsightsBasic, getInsightsBatch, getInsightsBatchNotifyChange, getInsightsBatch_imperative, getMetricFilterValues };
|
|
3450
|
-
// version: 1.
|
|
3417
|
+
// version: 1.324.0-f16f2a27c7
|
package/src/raml/api.raml
CHANGED
|
@@ -313,7 +313,9 @@ types:
|
|
|
313
313
|
type: array
|
|
314
314
|
items: Filter
|
|
315
315
|
required: false
|
|
316
|
-
semanticFilter:
|
|
316
|
+
semanticFilter: # TODO delete this?
|
|
317
|
+
type: FlattenFilter
|
|
318
|
+
required: false
|
|
317
319
|
BatchInput:
|
|
318
320
|
type: object
|
|
319
321
|
properties:
|
|
@@ -572,12 +574,6 @@ types:
|
|
|
572
574
|
required: false
|
|
573
575
|
RelativeDateFilterOptions:
|
|
574
576
|
type: object
|
|
575
|
-
properties:
|
|
576
|
-
min: RelativeDate
|
|
577
|
-
max: RelativeDate
|
|
578
|
-
anchorDate:
|
|
579
|
-
type: string
|
|
580
|
-
required: false
|
|
581
577
|
GetFilterValuesResponse:
|
|
582
578
|
type: object
|
|
583
579
|
properties:
|
|
@@ -635,6 +631,7 @@ types:
|
|
|
635
631
|
description: Options to apply to the entire batch
|
|
636
632
|
type: BatchOptions
|
|
637
633
|
required: false
|
|
634
|
+
# TODO make these more strict
|
|
638
635
|
Filter:
|
|
639
636
|
type: object
|
|
640
637
|
properties:
|
|
@@ -646,10 +643,21 @@ types:
|
|
|
646
643
|
'relative-date'
|
|
647
644
|
type: string
|
|
648
645
|
required: false
|
|
649
|
-
field:
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
646
|
+
field:
|
|
647
|
+
type: FieldId
|
|
648
|
+
required: false
|
|
649
|
+
fieldId:
|
|
650
|
+
type: FieldId
|
|
651
|
+
required: false
|
|
652
|
+
categoricalFilterOptions:
|
|
653
|
+
type: CategoricalFilterOptions
|
|
654
|
+
required: false
|
|
655
|
+
rangeFilterOptions:
|
|
656
|
+
type: RangeFilterOptions
|
|
657
|
+
required: false
|
|
658
|
+
relativeDateFilterOptions:
|
|
659
|
+
type: RelativeDateFilterOptions
|
|
660
|
+
required: false
|
|
653
661
|
GetFilterValuesRequest:
|
|
654
662
|
type: object
|
|
655
663
|
properties:
|