@sisense/sdk-data 1.11.0 → 1.13.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.
Files changed (99) hide show
  1. package/dist/cjs/dimensional-model/analytics/factory.d.ts +47 -0
  2. package/dist/cjs/dimensional-model/analytics/factory.js +153 -0
  3. package/dist/cjs/dimensional-model/analytics/factory.test.d.ts +1 -0
  4. package/dist/cjs/dimensional-model/analytics/factory.test.js +99 -0
  5. package/dist/cjs/dimensional-model/attributes.d.ts +139 -0
  6. package/dist/cjs/dimensional-model/attributes.js +342 -0
  7. package/dist/cjs/dimensional-model/attributes.test.d.ts +1 -0
  8. package/dist/cjs/dimensional-model/attributes.test.js +154 -0
  9. package/dist/cjs/dimensional-model/base.d.ts +43 -0
  10. package/dist/cjs/dimensional-model/base.js +58 -0
  11. package/dist/cjs/dimensional-model/base.test.d.ts +1 -0
  12. package/dist/cjs/dimensional-model/base.test.js +17 -0
  13. package/dist/cjs/dimensional-model/data-model.d.ts +13 -0
  14. package/dist/cjs/dimensional-model/data-model.js +37 -0
  15. package/dist/cjs/dimensional-model/dimensions.d.ts +167 -0
  16. package/dist/cjs/dimensional-model/dimensions.js +307 -0
  17. package/dist/cjs/dimensional-model/dimensions.test.d.ts +1 -0
  18. package/dist/cjs/dimensional-model/dimensions.test.js +54 -0
  19. package/dist/cjs/dimensional-model/factory.d.ts +17 -0
  20. package/dist/cjs/dimensional-model/factory.js +54 -0
  21. package/dist/cjs/dimensional-model/filters/factory.d.ts +797 -0
  22. package/dist/cjs/dimensional-model/filters/factory.js +962 -0
  23. package/dist/cjs/dimensional-model/filters/factory.test.d.ts +1 -0
  24. package/dist/cjs/dimensional-model/filters/factory.test.js +366 -0
  25. package/dist/cjs/dimensional-model/filters/filters.d.ts +344 -0
  26. package/dist/cjs/dimensional-model/filters/filters.js +663 -0
  27. package/dist/cjs/dimensional-model/filters/filters.test.d.ts +1 -0
  28. package/dist/cjs/dimensional-model/filters/filters.test.js +225 -0
  29. package/dist/cjs/dimensional-model/filters/utils/attribute-measure-util.d.ts +47 -0
  30. package/dist/cjs/dimensional-model/filters/utils/attribute-measure-util.js +111 -0
  31. package/dist/cjs/dimensional-model/filters/utils/condition-filter-util.d.ts +21 -0
  32. package/dist/cjs/dimensional-model/filters/utils/condition-filter-util.js +196 -0
  33. package/dist/cjs/dimensional-model/filters/utils/date-time-filter-util.d.ts +2 -0
  34. package/dist/cjs/dimensional-model/filters/utils/date-time-filter-util.js +12 -0
  35. package/dist/cjs/dimensional-model/filters/utils/filter-code-util.d.ts +13 -0
  36. package/dist/cjs/dimensional-model/filters/utils/filter-code-util.js +58 -0
  37. package/dist/cjs/dimensional-model/filters/utils/filter-code-util.test.d.ts +1 -0
  38. package/dist/cjs/dimensional-model/filters/utils/filter-code-util.test.js +32 -0
  39. package/dist/cjs/dimensional-model/filters/utils/filter-from-jaql-util.d.ts +82 -0
  40. package/dist/cjs/dimensional-model/filters/utils/filter-from-jaql-util.js +215 -0
  41. package/dist/cjs/dimensional-model/filters/utils/filter-from-jaql-util.test.d.ts +1 -0
  42. package/dist/cjs/dimensional-model/filters/utils/filter-from-jaql-util.test.js +623 -0
  43. package/dist/cjs/dimensional-model/filters/utils/filter-matcher-utils.d.ts +5 -0
  44. package/dist/cjs/dimensional-model/filters/utils/filter-matcher-utils.js +174 -0
  45. package/dist/cjs/dimensional-model/filters/utils/filter-matcher-utils.test.d.ts +1 -0
  46. package/dist/cjs/dimensional-model/filters/utils/filter-matcher-utils.test.js +236 -0
  47. package/dist/cjs/dimensional-model/filters/utils/filter-types-util.d.ts +17 -0
  48. package/dist/cjs/dimensional-model/filters/utils/filter-types-util.js +79 -0
  49. package/dist/cjs/dimensional-model/filters/utils/types.d.ts +206 -0
  50. package/dist/cjs/dimensional-model/filters/utils/types.js +99 -0
  51. package/dist/cjs/dimensional-model/interfaces.d.ts +512 -0
  52. package/dist/cjs/dimensional-model/interfaces.js +31 -0
  53. package/dist/cjs/dimensional-model/measures/factory.d.ts +920 -0
  54. package/dist/cjs/dimensional-model/measures/factory.js +1188 -0
  55. package/dist/cjs/dimensional-model/measures/factory.test.d.ts +1 -0
  56. package/dist/cjs/dimensional-model/measures/factory.test.js +481 -0
  57. package/dist/cjs/dimensional-model/measures/measures.d.ts +217 -0
  58. package/dist/cjs/dimensional-model/measures/measures.js +416 -0
  59. package/dist/cjs/dimensional-model/measures/measures.test.d.ts +1 -0
  60. package/dist/cjs/dimensional-model/measures/measures.test.js +79 -0
  61. package/dist/cjs/dimensional-model/simple-column-types.d.ts +39 -0
  62. package/dist/cjs/dimensional-model/simple-column-types.js +134 -0
  63. package/dist/cjs/dimensional-model/simple-column-types.test.d.ts +1 -0
  64. package/dist/cjs/dimensional-model/simple-column-types.test.js +85 -0
  65. package/dist/cjs/dimensional-model/types.d.ts +256 -0
  66. package/dist/cjs/dimensional-model/types.js +298 -0
  67. package/dist/cjs/dimensional-model/types.test.d.ts +1 -0
  68. package/dist/cjs/dimensional-model/types.test.js +33 -0
  69. package/dist/cjs/index.d.ts +93 -0
  70. package/dist/cjs/index.js +123 -0
  71. package/dist/cjs/interfaces.d.ts +367 -0
  72. package/dist/cjs/interfaces.js +21 -0
  73. package/dist/cjs/translation/initialize-i18n.d.ts +2 -0
  74. package/dist/cjs/translation/initialize-i18n.js +14 -0
  75. package/dist/cjs/translation/resources/en.d.ts +28 -0
  76. package/dist/cjs/translation/resources/en.js +30 -0
  77. package/dist/cjs/translation/resources/index.d.ts +53 -0
  78. package/dist/cjs/translation/resources/index.js +10 -0
  79. package/dist/cjs/translation/resources/uk.d.ts +5 -0
  80. package/dist/cjs/translation/resources/uk.js +30 -0
  81. package/dist/cjs/translation/translatable-error.d.ts +5 -0
  82. package/dist/cjs/translation/translatable-error.js +15 -0
  83. package/dist/cjs/utils.d.ts +37 -0
  84. package/dist/cjs/utils.js +105 -0
  85. package/dist/cjs/utils.test.d.ts +1 -0
  86. package/dist/cjs/utils.test.js +158 -0
  87. package/dist/dimensional-model/analytics/factory.js +6 -4
  88. package/dist/dimensional-model/filters/factory.d.ts +81 -42
  89. package/dist/dimensional-model/filters/factory.js +125 -87
  90. package/dist/dimensional-model/filters/filters.d.ts +58 -13
  91. package/dist/dimensional-model/filters/filters.js +117 -27
  92. package/dist/dimensional-model/filters/utils/condition-filter-util.d.ts +4 -2
  93. package/dist/dimensional-model/filters/utils/condition-filter-util.js +30 -26
  94. package/dist/dimensional-model/filters/utils/filter-code-util.js +5 -1
  95. package/dist/dimensional-model/filters/utils/filter-from-jaql-util.d.ts +26 -11
  96. package/dist/dimensional-model/filters/utils/filter-from-jaql-util.js +58 -27
  97. package/dist/dimensional-model/filters/utils/filter-types-util.js +3 -3
  98. package/dist/dimensional-model/filters/utils/types.d.ts +6 -0
  99. package/package.json +18 -9
@@ -0,0 +1,344 @@
1
+ import { LevelAttribute, Attribute, Measure, Filter } from '../interfaces.js';
2
+ import { DimensionalElement } from '../base.js';
3
+ /**
4
+ * Different text operators that can be used with text filters
5
+ *
6
+ * @internal
7
+ */
8
+ export declare const TextOperators: {
9
+ Contains: string;
10
+ StartsWith: string;
11
+ EndsWith: string;
12
+ Equals: string;
13
+ DoesntEqual: string;
14
+ DoesntStartWith: string;
15
+ DoesntContain: string;
16
+ DoesntEndWith: string;
17
+ Like: string;
18
+ };
19
+ /**
20
+ * Different numeric operators that can be used with numeric filters
21
+ */
22
+ export declare const NumericOperators: {
23
+ Equals: string;
24
+ DoesntEqual: string;
25
+ From: string;
26
+ FromNotEqual: string;
27
+ To: string;
28
+ ToNotEqual: string;
29
+ };
30
+ /**
31
+ * Different date operators that can be used with date filters
32
+ *
33
+ * @internal
34
+ */
35
+ export declare const DateOperators: {
36
+ From: string;
37
+ To: string;
38
+ Last: string;
39
+ Next: string;
40
+ Anchor: string;
41
+ };
42
+ /**
43
+ * Different logical operators that can be used with logical filters
44
+ *
45
+ * @internal
46
+ */
47
+ export declare const LogicalOperators: {
48
+ Union: string;
49
+ Intersection: string;
50
+ Exclude: string;
51
+ };
52
+ /**
53
+ * Different ranking operators that can be used with ranking filter
54
+ *
55
+ * @internal
56
+ */
57
+ export declare const RankingOperators: {
58
+ Top: string;
59
+ Bottom: string;
60
+ };
61
+ /**
62
+ * Different filter types
63
+ *
64
+ * @internal
65
+ */
66
+ export declare const FilterTypes: {
67
+ logicalAttribute: string;
68
+ members: string;
69
+ exclude: string;
70
+ measure: string;
71
+ ranking: string;
72
+ text: string;
73
+ numeric: string;
74
+ date: string;
75
+ relativeDate: string;
76
+ cascading: string;
77
+ advanced: string;
78
+ };
79
+ /**
80
+ * base implementation for filter classes
81
+ *
82
+ * @internal
83
+ */
84
+ declare abstract class AbstractFilter extends DimensionalElement implements Filter {
85
+ /**
86
+ * Attribute this filter instance is filtering
87
+ */
88
+ readonly attribute: Attribute;
89
+ /**
90
+ * Filter type
91
+ */
92
+ readonly filterType: string;
93
+ /**
94
+ * Global filter identifier
95
+ */
96
+ readonly guid: string;
97
+ private _disabled;
98
+ /**
99
+ * Boolean flag whether the filter is disabled
100
+ *
101
+ * @internal
102
+ */
103
+ get disabled(): boolean;
104
+ set disabled(value: boolean);
105
+ constructor(att: Attribute, filterType: string, guid?: string);
106
+ get name(): string;
107
+ /**
108
+ * Gets JAQL representing this Filter instance
109
+ */
110
+ abstract filterJaql(): any;
111
+ /**
112
+ * gets the element's ID
113
+ */
114
+ abstract get id(): string;
115
+ /**
116
+ * Defines whether the filter is a scope filters
117
+ */
118
+ isScope: boolean;
119
+ /**
120
+ * Gets a serializable representation of the element
121
+ */
122
+ serializable(): any;
123
+ /**
124
+ * Gets the JAQL representation of this instance
125
+ *
126
+ * @param nested - defines whether the JAQL is nested within parent JAQL statement or a root JAQL element
127
+ */
128
+ jaql(nested?: boolean): any;
129
+ static checkAttributeSupport(attribute: Attribute): void;
130
+ static disabledJaql(nested?: boolean): any;
131
+ }
132
+ /**
133
+ * @internal
134
+ */
135
+ export declare class LogicalAttributeFilter extends AbstractFilter {
136
+ readonly filters: Filter[];
137
+ readonly operator: string;
138
+ constructor(filters: Filter[], operator: string, guid?: string);
139
+ /**
140
+ * gets the element's ID
141
+ */
142
+ get id(): string;
143
+ /**
144
+ * Gets a serializable representation of the element
145
+ */
146
+ serializable(): any;
147
+ /**
148
+ * Gets JAQL representing this Filter instance
149
+ */
150
+ filterJaql(): any;
151
+ }
152
+ /**
153
+ * @internal
154
+ */
155
+ export declare class MembersFilter extends AbstractFilter {
156
+ readonly members: any[];
157
+ /** @internal */
158
+ _deactivatedMembers: any[];
159
+ constructor(attribute: Attribute, members?: any[], _deactivatedMembers?: any[], guid?: string);
160
+ /**
161
+ * gets the element's ID
162
+ */
163
+ get id(): string;
164
+ /**
165
+ * Gets a serializable representation of the element
166
+ */
167
+ serializable(): any;
168
+ /**
169
+ * Gets JAQL representing this Filter instance
170
+ */
171
+ filterJaql(): any;
172
+ }
173
+ /**
174
+ * @internal
175
+ */
176
+ export declare class CascadingFilter extends AbstractFilter {
177
+ readonly filters: Filter[];
178
+ constructor(filters: Filter[], guid?: string);
179
+ /**
180
+ * gets the element's ID
181
+ */
182
+ get id(): string;
183
+ get disabled(): boolean;
184
+ set disabled(value: boolean);
185
+ /**
186
+ * Gets a serializable representation of the element
187
+ */
188
+ serializable(): any;
189
+ /**
190
+ * Gets JAQL representing this Filter instance
191
+ */
192
+ filterJaql(): any;
193
+ jaql(nested?: boolean): any;
194
+ }
195
+ /**
196
+ * @internal
197
+ */
198
+ export declare class ExcludeFilter extends AbstractFilter {
199
+ readonly filter: Filter;
200
+ readonly input?: Filter;
201
+ constructor(filter: Filter, input?: Filter, guid?: string);
202
+ /**
203
+ * gets the element's ID
204
+ */
205
+ get id(): string;
206
+ /**
207
+ * Gets a serializable representation of the element
208
+ */
209
+ serializable(): any;
210
+ /**
211
+ * Gets JAQL representing this Filter instance
212
+ */
213
+ filterJaql(): any;
214
+ }
215
+ /**
216
+ * @internal
217
+ */
218
+ export declare class DoubleOperatorFilter<Type> extends AbstractFilter {
219
+ operatorA?: string;
220
+ operatorB?: string;
221
+ valueA?: Type;
222
+ valueB?: Type;
223
+ constructor(att: Attribute, filterType: string, operatorA?: string, valueA?: Type, operatorB?: string, valueB?: Type, guid?: string);
224
+ /**
225
+ * gets the element's ID
226
+ */
227
+ get id(): string;
228
+ /**
229
+ * Gets a serializable representation of the element
230
+ */
231
+ serializable(): any;
232
+ /**
233
+ * Gets JAQL representing this Filter instance
234
+ */
235
+ filterJaql(): any;
236
+ }
237
+ /**
238
+ * @internal
239
+ */
240
+ export declare class MeasureFilter extends DoubleOperatorFilter<number> {
241
+ measure: Measure;
242
+ constructor(att: Attribute, measure: Measure, operatorA?: string, valueA?: number, operatorB?: string, valueB?: number, guid?: string);
243
+ /**
244
+ * gets the element's ID
245
+ */
246
+ get id(): string;
247
+ /**
248
+ * Gets a serializable representation of the element
249
+ */
250
+ serializable(): any;
251
+ jaql(nested?: boolean | undefined): any;
252
+ }
253
+ /**
254
+ * @internal
255
+ */
256
+ export declare class RankingFilter extends AbstractFilter {
257
+ count: number;
258
+ operator: string;
259
+ measure: Measure;
260
+ constructor(att: Attribute, measure: Measure, operator: string, count: number, guid?: string);
261
+ /**
262
+ * gets the element's ID
263
+ */
264
+ get id(): string;
265
+ /**
266
+ * Gets a serializable representation of the element
267
+ */
268
+ serializable(): any;
269
+ /**
270
+ * Gets JAQL representing this Filter instance
271
+ */
272
+ filterJaql(): any;
273
+ }
274
+ /**
275
+ * @internal
276
+ */
277
+ export declare class NumericFilter extends DoubleOperatorFilter<number> {
278
+ constructor(att: Attribute, operatorA?: string, valueA?: number, operatorB?: string, valueB?: number, guid?: string);
279
+ }
280
+ /**
281
+ * @internal
282
+ */
283
+ export declare class TextFilter extends DoubleOperatorFilter<string> {
284
+ constructor(att: Attribute, operator: string, value: string, guid?: string);
285
+ }
286
+ /**
287
+ * @internal
288
+ */
289
+ export declare class DateRangeFilter extends DoubleOperatorFilter<Date | string> {
290
+ constructor(l: LevelAttribute, valueFrom?: Date | string, valueTo?: Date | string, guid?: string);
291
+ get level(): LevelAttribute;
292
+ get from(): string;
293
+ get to(): string;
294
+ /**
295
+ * Gets JAQL representing this Filter instance
296
+ */
297
+ filterJaql(): any;
298
+ }
299
+ /**
300
+ * @internal
301
+ */
302
+ export declare class RelativeDateFilter extends AbstractFilter {
303
+ readonly offset: number;
304
+ readonly count: number;
305
+ readonly operator: string;
306
+ readonly anchor?: Date | string;
307
+ constructor(l: LevelAttribute, offset: number, count: number, operator?: string, anchor?: Date | string, guid?: string);
308
+ get level(): LevelAttribute;
309
+ /**
310
+ * gets the element's ID
311
+ */
312
+ get id(): string;
313
+ /**
314
+ * Gets a serializable representation of the element
315
+ */
316
+ serializable(): any;
317
+ /**
318
+ * Gets JAQL representing this Filter instance
319
+ *
320
+ */
321
+ filterJaql(): any;
322
+ }
323
+ /**
324
+ * @internal
325
+ */
326
+ export declare class CustomFilter extends AbstractFilter {
327
+ readonly jaqlExpression: any;
328
+ constructor(att: Attribute, jaql: any, guid?: string);
329
+ /**
330
+ * gets the element's ID
331
+ */
332
+ get id(): string;
333
+ /**
334
+ * Gets JAQL representing this Filter instance
335
+ *
336
+ */
337
+ filterJaql(): any;
338
+ }
339
+ /**
340
+ * @param json - Filter JSON representation
341
+ * @internal
342
+ */
343
+ export declare function createFilter(json: any): Filter;
344
+ export {};