@dynatrace-sdk/client-query 1.0.0 → 1.1.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/CHANGELOG.md +50 -0
- package/cjs/index.js +2601 -1038
- package/docs/DOCS.md +31 -225
- package/dynatrace-metadata.json +5 -2
- package/esm/index.js +2606 -1038
- package/package.json +2 -2
- package/types/packages/client/query/src/lib/apis/query-execution-api.d.ts +27 -221
- package/types/packages/client/query/src/lib/models/autocomplete-request.d.ts +0 -11
- package/types/packages/client/query/src/lib/models/autocomplete-request.transformation.d.ts +11 -0
- package/types/packages/client/query/src/lib/models/autocomplete-response.d.ts +1 -11
- package/types/packages/client/query/src/lib/models/autocomplete-response.transformation.d.ts +11 -0
- package/types/packages/client/query/src/lib/models/autocomplete-suggestion-part.d.ts +1 -12
- package/types/packages/client/query/src/lib/models/autocomplete-suggestion-part.transformation.d.ts +12 -0
- package/types/packages/client/query/src/lib/models/autocomplete-suggestion.d.ts +1 -11
- package/types/packages/client/query/src/lib/models/autocomplete-suggestion.transformation.d.ts +11 -0
- package/types/packages/client/query/src/lib/models/dql-alternative-node.d.ts +1 -9
- package/types/packages/client/query/src/lib/models/dql-alternative-node.transformation.d.ts +9 -0
- package/types/packages/client/query/src/lib/models/dql-container-node.d.ts +1 -10
- package/types/packages/client/query/src/lib/models/dql-container-node.transformation.d.ts +10 -0
- package/types/packages/client/query/src/lib/models/dql-node-node-type.d.ts +0 -6
- package/types/packages/client/query/src/lib/models/dql-node-node-type.transformation.d.ts +6 -0
- package/types/packages/client/query/src/lib/models/dql-node.d.ts +2 -18
- package/types/packages/client/query/src/lib/models/dql-node.transformation.d.ts +17 -0
- package/types/packages/client/query/src/lib/models/dql-terminal-node.d.ts +2 -12
- package/types/packages/client/query/src/lib/models/dql-terminal-node.transformation.d.ts +12 -0
- package/types/packages/client/query/src/lib/models/error-envelope.d.ts +1 -12
- package/types/packages/client/query/src/lib/models/error-envelope.transformation.d.ts +12 -0
- package/types/packages/client/query/src/lib/models/error-response-details.d.ts +1 -16
- package/types/packages/client/query/src/lib/models/error-response-details.transformation.d.ts +16 -0
- package/types/packages/client/query/src/lib/models/error-response.d.ts +1 -11
- package/types/packages/client/query/src/lib/models/error-response.transformation.d.ts +11 -0
- package/types/packages/client/query/src/lib/models/execute-request.d.ts +1 -19
- package/types/packages/client/query/src/lib/models/execute-request.transformation.d.ts +18 -0
- package/types/packages/client/query/src/lib/models/field-type-type.d.ts +0 -6
- package/types/packages/client/query/src/lib/models/field-type-type.transformation.d.ts +6 -0
- package/types/packages/client/query/src/lib/models/field-type.d.ts +2 -11
- package/types/packages/client/query/src/lib/models/field-type.transformation.d.ts +11 -0
- package/types/packages/client/query/src/lib/models/geo-point.d.ts +0 -9
- package/types/packages/client/query/src/lib/models/geo-point.transformation.d.ts +9 -0
- package/types/packages/client/query/src/lib/models/grail-metadata.d.ts +2 -20
- package/types/packages/client/query/src/lib/models/grail-metadata.transformation.d.ts +20 -0
- package/types/packages/client/query/src/lib/models/index.d.ts +35 -0
- package/types/packages/client/query/src/lib/models/metadata-notification.d.ts +1 -15
- package/types/packages/client/query/src/lib/models/metadata-notification.transformation.d.ts +15 -0
- package/types/packages/client/query/src/lib/models/metadata.d.ts +2 -11
- package/types/packages/client/query/src/lib/models/metadata.transformation.d.ts +11 -0
- package/types/packages/client/query/src/lib/models/metric-metadata.d.ts +0 -11
- package/types/packages/client/query/src/lib/models/metric-metadata.transformation.d.ts +11 -0
- package/types/packages/client/query/src/lib/models/parse-request.d.ts +0 -10
- package/types/packages/client/query/src/lib/models/parse-request.transformation.d.ts +10 -0
- package/types/packages/client/query/src/lib/models/position-info.d.ts +0 -10
- package/types/packages/client/query/src/lib/models/position-info.transformation.d.ts +10 -0
- package/types/packages/client/query/src/lib/models/query-poll-response.d.ts +2 -13
- package/types/packages/client/query/src/lib/models/query-poll-response.transformation.d.ts +13 -0
- package/types/packages/client/query/src/lib/models/query-result.d.ts +3 -13
- package/types/packages/client/query/src/lib/models/query-result.transformation.d.ts +13 -0
- package/types/packages/client/query/src/lib/models/query-start-response.d.ts +2 -14
- package/types/packages/client/query/src/lib/models/query-start-response.transformation.d.ts +14 -0
- package/types/packages/client/query/src/lib/models/query-state.d.ts +0 -6
- package/types/packages/client/query/src/lib/models/query-state.transformation.d.ts +6 -0
- package/types/packages/client/query/src/lib/models/ranged-field-types-mappings.d.ts +1 -9
- package/types/packages/client/query/src/lib/models/ranged-field-types-mappings.transformation.d.ts +9 -0
- package/types/packages/client/query/src/lib/models/ranged-field-types.d.ts +1 -10
- package/types/packages/client/query/src/lib/models/ranged-field-types.transformation.d.ts +10 -0
- package/types/packages/client/query/src/lib/models/result-record-value.d.ts +3 -8
- package/types/packages/client/query/src/lib/models/result-record-value.transformation.d.ts +26 -0
- package/types/packages/client/query/src/lib/models/result-record.d.ts +1 -9
- package/types/packages/client/query/src/lib/models/result-record.transformation.d.ts +9 -0
- package/types/packages/client/query/src/lib/models/timeframe.d.ts +0 -9
- package/types/packages/client/query/src/lib/models/timeframe.transformation.d.ts +9 -0
- package/types/packages/client/query/src/lib/models/token-position.d.ts +1 -13
- package/types/packages/client/query/src/lib/models/token-position.transformation.d.ts +13 -0
- package/types/packages/client/query/src/lib/models/token-type.d.ts +0 -6
- package/types/packages/client/query/src/lib/models/token-type.transformation.d.ts +6 -0
- package/types/packages/client/query/src/lib/models/verify-request.d.ts +0 -10
- package/types/packages/client/query/src/lib/models/verify-request.transformation.d.ts +10 -0
- package/types/packages/client/query/src/lib/models/verify-response.d.ts +1 -10
- package/types/packages/client/query/src/lib/models/verify-response.transformation.d.ts +10 -0
- package/types/packages/http-client/src/lib/platform/http-client-response-error-serializer.d.ts +2 -0
- package/types/packages/platform/error-handlers/src/lib/types/common-serialized-error.d.ts +1 -0
- package/types/packages/platform/error-handlers/src/lib/types/http-serialized-error.d.ts +2 -0
package/esm/index.js
CHANGED
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
var __defProp = Object.defineProperty;
|
|
17
|
+
var __export = (target, all) => {
|
|
18
|
+
for (var name in all)
|
|
19
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
20
|
+
};
|
|
16
21
|
|
|
17
22
|
// packages/client/query/src/lib/apis/query-assistance-api.ts
|
|
18
23
|
import { httpClient as defaultHttpClient } from "@dynatrace-sdk/http-client";
|
|
@@ -80,7 +85,9 @@ var apiClientErrorSerializer = async (error) => {
|
|
|
80
85
|
status,
|
|
81
86
|
message,
|
|
82
87
|
stack: error.stack,
|
|
83
|
-
type: "Http Error" /* HTTP
|
|
88
|
+
type: "Http Error" /* HTTP */,
|
|
89
|
+
body: error.body,
|
|
90
|
+
...getOptionalErrorRef(error.body)
|
|
84
91
|
};
|
|
85
92
|
} else if (isApiClientError(error)) {
|
|
86
93
|
return {
|
|
@@ -98,6 +105,12 @@ function registerGlobalErrorSerializer(serializer) {
|
|
|
98
105
|
addGlobalErrorSerializer(serializer);
|
|
99
106
|
}
|
|
100
107
|
}
|
|
108
|
+
function getOptionalErrorRef(body) {
|
|
109
|
+
if (body && typeof body === "object" && body.error?.details?.errorRef) {
|
|
110
|
+
return { errorRef: body.error.details.errorRef };
|
|
111
|
+
}
|
|
112
|
+
return {};
|
|
113
|
+
}
|
|
101
114
|
|
|
102
115
|
// packages/client/query/src/lib/error-envelopes/invalid-response-error.ts
|
|
103
116
|
var InvalidResponseError = class extends ApiClientError {
|
|
@@ -115,570 +128,1294 @@ var InvalidResponseError = class extends ApiClientError {
|
|
|
115
128
|
}
|
|
116
129
|
};
|
|
117
130
|
|
|
118
|
-
// packages/client/query/src/lib/models/autocomplete-request.ts
|
|
119
|
-
var
|
|
120
|
-
(
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
131
|
+
// packages/client/query/src/lib/models/autocomplete-request.transformation.ts
|
|
132
|
+
var autocomplete_request_transformation_exports = {};
|
|
133
|
+
__export(autocomplete_request_transformation_exports, {
|
|
134
|
+
fromJson: () => fromJson,
|
|
135
|
+
isAutocompleteRequest: () => isAutocompleteRequest,
|
|
136
|
+
isJson: () => isJson,
|
|
137
|
+
toJson: () => toJson
|
|
138
|
+
});
|
|
139
|
+
function isAutocompleteRequest(value) {
|
|
140
|
+
if (value === null) {
|
|
141
|
+
return false;
|
|
142
|
+
}
|
|
143
|
+
if (value === void 0) {
|
|
144
|
+
return false;
|
|
145
|
+
}
|
|
146
|
+
if (Array.isArray(value)) {
|
|
147
|
+
return false;
|
|
148
|
+
}
|
|
149
|
+
const modelKeys = /* @__PURE__ */ new Set(["query", "cursorPosition", "timezone", "locale"]);
|
|
150
|
+
const hasAdditionalProperties = false;
|
|
151
|
+
const requiredKeys = ["query"];
|
|
152
|
+
const optionalKeys = ["cursorPosition", "timezone", "locale"];
|
|
153
|
+
const valKeys = new Set(Object.keys(value));
|
|
154
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
155
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
156
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
157
|
+
}
|
|
158
|
+
function isJson(value) {
|
|
159
|
+
if (value === null) {
|
|
160
|
+
return false;
|
|
161
|
+
}
|
|
162
|
+
if (value === void 0) {
|
|
163
|
+
return false;
|
|
164
|
+
}
|
|
165
|
+
if (Array.isArray(value)) {
|
|
166
|
+
return false;
|
|
167
|
+
}
|
|
168
|
+
const modelKeys = /* @__PURE__ */ new Set(["query", "cursorPosition", "timezone", "locale"]);
|
|
169
|
+
const hasAdditionalProperties = false;
|
|
170
|
+
const requiredKeys = ["query"];
|
|
171
|
+
const optionalKeys = ["cursorPosition", "timezone", "locale"];
|
|
172
|
+
const valKeys = new Set(Object.keys(value));
|
|
173
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
174
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
175
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
176
|
+
}
|
|
177
|
+
function fromJson($model) {
|
|
178
|
+
const { query, cursorPosition, timezone, locale } = $model;
|
|
179
|
+
return {
|
|
180
|
+
query,
|
|
181
|
+
cursorPosition,
|
|
182
|
+
timezone,
|
|
183
|
+
locale
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
function toJson($model) {
|
|
187
|
+
const { query, cursorPosition, timezone, locale } = $model;
|
|
188
|
+
return {
|
|
189
|
+
query,
|
|
190
|
+
cursorPosition,
|
|
191
|
+
timezone,
|
|
192
|
+
locale
|
|
193
|
+
};
|
|
194
|
+
}
|
|
142
195
|
|
|
143
|
-
// packages/client/query/src/lib/models/
|
|
144
|
-
var
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
TokenType4["Comma"] = "COMMA";
|
|
152
|
-
TokenType4["Assignment"] = "ASSIGNMENT";
|
|
153
|
-
TokenType4["BraceOpen"] = "BRACE_OPEN";
|
|
154
|
-
TokenType4["BraceClose"] = "BRACE_CLOSE";
|
|
155
|
-
TokenType4["BracketOpen"] = "BRACKET_OPEN";
|
|
156
|
-
TokenType4["BracketClose"] = "BRACKET_CLOSE";
|
|
157
|
-
TokenType4["ParenthesisOpen"] = "PARENTHESIS_OPEN";
|
|
158
|
-
TokenType4["ParenthesisClose"] = "PARENTHESIS_CLOSE";
|
|
159
|
-
TokenType4["Quote"] = "QUOTE";
|
|
160
|
-
TokenType4["SingleQuote"] = "SINGLE_QUOTE";
|
|
161
|
-
TokenType4["Slash"] = "SLASH";
|
|
162
|
-
TokenType4["BooleanTrue"] = "BOOLEAN_TRUE";
|
|
163
|
-
TokenType4["BooleanFalse"] = "BOOLEAN_FALSE";
|
|
164
|
-
TokenType4["Null"] = "NULL";
|
|
165
|
-
TokenType4["CommandName"] = "COMMAND_NAME";
|
|
166
|
-
TokenType4["ParameterKey"] = "PARAMETER_KEY";
|
|
167
|
-
TokenType4["ParameterValueScope"] = "PARAMETER_VALUE_SCOPE";
|
|
168
|
-
TokenType4["FunctionName"] = "FUNCTION_NAME";
|
|
169
|
-
TokenType4["TimeseriesAggregation"] = "TIMESERIES_AGGREGATION";
|
|
170
|
-
TokenType4["Operator"] = "OPERATOR";
|
|
171
|
-
TokenType4["TraversalOperator"] = "TRAVERSAL_OPERATOR";
|
|
172
|
-
TokenType4["TraversalRelationName"] = "TRAVERSAL_RELATION_NAME";
|
|
173
|
-
TokenType4["TraversalHopCount"] = "TRAVERSAL_HOP_COUNT";
|
|
174
|
-
TokenType4["SimpleIdentifier"] = "SIMPLE_IDENTIFIER";
|
|
175
|
-
TokenType4["Number"] = "NUMBER";
|
|
176
|
-
TokenType4["String"] = "STRING";
|
|
177
|
-
TokenType4["TimeUnit"] = "TIME_UNIT";
|
|
178
|
-
TokenType4["TimestampValue"] = "TIMESTAMP_VALUE";
|
|
179
|
-
TokenType4["MetricKey"] = "METRIC_KEY";
|
|
180
|
-
TokenType4["Variable"] = "VARIABLE";
|
|
181
|
-
TokenType4["EndComment"] = "END_COMMENT";
|
|
182
|
-
return TokenType4;
|
|
183
|
-
})(TokenType || {});
|
|
184
|
-
var _TokenTypeTransformation;
|
|
185
|
-
((_TokenTypeTransformation2) => {
|
|
186
|
-
_TokenTypeTransformation2.toJson = (value) => value;
|
|
187
|
-
_TokenTypeTransformation2.fromJson = (value) => value;
|
|
188
|
-
})(_TokenTypeTransformation || (_TokenTypeTransformation = {}));
|
|
189
|
-
|
|
190
|
-
// packages/client/query/src/lib/models/autocomplete-suggestion-part.ts
|
|
191
|
-
var _AutocompleteSuggestionPartTransformation;
|
|
192
|
-
((_AutocompleteSuggestionPartTransformation2) => {
|
|
193
|
-
function fromJson(model) {
|
|
194
|
-
const { type, info, synopsis, suggestion } = model;
|
|
195
|
-
return {
|
|
196
|
-
type: _TokenTypeTransformation.fromJson(type),
|
|
197
|
-
info,
|
|
198
|
-
synopsis,
|
|
199
|
-
suggestion
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
_AutocompleteSuggestionPartTransformation2.fromJson = fromJson;
|
|
203
|
-
function toJson(model) {
|
|
204
|
-
const { type, info, synopsis, suggestion } = model;
|
|
205
|
-
return {
|
|
206
|
-
type: _TokenTypeTransformation.toJson(type),
|
|
207
|
-
info,
|
|
208
|
-
synopsis,
|
|
209
|
-
suggestion
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
_AutocompleteSuggestionPartTransformation2.toJson = toJson;
|
|
213
|
-
})(_AutocompleteSuggestionPartTransformation || (_AutocompleteSuggestionPartTransformation = {}));
|
|
196
|
+
// packages/client/query/src/lib/models/autocomplete-response.transformation.ts
|
|
197
|
+
var autocomplete_response_transformation_exports = {};
|
|
198
|
+
__export(autocomplete_response_transformation_exports, {
|
|
199
|
+
fromJson: () => fromJson5,
|
|
200
|
+
isAutocompleteResponse: () => isAutocompleteResponse,
|
|
201
|
+
isJson: () => isJson5,
|
|
202
|
+
toJson: () => toJson5
|
|
203
|
+
});
|
|
214
204
|
|
|
215
|
-
// packages/client/query/src/lib/models/autocomplete-suggestion.ts
|
|
216
|
-
var
|
|
217
|
-
(
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
suggestion
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
_AutocompleteSuggestionTransformation2.fromJson = fromJson;
|
|
227
|
-
function toJson(model) {
|
|
228
|
-
const { parts, alreadyTypedCharacters, suggestion } = model;
|
|
229
|
-
return {
|
|
230
|
-
parts: parts?.map((innerValue) => _AutocompleteSuggestionPartTransformation.toJson(innerValue)),
|
|
231
|
-
alreadyTypedCharacters,
|
|
232
|
-
suggestion
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
_AutocompleteSuggestionTransformation2.toJson = toJson;
|
|
236
|
-
})(_AutocompleteSuggestionTransformation || (_AutocompleteSuggestionTransformation = {}));
|
|
205
|
+
// packages/client/query/src/lib/models/autocomplete-suggestion.transformation.ts
|
|
206
|
+
var autocomplete_suggestion_transformation_exports = {};
|
|
207
|
+
__export(autocomplete_suggestion_transformation_exports, {
|
|
208
|
+
fromJson: () => fromJson4,
|
|
209
|
+
isAutocompleteSuggestion: () => isAutocompleteSuggestion,
|
|
210
|
+
isJson: () => isJson4,
|
|
211
|
+
toJson: () => toJson4
|
|
212
|
+
});
|
|
237
213
|
|
|
238
|
-
// packages/client/query/src/lib/models/autocomplete-
|
|
239
|
-
var
|
|
240
|
-
(
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
suggestedTtlSeconds
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
_AutocompleteResponseTransformation2.fromJson = fromJson;
|
|
250
|
-
function toJson(model) {
|
|
251
|
-
const { optional, suggestions, suggestedTtlSeconds } = model;
|
|
252
|
-
return {
|
|
253
|
-
optional,
|
|
254
|
-
suggestions: suggestions?.map((innerValue) => _AutocompleteSuggestionTransformation.toJson(innerValue)),
|
|
255
|
-
suggestedTtlSeconds
|
|
256
|
-
};
|
|
257
|
-
}
|
|
258
|
-
_AutocompleteResponseTransformation2.toJson = toJson;
|
|
259
|
-
})(_AutocompleteResponseTransformation || (_AutocompleteResponseTransformation = {}));
|
|
214
|
+
// packages/client/query/src/lib/models/autocomplete-suggestion-part.transformation.ts
|
|
215
|
+
var autocomplete_suggestion_part_transformation_exports = {};
|
|
216
|
+
__export(autocomplete_suggestion_part_transformation_exports, {
|
|
217
|
+
fromJson: () => fromJson3,
|
|
218
|
+
isAutocompleteSuggestionPart: () => isAutocompleteSuggestionPart,
|
|
219
|
+
isJson: () => isJson3,
|
|
220
|
+
toJson: () => toJson3
|
|
221
|
+
});
|
|
260
222
|
|
|
261
|
-
// packages/client/query/src/lib/models/
|
|
262
|
-
var
|
|
263
|
-
(
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
}
|
|
223
|
+
// packages/client/query/src/lib/models/token-type.transformation.ts
|
|
224
|
+
var token_type_transformation_exports = {};
|
|
225
|
+
__export(token_type_transformation_exports, {
|
|
226
|
+
fromJson: () => fromJson2,
|
|
227
|
+
isJson: () => isJson2,
|
|
228
|
+
isTokenType: () => isTokenType,
|
|
229
|
+
toJson: () => toJson2
|
|
230
|
+
});
|
|
231
|
+
function isTokenType(value) {
|
|
232
|
+
return typeof value === "string";
|
|
233
|
+
}
|
|
234
|
+
function isJson2(value) {
|
|
235
|
+
return typeof value === "string";
|
|
236
|
+
}
|
|
237
|
+
function fromJson2($model) {
|
|
238
|
+
return String($model);
|
|
239
|
+
}
|
|
240
|
+
function toJson2($model) {
|
|
241
|
+
return String($model);
|
|
242
|
+
}
|
|
281
243
|
|
|
282
|
-
// packages/client/query/src/lib/models/
|
|
283
|
-
|
|
284
|
-
(
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
244
|
+
// packages/client/query/src/lib/models/autocomplete-suggestion-part.transformation.ts
|
|
245
|
+
function isAutocompleteSuggestionPart(value) {
|
|
246
|
+
if (value === null) {
|
|
247
|
+
return false;
|
|
248
|
+
}
|
|
249
|
+
if (value === void 0) {
|
|
250
|
+
return false;
|
|
251
|
+
}
|
|
252
|
+
if (Array.isArray(value)) {
|
|
253
|
+
return false;
|
|
254
|
+
}
|
|
255
|
+
const modelKeys = /* @__PURE__ */ new Set(["type", "info", "synopsis", "suggestion"]);
|
|
256
|
+
const hasAdditionalProperties = false;
|
|
257
|
+
const requiredKeys = ["suggestion", "type"];
|
|
258
|
+
const optionalKeys = ["info", "synopsis"];
|
|
259
|
+
const valKeys = new Set(Object.keys(value));
|
|
260
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
261
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
262
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
263
|
+
}
|
|
264
|
+
function isJson3(value) {
|
|
265
|
+
if (value === null) {
|
|
266
|
+
return false;
|
|
267
|
+
}
|
|
268
|
+
if (value === void 0) {
|
|
269
|
+
return false;
|
|
270
|
+
}
|
|
271
|
+
if (Array.isArray(value)) {
|
|
272
|
+
return false;
|
|
273
|
+
}
|
|
274
|
+
const modelKeys = /* @__PURE__ */ new Set(["type", "info", "synopsis", "suggestion"]);
|
|
275
|
+
const hasAdditionalProperties = false;
|
|
276
|
+
const requiredKeys = ["suggestion", "type"];
|
|
277
|
+
const optionalKeys = ["info", "synopsis"];
|
|
278
|
+
const valKeys = new Set(Object.keys(value));
|
|
279
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
280
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
281
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
282
|
+
}
|
|
283
|
+
function fromJson3($model) {
|
|
284
|
+
const { type, info, synopsis, suggestion } = $model;
|
|
285
|
+
return {
|
|
286
|
+
type: fromJson2(type),
|
|
287
|
+
info,
|
|
288
|
+
synopsis,
|
|
289
|
+
suggestion
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
function toJson3($model) {
|
|
293
|
+
const { type, info, synopsis, suggestion } = $model;
|
|
294
|
+
return {
|
|
295
|
+
type: toJson2(type),
|
|
296
|
+
info,
|
|
297
|
+
synopsis,
|
|
298
|
+
suggestion
|
|
299
|
+
};
|
|
300
|
+
}
|
|
304
301
|
|
|
305
|
-
// packages/client/query/src/lib/models/
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
((
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
((
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
return
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
302
|
+
// packages/client/query/src/lib/models/autocomplete-suggestion.transformation.ts
|
|
303
|
+
function isAutocompleteSuggestion(value) {
|
|
304
|
+
if (value === null) {
|
|
305
|
+
return false;
|
|
306
|
+
}
|
|
307
|
+
if (value === void 0) {
|
|
308
|
+
return false;
|
|
309
|
+
}
|
|
310
|
+
if (Array.isArray(value)) {
|
|
311
|
+
return false;
|
|
312
|
+
}
|
|
313
|
+
const modelKeys = /* @__PURE__ */ new Set(["parts", "alreadyTypedCharacters", "suggestion"]);
|
|
314
|
+
const hasAdditionalProperties = false;
|
|
315
|
+
const requiredKeys = ["alreadyTypedCharacters", "parts", "suggestion"];
|
|
316
|
+
const optionalKeys = [];
|
|
317
|
+
const valKeys = new Set(Object.keys(value));
|
|
318
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
319
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
320
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
321
|
+
}
|
|
322
|
+
function isJson4(value) {
|
|
323
|
+
if (value === null) {
|
|
324
|
+
return false;
|
|
325
|
+
}
|
|
326
|
+
if (value === void 0) {
|
|
327
|
+
return false;
|
|
328
|
+
}
|
|
329
|
+
if (Array.isArray(value)) {
|
|
330
|
+
return false;
|
|
331
|
+
}
|
|
332
|
+
const modelKeys = /* @__PURE__ */ new Set(["parts", "alreadyTypedCharacters", "suggestion"]);
|
|
333
|
+
const hasAdditionalProperties = false;
|
|
334
|
+
const requiredKeys = ["alreadyTypedCharacters", "parts", "suggestion"];
|
|
335
|
+
const optionalKeys = [];
|
|
336
|
+
const valKeys = new Set(Object.keys(value));
|
|
337
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
338
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
339
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
340
|
+
}
|
|
341
|
+
function fromJson4($model) {
|
|
342
|
+
const { parts, alreadyTypedCharacters, suggestion } = $model;
|
|
343
|
+
return {
|
|
344
|
+
parts: parts?.map((innerValue) => fromJson3(innerValue)),
|
|
345
|
+
alreadyTypedCharacters,
|
|
346
|
+
suggestion
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
function toJson4($model) {
|
|
350
|
+
const { parts, alreadyTypedCharacters, suggestion } = $model;
|
|
351
|
+
return {
|
|
352
|
+
parts: parts?.map((innerValue) => toJson3(innerValue)),
|
|
353
|
+
alreadyTypedCharacters,
|
|
354
|
+
suggestion
|
|
355
|
+
};
|
|
356
|
+
}
|
|
342
357
|
|
|
343
|
-
// packages/client/query/src/lib/models/
|
|
344
|
-
|
|
345
|
-
(
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
358
|
+
// packages/client/query/src/lib/models/autocomplete-response.transformation.ts
|
|
359
|
+
function isAutocompleteResponse(value) {
|
|
360
|
+
if (value === null) {
|
|
361
|
+
return false;
|
|
362
|
+
}
|
|
363
|
+
if (value === void 0) {
|
|
364
|
+
return false;
|
|
365
|
+
}
|
|
366
|
+
if (Array.isArray(value)) {
|
|
367
|
+
return false;
|
|
368
|
+
}
|
|
369
|
+
const modelKeys = /* @__PURE__ */ new Set(["optional", "suggestions", "suggestedTtlSeconds"]);
|
|
370
|
+
const hasAdditionalProperties = false;
|
|
371
|
+
const requiredKeys = ["optional", "suggestions"];
|
|
372
|
+
const optionalKeys = ["suggestedTtlSeconds"];
|
|
373
|
+
const valKeys = new Set(Object.keys(value));
|
|
374
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
375
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
376
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
377
|
+
}
|
|
378
|
+
function isJson5(value) {
|
|
379
|
+
if (value === null) {
|
|
380
|
+
return false;
|
|
381
|
+
}
|
|
382
|
+
if (value === void 0) {
|
|
383
|
+
return false;
|
|
384
|
+
}
|
|
385
|
+
if (Array.isArray(value)) {
|
|
386
|
+
return false;
|
|
387
|
+
}
|
|
388
|
+
const modelKeys = /* @__PURE__ */ new Set(["optional", "suggestions", "suggestedTtlSeconds"]);
|
|
389
|
+
const hasAdditionalProperties = false;
|
|
390
|
+
const requiredKeys = ["optional", "suggestions"];
|
|
391
|
+
const optionalKeys = ["suggestedTtlSeconds"];
|
|
392
|
+
const valKeys = new Set(Object.keys(value));
|
|
393
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
394
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
395
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
396
|
+
}
|
|
397
|
+
function fromJson5($model) {
|
|
398
|
+
const { optional, suggestions, suggestedTtlSeconds } = $model;
|
|
399
|
+
return {
|
|
400
|
+
optional,
|
|
401
|
+
suggestions: suggestions?.map((innerValue) => fromJson4(innerValue)),
|
|
402
|
+
suggestedTtlSeconds
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
function toJson5($model) {
|
|
406
|
+
const { optional, suggestions, suggestedTtlSeconds } = $model;
|
|
407
|
+
return {
|
|
408
|
+
optional,
|
|
409
|
+
suggestions: suggestions?.map((innerValue) => toJson4(innerValue)),
|
|
410
|
+
suggestedTtlSeconds
|
|
411
|
+
};
|
|
412
|
+
}
|
|
365
413
|
|
|
366
|
-
// packages/client/query/src/lib/models/
|
|
367
|
-
var
|
|
368
|
-
(
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
return
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
return
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
414
|
+
// packages/client/query/src/lib/models/dql-node.transformation.ts
|
|
415
|
+
var dql_node_transformation_exports = {};
|
|
416
|
+
__export(dql_node_transformation_exports, {
|
|
417
|
+
fromJson: () => fromJson6,
|
|
418
|
+
isDqlAlternativeNode: () => isDqlAlternativeNode2,
|
|
419
|
+
isDqlContainerNode: () => isDqlContainerNode2,
|
|
420
|
+
isDqlTerminalNode: () => isDqlTerminalNode2,
|
|
421
|
+
isJson: () => isJson12,
|
|
422
|
+
toJson: () => toJson6
|
|
423
|
+
});
|
|
424
|
+
|
|
425
|
+
// packages/client/query/src/lib/models/dql-alternative-node.transformation.ts
|
|
426
|
+
var dql_alternative_node_transformation_exports = {};
|
|
427
|
+
__export(dql_alternative_node_transformation_exports, {
|
|
428
|
+
fromJson: () => fromJson7,
|
|
429
|
+
isDqlAlternativeNode: () => isDqlAlternativeNode,
|
|
430
|
+
isJson: () => isJson6,
|
|
431
|
+
toJson: () => toJson7
|
|
432
|
+
});
|
|
433
|
+
function isDqlAlternativeNode(value) {
|
|
434
|
+
if (value === null) {
|
|
435
|
+
return false;
|
|
436
|
+
}
|
|
437
|
+
if (value === void 0) {
|
|
438
|
+
return false;
|
|
439
|
+
}
|
|
440
|
+
if (Array.isArray(value)) {
|
|
441
|
+
return false;
|
|
442
|
+
}
|
|
443
|
+
const modelKeys = /* @__PURE__ */ new Set([]);
|
|
444
|
+
const hasAdditionalProperties = false;
|
|
445
|
+
const requiredKeys = ["alternatives", "isOptional", "nodeType"];
|
|
446
|
+
const optionalKeys = [];
|
|
447
|
+
const valKeys = new Set(Object.keys(value));
|
|
448
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
449
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
450
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
451
|
+
}
|
|
452
|
+
function isJson6(value) {
|
|
453
|
+
if (value === null) {
|
|
454
|
+
return false;
|
|
455
|
+
}
|
|
456
|
+
if (value === void 0) {
|
|
457
|
+
return false;
|
|
458
|
+
}
|
|
459
|
+
if (Array.isArray(value)) {
|
|
460
|
+
return false;
|
|
461
|
+
}
|
|
462
|
+
const modelKeys = /* @__PURE__ */ new Set([]);
|
|
463
|
+
const hasAdditionalProperties = false;
|
|
464
|
+
const requiredKeys = ["alternatives", "isOptional", "nodeType"];
|
|
465
|
+
const optionalKeys = [];
|
|
466
|
+
const valKeys = new Set(Object.keys(value));
|
|
467
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
468
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
469
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
470
|
+
}
|
|
471
|
+
function fromJson7($model) {
|
|
472
|
+
const { alternatives } = $model;
|
|
473
|
+
return {
|
|
474
|
+
...fromJson6($model, false),
|
|
475
|
+
alternatives
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
function toJson7($model) {
|
|
479
|
+
const { alternatives } = $model;
|
|
480
|
+
return {
|
|
481
|
+
...toJson6($model, false),
|
|
482
|
+
alternatives
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
// packages/client/query/src/lib/models/dql-container-node.transformation.ts
|
|
487
|
+
var dql_container_node_transformation_exports = {};
|
|
488
|
+
__export(dql_container_node_transformation_exports, {
|
|
489
|
+
fromJson: () => fromJson8,
|
|
490
|
+
isDqlContainerNode: () => isDqlContainerNode,
|
|
491
|
+
isJson: () => isJson7,
|
|
492
|
+
toJson: () => toJson8
|
|
493
|
+
});
|
|
494
|
+
function isDqlContainerNode(value) {
|
|
495
|
+
if (value === null) {
|
|
496
|
+
return false;
|
|
497
|
+
}
|
|
498
|
+
if (value === void 0) {
|
|
499
|
+
return false;
|
|
500
|
+
}
|
|
501
|
+
if (Array.isArray(value)) {
|
|
502
|
+
return false;
|
|
503
|
+
}
|
|
504
|
+
const modelKeys = /* @__PURE__ */ new Set([]);
|
|
505
|
+
const hasAdditionalProperties = false;
|
|
506
|
+
const requiredKeys = ["children", "isOptional", "nodeType", "type"];
|
|
507
|
+
const optionalKeys = [];
|
|
508
|
+
const valKeys = new Set(Object.keys(value));
|
|
509
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
510
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
511
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
512
|
+
}
|
|
513
|
+
function isJson7(value) {
|
|
514
|
+
if (value === null) {
|
|
515
|
+
return false;
|
|
516
|
+
}
|
|
517
|
+
if (value === void 0) {
|
|
518
|
+
return false;
|
|
519
|
+
}
|
|
520
|
+
if (Array.isArray(value)) {
|
|
521
|
+
return false;
|
|
522
|
+
}
|
|
523
|
+
const modelKeys = /* @__PURE__ */ new Set([]);
|
|
524
|
+
const hasAdditionalProperties = false;
|
|
525
|
+
const requiredKeys = ["children", "isOptional", "nodeType", "type"];
|
|
526
|
+
const optionalKeys = [];
|
|
527
|
+
const valKeys = new Set(Object.keys(value));
|
|
528
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
529
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
530
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
531
|
+
}
|
|
532
|
+
function fromJson8($model) {
|
|
533
|
+
const { type, children } = $model;
|
|
534
|
+
return {
|
|
535
|
+
...fromJson6($model, false),
|
|
536
|
+
type,
|
|
537
|
+
children: children !== void 0 && children !== null ? children?.map((innerValue) => fromJson6(innerValue)) : void 0
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
function toJson8($model) {
|
|
541
|
+
const { type, children } = $model;
|
|
542
|
+
return {
|
|
543
|
+
...toJson6($model, false),
|
|
544
|
+
type,
|
|
545
|
+
children: children !== void 0 && children !== null ? children?.map((innerValue) => toJson6(innerValue)) : void 0
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
// packages/client/query/src/lib/models/dql-node-node-type.transformation.ts
|
|
550
|
+
var dql_node_node_type_transformation_exports = {};
|
|
551
|
+
__export(dql_node_node_type_transformation_exports, {
|
|
552
|
+
fromJson: () => fromJson9,
|
|
553
|
+
isDqlNodeNodeType: () => isDqlNodeNodeType,
|
|
554
|
+
isJson: () => isJson8,
|
|
555
|
+
toJson: () => toJson9
|
|
556
|
+
});
|
|
557
|
+
function isDqlNodeNodeType(value) {
|
|
558
|
+
return typeof value === "string";
|
|
559
|
+
}
|
|
560
|
+
function isJson8(value) {
|
|
561
|
+
return typeof value === "string";
|
|
562
|
+
}
|
|
563
|
+
function fromJson9($model) {
|
|
564
|
+
return String($model);
|
|
565
|
+
}
|
|
566
|
+
function toJson9($model) {
|
|
567
|
+
return String($model);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
// packages/client/query/src/lib/models/dql-terminal-node.transformation.ts
|
|
571
|
+
var dql_terminal_node_transformation_exports = {};
|
|
572
|
+
__export(dql_terminal_node_transformation_exports, {
|
|
573
|
+
fromJson: () => fromJson10,
|
|
574
|
+
isDqlTerminalNode: () => isDqlTerminalNode,
|
|
575
|
+
isJson: () => isJson9,
|
|
576
|
+
toJson: () => toJson10
|
|
577
|
+
});
|
|
578
|
+
function isDqlTerminalNode(value) {
|
|
579
|
+
if (value === null) {
|
|
580
|
+
return false;
|
|
581
|
+
}
|
|
582
|
+
if (value === void 0) {
|
|
583
|
+
return false;
|
|
584
|
+
}
|
|
585
|
+
if (Array.isArray(value)) {
|
|
586
|
+
return false;
|
|
587
|
+
}
|
|
588
|
+
const modelKeys = /* @__PURE__ */ new Set([]);
|
|
589
|
+
const hasAdditionalProperties = false;
|
|
590
|
+
const requiredKeys = ["canonicalString", "isMandatoryOnUserOrder", "isOptional", "nodeType", "type"];
|
|
591
|
+
const optionalKeys = [];
|
|
592
|
+
const valKeys = new Set(Object.keys(value));
|
|
593
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
594
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
595
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
596
|
+
}
|
|
597
|
+
function isJson9(value) {
|
|
598
|
+
if (value === null) {
|
|
599
|
+
return false;
|
|
600
|
+
}
|
|
601
|
+
if (value === void 0) {
|
|
602
|
+
return false;
|
|
603
|
+
}
|
|
604
|
+
if (Array.isArray(value)) {
|
|
605
|
+
return false;
|
|
606
|
+
}
|
|
607
|
+
const modelKeys = /* @__PURE__ */ new Set([]);
|
|
608
|
+
const hasAdditionalProperties = false;
|
|
609
|
+
const requiredKeys = ["canonicalString", "isMandatoryOnUserOrder", "isOptional", "nodeType", "type"];
|
|
610
|
+
const optionalKeys = [];
|
|
611
|
+
const valKeys = new Set(Object.keys(value));
|
|
612
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
613
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
614
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
615
|
+
}
|
|
616
|
+
function fromJson10($model) {
|
|
617
|
+
const { type, isMandatoryOnUserOrder, canonicalString } = $model;
|
|
618
|
+
return {
|
|
619
|
+
...fromJson6($model, false),
|
|
620
|
+
type: type !== void 0 && type !== null ? fromJson2(type) : void 0,
|
|
621
|
+
isMandatoryOnUserOrder,
|
|
622
|
+
canonicalString
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
function toJson10($model) {
|
|
626
|
+
const { type, isMandatoryOnUserOrder, canonicalString } = $model;
|
|
627
|
+
return {
|
|
628
|
+
...toJson6($model, false),
|
|
629
|
+
type: type !== void 0 && type !== null ? toJson2(type) : void 0,
|
|
630
|
+
isMandatoryOnUserOrder,
|
|
631
|
+
canonicalString
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
// packages/client/query/src/lib/models/token-position.transformation.ts
|
|
636
|
+
var token_position_transformation_exports = {};
|
|
637
|
+
__export(token_position_transformation_exports, {
|
|
638
|
+
fromFormData: () => fromFormData,
|
|
639
|
+
fromJson: () => fromJson12,
|
|
640
|
+
isJson: () => isJson11,
|
|
641
|
+
isTokenPosition: () => isTokenPosition,
|
|
642
|
+
toFormData: () => toFormData,
|
|
643
|
+
toJson: () => toJson12
|
|
644
|
+
});
|
|
645
|
+
|
|
646
|
+
// packages/client/query/src/lib/models/position-info.transformation.ts
|
|
647
|
+
var position_info_transformation_exports = {};
|
|
648
|
+
__export(position_info_transformation_exports, {
|
|
649
|
+
fromJson: () => fromJson11,
|
|
650
|
+
isJson: () => isJson10,
|
|
651
|
+
isPositionInfo: () => isPositionInfo,
|
|
652
|
+
toJson: () => toJson11
|
|
653
|
+
});
|
|
654
|
+
function isPositionInfo(value) {
|
|
655
|
+
if (value === null) {
|
|
656
|
+
return false;
|
|
657
|
+
}
|
|
658
|
+
if (value === void 0) {
|
|
659
|
+
return false;
|
|
660
|
+
}
|
|
661
|
+
if (Array.isArray(value)) {
|
|
662
|
+
return false;
|
|
663
|
+
}
|
|
664
|
+
const modelKeys = /* @__PURE__ */ new Set(["column", "index", "line"]);
|
|
665
|
+
const hasAdditionalProperties = false;
|
|
666
|
+
const requiredKeys = ["column", "index", "line"];
|
|
667
|
+
const optionalKeys = [];
|
|
668
|
+
const valKeys = new Set(Object.keys(value));
|
|
669
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
670
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
671
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
672
|
+
}
|
|
673
|
+
function isJson10(value) {
|
|
674
|
+
if (value === null) {
|
|
675
|
+
return false;
|
|
676
|
+
}
|
|
677
|
+
if (value === void 0) {
|
|
678
|
+
return false;
|
|
679
|
+
}
|
|
680
|
+
if (Array.isArray(value)) {
|
|
681
|
+
return false;
|
|
682
|
+
}
|
|
683
|
+
const modelKeys = /* @__PURE__ */ new Set(["column", "index", "line"]);
|
|
684
|
+
const hasAdditionalProperties = false;
|
|
685
|
+
const requiredKeys = ["column", "index", "line"];
|
|
686
|
+
const optionalKeys = [];
|
|
687
|
+
const valKeys = new Set(Object.keys(value));
|
|
688
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
689
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
690
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
691
|
+
}
|
|
692
|
+
function fromJson11($model) {
|
|
693
|
+
const { column, index, line } = $model;
|
|
694
|
+
return {
|
|
695
|
+
column,
|
|
696
|
+
index,
|
|
697
|
+
line
|
|
698
|
+
};
|
|
699
|
+
}
|
|
700
|
+
function toJson11($model) {
|
|
701
|
+
const { column, index, line } = $model;
|
|
702
|
+
return {
|
|
703
|
+
column,
|
|
704
|
+
index,
|
|
705
|
+
line
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
// packages/client/query/src/lib/models/token-position.transformation.ts
|
|
710
|
+
function isTokenPosition(value) {
|
|
711
|
+
if (value === null) {
|
|
712
|
+
return false;
|
|
713
|
+
}
|
|
714
|
+
if (value === void 0) {
|
|
715
|
+
return false;
|
|
716
|
+
}
|
|
717
|
+
if (Array.isArray(value)) {
|
|
718
|
+
return false;
|
|
719
|
+
}
|
|
720
|
+
const modelKeys = /* @__PURE__ */ new Set(["start", "end"]);
|
|
721
|
+
const hasAdditionalProperties = false;
|
|
722
|
+
const requiredKeys = ["end", "start"];
|
|
723
|
+
const optionalKeys = [];
|
|
724
|
+
const valKeys = new Set(Object.keys(value));
|
|
725
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
726
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
727
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
728
|
+
}
|
|
729
|
+
function isJson11(value) {
|
|
730
|
+
if (value === null) {
|
|
731
|
+
return false;
|
|
732
|
+
}
|
|
733
|
+
if (value === void 0) {
|
|
734
|
+
return false;
|
|
735
|
+
}
|
|
736
|
+
if (Array.isArray(value)) {
|
|
737
|
+
return false;
|
|
738
|
+
}
|
|
739
|
+
const modelKeys = /* @__PURE__ */ new Set(["start", "end"]);
|
|
740
|
+
const hasAdditionalProperties = false;
|
|
741
|
+
const requiredKeys = ["end", "start"];
|
|
742
|
+
const optionalKeys = [];
|
|
743
|
+
const valKeys = new Set(Object.keys(value));
|
|
744
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
745
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
746
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
747
|
+
}
|
|
748
|
+
function fromJson12($model) {
|
|
749
|
+
const { start, end } = $model;
|
|
750
|
+
return {
|
|
751
|
+
start: fromJson11(start),
|
|
752
|
+
end: fromJson11(end)
|
|
753
|
+
};
|
|
754
|
+
}
|
|
755
|
+
function toJson12($model) {
|
|
756
|
+
const { start, end } = $model;
|
|
757
|
+
return {
|
|
758
|
+
start: toJson11(start),
|
|
759
|
+
end: toJson11(end)
|
|
760
|
+
};
|
|
761
|
+
}
|
|
762
|
+
function fromFormData(formData) {
|
|
763
|
+
const formDataEntries = Object.fromEntries(formData.map((data) => [data.name, data.value]));
|
|
764
|
+
return {
|
|
765
|
+
start: fromJson11(JSON.parse(formDataEntries["start"])),
|
|
766
|
+
end: fromJson11(JSON.parse(formDataEntries["end"]))
|
|
767
|
+
};
|
|
768
|
+
}
|
|
769
|
+
function toFormData($model) {
|
|
770
|
+
const json = toJson12($model);
|
|
771
|
+
const body = [
|
|
772
|
+
{ name: "start", type: "json", value: json["start"] },
|
|
773
|
+
{ name: "end", type: "json", value: json["end"] }
|
|
774
|
+
];
|
|
775
|
+
return body;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
// packages/client/query/src/lib/models/dql-node.transformation.ts
|
|
779
|
+
function isDqlTerminalNode2($model) {
|
|
780
|
+
return $model["nodeType"] === "TERMINAL";
|
|
781
|
+
}
|
|
782
|
+
function isDqlContainerNode2($model) {
|
|
783
|
+
return $model["nodeType"] === "CONTAINER";
|
|
784
|
+
}
|
|
785
|
+
function isDqlAlternativeNode2($model) {
|
|
786
|
+
return $model["nodeType"] === "ALTERNATIVE";
|
|
787
|
+
}
|
|
788
|
+
function isJson12(value) {
|
|
789
|
+
if (value === null) {
|
|
790
|
+
return false;
|
|
791
|
+
}
|
|
792
|
+
if (value === void 0) {
|
|
793
|
+
return false;
|
|
794
|
+
}
|
|
795
|
+
if (Array.isArray(value)) {
|
|
796
|
+
return false;
|
|
797
|
+
}
|
|
798
|
+
const modelKeys = /* @__PURE__ */ new Set(["nodeType", "tokenPosition", "isOptional"]);
|
|
799
|
+
const hasAdditionalProperties = false;
|
|
800
|
+
const requiredKeys = ["isOptional", "nodeType"];
|
|
801
|
+
const optionalKeys = ["tokenPosition"];
|
|
802
|
+
const valKeys = new Set(Object.keys(value));
|
|
803
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
804
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
805
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
806
|
+
}
|
|
807
|
+
function fromJson6($model, includeChildProps = true) {
|
|
808
|
+
if (includeChildProps) {
|
|
809
|
+
switch ($model.nodeType) {
|
|
810
|
+
case "TERMINAL":
|
|
811
|
+
return fromJson10($model);
|
|
812
|
+
case "CONTAINER":
|
|
813
|
+
return fromJson8($model);
|
|
814
|
+
case "ALTERNATIVE":
|
|
815
|
+
return fromJson7($model);
|
|
816
|
+
default:
|
|
817
|
+
return fromJson6($model, false);
|
|
431
818
|
}
|
|
432
|
-
const { nodeType, tokenPosition, isOptional } = model;
|
|
433
|
-
return {
|
|
434
|
-
nodeType: _DQLNodeNodeTypeTransformation.fromJson(nodeType),
|
|
435
|
-
tokenPosition: tokenPosition !== void 0 && tokenPosition !== null ? _TokenPositionTransformation.fromJson(tokenPosition) : void 0,
|
|
436
|
-
isOptional
|
|
437
|
-
};
|
|
438
819
|
}
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
820
|
+
const { nodeType, tokenPosition, isOptional } = $model;
|
|
821
|
+
return {
|
|
822
|
+
nodeType: fromJson9(nodeType),
|
|
823
|
+
tokenPosition: tokenPosition !== void 0 && tokenPosition !== null ? fromJson12(tokenPosition) : void 0,
|
|
824
|
+
isOptional
|
|
825
|
+
};
|
|
826
|
+
}
|
|
827
|
+
function toJson6($model, includeChildProps = true) {
|
|
828
|
+
if (includeChildProps) {
|
|
829
|
+
switch ($model.nodeType) {
|
|
830
|
+
case "TERMINAL":
|
|
831
|
+
return toJson10($model);
|
|
832
|
+
case "CONTAINER":
|
|
833
|
+
return toJson8($model);
|
|
834
|
+
case "ALTERNATIVE":
|
|
835
|
+
return toJson7($model);
|
|
836
|
+
default:
|
|
837
|
+
return toJson6($model, false);
|
|
452
838
|
}
|
|
453
|
-
const { nodeType, tokenPosition, isOptional } = model;
|
|
454
|
-
return {
|
|
455
|
-
nodeType: _DQLNodeNodeTypeTransformation.toJson(nodeType),
|
|
456
|
-
tokenPosition: tokenPosition !== void 0 && tokenPosition !== null ? _TokenPositionTransformation.toJson(tokenPosition) : void 0,
|
|
457
|
-
isOptional
|
|
458
|
-
};
|
|
459
839
|
}
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
const {
|
|
468
|
-
exceptionType,
|
|
469
|
-
syntaxErrorPosition,
|
|
470
|
-
errorType,
|
|
471
|
-
errorMessage,
|
|
472
|
-
arguments: _arguments,
|
|
473
|
-
queryString,
|
|
474
|
-
errorMessageFormatSpecifierTypes,
|
|
475
|
-
errorMessageFormat
|
|
476
|
-
} = model;
|
|
477
|
-
return {
|
|
478
|
-
exceptionType,
|
|
479
|
-
syntaxErrorPosition: syntaxErrorPosition !== void 0 && syntaxErrorPosition !== null ? _TokenPositionTransformation.fromJson(syntaxErrorPosition) : void 0,
|
|
480
|
-
errorType,
|
|
481
|
-
errorMessage,
|
|
482
|
-
arguments: _arguments?.slice(0),
|
|
483
|
-
queryString,
|
|
484
|
-
errorMessageFormatSpecifierTypes: errorMessageFormatSpecifierTypes?.slice(0),
|
|
485
|
-
errorMessageFormat
|
|
486
|
-
};
|
|
487
|
-
}
|
|
488
|
-
_ErrorResponseDetailsTransformation2.fromJson = fromJson;
|
|
489
|
-
function toJson(model) {
|
|
490
|
-
const {
|
|
491
|
-
exceptionType,
|
|
492
|
-
syntaxErrorPosition,
|
|
493
|
-
errorType,
|
|
494
|
-
errorMessage,
|
|
495
|
-
arguments: _arguments,
|
|
496
|
-
queryString,
|
|
497
|
-
errorMessageFormatSpecifierTypes,
|
|
498
|
-
errorMessageFormat
|
|
499
|
-
} = model;
|
|
500
|
-
return {
|
|
501
|
-
exceptionType,
|
|
502
|
-
syntaxErrorPosition: syntaxErrorPosition !== void 0 && syntaxErrorPosition !== null ? _TokenPositionTransformation.toJson(syntaxErrorPosition) : void 0,
|
|
503
|
-
errorType,
|
|
504
|
-
errorMessage,
|
|
505
|
-
arguments: _arguments?.slice(0),
|
|
506
|
-
queryString,
|
|
507
|
-
errorMessageFormatSpecifierTypes: errorMessageFormatSpecifierTypes?.slice(0),
|
|
508
|
-
errorMessageFormat
|
|
509
|
-
};
|
|
510
|
-
}
|
|
511
|
-
_ErrorResponseDetailsTransformation2.toJson = toJson;
|
|
512
|
-
})(_ErrorResponseDetailsTransformation || (_ErrorResponseDetailsTransformation = {}));
|
|
840
|
+
const { nodeType, tokenPosition, isOptional } = $model;
|
|
841
|
+
return {
|
|
842
|
+
nodeType: toJson9(nodeType),
|
|
843
|
+
tokenPosition: tokenPosition !== void 0 && tokenPosition !== null ? toJson12(tokenPosition) : void 0,
|
|
844
|
+
isOptional
|
|
845
|
+
};
|
|
846
|
+
}
|
|
513
847
|
|
|
514
|
-
// packages/client/query/src/lib/models/error-
|
|
515
|
-
var
|
|
516
|
-
(
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
}
|
|
525
|
-
_ErrorResponseTransformation2.fromJson = fromJson;
|
|
526
|
-
function toJson(model) {
|
|
527
|
-
const { message, details, code } = model;
|
|
528
|
-
return {
|
|
529
|
-
message,
|
|
530
|
-
details: _ErrorResponseDetailsTransformation.toJson(details),
|
|
531
|
-
code
|
|
532
|
-
};
|
|
533
|
-
}
|
|
534
|
-
_ErrorResponseTransformation2.toJson = toJson;
|
|
535
|
-
})(_ErrorResponseTransformation || (_ErrorResponseTransformation = {}));
|
|
848
|
+
// packages/client/query/src/lib/models/error-envelope.transformation.ts
|
|
849
|
+
var error_envelope_transformation_exports = {};
|
|
850
|
+
__export(error_envelope_transformation_exports, {
|
|
851
|
+
fromFormData: () => fromFormData2,
|
|
852
|
+
fromJson: () => fromJson15,
|
|
853
|
+
isErrorEnvelope: () => isErrorEnvelope,
|
|
854
|
+
isJson: () => isJson15,
|
|
855
|
+
toFormData: () => toFormData2,
|
|
856
|
+
toJson: () => toJson15
|
|
857
|
+
});
|
|
536
858
|
|
|
537
|
-
// packages/client/query/src/lib/models/error-
|
|
538
|
-
var
|
|
539
|
-
(
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
}
|
|
546
|
-
_ErrorEnvelopeTransformation2.fromJson = fromJson;
|
|
547
|
-
function toJson(model) {
|
|
548
|
-
const { error } = model;
|
|
549
|
-
return {
|
|
550
|
-
error: _ErrorResponseTransformation.toJson(error)
|
|
551
|
-
};
|
|
552
|
-
}
|
|
553
|
-
_ErrorEnvelopeTransformation2.toJson = toJson;
|
|
554
|
-
function fromFormData(formData) {
|
|
555
|
-
const formDataEntries = Object.fromEntries(formData.map((data) => [data.name, data.value]));
|
|
556
|
-
return {
|
|
557
|
-
error: _ErrorResponseTransformation.fromJson(JSON.parse(formDataEntries["error"]))
|
|
558
|
-
};
|
|
559
|
-
}
|
|
560
|
-
_ErrorEnvelopeTransformation2.fromFormData = fromFormData;
|
|
561
|
-
function toFormData(model) {
|
|
562
|
-
const json = toJson(model);
|
|
563
|
-
const body = [{ name: "error", type: "json", value: json["error"] }];
|
|
564
|
-
return body;
|
|
565
|
-
}
|
|
566
|
-
_ErrorEnvelopeTransformation2.toFormData = toFormData;
|
|
567
|
-
})(_ErrorEnvelopeTransformation || (_ErrorEnvelopeTransformation = {}));
|
|
859
|
+
// packages/client/query/src/lib/models/error-response.transformation.ts
|
|
860
|
+
var error_response_transformation_exports = {};
|
|
861
|
+
__export(error_response_transformation_exports, {
|
|
862
|
+
fromJson: () => fromJson14,
|
|
863
|
+
isErrorResponse: () => isErrorResponse,
|
|
864
|
+
isJson: () => isJson14,
|
|
865
|
+
toJson: () => toJson14
|
|
866
|
+
});
|
|
568
867
|
|
|
569
|
-
// packages/client/query/src/lib/models/
|
|
570
|
-
var
|
|
571
|
-
(
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
868
|
+
// packages/client/query/src/lib/models/error-response-details.transformation.ts
|
|
869
|
+
var error_response_details_transformation_exports = {};
|
|
870
|
+
__export(error_response_details_transformation_exports, {
|
|
871
|
+
fromJson: () => fromJson13,
|
|
872
|
+
isErrorResponseDetails: () => isErrorResponseDetails,
|
|
873
|
+
isJson: () => isJson13,
|
|
874
|
+
toJson: () => toJson13
|
|
875
|
+
});
|
|
876
|
+
function isErrorResponseDetails(value) {
|
|
877
|
+
if (value === null) {
|
|
878
|
+
return false;
|
|
879
|
+
}
|
|
880
|
+
if (value === void 0) {
|
|
881
|
+
return false;
|
|
882
|
+
}
|
|
883
|
+
if (Array.isArray(value)) {
|
|
884
|
+
return false;
|
|
885
|
+
}
|
|
886
|
+
const modelKeys = /* @__PURE__ */ new Set([
|
|
887
|
+
"exceptionType",
|
|
888
|
+
"syntaxErrorPosition",
|
|
889
|
+
"errorType",
|
|
890
|
+
"errorMessage",
|
|
891
|
+
"arguments",
|
|
892
|
+
"queryString",
|
|
893
|
+
"errorMessageFormatSpecifierTypes",
|
|
894
|
+
"errorMessageFormat"
|
|
895
|
+
]);
|
|
896
|
+
const hasAdditionalProperties = false;
|
|
897
|
+
const requiredKeys = [
|
|
898
|
+
"arguments",
|
|
899
|
+
"errorMessage",
|
|
900
|
+
"errorMessageFormat",
|
|
901
|
+
"errorMessageFormatSpecifierTypes",
|
|
902
|
+
"errorType",
|
|
903
|
+
"exceptionType",
|
|
904
|
+
"queryString"
|
|
905
|
+
];
|
|
906
|
+
const optionalKeys = ["syntaxErrorPosition"];
|
|
907
|
+
const valKeys = new Set(Object.keys(value));
|
|
908
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
909
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
910
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
911
|
+
}
|
|
912
|
+
function isJson13(value) {
|
|
913
|
+
if (value === null) {
|
|
914
|
+
return false;
|
|
915
|
+
}
|
|
916
|
+
if (value === void 0) {
|
|
917
|
+
return false;
|
|
918
|
+
}
|
|
919
|
+
if (Array.isArray(value)) {
|
|
920
|
+
return false;
|
|
921
|
+
}
|
|
922
|
+
const modelKeys = /* @__PURE__ */ new Set([
|
|
923
|
+
"exceptionType",
|
|
924
|
+
"syntaxErrorPosition",
|
|
925
|
+
"errorType",
|
|
926
|
+
"errorMessage",
|
|
927
|
+
"arguments",
|
|
928
|
+
"queryString",
|
|
929
|
+
"errorMessageFormatSpecifierTypes",
|
|
930
|
+
"errorMessageFormat"
|
|
931
|
+
]);
|
|
932
|
+
const hasAdditionalProperties = false;
|
|
933
|
+
const requiredKeys = [
|
|
934
|
+
"arguments",
|
|
935
|
+
"errorMessage",
|
|
936
|
+
"errorMessageFormat",
|
|
937
|
+
"errorMessageFormatSpecifierTypes",
|
|
938
|
+
"errorType",
|
|
939
|
+
"exceptionType",
|
|
940
|
+
"queryString"
|
|
941
|
+
];
|
|
942
|
+
const optionalKeys = ["syntaxErrorPosition"];
|
|
943
|
+
const valKeys = new Set(Object.keys(value));
|
|
944
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
945
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
946
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
947
|
+
}
|
|
948
|
+
function fromJson13($model) {
|
|
949
|
+
const {
|
|
950
|
+
exceptionType,
|
|
951
|
+
syntaxErrorPosition,
|
|
952
|
+
errorType,
|
|
953
|
+
errorMessage,
|
|
954
|
+
arguments: _arguments,
|
|
955
|
+
queryString,
|
|
956
|
+
errorMessageFormatSpecifierTypes,
|
|
957
|
+
errorMessageFormat
|
|
958
|
+
} = $model;
|
|
959
|
+
return {
|
|
960
|
+
exceptionType,
|
|
961
|
+
syntaxErrorPosition: syntaxErrorPosition !== void 0 && syntaxErrorPosition !== null ? fromJson12(syntaxErrorPosition) : void 0,
|
|
962
|
+
errorType,
|
|
963
|
+
errorMessage,
|
|
964
|
+
arguments: _arguments?.slice(0),
|
|
965
|
+
queryString,
|
|
966
|
+
errorMessageFormatSpecifierTypes: errorMessageFormatSpecifierTypes?.slice(0),
|
|
967
|
+
errorMessageFormat
|
|
968
|
+
};
|
|
969
|
+
}
|
|
970
|
+
function toJson13($model) {
|
|
971
|
+
const {
|
|
972
|
+
exceptionType,
|
|
973
|
+
syntaxErrorPosition,
|
|
974
|
+
errorType,
|
|
975
|
+
errorMessage,
|
|
976
|
+
arguments: _arguments,
|
|
977
|
+
queryString,
|
|
978
|
+
errorMessageFormatSpecifierTypes,
|
|
979
|
+
errorMessageFormat
|
|
980
|
+
} = $model;
|
|
981
|
+
return {
|
|
982
|
+
exceptionType,
|
|
983
|
+
syntaxErrorPosition: syntaxErrorPosition !== void 0 && syntaxErrorPosition !== null ? toJson12(syntaxErrorPosition) : void 0,
|
|
984
|
+
errorType,
|
|
985
|
+
errorMessage,
|
|
986
|
+
arguments: _arguments?.slice(0),
|
|
987
|
+
queryString,
|
|
988
|
+
errorMessageFormatSpecifierTypes: errorMessageFormatSpecifierTypes?.slice(0),
|
|
989
|
+
errorMessageFormat
|
|
990
|
+
};
|
|
991
|
+
}
|
|
591
992
|
|
|
592
|
-
// packages/client/query/src/lib/models/
|
|
593
|
-
|
|
594
|
-
(
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
message
|
|
648
|
-
} = model;
|
|
649
|
-
return {
|
|
650
|
-
severity,
|
|
651
|
-
messageFormat,
|
|
652
|
-
syntaxPosition: syntaxPosition !== void 0 && syntaxPosition !== null ? _TokenPositionTransformation.toJson(syntaxPosition) : void 0,
|
|
653
|
-
messageFormatSpecifierTypes: messageFormatSpecifierTypes !== void 0 && messageFormatSpecifierTypes !== null ? messageFormatSpecifierTypes?.slice(0) : void 0,
|
|
654
|
-
arguments: _arguments !== void 0 && _arguments !== null ? _arguments?.slice(0) : void 0,
|
|
655
|
-
notificationType,
|
|
656
|
-
message
|
|
657
|
-
};
|
|
658
|
-
}
|
|
659
|
-
_MetadataNotificationTransformation2.toJson = toJson;
|
|
660
|
-
})(_MetadataNotificationTransformation || (_MetadataNotificationTransformation = {}));
|
|
993
|
+
// packages/client/query/src/lib/models/error-response.transformation.ts
|
|
994
|
+
function isErrorResponse(value) {
|
|
995
|
+
if (value === null) {
|
|
996
|
+
return false;
|
|
997
|
+
}
|
|
998
|
+
if (value === void 0) {
|
|
999
|
+
return false;
|
|
1000
|
+
}
|
|
1001
|
+
if (Array.isArray(value)) {
|
|
1002
|
+
return false;
|
|
1003
|
+
}
|
|
1004
|
+
const modelKeys = /* @__PURE__ */ new Set(["message", "details", "code"]);
|
|
1005
|
+
const hasAdditionalProperties = false;
|
|
1006
|
+
const requiredKeys = ["code", "details", "message"];
|
|
1007
|
+
const optionalKeys = [];
|
|
1008
|
+
const valKeys = new Set(Object.keys(value));
|
|
1009
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
1010
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
1011
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
1012
|
+
}
|
|
1013
|
+
function isJson14(value) {
|
|
1014
|
+
if (value === null) {
|
|
1015
|
+
return false;
|
|
1016
|
+
}
|
|
1017
|
+
if (value === void 0) {
|
|
1018
|
+
return false;
|
|
1019
|
+
}
|
|
1020
|
+
if (Array.isArray(value)) {
|
|
1021
|
+
return false;
|
|
1022
|
+
}
|
|
1023
|
+
const modelKeys = /* @__PURE__ */ new Set(["message", "details", "code"]);
|
|
1024
|
+
const hasAdditionalProperties = false;
|
|
1025
|
+
const requiredKeys = ["code", "details", "message"];
|
|
1026
|
+
const optionalKeys = [];
|
|
1027
|
+
const valKeys = new Set(Object.keys(value));
|
|
1028
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
1029
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
1030
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
1031
|
+
}
|
|
1032
|
+
function fromJson14($model) {
|
|
1033
|
+
const { message, details, code } = $model;
|
|
1034
|
+
return {
|
|
1035
|
+
message,
|
|
1036
|
+
details: fromJson13(details),
|
|
1037
|
+
code
|
|
1038
|
+
};
|
|
1039
|
+
}
|
|
1040
|
+
function toJson14($model) {
|
|
1041
|
+
const { message, details, code } = $model;
|
|
1042
|
+
return {
|
|
1043
|
+
message,
|
|
1044
|
+
details: toJson13(details),
|
|
1045
|
+
code
|
|
1046
|
+
};
|
|
1047
|
+
}
|
|
661
1048
|
|
|
662
|
-
// packages/client/query/src/lib/models/
|
|
663
|
-
|
|
664
|
-
(
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
}
|
|
1049
|
+
// packages/client/query/src/lib/models/error-envelope.transformation.ts
|
|
1050
|
+
function isErrorEnvelope(value) {
|
|
1051
|
+
if (value === null) {
|
|
1052
|
+
return false;
|
|
1053
|
+
}
|
|
1054
|
+
if (value === void 0) {
|
|
1055
|
+
return false;
|
|
1056
|
+
}
|
|
1057
|
+
if (Array.isArray(value)) {
|
|
1058
|
+
return false;
|
|
1059
|
+
}
|
|
1060
|
+
const modelKeys = /* @__PURE__ */ new Set(["error"]);
|
|
1061
|
+
const hasAdditionalProperties = false;
|
|
1062
|
+
const requiredKeys = ["error"];
|
|
1063
|
+
const optionalKeys = [];
|
|
1064
|
+
const valKeys = new Set(Object.keys(value));
|
|
1065
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
1066
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
1067
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
1068
|
+
}
|
|
1069
|
+
function isJson15(value) {
|
|
1070
|
+
if (value === null) {
|
|
1071
|
+
return false;
|
|
1072
|
+
}
|
|
1073
|
+
if (value === void 0) {
|
|
1074
|
+
return false;
|
|
1075
|
+
}
|
|
1076
|
+
if (Array.isArray(value)) {
|
|
1077
|
+
return false;
|
|
1078
|
+
}
|
|
1079
|
+
const modelKeys = /* @__PURE__ */ new Set(["error"]);
|
|
1080
|
+
const hasAdditionalProperties = false;
|
|
1081
|
+
const requiredKeys = ["error"];
|
|
1082
|
+
const optionalKeys = [];
|
|
1083
|
+
const valKeys = new Set(Object.keys(value));
|
|
1084
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
1085
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
1086
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
1087
|
+
}
|
|
1088
|
+
function fromJson15($model) {
|
|
1089
|
+
const { error } = $model;
|
|
1090
|
+
return {
|
|
1091
|
+
error: fromJson14(error)
|
|
1092
|
+
};
|
|
1093
|
+
}
|
|
1094
|
+
function toJson15($model) {
|
|
1095
|
+
const { error } = $model;
|
|
1096
|
+
return {
|
|
1097
|
+
error: toJson14(error)
|
|
1098
|
+
};
|
|
1099
|
+
}
|
|
1100
|
+
function fromFormData2(formData) {
|
|
1101
|
+
const formDataEntries = Object.fromEntries(formData.map((data) => [data.name, data.value]));
|
|
1102
|
+
return {
|
|
1103
|
+
error: fromJson14(JSON.parse(formDataEntries["error"]))
|
|
1104
|
+
};
|
|
1105
|
+
}
|
|
1106
|
+
function toFormData2($model) {
|
|
1107
|
+
const json = toJson15($model);
|
|
1108
|
+
const body = [{ name: "error", type: "json", value: json["error"] }];
|
|
1109
|
+
return body;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
// packages/client/query/src/lib/models/parse-request.transformation.ts
|
|
1113
|
+
var parse_request_transformation_exports = {};
|
|
1114
|
+
__export(parse_request_transformation_exports, {
|
|
1115
|
+
fromJson: () => fromJson16,
|
|
1116
|
+
isJson: () => isJson16,
|
|
1117
|
+
isParseRequest: () => isParseRequest,
|
|
1118
|
+
toJson: () => toJson16
|
|
1119
|
+
});
|
|
1120
|
+
function isParseRequest(value) {
|
|
1121
|
+
if (value === null) {
|
|
1122
|
+
return false;
|
|
1123
|
+
}
|
|
1124
|
+
if (value === void 0) {
|
|
1125
|
+
return false;
|
|
1126
|
+
}
|
|
1127
|
+
if (Array.isArray(value)) {
|
|
1128
|
+
return false;
|
|
1129
|
+
}
|
|
1130
|
+
const modelKeys = /* @__PURE__ */ new Set(["query", "timezone", "locale"]);
|
|
1131
|
+
const hasAdditionalProperties = false;
|
|
1132
|
+
const requiredKeys = ["query"];
|
|
1133
|
+
const optionalKeys = ["timezone", "locale"];
|
|
1134
|
+
const valKeys = new Set(Object.keys(value));
|
|
1135
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
1136
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
1137
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
1138
|
+
}
|
|
1139
|
+
function isJson16(value) {
|
|
1140
|
+
if (value === null) {
|
|
1141
|
+
return false;
|
|
1142
|
+
}
|
|
1143
|
+
if (value === void 0) {
|
|
1144
|
+
return false;
|
|
1145
|
+
}
|
|
1146
|
+
if (Array.isArray(value)) {
|
|
1147
|
+
return false;
|
|
1148
|
+
}
|
|
1149
|
+
const modelKeys = /* @__PURE__ */ new Set(["query", "timezone", "locale"]);
|
|
1150
|
+
const hasAdditionalProperties = false;
|
|
1151
|
+
const requiredKeys = ["query"];
|
|
1152
|
+
const optionalKeys = ["timezone", "locale"];
|
|
1153
|
+
const valKeys = new Set(Object.keys(value));
|
|
1154
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
1155
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
1156
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
1157
|
+
}
|
|
1158
|
+
function fromJson16($model) {
|
|
1159
|
+
const { query, timezone, locale } = $model;
|
|
1160
|
+
return {
|
|
1161
|
+
query,
|
|
1162
|
+
timezone,
|
|
1163
|
+
locale
|
|
1164
|
+
};
|
|
1165
|
+
}
|
|
1166
|
+
function toJson16($model) {
|
|
1167
|
+
const { query, timezone, locale } = $model;
|
|
1168
|
+
return {
|
|
1169
|
+
query,
|
|
1170
|
+
timezone,
|
|
1171
|
+
locale
|
|
1172
|
+
};
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
// packages/client/query/src/lib/models/verify-request.transformation.ts
|
|
1176
|
+
var verify_request_transformation_exports = {};
|
|
1177
|
+
__export(verify_request_transformation_exports, {
|
|
1178
|
+
fromJson: () => fromJson17,
|
|
1179
|
+
isJson: () => isJson17,
|
|
1180
|
+
isVerifyRequest: () => isVerifyRequest,
|
|
1181
|
+
toJson: () => toJson17
|
|
1182
|
+
});
|
|
1183
|
+
function isVerifyRequest(value) {
|
|
1184
|
+
if (value === null) {
|
|
1185
|
+
return false;
|
|
1186
|
+
}
|
|
1187
|
+
if (value === void 0) {
|
|
1188
|
+
return false;
|
|
1189
|
+
}
|
|
1190
|
+
if (Array.isArray(value)) {
|
|
1191
|
+
return false;
|
|
1192
|
+
}
|
|
1193
|
+
const modelKeys = /* @__PURE__ */ new Set(["query", "timezone", "locale"]);
|
|
1194
|
+
const hasAdditionalProperties = false;
|
|
1195
|
+
const requiredKeys = ["query"];
|
|
1196
|
+
const optionalKeys = ["timezone", "locale"];
|
|
1197
|
+
const valKeys = new Set(Object.keys(value));
|
|
1198
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
1199
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
1200
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
1201
|
+
}
|
|
1202
|
+
function isJson17(value) {
|
|
1203
|
+
if (value === null) {
|
|
1204
|
+
return false;
|
|
1205
|
+
}
|
|
1206
|
+
if (value === void 0) {
|
|
1207
|
+
return false;
|
|
1208
|
+
}
|
|
1209
|
+
if (Array.isArray(value)) {
|
|
1210
|
+
return false;
|
|
1211
|
+
}
|
|
1212
|
+
const modelKeys = /* @__PURE__ */ new Set(["query", "timezone", "locale"]);
|
|
1213
|
+
const hasAdditionalProperties = false;
|
|
1214
|
+
const requiredKeys = ["query"];
|
|
1215
|
+
const optionalKeys = ["timezone", "locale"];
|
|
1216
|
+
const valKeys = new Set(Object.keys(value));
|
|
1217
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
1218
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
1219
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
1220
|
+
}
|
|
1221
|
+
function fromJson17($model) {
|
|
1222
|
+
const { query, timezone, locale } = $model;
|
|
1223
|
+
return {
|
|
1224
|
+
query,
|
|
1225
|
+
timezone,
|
|
1226
|
+
locale
|
|
1227
|
+
};
|
|
1228
|
+
}
|
|
1229
|
+
function toJson17($model) {
|
|
1230
|
+
const { query, timezone, locale } = $model;
|
|
1231
|
+
return {
|
|
1232
|
+
query,
|
|
1233
|
+
timezone,
|
|
1234
|
+
locale
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
// packages/client/query/src/lib/models/verify-response.transformation.ts
|
|
1239
|
+
var verify_response_transformation_exports = {};
|
|
1240
|
+
__export(verify_response_transformation_exports, {
|
|
1241
|
+
fromJson: () => fromJson19,
|
|
1242
|
+
isJson: () => isJson19,
|
|
1243
|
+
isVerifyResponse: () => isVerifyResponse,
|
|
1244
|
+
toJson: () => toJson19
|
|
1245
|
+
});
|
|
1246
|
+
|
|
1247
|
+
// packages/client/query/src/lib/models/metadata-notification.transformation.ts
|
|
1248
|
+
var metadata_notification_transformation_exports = {};
|
|
1249
|
+
__export(metadata_notification_transformation_exports, {
|
|
1250
|
+
fromJson: () => fromJson18,
|
|
1251
|
+
isJson: () => isJson18,
|
|
1252
|
+
isMetadataNotification: () => isMetadataNotification,
|
|
1253
|
+
toJson: () => toJson18
|
|
1254
|
+
});
|
|
1255
|
+
function isMetadataNotification(value) {
|
|
1256
|
+
if (value === null) {
|
|
1257
|
+
return false;
|
|
1258
|
+
}
|
|
1259
|
+
if (value === void 0) {
|
|
1260
|
+
return false;
|
|
1261
|
+
}
|
|
1262
|
+
if (Array.isArray(value)) {
|
|
1263
|
+
return false;
|
|
1264
|
+
}
|
|
1265
|
+
const modelKeys = /* @__PURE__ */ new Set([
|
|
1266
|
+
"severity",
|
|
1267
|
+
"messageFormat",
|
|
1268
|
+
"syntaxPosition",
|
|
1269
|
+
"messageFormatSpecifierTypes",
|
|
1270
|
+
"arguments",
|
|
1271
|
+
"notificationType",
|
|
1272
|
+
"message"
|
|
1273
|
+
]);
|
|
1274
|
+
const hasAdditionalProperties = false;
|
|
1275
|
+
const requiredKeys = [];
|
|
1276
|
+
const optionalKeys = [
|
|
1277
|
+
"severity",
|
|
1278
|
+
"messageFormat",
|
|
1279
|
+
"syntaxPosition",
|
|
1280
|
+
"messageFormatSpecifierTypes",
|
|
1281
|
+
"arguments",
|
|
1282
|
+
"notificationType",
|
|
1283
|
+
"message"
|
|
1284
|
+
];
|
|
1285
|
+
const valKeys = new Set(Object.keys(value));
|
|
1286
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
1287
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
1288
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
1289
|
+
}
|
|
1290
|
+
function isJson18(value) {
|
|
1291
|
+
if (value === null) {
|
|
1292
|
+
return false;
|
|
1293
|
+
}
|
|
1294
|
+
if (value === void 0) {
|
|
1295
|
+
return false;
|
|
1296
|
+
}
|
|
1297
|
+
if (Array.isArray(value)) {
|
|
1298
|
+
return false;
|
|
1299
|
+
}
|
|
1300
|
+
const modelKeys = /* @__PURE__ */ new Set([
|
|
1301
|
+
"severity",
|
|
1302
|
+
"messageFormat",
|
|
1303
|
+
"syntaxPosition",
|
|
1304
|
+
"messageFormatSpecifierTypes",
|
|
1305
|
+
"arguments",
|
|
1306
|
+
"notificationType",
|
|
1307
|
+
"message"
|
|
1308
|
+
]);
|
|
1309
|
+
const hasAdditionalProperties = false;
|
|
1310
|
+
const requiredKeys = [];
|
|
1311
|
+
const optionalKeys = [
|
|
1312
|
+
"severity",
|
|
1313
|
+
"messageFormat",
|
|
1314
|
+
"syntaxPosition",
|
|
1315
|
+
"messageFormatSpecifierTypes",
|
|
1316
|
+
"arguments",
|
|
1317
|
+
"notificationType",
|
|
1318
|
+
"message"
|
|
1319
|
+
];
|
|
1320
|
+
const valKeys = new Set(Object.keys(value));
|
|
1321
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
1322
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
1323
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
1324
|
+
}
|
|
1325
|
+
function fromJson18($model) {
|
|
1326
|
+
const {
|
|
1327
|
+
severity,
|
|
1328
|
+
messageFormat,
|
|
1329
|
+
syntaxPosition,
|
|
1330
|
+
messageFormatSpecifierTypes,
|
|
1331
|
+
arguments: _arguments,
|
|
1332
|
+
notificationType,
|
|
1333
|
+
message
|
|
1334
|
+
} = $model;
|
|
1335
|
+
return {
|
|
1336
|
+
severity,
|
|
1337
|
+
messageFormat,
|
|
1338
|
+
syntaxPosition: syntaxPosition !== void 0 && syntaxPosition !== null ? fromJson12(syntaxPosition) : void 0,
|
|
1339
|
+
messageFormatSpecifierTypes: messageFormatSpecifierTypes !== void 0 && messageFormatSpecifierTypes !== null ? messageFormatSpecifierTypes?.slice(0) : void 0,
|
|
1340
|
+
arguments: _arguments !== void 0 && _arguments !== null ? _arguments?.slice(0) : void 0,
|
|
1341
|
+
notificationType,
|
|
1342
|
+
message
|
|
1343
|
+
};
|
|
1344
|
+
}
|
|
1345
|
+
function toJson18($model) {
|
|
1346
|
+
const {
|
|
1347
|
+
severity,
|
|
1348
|
+
messageFormat,
|
|
1349
|
+
syntaxPosition,
|
|
1350
|
+
messageFormatSpecifierTypes,
|
|
1351
|
+
arguments: _arguments,
|
|
1352
|
+
notificationType,
|
|
1353
|
+
message
|
|
1354
|
+
} = $model;
|
|
1355
|
+
return {
|
|
1356
|
+
severity,
|
|
1357
|
+
messageFormat,
|
|
1358
|
+
syntaxPosition: syntaxPosition !== void 0 && syntaxPosition !== null ? toJson12(syntaxPosition) : void 0,
|
|
1359
|
+
messageFormatSpecifierTypes: messageFormatSpecifierTypes !== void 0 && messageFormatSpecifierTypes !== null ? messageFormatSpecifierTypes?.slice(0) : void 0,
|
|
1360
|
+
arguments: _arguments !== void 0 && _arguments !== null ? _arguments?.slice(0) : void 0,
|
|
1361
|
+
notificationType,
|
|
1362
|
+
message
|
|
1363
|
+
};
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
// packages/client/query/src/lib/models/verify-response.transformation.ts
|
|
1367
|
+
function isVerifyResponse(value) {
|
|
1368
|
+
if (value === null) {
|
|
1369
|
+
return false;
|
|
1370
|
+
}
|
|
1371
|
+
if (value === void 0) {
|
|
1372
|
+
return false;
|
|
1373
|
+
}
|
|
1374
|
+
if (Array.isArray(value)) {
|
|
1375
|
+
return false;
|
|
1376
|
+
}
|
|
1377
|
+
const modelKeys = /* @__PURE__ */ new Set(["valid", "notifications"]);
|
|
1378
|
+
const hasAdditionalProperties = false;
|
|
1379
|
+
const requiredKeys = ["valid"];
|
|
1380
|
+
const optionalKeys = ["notifications"];
|
|
1381
|
+
const valKeys = new Set(Object.keys(value));
|
|
1382
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
1383
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
1384
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
1385
|
+
}
|
|
1386
|
+
function isJson19(value) {
|
|
1387
|
+
if (value === null) {
|
|
1388
|
+
return false;
|
|
1389
|
+
}
|
|
1390
|
+
if (value === void 0) {
|
|
1391
|
+
return false;
|
|
1392
|
+
}
|
|
1393
|
+
if (Array.isArray(value)) {
|
|
1394
|
+
return false;
|
|
1395
|
+
}
|
|
1396
|
+
const modelKeys = /* @__PURE__ */ new Set(["valid", "notifications"]);
|
|
1397
|
+
const hasAdditionalProperties = false;
|
|
1398
|
+
const requiredKeys = ["valid"];
|
|
1399
|
+
const optionalKeys = ["notifications"];
|
|
1400
|
+
const valKeys = new Set(Object.keys(value));
|
|
1401
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
1402
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
1403
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
1404
|
+
}
|
|
1405
|
+
function fromJson19($model) {
|
|
1406
|
+
const { valid, notifications } = $model;
|
|
1407
|
+
return {
|
|
1408
|
+
valid,
|
|
1409
|
+
notifications: notifications !== void 0 && notifications !== null ? notifications?.map((innerValue) => fromJson18(innerValue)) : void 0
|
|
1410
|
+
};
|
|
1411
|
+
}
|
|
1412
|
+
function toJson19($model) {
|
|
1413
|
+
const { valid, notifications } = $model;
|
|
1414
|
+
return {
|
|
1415
|
+
valid,
|
|
1416
|
+
notifications: notifications !== void 0 && notifications !== null ? notifications?.map((innerValue) => toJson18(innerValue)) : void 0
|
|
1417
|
+
};
|
|
1418
|
+
}
|
|
682
1419
|
|
|
683
1420
|
// packages/client/query/src/lib/apis/query-assistance-api.ts
|
|
684
1421
|
var QueryAssistanceClient = class {
|
|
@@ -691,7 +1428,7 @@ var QueryAssistanceClient = class {
|
|
|
691
1428
|
if (!config) {
|
|
692
1429
|
throw new ApiClientError("API client error", "API client call is missing mandatory config parameter");
|
|
693
1430
|
}
|
|
694
|
-
const encodedBody =
|
|
1431
|
+
const encodedBody = toJson17(config.body);
|
|
695
1432
|
const headerParameters = {
|
|
696
1433
|
...config.authorization !== void 0 && { Authorization: String(config.authorization) }
|
|
697
1434
|
};
|
|
@@ -717,7 +1454,7 @@ var QueryAssistanceClient = class {
|
|
|
717
1454
|
case 400: {
|
|
718
1455
|
const responseValue = await response.body("json");
|
|
719
1456
|
try {
|
|
720
|
-
const errorBody =
|
|
1457
|
+
const errorBody = fromJson15(responseValue);
|
|
721
1458
|
throw new ErrorEnvelopeError("400", response, errorBody, "The supplied request is wrong.");
|
|
722
1459
|
} catch (err) {
|
|
723
1460
|
if (err instanceof ErrorEnvelopeError) {
|
|
@@ -735,7 +1472,7 @@ var QueryAssistanceClient = class {
|
|
|
735
1472
|
case 500: {
|
|
736
1473
|
const responseValue = await response.body("json");
|
|
737
1474
|
try {
|
|
738
|
-
const errorBody =
|
|
1475
|
+
const errorBody = fromJson15(responseValue);
|
|
739
1476
|
throw new ErrorEnvelopeError("500", response, errorBody, "An internal server error has occurred.");
|
|
740
1477
|
} catch (err) {
|
|
741
1478
|
if (err instanceof ErrorEnvelopeError) {
|
|
@@ -753,7 +1490,7 @@ var QueryAssistanceClient = class {
|
|
|
753
1490
|
case 200: {
|
|
754
1491
|
const responseValue = await response.body("json");
|
|
755
1492
|
try {
|
|
756
|
-
return
|
|
1493
|
+
return fromJson19(responseValue);
|
|
757
1494
|
} catch (err) {
|
|
758
1495
|
throw new InvalidResponseError(
|
|
759
1496
|
`QueryAssistanceClient.query:verify:${response.status}`,
|
|
@@ -765,7 +1502,7 @@ var QueryAssistanceClient = class {
|
|
|
765
1502
|
}
|
|
766
1503
|
}
|
|
767
1504
|
default: {
|
|
768
|
-
const responseValue = await response.body("text").catch();
|
|
1505
|
+
const responseValue = await response.body("text").catch(() => "");
|
|
769
1506
|
throw new ClientRequestError(
|
|
770
1507
|
`${response.status}`,
|
|
771
1508
|
response,
|
|
@@ -779,7 +1516,7 @@ var QueryAssistanceClient = class {
|
|
|
779
1516
|
if (!config) {
|
|
780
1517
|
throw new ApiClientError("API client error", "API client call is missing mandatory config parameter");
|
|
781
1518
|
}
|
|
782
|
-
const encodedBody =
|
|
1519
|
+
const encodedBody = toJson16(config.body);
|
|
783
1520
|
const headerParameters = {
|
|
784
1521
|
...config.authorization !== void 0 && { Authorization: String(config.authorization) }
|
|
785
1522
|
};
|
|
@@ -805,7 +1542,7 @@ var QueryAssistanceClient = class {
|
|
|
805
1542
|
case 400: {
|
|
806
1543
|
const responseValue = await response.body("json");
|
|
807
1544
|
try {
|
|
808
|
-
const errorBody =
|
|
1545
|
+
const errorBody = fromJson15(responseValue);
|
|
809
1546
|
throw new ErrorEnvelopeError(
|
|
810
1547
|
"400",
|
|
811
1548
|
response,
|
|
@@ -828,7 +1565,7 @@ var QueryAssistanceClient = class {
|
|
|
828
1565
|
case 500: {
|
|
829
1566
|
const responseValue = await response.body("json");
|
|
830
1567
|
try {
|
|
831
|
-
const errorBody =
|
|
1568
|
+
const errorBody = fromJson15(responseValue);
|
|
832
1569
|
throw new ErrorEnvelopeError("500", response, errorBody, "An internal server error has occurred.");
|
|
833
1570
|
} catch (err) {
|
|
834
1571
|
if (err instanceof ErrorEnvelopeError) {
|
|
@@ -846,7 +1583,7 @@ var QueryAssistanceClient = class {
|
|
|
846
1583
|
case 200: {
|
|
847
1584
|
const responseValue = await response.body("json");
|
|
848
1585
|
try {
|
|
849
|
-
return
|
|
1586
|
+
return fromJson6(responseValue);
|
|
850
1587
|
} catch (err) {
|
|
851
1588
|
throw new InvalidResponseError(
|
|
852
1589
|
`QueryAssistanceClient.query:parse:${response.status}`,
|
|
@@ -858,7 +1595,7 @@ var QueryAssistanceClient = class {
|
|
|
858
1595
|
}
|
|
859
1596
|
}
|
|
860
1597
|
default: {
|
|
861
|
-
const responseValue = await response.body("text").catch();
|
|
1598
|
+
const responseValue = await response.body("text").catch(() => "");
|
|
862
1599
|
throw new ClientRequestError(
|
|
863
1600
|
`${response.status}`,
|
|
864
1601
|
response,
|
|
@@ -872,7 +1609,7 @@ var QueryAssistanceClient = class {
|
|
|
872
1609
|
if (!config) {
|
|
873
1610
|
throw new ApiClientError("API client error", "API client call is missing mandatory config parameter");
|
|
874
1611
|
}
|
|
875
|
-
const encodedBody =
|
|
1612
|
+
const encodedBody = toJson(config.body);
|
|
876
1613
|
const headerParameters = {
|
|
877
1614
|
...config.authorization !== void 0 && { Authorization: String(config.authorization) }
|
|
878
1615
|
};
|
|
@@ -898,7 +1635,7 @@ var QueryAssistanceClient = class {
|
|
|
898
1635
|
case 400: {
|
|
899
1636
|
const responseValue = await response.body("json");
|
|
900
1637
|
try {
|
|
901
|
-
const errorBody =
|
|
1638
|
+
const errorBody = fromJson15(responseValue);
|
|
902
1639
|
throw new ErrorEnvelopeError(
|
|
903
1640
|
"400",
|
|
904
1641
|
response,
|
|
@@ -921,7 +1658,7 @@ var QueryAssistanceClient = class {
|
|
|
921
1658
|
case 500: {
|
|
922
1659
|
const responseValue = await response.body("json");
|
|
923
1660
|
try {
|
|
924
|
-
const errorBody =
|
|
1661
|
+
const errorBody = fromJson15(responseValue);
|
|
925
1662
|
throw new ErrorEnvelopeError("500", response, errorBody, "An internal server error has occurred.");
|
|
926
1663
|
} catch (err) {
|
|
927
1664
|
if (err instanceof ErrorEnvelopeError) {
|
|
@@ -939,7 +1676,7 @@ var QueryAssistanceClient = class {
|
|
|
939
1676
|
case 200: {
|
|
940
1677
|
const responseValue = await response.body("json");
|
|
941
1678
|
try {
|
|
942
|
-
return
|
|
1679
|
+
return fromJson5(responseValue);
|
|
943
1680
|
} catch (err) {
|
|
944
1681
|
throw new InvalidResponseError(
|
|
945
1682
|
`QueryAssistanceClient.query:autocomplete:${response.status}`,
|
|
@@ -951,7 +1688,7 @@ var QueryAssistanceClient = class {
|
|
|
951
1688
|
}
|
|
952
1689
|
}
|
|
953
1690
|
default: {
|
|
954
|
-
const responseValue = await response.body("text").catch();
|
|
1691
|
+
const responseValue = await response.body("text").catch(() => "");
|
|
955
1692
|
throw new ClientRequestError(
|
|
956
1693
|
`${response.status}`,
|
|
957
1694
|
response,
|
|
@@ -967,431 +1704,1203 @@ var queryAssistanceClient = /* @__PURE__ */ new QueryAssistanceClient(defaultHtt
|
|
|
967
1704
|
// packages/client/query/src/lib/apis/query-execution-api.ts
|
|
968
1705
|
import { httpClient as defaultHttpClient2 } from "@dynatrace-sdk/http-client";
|
|
969
1706
|
|
|
970
|
-
// packages/client/query/src/lib/models/execute-request.ts
|
|
971
|
-
var
|
|
972
|
-
(
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
}
|
|
1030
|
-
|
|
1031
|
-
|
|
1707
|
+
// packages/client/query/src/lib/models/execute-request.transformation.ts
|
|
1708
|
+
var execute_request_transformation_exports = {};
|
|
1709
|
+
__export(execute_request_transformation_exports, {
|
|
1710
|
+
fromJson: () => fromJson20,
|
|
1711
|
+
isExecuteRequest: () => isExecuteRequest,
|
|
1712
|
+
isJson: () => isJson20,
|
|
1713
|
+
toJson: () => toJson20
|
|
1714
|
+
});
|
|
1715
|
+
function isExecuteRequest(value) {
|
|
1716
|
+
if (value === null) {
|
|
1717
|
+
return false;
|
|
1718
|
+
}
|
|
1719
|
+
if (value === void 0) {
|
|
1720
|
+
return false;
|
|
1721
|
+
}
|
|
1722
|
+
if (Array.isArray(value)) {
|
|
1723
|
+
return false;
|
|
1724
|
+
}
|
|
1725
|
+
const modelKeys = /* @__PURE__ */ new Set([
|
|
1726
|
+
"query",
|
|
1727
|
+
"defaultTimeframeStart",
|
|
1728
|
+
"defaultTimeframeEnd",
|
|
1729
|
+
"timezone",
|
|
1730
|
+
"locale",
|
|
1731
|
+
"maxResultRecords",
|
|
1732
|
+
"fetchTimeoutSeconds",
|
|
1733
|
+
"requestTimeoutMilliseconds",
|
|
1734
|
+
"enablePreview",
|
|
1735
|
+
"defaultSamplingRatio",
|
|
1736
|
+
"defaultScanLimitGbytes"
|
|
1737
|
+
]);
|
|
1738
|
+
const hasAdditionalProperties = false;
|
|
1739
|
+
const requiredKeys = ["query"];
|
|
1740
|
+
const optionalKeys = [
|
|
1741
|
+
"defaultTimeframeStart",
|
|
1742
|
+
"defaultTimeframeEnd",
|
|
1743
|
+
"timezone",
|
|
1744
|
+
"locale",
|
|
1745
|
+
"maxResultRecords",
|
|
1746
|
+
"fetchTimeoutSeconds",
|
|
1747
|
+
"requestTimeoutMilliseconds",
|
|
1748
|
+
"enablePreview",
|
|
1749
|
+
"defaultSamplingRatio",
|
|
1750
|
+
"defaultScanLimitGbytes"
|
|
1751
|
+
];
|
|
1752
|
+
const valKeys = new Set(Object.keys(value));
|
|
1753
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
1754
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
1755
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
1756
|
+
}
|
|
1757
|
+
function isJson20(value) {
|
|
1758
|
+
if (value === null) {
|
|
1759
|
+
return false;
|
|
1760
|
+
}
|
|
1761
|
+
if (value === void 0) {
|
|
1762
|
+
return false;
|
|
1763
|
+
}
|
|
1764
|
+
if (Array.isArray(value)) {
|
|
1765
|
+
return false;
|
|
1766
|
+
}
|
|
1767
|
+
const modelKeys = /* @__PURE__ */ new Set([
|
|
1768
|
+
"query",
|
|
1769
|
+
"defaultTimeframeStart",
|
|
1770
|
+
"defaultTimeframeEnd",
|
|
1771
|
+
"timezone",
|
|
1772
|
+
"locale",
|
|
1773
|
+
"maxResultRecords",
|
|
1774
|
+
"fetchTimeoutSeconds",
|
|
1775
|
+
"requestTimeoutMilliseconds",
|
|
1776
|
+
"enablePreview",
|
|
1777
|
+
"defaultSamplingRatio",
|
|
1778
|
+
"defaultScanLimitGbytes"
|
|
1779
|
+
]);
|
|
1780
|
+
const hasAdditionalProperties = false;
|
|
1781
|
+
const requiredKeys = ["query"];
|
|
1782
|
+
const optionalKeys = [
|
|
1783
|
+
"defaultTimeframeStart",
|
|
1784
|
+
"defaultTimeframeEnd",
|
|
1785
|
+
"timezone",
|
|
1786
|
+
"locale",
|
|
1787
|
+
"maxResultRecords",
|
|
1788
|
+
"fetchTimeoutSeconds",
|
|
1789
|
+
"requestTimeoutMilliseconds",
|
|
1790
|
+
"enablePreview",
|
|
1791
|
+
"defaultSamplingRatio",
|
|
1792
|
+
"defaultScanLimitGbytes"
|
|
1793
|
+
];
|
|
1794
|
+
const valKeys = new Set(Object.keys(value));
|
|
1795
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
1796
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
1797
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
1798
|
+
}
|
|
1799
|
+
function fromJson20($model) {
|
|
1800
|
+
const {
|
|
1801
|
+
query,
|
|
1802
|
+
defaultTimeframeStart,
|
|
1803
|
+
defaultTimeframeEnd,
|
|
1804
|
+
timezone,
|
|
1805
|
+
locale,
|
|
1806
|
+
maxResultRecords,
|
|
1807
|
+
fetchTimeoutSeconds,
|
|
1808
|
+
requestTimeoutMilliseconds,
|
|
1809
|
+
enablePreview,
|
|
1810
|
+
defaultSamplingRatio,
|
|
1811
|
+
defaultScanLimitGbytes
|
|
1812
|
+
} = $model;
|
|
1813
|
+
return {
|
|
1814
|
+
query,
|
|
1815
|
+
defaultTimeframeStart,
|
|
1816
|
+
defaultTimeframeEnd,
|
|
1817
|
+
timezone,
|
|
1818
|
+
locale,
|
|
1819
|
+
maxResultRecords,
|
|
1820
|
+
fetchTimeoutSeconds,
|
|
1821
|
+
requestTimeoutMilliseconds,
|
|
1822
|
+
enablePreview,
|
|
1823
|
+
defaultSamplingRatio,
|
|
1824
|
+
defaultScanLimitGbytes
|
|
1825
|
+
};
|
|
1826
|
+
}
|
|
1827
|
+
function toJson20($model) {
|
|
1828
|
+
const {
|
|
1829
|
+
query,
|
|
1830
|
+
defaultTimeframeStart,
|
|
1831
|
+
defaultTimeframeEnd,
|
|
1832
|
+
timezone,
|
|
1833
|
+
locale,
|
|
1834
|
+
maxResultRecords,
|
|
1835
|
+
fetchTimeoutSeconds,
|
|
1836
|
+
requestTimeoutMilliseconds,
|
|
1837
|
+
enablePreview,
|
|
1838
|
+
defaultSamplingRatio,
|
|
1839
|
+
defaultScanLimitGbytes
|
|
1840
|
+
} = $model;
|
|
1841
|
+
return {
|
|
1842
|
+
query,
|
|
1843
|
+
defaultTimeframeStart,
|
|
1844
|
+
defaultTimeframeEnd,
|
|
1845
|
+
timezone,
|
|
1846
|
+
locale,
|
|
1847
|
+
maxResultRecords,
|
|
1848
|
+
fetchTimeoutSeconds,
|
|
1849
|
+
requestTimeoutMilliseconds,
|
|
1850
|
+
enablePreview,
|
|
1851
|
+
defaultSamplingRatio,
|
|
1852
|
+
defaultScanLimitGbytes
|
|
1853
|
+
};
|
|
1854
|
+
}
|
|
1032
1855
|
|
|
1033
|
-
// packages/client/query/src/lib/models/
|
|
1034
|
-
var
|
|
1035
|
-
(
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1856
|
+
// packages/client/query/src/lib/models/query-poll-response.transformation.ts
|
|
1857
|
+
var query_poll_response_transformation_exports = {};
|
|
1858
|
+
__export(query_poll_response_transformation_exports, {
|
|
1859
|
+
fromJson: () => fromJson34,
|
|
1860
|
+
isJson: () => isJson34,
|
|
1861
|
+
isQueryPollResponse: () => isQueryPollResponse,
|
|
1862
|
+
toJson: () => toJson34
|
|
1863
|
+
});
|
|
1864
|
+
|
|
1865
|
+
// packages/client/query/src/lib/models/query-result.transformation.ts
|
|
1866
|
+
var query_result_transformation_exports = {};
|
|
1867
|
+
__export(query_result_transformation_exports, {
|
|
1868
|
+
fromJson: () => fromJson32,
|
|
1869
|
+
isJson: () => isJson32,
|
|
1870
|
+
isQueryResult: () => isQueryResult,
|
|
1871
|
+
toJson: () => toJson32
|
|
1872
|
+
});
|
|
1873
|
+
|
|
1874
|
+
// packages/client/query/src/lib/models/metadata.transformation.ts
|
|
1875
|
+
var metadata_transformation_exports = {};
|
|
1876
|
+
__export(metadata_transformation_exports, {
|
|
1877
|
+
fromJson: () => fromJson24,
|
|
1878
|
+
isJson: () => isJson24,
|
|
1879
|
+
isMetadata: () => isMetadata,
|
|
1880
|
+
toJson: () => toJson24
|
|
1881
|
+
});
|
|
1882
|
+
|
|
1883
|
+
// packages/client/query/src/lib/models/grail-metadata.transformation.ts
|
|
1884
|
+
var grail_metadata_transformation_exports = {};
|
|
1885
|
+
__export(grail_metadata_transformation_exports, {
|
|
1886
|
+
fromJson: () => fromJson22,
|
|
1887
|
+
isGrailMetadata: () => isGrailMetadata,
|
|
1888
|
+
isJson: () => isJson22,
|
|
1889
|
+
toJson: () => toJson22
|
|
1890
|
+
});
|
|
1891
|
+
|
|
1892
|
+
// packages/client/query/src/lib/models/timeframe.transformation.ts
|
|
1893
|
+
var timeframe_transformation_exports = {};
|
|
1894
|
+
__export(timeframe_transformation_exports, {
|
|
1895
|
+
fromJson: () => fromJson21,
|
|
1896
|
+
isJson: () => isJson21,
|
|
1897
|
+
isTimeframe: () => isTimeframe,
|
|
1898
|
+
toJson: () => toJson21
|
|
1899
|
+
});
|
|
1900
|
+
function isTimeframe(value) {
|
|
1901
|
+
if (value === null) {
|
|
1902
|
+
return false;
|
|
1903
|
+
}
|
|
1904
|
+
if (value === void 0) {
|
|
1905
|
+
return false;
|
|
1906
|
+
}
|
|
1907
|
+
if (Array.isArray(value)) {
|
|
1908
|
+
return false;
|
|
1909
|
+
}
|
|
1910
|
+
const modelKeys = /* @__PURE__ */ new Set(["start", "end"]);
|
|
1911
|
+
const hasAdditionalProperties = false;
|
|
1912
|
+
const requiredKeys = [];
|
|
1913
|
+
const optionalKeys = ["start", "end"];
|
|
1914
|
+
const valKeys = new Set(Object.keys(value));
|
|
1915
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
1916
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
1917
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
1918
|
+
}
|
|
1919
|
+
function isJson21(value) {
|
|
1920
|
+
if (value === null) {
|
|
1921
|
+
return false;
|
|
1922
|
+
}
|
|
1923
|
+
if (value === void 0) {
|
|
1924
|
+
return false;
|
|
1925
|
+
}
|
|
1926
|
+
if (Array.isArray(value)) {
|
|
1927
|
+
return false;
|
|
1928
|
+
}
|
|
1929
|
+
const modelKeys = /* @__PURE__ */ new Set(["start", "end"]);
|
|
1930
|
+
const hasAdditionalProperties = false;
|
|
1931
|
+
const requiredKeys = [];
|
|
1932
|
+
const optionalKeys = ["start", "end"];
|
|
1933
|
+
const valKeys = new Set(Object.keys(value));
|
|
1934
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
1935
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
1936
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
1937
|
+
}
|
|
1938
|
+
function fromJson21($model) {
|
|
1939
|
+
const { start, end } = $model;
|
|
1940
|
+
return {
|
|
1941
|
+
start: start !== void 0 && start !== null ? new Date(start) : void 0,
|
|
1942
|
+
end: end !== void 0 && end !== null ? new Date(end) : void 0
|
|
1943
|
+
};
|
|
1944
|
+
}
|
|
1945
|
+
function toJson21($model) {
|
|
1946
|
+
const { start, end } = $model;
|
|
1947
|
+
return {
|
|
1948
|
+
start: start !== void 0 && start !== null ? start.toISOString() : void 0,
|
|
1949
|
+
end: end !== void 0 && end !== null ? end.toISOString() : void 0
|
|
1950
|
+
};
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
// packages/client/query/src/lib/models/grail-metadata.transformation.ts
|
|
1954
|
+
function isGrailMetadata(value) {
|
|
1955
|
+
if (value === null) {
|
|
1956
|
+
return false;
|
|
1957
|
+
}
|
|
1958
|
+
if (value === void 0) {
|
|
1959
|
+
return false;
|
|
1960
|
+
}
|
|
1961
|
+
if (Array.isArray(value)) {
|
|
1962
|
+
return false;
|
|
1963
|
+
}
|
|
1964
|
+
const modelKeys = /* @__PURE__ */ new Set([
|
|
1965
|
+
"canonicalQuery",
|
|
1966
|
+
"timezone",
|
|
1967
|
+
"query",
|
|
1968
|
+
"scannedRecords",
|
|
1969
|
+
"dqlVersion",
|
|
1970
|
+
"scannedBytes",
|
|
1971
|
+
"analysisTimeframe",
|
|
1972
|
+
"locale",
|
|
1973
|
+
"executionTimeMilliseconds",
|
|
1974
|
+
"notifications",
|
|
1975
|
+
"queryId"
|
|
1976
|
+
]);
|
|
1977
|
+
const hasAdditionalProperties = false;
|
|
1978
|
+
const requiredKeys = [];
|
|
1979
|
+
const optionalKeys = [
|
|
1980
|
+
"canonicalQuery",
|
|
1981
|
+
"timezone",
|
|
1982
|
+
"query",
|
|
1983
|
+
"scannedRecords",
|
|
1984
|
+
"dqlVersion",
|
|
1985
|
+
"scannedBytes",
|
|
1986
|
+
"analysisTimeframe",
|
|
1987
|
+
"locale",
|
|
1988
|
+
"executionTimeMilliseconds",
|
|
1989
|
+
"notifications",
|
|
1990
|
+
"queryId"
|
|
1991
|
+
];
|
|
1992
|
+
const valKeys = new Set(Object.keys(value));
|
|
1993
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
1994
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
1995
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
1996
|
+
}
|
|
1997
|
+
function isJson22(value) {
|
|
1998
|
+
if (value === null) {
|
|
1999
|
+
return false;
|
|
2000
|
+
}
|
|
2001
|
+
if (value === void 0) {
|
|
2002
|
+
return false;
|
|
2003
|
+
}
|
|
2004
|
+
if (Array.isArray(value)) {
|
|
2005
|
+
return false;
|
|
2006
|
+
}
|
|
2007
|
+
const modelKeys = /* @__PURE__ */ new Set([
|
|
2008
|
+
"canonicalQuery",
|
|
2009
|
+
"timezone",
|
|
2010
|
+
"query",
|
|
2011
|
+
"scannedRecords",
|
|
2012
|
+
"dqlVersion",
|
|
2013
|
+
"scannedBytes",
|
|
2014
|
+
"analysisTimeframe",
|
|
2015
|
+
"locale",
|
|
2016
|
+
"executionTimeMilliseconds",
|
|
2017
|
+
"notifications",
|
|
2018
|
+
"queryId"
|
|
2019
|
+
]);
|
|
2020
|
+
const hasAdditionalProperties = false;
|
|
2021
|
+
const requiredKeys = [];
|
|
2022
|
+
const optionalKeys = [
|
|
2023
|
+
"canonicalQuery",
|
|
2024
|
+
"timezone",
|
|
2025
|
+
"query",
|
|
2026
|
+
"scannedRecords",
|
|
2027
|
+
"dqlVersion",
|
|
2028
|
+
"scannedBytes",
|
|
2029
|
+
"analysisTimeframe",
|
|
2030
|
+
"locale",
|
|
2031
|
+
"executionTimeMilliseconds",
|
|
2032
|
+
"notifications",
|
|
2033
|
+
"queryId"
|
|
2034
|
+
];
|
|
2035
|
+
const valKeys = new Set(Object.keys(value));
|
|
2036
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
2037
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
2038
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
2039
|
+
}
|
|
2040
|
+
function fromJson22($model) {
|
|
2041
|
+
const {
|
|
2042
|
+
canonicalQuery,
|
|
2043
|
+
timezone,
|
|
2044
|
+
query,
|
|
2045
|
+
scannedRecords,
|
|
2046
|
+
dqlVersion,
|
|
2047
|
+
scannedBytes,
|
|
2048
|
+
analysisTimeframe,
|
|
2049
|
+
locale,
|
|
2050
|
+
executionTimeMilliseconds,
|
|
2051
|
+
notifications,
|
|
2052
|
+
queryId
|
|
2053
|
+
} = $model;
|
|
2054
|
+
return {
|
|
2055
|
+
canonicalQuery,
|
|
2056
|
+
timezone,
|
|
2057
|
+
query,
|
|
2058
|
+
scannedRecords,
|
|
2059
|
+
dqlVersion,
|
|
2060
|
+
scannedBytes,
|
|
2061
|
+
analysisTimeframe: analysisTimeframe !== void 0 && analysisTimeframe !== null ? fromJson21(analysisTimeframe) : void 0,
|
|
2062
|
+
locale,
|
|
2063
|
+
executionTimeMilliseconds,
|
|
2064
|
+
notifications: notifications !== void 0 && notifications !== null ? notifications?.map((innerValue) => fromJson18(innerValue)) : void 0,
|
|
2065
|
+
queryId
|
|
2066
|
+
};
|
|
2067
|
+
}
|
|
2068
|
+
function toJson22($model) {
|
|
2069
|
+
const {
|
|
2070
|
+
canonicalQuery,
|
|
2071
|
+
timezone,
|
|
2072
|
+
query,
|
|
2073
|
+
scannedRecords,
|
|
2074
|
+
dqlVersion,
|
|
2075
|
+
scannedBytes,
|
|
2076
|
+
analysisTimeframe,
|
|
2077
|
+
locale,
|
|
2078
|
+
executionTimeMilliseconds,
|
|
2079
|
+
notifications,
|
|
2080
|
+
queryId
|
|
2081
|
+
} = $model;
|
|
2082
|
+
return {
|
|
2083
|
+
canonicalQuery,
|
|
2084
|
+
timezone,
|
|
2085
|
+
query,
|
|
2086
|
+
scannedRecords,
|
|
2087
|
+
dqlVersion,
|
|
2088
|
+
scannedBytes,
|
|
2089
|
+
analysisTimeframe: analysisTimeframe !== void 0 && analysisTimeframe !== null ? toJson21(analysisTimeframe) : void 0,
|
|
2090
|
+
locale,
|
|
2091
|
+
executionTimeMilliseconds,
|
|
2092
|
+
notifications: notifications !== void 0 && notifications !== null ? notifications?.map((innerValue) => toJson18(innerValue)) : void 0,
|
|
2093
|
+
queryId
|
|
2094
|
+
};
|
|
2095
|
+
}
|
|
2096
|
+
|
|
2097
|
+
// packages/client/query/src/lib/models/metric-metadata.transformation.ts
|
|
2098
|
+
var metric_metadata_transformation_exports = {};
|
|
2099
|
+
__export(metric_metadata_transformation_exports, {
|
|
2100
|
+
fromJson: () => fromJson23,
|
|
2101
|
+
isJson: () => isJson23,
|
|
2102
|
+
isMetricMetadata: () => isMetricMetadata,
|
|
2103
|
+
toJson: () => toJson23
|
|
2104
|
+
});
|
|
2105
|
+
function isMetricMetadata(value) {
|
|
2106
|
+
if (value === null) {
|
|
2107
|
+
return false;
|
|
2108
|
+
}
|
|
2109
|
+
if (value === void 0) {
|
|
2110
|
+
return false;
|
|
2111
|
+
}
|
|
2112
|
+
if (Array.isArray(value)) {
|
|
2113
|
+
return false;
|
|
2114
|
+
}
|
|
2115
|
+
const modelKeys = /* @__PURE__ */ new Set(["metric.key", "displayName", "description", "unit"]);
|
|
2116
|
+
const hasAdditionalProperties = false;
|
|
2117
|
+
const requiredKeys = [];
|
|
2118
|
+
const optionalKeys = ["metric.key", "displayName", "description", "unit"];
|
|
2119
|
+
const valKeys = new Set(Object.keys(value));
|
|
2120
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
2121
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
2122
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
2123
|
+
}
|
|
2124
|
+
function isJson23(value) {
|
|
2125
|
+
if (value === null) {
|
|
2126
|
+
return false;
|
|
2127
|
+
}
|
|
2128
|
+
if (value === void 0) {
|
|
2129
|
+
return false;
|
|
2130
|
+
}
|
|
2131
|
+
if (Array.isArray(value)) {
|
|
2132
|
+
return false;
|
|
2133
|
+
}
|
|
2134
|
+
const modelKeys = /* @__PURE__ */ new Set(["metric.key", "displayName", "description", "unit"]);
|
|
2135
|
+
const hasAdditionalProperties = false;
|
|
2136
|
+
const requiredKeys = [];
|
|
2137
|
+
const optionalKeys = ["metric.key", "displayName", "description", "unit"];
|
|
2138
|
+
const valKeys = new Set(Object.keys(value));
|
|
2139
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
2140
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
2141
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
2142
|
+
}
|
|
2143
|
+
function fromJson23($model) {
|
|
2144
|
+
const { "metric.key": metricKey, displayName, description, unit } = $model;
|
|
2145
|
+
return {
|
|
2146
|
+
"metric.key": metricKey,
|
|
2147
|
+
displayName,
|
|
2148
|
+
description,
|
|
2149
|
+
unit
|
|
2150
|
+
};
|
|
2151
|
+
}
|
|
2152
|
+
function toJson23($model) {
|
|
2153
|
+
const { "metric.key": metricKey, displayName, description, unit } = $model;
|
|
2154
|
+
return {
|
|
2155
|
+
"metric.key": metricKey,
|
|
2156
|
+
displayName,
|
|
2157
|
+
description,
|
|
2158
|
+
unit
|
|
2159
|
+
};
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
// packages/client/query/src/lib/models/metadata.transformation.ts
|
|
2163
|
+
function isMetadata(value) {
|
|
2164
|
+
if (value === null) {
|
|
2165
|
+
return false;
|
|
2166
|
+
}
|
|
2167
|
+
if (value === void 0) {
|
|
2168
|
+
return false;
|
|
2169
|
+
}
|
|
2170
|
+
if (Array.isArray(value)) {
|
|
2171
|
+
return false;
|
|
2172
|
+
}
|
|
2173
|
+
const modelKeys = /* @__PURE__ */ new Set(["grail", "metrics"]);
|
|
2174
|
+
const hasAdditionalProperties = false;
|
|
2175
|
+
const requiredKeys = [];
|
|
2176
|
+
const optionalKeys = ["grail", "metrics"];
|
|
2177
|
+
const valKeys = new Set(Object.keys(value));
|
|
2178
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
2179
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
2180
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
2181
|
+
}
|
|
2182
|
+
function isJson24(value) {
|
|
2183
|
+
if (value === null) {
|
|
2184
|
+
return false;
|
|
2185
|
+
}
|
|
2186
|
+
if (value === void 0) {
|
|
2187
|
+
return false;
|
|
2188
|
+
}
|
|
2189
|
+
if (Array.isArray(value)) {
|
|
2190
|
+
return false;
|
|
2191
|
+
}
|
|
2192
|
+
const modelKeys = /* @__PURE__ */ new Set(["grail", "metrics"]);
|
|
2193
|
+
const hasAdditionalProperties = false;
|
|
2194
|
+
const requiredKeys = [];
|
|
2195
|
+
const optionalKeys = ["grail", "metrics"];
|
|
2196
|
+
const valKeys = new Set(Object.keys(value));
|
|
2197
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
2198
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
2199
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
2200
|
+
}
|
|
2201
|
+
function fromJson24($model) {
|
|
2202
|
+
const { grail, metrics } = $model;
|
|
2203
|
+
return {
|
|
2204
|
+
grail: grail !== void 0 && grail !== null ? fromJson22(grail) : void 0,
|
|
2205
|
+
metrics: metrics !== void 0 && metrics !== null ? metrics?.map((innerValue) => fromJson23(innerValue)) : void 0
|
|
2206
|
+
};
|
|
2207
|
+
}
|
|
2208
|
+
function toJson24($model) {
|
|
2209
|
+
const { grail, metrics } = $model;
|
|
2210
|
+
return {
|
|
2211
|
+
grail: grail !== void 0 && grail !== null ? toJson22(grail) : void 0,
|
|
2212
|
+
metrics: metrics !== void 0 && metrics !== null ? metrics?.map((innerValue) => toJson23(innerValue)) : void 0
|
|
2213
|
+
};
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
// packages/client/query/src/lib/models/ranged-field-types.transformation.ts
|
|
2217
|
+
var ranged_field_types_transformation_exports = {};
|
|
2218
|
+
__export(ranged_field_types_transformation_exports, {
|
|
2219
|
+
fromJson: () => fromJson26,
|
|
2220
|
+
isJson: () => isJson28,
|
|
2221
|
+
isRangedFieldTypes: () => isRangedFieldTypes,
|
|
2222
|
+
toJson: () => toJson26
|
|
2223
|
+
});
|
|
2224
|
+
|
|
2225
|
+
// packages/client/query/src/lib/models/ranged-field-types-mappings.transformation.ts
|
|
2226
|
+
var ranged_field_types_mappings_transformation_exports = {};
|
|
2227
|
+
__export(ranged_field_types_mappings_transformation_exports, {
|
|
2228
|
+
fromJson: () => fromJson28,
|
|
2229
|
+
isJson: () => isJson27,
|
|
2230
|
+
isRangedFieldTypesMappings: () => isRangedFieldTypesMappings,
|
|
2231
|
+
toJson: () => toJson28
|
|
2232
|
+
});
|
|
2233
|
+
|
|
2234
|
+
// packages/client/query/src/lib/models/field-type.transformation.ts
|
|
2235
|
+
var field_type_transformation_exports = {};
|
|
2236
|
+
__export(field_type_transformation_exports, {
|
|
2237
|
+
fromJson: () => fromJson27,
|
|
2238
|
+
isFieldType: () => isFieldType,
|
|
2239
|
+
isJson: () => isJson26,
|
|
2240
|
+
toJson: () => toJson27
|
|
2241
|
+
});
|
|
2242
|
+
|
|
2243
|
+
// packages/client/query/src/lib/models/field-type-type.transformation.ts
|
|
2244
|
+
var field_type_type_transformation_exports = {};
|
|
2245
|
+
__export(field_type_type_transformation_exports, {
|
|
2246
|
+
fromJson: () => fromJson25,
|
|
2247
|
+
isFieldTypeType: () => isFieldTypeType,
|
|
2248
|
+
isJson: () => isJson25,
|
|
2249
|
+
toJson: () => toJson25
|
|
2250
|
+
});
|
|
2251
|
+
function isFieldTypeType(value) {
|
|
2252
|
+
return typeof value === "string";
|
|
2253
|
+
}
|
|
2254
|
+
function isJson25(value) {
|
|
2255
|
+
return typeof value === "string";
|
|
2256
|
+
}
|
|
2257
|
+
function fromJson25($model) {
|
|
2258
|
+
return String($model);
|
|
2259
|
+
}
|
|
2260
|
+
function toJson25($model) {
|
|
2261
|
+
return String($model);
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
// packages/client/query/src/lib/models/field-type.transformation.ts
|
|
2265
|
+
function isFieldType(value) {
|
|
2266
|
+
if (value === null) {
|
|
2267
|
+
return false;
|
|
2268
|
+
}
|
|
2269
|
+
if (value === void 0) {
|
|
2270
|
+
return false;
|
|
2271
|
+
}
|
|
2272
|
+
if (Array.isArray(value)) {
|
|
2273
|
+
return false;
|
|
2274
|
+
}
|
|
2275
|
+
const modelKeys = /* @__PURE__ */ new Set(["type", "types"]);
|
|
2276
|
+
const hasAdditionalProperties = false;
|
|
2277
|
+
const requiredKeys = ["type"];
|
|
2278
|
+
const optionalKeys = ["types"];
|
|
2279
|
+
const valKeys = new Set(Object.keys(value));
|
|
2280
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
2281
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
2282
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
2283
|
+
}
|
|
2284
|
+
function isJson26(value) {
|
|
2285
|
+
if (value === null) {
|
|
2286
|
+
return false;
|
|
2287
|
+
}
|
|
2288
|
+
if (value === void 0) {
|
|
2289
|
+
return false;
|
|
2290
|
+
}
|
|
2291
|
+
if (Array.isArray(value)) {
|
|
2292
|
+
return false;
|
|
2293
|
+
}
|
|
2294
|
+
const modelKeys = /* @__PURE__ */ new Set(["type", "types"]);
|
|
2295
|
+
const hasAdditionalProperties = false;
|
|
2296
|
+
const requiredKeys = ["type"];
|
|
2297
|
+
const optionalKeys = ["types"];
|
|
2298
|
+
const valKeys = new Set(Object.keys(value));
|
|
2299
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
2300
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
2301
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
2302
|
+
}
|
|
2303
|
+
function fromJson27($model) {
|
|
2304
|
+
const { type, types } = $model;
|
|
2305
|
+
return {
|
|
2306
|
+
type: fromJson25(type),
|
|
2307
|
+
types: types !== void 0 && types !== null ? types?.map((innerValue) => fromJson26(innerValue)) : void 0
|
|
2308
|
+
};
|
|
2309
|
+
}
|
|
2310
|
+
function toJson27($model) {
|
|
2311
|
+
const { type, types } = $model;
|
|
2312
|
+
return {
|
|
2313
|
+
type: toJson25(type),
|
|
2314
|
+
types: types !== void 0 && types !== null ? types?.map((innerValue) => toJson26(innerValue)) : void 0
|
|
2315
|
+
};
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2318
|
+
// packages/client/query/src/lib/models/ranged-field-types-mappings.transformation.ts
|
|
2319
|
+
function isRangedFieldTypesMappings(value) {
|
|
2320
|
+
if (value === null) {
|
|
2321
|
+
return false;
|
|
2322
|
+
}
|
|
2323
|
+
if (value === void 0) {
|
|
2324
|
+
return false;
|
|
2325
|
+
}
|
|
2326
|
+
if (Array.isArray(value)) {
|
|
2327
|
+
return false;
|
|
2328
|
+
}
|
|
2329
|
+
const modelKeys = /* @__PURE__ */ new Set([]);
|
|
2330
|
+
const hasAdditionalProperties = true;
|
|
2331
|
+
const requiredKeys = [];
|
|
2332
|
+
const optionalKeys = [];
|
|
2333
|
+
const valKeys = new Set(Object.keys(value));
|
|
2334
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
2335
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
2336
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
2337
|
+
}
|
|
2338
|
+
function isJson27(value) {
|
|
2339
|
+
if (value === null) {
|
|
2340
|
+
return false;
|
|
2341
|
+
}
|
|
2342
|
+
if (value === void 0) {
|
|
2343
|
+
return false;
|
|
2344
|
+
}
|
|
2345
|
+
if (Array.isArray(value)) {
|
|
2346
|
+
return false;
|
|
2347
|
+
}
|
|
2348
|
+
const modelKeys = /* @__PURE__ */ new Set([]);
|
|
2349
|
+
const hasAdditionalProperties = true;
|
|
2350
|
+
const requiredKeys = [];
|
|
2351
|
+
const optionalKeys = [];
|
|
2352
|
+
const valKeys = new Set(Object.keys(value));
|
|
2353
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
2354
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
2355
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
2356
|
+
}
|
|
2357
|
+
function fromJson28($model) {
|
|
2358
|
+
const additionalProps = $model;
|
|
2359
|
+
return {
|
|
2360
|
+
...Object.fromEntries(
|
|
2361
|
+
Object.entries(additionalProps).map(([propName, value]) => [
|
|
2362
|
+
propName,
|
|
2363
|
+
value !== void 0 && value !== null ? fromJson27(value) : void 0
|
|
2364
|
+
])
|
|
2365
|
+
)
|
|
2366
|
+
};
|
|
2367
|
+
}
|
|
2368
|
+
function toJson28($model) {
|
|
2369
|
+
const additionalProps = $model;
|
|
2370
|
+
return {
|
|
2371
|
+
...Object.fromEntries(
|
|
2372
|
+
Object.entries(additionalProps).map(([propName, value]) => [
|
|
2373
|
+
propName,
|
|
2374
|
+
value !== void 0 && value !== null ? toJson27(value) : void 0
|
|
2375
|
+
])
|
|
2376
|
+
)
|
|
2377
|
+
};
|
|
2378
|
+
}
|
|
2379
|
+
|
|
2380
|
+
// packages/client/query/src/lib/models/ranged-field-types.transformation.ts
|
|
2381
|
+
function isRangedFieldTypes(value) {
|
|
2382
|
+
if (value === null) {
|
|
2383
|
+
return false;
|
|
2384
|
+
}
|
|
2385
|
+
if (value === void 0) {
|
|
2386
|
+
return false;
|
|
2387
|
+
}
|
|
2388
|
+
if (Array.isArray(value)) {
|
|
2389
|
+
return false;
|
|
2390
|
+
}
|
|
2391
|
+
const modelKeys = /* @__PURE__ */ new Set(["mappings", "indexRange"]);
|
|
2392
|
+
const hasAdditionalProperties = false;
|
|
2393
|
+
const requiredKeys = ["mappings"];
|
|
2394
|
+
const optionalKeys = ["indexRange"];
|
|
2395
|
+
const valKeys = new Set(Object.keys(value));
|
|
2396
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
2397
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
2398
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
2399
|
+
}
|
|
2400
|
+
function isJson28(value) {
|
|
2401
|
+
if (value === null) {
|
|
2402
|
+
return false;
|
|
2403
|
+
}
|
|
2404
|
+
if (value === void 0) {
|
|
2405
|
+
return false;
|
|
2406
|
+
}
|
|
2407
|
+
if (Array.isArray(value)) {
|
|
2408
|
+
return false;
|
|
2409
|
+
}
|
|
2410
|
+
const modelKeys = /* @__PURE__ */ new Set(["mappings", "indexRange"]);
|
|
2411
|
+
const hasAdditionalProperties = false;
|
|
2412
|
+
const requiredKeys = ["mappings"];
|
|
2413
|
+
const optionalKeys = ["indexRange"];
|
|
2414
|
+
const valKeys = new Set(Object.keys(value));
|
|
2415
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
2416
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
2417
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
2418
|
+
}
|
|
2419
|
+
function fromJson26($model) {
|
|
2420
|
+
const { mappings, indexRange } = $model;
|
|
2421
|
+
return {
|
|
2422
|
+
mappings: fromJson28(mappings),
|
|
2423
|
+
indexRange: indexRange !== void 0 && indexRange !== null ? indexRange?.slice(0) : void 0
|
|
2424
|
+
};
|
|
2425
|
+
}
|
|
2426
|
+
function toJson26($model) {
|
|
2427
|
+
const { mappings, indexRange } = $model;
|
|
2428
|
+
return {
|
|
2429
|
+
mappings: toJson28(mappings),
|
|
2430
|
+
indexRange: indexRange !== void 0 && indexRange !== null ? indexRange?.slice(0) : void 0
|
|
2431
|
+
};
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
// packages/client/query/src/lib/models/result-record.transformation.ts
|
|
2435
|
+
var result_record_transformation_exports = {};
|
|
2436
|
+
__export(result_record_transformation_exports, {
|
|
2437
|
+
fromJson: () => fromJson30,
|
|
2438
|
+
isJson: () => isJson30,
|
|
2439
|
+
isResultRecord: () => isResultRecord,
|
|
2440
|
+
toJson: () => toJson30
|
|
2441
|
+
});
|
|
2442
|
+
|
|
2443
|
+
// packages/client/query/src/lib/models/result-record-value.transformation.ts
|
|
2444
|
+
var result_record_value_transformation_exports = {};
|
|
2445
|
+
__export(result_record_value_transformation_exports, {
|
|
2446
|
+
checkArrayResultRecordValue: () => checkArrayResultRecordValue,
|
|
2447
|
+
checkArrayResultRecordValueAsJson: () => checkArrayResultRecordValueAsJson,
|
|
2448
|
+
checkArrayResultRecordValueNullItemDatatype: () => checkArrayResultRecordValueNullItemDatatype,
|
|
2449
|
+
checkArrayResultRecordValueTransformationAsJsonNullItemDatatype: () => checkArrayResultRecordValueTransformationAsJsonNullItemDatatype,
|
|
2450
|
+
checkBoolean: () => checkBoolean,
|
|
2451
|
+
checkGeoPoint: () => checkGeoPoint,
|
|
2452
|
+
checkGeoPointAsJson: () => checkGeoPointAsJson,
|
|
2453
|
+
checkNumber: () => checkNumber,
|
|
2454
|
+
checkResultRecord: () => checkResultRecord,
|
|
2455
|
+
checkResultRecordAsJson: () => checkResultRecordAsJson,
|
|
2456
|
+
checkString: () => checkString,
|
|
2457
|
+
checkTimeframe: () => checkTimeframe,
|
|
2458
|
+
checkTimeframeAsJson: () => checkTimeframeAsJson,
|
|
2459
|
+
fromJson: () => fromJson31,
|
|
2460
|
+
isJson: () => isJson31,
|
|
2461
|
+
isResultRecordValue: () => isResultRecordValue,
|
|
2462
|
+
toJson: () => toJson31
|
|
2463
|
+
});
|
|
2464
|
+
|
|
2465
|
+
// packages/client/query/src/lib/models/geo-point.transformation.ts
|
|
2466
|
+
var geo_point_transformation_exports = {};
|
|
2467
|
+
__export(geo_point_transformation_exports, {
|
|
2468
|
+
fromJson: () => fromJson29,
|
|
2469
|
+
isGeoPoint: () => isGeoPoint,
|
|
2470
|
+
isJson: () => isJson29,
|
|
2471
|
+
toJson: () => toJson29
|
|
2472
|
+
});
|
|
2473
|
+
function isGeoPoint(value) {
|
|
2474
|
+
if (value === null) {
|
|
2475
|
+
return false;
|
|
2476
|
+
}
|
|
2477
|
+
if (value === void 0) {
|
|
2478
|
+
return false;
|
|
2479
|
+
}
|
|
2480
|
+
if (Array.isArray(value)) {
|
|
2481
|
+
return false;
|
|
2482
|
+
}
|
|
2483
|
+
const modelKeys = /* @__PURE__ */ new Set(["latitude", "longitude"]);
|
|
2484
|
+
const hasAdditionalProperties = false;
|
|
2485
|
+
const requiredKeys = ["latitude", "longitude"];
|
|
2486
|
+
const optionalKeys = [];
|
|
2487
|
+
const valKeys = new Set(Object.keys(value));
|
|
2488
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
2489
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
2490
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
2491
|
+
}
|
|
2492
|
+
function isJson29(value) {
|
|
2493
|
+
if (value === null) {
|
|
2494
|
+
return false;
|
|
2495
|
+
}
|
|
2496
|
+
if (value === void 0) {
|
|
2497
|
+
return false;
|
|
2498
|
+
}
|
|
2499
|
+
if (Array.isArray(value)) {
|
|
2500
|
+
return false;
|
|
2501
|
+
}
|
|
2502
|
+
const modelKeys = /* @__PURE__ */ new Set(["latitude", "longitude"]);
|
|
2503
|
+
const hasAdditionalProperties = false;
|
|
2504
|
+
const requiredKeys = ["latitude", "longitude"];
|
|
2505
|
+
const optionalKeys = [];
|
|
2506
|
+
const valKeys = new Set(Object.keys(value));
|
|
2507
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
2508
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
2509
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
2510
|
+
}
|
|
2511
|
+
function fromJson29($model) {
|
|
2512
|
+
const { latitude, longitude } = $model;
|
|
2513
|
+
return {
|
|
2514
|
+
latitude,
|
|
2515
|
+
longitude
|
|
2516
|
+
};
|
|
2517
|
+
}
|
|
2518
|
+
function toJson29($model) {
|
|
2519
|
+
const { latitude, longitude } = $model;
|
|
2520
|
+
return {
|
|
2521
|
+
latitude,
|
|
2522
|
+
longitude
|
|
2523
|
+
};
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
// packages/client/query/src/lib/models/result-record-value.transformation.ts
|
|
2527
|
+
function checkBoolean(value) {
|
|
2528
|
+
return typeof value === "boolean";
|
|
2529
|
+
}
|
|
2530
|
+
function checkNumber(value) {
|
|
2531
|
+
return typeof value === "number";
|
|
2532
|
+
}
|
|
2533
|
+
function checkString(value) {
|
|
2534
|
+
return typeof value === "string";
|
|
2535
|
+
}
|
|
2536
|
+
function checkTimeframe(value) {
|
|
2537
|
+
return isTimeframe(value);
|
|
2538
|
+
}
|
|
2539
|
+
function checkGeoPoint(value) {
|
|
2540
|
+
return isGeoPoint(value);
|
|
2541
|
+
}
|
|
2542
|
+
function checkResultRecord(value) {
|
|
2543
|
+
return isResultRecord(value);
|
|
2544
|
+
}
|
|
2545
|
+
function checkArrayResultRecordValueNullItemDatatype(value) {
|
|
2546
|
+
return isResultRecordValue(value);
|
|
2547
|
+
}
|
|
2548
|
+
function checkArrayResultRecordValue(value) {
|
|
2549
|
+
const datatypeMatch = (val) => checkArrayResultRecordValueNullItemDatatype(val);
|
|
2550
|
+
return Array.isArray(value) && value.every(datatypeMatch);
|
|
2551
|
+
}
|
|
2552
|
+
function isResultRecordValue(value) {
|
|
2553
|
+
return checkBoolean(value) || checkNumber(value) || checkString(value) || checkTimeframe(value) || checkGeoPoint(value) || checkResultRecord(value) || checkArrayResultRecordValue(value) || value === null;
|
|
2554
|
+
}
|
|
2555
|
+
function checkTimeframeAsJson(value) {
|
|
2556
|
+
return isJson21(value);
|
|
2557
|
+
}
|
|
2558
|
+
function checkGeoPointAsJson(value) {
|
|
2559
|
+
return isJson29(value);
|
|
2560
|
+
}
|
|
2561
|
+
function checkResultRecordAsJson(value) {
|
|
2562
|
+
return isJson30(value);
|
|
2563
|
+
}
|
|
2564
|
+
function checkArrayResultRecordValueTransformationAsJsonNullItemDatatype(value) {
|
|
2565
|
+
return isResultRecordValue(value);
|
|
2566
|
+
}
|
|
2567
|
+
function checkArrayResultRecordValueAsJson(value) {
|
|
2568
|
+
const datatypeMatch = (val) => checkArrayResultRecordValueTransformationAsJsonNullItemDatatype(val);
|
|
2569
|
+
return Array.isArray(value) && value.every(datatypeMatch);
|
|
2570
|
+
}
|
|
2571
|
+
function isJson31(value) {
|
|
2572
|
+
return checkBoolean(value) || checkNumber(value) || checkString(value) || checkTimeframeAsJson(value) || checkGeoPointAsJson(value) || checkResultRecordAsJson(value) || checkArrayResultRecordValueAsJson(value) || value === null;
|
|
2573
|
+
}
|
|
2574
|
+
function fromJson31($model) {
|
|
2575
|
+
if (!isJson31($model)) {
|
|
2576
|
+
throw new TypeError("_ResultRecordValueTransformation.fromJson: value's datatype does not match");
|
|
1042
2577
|
}
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
const { start, end } = model;
|
|
1046
|
-
return {
|
|
1047
|
-
start: start !== void 0 && start !== null ? start.toISOString() : void 0,
|
|
1048
|
-
end: end !== void 0 && end !== null ? end.toISOString() : void 0
|
|
1049
|
-
};
|
|
2578
|
+
if ($model === null) {
|
|
2579
|
+
return null;
|
|
1050
2580
|
}
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
// packages/client/query/src/lib/models/grail-metadata.ts
|
|
1055
|
-
var _GrailMetadataTransformation;
|
|
1056
|
-
((_GrailMetadataTransformation2) => {
|
|
1057
|
-
function fromJson(model) {
|
|
1058
|
-
const {
|
|
1059
|
-
canonicalQuery,
|
|
1060
|
-
timezone,
|
|
1061
|
-
query,
|
|
1062
|
-
scannedRecords,
|
|
1063
|
-
dqlVersion,
|
|
1064
|
-
scannedBytes,
|
|
1065
|
-
analysisTimeframe,
|
|
1066
|
-
locale,
|
|
1067
|
-
executionTimeMilliseconds,
|
|
1068
|
-
notifications,
|
|
1069
|
-
queryId
|
|
1070
|
-
} = model;
|
|
1071
|
-
return {
|
|
1072
|
-
canonicalQuery,
|
|
1073
|
-
timezone,
|
|
1074
|
-
query,
|
|
1075
|
-
scannedRecords,
|
|
1076
|
-
dqlVersion,
|
|
1077
|
-
scannedBytes,
|
|
1078
|
-
analysisTimeframe: analysisTimeframe !== void 0 && analysisTimeframe !== null ? _TimeframeTransformation.fromJson(analysisTimeframe) : void 0,
|
|
1079
|
-
locale,
|
|
1080
|
-
executionTimeMilliseconds,
|
|
1081
|
-
notifications: notifications !== void 0 && notifications !== null ? notifications?.map((innerValue) => _MetadataNotificationTransformation.fromJson(innerValue)) : void 0,
|
|
1082
|
-
queryId
|
|
1083
|
-
};
|
|
2581
|
+
if (checkBoolean($model)) {
|
|
2582
|
+
return Boolean($model);
|
|
1084
2583
|
}
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
const {
|
|
1088
|
-
canonicalQuery,
|
|
1089
|
-
timezone,
|
|
1090
|
-
query,
|
|
1091
|
-
scannedRecords,
|
|
1092
|
-
dqlVersion,
|
|
1093
|
-
scannedBytes,
|
|
1094
|
-
analysisTimeframe,
|
|
1095
|
-
locale,
|
|
1096
|
-
executionTimeMilliseconds,
|
|
1097
|
-
notifications,
|
|
1098
|
-
queryId
|
|
1099
|
-
} = model;
|
|
1100
|
-
return {
|
|
1101
|
-
canonicalQuery,
|
|
1102
|
-
timezone,
|
|
1103
|
-
query,
|
|
1104
|
-
scannedRecords,
|
|
1105
|
-
dqlVersion,
|
|
1106
|
-
scannedBytes,
|
|
1107
|
-
analysisTimeframe: analysisTimeframe !== void 0 && analysisTimeframe !== null ? _TimeframeTransformation.toJson(analysisTimeframe) : void 0,
|
|
1108
|
-
locale,
|
|
1109
|
-
executionTimeMilliseconds,
|
|
1110
|
-
notifications: notifications !== void 0 && notifications !== null ? notifications?.map((innerValue) => _MetadataNotificationTransformation.toJson(innerValue)) : void 0,
|
|
1111
|
-
queryId
|
|
1112
|
-
};
|
|
2584
|
+
if (checkNumber($model)) {
|
|
2585
|
+
return Number($model);
|
|
1113
2586
|
}
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
// packages/client/query/src/lib/models/metric-metadata.ts
|
|
1118
|
-
var _MetricMetadataTransformation;
|
|
1119
|
-
((_MetricMetadataTransformation2) => {
|
|
1120
|
-
function fromJson(model) {
|
|
1121
|
-
const { "metric.key": metricKey, displayName, description, unit } = model;
|
|
1122
|
-
return {
|
|
1123
|
-
"metric.key": metricKey,
|
|
1124
|
-
displayName,
|
|
1125
|
-
description,
|
|
1126
|
-
unit
|
|
1127
|
-
};
|
|
2587
|
+
if (checkString($model)) {
|
|
2588
|
+
return String($model);
|
|
1128
2589
|
}
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
const { "metric.key": metricKey, displayName, description, unit } = model;
|
|
1132
|
-
return {
|
|
1133
|
-
"metric.key": metricKey,
|
|
1134
|
-
displayName,
|
|
1135
|
-
description,
|
|
1136
|
-
unit
|
|
1137
|
-
};
|
|
2590
|
+
if (checkTimeframeAsJson($model)) {
|
|
2591
|
+
return fromJson21($model);
|
|
1138
2592
|
}
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
// packages/client/query/src/lib/models/metadata.ts
|
|
1143
|
-
var _MetadataTransformation;
|
|
1144
|
-
((_MetadataTransformation2) => {
|
|
1145
|
-
function fromJson(model) {
|
|
1146
|
-
const { grail, metrics } = model;
|
|
1147
|
-
return {
|
|
1148
|
-
grail: grail !== void 0 && grail !== null ? _GrailMetadataTransformation.fromJson(grail) : void 0,
|
|
1149
|
-
metrics: metrics !== void 0 && metrics !== null ? metrics?.map((innerValue) => _MetricMetadataTransformation.fromJson(innerValue)) : void 0
|
|
1150
|
-
};
|
|
2593
|
+
if (checkGeoPointAsJson($model)) {
|
|
2594
|
+
return fromJson29($model);
|
|
1151
2595
|
}
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
const { grail, metrics } = model;
|
|
1155
|
-
return {
|
|
1156
|
-
grail: grail !== void 0 && grail !== null ? _GrailMetadataTransformation.toJson(grail) : void 0,
|
|
1157
|
-
metrics: metrics !== void 0 && metrics !== null ? metrics?.map((innerValue) => _MetricMetadataTransformation.toJson(innerValue)) : void 0
|
|
1158
|
-
};
|
|
2596
|
+
if (checkResultRecordAsJson($model)) {
|
|
2597
|
+
return fromJson30($model);
|
|
1159
2598
|
}
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
// packages/client/query/src/lib/models/field-type-type.ts
|
|
1164
|
-
var FieldTypeType = /* @__PURE__ */ ((FieldTypeType3) => {
|
|
1165
|
-
FieldTypeType3["Boolean"] = "boolean";
|
|
1166
|
-
FieldTypeType3["String"] = "string";
|
|
1167
|
-
FieldTypeType3["Double"] = "double";
|
|
1168
|
-
FieldTypeType3["Long"] = "long";
|
|
1169
|
-
FieldTypeType3["Timestamp"] = "timestamp";
|
|
1170
|
-
FieldTypeType3["Timeframe"] = "timeframe";
|
|
1171
|
-
FieldTypeType3["Duration"] = "duration";
|
|
1172
|
-
FieldTypeType3["Binary"] = "binary";
|
|
1173
|
-
FieldTypeType3["IpAddress"] = "ip_address";
|
|
1174
|
-
FieldTypeType3["GeoPoint"] = "geo_point";
|
|
1175
|
-
FieldTypeType3["Array"] = "array";
|
|
1176
|
-
FieldTypeType3["Record"] = "record";
|
|
1177
|
-
FieldTypeType3["Undefined"] = "undefined";
|
|
1178
|
-
return FieldTypeType3;
|
|
1179
|
-
})(FieldTypeType || {});
|
|
1180
|
-
var _FieldTypeTypeTransformation;
|
|
1181
|
-
((_FieldTypeTypeTransformation2) => {
|
|
1182
|
-
_FieldTypeTypeTransformation2.toJson = (value) => value;
|
|
1183
|
-
_FieldTypeTypeTransformation2.fromJson = (value) => value;
|
|
1184
|
-
})(_FieldTypeTypeTransformation || (_FieldTypeTypeTransformation = {}));
|
|
1185
|
-
|
|
1186
|
-
// packages/client/query/src/lib/models/field-type.ts
|
|
1187
|
-
var _FieldTypeTransformation;
|
|
1188
|
-
((_FieldTypeTransformation2) => {
|
|
1189
|
-
function fromJson(model) {
|
|
1190
|
-
const { type, types } = model;
|
|
1191
|
-
return {
|
|
1192
|
-
type: _FieldTypeTypeTransformation.fromJson(type),
|
|
1193
|
-
types: types !== void 0 && types !== null ? types?.map((innerValue) => _RangedFieldTypesTransformation.fromJson(innerValue)) : void 0
|
|
1194
|
-
};
|
|
2599
|
+
if (checkArrayResultRecordValue($model)) {
|
|
2600
|
+
return $model.map((el) => fromJson31(el));
|
|
1195
2601
|
}
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
types: types !== void 0 && types !== null ? types?.map((innerValue) => _RangedFieldTypesTransformation.toJson(innerValue)) : void 0
|
|
1202
|
-
};
|
|
2602
|
+
throw new TypeError("Unable to deserialize value");
|
|
2603
|
+
}
|
|
2604
|
+
function toJson31($model) {
|
|
2605
|
+
if (!isResultRecordValue($model)) {
|
|
2606
|
+
throw new TypeError("_ResultRecordValueTransformation.toJson: value's datatype does not match");
|
|
1203
2607
|
}
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
// packages/client/query/src/lib/models/ranged-field-types-mappings.ts
|
|
1208
|
-
var _RangedFieldTypesMappingsTransformation;
|
|
1209
|
-
((_RangedFieldTypesMappingsTransformation2) => {
|
|
1210
|
-
function fromJson(model) {
|
|
1211
|
-
const additionalProps = model;
|
|
1212
|
-
return {
|
|
1213
|
-
...Object.fromEntries(
|
|
1214
|
-
Object.entries(additionalProps).map(([propName, value]) => [
|
|
1215
|
-
propName,
|
|
1216
|
-
value !== void 0 && value !== null ? _FieldTypeTransformation.fromJson(value) : void 0
|
|
1217
|
-
])
|
|
1218
|
-
)
|
|
1219
|
-
};
|
|
2608
|
+
if ($model === null) {
|
|
2609
|
+
return null;
|
|
1220
2610
|
}
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
const additionalProps = model;
|
|
1224
|
-
return {
|
|
1225
|
-
...Object.fromEntries(
|
|
1226
|
-
Object.entries(additionalProps).map(([propName, value]) => [
|
|
1227
|
-
propName,
|
|
1228
|
-
value !== void 0 && value !== null ? _FieldTypeTransformation.toJson(value) : void 0
|
|
1229
|
-
])
|
|
1230
|
-
)
|
|
1231
|
-
};
|
|
2611
|
+
if (checkBoolean($model)) {
|
|
2612
|
+
return Boolean($model);
|
|
1232
2613
|
}
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
// packages/client/query/src/lib/models/ranged-field-types.ts
|
|
1237
|
-
var _RangedFieldTypesTransformation;
|
|
1238
|
-
((_RangedFieldTypesTransformation2) => {
|
|
1239
|
-
function fromJson(model) {
|
|
1240
|
-
const { mappings, indexRange } = model;
|
|
1241
|
-
return {
|
|
1242
|
-
mappings: _RangedFieldTypesMappingsTransformation.fromJson(mappings),
|
|
1243
|
-
indexRange: indexRange !== void 0 && indexRange !== null ? indexRange?.slice(0) : void 0
|
|
1244
|
-
};
|
|
2614
|
+
if (checkNumber($model)) {
|
|
2615
|
+
return Number($model);
|
|
1245
2616
|
}
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
const { mappings, indexRange } = model;
|
|
1249
|
-
return {
|
|
1250
|
-
mappings: _RangedFieldTypesMappingsTransformation.toJson(mappings),
|
|
1251
|
-
indexRange: indexRange !== void 0 && indexRange !== null ? indexRange?.slice(0) : void 0
|
|
1252
|
-
};
|
|
2617
|
+
if (checkString($model)) {
|
|
2618
|
+
return String($model);
|
|
1253
2619
|
}
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
// packages/client/query/src/lib/models/result-record-value.ts
|
|
1258
|
-
var _ResultRecordValueTransformation;
|
|
1259
|
-
((_ResultRecordValueTransformation2) => {
|
|
1260
|
-
function fromJson(model) {
|
|
1261
|
-
return model;
|
|
2620
|
+
if (checkTimeframe($model)) {
|
|
2621
|
+
return toJson21($model);
|
|
1262
2622
|
}
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
return model;
|
|
2623
|
+
if (checkGeoPoint($model)) {
|
|
2624
|
+
return toJson29($model);
|
|
1266
2625
|
}
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
// packages/client/query/src/lib/models/result-record.ts
|
|
1271
|
-
var _ResultRecordTransformation;
|
|
1272
|
-
((_ResultRecordTransformation2) => {
|
|
1273
|
-
function fromJson(model) {
|
|
1274
|
-
if (model === null) {
|
|
1275
|
-
return null;
|
|
1276
|
-
}
|
|
1277
|
-
const additionalProps = model;
|
|
1278
|
-
return {
|
|
1279
|
-
...Object.fromEntries(
|
|
1280
|
-
Object.entries(additionalProps).map(([propName, value]) => [
|
|
1281
|
-
propName,
|
|
1282
|
-
value !== void 0 && value !== null ? _ResultRecordValueTransformation.fromJson(value) : void 0
|
|
1283
|
-
])
|
|
1284
|
-
)
|
|
1285
|
-
};
|
|
2626
|
+
if (checkResultRecord($model)) {
|
|
2627
|
+
return toJson30($model);
|
|
1286
2628
|
}
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
if (model === null) {
|
|
1290
|
-
return null;
|
|
1291
|
-
}
|
|
1292
|
-
const additionalProps = model;
|
|
1293
|
-
return {
|
|
1294
|
-
...Object.fromEntries(
|
|
1295
|
-
Object.entries(additionalProps).map(([propName, value]) => [
|
|
1296
|
-
propName,
|
|
1297
|
-
value !== void 0 && value !== null ? _ResultRecordValueTransformation.toJson(value) : void 0
|
|
1298
|
-
])
|
|
1299
|
-
)
|
|
1300
|
-
};
|
|
2629
|
+
if (checkArrayResultRecordValue($model)) {
|
|
2630
|
+
return $model.map((el) => toJson31(el));
|
|
1301
2631
|
}
|
|
1302
|
-
|
|
1303
|
-
}
|
|
2632
|
+
throw new TypeError("Unable to serialize value");
|
|
2633
|
+
}
|
|
1304
2634
|
|
|
1305
|
-
// packages/client/query/src/lib/models/
|
|
1306
|
-
|
|
1307
|
-
(
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
2635
|
+
// packages/client/query/src/lib/models/result-record.transformation.ts
|
|
2636
|
+
function isResultRecord(value) {
|
|
2637
|
+
if (value === null) {
|
|
2638
|
+
return true;
|
|
2639
|
+
}
|
|
2640
|
+
if (value === void 0) {
|
|
2641
|
+
return false;
|
|
2642
|
+
}
|
|
2643
|
+
if (Array.isArray(value)) {
|
|
2644
|
+
return false;
|
|
2645
|
+
}
|
|
2646
|
+
const modelKeys = /* @__PURE__ */ new Set([]);
|
|
2647
|
+
const hasAdditionalProperties = true;
|
|
2648
|
+
const requiredKeys = [];
|
|
2649
|
+
const optionalKeys = [];
|
|
2650
|
+
const valKeys = new Set(Object.keys(value));
|
|
2651
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
2652
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
2653
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
2654
|
+
}
|
|
2655
|
+
function isJson30(value) {
|
|
2656
|
+
if (value === null) {
|
|
2657
|
+
return true;
|
|
2658
|
+
}
|
|
2659
|
+
if (value === void 0) {
|
|
2660
|
+
return false;
|
|
2661
|
+
}
|
|
2662
|
+
if (Array.isArray(value)) {
|
|
2663
|
+
return false;
|
|
2664
|
+
}
|
|
2665
|
+
const modelKeys = /* @__PURE__ */ new Set([]);
|
|
2666
|
+
const hasAdditionalProperties = true;
|
|
2667
|
+
const requiredKeys = [];
|
|
2668
|
+
const optionalKeys = [];
|
|
2669
|
+
const valKeys = new Set(Object.keys(value));
|
|
2670
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
2671
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
2672
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
2673
|
+
}
|
|
2674
|
+
function fromJson30($model) {
|
|
2675
|
+
if ($model === null) {
|
|
2676
|
+
return null;
|
|
2677
|
+
}
|
|
2678
|
+
const additionalProps = $model;
|
|
2679
|
+
return {
|
|
2680
|
+
...Object.fromEntries(
|
|
2681
|
+
Object.entries(additionalProps).map(([propName, value]) => [
|
|
2682
|
+
propName,
|
|
2683
|
+
value !== void 0 && value !== null ? fromJson31(value) : void 0
|
|
2684
|
+
])
|
|
2685
|
+
)
|
|
2686
|
+
};
|
|
2687
|
+
}
|
|
2688
|
+
function toJson30($model) {
|
|
2689
|
+
if ($model === null) {
|
|
2690
|
+
return null;
|
|
2691
|
+
}
|
|
2692
|
+
const additionalProps = $model;
|
|
2693
|
+
return {
|
|
2694
|
+
...Object.fromEntries(
|
|
2695
|
+
Object.entries(additionalProps).map(([propName, value]) => [
|
|
2696
|
+
propName,
|
|
2697
|
+
value !== void 0 && value !== null ? toJson31(value) : void 0
|
|
2698
|
+
])
|
|
2699
|
+
)
|
|
2700
|
+
};
|
|
2701
|
+
}
|
|
1327
2702
|
|
|
1328
|
-
// packages/client/query/src/lib/models/query-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
(
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
2703
|
+
// packages/client/query/src/lib/models/query-result.transformation.ts
|
|
2704
|
+
function isQueryResult(value) {
|
|
2705
|
+
if (value === null) {
|
|
2706
|
+
return false;
|
|
2707
|
+
}
|
|
2708
|
+
if (value === void 0) {
|
|
2709
|
+
return false;
|
|
2710
|
+
}
|
|
2711
|
+
if (Array.isArray(value)) {
|
|
2712
|
+
return false;
|
|
2713
|
+
}
|
|
2714
|
+
const modelKeys = /* @__PURE__ */ new Set(["records", "metadata", "types"]);
|
|
2715
|
+
const hasAdditionalProperties = false;
|
|
2716
|
+
const requiredKeys = ["metadata", "records", "types"];
|
|
2717
|
+
const optionalKeys = [];
|
|
2718
|
+
const valKeys = new Set(Object.keys(value));
|
|
2719
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
2720
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
2721
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
2722
|
+
}
|
|
2723
|
+
function isJson32(value) {
|
|
2724
|
+
if (value === null) {
|
|
2725
|
+
return false;
|
|
2726
|
+
}
|
|
2727
|
+
if (value === void 0) {
|
|
2728
|
+
return false;
|
|
2729
|
+
}
|
|
2730
|
+
if (Array.isArray(value)) {
|
|
2731
|
+
return false;
|
|
2732
|
+
}
|
|
2733
|
+
const modelKeys = /* @__PURE__ */ new Set(["records", "metadata", "types"]);
|
|
2734
|
+
const hasAdditionalProperties = false;
|
|
2735
|
+
const requiredKeys = ["metadata", "records", "types"];
|
|
2736
|
+
const optionalKeys = [];
|
|
2737
|
+
const valKeys = new Set(Object.keys(value));
|
|
2738
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
2739
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
2740
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
2741
|
+
}
|
|
2742
|
+
function fromJson32($model) {
|
|
2743
|
+
const { records, metadata, types } = $model;
|
|
2744
|
+
return {
|
|
2745
|
+
records: records?.map((innerValue) => fromJson30(innerValue)),
|
|
2746
|
+
metadata: fromJson24(metadata),
|
|
2747
|
+
types: types?.map((innerValue) => fromJson26(innerValue))
|
|
2748
|
+
};
|
|
2749
|
+
}
|
|
2750
|
+
function toJson32($model) {
|
|
2751
|
+
const { records, metadata, types } = $model;
|
|
2752
|
+
return {
|
|
2753
|
+
records: records?.map((innerValue) => toJson30(innerValue)),
|
|
2754
|
+
metadata: toJson24(metadata),
|
|
2755
|
+
types: types?.map((innerValue) => toJson26(innerValue))
|
|
2756
|
+
};
|
|
2757
|
+
}
|
|
1368
2758
|
|
|
1369
|
-
// packages/client/query/src/lib/models/query-
|
|
1370
|
-
var
|
|
1371
|
-
(
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
}
|
|
2759
|
+
// packages/client/query/src/lib/models/query-state.transformation.ts
|
|
2760
|
+
var query_state_transformation_exports = {};
|
|
2761
|
+
__export(query_state_transformation_exports, {
|
|
2762
|
+
fromJson: () => fromJson33,
|
|
2763
|
+
isJson: () => isJson33,
|
|
2764
|
+
isQueryState: () => isQueryState,
|
|
2765
|
+
toJson: () => toJson33
|
|
2766
|
+
});
|
|
2767
|
+
function isQueryState(value) {
|
|
2768
|
+
return typeof value === "string";
|
|
2769
|
+
}
|
|
2770
|
+
function isJson33(value) {
|
|
2771
|
+
return typeof value === "string";
|
|
2772
|
+
}
|
|
2773
|
+
function fromJson33($model) {
|
|
2774
|
+
return String($model);
|
|
2775
|
+
}
|
|
2776
|
+
function toJson33($model) {
|
|
2777
|
+
return String($model);
|
|
2778
|
+
}
|
|
2779
|
+
|
|
2780
|
+
// packages/client/query/src/lib/models/query-poll-response.transformation.ts
|
|
2781
|
+
function isQueryPollResponse(value) {
|
|
2782
|
+
if (value === null) {
|
|
2783
|
+
return false;
|
|
2784
|
+
}
|
|
2785
|
+
if (value === void 0) {
|
|
2786
|
+
return false;
|
|
2787
|
+
}
|
|
2788
|
+
if (Array.isArray(value)) {
|
|
2789
|
+
return false;
|
|
2790
|
+
}
|
|
2791
|
+
const modelKeys = /* @__PURE__ */ new Set(["result", "ttlSeconds", "progress", "state"]);
|
|
2792
|
+
const hasAdditionalProperties = false;
|
|
2793
|
+
const requiredKeys = ["state"];
|
|
2794
|
+
const optionalKeys = ["result", "ttlSeconds", "progress"];
|
|
2795
|
+
const valKeys = new Set(Object.keys(value));
|
|
2796
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
2797
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
2798
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
2799
|
+
}
|
|
2800
|
+
function isJson34(value) {
|
|
2801
|
+
if (value === null) {
|
|
2802
|
+
return false;
|
|
2803
|
+
}
|
|
2804
|
+
if (value === void 0) {
|
|
2805
|
+
return false;
|
|
2806
|
+
}
|
|
2807
|
+
if (Array.isArray(value)) {
|
|
2808
|
+
return false;
|
|
2809
|
+
}
|
|
2810
|
+
const modelKeys = /* @__PURE__ */ new Set(["result", "ttlSeconds", "progress", "state"]);
|
|
2811
|
+
const hasAdditionalProperties = false;
|
|
2812
|
+
const requiredKeys = ["state"];
|
|
2813
|
+
const optionalKeys = ["result", "ttlSeconds", "progress"];
|
|
2814
|
+
const valKeys = new Set(Object.keys(value));
|
|
2815
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
2816
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
2817
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
2818
|
+
}
|
|
2819
|
+
function fromJson34($model) {
|
|
2820
|
+
const { result, ttlSeconds, progress, state } = $model;
|
|
2821
|
+
return {
|
|
2822
|
+
result: result !== void 0 && result !== null ? fromJson32(result) : void 0,
|
|
2823
|
+
ttlSeconds,
|
|
2824
|
+
progress,
|
|
2825
|
+
state: fromJson33(state)
|
|
2826
|
+
};
|
|
2827
|
+
}
|
|
2828
|
+
function toJson34($model) {
|
|
2829
|
+
const { result, ttlSeconds, progress, state } = $model;
|
|
2830
|
+
return {
|
|
2831
|
+
result: result !== void 0 && result !== null ? toJson32(result) : void 0,
|
|
2832
|
+
ttlSeconds,
|
|
2833
|
+
progress,
|
|
2834
|
+
state: toJson33(state)
|
|
2835
|
+
};
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2838
|
+
// packages/client/query/src/lib/models/query-start-response.transformation.ts
|
|
2839
|
+
var query_start_response_transformation_exports = {};
|
|
2840
|
+
__export(query_start_response_transformation_exports, {
|
|
2841
|
+
fromJson: () => fromJson35,
|
|
2842
|
+
isJson: () => isJson35,
|
|
2843
|
+
isQueryStartResponse: () => isQueryStartResponse,
|
|
2844
|
+
toJson: () => toJson35
|
|
2845
|
+
});
|
|
2846
|
+
function isQueryStartResponse(value) {
|
|
2847
|
+
if (value === null) {
|
|
2848
|
+
return false;
|
|
2849
|
+
}
|
|
2850
|
+
if (value === void 0) {
|
|
2851
|
+
return false;
|
|
2852
|
+
}
|
|
2853
|
+
if (Array.isArray(value)) {
|
|
2854
|
+
return false;
|
|
2855
|
+
}
|
|
2856
|
+
const modelKeys = /* @__PURE__ */ new Set(["result", "ttlSeconds", "progress", "requestToken", "state"]);
|
|
2857
|
+
const hasAdditionalProperties = false;
|
|
2858
|
+
const requiredKeys = ["state"];
|
|
2859
|
+
const optionalKeys = ["result", "ttlSeconds", "progress", "requestToken"];
|
|
2860
|
+
const valKeys = new Set(Object.keys(value));
|
|
2861
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
2862
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
2863
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
2864
|
+
}
|
|
2865
|
+
function isJson35(value) {
|
|
2866
|
+
if (value === null) {
|
|
2867
|
+
return false;
|
|
2868
|
+
}
|
|
2869
|
+
if (value === void 0) {
|
|
2870
|
+
return false;
|
|
2871
|
+
}
|
|
2872
|
+
if (Array.isArray(value)) {
|
|
2873
|
+
return false;
|
|
2874
|
+
}
|
|
2875
|
+
const modelKeys = /* @__PURE__ */ new Set(["result", "ttlSeconds", "progress", "requestToken", "state"]);
|
|
2876
|
+
const hasAdditionalProperties = false;
|
|
2877
|
+
const requiredKeys = ["state"];
|
|
2878
|
+
const optionalKeys = ["result", "ttlSeconds", "progress", "requestToken"];
|
|
2879
|
+
const valKeys = new Set(Object.keys(value));
|
|
2880
|
+
const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
|
|
2881
|
+
const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
|
|
2882
|
+
return containsRequiredOrOptionalKeys && doesNotContainExtraKeys;
|
|
2883
|
+
}
|
|
2884
|
+
function fromJson35($model) {
|
|
2885
|
+
const { result, ttlSeconds, progress, requestToken, state } = $model;
|
|
2886
|
+
return {
|
|
2887
|
+
result: result !== void 0 && result !== null ? fromJson32(result) : void 0,
|
|
2888
|
+
ttlSeconds,
|
|
2889
|
+
progress,
|
|
2890
|
+
requestToken,
|
|
2891
|
+
state: fromJson33(state)
|
|
2892
|
+
};
|
|
2893
|
+
}
|
|
2894
|
+
function toJson35($model) {
|
|
2895
|
+
const { result, ttlSeconds, progress, requestToken, state } = $model;
|
|
2896
|
+
return {
|
|
2897
|
+
result: result !== void 0 && result !== null ? toJson32(result) : void 0,
|
|
2898
|
+
ttlSeconds,
|
|
2899
|
+
progress,
|
|
2900
|
+
requestToken,
|
|
2901
|
+
state: toJson33(state)
|
|
2902
|
+
};
|
|
2903
|
+
}
|
|
1395
2904
|
|
|
1396
2905
|
// packages/client/query/src/lib/utils/url-helpers.ts
|
|
1397
2906
|
var encodeQueryParam = (key, value) => {
|
|
@@ -1406,7 +2915,8 @@ var addQueryParam = (query, key) => encodeQueryParam(key, query[key]);
|
|
|
1406
2915
|
var toQueryString = (rawQuery) => {
|
|
1407
2916
|
const query = rawQuery || {};
|
|
1408
2917
|
const keys = Object.keys(query).filter((key) => typeof query[key] !== "undefined");
|
|
1409
|
-
|
|
2918
|
+
const queryString = keys.map((key) => Array.isArray(query[key]) ? addArrayQueryParam(query, key) : addQueryParam(query, key)).join("&");
|
|
2919
|
+
return queryString ? `?${queryString}` : "";
|
|
1410
2920
|
};
|
|
1411
2921
|
|
|
1412
2922
|
// packages/client/query/src/lib/apis/query-execution-api.ts
|
|
@@ -1426,7 +2936,7 @@ var QueryExecutionClient = class {
|
|
|
1426
2936
|
enrich: config.enrich
|
|
1427
2937
|
});
|
|
1428
2938
|
const response = await this.httpClient.send({
|
|
1429
|
-
url: `/platform/storage/query/v1/query:poll
|
|
2939
|
+
url: `/platform/storage/query/v1/query:poll${query}`,
|
|
1430
2940
|
method: "GET",
|
|
1431
2941
|
headers: {
|
|
1432
2942
|
Accept: "application/json"
|
|
@@ -1452,7 +2962,7 @@ var QueryExecutionClient = class {
|
|
|
1452
2962
|
case 500: {
|
|
1453
2963
|
const responseValue = await response.body("json");
|
|
1454
2964
|
try {
|
|
1455
|
-
const errorBody =
|
|
2965
|
+
const errorBody = fromJson15(responseValue);
|
|
1456
2966
|
throw new ErrorEnvelopeError("500", response, errorBody, "An internal server error has occurred.");
|
|
1457
2967
|
} catch (err) {
|
|
1458
2968
|
if (err instanceof ErrorEnvelopeError) {
|
|
@@ -1470,7 +2980,7 @@ var QueryExecutionClient = class {
|
|
|
1470
2980
|
case 200: {
|
|
1471
2981
|
const responseValue = await response.body("json");
|
|
1472
2982
|
try {
|
|
1473
|
-
return
|
|
2983
|
+
return fromJson34(responseValue);
|
|
1474
2984
|
} catch (err) {
|
|
1475
2985
|
throw new InvalidResponseError(
|
|
1476
2986
|
`QueryExecutionClient.query:poll:${response.status}`,
|
|
@@ -1482,7 +2992,7 @@ var QueryExecutionClient = class {
|
|
|
1482
2992
|
}
|
|
1483
2993
|
}
|
|
1484
2994
|
default: {
|
|
1485
|
-
const responseValue = await response.body("text").catch();
|
|
2995
|
+
const responseValue = await response.body("text").catch(() => "");
|
|
1486
2996
|
throw new ClientRequestError(
|
|
1487
2997
|
`${response.status}`,
|
|
1488
2998
|
response,
|
|
@@ -1496,13 +3006,13 @@ var QueryExecutionClient = class {
|
|
|
1496
3006
|
if (!config) {
|
|
1497
3007
|
throw new ApiClientError("API client error", "API client call is missing mandatory config parameter");
|
|
1498
3008
|
}
|
|
1499
|
-
const encodedBody =
|
|
3009
|
+
const encodedBody = toJson20(config.body);
|
|
1500
3010
|
const query = toQueryString({ enrich: config.enrich });
|
|
1501
3011
|
const headerParameters = {
|
|
1502
3012
|
...config.authorization !== void 0 && { Authorization: String(config.authorization) }
|
|
1503
3013
|
};
|
|
1504
3014
|
const response = await this.httpClient.send({
|
|
1505
|
-
url: `/platform/storage/query/v1/query:execute
|
|
3015
|
+
url: `/platform/storage/query/v1/query:execute${query}`,
|
|
1506
3016
|
method: "POST",
|
|
1507
3017
|
requestBodyType: "json",
|
|
1508
3018
|
body: encodedBody,
|
|
@@ -1523,7 +3033,7 @@ var QueryExecutionClient = class {
|
|
|
1523
3033
|
case 400: {
|
|
1524
3034
|
const responseValue = await response.body("json");
|
|
1525
3035
|
try {
|
|
1526
|
-
const errorBody =
|
|
3036
|
+
const errorBody = fromJson15(responseValue);
|
|
1527
3037
|
throw new ErrorEnvelopeError(
|
|
1528
3038
|
"400",
|
|
1529
3039
|
response,
|
|
@@ -1546,7 +3056,7 @@ var QueryExecutionClient = class {
|
|
|
1546
3056
|
case 500: {
|
|
1547
3057
|
const responseValue = await response.body("json");
|
|
1548
3058
|
try {
|
|
1549
|
-
const errorBody =
|
|
3059
|
+
const errorBody = fromJson15(responseValue);
|
|
1550
3060
|
throw new ErrorEnvelopeError("500", response, errorBody, "An internal server error has occurred.");
|
|
1551
3061
|
} catch (err) {
|
|
1552
3062
|
if (err instanceof ErrorEnvelopeError) {
|
|
@@ -1564,7 +3074,7 @@ var QueryExecutionClient = class {
|
|
|
1564
3074
|
case 503: {
|
|
1565
3075
|
const responseValue = await response.body("json");
|
|
1566
3076
|
try {
|
|
1567
|
-
const errorBody =
|
|
3077
|
+
const errorBody = fromJson15(responseValue);
|
|
1568
3078
|
throw new ErrorEnvelopeError("503", response, errorBody, "Service is unavailable.");
|
|
1569
3079
|
} catch (err) {
|
|
1570
3080
|
if (err instanceof ErrorEnvelopeError) {
|
|
@@ -1582,7 +3092,7 @@ var QueryExecutionClient = class {
|
|
|
1582
3092
|
case 200: {
|
|
1583
3093
|
const responseValue = await response.body("json");
|
|
1584
3094
|
try {
|
|
1585
|
-
return
|
|
3095
|
+
return fromJson35(responseValue);
|
|
1586
3096
|
} catch (err) {
|
|
1587
3097
|
throw new InvalidResponseError(
|
|
1588
3098
|
`QueryExecutionClient.query:execute:${response.status}`,
|
|
@@ -1596,7 +3106,7 @@ var QueryExecutionClient = class {
|
|
|
1596
3106
|
case 202: {
|
|
1597
3107
|
const responseValue = await response.body("json");
|
|
1598
3108
|
try {
|
|
1599
|
-
return
|
|
3109
|
+
return fromJson35(responseValue);
|
|
1600
3110
|
} catch (err) {
|
|
1601
3111
|
throw new InvalidResponseError(
|
|
1602
3112
|
`QueryExecutionClient.query:execute:${response.status}`,
|
|
@@ -1608,7 +3118,7 @@ var QueryExecutionClient = class {
|
|
|
1608
3118
|
}
|
|
1609
3119
|
}
|
|
1610
3120
|
default: {
|
|
1611
|
-
const responseValue = await response.body("text").catch();
|
|
3121
|
+
const responseValue = await response.body("text").catch(() => "");
|
|
1612
3122
|
throw new ClientRequestError(
|
|
1613
3123
|
`${response.status}`,
|
|
1614
3124
|
response,
|
|
@@ -1624,7 +3134,7 @@ var QueryExecutionClient = class {
|
|
|
1624
3134
|
}
|
|
1625
3135
|
const query = toQueryString({ "request-token": config.requestToken });
|
|
1626
3136
|
const response = await this.httpClient.send({
|
|
1627
|
-
url: `/platform/storage/query/v1/query:cancel
|
|
3137
|
+
url: `/platform/storage/query/v1/query:cancel${query}`,
|
|
1628
3138
|
method: "POST",
|
|
1629
3139
|
headers: {
|
|
1630
3140
|
Accept: "application/json"
|
|
@@ -1650,7 +3160,7 @@ var QueryExecutionClient = class {
|
|
|
1650
3160
|
case 500: {
|
|
1651
3161
|
const responseValue = await response.body("json");
|
|
1652
3162
|
try {
|
|
1653
|
-
const errorBody =
|
|
3163
|
+
const errorBody = fromJson15(responseValue);
|
|
1654
3164
|
throw new ErrorEnvelopeError("500", response, errorBody, "An internal server error has occurred.");
|
|
1655
3165
|
} catch (err) {
|
|
1656
3166
|
if (err instanceof ErrorEnvelopeError) {
|
|
@@ -1668,7 +3178,7 @@ var QueryExecutionClient = class {
|
|
|
1668
3178
|
case 200: {
|
|
1669
3179
|
const responseValue = await response.body("json");
|
|
1670
3180
|
try {
|
|
1671
|
-
return
|
|
3181
|
+
return fromJson34(responseValue);
|
|
1672
3182
|
} catch (err) {
|
|
1673
3183
|
throw new InvalidResponseError(
|
|
1674
3184
|
`QueryExecutionClient.query:cancel:${response.status}`,
|
|
@@ -1683,7 +3193,7 @@ var QueryExecutionClient = class {
|
|
|
1683
3193
|
return;
|
|
1684
3194
|
}
|
|
1685
3195
|
default: {
|
|
1686
|
-
const responseValue = await response.body("text").catch();
|
|
3196
|
+
const responseValue = await response.body("text").catch(() => "");
|
|
1687
3197
|
throw new ClientRequestError(
|
|
1688
3198
|
`${response.status}`,
|
|
1689
3199
|
response,
|
|
@@ -1696,26 +3206,84 @@ var QueryExecutionClient = class {
|
|
|
1696
3206
|
};
|
|
1697
3207
|
var queryExecutionClient = /* @__PURE__ */ new QueryExecutionClient(defaultHttpClient2);
|
|
1698
3208
|
|
|
1699
|
-
// packages/client/query/src/lib/models/
|
|
1700
|
-
var
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
3209
|
+
// packages/client/query/src/lib/models/dql-node-node-type.ts
|
|
3210
|
+
var DQLNodeNodeType = /* @__PURE__ */ ((DQLNodeNodeType2) => {
|
|
3211
|
+
DQLNodeNodeType2["Terminal"] = "TERMINAL";
|
|
3212
|
+
DQLNodeNodeType2["Container"] = "CONTAINER";
|
|
3213
|
+
DQLNodeNodeType2["Alternative"] = "ALTERNATIVE";
|
|
3214
|
+
return DQLNodeNodeType2;
|
|
3215
|
+
})(DQLNodeNodeType || {});
|
|
3216
|
+
|
|
3217
|
+
// packages/client/query/src/lib/models/field-type-type.ts
|
|
3218
|
+
var FieldTypeType = /* @__PURE__ */ ((FieldTypeType2) => {
|
|
3219
|
+
FieldTypeType2["Boolean"] = "boolean";
|
|
3220
|
+
FieldTypeType2["String"] = "string";
|
|
3221
|
+
FieldTypeType2["Double"] = "double";
|
|
3222
|
+
FieldTypeType2["Long"] = "long";
|
|
3223
|
+
FieldTypeType2["Timestamp"] = "timestamp";
|
|
3224
|
+
FieldTypeType2["Timeframe"] = "timeframe";
|
|
3225
|
+
FieldTypeType2["Duration"] = "duration";
|
|
3226
|
+
FieldTypeType2["Binary"] = "binary";
|
|
3227
|
+
FieldTypeType2["IpAddress"] = "ip_address";
|
|
3228
|
+
FieldTypeType2["GeoPoint"] = "geo_point";
|
|
3229
|
+
FieldTypeType2["Array"] = "array";
|
|
3230
|
+
FieldTypeType2["Record"] = "record";
|
|
3231
|
+
FieldTypeType2["Undefined"] = "undefined";
|
|
3232
|
+
return FieldTypeType2;
|
|
3233
|
+
})(FieldTypeType || {});
|
|
3234
|
+
|
|
3235
|
+
// packages/client/query/src/lib/models/query-state.ts
|
|
3236
|
+
var QueryState = /* @__PURE__ */ ((QueryState2) => {
|
|
3237
|
+
QueryState2["NotStarted"] = "NOT_STARTED";
|
|
3238
|
+
QueryState2["Running"] = "RUNNING";
|
|
3239
|
+
QueryState2["Succeeded"] = "SUCCEEDED";
|
|
3240
|
+
QueryState2["ResultGone"] = "RESULT_GONE";
|
|
3241
|
+
QueryState2["Cancelled"] = "CANCELLED";
|
|
3242
|
+
QueryState2["Failed"] = "FAILED";
|
|
3243
|
+
return QueryState2;
|
|
3244
|
+
})(QueryState || {});
|
|
3245
|
+
|
|
3246
|
+
// packages/client/query/src/lib/models/token-type.ts
|
|
3247
|
+
var TokenType = /* @__PURE__ */ ((TokenType2) => {
|
|
3248
|
+
TokenType2["Space"] = "SPACE";
|
|
3249
|
+
TokenType2["Linebreak"] = "LINEBREAK";
|
|
3250
|
+
TokenType2["Indent"] = "INDENT";
|
|
3251
|
+
TokenType2["Pipe"] = "PIPE";
|
|
3252
|
+
TokenType2["Dot"] = "DOT";
|
|
3253
|
+
TokenType2["Colon"] = "COLON";
|
|
3254
|
+
TokenType2["Comma"] = "COMMA";
|
|
3255
|
+
TokenType2["Assignment"] = "ASSIGNMENT";
|
|
3256
|
+
TokenType2["BraceOpen"] = "BRACE_OPEN";
|
|
3257
|
+
TokenType2["BraceClose"] = "BRACE_CLOSE";
|
|
3258
|
+
TokenType2["BracketOpen"] = "BRACKET_OPEN";
|
|
3259
|
+
TokenType2["BracketClose"] = "BRACKET_CLOSE";
|
|
3260
|
+
TokenType2["ParenthesisOpen"] = "PARENTHESIS_OPEN";
|
|
3261
|
+
TokenType2["ParenthesisClose"] = "PARENTHESIS_CLOSE";
|
|
3262
|
+
TokenType2["Quote"] = "QUOTE";
|
|
3263
|
+
TokenType2["SingleQuote"] = "SINGLE_QUOTE";
|
|
3264
|
+
TokenType2["Slash"] = "SLASH";
|
|
3265
|
+
TokenType2["BooleanTrue"] = "BOOLEAN_TRUE";
|
|
3266
|
+
TokenType2["BooleanFalse"] = "BOOLEAN_FALSE";
|
|
3267
|
+
TokenType2["Null"] = "NULL";
|
|
3268
|
+
TokenType2["CommandName"] = "COMMAND_NAME";
|
|
3269
|
+
TokenType2["ParameterKey"] = "PARAMETER_KEY";
|
|
3270
|
+
TokenType2["ParameterValueScope"] = "PARAMETER_VALUE_SCOPE";
|
|
3271
|
+
TokenType2["FunctionName"] = "FUNCTION_NAME";
|
|
3272
|
+
TokenType2["TimeseriesAggregation"] = "TIMESERIES_AGGREGATION";
|
|
3273
|
+
TokenType2["Operator"] = "OPERATOR";
|
|
3274
|
+
TokenType2["TraversalOperator"] = "TRAVERSAL_OPERATOR";
|
|
3275
|
+
TokenType2["TraversalRelationName"] = "TRAVERSAL_RELATION_NAME";
|
|
3276
|
+
TokenType2["TraversalHopCount"] = "TRAVERSAL_HOP_COUNT";
|
|
3277
|
+
TokenType2["SimpleIdentifier"] = "SIMPLE_IDENTIFIER";
|
|
3278
|
+
TokenType2["Number"] = "NUMBER";
|
|
3279
|
+
TokenType2["String"] = "STRING";
|
|
3280
|
+
TokenType2["TimeUnit"] = "TIME_UNIT";
|
|
3281
|
+
TokenType2["TimestampValue"] = "TIMESTAMP_VALUE";
|
|
3282
|
+
TokenType2["MetricKey"] = "METRIC_KEY";
|
|
3283
|
+
TokenType2["Variable"] = "VARIABLE";
|
|
3284
|
+
TokenType2["EndComment"] = "END_COMMENT";
|
|
3285
|
+
return TokenType2;
|
|
3286
|
+
})(TokenType || {});
|
|
1719
3287
|
export {
|
|
1720
3288
|
DQLNodeNodeType,
|
|
1721
3289
|
FieldTypeType,
|
|
@@ -1723,41 +3291,41 @@ export {
|
|
|
1723
3291
|
QueryExecutionClient,
|
|
1724
3292
|
QueryState,
|
|
1725
3293
|
TokenType,
|
|
1726
|
-
_AutocompleteRequestTransformation,
|
|
1727
|
-
_AutocompleteResponseTransformation,
|
|
1728
|
-
_AutocompleteSuggestionPartTransformation,
|
|
1729
|
-
_AutocompleteSuggestionTransformation,
|
|
1730
|
-
_DQLAlternativeNodeTransformation,
|
|
1731
|
-
_DQLContainerNodeTransformation,
|
|
1732
|
-
_DQLNodeNodeTypeTransformation,
|
|
1733
|
-
_DQLNodeTransformation,
|
|
1734
|
-
_DQLTerminalNodeTransformation,
|
|
1735
|
-
_ErrorEnvelopeTransformation,
|
|
1736
|
-
_ErrorResponseDetailsTransformation,
|
|
1737
|
-
_ErrorResponseTransformation,
|
|
1738
|
-
_ExecuteRequestTransformation,
|
|
1739
|
-
_FieldTypeTransformation,
|
|
1740
|
-
_FieldTypeTypeTransformation,
|
|
1741
|
-
_GeoPointTransformation,
|
|
1742
|
-
_GrailMetadataTransformation,
|
|
1743
|
-
_MetadataNotificationTransformation,
|
|
1744
|
-
_MetadataTransformation,
|
|
1745
|
-
_MetricMetadataTransformation,
|
|
1746
|
-
_ParseRequestTransformation,
|
|
1747
|
-
_PositionInfoTransformation,
|
|
1748
|
-
_QueryPollResponseTransformation,
|
|
1749
|
-
_QueryResultTransformation,
|
|
1750
|
-
_QueryStartResponseTransformation,
|
|
1751
|
-
_QueryStateTransformation,
|
|
1752
|
-
_RangedFieldTypesMappingsTransformation,
|
|
1753
|
-
_RangedFieldTypesTransformation,
|
|
1754
|
-
_ResultRecordTransformation,
|
|
1755
|
-
_ResultRecordValueTransformation,
|
|
1756
|
-
_TimeframeTransformation,
|
|
1757
|
-
_TokenPositionTransformation,
|
|
1758
|
-
_TokenTypeTransformation,
|
|
1759
|
-
_VerifyRequestTransformation,
|
|
1760
|
-
_VerifyResponseTransformation,
|
|
3294
|
+
autocomplete_request_transformation_exports as _AutocompleteRequestTransformation,
|
|
3295
|
+
autocomplete_response_transformation_exports as _AutocompleteResponseTransformation,
|
|
3296
|
+
autocomplete_suggestion_part_transformation_exports as _AutocompleteSuggestionPartTransformation,
|
|
3297
|
+
autocomplete_suggestion_transformation_exports as _AutocompleteSuggestionTransformation,
|
|
3298
|
+
dql_alternative_node_transformation_exports as _DQLAlternativeNodeTransformation,
|
|
3299
|
+
dql_container_node_transformation_exports as _DQLContainerNodeTransformation,
|
|
3300
|
+
dql_node_node_type_transformation_exports as _DQLNodeNodeTypeTransformation,
|
|
3301
|
+
dql_node_transformation_exports as _DQLNodeTransformation,
|
|
3302
|
+
dql_terminal_node_transformation_exports as _DQLTerminalNodeTransformation,
|
|
3303
|
+
error_envelope_transformation_exports as _ErrorEnvelopeTransformation,
|
|
3304
|
+
error_response_details_transformation_exports as _ErrorResponseDetailsTransformation,
|
|
3305
|
+
error_response_transformation_exports as _ErrorResponseTransformation,
|
|
3306
|
+
execute_request_transformation_exports as _ExecuteRequestTransformation,
|
|
3307
|
+
field_type_transformation_exports as _FieldTypeTransformation,
|
|
3308
|
+
field_type_type_transformation_exports as _FieldTypeTypeTransformation,
|
|
3309
|
+
geo_point_transformation_exports as _GeoPointTransformation,
|
|
3310
|
+
grail_metadata_transformation_exports as _GrailMetadataTransformation,
|
|
3311
|
+
metadata_notification_transformation_exports as _MetadataNotificationTransformation,
|
|
3312
|
+
metadata_transformation_exports as _MetadataTransformation,
|
|
3313
|
+
metric_metadata_transformation_exports as _MetricMetadataTransformation,
|
|
3314
|
+
parse_request_transformation_exports as _ParseRequestTransformation,
|
|
3315
|
+
position_info_transformation_exports as _PositionInfoTransformation,
|
|
3316
|
+
query_poll_response_transformation_exports as _QueryPollResponseTransformation,
|
|
3317
|
+
query_result_transformation_exports as _QueryResultTransformation,
|
|
3318
|
+
query_start_response_transformation_exports as _QueryStartResponseTransformation,
|
|
3319
|
+
query_state_transformation_exports as _QueryStateTransformation,
|
|
3320
|
+
ranged_field_types_mappings_transformation_exports as _RangedFieldTypesMappingsTransformation,
|
|
3321
|
+
ranged_field_types_transformation_exports as _RangedFieldTypesTransformation,
|
|
3322
|
+
result_record_transformation_exports as _ResultRecordTransformation,
|
|
3323
|
+
result_record_value_transformation_exports as _ResultRecordValueTransformation,
|
|
3324
|
+
timeframe_transformation_exports as _TimeframeTransformation,
|
|
3325
|
+
token_position_transformation_exports as _TokenPositionTransformation,
|
|
3326
|
+
token_type_transformation_exports as _TokenTypeTransformation,
|
|
3327
|
+
verify_request_transformation_exports as _VerifyRequestTransformation,
|
|
3328
|
+
verify_response_transformation_exports as _VerifyResponseTransformation,
|
|
1761
3329
|
isApiClientError,
|
|
1762
3330
|
isClientRequestError,
|
|
1763
3331
|
isErrorEnvelopeError,
|