@wix/auto_sdk_bookings_services 1.0.63 → 1.0.64

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.
@@ -1,4 +1,4 @@
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.mjs';
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-D4FwlNie.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  /** The `service` object represents an offering that a business provides to its customers. */
@@ -1373,61 +1373,48 @@ interface PagingMetadataV2 {
1373
1373
  }
1374
1374
  interface Cursors {
1375
1375
  /**
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.
1376
+ * Cursor pointing to next page in the list of results.
1380
1377
  * @maxLength 16000
1381
1378
  */
1382
1379
  next?: string | null;
1383
1380
  /**
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.
1381
+ * Cursor pointing to previous page in the list of results.
1388
1382
  * @maxLength 16000
1389
1383
  */
1390
1384
  prev?: string | null;
1391
1385
  }
1392
1386
  interface SearchServicesRequest {
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
- */
1387
+ /** WQL, search or aggregation expression. */
1398
1388
  search: CursorSearch;
1399
1389
  }
1400
1390
  interface CursorSearch extends CursorSearchPagingMethodOneOf {
1401
1391
  /**
1402
- * Cursor-based paging for result navigation. When requesting `cursor_paging.cursor`,
1403
- * `filter`, `sort`, or `search` can't be specified.
1392
+ * Cursor pointing to page of results.
1393
+ * When requesting 'cursor_paging.cursor', no `filter`, `sort` or `search` can be provided.
1404
1394
  */
1405
1395
  cursorPaging?: CursorPaging;
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
- */
1396
+ /** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
1411
1397
  filter?: Record<string, any> | null;
1412
1398
  /**
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)).
1399
+ * Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]
1416
1400
  * @maxSize 10
1417
1401
  */
1418
1402
  sort?: Sorting[];
1419
1403
  /**
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.
1404
+ * Aggregations | Faceted search: refers to a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition.
1422
1405
  * @maxSize 10
1423
1406
  */
1424
1407
  aggregations?: Aggregation[];
1425
- /** Free text to match in searchable fields. */
1408
+ /** Free text to match in searchable fields */
1426
1409
  search?: SearchDetails;
1427
1410
  /**
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`.
1411
+ * UTC offset or IANA time zone. Valid values are
1412
+ * ISO 8601 UTC offsets, such as +02:00 or -06:00,
1413
+ * and IANA time zone IDs, such as Europe/Rome
1429
1414
  *
1430
- * Default: Time zone specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
1415
+ * Affects all filters and aggregations returned values.
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"`
1431
1418
  * @maxLength 50
1432
1419
  */
1433
1420
  timeZone?: string | null;
@@ -1435,37 +1422,37 @@ interface CursorSearch extends CursorSearchPagingMethodOneOf {
1435
1422
  /** @oneof */
1436
1423
  interface CursorSearchPagingMethodOneOf {
1437
1424
  /**
1438
- * Cursor-based paging for result navigation. When requesting `cursor_paging.cursor`,
1439
- * `filter`, `sort`, or `search` can't be specified.
1425
+ * Cursor pointing to page of results.
1426
+ * When requesting 'cursor_paging.cursor', no `filter`, `sort` or `search` can be provided.
1440
1427
  */
1441
1428
  cursorPaging?: CursorPaging;
1442
1429
  }
1443
1430
  interface Aggregation extends AggregationKindOneOf {
1444
- /** Value aggregation configuration. */
1431
+ /** Value aggregation */
1445
1432
  value?: ValueAggregation;
1446
- /** Range aggregation configuration. */
1433
+ /** Range aggregation */
1447
1434
  range?: RangeAggregation;
1448
- /** Scalar aggregation configuration. */
1435
+ /** Scalar aggregation */
1449
1436
  scalar?: ScalarAggregation;
1450
- /** Date histogram aggregation configuration. */
1437
+ /** Date histogram aggregation */
1451
1438
  dateHistogram?: DateHistogramAggregation;
1452
- /** Nested aggregation configuration. */
1439
+ /** Nested aggregation */
1453
1440
  nested?: NestedAggregation;
1454
1441
  /**
1455
- * User-defined name of aggregation. Must be unique and will appear in aggregation results.
1442
+ * User-defined name of aggregation, should be unique, will appear in aggregation results
1456
1443
  * @maxLength 100
1457
1444
  */
1458
1445
  name?: string | null;
1459
- /** Type of aggregation. Client must specify matching aggregation field below. */
1446
+ /** Type of aggregation, client must provide matching aggregation field below */
1460
1447
  type?: AggregationTypeWithLiterals;
1461
1448
  /**
1462
- * Path to the field to aggregate by in dot notation. For example `name` or `paymentOptions.online`.
1449
+ * Field to aggregate by, use dot notation to specify json path
1463
1450
  * @maxLength 200
1464
1451
  */
1465
1452
  fieldPath?: string;
1466
1453
  /**
1467
- * Deprecated, use `nested` instead.
1468
- * @deprecated Deprecated, use `nested` instead.
1454
+ * deprecated, use `nested` instead
1455
+ * @deprecated deprecated, use `nested` instead
1469
1456
  * @replacedBy kind.nested
1470
1457
  * @targetRemovalDate 2025-01-01
1471
1458
  */
@@ -1473,21 +1460,21 @@ interface Aggregation extends AggregationKindOneOf {
1473
1460
  }
1474
1461
  /** @oneof */
1475
1462
  interface AggregationKindOneOf {
1476
- /** Value aggregation configuration. */
1463
+ /** Value aggregation */
1477
1464
  value?: ValueAggregation;
1478
- /** Range aggregation configuration. */
1465
+ /** Range aggregation */
1479
1466
  range?: RangeAggregation;
1480
- /** Scalar aggregation configuration. */
1467
+ /** Scalar aggregation */
1481
1468
  scalar?: ScalarAggregation;
1482
- /** Date histogram aggregation configuration. */
1469
+ /** Date histogram aggregation */
1483
1470
  dateHistogram?: DateHistogramAggregation;
1484
- /** Nested aggregation configuration. */
1471
+ /** Nested aggregation */
1485
1472
  nested?: NestedAggregation;
1486
1473
  }
1487
1474
  interface RangeBucket {
1488
- /** Inclusive lower bound of the range. Required if `to` isn't specified. */
1475
+ /** Inclusive lower bound of the range. Required if to is not given. */
1489
1476
  from?: number | null;
1490
- /** Exclusive upper bound of the range. Required if `from` isn't specified. */
1477
+ /** Exclusive upper bound of the range. Required if from is not given. */
1491
1478
  to?: number | null;
1492
1479
  }
1493
1480
  declare enum SortType {
@@ -1510,80 +1497,58 @@ declare enum MissingValues {
1510
1497
  type MissingValuesWithLiterals = MissingValues | 'EXCLUDE' | 'INCLUDE';
1511
1498
  interface IncludeMissingValuesOptions {
1512
1499
  /**
1513
- * Custom bucket name for missing values.
1514
- *
1515
- * Default values:
1516
- * - string: `N/A`
1517
- * - int: `0`
1518
- * - bool: `false`
1500
+ * can specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ...
1519
1501
  * @maxLength 20
1520
1502
  */
1521
1503
  addToBucket?: string;
1522
1504
  }
1523
1505
  declare enum ScalarType {
1524
1506
  UNKNOWN_SCALAR_TYPE = "UNKNOWN_SCALAR_TYPE",
1525
- /** Total number of distinct values. */
1526
1507
  COUNT_DISTINCT = "COUNT_DISTINCT",
1527
- /** Minimum value. */
1528
1508
  MIN = "MIN",
1529
- /** Maximum value. */
1530
1509
  MAX = "MAX"
1531
1510
  }
1532
1511
  /** @enumType */
1533
1512
  type ScalarTypeWithLiterals = ScalarType | 'UNKNOWN_SCALAR_TYPE' | 'COUNT_DISTINCT' | 'MIN' | 'MAX';
1534
1513
  interface ValueAggregation extends ValueAggregationOptionsOneOf {
1535
- /** Options for including missing values in the aggregation results. */
1514
+ /** options for including missing values */
1536
1515
  includeOptions?: IncludeMissingValuesOptions;
1537
- /** Whether to sort by number of matches or value of the field. */
1516
+ /** Should sort by number of matches or value of the field */
1538
1517
  sortType?: SortTypeWithLiterals;
1539
- /** Whether to sort in ascending or descending order. */
1518
+ /** Should sort in ascending or descending order */
1540
1519
  sortDirection?: SortDirectionWithLiterals;
1541
- /**
1542
- * Number of aggregations to return.
1543
- *
1544
- * Min: `1`
1545
- * Max: `250`
1546
- * Default: `10`
1547
- */
1520
+ /** How many aggregations would you like to return? Can be between 1 and 250. 10 is the default. */
1548
1521
  limit?: number | null;
1549
- /**
1550
- * Whether missing values should be included or excluded from the aggregation results.
1551
- *
1552
- * Default: `EXCLUDE`
1553
- */
1522
+ /** should missing values be included or excluded from the aggregation results. Default is EXCLUDE */
1554
1523
  missingValues?: MissingValuesWithLiterals;
1555
1524
  }
1556
1525
  /** @oneof */
1557
1526
  interface ValueAggregationOptionsOneOf {
1558
- /** Options for including missing values in the aggregation results. */
1527
+ /** options for including missing values */
1559
1528
  includeOptions?: IncludeMissingValuesOptions;
1560
1529
  }
1561
1530
  declare enum NestedAggregationType {
1562
1531
  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. */
1564
1532
  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. */
1566
1533
  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`. */
1568
1534
  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.). */
1570
1535
  DATE_HISTOGRAM = "DATE_HISTOGRAM"
1571
1536
  }
1572
1537
  /** @enumType */
1573
1538
  type NestedAggregationTypeWithLiterals = NestedAggregationType | 'UNKNOWN_AGGREGATION_TYPE' | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM';
1574
1539
  interface RangeAggregation {
1575
1540
  /**
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.
1541
+ * Range buckets
1577
1542
  * @maxSize 50
1578
1543
  */
1579
1544
  buckets?: RangeBucket[];
1580
1545
  }
1581
1546
  interface ScalarAggregation {
1582
- /** Operator for the scalar aggregation, for example `COUNT_DISTINCT`, `MIN`, `MAX`. */
1547
+ /** Define the operator for the scalar aggregation */
1583
1548
  type?: ScalarTypeWithLiterals;
1584
1549
  }
1585
1550
  interface DateHistogramAggregation {
1586
- /** Time interval for date histogram aggregation, for example `DAY`, `HOUR`, `MONTH`. */
1551
+ /** Interval for date histogram aggregation */
1587
1552
  interval?: IntervalWithLiterals;
1588
1553
  }
1589
1554
  declare enum Interval {
@@ -1607,355 +1572,322 @@ declare enum Interval {
1607
1572
  /** @enumType */
1608
1573
  type IntervalWithLiterals = Interval | 'UNKNOWN_INTERVAL' | 'YEAR' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR' | 'MINUTE' | 'SECOND';
1609
1574
  interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
1610
- /** Value aggregation configuration. Calculates the distribution of field values within the dataset. */
1575
+ /** Value aggregation */
1611
1576
  value?: ValueAggregation;
1612
- /** Range aggregation configuration. Calculates counts within user-defined value ranges. */
1577
+ /** Range aggregation */
1613
1578
  range?: RangeAggregation;
1614
- /** Scalar aggregation configuration. Calculates single numerical metrics like count, min, max, sum, or average. */
1579
+ /** Scalar aggregation */
1615
1580
  scalar?: ScalarAggregation;
1616
- /** Date histogram aggregation configuration. Calculates counts within time intervals. */
1581
+ /** Date histogram aggregation */
1617
1582
  dateHistogram?: DateHistogramAggregation;
1618
1583
  /**
1619
- * User-defined name of aggregation. Must be unique and will appear in aggregation results.
1584
+ * User-defined name of aggregation, should be unique, will appear in aggregation results
1620
1585
  * @maxLength 100
1621
1586
  */
1622
1587
  name?: string | null;
1623
- /** Type of aggregation. Client must specify matching aggregation field below. */
1588
+ /** Type of aggregation, client must provide matching aggregation field below */
1624
1589
  type?: NestedAggregationTypeWithLiterals;
1625
1590
  /**
1626
- * Path to the field to aggregate by in dot notation. For example `name` or `paymentOptions.online`.
1591
+ * Field to aggregate by, use dont notation to specify json path
1627
1592
  * @maxLength 200
1628
1593
  */
1629
1594
  fieldPath?: string;
1630
1595
  }
1631
1596
  /** @oneof */
1632
1597
  interface NestedAggregationItemKindOneOf {
1633
- /** Value aggregation configuration. Calculates the distribution of field values within the dataset. */
1598
+ /** Value aggregation */
1634
1599
  value?: ValueAggregation;
1635
- /** Range aggregation configuration. Calculates counts within user-defined value ranges. */
1600
+ /** Range aggregation */
1636
1601
  range?: RangeAggregation;
1637
- /** Scalar aggregation configuration. Calculates single numerical metrics like count, min, max, sum, or average. */
1602
+ /** Scalar aggregation */
1638
1603
  scalar?: ScalarAggregation;
1639
- /** Date histogram aggregation configuration. Calculates counts within time intervals. */
1604
+ /** Date histogram aggregation */
1640
1605
  dateHistogram?: DateHistogramAggregation;
1641
1606
  }
1642
1607
  declare enum AggregationType {
1643
1608
  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. */
1645
1609
  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. */
1647
1610
  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`. */
1649
1611
  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.). */
1651
1612
  DATE_HISTOGRAM = "DATE_HISTOGRAM",
1652
- /** Flattened list of aggregations, where each aggregation is nested within previous 1. */
1653
1613
  NESTED = "NESTED"
1654
1614
  }
1655
1615
  /** @enumType */
1656
1616
  type AggregationTypeWithLiterals = AggregationType | 'UNKNOWN_AGGREGATION_TYPE' | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM' | 'NESTED';
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. */
1617
+ /** nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one */
1658
1618
  interface NestedAggregation {
1659
1619
  /**
1660
- * Flattened list of aggregations where each next aggregation is nested within the previous 1.
1620
+ * Flattened list of aggregations, where each next aggregation is nested within previous one
1661
1621
  * @minSize 2
1662
1622
  * @maxSize 10
1663
1623
  */
1664
1624
  nestedAggregations?: NestedAggregationItem[];
1665
1625
  }
1666
1626
  interface GroupByAggregation extends GroupByAggregationKindOneOf {
1667
- /** Value aggregation configuration. */
1627
+ /** Value aggregation configuration */
1668
1628
  value?: ValueAggregation;
1669
1629
  /**
1670
- * User-defined name of aggregation. Must be unique and will appear in aggregation results.
1630
+ * User-defined name of aggregation, should be unique, will appear in aggregation results
1671
1631
  * @maxLength 100
1672
1632
  */
1673
1633
  name?: string | null;
1674
1634
  /**
1675
- * Path to the field to aggregate by in dot notation. For example `name` or `paymentOptions.online`.
1635
+ * Field to aggregate by
1676
1636
  * @maxLength 200
1677
1637
  */
1678
1638
  fieldPath?: string;
1679
1639
  }
1680
1640
  /** @oneof */
1681
1641
  interface GroupByAggregationKindOneOf {
1682
- /** Value aggregation configuration. */
1642
+ /** Value aggregation configuration */
1683
1643
  value?: ValueAggregation;
1684
1644
  }
1685
1645
  interface SearchDetails {
1686
- /** Search mode. Defines the search logic for combining multiple terms in the `expression`. */
1646
+ /** Boolean search mode */
1687
1647
  mode?: ModeWithLiterals;
1688
1648
  /**
1689
- * Search term or expression.
1649
+ * Search term or expression
1690
1650
  * @maxLength 200
1691
1651
  */
1692
1652
  expression?: string | null;
1693
1653
  /**
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`.
1654
+ * Fields to search in. If empty - server will search in own default fields
1695
1655
  * @maxSize 10
1696
1656
  * @maxLength 200
1697
1657
  */
1698
1658
  fields?: string[];
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. */
1659
+ /** Flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */
1700
1660
  fuzzy?: boolean;
1701
1661
  }
1702
1662
  declare enum Mode {
1703
- /** At least 1 of the search terms must be present. */
1663
+ /** Any */
1704
1664
  OR = "OR",
1705
- /** All search terms must be present. */
1665
+ /** All */
1706
1666
  AND = "AND"
1707
1667
  }
1708
1668
  /** @enumType */
1709
1669
  type ModeWithLiterals = Mode | 'OR' | 'AND';
1710
1670
  interface SearchServicesResponse {
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
- */
1671
+ /** The retrieved services. */
1717
1672
  services?: Service[];
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
- */
1673
+ /** Cursor paging metadata */
1724
1674
  pagingMetadata?: CursorPagingMetadata;
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
- */
1675
+ /** Response aggregation data */
1732
1676
  aggregationData?: AggregationData;
1733
1677
  }
1734
1678
  interface CursorPagingMetadata {
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
- */
1679
+ /** Number of items returned in the response. */
1741
1680
  count?: number | null;
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
- */
1681
+ /** Use these cursor to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */
1749
1682
  cursors?: Cursors;
1750
1683
  /**
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.
1684
+ * Indicates if there are more results after the current page.
1685
+ * If `true`, another page of results can be retrieved.
1686
+ * If `false`, this is the last page.
1755
1687
  */
1756
1688
  hasNext?: boolean | null;
1757
1689
  }
1758
1690
  interface AggregationData {
1759
1691
  /**
1760
- * Array of aggregation results, each containing the aggregation metadata and its calculated values for the specified search criteria.
1692
+ * key = aggregation name (as derived from search request)
1761
1693
  * @maxSize 10000
1762
1694
  */
1763
1695
  results?: AggregationResults[];
1764
1696
  }
1765
1697
  interface ValueAggregationResult {
1766
1698
  /**
1767
- * Value of the field.
1699
+ * Value of the field
1768
1700
  * @maxLength 100
1769
1701
  */
1770
1702
  value?: string;
1771
- /** Count of entities with this value. */
1703
+ /** Count of entities with this value */
1772
1704
  count?: number;
1773
1705
  }
1774
1706
  interface RangeAggregationResult {
1775
- /** Inclusive lower bound of the range. */
1707
+ /** Inclusive lower bound of the range */
1776
1708
  from?: number | null;
1777
- /** Exclusive upper bound of the range. */
1709
+ /** Exclusive upper bound of the range */
1778
1710
  to?: number | null;
1779
- /** Count of entities in this range. */
1711
+ /** Count of entities in this range */
1780
1712
  count?: number;
1781
1713
  }
1782
1714
  interface NestedAggregationResults extends NestedAggregationResultsResultOneOf {
1783
- /** Value aggregation results. */
1715
+ /** Value aggregation results */
1784
1716
  values?: ValueResults;
1785
- /** Range aggregation results. */
1717
+ /** Range aggregation results */
1786
1718
  ranges?: RangeResults;
1787
- /** Scalar aggregation results. */
1719
+ /** Scalar aggregation results */
1788
1720
  scalar?: AggregationResultsScalarResult;
1789
1721
  /**
1790
- * User-defined name of aggregation, matches the one specified in request.
1722
+ * User-defined name of aggregation, matches the one provided in request
1791
1723
  * @maxLength 100
1792
1724
  */
1793
1725
  name?: string;
1794
- /** Type of aggregation that matches result. */
1726
+ /** Type of aggregation that matches result */
1795
1727
  type?: AggregationTypeWithLiterals;
1796
1728
  /**
1797
- * Path to the field to aggregate by in dot notation. For example `name` or `paymentOptions.online`.
1729
+ * Field to aggregate by, matches the one provided in request
1798
1730
  * @maxLength 200
1799
1731
  */
1800
1732
  fieldPath?: string;
1801
1733
  }
1802
1734
  /** @oneof */
1803
1735
  interface NestedAggregationResultsResultOneOf {
1804
- /** Value aggregation results. */
1736
+ /** Value aggregation results */
1805
1737
  values?: ValueResults;
1806
- /** Range aggregation results. */
1738
+ /** Range aggregation results */
1807
1739
  ranges?: RangeResults;
1808
- /** Scalar aggregation results. */
1740
+ /** Scalar aggregation results */
1809
1741
  scalar?: AggregationResultsScalarResult;
1810
1742
  }
1811
1743
  interface ValueResults {
1812
1744
  /**
1813
- * Array of value aggregation results, each containing a field value and the count of entities with that value.
1745
+ * List of value aggregations
1814
1746
  * @maxSize 250
1815
1747
  */
1816
1748
  results?: ValueAggregationResult[];
1817
1749
  }
1818
1750
  interface RangeResults {
1819
1751
  /**
1820
- * Array of range aggregation results returned in the same order as requested, each containing range bounds and count of entities within that range.
1752
+ * List of ranges returned in same order as requested
1821
1753
  * @maxSize 50
1822
1754
  */
1823
1755
  results?: RangeAggregationResult[];
1824
1756
  }
1825
1757
  interface AggregationResultsScalarResult {
1826
- /** Type of scalar aggregation. */
1758
+ /** Type of scalar aggregation */
1827
1759
  type?: ScalarTypeWithLiterals;
1828
- /** Value of the scalar aggregation. */
1760
+ /** Value of the scalar aggregation */
1829
1761
  value?: number;
1830
1762
  }
1831
1763
  interface NestedValueAggregationResult {
1832
1764
  /**
1833
- * Value of the field.
1765
+ * Value of the field
1834
1766
  * @maxLength 1000
1835
1767
  */
1836
1768
  value?: string;
1837
- /** Nested aggregations. */
1769
+ /** Nested aggregations */
1838
1770
  nestedResults?: NestedAggregationResults;
1839
1771
  }
1840
1772
  interface ValueResult {
1841
1773
  /**
1842
- * Value of the field.
1774
+ * Value of the field
1843
1775
  * @maxLength 1000
1844
1776
  */
1845
1777
  value?: string;
1846
- /** Count of entities with this value. */
1778
+ /** Count of entities with this value */
1847
1779
  count?: number | null;
1848
1780
  }
1849
1781
  interface RangeResult {
1850
- /** Inclusive lower bound of the range. */
1782
+ /** Inclusive lower bound of the range */
1851
1783
  from?: number | null;
1852
- /** Exclusive upper bound of the range. */
1784
+ /** Exclusive upper bound of the range */
1853
1785
  to?: number | null;
1854
- /** Count of entities in this range. */
1786
+ /** Count of entities in this range */
1855
1787
  count?: number | null;
1856
1788
  }
1857
1789
  interface ScalarResult {
1858
- /** Value of the scalar aggregation. */
1790
+ /** Value of the scalar aggregation */
1859
1791
  value?: number;
1860
1792
  }
1861
1793
  interface NestedResultValue extends NestedResultValueResultOneOf {
1862
- /** Value aggregation result. */
1794
+ /** Value aggregation result */
1863
1795
  value?: ValueResult;
1864
- /** Range aggregation result. */
1796
+ /** Range aggregation result */
1865
1797
  range?: RangeResult;
1866
- /** Scalar aggregation result. */
1798
+ /** Scalar aggregation result */
1867
1799
  scalar?: ScalarResult;
1868
- /** Date histogram aggregation result. */
1800
+ /** Date histogram aggregation result */
1869
1801
  dateHistogram?: ValueResult;
1870
1802
  }
1871
1803
  /** @oneof */
1872
1804
  interface NestedResultValueResultOneOf {
1873
- /** Value aggregation result. */
1805
+ /** Value aggregation result */
1874
1806
  value?: ValueResult;
1875
- /** Range aggregation result. */
1807
+ /** Range aggregation result */
1876
1808
  range?: RangeResult;
1877
- /** Scalar aggregation result. */
1809
+ /** Scalar aggregation result */
1878
1810
  scalar?: ScalarResult;
1879
- /** Date histogram aggregation result. */
1811
+ /** Date histogram aggregation result */
1880
1812
  dateHistogram?: ValueResult;
1881
1813
  }
1882
1814
  interface Results {
1883
- /** Map of nested aggregation results, keyed by aggregation name. */
1815
+ /** List of nested aggregations */
1884
1816
  results?: Record<string, NestedResultValue>;
1885
1817
  }
1886
1818
  interface DateHistogramResult {
1887
1819
  /**
1888
- * Date in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601).
1820
+ * Date in ISO 8601 format
1889
1821
  * @maxLength 100
1890
1822
  */
1891
1823
  value?: string;
1892
- /** Count of documents in the bucket. */
1824
+ /** Count of documents in the bucket */
1893
1825
  count?: number;
1894
1826
  }
1895
1827
  interface GroupByValueResults {
1896
1828
  /**
1897
- * Array of nested value aggregation results, each containing a field value and the associated nested aggregation data.
1829
+ * List of value aggregations
1898
1830
  * @maxSize 1000
1899
1831
  */
1900
1832
  results?: NestedValueAggregationResult[];
1901
1833
  }
1902
1834
  interface DateHistogramResults {
1903
1835
  /**
1904
- * Array of date histogram aggregation results, each containing a date bucket and its count.
1836
+ * List of date histogram aggregations
1905
1837
  * @maxSize 200
1906
1838
  */
1907
1839
  results?: DateHistogramResult[];
1908
1840
  }
1909
1841
  /**
1910
- * Results of `NESTED` aggregation type in a flattened form.
1911
- * Aggregations in resulting array are keyed by requested aggregation `name`.
1842
+ * results of `NESTED` aggregation type in a flattened form
1843
+ * aggregations in resulting array are keyed by requested aggregation `name`.
1912
1844
  */
1913
1845
  interface NestedResults {
1914
1846
  /**
1915
- * Array of nested aggregation result groups, each containing multiple aggregation results.
1847
+ * List of nested aggregations
1916
1848
  * @maxSize 1000
1917
1849
  */
1918
1850
  results?: Results[];
1919
1851
  }
1920
1852
  interface AggregationResults extends AggregationResultsResultOneOf {
1921
- /** Value aggregation results. */
1853
+ /** Value aggregation results */
1922
1854
  values?: ValueResults;
1923
- /** Range aggregation results. */
1855
+ /** Range aggregation results */
1924
1856
  ranges?: RangeResults;
1925
- /** Scalar aggregation results. */
1857
+ /** Scalar aggregation results */
1926
1858
  scalar?: AggregationResultsScalarResult;
1927
- /** Group by value aggregation results. */
1859
+ /** Group by value aggregation results */
1928
1860
  groupedByValue?: GroupByValueResults;
1929
- /** Date histogram aggregation results. */
1861
+ /** Date histogram aggregation results */
1930
1862
  dateHistogram?: DateHistogramResults;
1931
- /** Nested aggregation results. */
1863
+ /** Nested aggregation results */
1932
1864
  nested?: NestedResults;
1933
1865
  /**
1934
- * User-defined name of aggregation as derived from search request.
1866
+ * User-defined name of aggregation as derived from search request
1935
1867
  * @maxLength 100
1936
1868
  */
1937
1869
  name?: string;
1938
- /** Type of aggregation that must match specified kind as derived from search request. */
1870
+ /** Type of aggregation that must match provided kind as derived from search request */
1939
1871
  type?: AggregationTypeWithLiterals;
1940
1872
  /**
1941
- * Path to the field to aggregate by in dot notation. For example `name` or `paymentOptions.online`.
1873
+ * Field to aggregate by as derived from search request
1942
1874
  * @maxLength 200
1943
1875
  */
1944
1876
  fieldPath?: string;
1945
1877
  }
1946
1878
  /** @oneof */
1947
1879
  interface AggregationResultsResultOneOf {
1948
- /** Value aggregation results. */
1880
+ /** Value aggregation results */
1949
1881
  values?: ValueResults;
1950
- /** Range aggregation results. */
1882
+ /** Range aggregation results */
1951
1883
  ranges?: RangeResults;
1952
- /** Scalar aggregation results. */
1884
+ /** Scalar aggregation results */
1953
1885
  scalar?: AggregationResultsScalarResult;
1954
- /** Group by value aggregation results. */
1886
+ /** Group by value aggregation results */
1955
1887
  groupedByValue?: GroupByValueResults;
1956
- /** Date histogram aggregation results. */
1888
+ /** Date histogram aggregation results */
1957
1889
  dateHistogram?: DateHistogramResults;
1958
- /** Nested aggregation results. */
1890
+ /** Nested aggregation results */
1959
1891
  nested?: NestedResults;
1960
1892
  }
1961
1893
  interface QueryPoliciesRequest {