@dynatrace-sdk/client-query 1.11.1 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +81 -28
  3. package/cjs/index.js +513 -253
  4. package/dynatrace-metadata.json +3 -3
  5. package/esm/index.js +513 -253
  6. package/package.json +2 -2
  7. package/types/packages/client/query/src/lib/error-envelopes/api-client-error.d.ts +1 -0
  8. package/types/packages/client/query/src/lib/error-envelopes/client-request-error.d.ts +1 -0
  9. package/types/packages/client/query/src/lib/error-envelopes/error-envelope-error.d.ts +1 -0
  10. package/types/packages/client/query/src/lib/error-envelopes/invalid-response-error.d.ts +1 -0
  11. package/types/packages/client/query/src/lib/models/autocomplete-suggestion.d.ts +1 -1
  12. package/types/packages/client/query/src/lib/models/error-response-details-constraint-violations-item.d.ts +14 -0
  13. package/types/packages/client/query/src/lib/models/error-response-details-constraint-violations-item.transformation.d.ts +10 -0
  14. package/types/packages/client/query/src/lib/models/error-response-details.d.ts +20 -7
  15. package/types/packages/client/query/src/lib/models/error-response-details.transformation.d.ts +11 -7
  16. package/types/packages/client/query/src/lib/models/error-response.d.ts +1 -1
  17. package/types/packages/client/query/src/lib/models/error-response.transformation.d.ts +1 -1
  18. package/types/packages/client/query/src/lib/models/execute-request.d.ts +2 -0
  19. package/types/packages/client/query/src/lib/models/execute-request.transformation.d.ts +2 -0
  20. package/types/packages/client/query/src/lib/models/filter-segment-variable-definition.d.ts +7 -0
  21. package/types/packages/client/query/src/lib/models/filter-segment-variable-definition.transformation.d.ts +9 -0
  22. package/types/packages/client/query/src/lib/models/filter-segment.d.ts +8 -0
  23. package/types/packages/client/query/src/lib/models/filter-segment.transformation.d.ts +10 -0
  24. package/types/packages/client/query/src/lib/models/filter-segments.d.ts +6 -0
  25. package/types/packages/client/query/src/lib/models/filter-segments.transformation.d.ts +6 -0
  26. package/types/packages/client/query/src/lib/models/index.d.ts +8 -0
  27. package/types/packages/client/query/src/lib/models/query-options.d.ts +1 -1
  28. package/types/packages/http-client/src/lib/types/abort-signal.d.ts +4 -1
  29. package/docs/DOCS.md +0 -1207
package/cjs/index.js CHANGED
@@ -51,11 +51,15 @@ __export(src_exports, {
51
51
  _DQLNodeTransformation: () => dql_node_transformation_exports,
52
52
  _DQLTerminalNodeTransformation: () => dql_terminal_node_transformation_exports,
53
53
  _ErrorEnvelopeTransformation: () => error_envelope_transformation_exports,
54
+ _ErrorResponseDetailsConstraintViolationsItemTransformation: () => error_response_details_constraint_violations_item_transformation_exports,
54
55
  _ErrorResponseDetailsTransformation: () => error_response_details_transformation_exports,
55
56
  _ErrorResponseTransformation: () => error_response_transformation_exports,
56
57
  _ExecuteRequestTransformation: () => execute_request_transformation_exports,
57
58
  _FieldTypeTransformation: () => field_type_transformation_exports,
58
59
  _FieldTypeTypeTransformation: () => field_type_type_transformation_exports,
60
+ _FilterSegmentTransformation: () => filter_segment_transformation_exports,
61
+ _FilterSegmentVariableDefinitionTransformation: () => filter_segment_variable_definition_transformation_exports,
62
+ _FilterSegmentsTransformation: () => filter_segments_transformation_exports,
59
63
  _GeoPointTransformation: () => geo_point_transformation_exports,
60
64
  _GrailMetadataTransformation: () => grail_metadata_transformation_exports,
61
65
  _MetadataNotificationTransformation: () => metadata_notification_transformation_exports,
@@ -97,15 +101,17 @@ var ApiClientError = class extends Error {
97
101
  this.cause = cause;
98
102
  this.name = name;
99
103
  }
104
+ isApiClientError = true;
100
105
  errorType = import_error_handlers.ErrorType.COMMON;
101
106
  };
102
107
  function isApiClientError(e) {
103
- return e instanceof ApiClientError;
108
+ return e?.isApiClientError === true && e instanceof Error;
104
109
  }
105
110
 
106
111
  // packages/client/query/src/lib/error-envelopes/client-request-error.ts
107
112
  var import_error_handlers2 = require("@dynatrace-sdk/error-handlers");
108
113
  var ClientRequestError = class extends ApiClientError {
114
+ isClientRequestError = true;
109
115
  body;
110
116
  response;
111
117
  constructor(name, response, body, message, cause) {
@@ -116,14 +122,15 @@ var ClientRequestError = class extends ApiClientError {
116
122
  }
117
123
  };
118
124
  function isClientRequestError(e) {
119
- return e instanceof ClientRequestError;
125
+ return e?.isApiClientError === true && e?.isClientRequestError === true && e instanceof Error;
120
126
  }
121
127
 
122
128
  // packages/client/query/src/lib/error-envelopes/error-envelope-error.ts
123
129
  var ErrorEnvelopeError = class extends ClientRequestError {
130
+ isErrorEnvelopeError = true;
124
131
  };
125
132
  function isErrorEnvelopeError(e) {
126
- return e instanceof ErrorEnvelopeError;
133
+ return e?.isApiClientError === true && e?.isClientRequestError === true && e?.isErrorEnvelopeError === true && e instanceof Error;
127
134
  }
128
135
 
129
136
  // packages/client/query/src/lib/error-envelopes/error-serializer.ts
@@ -199,6 +206,7 @@ function getErrorMessage(errorBody, defaultMessage) {
199
206
 
200
207
  // packages/client/query/src/lib/error-envelopes/invalid-response-error.ts
201
208
  var InvalidResponseError = class extends ApiClientError {
209
+ isInvalidResponseError = true;
202
210
  responseBody;
203
211
  expectedType;
204
212
  nestedError;
@@ -213,7 +221,7 @@ var InvalidResponseError = class extends ApiClientError {
213
221
  }
214
222
  };
215
223
  function isInvalidResponseError(e) {
216
- return e instanceof InvalidResponseError;
224
+ return e?.isApiClientError === true && e?.isInvalidResponseError === true && e instanceof Error;
217
225
  }
218
226
 
219
227
  // packages/client/query/src/lib/models/autocomplete-request.transformation.ts
@@ -1037,30 +1045,97 @@ function toJson7($model, includeChildProps = true) {
1037
1045
  var error_envelope_transformation_exports = {};
1038
1046
  __export(error_envelope_transformation_exports, {
1039
1047
  fromFormData: () => fromFormData2,
1040
- fromJson: () => fromJson16,
1048
+ fromJson: () => fromJson17,
1041
1049
  isErrorEnvelope: () => isErrorEnvelope,
1042
- isJson: () => isJson16,
1050
+ isJson: () => isJson17,
1043
1051
  toFormData: () => toFormData2,
1044
- toJson: () => toJson16
1052
+ toJson: () => toJson17
1045
1053
  });
1046
1054
 
1047
1055
  // packages/client/query/src/lib/models/error-response.transformation.ts
1048
1056
  var error_response_transformation_exports = {};
1049
1057
  __export(error_response_transformation_exports, {
1050
- fromJson: () => fromJson15,
1058
+ fromJson: () => fromJson16,
1051
1059
  isErrorResponse: () => isErrorResponse,
1052
- isJson: () => isJson15,
1053
- toJson: () => toJson15
1060
+ isJson: () => isJson16,
1061
+ toJson: () => toJson16
1054
1062
  });
1055
1063
 
1056
1064
  // packages/client/query/src/lib/models/error-response-details.transformation.ts
1057
1065
  var error_response_details_transformation_exports = {};
1058
1066
  __export(error_response_details_transformation_exports, {
1059
- fromJson: () => fromJson14,
1067
+ fromJson: () => fromJson15,
1060
1068
  isErrorResponseDetails: () => isErrorResponseDetails,
1069
+ isJson: () => isJson15,
1070
+ toJson: () => toJson15
1071
+ });
1072
+
1073
+ // packages/client/query/src/lib/models/error-response-details-constraint-violations-item.transformation.ts
1074
+ var error_response_details_constraint_violations_item_transformation_exports = {};
1075
+ __export(error_response_details_constraint_violations_item_transformation_exports, {
1076
+ fromJson: () => fromJson14,
1077
+ isErrorResponseDetailsConstraintViolationsItem: () => isErrorResponseDetailsConstraintViolationsItem,
1061
1078
  isJson: () => isJson14,
1062
1079
  toJson: () => toJson14
1063
1080
  });
1081
+ function isErrorResponseDetailsConstraintViolationsItem(value) {
1082
+ if (value === null) {
1083
+ return false;
1084
+ }
1085
+ if (value === void 0) {
1086
+ return false;
1087
+ }
1088
+ if (Array.isArray(value)) {
1089
+ return false;
1090
+ }
1091
+ const modelKeys = /* @__PURE__ */ new Set(["message", "parameterLocation", "parameterDescriptor"]);
1092
+ const hasAdditionalProperties = false;
1093
+ const requiredKeys = ["message"];
1094
+ const optionalKeys = ["parameterLocation", "parameterDescriptor"];
1095
+ const valKeys = new Set(Object.keys(value));
1096
+ const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
1097
+ const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
1098
+ const allPropertiesMatchFormat = true;
1099
+ return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
1100
+ }
1101
+ function isJson14(value) {
1102
+ if (value === null) {
1103
+ return false;
1104
+ }
1105
+ if (value === void 0) {
1106
+ return false;
1107
+ }
1108
+ if (Array.isArray(value)) {
1109
+ return false;
1110
+ }
1111
+ const modelKeys = /* @__PURE__ */ new Set(["message", "parameterLocation", "parameterDescriptor"]);
1112
+ const hasAdditionalProperties = false;
1113
+ const requiredKeys = ["message"];
1114
+ const optionalKeys = ["parameterLocation", "parameterDescriptor"];
1115
+ const valKeys = new Set(Object.keys(value));
1116
+ const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
1117
+ const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
1118
+ const allPropertiesMatchFormat = true;
1119
+ return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
1120
+ }
1121
+ function fromJson14($model) {
1122
+ const { message, parameterLocation, parameterDescriptor } = $model;
1123
+ return {
1124
+ message,
1125
+ parameterLocation,
1126
+ parameterDescriptor
1127
+ };
1128
+ }
1129
+ function toJson14($model) {
1130
+ const { message, parameterLocation, parameterDescriptor } = $model;
1131
+ return {
1132
+ message,
1133
+ parameterLocation,
1134
+ parameterDescriptor
1135
+ };
1136
+ }
1137
+
1138
+ // packages/client/query/src/lib/models/error-response-details.transformation.ts
1064
1139
  function isErrorResponseDetails(value) {
1065
1140
  if (value === null) {
1066
1141
  return false;
@@ -1080,26 +1155,34 @@ function isErrorResponseDetails(value) {
1080
1155
  "queryString",
1081
1156
  "errorMessageFormatSpecifierTypes",
1082
1157
  "errorMessageFormat",
1083
- "queryId"
1158
+ "queryId",
1159
+ "constraintViolations",
1160
+ "missingScopes",
1161
+ "missingPermissions"
1084
1162
  ]);
1085
1163
  const hasAdditionalProperties = false;
1086
- const requiredKeys = [
1087
- "arguments",
1164
+ const requiredKeys = [];
1165
+ const optionalKeys = [
1166
+ "exceptionType",
1167
+ "syntaxErrorPosition",
1168
+ "errorType",
1088
1169
  "errorMessage",
1089
- "errorMessageFormat",
1170
+ "arguments",
1171
+ "queryString",
1090
1172
  "errorMessageFormatSpecifierTypes",
1091
- "errorType",
1092
- "exceptionType",
1093
- "queryString"
1173
+ "errorMessageFormat",
1174
+ "queryId",
1175
+ "constraintViolations",
1176
+ "missingScopes",
1177
+ "missingPermissions"
1094
1178
  ];
1095
- const optionalKeys = ["syntaxErrorPosition", "queryId"];
1096
1179
  const valKeys = new Set(Object.keys(value));
1097
1180
  const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
1098
1181
  const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
1099
1182
  const allPropertiesMatchFormat = true;
1100
1183
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
1101
1184
  }
1102
- function isJson14(value) {
1185
+ function isJson15(value) {
1103
1186
  if (value === null) {
1104
1187
  return false;
1105
1188
  }
@@ -1118,26 +1201,34 @@ function isJson14(value) {
1118
1201
  "queryString",
1119
1202
  "errorMessageFormatSpecifierTypes",
1120
1203
  "errorMessageFormat",
1121
- "queryId"
1204
+ "queryId",
1205
+ "constraintViolations",
1206
+ "missingScopes",
1207
+ "missingPermissions"
1122
1208
  ]);
1123
1209
  const hasAdditionalProperties = false;
1124
- const requiredKeys = [
1125
- "arguments",
1210
+ const requiredKeys = [];
1211
+ const optionalKeys = [
1212
+ "exceptionType",
1213
+ "syntaxErrorPosition",
1214
+ "errorType",
1126
1215
  "errorMessage",
1127
- "errorMessageFormat",
1216
+ "arguments",
1217
+ "queryString",
1128
1218
  "errorMessageFormatSpecifierTypes",
1129
- "errorType",
1130
- "exceptionType",
1131
- "queryString"
1219
+ "errorMessageFormat",
1220
+ "queryId",
1221
+ "constraintViolations",
1222
+ "missingScopes",
1223
+ "missingPermissions"
1132
1224
  ];
1133
- const optionalKeys = ["syntaxErrorPosition", "queryId"];
1134
1225
  const valKeys = new Set(Object.keys(value));
1135
1226
  const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
1136
1227
  const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
1137
1228
  const allPropertiesMatchFormat = true;
1138
1229
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
1139
1230
  }
1140
- function fromJson14($model) {
1231
+ function fromJson15($model) {
1141
1232
  const {
1142
1233
  exceptionType,
1143
1234
  syntaxErrorPosition,
@@ -1147,21 +1238,29 @@ function fromJson14($model) {
1147
1238
  queryString,
1148
1239
  errorMessageFormatSpecifierTypes,
1149
1240
  errorMessageFormat,
1150
- queryId
1241
+ queryId,
1242
+ constraintViolations,
1243
+ missingScopes,
1244
+ missingPermissions
1151
1245
  } = $model;
1152
1246
  return {
1153
1247
  exceptionType,
1154
1248
  syntaxErrorPosition: syntaxErrorPosition !== void 0 && syntaxErrorPosition !== null ? fromJson13(syntaxErrorPosition) : void 0,
1155
1249
  errorType,
1156
1250
  errorMessage,
1157
- arguments: _arguments?.slice(0),
1251
+ arguments: _arguments !== void 0 && _arguments !== null ? _arguments?.slice(0) : void 0,
1158
1252
  queryString,
1159
- errorMessageFormatSpecifierTypes: errorMessageFormatSpecifierTypes?.slice(0),
1253
+ errorMessageFormatSpecifierTypes: errorMessageFormatSpecifierTypes !== void 0 && errorMessageFormatSpecifierTypes !== null ? errorMessageFormatSpecifierTypes?.slice(0) : void 0,
1160
1254
  errorMessageFormat,
1161
- queryId
1255
+ queryId,
1256
+ constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map(
1257
+ (innerValue) => fromJson14(innerValue)
1258
+ ) : void 0,
1259
+ missingScopes: missingScopes !== void 0 && missingScopes !== null ? missingScopes?.slice(0) : void 0,
1260
+ missingPermissions: missingPermissions !== void 0 && missingPermissions !== null ? missingPermissions?.slice(0) : void 0
1162
1261
  };
1163
1262
  }
1164
- function toJson14($model) {
1263
+ function toJson15($model) {
1165
1264
  const {
1166
1265
  exceptionType,
1167
1266
  syntaxErrorPosition,
@@ -1171,18 +1270,26 @@ function toJson14($model) {
1171
1270
  queryString,
1172
1271
  errorMessageFormatSpecifierTypes,
1173
1272
  errorMessageFormat,
1174
- queryId
1273
+ queryId,
1274
+ constraintViolations,
1275
+ missingScopes,
1276
+ missingPermissions
1175
1277
  } = $model;
1176
1278
  return {
1177
1279
  exceptionType,
1178
1280
  syntaxErrorPosition: syntaxErrorPosition !== void 0 && syntaxErrorPosition !== null ? toJson13(syntaxErrorPosition) : void 0,
1179
1281
  errorType,
1180
1282
  errorMessage,
1181
- arguments: _arguments?.slice(0),
1283
+ arguments: _arguments !== void 0 && _arguments !== null ? _arguments?.slice(0) : void 0,
1182
1284
  queryString,
1183
- errorMessageFormatSpecifierTypes: errorMessageFormatSpecifierTypes?.slice(0),
1285
+ errorMessageFormatSpecifierTypes: errorMessageFormatSpecifierTypes !== void 0 && errorMessageFormatSpecifierTypes !== null ? errorMessageFormatSpecifierTypes?.slice(0) : void 0,
1184
1286
  errorMessageFormat,
1185
- queryId
1287
+ queryId,
1288
+ constraintViolations: constraintViolations !== void 0 && constraintViolations !== null ? constraintViolations?.map(
1289
+ (innerValue) => toJson14(innerValue)
1290
+ ) : void 0,
1291
+ missingScopes: missingScopes !== void 0 && missingScopes !== null ? missingScopes?.slice(0) : void 0,
1292
+ missingPermissions: missingPermissions !== void 0 && missingPermissions !== null ? missingPermissions?.slice(0) : void 0
1186
1293
  };
1187
1294
  }
1188
1295
 
@@ -1199,15 +1306,15 @@ function isErrorResponse(value) {
1199
1306
  }
1200
1307
  const modelKeys = /* @__PURE__ */ new Set(["message", "details", "code"]);
1201
1308
  const hasAdditionalProperties = false;
1202
- const requiredKeys = ["code", "details", "message"];
1203
- const optionalKeys = [];
1309
+ const requiredKeys = ["code", "message"];
1310
+ const optionalKeys = ["details"];
1204
1311
  const valKeys = new Set(Object.keys(value));
1205
1312
  const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
1206
1313
  const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
1207
1314
  const allPropertiesMatchFormat = true;
1208
1315
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
1209
1316
  }
1210
- function isJson15(value) {
1317
+ function isJson16(value) {
1211
1318
  if (value === null) {
1212
1319
  return false;
1213
1320
  }
@@ -1219,27 +1326,27 @@ function isJson15(value) {
1219
1326
  }
1220
1327
  const modelKeys = /* @__PURE__ */ new Set(["message", "details", "code"]);
1221
1328
  const hasAdditionalProperties = false;
1222
- const requiredKeys = ["code", "details", "message"];
1223
- const optionalKeys = [];
1329
+ const requiredKeys = ["code", "message"];
1330
+ const optionalKeys = ["details"];
1224
1331
  const valKeys = new Set(Object.keys(value));
1225
1332
  const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
1226
1333
  const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
1227
1334
  const allPropertiesMatchFormat = true;
1228
1335
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
1229
1336
  }
1230
- function fromJson15($model) {
1337
+ function fromJson16($model) {
1231
1338
  const { message, details, code } = $model;
1232
1339
  return {
1233
1340
  message,
1234
- details: fromJson14(details),
1341
+ details: details !== void 0 && details !== null ? fromJson15(details) : void 0,
1235
1342
  code
1236
1343
  };
1237
1344
  }
1238
- function toJson15($model) {
1345
+ function toJson16($model) {
1239
1346
  const { message, details, code } = $model;
1240
1347
  return {
1241
1348
  message,
1242
- details: toJson14(details),
1349
+ details: details !== void 0 && details !== null ? toJson15(details) : void 0,
1243
1350
  code
1244
1351
  };
1245
1352
  }
@@ -1265,7 +1372,7 @@ function isErrorEnvelope(value) {
1265
1372
  const allPropertiesMatchFormat = true;
1266
1373
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
1267
1374
  }
1268
- function isJson16(value) {
1375
+ function isJson17(value) {
1269
1376
  if (value === null) {
1270
1377
  return false;
1271
1378
  }
@@ -1285,26 +1392,26 @@ function isJson16(value) {
1285
1392
  const allPropertiesMatchFormat = true;
1286
1393
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
1287
1394
  }
1288
- function fromJson16($model) {
1395
+ function fromJson17($model) {
1289
1396
  const { error } = $model;
1290
1397
  return {
1291
- error: fromJson15(error)
1398
+ error: fromJson16(error)
1292
1399
  };
1293
1400
  }
1294
- function toJson16($model) {
1401
+ function toJson17($model) {
1295
1402
  const { error } = $model;
1296
1403
  return {
1297
- error: toJson15(error)
1404
+ error: toJson16(error)
1298
1405
  };
1299
1406
  }
1300
1407
  function fromFormData2(formData) {
1301
1408
  const formDataEntries = Object.fromEntries(formData.map((data) => [data.name, data.value]));
1302
1409
  return {
1303
- error: fromJson15(JSON.parse(formDataEntries["error"]))
1410
+ error: fromJson16(JSON.parse(formDataEntries["error"]))
1304
1411
  };
1305
1412
  }
1306
1413
  function toFormData2($model) {
1307
- const json = toJson16($model);
1414
+ const json = toJson17($model);
1308
1415
  const body = [{ name: "error", type: "json", value: json["error"] }];
1309
1416
  return body;
1310
1417
  }
@@ -1312,10 +1419,10 @@ function toFormData2($model) {
1312
1419
  // packages/client/query/src/lib/models/parse-request.transformation.ts
1313
1420
  var parse_request_transformation_exports = {};
1314
1421
  __export(parse_request_transformation_exports, {
1315
- fromJson: () => fromJson17,
1316
- isJson: () => isJson17,
1422
+ fromJson: () => fromJson18,
1423
+ isJson: () => isJson18,
1317
1424
  isParseRequest: () => isParseRequest,
1318
- toJson: () => toJson17
1425
+ toJson: () => toJson18
1319
1426
  });
1320
1427
  function isParseRequest(value) {
1321
1428
  if (value === null) {
@@ -1337,7 +1444,7 @@ function isParseRequest(value) {
1337
1444
  const allPropertiesMatchFormat = true;
1338
1445
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
1339
1446
  }
1340
- function isJson17(value) {
1447
+ function isJson18(value) {
1341
1448
  if (value === null) {
1342
1449
  return false;
1343
1450
  }
@@ -1357,7 +1464,7 @@ function isJson17(value) {
1357
1464
  const allPropertiesMatchFormat = true;
1358
1465
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
1359
1466
  }
1360
- function fromJson17($model) {
1467
+ function fromJson18($model) {
1361
1468
  const { query, timezone, locale, queryOptions } = $model;
1362
1469
  return {
1363
1470
  query,
@@ -1366,7 +1473,7 @@ function fromJson17($model) {
1366
1473
  queryOptions: queryOptions !== void 0 && queryOptions !== null ? fromJson(queryOptions) : void 0
1367
1474
  };
1368
1475
  }
1369
- function toJson17($model) {
1476
+ function toJson18($model) {
1370
1477
  const { query, timezone, locale, queryOptions } = $model;
1371
1478
  return {
1372
1479
  query,
@@ -1379,10 +1486,10 @@ function toJson17($model) {
1379
1486
  // packages/client/query/src/lib/models/verify-request.transformation.ts
1380
1487
  var verify_request_transformation_exports = {};
1381
1488
  __export(verify_request_transformation_exports, {
1382
- fromJson: () => fromJson18,
1383
- isJson: () => isJson18,
1489
+ fromJson: () => fromJson19,
1490
+ isJson: () => isJson19,
1384
1491
  isVerifyRequest: () => isVerifyRequest,
1385
- toJson: () => toJson18
1492
+ toJson: () => toJson19
1386
1493
  });
1387
1494
  function isVerifyRequest(value) {
1388
1495
  if (value === null) {
@@ -1404,7 +1511,7 @@ function isVerifyRequest(value) {
1404
1511
  const allPropertiesMatchFormat = true;
1405
1512
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
1406
1513
  }
1407
- function isJson18(value) {
1514
+ function isJson19(value) {
1408
1515
  if (value === null) {
1409
1516
  return false;
1410
1517
  }
@@ -1424,7 +1531,7 @@ function isJson18(value) {
1424
1531
  const allPropertiesMatchFormat = true;
1425
1532
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
1426
1533
  }
1427
- function fromJson18($model) {
1534
+ function fromJson19($model) {
1428
1535
  const { query, timezone, locale, queryOptions, generateCanonicalQuery } = $model;
1429
1536
  return {
1430
1537
  query,
@@ -1434,7 +1541,7 @@ function fromJson18($model) {
1434
1541
  generateCanonicalQuery
1435
1542
  };
1436
1543
  }
1437
- function toJson18($model) {
1544
+ function toJson19($model) {
1438
1545
  const { query, timezone, locale, queryOptions, generateCanonicalQuery } = $model;
1439
1546
  return {
1440
1547
  query,
@@ -1448,19 +1555,19 @@ function toJson18($model) {
1448
1555
  // packages/client/query/src/lib/models/verify-response.transformation.ts
1449
1556
  var verify_response_transformation_exports = {};
1450
1557
  __export(verify_response_transformation_exports, {
1451
- fromJson: () => fromJson20,
1452
- isJson: () => isJson20,
1558
+ fromJson: () => fromJson21,
1559
+ isJson: () => isJson21,
1453
1560
  isVerifyResponse: () => isVerifyResponse,
1454
- toJson: () => toJson20
1561
+ toJson: () => toJson21
1455
1562
  });
1456
1563
 
1457
1564
  // packages/client/query/src/lib/models/metadata-notification.transformation.ts
1458
1565
  var metadata_notification_transformation_exports = {};
1459
1566
  __export(metadata_notification_transformation_exports, {
1460
- fromJson: () => fromJson19,
1461
- isJson: () => isJson19,
1567
+ fromJson: () => fromJson20,
1568
+ isJson: () => isJson20,
1462
1569
  isMetadataNotification: () => isMetadataNotification,
1463
- toJson: () => toJson19
1570
+ toJson: () => toJson20
1464
1571
  });
1465
1572
  function isMetadataNotification(value) {
1466
1573
  if (value === null) {
@@ -1498,7 +1605,7 @@ function isMetadataNotification(value) {
1498
1605
  const allPropertiesMatchFormat = true;
1499
1606
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
1500
1607
  }
1501
- function isJson19(value) {
1608
+ function isJson20(value) {
1502
1609
  if (value === null) {
1503
1610
  return false;
1504
1611
  }
@@ -1534,7 +1641,7 @@ function isJson19(value) {
1534
1641
  const allPropertiesMatchFormat = true;
1535
1642
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
1536
1643
  }
1537
- function fromJson19($model) {
1644
+ function fromJson20($model) {
1538
1645
  const {
1539
1646
  severity,
1540
1647
  messageFormat,
@@ -1554,7 +1661,7 @@ function fromJson19($model) {
1554
1661
  message
1555
1662
  };
1556
1663
  }
1557
- function toJson19($model) {
1664
+ function toJson20($model) {
1558
1665
  const {
1559
1666
  severity,
1560
1667
  messageFormat,
@@ -1596,7 +1703,7 @@ function isVerifyResponse(value) {
1596
1703
  const allPropertiesMatchFormat = true;
1597
1704
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
1598
1705
  }
1599
- function isJson20(value) {
1706
+ function isJson21(value) {
1600
1707
  if (value === null) {
1601
1708
  return false;
1602
1709
  }
@@ -1616,20 +1723,20 @@ function isJson20(value) {
1616
1723
  const allPropertiesMatchFormat = true;
1617
1724
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
1618
1725
  }
1619
- function fromJson20($model) {
1726
+ function fromJson21($model) {
1620
1727
  const { valid, canonicalQuery, notifications } = $model;
1621
1728
  return {
1622
1729
  valid,
1623
1730
  canonicalQuery,
1624
- notifications: notifications !== void 0 && notifications !== null ? notifications?.map((innerValue) => fromJson19(innerValue)) : void 0
1731
+ notifications: notifications !== void 0 && notifications !== null ? notifications?.map((innerValue) => fromJson20(innerValue)) : void 0
1625
1732
  };
1626
1733
  }
1627
- function toJson20($model) {
1734
+ function toJson21($model) {
1628
1735
  const { valid, canonicalQuery, notifications } = $model;
1629
1736
  return {
1630
1737
  valid,
1631
1738
  canonicalQuery,
1632
- notifications: notifications !== void 0 && notifications !== null ? notifications?.map((innerValue) => toJson19(innerValue)) : void 0
1739
+ notifications: notifications !== void 0 && notifications !== null ? notifications?.map((innerValue) => toJson20(innerValue)) : void 0
1633
1740
  };
1634
1741
  }
1635
1742
 
@@ -1671,7 +1778,7 @@ var QueryAssistanceClient = class {
1671
1778
  if (!config) {
1672
1779
  throw new ApiClientError("API client error", "API client call is missing mandatory config parameter");
1673
1780
  }
1674
- const encodedBody = toJson18(config.body);
1781
+ const encodedBody = toJson19(config.body);
1675
1782
  try {
1676
1783
  const response = await this.httpClient.send({
1677
1784
  url: `/platform/storage/query/v1/query:verify`,
@@ -1689,7 +1796,7 @@ var QueryAssistanceClient = class {
1689
1796
  });
1690
1797
  const responseValue = await response.body("json");
1691
1798
  try {
1692
- return fromJson20(responseValue);
1799
+ return fromJson21(responseValue);
1693
1800
  } catch (err) {
1694
1801
  throw new InvalidResponseError(
1695
1802
  `QueryAssistanceClient.query:verify:200`,
@@ -1711,7 +1818,7 @@ var QueryAssistanceClient = class {
1711
1818
  case 400: {
1712
1819
  const responseValue = await response.body("json");
1713
1820
  try {
1714
- const errorBody = fromJson16(responseValue);
1821
+ const errorBody = fromJson17(responseValue);
1715
1822
  throw new ErrorEnvelopeError(
1716
1823
  `400`,
1717
1824
  response,
@@ -1735,7 +1842,7 @@ var QueryAssistanceClient = class {
1735
1842
  case 500: {
1736
1843
  const responseValue = await response.body("json");
1737
1844
  try {
1738
- const errorBody = fromJson16(responseValue);
1845
+ const errorBody = fromJson17(responseValue);
1739
1846
  throw new ErrorEnvelopeError(
1740
1847
  `500`,
1741
1848
  response,
@@ -1980,7 +2087,7 @@ var QueryAssistanceClient = class {
1980
2087
  if (!config) {
1981
2088
  throw new ApiClientError("API client error", "API client call is missing mandatory config parameter");
1982
2089
  }
1983
- const encodedBody = toJson17(config.body);
2090
+ const encodedBody = toJson18(config.body);
1984
2091
  try {
1985
2092
  const response = await this.httpClient.send({
1986
2093
  url: `/platform/storage/query/v1/query:parse`,
@@ -2020,7 +2127,7 @@ var QueryAssistanceClient = class {
2020
2127
  case 400: {
2021
2128
  const responseValue = await response.body("json");
2022
2129
  try {
2023
- const errorBody = fromJson16(responseValue);
2130
+ const errorBody = fromJson17(responseValue);
2024
2131
  throw new ErrorEnvelopeError(
2025
2132
  `400`,
2026
2133
  response,
@@ -2047,7 +2154,7 @@ var QueryAssistanceClient = class {
2047
2154
  case 500: {
2048
2155
  const responseValue = await response.body("json");
2049
2156
  try {
2050
- const errorBody = fromJson16(responseValue);
2157
+ const errorBody = fromJson17(responseValue);
2051
2158
  throw new ErrorEnvelopeError(
2052
2159
  `500`,
2053
2160
  response,
@@ -2176,7 +2283,7 @@ var QueryAssistanceClient = class {
2176
2283
  case 400: {
2177
2284
  const responseValue = await response.body("json");
2178
2285
  try {
2179
- const errorBody = fromJson16(responseValue);
2286
+ const errorBody = fromJson17(responseValue);
2180
2287
  throw new ErrorEnvelopeError(
2181
2288
  `400`,
2182
2289
  response,
@@ -2203,7 +2310,7 @@ var QueryAssistanceClient = class {
2203
2310
  case 500: {
2204
2311
  const responseValue = await response.body("json");
2205
2312
  try {
2206
- const errorBody = fromJson16(responseValue);
2313
+ const errorBody = fromJson17(responseValue);
2207
2314
  throw new ErrorEnvelopeError(
2208
2315
  `500`,
2209
2316
  response,
@@ -2246,11 +2353,156 @@ var import_http_client2 = require("@dynatrace-sdk/http-client");
2246
2353
  // packages/client/query/src/lib/models/execute-request.transformation.ts
2247
2354
  var execute_request_transformation_exports = {};
2248
2355
  __export(execute_request_transformation_exports, {
2249
- fromJson: () => fromJson21,
2356
+ fromJson: () => fromJson25,
2250
2357
  isExecuteRequest: () => isExecuteRequest,
2251
- isJson: () => isJson21,
2252
- toJson: () => toJson21
2358
+ isJson: () => isJson24,
2359
+ toJson: () => toJson25
2360
+ });
2361
+
2362
+ // packages/client/query/src/lib/models/filter-segments.transformation.ts
2363
+ var filter_segments_transformation_exports = {};
2364
+ __export(filter_segments_transformation_exports, {
2365
+ fromJson: () => fromJson24,
2366
+ toJson: () => toJson24
2367
+ });
2368
+
2369
+ // packages/client/query/src/lib/models/filter-segment.transformation.ts
2370
+ var filter_segment_transformation_exports = {};
2371
+ __export(filter_segment_transformation_exports, {
2372
+ fromJson: () => fromJson23,
2373
+ isFilterSegment: () => isFilterSegment,
2374
+ isJson: () => isJson23,
2375
+ toJson: () => toJson23
2376
+ });
2377
+
2378
+ // packages/client/query/src/lib/models/filter-segment-variable-definition.transformation.ts
2379
+ var filter_segment_variable_definition_transformation_exports = {};
2380
+ __export(filter_segment_variable_definition_transformation_exports, {
2381
+ fromJson: () => fromJson22,
2382
+ isFilterSegmentVariableDefinition: () => isFilterSegmentVariableDefinition,
2383
+ isJson: () => isJson22,
2384
+ toJson: () => toJson22
2253
2385
  });
2386
+ function isFilterSegmentVariableDefinition(value) {
2387
+ if (value === null) {
2388
+ return false;
2389
+ }
2390
+ if (value === void 0) {
2391
+ return false;
2392
+ }
2393
+ if (Array.isArray(value)) {
2394
+ return false;
2395
+ }
2396
+ const modelKeys = /* @__PURE__ */ new Set(["name", "values"]);
2397
+ const hasAdditionalProperties = false;
2398
+ const requiredKeys = ["name", "values"];
2399
+ const optionalKeys = [];
2400
+ const valKeys = new Set(Object.keys(value));
2401
+ const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
2402
+ const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
2403
+ const allPropertiesMatchFormat = true;
2404
+ return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
2405
+ }
2406
+ function isJson22(value) {
2407
+ if (value === null) {
2408
+ return false;
2409
+ }
2410
+ if (value === void 0) {
2411
+ return false;
2412
+ }
2413
+ if (Array.isArray(value)) {
2414
+ return false;
2415
+ }
2416
+ const modelKeys = /* @__PURE__ */ new Set(["name", "values"]);
2417
+ const hasAdditionalProperties = false;
2418
+ const requiredKeys = ["name", "values"];
2419
+ const optionalKeys = [];
2420
+ const valKeys = new Set(Object.keys(value));
2421
+ const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
2422
+ const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
2423
+ const allPropertiesMatchFormat = true;
2424
+ return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
2425
+ }
2426
+ function fromJson22($model) {
2427
+ const { name: _name, values } = $model;
2428
+ return {
2429
+ name: _name,
2430
+ values: values?.slice(0)
2431
+ };
2432
+ }
2433
+ function toJson22($model) {
2434
+ const { name: _name, values } = $model;
2435
+ return {
2436
+ name: _name,
2437
+ values: values?.slice(0)
2438
+ };
2439
+ }
2440
+
2441
+ // packages/client/query/src/lib/models/filter-segment.transformation.ts
2442
+ function isFilterSegment(value) {
2443
+ if (value === null) {
2444
+ return false;
2445
+ }
2446
+ if (value === void 0) {
2447
+ return false;
2448
+ }
2449
+ if (Array.isArray(value)) {
2450
+ return false;
2451
+ }
2452
+ const modelKeys = /* @__PURE__ */ new Set(["id", "variables"]);
2453
+ const hasAdditionalProperties = false;
2454
+ const requiredKeys = ["id"];
2455
+ const optionalKeys = ["variables"];
2456
+ const valKeys = new Set(Object.keys(value));
2457
+ const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
2458
+ const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
2459
+ const allPropertiesMatchFormat = true;
2460
+ return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
2461
+ }
2462
+ function isJson23(value) {
2463
+ if (value === null) {
2464
+ return false;
2465
+ }
2466
+ if (value === void 0) {
2467
+ return false;
2468
+ }
2469
+ if (Array.isArray(value)) {
2470
+ return false;
2471
+ }
2472
+ const modelKeys = /* @__PURE__ */ new Set(["id", "variables"]);
2473
+ const hasAdditionalProperties = false;
2474
+ const requiredKeys = ["id"];
2475
+ const optionalKeys = ["variables"];
2476
+ const valKeys = new Set(Object.keys(value));
2477
+ const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
2478
+ const doesNotContainExtraKeys = [...valKeys].every((key) => modelKeys.has(key)) || hasAdditionalProperties;
2479
+ const allPropertiesMatchFormat = true;
2480
+ return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
2481
+ }
2482
+ function fromJson23($model) {
2483
+ const { id, variables } = $model;
2484
+ return {
2485
+ id,
2486
+ variables: variables !== void 0 && variables !== null ? variables?.map((innerValue) => fromJson22(innerValue)) : void 0
2487
+ };
2488
+ }
2489
+ function toJson23($model) {
2490
+ const { id, variables } = $model;
2491
+ return {
2492
+ id,
2493
+ variables: variables !== void 0 && variables !== null ? variables?.map((innerValue) => toJson22(innerValue)) : void 0
2494
+ };
2495
+ }
2496
+
2497
+ // packages/client/query/src/lib/models/filter-segments.transformation.ts
2498
+ function fromJson24($model) {
2499
+ return [...$model.map((innerValue) => fromJson23(innerValue))];
2500
+ }
2501
+ function toJson24($model) {
2502
+ return [...$model.map((innerValue) => toJson23(innerValue))];
2503
+ }
2504
+
2505
+ // packages/client/query/src/lib/models/execute-request.transformation.ts
2254
2506
  function isExecuteRequest(value) {
2255
2507
  if (value === null) {
2256
2508
  return false;
@@ -2274,7 +2526,8 @@ function isExecuteRequest(value) {
2274
2526
  "enablePreview",
2275
2527
  "defaultSamplingRatio",
2276
2528
  "defaultScanLimitGbytes",
2277
- "queryOptions"
2529
+ "queryOptions",
2530
+ "filterSegments"
2278
2531
  ]);
2279
2532
  const hasAdditionalProperties = false;
2280
2533
  const requiredKeys = ["query"];
@@ -2290,7 +2543,8 @@ function isExecuteRequest(value) {
2290
2543
  "enablePreview",
2291
2544
  "defaultSamplingRatio",
2292
2545
  "defaultScanLimitGbytes",
2293
- "queryOptions"
2546
+ "queryOptions",
2547
+ "filterSegments"
2294
2548
  ];
2295
2549
  const valKeys = new Set(Object.keys(value));
2296
2550
  const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
@@ -2298,7 +2552,7 @@ function isExecuteRequest(value) {
2298
2552
  const allPropertiesMatchFormat = true;
2299
2553
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
2300
2554
  }
2301
- function isJson21(value) {
2555
+ function isJson24(value) {
2302
2556
  if (value === null) {
2303
2557
  return false;
2304
2558
  }
@@ -2321,7 +2575,8 @@ function isJson21(value) {
2321
2575
  "enablePreview",
2322
2576
  "defaultSamplingRatio",
2323
2577
  "defaultScanLimitGbytes",
2324
- "queryOptions"
2578
+ "queryOptions",
2579
+ "filterSegments"
2325
2580
  ]);
2326
2581
  const hasAdditionalProperties = false;
2327
2582
  const requiredKeys = ["query"];
@@ -2337,7 +2592,8 @@ function isJson21(value) {
2337
2592
  "enablePreview",
2338
2593
  "defaultSamplingRatio",
2339
2594
  "defaultScanLimitGbytes",
2340
- "queryOptions"
2595
+ "queryOptions",
2596
+ "filterSegments"
2341
2597
  ];
2342
2598
  const valKeys = new Set(Object.keys(value));
2343
2599
  const containsRequiredOrOptionalKeys = requiredKeys.length > 0 ? requiredKeys.every((reqKey) => valKeys.has(reqKey)) : optionalKeys.some((key) => valKeys.has(key)) || hasAdditionalProperties;
@@ -2345,7 +2601,7 @@ function isJson21(value) {
2345
2601
  const allPropertiesMatchFormat = true;
2346
2602
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
2347
2603
  }
2348
- function fromJson21($model) {
2604
+ function fromJson25($model) {
2349
2605
  const {
2350
2606
  query,
2351
2607
  defaultTimeframeStart,
@@ -2359,7 +2615,8 @@ function fromJson21($model) {
2359
2615
  enablePreview,
2360
2616
  defaultSamplingRatio,
2361
2617
  defaultScanLimitGbytes,
2362
- queryOptions
2618
+ queryOptions,
2619
+ filterSegments
2363
2620
  } = $model;
2364
2621
  return {
2365
2622
  query,
@@ -2374,10 +2631,11 @@ function fromJson21($model) {
2374
2631
  enablePreview,
2375
2632
  defaultSamplingRatio,
2376
2633
  defaultScanLimitGbytes,
2377
- queryOptions: queryOptions !== void 0 && queryOptions !== null ? fromJson(queryOptions) : void 0
2634
+ queryOptions: queryOptions !== void 0 && queryOptions !== null ? fromJson(queryOptions) : void 0,
2635
+ filterSegments: filterSegments !== void 0 && filterSegments !== null ? fromJson24(filterSegments) : void 0
2378
2636
  };
2379
2637
  }
2380
- function toJson21($model) {
2638
+ function toJson25($model) {
2381
2639
  const {
2382
2640
  query,
2383
2641
  defaultTimeframeStart,
@@ -2391,7 +2649,8 @@ function toJson21($model) {
2391
2649
  enablePreview,
2392
2650
  defaultSamplingRatio,
2393
2651
  defaultScanLimitGbytes,
2394
- queryOptions
2652
+ queryOptions,
2653
+ filterSegments
2395
2654
  } = $model;
2396
2655
  return {
2397
2656
  query,
@@ -2406,53 +2665,54 @@ function toJson21($model) {
2406
2665
  enablePreview,
2407
2666
  defaultSamplingRatio,
2408
2667
  defaultScanLimitGbytes,
2409
- queryOptions: queryOptions !== void 0 && queryOptions !== null ? toJson(queryOptions) : void 0
2668
+ queryOptions: queryOptions !== void 0 && queryOptions !== null ? toJson(queryOptions) : void 0,
2669
+ filterSegments: filterSegments !== void 0 && filterSegments !== null ? toJson24(filterSegments) : void 0
2410
2670
  };
2411
2671
  }
2412
2672
 
2413
2673
  // packages/client/query/src/lib/models/query-poll-response.transformation.ts
2414
2674
  var query_poll_response_transformation_exports = {};
2415
2675
  __export(query_poll_response_transformation_exports, {
2416
- fromJson: () => fromJson35,
2417
- isJson: () => isJson35,
2676
+ fromJson: () => fromJson39,
2677
+ isJson: () => isJson38,
2418
2678
  isQueryPollResponse: () => isQueryPollResponse,
2419
- toJson: () => toJson35
2679
+ toJson: () => toJson39
2420
2680
  });
2421
2681
 
2422
2682
  // packages/client/query/src/lib/models/query-result.transformation.ts
2423
2683
  var query_result_transformation_exports = {};
2424
2684
  __export(query_result_transformation_exports, {
2425
- fromJson: () => fromJson33,
2426
- isJson: () => isJson33,
2685
+ fromJson: () => fromJson37,
2686
+ isJson: () => isJson36,
2427
2687
  isQueryResult: () => isQueryResult,
2428
- toJson: () => toJson33
2688
+ toJson: () => toJson37
2429
2689
  });
2430
2690
 
2431
2691
  // packages/client/query/src/lib/models/metadata.transformation.ts
2432
2692
  var metadata_transformation_exports = {};
2433
2693
  __export(metadata_transformation_exports, {
2434
- fromJson: () => fromJson25,
2435
- isJson: () => isJson25,
2694
+ fromJson: () => fromJson29,
2695
+ isJson: () => isJson28,
2436
2696
  isMetadata: () => isMetadata,
2437
- toJson: () => toJson25
2697
+ toJson: () => toJson29
2438
2698
  });
2439
2699
 
2440
2700
  // packages/client/query/src/lib/models/grail-metadata.transformation.ts
2441
2701
  var grail_metadata_transformation_exports = {};
2442
2702
  __export(grail_metadata_transformation_exports, {
2443
- fromJson: () => fromJson23,
2703
+ fromJson: () => fromJson27,
2444
2704
  isGrailMetadata: () => isGrailMetadata,
2445
- isJson: () => isJson23,
2446
- toJson: () => toJson23
2705
+ isJson: () => isJson26,
2706
+ toJson: () => toJson27
2447
2707
  });
2448
2708
 
2449
2709
  // packages/client/query/src/lib/models/timeframe.transformation.ts
2450
2710
  var timeframe_transformation_exports = {};
2451
2711
  __export(timeframe_transformation_exports, {
2452
- fromJson: () => fromJson22,
2453
- isJson: () => isJson22,
2712
+ fromJson: () => fromJson26,
2713
+ isJson: () => isJson25,
2454
2714
  isTimeframe: () => isTimeframe,
2455
- toJson: () => toJson22
2715
+ toJson: () => toJson26
2456
2716
  });
2457
2717
  function isTimeframe(value) {
2458
2718
  if (value === null) {
@@ -2474,7 +2734,7 @@ function isTimeframe(value) {
2474
2734
  const allPropertiesMatchFormat = value.start instanceof Date && value.end instanceof Date;
2475
2735
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
2476
2736
  }
2477
- function isJson22(value) {
2737
+ function isJson25(value) {
2478
2738
  if (value === null) {
2479
2739
  return false;
2480
2740
  }
@@ -2494,14 +2754,14 @@ function isJson22(value) {
2494
2754
  const allPropertiesMatchFormat = /^((?:(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}:\d{2}(?:\.\d+)?))(Z|[+-]\d{2}:\d{2})?)$/i.test(value.start) && /^((?:(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}:\d{2}(?:\.\d+)?))(Z|[+-]\d{2}:\d{2})?)$/i.test(value.end);
2495
2755
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
2496
2756
  }
2497
- function fromJson22($model) {
2757
+ function fromJson26($model) {
2498
2758
  const { start, end } = $model;
2499
2759
  return {
2500
2760
  start: start !== void 0 && start !== null ? new Date(start) : void 0,
2501
2761
  end: end !== void 0 && end !== null ? new Date(end) : void 0
2502
2762
  };
2503
2763
  }
2504
- function toJson22($model) {
2764
+ function toJson26($model) {
2505
2765
  const { start, end } = $model;
2506
2766
  return {
2507
2767
  start: start !== void 0 && start !== null ? start.toISOString() : void 0,
@@ -2558,7 +2818,7 @@ function isGrailMetadata(value) {
2558
2818
  const allPropertiesMatchFormat = true;
2559
2819
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
2560
2820
  }
2561
- function isJson23(value) {
2821
+ function isJson26(value) {
2562
2822
  if (value === null) {
2563
2823
  return false;
2564
2824
  }
@@ -2606,7 +2866,7 @@ function isJson23(value) {
2606
2866
  const allPropertiesMatchFormat = true;
2607
2867
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
2608
2868
  }
2609
- function fromJson23($model) {
2869
+ function fromJson27($model) {
2610
2870
  const {
2611
2871
  canonicalQuery,
2612
2872
  timezone,
@@ -2630,15 +2890,15 @@ function fromJson23($model) {
2630
2890
  dqlVersion,
2631
2891
  scannedBytes,
2632
2892
  scannedDataPoints,
2633
- analysisTimeframe: analysisTimeframe !== void 0 && analysisTimeframe !== null ? fromJson22(analysisTimeframe) : void 0,
2893
+ analysisTimeframe: analysisTimeframe !== void 0 && analysisTimeframe !== null ? fromJson26(analysisTimeframe) : void 0,
2634
2894
  locale,
2635
2895
  executionTimeMilliseconds,
2636
- notifications: notifications !== void 0 && notifications !== null ? notifications?.map((innerValue) => fromJson19(innerValue)) : void 0,
2896
+ notifications: notifications !== void 0 && notifications !== null ? notifications?.map((innerValue) => fromJson20(innerValue)) : void 0,
2637
2897
  queryId,
2638
2898
  sampled
2639
2899
  };
2640
2900
  }
2641
- function toJson23($model) {
2901
+ function toJson27($model) {
2642
2902
  const {
2643
2903
  canonicalQuery,
2644
2904
  timezone,
@@ -2662,10 +2922,10 @@ function toJson23($model) {
2662
2922
  dqlVersion,
2663
2923
  scannedBytes,
2664
2924
  scannedDataPoints,
2665
- analysisTimeframe: analysisTimeframe !== void 0 && analysisTimeframe !== null ? toJson22(analysisTimeframe) : void 0,
2925
+ analysisTimeframe: analysisTimeframe !== void 0 && analysisTimeframe !== null ? toJson26(analysisTimeframe) : void 0,
2666
2926
  locale,
2667
2927
  executionTimeMilliseconds,
2668
- notifications: notifications !== void 0 && notifications !== null ? notifications?.map((innerValue) => toJson19(innerValue)) : void 0,
2928
+ notifications: notifications !== void 0 && notifications !== null ? notifications?.map((innerValue) => toJson20(innerValue)) : void 0,
2669
2929
  queryId,
2670
2930
  sampled
2671
2931
  };
@@ -2674,10 +2934,10 @@ function toJson23($model) {
2674
2934
  // packages/client/query/src/lib/models/metric-metadata.transformation.ts
2675
2935
  var metric_metadata_transformation_exports = {};
2676
2936
  __export(metric_metadata_transformation_exports, {
2677
- fromJson: () => fromJson24,
2678
- isJson: () => isJson24,
2937
+ fromJson: () => fromJson28,
2938
+ isJson: () => isJson27,
2679
2939
  isMetricMetadata: () => isMetricMetadata,
2680
- toJson: () => toJson24
2940
+ toJson: () => toJson28
2681
2941
  });
2682
2942
  function isMetricMetadata(value) {
2683
2943
  if (value === null) {
@@ -2717,7 +2977,7 @@ function isMetricMetadata(value) {
2717
2977
  const allPropertiesMatchFormat = true;
2718
2978
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
2719
2979
  }
2720
- function isJson24(value) {
2980
+ function isJson27(value) {
2721
2981
  if (value === null) {
2722
2982
  return false;
2723
2983
  }
@@ -2755,7 +3015,7 @@ function isJson24(value) {
2755
3015
  const allPropertiesMatchFormat = true;
2756
3016
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
2757
3017
  }
2758
- function fromJson24($model) {
3018
+ function fromJson28($model) {
2759
3019
  const { "metric.key": metricKey, displayName, description, unit, fieldName, rollup, rate, shifted } = $model;
2760
3020
  return {
2761
3021
  "metric.key": metricKey,
@@ -2768,7 +3028,7 @@ function fromJson24($model) {
2768
3028
  shifted
2769
3029
  };
2770
3030
  }
2771
- function toJson24($model) {
3031
+ function toJson28($model) {
2772
3032
  const { "metric.key": metricKey, displayName, description, unit, fieldName, rollup, rate, shifted } = $model;
2773
3033
  return {
2774
3034
  "metric.key": metricKey,
@@ -2803,7 +3063,7 @@ function isMetadata(value) {
2803
3063
  const allPropertiesMatchFormat = true;
2804
3064
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
2805
3065
  }
2806
- function isJson25(value) {
3066
+ function isJson28(value) {
2807
3067
  if (value === null) {
2808
3068
  return false;
2809
3069
  }
@@ -2823,66 +3083,66 @@ function isJson25(value) {
2823
3083
  const allPropertiesMatchFormat = true;
2824
3084
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
2825
3085
  }
2826
- function fromJson25($model) {
3086
+ function fromJson29($model) {
2827
3087
  const { grail, metrics } = $model;
2828
3088
  return {
2829
- grail: grail !== void 0 && grail !== null ? fromJson23(grail) : void 0,
2830
- metrics: metrics !== void 0 && metrics !== null ? metrics?.map((innerValue) => fromJson24(innerValue)) : void 0
3089
+ grail: grail !== void 0 && grail !== null ? fromJson27(grail) : void 0,
3090
+ metrics: metrics !== void 0 && metrics !== null ? metrics?.map((innerValue) => fromJson28(innerValue)) : void 0
2831
3091
  };
2832
3092
  }
2833
- function toJson25($model) {
3093
+ function toJson29($model) {
2834
3094
  const { grail, metrics } = $model;
2835
3095
  return {
2836
- grail: grail !== void 0 && grail !== null ? toJson23(grail) : void 0,
2837
- metrics: metrics !== void 0 && metrics !== null ? metrics?.map((innerValue) => toJson24(innerValue)) : void 0
3096
+ grail: grail !== void 0 && grail !== null ? toJson27(grail) : void 0,
3097
+ metrics: metrics !== void 0 && metrics !== null ? metrics?.map((innerValue) => toJson28(innerValue)) : void 0
2838
3098
  };
2839
3099
  }
2840
3100
 
2841
3101
  // packages/client/query/src/lib/models/ranged-field-types.transformation.ts
2842
3102
  var ranged_field_types_transformation_exports = {};
2843
3103
  __export(ranged_field_types_transformation_exports, {
2844
- fromJson: () => fromJson27,
2845
- isJson: () => isJson29,
3104
+ fromJson: () => fromJson31,
3105
+ isJson: () => isJson32,
2846
3106
  isRangedFieldTypes: () => isRangedFieldTypes,
2847
- toJson: () => toJson27
3107
+ toJson: () => toJson31
2848
3108
  });
2849
3109
 
2850
3110
  // packages/client/query/src/lib/models/ranged-field-types-mappings.transformation.ts
2851
3111
  var ranged_field_types_mappings_transformation_exports = {};
2852
3112
  __export(ranged_field_types_mappings_transformation_exports, {
2853
- fromJson: () => fromJson29,
2854
- isJson: () => isJson28,
3113
+ fromJson: () => fromJson33,
3114
+ isJson: () => isJson31,
2855
3115
  isRangedFieldTypesMappings: () => isRangedFieldTypesMappings,
2856
- toJson: () => toJson29
3116
+ toJson: () => toJson33
2857
3117
  });
2858
3118
 
2859
3119
  // packages/client/query/src/lib/models/field-type.transformation.ts
2860
3120
  var field_type_transformation_exports = {};
2861
3121
  __export(field_type_transformation_exports, {
2862
- fromJson: () => fromJson28,
3122
+ fromJson: () => fromJson32,
2863
3123
  isFieldType: () => isFieldType,
2864
- isJson: () => isJson27,
2865
- toJson: () => toJson28
3124
+ isJson: () => isJson30,
3125
+ toJson: () => toJson32
2866
3126
  });
2867
3127
 
2868
3128
  // packages/client/query/src/lib/models/field-type-type.transformation.ts
2869
3129
  var field_type_type_transformation_exports = {};
2870
3130
  __export(field_type_type_transformation_exports, {
2871
- fromJson: () => fromJson26,
3131
+ fromJson: () => fromJson30,
2872
3132
  isFieldTypeType: () => isFieldTypeType,
2873
- isJson: () => isJson26,
2874
- toJson: () => toJson26
3133
+ isJson: () => isJson29,
3134
+ toJson: () => toJson30
2875
3135
  });
2876
3136
  function isFieldTypeType(value) {
2877
3137
  return typeof value === "string";
2878
3138
  }
2879
- function isJson26(value) {
3139
+ function isJson29(value) {
2880
3140
  return typeof value === "string";
2881
3141
  }
2882
- function fromJson26($model) {
3142
+ function fromJson30($model) {
2883
3143
  return String($model);
2884
3144
  }
2885
- function toJson26($model) {
3145
+ function toJson30($model) {
2886
3146
  return String($model);
2887
3147
  }
2888
3148
 
@@ -2907,7 +3167,7 @@ function isFieldType(value) {
2907
3167
  const allPropertiesMatchFormat = true;
2908
3168
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
2909
3169
  }
2910
- function isJson27(value) {
3170
+ function isJson30(value) {
2911
3171
  if (value === null) {
2912
3172
  return false;
2913
3173
  }
@@ -2927,18 +3187,18 @@ function isJson27(value) {
2927
3187
  const allPropertiesMatchFormat = true;
2928
3188
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
2929
3189
  }
2930
- function fromJson28($model) {
3190
+ function fromJson32($model) {
2931
3191
  const { type, types } = $model;
2932
3192
  return {
2933
- type: fromJson26(type),
2934
- types: types !== void 0 && types !== null ? types?.map((innerValue) => fromJson27(innerValue)) : void 0
3193
+ type: fromJson30(type),
3194
+ types: types !== void 0 && types !== null ? types?.map((innerValue) => fromJson31(innerValue)) : void 0
2935
3195
  };
2936
3196
  }
2937
- function toJson28($model) {
3197
+ function toJson32($model) {
2938
3198
  const { type, types } = $model;
2939
3199
  return {
2940
- type: toJson26(type),
2941
- types: types !== void 0 && types !== null ? types?.map((innerValue) => toJson27(innerValue)) : void 0
3200
+ type: toJson30(type),
3201
+ types: types !== void 0 && types !== null ? types?.map((innerValue) => toJson31(innerValue)) : void 0
2942
3202
  };
2943
3203
  }
2944
3204
 
@@ -2963,7 +3223,7 @@ function isRangedFieldTypesMappings(value) {
2963
3223
  const allPropertiesMatchFormat = true;
2964
3224
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
2965
3225
  }
2966
- function isJson28(value) {
3226
+ function isJson31(value) {
2967
3227
  if (value === null) {
2968
3228
  return false;
2969
3229
  }
@@ -2983,24 +3243,24 @@ function isJson28(value) {
2983
3243
  const allPropertiesMatchFormat = true;
2984
3244
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
2985
3245
  }
2986
- function fromJson29($model) {
3246
+ function fromJson33($model) {
2987
3247
  const additionalProps = $model;
2988
3248
  return {
2989
3249
  ...Object.fromEntries(
2990
3250
  Object.entries(additionalProps).map(([propName, value]) => [
2991
3251
  propName,
2992
- value !== void 0 && value !== null ? fromJson28(value) : void 0
3252
+ value !== void 0 && value !== null ? fromJson32(value) : void 0
2993
3253
  ])
2994
3254
  )
2995
3255
  };
2996
3256
  }
2997
- function toJson29($model) {
3257
+ function toJson33($model) {
2998
3258
  const additionalProps = $model;
2999
3259
  return {
3000
3260
  ...Object.fromEntries(
3001
3261
  Object.entries(additionalProps).map(([propName, value]) => [
3002
3262
  propName,
3003
- value !== void 0 && value !== null ? toJson28(value) : void 0
3263
+ value !== void 0 && value !== null ? toJson32(value) : void 0
3004
3264
  ])
3005
3265
  )
3006
3266
  };
@@ -3027,7 +3287,7 @@ function isRangedFieldTypes(value) {
3027
3287
  const allPropertiesMatchFormat = true;
3028
3288
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
3029
3289
  }
3030
- function isJson29(value) {
3290
+ function isJson32(value) {
3031
3291
  if (value === null) {
3032
3292
  return false;
3033
3293
  }
@@ -3047,17 +3307,17 @@ function isJson29(value) {
3047
3307
  const allPropertiesMatchFormat = true;
3048
3308
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
3049
3309
  }
3050
- function fromJson27($model) {
3310
+ function fromJson31($model) {
3051
3311
  const { mappings, indexRange } = $model;
3052
3312
  return {
3053
- mappings: fromJson29(mappings),
3313
+ mappings: fromJson33(mappings),
3054
3314
  indexRange: indexRange !== void 0 && indexRange !== null ? indexRange?.slice(0) : void 0
3055
3315
  };
3056
3316
  }
3057
- function toJson27($model) {
3317
+ function toJson31($model) {
3058
3318
  const { mappings, indexRange } = $model;
3059
3319
  return {
3060
- mappings: toJson29(mappings),
3320
+ mappings: toJson33(mappings),
3061
3321
  indexRange: indexRange !== void 0 && indexRange !== null ? indexRange?.slice(0) : void 0
3062
3322
  };
3063
3323
  }
@@ -3065,10 +3325,10 @@ function toJson27($model) {
3065
3325
  // packages/client/query/src/lib/models/result-record.transformation.ts
3066
3326
  var result_record_transformation_exports = {};
3067
3327
  __export(result_record_transformation_exports, {
3068
- fromJson: () => fromJson31,
3069
- isJson: () => isJson31,
3328
+ fromJson: () => fromJson35,
3329
+ isJson: () => isJson34,
3070
3330
  isResultRecord: () => isResultRecord,
3071
- toJson: () => toJson31
3331
+ toJson: () => toJson35
3072
3332
  });
3073
3333
 
3074
3334
  // packages/client/query/src/lib/models/result-record-value.transformation.ts
@@ -3087,19 +3347,19 @@ __export(result_record_value_transformation_exports, {
3087
3347
  checkString: () => checkString,
3088
3348
  checkTimeframe: () => checkTimeframe,
3089
3349
  checkTimeframeAsJson: () => checkTimeframeAsJson,
3090
- fromJson: () => fromJson32,
3091
- isJson: () => isJson32,
3350
+ fromJson: () => fromJson36,
3351
+ isJson: () => isJson35,
3092
3352
  isResultRecordValue: () => isResultRecordValue,
3093
- toJson: () => toJson32
3353
+ toJson: () => toJson36
3094
3354
  });
3095
3355
 
3096
3356
  // packages/client/query/src/lib/models/geo-point.transformation.ts
3097
3357
  var geo_point_transformation_exports = {};
3098
3358
  __export(geo_point_transformation_exports, {
3099
- fromJson: () => fromJson30,
3359
+ fromJson: () => fromJson34,
3100
3360
  isGeoPoint: () => isGeoPoint,
3101
- isJson: () => isJson30,
3102
- toJson: () => toJson30
3361
+ isJson: () => isJson33,
3362
+ toJson: () => toJson34
3103
3363
  });
3104
3364
  function isGeoPoint(value) {
3105
3365
  if (value === null) {
@@ -3121,7 +3381,7 @@ function isGeoPoint(value) {
3121
3381
  const allPropertiesMatchFormat = true;
3122
3382
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
3123
3383
  }
3124
- function isJson30(value) {
3384
+ function isJson33(value) {
3125
3385
  if (value === null) {
3126
3386
  return false;
3127
3387
  }
@@ -3141,14 +3401,14 @@ function isJson30(value) {
3141
3401
  const allPropertiesMatchFormat = true;
3142
3402
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
3143
3403
  }
3144
- function fromJson30($model) {
3404
+ function fromJson34($model) {
3145
3405
  const { latitude, longitude } = $model;
3146
3406
  return {
3147
3407
  latitude,
3148
3408
  longitude
3149
3409
  };
3150
3410
  }
3151
- function toJson30($model) {
3411
+ function toJson34($model) {
3152
3412
  const { latitude, longitude } = $model;
3153
3413
  return {
3154
3414
  latitude,
@@ -3186,13 +3446,13 @@ function isResultRecordValue(value) {
3186
3446
  return checkBoolean(value) || checkNumber(value) || checkString(value) || checkTimeframe(value) || checkGeoPoint(value) || checkResultRecord(value) || checkArrayResultRecordValue(value) || value === null;
3187
3447
  }
3188
3448
  function checkTimeframeAsJson(value) {
3189
- return isJson22(value);
3449
+ return isJson25(value);
3190
3450
  }
3191
3451
  function checkGeoPointAsJson(value) {
3192
- return isJson30(value);
3452
+ return isJson33(value);
3193
3453
  }
3194
3454
  function checkResultRecordAsJson(value) {
3195
- return isJson31(value);
3455
+ return isJson34(value);
3196
3456
  }
3197
3457
  function checkArrayResultRecordValueTransformationAsJsonNullItemDatatype(value) {
3198
3458
  return isResultRecordValue(value);
@@ -3201,11 +3461,11 @@ function checkArrayResultRecordValueAsJson(value) {
3201
3461
  const datatypeMatch = (val) => checkArrayResultRecordValueTransformationAsJsonNullItemDatatype(val);
3202
3462
  return Array.isArray(value) && value.every(datatypeMatch);
3203
3463
  }
3204
- function isJson32(value) {
3464
+ function isJson35(value) {
3205
3465
  return checkBoolean(value) || checkNumber(value) || checkString(value) || checkTimeframeAsJson(value) || checkGeoPointAsJson(value) || checkResultRecordAsJson(value) || checkArrayResultRecordValueAsJson(value) || value === null;
3206
3466
  }
3207
- function fromJson32($model) {
3208
- if (!isJson32($model)) {
3467
+ function fromJson36($model) {
3468
+ if (!isJson35($model)) {
3209
3469
  throw new TypeError("_ResultRecordValueTransformation.fromJson: value's datatype does not match");
3210
3470
  }
3211
3471
  if ($model === null) {
@@ -3221,20 +3481,20 @@ function fromJson32($model) {
3221
3481
  return String($model);
3222
3482
  }
3223
3483
  if (checkTimeframeAsJson($model)) {
3224
- return fromJson22($model);
3484
+ return fromJson26($model);
3225
3485
  }
3226
3486
  if (checkGeoPointAsJson($model)) {
3227
- return fromJson30($model);
3487
+ return fromJson34($model);
3228
3488
  }
3229
3489
  if (checkResultRecordAsJson($model)) {
3230
- return fromJson31($model);
3490
+ return fromJson35($model);
3231
3491
  }
3232
3492
  if (checkArrayResultRecordValue($model)) {
3233
- return $model.map((el) => fromJson32(el));
3493
+ return $model.map((el) => fromJson36(el));
3234
3494
  }
3235
3495
  throw new TypeError("Unable to deserialize value");
3236
3496
  }
3237
- function toJson32($model) {
3497
+ function toJson36($model) {
3238
3498
  if (!isResultRecordValue($model)) {
3239
3499
  throw new TypeError("_ResultRecordValueTransformation.toJson: value's datatype does not match");
3240
3500
  }
@@ -3251,16 +3511,16 @@ function toJson32($model) {
3251
3511
  return String($model);
3252
3512
  }
3253
3513
  if (checkTimeframe($model)) {
3254
- return toJson22($model);
3514
+ return toJson26($model);
3255
3515
  }
3256
3516
  if (checkGeoPoint($model)) {
3257
- return toJson30($model);
3517
+ return toJson34($model);
3258
3518
  }
3259
3519
  if (checkResultRecord($model)) {
3260
- return toJson31($model);
3520
+ return toJson35($model);
3261
3521
  }
3262
3522
  if (checkArrayResultRecordValue($model)) {
3263
- return $model.map((el) => toJson32(el));
3523
+ return $model.map((el) => toJson36(el));
3264
3524
  }
3265
3525
  throw new TypeError("Unable to serialize value");
3266
3526
  }
@@ -3286,7 +3546,7 @@ function isResultRecord(value) {
3286
3546
  const allPropertiesMatchFormat = true;
3287
3547
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
3288
3548
  }
3289
- function isJson31(value) {
3549
+ function isJson34(value) {
3290
3550
  if (value === null) {
3291
3551
  return true;
3292
3552
  }
@@ -3306,7 +3566,7 @@ function isJson31(value) {
3306
3566
  const allPropertiesMatchFormat = true;
3307
3567
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
3308
3568
  }
3309
- function fromJson31($model) {
3569
+ function fromJson35($model) {
3310
3570
  if ($model === null) {
3311
3571
  return null;
3312
3572
  }
@@ -3315,12 +3575,12 @@ function fromJson31($model) {
3315
3575
  ...Object.fromEntries(
3316
3576
  Object.entries(additionalProps).map(([propName, value]) => [
3317
3577
  propName,
3318
- value !== void 0 ? fromJson32(value) : void 0
3578
+ value !== void 0 ? fromJson36(value) : void 0
3319
3579
  ])
3320
3580
  )
3321
3581
  };
3322
3582
  }
3323
- function toJson31($model) {
3583
+ function toJson35($model) {
3324
3584
  if ($model === null) {
3325
3585
  return null;
3326
3586
  }
@@ -3329,7 +3589,7 @@ function toJson31($model) {
3329
3589
  ...Object.fromEntries(
3330
3590
  Object.entries(additionalProps).map(([propName, value]) => [
3331
3591
  propName,
3332
- value !== void 0 && value !== null ? toJson32(value) : void 0
3592
+ value !== void 0 && value !== null ? toJson36(value) : void 0
3333
3593
  ])
3334
3594
  )
3335
3595
  };
@@ -3356,7 +3616,7 @@ function isQueryResult(value) {
3356
3616
  const allPropertiesMatchFormat = true;
3357
3617
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
3358
3618
  }
3359
- function isJson33(value) {
3619
+ function isJson36(value) {
3360
3620
  if (value === null) {
3361
3621
  return false;
3362
3622
  }
@@ -3376,41 +3636,41 @@ function isJson33(value) {
3376
3636
  const allPropertiesMatchFormat = true;
3377
3637
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
3378
3638
  }
3379
- function fromJson33($model) {
3639
+ function fromJson37($model) {
3380
3640
  const { records, metadata, types } = $model;
3381
3641
  return {
3382
- records: records?.map((innerValue) => fromJson31(innerValue)),
3383
- metadata: fromJson25(metadata),
3384
- types: types?.map((innerValue) => fromJson27(innerValue))
3642
+ records: records?.map((innerValue) => fromJson35(innerValue)),
3643
+ metadata: fromJson29(metadata),
3644
+ types: types?.map((innerValue) => fromJson31(innerValue))
3385
3645
  };
3386
3646
  }
3387
- function toJson33($model) {
3647
+ function toJson37($model) {
3388
3648
  const { records, metadata, types } = $model;
3389
3649
  return {
3390
- records: records?.map((innerValue) => toJson31(innerValue)),
3391
- metadata: toJson25(metadata),
3392
- types: types?.map((innerValue) => toJson27(innerValue))
3650
+ records: records?.map((innerValue) => toJson35(innerValue)),
3651
+ metadata: toJson29(metadata),
3652
+ types: types?.map((innerValue) => toJson31(innerValue))
3393
3653
  };
3394
3654
  }
3395
3655
 
3396
3656
  // packages/client/query/src/lib/models/query-state.transformation.ts
3397
3657
  var query_state_transformation_exports = {};
3398
3658
  __export(query_state_transformation_exports, {
3399
- fromJson: () => fromJson34,
3400
- isJson: () => isJson34,
3659
+ fromJson: () => fromJson38,
3660
+ isJson: () => isJson37,
3401
3661
  isQueryState: () => isQueryState,
3402
- toJson: () => toJson34
3662
+ toJson: () => toJson38
3403
3663
  });
3404
3664
  function isQueryState(value) {
3405
3665
  return typeof value === "string";
3406
3666
  }
3407
- function isJson34(value) {
3667
+ function isJson37(value) {
3408
3668
  return typeof value === "string";
3409
3669
  }
3410
- function fromJson34($model) {
3670
+ function fromJson38($model) {
3411
3671
  return String($model);
3412
3672
  }
3413
- function toJson34($model) {
3673
+ function toJson38($model) {
3414
3674
  return String($model);
3415
3675
  }
3416
3676
 
@@ -3435,7 +3695,7 @@ function isQueryPollResponse(value) {
3435
3695
  const allPropertiesMatchFormat = true;
3436
3696
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
3437
3697
  }
3438
- function isJson35(value) {
3698
+ function isJson38(value) {
3439
3699
  if (value === null) {
3440
3700
  return false;
3441
3701
  }
@@ -3455,32 +3715,32 @@ function isJson35(value) {
3455
3715
  const allPropertiesMatchFormat = true;
3456
3716
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
3457
3717
  }
3458
- function fromJson35($model) {
3718
+ function fromJson39($model) {
3459
3719
  const { result, ttlSeconds, progress, state } = $model;
3460
3720
  return {
3461
- result: result !== void 0 && result !== null ? fromJson33(result) : void 0,
3721
+ result: result !== void 0 && result !== null ? fromJson37(result) : void 0,
3462
3722
  ttlSeconds,
3463
3723
  progress,
3464
- state: fromJson34(state)
3724
+ state: fromJson38(state)
3465
3725
  };
3466
3726
  }
3467
- function toJson35($model) {
3727
+ function toJson39($model) {
3468
3728
  const { result, ttlSeconds, progress, state } = $model;
3469
3729
  return {
3470
- result: result !== void 0 && result !== null ? toJson33(result) : void 0,
3730
+ result: result !== void 0 && result !== null ? toJson37(result) : void 0,
3471
3731
  ttlSeconds,
3472
3732
  progress,
3473
- state: toJson34(state)
3733
+ state: toJson38(state)
3474
3734
  };
3475
3735
  }
3476
3736
 
3477
3737
  // packages/client/query/src/lib/models/query-start-response.transformation.ts
3478
3738
  var query_start_response_transformation_exports = {};
3479
3739
  __export(query_start_response_transformation_exports, {
3480
- fromJson: () => fromJson36,
3481
- isJson: () => isJson36,
3740
+ fromJson: () => fromJson40,
3741
+ isJson: () => isJson39,
3482
3742
  isQueryStartResponse: () => isQueryStartResponse,
3483
- toJson: () => toJson36
3743
+ toJson: () => toJson40
3484
3744
  });
3485
3745
  function isQueryStartResponse(value) {
3486
3746
  if (value === null) {
@@ -3502,7 +3762,7 @@ function isQueryStartResponse(value) {
3502
3762
  const allPropertiesMatchFormat = true;
3503
3763
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
3504
3764
  }
3505
- function isJson36(value) {
3765
+ function isJson39(value) {
3506
3766
  if (value === null) {
3507
3767
  return false;
3508
3768
  }
@@ -3522,24 +3782,24 @@ function isJson36(value) {
3522
3782
  const allPropertiesMatchFormat = true;
3523
3783
  return containsRequiredOrOptionalKeys && doesNotContainExtraKeys && allPropertiesMatchFormat;
3524
3784
  }
3525
- function fromJson36($model) {
3785
+ function fromJson40($model) {
3526
3786
  const { result, ttlSeconds, progress, requestToken, state } = $model;
3527
3787
  return {
3528
- result: result !== void 0 && result !== null ? fromJson33(result) : void 0,
3788
+ result: result !== void 0 && result !== null ? fromJson37(result) : void 0,
3529
3789
  ttlSeconds,
3530
3790
  progress,
3531
3791
  requestToken,
3532
- state: fromJson34(state)
3792
+ state: fromJson38(state)
3533
3793
  };
3534
3794
  }
3535
- function toJson36($model) {
3795
+ function toJson40($model) {
3536
3796
  const { result, ttlSeconds, progress, requestToken, state } = $model;
3537
3797
  return {
3538
- result: result !== void 0 && result !== null ? toJson33(result) : void 0,
3798
+ result: result !== void 0 && result !== null ? toJson37(result) : void 0,
3539
3799
  ttlSeconds,
3540
3800
  progress,
3541
3801
  requestToken,
3542
- state: toJson34(state)
3802
+ state: toJson38(state)
3543
3803
  };
3544
3804
  }
3545
3805
 
@@ -3653,7 +3913,7 @@ var QueryExecutionClient = class {
3653
3913
  });
3654
3914
  const responseValue = await response.body("json");
3655
3915
  try {
3656
- return fromJson35(responseValue);
3916
+ return fromJson39(responseValue);
3657
3917
  } catch (err) {
3658
3918
  throw new InvalidResponseError(`QueryExecutionClient.query:poll:200`, err, responseValue, void 0, void 0);
3659
3919
  }
@@ -3669,7 +3929,7 @@ var QueryExecutionClient = class {
3669
3929
  case 400: {
3670
3930
  const responseValue = await response.body("json");
3671
3931
  try {
3672
- const errorBody = fromJson16(responseValue);
3932
+ const errorBody = fromJson17(responseValue);
3673
3933
  throw new ErrorEnvelopeError(
3674
3934
  `400`,
3675
3935
  response,
@@ -3708,7 +3968,7 @@ var QueryExecutionClient = class {
3708
3968
  case 500: {
3709
3969
  const responseValue = await response.body("json");
3710
3970
  try {
3711
- const errorBody = fromJson16(responseValue);
3971
+ const errorBody = fromJson17(responseValue);
3712
3972
  throw new ErrorEnvelopeError(
3713
3973
  `500`,
3714
3974
  response,
@@ -3797,7 +4057,7 @@ var QueryExecutionClient = class {
3797
4057
  if (!config) {
3798
4058
  throw new ApiClientError("API client error", "API client call is missing mandatory config parameter");
3799
4059
  }
3800
- const encodedBody = toJson21(config.body);
4060
+ const encodedBody = toJson25(config.body);
3801
4061
  const query = toQueryString({ enrich: config.enrich });
3802
4062
  try {
3803
4063
  const response = await this.httpClient.send({
@@ -3818,7 +4078,7 @@ var QueryExecutionClient = class {
3818
4078
  case 200: {
3819
4079
  const responseValue = await response.body("json");
3820
4080
  try {
3821
- return fromJson36(responseValue);
4081
+ return fromJson40(responseValue);
3822
4082
  } catch (err) {
3823
4083
  throw new InvalidResponseError(
3824
4084
  `QueryExecutionClient.query:execute:${response.status}`,
@@ -3832,7 +4092,7 @@ var QueryExecutionClient = class {
3832
4092
  case 202: {
3833
4093
  const responseValue = await response.body("json");
3834
4094
  try {
3835
- return fromJson36(responseValue);
4095
+ return fromJson40(responseValue);
3836
4096
  } catch (err) {
3837
4097
  throw new InvalidResponseError(
3838
4098
  `QueryExecutionClient.query:execute:${response.status}`,
@@ -3865,7 +4125,7 @@ var QueryExecutionClient = class {
3865
4125
  case 400: {
3866
4126
  const responseValue = await response.body("json");
3867
4127
  try {
3868
- const errorBody = fromJson16(responseValue);
4128
+ const errorBody = fromJson17(responseValue);
3869
4129
  throw new ErrorEnvelopeError(
3870
4130
  `400`,
3871
4131
  response,
@@ -3892,7 +4152,7 @@ var QueryExecutionClient = class {
3892
4152
  case 403: {
3893
4153
  const responseValue = await response.body("json");
3894
4154
  try {
3895
- const errorBody = fromJson16(responseValue);
4155
+ const errorBody = fromJson17(responseValue);
3896
4156
  throw new ErrorEnvelopeError(
3897
4157
  `403`,
3898
4158
  response,
@@ -3916,7 +4176,7 @@ var QueryExecutionClient = class {
3916
4176
  case 429: {
3917
4177
  const responseValue = await response.body("json");
3918
4178
  try {
3919
- const errorBody = fromJson16(responseValue);
4179
+ const errorBody = fromJson17(responseValue);
3920
4180
  throw new ErrorEnvelopeError(
3921
4181
  `429`,
3922
4182
  response,
@@ -3940,7 +4200,7 @@ var QueryExecutionClient = class {
3940
4200
  case 500: {
3941
4201
  const responseValue = await response.body("json");
3942
4202
  try {
3943
- const errorBody = fromJson16(responseValue);
4203
+ const errorBody = fromJson17(responseValue);
3944
4204
  throw new ErrorEnvelopeError(
3945
4205
  `500`,
3946
4206
  response,
@@ -3964,7 +4224,7 @@ var QueryExecutionClient = class {
3964
4224
  case 503: {
3965
4225
  const responseValue = await response.body("json");
3966
4226
  try {
3967
- const errorBody = fromJson16(responseValue);
4227
+ const errorBody = fromJson17(responseValue);
3968
4228
  throw new ErrorEnvelopeError(
3969
4229
  `503`,
3970
4230
  response,
@@ -3989,7 +4249,7 @@ var QueryExecutionClient = class {
3989
4249
  if (response.status >= 400 && response.status <= 499) {
3990
4250
  const responseValue = await response.body("json");
3991
4251
  try {
3992
- const errorBody = fromJson16(responseValue);
4252
+ const errorBody = fromJson17(responseValue);
3993
4253
  throw new ErrorEnvelopeError(
3994
4254
  `${response.status}`,
3995
4255
  response,
@@ -4012,7 +4272,7 @@ var QueryExecutionClient = class {
4012
4272
  } else if (response.status >= 500 && response.status <= 599) {
4013
4273
  const responseValue = await response.body("json");
4014
4274
  try {
4015
- const errorBody = fromJson16(responseValue);
4275
+ const errorBody = fromJson17(responseValue);
4016
4276
  throw new ErrorEnvelopeError(
4017
4277
  `${response.status}`,
4018
4278
  response,
@@ -4119,7 +4379,7 @@ var QueryExecutionClient = class {
4119
4379
  case 200: {
4120
4380
  const responseValue = await response.body("json");
4121
4381
  try {
4122
- return fromJson35(responseValue);
4382
+ return fromJson39(responseValue);
4123
4383
  } catch (err) {
4124
4384
  throw new InvalidResponseError(
4125
4385
  `QueryExecutionClient.query:cancel:${response.status}`,
@@ -4155,7 +4415,7 @@ var QueryExecutionClient = class {
4155
4415
  case 400: {
4156
4416
  const responseValue = await response.body("json");
4157
4417
  try {
4158
- const errorBody = fromJson16(responseValue);
4418
+ const errorBody = fromJson17(responseValue);
4159
4419
  throw new ErrorEnvelopeError(
4160
4420
  `400`,
4161
4421
  response,
@@ -4194,7 +4454,7 @@ var QueryExecutionClient = class {
4194
4454
  case 500: {
4195
4455
  const responseValue = await response.body("json");
4196
4456
  try {
4197
- const errorBody = fromJson16(responseValue);
4457
+ const errorBody = fromJson17(responseValue);
4198
4458
  throw new ErrorEnvelopeError(
4199
4459
  `500`,
4200
4460
  response,