@wix/auto_sdk_bookings_booking-policies 1.0.2 → 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.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 +226 -51
- 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.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 +226 -51
- 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.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 +226 -51
- 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.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 +226 -51
- 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 {
|
|
@@ -584,7 +635,10 @@ export interface SitePropertiesNotification {
|
|
|
584
635
|
metasiteId?: string;
|
|
585
636
|
/** The actual update event. */
|
|
586
637
|
event?: SitePropertiesEvent;
|
|
587
|
-
/**
|
|
638
|
+
/**
|
|
639
|
+
* A convenience set of mappings from the MetaSite ID to its constituent services.
|
|
640
|
+
* @maxSize 500
|
|
641
|
+
*/
|
|
588
642
|
translations?: Translation[];
|
|
589
643
|
/** Context of the notification */
|
|
590
644
|
changeContext?: ChangeContext;
|
|
@@ -657,7 +711,10 @@ export interface Properties {
|
|
|
657
711
|
export interface Categories {
|
|
658
712
|
/** Primary site category. */
|
|
659
713
|
primary?: string;
|
|
660
|
-
/**
|
|
714
|
+
/**
|
|
715
|
+
* Secondary site category.
|
|
716
|
+
* @maxSize 50
|
|
717
|
+
*/
|
|
661
718
|
secondary?: string[];
|
|
662
719
|
/** Business Term Id */
|
|
663
720
|
businessTermId?: string | null;
|
|
@@ -677,7 +734,10 @@ export interface Address {
|
|
|
677
734
|
country?: string;
|
|
678
735
|
/** State. */
|
|
679
736
|
state?: string;
|
|
680
|
-
/**
|
|
737
|
+
/**
|
|
738
|
+
* Zip or postal code.
|
|
739
|
+
* @maxLength 20
|
|
740
|
+
*/
|
|
681
741
|
zip?: string;
|
|
682
742
|
/** Extra information to be displayed in the address. */
|
|
683
743
|
hint?: AddressHint;
|
|
@@ -718,9 +778,15 @@ export interface GeoCoordinates {
|
|
|
718
778
|
}
|
|
719
779
|
/** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */
|
|
720
780
|
export interface BusinessSchedule {
|
|
721
|
-
/**
|
|
781
|
+
/**
|
|
782
|
+
* Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods.
|
|
783
|
+
* @maxSize 100
|
|
784
|
+
*/
|
|
722
785
|
periods?: TimePeriod[];
|
|
723
|
-
/**
|
|
786
|
+
/**
|
|
787
|
+
* Exceptions to the business's regular hours. The business can be open or closed during the exception.
|
|
788
|
+
* @maxSize 100
|
|
789
|
+
*/
|
|
724
790
|
specialHourPeriod?: SpecialHourPeriod[];
|
|
725
791
|
}
|
|
726
792
|
/** Weekly recurring time periods when the business is regularly open or the service is available. */
|
|
@@ -768,7 +834,10 @@ export interface SpecialHourPeriod {
|
|
|
768
834
|
comment?: string;
|
|
769
835
|
}
|
|
770
836
|
export interface Multilingual {
|
|
771
|
-
/**
|
|
837
|
+
/**
|
|
838
|
+
* Supported languages list.
|
|
839
|
+
* @maxSize 200
|
|
840
|
+
*/
|
|
772
841
|
supportedLanguages?: SupportedLanguage[];
|
|
773
842
|
/** Whether to redirect to user language. */
|
|
774
843
|
autoRedirect?: boolean;
|
|
@@ -869,7 +938,10 @@ export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
|
869
938
|
studioAssigned?: StudioAssigned;
|
|
870
939
|
/** Emitted when Studio is detached. */
|
|
871
940
|
studioUnassigned?: StudioUnassigned;
|
|
872
|
-
/**
|
|
941
|
+
/**
|
|
942
|
+
* A meta site id.
|
|
943
|
+
* @format GUID
|
|
944
|
+
*/
|
|
873
945
|
metaSiteId?: string;
|
|
874
946
|
/** A meta site version. Monotonically increasing. */
|
|
875
947
|
version?: string;
|
|
@@ -878,6 +950,7 @@ export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
|
878
950
|
/**
|
|
879
951
|
* TODO(meta-site): Change validation once validations are disabled for consumers
|
|
880
952
|
* More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
|
|
953
|
+
* @maxSize 4000
|
|
881
954
|
*/
|
|
882
955
|
assets?: Asset[];
|
|
883
956
|
}
|
|
@@ -915,9 +988,15 @@ export interface MetaSiteSpecialEventPayloadOneOf {
|
|
|
915
988
|
studioUnassigned?: StudioUnassigned;
|
|
916
989
|
}
|
|
917
990
|
export interface Asset {
|
|
918
|
-
/**
|
|
991
|
+
/**
|
|
992
|
+
* An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).
|
|
993
|
+
* @maxLength 36
|
|
994
|
+
*/
|
|
919
995
|
appDefId?: string;
|
|
920
|
-
/**
|
|
996
|
+
/**
|
|
997
|
+
* An instance id. For legacy reasons may be UUID or a string.
|
|
998
|
+
* @maxLength 200
|
|
999
|
+
*/
|
|
921
1000
|
instanceId?: string;
|
|
922
1001
|
/** An application state. */
|
|
923
1002
|
state?: State;
|
|
@@ -930,9 +1009,15 @@ export declare enum State {
|
|
|
930
1009
|
DEMO = "DEMO"
|
|
931
1010
|
}
|
|
932
1011
|
export interface SiteCreated {
|
|
933
|
-
/**
|
|
1012
|
+
/**
|
|
1013
|
+
* A template identifier (empty if not created from a template).
|
|
1014
|
+
* @maxLength 36
|
|
1015
|
+
*/
|
|
934
1016
|
originTemplateId?: string;
|
|
935
|
-
/**
|
|
1017
|
+
/**
|
|
1018
|
+
* An account id of the owner.
|
|
1019
|
+
* @format GUID
|
|
1020
|
+
*/
|
|
936
1021
|
ownerId?: string;
|
|
937
1022
|
/** A context in which meta site was created. */
|
|
938
1023
|
context?: SiteCreatedContext;
|
|
@@ -941,9 +1026,13 @@ export interface SiteCreated {
|
|
|
941
1026
|
*
|
|
942
1027
|
* In case of a creation from a template it's a template id.
|
|
943
1028
|
* In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
|
|
1029
|
+
* @format GUID
|
|
944
1030
|
*/
|
|
945
1031
|
originMetaSiteId?: string | null;
|
|
946
|
-
/**
|
|
1032
|
+
/**
|
|
1033
|
+
* A meta site name (URL slug).
|
|
1034
|
+
* @maxLength 20
|
|
1035
|
+
*/
|
|
947
1036
|
siteName?: string;
|
|
948
1037
|
/** A namespace. */
|
|
949
1038
|
namespace?: Namespace;
|
|
@@ -1040,9 +1129,15 @@ export declare enum Namespace {
|
|
|
1040
1129
|
}
|
|
1041
1130
|
/** Site transferred to another user. */
|
|
1042
1131
|
export interface SiteTransferred {
|
|
1043
|
-
/**
|
|
1132
|
+
/**
|
|
1133
|
+
* A previous owner id (user that transfers meta site).
|
|
1134
|
+
* @format GUID
|
|
1135
|
+
*/
|
|
1044
1136
|
oldOwnerId?: string;
|
|
1045
|
-
/**
|
|
1137
|
+
/**
|
|
1138
|
+
* A new owner id (user that accepts meta site).
|
|
1139
|
+
* @format GUID
|
|
1140
|
+
*/
|
|
1046
1141
|
newOwnerId?: string;
|
|
1047
1142
|
}
|
|
1048
1143
|
/** Soft deletion of the meta site. Could be restored. */
|
|
@@ -1055,9 +1150,15 @@ export interface DeleteContext {
|
|
|
1055
1150
|
dateDeleted?: Date | null;
|
|
1056
1151
|
/** A status. */
|
|
1057
1152
|
deleteStatus?: DeleteStatus;
|
|
1058
|
-
/**
|
|
1153
|
+
/**
|
|
1154
|
+
* A reason (flow).
|
|
1155
|
+
* @maxLength 255
|
|
1156
|
+
*/
|
|
1059
1157
|
deleteOrigin?: string;
|
|
1060
|
-
/**
|
|
1158
|
+
/**
|
|
1159
|
+
* A service that deleted it.
|
|
1160
|
+
* @maxLength 255
|
|
1161
|
+
*/
|
|
1061
1162
|
initiatorId?: string | null;
|
|
1062
1163
|
}
|
|
1063
1164
|
export declare enum DeleteStatus {
|
|
@@ -1073,7 +1174,11 @@ export interface SiteUndeleted {
|
|
|
1073
1174
|
export interface SitePublished {
|
|
1074
1175
|
}
|
|
1075
1176
|
export interface SiteUnpublished {
|
|
1076
|
-
/**
|
|
1177
|
+
/**
|
|
1178
|
+
* A list of URLs previously associated with the meta site.
|
|
1179
|
+
* @maxLength 4000
|
|
1180
|
+
* @maxSize 10000
|
|
1181
|
+
*/
|
|
1077
1182
|
urls?: string[];
|
|
1078
1183
|
}
|
|
1079
1184
|
export interface SiteMarkedAsTemplate {
|
|
@@ -1096,30 +1201,60 @@ export interface SiteMarkedAsWixSite {
|
|
|
1096
1201
|
* To ensure this, the TPA on the template gets a new instance_id.
|
|
1097
1202
|
*/
|
|
1098
1203
|
export interface ServiceProvisioned {
|
|
1099
|
-
/**
|
|
1204
|
+
/**
|
|
1205
|
+
* Either UUID or EmbeddedServiceType.
|
|
1206
|
+
* @maxLength 36
|
|
1207
|
+
*/
|
|
1100
1208
|
appDefId?: string;
|
|
1101
|
-
/**
|
|
1209
|
+
/**
|
|
1210
|
+
* Not only UUID. Something here could be something weird.
|
|
1211
|
+
* @maxLength 36
|
|
1212
|
+
*/
|
|
1102
1213
|
instanceId?: string;
|
|
1103
|
-
/**
|
|
1214
|
+
/**
|
|
1215
|
+
* An instance id from which this instance is originated.
|
|
1216
|
+
* @maxLength 36
|
|
1217
|
+
*/
|
|
1104
1218
|
originInstanceId?: string;
|
|
1105
|
-
/**
|
|
1219
|
+
/**
|
|
1220
|
+
* A version.
|
|
1221
|
+
* @maxLength 500
|
|
1222
|
+
*/
|
|
1106
1223
|
version?: string | null;
|
|
1107
|
-
/**
|
|
1224
|
+
/**
|
|
1225
|
+
* The origin meta site id
|
|
1226
|
+
* @format GUID
|
|
1227
|
+
*/
|
|
1108
1228
|
originMetaSiteId?: string | null;
|
|
1109
1229
|
}
|
|
1110
1230
|
export interface ServiceRemoved {
|
|
1111
|
-
/**
|
|
1231
|
+
/**
|
|
1232
|
+
* Either UUID or EmbeddedServiceType.
|
|
1233
|
+
* @maxLength 36
|
|
1234
|
+
*/
|
|
1112
1235
|
appDefId?: string;
|
|
1113
|
-
/**
|
|
1236
|
+
/**
|
|
1237
|
+
* Not only UUID. Something here could be something weird.
|
|
1238
|
+
* @maxLength 36
|
|
1239
|
+
*/
|
|
1114
1240
|
instanceId?: string;
|
|
1115
|
-
/**
|
|
1241
|
+
/**
|
|
1242
|
+
* A version.
|
|
1243
|
+
* @maxLength 500
|
|
1244
|
+
*/
|
|
1116
1245
|
version?: string | null;
|
|
1117
1246
|
}
|
|
1118
1247
|
/** Rename of the site. Meaning, free public url has been changed as well. */
|
|
1119
1248
|
export interface SiteRenamed {
|
|
1120
|
-
/**
|
|
1249
|
+
/**
|
|
1250
|
+
* A new meta site name (URL slug).
|
|
1251
|
+
* @maxLength 20
|
|
1252
|
+
*/
|
|
1121
1253
|
newSiteName?: string;
|
|
1122
|
-
/**
|
|
1254
|
+
/**
|
|
1255
|
+
* A previous meta site name (URL slug).
|
|
1256
|
+
* @maxLength 255
|
|
1257
|
+
*/
|
|
1123
1258
|
oldSiteName?: string;
|
|
1124
1259
|
}
|
|
1125
1260
|
/**
|
|
@@ -1144,9 +1279,15 @@ export interface StudioAssigned {
|
|
|
1144
1279
|
export interface StudioUnassigned {
|
|
1145
1280
|
}
|
|
1146
1281
|
export interface MessageEnvelope {
|
|
1147
|
-
/**
|
|
1282
|
+
/**
|
|
1283
|
+
* App instance ID.
|
|
1284
|
+
* @format GUID
|
|
1285
|
+
*/
|
|
1148
1286
|
instanceId?: string | null;
|
|
1149
|
-
/**
|
|
1287
|
+
/**
|
|
1288
|
+
* Event type.
|
|
1289
|
+
* @maxLength 150
|
|
1290
|
+
*/
|
|
1150
1291
|
eventType?: string;
|
|
1151
1292
|
/** The identification type and identity data. */
|
|
1152
1293
|
identity?: IdentificationData;
|
|
@@ -1154,26 +1295,50 @@ export interface MessageEnvelope {
|
|
|
1154
1295
|
data?: string;
|
|
1155
1296
|
}
|
|
1156
1297
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1157
|
-
/**
|
|
1298
|
+
/**
|
|
1299
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1300
|
+
* @format GUID
|
|
1301
|
+
*/
|
|
1158
1302
|
anonymousVisitorId?: string;
|
|
1159
|
-
/**
|
|
1303
|
+
/**
|
|
1304
|
+
* ID of a site visitor that has logged in to the site.
|
|
1305
|
+
* @format GUID
|
|
1306
|
+
*/
|
|
1160
1307
|
memberId?: string;
|
|
1161
|
-
/**
|
|
1308
|
+
/**
|
|
1309
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1310
|
+
* @format GUID
|
|
1311
|
+
*/
|
|
1162
1312
|
wixUserId?: string;
|
|
1163
|
-
/**
|
|
1313
|
+
/**
|
|
1314
|
+
* ID of an app.
|
|
1315
|
+
* @format GUID
|
|
1316
|
+
*/
|
|
1164
1317
|
appId?: string;
|
|
1165
1318
|
/** @readonly */
|
|
1166
1319
|
identityType?: WebhookIdentityType;
|
|
1167
1320
|
}
|
|
1168
1321
|
/** @oneof */
|
|
1169
1322
|
export interface IdentificationDataIdOneOf {
|
|
1170
|
-
/**
|
|
1323
|
+
/**
|
|
1324
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1325
|
+
* @format GUID
|
|
1326
|
+
*/
|
|
1171
1327
|
anonymousVisitorId?: string;
|
|
1172
|
-
/**
|
|
1328
|
+
/**
|
|
1329
|
+
* ID of a site visitor that has logged in to the site.
|
|
1330
|
+
* @format GUID
|
|
1331
|
+
*/
|
|
1173
1332
|
memberId?: string;
|
|
1174
|
-
/**
|
|
1333
|
+
/**
|
|
1334
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1335
|
+
* @format GUID
|
|
1336
|
+
*/
|
|
1175
1337
|
wixUserId?: string;
|
|
1176
|
-
/**
|
|
1338
|
+
/**
|
|
1339
|
+
* ID of an app.
|
|
1340
|
+
* @format GUID
|
|
1341
|
+
*/
|
|
1177
1342
|
appId?: string;
|
|
1178
1343
|
}
|
|
1179
1344
|
export declare enum WebhookIdentityType {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-v1-booking-policy-booking-policies.types.js","sourceRoot":"","sources":["../../../../src/bookings-v1-booking-policy-booking-policies.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"bookings-v1-booking-policy-booking-policies.types.js","sourceRoot":"","sources":["../../../../src/bookings-v1-booking-policy-booking-policies.types.ts"],"names":[],"mappings":";;;AA8fA,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAmTD,gGAAgG;AAChG,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,gCAAe,CAAA;IACf,oCAAmB,CAAA;AACrB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AA4CD,uCAAuC;AACvC,IAAY,SAQX;AARD,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,oCAAuB,CAAA;IACvB,kC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