@wix/bookings 1.0.229 → 1.0.230
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/src/bookings-availability-v1-slot-availability.http.d.ts +2 -2
- package/build/cjs/src/bookings-availability-v1-slot-availability.http.js.map +1 -1
- package/build/cjs/src/bookings-availability-v1-slot-availability.public.d.ts +2 -2
- package/build/cjs/src/bookings-availability-v1-slot-availability.types.d.ts +19 -0
- package/build/cjs/src/bookings-availability-v1-slot-availability.universal.d.ts +14 -1
- package/build/cjs/src/bookings-availability-v1-slot-availability.universal.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v1-session.http.d.ts +6 -6
- package/build/cjs/src/bookings-calendar-v1-session.http.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v1-session.public.d.ts +146 -5
- package/build/cjs/src/bookings-calendar-v1-session.types.d.ts +450 -0
- package/build/cjs/src/bookings-calendar-v1-session.universal.d.ts +254 -4
- package/build/cjs/src/bookings-calendar-v1-session.universal.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v2-external-calendar.http.d.ts +9 -9
- package/build/cjs/src/bookings-calendar-v2-external-calendar.http.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v2-external-calendar.public.d.ts +9 -9
- package/build/cjs/src/bookings-calendar-v2-external-calendar.types.d.ts +93 -0
- package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.d.ts +96 -8
- package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.js.map +1 -1
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.http.d.ts +7 -7
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.http.js.map +1 -1
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +70 -6
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +210 -0
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +215 -5
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -1
- package/build/cjs/src/bookings-reader-v2-extended-booking.http.d.ts +2 -2
- package/build/cjs/src/bookings-reader-v2-extended-booking.http.js.map +1 -1
- package/build/cjs/src/bookings-reader-v2-extended-booking.public.d.ts +2 -2
- package/build/cjs/src/bookings-reader-v2-extended-booking.types.d.ts +89 -0
- package/build/cjs/src/bookings-reader-v2-extended-booking.universal.d.ts +72 -1
- package/build/cjs/src/bookings-reader-v2-extended-booking.universal.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service.http.d.ts +5 -5
- package/build/cjs/src/bookings-services-v2-service.http.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service.public.d.ts +397 -4
- package/build/cjs/src/bookings-services-v2-service.types.d.ts +768 -0
- package/build/cjs/src/bookings-services-v2-service.universal.d.ts +539 -3
- package/build/cjs/src/bookings-services-v2-service.universal.js.map +1 -1
- package/build/cjs/src/bookings-v2-attendance.http.d.ts +4 -4
- package/build/cjs/src/bookings-v2-attendance.http.js.map +1 -1
- package/build/cjs/src/bookings-v2-attendance.public.d.ts +6 -3
- package/build/cjs/src/bookings-v2-attendance.types.d.ts +21 -0
- package/build/cjs/src/bookings-v2-attendance.universal.d.ts +20 -2
- package/build/cjs/src/bookings-v2-attendance.universal.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.http.d.ts +11 -11
- package/build/cjs/src/bookings-v2-booking.http.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.public.d.ts +12 -12
- package/build/cjs/src/bookings-v2-booking.public.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.types.d.ts +735 -0
- package/build/cjs/src/bookings-v2-booking.universal.d.ts +592 -13
- package/build/cjs/src/bookings-v2-booking.universal.js +0 -3
- package/build/cjs/src/bookings-v2-booking.universal.js.map +1 -1
- package/build/cjs/src/bookings-v2-price-info.http.d.ts +3 -3
- package/build/cjs/src/bookings-v2-price-info.http.js.map +1 -1
- package/build/cjs/src/bookings-v2-price-info.public.d.ts +3 -3
- package/build/cjs/src/bookings-v2-price-info.types.d.ts +24 -0
- package/build/cjs/src/bookings-v2-price-info.universal.d.ts +26 -2
- package/build/cjs/src/bookings-v2-price-info.universal.js.map +1 -1
- package/build/es/src/bookings-availability-v1-slot-availability.http.d.ts +2 -2
- package/build/es/src/bookings-availability-v1-slot-availability.http.js.map +1 -1
- package/build/es/src/bookings-availability-v1-slot-availability.public.d.ts +2 -2
- package/build/es/src/bookings-availability-v1-slot-availability.types.d.ts +19 -0
- package/build/es/src/bookings-availability-v1-slot-availability.universal.d.ts +14 -1
- package/build/es/src/bookings-availability-v1-slot-availability.universal.js.map +1 -1
- package/build/es/src/bookings-calendar-v1-session.http.d.ts +6 -6
- package/build/es/src/bookings-calendar-v1-session.http.js.map +1 -1
- package/build/es/src/bookings-calendar-v1-session.public.d.ts +146 -5
- package/build/es/src/bookings-calendar-v1-session.types.d.ts +450 -0
- package/build/es/src/bookings-calendar-v1-session.universal.d.ts +254 -4
- package/build/es/src/bookings-calendar-v1-session.universal.js.map +1 -1
- package/build/es/src/bookings-calendar-v2-external-calendar.http.d.ts +9 -9
- package/build/es/src/bookings-calendar-v2-external-calendar.http.js.map +1 -1
- package/build/es/src/bookings-calendar-v2-external-calendar.public.d.ts +9 -9
- package/build/es/src/bookings-calendar-v2-external-calendar.types.d.ts +93 -0
- package/build/es/src/bookings-calendar-v2-external-calendar.universal.d.ts +96 -8
- package/build/es/src/bookings-calendar-v2-external-calendar.universal.js.map +1 -1
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.http.d.ts +7 -7
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.http.js.map +1 -1
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +70 -6
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +210 -0
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +215 -5
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -1
- package/build/es/src/bookings-reader-v2-extended-booking.http.d.ts +2 -2
- package/build/es/src/bookings-reader-v2-extended-booking.http.js.map +1 -1
- package/build/es/src/bookings-reader-v2-extended-booking.public.d.ts +2 -2
- package/build/es/src/bookings-reader-v2-extended-booking.types.d.ts +89 -0
- package/build/es/src/bookings-reader-v2-extended-booking.universal.d.ts +72 -1
- package/build/es/src/bookings-reader-v2-extended-booking.universal.js.map +1 -1
- package/build/es/src/bookings-services-v2-service.http.d.ts +5 -5
- package/build/es/src/bookings-services-v2-service.http.js.map +1 -1
- package/build/es/src/bookings-services-v2-service.public.d.ts +397 -4
- package/build/es/src/bookings-services-v2-service.types.d.ts +768 -0
- package/build/es/src/bookings-services-v2-service.universal.d.ts +539 -3
- package/build/es/src/bookings-services-v2-service.universal.js.map +1 -1
- package/build/es/src/bookings-v2-attendance.http.d.ts +4 -4
- package/build/es/src/bookings-v2-attendance.http.js.map +1 -1
- package/build/es/src/bookings-v2-attendance.public.d.ts +6 -3
- package/build/es/src/bookings-v2-attendance.types.d.ts +21 -0
- package/build/es/src/bookings-v2-attendance.universal.d.ts +20 -2
- package/build/es/src/bookings-v2-attendance.universal.js.map +1 -1
- package/build/es/src/bookings-v2-booking.http.d.ts +11 -11
- package/build/es/src/bookings-v2-booking.http.js.map +1 -1
- package/build/es/src/bookings-v2-booking.public.d.ts +12 -12
- package/build/es/src/bookings-v2-booking.public.js.map +1 -1
- package/build/es/src/bookings-v2-booking.types.d.ts +735 -0
- package/build/es/src/bookings-v2-booking.universal.d.ts +592 -13
- package/build/es/src/bookings-v2-booking.universal.js +0 -3
- package/build/es/src/bookings-v2-booking.universal.js.map +1 -1
- package/build/es/src/bookings-v2-price-info.http.d.ts +3 -3
- package/build/es/src/bookings-v2-price-info.http.js.map +1 -1
- package/build/es/src/bookings-v2-price-info.public.d.ts +3 -3
- package/build/es/src/bookings-v2-price-info.types.d.ts +24 -0
- package/build/es/src/bookings-v2-price-info.universal.d.ts +26 -2
- package/build/es/src/bookings-v2-price-info.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -2088,6 +2088,588 @@ export interface V2UpdateNumberOfParticipantsResponse {
|
|
|
2088
2088
|
/** Booking with updated number of participants. */
|
|
2089
2089
|
booking?: Booking;
|
|
2090
2090
|
}
|
|
2091
|
+
export interface CreateBookingResponseNonNullableFields {
|
|
2092
|
+
booking?: {
|
|
2093
|
+
totalParticipants: number;
|
|
2094
|
+
participantsChoices?: {
|
|
2095
|
+
serviceChoices: {
|
|
2096
|
+
choices: {
|
|
2097
|
+
custom: string;
|
|
2098
|
+
optionId: string;
|
|
2099
|
+
}[];
|
|
2100
|
+
}[];
|
|
2101
|
+
};
|
|
2102
|
+
bookedEntity?: {
|
|
2103
|
+
slot?: {
|
|
2104
|
+
serviceId: string;
|
|
2105
|
+
scheduleId: string;
|
|
2106
|
+
resource?: {
|
|
2107
|
+
_id: string;
|
|
2108
|
+
};
|
|
2109
|
+
location?: {
|
|
2110
|
+
locationType: LocationType;
|
|
2111
|
+
};
|
|
2112
|
+
flowSelectedResources: {
|
|
2113
|
+
type: Type;
|
|
2114
|
+
resourceIds: string[];
|
|
2115
|
+
}[];
|
|
2116
|
+
};
|
|
2117
|
+
schedule?: {
|
|
2118
|
+
scheduleId: string;
|
|
2119
|
+
location?: {
|
|
2120
|
+
locationType: LocationType;
|
|
2121
|
+
};
|
|
2122
|
+
};
|
|
2123
|
+
};
|
|
2124
|
+
contactDetails?: {
|
|
2125
|
+
fullAddress?: {
|
|
2126
|
+
streetAddress?: {
|
|
2127
|
+
number: string;
|
|
2128
|
+
name: string;
|
|
2129
|
+
apt: string;
|
|
2130
|
+
};
|
|
2131
|
+
subdivisions: {
|
|
2132
|
+
code: string;
|
|
2133
|
+
name: string;
|
|
2134
|
+
}[];
|
|
2135
|
+
};
|
|
2136
|
+
};
|
|
2137
|
+
additionalFields: {
|
|
2138
|
+
_id: string;
|
|
2139
|
+
valueType: ValueType;
|
|
2140
|
+
}[];
|
|
2141
|
+
status: BookingStatus;
|
|
2142
|
+
paymentStatus: PaymentStatus;
|
|
2143
|
+
selectedPaymentOption: SelectedPaymentOption;
|
|
2144
|
+
createdBy?: {
|
|
2145
|
+
anonymousVisitorId: string;
|
|
2146
|
+
memberId: string;
|
|
2147
|
+
wixUserId: string;
|
|
2148
|
+
appId: string;
|
|
2149
|
+
};
|
|
2150
|
+
};
|
|
2151
|
+
}
|
|
2152
|
+
export interface BulkCreateBookingResponseNonNullableFields {
|
|
2153
|
+
results: {
|
|
2154
|
+
itemMetadata?: {
|
|
2155
|
+
originalIndex: number;
|
|
2156
|
+
success: boolean;
|
|
2157
|
+
error?: {
|
|
2158
|
+
code: string;
|
|
2159
|
+
description: string;
|
|
2160
|
+
};
|
|
2161
|
+
};
|
|
2162
|
+
item?: {
|
|
2163
|
+
totalParticipants: number;
|
|
2164
|
+
participantsChoices?: {
|
|
2165
|
+
serviceChoices: {
|
|
2166
|
+
choices: {
|
|
2167
|
+
custom: string;
|
|
2168
|
+
optionId: string;
|
|
2169
|
+
}[];
|
|
2170
|
+
}[];
|
|
2171
|
+
};
|
|
2172
|
+
bookedEntity?: {
|
|
2173
|
+
slot?: {
|
|
2174
|
+
serviceId: string;
|
|
2175
|
+
scheduleId: string;
|
|
2176
|
+
resource?: {
|
|
2177
|
+
_id: string;
|
|
2178
|
+
};
|
|
2179
|
+
location?: {
|
|
2180
|
+
locationType: LocationType;
|
|
2181
|
+
};
|
|
2182
|
+
flowSelectedResources: {
|
|
2183
|
+
type: Type;
|
|
2184
|
+
resourceIds: string[];
|
|
2185
|
+
}[];
|
|
2186
|
+
};
|
|
2187
|
+
schedule?: {
|
|
2188
|
+
scheduleId: string;
|
|
2189
|
+
location?: {
|
|
2190
|
+
locationType: LocationType;
|
|
2191
|
+
};
|
|
2192
|
+
};
|
|
2193
|
+
};
|
|
2194
|
+
contactDetails?: {
|
|
2195
|
+
fullAddress?: {
|
|
2196
|
+
streetAddress?: {
|
|
2197
|
+
number: string;
|
|
2198
|
+
name: string;
|
|
2199
|
+
apt: string;
|
|
2200
|
+
};
|
|
2201
|
+
subdivisions: {
|
|
2202
|
+
code: string;
|
|
2203
|
+
name: string;
|
|
2204
|
+
}[];
|
|
2205
|
+
};
|
|
2206
|
+
};
|
|
2207
|
+
additionalFields: {
|
|
2208
|
+
_id: string;
|
|
2209
|
+
valueType: ValueType;
|
|
2210
|
+
}[];
|
|
2211
|
+
status: BookingStatus;
|
|
2212
|
+
paymentStatus: PaymentStatus;
|
|
2213
|
+
selectedPaymentOption: SelectedPaymentOption;
|
|
2214
|
+
createdBy?: {
|
|
2215
|
+
anonymousVisitorId: string;
|
|
2216
|
+
memberId: string;
|
|
2217
|
+
wixUserId: string;
|
|
2218
|
+
appId: string;
|
|
2219
|
+
};
|
|
2220
|
+
};
|
|
2221
|
+
}[];
|
|
2222
|
+
bulkActionMetadata?: {
|
|
2223
|
+
totalSuccesses: number;
|
|
2224
|
+
totalFailures: number;
|
|
2225
|
+
undetailedFailures: number;
|
|
2226
|
+
};
|
|
2227
|
+
}
|
|
2228
|
+
export interface RescheduleBookingResponseNonNullableFields {
|
|
2229
|
+
booking?: {
|
|
2230
|
+
totalParticipants: number;
|
|
2231
|
+
participantsChoices?: {
|
|
2232
|
+
serviceChoices: {
|
|
2233
|
+
choices: {
|
|
2234
|
+
custom: string;
|
|
2235
|
+
optionId: string;
|
|
2236
|
+
}[];
|
|
2237
|
+
}[];
|
|
2238
|
+
};
|
|
2239
|
+
bookedEntity?: {
|
|
2240
|
+
slot?: {
|
|
2241
|
+
serviceId: string;
|
|
2242
|
+
scheduleId: string;
|
|
2243
|
+
resource?: {
|
|
2244
|
+
_id: string;
|
|
2245
|
+
};
|
|
2246
|
+
location?: {
|
|
2247
|
+
locationType: LocationType;
|
|
2248
|
+
};
|
|
2249
|
+
flowSelectedResources: {
|
|
2250
|
+
type: Type;
|
|
2251
|
+
resourceIds: string[];
|
|
2252
|
+
}[];
|
|
2253
|
+
};
|
|
2254
|
+
schedule?: {
|
|
2255
|
+
scheduleId: string;
|
|
2256
|
+
location?: {
|
|
2257
|
+
locationType: LocationType;
|
|
2258
|
+
};
|
|
2259
|
+
};
|
|
2260
|
+
};
|
|
2261
|
+
contactDetails?: {
|
|
2262
|
+
fullAddress?: {
|
|
2263
|
+
streetAddress?: {
|
|
2264
|
+
number: string;
|
|
2265
|
+
name: string;
|
|
2266
|
+
apt: string;
|
|
2267
|
+
};
|
|
2268
|
+
subdivisions: {
|
|
2269
|
+
code: string;
|
|
2270
|
+
name: string;
|
|
2271
|
+
}[];
|
|
2272
|
+
};
|
|
2273
|
+
};
|
|
2274
|
+
additionalFields: {
|
|
2275
|
+
_id: string;
|
|
2276
|
+
valueType: ValueType;
|
|
2277
|
+
}[];
|
|
2278
|
+
status: BookingStatus;
|
|
2279
|
+
paymentStatus: PaymentStatus;
|
|
2280
|
+
selectedPaymentOption: SelectedPaymentOption;
|
|
2281
|
+
createdBy?: {
|
|
2282
|
+
anonymousVisitorId: string;
|
|
2283
|
+
memberId: string;
|
|
2284
|
+
wixUserId: string;
|
|
2285
|
+
appId: string;
|
|
2286
|
+
};
|
|
2287
|
+
};
|
|
2288
|
+
}
|
|
2289
|
+
export interface ConfirmBookingResponseNonNullableFields {
|
|
2290
|
+
booking?: {
|
|
2291
|
+
totalParticipants: number;
|
|
2292
|
+
participantsChoices?: {
|
|
2293
|
+
serviceChoices: {
|
|
2294
|
+
choices: {
|
|
2295
|
+
custom: string;
|
|
2296
|
+
optionId: string;
|
|
2297
|
+
}[];
|
|
2298
|
+
}[];
|
|
2299
|
+
};
|
|
2300
|
+
bookedEntity?: {
|
|
2301
|
+
slot?: {
|
|
2302
|
+
serviceId: string;
|
|
2303
|
+
scheduleId: string;
|
|
2304
|
+
resource?: {
|
|
2305
|
+
_id: string;
|
|
2306
|
+
};
|
|
2307
|
+
location?: {
|
|
2308
|
+
locationType: LocationType;
|
|
2309
|
+
};
|
|
2310
|
+
flowSelectedResources: {
|
|
2311
|
+
type: Type;
|
|
2312
|
+
resourceIds: string[];
|
|
2313
|
+
}[];
|
|
2314
|
+
};
|
|
2315
|
+
schedule?: {
|
|
2316
|
+
scheduleId: string;
|
|
2317
|
+
location?: {
|
|
2318
|
+
locationType: LocationType;
|
|
2319
|
+
};
|
|
2320
|
+
};
|
|
2321
|
+
};
|
|
2322
|
+
contactDetails?: {
|
|
2323
|
+
fullAddress?: {
|
|
2324
|
+
streetAddress?: {
|
|
2325
|
+
number: string;
|
|
2326
|
+
name: string;
|
|
2327
|
+
apt: string;
|
|
2328
|
+
};
|
|
2329
|
+
subdivisions: {
|
|
2330
|
+
code: string;
|
|
2331
|
+
name: string;
|
|
2332
|
+
}[];
|
|
2333
|
+
};
|
|
2334
|
+
};
|
|
2335
|
+
additionalFields: {
|
|
2336
|
+
_id: string;
|
|
2337
|
+
valueType: ValueType;
|
|
2338
|
+
}[];
|
|
2339
|
+
status: BookingStatus;
|
|
2340
|
+
paymentStatus: PaymentStatus;
|
|
2341
|
+
selectedPaymentOption: SelectedPaymentOption;
|
|
2342
|
+
createdBy?: {
|
|
2343
|
+
anonymousVisitorId: string;
|
|
2344
|
+
memberId: string;
|
|
2345
|
+
wixUserId: string;
|
|
2346
|
+
appId: string;
|
|
2347
|
+
};
|
|
2348
|
+
};
|
|
2349
|
+
}
|
|
2350
|
+
export interface UpdateExtendedFieldsResponseNonNullableFields {
|
|
2351
|
+
namespace: string;
|
|
2352
|
+
}
|
|
2353
|
+
export interface DeclineBookingResponseNonNullableFields {
|
|
2354
|
+
booking?: {
|
|
2355
|
+
totalParticipants: number;
|
|
2356
|
+
participantsChoices?: {
|
|
2357
|
+
serviceChoices: {
|
|
2358
|
+
choices: {
|
|
2359
|
+
custom: string;
|
|
2360
|
+
optionId: string;
|
|
2361
|
+
}[];
|
|
2362
|
+
}[];
|
|
2363
|
+
};
|
|
2364
|
+
bookedEntity?: {
|
|
2365
|
+
slot?: {
|
|
2366
|
+
serviceId: string;
|
|
2367
|
+
scheduleId: string;
|
|
2368
|
+
resource?: {
|
|
2369
|
+
_id: string;
|
|
2370
|
+
};
|
|
2371
|
+
location?: {
|
|
2372
|
+
locationType: LocationType;
|
|
2373
|
+
};
|
|
2374
|
+
flowSelectedResources: {
|
|
2375
|
+
type: Type;
|
|
2376
|
+
resourceIds: string[];
|
|
2377
|
+
}[];
|
|
2378
|
+
};
|
|
2379
|
+
schedule?: {
|
|
2380
|
+
scheduleId: string;
|
|
2381
|
+
location?: {
|
|
2382
|
+
locationType: LocationType;
|
|
2383
|
+
};
|
|
2384
|
+
};
|
|
2385
|
+
};
|
|
2386
|
+
contactDetails?: {
|
|
2387
|
+
fullAddress?: {
|
|
2388
|
+
streetAddress?: {
|
|
2389
|
+
number: string;
|
|
2390
|
+
name: string;
|
|
2391
|
+
apt: string;
|
|
2392
|
+
};
|
|
2393
|
+
subdivisions: {
|
|
2394
|
+
code: string;
|
|
2395
|
+
name: string;
|
|
2396
|
+
}[];
|
|
2397
|
+
};
|
|
2398
|
+
};
|
|
2399
|
+
additionalFields: {
|
|
2400
|
+
_id: string;
|
|
2401
|
+
valueType: ValueType;
|
|
2402
|
+
}[];
|
|
2403
|
+
status: BookingStatus;
|
|
2404
|
+
paymentStatus: PaymentStatus;
|
|
2405
|
+
selectedPaymentOption: SelectedPaymentOption;
|
|
2406
|
+
createdBy?: {
|
|
2407
|
+
anonymousVisitorId: string;
|
|
2408
|
+
memberId: string;
|
|
2409
|
+
wixUserId: string;
|
|
2410
|
+
appId: string;
|
|
2411
|
+
};
|
|
2412
|
+
};
|
|
2413
|
+
}
|
|
2414
|
+
export interface CancelBookingResponseNonNullableFields {
|
|
2415
|
+
booking?: {
|
|
2416
|
+
totalParticipants: number;
|
|
2417
|
+
participantsChoices?: {
|
|
2418
|
+
serviceChoices: {
|
|
2419
|
+
choices: {
|
|
2420
|
+
custom: string;
|
|
2421
|
+
optionId: string;
|
|
2422
|
+
}[];
|
|
2423
|
+
}[];
|
|
2424
|
+
};
|
|
2425
|
+
bookedEntity?: {
|
|
2426
|
+
slot?: {
|
|
2427
|
+
serviceId: string;
|
|
2428
|
+
scheduleId: string;
|
|
2429
|
+
resource?: {
|
|
2430
|
+
_id: string;
|
|
2431
|
+
};
|
|
2432
|
+
location?: {
|
|
2433
|
+
locationType: LocationType;
|
|
2434
|
+
};
|
|
2435
|
+
flowSelectedResources: {
|
|
2436
|
+
type: Type;
|
|
2437
|
+
resourceIds: string[];
|
|
2438
|
+
}[];
|
|
2439
|
+
};
|
|
2440
|
+
schedule?: {
|
|
2441
|
+
scheduleId: string;
|
|
2442
|
+
location?: {
|
|
2443
|
+
locationType: LocationType;
|
|
2444
|
+
};
|
|
2445
|
+
};
|
|
2446
|
+
};
|
|
2447
|
+
contactDetails?: {
|
|
2448
|
+
fullAddress?: {
|
|
2449
|
+
streetAddress?: {
|
|
2450
|
+
number: string;
|
|
2451
|
+
name: string;
|
|
2452
|
+
apt: string;
|
|
2453
|
+
};
|
|
2454
|
+
subdivisions: {
|
|
2455
|
+
code: string;
|
|
2456
|
+
name: string;
|
|
2457
|
+
}[];
|
|
2458
|
+
};
|
|
2459
|
+
};
|
|
2460
|
+
additionalFields: {
|
|
2461
|
+
_id: string;
|
|
2462
|
+
valueType: ValueType;
|
|
2463
|
+
}[];
|
|
2464
|
+
status: BookingStatus;
|
|
2465
|
+
paymentStatus: PaymentStatus;
|
|
2466
|
+
selectedPaymentOption: SelectedPaymentOption;
|
|
2467
|
+
createdBy?: {
|
|
2468
|
+
anonymousVisitorId: string;
|
|
2469
|
+
memberId: string;
|
|
2470
|
+
wixUserId: string;
|
|
2471
|
+
appId: string;
|
|
2472
|
+
};
|
|
2473
|
+
};
|
|
2474
|
+
}
|
|
2475
|
+
export interface UpdateNumberOfParticipantsResponseNonNullableFields {
|
|
2476
|
+
booking?: {
|
|
2477
|
+
totalParticipants: number;
|
|
2478
|
+
participantsChoices?: {
|
|
2479
|
+
serviceChoices: {
|
|
2480
|
+
choices: {
|
|
2481
|
+
custom: string;
|
|
2482
|
+
optionId: string;
|
|
2483
|
+
}[];
|
|
2484
|
+
}[];
|
|
2485
|
+
};
|
|
2486
|
+
bookedEntity?: {
|
|
2487
|
+
slot?: {
|
|
2488
|
+
serviceId: string;
|
|
2489
|
+
scheduleId: string;
|
|
2490
|
+
resource?: {
|
|
2491
|
+
_id: string;
|
|
2492
|
+
};
|
|
2493
|
+
location?: {
|
|
2494
|
+
locationType: LocationType;
|
|
2495
|
+
};
|
|
2496
|
+
flowSelectedResources: {
|
|
2497
|
+
type: Type;
|
|
2498
|
+
resourceIds: string[];
|
|
2499
|
+
}[];
|
|
2500
|
+
};
|
|
2501
|
+
schedule?: {
|
|
2502
|
+
scheduleId: string;
|
|
2503
|
+
location?: {
|
|
2504
|
+
locationType: LocationType;
|
|
2505
|
+
};
|
|
2506
|
+
};
|
|
2507
|
+
};
|
|
2508
|
+
contactDetails?: {
|
|
2509
|
+
fullAddress?: {
|
|
2510
|
+
streetAddress?: {
|
|
2511
|
+
number: string;
|
|
2512
|
+
name: string;
|
|
2513
|
+
apt: string;
|
|
2514
|
+
};
|
|
2515
|
+
subdivisions: {
|
|
2516
|
+
code: string;
|
|
2517
|
+
name: string;
|
|
2518
|
+
}[];
|
|
2519
|
+
};
|
|
2520
|
+
};
|
|
2521
|
+
additionalFields: {
|
|
2522
|
+
_id: string;
|
|
2523
|
+
valueType: ValueType;
|
|
2524
|
+
}[];
|
|
2525
|
+
status: BookingStatus;
|
|
2526
|
+
paymentStatus: PaymentStatus;
|
|
2527
|
+
selectedPaymentOption: SelectedPaymentOption;
|
|
2528
|
+
createdBy?: {
|
|
2529
|
+
anonymousVisitorId: string;
|
|
2530
|
+
memberId: string;
|
|
2531
|
+
wixUserId: string;
|
|
2532
|
+
appId: string;
|
|
2533
|
+
};
|
|
2534
|
+
};
|
|
2535
|
+
}
|
|
2536
|
+
export interface ConfirmOrDeclineBookingResponseNonNullableFields {
|
|
2537
|
+
booking?: {
|
|
2538
|
+
totalParticipants: number;
|
|
2539
|
+
participantsChoices?: {
|
|
2540
|
+
serviceChoices: {
|
|
2541
|
+
choices: {
|
|
2542
|
+
custom: string;
|
|
2543
|
+
optionId: string;
|
|
2544
|
+
}[];
|
|
2545
|
+
}[];
|
|
2546
|
+
};
|
|
2547
|
+
bookedEntity?: {
|
|
2548
|
+
slot?: {
|
|
2549
|
+
serviceId: string;
|
|
2550
|
+
scheduleId: string;
|
|
2551
|
+
resource?: {
|
|
2552
|
+
_id: string;
|
|
2553
|
+
};
|
|
2554
|
+
location?: {
|
|
2555
|
+
locationType: LocationType;
|
|
2556
|
+
};
|
|
2557
|
+
flowSelectedResources: {
|
|
2558
|
+
type: Type;
|
|
2559
|
+
resourceIds: string[];
|
|
2560
|
+
}[];
|
|
2561
|
+
};
|
|
2562
|
+
schedule?: {
|
|
2563
|
+
scheduleId: string;
|
|
2564
|
+
location?: {
|
|
2565
|
+
locationType: LocationType;
|
|
2566
|
+
};
|
|
2567
|
+
};
|
|
2568
|
+
};
|
|
2569
|
+
contactDetails?: {
|
|
2570
|
+
fullAddress?: {
|
|
2571
|
+
streetAddress?: {
|
|
2572
|
+
number: string;
|
|
2573
|
+
name: string;
|
|
2574
|
+
apt: string;
|
|
2575
|
+
};
|
|
2576
|
+
subdivisions: {
|
|
2577
|
+
code: string;
|
|
2578
|
+
name: string;
|
|
2579
|
+
}[];
|
|
2580
|
+
};
|
|
2581
|
+
};
|
|
2582
|
+
additionalFields: {
|
|
2583
|
+
_id: string;
|
|
2584
|
+
valueType: ValueType;
|
|
2585
|
+
}[];
|
|
2586
|
+
status: BookingStatus;
|
|
2587
|
+
paymentStatus: PaymentStatus;
|
|
2588
|
+
selectedPaymentOption: SelectedPaymentOption;
|
|
2589
|
+
createdBy?: {
|
|
2590
|
+
anonymousVisitorId: string;
|
|
2591
|
+
memberId: string;
|
|
2592
|
+
wixUserId: string;
|
|
2593
|
+
appId: string;
|
|
2594
|
+
};
|
|
2595
|
+
};
|
|
2596
|
+
}
|
|
2597
|
+
export interface BulkConfirmOrDeclineBookingResponseNonNullableFields {
|
|
2598
|
+
results: {
|
|
2599
|
+
itemMetadata?: {
|
|
2600
|
+
originalIndex: number;
|
|
2601
|
+
success: boolean;
|
|
2602
|
+
error?: {
|
|
2603
|
+
code: string;
|
|
2604
|
+
description: string;
|
|
2605
|
+
};
|
|
2606
|
+
};
|
|
2607
|
+
item?: {
|
|
2608
|
+
totalParticipants: number;
|
|
2609
|
+
participantsChoices?: {
|
|
2610
|
+
serviceChoices: {
|
|
2611
|
+
choices: {
|
|
2612
|
+
custom: string;
|
|
2613
|
+
optionId: string;
|
|
2614
|
+
}[];
|
|
2615
|
+
}[];
|
|
2616
|
+
};
|
|
2617
|
+
bookedEntity?: {
|
|
2618
|
+
slot?: {
|
|
2619
|
+
serviceId: string;
|
|
2620
|
+
scheduleId: string;
|
|
2621
|
+
resource?: {
|
|
2622
|
+
_id: string;
|
|
2623
|
+
};
|
|
2624
|
+
location?: {
|
|
2625
|
+
locationType: LocationType;
|
|
2626
|
+
};
|
|
2627
|
+
flowSelectedResources: {
|
|
2628
|
+
type: Type;
|
|
2629
|
+
resourceIds: string[];
|
|
2630
|
+
}[];
|
|
2631
|
+
};
|
|
2632
|
+
schedule?: {
|
|
2633
|
+
scheduleId: string;
|
|
2634
|
+
location?: {
|
|
2635
|
+
locationType: LocationType;
|
|
2636
|
+
};
|
|
2637
|
+
};
|
|
2638
|
+
};
|
|
2639
|
+
contactDetails?: {
|
|
2640
|
+
fullAddress?: {
|
|
2641
|
+
streetAddress?: {
|
|
2642
|
+
number: string;
|
|
2643
|
+
name: string;
|
|
2644
|
+
apt: string;
|
|
2645
|
+
};
|
|
2646
|
+
subdivisions: {
|
|
2647
|
+
code: string;
|
|
2648
|
+
name: string;
|
|
2649
|
+
}[];
|
|
2650
|
+
};
|
|
2651
|
+
};
|
|
2652
|
+
additionalFields: {
|
|
2653
|
+
_id: string;
|
|
2654
|
+
valueType: ValueType;
|
|
2655
|
+
}[];
|
|
2656
|
+
status: BookingStatus;
|
|
2657
|
+
paymentStatus: PaymentStatus;
|
|
2658
|
+
selectedPaymentOption: SelectedPaymentOption;
|
|
2659
|
+
createdBy?: {
|
|
2660
|
+
anonymousVisitorId: string;
|
|
2661
|
+
memberId: string;
|
|
2662
|
+
wixUserId: string;
|
|
2663
|
+
appId: string;
|
|
2664
|
+
};
|
|
2665
|
+
};
|
|
2666
|
+
}[];
|
|
2667
|
+
bulkActionMetadata?: {
|
|
2668
|
+
totalSuccesses: number;
|
|
2669
|
+
totalFailures: number;
|
|
2670
|
+
undetailedFailures: number;
|
|
2671
|
+
};
|
|
2672
|
+
}
|
|
2091
2673
|
/**
|
|
2092
2674
|
* Creates a booking.
|
|
2093
2675
|
*
|
|
@@ -2136,7 +2718,7 @@ export interface V2UpdateNumberOfParticipantsResponse {
|
|
|
2136
2718
|
* @applicableIdentity MEMBER
|
|
2137
2719
|
* @applicableIdentity VISITOR
|
|
2138
2720
|
*/
|
|
2139
|
-
export declare function createBooking(booking: Booking, options?: CreateBookingOptions): Promise<CreateBookingResponse>;
|
|
2721
|
+
export declare function createBooking(booking: Booking, options?: CreateBookingOptions): Promise<CreateBookingResponse & CreateBookingResponseNonNullableFields>;
|
|
2140
2722
|
export interface CreateBookingOptions {
|
|
2141
2723
|
/** Information about a message to send to the customer. */
|
|
2142
2724
|
participantNotification?: ParticipantNotification;
|
|
@@ -2175,7 +2757,7 @@ export interface CreateBookingOptions {
|
|
|
2175
2757
|
* @applicableIdentity MEMBER
|
|
2176
2758
|
* @applicableIdentity VISITOR
|
|
2177
2759
|
*/
|
|
2178
|
-
export declare function bulkCreateBooking(createBookingsInfo: CreateBookingInfo[], options?: BulkCreateBookingOptions): Promise<BulkCreateBookingResponse>;
|
|
2760
|
+
export declare function bulkCreateBooking(createBookingsInfo: CreateBookingInfo[], options?: BulkCreateBookingOptions): Promise<BulkCreateBookingResponse & BulkCreateBookingResponseNonNullableFields>;
|
|
2179
2761
|
export interface BulkCreateBookingOptions {
|
|
2180
2762
|
/** Whether to return the created bookings entities. */
|
|
2181
2763
|
returnFullEntity?: boolean;
|
|
@@ -2218,7 +2800,6 @@ export interface BulkCreateBookingOptions {
|
|
|
2218
2800
|
* @public
|
|
2219
2801
|
* @documentationMaturity preview
|
|
2220
2802
|
* @requiredField bookingId
|
|
2221
|
-
* @requiredField options
|
|
2222
2803
|
* @requiredField options.revision
|
|
2223
2804
|
* @requiredField slot
|
|
2224
2805
|
* @param options - An object representing the available options for rescheduling a booking.
|
|
@@ -2226,7 +2807,7 @@ export interface BulkCreateBookingOptions {
|
|
|
2226
2807
|
* @applicableIdentity APP
|
|
2227
2808
|
* @applicableIdentity MEMBER
|
|
2228
2809
|
*/
|
|
2229
|
-
export declare function rescheduleBooking(bookingId: string, slot: V2Slot, options
|
|
2810
|
+
export declare function rescheduleBooking(bookingId: string, slot: V2Slot, options?: RescheduleBookingOptions): Promise<RescheduleBookingResponse & RescheduleBookingResponseNonNullableFields>;
|
|
2230
2811
|
export interface RescheduleBookingOptions extends RescheduleBookingRequestParticipantsInfoOneOf {
|
|
2231
2812
|
/**
|
|
2232
2813
|
* Revision number, which increments by 1 each time the booking is updated.
|
|
@@ -2298,7 +2879,7 @@ export interface RescheduleBookingOptions extends RescheduleBookingRequestPartic
|
|
|
2298
2879
|
* @permissionScope Manage Bookings
|
|
2299
2880
|
* @applicableIdentity APP
|
|
2300
2881
|
*/
|
|
2301
|
-
export declare function confirmBooking(bookingId: string, revision: string | null, options?: ConfirmBookingOptions): Promise<ConfirmBookingResponse>;
|
|
2882
|
+
export declare function confirmBooking(bookingId: string, revision: string | null, options?: ConfirmBookingOptions): Promise<ConfirmBookingResponse & ConfirmBookingResponseNonNullableFields>;
|
|
2302
2883
|
export interface ConfirmBookingOptions {
|
|
2303
2884
|
/**
|
|
2304
2885
|
* Information about whether to notify the customer about the confirmation and
|
|
@@ -2347,7 +2928,7 @@ export interface ConfirmBookingOptions {
|
|
|
2347
2928
|
* @permissionScope Manage Bookings
|
|
2348
2929
|
* @applicableIdentity APP
|
|
2349
2930
|
*/
|
|
2350
|
-
export declare function updateExtendedFields(_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse>;
|
|
2931
|
+
export declare function updateExtendedFields(_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse & UpdateExtendedFieldsResponseNonNullableFields>;
|
|
2351
2932
|
export interface UpdateExtendedFieldsOptions {
|
|
2352
2933
|
/** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
|
|
2353
2934
|
namespaceData: Record<string, any> | null;
|
|
@@ -2378,7 +2959,7 @@ export interface UpdateExtendedFieldsOptions {
|
|
|
2378
2959
|
* @permissionScope Manage Bookings
|
|
2379
2960
|
* @applicableIdentity APP
|
|
2380
2961
|
*/
|
|
2381
|
-
export declare function declineBooking(bookingId: string, revision: string | null, options?: DeclineBookingOptions): Promise<DeclineBookingResponse>;
|
|
2962
|
+
export declare function declineBooking(bookingId: string, revision: string | null, options?: DeclineBookingOptions): Promise<DeclineBookingResponse & DeclineBookingResponseNonNullableFields>;
|
|
2382
2963
|
export interface DeclineBookingOptions {
|
|
2383
2964
|
/**
|
|
2384
2965
|
* Information about whether to notify the customer about the decline and
|
|
@@ -2423,14 +3004,13 @@ export interface DeclineBookingOptions {
|
|
|
2423
3004
|
* @public
|
|
2424
3005
|
* @documentationMaturity preview
|
|
2425
3006
|
* @requiredField bookingId
|
|
2426
|
-
* @requiredField options
|
|
2427
3007
|
* @requiredField options.revision
|
|
2428
3008
|
* @param options - An object representing the available options for canceling a booking.
|
|
2429
3009
|
* @permissionScope Manage Bookings
|
|
2430
3010
|
* @applicableIdentity APP
|
|
2431
3011
|
* @applicableIdentity MEMBER
|
|
2432
3012
|
*/
|
|
2433
|
-
export declare function cancelBooking(bookingId: string, options
|
|
3013
|
+
export declare function cancelBooking(bookingId: string, options?: CancelBookingOptions): Promise<CancelBookingResponse & CancelBookingResponseNonNullableFields>;
|
|
2434
3014
|
export interface CancelBookingOptions {
|
|
2435
3015
|
/**
|
|
2436
3016
|
* Information about whether to notify the customer about the cancelation and
|
|
@@ -2471,12 +3051,11 @@ export interface CancelBookingOptions {
|
|
|
2471
3051
|
* @public
|
|
2472
3052
|
* @documentationMaturity preview
|
|
2473
3053
|
* @requiredField bookingId
|
|
2474
|
-
* @requiredField options
|
|
2475
3054
|
* @requiredField options.revision
|
|
2476
3055
|
* @permissionScope Manage Bookings
|
|
2477
3056
|
* @applicableIdentity APP
|
|
2478
3057
|
*/
|
|
2479
|
-
export declare function updateNumberOfParticipants(bookingId: string, options
|
|
3058
|
+
export declare function updateNumberOfParticipants(bookingId: string, options?: UpdateNumberOfParticipantsOptions): Promise<UpdateNumberOfParticipantsResponse & UpdateNumberOfParticipantsResponseNonNullableFields>;
|
|
2480
3059
|
export interface UpdateNumberOfParticipantsOptions extends UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
|
|
2481
3060
|
/**
|
|
2482
3061
|
* Revision number, which increments by 1 each time the booking is updated.
|
|
@@ -2510,7 +3089,7 @@ export interface UpdateNumberOfParticipantsOptions extends UpdateNumberOfPartici
|
|
|
2510
3089
|
* @permissionScope Manage Bookings
|
|
2511
3090
|
* @applicableIdentity APP
|
|
2512
3091
|
*/
|
|
2513
|
-
export declare function confirmOrDeclineBooking(bookingId: string, options?: ConfirmOrDeclineBookingOptions): Promise<ConfirmOrDeclineBookingResponse>;
|
|
3092
|
+
export declare function confirmOrDeclineBooking(bookingId: string, options?: ConfirmOrDeclineBookingOptions): Promise<ConfirmOrDeclineBookingResponse & ConfirmOrDeclineBookingResponseNonNullableFields>;
|
|
2514
3093
|
export interface ConfirmOrDeclineBookingOptions {
|
|
2515
3094
|
/** Current payment status of the booking. */
|
|
2516
3095
|
paymentStatus?: PaymentStatus;
|
|
@@ -2526,7 +3105,7 @@ export interface ConfirmOrDeclineBookingOptions {
|
|
|
2526
3105
|
* @permissionScope Manage Bookings
|
|
2527
3106
|
* @applicableIdentity APP
|
|
2528
3107
|
*/
|
|
2529
|
-
export declare function bulkConfirmOrDeclineBooking(details: BulkConfirmOrDeclineBookingRequestBookingDetails[], options?: BulkConfirmOrDeclineBookingOptions): Promise<BulkConfirmOrDeclineBookingResponse>;
|
|
3108
|
+
export declare function bulkConfirmOrDeclineBooking(details: BulkConfirmOrDeclineBookingRequestBookingDetails[], options?: BulkConfirmOrDeclineBookingOptions): Promise<BulkConfirmOrDeclineBookingResponse & BulkConfirmOrDeclineBookingResponseNonNullableFields>;
|
|
2530
3109
|
export interface BulkConfirmOrDeclineBookingOptions {
|
|
2531
3110
|
/**
|
|
2532
3111
|
* Whether to return the confirmed or declined bookings entities.
|