@sisense/sdk-data 1.33.0 → 2.0.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 (97) hide show
  1. package/dist/cjs/dimensional-model/analytics/factory.d.ts +10 -10
  2. package/dist/cjs/dimensional-model/analytics/factory.js +15 -16
  3. package/dist/cjs/dimensional-model/attributes.d.ts +13 -6
  4. package/dist/cjs/dimensional-model/attributes.js +39 -12
  5. package/dist/cjs/dimensional-model/base.d.ts +3 -3
  6. package/dist/cjs/dimensional-model/base.js +7 -4
  7. package/dist/cjs/dimensional-model/compose-code-utils.d.ts +41 -0
  8. package/dist/cjs/dimensional-model/compose-code-utils.js +127 -0
  9. package/dist/cjs/dimensional-model/consts.d.ts +1 -0
  10. package/dist/cjs/dimensional-model/consts.js +4 -0
  11. package/dist/cjs/dimensional-model/data-model.d.ts +1 -1
  12. package/dist/cjs/dimensional-model/data-model.js +1 -1
  13. package/dist/cjs/dimensional-model/dimensions/dimensions.d.ts +6 -6
  14. package/dist/cjs/dimensional-model/dimensions/dimensions.js +34 -17
  15. package/dist/cjs/dimensional-model/dimensions/utils.d.ts +1 -0
  16. package/dist/cjs/dimensional-model/dimensions/utils.js +2 -1
  17. package/dist/cjs/dimensional-model/factory.js +5 -5
  18. package/dist/cjs/dimensional-model/filters/factory.d.ts +42 -42
  19. package/dist/cjs/dimensional-model/filters/factory.js +53 -168
  20. package/dist/cjs/dimensional-model/filters/filter-relations.d.ts +11 -2
  21. package/dist/cjs/dimensional-model/filters/filter-relations.js +14 -7
  22. package/dist/cjs/dimensional-model/filters/filters.d.ts +40 -24
  23. package/dist/cjs/dimensional-model/filters/filters.js +106 -56
  24. package/dist/cjs/dimensional-model/filters/helpers.d.ts +1 -1
  25. package/dist/cjs/dimensional-model/filters/helpers.js +2 -2
  26. package/dist/cjs/dimensional-model/filters/utils/attribute-measure-util.js +9 -17
  27. package/dist/cjs/dimensional-model/filters/utils/condition-filter-util.d.ts +1 -1
  28. package/dist/cjs/dimensional-model/filters/utils/condition-filter-util.js +31 -29
  29. package/dist/cjs/dimensional-model/filters/utils/filter-from-jaql-util.d.ts +1 -1
  30. package/dist/cjs/dimensional-model/filters/utils/filter-from-jaql-util.js +13 -19
  31. package/dist/cjs/dimensional-model/filters/utils/filter-types-util.d.ts +1 -1
  32. package/dist/cjs/dimensional-model/filters/utils/filter-types-util.js +1 -1
  33. package/dist/cjs/dimensional-model/filters/utils/types.d.ts +10 -0
  34. package/dist/cjs/dimensional-model/interfaces.d.ts +17 -7
  35. package/dist/cjs/dimensional-model/jaql-element.d.ts +13 -1
  36. package/dist/cjs/dimensional-model/jaql-element.js +54 -2
  37. package/dist/cjs/dimensional-model/measures/factory.d.ts +46 -53
  38. package/dist/cjs/dimensional-model/measures/factory.js +57 -186
  39. package/dist/cjs/dimensional-model/measures/measures.d.ts +10 -10
  40. package/dist/cjs/dimensional-model/measures/measures.js +35 -33
  41. package/dist/cjs/dimensional-model/types.d.ts +41 -16
  42. package/dist/cjs/index.d.ts +7 -7
  43. package/dist/cjs/index.js +7 -7
  44. package/dist/cjs/utils.d.ts +45 -22
  45. package/dist/cjs/utils.js +119 -47
  46. package/dist/dimensional-model/analytics/factory.d.ts +10 -10
  47. package/dist/dimensional-model/analytics/factory.js +15 -14
  48. package/dist/dimensional-model/attributes.d.ts +13 -6
  49. package/dist/dimensional-model/attributes.js +39 -12
  50. package/dist/dimensional-model/base.d.ts +3 -3
  51. package/dist/dimensional-model/base.js +7 -4
  52. package/dist/dimensional-model/compose-code-utils.d.ts +41 -0
  53. package/dist/dimensional-model/compose-code-utils.js +119 -0
  54. package/dist/dimensional-model/consts.d.ts +1 -0
  55. package/dist/dimensional-model/consts.js +1 -0
  56. package/dist/dimensional-model/data-model.d.ts +1 -1
  57. package/dist/dimensional-model/data-model.js +1 -1
  58. package/dist/dimensional-model/dimensions/dimensions.d.ts +6 -6
  59. package/dist/dimensional-model/dimensions/dimensions.js +35 -18
  60. package/dist/dimensional-model/dimensions/utils.d.ts +1 -0
  61. package/dist/dimensional-model/dimensions/utils.js +3 -2
  62. package/dist/dimensional-model/factory.js +5 -5
  63. package/dist/dimensional-model/filters/factory.d.ts +42 -42
  64. package/dist/dimensional-model/filters/factory.js +52 -126
  65. package/dist/dimensional-model/filters/filter-relations.d.ts +11 -2
  66. package/dist/dimensional-model/filters/filter-relations.js +14 -7
  67. package/dist/dimensional-model/filters/filters.d.ts +40 -24
  68. package/dist/dimensional-model/filters/filters.js +106 -56
  69. package/dist/dimensional-model/filters/helpers.d.ts +1 -1
  70. package/dist/dimensional-model/filters/helpers.js +2 -2
  71. package/dist/dimensional-model/filters/utils/attribute-measure-util.js +10 -18
  72. package/dist/dimensional-model/filters/utils/condition-filter-util.d.ts +1 -1
  73. package/dist/dimensional-model/filters/utils/condition-filter-util.js +31 -29
  74. package/dist/dimensional-model/filters/utils/filter-from-jaql-util.d.ts +1 -1
  75. package/dist/dimensional-model/filters/utils/filter-from-jaql-util.js +13 -19
  76. package/dist/dimensional-model/filters/utils/filter-types-util.d.ts +1 -1
  77. package/dist/dimensional-model/filters/utils/filter-types-util.js +1 -1
  78. package/dist/dimensional-model/filters/utils/types.d.ts +10 -0
  79. package/dist/dimensional-model/interfaces.d.ts +17 -7
  80. package/dist/dimensional-model/jaql-element.d.ts +13 -1
  81. package/dist/dimensional-model/jaql-element.js +52 -1
  82. package/dist/dimensional-model/measures/factory.d.ts +46 -53
  83. package/dist/dimensional-model/measures/factory.js +56 -143
  84. package/dist/dimensional-model/measures/measures.d.ts +10 -10
  85. package/dist/dimensional-model/measures/measures.js +35 -33
  86. package/dist/dimensional-model/types.d.ts +41 -16
  87. package/dist/index.d.ts +7 -7
  88. package/dist/index.js +7 -7
  89. package/dist/translation/initialize-i18n.js +1 -1
  90. package/dist/tsconfig.prod.cjs.tsbuildinfo +1 -1
  91. package/dist/utils.d.ts +45 -22
  92. package/dist/utils.js +94 -49
  93. package/package.json +5 -4
  94. package/dist/cjs/dimensional-model/filters/utils/filter-code-util.d.ts +0 -17
  95. package/dist/cjs/dimensional-model/filters/utils/filter-code-util.js +0 -82
  96. package/dist/dimensional-model/filters/utils/filter-code-util.d.ts +0 -17
  97. package/dist/dimensional-model/filters/utils/filter-code-util.js +0 -77
@@ -5,23 +5,22 @@
5
5
  /* eslint-disable @typescript-eslint/no-unsafe-return */
6
6
  /* eslint-disable @typescript-eslint/no-unsafe-call */
7
7
  /* eslint-disable @typescript-eslint/no-unsafe-argument */
8
- import * as m from './factory.js';
9
- import { Sort, AggregationTypes, MetadataTypes } from '../types.js';
8
+ import { TranslatableError } from '../../translation/translatable-error.js';
9
+ import { createAttribute, DimensionalAttribute } from '../attributes.js';
10
10
  import { DimensionalElement } from '../base.js';
11
- import { DimensionalAttribute, createAttribute } from '../attributes.js';
12
11
  import { create } from '../factory.js';
13
- import { TranslatableError } from '../../translation/translatable-error.js';
12
+ import { AggregationTypes, MetadataTypes, Sort } from '../types.js';
13
+ import * as m from './factory.js';
14
14
  /**
15
15
  * @internal
16
16
  */
17
17
  export class AbstractMeasure extends DimensionalElement {
18
- constructor(name, type, format, desc, sort, composeCode) {
19
- super(name, type, desc);
18
+ constructor(name, type, format, desc, sort, dataSource, composeCode) {
19
+ super(name, type, desc, dataSource, composeCode);
20
20
  this._sort = Sort.None;
21
21
  this._format = '#,#.00';
22
22
  this._format = format;
23
23
  this._sort = sort || Sort.None;
24
- this.composeCode = composeCode;
25
24
  }
26
25
  /**
27
26
  * Gets the sort definition of this instance
@@ -42,8 +41,8 @@ export class AbstractMeasure extends DimensionalElement {
42
41
  /**
43
42
  * Gets a serializable representation of the element
44
43
  */
45
- serializable() {
46
- const result = super.serializable();
44
+ serialize() {
45
+ const result = super.serialize();
47
46
  if (this.getFormat() !== undefined) {
48
47
  result.format = this.getFormat();
49
48
  }
@@ -59,8 +58,8 @@ export class AbstractMeasure extends DimensionalElement {
59
58
  * @internal
60
59
  */
61
60
  export class DimensionalBaseMeasure extends AbstractMeasure {
62
- constructor(name, attribute, agg, format, desc, sort, composeCode) {
63
- super(name, MetadataTypes.BaseMeasure, format, desc, sort, composeCode);
61
+ constructor(name, attribute, agg, format, desc, sort, dataSource, composeCode) {
62
+ super(name, MetadataTypes.BaseMeasure, format, desc, sort, dataSource, composeCode);
64
63
  this.attribute = attribute;
65
64
  this.aggregation = agg;
66
65
  }
@@ -117,7 +116,7 @@ export class DimensionalBaseMeasure extends AbstractMeasure {
117
116
  * @returns An instance representing the sorted {@link Measure} of this instance
118
117
  */
119
118
  sort(sort) {
120
- return new DimensionalBaseMeasure(this.name, this.attribute, this.aggregation, this._format, this.description, sort, this.composeCode);
119
+ return new DimensionalBaseMeasure(this.name, this.attribute, this.aggregation, this._format, this.description, sort, this.dataSource, this.composeCode);
121
120
  }
122
121
  /**
123
122
  * Gets a formatted {@link Measure} with the given definition
@@ -128,7 +127,7 @@ export class DimensionalBaseMeasure extends AbstractMeasure {
128
127
  * @returns An instance representing the formatted {@link Measure} of this instance
129
128
  */
130
129
  format(format) {
131
- return new DimensionalBaseMeasure(this.name, this.attribute, this.aggregation, format, this.description, this._sort, this.composeCode);
130
+ return new DimensionalBaseMeasure(this.name, this.attribute, this.aggregation, format, this.description, this._sort, this.dataSource, this.composeCode);
132
131
  }
133
132
  /**
134
133
  * gets the element's ID
@@ -139,10 +138,11 @@ export class DimensionalBaseMeasure extends AbstractMeasure {
139
138
  /**
140
139
  * Gets a serializable representation of the element
141
140
  */
142
- serializable() {
143
- const result = super.serializable();
141
+ serialize() {
142
+ const result = super.serialize();
143
+ result.__serializable = 'DimensionalBaseMeasure';
144
144
  result.aggregation = this.aggregation;
145
- result.attribute = this.attribute.serializable();
145
+ result.attribute = this.attribute.serialize();
146
146
  return result;
147
147
  }
148
148
  jaql(nested) {
@@ -166,8 +166,8 @@ export class DimensionalBaseMeasure extends AbstractMeasure {
166
166
  * @internal
167
167
  */
168
168
  export class DimensionalCalculatedMeasure extends AbstractMeasure {
169
- constructor(name, expression, context, format, desc, sort, composeCode) {
170
- super(name, MetadataTypes.CalculatedMeasure, format, desc, sort, composeCode);
169
+ constructor(name, expression, context, format, desc, sort, dataSource, composeCode) {
170
+ super(name, MetadataTypes.CalculatedMeasure, format, desc, sort, dataSource, composeCode);
171
171
  this.expression = expression;
172
172
  this.context = context;
173
173
  }
@@ -178,7 +178,7 @@ export class DimensionalCalculatedMeasure extends AbstractMeasure {
178
178
  * @returns An instance representing the sorted {@link Measure} of this instance
179
179
  */
180
180
  sort(sort) {
181
- return new DimensionalCalculatedMeasure(this.name, this.expression, this.context, this._format, this.description, sort, this.composeCode);
181
+ return new DimensionalCalculatedMeasure(this.name, this.expression, this.context, this._format, this.description, sort, this.dataSource, this.composeCode);
182
182
  }
183
183
  /**
184
184
  * Gets a formatted {@link Measure} with the given definition
@@ -189,7 +189,7 @@ export class DimensionalCalculatedMeasure extends AbstractMeasure {
189
189
  * @returns An instance representing the formatted {@link Measure} of this instance
190
190
  */
191
191
  format(format) {
192
- return new DimensionalCalculatedMeasure(this.name, this.expression, this.context, format, this.description, this._sort, this.composeCode);
192
+ return new DimensionalCalculatedMeasure(this.name, this.expression, this.context, format, this.description, this._sort, this.dataSource, this.composeCode);
193
193
  }
194
194
  /**
195
195
  * gets the element's ID
@@ -200,13 +200,14 @@ export class DimensionalCalculatedMeasure extends AbstractMeasure {
200
200
  /**
201
201
  * Gets a serializable representation of the element
202
202
  */
203
- serializable() {
204
- const result = super.serializable();
203
+ serialize() {
204
+ const result = super.serialize();
205
+ result.__serializable = 'DimensionalCalculatedMeasure';
205
206
  result.expression = this.expression;
206
- result.context = {};
207
- Object.getOwnPropertyNames(this.context).forEach((p) => {
208
- result.context[p] = this.context[p].serializable();
209
- });
207
+ result.context = Object.fromEntries(Object.entries(this.context).map(([key, value]) => [
208
+ key,
209
+ value.serialize ? value.serialize(value) : value,
210
+ ]));
210
211
  return result;
211
212
  }
212
213
  jaql(nested) {
@@ -235,8 +236,8 @@ export class DimensionalCalculatedMeasure extends AbstractMeasure {
235
236
  * @internal
236
237
  */
237
238
  export class DimensionalMeasureTemplate extends AbstractMeasure {
238
- constructor(name, attribute, format, desc, sort) {
239
- super(name, MetadataTypes.MeasureTemplate, format, desc, sort);
239
+ constructor(name, attribute, format, desc, sort, dataSource, composeCode) {
240
+ super(name, MetadataTypes.MeasureTemplate, format, desc, sort, dataSource, composeCode);
240
241
  this.attribute = attribute;
241
242
  }
242
243
  /**
@@ -248,9 +249,10 @@ export class DimensionalMeasureTemplate extends AbstractMeasure {
248
249
  /**
249
250
  * Gets a serializable representation of the element
250
251
  */
251
- serializable() {
252
- const result = super.serializable();
253
- result.attribute = this.attribute.serializable();
252
+ serialize() {
253
+ const result = super.serialize();
254
+ result.__serializable = 'DimensionalMeasureTemplate';
255
+ result.attribute = this.attribute.serialize();
254
256
  return result;
255
257
  }
256
258
  /**
@@ -260,7 +262,7 @@ export class DimensionalMeasureTemplate extends AbstractMeasure {
260
262
  * @returns An instance representing the sorted {@link MeasureTemplate} of this instance
261
263
  */
262
264
  sort(sort) {
263
- return new DimensionalMeasureTemplate(this.name, this.attribute, this._format, this.description, sort);
265
+ return new DimensionalMeasureTemplate(this.name, this.attribute, this._format, this.description, sort, this.dataSource, this.composeCode);
264
266
  }
265
267
  /**
266
268
  * Gets a formatted {@link Measure} with the given definition
@@ -269,7 +271,7 @@ export class DimensionalMeasureTemplate extends AbstractMeasure {
269
271
  * @returns An instance representing the formatted {@link Measure} of this instance
270
272
  */
271
273
  format(format) {
272
- return new DimensionalMeasureTemplate(this.name, this.attribute, format, this.description, this._sort);
274
+ return new DimensionalMeasureTemplate(this.name, this.attribute, format, this.description, this._sort, this.dataSource, this.composeCode);
273
275
  }
274
276
  /**
275
277
  * Gets the JAQL representation of this instance
@@ -1,9 +1,9 @@
1
- import { JaqlDataSource, type ConditionFilterJaql } from './filters/utils/types.js';
1
+ import type { ConditionFilterJaql, JaqlDataSource, JaqlDataSourceForDto } from './filters/utils/types.js';
2
2
  import { Attribute } from './interfaces.js';
3
3
  /**
4
4
  * @internal
5
5
  */
6
- export type { JaqlDataSource };
6
+ export type { JaqlDataSource, JaqlDataSourceForDto };
7
7
  /**
8
8
  * Different aggregation types
9
9
  */
@@ -141,24 +141,26 @@ export declare const MetadataTypes: {
141
141
  * Levels for {@link DateDimension}
142
142
  */
143
143
  export declare const DateLevels: {
144
- Years: string;
145
- Quarters: string;
146
- Months: string;
147
- Weeks: string;
148
- Days: string;
149
- Hours: string;
150
- MinutesRoundTo30: string;
151
- MinutesRoundTo15: string;
152
- Minutes: string;
153
- Seconds: string;
154
- AggHours: string;
155
- AggMinutesRoundTo30: string;
156
- AggMinutesRoundTo15: string;
157
- AggMinutesRoundTo1: string;
144
+ readonly Years: "Years";
145
+ readonly Quarters: "Quarters";
146
+ readonly Months: "Months";
147
+ readonly Weeks: "Weeks";
148
+ readonly Days: "Days";
149
+ readonly Hours: "Hours";
150
+ readonly MinutesRoundTo30: "MinutesRoundTo30";
151
+ readonly MinutesRoundTo15: "MinutesRoundTo15";
152
+ readonly Minutes: "Minutes";
153
+ readonly Seconds: "Seconds";
154
+ readonly AggHours: "AggHours";
155
+ readonly AggMinutesRoundTo30: "AggMinutesRoundTo30";
156
+ readonly AggMinutesRoundTo15: "AggMinutesRoundTo15";
157
+ readonly AggMinutesRoundTo1: "AggMinutesRoundTo1";
158
158
  /** @internal */
159
159
  readonly all: string[];
160
160
  };
161
161
  /** @internal */
162
+ export declare type DateLevel = Exclude<(typeof DateLevels)[keyof typeof DateLevels], typeof DateLevels.all>;
163
+ /** @internal */
162
164
  export declare enum DataType {
163
165
  TEXT = "text",
164
166
  NUMERIC = "numeric",
@@ -210,6 +212,7 @@ export declare type FormulaJaql = {
210
212
  title: string;
211
213
  formula: string;
212
214
  context?: Record<FormulaID, FormulaContext>;
215
+ datasource?: JaqlDataSource;
213
216
  };
214
217
  /** @internal */
215
218
  export declare type BaseFilterJaql = IncludeAllFilterJaql | IncludeMembersFilterJaql | ExcludeMembersFilterJaql | NumericFilterJaql | ConditionFilterJaql | AndFilterJaql<NumericFilterJaql | ConditionFilterJaql> | OrFilterJaql<NumericFilterJaql | ConditionFilterJaql>;
@@ -269,6 +272,27 @@ export declare type OrFilterJaql<FilterItem> = {
269
272
  * Abstract object with any unknown values
270
273
  */
271
274
  export declare type AnyObject = Record<string, any>;
275
+ /**
276
+ * JSON Value
277
+ *
278
+ * @internal
279
+ */
280
+ export declare type JSONValue = string | number | boolean | undefined | null | JSONArray | JSONObject;
281
+ /**
282
+ * JSON Array
283
+ *
284
+ * @internal
285
+ */
286
+ export interface JSONArray extends Array<JSONValue> {
287
+ }
288
+ /**
289
+ * JSON Object
290
+ *
291
+ * @internal
292
+ */
293
+ export interface JSONObject {
294
+ [key: string]: JSONValue;
295
+ }
272
296
  /**
273
297
  * @internal
274
298
  */
@@ -393,6 +417,7 @@ export declare type MetadataItemJaql = {
393
417
  sortingLastDimension?: boolean;
394
418
  initialized?: boolean;
395
419
  };
420
+ datasource?: JaqlDataSource;
396
421
  };
397
422
  /**
398
423
  * @internal
package/dist/index.d.ts CHANGED
@@ -6,18 +6,18 @@ import './translation/initialize-i18n.js';
6
6
  * @group Data Model Utilities
7
7
  * Utility functions for creating attributes and dimensions in code.
8
8
  */
9
- export * from './interfaces.js';
10
- export * from './dimensional-model/types.js';
11
- export * from './dimensional-model/interfaces.js';
9
+ export * from './dimensional-model/attributes.js';
12
10
  export * from './dimensional-model/base.js';
13
11
  export * from './dimensional-model/data-model.js';
14
- export * from './dimensional-model/attributes.js';
15
12
  export * from './dimensional-model/dimensions/index.js';
16
13
  export * from './dimensional-model/factory.js';
17
- export * from './dimensional-model/jaql-element.js';
18
- export * from './dimensional-model/filters/filters.js';
19
14
  export * from './dimensional-model/filters/filter-config-utils.js';
15
+ export * from './dimensional-model/filters/filters.js';
20
16
  export { createFilterMatcher } from './dimensional-model/filters/utils/filter-matcher-utils.js';
17
+ export * from './dimensional-model/interfaces.js';
18
+ export * from './dimensional-model/jaql-element.js';
19
+ export * from './dimensional-model/types.js';
20
+ export * from './interfaces.js';
21
21
  /**
22
22
  * Functions to create date, text, or numeric filters on specified data.
23
23
  *
@@ -92,6 +92,6 @@ export * from './dimensional-model/simple-column-types.js';
92
92
  * @group Factories
93
93
  */
94
94
  export * as analyticsFactory from './dimensional-model/analytics/factory.js';
95
- export * from './utils.js';
96
95
  export * from './dimensional-model/filters/index.js';
97
96
  export { type TranslationDictionary, PACKAGE_NAMESPACE as translationNamespace, } from './translation/resources/index.js';
97
+ export * from './utils.js';
package/dist/index.js CHANGED
@@ -6,18 +6,18 @@ import './translation/initialize-i18n.js';
6
6
  * @group Data Model Utilities
7
7
  * Utility functions for creating attributes and dimensions in code.
8
8
  */
9
- export * from './interfaces.js';
10
- export * from './dimensional-model/types.js';
11
- export * from './dimensional-model/interfaces.js';
9
+ export * from './dimensional-model/attributes.js';
12
10
  export * from './dimensional-model/base.js';
13
11
  export * from './dimensional-model/data-model.js';
14
- export * from './dimensional-model/attributes.js';
15
12
  export * from './dimensional-model/dimensions/index.js';
16
13
  export * from './dimensional-model/factory.js';
17
- export * from './dimensional-model/jaql-element.js';
18
- export * from './dimensional-model/filters/filters.js';
19
14
  export * from './dimensional-model/filters/filter-config-utils.js';
15
+ export * from './dimensional-model/filters/filters.js';
20
16
  export { createFilterMatcher } from './dimensional-model/filters/utils/filter-matcher-utils.js';
17
+ export * from './dimensional-model/interfaces.js';
18
+ export * from './dimensional-model/jaql-element.js';
19
+ export * from './dimensional-model/types.js';
20
+ export * from './interfaces.js';
21
21
  /**
22
22
  * Functions to create date, text, or numeric filters on specified data.
23
23
  *
@@ -92,6 +92,6 @@ export * from './dimensional-model/simple-column-types.js';
92
92
  * @group Factories
93
93
  */
94
94
  export * as analyticsFactory from './dimensional-model/analytics/factory.js';
95
- export * from './utils.js';
96
95
  export * from './dimensional-model/filters/index.js';
97
96
  export { PACKAGE_NAMESPACE as translationNamespace, } from './translation/resources/index.js';
97
+ export * from './utils.js';
@@ -1,5 +1,5 @@
1
1
  import { initI18next } from '@sisense/sdk-common';
2
- import { resources, PACKAGE_NAMESPACE } from './resources/index.js';
2
+ import { PACKAGE_NAMESPACE, resources } from './resources/index.js';
3
3
  export function initializeI18n() {
4
4
  return initI18next({
5
5
  resource: resources,