@wix/auto_sdk_bookings_booking-policies 1.0.16 → 1.0.17

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