@wix/auto_sdk_bookings_booking-policies 1.0.1 → 1.0.3
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-v1-booking-policy-booking-policies.context.d.ts +1 -1
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.context.js +1 -1
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.types.d.ts +213 -48
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.types.js.map +1 -1
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.universal.d.ts +227 -52
- package/build/cjs/src/bookings-v1-booking-policy-booking-policies.universal.js.map +1 -1
- package/build/es/src/bookings-v1-booking-policy-booking-policies.context.d.ts +1 -1
- package/build/es/src/bookings-v1-booking-policy-booking-policies.context.js +1 -1
- package/build/es/src/bookings-v1-booking-policy-booking-policies.types.d.ts +213 -48
- package/build/es/src/bookings-v1-booking-policy-booking-policies.types.js.map +1 -1
- package/build/es/src/bookings-v1-booking-policy-booking-policies.universal.d.ts +227 -52
- package/build/es/src/bookings-v1-booking-policy-booking-policies.universal.js.map +1 -1
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.context.d.ts +1 -1
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.context.js +1 -1
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.types.d.ts +213 -48
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.types.js.map +1 -1
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.universal.d.ts +227 -52
- package/build/internal/cjs/src/bookings-v1-booking-policy-booking-policies.universal.js.map +1 -1
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.context.d.ts +1 -1
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.context.js +1 -1
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.types.d.ts +213 -48
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.types.js.map +1 -1
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.universal.d.ts +227 -52
- package/build/internal/es/src/bookings-v1-booking-policy-booking-policies.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
export interface BookingPolicy {
|
|
6
6
|
/**
|
|
7
7
|
* ID of the booking policy.
|
|
8
|
+
* @format GUID
|
|
8
9
|
* @readonly
|
|
9
10
|
*/
|
|
10
11
|
_id?: string | null;
|
|
@@ -25,7 +26,10 @@ export interface BookingPolicy {
|
|
|
25
26
|
* @readonly
|
|
26
27
|
*/
|
|
27
28
|
_updatedDate?: Date | null;
|
|
28
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Name of the booking policy.
|
|
31
|
+
* @maxLength 400
|
|
32
|
+
*/
|
|
29
33
|
name?: string | null;
|
|
30
34
|
/**
|
|
31
35
|
* Custom description for the booking policy and whether it's displayed to the
|
|
@@ -78,6 +82,7 @@ export interface PolicyDescription {
|
|
|
78
82
|
*
|
|
79
83
|
* Default: Empty
|
|
80
84
|
* Max length: 2500 characters
|
|
85
|
+
* @maxLength 2500
|
|
81
86
|
*/
|
|
82
87
|
description?: string;
|
|
83
88
|
}
|
|
@@ -96,6 +101,7 @@ export interface LimitEarlyBookingPolicy {
|
|
|
96
101
|
*
|
|
97
102
|
* Default: `10080` minutes (7 days)
|
|
98
103
|
* Min: `1` minute
|
|
104
|
+
* @min 1
|
|
99
105
|
*/
|
|
100
106
|
earliestBookingInMinutes?: number;
|
|
101
107
|
}
|
|
@@ -121,6 +127,7 @@ export interface LimitLateBookingPolicy {
|
|
|
121
127
|
*
|
|
122
128
|
* Default: `1440` minutes (1 day)
|
|
123
129
|
* Min: `1` minute
|
|
130
|
+
* @min 1
|
|
124
131
|
*/
|
|
125
132
|
latestBookingInMinutes?: number;
|
|
126
133
|
}
|
|
@@ -162,6 +169,7 @@ export interface CancellationPolicy {
|
|
|
162
169
|
*
|
|
163
170
|
* Default: `1440` minutes (1 day)
|
|
164
171
|
* Min: `1` minute
|
|
172
|
+
* @min 1
|
|
165
173
|
*/
|
|
166
174
|
latestCancellationInMinutes?: number;
|
|
167
175
|
}
|
|
@@ -187,6 +195,7 @@ export interface ReschedulePolicy {
|
|
|
187
195
|
*
|
|
188
196
|
* Default: `1440` minutes (1 day)
|
|
189
197
|
* Min: `1` minute
|
|
198
|
+
* @min 1
|
|
190
199
|
*/
|
|
191
200
|
latestRescheduleInMinutes?: number;
|
|
192
201
|
}
|
|
@@ -203,6 +212,7 @@ export interface WaitlistPolicy {
|
|
|
203
212
|
*
|
|
204
213
|
* Default: `10` spots
|
|
205
214
|
* Min: `1` spot
|
|
215
|
+
* @min 1
|
|
206
216
|
*/
|
|
207
217
|
capacity?: number;
|
|
208
218
|
/**
|
|
@@ -212,6 +222,7 @@ export interface WaitlistPolicy {
|
|
|
212
222
|
*
|
|
213
223
|
* Default: `10` minutes
|
|
214
224
|
* Min: `1` minute
|
|
225
|
+
* @min 1
|
|
215
226
|
*/
|
|
216
227
|
reservationTimeInMinutes?: number;
|
|
217
228
|
}
|
|
@@ -222,6 +233,7 @@ export interface ParticipantsPolicy {
|
|
|
222
233
|
*
|
|
223
234
|
* Default: `1` participant
|
|
224
235
|
* Min: `1` participant
|
|
236
|
+
* @min 1
|
|
225
237
|
*/
|
|
226
238
|
maxParticipantsPerBooking?: number;
|
|
227
239
|
}
|
|
@@ -254,6 +266,7 @@ export interface CancellationFeePolicy {
|
|
|
254
266
|
/**
|
|
255
267
|
* Time windows relative to the session start during which customers can cancel
|
|
256
268
|
* their booking. Each window includes details about the fee for canceling within it.
|
|
269
|
+
* @maxSize 2
|
|
257
270
|
*/
|
|
258
271
|
cancellationWindows?: CancellationWindow[];
|
|
259
272
|
/**
|
|
@@ -269,14 +282,22 @@ export interface CancellationFeePolicy {
|
|
|
269
282
|
* Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
|
|
270
283
|
*/
|
|
271
284
|
export interface Money {
|
|
272
|
-
/**
|
|
285
|
+
/**
|
|
286
|
+
* Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative.
|
|
287
|
+
* @format DECIMAL_VALUE
|
|
288
|
+
* @decimalValue options - {gt:0,maxScale:2}
|
|
289
|
+
*/
|
|
273
290
|
value?: string;
|
|
274
291
|
/**
|
|
275
292
|
* Currency code. Must be valid ISO 4217 currency code (e.g., USD).
|
|
293
|
+
* @format CURRENCY
|
|
276
294
|
* @readonly
|
|
277
295
|
*/
|
|
278
296
|
currency?: string;
|
|
279
|
-
/**
|
|
297
|
+
/**
|
|
298
|
+
* Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative.
|
|
299
|
+
* @maxLength 50
|
|
300
|
+
*/
|
|
280
301
|
formattedValue?: string | null;
|
|
281
302
|
}
|
|
282
303
|
export interface CancellationWindow extends CancellationWindowFeeOneOf {
|
|
@@ -288,11 +309,13 @@ export interface CancellationWindow extends CancellationWindowFeeOneOf {
|
|
|
288
309
|
*
|
|
289
310
|
* Min: `0.01` percent
|
|
290
311
|
* Max: `100` percent
|
|
312
|
+
* @decimalValue options - {gt:0,lte:100,maxScale:2}
|
|
291
313
|
*/
|
|
292
314
|
percentage?: string;
|
|
293
315
|
/**
|
|
294
316
|
* Start of the cancellation window in minutes before the session start. For
|
|
295
317
|
* courses, this refers to the start of the first course session.
|
|
318
|
+
* @min 1
|
|
296
319
|
*/
|
|
297
320
|
startInMinutes?: number | null;
|
|
298
321
|
}
|
|
@@ -306,6 +329,7 @@ export interface CancellationWindowFeeOneOf {
|
|
|
306
329
|
*
|
|
307
330
|
* Min: `0.01` percent
|
|
308
331
|
* Max: `100` percent
|
|
332
|
+
* @decimalValue options - {gt:0,lte:100,maxScale:2}
|
|
309
333
|
*/
|
|
310
334
|
percentage?: string;
|
|
311
335
|
}
|
|
@@ -351,7 +375,10 @@ export interface CreateBookingPolicyResponse {
|
|
|
351
375
|
bookingPolicy?: BookingPolicy;
|
|
352
376
|
}
|
|
353
377
|
export interface GetBookingPolicyRequest {
|
|
354
|
-
/**
|
|
378
|
+
/**
|
|
379
|
+
* ID of the booking policy to retrieve.
|
|
380
|
+
* @format GUID
|
|
381
|
+
*/
|
|
355
382
|
bookingPolicyId: string;
|
|
356
383
|
}
|
|
357
384
|
export interface GetBookingPolicyResponse {
|
|
@@ -359,7 +386,11 @@ export interface GetBookingPolicyResponse {
|
|
|
359
386
|
bookingPolicy?: BookingPolicy;
|
|
360
387
|
}
|
|
361
388
|
export interface GetStrictestBookingPolicyRequest {
|
|
362
|
-
/**
|
|
389
|
+
/**
|
|
390
|
+
* IDs of the booking policies for which to retrieve the strictest rules for.
|
|
391
|
+
* @format GUID
|
|
392
|
+
* @maxSize 100
|
|
393
|
+
*/
|
|
363
394
|
bookingPolicyIds: string[];
|
|
364
395
|
}
|
|
365
396
|
export interface GetStrictestBookingPolicyResponse {
|
|
@@ -380,7 +411,10 @@ export interface UpdateBookingPolicyResponse {
|
|
|
380
411
|
bookingPolicy?: BookingPolicy;
|
|
381
412
|
}
|
|
382
413
|
export interface SetDefaultBookingPolicyRequest {
|
|
383
|
-
/**
|
|
414
|
+
/**
|
|
415
|
+
* ID of the booking policy that's set as default.
|
|
416
|
+
* @format GUID
|
|
417
|
+
*/
|
|
384
418
|
bookingPolicyId: string;
|
|
385
419
|
}
|
|
386
420
|
export interface SetDefaultBookingPolicyResponse {
|
|
@@ -393,7 +427,10 @@ export interface SetDefaultBookingPolicyResponse {
|
|
|
393
427
|
previousDefaultBookingPolicy?: BookingPolicy;
|
|
394
428
|
}
|
|
395
429
|
export interface DeleteBookingPolicyRequest {
|
|
396
|
-
/**
|
|
430
|
+
/**
|
|
431
|
+
* ID of the booking policy to delete.
|
|
432
|
+
* @format GUID
|
|
433
|
+
*/
|
|
397
434
|
bookingPolicyId: string;
|
|
398
435
|
}
|
|
399
436
|
export interface DeleteBookingPolicyResponse {
|
|
@@ -421,6 +458,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
421
458
|
/**
|
|
422
459
|
* Sort object in the following format:
|
|
423
460
|
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
461
|
+
* @maxSize 10
|
|
424
462
|
*/
|
|
425
463
|
sort?: Sorting[];
|
|
426
464
|
}
|
|
@@ -430,7 +468,10 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
430
468
|
cursorPaging?: CursorPaging;
|
|
431
469
|
}
|
|
432
470
|
export interface Sorting {
|
|
433
|
-
/**
|
|
471
|
+
/**
|
|
472
|
+
* Name of the field to sort by.
|
|
473
|
+
* @maxLength 512
|
|
474
|
+
*/
|
|
434
475
|
fieldName?: string;
|
|
435
476
|
/** Sort order. */
|
|
436
477
|
order?: SortOrder;
|
|
@@ -440,7 +481,10 @@ export declare enum SortOrder {
|
|
|
440
481
|
DESC = "DESC"
|
|
441
482
|
}
|
|
442
483
|
export interface CursorPaging {
|
|
443
|
-
/**
|
|
484
|
+
/**
|
|
485
|
+
* Number of items to load.
|
|
486
|
+
* @max 100
|
|
487
|
+
*/
|
|
444
488
|
limit?: number | null;
|
|
445
489
|
/**
|
|
446
490
|
* Pointer to the next or previous page in the list of results.
|
|
@@ -448,6 +492,7 @@ export interface CursorPaging {
|
|
|
448
492
|
* You can get the relevant cursor token
|
|
449
493
|
* from the `pagingMetadata` object in the previous call's response.
|
|
450
494
|
* Not relevant for the first request.
|
|
495
|
+
* @maxLength 16000
|
|
451
496
|
*/
|
|
452
497
|
cursor?: string | null;
|
|
453
498
|
}
|
|
@@ -470,9 +515,15 @@ export interface CursorPagingMetadata {
|
|
|
470
515
|
hasNext?: boolean | null;
|
|
471
516
|
}
|
|
472
517
|
export interface Cursors {
|
|
473
|
-
/**
|
|
518
|
+
/**
|
|
519
|
+
* Cursor pointing to next page in the list of results.
|
|
520
|
+
* @maxLength 16000
|
|
521
|
+
*/
|
|
474
522
|
next?: string | null;
|
|
475
|
-
/**
|
|
523
|
+
/**
|
|
524
|
+
* Cursor pointing to previous page in the list of results.
|
|
525
|
+
* @maxLength 16000
|
|
526
|
+
*/
|
|
476
527
|
prev?: string | null;
|
|
477
528
|
}
|
|
478
529
|
export interface CountBookingPoliciesRequest {
|
|
@@ -582,7 +633,10 @@ export interface SitePropertiesNotification {
|
|
|
582
633
|
metasiteId?: string;
|
|
583
634
|
/** The actual update event. */
|
|
584
635
|
event?: SitePropertiesEvent;
|
|
585
|
-
/**
|
|
636
|
+
/**
|
|
637
|
+
* A convenience set of mappings from the MetaSite ID to its constituent services.
|
|
638
|
+
* @maxSize 500
|
|
639
|
+
*/
|
|
586
640
|
translations?: Translation[];
|
|
587
641
|
/** Context of the notification */
|
|
588
642
|
changeContext?: ChangeContext;
|
|
@@ -655,7 +709,10 @@ export interface Properties {
|
|
|
655
709
|
export interface Categories {
|
|
656
710
|
/** Primary site category. */
|
|
657
711
|
primary?: string;
|
|
658
|
-
/**
|
|
712
|
+
/**
|
|
713
|
+
* Secondary site category.
|
|
714
|
+
* @maxSize 50
|
|
715
|
+
*/
|
|
659
716
|
secondary?: string[];
|
|
660
717
|
/** Business Term Id */
|
|
661
718
|
businessTermId?: string | null;
|
|
@@ -675,7 +732,10 @@ export interface Address {
|
|
|
675
732
|
country?: string;
|
|
676
733
|
/** State. */
|
|
677
734
|
state?: string;
|
|
678
|
-
/**
|
|
735
|
+
/**
|
|
736
|
+
* Zip or postal code.
|
|
737
|
+
* @maxLength 20
|
|
738
|
+
*/
|
|
679
739
|
zip?: string;
|
|
680
740
|
/** Extra information to be displayed in the address. */
|
|
681
741
|
hint?: AddressHint;
|
|
@@ -716,9 +776,15 @@ export interface GeoCoordinates {
|
|
|
716
776
|
}
|
|
717
777
|
/** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */
|
|
718
778
|
export interface BusinessSchedule {
|
|
719
|
-
/**
|
|
779
|
+
/**
|
|
780
|
+
* Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods.
|
|
781
|
+
* @maxSize 100
|
|
782
|
+
*/
|
|
720
783
|
periods?: TimePeriod[];
|
|
721
|
-
/**
|
|
784
|
+
/**
|
|
785
|
+
* Exceptions to the business's regular hours. The business can be open or closed during the exception.
|
|
786
|
+
* @maxSize 100
|
|
787
|
+
*/
|
|
722
788
|
specialHourPeriod?: SpecialHourPeriod[];
|
|
723
789
|
}
|
|
724
790
|
/** Weekly recurring time periods when the business is regularly open or the service is available. */
|
|
@@ -766,7 +832,10 @@ export interface SpecialHourPeriod {
|
|
|
766
832
|
comment?: string;
|
|
767
833
|
}
|
|
768
834
|
export interface Multilingual {
|
|
769
|
-
/**
|
|
835
|
+
/**
|
|
836
|
+
* Supported languages list.
|
|
837
|
+
* @maxSize 200
|
|
838
|
+
*/
|
|
770
839
|
supportedLanguages?: SupportedLanguage[];
|
|
771
840
|
/** Whether to redirect to user language. */
|
|
772
841
|
autoRedirect?: boolean;
|
|
@@ -867,7 +936,10 @@ export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
|
867
936
|
studioAssigned?: StudioAssigned;
|
|
868
937
|
/** Emitted when Studio is detached. */
|
|
869
938
|
studioUnassigned?: StudioUnassigned;
|
|
870
|
-
/**
|
|
939
|
+
/**
|
|
940
|
+
* A meta site id.
|
|
941
|
+
* @format GUID
|
|
942
|
+
*/
|
|
871
943
|
metaSiteId?: string;
|
|
872
944
|
/** A meta site version. Monotonically increasing. */
|
|
873
945
|
version?: string;
|
|
@@ -876,6 +948,7 @@ export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
|
876
948
|
/**
|
|
877
949
|
* TODO(meta-site): Change validation once validations are disabled for consumers
|
|
878
950
|
* More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
|
|
951
|
+
* @maxSize 4000
|
|
879
952
|
*/
|
|
880
953
|
assets?: Asset[];
|
|
881
954
|
}
|
|
@@ -913,9 +986,15 @@ export interface MetaSiteSpecialEventPayloadOneOf {
|
|
|
913
986
|
studioUnassigned?: StudioUnassigned;
|
|
914
987
|
}
|
|
915
988
|
export interface Asset {
|
|
916
|
-
/**
|
|
989
|
+
/**
|
|
990
|
+
* An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).
|
|
991
|
+
* @maxLength 36
|
|
992
|
+
*/
|
|
917
993
|
appDefId?: string;
|
|
918
|
-
/**
|
|
994
|
+
/**
|
|
995
|
+
* An instance id. For legacy reasons may be UUID or a string.
|
|
996
|
+
* @maxLength 200
|
|
997
|
+
*/
|
|
919
998
|
instanceId?: string;
|
|
920
999
|
/** An application state. */
|
|
921
1000
|
state?: State;
|
|
@@ -928,9 +1007,15 @@ export declare enum State {
|
|
|
928
1007
|
DEMO = "DEMO"
|
|
929
1008
|
}
|
|
930
1009
|
export interface SiteCreated {
|
|
931
|
-
/**
|
|
1010
|
+
/**
|
|
1011
|
+
* A template identifier (empty if not created from a template).
|
|
1012
|
+
* @maxLength 36
|
|
1013
|
+
*/
|
|
932
1014
|
originTemplateId?: string;
|
|
933
|
-
/**
|
|
1015
|
+
/**
|
|
1016
|
+
* An account id of the owner.
|
|
1017
|
+
* @format GUID
|
|
1018
|
+
*/
|
|
934
1019
|
ownerId?: string;
|
|
935
1020
|
/** A context in which meta site was created. */
|
|
936
1021
|
context?: SiteCreatedContext;
|
|
@@ -939,9 +1024,13 @@ export interface SiteCreated {
|
|
|
939
1024
|
*
|
|
940
1025
|
* In case of a creation from a template it's a template id.
|
|
941
1026
|
* In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
|
|
1027
|
+
* @format GUID
|
|
942
1028
|
*/
|
|
943
1029
|
originMetaSiteId?: string | null;
|
|
944
|
-
/**
|
|
1030
|
+
/**
|
|
1031
|
+
* A meta site name (URL slug).
|
|
1032
|
+
* @maxLength 20
|
|
1033
|
+
*/
|
|
945
1034
|
siteName?: string;
|
|
946
1035
|
/** A namespace. */
|
|
947
1036
|
namespace?: Namespace;
|
|
@@ -1038,9 +1127,15 @@ export declare enum Namespace {
|
|
|
1038
1127
|
}
|
|
1039
1128
|
/** Site transferred to another user. */
|
|
1040
1129
|
export interface SiteTransferred {
|
|
1041
|
-
/**
|
|
1130
|
+
/**
|
|
1131
|
+
* A previous owner id (user that transfers meta site).
|
|
1132
|
+
* @format GUID
|
|
1133
|
+
*/
|
|
1042
1134
|
oldOwnerId?: string;
|
|
1043
|
-
/**
|
|
1135
|
+
/**
|
|
1136
|
+
* A new owner id (user that accepts meta site).
|
|
1137
|
+
* @format GUID
|
|
1138
|
+
*/
|
|
1044
1139
|
newOwnerId?: string;
|
|
1045
1140
|
}
|
|
1046
1141
|
/** Soft deletion of the meta site. Could be restored. */
|
|
@@ -1053,9 +1148,15 @@ export interface DeleteContext {
|
|
|
1053
1148
|
dateDeleted?: Date | null;
|
|
1054
1149
|
/** A status. */
|
|
1055
1150
|
deleteStatus?: DeleteStatus;
|
|
1056
|
-
/**
|
|
1151
|
+
/**
|
|
1152
|
+
* A reason (flow).
|
|
1153
|
+
* @maxLength 255
|
|
1154
|
+
*/
|
|
1057
1155
|
deleteOrigin?: string;
|
|
1058
|
-
/**
|
|
1156
|
+
/**
|
|
1157
|
+
* A service that deleted it.
|
|
1158
|
+
* @maxLength 255
|
|
1159
|
+
*/
|
|
1059
1160
|
initiatorId?: string | null;
|
|
1060
1161
|
}
|
|
1061
1162
|
export declare enum DeleteStatus {
|
|
@@ -1071,7 +1172,11 @@ export interface SiteUndeleted {
|
|
|
1071
1172
|
export interface SitePublished {
|
|
1072
1173
|
}
|
|
1073
1174
|
export interface SiteUnpublished {
|
|
1074
|
-
/**
|
|
1175
|
+
/**
|
|
1176
|
+
* A list of URLs previously associated with the meta site.
|
|
1177
|
+
* @maxLength 4000
|
|
1178
|
+
* @maxSize 10000
|
|
1179
|
+
*/
|
|
1075
1180
|
urls?: string[];
|
|
1076
1181
|
}
|
|
1077
1182
|
export interface SiteMarkedAsTemplate {
|
|
@@ -1094,30 +1199,60 @@ export interface SiteMarkedAsWixSite {
|
|
|
1094
1199
|
* To ensure this, the TPA on the template gets a new instance_id.
|
|
1095
1200
|
*/
|
|
1096
1201
|
export interface ServiceProvisioned {
|
|
1097
|
-
/**
|
|
1202
|
+
/**
|
|
1203
|
+
* Either UUID or EmbeddedServiceType.
|
|
1204
|
+
* @maxLength 36
|
|
1205
|
+
*/
|
|
1098
1206
|
appDefId?: string;
|
|
1099
|
-
/**
|
|
1207
|
+
/**
|
|
1208
|
+
* Not only UUID. Something here could be something weird.
|
|
1209
|
+
* @maxLength 36
|
|
1210
|
+
*/
|
|
1100
1211
|
instanceId?: string;
|
|
1101
|
-
/**
|
|
1212
|
+
/**
|
|
1213
|
+
* An instance id from which this instance is originated.
|
|
1214
|
+
* @maxLength 36
|
|
1215
|
+
*/
|
|
1102
1216
|
originInstanceId?: string;
|
|
1103
|
-
/**
|
|
1217
|
+
/**
|
|
1218
|
+
* A version.
|
|
1219
|
+
* @maxLength 500
|
|
1220
|
+
*/
|
|
1104
1221
|
version?: string | null;
|
|
1105
|
-
/**
|
|
1222
|
+
/**
|
|
1223
|
+
* The origin meta site id
|
|
1224
|
+
* @format GUID
|
|
1225
|
+
*/
|
|
1106
1226
|
originMetaSiteId?: string | null;
|
|
1107
1227
|
}
|
|
1108
1228
|
export interface ServiceRemoved {
|
|
1109
|
-
/**
|
|
1229
|
+
/**
|
|
1230
|
+
* Either UUID or EmbeddedServiceType.
|
|
1231
|
+
* @maxLength 36
|
|
1232
|
+
*/
|
|
1110
1233
|
appDefId?: string;
|
|
1111
|
-
/**
|
|
1234
|
+
/**
|
|
1235
|
+
* Not only UUID. Something here could be something weird.
|
|
1236
|
+
* @maxLength 36
|
|
1237
|
+
*/
|
|
1112
1238
|
instanceId?: string;
|
|
1113
|
-
/**
|
|
1239
|
+
/**
|
|
1240
|
+
* A version.
|
|
1241
|
+
* @maxLength 500
|
|
1242
|
+
*/
|
|
1114
1243
|
version?: string | null;
|
|
1115
1244
|
}
|
|
1116
1245
|
/** Rename of the site. Meaning, free public url has been changed as well. */
|
|
1117
1246
|
export interface SiteRenamed {
|
|
1118
|
-
/**
|
|
1247
|
+
/**
|
|
1248
|
+
* A new meta site name (URL slug).
|
|
1249
|
+
* @maxLength 20
|
|
1250
|
+
*/
|
|
1119
1251
|
newSiteName?: string;
|
|
1120
|
-
/**
|
|
1252
|
+
/**
|
|
1253
|
+
* A previous meta site name (URL slug).
|
|
1254
|
+
* @maxLength 255
|
|
1255
|
+
*/
|
|
1121
1256
|
oldSiteName?: string;
|
|
1122
1257
|
}
|
|
1123
1258
|
/**
|
|
@@ -1142,9 +1277,15 @@ export interface StudioAssigned {
|
|
|
1142
1277
|
export interface StudioUnassigned {
|
|
1143
1278
|
}
|
|
1144
1279
|
export interface MessageEnvelope {
|
|
1145
|
-
/**
|
|
1280
|
+
/**
|
|
1281
|
+
* App instance ID.
|
|
1282
|
+
* @format GUID
|
|
1283
|
+
*/
|
|
1146
1284
|
instanceId?: string | null;
|
|
1147
|
-
/**
|
|
1285
|
+
/**
|
|
1286
|
+
* Event type.
|
|
1287
|
+
* @maxLength 150
|
|
1288
|
+
*/
|
|
1148
1289
|
eventType?: string;
|
|
1149
1290
|
/** The identification type and identity data. */
|
|
1150
1291
|
identity?: IdentificationData;
|
|
@@ -1152,26 +1293,50 @@ export interface MessageEnvelope {
|
|
|
1152
1293
|
data?: string;
|
|
1153
1294
|
}
|
|
1154
1295
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1155
|
-
/**
|
|
1296
|
+
/**
|
|
1297
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1298
|
+
* @format GUID
|
|
1299
|
+
*/
|
|
1156
1300
|
anonymousVisitorId?: string;
|
|
1157
|
-
/**
|
|
1301
|
+
/**
|
|
1302
|
+
* ID of a site visitor that has logged in to the site.
|
|
1303
|
+
* @format GUID
|
|
1304
|
+
*/
|
|
1158
1305
|
memberId?: string;
|
|
1159
|
-
/**
|
|
1306
|
+
/**
|
|
1307
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1308
|
+
* @format GUID
|
|
1309
|
+
*/
|
|
1160
1310
|
wixUserId?: string;
|
|
1161
|
-
/**
|
|
1311
|
+
/**
|
|
1312
|
+
* ID of an app.
|
|
1313
|
+
* @format GUID
|
|
1314
|
+
*/
|
|
1162
1315
|
appId?: string;
|
|
1163
1316
|
/** @readonly */
|
|
1164
1317
|
identityType?: WebhookIdentityType;
|
|
1165
1318
|
}
|
|
1166
1319
|
/** @oneof */
|
|
1167
1320
|
export interface IdentificationDataIdOneOf {
|
|
1168
|
-
/**
|
|
1321
|
+
/**
|
|
1322
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1323
|
+
* @format GUID
|
|
1324
|
+
*/
|
|
1169
1325
|
anonymousVisitorId?: string;
|
|
1170
|
-
/**
|
|
1326
|
+
/**
|
|
1327
|
+
* ID of a site visitor that has logged in to the site.
|
|
1328
|
+
* @format GUID
|
|
1329
|
+
*/
|
|
1171
1330
|
memberId?: string;
|
|
1172
|
-
/**
|
|
1331
|
+
/**
|
|
1332
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1333
|
+
* @format GUID
|
|
1334
|
+
*/
|
|
1173
1335
|
wixUserId?: string;
|
|
1174
|
-
/**
|
|
1336
|
+
/**
|
|
1337
|
+
* ID of an app.
|
|
1338
|
+
* @format GUID
|
|
1339
|
+
*/
|
|
1175
1340
|
appId?: string;
|
|
1176
1341
|
}
|
|
1177
1342
|
export declare enum WebhookIdentityType {
|
|
@@ -1270,9 +1435,15 @@ export interface CountBookingPoliciesResponseNonNullableFields {
|
|
|
1270
1435
|
count: number;
|
|
1271
1436
|
}
|
|
1272
1437
|
export interface BaseEventMetadata {
|
|
1273
|
-
/**
|
|
1438
|
+
/**
|
|
1439
|
+
* App instance ID.
|
|
1440
|
+
* @format GUID
|
|
1441
|
+
*/
|
|
1274
1442
|
instanceId?: string | null;
|
|
1275
|
-
/**
|
|
1443
|
+
/**
|
|
1444
|
+
* Event type.
|
|
1445
|
+
* @maxLength 150
|
|
1446
|
+
*/
|
|
1276
1447
|
eventType?: string;
|
|
1277
1448
|
/** The identification type and identity data. */
|
|
1278
1449
|
identity?: IdentificationData;
|
|
@@ -1345,7 +1516,7 @@ export interface BookingPolicyDefaultBookingPolicySetEnvelope {
|
|
|
1345
1516
|
}
|
|
1346
1517
|
/**
|
|
1347
1518
|
* Triggered when the site's default policy changes. Then,
|
|
1348
|
-
*
|
|
1519
|
+
* _Booking Policy Updated_
|
|
1349
1520
|
* ([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))
|
|
1350
1521
|
* is also triggered both for the new and the previous default policy.
|
|
1351
1522
|
* @permissionScope Read Bookings - Public Data
|
|
@@ -1513,6 +1684,7 @@ export declare function updateBookingPolicy(_id: string | null, bookingPolicy: U
|
|
|
1513
1684
|
export interface UpdateBookingPolicy {
|
|
1514
1685
|
/**
|
|
1515
1686
|
* ID of the booking policy.
|
|
1687
|
+
* @format GUID
|
|
1516
1688
|
* @readonly
|
|
1517
1689
|
*/
|
|
1518
1690
|
_id?: string | null;
|
|
@@ -1533,7 +1705,10 @@ export interface UpdateBookingPolicy {
|
|
|
1533
1705
|
* @readonly
|
|
1534
1706
|
*/
|
|
1535
1707
|
_updatedDate?: Date | null;
|
|
1536
|
-
/**
|
|
1708
|
+
/**
|
|
1709
|
+
* Name of the booking policy.
|
|
1710
|
+
* @maxLength 400
|
|
1711
|
+
*/
|
|
1537
1712
|
name?: string | null;
|
|
1538
1713
|
/**
|
|
1539
1714
|
* Custom description for the booking policy and whether it's displayed to the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-v1-booking-policy-booking-policies.universal.js","sourceRoot":"","sources":["../../../src/bookings-v1-booking-policy-booking-policies.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,oCAAoC,MAAM,uDAAuD,CAAC;
|
|
1
|
+
{"version":3,"file":"bookings-v1-booking-policy-booking-policies.universal.js","sourceRoot":"","sources":["../../../src/bookings-v1-booking-policy-booking-policies.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,oCAAoC,MAAM,uDAAuD,CAAC;AAigB9G,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAiTD,gGAAgG;AAChG,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,gCAAe,CAAA;IACf,oCAAmB,CAAA;AACrB,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AA4CD,uCAAuC;AACvC,MAAM,CAAN,IAAY,SAQX;AARD,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;IACrB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,8BAAiB,CAAA;AACnB,CAAC,EARW,SAAS,KAAT,SAAS,QAQpB;AAyCD,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,+CAA2B,CAAA;IAC3B,2CAAuB,CAAA;IACvB,iD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;SAC/B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
|
@@ -19,7 +19,7 @@ export declare const countBookingPolicies: MaybeContext<BuildRESTFunction<typeof
|
|
|
19
19
|
export declare const onBookingPolicyCreated: ReturnType<typeof createEventModule<typeof publicOnBookingPolicyCreated>>;
|
|
20
20
|
/**
|
|
21
21
|
* Triggered when the site's default policy changes. Then,
|
|
22
|
-
*
|
|
22
|
+
* _Booking Policy Updated_
|
|
23
23
|
* ([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))
|
|
24
24
|
* is also triggered both for the new and the previous default policy.
|
|
25
25
|
*/
|
|
@@ -22,7 +22,7 @@ exports.countBookingPolicies = (0, rest_modules_1.createRESTModule)(bookings_v1_
|
|
|
22
22
|
exports.onBookingPolicyCreated = (0, event_definition_modules_1.createEventModule)(bookings_v1_booking_policy_booking_policies_public_js_2.onBookingPolicyCreated);
|
|
23
23
|
/**
|
|
24
24
|
* Triggered when the site's default policy changes. Then,
|
|
25
|
-
*
|
|
25
|
+
* _Booking Policy Updated_
|
|
26
26
|
* ([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))
|
|
27
27
|
* is also triggered both for the new and the previous default policy.
|
|
28
28
|
*/
|