@gooddata/sdk-backend-tiger 10.35.0-alpha.5 → 10.35.0-alpha.50
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/esm/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/__version.js.map +1 -1
- package/esm/auth.d.ts.map +1 -1
- package/esm/backend/features/feature.d.ts.map +1 -1
- package/esm/backend/features/feature.js +2 -1
- package/esm/backend/features/feature.js.map +1 -1
- package/esm/backend/features/index.d.ts.map +1 -1
- package/esm/backend/index.d.ts.map +1 -1
- package/esm/backend/organization/fromBackend/userConvertor.d.ts.map +1 -1
- package/esm/backend/organization/index.d.ts.map +1 -1
- package/esm/backend/organization/index.js +5 -1
- package/esm/backend/organization/index.js.map +1 -1
- package/esm/backend/organization/notificationChannels.d.ts.map +1 -1
- package/esm/backend/organization/notificationsQuery.js +1 -1
- package/esm/backend/organization/notificationsQuery.js.map +1 -1
- package/esm/backend/organization/permissions.d.ts.map +1 -1
- package/esm/backend/organization/securitySettings.d.ts.map +1 -1
- package/esm/backend/organization/users.d.ts.map +1 -1
- package/esm/backend/tigerSpecificFunctions.d.ts.map +1 -1
- package/esm/backend/uiFeatures.d.ts +121 -118
- package/esm/backend/uiFeatures.d.ts.map +1 -1
- package/esm/backend/uiFeatures.js +6 -3
- package/esm/backend/uiFeatures.js.map +1 -1
- package/esm/backend/workspace/accessControl/index.d.ts.map +1 -1
- package/esm/backend/workspace/accessControl/index.js.map +1 -1
- package/esm/backend/workspace/attributeHierarchies/index.d.ts.map +1 -1
- package/esm/backend/workspace/attributes/elements/date.d.ts.map +1 -1
- package/esm/backend/workspace/attributes/elements/dependentDateFilters.d.ts.map +1 -1
- package/esm/backend/workspace/attributes/elements/dependentDateFilters.js +16 -7
- package/esm/backend/workspace/attributes/elements/dependentDateFilters.js.map +1 -1
- package/esm/backend/workspace/attributes/index.d.ts.map +1 -1
- package/esm/backend/workspace/automations/index.d.ts.map +1 -1
- package/esm/backend/workspace/catalog/availableItemsFactory.d.ts.map +1 -1
- package/esm/backend/workspace/catalog/availableItemsFactory.js.map +1 -1
- package/esm/backend/workspace/catalog/factory.d.ts.map +1 -1
- package/esm/backend/workspace/dashboards/index.d.ts.map +1 -1
- package/esm/backend/workspace/dashboards/index.js.map +1 -1
- package/esm/backend/workspace/dataFilters/index.d.ts.map +1 -1
- package/esm/backend/workspace/dataFilters/index.js +1 -1
- package/esm/backend/workspace/dataFilters/index.js.map +1 -1
- package/esm/backend/workspace/datasets/index.d.ts.map +1 -1
- package/esm/backend/workspace/datasets/index.js.map +1 -1
- package/esm/backend/workspace/dateFilterConfigs/index.d.ts.map +1 -1
- package/esm/backend/workspace/dateFilterConfigs/index.js +5 -2
- package/esm/backend/workspace/dateFilterConfigs/index.js.map +1 -1
- package/esm/backend/workspace/execution/executionResult.d.ts.map +1 -1
- package/esm/backend/workspace/execution/preparedExecution.d.ts.map +1 -1
- package/esm/backend/workspace/execution/utils.d.ts.map +1 -1
- package/esm/backend/workspace/exportDefinitions/comparator.d.ts.map +1 -1
- package/esm/backend/workspace/exportDefinitions/index.d.ts.map +1 -1
- package/esm/backend/workspace/exportDefinitions/index.js.map +1 -1
- package/esm/backend/workspace/facts/index.d.ts.map +1 -1
- package/esm/backend/workspace/facts/index.js.map +1 -1
- package/esm/backend/workspace/index.d.ts.map +1 -1
- package/esm/backend/workspace/insights/comparator.d.ts.map +1 -1
- package/esm/backend/workspace/insights/index.d.ts.map +1 -1
- package/esm/backend/workspace/insights/index.js.map +1 -1
- package/esm/backend/workspace/ldm/index.d.ts.map +1 -1
- package/esm/backend/workspace/ldm/index.js +1 -1
- package/esm/backend/workspace/ldm/index.js.map +1 -1
- package/esm/backend/workspace/measures/index.d.ts.map +1 -1
- package/esm/backend/workspace/measures/index.js.map +1 -1
- package/esm/backend/workspace/measures/measureExpressionTokens.d.ts.map +1 -1
- package/esm/backend/workspace/permissions/index.d.ts.map +1 -1
- package/esm/backend/workspace/permissions/index.js.map +1 -1
- package/esm/backend/workspace/settings/index.d.ts.map +1 -1
- package/esm/backend/workspace/settings/index.js +2 -2
- package/esm/backend/workspace/settings/index.js.map +1 -1
- package/esm/backend/workspace/styling/index.d.ts.map +1 -1
- package/esm/backend/workspace/styling/index.js.map +1 -1
- package/esm/convertors/fromBackend/AccessControlConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/AutomationConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/CatalogConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/ColorPaletteConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/DateFilterConfigurationConverter.d.ts +2 -1
- package/esm/convertors/fromBackend/DateFilterConfigurationConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/DateFilterConfigurationConverter.js +317 -243
- package/esm/convertors/fromBackend/DateFilterConfigurationConverter.js.map +1 -1
- package/esm/convertors/fromBackend/ExportDefinitionsConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/ExportMetadataConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/GraphConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/IdSanitization.d.ts.map +1 -1
- package/esm/convertors/fromBackend/InsightConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/MetadataConverter.d.ts +1 -1
- package/esm/convertors/fromBackend/MetadataConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/NotificationChannelsConvertor.d.ts.map +1 -1
- package/esm/convertors/fromBackend/SettingsConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/ThemeConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/UsersConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/WorkspaceConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/afm/FilterConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/afm/MeasureConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/analyticalDashboards/AnalyticalDashboardConverter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/dateFormatting/dateValueParser.d.ts.map +1 -1
- package/esm/convertors/fromBackend/dateFormatting/defaultDateFormatter.d.ts.map +1 -1
- package/esm/convertors/fromBackend/visualizationObjects/VisualizationObjectConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/ColorPaletteConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/ExportDefinitionsConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/ExportMetadataConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/IdSanitization.d.ts.map +1 -1
- package/esm/convertors/toBackend/InsightConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/ThemeConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/WorkspaceConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/afm/FilterConverter.d.ts.map +1 -1
- package/esm/convertors/toBackend/afm/FilterConverter.js +18 -54
- package/esm/convertors/toBackend/afm/FilterConverter.js.map +1 -1
- package/esm/convertors/toBackend/afm/MeasureConverter.js.map +1 -1
- package/esm/sdk-backend-tiger.d.ts +1 -25
- package/esm/tsdoc-metadata.json +1 -1
- package/esm/types/refTypeMapping.d.ts +1 -25
- package/esm/types/refTypeMapping.d.ts.map +1 -1
- package/esm/utils/api.d.ts.map +1 -1
- package/esm/utils/downloadFile.d.ts.map +1 -1
- package/esm/utils/filterLocalidentifier.d.ts.map +1 -1
- package/esm/utils/fixNumber.d.ts.map +1 -1
- package/esm/utils/jwt.d.ts.map +1 -1
- package/package.json +15 -14
|
@@ -1,255 +1,329 @@
|
|
|
1
1
|
// (C) 2024-2025 GoodData Corporation
|
|
2
2
|
import { idRef, isDateFilterGranularity, } from "@gooddata/sdk-model";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
visible: true,
|
|
11
|
-
},
|
|
12
|
-
absoluteForm: {
|
|
13
|
-
localIdentifier: "ABSOLUTE_FORM",
|
|
14
|
-
type: "absoluteForm",
|
|
15
|
-
name: "",
|
|
16
|
-
visible: true,
|
|
17
|
-
},
|
|
18
|
-
relativeForm: {
|
|
19
|
-
type: "relativeForm",
|
|
20
|
-
// month has to be the first as it should be the default selected option
|
|
21
|
-
availableGranularities: [
|
|
22
|
-
"GDC.time.month",
|
|
23
|
-
"GDC.time.minute",
|
|
24
|
-
"GDC.time.hour",
|
|
25
|
-
"GDC.time.date",
|
|
26
|
-
"GDC.time.week_us",
|
|
27
|
-
"GDC.time.quarter",
|
|
28
|
-
"GDC.time.year",
|
|
29
|
-
],
|
|
30
|
-
localIdentifier: "RELATIVE_FORM",
|
|
31
|
-
name: "",
|
|
32
|
-
visible: true,
|
|
33
|
-
},
|
|
34
|
-
relativePresets: [
|
|
35
|
-
{
|
|
36
|
-
from: -14,
|
|
37
|
-
to: 0,
|
|
38
|
-
granularity: "GDC.time.minute",
|
|
39
|
-
localIdentifier: "LAST_15_MINUTES",
|
|
40
|
-
type: "relativePreset",
|
|
41
|
-
visible: true,
|
|
42
|
-
name: "",
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
from: -29,
|
|
46
|
-
to: 0,
|
|
47
|
-
granularity: "GDC.time.minute",
|
|
48
|
-
localIdentifier: "LAST_30_MINUTES",
|
|
49
|
-
type: "relativePreset",
|
|
50
|
-
visible: true,
|
|
51
|
-
name: "",
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
from: -44,
|
|
55
|
-
to: 0,
|
|
56
|
-
granularity: "GDC.time.minute",
|
|
57
|
-
localIdentifier: "LAST_45_MINUTES",
|
|
58
|
-
type: "relativePreset",
|
|
59
|
-
visible: true,
|
|
60
|
-
name: "",
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
from: -59,
|
|
64
|
-
to: 0,
|
|
65
|
-
granularity: "GDC.time.minute",
|
|
66
|
-
localIdentifier: "LAST_60_MINUTES",
|
|
67
|
-
type: "relativePreset",
|
|
68
|
-
visible: true,
|
|
69
|
-
name: "",
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
from: -1,
|
|
73
|
-
to: -1,
|
|
74
|
-
granularity: "GDC.time.hour",
|
|
75
|
-
localIdentifier: "LAST_HOUR",
|
|
76
|
-
type: "relativePreset",
|
|
77
|
-
visible: true,
|
|
78
|
-
name: "",
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
from: -7,
|
|
82
|
-
to: 0,
|
|
83
|
-
granularity: "GDC.time.hour",
|
|
84
|
-
localIdentifier: "LAST_8_HOURS",
|
|
85
|
-
type: "relativePreset",
|
|
86
|
-
visible: true,
|
|
87
|
-
name: "",
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
from: -11,
|
|
91
|
-
to: 0,
|
|
92
|
-
granularity: "GDC.time.hour",
|
|
93
|
-
localIdentifier: "LAST_12_HOURS",
|
|
94
|
-
type: "relativePreset",
|
|
95
|
-
visible: true,
|
|
96
|
-
name: "",
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
from: -23,
|
|
100
|
-
to: 0,
|
|
101
|
-
granularity: "GDC.time.hour",
|
|
102
|
-
localIdentifier: "LAST_24_HOURS",
|
|
103
|
-
type: "relativePreset",
|
|
104
|
-
visible: true,
|
|
105
|
-
name: "",
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
from: 0,
|
|
109
|
-
to: 0,
|
|
110
|
-
granularity: "GDC.time.week_us",
|
|
111
|
-
localIdentifier: "THIS_WEEK",
|
|
112
|
-
type: "relativePreset",
|
|
113
|
-
visible: true,
|
|
114
|
-
name: "",
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
from: -1,
|
|
118
|
-
to: -1,
|
|
119
|
-
granularity: "GDC.time.week_us",
|
|
120
|
-
localIdentifier: "LAST_WEEK",
|
|
121
|
-
type: "relativePreset",
|
|
122
|
-
visible: true,
|
|
123
|
-
name: "",
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
from: -1,
|
|
127
|
-
to: 0,
|
|
128
|
-
granularity: "GDC.time.week_us",
|
|
129
|
-
localIdentifier: "LAST_2_WEEKS",
|
|
130
|
-
type: "relativePreset",
|
|
131
|
-
visible: true,
|
|
132
|
-
name: "",
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
from: 0,
|
|
136
|
-
to: 0,
|
|
137
|
-
granularity: "GDC.time.date",
|
|
138
|
-
localIdentifier: "TODAY",
|
|
139
|
-
type: "relativePreset",
|
|
140
|
-
visible: true,
|
|
141
|
-
name: "",
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
from: -1,
|
|
145
|
-
to: -1,
|
|
146
|
-
granularity: "GDC.time.date",
|
|
147
|
-
localIdentifier: "YESTERDAY",
|
|
148
|
-
type: "relativePreset",
|
|
149
|
-
visible: true,
|
|
150
|
-
name: "",
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
from: -6,
|
|
154
|
-
to: 0,
|
|
155
|
-
granularity: "GDC.time.date",
|
|
156
|
-
localIdentifier: "LAST_7_DAYS",
|
|
157
|
-
type: "relativePreset",
|
|
158
|
-
visible: true,
|
|
159
|
-
name: "",
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
from: -29,
|
|
163
|
-
to: 0,
|
|
164
|
-
granularity: "GDC.time.date",
|
|
165
|
-
localIdentifier: "LAST_30_DAYS",
|
|
166
|
-
type: "relativePreset",
|
|
167
|
-
visible: true,
|
|
168
|
-
name: "",
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
from: -89,
|
|
172
|
-
to: 0,
|
|
173
|
-
granularity: "GDC.time.date",
|
|
174
|
-
localIdentifier: "LAST_90_DAYS",
|
|
175
|
-
type: "relativePreset",
|
|
176
|
-
visible: true,
|
|
177
|
-
name: "",
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
from: 0,
|
|
181
|
-
to: 0,
|
|
182
|
-
granularity: "GDC.time.month",
|
|
183
|
-
localIdentifier: "THIS_MONTH",
|
|
184
|
-
type: "relativePreset",
|
|
185
|
-
visible: true,
|
|
186
|
-
name: "",
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
from: -1,
|
|
190
|
-
to: -1,
|
|
191
|
-
granularity: "GDC.time.month",
|
|
192
|
-
localIdentifier: "LAST_MONTH",
|
|
193
|
-
type: "relativePreset",
|
|
194
|
-
visible: true,
|
|
195
|
-
name: "",
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
from: -11,
|
|
199
|
-
to: 0,
|
|
200
|
-
granularity: "GDC.time.month",
|
|
201
|
-
localIdentifier: "LAST_12_MONTHS",
|
|
202
|
-
type: "relativePreset",
|
|
203
|
-
visible: true,
|
|
3
|
+
const createDefaultDateFilterConfig = (enableToDateFilters = false) => {
|
|
4
|
+
return {
|
|
5
|
+
ref: idRef("defaultDateFilterProjectConfig"),
|
|
6
|
+
selectedOption: "THIS_MONTH",
|
|
7
|
+
allTime: {
|
|
8
|
+
localIdentifier: "ALL_TIME",
|
|
9
|
+
type: "allTime",
|
|
204
10
|
name: "",
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
from: 0,
|
|
208
|
-
to: 0,
|
|
209
|
-
granularity: "GDC.time.quarter",
|
|
210
|
-
localIdentifier: "THIS_QUARTER",
|
|
211
|
-
type: "relativePreset",
|
|
212
11
|
visible: true,
|
|
213
|
-
name: "",
|
|
214
12
|
},
|
|
215
|
-
{
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
granularity: "GDC.time.quarter",
|
|
219
|
-
localIdentifier: "LAST_QUARTER",
|
|
220
|
-
type: "relativePreset",
|
|
221
|
-
visible: true,
|
|
13
|
+
absoluteForm: {
|
|
14
|
+
localIdentifier: "ABSOLUTE_FORM",
|
|
15
|
+
type: "absoluteForm",
|
|
222
16
|
name: "",
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
from: -3,
|
|
226
|
-
to: 0,
|
|
227
|
-
granularity: "GDC.time.quarter",
|
|
228
|
-
localIdentifier: "LAST_4_QUARTERS",
|
|
229
|
-
type: "relativePreset",
|
|
230
17
|
visible: true,
|
|
231
|
-
name: "",
|
|
232
18
|
},
|
|
233
|
-
{
|
|
234
|
-
|
|
235
|
-
to
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
19
|
+
relativeForm: {
|
|
20
|
+
type: "relativeForm",
|
|
21
|
+
// month has to be the first as it should be the default selected option
|
|
22
|
+
availableGranularities: [
|
|
23
|
+
"GDC.time.month",
|
|
24
|
+
"GDC.time.minute",
|
|
25
|
+
"GDC.time.hour",
|
|
26
|
+
"GDC.time.date",
|
|
27
|
+
"GDC.time.week_us",
|
|
28
|
+
"GDC.time.quarter",
|
|
29
|
+
"GDC.time.year",
|
|
30
|
+
],
|
|
31
|
+
localIdentifier: "RELATIVE_FORM",
|
|
240
32
|
name: "",
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
from: -1,
|
|
244
|
-
to: -1,
|
|
245
|
-
granularity: "GDC.time.year",
|
|
246
|
-
localIdentifier: "LAST_YEAR",
|
|
247
|
-
type: "relativePreset",
|
|
248
33
|
visible: true,
|
|
249
|
-
name: "",
|
|
250
34
|
},
|
|
251
|
-
|
|
252
|
-
|
|
35
|
+
relativePresets: [
|
|
36
|
+
{
|
|
37
|
+
from: -14,
|
|
38
|
+
to: 0,
|
|
39
|
+
granularity: "GDC.time.minute",
|
|
40
|
+
localIdentifier: "LAST_15_MINUTES",
|
|
41
|
+
type: "relativePreset",
|
|
42
|
+
visible: true,
|
|
43
|
+
name: "",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
from: -29,
|
|
47
|
+
to: 0,
|
|
48
|
+
granularity: "GDC.time.minute",
|
|
49
|
+
localIdentifier: "LAST_30_MINUTES",
|
|
50
|
+
type: "relativePreset",
|
|
51
|
+
visible: true,
|
|
52
|
+
name: "",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
from: -44,
|
|
56
|
+
to: 0,
|
|
57
|
+
granularity: "GDC.time.minute",
|
|
58
|
+
localIdentifier: "LAST_45_MINUTES",
|
|
59
|
+
type: "relativePreset",
|
|
60
|
+
visible: true,
|
|
61
|
+
name: "",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
from: -59,
|
|
65
|
+
to: 0,
|
|
66
|
+
granularity: "GDC.time.minute",
|
|
67
|
+
localIdentifier: "LAST_60_MINUTES",
|
|
68
|
+
type: "relativePreset",
|
|
69
|
+
visible: true,
|
|
70
|
+
name: "",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
from: -1,
|
|
74
|
+
to: -1,
|
|
75
|
+
granularity: "GDC.time.hour",
|
|
76
|
+
localIdentifier: "LAST_HOUR",
|
|
77
|
+
type: "relativePreset",
|
|
78
|
+
visible: true,
|
|
79
|
+
name: "",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
from: -7,
|
|
83
|
+
to: 0,
|
|
84
|
+
granularity: "GDC.time.hour",
|
|
85
|
+
localIdentifier: "LAST_8_HOURS",
|
|
86
|
+
type: "relativePreset",
|
|
87
|
+
visible: true,
|
|
88
|
+
name: "",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
from: -11,
|
|
92
|
+
to: 0,
|
|
93
|
+
granularity: "GDC.time.hour",
|
|
94
|
+
localIdentifier: "LAST_12_HOURS",
|
|
95
|
+
type: "relativePreset",
|
|
96
|
+
visible: true,
|
|
97
|
+
name: "",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
from: -23,
|
|
101
|
+
to: 0,
|
|
102
|
+
granularity: "GDC.time.hour",
|
|
103
|
+
localIdentifier: "LAST_24_HOURS",
|
|
104
|
+
type: "relativePreset",
|
|
105
|
+
visible: true,
|
|
106
|
+
name: "",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
from: 0,
|
|
110
|
+
to: 0,
|
|
111
|
+
granularity: "GDC.time.week_us",
|
|
112
|
+
localIdentifier: "THIS_WEEK",
|
|
113
|
+
type: "relativePreset",
|
|
114
|
+
visible: true,
|
|
115
|
+
name: "",
|
|
116
|
+
},
|
|
117
|
+
...(!enableToDateFilters
|
|
118
|
+
? []
|
|
119
|
+
: [
|
|
120
|
+
{
|
|
121
|
+
from: 0,
|
|
122
|
+
to: 0,
|
|
123
|
+
granularity: "GDC.time.week_us",
|
|
124
|
+
localIdentifier: "THIS_WEEK_TO_DATE",
|
|
125
|
+
type: "relativePreset",
|
|
126
|
+
visible: true,
|
|
127
|
+
name: "",
|
|
128
|
+
boundedFilter: {
|
|
129
|
+
granularity: "GDC.time.date",
|
|
130
|
+
to: 0,
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
]),
|
|
134
|
+
{
|
|
135
|
+
from: -1,
|
|
136
|
+
to: -1,
|
|
137
|
+
granularity: "GDC.time.week_us",
|
|
138
|
+
localIdentifier: "LAST_WEEK",
|
|
139
|
+
type: "relativePreset",
|
|
140
|
+
visible: true,
|
|
141
|
+
name: "",
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
from: -1,
|
|
145
|
+
to: 0,
|
|
146
|
+
granularity: "GDC.time.week_us",
|
|
147
|
+
localIdentifier: "LAST_2_WEEKS",
|
|
148
|
+
type: "relativePreset",
|
|
149
|
+
visible: true,
|
|
150
|
+
name: "",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
from: 0,
|
|
154
|
+
to: 0,
|
|
155
|
+
granularity: "GDC.time.date",
|
|
156
|
+
localIdentifier: "TODAY",
|
|
157
|
+
type: "relativePreset",
|
|
158
|
+
visible: true,
|
|
159
|
+
name: "",
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
from: -1,
|
|
163
|
+
to: -1,
|
|
164
|
+
granularity: "GDC.time.date",
|
|
165
|
+
localIdentifier: "YESTERDAY",
|
|
166
|
+
type: "relativePreset",
|
|
167
|
+
visible: true,
|
|
168
|
+
name: "",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
from: -6,
|
|
172
|
+
to: 0,
|
|
173
|
+
granularity: "GDC.time.date",
|
|
174
|
+
localIdentifier: "LAST_7_DAYS",
|
|
175
|
+
type: "relativePreset",
|
|
176
|
+
visible: true,
|
|
177
|
+
name: "",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
from: -29,
|
|
181
|
+
to: 0,
|
|
182
|
+
granularity: "GDC.time.date",
|
|
183
|
+
localIdentifier: "LAST_30_DAYS",
|
|
184
|
+
type: "relativePreset",
|
|
185
|
+
visible: true,
|
|
186
|
+
name: "",
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
from: -89,
|
|
190
|
+
to: 0,
|
|
191
|
+
granularity: "GDC.time.date",
|
|
192
|
+
localIdentifier: "LAST_90_DAYS",
|
|
193
|
+
type: "relativePreset",
|
|
194
|
+
visible: true,
|
|
195
|
+
name: "",
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
from: 0,
|
|
199
|
+
to: 0,
|
|
200
|
+
granularity: "GDC.time.month",
|
|
201
|
+
localIdentifier: "THIS_MONTH",
|
|
202
|
+
type: "relativePreset",
|
|
203
|
+
visible: true,
|
|
204
|
+
name: "",
|
|
205
|
+
},
|
|
206
|
+
...(!enableToDateFilters
|
|
207
|
+
? []
|
|
208
|
+
: [
|
|
209
|
+
{
|
|
210
|
+
from: 0,
|
|
211
|
+
to: 0,
|
|
212
|
+
granularity: "GDC.time.month",
|
|
213
|
+
localIdentifier: "THIS_MONTH_TO_DATE",
|
|
214
|
+
type: "relativePreset",
|
|
215
|
+
visible: true,
|
|
216
|
+
name: "",
|
|
217
|
+
boundedFilter: {
|
|
218
|
+
granularity: "GDC.time.date",
|
|
219
|
+
to: 0,
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
]),
|
|
223
|
+
{
|
|
224
|
+
from: -1,
|
|
225
|
+
to: -1,
|
|
226
|
+
granularity: "GDC.time.month",
|
|
227
|
+
localIdentifier: "LAST_MONTH",
|
|
228
|
+
type: "relativePreset",
|
|
229
|
+
visible: true,
|
|
230
|
+
name: "",
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
from: -11,
|
|
234
|
+
to: 0,
|
|
235
|
+
granularity: "GDC.time.month",
|
|
236
|
+
localIdentifier: "LAST_12_MONTHS",
|
|
237
|
+
type: "relativePreset",
|
|
238
|
+
visible: true,
|
|
239
|
+
name: "",
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
from: 0,
|
|
243
|
+
to: 0,
|
|
244
|
+
granularity: "GDC.time.quarter",
|
|
245
|
+
localIdentifier: "THIS_QUARTER",
|
|
246
|
+
type: "relativePreset",
|
|
247
|
+
visible: true,
|
|
248
|
+
name: "",
|
|
249
|
+
},
|
|
250
|
+
...(!enableToDateFilters
|
|
251
|
+
? []
|
|
252
|
+
: [
|
|
253
|
+
{
|
|
254
|
+
from: 0,
|
|
255
|
+
to: 0,
|
|
256
|
+
granularity: "GDC.time.quarter",
|
|
257
|
+
localIdentifier: "THIS_QUARTER_TO_DATE",
|
|
258
|
+
type: "relativePreset",
|
|
259
|
+
visible: true,
|
|
260
|
+
name: "",
|
|
261
|
+
boundedFilter: {
|
|
262
|
+
granularity: "GDC.time.date",
|
|
263
|
+
to: 0,
|
|
264
|
+
},
|
|
265
|
+
},
|
|
266
|
+
]),
|
|
267
|
+
{
|
|
268
|
+
from: -1,
|
|
269
|
+
to: -1,
|
|
270
|
+
granularity: "GDC.time.quarter",
|
|
271
|
+
localIdentifier: "LAST_QUARTER",
|
|
272
|
+
type: "relativePreset",
|
|
273
|
+
visible: true,
|
|
274
|
+
name: "",
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
from: -3,
|
|
278
|
+
to: 0,
|
|
279
|
+
granularity: "GDC.time.quarter",
|
|
280
|
+
localIdentifier: "LAST_4_QUARTERS",
|
|
281
|
+
type: "relativePreset",
|
|
282
|
+
visible: true,
|
|
283
|
+
name: "",
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
from: 0,
|
|
287
|
+
to: 0,
|
|
288
|
+
granularity: "GDC.time.year",
|
|
289
|
+
localIdentifier: "THIS_YEAR",
|
|
290
|
+
type: "relativePreset",
|
|
291
|
+
visible: true,
|
|
292
|
+
name: "",
|
|
293
|
+
},
|
|
294
|
+
...(!enableToDateFilters
|
|
295
|
+
? []
|
|
296
|
+
: [
|
|
297
|
+
{
|
|
298
|
+
from: 0,
|
|
299
|
+
to: 0,
|
|
300
|
+
granularity: "GDC.time.year",
|
|
301
|
+
localIdentifier: "THIS_YEAR_TO_DATE",
|
|
302
|
+
type: "relativePreset",
|
|
303
|
+
visible: true,
|
|
304
|
+
name: "",
|
|
305
|
+
boundedFilter: {
|
|
306
|
+
granularity: "GDC.time.date",
|
|
307
|
+
to: 0,
|
|
308
|
+
},
|
|
309
|
+
},
|
|
310
|
+
]),
|
|
311
|
+
{
|
|
312
|
+
from: -1,
|
|
313
|
+
to: -1,
|
|
314
|
+
granularity: "GDC.time.year",
|
|
315
|
+
localIdentifier: "LAST_YEAR",
|
|
316
|
+
type: "relativePreset",
|
|
317
|
+
visible: true,
|
|
318
|
+
name: "",
|
|
319
|
+
},
|
|
320
|
+
],
|
|
321
|
+
absolutePresets: [],
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
export const DefaultDateFilterConfig = createDefaultDateFilterConfig();
|
|
325
|
+
export const getDefaultDateFilterConfig = (enableToDateFilters = false) => {
|
|
326
|
+
return createDefaultDateFilterConfig(enableToDateFilters);
|
|
253
327
|
};
|
|
254
328
|
const convertAllTime = (allTime) => {
|
|
255
329
|
return {
|
|
@@ -287,9 +361,9 @@ const convertRelativePreset = (relativePreset) => {
|
|
|
287
361
|
...relativePreset,
|
|
288
362
|
};
|
|
289
363
|
};
|
|
290
|
-
export const convertDateFilterConfig = (dateFilterConfig) => {
|
|
364
|
+
export const convertDateFilterConfig = (dateFilterConfig, enableToDateFilters = false) => {
|
|
291
365
|
if (!dateFilterConfig) {
|
|
292
|
-
return
|
|
366
|
+
return getDefaultDateFilterConfig(enableToDateFilters);
|
|
293
367
|
}
|
|
294
368
|
const { selectedOption, allTime, absoluteForm, relativeForm, absolutePresets, relativePresets } = dateFilterConfig;
|
|
295
369
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateFilterConfigurationConverter.js","sourceRoot":"","sources":["../../../src/convertors/fromBackend/DateFilterConfigurationConverter.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EASH,KAAK,EACL,uBAAuB,GAC1B,MAAM,qBAAqB,CAAC;AAE7B,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"DateFilterConfigurationConverter.js","sourceRoot":"","sources":["../../../src/convertors/fromBackend/DateFilterConfigurationConverter.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EASH,KAAK,EACL,uBAAuB,GAC1B,MAAM,qBAAqB,CAAC;AAE7B,MAAM,6BAA6B,GAAG,CAAC,mBAAmB,GAAG,KAAK,EAAqB,EAAE;IACrF,OAAO;QACH,GAAG,EAAE,KAAK,CAAC,gCAAgC,CAAC;QAC5C,cAAc,EAAE,YAAY;QAC5B,OAAO,EAAE;YACL,eAAe,EAAE,UAAU;YAC3B,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,EAAE;YACR,OAAO,EAAE,IAAI;SAChB;QACD,YAAY,EAAE;YACV,eAAe,EAAE,eAAe;YAChC,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,EAAE;YACR,OAAO,EAAE,IAAI;SAChB;QACD,YAAY,EAAE;YACV,IAAI,EAAE,cAAc;YACpB,wEAAwE;YACxE,sBAAsB,EAAE;gBACpB,gBAAgB;gBAChB,iBAAiB;gBACjB,eAAe;gBACf,eAAe;gBACf,kBAAkB;gBAClB,kBAAkB;gBAClB,eAAe;aAClB;YACD,eAAe,EAAE,eAAe;YAChC,IAAI,EAAE,EAAE;YACR,OAAO,EAAE,IAAI;SAChB;QACD,e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E;IACnB,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACpB,OAAO,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;IAC3D,CAAC;IAED,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,GAC3F,gBAAgB,CAAC;IAErB,OAAO;QACH,GAAG,EAAE,KAAK,CAAC,gCAAgC,CAAC;QAC5C,cAAc;QACd,OAAO,EAAE,OAAO,IAAI,cAAc,CAAC,OAAO,CAAC;QAC3C,YAAY,EAAE,YAAY,IAAI,mBAAmB,CAAC,YAAY,CAAC;QAC/D,YAAY,EAAE,YAAY,IAAI,mBAAmB,CAAC,YAAY,CAAC;QAC/D,eAAe,EAAE,eAAe,EAAE,GAAG,CAAC,qBAAqB,CAAC;QAC5D,eAAe,EAAE,eAAe,EAAE,GAAG,CAAC,qBAAqB,CAAC;KAC/D,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportDefinitionsConverter.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/ExportDefinitionsConverter.ts"],"names":[],"mappings":"AACA,OAAO,EACH,oDAAoD,EACpD,yCAAyC,EACzC,0CAA0C,EAC1C,2CAA2C,EAC3C,0CAA0C,EAC1C,kCAAkC,EAClC,mCAAmC,EAGtC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,iBAAiB,EAEjB,wCAAwC,EACxC,+BAA+B,EAC/B,+BAA+B,EAC/B,kDAAkD,EAGrD,MAAM,qBAAqB,CAAC;AAM7B,KAAK,wBAAwB,GAAG;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ExportDefinitionsConverter.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/ExportDefinitionsConverter.ts"],"names":[],"mappings":"AACA,OAAO,EACH,oDAAoD,EACpD,yCAAyC,EACzC,0CAA0C,EAC1C,2CAA2C,EAC3C,0CAA0C,EAC1C,kCAAkC,EAClC,mCAAmC,EAGtC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,iBAAiB,EAEjB,wCAAwC,EACxC,+BAA+B,EAC/B,+BAA+B,EAC/B,kDAAkD,EAGrD,MAAM,qBAAqB,CAAC;AAM7B,KAAK,wBAAwB,GAAG;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC7B,gBAAgB,+BAA+B,EAC/C,WAAW,wBAAwB,KACpC,+BAeF,CAAC;AAEF,eAAO,MAAM,oCAAoC,GAC7C,eAAe,oDAAoD,KACpE,wCAcF,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACnC,eAAe,0CAA0C,EACzD,+BAA+B,OAAO,KACvC,wCAmBF,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAClC,eAAe,yCAAyC,KACzD,kDAiBF,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACnC,eAAe,0CAA0C,KAC1D,kDAAkD,GAAG,wCAgCvD,CAAC;AAEF,eAAO,MAAM,2BAA2B,GACpC,eAAe,2CAA2C,KAC3D,kDAyBF,CAAC;AAEF,eAAO,MAAM,+BAA+B,GACxC,qBAAqB,mCAAmC,EACxD,UAAU,kCAAkC,EAAE,YAAK,EACnD,+BAA+B,OAAO,KACvC,+BAiCF,CAAC;AAEF,eAAO,MAAM,qCAAqC,GAC9C,qBACM,2CAA2C,GAC3C,0CAA0C,EAChD,+BAA+B,OAAO,KACvC,+BAqBF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportMetadataConverter.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/ExportMetadataConverter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"ExportMetadataConverter.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/ExportMetadataConverter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD,eAAO,MAAM,qBAAqB,GAC9B,gBAAgB,GAAG,EACnB,+BAA+B,OAAO,KACvC,OAAO,CAAC,eAAe,CAAC,GAAG,IAa7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphConverter.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/GraphConverter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAS,MAAM,qBAAqB,CAAC;AAEtE,UAAU,UAAU;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,eAAO,MAAM,2CAA2C,
|
|
1
|
+
{"version":3,"file":"GraphConverter.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/GraphConverter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAS,MAAM,qBAAqB,CAAC;AAEtE,UAAU,UAAU;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,eAAO,MAAM,2CAA2C,GAAI,MAAM,UAAU,KAAG,wBAY9E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdSanitization.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/IdSanitization.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"IdSanitization.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/IdSanitization.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB,GAAI,MAAM,GAAG,QAOzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightConverter.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/InsightConverter.ts"],"names":[],"mappings":"AACA,OAAO,EAGH,sCAAsC,EACtC,qCAAqC,EACrC,wBAAwB,EACxB,iCAAiC,EACpC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAS,QAAQ,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAKjF,eAAO,MAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"InsightConverter.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/InsightConverter.ts"],"names":[],"mappings":"AACA,OAAO,EAGH,sCAAsC,EACtC,qCAAqC,EACrC,wBAAwB,EACxB,iCAAiC,EACpC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAS,QAAQ,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAKjF,eAAO,MAAM,4BAA4B,GACrC,SAAS,kBAAkB,EAC3B,IAAI,MAAM,EACV,KAAK,MAAM,EACX,MAAM,MAAM,EAAE,GAAG,SAAS,EAC1B,UAAU,OAAO,GAAG,SAAS,EAC7B,SAAS,MAAM,GAAG,SAAS,EAC3B,SAAS,MAAM,GAAG,SAAS,EAC3B,WAAW,KAAK,GAAG,SAAS,EAC5B,WAAW,KAAK,GAAG,SAAS,KAC7B,QAeF,CAAC;AAEF,eAAO,MAAM,iCAAiC,GAC1C,qBAAqB,sCAAsC,EAC3D,WAAU,CAAC,qCAAqC,GAAG,wBAAwB,CAAC,EAAO,KACpF,QAwBF,CAAC;AAEF,eAAO,MAAM,qCAAqC,GAC9C,sBAAsB,iCAAiC,KACxD,QAAQ,EAIV,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { JsonApiAnalyticalDashboardOutWithLinks, JsonApiAttributeOut, JsonApiAtt
|
|
|
2
2
|
import { IMetadataObjectBuilder } from "@gooddata/sdk-backend-base";
|
|
3
3
|
import { IAttributeDisplayFormMetadataObject, IAttributeMetadataObject, IDataSetMetadataObject, IDashboardMetadataObject } from "@gooddata/sdk-model";
|
|
4
4
|
export type MetadataObjectFromApi = JsonApiAttributeOutWithLinks | JsonApiFactOutWithLinks | JsonApiMetricOutWithLinks | JsonApiLabelOutWithLinks | JsonApiDatasetOutWithLinks | JsonApiAnalyticalDashboardOutWithLinks;
|
|
5
|
-
export declare const commonMetadataObjectModifications: <TItem extends MetadataObjectFromApi, T extends IMetadataObjectBuilder
|
|
5
|
+
export declare const commonMetadataObjectModifications: <TItem extends MetadataObjectFromApi, T extends IMetadataObjectBuilder>(item: TItem) => (builder: T) => T;
|
|
6
6
|
export declare function createLabelMap(included: JsonApiAttributeOutDocument["included"] | undefined): Record<string, JsonApiLabelOutWithLinks>;
|
|
7
7
|
export declare function createDataSetMap(included: JsonApiAttributeOutDocument["included"] | undefined): Record<string, JsonApiDatasetOutWithLinks>;
|
|
8
8
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MetadataConverter.d.ts","sourceRoot":"","sources":["../../../src/convertors/fromBackend/MetadataConverter.ts"],"names":[],"mappings":"AACA,OAAO,EAGH,sCAAsC,EACtC,mBAAmB,EACnB,2BAA2B,EAC3B,uBAAuB,EACvB,4BAA4B,EAC5B,0BAA0B,EAC1B,uBAAuB,EAEvB,wBAAwB,EACxB,yBAAyB,EAC5B,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACH,sBAAsB,EAKzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEH,mCAAmC,EACnC,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EAC3B,MAAM,qBAAqB,CAAC;AAG7B,MA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