@wix/auto_sdk_bookings_resources 1.0.28 → 1.0.30
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/{bookings-resources-v2-resource-resources.universal-D9QXPtmj.d.ts → bookings-resources-v2-resource-resources.universal-RnzqwcCV.d.ts} +230 -178
- package/build/cjs/index.d.ts +9 -10
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +204 -153
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-resources-v2-resource-resources.universal-D9QXPtmj.d.mts → bookings-resources-v2-resource-resources.universal-RnzqwcCV.d.mts} +230 -178
- package/build/es/index.d.mts +9 -10
- package/build/es/index.mjs.map +1 -1
- package/build/es/meta.d.mts +204 -153
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-resources-v2-resource-resources.universal-D9QXPtmj.d.ts → bookings-resources-v2-resource-resources.universal-RnzqwcCV.d.ts} +230 -178
- package/build/internal/cjs/index.d.ts +9 -10
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +204 -153
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{bookings-resources-v2-resource-resources.universal-D9QXPtmj.d.mts → bookings-resources-v2-resource-resources.universal-RnzqwcCV.d.mts} +230 -178
- package/build/internal/es/index.d.mts +9 -10
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +204 -153
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z as CreateResourceRequest$1, D as CreateResourceResponse$1, F as BulkCreateResourcesRequest$1, a as BulkCreateResourcesResponse$1, O as GetResourceRequest$1, P as GetResourceResponse$1, a4 as UpdateResourceRequest$1, a5 as UpdateResourceResponse$1, a6 as BulkUpdateResourcesRequest$1, c as BulkUpdateResourcesResponse$1, a7 as DeleteResourceRequest$1, a8 as DeleteResourceResponse$1, a9 as BulkDeleteResourcesRequest$1, d as BulkDeleteResourcesResponse$1, aa as SearchResourcesRequest$1, S as SearchResourcesResponse$1, aO as QueryResourcesRequest$1, aR as QueryResourcesResponse$1, aS as CountResourcesRequest$1, g as CountResourcesResponse$1 } from './bookings-resources-v2-resource-resources.universal-
|
|
1
|
+
import { z as CreateResourceRequest$1, D as CreateResourceResponse$1, F as BulkCreateResourcesRequest$1, a as BulkCreateResourcesResponse$1, O as GetResourceRequest$1, P as GetResourceResponse$1, a4 as UpdateResourceRequest$1, a5 as UpdateResourceResponse$1, a6 as BulkUpdateResourcesRequest$1, c as BulkUpdateResourcesResponse$1, a7 as DeleteResourceRequest$1, a8 as DeleteResourceResponse$1, a9 as BulkDeleteResourcesRequest$1, d as BulkDeleteResourcesResponse$1, aa as SearchResourcesRequest$1, S as SearchResourcesResponse$1, aO as QueryResourcesRequest$1, aR as QueryResourcesResponse$1, aS as CountResourcesRequest$1, g as CountResourcesResponse$1 } from './bookings-resources-v2-resource-resources.universal-RnzqwcCV.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -246,26 +246,43 @@ interface CursorPaging {
|
|
|
246
246
|
cursor?: string | null;
|
|
247
247
|
}
|
|
248
248
|
interface CursorPagingMetadata {
|
|
249
|
-
/**
|
|
249
|
+
/**
|
|
250
|
+
* Number of items returned in the current response page.
|
|
251
|
+
*
|
|
252
|
+
* This count reflects the actual number of items in the current result set,
|
|
253
|
+
* which may be less than the requested limit if fewer items are available.
|
|
254
|
+
*/
|
|
250
255
|
count?: number | null;
|
|
251
|
-
/**
|
|
256
|
+
/**
|
|
257
|
+
* Navigation cursors for moving between result pages.
|
|
258
|
+
*
|
|
259
|
+
* Contains `next` and `prev` cursor tokens for pagination. Use the `next` cursor
|
|
260
|
+
* to retrieve subsequent pages and `prev` cursor to go back to previous pages.
|
|
261
|
+
* Learn more about cursor paging in the [API Query Language guide](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging).
|
|
262
|
+
*/
|
|
252
263
|
cursors?: Cursors;
|
|
253
264
|
/**
|
|
254
|
-
*
|
|
265
|
+
* Indicates whether additional results are available beyond the current page.
|
|
255
266
|
*
|
|
256
|
-
*
|
|
257
|
-
*
|
|
267
|
+
* - `true`: More results exist and can be retrieved using the `next` cursor.
|
|
268
|
+
* - `false`: This is the final page of results.
|
|
258
269
|
*/
|
|
259
270
|
hasNext?: boolean | null;
|
|
260
271
|
}
|
|
261
272
|
interface Cursors {
|
|
262
273
|
/**
|
|
263
|
-
* Cursor
|
|
274
|
+
* Cursor token for retrieving the next page of results.
|
|
275
|
+
*
|
|
276
|
+
* Use this token in subsequent requests to continue pagination forward.
|
|
277
|
+
* Value is `null` when on the last page of results.
|
|
264
278
|
* @maxLength 16000
|
|
265
279
|
*/
|
|
266
280
|
next?: string | null;
|
|
267
281
|
/**
|
|
268
|
-
* Cursor
|
|
282
|
+
* Cursor token for retrieving the previous page of results.
|
|
283
|
+
*
|
|
284
|
+
* Use this token to navigate backwards through result pages.
|
|
285
|
+
* Value is `null` when on the first page of results.
|
|
269
286
|
* @maxLength 16000
|
|
270
287
|
*/
|
|
271
288
|
prev?: string | null;
|
|
@@ -329,40 +346,43 @@ interface BulkDeleteResourcesResponse {
|
|
|
329
346
|
}
|
|
330
347
|
interface SearchResourcesRequest {
|
|
331
348
|
/**
|
|
332
|
-
* Search
|
|
333
|
-
*
|
|
334
|
-
*
|
|
349
|
+
* Search criteria including filter, sort, aggregations, and paging options.
|
|
350
|
+
*
|
|
351
|
+
* Refer to the supported filters article ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting)) for complete filter and sorting options.
|
|
335
352
|
*/
|
|
336
353
|
search?: CursorSearch;
|
|
337
354
|
}
|
|
338
355
|
interface CursorSearch extends CursorSearchPagingMethodOneOf {
|
|
339
356
|
/**
|
|
340
|
-
* Cursor
|
|
341
|
-
*
|
|
357
|
+
* Cursor-based paging for result navigation. When requesting `cursor_paging.cursor`,
|
|
358
|
+
* `filter`, `sort`, or `search` can't be specified.
|
|
342
359
|
*/
|
|
343
360
|
cursorPaging?: CursorPaging;
|
|
344
|
-
/**
|
|
361
|
+
/**
|
|
362
|
+
* Filter object for narrowing search results. For example, to return only resources available at specific business locations: `"filter": {"single_resource.location_options.specific_location_options.business_locations.location_id": {"$in": ["location-id-1", "location-id-2"]}}`.
|
|
363
|
+
*
|
|
364
|
+
* Learn more about the filter format in the supported filters article ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting)).
|
|
365
|
+
*/
|
|
345
366
|
filter?: Record<string, any> | null;
|
|
346
367
|
/**
|
|
347
|
-
*
|
|
368
|
+
* Array of sort objects specifying result order. For example, to sort by resource name in ascending order: `"sort": [{"fieldName": "name", "order": "ASC"}]`.
|
|
369
|
+
*
|
|
370
|
+
* Learn more about the sort format in the supported filters article ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting)).
|
|
348
371
|
* @maxSize 10
|
|
349
372
|
*/
|
|
350
373
|
sort?: Sorting[];
|
|
351
374
|
/**
|
|
352
|
-
* Aggregations
|
|
375
|
+
* Aggregations for grouping data into categories (facets) and providing summaries for each category.
|
|
376
|
+
* For example, use aggregations to categorize search results by resource type, management type, or location availability.
|
|
353
377
|
* @maxSize 10
|
|
354
378
|
*/
|
|
355
379
|
aggregations?: Aggregation[];
|
|
356
|
-
/** Free text to match in searchable fields */
|
|
380
|
+
/** Free text to match in searchable fields. */
|
|
357
381
|
search?: SearchDetails;
|
|
358
382
|
/**
|
|
359
|
-
* UTC offset
|
|
360
|
-
* ISO 8601 UTC offsets, such as +02:00 or -06:00,
|
|
361
|
-
* and IANA time zone IDs, such as Europe/Rome
|
|
383
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) or [ISO 8601 UTC offset format](https://en.wikipedia.org/wiki/ISO_8601#Time_offsets_from_UTC) for adjusting time fields in the specified filters and returned aggregation data. For example, `America/New_York`, `UTC`, or `+02:00`.
|
|
362
384
|
*
|
|
363
|
-
*
|
|
364
|
-
* You may override this behavior in a specific filter by providing
|
|
365
|
-
* timestamps including time zone. e.g. `"2023-12-20T10:52:34.795Z"`
|
|
385
|
+
* Default: Time zone specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
366
386
|
* @maxLength 50
|
|
367
387
|
*/
|
|
368
388
|
timeZone?: string | null;
|
|
@@ -370,8 +390,8 @@ interface CursorSearch extends CursorSearchPagingMethodOneOf {
|
|
|
370
390
|
/** @oneof */
|
|
371
391
|
interface CursorSearchPagingMethodOneOf {
|
|
372
392
|
/**
|
|
373
|
-
* Cursor
|
|
374
|
-
*
|
|
393
|
+
* Cursor-based paging for result navigation. When requesting `cursor_paging.cursor`,
|
|
394
|
+
* `filter`, `sort`, or `search` can't be specified.
|
|
375
395
|
*/
|
|
376
396
|
cursorPaging?: CursorPaging;
|
|
377
397
|
}
|
|
@@ -391,31 +411,31 @@ declare enum SortOrder {
|
|
|
391
411
|
/** @enumType */
|
|
392
412
|
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
393
413
|
interface Aggregation extends AggregationKindOneOf {
|
|
394
|
-
/** Value aggregation */
|
|
414
|
+
/** Value aggregation configuration. */
|
|
395
415
|
value?: ValueAggregation;
|
|
396
|
-
/** Range aggregation */
|
|
416
|
+
/** Range aggregation configuration. */
|
|
397
417
|
range?: RangeAggregation;
|
|
398
|
-
/** Scalar aggregation */
|
|
418
|
+
/** Scalar aggregation configuration. */
|
|
399
419
|
scalar?: ScalarAggregation;
|
|
400
|
-
/** Date histogram aggregation */
|
|
420
|
+
/** Date histogram aggregation configuration. */
|
|
401
421
|
dateHistogram?: DateHistogramAggregation;
|
|
402
|
-
/** Nested aggregation */
|
|
422
|
+
/** Nested aggregation configuration. */
|
|
403
423
|
nested?: NestedAggregation;
|
|
404
424
|
/**
|
|
405
|
-
*
|
|
425
|
+
* Aggregation name, returned in `aggregations.results.name`.
|
|
406
426
|
* @maxLength 100
|
|
407
427
|
*/
|
|
408
428
|
name?: string | null;
|
|
409
|
-
/** Type of aggregation
|
|
429
|
+
/** Type of aggregation. Client must specify matching aggregation field below. */
|
|
410
430
|
type?: AggregationTypeWithLiterals;
|
|
411
431
|
/**
|
|
412
|
-
* Field to aggregate by
|
|
432
|
+
* Field to aggregate by. Use dot notation to specify a JSON path. For example `name` or `locationOptions.businessLocations.locationId`.
|
|
413
433
|
* @maxLength 200
|
|
414
434
|
*/
|
|
415
435
|
fieldPath?: string;
|
|
416
436
|
/**
|
|
417
|
-
*
|
|
418
|
-
* @deprecated
|
|
437
|
+
* Deprecated. Use `nested` instead.
|
|
438
|
+
* @deprecated Deprecated. Use `nested` instead.
|
|
419
439
|
* @replacedBy kind.nested
|
|
420
440
|
* @targetRemovalDate 2024-03-30
|
|
421
441
|
*/
|
|
@@ -423,108 +443,123 @@ interface Aggregation extends AggregationKindOneOf {
|
|
|
423
443
|
}
|
|
424
444
|
/** @oneof */
|
|
425
445
|
interface AggregationKindOneOf {
|
|
426
|
-
/** Value aggregation */
|
|
446
|
+
/** Value aggregation configuration. */
|
|
427
447
|
value?: ValueAggregation;
|
|
428
|
-
/** Range aggregation */
|
|
448
|
+
/** Range aggregation configuration. */
|
|
429
449
|
range?: RangeAggregation;
|
|
430
|
-
/** Scalar aggregation */
|
|
450
|
+
/** Scalar aggregation configuration. */
|
|
431
451
|
scalar?: ScalarAggregation;
|
|
432
|
-
/** Date histogram aggregation */
|
|
452
|
+
/** Date histogram aggregation configuration. */
|
|
433
453
|
dateHistogram?: DateHistogramAggregation;
|
|
434
|
-
/** Nested aggregation */
|
|
454
|
+
/** Nested aggregation configuration. */
|
|
435
455
|
nested?: NestedAggregation;
|
|
436
456
|
}
|
|
437
457
|
interface RangeBucket {
|
|
438
|
-
/** Inclusive lower bound of the range. Required if to
|
|
458
|
+
/** Inclusive lower bound of the range. Required if `to` isn't specified. */
|
|
439
459
|
from?: number | null;
|
|
440
|
-
/** Exclusive upper bound of the range. Required if from
|
|
460
|
+
/** Exclusive upper bound of the range. Required if `from` isn't specified. */
|
|
441
461
|
to?: number | null;
|
|
442
462
|
}
|
|
443
463
|
declare enum SortType {
|
|
444
|
-
/**
|
|
464
|
+
/** Number of matches in the results. */
|
|
445
465
|
COUNT = "COUNT",
|
|
446
|
-
/**
|
|
466
|
+
/** Alphabetically by the field value. */
|
|
447
467
|
VALUE = "VALUE"
|
|
448
468
|
}
|
|
449
469
|
/** @enumType */
|
|
450
470
|
type SortTypeWithLiterals = SortType | 'COUNT' | 'VALUE';
|
|
451
471
|
declare enum SortDirection {
|
|
452
|
-
/**
|
|
472
|
+
/** Descending order. */
|
|
453
473
|
DESC = "DESC",
|
|
454
|
-
/**
|
|
474
|
+
/** Ascending order. */
|
|
455
475
|
ASC = "ASC"
|
|
456
476
|
}
|
|
457
477
|
/** @enumType */
|
|
458
478
|
type SortDirectionWithLiterals = SortDirection | 'DESC' | 'ASC';
|
|
459
479
|
declare enum MissingValues {
|
|
460
|
-
/**
|
|
480
|
+
/** Exclude missing values from the aggregation results. */
|
|
461
481
|
EXCLUDE = "EXCLUDE",
|
|
462
|
-
/**
|
|
482
|
+
/** Include missing values in the aggregation results. */
|
|
463
483
|
INCLUDE = "INCLUDE"
|
|
464
484
|
}
|
|
465
485
|
/** @enumType */
|
|
466
486
|
type MissingValuesWithLiterals = MissingValues | 'EXCLUDE' | 'INCLUDE';
|
|
467
487
|
interface IncludeMissingValuesOptions {
|
|
468
488
|
/**
|
|
469
|
-
*
|
|
489
|
+
* Custom bucket name for missing values.
|
|
490
|
+
*
|
|
491
|
+
* Default values:
|
|
492
|
+
* - string: `N/A`
|
|
493
|
+
* - int: `0`
|
|
494
|
+
* - bool: `false`
|
|
470
495
|
* @maxLength 20
|
|
471
496
|
*/
|
|
472
497
|
addToBucket?: string;
|
|
473
498
|
}
|
|
474
499
|
declare enum ScalarType {
|
|
475
500
|
UNKNOWN_SCALAR_TYPE = "UNKNOWN_SCALAR_TYPE",
|
|
476
|
-
/**
|
|
501
|
+
/** Total number of distinct values. */
|
|
477
502
|
COUNT_DISTINCT = "COUNT_DISTINCT",
|
|
478
|
-
/** Minimum value */
|
|
503
|
+
/** Minimum value. */
|
|
479
504
|
MIN = "MIN",
|
|
480
|
-
/** Maximum value */
|
|
505
|
+
/** Maximum value. */
|
|
481
506
|
MAX = "MAX"
|
|
482
507
|
}
|
|
483
508
|
/** @enumType */
|
|
484
509
|
type ScalarTypeWithLiterals = ScalarType | 'UNKNOWN_SCALAR_TYPE' | 'COUNT_DISTINCT' | 'MIN' | 'MAX';
|
|
485
510
|
interface ValueAggregation extends ValueAggregationOptionsOneOf {
|
|
486
|
-
/** Options for including missing values */
|
|
511
|
+
/** Options for including missing values in the aggregation results. */
|
|
487
512
|
includeOptions?: IncludeMissingValuesOptions;
|
|
488
|
-
/**
|
|
513
|
+
/** Whether to sort by number of matches or value of the field. */
|
|
489
514
|
sortType?: SortTypeWithLiterals;
|
|
490
|
-
/**
|
|
515
|
+
/** Whether to sort in ascending or descending order. */
|
|
491
516
|
sortDirection?: SortDirectionWithLiterals;
|
|
492
|
-
/**
|
|
517
|
+
/**
|
|
518
|
+
* Number of aggregations to return.
|
|
519
|
+
*
|
|
520
|
+
* Min: `1`
|
|
521
|
+
* Max: `250`
|
|
522
|
+
* Default: `10`
|
|
523
|
+
*/
|
|
493
524
|
limit?: number | null;
|
|
494
|
-
/**
|
|
525
|
+
/**
|
|
526
|
+
* Whether missing values should be included or excluded from the aggregation results.
|
|
527
|
+
*
|
|
528
|
+
* Default: `EXCLUDE`
|
|
529
|
+
*/
|
|
495
530
|
missingValues?: MissingValuesWithLiterals;
|
|
496
531
|
}
|
|
497
532
|
/** @oneof */
|
|
498
533
|
interface ValueAggregationOptionsOneOf {
|
|
499
|
-
/** Options for including missing values */
|
|
534
|
+
/** Options for including missing values in the aggregation results. */
|
|
500
535
|
includeOptions?: IncludeMissingValuesOptions;
|
|
501
536
|
}
|
|
502
537
|
declare enum NestedAggregationType {
|
|
503
538
|
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
504
|
-
/**
|
|
539
|
+
/** Calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. */
|
|
505
540
|
VALUE = "VALUE",
|
|
506
|
-
/**
|
|
541
|
+
/** Calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. */
|
|
507
542
|
RANGE = "RANGE",
|
|
508
|
-
/**
|
|
543
|
+
/** Calculates a single numerical value from a dataset, summarizing the dataset into 1 key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */
|
|
509
544
|
SCALAR = "SCALAR",
|
|
510
|
-
/**
|
|
545
|
+
/** Calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). */
|
|
511
546
|
DATE_HISTOGRAM = "DATE_HISTOGRAM"
|
|
512
547
|
}
|
|
513
548
|
/** @enumType */
|
|
514
549
|
type NestedAggregationTypeWithLiterals = NestedAggregationType | 'UNKNOWN_AGGREGATION_TYPE' | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM';
|
|
515
550
|
interface RangeAggregation {
|
|
516
551
|
/**
|
|
517
|
-
* List of range buckets
|
|
552
|
+
* List of range buckets defining the ranges for aggregation. During aggregation, each entity is placed in the first bucket where its value falls within the specified range bounds.
|
|
518
553
|
* @maxSize 50
|
|
519
554
|
*/
|
|
520
555
|
buckets?: RangeBucket[];
|
|
521
556
|
}
|
|
522
557
|
interface ScalarAggregation {
|
|
523
|
-
/**
|
|
558
|
+
/** Operator for the scalar aggregation, for example `COUNT_DISTINCT`, `MIN`, `MAX`. */
|
|
524
559
|
type?: ScalarTypeWithLiterals;
|
|
525
560
|
}
|
|
526
561
|
interface DateHistogramAggregation {
|
|
527
|
-
/**
|
|
562
|
+
/** Time interval for date histogram aggregation, for example `DAY`, `HOUR`, `MONTH`. */
|
|
528
563
|
interval?: IntervalWithLiterals;
|
|
529
564
|
}
|
|
530
565
|
declare enum Interval {
|
|
@@ -547,315 +582,331 @@ declare enum Interval {
|
|
|
547
582
|
/** @enumType */
|
|
548
583
|
type IntervalWithLiterals = Interval | 'UNKNOWN_INTERVAL' | 'YEAR' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR' | 'MINUTE' | 'SECOND';
|
|
549
584
|
interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
|
|
550
|
-
/** Value aggregation */
|
|
585
|
+
/** Value aggregation configuration. Calculates the distribution of field values within the dataset. */
|
|
551
586
|
value?: ValueAggregation;
|
|
552
|
-
/** Range aggregation */
|
|
587
|
+
/** Range aggregation configuration. Calculates counts within user-defined value ranges. */
|
|
553
588
|
range?: RangeAggregation;
|
|
554
|
-
/** Scalar aggregation */
|
|
589
|
+
/** Scalar aggregation configuration. Calculates single numerical metrics like count, min, max, sum, or average. */
|
|
555
590
|
scalar?: ScalarAggregation;
|
|
556
|
-
/** Date histogram aggregation */
|
|
591
|
+
/** Date histogram aggregation configuration. Calculates counts within time intervals. */
|
|
557
592
|
dateHistogram?: DateHistogramAggregation;
|
|
558
593
|
/**
|
|
559
|
-
* User-defined name of aggregation
|
|
594
|
+
* User-defined name of aggregation. Must be unique and will appear in aggregation results.
|
|
560
595
|
* @maxLength 100
|
|
561
596
|
*/
|
|
562
597
|
name?: string | null;
|
|
563
|
-
/** Type of aggregation
|
|
598
|
+
/** Type of aggregation. Client must specify matching aggregation field below. */
|
|
564
599
|
type?: NestedAggregationTypeWithLiterals;
|
|
565
600
|
/**
|
|
566
|
-
*
|
|
601
|
+
* Path to the field to aggregate by in dot notation. For example `name` or `locationOptions.businessLocations.locationId`.
|
|
567
602
|
* @maxLength 200
|
|
568
603
|
*/
|
|
569
604
|
fieldPath?: string;
|
|
570
605
|
}
|
|
571
606
|
/** @oneof */
|
|
572
607
|
interface NestedAggregationItemKindOneOf {
|
|
573
|
-
/** Value aggregation */
|
|
608
|
+
/** Value aggregation configuration. Calculates the distribution of field values within the dataset. */
|
|
574
609
|
value?: ValueAggregation;
|
|
575
|
-
/** Range aggregation */
|
|
610
|
+
/** Range aggregation configuration. Calculates counts within user-defined value ranges. */
|
|
576
611
|
range?: RangeAggregation;
|
|
577
|
-
/** Scalar aggregation */
|
|
612
|
+
/** Scalar aggregation configuration. Calculates single numerical metrics like count, min, max, sum, or average. */
|
|
578
613
|
scalar?: ScalarAggregation;
|
|
579
|
-
/** Date histogram aggregation */
|
|
614
|
+
/** Date histogram aggregation configuration. Calculates counts within time intervals. */
|
|
580
615
|
dateHistogram?: DateHistogramAggregation;
|
|
581
616
|
}
|
|
582
617
|
declare enum AggregationType {
|
|
583
618
|
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
584
|
-
/**
|
|
619
|
+
/** Calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. */
|
|
585
620
|
VALUE = "VALUE",
|
|
586
|
-
/**
|
|
621
|
+
/** Calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. */
|
|
587
622
|
RANGE = "RANGE",
|
|
588
|
-
/**
|
|
623
|
+
/** Calculates a single numerical value from a dataset, summarizing the dataset into 1 key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */
|
|
589
624
|
SCALAR = "SCALAR",
|
|
590
|
-
/**
|
|
625
|
+
/** Calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). */
|
|
591
626
|
DATE_HISTOGRAM = "DATE_HISTOGRAM",
|
|
592
|
-
/**
|
|
627
|
+
/** Flattened list of aggregations, where each aggregation is nested within previous 1. */
|
|
593
628
|
NESTED = "NESTED"
|
|
594
629
|
}
|
|
595
630
|
/** @enumType */
|
|
596
631
|
type AggregationTypeWithLiterals = AggregationType | 'UNKNOWN_AGGREGATION_TYPE' | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM' | 'NESTED';
|
|
597
|
-
/** Nested aggregation
|
|
632
|
+
/** Nested aggregation for multi-level faceted search. Allows exploring large amounts of data through multiple levels of categorization, where each subsequent aggregation is nested within the previous aggregation to create hierarchical data summaries. */
|
|
598
633
|
interface NestedAggregation {
|
|
599
634
|
/**
|
|
600
|
-
* Flattened list of aggregations
|
|
635
|
+
* Flattened list of aggregations where each next aggregation is nested within the previous 1.
|
|
601
636
|
* @minSize 2
|
|
602
637
|
* @maxSize 3
|
|
603
638
|
*/
|
|
604
639
|
nestedAggregations?: NestedAggregationItem[];
|
|
605
640
|
}
|
|
606
641
|
interface GroupByAggregation extends GroupByAggregationKindOneOf {
|
|
607
|
-
/** Value aggregation configuration */
|
|
642
|
+
/** Value aggregation configuration. */
|
|
608
643
|
value?: ValueAggregation;
|
|
609
644
|
/**
|
|
610
|
-
* User-defined name of aggregation
|
|
645
|
+
* User-defined name of aggregation. Must be unique and will appear in aggregation results.
|
|
611
646
|
* @maxLength 100
|
|
612
647
|
*/
|
|
613
648
|
name?: string | null;
|
|
614
649
|
/**
|
|
615
|
-
*
|
|
650
|
+
* Path to the field to aggregate by in dot notation. For example `name` or `locationOptions.businessLocations.locationId`.
|
|
616
651
|
* @maxLength 200
|
|
617
652
|
*/
|
|
618
653
|
fieldPath?: string;
|
|
619
654
|
}
|
|
620
655
|
/** @oneof */
|
|
621
656
|
interface GroupByAggregationKindOneOf {
|
|
622
|
-
/** Value aggregation configuration */
|
|
657
|
+
/** Value aggregation configuration. */
|
|
623
658
|
value?: ValueAggregation;
|
|
624
659
|
}
|
|
625
660
|
interface SearchDetails {
|
|
626
|
-
/** Defines
|
|
661
|
+
/** Search mode. Defines the search logic for combining multiple terms in the `expression`. */
|
|
627
662
|
mode?: ModeWithLiterals;
|
|
628
663
|
/**
|
|
629
|
-
* Search term or expression
|
|
664
|
+
* Search term or expression.
|
|
630
665
|
* @maxLength 100
|
|
631
666
|
*/
|
|
632
667
|
expression?: string | null;
|
|
633
668
|
/**
|
|
634
|
-
* Fields to search in. If
|
|
669
|
+
* Fields to search in. If the array is empty, all searchable fields are searched. Use dot notation to specify a JSON path. For example, `locationOptions.availableInAllLocations`.
|
|
635
670
|
* @maxLength 200
|
|
636
671
|
* @maxSize 20
|
|
637
672
|
*/
|
|
638
673
|
fields?: string[];
|
|
639
|
-
/**
|
|
674
|
+
/** Whether to enable the search function to use an algorithm to automatically find results that are close to the search expression, such as typos and declensions. */
|
|
640
675
|
fuzzy?: boolean;
|
|
641
676
|
}
|
|
642
677
|
declare enum Mode {
|
|
643
|
-
/**
|
|
678
|
+
/** At least 1 of the search terms must be present. */
|
|
644
679
|
OR = "OR",
|
|
645
|
-
/** All search terms must be present */
|
|
680
|
+
/** All search terms must be present. */
|
|
646
681
|
AND = "AND"
|
|
647
682
|
}
|
|
648
683
|
/** @enumType */
|
|
649
684
|
type ModeWithLiterals = Mode | 'OR' | 'AND';
|
|
650
685
|
interface SearchResourcesResponse {
|
|
651
|
-
/**
|
|
686
|
+
/**
|
|
687
|
+
* Retrieved resources that match the search criteria specified in the request.
|
|
688
|
+
*
|
|
689
|
+
* Each resource includes all available information such as name, type, management details,
|
|
690
|
+
* location options, working hour schedules, and availability configurations.
|
|
691
|
+
*/
|
|
652
692
|
resources?: Resource[];
|
|
653
|
-
/**
|
|
693
|
+
/**
|
|
694
|
+
* Cursor-based paging metadata for navigating through search results.
|
|
695
|
+
*
|
|
696
|
+
* Contains navigation information including the current page cursor, whether additional
|
|
697
|
+
* results are available, and result counts. Use the `next` cursor to fetch subsequent pages.
|
|
698
|
+
*/
|
|
654
699
|
pagingMetadata?: CursorPagingMetadata;
|
|
655
|
-
/**
|
|
700
|
+
/**
|
|
701
|
+
* Aggregation results derived from the aggregations specified in the search request.
|
|
702
|
+
*
|
|
703
|
+
* Provides analytical summaries such as resource counts by type, location distribution,
|
|
704
|
+
* management type statistics, or custom groupings. Only populated when aggregations
|
|
705
|
+
* are included in the search criteria.
|
|
706
|
+
*/
|
|
656
707
|
aggregationData?: AggregationData;
|
|
657
708
|
}
|
|
658
709
|
interface AggregationData {
|
|
659
710
|
/**
|
|
660
|
-
*
|
|
711
|
+
* Array of aggregation results, each containing the aggregation metadata and its calculated values for the specified search criteria.
|
|
661
712
|
* @maxSize 10000
|
|
662
713
|
*/
|
|
663
714
|
results?: AggregationResults[];
|
|
664
715
|
}
|
|
665
716
|
interface ValueAggregationResult {
|
|
666
717
|
/**
|
|
667
|
-
* Value of the field
|
|
718
|
+
* Value of the field.
|
|
668
719
|
* @maxLength 100
|
|
669
720
|
*/
|
|
670
721
|
value?: string;
|
|
671
|
-
/** Count of entities with this value */
|
|
722
|
+
/** Count of entities with this value. */
|
|
672
723
|
count?: number;
|
|
673
724
|
}
|
|
674
725
|
interface RangeAggregationResult {
|
|
675
|
-
/** Inclusive lower bound of the range */
|
|
726
|
+
/** Inclusive lower bound of the range. */
|
|
676
727
|
from?: number | null;
|
|
677
|
-
/** Exclusive upper bound of the range */
|
|
728
|
+
/** Exclusive upper bound of the range. */
|
|
678
729
|
to?: number | null;
|
|
679
|
-
/** Count of entities in this range */
|
|
730
|
+
/** Count of entities in this range. */
|
|
680
731
|
count?: number;
|
|
681
732
|
}
|
|
682
733
|
interface NestedAggregationResults extends NestedAggregationResultsResultOneOf {
|
|
683
|
-
/** Value aggregation results */
|
|
734
|
+
/** Value aggregation results. */
|
|
684
735
|
values?: ValueResults;
|
|
685
|
-
/** Range aggregation results */
|
|
736
|
+
/** Range aggregation results. */
|
|
686
737
|
ranges?: RangeResults;
|
|
687
|
-
/** Scalar aggregation results */
|
|
738
|
+
/** Scalar aggregation results. */
|
|
688
739
|
scalar?: AggregationResultsScalarResult;
|
|
689
740
|
/**
|
|
690
|
-
* User-defined name of aggregation, matches the one
|
|
741
|
+
* User-defined name of aggregation, matches the one specified in request.
|
|
691
742
|
* @maxLength 100
|
|
692
743
|
*/
|
|
693
744
|
name?: string;
|
|
694
|
-
/** Type of aggregation that matches result */
|
|
745
|
+
/** Type of aggregation that matches result. */
|
|
695
746
|
type?: AggregationTypeWithLiterals;
|
|
696
747
|
/**
|
|
697
|
-
*
|
|
748
|
+
* Path to the field to aggregate by in dot notation. For example `name` or `locationOptions.businessLocations.locationId`.
|
|
698
749
|
* @maxLength 200
|
|
699
750
|
*/
|
|
700
751
|
fieldPath?: string;
|
|
701
752
|
}
|
|
702
753
|
/** @oneof */
|
|
703
754
|
interface NestedAggregationResultsResultOneOf {
|
|
704
|
-
/** Value aggregation results */
|
|
755
|
+
/** Value aggregation results. */
|
|
705
756
|
values?: ValueResults;
|
|
706
|
-
/** Range aggregation results */
|
|
757
|
+
/** Range aggregation results. */
|
|
707
758
|
ranges?: RangeResults;
|
|
708
|
-
/** Scalar aggregation results */
|
|
759
|
+
/** Scalar aggregation results. */
|
|
709
760
|
scalar?: AggregationResultsScalarResult;
|
|
710
761
|
}
|
|
711
762
|
interface ValueResults {
|
|
712
763
|
/**
|
|
713
|
-
*
|
|
764
|
+
* Array of value aggregation results, each containing a field value and the count of entities with that value.
|
|
714
765
|
* @maxSize 250
|
|
715
766
|
*/
|
|
716
767
|
results?: ValueAggregationResult[];
|
|
717
768
|
}
|
|
718
769
|
interface RangeResults {
|
|
719
770
|
/**
|
|
720
|
-
*
|
|
771
|
+
* Array of range aggregation results returned in the same order as requested, each containing range bounds and count of entities within that range.
|
|
721
772
|
* @maxSize 50
|
|
722
773
|
*/
|
|
723
774
|
results?: RangeAggregationResult[];
|
|
724
775
|
}
|
|
725
776
|
interface AggregationResultsScalarResult {
|
|
726
|
-
/** Type of scalar aggregation */
|
|
777
|
+
/** Type of scalar aggregation. */
|
|
727
778
|
type?: ScalarTypeWithLiterals;
|
|
728
|
-
/** Value of the scalar aggregation */
|
|
779
|
+
/** Value of the scalar aggregation. */
|
|
729
780
|
value?: number;
|
|
730
781
|
}
|
|
731
782
|
interface NestedValueAggregationResult {
|
|
732
783
|
/**
|
|
733
|
-
* Value of the field
|
|
784
|
+
* Value of the field.
|
|
734
785
|
* @maxLength 1000
|
|
735
786
|
*/
|
|
736
787
|
value?: string;
|
|
737
|
-
/** Nested aggregations */
|
|
788
|
+
/** Nested aggregations result data. */
|
|
738
789
|
nestedResults?: NestedAggregationResults;
|
|
739
790
|
}
|
|
740
791
|
interface ValueResult {
|
|
741
792
|
/**
|
|
742
|
-
* Value of the field
|
|
793
|
+
* Value of the field.
|
|
743
794
|
* @maxLength 1000
|
|
744
795
|
*/
|
|
745
796
|
value?: string;
|
|
746
|
-
/** Count of entities with this value */
|
|
797
|
+
/** Count of entities with this value. */
|
|
747
798
|
count?: number | null;
|
|
748
799
|
}
|
|
749
800
|
interface RangeResult {
|
|
750
|
-
/** Inclusive lower bound of the range */
|
|
801
|
+
/** Inclusive lower bound of the range. */
|
|
751
802
|
from?: number | null;
|
|
752
|
-
/** Exclusive upper bound of the range */
|
|
803
|
+
/** Exclusive upper bound of the range. */
|
|
753
804
|
to?: number | null;
|
|
754
|
-
/** Count of entities in this range */
|
|
805
|
+
/** Count of entities in this range. */
|
|
755
806
|
count?: number | null;
|
|
756
807
|
}
|
|
757
808
|
interface ScalarResult {
|
|
758
|
-
/** Value of the scalar aggregation */
|
|
809
|
+
/** Value of the scalar aggregation. */
|
|
759
810
|
value?: number;
|
|
760
811
|
}
|
|
761
812
|
interface NestedResultValue extends NestedResultValueResultOneOf {
|
|
762
|
-
/** Value aggregation result */
|
|
813
|
+
/** Value aggregation result. */
|
|
763
814
|
value?: ValueResult;
|
|
764
|
-
/** Range aggregation result */
|
|
815
|
+
/** Range aggregation result. */
|
|
765
816
|
range?: RangeResult;
|
|
766
|
-
/** Scalar aggregation result */
|
|
817
|
+
/** Scalar aggregation result. */
|
|
767
818
|
scalar?: ScalarResult;
|
|
768
|
-
/** Date histogram aggregation result */
|
|
819
|
+
/** Date histogram aggregation result. */
|
|
769
820
|
dateHistogram?: ValueResult;
|
|
770
821
|
}
|
|
771
822
|
/** @oneof */
|
|
772
823
|
interface NestedResultValueResultOneOf {
|
|
773
|
-
/** Value aggregation result */
|
|
824
|
+
/** Value aggregation result. */
|
|
774
825
|
value?: ValueResult;
|
|
775
|
-
/** Range aggregation result */
|
|
826
|
+
/** Range aggregation result. */
|
|
776
827
|
range?: RangeResult;
|
|
777
|
-
/** Scalar aggregation result */
|
|
828
|
+
/** Scalar aggregation result. */
|
|
778
829
|
scalar?: ScalarResult;
|
|
779
|
-
/** Date histogram aggregation result */
|
|
830
|
+
/** Date histogram aggregation result. */
|
|
780
831
|
dateHistogram?: ValueResult;
|
|
781
832
|
}
|
|
782
833
|
interface Results {
|
|
783
|
-
/**
|
|
834
|
+
/** Map of nested aggregation results, keyed by aggregation name. */
|
|
784
835
|
results?: Record<string, NestedResultValue>;
|
|
785
836
|
}
|
|
786
837
|
interface DateHistogramResult {
|
|
787
838
|
/**
|
|
788
|
-
* Date in ISO 8601 format
|
|
839
|
+
* Date in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
789
840
|
* @maxLength 100
|
|
790
841
|
*/
|
|
791
842
|
value?: string;
|
|
792
|
-
/** Count of documents in the bucket */
|
|
843
|
+
/** Count of documents in the bucket. */
|
|
793
844
|
count?: number;
|
|
794
845
|
}
|
|
795
846
|
interface GroupByValueResults {
|
|
796
847
|
/**
|
|
797
|
-
*
|
|
848
|
+
* Array of nested value aggregation results, each containing a field value and the associated nested aggregation data.
|
|
798
849
|
* @maxSize 1000
|
|
799
850
|
*/
|
|
800
851
|
results?: NestedValueAggregationResult[];
|
|
801
852
|
}
|
|
802
853
|
interface DateHistogramResults {
|
|
803
854
|
/**
|
|
804
|
-
*
|
|
855
|
+
* Array of date histogram aggregation results, each containing a date bucket and its count.
|
|
805
856
|
* @maxSize 200
|
|
806
857
|
*/
|
|
807
858
|
results?: DateHistogramResult[];
|
|
808
859
|
}
|
|
809
860
|
/**
|
|
810
861
|
* Results of `NESTED` aggregation type in a flattened form
|
|
811
|
-
*
|
|
862
|
+
* Aggregations in resulting array are keyed by requested aggregation `name`.
|
|
812
863
|
*/
|
|
813
864
|
interface NestedResults {
|
|
814
865
|
/**
|
|
815
|
-
*
|
|
866
|
+
* Array of nested aggregation result groups, each containing multiple aggregation results.
|
|
816
867
|
* @maxSize 1000
|
|
817
868
|
*/
|
|
818
869
|
results?: Results[];
|
|
819
870
|
}
|
|
820
871
|
interface AggregationResults extends AggregationResultsResultOneOf {
|
|
821
|
-
/** Value aggregation results */
|
|
872
|
+
/** Value aggregation results. */
|
|
822
873
|
values?: ValueResults;
|
|
823
|
-
/** Range aggregation results */
|
|
874
|
+
/** Range aggregation results. */
|
|
824
875
|
ranges?: RangeResults;
|
|
825
|
-
/** Scalar aggregation results */
|
|
876
|
+
/** Scalar aggregation results. */
|
|
826
877
|
scalar?: AggregationResultsScalarResult;
|
|
827
|
-
/** Group by value aggregation results */
|
|
878
|
+
/** Group by value aggregation results. */
|
|
828
879
|
groupedByValue?: GroupByValueResults;
|
|
829
|
-
/** Date histogram aggregation results */
|
|
880
|
+
/** Date histogram aggregation results. */
|
|
830
881
|
dateHistogram?: DateHistogramResults;
|
|
831
|
-
/** Nested aggregation results */
|
|
882
|
+
/** Nested aggregation results. */
|
|
832
883
|
nested?: NestedResults;
|
|
833
884
|
/**
|
|
834
|
-
* User-defined name of aggregation as derived from search request
|
|
885
|
+
* User-defined name of aggregation as derived from search request.
|
|
835
886
|
* @maxLength 100
|
|
836
887
|
*/
|
|
837
888
|
name?: string;
|
|
838
|
-
/** Type of aggregation that must match
|
|
889
|
+
/** Type of aggregation that must match specified kind as derived from search request. */
|
|
839
890
|
type?: AggregationTypeWithLiterals;
|
|
840
891
|
/**
|
|
841
|
-
*
|
|
892
|
+
* Path to the field to aggregate by in dot notation. For example `name` or `locationOptions.businessLocations.locationId`.
|
|
842
893
|
* @maxLength 200
|
|
843
894
|
*/
|
|
844
895
|
fieldPath?: string;
|
|
845
896
|
}
|
|
846
897
|
/** @oneof */
|
|
847
898
|
interface AggregationResultsResultOneOf {
|
|
848
|
-
/** Value aggregation results */
|
|
899
|
+
/** Value aggregation results. */
|
|
849
900
|
values?: ValueResults;
|
|
850
|
-
/** Range aggregation results */
|
|
901
|
+
/** Range aggregation results. */
|
|
851
902
|
ranges?: RangeResults;
|
|
852
|
-
/** Scalar aggregation results */
|
|
903
|
+
/** Scalar aggregation results. */
|
|
853
904
|
scalar?: AggregationResultsScalarResult;
|
|
854
|
-
/** Group by value aggregation results */
|
|
905
|
+
/** Group by value aggregation results. */
|
|
855
906
|
groupedByValue?: GroupByValueResults;
|
|
856
|
-
/** Date histogram aggregation results */
|
|
907
|
+
/** Date histogram aggregation results. */
|
|
857
908
|
dateHistogram?: DateHistogramResults;
|
|
858
|
-
/** Nested aggregation results */
|
|
909
|
+
/** Nested aggregation results. */
|
|
859
910
|
nested?: NestedResults;
|
|
860
911
|
}
|
|
861
912
|
interface QueryResourcesRequest {
|