@wix/table-reservations 1.0.65 → 1.0.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/cjs/src/table-reservations-v1-reservation-location.public.d.ts +2 -1
  2. package/build/cjs/src/table-reservations-v1-reservation-location.public.js +4 -1
  3. package/build/cjs/src/table-reservations-v1-reservation-location.public.js.map +1 -1
  4. package/build/cjs/src/table-reservations-v1-reservation-location.universal.d.ts +43 -20
  5. package/build/cjs/src/table-reservations-v1-reservation-location.universal.js +8 -1
  6. package/build/cjs/src/table-reservations-v1-reservation-location.universal.js.map +1 -1
  7. package/build/cjs/src/table-reservations-v1-reservation.public.d.ts +2 -1
  8. package/build/cjs/src/table-reservations-v1-reservation.public.js +4 -1
  9. package/build/cjs/src/table-reservations-v1-reservation.public.js.map +1 -1
  10. package/build/cjs/src/table-reservations-v1-reservation.universal.d.ts +57 -23
  11. package/build/cjs/src/table-reservations-v1-reservation.universal.js +12 -1
  12. package/build/cjs/src/table-reservations-v1-reservation.universal.js.map +1 -1
  13. package/build/cjs/src/table-reservations-v1-time-slot.universal.d.ts +1 -0
  14. package/build/cjs/src/table-reservations-v1-time-slot.universal.js +1 -0
  15. package/build/cjs/src/table-reservations-v1-time-slot.universal.js.map +1 -1
  16. package/build/es/src/table-reservations-v1-reservation-location.public.d.ts +2 -1
  17. package/build/es/src/table-reservations-v1-reservation-location.public.js +1 -0
  18. package/build/es/src/table-reservations-v1-reservation-location.public.js.map +1 -1
  19. package/build/es/src/table-reservations-v1-reservation-location.universal.d.ts +43 -20
  20. package/build/es/src/table-reservations-v1-reservation-location.universal.js +7 -0
  21. package/build/es/src/table-reservations-v1-reservation-location.universal.js.map +1 -1
  22. package/build/es/src/table-reservations-v1-reservation.public.d.ts +2 -1
  23. package/build/es/src/table-reservations-v1-reservation.public.js +1 -0
  24. package/build/es/src/table-reservations-v1-reservation.public.js.map +1 -1
  25. package/build/es/src/table-reservations-v1-reservation.universal.d.ts +57 -23
  26. package/build/es/src/table-reservations-v1-reservation.universal.js +11 -0
  27. package/build/es/src/table-reservations-v1-reservation.universal.js.map +1 -1
  28. package/build/es/src/table-reservations-v1-time-slot.universal.d.ts +1 -0
  29. package/build/es/src/table-reservations-v1-time-slot.universal.js +1 -0
  30. package/build/es/src/table-reservations-v1-time-slot.universal.js.map +1 -1
  31. package/package.json +3 -3
@@ -182,4 +182,5 @@ export declare function updateReservationLocation(httpClient: HttpClient): (_id:
182
182
  export declare function queryReservationLocations(httpClient: HttpClient): (options?: QueryReservationLocationsOptions) => import("./table-reservations-v1-reservation-location.universal").ReservationLocationsQueryBuilder;
183
183
  export declare function listReservationLocations(httpClient: HttpClient): (options?: ListReservationLocationsOptions) => Promise<import("./table-reservations-v1-reservation-location.universal").ListReservationLocationsResponse & import("./table-reservations-v1-reservation-location.universal").ListReservationLocationsResponseNonNullableFields>;
184
184
  export { DayOfWeek, Unit, FieldType, Set, SortOrder, Mode, State, SiteCreatedContext, Namespace, DeleteStatus, FeaturePeriod, } from './table-reservations-v1-reservation-location.universal';
185
- export { ReservationLocation, StreetAddress, AddressLocation, Address, BusinessSchedule, TimePeriod, SpecialHourPeriod, TableDefinition, TableCombination, SeatPacing, PartyPacing, PartiesSize, PartySize, NoticePeriod, TurnoverTimeRule, TurnoverRule, ManualApproval, ManualApprovalValueOneOf, TermsAndConditions, TermsAndConditionsValueOneOf, PrivacyPolicy, PrivacyPolicyValueOneOf, CustomFieldDefinition, EmailMarketingCheckbox, OnlineReservations, ReservationForm, MyReservationsField, TableManagement, ReservationPayment, Location, Configuration, InvalidateCache, InvalidateCacheGetByOneOf, App, Page, URI, GetReservationLocationRequest, GetReservationLocationResponse, UpdateReservationLocationRequest, UpdateReservationLocationResponse, TablesDeleted, QueryReservationLocationsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryReservationLocationsResponse, PagingMetadataV2, Cursors, ListReservationLocationsRequest, ListReservationLocationsResponse, CursorPagingMetadata, DeleteOrphanReservationLocationRequest, DeleteOrphanReservationLocationResponse, MigrateOldRestaurantSettingsRequest, MigrateOldRestaurantSettingsResponse, ParsedSettings, OldScheduleInterval, OldCustomField, OldPolicy, OldTerms, OldScheduleException, OldInstant, MigrationParsingError, MigrationResult, CheckReservationLocationsCreatedRequest, CheckReservationLocationsCreatedResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Asset, SiteCreated, SiteTransferred, SiteDeleted, DeleteContext, SiteUndeleted, SitePublished, SiteUnpublished, SiteMarkedAsTemplate, SiteMarkedAsWixSite, ServiceProvisioned, ServiceRemoved, SiteRenamed, SiteHardDeleted, NamespaceChanged, StudioAssigned, StudioUnassigned, FeatureEvent, FeatureEventEventOneOf, FeatureEnabled, FeatureEnabledReasonOneOf, Feature, FeatureQuantityInfoOneOf, FeatureContext, BooleanFeature, QuotaFeature, QuotaInfo, TransferredFromAnotherAccountReason, ReassignedFromSiteReason, AssignedFromFloatingReason, NewFeatureReason, ContractSwitchedReason, ManualFeatureCreationReason, MigratedFromLegacyReason, FeatureDisabled, FeatureDisabledReasonOneOf, UnAssingedToFloatingReason, ReplacedByAnotherSubscriptionReason, ReassignedToAnotherSiteReason, FeatureUpdated, FeatureUpdatedPreviousQuantityInfoOneOf, FeatureUpdatedReasonOneOf, FeatureCancelled, FeatureCancelledReasonOneOf, TransferredToAnotherAccountReason, CancelRequestedReason, GetReservationLocationResponseNonNullableFields, UpdateReservationLocationResponseNonNullableFields, QueryReservationLocationsResponseNonNullableFields, ListReservationLocationsResponseNonNullableFields, GetReservationLocationOptions, UpdateReservationLocation, QueryReservationLocationsOptions, ReservationLocationsQueryResult, ReservationLocationsQueryBuilder, ListReservationLocationsOptions, } from './table-reservations-v1-reservation-location.universal';
185
+ export { ReservationLocation, StreetAddress, AddressLocation, Address, BusinessSchedule, TimePeriod, SpecialHourPeriod, TableDefinition, TableCombination, SeatPacing, PartyPacing, PartiesSize, PartySize, NoticePeriod, TurnoverTimeRule, TurnoverRule, ManualApproval, ManualApprovalValueOneOf, TermsAndConditions, TermsAndConditionsValueOneOf, PrivacyPolicy, PrivacyPolicyValueOneOf, CustomFieldDefinition, EmailMarketingCheckbox, OnlineReservations, ReservationForm, MyReservationsField, TableManagement, ReservationPayment, Location, Configuration, InvalidateCache, InvalidateCacheGetByOneOf, App, Page, URI, GetReservationLocationRequest, GetReservationLocationResponse, UpdateReservationLocationRequest, UpdateReservationLocationResponse, TablesDeleted, QueryReservationLocationsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryReservationLocationsResponse, PagingMetadataV2, Cursors, ListReservationLocationsRequest, ListReservationLocationsResponse, CursorPagingMetadata, DeleteOrphanReservationLocationRequest, DeleteOrphanReservationLocationResponse, MigrateOldRestaurantSettingsRequest, MigrateOldRestaurantSettingsResponse, ParsedSettings, OldScheduleInterval, OldCustomField, OldPolicy, OldTerms, OldScheduleException, OldInstant, MigrationParsingError, MigrationResult, CheckReservationLocationsCreatedRequest, CheckReservationLocationsCreatedResponse, DomainEvent, DomainCreatedEvent, DomainDeletedEvent, DomainUpdatedEvent, DomainActionEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Asset, SiteCreated, SiteTransferred, SiteDeleted, DeleteContext, SiteUndeleted, SitePublished, SiteUnpublished, SiteMarkedAsTemplate, SiteMarkedAsWixSite, ServiceProvisioned, ServiceRemoved, SiteRenamed, SiteHardDeleted, NamespaceChanged, StudioAssigned, StudioUnassigned, FeatureEvent, FeatureEventEventOneOf, FeatureEnabled, FeatureEnabledReasonOneOf, Feature, FeatureQuantityInfoOneOf, FeatureContext, BooleanFeature, QuotaFeature, QuotaInfo, TransferredFromAnotherAccountReason, ReassignedFromSiteReason, AssignedFromFloatingReason, NewFeatureReason, ContractSwitchedReason, ManualFeatureCreationReason, MigratedFromLegacyReason, FeatureDisabled, FeatureDisabledReasonOneOf, UnAssingedToFloatingReason, ReplacedByAnotherSubscriptionReason, ReassignedToAnotherSiteReason, FeatureUpdated, FeatureUpdatedPreviousQuantityInfoOneOf, FeatureUpdatedReasonOneOf, FeatureCancelled, FeatureCancelledReasonOneOf, TransferredToAnotherAccountReason, CancelRequestedReason, GetReservationLocationResponseNonNullableFields, UpdateReservationLocationResponseNonNullableFields, QueryReservationLocationsResponseNonNullableFields, ListReservationLocationsResponseNonNullableFields, GetReservationLocationOptions, UpdateReservationLocation, QueryReservationLocationsOptions, ReservationLocationsQueryResult, ReservationLocationsQueryBuilder, ListReservationLocationsOptions, } from './table-reservations-v1-reservation-location.universal';
186
+ export { onReservationLocationUpdated, onReservationLocationCreated, } from './table-reservations-v1-reservation-location.universal';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FeaturePeriod = exports.DeleteStatus = exports.Namespace = exports.SiteCreatedContext = exports.State = exports.Mode = exports.SortOrder = exports.Set = exports.FieldType = exports.Unit = exports.DayOfWeek = exports.listReservationLocations = exports.queryReservationLocations = exports.updateReservationLocation = exports.getReservationLocation = exports.__metadata = void 0;
3
+ exports.onReservationLocationCreated = exports.onReservationLocationUpdated = exports.FeaturePeriod = exports.DeleteStatus = exports.Namespace = exports.SiteCreatedContext = exports.State = exports.Mode = exports.SortOrder = exports.Set = exports.FieldType = exports.Unit = exports.DayOfWeek = exports.listReservationLocations = exports.queryReservationLocations = exports.updateReservationLocation = exports.getReservationLocation = exports.__metadata = void 0;
4
4
  const table_reservations_v1_reservation_location_universal_1 = require("./table-reservations-v1-reservation-location.universal");
5
5
  exports.__metadata = { PACKAGE_NAME: '@wix/table-reservations' };
6
6
  function getReservationLocation(httpClient) {
@@ -39,4 +39,7 @@ Object.defineProperty(exports, "SiteCreatedContext", { enumerable: true, get: fu
39
39
  Object.defineProperty(exports, "Namespace", { enumerable: true, get: function () { return table_reservations_v1_reservation_location_universal_2.Namespace; } });
40
40
  Object.defineProperty(exports, "DeleteStatus", { enumerable: true, get: function () { return table_reservations_v1_reservation_location_universal_2.DeleteStatus; } });
41
41
  Object.defineProperty(exports, "FeaturePeriod", { enumerable: true, get: function () { return table_reservations_v1_reservation_location_universal_2.FeaturePeriod; } });
42
+ var table_reservations_v1_reservation_location_universal_3 = require("./table-reservations-v1-reservation-location.universal");
43
+ Object.defineProperty(exports, "onReservationLocationUpdated", { enumerable: true, get: function () { return table_reservations_v1_reservation_location_universal_3.onReservationLocationUpdated; } });
44
+ Object.defineProperty(exports, "onReservationLocationCreated", { enumerable: true, get: function () { return table_reservations_v1_reservation_location_universal_3.onReservationLocationCreated; } });
42
45
  //# sourceMappingURL=table-reservations-v1-reservation-location.public.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"table-reservations-v1-reservation-location.public.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation-location.public.ts"],"names":[],"mappings":";;;AACA,iIASgE;AAEnD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,yBAAyB,EAAE,CAAC;AAEtE,SAAgB,sBAAsB,CAAC,UAAsB;IAC3D,OAAO,CACL,qBAA6B,EAC7B,OAAuC,EACvC,EAAE,CACF,IAAA,6EAA+B,EAC7B,qBAAqB,EACrB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAXD,wDAWC;AAED,SAAgB,yBAAyB,CAAC,UAAsB;IAC9D,OAAO,CAAC,GAAkB,EAAE,mBAA8C,EAAE,EAAE,CAC5E,IAAA,gFAAkC,EAChC,GAAG,EACH,mBAAmB;IACnB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,8DAQC;AAED,SAAgB,yBAAyB,CAAC,UAAsB;IAC9D,OAAO,CAAC,OAA0C,EAAE,EAAE,CACpD,IAAA,gFAAkC,EAChC,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,8DAOC;AAED,SAAgB,wBAAwB,CAAC,UAAsB;IAC7D,OAAO,CAAC,OAAyC,EAAE,EAAE,CACnD,IAAA,+EAAiC,EAC/B,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,4DAOC;AAED,+HAYgE;AAX9D,iJAAA,SAAS,OAAA;AACT,4IAAA,IAAI,OAAA;AACJ,iJAAA,SAAS,OAAA;AACT,2IAAA,GAAG,OAAA;AACH,iJAAA,SAAS,OAAA;AACT,4IAAA,IAAI,OAAA;AACJ,6IAAA,KAAK,OAAA;AACL,0JAAA,kBAAkB,OAAA;AAClB,iJAAA,SAAS,OAAA;AACT,oJAAA,YAAY,OAAA;AACZ,qJAAA,aAAa,OAAA"}
1
+ {"version":3,"file":"table-reservations-v1-reservation-location.public.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation-location.public.ts"],"names":[],"mappings":";;;AACA,iIASgE;AAEnD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,yBAAyB,EAAE,CAAC;AAEtE,SAAgB,sBAAsB,CAAC,UAAsB;IAC3D,OAAO,CACL,qBAA6B,EAC7B,OAAuC,EACvC,EAAE,CACF,IAAA,6EAA+B,EAC7B,qBAAqB,EACrB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAXD,wDAWC;AAED,SAAgB,yBAAyB,CAAC,UAAsB;IAC9D,OAAO,CAAC,GAAkB,EAAE,mBAA8C,EAAE,EAAE,CAC5E,IAAA,gFAAkC,EAChC,GAAG,EACH,mBAAmB;IACnB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,8DAQC;AAED,SAAgB,yBAAyB,CAAC,UAAsB;IAC9D,OAAO,CAAC,OAA0C,EAAE,EAAE,CACpD,IAAA,gFAAkC,EAChC,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,8DAOC;AAED,SAAgB,wBAAwB,CAAC,UAAsB;IAC7D,OAAO,CAAC,OAAyC,EAAE,EAAE,CACnD,IAAA,+EAAiC,EAC/B,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,4DAOC;AAED,+HAYgE;AAX9D,iJAAA,SAAS,OAAA;AACT,4IAAA,IAAI,OAAA;AACJ,iJAAA,SAAS,OAAA;AACT,2IAAA,GAAG,OAAA;AACH,iJAAA,SAAS,OAAA;AACT,4IAAA,IAAI,OAAA;AACJ,6IAAA,KAAK,OAAA;AACL,0JAAA,kBAAkB,OAAA;AAClB,iJAAA,SAAS,OAAA;AACT,oJAAA,YAAY,OAAA;AACZ,qJAAA,aAAa,OAAA;AA6If,+HAGgE;AAF9D,oKAAA,4BAA4B,OAAA;AAC5B,oKAAA,4BAA4B,OAAA"}
@@ -1,3 +1,4 @@
1
+ import { EventDefinition } from '@wix/sdk-types';
1
2
  export interface ReservationLocation {
2
3
  /**
3
4
  * Reservation location ID.
@@ -770,11 +771,11 @@ export interface CheckReservationLocationsCreatedResponse {
770
771
  /** Reservation locations created. */
771
772
  created?: boolean;
772
773
  }
773
- export interface DomainEvent extends DomainEventBodyOneOf {
774
- createdEvent?: EntityCreatedEvent;
775
- updatedEvent?: EntityUpdatedEvent;
776
- deletedEvent?: EntityDeletedEvent;
777
- actionEvent?: ActionEvent;
774
+ export interface DomainEvent<T = string> extends DomainEventBodyOneOf<T> {
775
+ createdEvent?: EntityCreatedEvent<T>;
776
+ updatedEvent?: EntityUpdatedEvent<T>;
777
+ deletedEvent?: EntityDeletedEvent<T>;
778
+ actionEvent?: ActionEvent<T>;
778
779
  /**
779
780
  * Unique event ID.
780
781
  * Allows clients to ignore duplicate webhooks.
@@ -812,30 +813,38 @@ export interface DomainEvent extends DomainEventBodyOneOf {
812
813
  */
813
814
  entityEventSequence?: string | null;
814
815
  }
816
+ export interface DomainCreatedEvent<T> extends Omit<DomainEvent<T>, 'deletedEvent' | 'updatedEvent' | 'actionEvent'> {
817
+ }
818
+ export interface DomainDeletedEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'updatedEvent' | 'actionEvent'> {
819
+ }
820
+ export interface DomainUpdatedEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'deletedEvent' | 'actionEvent'> {
821
+ }
822
+ export interface DomainActionEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'deletedEvent' | 'updatedEvent'> {
823
+ }
815
824
  /** @oneof */
816
- export interface DomainEventBodyOneOf {
817
- createdEvent?: EntityCreatedEvent;
818
- updatedEvent?: EntityUpdatedEvent;
819
- deletedEvent?: EntityDeletedEvent;
820
- actionEvent?: ActionEvent;
825
+ export interface DomainEventBodyOneOf<T> {
826
+ createdEvent?: EntityCreatedEvent<T>;
827
+ updatedEvent?: EntityUpdatedEvent<T>;
828
+ deletedEvent?: EntityDeletedEvent<T>;
829
+ actionEvent?: ActionEvent<T>;
821
830
  }
822
- export interface EntityCreatedEvent {
823
- entityAsJson?: string;
831
+ export interface EntityCreatedEvent<T> {
832
+ entity?: T;
824
833
  }
825
- export interface EntityUpdatedEvent {
834
+ export interface EntityUpdatedEvent<T> {
826
835
  /**
827
836
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
828
837
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
829
838
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
830
839
  */
831
- currentEntityAsJson?: string;
840
+ currentEntity?: T;
832
841
  }
833
- export interface EntityDeletedEvent {
842
+ export interface EntityDeletedEvent<T> {
834
843
  /** Entity that was deleted */
835
- deletedEntityAsJson?: string | null;
844
+ deletedEntity?: T | null;
836
845
  }
837
- export interface ActionEvent {
838
- bodyAsJson?: string;
846
+ export interface ActionEvent<T> {
847
+ body?: T;
839
848
  }
840
849
  export interface Empty {
841
850
  }
@@ -1854,12 +1863,15 @@ export interface ListReservationLocationsResponseNonNullableFields {
1854
1863
  };
1855
1864
  }[];
1856
1865
  }
1866
+ export declare const onReservationLocationUpdated: EventDefinition<DomainUpdatedEvent<ReservationLocation>, "wix.table_reservations.v1.reservation_location_updated">;
1867
+ export declare const onReservationLocationCreated: EventDefinition<DomainCreatedEvent<ReservationLocation>, "wix.table_reservations.v1.reservation_location_created">;
1857
1868
  /**
1858
1869
  * Retrieves a reservation location by ID.
1859
1870
  *
1860
1871
  * The `FULL` fieldset can only be retrieved by users with the `READ RESERVATION LOCATIONS (FULL)` or `MANAGE RESERVATION LOCATIONS` permission scopes.
1861
1872
  * @param reservationLocationId - ID of the ReservationLocation to retrieve.
1862
1873
  * @public
1874
+ * @documentationMaturity preview
1863
1875
  * @requiredField reservationLocationId
1864
1876
  * @param options - An object representing the available options for retrieving a reservation location.
1865
1877
  * @permissionScope Read Reservation Locations (Basic)
@@ -1900,6 +1912,7 @@ export interface GetReservationLocationOptions {
1900
1912
  * You cannot use this endpoint to change a reservation location's `location` object. Attempting to do so will cause the server to return an application error.
1901
1913
  * @param _id - Reservation location ID.
1902
1914
  * @public
1915
+ * @documentationMaturity preview
1903
1916
  * @requiredField _id
1904
1917
  * @requiredField reservationLocation
1905
1918
  * @requiredField reservationLocation.revision
@@ -1967,6 +1980,7 @@ export interface UpdateReservationLocation {
1967
1980
  *
1968
1981
  * The following `ReservationLocationsQueryBuilder` functions are supported for `queryReservationLocations()`. For a full description of the reservation location object, see the object returned for the [`items`](#ReservationLocationsQueryResult/items) property in [`ReservationLocationsQueryResult`](#ReservationLocationsQueryResult).
1969
1982
  * @public
1983
+ * @documentationMaturity preview
1970
1984
  * @param options - An object representing the available options for querying reservation locations.
1971
1985
  * @permissionScope Read Reservation Locations (Basic)
1972
1986
  * @permissionScopeId SCOPE.DC-RESERVATIONS.READ-LOCATIONS-BASIC
@@ -2013,17 +2027,25 @@ export interface ReservationLocationsQueryResult extends QueryCursorResult {
2013
2027
  export interface ReservationLocationsQueryBuilder {
2014
2028
  /** @param propertyName - Property whose value is compared with `value`.
2015
2029
  * @param value - Value to compare against.
2030
+ * @documentationMaturity preview
2016
2031
  */
2017
2032
  eq: (propertyName: '_id', value: any) => ReservationLocationsQueryBuilder;
2018
2033
  /** @param propertyName - Property whose value is compared with `value`.
2019
2034
  * @param value - Value to compare against.
2035
+ * @documentationMaturity preview
2020
2036
  */
2021
2037
  ne: (propertyName: '_id', value: any) => ReservationLocationsQueryBuilder;
2038
+ /** @documentationMaturity preview */
2022
2039
  in: (propertyName: '_id', value: any) => ReservationLocationsQueryBuilder;
2023
- /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
2040
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
2041
+ * @documentationMaturity preview
2042
+ */
2024
2043
  limit: (limit: number) => ReservationLocationsQueryBuilder;
2025
- /** @param cursor - A pointer to specific record */
2044
+ /** @param cursor - A pointer to specific record
2045
+ * @documentationMaturity preview
2046
+ */
2026
2047
  skipTo: (cursor: string) => ReservationLocationsQueryBuilder;
2048
+ /** @documentationMaturity preview */
2027
2049
  find: () => Promise<ReservationLocationsQueryResult>;
2028
2050
  }
2029
2051
  /**
@@ -2031,6 +2053,7 @@ export interface ReservationLocationsQueryBuilder {
2031
2053
  *
2032
2054
  * The `FULL` fieldset can only be retrieved by users with the `READ RESERVATION LOCATIONS (FULL)` or `MANAGE RESERVATION LOCATIONS` permission scopes.
2033
2055
  * @public
2056
+ * @documentationMaturity preview
2034
2057
  * @param options - An object representing the available options for listing reservation locations.
2035
2058
  * @permissionScope Read Reservation Locations (Basic)
2036
2059
  * @permissionScopeId SCOPE.DC-RESERVATIONS.READ-LOCATIONS-BASIC
@@ -32,9 +32,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
32
32
  });
33
33
  };
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
- exports.listReservationLocations = exports.queryReservationLocations = exports.updateReservationLocation = exports.getReservationLocation = exports.FeaturePeriod = exports.DeleteStatus = exports.Namespace = exports.SiteCreatedContext = exports.State = exports.Mode = exports.SortOrder = exports.Set = exports.FieldType = exports.Unit = exports.DayOfWeek = void 0;
35
+ exports.listReservationLocations = exports.queryReservationLocations = exports.updateReservationLocation = exports.getReservationLocation = exports.onReservationLocationCreated = exports.onReservationLocationUpdated = exports.FeaturePeriod = exports.DeleteStatus = exports.Namespace = exports.SiteCreatedContext = exports.State = exports.Mode = exports.SortOrder = exports.Set = exports.FieldType = exports.Unit = exports.DayOfWeek = void 0;
36
36
  const velo_1 = require("@wix/metro-runtime/velo");
37
37
  const transform_error_1 = require("@wix/sdk-runtime/transform-error");
38
+ const sdk_types_1 = require("@wix/sdk-types");
38
39
  const ambassadorWixTableReservationsV1ReservationLocation = __importStar(require("./table-reservations-v1-reservation-location.http"));
39
40
  // @ts-ignore
40
41
  const motion_edm_autogen_query_wrapper_1 = require("@wix/motion-edm-autogen-query-wrapper");
@@ -229,12 +230,15 @@ const _updateReservationLocationRequest = {
229
230
  const _updateReservationLocationResponse = {
230
231
  reservationLocation: '_reservationLocation',
231
232
  };
233
+ exports.onReservationLocationUpdated = (0, sdk_types_1.EventDefinition)('wix.table_reservations.v1.reservation_location_updated')();
234
+ exports.onReservationLocationCreated = (0, sdk_types_1.EventDefinition)('wix.table_reservations.v1.reservation_location_created')();
232
235
  /**
233
236
  * Retrieves a reservation location by ID.
234
237
  *
235
238
  * The `FULL` fieldset can only be retrieved by users with the `READ RESERVATION LOCATIONS (FULL)` or `MANAGE RESERVATION LOCATIONS` permission scopes.
236
239
  * @param reservationLocationId - ID of the ReservationLocation to retrieve.
237
240
  * @public
241
+ * @documentationMaturity preview
238
242
  * @requiredField reservationLocationId
239
243
  * @param options - An object representing the available options for retrieving a reservation location.
240
244
  * @permissionScope Read Reservation Locations (Basic)
@@ -318,6 +322,7 @@ exports.getReservationLocation = getReservationLocation;
318
322
  * You cannot use this endpoint to change a reservation location's `location` object. Attempting to do so will cause the server to return an application error.
319
323
  * @param _id - Reservation location ID.
320
324
  * @public
325
+ * @documentationMaturity preview
321
326
  * @requiredField _id
322
327
  * @requiredField reservationLocation
323
328
  * @requiredField reservationLocation.revision
@@ -406,6 +411,7 @@ exports.updateReservationLocation = updateReservationLocation;
406
411
  *
407
412
  * The following `ReservationLocationsQueryBuilder` functions are supported for `queryReservationLocations()`. For a full description of the reservation location object, see the object returned for the [`items`](#ReservationLocationsQueryResult/items) property in [`ReservationLocationsQueryResult`](#ReservationLocationsQueryResult).
408
413
  * @public
414
+ * @documentationMaturity preview
409
415
  * @param options - An object representing the available options for querying reservation locations.
410
416
  * @permissionScope Read Reservation Locations (Basic)
411
417
  * @permissionScopeId SCOPE.DC-RESERVATIONS.READ-LOCATIONS-BASIC
@@ -485,6 +491,7 @@ exports.queryReservationLocations = queryReservationLocations;
485
491
  *
486
492
  * The `FULL` fieldset can only be retrieved by users with the `READ RESERVATION LOCATIONS (FULL)` or `MANAGE RESERVATION LOCATIONS` permission scopes.
487
493
  * @public
494
+ * @documentationMaturity preview
488
495
  * @param options - An object representing the available options for listing reservation locations.
489
496
  * @permissionScope Read Reservation Locations (Basic)
490
497
  * @permissionScopeId SCOPE.DC-RESERVATIONS.READ-LOCATIONS-BASIC
@@ -1 +1 @@
1
- {"version":3,"file":"table-reservations-v1-reservation-location.universal.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation-location.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AACjC,sEAAuF;AAEvF,uIAAyH;AACzH,aAAa;AACb,4FAA6E;AAE7E,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAoH5B,uCAAuC;AACvC,IAAY,SAQX;AARD,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,oCAAuB,CAAA;IACvB,kCAAqB,C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gBACD,uBAAuB,EAAE,KAAK;aAC/B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;YACF,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,4DAAG,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;QACzB,CAAC;;CACF;AA7ED,4DA6EC"}
1
+ {"version":3,"file":"table-reservations-v1-reservation-location.universal.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation-location.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AACjC,sEAAuF;AACvF,8CAA6D;AAC7D,uIAAyH;AACzH,aAAa;AACb,4FAA6E;AAE7E,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAoH5B,uCAAuC;AACvC,IAAY,SAQX;AARD,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;IACrB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,8BAAiB,CAAA;AACnB,CAAC,EARW,SAAS,yBAAT,SAAS,QAQpB;AA8CD,IAAY,IAKX;AALD,WAAY,IAAI;IACd,2BAAmB,CAAA;IACnB,2BAAmB,CAAA;IACnB,uBAAe,CAAA;IACf,qBAAa,CAAA;AACf,CAAC,EALW,IAAI,oBAAJ,IAAI,QAKf;AAiGD,yBAAyB;AACzB,IAAY,SAgBX;AAhBD,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;IACf,sCAAyB,CAAA;IACzB,kCAAqB,CAAA;IACrB,0CAA6B,CAAA;IAC7B,0CAA6B,CAAA;IAC7B,sCAAyB,CAAA;IACzB,sCAAyB,CAAA;IACzB,oCAAuB,CAAA;IACvB,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,gDAAmC,CAAA;IACnC,0CAA6B,CAAA;IAC7B,0C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CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;gBAC1C,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QAE/C,MAAM,OAAO,GACX,mDAAmD,CAAC,wBAAwB,CAC1E,OAAO,CACR,CAAC;QAEJ,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,2DAAI,CAAC;QAC5B,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,4DAAG,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;QACtC,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;gBACE,sBAAsB,EAAE,EAAE;gBAC1B,wBAAwB,EAAE;oBACxB,MAAM,EAAE,aAAa;oBACrB,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,gBAAgB;iBAC5B;gBACD,uBAAuB,EAAE,KAAK;aAC/B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;YACF,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,4DAAG,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;QACzB,CAAC;;CACF;AA7ED,4DA6EC"}
@@ -21,4 +21,5 @@ export declare function cancelReservation(httpClient: HttpClient): (reservationI
21
21
  export declare function listReservations(httpClient: HttpClient): (options?: ListReservationsOptions) => Promise<import("./table-reservations-v1-reservation.universal").ListReservationsResponse & import("./table-reservations-v1-reservation.universal").ListReservationsResponseNonNullableFields>;
22
22
  export declare function queryReservations(httpClient: HttpClient): () => import("./table-reservations-v1-reservation.universal").ReservationsQueryBuilder;
23
23
  export { Status, Source, TableCombinationConflictType, Type, Set, SortOrder, SortType, SortDirection, MissingValues, ScalarType, NestedAggregationType, Interval, AggregationType, Mode, } from './table-reservations-v1-reservation.universal';
24
- export { Reservation, Details, Reservee, ReservedBy, MigrationNote, TableWithReservationConflicts, CreateReservationRequest, CreateReservationResponse, ReservationDetailsConflicts, TableCombinationConflict, ReservationLocationConflict, GetReservationRequest, GetReservationResponse, UpdateReservationRequest, UpdateReservationResponse, ReservationDataUpdated, CreateHeldReservationRequest, HeldReservationDetails, CreateHeldReservationResponse, ReserveReservationRequest, ReserveReservationResponse, ReservationReserved, CancelReservationRequest, CancelReservationResponse, ReservationCanceled, DeleteReservationRequest, DeleteReservationResponse, ListReservationsRequest, CursorPaging, Sorting, ListReservationsResponse, CursorPagingMetadata, Cursors, QueryReservationsRequest, CursorQuery, CursorQueryPagingMethodOneOf, QueryReservationsResponse, SearchReservationsRequest, CursorSearch, CursorSearchPagingMethodOneOf, Aggregation, AggregationKindOneOf, RangeBucket, IncludeMissingValuesOptions, ValueAggregation, ValueAggregationOptionsOneOf, RangeAggregation, ScalarAggregation, DateHistogramAggregation, NestedAggregationItem, NestedAggregationItemKindOneOf, NestedAggregation, GroupByAggregation, GroupByAggregationKindOneOf, SearchDetails, SearchReservationsResponse, AggregationData, ValueAggregationResult, RangeAggregationResult, NestedAggregationResults, NestedAggregationResultsResultOneOf, ValueResults, RangeResults, ScalarResult, NestedValueAggregationResult, ValueResult, RangeResult, NestedResultsScalarResult, NestedResultValue, NestedResultValueResultOneOf, Results, DateHistogramResult, GroupByValueResults, DateHistogramResults, NestedResults, AggregationResults, AggregationResultsResultOneOf, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, RemoveReservationMigrationNotesRequest, RemoveReservationMigrationNotesResponse, CreateReservationResponseNonNullableFields, GetReservationResponseNonNullableFields, UpdateReservationResponseNonNullableFields, CreateHeldReservationResponseNonNullableFields, ReserveReservationResponseNonNullableFields, CancelReservationResponseNonNullableFields, ListReservationsResponseNonNullableFields, QueryReservationsResponseNonNullableFields, CreateReservationOptions, GetReservationOptions, UpdateReservation, UpdateReservationOptions, CancelReservationOptions, ListReservationsOptions, ReservationsQueryResult, ReservationsQueryBuilder, } from './table-reservations-v1-reservation.universal';
24
+ export { Reservation, Details, Reservee, ReservedBy, MigrationNote, TableWithReservationConflicts, CreateReservationRequest, CreateReservationResponse, ReservationDetailsConflicts, TableCombinationConflict, ReservationLocationConflict, GetReservationRequest, GetReservationResponse, UpdateReservationRequest, UpdateReservationResponse, ReservationDataUpdated, CreateHeldReservationRequest, HeldReservationDetails, CreateHeldReservationResponse, ReserveReservationRequest, ReserveReservationResponse, ReservationReserved, CancelReservationRequest, CancelReservationResponse, ReservationCanceled, DeleteReservationRequest, DeleteReservationResponse, ListReservationsRequest, CursorPaging, Sorting, ListReservationsResponse, CursorPagingMetadata, Cursors, QueryReservationsRequest, CursorQuery, CursorQueryPagingMethodOneOf, QueryReservationsResponse, SearchReservationsRequest, CursorSearch, CursorSearchPagingMethodOneOf, Aggregation, AggregationKindOneOf, RangeBucket, IncludeMissingValuesOptions, ValueAggregation, ValueAggregationOptionsOneOf, RangeAggregation, ScalarAggregation, DateHistogramAggregation, NestedAggregationItem, NestedAggregationItemKindOneOf, NestedAggregation, GroupByAggregation, GroupByAggregationKindOneOf, SearchDetails, SearchReservationsResponse, AggregationData, ValueAggregationResult, RangeAggregationResult, NestedAggregationResults, NestedAggregationResultsResultOneOf, ValueResults, RangeResults, ScalarResult, NestedValueAggregationResult, ValueResult, RangeResult, NestedResultsScalarResult, NestedResultValue, NestedResultValueResultOneOf, Results, DateHistogramResult, GroupByValueResults, DateHistogramResults, NestedResults, AggregationResults, AggregationResultsResultOneOf, DomainEvent, DomainCreatedEvent, DomainDeletedEvent, DomainUpdatedEvent, DomainActionEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, RemoveReservationMigrationNotesRequest, RemoveReservationMigrationNotesResponse, CreateReservationResponseNonNullableFields, GetReservationResponseNonNullableFields, UpdateReservationResponseNonNullableFields, CreateHeldReservationResponseNonNullableFields, ReserveReservationResponseNonNullableFields, CancelReservationResponseNonNullableFields, ListReservationsResponseNonNullableFields, QueryReservationsResponseNonNullableFields, CreateReservationOptions, GetReservationOptions, UpdateReservation, UpdateReservationOptions, CancelReservationOptions, ListReservationsOptions, ReservationsQueryResult, ReservationsQueryBuilder, } from './table-reservations-v1-reservation.universal';
25
+ export { onReservationCreated, onReservationUpdated, } from './table-reservations-v1-reservation.universal';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Mode = exports.AggregationType = exports.Interval = exports.NestedAggregationType = exports.ScalarType = exports.MissingValues = exports.SortDirection = exports.SortType = exports.SortOrder = exports.Set = exports.Type = exports.TableCombinationConflictType = exports.Source = exports.Status = exports.queryReservations = exports.listReservations = exports.cancelReservation = exports.reserveReservation = exports.createHeldReservation = exports.updateReservation = exports.getReservation = exports.createReservation = exports.__metadata = void 0;
3
+ exports.onReservationUpdated = exports.onReservationCreated = exports.Mode = exports.AggregationType = exports.Interval = exports.NestedAggregationType = exports.ScalarType = exports.MissingValues = exports.SortDirection = exports.SortType = exports.SortOrder = exports.Set = exports.Type = exports.TableCombinationConflictType = exports.Source = exports.Status = exports.queryReservations = exports.listReservations = exports.cancelReservation = exports.reserveReservation = exports.createHeldReservation = exports.updateReservation = exports.getReservation = exports.createReservation = exports.__metadata = void 0;
4
4
  const table_reservations_v1_reservation_universal_1 = require("./table-reservations-v1-reservation.universal");
5
5
  exports.__metadata = { PACKAGE_NAME: '@wix/table-reservations' };
6
6
  function createReservation(httpClient) {
@@ -66,4 +66,7 @@ Object.defineProperty(exports, "NestedAggregationType", { enumerable: true, get:
66
66
  Object.defineProperty(exports, "Interval", { enumerable: true, get: function () { return table_reservations_v1_reservation_universal_2.Interval; } });
67
67
  Object.defineProperty(exports, "AggregationType", { enumerable: true, get: function () { return table_reservations_v1_reservation_universal_2.AggregationType; } });
68
68
  Object.defineProperty(exports, "Mode", { enumerable: true, get: function () { return table_reservations_v1_reservation_universal_2.Mode; } });
69
+ var table_reservations_v1_reservation_universal_3 = require("./table-reservations-v1-reservation.universal");
70
+ Object.defineProperty(exports, "onReservationCreated", { enumerable: true, get: function () { return table_reservations_v1_reservation_universal_3.onReservationCreated; } });
71
+ Object.defineProperty(exports, "onReservationUpdated", { enumerable: true, get: function () { return table_reservations_v1_reservation_universal_3.onReservationUpdated; } });
69
72
  //# sourceMappingURL=table-reservations-v1-reservation.public.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"table-reservations-v1-reservation.public.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation.public.ts"],"names":[],"mappings":";;;AACA,+GAkBuD;AAE1C,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,yBAAyB,EAAE,CAAC;AAEtE,SAAgB,iBAAiB,CAAC,UAAsB;IACtD,OAAO,CAAC,WAAwB,EAAE,OAAkC,EAAE,EAAE,CACtE,IAAA,+DAA0B,EACxB,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,8CAQC;AAED,SAAgB,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,aAAqB,EAAE,OAA+B,EAAE,EAAE,CAChE,IAAA,4DAAuB,EACrB,aAAa,EACb,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,wCAQC;AAED,SAAgB,iBAAiB,CAAC,UAAsB;IACtD,OAAO,CACL,GAAkB,EAClB,WAA8B,EAC9B,OAAkC,EAClC,EAAE,CACF,IAAA,+DAA0B,EACxB,GAAG,EACH,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;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qB,OAAA;AACrB,uIAAA,QAAQ,OAAA;AACR,8IAAA,eAAe,OAAA;AACf,mIAAA,IAAI,OAAA"}
1
+ {"version":3,"file":"table-reservations-v1-reservation.public.js","sourceRoot":"","sources":["../../../src/table-reservations-v1-reservation.public.ts"],"names":[],"mappings":";;;AACA,+GAkBuD;AAE1C,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,yBAAyB,EAAE,CAAC;AAEtE,SAAgB,iBAAiB,CAAC,UAAsB;IACtD,OAAO,CAAC,WAAwB,EAAE,OAAkC,EAAE,EAAE,CACtE,IAAA,+DAA0B,EACxB,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,8CAQC;AAED,SAAgB,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,aAAqB,EAAE,OAA+B,EAAE,EAAE,CAChE,IAAA,4DAAuB,EACrB,aAAa,EACb,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,wCAQC;AAED,SAAgB,iBAAiB,CAAC,UAAsB;IACtD,OAAO,CACL,GAAkB,EAClB,WAA8B,EAC9B,OAAkC,EAClC,EAAE,CACF,IAAA,+DAA0B,EACxB,GAAG,EACH,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,8CAaC;AAED,SAAgB,qBAAqB,CAAC,UAAsB;IAC1D,OAAO,CAAC,kBAA0C,EAAE,EAAE,CACpD,IAAA,mEAA8B,EAC5B,kBAAkB;IAClB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,sDAOC;AAED,SAAgB,kBAAkB,CAAC,UAAsB;IACvD,OAAO,CAAC,aAAqB,EAAE,QAAkB,EAAE,QAAuB,EAAE,EAAE,CAC5E,IAAA,gEAA2B,EACzB,aAAa,EACb,QAAQ,EACR,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,gDASC;AAED,SAAgB,iBAAiB,CAAC,UAAsB;IACtD,OAAO,CACL,aAAqB,EACrB,QAAuB,EACvB,OAAkC,EAClC,EAAE,CACF,IAAA,+DAA0B,EACxB,aAAa,EACb,QAAQ,EACR,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,8CAaC;AAED,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,CAAC,OAAiC,EAAE,EAAE,CAC3C,IAAA,8DAAyB,EACvB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,4CAOC;AAED,SAAgB,iBAAiB,CAAC,UAAsB;IACtD,OAAO,GAAG,EAAE,CACV,IAAA,+DAA0B;IACxB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAND,8CAMC;AAED,6GAeuD;AAdrD,qIAAA,MAAM,OAAA;AACN,qIAAA,MAAM,OAAA;AACN,2JAAA,4BAA4B,OAAA;AAC5B,mIAAA,IAAI,OAAA;AACJ,kIAAA,GAAG,OAAA;AACH,wIAAA,SAAS,OAAA;AACT,uIAAA,QAAQ,OAAA;AACR,4IAAA,aAAa,OAAA;AACb,4IAAA,aAAa,OAAA;AACb,yIAAA,UAAU,OAAA;AACV,oJAAA,qBAAqB,OAAA;AACrB,uIAAA,QAAQ,OAAA;AACR,8IAAA,eAAe,OAAA;AACf,mIAAA,IAAI,OAAA;AA8GN,6GAGuD;AAFrD,mJAAA,oBAAoB,OAAA;AACpB,mJAAA,oBAAoB,OAAA"}
@@ -1,3 +1,4 @@
1
+ import { EventDefinition } from '@wix/sdk-types';
1
2
  /** The reservation domain object. */
2
3
  export interface Reservation {
3
4
  /**
@@ -727,13 +728,13 @@ export interface AggregationResultsResultOneOf {
727
728
  dateHistogram?: DateHistogramResults;
728
729
  nested?: NestedResults;
729
730
  }
730
- export interface DomainEvent extends DomainEventBodyOneOf {
731
+ export interface DomainEvent<T = string> extends DomainEventBodyOneOf<T> {
731
732
  /** Information about the reservation that was created and event metadata. */
732
- createdEvent?: EntityCreatedEvent;
733
+ createdEvent?: EntityCreatedEvent<T>;
733
734
  /** Information about the reservation that was updated and event metadata. */
734
- updatedEvent?: EntityUpdatedEvent;
735
- deletedEvent?: EntityDeletedEvent;
736
- actionEvent?: ActionEvent;
735
+ updatedEvent?: EntityUpdatedEvent<T>;
736
+ deletedEvent?: EntityDeletedEvent<T>;
737
+ actionEvent?: ActionEvent<T>;
737
738
  /**
738
739
  * Unique event ID.
739
740
  * Allows clients to ignore duplicate webhooks.
@@ -771,31 +772,38 @@ export interface DomainEvent extends DomainEventBodyOneOf {
771
772
  */
772
773
  entityEventSequence?: string | null;
773
774
  }
775
+ export interface DomainCreatedEvent<T> extends Omit<DomainEvent<T>, 'deletedEvent' | 'updatedEvent' | 'actionEvent'> {
776
+ }
777
+ export interface DomainDeletedEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'updatedEvent' | 'actionEvent'> {
778
+ }
779
+ export interface DomainUpdatedEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'deletedEvent' | 'actionEvent'> {
780
+ }
781
+ export interface DomainActionEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'deletedEvent' | 'updatedEvent'> {
782
+ }
774
783
  /** @oneof */
775
- export interface DomainEventBodyOneOf {
776
- createdEvent?: EntityCreatedEvent;
777
- updatedEvent?: EntityUpdatedEvent;
778
- deletedEvent?: EntityDeletedEvent;
779
- actionEvent?: ActionEvent;
784
+ export interface DomainEventBodyOneOf<T> {
785
+ createdEvent?: EntityCreatedEvent<T>;
786
+ updatedEvent?: EntityUpdatedEvent<T>;
787
+ deletedEvent?: EntityDeletedEvent<T>;
788
+ actionEvent?: ActionEvent<T>;
780
789
  }
781
- export interface EntityCreatedEvent {
782
- /** Information about the reservation that was created in JSON format. */
783
- entityAsJson?: string;
790
+ export interface EntityCreatedEvent<T> {
791
+ entity?: T;
784
792
  }
785
- export interface EntityUpdatedEvent {
793
+ export interface EntityUpdatedEvent<T> {
786
794
  /**
787
795
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
788
796
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
789
797
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
790
798
  */
791
- currentEntityAsJson?: string;
799
+ currentEntity?: T;
792
800
  }
793
- export interface EntityDeletedEvent {
801
+ export interface EntityDeletedEvent<T> {
794
802
  /** Entity that was deleted */
795
- deletedEntityAsJson?: string | null;
803
+ deletedEntity?: T | null;
796
804
  }
797
- export interface ActionEvent {
798
- bodyAsJson?: string;
805
+ export interface ActionEvent<T> {
806
+ body?: T;
799
807
  }
800
808
  export interface Empty {
801
809
  }
@@ -856,6 +864,8 @@ export interface QueryReservationsResponseNonNullableFields {
856
864
  source: Source;
857
865
  }[];
858
866
  }
867
+ export declare const onReservationCreated: EventDefinition<DomainCreatedEvent<Reservation>, "wix.table_reservations.v1.reservation_created">;
868
+ export declare const onReservationUpdated: EventDefinition<DomainUpdatedEvent<Reservation>, "wix.table_reservations.v1.reservation_updated">;
859
869
  /**
860
870
  * Creates a new reservation.
861
871
  *
@@ -880,6 +890,7 @@ export interface QueryReservationsResponseNonNullableFields {
880
890
  * > **Note:** `createReservation()` requires all details of the reservation upfront. The process of creating a reservation can be broken up using `createHeldReservation`. `createHeldReservation` creates a temporary reservation that expires automatically unless it is completed with the addition of more details using `reserveReservation()`.
881
891
  * @param reservation - Reservation details.
882
892
  * @public
893
+ * @documentationMaturity preview
883
894
  * @requiredField reservation
884
895
  * @requiredField reservation.details
885
896
  * @requiredField reservation.details.partySize
@@ -926,6 +937,7 @@ export interface CreateReservationOptions {
926
937
  * Calling this method with `fieldsets` set to `FULL` requires additional permissions. See this API's Introduction article for more information.
927
938
  * @param reservationId - Reservation ID.
928
939
  * @public
940
+ * @documentationMaturity preview
929
941
  * @requiredField reservationId
930
942
  * @permissionScope Manage Reservations (Medium)
931
943
  * @permissionScopeId SCOPE.DC-RESERVATIONS.MANAGE-RESERVATIONS-MEDIUM
@@ -961,6 +973,7 @@ export interface GetReservationOptions {
961
973
  * Each time the reservation is updated, revision increments by 1. The existing revision must be included when updating the reservation. This ensures you're working with the latest reservation information, and it prevents unintended overwrites.
962
974
  * @param _id - Reservation ID.
963
975
  * @public
976
+ * @documentationMaturity preview
964
977
  * @requiredField _id
965
978
  * @requiredField reservation
966
979
  * @requiredField reservation.revision
@@ -1071,6 +1084,7 @@ export interface UpdateReservationOptions {
1071
1084
  *
1072
1085
  * @param reservationDetails - Held reservation information to update.
1073
1086
  * @public
1087
+ * @documentationMaturity preview
1074
1088
  * @requiredField reservationDetails
1075
1089
  * @requiredField reservationDetails.partySize
1076
1090
  * @requiredField reservationDetails.reservationLocationId
@@ -1102,6 +1116,7 @@ export declare function createHeldReservation(reservationDetails: HeldReservatio
1102
1116
  *
1103
1117
  * Include the existing `revision` to prevent conflicting updates to reservations.
1104
1118
  * @public
1119
+ * @documentationMaturity preview
1105
1120
  * @requiredField reservationId
1106
1121
  * @requiredField reservee
1107
1122
  * @requiredField reservee.firstName
@@ -1127,6 +1142,7 @@ export declare function reserveReservation(reservationId: string, reservee: Rese
1127
1142
  *
1128
1143
  * Include the existing `revision` to prevent conflicting updates to reservations.
1129
1144
  * @public
1145
+ * @documentationMaturity preview
1130
1146
  * @requiredField reservationId
1131
1147
  * @requiredField revision
1132
1148
  * @param options - Options for canceling the reservation.
@@ -1154,6 +1170,7 @@ export interface CancelReservationOptions {
1154
1170
  /**
1155
1171
  * Retrieves a list of up to 100 reservations.
1156
1172
  * @public
1173
+ * @documentationMaturity preview
1157
1174
  * @param options - Options for listing the reservations.
1158
1175
  * @permissionScope Manage Reservations (Medium)
1159
1176
  * @permissionScopeId SCOPE.DC-RESERVATIONS.MANAGE-RESERVATIONS-MEDIUM
@@ -1202,6 +1219,7 @@ export interface ListReservationsOptions {
1202
1219
  *
1203
1220
  * The following `ReservationsQueryBuilder` functions are supported for `queryReservations()`. For a full description of the reservation object, see the object returned for the [`items`](#ReservationsQueryResult/items) property in [`ReservationsQueryResult`](#ReservationsQueryResult).
1204
1221
  * @public
1222
+ * @documentationMaturity preview
1205
1223
  * @permissionScope Manage Reservations (Medium)
1206
1224
  * @permissionScopeId SCOPE.DC-RESERVATIONS.MANAGE-RESERVATIONS-MEDIUM
1207
1225
  * @permissionScope Manage Reservations (Full)
@@ -1225,37 +1243,53 @@ export interface ReservationsQueryResult extends QueryCursorResult {
1225
1243
  export interface ReservationsQueryBuilder {
1226
1244
  /** @param propertyName - Property whose value is compared with `value`.
1227
1245
  * @param value - Value to compare against.
1246
+ * @documentationMaturity preview
1228
1247
  */
1229
1248
  eq: (propertyName: '_id' | 'status' | 'details.startDate', value: any) => ReservationsQueryBuilder;
1230
1249
  /** @param propertyName - Property whose value is compared with `value`.
1231
1250
  * @param value - Value to compare against.
1251
+ * @documentationMaturity preview
1232
1252
  */
1233
1253
  ne: (propertyName: '_id' | 'status' | 'details.startDate', value: any) => ReservationsQueryBuilder;
1234
1254
  /** @param propertyName - Property whose value is compared with `value`.
1235
1255
  * @param value - Value to compare against.
1256
+ * @documentationMaturity preview
1236
1257
  */
1237
1258
  ge: (propertyName: 'details.startDate', value: any) => ReservationsQueryBuilder;
1238
1259
  /** @param propertyName - Property whose value is compared with `value`.
1239
1260
  * @param value - Value to compare against.
1261
+ * @documentationMaturity preview
1240
1262
  */
1241
1263
  gt: (propertyName: 'details.startDate', value: any) => ReservationsQueryBuilder;
1242
1264
  /** @param propertyName - Property whose value is compared with `value`.
1243
1265
  * @param value - Value to compare against.
1266
+ * @documentationMaturity preview
1244
1267
  */
1245
1268
  le: (propertyName: 'details.startDate', value: any) => ReservationsQueryBuilder;
1246
1269
  /** @param propertyName - Property whose value is compared with `value`.
1247
1270
  * @param value - Value to compare against.
1271
+ * @documentationMaturity preview
1248
1272
  */
1249
1273
  lt: (propertyName: 'details.startDate', value: any) => ReservationsQueryBuilder;
1274
+ /** @documentationMaturity preview */
1250
1275
  in: (propertyName: '_id' | 'status' | 'details.startDate', value: any) => ReservationsQueryBuilder;
1251
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
1276
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
1277
+ * @documentationMaturity preview
1278
+ */
1252
1279
  ascending: (...propertyNames: Array<'details.startDate'>) => ReservationsQueryBuilder;
1253
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
1280
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
1281
+ * @documentationMaturity preview
1282
+ */
1254
1283
  descending: (...propertyNames: Array<'details.startDate'>) => ReservationsQueryBuilder;
1255
- /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
1284
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
1285
+ * @documentationMaturity preview
1286
+ */
1256
1287
  limit: (limit: number) => ReservationsQueryBuilder;
1257
- /** @param cursor - A pointer to specific record */
1288
+ /** @param cursor - A pointer to specific record
1289
+ * @documentationMaturity preview
1290
+ */
1258
1291
  skipTo: (cursor: string) => ReservationsQueryBuilder;
1292
+ /** @documentationMaturity preview */
1259
1293
  find: () => Promise<ReservationsQueryResult>;
1260
1294
  }
1261
1295
  export {};
@@ -32,9 +32,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
32
32
  });
33
33
  };
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
- exports.queryReservations = exports.listReservations = exports.cancelReservation = exports.reserveReservation = exports.createHeldReservation = exports.updateReservation = exports.getReservation = exports.createReservation = exports.Mode = exports.AggregationType = exports.Interval = exports.NestedAggregationType = exports.ScalarType = exports.MissingValues = exports.SortDirection = exports.SortType = exports.SortOrder = exports.Set = exports.Type = exports.TableCombinationConflictType = exports.Source = exports.Status = void 0;
35
+ exports.queryReservations = exports.listReservations = exports.cancelReservation = exports.reserveReservation = exports.createHeldReservation = exports.updateReservation = exports.getReservation = exports.createReservation = exports.onReservationUpdated = exports.onReservationCreated = exports.Mode = exports.AggregationType = exports.Interval = exports.NestedAggregationType = exports.ScalarType = exports.MissingValues = exports.SortDirection = exports.SortType = exports.SortOrder = exports.Set = exports.Type = exports.TableCombinationConflictType = exports.Source = exports.Status = void 0;
36
36
  const velo_1 = require("@wix/metro-runtime/velo");
37
37
  const transform_error_1 = require("@wix/sdk-runtime/transform-error");
38
+ const sdk_types_1 = require("@wix/sdk-types");
38
39
  const ambassadorWixTableReservationsV1Reservation = __importStar(require("./table-reservations-v1-reservation.http"));
39
40
  // @ts-ignore
40
41
  const motion_edm_autogen_query_wrapper_1 = require("@wix/motion-edm-autogen-query-wrapper");
@@ -169,6 +170,8 @@ const _reserveReservationRequest = {};
169
170
  const _reserveReservationResponse = {};
170
171
  const _updateReservationRequest = {};
171
172
  const _updateReservationResponse = {};
173
+ exports.onReservationCreated = (0, sdk_types_1.EventDefinition)('wix.table_reservations.v1.reservation_created')();
174
+ exports.onReservationUpdated = (0, sdk_types_1.EventDefinition)('wix.table_reservations.v1.reservation_updated')();
172
175
  /**
173
176
  * Creates a new reservation.
174
177
  *
@@ -193,6 +196,7 @@ const _updateReservationResponse = {};
193
196
  * > **Note:** `createReservation()` requires all details of the reservation upfront. The process of creating a reservation can be broken up using `createHeldReservation`. `createHeldReservation` creates a temporary reservation that expires automatically unless it is completed with the addition of more details using `reserveReservation()`.
194
197
  * @param reservation - Reservation details.
195
198
  * @public
199
+ * @documentationMaturity preview
196
200
  * @requiredField reservation
197
201
  * @requiredField reservation.details
198
202
  * @requiredField reservation.details.partySize
@@ -271,6 +275,7 @@ exports.createReservation = createReservation;
271
275
  * Calling this method with `fieldsets` set to `FULL` requires additional permissions. See this API's Introduction article for more information.
272
276
  * @param reservationId - Reservation ID.
273
277
  * @public
278
+ * @documentationMaturity preview
274
279
  * @requiredField reservationId
275
280
  * @permissionScope Manage Reservations (Medium)
276
281
  * @permissionScopeId SCOPE.DC-RESERVATIONS.MANAGE-RESERVATIONS-MEDIUM
@@ -346,6 +351,7 @@ exports.getReservation = getReservation;
346
351
  * Each time the reservation is updated, revision increments by 1. The existing revision must be included when updating the reservation. This ensures you're working with the latest reservation information, and it prevents unintended overwrites.
347
352
  * @param _id - Reservation ID.
348
353
  * @public
354
+ * @documentationMaturity preview
349
355
  * @requiredField _id
350
356
  * @requiredField reservation
351
357
  * @requiredField reservation.revision
@@ -424,6 +430,7 @@ exports.updateReservation = updateReservation;
424
430
  *
425
431
  * @param reservationDetails - Held reservation information to update.
426
432
  * @public
433
+ * @documentationMaturity preview
427
434
  * @requiredField reservationDetails
428
435
  * @requiredField reservationDetails.partySize
429
436
  * @requiredField reservationDetails.reservationLocationId
@@ -499,6 +506,7 @@ exports.createHeldReservation = createHeldReservation;
499
506
  *
500
507
  * Include the existing `revision` to prevent conflicting updates to reservations.
501
508
  * @public
509
+ * @documentationMaturity preview
502
510
  * @requiredField reservationId
503
511
  * @requiredField reservee
504
512
  * @requiredField reservee.firstName
@@ -576,6 +584,7 @@ exports.reserveReservation = reserveReservation;
576
584
  *
577
585
  * Include the existing `revision` to prevent conflicting updates to reservations.
578
586
  * @public
587
+ * @documentationMaturity preview
579
588
  * @requiredField reservationId
580
589
  * @requiredField revision
581
590
  * @param options - Options for canceling the reservation.
@@ -645,6 +654,7 @@ exports.cancelReservation = cancelReservation;
645
654
  /**
646
655
  * Retrieves a list of up to 100 reservations.
647
656
  * @public
657
+ * @documentationMaturity preview
648
658
  * @param options - Options for listing the reservations.
649
659
  * @permissionScope Manage Reservations (Medium)
650
660
  * @permissionScopeId SCOPE.DC-RESERVATIONS.MANAGE-RESERVATIONS-MEDIUM
@@ -726,6 +736,7 @@ exports.listReservations = listReservations;
726
736
  *
727
737
  * The following `ReservationsQueryBuilder` functions are supported for `queryReservations()`. For a full description of the reservation object, see the object returned for the [`items`](#ReservationsQueryResult/items) property in [`ReservationsQueryResult`](#ReservationsQueryResult).
728
738
  * @public
739
+ * @documentationMaturity preview
729
740
  * @permissionScope Manage Reservations (Medium)
730
741
  * @permissionScopeId SCOPE.DC-RESERVATIONS.MANAGE-RESERVATIONS-MEDIUM
731
742
  * @permissionScope Manage Reservations (Full)