@kong-ui-public/analytics-config-store 1.4.42 → 1.4.43

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.
@@ -1,6 +1,6 @@
1
1
  import type { AnalyticsConfigV2 } from '@kong-ui-public/analytics-utilities';
2
2
  export type ConfigStoreState = null | AnalyticsConfigV2;
3
- export declare const useAnalyticsConfigStore: import("pinia").StoreDefinition<"analytics-config", Pick<{
3
+ export declare const useAnalyticsConfigStore: import("pinia").SetupStoreDefinition<"analytics-config", {
4
4
  analyticsConfig: import("vue").Ref<{
5
5
  analytics: {
6
6
  percentiles: boolean;
@@ -38,81 +38,5 @@ export declare const useAnalyticsConfigStore: import("pinia").StoreDefinition<"a
38
38
  requestIntervalCap: import("vue").ComputedRef<number>;
39
39
  isReady: () => Promise<void>;
40
40
  configError: import("vue").Ref<Error | null, Error | null>;
41
- }, "analyticsConfig" | "configError">, Pick<{
42
- analyticsConfig: import("vue").Ref<{
43
- analytics: {
44
- percentiles: boolean;
45
- retention_ms: import("@kong-ui-public/analytics-utilities").AnalyticsRetentionMs;
46
- } | null;
47
- requests: {
48
- retention_ms: import("@kong-ui-public/analytics-utilities").RequestsRetentionMs;
49
- } | null;
50
- ui?: {
51
- maxParallelRequests?: number | undefined;
52
- requestInterval?: number | undefined;
53
- requestIntervalCap?: number | undefined;
54
- } | undefined;
55
- } | null, ConfigStoreState | {
56
- analytics: {
57
- percentiles: boolean;
58
- retention_ms: import("@kong-ui-public/analytics-utilities").AnalyticsRetentionMs;
59
- } | null;
60
- requests: {
61
- retention_ms: import("@kong-ui-public/analytics-utilities").RequestsRetentionMs;
62
- } | null;
63
- ui?: {
64
- maxParallelRequests?: number | undefined;
65
- requestInterval?: number | undefined;
66
- requestIntervalCap?: number | undefined;
67
- } | undefined;
68
- }>;
69
- longRetention: import("vue").ComputedRef<boolean>;
70
- defaultQueryTimeForOrg: import("vue").ComputedRef<"7d">;
71
- loading: import("vue").ComputedRef<boolean>;
72
- analytics: import("vue").ComputedRef<boolean>;
73
- percentiles: import("vue").ComputedRef<boolean>;
74
- maxParallelRequests: import("vue").ComputedRef<number>;
75
- requestInterval: import("vue").ComputedRef<number>;
76
- requestIntervalCap: import("vue").ComputedRef<number>;
77
- isReady: () => Promise<void>;
78
- configError: import("vue").Ref<Error | null, Error | null>;
79
- }, "analytics" | "percentiles" | "maxParallelRequests" | "requestInterval" | "requestIntervalCap" | "longRetention" | "defaultQueryTimeForOrg" | "loading">, Pick<{
80
- analyticsConfig: import("vue").Ref<{
81
- analytics: {
82
- percentiles: boolean;
83
- retention_ms: import("@kong-ui-public/analytics-utilities").AnalyticsRetentionMs;
84
- } | null;
85
- requests: {
86
- retention_ms: import("@kong-ui-public/analytics-utilities").RequestsRetentionMs;
87
- } | null;
88
- ui?: {
89
- maxParallelRequests?: number | undefined;
90
- requestInterval?: number | undefined;
91
- requestIntervalCap?: number | undefined;
92
- } | undefined;
93
- } | null, ConfigStoreState | {
94
- analytics: {
95
- percentiles: boolean;
96
- retention_ms: import("@kong-ui-public/analytics-utilities").AnalyticsRetentionMs;
97
- } | null;
98
- requests: {
99
- retention_ms: import("@kong-ui-public/analytics-utilities").RequestsRetentionMs;
100
- } | null;
101
- ui?: {
102
- maxParallelRequests?: number | undefined;
103
- requestInterval?: number | undefined;
104
- requestIntervalCap?: number | undefined;
105
- } | undefined;
106
- }>;
107
- longRetention: import("vue").ComputedRef<boolean>;
108
- defaultQueryTimeForOrg: import("vue").ComputedRef<"7d">;
109
- loading: import("vue").ComputedRef<boolean>;
110
- analytics: import("vue").ComputedRef<boolean>;
111
- percentiles: import("vue").ComputedRef<boolean>;
112
- maxParallelRequests: import("vue").ComputedRef<number>;
113
- requestInterval: import("vue").ComputedRef<number>;
114
- requestIntervalCap: import("vue").ComputedRef<number>;
115
- isReady: () => Promise<void>;
116
- configError: import("vue").Ref<Error | null, Error | null>;
117
- }, "isReady">>;
41
+ }>;
118
42
  //# sourceMappingURL=analytics-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"analytics-config.d.ts","sourceRoot":"","sources":["../../../src/stores/analytics-config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAmB,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAU7F,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,iBAAiB,CAAA;AAEvD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAgDd,OAAO,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAb,OAAO,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAb,OAAO,CAAC,IAAI,CAAC;;cAwCjC,CAAA"}
1
+ {"version":3,"file":"analytics-config.d.ts","sourceRoot":"","sources":["../../../src/stores/analytics-config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAmB,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAU7F,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,iBAAiB,CAAA;AAEvD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAgDd,OAAO,CAAC,IAAI,CAAC;;EAwCjC,CAAA"}
@@ -2,7 +2,7 @@ import type { AllFilters, DatasourceConfig, Field } from '@kong-ui-public/analyt
2
2
  export type MappedDatasourceConfig = DatasourceConfig & {
3
3
  fieldsMap: Record<string, Field>;
4
4
  };
5
- export declare const useDatasourceConfigStore: import("pinia").StoreDefinition<"datasource-config", Pick<{
5
+ export declare const useDatasourceConfigStore: import("pinia").SetupStoreDefinition<"datasource-config", {
6
6
  datasourceConfig: import("vue").Ref<{
7
7
  name: string;
8
8
  showInUI: boolean;
@@ -110,221 +110,5 @@ export declare const useDatasourceConfigStore: import("pinia").StoreDefinition<"
110
110
  /** @deprecated Use queryFields instead. */
111
111
  metrics?: readonly string[];
112
112
  }) => AllFilters[]>;
113
- }, "datasourceConfig" | "datasourceConfigError">, Pick<{
114
- datasourceConfig: import("vue").Ref<{
115
- name: string;
116
- showInUI: boolean;
117
- fields: {
118
- name: string;
119
- showInUI: boolean;
120
- aggregation: boolean;
121
- group: boolean;
122
- filter?: {
123
- valueSource: "ksearch";
124
- ksearchName: string;
125
- valueType: string;
126
- operators: {
127
- type: "multi-value" | "single-value" | "no-value";
128
- ops: string[];
129
- }[];
130
- preSeededValues?: string[] | undefined;
131
- allowNewValues?: boolean | undefined;
132
- valuesNeedTranslation?: boolean | undefined;
133
- } | {
134
- valueType: "string";
135
- operators: {
136
- type: "multi-value" | "single-value" | "no-value";
137
- ops: string[];
138
- }[];
139
- preSeededValues?: string[] | undefined;
140
- allowNewValues?: boolean | undefined;
141
- valuesNeedTranslation?: boolean | undefined;
142
- } | {
143
- valueType: "number";
144
- operators: {
145
- type: "multi-value" | "single-value" | "no-value";
146
- ops: string[];
147
- }[];
148
- preSeededValues?: string[] | undefined;
149
- allowNewValues?: boolean | undefined;
150
- valuesNeedTranslation?: boolean | undefined;
151
- } | null | undefined;
152
- metricGroup?: string | undefined;
153
- supportedDimensions?: string[] | undefined;
154
- entityAttributes?: string[] | undefined;
155
- }[];
156
- timeRangeOptions: string[];
157
- granularityOptions?: string[] | undefined;
158
- defaultMetric?: string | undefined;
159
- }[] | undefined, DatasourceConfig[] | {
160
- name: string;
161
- showInUI: boolean;
162
- fields: {
163
- name: string;
164
- showInUI: boolean;
165
- aggregation: boolean;
166
- group: boolean;
167
- filter?: {
168
- valueSource: "ksearch";
169
- ksearchName: string;
170
- valueType: string;
171
- operators: {
172
- type: "multi-value" | "single-value" | "no-value";
173
- ops: string[];
174
- }[];
175
- preSeededValues?: string[] | undefined;
176
- allowNewValues?: boolean | undefined;
177
- valuesNeedTranslation?: boolean | undefined;
178
- } | {
179
- valueType: "string";
180
- operators: {
181
- type: "multi-value" | "single-value" | "no-value";
182
- ops: string[];
183
- }[];
184
- preSeededValues?: string[] | undefined;
185
- allowNewValues?: boolean | undefined;
186
- valuesNeedTranslation?: boolean | undefined;
187
- } | {
188
- valueType: "number";
189
- operators: {
190
- type: "multi-value" | "single-value" | "no-value";
191
- ops: string[];
192
- }[];
193
- preSeededValues?: string[] | undefined;
194
- allowNewValues?: boolean | undefined;
195
- valuesNeedTranslation?: boolean | undefined;
196
- } | null | undefined;
197
- metricGroup?: string | undefined;
198
- supportedDimensions?: string[] | undefined;
199
- entityAttributes?: string[] | undefined;
200
- }[];
201
- timeRangeOptions: string[];
202
- granularityOptions?: string[] | undefined;
203
- defaultMetric?: string | undefined;
204
- }[] | undefined>;
205
- datasourceConfigError: import("vue").Ref<Error | null, Error | null>;
206
- datasourceConfigMap: import("vue").ComputedRef<Record<string, MappedDatasourceConfig>>;
207
- getFieldDataSources: import("vue").ComputedRef<(fieldName: string) => string[]>;
208
- isFilterValidForDatasource: import("vue").ComputedRef<({ datasource, filter, }: {
209
- datasource: string;
210
- filter: AllFilters;
211
- }) => boolean>;
212
- loading: import("vue").ComputedRef<boolean>;
213
- isReady: () => Promise<void>;
214
- stripUnknownFilters: import("vue").ComputedRef<({ datasource, filters, queryFields, metrics, }: {
215
- datasource: string;
216
- filters: AllFilters[];
217
- queryFields?: readonly string[];
218
- /** @deprecated Use queryFields instead. */
219
- metrics?: readonly string[];
220
- }) => AllFilters[]>;
221
- }, "loading" | "datasourceConfigMap" | "getFieldDataSources" | "isFilterValidForDatasource" | "stripUnknownFilters">, Pick<{
222
- datasourceConfig: import("vue").Ref<{
223
- name: string;
224
- showInUI: boolean;
225
- fields: {
226
- name: string;
227
- showInUI: boolean;
228
- aggregation: boolean;
229
- group: boolean;
230
- filter?: {
231
- valueSource: "ksearch";
232
- ksearchName: string;
233
- valueType: string;
234
- operators: {
235
- type: "multi-value" | "single-value" | "no-value";
236
- ops: string[];
237
- }[];
238
- preSeededValues?: string[] | undefined;
239
- allowNewValues?: boolean | undefined;
240
- valuesNeedTranslation?: boolean | undefined;
241
- } | {
242
- valueType: "string";
243
- operators: {
244
- type: "multi-value" | "single-value" | "no-value";
245
- ops: string[];
246
- }[];
247
- preSeededValues?: string[] | undefined;
248
- allowNewValues?: boolean | undefined;
249
- valuesNeedTranslation?: boolean | undefined;
250
- } | {
251
- valueType: "number";
252
- operators: {
253
- type: "multi-value" | "single-value" | "no-value";
254
- ops: string[];
255
- }[];
256
- preSeededValues?: string[] | undefined;
257
- allowNewValues?: boolean | undefined;
258
- valuesNeedTranslation?: boolean | undefined;
259
- } | null | undefined;
260
- metricGroup?: string | undefined;
261
- supportedDimensions?: string[] | undefined;
262
- entityAttributes?: string[] | undefined;
263
- }[];
264
- timeRangeOptions: string[];
265
- granularityOptions?: string[] | undefined;
266
- defaultMetric?: string | undefined;
267
- }[] | undefined, DatasourceConfig[] | {
268
- name: string;
269
- showInUI: boolean;
270
- fields: {
271
- name: string;
272
- showInUI: boolean;
273
- aggregation: boolean;
274
- group: boolean;
275
- filter?: {
276
- valueSource: "ksearch";
277
- ksearchName: string;
278
- valueType: string;
279
- operators: {
280
- type: "multi-value" | "single-value" | "no-value";
281
- ops: string[];
282
- }[];
283
- preSeededValues?: string[] | undefined;
284
- allowNewValues?: boolean | undefined;
285
- valuesNeedTranslation?: boolean | undefined;
286
- } | {
287
- valueType: "string";
288
- operators: {
289
- type: "multi-value" | "single-value" | "no-value";
290
- ops: string[];
291
- }[];
292
- preSeededValues?: string[] | undefined;
293
- allowNewValues?: boolean | undefined;
294
- valuesNeedTranslation?: boolean | undefined;
295
- } | {
296
- valueType: "number";
297
- operators: {
298
- type: "multi-value" | "single-value" | "no-value";
299
- ops: string[];
300
- }[];
301
- preSeededValues?: string[] | undefined;
302
- allowNewValues?: boolean | undefined;
303
- valuesNeedTranslation?: boolean | undefined;
304
- } | null | undefined;
305
- metricGroup?: string | undefined;
306
- supportedDimensions?: string[] | undefined;
307
- entityAttributes?: string[] | undefined;
308
- }[];
309
- timeRangeOptions: string[];
310
- granularityOptions?: string[] | undefined;
311
- defaultMetric?: string | undefined;
312
- }[] | undefined>;
313
- datasourceConfigError: import("vue").Ref<Error | null, Error | null>;
314
- datasourceConfigMap: import("vue").ComputedRef<Record<string, MappedDatasourceConfig>>;
315
- getFieldDataSources: import("vue").ComputedRef<(fieldName: string) => string[]>;
316
- isFilterValidForDatasource: import("vue").ComputedRef<({ datasource, filter, }: {
317
- datasource: string;
318
- filter: AllFilters;
319
- }) => boolean>;
320
- loading: import("vue").ComputedRef<boolean>;
321
- isReady: () => Promise<void>;
322
- stripUnknownFilters: import("vue").ComputedRef<({ datasource, filters, queryFields, metrics, }: {
323
- datasource: string;
324
- filters: AllFilters[];
325
- queryFields?: readonly string[];
326
- /** @deprecated Use queryFields instead. */
327
- metrics?: readonly string[];
328
- }) => AllFilters[]>;
329
- }, "isReady">>;
113
+ }>;
330
114
  //# sourceMappingURL=datasource-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"datasource-config.d.ts","sourceRoot":"","sources":["../../../src/stores/datasource-config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAmB,gBAAgB,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAA;AAI/G,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,GAAG;IACtD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;CACjC,CAAA;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DA0Dd,MAAM,KAAG,MAAM,EAAE;oFAejC;QACD,UAAU,EAAE,MAAM,CAAA;QAClB,MAAM,EAAE,UAAU,CAAA;KACnB,KAAG,OAAO;;mBAlDa,OAAO,CAAC,IAAI,CAAC;oGAgFlC;QACD,UAAU,EAAE,MAAM,CAAA;QAClB,OAAO,EAAE,UAAU,EAAE,CAAA;QACrB,WAAW,CAAC,EAAE,SAAS,MAAM,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AAA;AAI/G,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,GAAG;IACtD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;CACjC,CAAA;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DA0Dd,MAAM,KAAG,MAAM,EAAE;oFAejC;QACD,UAAU,EAAE,MAAM,CAAA;QAClB,MAAM,EAAE,UAAU,CAAA;KACnB,KAAG,OAAO;;mBAlDa,OAAO,CAAC,IAAI,CAAC;oGAgFlC;QACD,UAAU,EAAE,MAAM,CAAA;QAClB,OAAO,EAAE,UAAU,EAAE,CAAA;QACrB,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;QAC/B,2CAA2C;QAC3C,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;KAC5B,KAAG,UAAU,EAAE;EA+ClB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/analytics-config-store",
3
- "version": "1.4.42",
3
+ "version": "1.4.43",
4
4
  "type": "module",
5
5
  "main": "./dist/vitals-config-store.umd.js",
6
6
  "module": "./dist/vitals-config-store.es.js",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "@kong-ui-public/analytics-utilities": "^12.41.0",
25
- "pinia": "^3.0.4",
25
+ "pinia": "^4.0.3",
26
26
  "vue": "^3.5.41"
27
27
  },
28
28
  "repository": {