@wix/auto_sdk_bookings_booking-policies 1.0.31 → 1.0.33

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 (134) hide show
  1. package/build/{internal/cjs/src/bookings-v1-booking-policy-booking-policies.universal.d.ts → bookings-v1-booking-policy-booking-policies.universal-Dn-27NDP.d.mts} +129 -435
  2. package/build/{cjs/src/bookings-v1-booking-policy-booking-policies.universal.d.ts → bookings-v1-booking-policy-booking-policies.universal-Dn-27NDP.d.ts} +129 -435
  3. package/build/index.d.mts +146 -0
  4. package/build/index.d.ts +146 -0
  5. package/build/index.js +794 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +750 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/bookings-v1-booking-policy-booking-policies.universal.d.ts → bookings-v1-booking-policy-booking-policies.universal-Dn-27NDP.d.mts} +129 -435
  10. package/build/{es/src/bookings-v1-booking-policy-booking-policies.universal.d.ts → internal/bookings-v1-booking-policy-booking-policies.universal-Dn-27NDP.d.ts} +129 -435
  11. package/build/internal/index.d.mts +146 -0
  12. package/build/internal/index.d.ts +146 -0
  13. package/build/internal/index.js +794 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +750 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +545 -0
  18. package/build/internal/meta.d.ts +545 -0
  19. package/build/internal/meta.js +448 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +414 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +545 -0
  24. package/build/meta.d.ts +545 -0
  25. package/build/meta.js +448 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +414 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/bookings-v1-booking-policy-booking-policies.context.d.ts +0 -37
  40. package/build/cjs/src/bookings-v1-booking-policy-booking-policies.context.js +0 -49
  41. package/build/cjs/src/bookings-v1-booking-policy-booking-policies.context.js.map +0 -1
  42. package/build/cjs/src/bookings-v1-booking-policy-booking-policies.http.d.ts +0 -71
  43. package/build/cjs/src/bookings-v1-booking-policy-booking-policies.http.js +0 -330
  44. package/build/cjs/src/bookings-v1-booking-policy-booking-policies.http.js.map +0 -1
  45. package/build/cjs/src/bookings-v1-booking-policy-booking-policies.meta.d.ts +0 -28
  46. package/build/cjs/src/bookings-v1-booking-policy-booking-policies.meta.js +0 -180
  47. package/build/cjs/src/bookings-v1-booking-policy-booking-policies.meta.js.map +0 -1
  48. package/build/cjs/src/bookings-v1-booking-policy-booking-policies.public.d.ts +0 -117
  49. package/build/cjs/src/bookings-v1-booking-policy-booking-policies.public.js +0 -110
  50. package/build/cjs/src/bookings-v1-booking-policy-booking-policies.public.js.map +0 -1
  51. package/build/cjs/src/bookings-v1-booking-policy-booking-policies.types.d.ts +0 -1438
  52. package/build/cjs/src/bookings-v1-booking-policy-booking-policies.types.js +0 -155
  53. package/build/cjs/src/bookings-v1-booking-policy-booking-policies.types.js.map +0 -1
  54. package/build/cjs/src/bookings-v1-booking-policy-booking-policies.universal.js +0 -594
  55. package/build/cjs/src/bookings-v1-booking-policy-booking-policies.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/bookings-v1-booking-policy-booking-policies.context.d.ts +0 -37
  67. package/build/es/src/bookings-v1-booking-policy-booking-policies.context.js +0 -37
  68. package/build/es/src/bookings-v1-booking-policy-booking-policies.context.js.map +0 -1
  69. package/build/es/src/bookings-v1-booking-policy-booking-policies.http.d.ts +0 -71
  70. package/build/es/src/bookings-v1-booking-policy-booking-policies.http.js +0 -319
  71. package/build/es/src/bookings-v1-booking-policy-booking-policies.http.js.map +0 -1
  72. package/build/es/src/bookings-v1-booking-policy-booking-policies.meta.d.ts +0 -28
  73. package/build/es/src/bookings-v1-booking-policy-booking-policies.meta.js +0 -146
  74. package/build/es/src/bookings-v1-booking-policy-booking-policies.meta.js.map +0 -1
  75. package/build/es/src/bookings-v1-booking-policy-booking-policies.public.d.ts +0 -117
  76. package/build/es/src/bookings-v1-booking-policy-booking-policies.public.js +0 -90
  77. package/build/es/src/bookings-v1-booking-policy-booking-policies.public.js.map +0 -1
  78. package/build/es/src/bookings-v1-booking-policy-booking-policies.types.d.ts +0 -1438
  79. package/build/es/src/bookings-v1-booking-policy-booking-policies.types.js +0 -152
  80. package/build/es/src/bookings-v1-booking-policy-booking-policies.types.js.map +0 -1
  81. package/build/es/src/bookings-v1-booking-policy-booking-policies.universal.js +0 -560
  82. package/build/es/src/bookings-v1-booking-policy-booking-policies.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.context.d.ts +0 -37
  93. package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.context.js +0 -49
  94. package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.context.js.map +0 -1
  95. package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.http.d.ts +0 -71
  96. package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.http.js +0 -330
  97. package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.http.js.map +0 -1
  98. package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.meta.d.ts +0 -28
  99. package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.meta.js +0 -180
  100. package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.meta.js.map +0 -1
  101. package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.public.d.ts +0 -117
  102. package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.public.js +0 -110
  103. package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.public.js.map +0 -1
  104. package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.types.d.ts +0 -1438
  105. package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.types.js +0 -155
  106. package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.types.js.map +0 -1
  107. package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.universal.js +0 -594
  108. package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.context.d.ts +0 -37
  119. package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.context.js +0 -37
  120. package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.context.js.map +0 -1
  121. package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.http.d.ts +0 -71
  122. package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.http.js +0 -319
  123. package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.http.js.map +0 -1
  124. package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.meta.d.ts +0 -28
  125. package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.meta.js +0 -146
  126. package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.meta.js.map +0 -1
  127. package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.public.d.ts +0 -117
  128. package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.public.js +0 -90
  129. package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.public.js.map +0 -1
  130. package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.types.d.ts +0 -1438
  131. package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.types.js +0 -152
  132. package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.types.js.map +0 -1
  133. package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.universal.js +0 -560
  134. package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.universal.js.map +0 -1
@@ -0,0 +1,146 @@
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { B as BookingPolicy, G as GetStrictestBookingPolicyResponse, U as UpdateBookingPolicy, S as SetDefaultBookingPolicyResponse, a as BookingPoliciesQueryBuilder, C as CountBookingPoliciesOptions, b as CountBookingPoliciesResponse, c as BookingPolicyCreatedEnvelope, d as BookingPolicyDefaultBookingPolicySetEnvelope, e as BookingPolicyDeletedEnvelope, f as BookingPolicyUpdatedEnvelope } from './bookings-v1-booking-policy-booking-policies.universal-Dn-27NDP.mjs';
3
+ export { ab as ActionEvent, ai as Address, aj as AddressHint, az as Asset, aZ as BaseEventMetadata, m as BookAfterStartPolicy, a$ as BookingPoliciesQueryResult, al as BusinessSchedule, s as CancellationFeePolicy, n as CancellationPolicy, t as CancellationWindow, u as CancellationWindowFeeOneOf, ag as Categories, as as ChangeContext, at as ChangeContextPayloadOneOf, aq as ConsentPolicy, a0 as CountBookingPoliciesRequest, x as CreateBookingPolicyRequest, y as CreateBookingPolicyResponse, a3 as CreateMissingDefaultPolicyRequest, a4 as CreateMissingDefaultPolicyResponse, Y as CursorPaging, _ as CursorPagingMetadata, T as CursorQuery, V as CursorQueryPagingMethodOneOf, $ as Cursors, D as DayOfWeek, w as DefaultBookingPolicySet, K as DeleteBookingPolicyRequest, O as DeleteBookingPolicyResponse, aD as DeleteContext, j as DeleteStatus, a5 as DomainEvent, a6 as DomainEventBodyOneOf, ac as Empty, a7 as EntityCreatedEvent, aa as EntityDeletedEvent, a9 as EntityUpdatedEvent, a_ as EventMetadata, E as ExtendedFields, ak as GeoCoordinates, z as GetBookingPolicyRequest, A as GetBookingPolicyResponse, F as GetStrictestBookingPolicyRequest, aX as IdentificationData, aY as IdentificationDataIdOneOf, L as LimitEarlyBookingPolicy, l as LimitLateBookingPolicy, ah as Locale, aW as MessageEnvelope, ax as MetaSiteSpecialEvent, ay as MetaSiteSpecialEventPayloadOneOf, M as Money, ao as Multilingual, N as Namespace, aN as NamespaceChanged, aS as OdeditorAssigned, aT as OdeditorUnassigned, q as ParticipantsPolicy, aU as PicassoAssigned, aV as PicassoUnassigned, P as PlacementType, k as PolicyDescription, af as Properties, au as PropertiesChange, Q as QueryBookingPoliciesRequest, Z as QueryBookingPoliciesResponse, o as ReschedulePolicy, R as ResolutionMethod, r as ResourcesPolicy, a8 as RestoreInfo, v as SaveCreditCardPolicy, aJ as ServiceProvisioned, aK as ServiceRemoved, J as SetDefaultBookingPolicyRequest, aw as SiteCloned, aA as SiteCreated, i as SiteCreatedContext, aC as SiteDeleted, aM as SiteHardDeleted, aH as SiteMarkedAsTemplate, aI as SiteMarkedAsWixSite, ae as SitePropertiesEvent, ad as SitePropertiesNotification, aF as SitePublished, aR as SitePurgedExternally, aL as SiteRenamed, aB as SiteTransferred, aE as SiteUndeleted, aG as SiteUnpublished, aQ as SiteUrlChanged, g as SortOrder, X as Sorting, an as SpecialHourPeriod, h as State, aO as StudioAssigned, aP as StudioUnassigned, ap as SupportedLanguage, am as TimePeriod, ar as Translation, a1 as UpdateAllPoliciesRequest, a2 as UpdateAllPoliciesResponse, H as UpdateBookingPolicyRequest, I as UpdateBookingPolicyResponse, av as V4SiteCreated, p as WaitlistPolicy, W as WebhookIdentityType } from './bookings-v1-booking-policy-booking-policies.universal-Dn-27NDP.mjs';
4
+
5
+ declare function createBookingPolicy$1(httpClient: HttpClient): CreateBookingPolicySignature;
6
+ interface CreateBookingPolicySignature {
7
+ /**
8
+ * Creates a booking policy.
9
+ * @param - Booking policy to create.
10
+ * @returns Created booking policy.
11
+ */
12
+ (bookingPolicy: BookingPolicy): Promise<BookingPolicy>;
13
+ }
14
+ declare function getBookingPolicy$1(httpClient: HttpClient): GetBookingPolicySignature;
15
+ interface GetBookingPolicySignature {
16
+ /**
17
+ * Retrieves a booking policy.
18
+ * @param - ID of the booking policy to retrieve.
19
+ * @returns Retrieved booking policy.
20
+ */
21
+ (bookingPolicyId: string): Promise<BookingPolicy>;
22
+ }
23
+ declare function getStrictestBookingPolicy$1(httpClient: HttpClient): GetStrictestBookingPolicySignature;
24
+ interface GetStrictestBookingPolicySignature {
25
+ /**
26
+ * Retrieves the strictest version of each policy rule from a list of booking
27
+ * policies.
28
+ *
29
+ *
30
+ * Returns a hypothetical `bookingPolicy` object that combines the strictest
31
+ * version of each rule. The `id` of the returned policy is `null` and no
32
+ * corresponding `bookingPolicy` object is created. To create a new policy, you
33
+ * can call *Create Booking Policy*
34
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/create-booking-policy) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/create-booking-policy)).
35
+ * @param - IDs of the booking policies for which to retrieve the strictest rules for.
36
+ */
37
+ (bookingPolicyIds: string[]): Promise<GetStrictestBookingPolicyResponse>;
38
+ }
39
+ declare function updateBookingPolicy$1(httpClient: HttpClient): UpdateBookingPolicySignature;
40
+ interface UpdateBookingPolicySignature {
41
+ /**
42
+ * Updates a booking policy.
43
+ *
44
+ *
45
+ * Each time the booking policy is updated, `revision` increments by 1.
46
+ * The current `revision` must be specified when updating the booking policy.
47
+ * This ensures you're working with the latest booking policy and prevents unintended overwrites.
48
+ * @param - ID of the booking policy.
49
+ * @returns Updated booking policy.
50
+ */
51
+ (_id: string, bookingPolicy: UpdateBookingPolicy): Promise<BookingPolicy>;
52
+ }
53
+ declare function setDefaultBookingPolicy$1(httpClient: HttpClient): SetDefaultBookingPolicySignature;
54
+ interface SetDefaultBookingPolicySignature {
55
+ /**
56
+ * Sets a booking policy as the default.
57
+ *
58
+ *
59
+ * Also updates the site's current default policy by setting its `default`
60
+ * attribute to `false`. If the provided policy is already the site's
61
+ * default, the call succeeds without changing any `bookingPolicy` object.
62
+ * @param - ID of the booking policy that's set as default.
63
+ */
64
+ (bookingPolicyId: string): Promise<SetDefaultBookingPolicyResponse>;
65
+ }
66
+ declare function deleteBookingPolicy$1(httpClient: HttpClient): DeleteBookingPolicySignature;
67
+ interface DeleteBookingPolicySignature {
68
+ /**
69
+ * Deletes a booking policy.
70
+ *
71
+ *
72
+ * You can't delete the default policy without first *setting a different policy as default*
73
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/set-default-booking-policy) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/set-default-booking-policy)).
74
+ * @param - ID of the booking policy to delete.
75
+ */
76
+ (bookingPolicyId: string): Promise<void>;
77
+ }
78
+ declare function queryBookingPolicies$1(httpClient: HttpClient): QueryBookingPoliciesSignature;
79
+ interface QueryBookingPoliciesSignature {
80
+ /**
81
+ * Creates a query to retrieve a list of `bookingPolicy` objects.
82
+ *
83
+ * The `queryBookingPolicies()` function builds a query to retrieve a list of `bookingPolicy` objects and returns a `BookingPoliciesQueryBuilder` object.
84
+ *
85
+ * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/booking-policies-query-builder/find) function.
86
+ *
87
+ * You can refine the query by chaining `BookingPoliciesQueryBuilder` functions onto the query. `BookingPoliciesQueryBuilder` functions enable you to sort, filter, and control the results that `queryBookingPolicies()` returns.
88
+ *
89
+ * `queryBookingPolicies()` runs with the following `BookingPoliciesQueryBuilder` defaults that you can override:
90
+ *
91
+ * + `limit` is `50`.
92
+ * + Sorted by `createdDate` in ascending order.
93
+ *
94
+ * The functions that are chained to `queryBookingPolicies()` are applied in the order they are called. For example, if you apply `ascending("waitlistPolicy.capacity")` and then `ascending("name")`, the results are sorted first by `waitlistPolicy.capacity`, and then, if there are multiple results with the same `waitlistPolicy.capacity`, the items are sorted by `name`.
95
+ *
96
+ * The following `BookingPoliciesQueryBuilder` functions are supported for the `queryBookingPolicies()` function. For a full description of the `bookingPolicy` object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/booking-policies-query-result/items) property in `BookingPoliciesQueryResult`.
97
+ */
98
+ (): BookingPoliciesQueryBuilder;
99
+ }
100
+ declare function countBookingPolicies$1(httpClient: HttpClient): CountBookingPoliciesSignature;
101
+ interface CountBookingPoliciesSignature {
102
+ /**
103
+ * Counts booking policies, given the provided filtering.
104
+ *
105
+ *
106
+ * See *supported filters*
107
+ * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters))
108
+ * for a complete list of supported filters.
109
+ */
110
+ (options?: CountBookingPoliciesOptions | undefined): Promise<CountBookingPoliciesResponse>;
111
+ }
112
+ declare const onBookingPolicyCreated$1: EventDefinition<BookingPolicyCreatedEnvelope, "wix.bookings.v1.booking_policy_created">;
113
+ declare const onBookingPolicyDefaultBookingPolicySet$1: EventDefinition<BookingPolicyDefaultBookingPolicySetEnvelope, "wix.bookings.v1.booking_policy_default_booking_policy_set">;
114
+ declare const onBookingPolicyDeleted$1: EventDefinition<BookingPolicyDeletedEnvelope, "wix.bookings.v1.booking_policy_deleted">;
115
+ declare const onBookingPolicyUpdated$1: EventDefinition<BookingPolicyUpdatedEnvelope, "wix.bookings.v1.booking_policy_updated">;
116
+
117
+ declare const createBookingPolicy: MaybeContext<BuildRESTFunction<typeof createBookingPolicy$1> & typeof createBookingPolicy$1>;
118
+ declare const getBookingPolicy: MaybeContext<BuildRESTFunction<typeof getBookingPolicy$1> & typeof getBookingPolicy$1>;
119
+ declare const getStrictestBookingPolicy: MaybeContext<BuildRESTFunction<typeof getStrictestBookingPolicy$1> & typeof getStrictestBookingPolicy$1>;
120
+ declare const updateBookingPolicy: MaybeContext<BuildRESTFunction<typeof updateBookingPolicy$1> & typeof updateBookingPolicy$1>;
121
+ declare const setDefaultBookingPolicy: MaybeContext<BuildRESTFunction<typeof setDefaultBookingPolicy$1> & typeof setDefaultBookingPolicy$1>;
122
+ declare const deleteBookingPolicy: MaybeContext<BuildRESTFunction<typeof deleteBookingPolicy$1> & typeof deleteBookingPolicy$1>;
123
+ declare const queryBookingPolicies: MaybeContext<BuildRESTFunction<typeof queryBookingPolicies$1> & typeof queryBookingPolicies$1>;
124
+ declare const countBookingPolicies: MaybeContext<BuildRESTFunction<typeof countBookingPolicies$1> & typeof countBookingPolicies$1>;
125
+ /**
126
+ * Triggered when a booking policy is created.
127
+ */
128
+ declare const onBookingPolicyCreated: BuildEventDefinition<typeof onBookingPolicyCreated$1>;
129
+ /**
130
+ * Triggered when the site's default policy changes. Then,
131
+ * _Booking Policy Updated_
132
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/on-booking-policy-updated) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/booking-policy-updated))
133
+ * is also triggered both for the new and the previous default policy.
134
+ */
135
+ declare const onBookingPolicyDefaultBookingPolicySet: BuildEventDefinition<typeof onBookingPolicyDefaultBookingPolicySet$1>;
136
+ /**
137
+ * Triggered when a booking policy is deleted.
138
+ */
139
+ declare const onBookingPolicyDeleted: BuildEventDefinition<typeof onBookingPolicyDeleted$1>;
140
+ /**
141
+ * Triggered when a booking policy is updated, including when a policy's
142
+ * `default` attribute changes.
143
+ */
144
+ declare const onBookingPolicyUpdated: BuildEventDefinition<typeof onBookingPolicyUpdated$1>;
145
+
146
+ export { BookingPoliciesQueryBuilder, BookingPolicy, BookingPolicyCreatedEnvelope, BookingPolicyDefaultBookingPolicySetEnvelope, BookingPolicyDeletedEnvelope, BookingPolicyUpdatedEnvelope, CountBookingPoliciesOptions, CountBookingPoliciesResponse, GetStrictestBookingPolicyResponse, SetDefaultBookingPolicyResponse, UpdateBookingPolicy, countBookingPolicies, createBookingPolicy, deleteBookingPolicy, getBookingPolicy, getStrictestBookingPolicy, onBookingPolicyCreated, onBookingPolicyDefaultBookingPolicySet, onBookingPolicyDeleted, onBookingPolicyUpdated, queryBookingPolicies, setDefaultBookingPolicy, updateBookingPolicy };
@@ -0,0 +1,146 @@
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { B as BookingPolicy, G as GetStrictestBookingPolicyResponse, U as UpdateBookingPolicy, S as SetDefaultBookingPolicyResponse, a as BookingPoliciesQueryBuilder, C as CountBookingPoliciesOptions, b as CountBookingPoliciesResponse, c as BookingPolicyCreatedEnvelope, d as BookingPolicyDefaultBookingPolicySetEnvelope, e as BookingPolicyDeletedEnvelope, f as BookingPolicyUpdatedEnvelope } from './bookings-v1-booking-policy-booking-policies.universal-Dn-27NDP.js';
3
+ export { ab as ActionEvent, ai as Address, aj as AddressHint, az as Asset, aZ as BaseEventMetadata, m as BookAfterStartPolicy, a$ as BookingPoliciesQueryResult, al as BusinessSchedule, s as CancellationFeePolicy, n as CancellationPolicy, t as CancellationWindow, u as CancellationWindowFeeOneOf, ag as Categories, as as ChangeContext, at as ChangeContextPayloadOneOf, aq as ConsentPolicy, a0 as CountBookingPoliciesRequest, x as CreateBookingPolicyRequest, y as CreateBookingPolicyResponse, a3 as CreateMissingDefaultPolicyRequest, a4 as CreateMissingDefaultPolicyResponse, Y as CursorPaging, _ as CursorPagingMetadata, T as CursorQuery, V as CursorQueryPagingMethodOneOf, $ as Cursors, D as DayOfWeek, w as DefaultBookingPolicySet, K as DeleteBookingPolicyRequest, O as DeleteBookingPolicyResponse, aD as DeleteContext, j as DeleteStatus, a5 as DomainEvent, a6 as DomainEventBodyOneOf, ac as Empty, a7 as EntityCreatedEvent, aa as EntityDeletedEvent, a9 as EntityUpdatedEvent, a_ as EventMetadata, E as ExtendedFields, ak as GeoCoordinates, z as GetBookingPolicyRequest, A as GetBookingPolicyResponse, F as GetStrictestBookingPolicyRequest, aX as IdentificationData, aY as IdentificationDataIdOneOf, L as LimitEarlyBookingPolicy, l as LimitLateBookingPolicy, ah as Locale, aW as MessageEnvelope, ax as MetaSiteSpecialEvent, ay as MetaSiteSpecialEventPayloadOneOf, M as Money, ao as Multilingual, N as Namespace, aN as NamespaceChanged, aS as OdeditorAssigned, aT as OdeditorUnassigned, q as ParticipantsPolicy, aU as PicassoAssigned, aV as PicassoUnassigned, P as PlacementType, k as PolicyDescription, af as Properties, au as PropertiesChange, Q as QueryBookingPoliciesRequest, Z as QueryBookingPoliciesResponse, o as ReschedulePolicy, R as ResolutionMethod, r as ResourcesPolicy, a8 as RestoreInfo, v as SaveCreditCardPolicy, aJ as ServiceProvisioned, aK as ServiceRemoved, J as SetDefaultBookingPolicyRequest, aw as SiteCloned, aA as SiteCreated, i as SiteCreatedContext, aC as SiteDeleted, aM as SiteHardDeleted, aH as SiteMarkedAsTemplate, aI as SiteMarkedAsWixSite, ae as SitePropertiesEvent, ad as SitePropertiesNotification, aF as SitePublished, aR as SitePurgedExternally, aL as SiteRenamed, aB as SiteTransferred, aE as SiteUndeleted, aG as SiteUnpublished, aQ as SiteUrlChanged, g as SortOrder, X as Sorting, an as SpecialHourPeriod, h as State, aO as StudioAssigned, aP as StudioUnassigned, ap as SupportedLanguage, am as TimePeriod, ar as Translation, a1 as UpdateAllPoliciesRequest, a2 as UpdateAllPoliciesResponse, H as UpdateBookingPolicyRequest, I as UpdateBookingPolicyResponse, av as V4SiteCreated, p as WaitlistPolicy, W as WebhookIdentityType } from './bookings-v1-booking-policy-booking-policies.universal-Dn-27NDP.js';
4
+
5
+ declare function createBookingPolicy$1(httpClient: HttpClient): CreateBookingPolicySignature;
6
+ interface CreateBookingPolicySignature {
7
+ /**
8
+ * Creates a booking policy.
9
+ * @param - Booking policy to create.
10
+ * @returns Created booking policy.
11
+ */
12
+ (bookingPolicy: BookingPolicy): Promise<BookingPolicy>;
13
+ }
14
+ declare function getBookingPolicy$1(httpClient: HttpClient): GetBookingPolicySignature;
15
+ interface GetBookingPolicySignature {
16
+ /**
17
+ * Retrieves a booking policy.
18
+ * @param - ID of the booking policy to retrieve.
19
+ * @returns Retrieved booking policy.
20
+ */
21
+ (bookingPolicyId: string): Promise<BookingPolicy>;
22
+ }
23
+ declare function getStrictestBookingPolicy$1(httpClient: HttpClient): GetStrictestBookingPolicySignature;
24
+ interface GetStrictestBookingPolicySignature {
25
+ /**
26
+ * Retrieves the strictest version of each policy rule from a list of booking
27
+ * policies.
28
+ *
29
+ *
30
+ * Returns a hypothetical `bookingPolicy` object that combines the strictest
31
+ * version of each rule. The `id` of the returned policy is `null` and no
32
+ * corresponding `bookingPolicy` object is created. To create a new policy, you
33
+ * can call *Create Booking Policy*
34
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/create-booking-policy) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/create-booking-policy)).
35
+ * @param - IDs of the booking policies for which to retrieve the strictest rules for.
36
+ */
37
+ (bookingPolicyIds: string[]): Promise<GetStrictestBookingPolicyResponse>;
38
+ }
39
+ declare function updateBookingPolicy$1(httpClient: HttpClient): UpdateBookingPolicySignature;
40
+ interface UpdateBookingPolicySignature {
41
+ /**
42
+ * Updates a booking policy.
43
+ *
44
+ *
45
+ * Each time the booking policy is updated, `revision` increments by 1.
46
+ * The current `revision` must be specified when updating the booking policy.
47
+ * This ensures you're working with the latest booking policy and prevents unintended overwrites.
48
+ * @param - ID of the booking policy.
49
+ * @returns Updated booking policy.
50
+ */
51
+ (_id: string, bookingPolicy: UpdateBookingPolicy): Promise<BookingPolicy>;
52
+ }
53
+ declare function setDefaultBookingPolicy$1(httpClient: HttpClient): SetDefaultBookingPolicySignature;
54
+ interface SetDefaultBookingPolicySignature {
55
+ /**
56
+ * Sets a booking policy as the default.
57
+ *
58
+ *
59
+ * Also updates the site's current default policy by setting its `default`
60
+ * attribute to `false`. If the provided policy is already the site's
61
+ * default, the call succeeds without changing any `bookingPolicy` object.
62
+ * @param - ID of the booking policy that's set as default.
63
+ */
64
+ (bookingPolicyId: string): Promise<SetDefaultBookingPolicyResponse>;
65
+ }
66
+ declare function deleteBookingPolicy$1(httpClient: HttpClient): DeleteBookingPolicySignature;
67
+ interface DeleteBookingPolicySignature {
68
+ /**
69
+ * Deletes a booking policy.
70
+ *
71
+ *
72
+ * You can't delete the default policy without first *setting a different policy as default*
73
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/set-default-booking-policy) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/set-default-booking-policy)).
74
+ * @param - ID of the booking policy to delete.
75
+ */
76
+ (bookingPolicyId: string): Promise<void>;
77
+ }
78
+ declare function queryBookingPolicies$1(httpClient: HttpClient): QueryBookingPoliciesSignature;
79
+ interface QueryBookingPoliciesSignature {
80
+ /**
81
+ * Creates a query to retrieve a list of `bookingPolicy` objects.
82
+ *
83
+ * The `queryBookingPolicies()` function builds a query to retrieve a list of `bookingPolicy` objects and returns a `BookingPoliciesQueryBuilder` object.
84
+ *
85
+ * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/booking-policies-query-builder/find) function.
86
+ *
87
+ * You can refine the query by chaining `BookingPoliciesQueryBuilder` functions onto the query. `BookingPoliciesQueryBuilder` functions enable you to sort, filter, and control the results that `queryBookingPolicies()` returns.
88
+ *
89
+ * `queryBookingPolicies()` runs with the following `BookingPoliciesQueryBuilder` defaults that you can override:
90
+ *
91
+ * + `limit` is `50`.
92
+ * + Sorted by `createdDate` in ascending order.
93
+ *
94
+ * The functions that are chained to `queryBookingPolicies()` are applied in the order they are called. For example, if you apply `ascending("waitlistPolicy.capacity")` and then `ascending("name")`, the results are sorted first by `waitlistPolicy.capacity`, and then, if there are multiple results with the same `waitlistPolicy.capacity`, the items are sorted by `name`.
95
+ *
96
+ * The following `BookingPoliciesQueryBuilder` functions are supported for the `queryBookingPolicies()` function. For a full description of the `bookingPolicy` object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/booking-policies-query-result/items) property in `BookingPoliciesQueryResult`.
97
+ */
98
+ (): BookingPoliciesQueryBuilder;
99
+ }
100
+ declare function countBookingPolicies$1(httpClient: HttpClient): CountBookingPoliciesSignature;
101
+ interface CountBookingPoliciesSignature {
102
+ /**
103
+ * Counts booking policies, given the provided filtering.
104
+ *
105
+ *
106
+ * See *supported filters*
107
+ * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters))
108
+ * for a complete list of supported filters.
109
+ */
110
+ (options?: CountBookingPoliciesOptions | undefined): Promise<CountBookingPoliciesResponse>;
111
+ }
112
+ declare const onBookingPolicyCreated$1: EventDefinition<BookingPolicyCreatedEnvelope, "wix.bookings.v1.booking_policy_created">;
113
+ declare const onBookingPolicyDefaultBookingPolicySet$1: EventDefinition<BookingPolicyDefaultBookingPolicySetEnvelope, "wix.bookings.v1.booking_policy_default_booking_policy_set">;
114
+ declare const onBookingPolicyDeleted$1: EventDefinition<BookingPolicyDeletedEnvelope, "wix.bookings.v1.booking_policy_deleted">;
115
+ declare const onBookingPolicyUpdated$1: EventDefinition<BookingPolicyUpdatedEnvelope, "wix.bookings.v1.booking_policy_updated">;
116
+
117
+ declare const createBookingPolicy: MaybeContext<BuildRESTFunction<typeof createBookingPolicy$1> & typeof createBookingPolicy$1>;
118
+ declare const getBookingPolicy: MaybeContext<BuildRESTFunction<typeof getBookingPolicy$1> & typeof getBookingPolicy$1>;
119
+ declare const getStrictestBookingPolicy: MaybeContext<BuildRESTFunction<typeof getStrictestBookingPolicy$1> & typeof getStrictestBookingPolicy$1>;
120
+ declare const updateBookingPolicy: MaybeContext<BuildRESTFunction<typeof updateBookingPolicy$1> & typeof updateBookingPolicy$1>;
121
+ declare const setDefaultBookingPolicy: MaybeContext<BuildRESTFunction<typeof setDefaultBookingPolicy$1> & typeof setDefaultBookingPolicy$1>;
122
+ declare const deleteBookingPolicy: MaybeContext<BuildRESTFunction<typeof deleteBookingPolicy$1> & typeof deleteBookingPolicy$1>;
123
+ declare const queryBookingPolicies: MaybeContext<BuildRESTFunction<typeof queryBookingPolicies$1> & typeof queryBookingPolicies$1>;
124
+ declare const countBookingPolicies: MaybeContext<BuildRESTFunction<typeof countBookingPolicies$1> & typeof countBookingPolicies$1>;
125
+ /**
126
+ * Triggered when a booking policy is created.
127
+ */
128
+ declare const onBookingPolicyCreated: BuildEventDefinition<typeof onBookingPolicyCreated$1>;
129
+ /**
130
+ * Triggered when the site's default policy changes. Then,
131
+ * _Booking Policy Updated_
132
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/on-booking-policy-updated) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/booking-policy-updated))
133
+ * is also triggered both for the new and the previous default policy.
134
+ */
135
+ declare const onBookingPolicyDefaultBookingPolicySet: BuildEventDefinition<typeof onBookingPolicyDefaultBookingPolicySet$1>;
136
+ /**
137
+ * Triggered when a booking policy is deleted.
138
+ */
139
+ declare const onBookingPolicyDeleted: BuildEventDefinition<typeof onBookingPolicyDeleted$1>;
140
+ /**
141
+ * Triggered when a booking policy is updated, including when a policy's
142
+ * `default` attribute changes.
143
+ */
144
+ declare const onBookingPolicyUpdated: BuildEventDefinition<typeof onBookingPolicyUpdated$1>;
145
+
146
+ export { BookingPoliciesQueryBuilder, BookingPolicy, BookingPolicyCreatedEnvelope, BookingPolicyDefaultBookingPolicySetEnvelope, BookingPolicyDeletedEnvelope, BookingPolicyUpdatedEnvelope, CountBookingPoliciesOptions, CountBookingPoliciesResponse, GetStrictestBookingPolicyResponse, SetDefaultBookingPolicyResponse, UpdateBookingPolicy, countBookingPolicies, createBookingPolicy, deleteBookingPolicy, getBookingPolicy, getStrictestBookingPolicy, onBookingPolicyCreated, onBookingPolicyDefaultBookingPolicySet, onBookingPolicyDeleted, onBookingPolicyUpdated, queryBookingPolicies, setDefaultBookingPolicy, updateBookingPolicy };