@wix/auto_sdk_bookings_services 1.0.61 → 1.0.63
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-services-v2-service-services.universal-DD93tnK_.d.ts → bookings-services-v2-service-services.universal-Cy9SqUQp.d.ts} +395 -326
- package/build/cjs/index.d.ts +5 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +202 -134
- package/build/es/{bookings-services-v2-service-services.universal-DD93tnK_.d.mts → bookings-services-v2-service-services.universal-Cy9SqUQp.d.mts} +395 -326
- package/build/es/index.d.mts +5 -3
- package/build/es/index.mjs.map +1 -1
- package/build/es/meta.d.mts +202 -134
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-DD93tnK_.d.ts → bookings-services-v2-service-services.universal-Cy9SqUQp.d.ts} +395 -326
- package/build/internal/cjs/index.d.ts +5 -3
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +202 -134
- package/build/internal/es/{bookings-services-v2-service-services.universal-DD93tnK_.d.mts → bookings-services-v2-service-services.universal-Cy9SqUQp.d.mts} +395 -326
- package/build/internal/es/index.d.mts +5 -3
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +202 -134
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bC as CreateServiceRequest$1, bD as CreateServiceResponse$1, bH as BulkCreateServicesRequest$1, a as BulkCreateServicesResponse$1, bM as GetServiceRequest$1, bN as GetServiceResponse$1, bS as UpdateServiceRequest$1, bT as UpdateServiceResponse$1, bU as BulkUpdateServicesRequest$1, c as BulkUpdateServicesResponse$1, bW as BulkUpdateServicesByFilterRequest$1, e as BulkUpdateServicesByFilterResponse$1, bX as DeleteServiceRequest$1, bZ as DeleteServiceResponse$1, b_ as BulkDeleteServicesRequest$1, g as BulkDeleteServicesResponse$1, b$ as BulkDeleteServicesByFilterRequest$1, i as BulkDeleteServicesByFilterResponse$1, c0 as QueryServicesRequest$1, c6 as QueryServicesResponse$1, c9 as SearchServicesRequest$1, l as SearchServicesResponse$1, cN as QueryPoliciesRequest$1, Q as QueryPoliciesResponse$1, cQ as QueryBookingFormsRequest$1, n as QueryBookingFormsResponse$1, cU as CountServicesRequest$1, p as CountServicesResponse$1, cV as QueryLocationsRequest$1, r as QueryLocationsResponse$1, c_ as QueryCategoriesRequest$1, t as QueryCategoriesResponse$1, d2 as SetServiceLocationsRequest$1, v as SetServiceLocationsResponse$1, d6 as EnablePricingPlansForServiceRequest$1, E as EnablePricingPlansForServiceResponse$1, d8 as DisablePricingPlansForServiceRequest$1, x as DisablePricingPlansForServiceResponse$1, d9 as SetCustomSlugRequest$1, z as SetCustomSlugResponse$1, da as ValidateSlugRequest$1, A as ValidateSlugResponse$1, db as CloneServiceRequest$1, F as CloneServiceResponse$1 } from './bookings-services-v2-service-services.universal-Cy9SqUQp.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/** The `service` object represents an offering that a business provides to its customers. */
|
|
@@ -1373,48 +1373,61 @@ interface PagingMetadataV2 {
|
|
|
1373
1373
|
}
|
|
1374
1374
|
interface Cursors {
|
|
1375
1375
|
/**
|
|
1376
|
-
* Cursor
|
|
1376
|
+
* Cursor token for retrieving the next page of results.
|
|
1377
|
+
*
|
|
1378
|
+
* Use this token in subsequent requests to continue pagination forward.
|
|
1379
|
+
* Value is `null` when on the last page of results.
|
|
1377
1380
|
* @maxLength 16000
|
|
1378
1381
|
*/
|
|
1379
1382
|
next?: string | null;
|
|
1380
1383
|
/**
|
|
1381
|
-
* Cursor
|
|
1384
|
+
* Cursor token for retrieving the previous page of results.
|
|
1385
|
+
*
|
|
1386
|
+
* Use this token to navigate backwards through result pages.
|
|
1387
|
+
* Value is `null` when on the first page of results.
|
|
1382
1388
|
* @maxLength 16000
|
|
1383
1389
|
*/
|
|
1384
1390
|
prev?: string | null;
|
|
1385
1391
|
}
|
|
1386
1392
|
interface SearchServicesRequest {
|
|
1387
|
-
/**
|
|
1393
|
+
/**
|
|
1394
|
+
* Search criteria including filter, sort, aggregations, and paging options.
|
|
1395
|
+
*
|
|
1396
|
+
* Refer to the supported filters article ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/filtering-and-sorting)) for complete filter and sorting options.
|
|
1397
|
+
*/
|
|
1388
1398
|
search: CursorSearch;
|
|
1389
1399
|
}
|
|
1390
1400
|
interface CursorSearch extends CursorSearchPagingMethodOneOf {
|
|
1391
1401
|
/**
|
|
1392
|
-
* Cursor
|
|
1393
|
-
*
|
|
1402
|
+
* Cursor-based paging for result navigation. When requesting `cursor_paging.cursor`,
|
|
1403
|
+
* `filter`, `sort`, or `search` can't be specified.
|
|
1394
1404
|
*/
|
|
1395
1405
|
cursorPaging?: CursorPaging;
|
|
1396
|
-
/**
|
|
1406
|
+
/**
|
|
1407
|
+
* Filter object for narrowing search results. For example, to return only services with specific payment options: `"filter": {"payment.options.online": true, "payment.options.in_person": false}`.
|
|
1408
|
+
*
|
|
1409
|
+
* Learn more about the filter format in the supported filters article ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/filtering-and-sorting)).
|
|
1410
|
+
*/
|
|
1397
1411
|
filter?: Record<string, any> | null;
|
|
1398
1412
|
/**
|
|
1399
|
-
*
|
|
1413
|
+
* Array of sort objects specifying result order. For example, to sort by creation date in descending order: `"sort": [{"fieldName": "createdDate", "order": "DESC"}]`.
|
|
1414
|
+
*
|
|
1415
|
+
* Learn more about the sort format in the supported filters article ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/filtering-and-sorting)).
|
|
1400
1416
|
* @maxSize 10
|
|
1401
1417
|
*/
|
|
1402
1418
|
sort?: Sorting[];
|
|
1403
1419
|
/**
|
|
1404
|
-
* Aggregations
|
|
1420
|
+
* Aggregations for grouping data into categories (facets) and providing summaries for each category.
|
|
1421
|
+
* For example, use aggregations to categorize search results by service type, payment options, or locations.
|
|
1405
1422
|
* @maxSize 10
|
|
1406
1423
|
*/
|
|
1407
1424
|
aggregations?: Aggregation[];
|
|
1408
|
-
/** Free text to match in searchable fields */
|
|
1425
|
+
/** Free text to match in searchable fields. */
|
|
1409
1426
|
search?: SearchDetails;
|
|
1410
1427
|
/**
|
|
1411
|
-
* UTC offset
|
|
1412
|
-
* ISO 8601 UTC offsets, such as +02:00 or -06:00,
|
|
1413
|
-
* and IANA time zone IDs, such as Europe/Rome
|
|
1428
|
+
* 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`.
|
|
1414
1429
|
*
|
|
1415
|
-
*
|
|
1416
|
-
* You may override this behavior in a specific filter by providing
|
|
1417
|
-
* timestamps including time zone. e.g. `"2023-12-20T10:52:34.795Z"`
|
|
1430
|
+
* Default: Time zone specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
1418
1431
|
* @maxLength 50
|
|
1419
1432
|
*/
|
|
1420
1433
|
timeZone?: string | null;
|
|
@@ -1422,37 +1435,37 @@ interface CursorSearch extends CursorSearchPagingMethodOneOf {
|
|
|
1422
1435
|
/** @oneof */
|
|
1423
1436
|
interface CursorSearchPagingMethodOneOf {
|
|
1424
1437
|
/**
|
|
1425
|
-
* Cursor
|
|
1426
|
-
*
|
|
1438
|
+
* Cursor-based paging for result navigation. When requesting `cursor_paging.cursor`,
|
|
1439
|
+
* `filter`, `sort`, or `search` can't be specified.
|
|
1427
1440
|
*/
|
|
1428
1441
|
cursorPaging?: CursorPaging;
|
|
1429
1442
|
}
|
|
1430
1443
|
interface Aggregation extends AggregationKindOneOf {
|
|
1431
|
-
/** Value aggregation */
|
|
1444
|
+
/** Value aggregation configuration. */
|
|
1432
1445
|
value?: ValueAggregation;
|
|
1433
|
-
/** Range aggregation */
|
|
1446
|
+
/** Range aggregation configuration. */
|
|
1434
1447
|
range?: RangeAggregation;
|
|
1435
|
-
/** Scalar aggregation */
|
|
1448
|
+
/** Scalar aggregation configuration. */
|
|
1436
1449
|
scalar?: ScalarAggregation;
|
|
1437
|
-
/** Date histogram aggregation */
|
|
1450
|
+
/** Date histogram aggregation configuration. */
|
|
1438
1451
|
dateHistogram?: DateHistogramAggregation;
|
|
1439
|
-
/** Nested aggregation */
|
|
1452
|
+
/** Nested aggregation configuration. */
|
|
1440
1453
|
nested?: NestedAggregation;
|
|
1441
1454
|
/**
|
|
1442
|
-
* User-defined name of aggregation
|
|
1455
|
+
* User-defined name of aggregation. Must be unique and will appear in aggregation results.
|
|
1443
1456
|
* @maxLength 100
|
|
1444
1457
|
*/
|
|
1445
1458
|
name?: string | null;
|
|
1446
|
-
/** Type of aggregation
|
|
1459
|
+
/** Type of aggregation. Client must specify matching aggregation field below. */
|
|
1447
1460
|
type?: AggregationTypeWithLiterals;
|
|
1448
1461
|
/**
|
|
1449
|
-
*
|
|
1462
|
+
* Path to the field to aggregate by in dot notation. For example `name` or `paymentOptions.online`.
|
|
1450
1463
|
* @maxLength 200
|
|
1451
1464
|
*/
|
|
1452
1465
|
fieldPath?: string;
|
|
1453
1466
|
/**
|
|
1454
|
-
*
|
|
1455
|
-
* @deprecated
|
|
1467
|
+
* Deprecated, use `nested` instead.
|
|
1468
|
+
* @deprecated Deprecated, use `nested` instead.
|
|
1456
1469
|
* @replacedBy kind.nested
|
|
1457
1470
|
* @targetRemovalDate 2025-01-01
|
|
1458
1471
|
*/
|
|
@@ -1460,21 +1473,21 @@ interface Aggregation extends AggregationKindOneOf {
|
|
|
1460
1473
|
}
|
|
1461
1474
|
/** @oneof */
|
|
1462
1475
|
interface AggregationKindOneOf {
|
|
1463
|
-
/** Value aggregation */
|
|
1476
|
+
/** Value aggregation configuration. */
|
|
1464
1477
|
value?: ValueAggregation;
|
|
1465
|
-
/** Range aggregation */
|
|
1478
|
+
/** Range aggregation configuration. */
|
|
1466
1479
|
range?: RangeAggregation;
|
|
1467
|
-
/** Scalar aggregation */
|
|
1480
|
+
/** Scalar aggregation configuration. */
|
|
1468
1481
|
scalar?: ScalarAggregation;
|
|
1469
|
-
/** Date histogram aggregation */
|
|
1482
|
+
/** Date histogram aggregation configuration. */
|
|
1470
1483
|
dateHistogram?: DateHistogramAggregation;
|
|
1471
|
-
/** Nested aggregation */
|
|
1484
|
+
/** Nested aggregation configuration. */
|
|
1472
1485
|
nested?: NestedAggregation;
|
|
1473
1486
|
}
|
|
1474
1487
|
interface RangeBucket {
|
|
1475
|
-
/** Inclusive lower bound of the range. Required if to
|
|
1488
|
+
/** Inclusive lower bound of the range. Required if `to` isn't specified. */
|
|
1476
1489
|
from?: number | null;
|
|
1477
|
-
/** Exclusive upper bound of the range. Required if from
|
|
1490
|
+
/** Exclusive upper bound of the range. Required if `from` isn't specified. */
|
|
1478
1491
|
to?: number | null;
|
|
1479
1492
|
}
|
|
1480
1493
|
declare enum SortType {
|
|
@@ -1497,58 +1510,80 @@ declare enum MissingValues {
|
|
|
1497
1510
|
type MissingValuesWithLiterals = MissingValues | 'EXCLUDE' | 'INCLUDE';
|
|
1498
1511
|
interface IncludeMissingValuesOptions {
|
|
1499
1512
|
/**
|
|
1500
|
-
*
|
|
1513
|
+
* Custom bucket name for missing values.
|
|
1514
|
+
*
|
|
1515
|
+
* Default values:
|
|
1516
|
+
* - string: `N/A`
|
|
1517
|
+
* - int: `0`
|
|
1518
|
+
* - bool: `false`
|
|
1501
1519
|
* @maxLength 20
|
|
1502
1520
|
*/
|
|
1503
1521
|
addToBucket?: string;
|
|
1504
1522
|
}
|
|
1505
1523
|
declare enum ScalarType {
|
|
1506
1524
|
UNKNOWN_SCALAR_TYPE = "UNKNOWN_SCALAR_TYPE",
|
|
1525
|
+
/** Total number of distinct values. */
|
|
1507
1526
|
COUNT_DISTINCT = "COUNT_DISTINCT",
|
|
1527
|
+
/** Minimum value. */
|
|
1508
1528
|
MIN = "MIN",
|
|
1529
|
+
/** Maximum value. */
|
|
1509
1530
|
MAX = "MAX"
|
|
1510
1531
|
}
|
|
1511
1532
|
/** @enumType */
|
|
1512
1533
|
type ScalarTypeWithLiterals = ScalarType | 'UNKNOWN_SCALAR_TYPE' | 'COUNT_DISTINCT' | 'MIN' | 'MAX';
|
|
1513
1534
|
interface ValueAggregation extends ValueAggregationOptionsOneOf {
|
|
1514
|
-
/**
|
|
1535
|
+
/** Options for including missing values in the aggregation results. */
|
|
1515
1536
|
includeOptions?: IncludeMissingValuesOptions;
|
|
1516
|
-
/**
|
|
1537
|
+
/** Whether to sort by number of matches or value of the field. */
|
|
1517
1538
|
sortType?: SortTypeWithLiterals;
|
|
1518
|
-
/**
|
|
1539
|
+
/** Whether to sort in ascending or descending order. */
|
|
1519
1540
|
sortDirection?: SortDirectionWithLiterals;
|
|
1520
|
-
/**
|
|
1541
|
+
/**
|
|
1542
|
+
* Number of aggregations to return.
|
|
1543
|
+
*
|
|
1544
|
+
* Min: `1`
|
|
1545
|
+
* Max: `250`
|
|
1546
|
+
* Default: `10`
|
|
1547
|
+
*/
|
|
1521
1548
|
limit?: number | null;
|
|
1522
|
-
/**
|
|
1549
|
+
/**
|
|
1550
|
+
* Whether missing values should be included or excluded from the aggregation results.
|
|
1551
|
+
*
|
|
1552
|
+
* Default: `EXCLUDE`
|
|
1553
|
+
*/
|
|
1523
1554
|
missingValues?: MissingValuesWithLiterals;
|
|
1524
1555
|
}
|
|
1525
1556
|
/** @oneof */
|
|
1526
1557
|
interface ValueAggregationOptionsOneOf {
|
|
1527
|
-
/**
|
|
1558
|
+
/** Options for including missing values in the aggregation results. */
|
|
1528
1559
|
includeOptions?: IncludeMissingValuesOptions;
|
|
1529
1560
|
}
|
|
1530
1561
|
declare enum NestedAggregationType {
|
|
1531
1562
|
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
1563
|
+
/** Calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. */
|
|
1532
1564
|
VALUE = "VALUE",
|
|
1565
|
+
/** Calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. */
|
|
1533
1566
|
RANGE = "RANGE",
|
|
1567
|
+
/** Calculates a single numerical value from a dataset, summarizing the dataset into 1 key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */
|
|
1534
1568
|
SCALAR = "SCALAR",
|
|
1569
|
+
/** 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.). */
|
|
1535
1570
|
DATE_HISTOGRAM = "DATE_HISTOGRAM"
|
|
1536
1571
|
}
|
|
1537
1572
|
/** @enumType */
|
|
1538
1573
|
type NestedAggregationTypeWithLiterals = NestedAggregationType | 'UNKNOWN_AGGREGATION_TYPE' | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM';
|
|
1539
1574
|
interface RangeAggregation {
|
|
1540
1575
|
/**
|
|
1541
|
-
*
|
|
1576
|
+
* 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.
|
|
1542
1577
|
* @maxSize 50
|
|
1543
1578
|
*/
|
|
1544
1579
|
buckets?: RangeBucket[];
|
|
1545
1580
|
}
|
|
1546
1581
|
interface ScalarAggregation {
|
|
1547
|
-
/**
|
|
1582
|
+
/** Operator for the scalar aggregation, for example `COUNT_DISTINCT`, `MIN`, `MAX`. */
|
|
1548
1583
|
type?: ScalarTypeWithLiterals;
|
|
1549
1584
|
}
|
|
1550
1585
|
interface DateHistogramAggregation {
|
|
1551
|
-
/**
|
|
1586
|
+
/** Time interval for date histogram aggregation, for example `DAY`, `HOUR`, `MONTH`. */
|
|
1552
1587
|
interval?: IntervalWithLiterals;
|
|
1553
1588
|
}
|
|
1554
1589
|
declare enum Interval {
|
|
@@ -1572,322 +1607,355 @@ declare enum Interval {
|
|
|
1572
1607
|
/** @enumType */
|
|
1573
1608
|
type IntervalWithLiterals = Interval | 'UNKNOWN_INTERVAL' | 'YEAR' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR' | 'MINUTE' | 'SECOND';
|
|
1574
1609
|
interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
|
|
1575
|
-
/** Value aggregation */
|
|
1610
|
+
/** Value aggregation configuration. Calculates the distribution of field values within the dataset. */
|
|
1576
1611
|
value?: ValueAggregation;
|
|
1577
|
-
/** Range aggregation */
|
|
1612
|
+
/** Range aggregation configuration. Calculates counts within user-defined value ranges. */
|
|
1578
1613
|
range?: RangeAggregation;
|
|
1579
|
-
/** Scalar aggregation */
|
|
1614
|
+
/** Scalar aggregation configuration. Calculates single numerical metrics like count, min, max, sum, or average. */
|
|
1580
1615
|
scalar?: ScalarAggregation;
|
|
1581
|
-
/** Date histogram aggregation */
|
|
1616
|
+
/** Date histogram aggregation configuration. Calculates counts within time intervals. */
|
|
1582
1617
|
dateHistogram?: DateHistogramAggregation;
|
|
1583
1618
|
/**
|
|
1584
|
-
* User-defined name of aggregation
|
|
1619
|
+
* User-defined name of aggregation. Must be unique and will appear in aggregation results.
|
|
1585
1620
|
* @maxLength 100
|
|
1586
1621
|
*/
|
|
1587
1622
|
name?: string | null;
|
|
1588
|
-
/** Type of aggregation
|
|
1623
|
+
/** Type of aggregation. Client must specify matching aggregation field below. */
|
|
1589
1624
|
type?: NestedAggregationTypeWithLiterals;
|
|
1590
1625
|
/**
|
|
1591
|
-
*
|
|
1626
|
+
* Path to the field to aggregate by in dot notation. For example `name` or `paymentOptions.online`.
|
|
1592
1627
|
* @maxLength 200
|
|
1593
1628
|
*/
|
|
1594
1629
|
fieldPath?: string;
|
|
1595
1630
|
}
|
|
1596
1631
|
/** @oneof */
|
|
1597
1632
|
interface NestedAggregationItemKindOneOf {
|
|
1598
|
-
/** Value aggregation */
|
|
1633
|
+
/** Value aggregation configuration. Calculates the distribution of field values within the dataset. */
|
|
1599
1634
|
value?: ValueAggregation;
|
|
1600
|
-
/** Range aggregation */
|
|
1635
|
+
/** Range aggregation configuration. Calculates counts within user-defined value ranges. */
|
|
1601
1636
|
range?: RangeAggregation;
|
|
1602
|
-
/** Scalar aggregation */
|
|
1637
|
+
/** Scalar aggregation configuration. Calculates single numerical metrics like count, min, max, sum, or average. */
|
|
1603
1638
|
scalar?: ScalarAggregation;
|
|
1604
|
-
/** Date histogram aggregation */
|
|
1639
|
+
/** Date histogram aggregation configuration. Calculates counts within time intervals. */
|
|
1605
1640
|
dateHistogram?: DateHistogramAggregation;
|
|
1606
1641
|
}
|
|
1607
1642
|
declare enum AggregationType {
|
|
1608
1643
|
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
1644
|
+
/** Calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. */
|
|
1609
1645
|
VALUE = "VALUE",
|
|
1646
|
+
/** Calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. */
|
|
1610
1647
|
RANGE = "RANGE",
|
|
1648
|
+
/** Calculates a single numerical value from a dataset, summarizing the dataset into 1 key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */
|
|
1611
1649
|
SCALAR = "SCALAR",
|
|
1650
|
+
/** 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.). */
|
|
1612
1651
|
DATE_HISTOGRAM = "DATE_HISTOGRAM",
|
|
1652
|
+
/** Flattened list of aggregations, where each aggregation is nested within previous 1. */
|
|
1613
1653
|
NESTED = "NESTED"
|
|
1614
1654
|
}
|
|
1615
1655
|
/** @enumType */
|
|
1616
1656
|
type AggregationTypeWithLiterals = AggregationType | 'UNKNOWN_AGGREGATION_TYPE' | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM' | 'NESTED';
|
|
1617
|
-
/**
|
|
1657
|
+
/** 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. */
|
|
1618
1658
|
interface NestedAggregation {
|
|
1619
1659
|
/**
|
|
1620
|
-
* Flattened list of aggregations
|
|
1660
|
+
* Flattened list of aggregations where each next aggregation is nested within the previous 1.
|
|
1621
1661
|
* @minSize 2
|
|
1622
1662
|
* @maxSize 10
|
|
1623
1663
|
*/
|
|
1624
1664
|
nestedAggregations?: NestedAggregationItem[];
|
|
1625
1665
|
}
|
|
1626
1666
|
interface GroupByAggregation extends GroupByAggregationKindOneOf {
|
|
1627
|
-
/** Value aggregation configuration */
|
|
1667
|
+
/** Value aggregation configuration. */
|
|
1628
1668
|
value?: ValueAggregation;
|
|
1629
1669
|
/**
|
|
1630
|
-
* User-defined name of aggregation
|
|
1670
|
+
* User-defined name of aggregation. Must be unique and will appear in aggregation results.
|
|
1631
1671
|
* @maxLength 100
|
|
1632
1672
|
*/
|
|
1633
1673
|
name?: string | null;
|
|
1634
1674
|
/**
|
|
1635
|
-
*
|
|
1675
|
+
* Path to the field to aggregate by in dot notation. For example `name` or `paymentOptions.online`.
|
|
1636
1676
|
* @maxLength 200
|
|
1637
1677
|
*/
|
|
1638
1678
|
fieldPath?: string;
|
|
1639
1679
|
}
|
|
1640
1680
|
/** @oneof */
|
|
1641
1681
|
interface GroupByAggregationKindOneOf {
|
|
1642
|
-
/** Value aggregation configuration */
|
|
1682
|
+
/** Value aggregation configuration. */
|
|
1643
1683
|
value?: ValueAggregation;
|
|
1644
1684
|
}
|
|
1645
1685
|
interface SearchDetails {
|
|
1646
|
-
/**
|
|
1686
|
+
/** Search mode. Defines the search logic for combining multiple terms in the `expression`. */
|
|
1647
1687
|
mode?: ModeWithLiterals;
|
|
1648
1688
|
/**
|
|
1649
|
-
* Search term or expression
|
|
1689
|
+
* Search term or expression.
|
|
1650
1690
|
* @maxLength 200
|
|
1651
1691
|
*/
|
|
1652
1692
|
expression?: string | null;
|
|
1653
1693
|
/**
|
|
1654
|
-
* Fields to search in. If empty
|
|
1694
|
+
* Fields to search in. If the array is empty, all searchable fields are searched. Use dot notation to specify a JSON path. For example, `order.address.streetName`.
|
|
1655
1695
|
* @maxSize 10
|
|
1656
1696
|
* @maxLength 200
|
|
1657
1697
|
*/
|
|
1658
1698
|
fields?: string[];
|
|
1659
|
-
/**
|
|
1699
|
+
/** 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. */
|
|
1660
1700
|
fuzzy?: boolean;
|
|
1661
1701
|
}
|
|
1662
1702
|
declare enum Mode {
|
|
1663
|
-
/**
|
|
1703
|
+
/** At least 1 of the search terms must be present. */
|
|
1664
1704
|
OR = "OR",
|
|
1665
|
-
/** All */
|
|
1705
|
+
/** All search terms must be present. */
|
|
1666
1706
|
AND = "AND"
|
|
1667
1707
|
}
|
|
1668
1708
|
/** @enumType */
|
|
1669
1709
|
type ModeWithLiterals = Mode | 'OR' | 'AND';
|
|
1670
1710
|
interface SearchServicesResponse {
|
|
1671
|
-
/**
|
|
1711
|
+
/**
|
|
1712
|
+
* Retrieved services that match the search criteria specified in the request.
|
|
1713
|
+
*
|
|
1714
|
+
* Each service includes all standard service information including name, description,
|
|
1715
|
+
* pricing details, location options, schedule information, and payment configuration.
|
|
1716
|
+
*/
|
|
1672
1717
|
services?: Service[];
|
|
1673
|
-
/**
|
|
1718
|
+
/**
|
|
1719
|
+
* Cursor-based paging metadata for navigating search results.
|
|
1720
|
+
*
|
|
1721
|
+
* Contains the current page's cursor information, whether there are more results available,
|
|
1722
|
+
* and count details. Use the `next` cursor to retrieve subsequent pages of results.
|
|
1723
|
+
*/
|
|
1674
1724
|
pagingMetadata?: CursorPagingMetadata;
|
|
1675
|
-
/**
|
|
1725
|
+
/**
|
|
1726
|
+
* Aggregation results based on the aggregations specified in the search request.
|
|
1727
|
+
*
|
|
1728
|
+
* Provides categorized data summaries such as service counts by type, location distribution,
|
|
1729
|
+
* payment method statistics, or custom aggregations. Available only when aggregations
|
|
1730
|
+
* are requested in the search criteria.
|
|
1731
|
+
*/
|
|
1676
1732
|
aggregationData?: AggregationData;
|
|
1677
1733
|
}
|
|
1678
1734
|
interface CursorPagingMetadata {
|
|
1679
|
-
/**
|
|
1735
|
+
/**
|
|
1736
|
+
* Number of items returned in the current response page.
|
|
1737
|
+
*
|
|
1738
|
+
* This count reflects the actual number of items in the current result set,
|
|
1739
|
+
* which may be less than the requested limit if fewer items are available.
|
|
1740
|
+
*/
|
|
1680
1741
|
count?: number | null;
|
|
1681
|
-
/**
|
|
1742
|
+
/**
|
|
1743
|
+
* Navigation cursors for moving between result pages.
|
|
1744
|
+
*
|
|
1745
|
+
* Contains `next` and `prev` cursor tokens for pagination. Use the `next` cursor
|
|
1746
|
+
* to retrieve subsequent pages and `prev` cursor to go back to previous pages.
|
|
1747
|
+
* 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).
|
|
1748
|
+
*/
|
|
1682
1749
|
cursors?: Cursors;
|
|
1683
1750
|
/**
|
|
1684
|
-
* Indicates
|
|
1685
|
-
*
|
|
1686
|
-
*
|
|
1751
|
+
* Indicates whether additional results are available beyond the current page.
|
|
1752
|
+
*
|
|
1753
|
+
* - `true`: More results exist and can be retrieved using the `next` cursor.
|
|
1754
|
+
* - `false`: This is the final page of results.
|
|
1687
1755
|
*/
|
|
1688
1756
|
hasNext?: boolean | null;
|
|
1689
1757
|
}
|
|
1690
1758
|
interface AggregationData {
|
|
1691
1759
|
/**
|
|
1692
|
-
*
|
|
1760
|
+
* Array of aggregation results, each containing the aggregation metadata and its calculated values for the specified search criteria.
|
|
1693
1761
|
* @maxSize 10000
|
|
1694
1762
|
*/
|
|
1695
1763
|
results?: AggregationResults[];
|
|
1696
1764
|
}
|
|
1697
1765
|
interface ValueAggregationResult {
|
|
1698
1766
|
/**
|
|
1699
|
-
* Value of the field
|
|
1767
|
+
* Value of the field.
|
|
1700
1768
|
* @maxLength 100
|
|
1701
1769
|
*/
|
|
1702
1770
|
value?: string;
|
|
1703
|
-
/** Count of entities with this value */
|
|
1771
|
+
/** Count of entities with this value. */
|
|
1704
1772
|
count?: number;
|
|
1705
1773
|
}
|
|
1706
1774
|
interface RangeAggregationResult {
|
|
1707
|
-
/** Inclusive lower bound of the range */
|
|
1775
|
+
/** Inclusive lower bound of the range. */
|
|
1708
1776
|
from?: number | null;
|
|
1709
|
-
/** Exclusive upper bound of the range */
|
|
1777
|
+
/** Exclusive upper bound of the range. */
|
|
1710
1778
|
to?: number | null;
|
|
1711
|
-
/** Count of entities in this range */
|
|
1779
|
+
/** Count of entities in this range. */
|
|
1712
1780
|
count?: number;
|
|
1713
1781
|
}
|
|
1714
1782
|
interface NestedAggregationResults extends NestedAggregationResultsResultOneOf {
|
|
1715
|
-
/** Value aggregation results */
|
|
1783
|
+
/** Value aggregation results. */
|
|
1716
1784
|
values?: ValueResults;
|
|
1717
|
-
/** Range aggregation results */
|
|
1785
|
+
/** Range aggregation results. */
|
|
1718
1786
|
ranges?: RangeResults;
|
|
1719
|
-
/** Scalar aggregation results */
|
|
1787
|
+
/** Scalar aggregation results. */
|
|
1720
1788
|
scalar?: AggregationResultsScalarResult;
|
|
1721
1789
|
/**
|
|
1722
|
-
* User-defined name of aggregation, matches the one
|
|
1790
|
+
* User-defined name of aggregation, matches the one specified in request.
|
|
1723
1791
|
* @maxLength 100
|
|
1724
1792
|
*/
|
|
1725
1793
|
name?: string;
|
|
1726
|
-
/** Type of aggregation that matches result */
|
|
1794
|
+
/** Type of aggregation that matches result. */
|
|
1727
1795
|
type?: AggregationTypeWithLiterals;
|
|
1728
1796
|
/**
|
|
1729
|
-
*
|
|
1797
|
+
* Path to the field to aggregate by in dot notation. For example `name` or `paymentOptions.online`.
|
|
1730
1798
|
* @maxLength 200
|
|
1731
1799
|
*/
|
|
1732
1800
|
fieldPath?: string;
|
|
1733
1801
|
}
|
|
1734
1802
|
/** @oneof */
|
|
1735
1803
|
interface NestedAggregationResultsResultOneOf {
|
|
1736
|
-
/** Value aggregation results */
|
|
1804
|
+
/** Value aggregation results. */
|
|
1737
1805
|
values?: ValueResults;
|
|
1738
|
-
/** Range aggregation results */
|
|
1806
|
+
/** Range aggregation results. */
|
|
1739
1807
|
ranges?: RangeResults;
|
|
1740
|
-
/** Scalar aggregation results */
|
|
1808
|
+
/** Scalar aggregation results. */
|
|
1741
1809
|
scalar?: AggregationResultsScalarResult;
|
|
1742
1810
|
}
|
|
1743
1811
|
interface ValueResults {
|
|
1744
1812
|
/**
|
|
1745
|
-
*
|
|
1813
|
+
* Array of value aggregation results, each containing a field value and the count of entities with that value.
|
|
1746
1814
|
* @maxSize 250
|
|
1747
1815
|
*/
|
|
1748
1816
|
results?: ValueAggregationResult[];
|
|
1749
1817
|
}
|
|
1750
1818
|
interface RangeResults {
|
|
1751
1819
|
/**
|
|
1752
|
-
*
|
|
1820
|
+
* Array of range aggregation results returned in the same order as requested, each containing range bounds and count of entities within that range.
|
|
1753
1821
|
* @maxSize 50
|
|
1754
1822
|
*/
|
|
1755
1823
|
results?: RangeAggregationResult[];
|
|
1756
1824
|
}
|
|
1757
1825
|
interface AggregationResultsScalarResult {
|
|
1758
|
-
/** Type of scalar aggregation */
|
|
1826
|
+
/** Type of scalar aggregation. */
|
|
1759
1827
|
type?: ScalarTypeWithLiterals;
|
|
1760
|
-
/** Value of the scalar aggregation */
|
|
1828
|
+
/** Value of the scalar aggregation. */
|
|
1761
1829
|
value?: number;
|
|
1762
1830
|
}
|
|
1763
1831
|
interface NestedValueAggregationResult {
|
|
1764
1832
|
/**
|
|
1765
|
-
* Value of the field
|
|
1833
|
+
* Value of the field.
|
|
1766
1834
|
* @maxLength 1000
|
|
1767
1835
|
*/
|
|
1768
1836
|
value?: string;
|
|
1769
|
-
/** Nested aggregations */
|
|
1837
|
+
/** Nested aggregations. */
|
|
1770
1838
|
nestedResults?: NestedAggregationResults;
|
|
1771
1839
|
}
|
|
1772
1840
|
interface ValueResult {
|
|
1773
1841
|
/**
|
|
1774
|
-
* Value of the field
|
|
1842
|
+
* Value of the field.
|
|
1775
1843
|
* @maxLength 1000
|
|
1776
1844
|
*/
|
|
1777
1845
|
value?: string;
|
|
1778
|
-
/** Count of entities with this value */
|
|
1846
|
+
/** Count of entities with this value. */
|
|
1779
1847
|
count?: number | null;
|
|
1780
1848
|
}
|
|
1781
1849
|
interface RangeResult {
|
|
1782
|
-
/** Inclusive lower bound of the range */
|
|
1850
|
+
/** Inclusive lower bound of the range. */
|
|
1783
1851
|
from?: number | null;
|
|
1784
|
-
/** Exclusive upper bound of the range */
|
|
1852
|
+
/** Exclusive upper bound of the range. */
|
|
1785
1853
|
to?: number | null;
|
|
1786
|
-
/** Count of entities in this range */
|
|
1854
|
+
/** Count of entities in this range. */
|
|
1787
1855
|
count?: number | null;
|
|
1788
1856
|
}
|
|
1789
1857
|
interface ScalarResult {
|
|
1790
|
-
/** Value of the scalar aggregation */
|
|
1858
|
+
/** Value of the scalar aggregation. */
|
|
1791
1859
|
value?: number;
|
|
1792
1860
|
}
|
|
1793
1861
|
interface NestedResultValue extends NestedResultValueResultOneOf {
|
|
1794
|
-
/** Value aggregation result */
|
|
1862
|
+
/** Value aggregation result. */
|
|
1795
1863
|
value?: ValueResult;
|
|
1796
|
-
/** Range aggregation result */
|
|
1864
|
+
/** Range aggregation result. */
|
|
1797
1865
|
range?: RangeResult;
|
|
1798
|
-
/** Scalar aggregation result */
|
|
1866
|
+
/** Scalar aggregation result. */
|
|
1799
1867
|
scalar?: ScalarResult;
|
|
1800
|
-
/** Date histogram aggregation result */
|
|
1868
|
+
/** Date histogram aggregation result. */
|
|
1801
1869
|
dateHistogram?: ValueResult;
|
|
1802
1870
|
}
|
|
1803
1871
|
/** @oneof */
|
|
1804
1872
|
interface NestedResultValueResultOneOf {
|
|
1805
|
-
/** Value aggregation result */
|
|
1873
|
+
/** Value aggregation result. */
|
|
1806
1874
|
value?: ValueResult;
|
|
1807
|
-
/** Range aggregation result */
|
|
1875
|
+
/** Range aggregation result. */
|
|
1808
1876
|
range?: RangeResult;
|
|
1809
|
-
/** Scalar aggregation result */
|
|
1877
|
+
/** Scalar aggregation result. */
|
|
1810
1878
|
scalar?: ScalarResult;
|
|
1811
|
-
/** Date histogram aggregation result */
|
|
1879
|
+
/** Date histogram aggregation result. */
|
|
1812
1880
|
dateHistogram?: ValueResult;
|
|
1813
1881
|
}
|
|
1814
1882
|
interface Results {
|
|
1815
|
-
/**
|
|
1883
|
+
/** Map of nested aggregation results, keyed by aggregation name. */
|
|
1816
1884
|
results?: Record<string, NestedResultValue>;
|
|
1817
1885
|
}
|
|
1818
1886
|
interface DateHistogramResult {
|
|
1819
1887
|
/**
|
|
1820
|
-
* Date in ISO 8601 format
|
|
1888
|
+
* Date in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
1821
1889
|
* @maxLength 100
|
|
1822
1890
|
*/
|
|
1823
1891
|
value?: string;
|
|
1824
|
-
/** Count of documents in the bucket */
|
|
1892
|
+
/** Count of documents in the bucket. */
|
|
1825
1893
|
count?: number;
|
|
1826
1894
|
}
|
|
1827
1895
|
interface GroupByValueResults {
|
|
1828
1896
|
/**
|
|
1829
|
-
*
|
|
1897
|
+
* Array of nested value aggregation results, each containing a field value and the associated nested aggregation data.
|
|
1830
1898
|
* @maxSize 1000
|
|
1831
1899
|
*/
|
|
1832
1900
|
results?: NestedValueAggregationResult[];
|
|
1833
1901
|
}
|
|
1834
1902
|
interface DateHistogramResults {
|
|
1835
1903
|
/**
|
|
1836
|
-
*
|
|
1904
|
+
* Array of date histogram aggregation results, each containing a date bucket and its count.
|
|
1837
1905
|
* @maxSize 200
|
|
1838
1906
|
*/
|
|
1839
1907
|
results?: DateHistogramResult[];
|
|
1840
1908
|
}
|
|
1841
1909
|
/**
|
|
1842
|
-
*
|
|
1843
|
-
*
|
|
1910
|
+
* Results of `NESTED` aggregation type in a flattened form.
|
|
1911
|
+
* Aggregations in resulting array are keyed by requested aggregation `name`.
|
|
1844
1912
|
*/
|
|
1845
1913
|
interface NestedResults {
|
|
1846
1914
|
/**
|
|
1847
|
-
*
|
|
1915
|
+
* Array of nested aggregation result groups, each containing multiple aggregation results.
|
|
1848
1916
|
* @maxSize 1000
|
|
1849
1917
|
*/
|
|
1850
1918
|
results?: Results[];
|
|
1851
1919
|
}
|
|
1852
1920
|
interface AggregationResults extends AggregationResultsResultOneOf {
|
|
1853
|
-
/** Value aggregation results */
|
|
1921
|
+
/** Value aggregation results. */
|
|
1854
1922
|
values?: ValueResults;
|
|
1855
|
-
/** Range aggregation results */
|
|
1923
|
+
/** Range aggregation results. */
|
|
1856
1924
|
ranges?: RangeResults;
|
|
1857
|
-
/** Scalar aggregation results */
|
|
1925
|
+
/** Scalar aggregation results. */
|
|
1858
1926
|
scalar?: AggregationResultsScalarResult;
|
|
1859
|
-
/** Group by value aggregation results */
|
|
1927
|
+
/** Group by value aggregation results. */
|
|
1860
1928
|
groupedByValue?: GroupByValueResults;
|
|
1861
|
-
/** Date histogram aggregation results */
|
|
1929
|
+
/** Date histogram aggregation results. */
|
|
1862
1930
|
dateHistogram?: DateHistogramResults;
|
|
1863
|
-
/** Nested aggregation results */
|
|
1931
|
+
/** Nested aggregation results. */
|
|
1864
1932
|
nested?: NestedResults;
|
|
1865
1933
|
/**
|
|
1866
|
-
* User-defined name of aggregation as derived from search request
|
|
1934
|
+
* User-defined name of aggregation as derived from search request.
|
|
1867
1935
|
* @maxLength 100
|
|
1868
1936
|
*/
|
|
1869
1937
|
name?: string;
|
|
1870
|
-
/** Type of aggregation that must match
|
|
1938
|
+
/** Type of aggregation that must match specified kind as derived from search request. */
|
|
1871
1939
|
type?: AggregationTypeWithLiterals;
|
|
1872
1940
|
/**
|
|
1873
|
-
*
|
|
1941
|
+
* Path to the field to aggregate by in dot notation. For example `name` or `paymentOptions.online`.
|
|
1874
1942
|
* @maxLength 200
|
|
1875
1943
|
*/
|
|
1876
1944
|
fieldPath?: string;
|
|
1877
1945
|
}
|
|
1878
1946
|
/** @oneof */
|
|
1879
1947
|
interface AggregationResultsResultOneOf {
|
|
1880
|
-
/** Value aggregation results */
|
|
1948
|
+
/** Value aggregation results. */
|
|
1881
1949
|
values?: ValueResults;
|
|
1882
|
-
/** Range aggregation results */
|
|
1950
|
+
/** Range aggregation results. */
|
|
1883
1951
|
ranges?: RangeResults;
|
|
1884
|
-
/** Scalar aggregation results */
|
|
1952
|
+
/** Scalar aggregation results. */
|
|
1885
1953
|
scalar?: AggregationResultsScalarResult;
|
|
1886
|
-
/** Group by value aggregation results */
|
|
1954
|
+
/** Group by value aggregation results. */
|
|
1887
1955
|
groupedByValue?: GroupByValueResults;
|
|
1888
|
-
/** Date histogram aggregation results */
|
|
1956
|
+
/** Date histogram aggregation results. */
|
|
1889
1957
|
dateHistogram?: DateHistogramResults;
|
|
1890
|
-
/** Nested aggregation results */
|
|
1958
|
+
/** Nested aggregation results. */
|
|
1891
1959
|
nested?: NestedResults;
|
|
1892
1960
|
}
|
|
1893
1961
|
interface QueryPoliciesRequest {
|