@wix/auto_sdk_calendar_schedules 1.0.34 → 1.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/calendar-v3-schedule-schedules.context.d.ts +30 -0
- package/build/cjs/src/calendar-v3-schedule-schedules.context.js +48 -0
- package/build/cjs/src/calendar-v3-schedule-schedules.context.js.map +1 -0
- package/build/cjs/src/calendar-v3-schedule-schedules.http.d.ts +53 -0
- package/build/cjs/src/calendar-v3-schedule-schedules.http.js +255 -0
- package/build/cjs/src/calendar-v3-schedule-schedules.http.js.map +1 -0
- package/build/cjs/src/calendar-v3-schedule-schedules.meta.d.ts +23 -0
- package/build/cjs/src/calendar-v3-schedule-schedules.meta.js +123 -0
- package/build/cjs/src/calendar-v3-schedule-schedules.meta.js.map +1 -0
- package/build/cjs/src/calendar-v3-schedule-schedules.public.d.ts +86 -0
- package/build/cjs/src/calendar-v3-schedule-schedules.public.js +96 -0
- package/build/cjs/src/calendar-v3-schedule-schedules.public.js.map +1 -0
- package/build/cjs/src/calendar-v3-schedule-schedules.types.d.ts +1362 -0
- package/build/cjs/src/calendar-v3-schedule-schedules.types.js +208 -0
- package/build/cjs/src/calendar-v3-schedule-schedules.types.js.map +1 -0
- package/build/{calendar-v3-schedule-schedules.universal-D3nvGK6W.d.mts → cjs/src/calendar-v3-schedule-schedules.universal.d.ts} +404 -111
- package/build/cjs/src/calendar-v3-schedule-schedules.universal.js +582 -0
- package/build/cjs/src/calendar-v3-schedule-schedules.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/calendar-v3-schedule-schedules.context.d.ts +30 -0
- package/build/es/src/calendar-v3-schedule-schedules.context.js +30 -0
- package/build/es/src/calendar-v3-schedule-schedules.context.js.map +1 -0
- package/build/es/src/calendar-v3-schedule-schedules.http.d.ts +53 -0
- package/build/es/src/calendar-v3-schedule-schedules.http.js +247 -0
- package/build/es/src/calendar-v3-schedule-schedules.http.js.map +1 -0
- package/build/es/src/calendar-v3-schedule-schedules.meta.d.ts +23 -0
- package/build/es/src/calendar-v3-schedule-schedules.meta.js +92 -0
- package/build/es/src/calendar-v3-schedule-schedules.meta.js.map +1 -0
- package/build/es/src/calendar-v3-schedule-schedules.public.d.ts +86 -0
- package/build/es/src/calendar-v3-schedule-schedules.public.js +73 -0
- package/build/es/src/calendar-v3-schedule-schedules.public.js.map +1 -0
- package/build/es/src/calendar-v3-schedule-schedules.types.d.ts +1362 -0
- package/build/es/src/calendar-v3-schedule-schedules.types.js +205 -0
- package/build/es/src/calendar-v3-schedule-schedules.types.js.map +1 -0
- package/build/{calendar-v3-schedule-schedules.universal-D3nvGK6W.d.ts → es/src/calendar-v3-schedule-schedules.universal.d.ts} +404 -111
- package/build/es/src/calendar-v3-schedule-schedules.universal.js +551 -0
- package/build/es/src/calendar-v3-schedule-schedules.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-schedule-schedules.context.d.ts +30 -0
- package/build/internal/cjs/src/calendar-v3-schedule-schedules.context.js +48 -0
- package/build/internal/cjs/src/calendar-v3-schedule-schedules.context.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-schedule-schedules.http.d.ts +53 -0
- package/build/internal/cjs/src/calendar-v3-schedule-schedules.http.js +255 -0
- package/build/internal/cjs/src/calendar-v3-schedule-schedules.http.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-schedule-schedules.meta.d.ts +23 -0
- package/build/internal/cjs/src/calendar-v3-schedule-schedules.meta.js +123 -0
- package/build/internal/cjs/src/calendar-v3-schedule-schedules.meta.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-schedule-schedules.public.d.ts +86 -0
- package/build/internal/cjs/src/calendar-v3-schedule-schedules.public.js +96 -0
- package/build/internal/cjs/src/calendar-v3-schedule-schedules.public.js.map +1 -0
- package/build/internal/cjs/src/calendar-v3-schedule-schedules.types.d.ts +1362 -0
- package/build/internal/cjs/src/calendar-v3-schedule-schedules.types.js +208 -0
- package/build/internal/cjs/src/calendar-v3-schedule-schedules.types.js.map +1 -0
- package/build/internal/{calendar-v3-schedule-schedules.universal-D3nvGK6W.d.mts → cjs/src/calendar-v3-schedule-schedules.universal.d.ts} +404 -111
- package/build/internal/cjs/src/calendar-v3-schedule-schedules.universal.js +582 -0
- package/build/internal/cjs/src/calendar-v3-schedule-schedules.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/calendar-v3-schedule-schedules.context.d.ts +30 -0
- package/build/internal/es/src/calendar-v3-schedule-schedules.context.js +30 -0
- package/build/internal/es/src/calendar-v3-schedule-schedules.context.js.map +1 -0
- package/build/internal/es/src/calendar-v3-schedule-schedules.http.d.ts +53 -0
- package/build/internal/es/src/calendar-v3-schedule-schedules.http.js +247 -0
- package/build/internal/es/src/calendar-v3-schedule-schedules.http.js.map +1 -0
- package/build/internal/es/src/calendar-v3-schedule-schedules.meta.d.ts +23 -0
- package/build/internal/es/src/calendar-v3-schedule-schedules.meta.js +92 -0
- package/build/internal/es/src/calendar-v3-schedule-schedules.meta.js.map +1 -0
- package/build/internal/es/src/calendar-v3-schedule-schedules.public.d.ts +86 -0
- package/build/internal/es/src/calendar-v3-schedule-schedules.public.js +73 -0
- package/build/internal/es/src/calendar-v3-schedule-schedules.public.js.map +1 -0
- package/build/internal/es/src/calendar-v3-schedule-schedules.types.d.ts +1362 -0
- package/build/internal/es/src/calendar-v3-schedule-schedules.types.js +205 -0
- package/build/internal/es/src/calendar-v3-schedule-schedules.types.js.map +1 -0
- package/build/internal/{calendar-v3-schedule-schedules.universal-D3nvGK6W.d.ts → es/src/calendar-v3-schedule-schedules.universal.d.ts} +404 -111
- package/build/internal/es/src/calendar-v3-schedule-schedules.universal.js +551 -0
- package/build/internal/es/src/calendar-v3-schedule-schedules.universal.js.map +1 -0
- package/package.json +11 -12
- package/build/index.d.mts +0 -105
- package/build/index.d.ts +0 -105
- package/build/index.js +0 -700
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -653
- package/build/index.mjs.map +0 -1
- package/build/internal/index.d.mts +0 -105
- package/build/internal/index.d.ts +0 -105
- package/build/internal/index.js +0 -700
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -653
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -487
- package/build/internal/meta.d.ts +0 -487
- package/build/internal/meta.js +0 -331
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -300
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -487
- package/build/meta.d.ts +0 -487
- package/build/meta.js +0 -331
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -300
- package/build/meta.mjs.map +0 -1
|
@@ -1,487 +0,0 @@
|
|
|
1
|
-
import { q as GetScheduleRequest$1, r as GetScheduleResponse$1, s as QuerySchedulesRequest$1, w as QuerySchedulesResponse$1, z as CreateScheduleRequest$1, A as CreateScheduleResponse$1, B as UpdateScheduleRequest$1, H as UpdateScheduleResponse$1, V as CancelScheduleRequest$1, d as CancelScheduleResponse$1 } from './calendar-v3-schedule-schedules.universal-D3nvGK6W.mjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A collection of [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
|
|
5
|
-
* associated with a specific entity, such as a
|
|
6
|
-
* [Bookings service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object),
|
|
7
|
-
* or [Bookings resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).
|
|
8
|
-
* Schedules can also serve as templates for the events they manage, setting
|
|
9
|
-
* default values like a default location.
|
|
10
|
-
*/
|
|
11
|
-
interface Schedule {
|
|
12
|
-
/**
|
|
13
|
-
* Schedule ID.
|
|
14
|
-
* @format GUID
|
|
15
|
-
* @readonly
|
|
16
|
-
*/
|
|
17
|
-
id?: string | null;
|
|
18
|
-
/**
|
|
19
|
-
* External ID. You can't update the external ID.
|
|
20
|
-
*
|
|
21
|
-
* If the schedule belongs to a Bookings staff member, identical to the ID of
|
|
22
|
-
* the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).
|
|
23
|
-
* If the schedule belongs to a Bookings service, identical to the ID of
|
|
24
|
-
* the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).
|
|
25
|
-
* @format GUID
|
|
26
|
-
* @immutable
|
|
27
|
-
*/
|
|
28
|
-
externalId?: string | null;
|
|
29
|
-
/**
|
|
30
|
-
* Schedule name.
|
|
31
|
-
*
|
|
32
|
-
* Min: 1 character
|
|
33
|
-
* Max: 200 characters
|
|
34
|
-
* @minLength 1
|
|
35
|
-
* @maxLength 200
|
|
36
|
-
*/
|
|
37
|
-
name?: string | null;
|
|
38
|
-
/**
|
|
39
|
-
* Schedule status.
|
|
40
|
-
*
|
|
41
|
-
* Supported values:
|
|
42
|
-
* - `ACTIVE`: You can add events to the schedule or update its fields.
|
|
43
|
-
* - `CANCELLED`: You can't add events to the schedule or update its fields.
|
|
44
|
-
*
|
|
45
|
-
* Default: `ACTIVE`
|
|
46
|
-
* @readonly
|
|
47
|
-
*/
|
|
48
|
-
status?: Status;
|
|
49
|
-
/**
|
|
50
|
-
* Time zone the schedule is associated with in
|
|
51
|
-
* [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).
|
|
52
|
-
* For example, `America/New_York`.
|
|
53
|
-
*
|
|
54
|
-
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
55
|
-
*
|
|
56
|
-
* Min: 1 character
|
|
57
|
-
* Max: 150 characters
|
|
58
|
-
* @minLength 1
|
|
59
|
-
* @maxLength 150
|
|
60
|
-
*/
|
|
61
|
-
timeZone?: string | null;
|
|
62
|
-
/**
|
|
63
|
-
* Whether the schedule's `timeZone` is automatically synced from
|
|
64
|
-
* `timeZone` of the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
65
|
-
*
|
|
66
|
-
* Default: `true`
|
|
67
|
-
*/
|
|
68
|
-
businessTimeZoneEnabled?: boolean | null;
|
|
69
|
-
/**
|
|
70
|
-
* Default `title` for [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
|
|
71
|
-
* that are added to the schedule.
|
|
72
|
-
*
|
|
73
|
-
* Min: 1 character
|
|
74
|
-
* Max: 200 characters
|
|
75
|
-
* @minLength 1
|
|
76
|
-
* @maxLength 200
|
|
77
|
-
*/
|
|
78
|
-
defaultTitle?: string | null;
|
|
79
|
-
/**
|
|
80
|
-
* Default `location` for [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
|
|
81
|
-
* that are added to the schedule.
|
|
82
|
-
*/
|
|
83
|
-
defaultLocation?: Location;
|
|
84
|
-
/**
|
|
85
|
-
* Default `totalCapacity` for [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
|
|
86
|
-
* that are added to the schedule.
|
|
87
|
-
*
|
|
88
|
-
* Min: `0`
|
|
89
|
-
*/
|
|
90
|
-
defaultCapacity?: number | null;
|
|
91
|
-
/**
|
|
92
|
-
* Default `conferencingDetails` for [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
|
|
93
|
-
* that are added to the schedule.
|
|
94
|
-
* Returned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).
|
|
95
|
-
*/
|
|
96
|
-
defaultConferencingDetails?: ConferencingDetails;
|
|
97
|
-
/**
|
|
98
|
-
* ID of the app that's associated with the schedule. You can't update `appId`.
|
|
99
|
-
* If you want to create a schedule and ensure its associated events appear
|
|
100
|
-
* in the [Bookings calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar),
|
|
101
|
-
* you must provide the [Wix Bookings app ID](https://dev.wix.com/docs/rest/articles/getting-started/wix-business-solutions)
|
|
102
|
-
* `13d21c63-b5ec-5912-8397-c3a5ddb27a97`.
|
|
103
|
-
* @format GUID
|
|
104
|
-
* @immutable
|
|
105
|
-
*/
|
|
106
|
-
appId?: string | null;
|
|
107
|
-
/**
|
|
108
|
-
* List of permissions associated with the schedule. Refer to the
|
|
109
|
-
* [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#roles)
|
|
110
|
-
* for more information.
|
|
111
|
-
*
|
|
112
|
-
* Max: 1 permission
|
|
113
|
-
* @maxSize 1
|
|
114
|
-
*/
|
|
115
|
-
permissions?: Permission[];
|
|
116
|
-
/** Extensions enabling applications or users to save custom data related to the schedule. */
|
|
117
|
-
extendedFields?: ExtendedFields;
|
|
118
|
-
/**
|
|
119
|
-
* Revision number, which increments by 1 each time the schedule is updated.
|
|
120
|
-
* To prevent conflicting changes, the current revision must be passed when updating the schedule.
|
|
121
|
-
* Ignored when creating a schedule.
|
|
122
|
-
* @readonly
|
|
123
|
-
*/
|
|
124
|
-
revision?: string | null;
|
|
125
|
-
/**
|
|
126
|
-
* Date the schedule was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
127
|
-
* @readonly
|
|
128
|
-
*/
|
|
129
|
-
createdDate?: Date | null;
|
|
130
|
-
/**
|
|
131
|
-
* Date the schedule was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
132
|
-
* @readonly
|
|
133
|
-
*/
|
|
134
|
-
updatedDate?: Date | null;
|
|
135
|
-
}
|
|
136
|
-
declare enum Status {
|
|
137
|
-
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
138
|
-
/** You can add events to the schedule or update its fields. */
|
|
139
|
-
ACTIVE = "ACTIVE",
|
|
140
|
-
/** You can't add events to the schedule or update its fields. */
|
|
141
|
-
CANCELLED = "CANCELLED"
|
|
142
|
-
}
|
|
143
|
-
interface Location {
|
|
144
|
-
/**
|
|
145
|
-
* [Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)
|
|
146
|
-
* ID. Available only for `BUSINESS` locations.
|
|
147
|
-
* @format GUID
|
|
148
|
-
*/
|
|
149
|
-
id?: string | null;
|
|
150
|
-
/**
|
|
151
|
-
* Location type.
|
|
152
|
-
*
|
|
153
|
-
* Supported values:
|
|
154
|
-
* + `BUSINESS`: The event is held at a business location.
|
|
155
|
-
* + `CUSTOMER`: The event is held at the customer's location, such as their home or office.
|
|
156
|
-
* + `CUSTOM`: The event is held at an address or venue not tied to the business or customer.
|
|
157
|
-
*/
|
|
158
|
-
type?: LocationType;
|
|
159
|
-
/**
|
|
160
|
-
* Location name. For `BUSINESS` locations, it's identical to the
|
|
161
|
-
* [location](https://dev.wix.com/docs/rest/business-management/locations/location-object)
|
|
162
|
-
* `name`.
|
|
163
|
-
*
|
|
164
|
-
* Min: 1 character
|
|
165
|
-
* Max: 150 characters
|
|
166
|
-
* @minLength 1
|
|
167
|
-
* @maxLength 150
|
|
168
|
-
*/
|
|
169
|
-
name?: string | null;
|
|
170
|
-
/**
|
|
171
|
-
* Location address. For `BUSINESS` locations, it's identical to the
|
|
172
|
-
* [location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s
|
|
173
|
-
* `formattedAddress`.
|
|
174
|
-
* @minLength 1
|
|
175
|
-
* @maxLength 300
|
|
176
|
-
*/
|
|
177
|
-
address?: string | null;
|
|
178
|
-
}
|
|
179
|
-
declare enum LocationType {
|
|
180
|
-
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
181
|
-
/** The event is held at a business location. */
|
|
182
|
-
BUSINESS = "BUSINESS",
|
|
183
|
-
/** The event is held at the customer's location, such as their home or office. */
|
|
184
|
-
CUSTOMER = "CUSTOMER",
|
|
185
|
-
/** The event is held at an address or venue not tied to the business or customer. */
|
|
186
|
-
CUSTOM = "CUSTOM"
|
|
187
|
-
}
|
|
188
|
-
interface ConferencingDetails {
|
|
189
|
-
/** Conference type. For example, `Zoom`. */
|
|
190
|
-
type?: Type;
|
|
191
|
-
/**
|
|
192
|
-
* URL used by the host to start the conference.
|
|
193
|
-
*
|
|
194
|
-
* Min: 1 character
|
|
195
|
-
* Max: 2000 characters
|
|
196
|
-
* @minLength 1
|
|
197
|
-
* @maxLength 2000
|
|
198
|
-
*/
|
|
199
|
-
hostUrl?: string | null;
|
|
200
|
-
/**
|
|
201
|
-
* URL used by a guest to join the conference.
|
|
202
|
-
*
|
|
203
|
-
* Min: 1 character
|
|
204
|
-
* Max: 2000 characters
|
|
205
|
-
* @minLength 1
|
|
206
|
-
* @maxLength 2000
|
|
207
|
-
*/
|
|
208
|
-
guestUrl?: string | null;
|
|
209
|
-
/**
|
|
210
|
-
* Conference password.
|
|
211
|
-
*
|
|
212
|
-
* Min: 1 character
|
|
213
|
-
* Max: 100 characters
|
|
214
|
-
* @minLength 1
|
|
215
|
-
* @maxLength 100
|
|
216
|
-
*/
|
|
217
|
-
password?: string | null;
|
|
218
|
-
/**
|
|
219
|
-
* Conference ID in an external system.
|
|
220
|
-
*
|
|
221
|
-
* Min: 1 character
|
|
222
|
-
* Max: 150 characters
|
|
223
|
-
* @minLength 1
|
|
224
|
-
* @maxLength 150
|
|
225
|
-
*/
|
|
226
|
-
externalId?: string | null;
|
|
227
|
-
}
|
|
228
|
-
declare enum Type {
|
|
229
|
-
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
230
|
-
ZOOM = "ZOOM",
|
|
231
|
-
CUSTOM = "CUSTOM"
|
|
232
|
-
}
|
|
233
|
-
interface Permission {
|
|
234
|
-
/**
|
|
235
|
-
* [Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)
|
|
236
|
-
* granted the permission.
|
|
237
|
-
*/
|
|
238
|
-
identity?: CommonIdentificationData;
|
|
239
|
-
/**
|
|
240
|
-
* Permission role.
|
|
241
|
-
*
|
|
242
|
-
* Supported values:
|
|
243
|
-
* + `WRITER`: Full read and write access.
|
|
244
|
-
* + `COMMENTER`: Full read access, write access limited to `event.notes`.
|
|
245
|
-
*/
|
|
246
|
-
role?: Role;
|
|
247
|
-
}
|
|
248
|
-
interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
249
|
-
/**
|
|
250
|
-
* ID of a Wix user. For example, the site owner or a
|
|
251
|
-
* [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).
|
|
252
|
-
* @format GUID
|
|
253
|
-
*/
|
|
254
|
-
wixUserId?: string;
|
|
255
|
-
}
|
|
256
|
-
/** @oneof */
|
|
257
|
-
interface CommonIdentificationDataIdOneOf {
|
|
258
|
-
/**
|
|
259
|
-
* ID of a Wix user. For example, the site owner or a
|
|
260
|
-
* [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).
|
|
261
|
-
* @format GUID
|
|
262
|
-
*/
|
|
263
|
-
wixUserId?: string;
|
|
264
|
-
}
|
|
265
|
-
declare enum Role {
|
|
266
|
-
UNKNOWN_ROLE = "UNKNOWN_ROLE",
|
|
267
|
-
/** Full read and write access. */
|
|
268
|
-
WRITER = "WRITER",
|
|
269
|
-
/** Full read access, write access limited to `event.notes`. */
|
|
270
|
-
COMMENTER = "COMMENTER"
|
|
271
|
-
}
|
|
272
|
-
interface ExtendedFields {
|
|
273
|
-
/**
|
|
274
|
-
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
275
|
-
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
276
|
-
*
|
|
277
|
-
* You can only access fields for which you have the appropriate permissions.
|
|
278
|
-
*
|
|
279
|
-
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
280
|
-
*/
|
|
281
|
-
namespaces?: Record<string, Record<string, any>>;
|
|
282
|
-
}
|
|
283
|
-
interface GetScheduleRequest {
|
|
284
|
-
/**
|
|
285
|
-
* ID of the schedule to retrieve.
|
|
286
|
-
* @format GUID
|
|
287
|
-
*/
|
|
288
|
-
scheduleId: string | null;
|
|
289
|
-
/**
|
|
290
|
-
* Information about which fields containing personal data to return. Refer to the
|
|
291
|
-
* [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions)
|
|
292
|
-
* for more information.
|
|
293
|
-
*
|
|
294
|
-
* Supported values:
|
|
295
|
-
* + `PI_FIELDS`: Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope.
|
|
296
|
-
* + `OWN_PI_FIELDS`: Returns only fields containing your own personal data.
|
|
297
|
-
*
|
|
298
|
-
* Max: 1 field
|
|
299
|
-
* Default: No personal data is returned.
|
|
300
|
-
* @maxSize 1
|
|
301
|
-
*/
|
|
302
|
-
fields?: RequestedFields[];
|
|
303
|
-
}
|
|
304
|
-
declare enum RequestedFields {
|
|
305
|
-
UNKNOWN_REQUESTED_FIELDS = "UNKNOWN_REQUESTED_FIELDS",
|
|
306
|
-
/** Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope. */
|
|
307
|
-
PI_FIELDS = "PI_FIELDS",
|
|
308
|
-
/** Returns only fields containing your own personal data. */
|
|
309
|
-
OWN_PI_FIELDS = "OWN_PI_FIELDS"
|
|
310
|
-
}
|
|
311
|
-
interface GetScheduleResponse {
|
|
312
|
-
/** Retrieved schedule. */
|
|
313
|
-
schedule?: Schedule;
|
|
314
|
-
}
|
|
315
|
-
interface QuerySchedulesRequest {
|
|
316
|
-
/** Query containing filters and paging. */
|
|
317
|
-
query?: CursorQuery;
|
|
318
|
-
/**
|
|
319
|
-
* Information about which fields containing personal data to return. Refer to the
|
|
320
|
-
* [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions)
|
|
321
|
-
* for more information.
|
|
322
|
-
*
|
|
323
|
-
* Supported values:
|
|
324
|
-
* + `PI_FIELDS`: Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope.
|
|
325
|
-
* + `OWN_PI_FIELDS`: Returns only fields containing your own personal data.
|
|
326
|
-
*
|
|
327
|
-
* Max: 1 field
|
|
328
|
-
* Default: No personal data is returned.
|
|
329
|
-
* @maxSize 1
|
|
330
|
-
*/
|
|
331
|
-
fields?: RequestedFields[];
|
|
332
|
-
}
|
|
333
|
-
/** TODO Diverge */
|
|
334
|
-
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
335
|
-
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. */
|
|
336
|
-
cursorPaging?: CursorPaging;
|
|
337
|
-
/**
|
|
338
|
-
* Filter object.
|
|
339
|
-
* See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
340
|
-
* for more information.
|
|
341
|
-
*
|
|
342
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.
|
|
343
|
-
*
|
|
344
|
-
* For a detailed list of supported filters, see Supported Filters.
|
|
345
|
-
*/
|
|
346
|
-
filter?: Record<string, any> | null;
|
|
347
|
-
}
|
|
348
|
-
/** @oneof */
|
|
349
|
-
interface CursorQueryPagingMethodOneOf {
|
|
350
|
-
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. */
|
|
351
|
-
cursorPaging?: CursorPaging;
|
|
352
|
-
}
|
|
353
|
-
/** TODO Diverge */
|
|
354
|
-
interface CursorPaging {
|
|
355
|
-
/**
|
|
356
|
-
* Number of schedules to return.
|
|
357
|
-
*
|
|
358
|
-
* Min: `1`
|
|
359
|
-
* Max: `100`
|
|
360
|
-
* Default: `50`
|
|
361
|
-
* @min 1
|
|
362
|
-
* @max 100
|
|
363
|
-
*/
|
|
364
|
-
limit?: number | null;
|
|
365
|
-
/**
|
|
366
|
-
* Pointer to the next or previous page in the list of results.
|
|
367
|
-
*
|
|
368
|
-
* You can get the relevant cursor token
|
|
369
|
-
* from the `pagingMetadata` object in the previous call's response.
|
|
370
|
-
* Not relevant for the first request.
|
|
371
|
-
*/
|
|
372
|
-
cursor?: string | null;
|
|
373
|
-
}
|
|
374
|
-
interface QuerySchedulesResponse {
|
|
375
|
-
/** Retrieved schedules matching the provided query. */
|
|
376
|
-
schedules?: Schedule[];
|
|
377
|
-
/** Paging metadata. */
|
|
378
|
-
pagingMetadata?: CursorPagingMetadata;
|
|
379
|
-
}
|
|
380
|
-
/** TODO Diverge */
|
|
381
|
-
interface CursorPagingMetadata {
|
|
382
|
-
/** Number of schedules returned in the current page of the response. */
|
|
383
|
-
count?: number | null;
|
|
384
|
-
/** Use these cursor to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */
|
|
385
|
-
cursors?: Cursors;
|
|
386
|
-
/**
|
|
387
|
-
* Indicates if there are more results after the current page.
|
|
388
|
-
* If `true`, another page of results can be retrieved.
|
|
389
|
-
* If `false`, this is the last page.
|
|
390
|
-
*/
|
|
391
|
-
hasNext?: boolean | null;
|
|
392
|
-
}
|
|
393
|
-
interface Cursors {
|
|
394
|
-
/** Cursor pointing to next page in the list of results. */
|
|
395
|
-
next?: string | null;
|
|
396
|
-
/** Cursor pointing to previous page in the list of results. */
|
|
397
|
-
prev?: string | null;
|
|
398
|
-
}
|
|
399
|
-
interface CreateScheduleRequest {
|
|
400
|
-
/** Schedule to create. */
|
|
401
|
-
schedule: Schedule;
|
|
402
|
-
/**
|
|
403
|
-
* Idempotency key guaranteeing that you don't create the same schedule more
|
|
404
|
-
* than once.
|
|
405
|
-
* @format GUID
|
|
406
|
-
*/
|
|
407
|
-
idempotencyKey?: string | null;
|
|
408
|
-
}
|
|
409
|
-
interface CreateScheduleResponse {
|
|
410
|
-
/** Created schedule. */
|
|
411
|
-
schedule?: Schedule;
|
|
412
|
-
}
|
|
413
|
-
interface UpdateScheduleRequest {
|
|
414
|
-
/** Schedule to update. */
|
|
415
|
-
schedule: Schedule;
|
|
416
|
-
/**
|
|
417
|
-
* Information about whether participants of the schedule's updated events are
|
|
418
|
-
* notified and the message they receive.
|
|
419
|
-
*/
|
|
420
|
-
participantNotification?: ParticipantNotification;
|
|
421
|
-
}
|
|
422
|
-
interface ParticipantNotification {
|
|
423
|
-
/**
|
|
424
|
-
* Whether to notify the participants about changes made to the schedule or event.
|
|
425
|
-
*
|
|
426
|
-
* Default: `false`
|
|
427
|
-
*/
|
|
428
|
-
notifyParticipants?: boolean | null;
|
|
429
|
-
/**
|
|
430
|
-
* Message to send.
|
|
431
|
-
*
|
|
432
|
-
* Min: 1 character
|
|
433
|
-
* Max: 5000 characters
|
|
434
|
-
* @minLength 1
|
|
435
|
-
* @maxLength 5000
|
|
436
|
-
*/
|
|
437
|
-
message?: string | null;
|
|
438
|
-
}
|
|
439
|
-
interface UpdateScheduleResponse {
|
|
440
|
-
/** Updated schedule. */
|
|
441
|
-
schedule?: Schedule;
|
|
442
|
-
}
|
|
443
|
-
interface CancelScheduleRequest {
|
|
444
|
-
/**
|
|
445
|
-
* ID of the schedule to cancel.
|
|
446
|
-
* @format GUID
|
|
447
|
-
*/
|
|
448
|
-
scheduleId: string | null;
|
|
449
|
-
/**
|
|
450
|
-
* Whether to preserve future events with participants.
|
|
451
|
-
* Default: `false`.
|
|
452
|
-
*/
|
|
453
|
-
preserveFutureEventsWithParticipants?: boolean | null;
|
|
454
|
-
/**
|
|
455
|
-
* Information about whether participants of the schedule's updated events are
|
|
456
|
-
* notified and the message they receive.
|
|
457
|
-
*/
|
|
458
|
-
participantNotification?: ParticipantNotification;
|
|
459
|
-
}
|
|
460
|
-
interface CancelScheduleResponse {
|
|
461
|
-
/** Canceled schedule. */
|
|
462
|
-
schedule?: Schedule;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
466
|
-
getUrl: (context: any) => string;
|
|
467
|
-
httpMethod: K;
|
|
468
|
-
path: string;
|
|
469
|
-
pathParams: M;
|
|
470
|
-
__requestType: T;
|
|
471
|
-
__originalRequestType: S;
|
|
472
|
-
__responseType: Q;
|
|
473
|
-
__originalResponseType: R;
|
|
474
|
-
};
|
|
475
|
-
declare function getSchedule(): __PublicMethodMetaInfo<'GET', {
|
|
476
|
-
scheduleId: string;
|
|
477
|
-
}, GetScheduleRequest$1, GetScheduleRequest, GetScheduleResponse$1, GetScheduleResponse>;
|
|
478
|
-
declare function querySchedules(): __PublicMethodMetaInfo<'POST', {}, QuerySchedulesRequest$1, QuerySchedulesRequest, QuerySchedulesResponse$1, QuerySchedulesResponse>;
|
|
479
|
-
declare function createSchedule(): __PublicMethodMetaInfo<'POST', {}, CreateScheduleRequest$1, CreateScheduleRequest, CreateScheduleResponse$1, CreateScheduleResponse>;
|
|
480
|
-
declare function updateSchedule(): __PublicMethodMetaInfo<'PATCH', {
|
|
481
|
-
scheduleId: string;
|
|
482
|
-
}, UpdateScheduleRequest$1, UpdateScheduleRequest, UpdateScheduleResponse$1, UpdateScheduleResponse>;
|
|
483
|
-
declare function cancelSchedule(): __PublicMethodMetaInfo<'POST', {
|
|
484
|
-
scheduleId: string;
|
|
485
|
-
}, CancelScheduleRequest$1, CancelScheduleRequest, CancelScheduleResponse$1, CancelScheduleResponse>;
|
|
486
|
-
|
|
487
|
-
export { type __PublicMethodMetaInfo, cancelSchedule, createSchedule, getSchedule, querySchedules, updateSchedule };
|