@wix/bookings 1.0.312 → 1.0.314
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/build/cjs/src/bookings-availability-v1-slot-availability.public.d.ts +1 -1
- package/build/cjs/src/bookings-availability-v1-slot-availability.types.d.ts +12 -0
- package/build/cjs/src/bookings-availability-v1-slot-availability.universal.d.ts +12 -0
- package/build/cjs/src/bookings-availability-v1-slot-availability.universal.js.map +1 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.public.d.ts +1 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.types.d.ts +12 -0
- package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.universal.d.ts +12 -0
- package/build/cjs/src/bookings-availability-v2-time-slot-availability-time-slots.universal.js.map +1 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.types.d.ts +12 -0
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.d.ts +1 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.d.ts +12 -0
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.d.ts +12 -0
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service.public.d.ts +2 -2
- package/build/cjs/src/bookings-services-v2-service.public.js +4 -1
- package/build/cjs/src/bookings-services-v2-service.public.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service.types.d.ts +114 -54
- package/build/cjs/src/bookings-services-v2-service.types.js +27 -1
- package/build/cjs/src/bookings-services-v2-service.types.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service.universal.d.ts +114 -54
- package/build/cjs/src/bookings-services-v2-service.universal.js +27 -1
- package/build/cjs/src/bookings-services-v2-service.universal.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.public.d.ts +1 -1
- package/build/cjs/src/bookings-v2-booking.types.d.ts +67 -0
- package/build/cjs/src/bookings-v2-booking.types.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.universal.d.ts +67 -0
- package/build/cjs/src/bookings-v2-booking.universal.js.map +1 -1
- package/build/es/src/bookings-availability-v1-slot-availability.public.d.ts +1 -1
- package/build/es/src/bookings-availability-v1-slot-availability.types.d.ts +12 -0
- package/build/es/src/bookings-availability-v1-slot-availability.universal.d.ts +12 -0
- package/build/es/src/bookings-availability-v1-slot-availability.universal.js.map +1 -1
- package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.public.d.ts +1 -1
- package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.types.d.ts +12 -0
- package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.universal.d.ts +12 -0
- package/build/es/src/bookings-availability-v2-time-slot-availability-time-slots.universal.js.map +1 -1
- package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.types.d.ts +12 -0
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.d.ts +1 -1
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.d.ts +12 -0
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.d.ts +12 -0
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map +1 -1
- package/build/es/src/bookings-services-v2-service.public.d.ts +2 -2
- package/build/es/src/bookings-services-v2-service.public.js +1 -1
- package/build/es/src/bookings-services-v2-service.public.js.map +1 -1
- package/build/es/src/bookings-services-v2-service.types.d.ts +114 -54
- package/build/es/src/bookings-services-v2-service.types.js +26 -0
- package/build/es/src/bookings-services-v2-service.types.js.map +1 -1
- package/build/es/src/bookings-services-v2-service.universal.d.ts +114 -54
- package/build/es/src/bookings-services-v2-service.universal.js +26 -0
- package/build/es/src/bookings-services-v2-service.universal.js.map +1 -1
- package/build/es/src/bookings-v2-booking.public.d.ts +1 -1
- package/build/es/src/bookings-v2-booking.types.d.ts +67 -0
- package/build/es/src/bookings-v2-booking.types.js.map +1 -1
- package/build/es/src/bookings-v2-booking.universal.d.ts +67 -0
- package/build/es/src/bookings-v2-booking.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -428,7 +428,7 @@ export interface BookingPolicy {
|
|
|
428
428
|
/** The ID to the policy for the booking. */
|
|
429
429
|
id?: string;
|
|
430
430
|
/**
|
|
431
|
-
* Revision number, which increments by 1 each time the policy is updated. To prevent conflicting changes, the existing revision must be used when updating a policy.
|
|
431
|
+
* Revision number, which increments by 1 each time the policy is updated. To prevent conflicting changes, the existing revision must be used when updating a policy. Can be empty after the service was cloned as part of site clone.
|
|
432
432
|
* @readonly
|
|
433
433
|
*/
|
|
434
434
|
revision?: string | null;
|
|
@@ -1175,29 +1175,23 @@ export interface CursorSearchPagingMethodOneOf {
|
|
|
1175
1175
|
cursorPaging?: CursorPaging;
|
|
1176
1176
|
}
|
|
1177
1177
|
export interface Aggregation extends AggregationKindOneOf {
|
|
1178
|
-
/** Value aggregation */
|
|
1179
1178
|
value?: ValueAggregation;
|
|
1180
|
-
/** Range aggregation */
|
|
1181
1179
|
range?: RangeAggregation;
|
|
1182
|
-
/** Scalar aggregation */
|
|
1183
1180
|
scalar?: ScalarAggregation;
|
|
1184
|
-
|
|
1181
|
+
dateHistogram?: DateHistogramAggregation;
|
|
1182
|
+
nested?: NestedAggregation;
|
|
1185
1183
|
name?: string | null;
|
|
1186
|
-
/** Aggregation type. Supported values: VALUE, RANGE, SCALAR. */
|
|
1187
1184
|
type?: AggregationType;
|
|
1188
|
-
/** Path of the field. For example, "singleResource.locationOptions.availableInAllLocations" */
|
|
1189
1185
|
fieldPath?: string;
|
|
1190
|
-
/** Group by aggregation */
|
|
1191
1186
|
groupBy?: GroupByAggregation;
|
|
1192
1187
|
}
|
|
1193
1188
|
/** @oneof */
|
|
1194
1189
|
export interface AggregationKindOneOf {
|
|
1195
|
-
/** Value aggregation */
|
|
1196
1190
|
value?: ValueAggregation;
|
|
1197
|
-
/** Range aggregation */
|
|
1198
1191
|
range?: RangeAggregation;
|
|
1199
|
-
/** Scalar aggregation */
|
|
1200
1192
|
scalar?: ScalarAggregation;
|
|
1193
|
+
dateHistogram?: DateHistogramAggregation;
|
|
1194
|
+
nested?: NestedAggregation;
|
|
1201
1195
|
}
|
|
1202
1196
|
export interface RangeBucket {
|
|
1203
1197
|
/** Inclusive lower bound of the range. Required if to is not given. */
|
|
@@ -1213,6 +1207,14 @@ export declare enum SortDirection {
|
|
|
1213
1207
|
DESC = "DESC",
|
|
1214
1208
|
ASC = "ASC"
|
|
1215
1209
|
}
|
|
1210
|
+
export declare enum MissingValues {
|
|
1211
|
+
EXCLUDE = "EXCLUDE",
|
|
1212
|
+
INCLUDE = "INCLUDE"
|
|
1213
|
+
}
|
|
1214
|
+
export interface IncludeMissingValuesOptions {
|
|
1215
|
+
/** can specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ... */
|
|
1216
|
+
addToBucket?: string;
|
|
1217
|
+
}
|
|
1216
1218
|
export declare enum ScalarType {
|
|
1217
1219
|
UNKNOWN_SCALAR_TYPE = "UNKNOWN_SCALAR_TYPE",
|
|
1218
1220
|
COUNT_DISTINCT = "COUNT_DISTINCT",
|
|
@@ -1221,39 +1223,83 @@ export declare enum ScalarType {
|
|
|
1221
1223
|
SUM = "SUM",
|
|
1222
1224
|
AVG = "AVG"
|
|
1223
1225
|
}
|
|
1224
|
-
export interface ValueAggregation {
|
|
1225
|
-
/**
|
|
1226
|
+
export interface ValueAggregation extends ValueAggregationOptionsOneOf {
|
|
1227
|
+
/** options for including missing values */
|
|
1228
|
+
includeOptions?: IncludeMissingValuesOptions;
|
|
1226
1229
|
sortType?: SortType;
|
|
1227
|
-
/** Sort direction. Can be DESC or ASC. DESC is the default. */
|
|
1228
1230
|
sortDirection?: SortDirection;
|
|
1229
1231
|
/** How many aggregations would you like to return? Can be between 1 and 250. 10 is the default. */
|
|
1230
1232
|
limit?: number | null;
|
|
1233
|
+
/** should missing values be included or excluded from the aggregation results. Default is EXCLUDE */
|
|
1234
|
+
missingValues?: MissingValues;
|
|
1231
1235
|
}
|
|
1232
|
-
|
|
1236
|
+
/** @oneof */
|
|
1237
|
+
export interface ValueAggregationOptionsOneOf {
|
|
1238
|
+
/** options for including missing values */
|
|
1239
|
+
includeOptions?: IncludeMissingValuesOptions;
|
|
1240
|
+
}
|
|
1241
|
+
export declare enum NestedAggregationType {
|
|
1233
1242
|
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
1234
1243
|
VALUE = "VALUE",
|
|
1235
1244
|
RANGE = "RANGE",
|
|
1236
|
-
SCALAR = "SCALAR"
|
|
1245
|
+
SCALAR = "SCALAR",
|
|
1246
|
+
DATE_HISTOGRAM = "DATE_HISTOGRAM"
|
|
1237
1247
|
}
|
|
1238
1248
|
export interface RangeAggregation {
|
|
1239
1249
|
/** Range buckets */
|
|
1240
1250
|
buckets?: RangeBucket[];
|
|
1241
1251
|
}
|
|
1242
1252
|
export interface ScalarAggregation {
|
|
1243
|
-
/** Scalar type */
|
|
1244
1253
|
type?: ScalarType;
|
|
1245
1254
|
}
|
|
1255
|
+
export interface DateHistogramAggregation {
|
|
1256
|
+
interval?: DateHistogramAggregationInterval;
|
|
1257
|
+
}
|
|
1258
|
+
export declare enum DateHistogramAggregationInterval {
|
|
1259
|
+
UNKNOWN_INTERVAL = "UNKNOWN_INTERVAL",
|
|
1260
|
+
YEAR = "YEAR",
|
|
1261
|
+
MONTH = "MONTH",
|
|
1262
|
+
WEEK = "WEEK",
|
|
1263
|
+
DAY = "DAY",
|
|
1264
|
+
HOUR = "HOUR",
|
|
1265
|
+
MINUTE = "MINUTE",
|
|
1266
|
+
SECOND = "SECOND"
|
|
1267
|
+
}
|
|
1268
|
+
export interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
|
|
1269
|
+
value?: ValueAggregation;
|
|
1270
|
+
range?: RangeAggregation;
|
|
1271
|
+
scalar?: ScalarAggregation;
|
|
1272
|
+
dateHistogram?: DateHistogramAggregation;
|
|
1273
|
+
name?: string | null;
|
|
1274
|
+
type?: NestedAggregationType;
|
|
1275
|
+
fieldPath?: string;
|
|
1276
|
+
}
|
|
1277
|
+
/** @oneof */
|
|
1278
|
+
export interface NestedAggregationItemKindOneOf {
|
|
1279
|
+
value?: ValueAggregation;
|
|
1280
|
+
range?: RangeAggregation;
|
|
1281
|
+
scalar?: ScalarAggregation;
|
|
1282
|
+
dateHistogram?: DateHistogramAggregation;
|
|
1283
|
+
}
|
|
1284
|
+
export declare enum AggregationType {
|
|
1285
|
+
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
1286
|
+
VALUE = "VALUE",
|
|
1287
|
+
RANGE = "RANGE",
|
|
1288
|
+
SCALAR = "SCALAR",
|
|
1289
|
+
DATE_HISTOGRAM = "DATE_HISTOGRAM",
|
|
1290
|
+
NESTED = "NESTED"
|
|
1291
|
+
}
|
|
1292
|
+
/** nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one */
|
|
1293
|
+
export interface NestedAggregation {
|
|
1294
|
+
nestedAggregations?: NestedAggregationItem[];
|
|
1295
|
+
}
|
|
1246
1296
|
export interface GroupByAggregation extends GroupByAggregationKindOneOf {
|
|
1247
|
-
/** Value aggregation */
|
|
1248
1297
|
value?: ValueAggregation;
|
|
1249
|
-
/** Name of the GroupByAggregation. Optional and can be used as an identifier of the requested aggregation in response. */
|
|
1250
1298
|
name?: string | null;
|
|
1251
|
-
/** Path of the field to group by. For example, "type" */
|
|
1252
1299
|
fieldPath?: string;
|
|
1253
1300
|
}
|
|
1254
1301
|
/** @oneof */
|
|
1255
1302
|
export interface GroupByAggregationKindOneOf {
|
|
1256
|
-
/** Value aggregation */
|
|
1257
1303
|
value?: ValueAggregation;
|
|
1258
1304
|
}
|
|
1259
1305
|
export interface SearchDetails {
|
|
@@ -1293,96 +1339,110 @@ export interface CursorPagingMetadata {
|
|
|
1293
1339
|
hasNext?: boolean | null;
|
|
1294
1340
|
}
|
|
1295
1341
|
export interface AggregationData {
|
|
1296
|
-
/**
|
|
1342
|
+
/** key = aggregation name (as derived from search request) */
|
|
1297
1343
|
results?: AggregationResults[];
|
|
1298
1344
|
}
|
|
1299
1345
|
export interface ValueAggregationResult {
|
|
1300
|
-
/** Value */
|
|
1301
1346
|
value?: string;
|
|
1302
|
-
/** Count */
|
|
1303
1347
|
count?: number;
|
|
1304
1348
|
}
|
|
1305
1349
|
export interface RangeAggregationResult {
|
|
1306
|
-
/** Inclusive lower bound of the range. */
|
|
1307
1350
|
from?: number | null;
|
|
1308
|
-
/** Exclusive upper bound of the range. */
|
|
1309
1351
|
to?: number | null;
|
|
1310
|
-
/** Count */
|
|
1311
1352
|
count?: number;
|
|
1312
1353
|
}
|
|
1313
1354
|
export interface NestedAggregationResults extends NestedAggregationResultsResultOneOf {
|
|
1314
|
-
/** Value results */
|
|
1315
1355
|
values?: ValueResults;
|
|
1316
|
-
/** Range results */
|
|
1317
1356
|
ranges?: RangeResults;
|
|
1318
|
-
/** Scalar result */
|
|
1319
1357
|
scalar?: ScalarResult;
|
|
1320
|
-
/** Name of the requested nested aggregation. */
|
|
1321
1358
|
name?: string;
|
|
1322
|
-
/** Aggregation type. Supported values: VALUE, RANGE, SCALAR. */
|
|
1323
1359
|
type?: AggregationType;
|
|
1324
|
-
/** Path of the field. For example, "singleResource.locationOptions.availableInAllLocations" */
|
|
1325
1360
|
fieldPath?: string;
|
|
1326
1361
|
}
|
|
1327
1362
|
/** @oneof */
|
|
1328
1363
|
export interface NestedAggregationResultsResultOneOf {
|
|
1329
|
-
/** Value results */
|
|
1330
1364
|
values?: ValueResults;
|
|
1331
|
-
/** Range results */
|
|
1332
1365
|
ranges?: RangeResults;
|
|
1333
|
-
/** Scalar result */
|
|
1334
1366
|
scalar?: ScalarResult;
|
|
1335
1367
|
}
|
|
1336
1368
|
export interface ValueResults {
|
|
1337
|
-
/** Value aggregation results */
|
|
1338
1369
|
results?: ValueAggregationResult[];
|
|
1339
1370
|
}
|
|
1340
1371
|
export interface RangeResults {
|
|
1341
|
-
/** Aggregation results */
|
|
1342
1372
|
results?: RangeAggregationResult[];
|
|
1343
1373
|
}
|
|
1344
1374
|
export interface ScalarResult {
|
|
1345
|
-
/** Scalar type */
|
|
1346
1375
|
type?: ScalarType;
|
|
1347
|
-
/** Value */
|
|
1348
1376
|
value?: number;
|
|
1349
1377
|
}
|
|
1350
1378
|
export interface NestedValueAggregationResult {
|
|
1351
|
-
/** Value */
|
|
1352
1379
|
value?: string;
|
|
1353
|
-
/** Nested results */
|
|
1354
1380
|
nestedResults?: NestedAggregationResults;
|
|
1355
1381
|
}
|
|
1382
|
+
export interface ValueResult {
|
|
1383
|
+
value?: string;
|
|
1384
|
+
count?: number | null;
|
|
1385
|
+
}
|
|
1386
|
+
export interface RangeResult {
|
|
1387
|
+
from?: number | null;
|
|
1388
|
+
to?: number | null;
|
|
1389
|
+
count?: number | null;
|
|
1390
|
+
}
|
|
1391
|
+
export interface NestedResultsScalarResult {
|
|
1392
|
+
value?: number;
|
|
1393
|
+
}
|
|
1394
|
+
export interface NestedResultValue extends NestedResultValueResultOneOf {
|
|
1395
|
+
value?: ValueResult;
|
|
1396
|
+
range?: RangeResult;
|
|
1397
|
+
scalar?: NestedResultsScalarResult;
|
|
1398
|
+
dateHistogram?: ValueResult;
|
|
1399
|
+
}
|
|
1400
|
+
/** @oneof */
|
|
1401
|
+
export interface NestedResultValueResultOneOf {
|
|
1402
|
+
value?: ValueResult;
|
|
1403
|
+
range?: RangeResult;
|
|
1404
|
+
scalar?: NestedResultsScalarResult;
|
|
1405
|
+
dateHistogram?: ValueResult;
|
|
1406
|
+
}
|
|
1407
|
+
export interface Results {
|
|
1408
|
+
results?: Record<string, NestedResultValue>;
|
|
1409
|
+
}
|
|
1410
|
+
export interface DateHistogramResult {
|
|
1411
|
+
value?: string;
|
|
1412
|
+
count?: number;
|
|
1413
|
+
}
|
|
1356
1414
|
export interface GroupByValueResults {
|
|
1357
|
-
/** Nested value aggregation results */
|
|
1358
1415
|
results?: NestedValueAggregationResult[];
|
|
1359
1416
|
}
|
|
1417
|
+
export interface DateHistogramResults {
|
|
1418
|
+
results?: DateHistogramResult[];
|
|
1419
|
+
}
|
|
1420
|
+
/**
|
|
1421
|
+
* results of `NESTED` aggregation type in a flattened form
|
|
1422
|
+
* aggregations in resulting array are keyed by requested aggregation `name`.
|
|
1423
|
+
*/
|
|
1424
|
+
export interface NestedResults {
|
|
1425
|
+
results?: Results[];
|
|
1426
|
+
}
|
|
1360
1427
|
export interface AggregationResults extends AggregationResultsResultOneOf {
|
|
1361
|
-
/** Value results */
|
|
1362
1428
|
values?: ValueResults;
|
|
1363
|
-
/** Range results */
|
|
1364
1429
|
ranges?: RangeResults;
|
|
1365
|
-
/** Scalar result */
|
|
1366
1430
|
scalar?: ScalarResult;
|
|
1367
|
-
/** Group by value results */
|
|
1368
1431
|
groupedByValue?: GroupByValueResults;
|
|
1369
|
-
|
|
1432
|
+
dateHistogram?: DateHistogramResults;
|
|
1433
|
+
nested?: NestedResults;
|
|
1370
1434
|
name?: string;
|
|
1371
|
-
/** Aggregation type. Supported values: VALUE, RANGE, SCALAR. */
|
|
1372
1435
|
type?: AggregationType;
|
|
1373
|
-
/** Path of the field. For example, "singleResource.locationOptions.availableInAllLocations" */
|
|
1374
1436
|
fieldPath?: string;
|
|
1375
1437
|
}
|
|
1376
1438
|
/** @oneof */
|
|
1377
1439
|
export interface AggregationResultsResultOneOf {
|
|
1378
|
-
/** Value results */
|
|
1379
1440
|
values?: ValueResults;
|
|
1380
|
-
/** Range results */
|
|
1381
1441
|
ranges?: RangeResults;
|
|
1382
|
-
/** Scalar result */
|
|
1383
1442
|
scalar?: ScalarResult;
|
|
1384
|
-
/** Group by value results */
|
|
1385
1443
|
groupedByValue?: GroupByValueResults;
|
|
1444
|
+
dateHistogram?: DateHistogramResults;
|
|
1445
|
+
nested?: NestedResults;
|
|
1386
1446
|
}
|
|
1387
1447
|
export interface QueryPoliciesRequest {
|
|
1388
1448
|
/** WQL expression. */
|
|
@@ -53,6 +53,11 @@ export var SortDirection;
|
|
|
53
53
|
SortDirection["DESC"] = "DESC";
|
|
54
54
|
SortDirection["ASC"] = "ASC";
|
|
55
55
|
})(SortDirection || (SortDirection = {}));
|
|
56
|
+
export var MissingValues;
|
|
57
|
+
(function (MissingValues) {
|
|
58
|
+
MissingValues["EXCLUDE"] = "EXCLUDE";
|
|
59
|
+
MissingValues["INCLUDE"] = "INCLUDE";
|
|
60
|
+
})(MissingValues || (MissingValues = {}));
|
|
56
61
|
export var ScalarType;
|
|
57
62
|
(function (ScalarType) {
|
|
58
63
|
ScalarType["UNKNOWN_SCALAR_TYPE"] = "UNKNOWN_SCALAR_TYPE";
|
|
@@ -62,12 +67,33 @@ export var ScalarType;
|
|
|
62
67
|
ScalarType["SUM"] = "SUM";
|
|
63
68
|
ScalarType["AVG"] = "AVG";
|
|
64
69
|
})(ScalarType || (ScalarType = {}));
|
|
70
|
+
export var NestedAggregationType;
|
|
71
|
+
(function (NestedAggregationType) {
|
|
72
|
+
NestedAggregationType["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
|
|
73
|
+
NestedAggregationType["VALUE"] = "VALUE";
|
|
74
|
+
NestedAggregationType["RANGE"] = "RANGE";
|
|
75
|
+
NestedAggregationType["SCALAR"] = "SCALAR";
|
|
76
|
+
NestedAggregationType["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
77
|
+
})(NestedAggregationType || (NestedAggregationType = {}));
|
|
78
|
+
export var DateHistogramAggregationInterval;
|
|
79
|
+
(function (DateHistogramAggregationInterval) {
|
|
80
|
+
DateHistogramAggregationInterval["UNKNOWN_INTERVAL"] = "UNKNOWN_INTERVAL";
|
|
81
|
+
DateHistogramAggregationInterval["YEAR"] = "YEAR";
|
|
82
|
+
DateHistogramAggregationInterval["MONTH"] = "MONTH";
|
|
83
|
+
DateHistogramAggregationInterval["WEEK"] = "WEEK";
|
|
84
|
+
DateHistogramAggregationInterval["DAY"] = "DAY";
|
|
85
|
+
DateHistogramAggregationInterval["HOUR"] = "HOUR";
|
|
86
|
+
DateHistogramAggregationInterval["MINUTE"] = "MINUTE";
|
|
87
|
+
DateHistogramAggregationInterval["SECOND"] = "SECOND";
|
|
88
|
+
})(DateHistogramAggregationInterval || (DateHistogramAggregationInterval = {}));
|
|
65
89
|
export var AggregationType;
|
|
66
90
|
(function (AggregationType) {
|
|
67
91
|
AggregationType["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
|
|
68
92
|
AggregationType["VALUE"] = "VALUE";
|
|
69
93
|
AggregationType["RANGE"] = "RANGE";
|
|
70
94
|
AggregationType["SCALAR"] = "SCALAR";
|
|
95
|
+
AggregationType["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
96
|
+
AggregationType["NESTED"] = "NESTED";
|
|
71
97
|
})(AggregationType || (AggregationType = {}));
|
|
72
98
|
export var Mode;
|
|
73
99
|
(function (Mode) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-services-v2-service.types.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.types.ts"],"names":[],"mappings":"AAmFA,MAAM,CAAN,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,iCAAiC;IACjC,0CAA2B,CAAA;IAC3B,0BAA0B;IAC1B,8BAAe,CAAA;IACf,2BAA2B;IAC3B,gCAAiB,CAAA;AACnB,CAAC,EARW,WAAW,KAAX,WAAW,QAQtB;AAkID,MAAM,CAAN,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,qCAAqC;IACrC,2BAAe,CAAA;IACf,wEAAwE;IACxE,6BAAiB,CAAA;IACjB,uFAAuF;IACvF,6BAAiB,CAAA;IACjB,8CAA8C;IAC9C,6BAAiB,CAAA;AACnB,CAAC,EAVW,QAAQ,KAAR,QAAQ,QAUnB;AA0HD,MAAM,CAAN,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,iQAAiQ;IACjQ,iCAAiB,CAAA;IACjB,6JAA6J;IAC7J,qCAAqB,CAAA;IACrB,8IAA8I;IAC9I,qCAAqB,CAAA;AACvB,CAAC,EARW,YAAY,KAAZ,YAAY,QAQvB;AAioBD,MAAM,CAAN,IAAY,eAMX;AAND,WAAY,eAAe;IACzB,sEAAmD,CAAA;IACnD,uDAAuD;IACvD,gEAA6C,CAAA;IAC7C,8EAA8E;IAC9E,kEAA+C,CAAA;AACjD,CAAC,EANW,eAAe,KAAf,eAAe,QAM1B;AA2LD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;
|
|
1
|
+
{"version":3,"file":"bookings-services-v2-service.types.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.types.ts"],"names":[],"mappings":"AAmFA,MAAM,CAAN,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,iCAAiC;IACjC,0CAA2B,CAAA;IAC3B,0BAA0B;IAC1B,8BAAe,CAAA;IACf,2BAA2B;IAC3B,gCAAiB,CAAA;AACnB,CAAC,EARW,WAAW,KAAX,WAAW,QAQtB;AAkID,MAAM,CAAN,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,qCAAqC;IACrC,2BAAe,CAAA;IACf,wEAAwE;IACxE,6BAAiB,CAAA;IACjB,uFAAuF;IACvF,6BAAiB,CAAA;IACjB,8CAA8C;IAC9C,6BAAiB,CAAA;AACnB,CAAC,EAVW,QAAQ,KAAR,QAAQ,QAUnB;AA0HD,MAAM,CAAN,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,iQAAiQ;IACjQ,iCAAiB,CAA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,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,+CAA2B,CAAA;IAC3B,2CAAuB,CAAA;IACvB,iDAA6B,CAAA;AAC/B,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B;AAiFD,MAAM,CAAN,IAAY,MAiBX;AAjBD,WAAY,MAAM;IAChB,qDAA2C,CAAA;IAC3C;;;OAGG;IACH,+DAAqD,CAAA;IACrD;;;OAGG;IACH,+CAAqC,CAAA;IACrC;;;OAGG;IACH,2BAAiB,CAAA;AACnB,CAAC,EAjBW,MAAM,KAAN,MAAM,QAiBjB;AAyED,MAAM,CAAN,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,6DAAyC,CAAA;IACzC,0DAA0D;IAC1D,yFAAqE,CAAA;IACrE,iEAAiE;IACjE,+DAA2C,CAAA;AAC7C,CAAC,EANW,gBAAgB,KAAhB,gBAAgB,QAM3B;AAsBD,MAAM,CAAN,IAAY,WAUX;AAVD,WAAY,WAAW;IACrB,0DAA2C,CAAA;IAC3C,4DAA4D;IAC5D,oCAAqB,CAAA;IACrB,0FAA0F;IAC1F,4DAA6C,CAAA;IAC7C,qCAAqC;IACrC,4BAAa,CAAA;IACb,oEAAoE;IACpE,8CAA+B,CAAA;AACjC,CAAC,EAVW,WAAW,KAAX,WAAW,QAUtB;AAqHD,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,6BAAe,CAAA;IACf,yBAAW,CAAA;IACX,2BAAa,CAAA;IACb,2BAAa,CAAA;AACf,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB"}
|
|
@@ -424,7 +424,7 @@ export interface BookingPolicy {
|
|
|
424
424
|
/** The ID to the policy for the booking. */
|
|
425
425
|
_id?: string;
|
|
426
426
|
/**
|
|
427
|
-
* Revision number, which increments by 1 each time the policy is updated. To prevent conflicting changes, the existing revision must be used when updating a policy.
|
|
427
|
+
* Revision number, which increments by 1 each time the policy is updated. To prevent conflicting changes, the existing revision must be used when updating a policy. Can be empty after the service was cloned as part of site clone.
|
|
428
428
|
* @readonly
|
|
429
429
|
*/
|
|
430
430
|
revision?: string | null;
|
|
@@ -1165,29 +1165,23 @@ export interface CursorSearchPagingMethodOneOf {
|
|
|
1165
1165
|
cursorPaging?: CursorPaging;
|
|
1166
1166
|
}
|
|
1167
1167
|
export interface Aggregation extends AggregationKindOneOf {
|
|
1168
|
-
/** Value aggregation */
|
|
1169
1168
|
value?: ValueAggregation;
|
|
1170
|
-
/** Range aggregation */
|
|
1171
1169
|
range?: RangeAggregation;
|
|
1172
|
-
/** Scalar aggregation */
|
|
1173
1170
|
scalar?: ScalarAggregation;
|
|
1174
|
-
|
|
1171
|
+
dateHistogram?: DateHistogramAggregation;
|
|
1172
|
+
nested?: NestedAggregation;
|
|
1175
1173
|
name?: string | null;
|
|
1176
|
-
/** Aggregation type. Supported values: VALUE, RANGE, SCALAR. */
|
|
1177
1174
|
type?: AggregationType;
|
|
1178
|
-
/** Path of the field. For example, "singleResource.locationOptions.availableInAllLocations" */
|
|
1179
1175
|
fieldPath?: string;
|
|
1180
|
-
/** Group by aggregation */
|
|
1181
1176
|
groupBy?: GroupByAggregation;
|
|
1182
1177
|
}
|
|
1183
1178
|
/** @oneof */
|
|
1184
1179
|
export interface AggregationKindOneOf {
|
|
1185
|
-
/** Value aggregation */
|
|
1186
1180
|
value?: ValueAggregation;
|
|
1187
|
-
/** Range aggregation */
|
|
1188
1181
|
range?: RangeAggregation;
|
|
1189
|
-
/** Scalar aggregation */
|
|
1190
1182
|
scalar?: ScalarAggregation;
|
|
1183
|
+
dateHistogram?: DateHistogramAggregation;
|
|
1184
|
+
nested?: NestedAggregation;
|
|
1191
1185
|
}
|
|
1192
1186
|
export interface RangeBucket {
|
|
1193
1187
|
/** Inclusive lower bound of the range. Required if to is not given. */
|
|
@@ -1203,6 +1197,14 @@ export declare enum SortDirection {
|
|
|
1203
1197
|
DESC = "DESC",
|
|
1204
1198
|
ASC = "ASC"
|
|
1205
1199
|
}
|
|
1200
|
+
export declare enum MissingValues {
|
|
1201
|
+
EXCLUDE = "EXCLUDE",
|
|
1202
|
+
INCLUDE = "INCLUDE"
|
|
1203
|
+
}
|
|
1204
|
+
export interface IncludeMissingValuesOptions {
|
|
1205
|
+
/** can specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ... */
|
|
1206
|
+
addToBucket?: string;
|
|
1207
|
+
}
|
|
1206
1208
|
export declare enum ScalarType {
|
|
1207
1209
|
UNKNOWN_SCALAR_TYPE = "UNKNOWN_SCALAR_TYPE",
|
|
1208
1210
|
COUNT_DISTINCT = "COUNT_DISTINCT",
|
|
@@ -1211,39 +1213,83 @@ export declare enum ScalarType {
|
|
|
1211
1213
|
SUM = "SUM",
|
|
1212
1214
|
AVG = "AVG"
|
|
1213
1215
|
}
|
|
1214
|
-
export interface ValueAggregation {
|
|
1215
|
-
/**
|
|
1216
|
+
export interface ValueAggregation extends ValueAggregationOptionsOneOf {
|
|
1217
|
+
/** options for including missing values */
|
|
1218
|
+
includeOptions?: IncludeMissingValuesOptions;
|
|
1216
1219
|
sortType?: SortType;
|
|
1217
|
-
/** Sort direction. Can be DESC or ASC. DESC is the default. */
|
|
1218
1220
|
sortDirection?: SortDirection;
|
|
1219
1221
|
/** How many aggregations would you like to return? Can be between 1 and 250. 10 is the default. */
|
|
1220
1222
|
limit?: number | null;
|
|
1223
|
+
/** should missing values be included or excluded from the aggregation results. Default is EXCLUDE */
|
|
1224
|
+
missingValues?: MissingValues;
|
|
1221
1225
|
}
|
|
1222
|
-
|
|
1226
|
+
/** @oneof */
|
|
1227
|
+
export interface ValueAggregationOptionsOneOf {
|
|
1228
|
+
/** options for including missing values */
|
|
1229
|
+
includeOptions?: IncludeMissingValuesOptions;
|
|
1230
|
+
}
|
|
1231
|
+
export declare enum NestedAggregationType {
|
|
1223
1232
|
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
1224
1233
|
VALUE = "VALUE",
|
|
1225
1234
|
RANGE = "RANGE",
|
|
1226
|
-
SCALAR = "SCALAR"
|
|
1235
|
+
SCALAR = "SCALAR",
|
|
1236
|
+
DATE_HISTOGRAM = "DATE_HISTOGRAM"
|
|
1227
1237
|
}
|
|
1228
1238
|
export interface RangeAggregation {
|
|
1229
1239
|
/** Range buckets */
|
|
1230
1240
|
buckets?: RangeBucket[];
|
|
1231
1241
|
}
|
|
1232
1242
|
export interface ScalarAggregation {
|
|
1233
|
-
/** Scalar type */
|
|
1234
1243
|
type?: ScalarType;
|
|
1235
1244
|
}
|
|
1245
|
+
export interface DateHistogramAggregation {
|
|
1246
|
+
interval?: DateHistogramAggregationInterval;
|
|
1247
|
+
}
|
|
1248
|
+
export declare enum DateHistogramAggregationInterval {
|
|
1249
|
+
UNKNOWN_INTERVAL = "UNKNOWN_INTERVAL",
|
|
1250
|
+
YEAR = "YEAR",
|
|
1251
|
+
MONTH = "MONTH",
|
|
1252
|
+
WEEK = "WEEK",
|
|
1253
|
+
DAY = "DAY",
|
|
1254
|
+
HOUR = "HOUR",
|
|
1255
|
+
MINUTE = "MINUTE",
|
|
1256
|
+
SECOND = "SECOND"
|
|
1257
|
+
}
|
|
1258
|
+
export interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
|
|
1259
|
+
value?: ValueAggregation;
|
|
1260
|
+
range?: RangeAggregation;
|
|
1261
|
+
scalar?: ScalarAggregation;
|
|
1262
|
+
dateHistogram?: DateHistogramAggregation;
|
|
1263
|
+
name?: string | null;
|
|
1264
|
+
type?: NestedAggregationType;
|
|
1265
|
+
fieldPath?: string;
|
|
1266
|
+
}
|
|
1267
|
+
/** @oneof */
|
|
1268
|
+
export interface NestedAggregationItemKindOneOf {
|
|
1269
|
+
value?: ValueAggregation;
|
|
1270
|
+
range?: RangeAggregation;
|
|
1271
|
+
scalar?: ScalarAggregation;
|
|
1272
|
+
dateHistogram?: DateHistogramAggregation;
|
|
1273
|
+
}
|
|
1274
|
+
export declare enum AggregationType {
|
|
1275
|
+
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
1276
|
+
VALUE = "VALUE",
|
|
1277
|
+
RANGE = "RANGE",
|
|
1278
|
+
SCALAR = "SCALAR",
|
|
1279
|
+
DATE_HISTOGRAM = "DATE_HISTOGRAM",
|
|
1280
|
+
NESTED = "NESTED"
|
|
1281
|
+
}
|
|
1282
|
+
/** nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one */
|
|
1283
|
+
export interface NestedAggregation {
|
|
1284
|
+
nestedAggregations?: NestedAggregationItem[];
|
|
1285
|
+
}
|
|
1236
1286
|
export interface GroupByAggregation extends GroupByAggregationKindOneOf {
|
|
1237
|
-
/** Value aggregation */
|
|
1238
1287
|
value?: ValueAggregation;
|
|
1239
|
-
/** Name of the GroupByAggregation. Optional and can be used as an identifier of the requested aggregation in response. */
|
|
1240
1288
|
name?: string | null;
|
|
1241
|
-
/** Path of the field to group by. For example, "type" */
|
|
1242
1289
|
fieldPath?: string;
|
|
1243
1290
|
}
|
|
1244
1291
|
/** @oneof */
|
|
1245
1292
|
export interface GroupByAggregationKindOneOf {
|
|
1246
|
-
/** Value aggregation */
|
|
1247
1293
|
value?: ValueAggregation;
|
|
1248
1294
|
}
|
|
1249
1295
|
export interface SearchDetails {
|
|
@@ -1283,96 +1329,110 @@ export interface CursorPagingMetadata {
|
|
|
1283
1329
|
hasNext?: boolean | null;
|
|
1284
1330
|
}
|
|
1285
1331
|
export interface AggregationData {
|
|
1286
|
-
/**
|
|
1332
|
+
/** key = aggregation name (as derived from search request) */
|
|
1287
1333
|
results?: AggregationResults[];
|
|
1288
1334
|
}
|
|
1289
1335
|
export interface ValueAggregationResult {
|
|
1290
|
-
/** Value */
|
|
1291
1336
|
value?: string;
|
|
1292
|
-
/** Count */
|
|
1293
1337
|
count?: number;
|
|
1294
1338
|
}
|
|
1295
1339
|
export interface RangeAggregationResult {
|
|
1296
|
-
/** Inclusive lower bound of the range. */
|
|
1297
1340
|
from?: number | null;
|
|
1298
|
-
/** Exclusive upper bound of the range. */
|
|
1299
1341
|
to?: number | null;
|
|
1300
|
-
/** Count */
|
|
1301
1342
|
count?: number;
|
|
1302
1343
|
}
|
|
1303
1344
|
export interface NestedAggregationResults extends NestedAggregationResultsResultOneOf {
|
|
1304
|
-
/** Value results */
|
|
1305
1345
|
values?: ValueResults;
|
|
1306
|
-
/** Range results */
|
|
1307
1346
|
ranges?: RangeResults;
|
|
1308
|
-
/** Scalar result */
|
|
1309
1347
|
scalar?: ScalarResult;
|
|
1310
|
-
/** Name of the requested nested aggregation. */
|
|
1311
1348
|
name?: string;
|
|
1312
|
-
/** Aggregation type. Supported values: VALUE, RANGE, SCALAR. */
|
|
1313
1349
|
type?: AggregationType;
|
|
1314
|
-
/** Path of the field. For example, "singleResource.locationOptions.availableInAllLocations" */
|
|
1315
1350
|
fieldPath?: string;
|
|
1316
1351
|
}
|
|
1317
1352
|
/** @oneof */
|
|
1318
1353
|
export interface NestedAggregationResultsResultOneOf {
|
|
1319
|
-
/** Value results */
|
|
1320
1354
|
values?: ValueResults;
|
|
1321
|
-
/** Range results */
|
|
1322
1355
|
ranges?: RangeResults;
|
|
1323
|
-
/** Scalar result */
|
|
1324
1356
|
scalar?: ScalarResult;
|
|
1325
1357
|
}
|
|
1326
1358
|
export interface ValueResults {
|
|
1327
|
-
/** Value aggregation results */
|
|
1328
1359
|
results?: ValueAggregationResult[];
|
|
1329
1360
|
}
|
|
1330
1361
|
export interface RangeResults {
|
|
1331
|
-
/** Aggregation results */
|
|
1332
1362
|
results?: RangeAggregationResult[];
|
|
1333
1363
|
}
|
|
1334
1364
|
export interface ScalarResult {
|
|
1335
|
-
/** Scalar type */
|
|
1336
1365
|
type?: ScalarType;
|
|
1337
|
-
/** Value */
|
|
1338
1366
|
value?: number;
|
|
1339
1367
|
}
|
|
1340
1368
|
export interface NestedValueAggregationResult {
|
|
1341
|
-
/** Value */
|
|
1342
1369
|
value?: string;
|
|
1343
|
-
/** Nested results */
|
|
1344
1370
|
nestedResults?: NestedAggregationResults;
|
|
1345
1371
|
}
|
|
1372
|
+
export interface ValueResult {
|
|
1373
|
+
value?: string;
|
|
1374
|
+
count?: number | null;
|
|
1375
|
+
}
|
|
1376
|
+
export interface RangeResult {
|
|
1377
|
+
from?: number | null;
|
|
1378
|
+
to?: number | null;
|
|
1379
|
+
count?: number | null;
|
|
1380
|
+
}
|
|
1381
|
+
export interface NestedResultsScalarResult {
|
|
1382
|
+
value?: number;
|
|
1383
|
+
}
|
|
1384
|
+
export interface NestedResultValue extends NestedResultValueResultOneOf {
|
|
1385
|
+
value?: ValueResult;
|
|
1386
|
+
range?: RangeResult;
|
|
1387
|
+
scalar?: NestedResultsScalarResult;
|
|
1388
|
+
dateHistogram?: ValueResult;
|
|
1389
|
+
}
|
|
1390
|
+
/** @oneof */
|
|
1391
|
+
export interface NestedResultValueResultOneOf {
|
|
1392
|
+
value?: ValueResult;
|
|
1393
|
+
range?: RangeResult;
|
|
1394
|
+
scalar?: NestedResultsScalarResult;
|
|
1395
|
+
dateHistogram?: ValueResult;
|
|
1396
|
+
}
|
|
1397
|
+
export interface Results {
|
|
1398
|
+
results?: Record<string, NestedResultValue>;
|
|
1399
|
+
}
|
|
1400
|
+
export interface DateHistogramResult {
|
|
1401
|
+
value?: string;
|
|
1402
|
+
count?: number;
|
|
1403
|
+
}
|
|
1346
1404
|
export interface GroupByValueResults {
|
|
1347
|
-
/** Nested value aggregation results */
|
|
1348
1405
|
results?: NestedValueAggregationResult[];
|
|
1349
1406
|
}
|
|
1407
|
+
export interface DateHistogramResults {
|
|
1408
|
+
results?: DateHistogramResult[];
|
|
1409
|
+
}
|
|
1410
|
+
/**
|
|
1411
|
+
* results of `NESTED` aggregation type in a flattened form
|
|
1412
|
+
* aggregations in resulting array are keyed by requested aggregation `name`.
|
|
1413
|
+
*/
|
|
1414
|
+
export interface NestedResults {
|
|
1415
|
+
results?: Results[];
|
|
1416
|
+
}
|
|
1350
1417
|
export interface AggregationResults extends AggregationResultsResultOneOf {
|
|
1351
|
-
/** Value results */
|
|
1352
1418
|
values?: ValueResults;
|
|
1353
|
-
/** Range results */
|
|
1354
1419
|
ranges?: RangeResults;
|
|
1355
|
-
/** Scalar result */
|
|
1356
1420
|
scalar?: ScalarResult;
|
|
1357
|
-
/** Group by value results */
|
|
1358
1421
|
groupedByValue?: GroupByValueResults;
|
|
1359
|
-
|
|
1422
|
+
dateHistogram?: DateHistogramResults;
|
|
1423
|
+
nested?: NestedResults;
|
|
1360
1424
|
name?: string;
|
|
1361
|
-
/** Aggregation type. Supported values: VALUE, RANGE, SCALAR. */
|
|
1362
1425
|
type?: AggregationType;
|
|
1363
|
-
/** Path of the field. For example, "singleResource.locationOptions.availableInAllLocations" */
|
|
1364
1426
|
fieldPath?: string;
|
|
1365
1427
|
}
|
|
1366
1428
|
/** @oneof */
|
|
1367
1429
|
export interface AggregationResultsResultOneOf {
|
|
1368
|
-
/** Value results */
|
|
1369
1430
|
values?: ValueResults;
|
|
1370
|
-
/** Range results */
|
|
1371
1431
|
ranges?: RangeResults;
|
|
1372
|
-
/** Scalar result */
|
|
1373
1432
|
scalar?: ScalarResult;
|
|
1374
|
-
/** Group by value results */
|
|
1375
1433
|
groupedByValue?: GroupByValueResults;
|
|
1434
|
+
dateHistogram?: DateHistogramResults;
|
|
1435
|
+
nested?: NestedResults;
|
|
1376
1436
|
}
|
|
1377
1437
|
export interface QueryPoliciesRequest {
|
|
1378
1438
|
/** WQL expression. */
|