@wix/auto_sdk_bookings_bookings 1.0.124 → 1.0.126
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 +72 -72
- package/build/cjs/index.js +211 -211
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +379 -370
- package/build/cjs/index.typings.js +193 -193
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +331 -331
- package/build/cjs/meta.js +171 -171
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +72 -72
- package/build/es/index.mjs +211 -211
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +379 -370
- package/build/es/index.typings.mjs +193 -193
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +331 -331
- package/build/es/meta.mjs +171 -171
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +72 -72
- package/build/internal/cjs/index.js +211 -211
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +379 -370
- package/build/internal/cjs/index.typings.js +193 -193
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +331 -331
- package/build/internal/cjs/meta.js +171 -171
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +72 -72
- package/build/internal/es/index.mjs +211 -211
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +379 -370
- package/build/internal/es/index.typings.mjs +193 -193
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +331 -331
- package/build/internal/es/meta.mjs +171 -171
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateMultiServiceBookingRequest as CreateMultiServiceBookingRequest$1, CreateMultiServiceBookingResponse as CreateMultiServiceBookingResponse$1, RescheduleMultiServiceBookingRequest as RescheduleMultiServiceBookingRequest$1, RescheduleMultiServiceBookingResponse as RescheduleMultiServiceBookingResponse$1, GetMultiServiceBookingAvailabilityRequest as GetMultiServiceBookingAvailabilityRequest$1, GetMultiServiceBookingAvailabilityResponse as GetMultiServiceBookingAvailabilityResponse$1, CancelMultiServiceBookingRequest as CancelMultiServiceBookingRequest$1, CancelMultiServiceBookingResponse as CancelMultiServiceBookingResponse$1, MarkMultiServiceBookingAsPendingRequest as MarkMultiServiceBookingAsPendingRequest$1, MarkMultiServiceBookingAsPendingResponse as MarkMultiServiceBookingAsPendingResponse$1, ConfirmMultiServiceBookingRequest as ConfirmMultiServiceBookingRequest$1, ConfirmMultiServiceBookingResponse as ConfirmMultiServiceBookingResponse$1, DeclineMultiServiceBookingRequest as DeclineMultiServiceBookingRequest$1, DeclineMultiServiceBookingResponse as DeclineMultiServiceBookingResponse$1, BulkGetMultiServiceBookingAllowedActionsRequest as BulkGetMultiServiceBookingAllowedActionsRequest$1, BulkGetMultiServiceBookingAllowedActionsResponse as BulkGetMultiServiceBookingAllowedActionsResponse$1, GetMultiServiceBookingRequest as GetMultiServiceBookingRequest$1, GetMultiServiceBookingResponse as GetMultiServiceBookingResponse$1, AddBookingsToMultiServiceBookingRequest as AddBookingsToMultiServiceBookingRequest$1, AddBookingsToMultiServiceBookingResponse as AddBookingsToMultiServiceBookingResponse$1, RemoveBookingsFromMultiServiceBookingRequest as RemoveBookingsFromMultiServiceBookingRequest$1, RemoveBookingsFromMultiServiceBookingResponse as RemoveBookingsFromMultiServiceBookingResponse$1,
|
|
1
|
+
import { ConfirmOrDeclineBookingRequest as ConfirmOrDeclineBookingRequest$1, ConfirmOrDeclineBookingResponse as ConfirmOrDeclineBookingResponse$1, BulkConfirmOrDeclineBookingRequest as BulkConfirmOrDeclineBookingRequest$1, BulkConfirmOrDeclineBookingResponse as BulkConfirmOrDeclineBookingResponse$1, CreateMultiServiceBookingRequest as CreateMultiServiceBookingRequest$1, CreateMultiServiceBookingResponse as CreateMultiServiceBookingResponse$1, RescheduleMultiServiceBookingRequest as RescheduleMultiServiceBookingRequest$1, RescheduleMultiServiceBookingResponse as RescheduleMultiServiceBookingResponse$1, GetMultiServiceBookingAvailabilityRequest as GetMultiServiceBookingAvailabilityRequest$1, GetMultiServiceBookingAvailabilityResponse as GetMultiServiceBookingAvailabilityResponse$1, CancelMultiServiceBookingRequest as CancelMultiServiceBookingRequest$1, CancelMultiServiceBookingResponse as CancelMultiServiceBookingResponse$1, MarkMultiServiceBookingAsPendingRequest as MarkMultiServiceBookingAsPendingRequest$1, MarkMultiServiceBookingAsPendingResponse as MarkMultiServiceBookingAsPendingResponse$1, ConfirmMultiServiceBookingRequest as ConfirmMultiServiceBookingRequest$1, ConfirmMultiServiceBookingResponse as ConfirmMultiServiceBookingResponse$1, DeclineMultiServiceBookingRequest as DeclineMultiServiceBookingRequest$1, DeclineMultiServiceBookingResponse as DeclineMultiServiceBookingResponse$1, BulkGetMultiServiceBookingAllowedActionsRequest as BulkGetMultiServiceBookingAllowedActionsRequest$1, BulkGetMultiServiceBookingAllowedActionsResponse as BulkGetMultiServiceBookingAllowedActionsResponse$1, GetMultiServiceBookingRequest as GetMultiServiceBookingRequest$1, GetMultiServiceBookingResponse as GetMultiServiceBookingResponse$1, AddBookingsToMultiServiceBookingRequest as AddBookingsToMultiServiceBookingRequest$1, AddBookingsToMultiServiceBookingResponse as AddBookingsToMultiServiceBookingResponse$1, RemoveBookingsFromMultiServiceBookingRequest as RemoveBookingsFromMultiServiceBookingRequest$1, RemoveBookingsFromMultiServiceBookingResponse as RemoveBookingsFromMultiServiceBookingResponse$1, CreateBookingRequest as CreateBookingRequest$1, CreateBookingResponse as CreateBookingResponse$1, BulkCreateBookingRequest as BulkCreateBookingRequest$1, BulkCreateBookingResponse as BulkCreateBookingResponse$1, RescheduleBookingRequest as RescheduleBookingRequest$1, RescheduleBookingResponse as RescheduleBookingResponse$1, ConfirmBookingRequest as ConfirmBookingRequest$1, ConfirmBookingResponse as ConfirmBookingResponse$1, SetBookingSubmissionIdRequest as SetBookingSubmissionIdRequest$1, SetBookingSubmissionIdResponse as SetBookingSubmissionIdResponse$1, UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse$1, DeclineBookingRequest as DeclineBookingRequest$1, DeclineBookingResponse as DeclineBookingResponse$1, CancelBookingRequest as CancelBookingRequest$1, CancelBookingResponse as CancelBookingResponse$1, UpdateNumberOfParticipantsRequest as UpdateNumberOfParticipantsRequest$1, UpdateNumberOfParticipantsResponse as UpdateNumberOfParticipantsResponse$1, BulkCalculateAllowedActionsRequest as BulkCalculateAllowedActionsRequest$1, BulkCalculateAllowedActionsResponse as BulkCalculateAllowedActionsResponse$1, MarkBookingAsPendingRequest as MarkBookingAsPendingRequest$1, MarkBookingAsPendingResponse as MarkBookingAsPendingResponse$1, GetAnonymousActionDetailsRequest as GetAnonymousActionDetailsRequest$1, GetAnonymousActionDetailsResponse as GetAnonymousActionDetailsResponse$1, CancelBookingAnonymouslyRequest as CancelBookingAnonymouslyRequest$1, CancelBookingAnonymouslyResponse as CancelBookingAnonymouslyResponse$1, RescheduleBookingAnonymouslyRequest as RescheduleBookingAnonymouslyRequest$1, RescheduleBookingAnonymouslyResponse as RescheduleBookingAnonymouslyResponse$1, GetBookingAnonymouslyRequest as GetBookingAnonymouslyRequest$1, GetBookingAnonymouslyResponse as GetBookingAnonymouslyResponse$1, GetSchedulingUrlRequest as GetSchedulingUrlRequest$1, GetSchedulingUrlResponse as GetSchedulingUrlResponse$1 } from './index.typings.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/** An entity representing a scheduled appointment, class session, or course. */
|
|
@@ -885,6 +885,248 @@ interface BookingFormFilled {
|
|
|
885
885
|
*/
|
|
886
886
|
formId?: string | null;
|
|
887
887
|
}
|
|
888
|
+
interface ConfirmOrDeclineBookingRequest {
|
|
889
|
+
/**
|
|
890
|
+
* ID of the booking to confirm or decline.
|
|
891
|
+
* @format GUID
|
|
892
|
+
*/
|
|
893
|
+
bookingId: string;
|
|
894
|
+
/**
|
|
895
|
+
* Current payment status of the booking when using a custom checkout page and
|
|
896
|
+
* not the [eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
|
|
897
|
+
*
|
|
898
|
+
* The booking is declined if there is a double booking conflict and you provide
|
|
899
|
+
* one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
|
|
900
|
+
*/
|
|
901
|
+
paymentStatus?: PaymentStatusWithLiterals;
|
|
902
|
+
}
|
|
903
|
+
interface ConfirmOrDeclineBookingResponse {
|
|
904
|
+
/** Updated booking. */
|
|
905
|
+
booking?: Booking;
|
|
906
|
+
}
|
|
907
|
+
interface BulkConfirmOrDeclineBookingRequest {
|
|
908
|
+
/**
|
|
909
|
+
* Bookings to confirm or decline.
|
|
910
|
+
* @minSize 1
|
|
911
|
+
* @maxSize 300
|
|
912
|
+
*/
|
|
913
|
+
details: BulkConfirmOrDeclineBookingRequestBookingDetails[];
|
|
914
|
+
/** Whether to return the confirmed or declined booking objects. */
|
|
915
|
+
returnEntity?: boolean;
|
|
916
|
+
}
|
|
917
|
+
interface BulkConfirmOrDeclineBookingRequestBookingDetails {
|
|
918
|
+
/**
|
|
919
|
+
* ID of the booking to confirm or decline.
|
|
920
|
+
* @format GUID
|
|
921
|
+
*/
|
|
922
|
+
bookingId?: string;
|
|
923
|
+
/**
|
|
924
|
+
* Current payment status of the booking when using a custom checkout page and
|
|
925
|
+
* not the [eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
|
|
926
|
+
*
|
|
927
|
+
* The booking is declined if there is a double booking conflict and you provide
|
|
928
|
+
* one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
|
|
929
|
+
*/
|
|
930
|
+
paymentStatus?: PaymentStatusWithLiterals;
|
|
931
|
+
}
|
|
932
|
+
interface BulkConfirmOrDeclineBookingResponse {
|
|
933
|
+
/** List of confirmed or declined bookings, including metadata. */
|
|
934
|
+
results?: BulkBookingResult[];
|
|
935
|
+
/** Total successes and failures of the Bulk Confirm Or Decline call. */
|
|
936
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
937
|
+
}
|
|
938
|
+
interface BulkBookingResult {
|
|
939
|
+
/**
|
|
940
|
+
* Information about the booking that was created or updated.
|
|
941
|
+
* Including its ID, index in the bulk request and whether it was
|
|
942
|
+
* successfully created or updated.
|
|
943
|
+
*/
|
|
944
|
+
itemMetadata?: ItemMetadata;
|
|
945
|
+
/**
|
|
946
|
+
* Created or updated booking. Available only if you requested
|
|
947
|
+
* to return the booking entity.
|
|
948
|
+
*/
|
|
949
|
+
item?: Booking;
|
|
950
|
+
}
|
|
951
|
+
interface ItemMetadata {
|
|
952
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
953
|
+
id?: string | null;
|
|
954
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
955
|
+
originalIndex?: number;
|
|
956
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
957
|
+
success?: boolean;
|
|
958
|
+
/** Details about the error in case of failure. */
|
|
959
|
+
error?: ApplicationError;
|
|
960
|
+
}
|
|
961
|
+
interface ApplicationError {
|
|
962
|
+
/** Error code. */
|
|
963
|
+
code?: string;
|
|
964
|
+
/** Description of the error. */
|
|
965
|
+
description?: string;
|
|
966
|
+
/** Data related to the error. */
|
|
967
|
+
data?: Record<string, any> | null;
|
|
968
|
+
}
|
|
969
|
+
interface BulkActionMetadata {
|
|
970
|
+
/** Number of items that were successfully processed. */
|
|
971
|
+
totalSuccesses?: number;
|
|
972
|
+
/** Number of items that couldn't be processed. */
|
|
973
|
+
totalFailures?: number;
|
|
974
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
975
|
+
undetailedFailures?: number;
|
|
976
|
+
}
|
|
977
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
978
|
+
createdEvent?: EntityCreatedEvent;
|
|
979
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
980
|
+
deletedEvent?: EntityDeletedEvent;
|
|
981
|
+
actionEvent?: ActionEvent;
|
|
982
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
983
|
+
id?: string;
|
|
984
|
+
/**
|
|
985
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
986
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
987
|
+
*/
|
|
988
|
+
entityFqdn?: string;
|
|
989
|
+
/**
|
|
990
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
991
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
992
|
+
*/
|
|
993
|
+
slug?: string;
|
|
994
|
+
/** ID of the entity associated with the event. */
|
|
995
|
+
entityId?: string;
|
|
996
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
997
|
+
eventTime?: Date | null;
|
|
998
|
+
/**
|
|
999
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
1000
|
+
* (for example, GDPR).
|
|
1001
|
+
*/
|
|
1002
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
1003
|
+
/** If present, indicates the action that triggered the event. */
|
|
1004
|
+
originatedFrom?: string | null;
|
|
1005
|
+
/**
|
|
1006
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1007
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1008
|
+
*/
|
|
1009
|
+
entityEventSequence?: string | null;
|
|
1010
|
+
}
|
|
1011
|
+
/** @oneof */
|
|
1012
|
+
interface DomainEventBodyOneOf {
|
|
1013
|
+
createdEvent?: EntityCreatedEvent;
|
|
1014
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
1015
|
+
deletedEvent?: EntityDeletedEvent;
|
|
1016
|
+
actionEvent?: ActionEvent;
|
|
1017
|
+
}
|
|
1018
|
+
interface EntityCreatedEvent {
|
|
1019
|
+
entityAsJson?: string;
|
|
1020
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
1021
|
+
restoreInfo?: RestoreInfo;
|
|
1022
|
+
}
|
|
1023
|
+
interface RestoreInfo {
|
|
1024
|
+
deletedDate?: Date | null;
|
|
1025
|
+
}
|
|
1026
|
+
interface EntityUpdatedEvent {
|
|
1027
|
+
/**
|
|
1028
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1029
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
1030
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
1031
|
+
*/
|
|
1032
|
+
currentEntityAsJson?: string;
|
|
1033
|
+
}
|
|
1034
|
+
interface EntityDeletedEvent {
|
|
1035
|
+
/** Entity that was deleted. */
|
|
1036
|
+
deletedEntityAsJson?: string | null;
|
|
1037
|
+
}
|
|
1038
|
+
interface ActionEvent {
|
|
1039
|
+
bodyAsJson?: string;
|
|
1040
|
+
}
|
|
1041
|
+
interface MessageEnvelope {
|
|
1042
|
+
/**
|
|
1043
|
+
* App instance ID.
|
|
1044
|
+
* @format GUID
|
|
1045
|
+
*/
|
|
1046
|
+
instanceId?: string | null;
|
|
1047
|
+
/**
|
|
1048
|
+
* Event type.
|
|
1049
|
+
* @maxLength 150
|
|
1050
|
+
*/
|
|
1051
|
+
eventType?: string;
|
|
1052
|
+
/** The identification type and identity data. */
|
|
1053
|
+
identity?: WebhooksIdentificationData;
|
|
1054
|
+
/** Stringify payload. */
|
|
1055
|
+
data?: string;
|
|
1056
|
+
}
|
|
1057
|
+
interface WebhooksIdentificationData extends WebhooksIdentificationDataIdOneOf {
|
|
1058
|
+
/**
|
|
1059
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1060
|
+
* @format GUID
|
|
1061
|
+
*/
|
|
1062
|
+
anonymousVisitorId?: string;
|
|
1063
|
+
/**
|
|
1064
|
+
* ID of a site visitor that has logged in to the site.
|
|
1065
|
+
* @format GUID
|
|
1066
|
+
*/
|
|
1067
|
+
memberId?: string;
|
|
1068
|
+
/**
|
|
1069
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1070
|
+
* @format GUID
|
|
1071
|
+
*/
|
|
1072
|
+
wixUserId?: string;
|
|
1073
|
+
/**
|
|
1074
|
+
* ID of an app.
|
|
1075
|
+
* @format GUID
|
|
1076
|
+
*/
|
|
1077
|
+
appId?: string;
|
|
1078
|
+
/** @readonly */
|
|
1079
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
1080
|
+
}
|
|
1081
|
+
/** @oneof */
|
|
1082
|
+
interface WebhooksIdentificationDataIdOneOf {
|
|
1083
|
+
/**
|
|
1084
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1085
|
+
* @format GUID
|
|
1086
|
+
*/
|
|
1087
|
+
anonymousVisitorId?: string;
|
|
1088
|
+
/**
|
|
1089
|
+
* ID of a site visitor that has logged in to the site.
|
|
1090
|
+
* @format GUID
|
|
1091
|
+
*/
|
|
1092
|
+
memberId?: string;
|
|
1093
|
+
/**
|
|
1094
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1095
|
+
* @format GUID
|
|
1096
|
+
*/
|
|
1097
|
+
wixUserId?: string;
|
|
1098
|
+
/**
|
|
1099
|
+
* ID of an app.
|
|
1100
|
+
* @format GUID
|
|
1101
|
+
*/
|
|
1102
|
+
appId?: string;
|
|
1103
|
+
}
|
|
1104
|
+
declare enum WebhookIdentityType {
|
|
1105
|
+
UNKNOWN = "UNKNOWN",
|
|
1106
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1107
|
+
MEMBER = "MEMBER",
|
|
1108
|
+
WIX_USER = "WIX_USER",
|
|
1109
|
+
APP = "APP"
|
|
1110
|
+
}
|
|
1111
|
+
/** @enumType */
|
|
1112
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
1113
|
+
interface AccountInfo {
|
|
1114
|
+
/**
|
|
1115
|
+
* ID of the Wix account associated with the event.
|
|
1116
|
+
* @format GUID
|
|
1117
|
+
*/
|
|
1118
|
+
accountId?: string | null;
|
|
1119
|
+
/**
|
|
1120
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
1121
|
+
* @format GUID
|
|
1122
|
+
*/
|
|
1123
|
+
parentAccountId?: string | null;
|
|
1124
|
+
/**
|
|
1125
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
1126
|
+
* @format GUID
|
|
1127
|
+
*/
|
|
1128
|
+
siteId?: string | null;
|
|
1129
|
+
}
|
|
888
1130
|
interface V2CreateBookingRequest extends V2CreateBookingRequestBookableItemOneOf, V2CreateBookingRequestParticipantsInfoOneOf {
|
|
889
1131
|
/**
|
|
890
1132
|
* Information about the slot to create a booking for.
|
|
@@ -1172,254 +1414,101 @@ interface V2RescheduleBookingRequestParticipantsInfoOneOf {
|
|
|
1172
1414
|
}
|
|
1173
1415
|
interface RescheduleBookingRequestFlowControlSettings {
|
|
1174
1416
|
/**
|
|
1175
|
-
* Whether the rescheduling policy applies when rescheduling the booking.
|
|
1176
|
-
* When passing `false` you can only cancel a booking if the rescheduling
|
|
1177
|
-
* policy allows it. Your app must have the `BOOKINGS.IGNORE_BOOKING_POLICY `
|
|
1178
|
-
* permission scope when passing `true`.
|
|
1179
|
-
*
|
|
1180
|
-
* Default: `false`.
|
|
1181
|
-
*/
|
|
1182
|
-
ignoreReschedulePolicy?: boolean;
|
|
1183
|
-
/**
|
|
1184
|
-
* Whether the availability is checked before rescheduling the booking.
|
|
1185
|
-
* When passing `false` a booking is only created when the slot or
|
|
1186
|
-
* schedule is available. Your app must have the `BOOKINGS.OVERRIDE_AVAILABILITY`
|
|
1187
|
-
* permission scope when passing `true`.
|
|
1188
|
-
*
|
|
1189
|
-
* Default: `false`.
|
|
1190
|
-
*/
|
|
1191
|
-
skipAvailabilityValidation?: boolean;
|
|
1192
|
-
/**
|
|
1193
|
-
* Whether the rescheduled booking's status is automatically set to
|
|
1194
|
-
* `CONFIRMED` for services that normally require the owner's manual
|
|
1195
|
-
* confirmation. Your app must have the `BOOKINGS.OVERRIDE_AVAILABILITY`
|
|
1196
|
-
* permission scope when passing `true`.
|
|
1197
|
-
*
|
|
1198
|
-
* Default: `false`.
|
|
1199
|
-
*/
|
|
1200
|
-
skipBusinessConfirmation?: boolean;
|
|
1201
|
-
}
|
|
1202
|
-
interface V2RescheduleBookingResponse {
|
|
1203
|
-
/** Rescheduled booking. */
|
|
1204
|
-
booking?: Booking;
|
|
1205
|
-
}
|
|
1206
|
-
interface V2ConfirmBookingRequest {
|
|
1207
|
-
/**
|
|
1208
|
-
* ID of the booking to confirm.
|
|
1209
|
-
* @format GUID
|
|
1210
|
-
*/
|
|
1211
|
-
bookingId?: string;
|
|
1212
|
-
/**
|
|
1213
|
-
* Revision number, which increments by 1 each time the booking is updated.
|
|
1214
|
-
* To prevent conflicting changes, the current revision must be passed when
|
|
1215
|
-
* managing the booking.
|
|
1216
|
-
*/
|
|
1217
|
-
revision?: string | null;
|
|
1218
|
-
/**
|
|
1219
|
-
* Information about whether to notify the customer about the confirmation and
|
|
1220
|
-
* the message to send.
|
|
1221
|
-
*/
|
|
1222
|
-
participantNotification?: ParticipantNotification;
|
|
1223
|
-
}
|
|
1224
|
-
interface V2ConfirmBookingResponse {
|
|
1225
|
-
booking?: Booking;
|
|
1226
|
-
}
|
|
1227
|
-
interface V2DeclineBookingRequest {
|
|
1228
|
-
/**
|
|
1229
|
-
* ID of the booking to decline.
|
|
1230
|
-
* @format GUID
|
|
1231
|
-
*/
|
|
1232
|
-
bookingId?: string;
|
|
1233
|
-
/**
|
|
1234
|
-
* Revision number, which increments by 1 each time the booking is updated.
|
|
1235
|
-
* To prevent conflicting changes, the current revision must be passed when
|
|
1236
|
-
* managing the booking.
|
|
1237
|
-
*/
|
|
1238
|
-
revision?: string | null;
|
|
1239
|
-
/**
|
|
1240
|
-
* Information about whether to notify the customer about the decline and
|
|
1241
|
-
* the message to send.
|
|
1242
|
-
*/
|
|
1243
|
-
participantNotification?: ParticipantNotification;
|
|
1244
|
-
}
|
|
1245
|
-
interface V2DeclineBookingResponse {
|
|
1246
|
-
/** Declined booking. */
|
|
1247
|
-
booking?: Booking;
|
|
1248
|
-
}
|
|
1249
|
-
interface V2UpdateNumberOfParticipantsRequest extends V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
|
|
1250
|
-
/**
|
|
1251
|
-
* ID of the booking to update the number of participants for.
|
|
1252
|
-
* @format GUID
|
|
1253
|
-
*/
|
|
1254
|
-
bookingId?: string;
|
|
1255
|
-
/** Updated number of participants. */
|
|
1256
|
-
numberOfParticipants?: number | null;
|
|
1257
|
-
/**
|
|
1258
|
-
* Revision number, which increments by 1 each time the booking is updated.
|
|
1259
|
-
* To prevent conflicting changes, the current revision must be passed when
|
|
1260
|
-
* managing the booking.
|
|
1261
|
-
*/
|
|
1262
|
-
revision?: string | null;
|
|
1263
|
-
}
|
|
1264
|
-
/** @oneof */
|
|
1265
|
-
interface V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
|
|
1266
|
-
}
|
|
1267
|
-
interface V2UpdateNumberOfParticipantsResponse {
|
|
1268
|
-
/** Booking with updated number of participants. */
|
|
1269
|
-
booking?: Booking;
|
|
1270
|
-
}
|
|
1271
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
1272
|
-
createdEvent?: EntityCreatedEvent;
|
|
1273
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
1274
|
-
deletedEvent?: EntityDeletedEvent;
|
|
1275
|
-
actionEvent?: ActionEvent;
|
|
1276
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1277
|
-
id?: string;
|
|
1278
|
-
/**
|
|
1279
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1280
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1281
|
-
*/
|
|
1282
|
-
entityFqdn?: string;
|
|
1283
|
-
/**
|
|
1284
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1285
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1286
|
-
*/
|
|
1287
|
-
slug?: string;
|
|
1288
|
-
/** ID of the entity associated with the event. */
|
|
1289
|
-
entityId?: string;
|
|
1290
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1291
|
-
eventTime?: Date | null;
|
|
1292
|
-
/**
|
|
1293
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
1294
|
-
* (for example, GDPR).
|
|
1295
|
-
*/
|
|
1296
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
1297
|
-
/** If present, indicates the action that triggered the event. */
|
|
1298
|
-
originatedFrom?: string | null;
|
|
1299
|
-
/**
|
|
1300
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1301
|
-
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1302
|
-
*/
|
|
1303
|
-
entityEventSequence?: string | null;
|
|
1304
|
-
}
|
|
1305
|
-
/** @oneof */
|
|
1306
|
-
interface DomainEventBodyOneOf {
|
|
1307
|
-
createdEvent?: EntityCreatedEvent;
|
|
1308
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
1309
|
-
deletedEvent?: EntityDeletedEvent;
|
|
1310
|
-
actionEvent?: ActionEvent;
|
|
1311
|
-
}
|
|
1312
|
-
interface EntityCreatedEvent {
|
|
1313
|
-
entityAsJson?: string;
|
|
1314
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
1315
|
-
restoreInfo?: RestoreInfo;
|
|
1316
|
-
}
|
|
1317
|
-
interface RestoreInfo {
|
|
1318
|
-
deletedDate?: Date | null;
|
|
1319
|
-
}
|
|
1320
|
-
interface EntityUpdatedEvent {
|
|
1321
|
-
/**
|
|
1322
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1323
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
1324
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
1325
|
-
*/
|
|
1326
|
-
currentEntityAsJson?: string;
|
|
1327
|
-
}
|
|
1328
|
-
interface EntityDeletedEvent {
|
|
1329
|
-
/** Entity that was deleted. */
|
|
1330
|
-
deletedEntityAsJson?: string | null;
|
|
1331
|
-
}
|
|
1332
|
-
interface ActionEvent {
|
|
1333
|
-
bodyAsJson?: string;
|
|
1334
|
-
}
|
|
1335
|
-
interface MessageEnvelope {
|
|
1336
|
-
/**
|
|
1337
|
-
* App instance ID.
|
|
1338
|
-
* @format GUID
|
|
1417
|
+
* Whether the rescheduling policy applies when rescheduling the booking.
|
|
1418
|
+
* When passing `false` you can only cancel a booking if the rescheduling
|
|
1419
|
+
* policy allows it. Your app must have the `BOOKINGS.IGNORE_BOOKING_POLICY `
|
|
1420
|
+
* permission scope when passing `true`.
|
|
1421
|
+
*
|
|
1422
|
+
* Default: `false`.
|
|
1339
1423
|
*/
|
|
1340
|
-
|
|
1424
|
+
ignoreReschedulePolicy?: boolean;
|
|
1341
1425
|
/**
|
|
1342
|
-
*
|
|
1343
|
-
*
|
|
1426
|
+
* Whether the availability is checked before rescheduling the booking.
|
|
1427
|
+
* When passing `false` a booking is only created when the slot or
|
|
1428
|
+
* schedule is available. Your app must have the `BOOKINGS.OVERRIDE_AVAILABILITY`
|
|
1429
|
+
* permission scope when passing `true`.
|
|
1430
|
+
*
|
|
1431
|
+
* Default: `false`.
|
|
1344
1432
|
*/
|
|
1345
|
-
|
|
1346
|
-
/** The identification type and identity data. */
|
|
1347
|
-
identity?: WebhooksIdentificationData;
|
|
1348
|
-
/** Stringify payload. */
|
|
1349
|
-
data?: string;
|
|
1350
|
-
}
|
|
1351
|
-
interface WebhooksIdentificationData extends WebhooksIdentificationDataIdOneOf {
|
|
1433
|
+
skipAvailabilityValidation?: boolean;
|
|
1352
1434
|
/**
|
|
1353
|
-
*
|
|
1354
|
-
*
|
|
1435
|
+
* Whether the rescheduled booking's status is automatically set to
|
|
1436
|
+
* `CONFIRMED` for services that normally require the owner's manual
|
|
1437
|
+
* confirmation. Your app must have the `BOOKINGS.OVERRIDE_AVAILABILITY`
|
|
1438
|
+
* permission scope when passing `true`.
|
|
1439
|
+
*
|
|
1440
|
+
* Default: `false`.
|
|
1355
1441
|
*/
|
|
1356
|
-
|
|
1442
|
+
skipBusinessConfirmation?: boolean;
|
|
1443
|
+
}
|
|
1444
|
+
interface V2RescheduleBookingResponse {
|
|
1445
|
+
/** Rescheduled booking. */
|
|
1446
|
+
booking?: Booking;
|
|
1447
|
+
}
|
|
1448
|
+
interface V2ConfirmBookingRequest {
|
|
1357
1449
|
/**
|
|
1358
|
-
* ID of
|
|
1450
|
+
* ID of the booking to confirm.
|
|
1359
1451
|
* @format GUID
|
|
1360
1452
|
*/
|
|
1361
|
-
|
|
1453
|
+
bookingId?: string;
|
|
1362
1454
|
/**
|
|
1363
|
-
*
|
|
1364
|
-
*
|
|
1455
|
+
* Revision number, which increments by 1 each time the booking is updated.
|
|
1456
|
+
* To prevent conflicting changes, the current revision must be passed when
|
|
1457
|
+
* managing the booking.
|
|
1365
1458
|
*/
|
|
1366
|
-
|
|
1459
|
+
revision?: string | null;
|
|
1367
1460
|
/**
|
|
1368
|
-
*
|
|
1369
|
-
*
|
|
1461
|
+
* Information about whether to notify the customer about the confirmation and
|
|
1462
|
+
* the message to send.
|
|
1370
1463
|
*/
|
|
1371
|
-
|
|
1372
|
-
/** @readonly */
|
|
1373
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
1464
|
+
participantNotification?: ParticipantNotification;
|
|
1374
1465
|
}
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
* @format GUID
|
|
1380
|
-
*/
|
|
1381
|
-
anonymousVisitorId?: string;
|
|
1466
|
+
interface V2ConfirmBookingResponse {
|
|
1467
|
+
booking?: Booking;
|
|
1468
|
+
}
|
|
1469
|
+
interface V2DeclineBookingRequest {
|
|
1382
1470
|
/**
|
|
1383
|
-
* ID of
|
|
1471
|
+
* ID of the booking to decline.
|
|
1384
1472
|
* @format GUID
|
|
1385
1473
|
*/
|
|
1386
|
-
|
|
1474
|
+
bookingId?: string;
|
|
1387
1475
|
/**
|
|
1388
|
-
*
|
|
1389
|
-
*
|
|
1476
|
+
* Revision number, which increments by 1 each time the booking is updated.
|
|
1477
|
+
* To prevent conflicting changes, the current revision must be passed when
|
|
1478
|
+
* managing the booking.
|
|
1390
1479
|
*/
|
|
1391
|
-
|
|
1480
|
+
revision?: string | null;
|
|
1392
1481
|
/**
|
|
1393
|
-
*
|
|
1394
|
-
*
|
|
1482
|
+
* Information about whether to notify the customer about the decline and
|
|
1483
|
+
* the message to send.
|
|
1395
1484
|
*/
|
|
1396
|
-
|
|
1485
|
+
participantNotification?: ParticipantNotification;
|
|
1397
1486
|
}
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
MEMBER = "MEMBER",
|
|
1402
|
-
WIX_USER = "WIX_USER",
|
|
1403
|
-
APP = "APP"
|
|
1487
|
+
interface V2DeclineBookingResponse {
|
|
1488
|
+
/** Declined booking. */
|
|
1489
|
+
booking?: Booking;
|
|
1404
1490
|
}
|
|
1405
|
-
|
|
1406
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
1407
|
-
interface AccountInfo {
|
|
1408
|
-
/**
|
|
1409
|
-
* ID of the Wix account associated with the event.
|
|
1410
|
-
* @format GUID
|
|
1411
|
-
*/
|
|
1412
|
-
accountId?: string | null;
|
|
1491
|
+
interface V2UpdateNumberOfParticipantsRequest extends V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
|
|
1413
1492
|
/**
|
|
1414
|
-
* ID of the
|
|
1493
|
+
* ID of the booking to update the number of participants for.
|
|
1415
1494
|
* @format GUID
|
|
1416
1495
|
*/
|
|
1417
|
-
|
|
1496
|
+
bookingId?: string;
|
|
1497
|
+
/** Updated number of participants. */
|
|
1498
|
+
numberOfParticipants?: number | null;
|
|
1418
1499
|
/**
|
|
1419
|
-
*
|
|
1420
|
-
*
|
|
1500
|
+
* Revision number, which increments by 1 each time the booking is updated.
|
|
1501
|
+
* To prevent conflicting changes, the current revision must be passed when
|
|
1502
|
+
* managing the booking.
|
|
1421
1503
|
*/
|
|
1422
|
-
|
|
1504
|
+
revision?: string | null;
|
|
1505
|
+
}
|
|
1506
|
+
/** @oneof */
|
|
1507
|
+
interface V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
|
|
1508
|
+
}
|
|
1509
|
+
interface V2UpdateNumberOfParticipantsResponse {
|
|
1510
|
+
/** Booking with updated number of participants. */
|
|
1511
|
+
booking?: Booking;
|
|
1423
1512
|
}
|
|
1424
1513
|
interface CreateMultiServiceBookingRequest {
|
|
1425
1514
|
/**
|
|
@@ -2144,24 +2233,6 @@ interface BulkCalculateAllowedActionsResult {
|
|
|
2144
2233
|
/** Booking entity. */
|
|
2145
2234
|
item?: AllowedActions;
|
|
2146
2235
|
}
|
|
2147
|
-
interface ItemMetadata {
|
|
2148
|
-
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
2149
|
-
id?: string | null;
|
|
2150
|
-
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
2151
|
-
originalIndex?: number;
|
|
2152
|
-
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
2153
|
-
success?: boolean;
|
|
2154
|
-
/** Details about the error in case of failure. */
|
|
2155
|
-
error?: ApplicationError;
|
|
2156
|
-
}
|
|
2157
|
-
interface ApplicationError {
|
|
2158
|
-
/** Error code. */
|
|
2159
|
-
code?: string;
|
|
2160
|
-
/** Description of the error. */
|
|
2161
|
-
description?: string;
|
|
2162
|
-
/** Data related to the error. */
|
|
2163
|
-
data?: Record<string, any> | null;
|
|
2164
|
-
}
|
|
2165
2236
|
/** Possible actions allowed for the booking. */
|
|
2166
2237
|
interface AllowedActions {
|
|
2167
2238
|
/** Whether canceling the booking is allowed. */
|
|
@@ -2169,14 +2240,6 @@ interface AllowedActions {
|
|
|
2169
2240
|
/** Whether rescheduling the booking is allowed. */
|
|
2170
2241
|
reschedule?: boolean;
|
|
2171
2242
|
}
|
|
2172
|
-
interface BulkActionMetadata {
|
|
2173
|
-
/** Number of items that were successfully processed. */
|
|
2174
|
-
totalSuccesses?: number;
|
|
2175
|
-
/** Number of items that couldn't be processed. */
|
|
2176
|
-
totalFailures?: number;
|
|
2177
|
-
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
2178
|
-
undetailedFailures?: number;
|
|
2179
|
-
}
|
|
2180
2243
|
interface GetMultiServiceBookingRequest {
|
|
2181
2244
|
/**
|
|
2182
2245
|
* ID of the multi-service booking.
|
|
@@ -2253,69 +2316,6 @@ interface RemoveBookingsFromMultiServiceBookingResponse {
|
|
|
2253
2316
|
/** Single-service bookings that were removed from the multi-service booking. */
|
|
2254
2317
|
bookings?: BookingResult[];
|
|
2255
2318
|
}
|
|
2256
|
-
interface ConfirmOrDeclineBookingRequest {
|
|
2257
|
-
/**
|
|
2258
|
-
* ID of the booking to confirm or decline.
|
|
2259
|
-
* @format GUID
|
|
2260
|
-
*/
|
|
2261
|
-
bookingId: string;
|
|
2262
|
-
/**
|
|
2263
|
-
* Current payment status of the booking when using a custom checkout page and
|
|
2264
|
-
* not the [eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
|
|
2265
|
-
*
|
|
2266
|
-
* The booking is declined if there is a double booking conflict and you provide
|
|
2267
|
-
* one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
|
|
2268
|
-
*/
|
|
2269
|
-
paymentStatus?: PaymentStatusWithLiterals;
|
|
2270
|
-
}
|
|
2271
|
-
interface ConfirmOrDeclineBookingResponse {
|
|
2272
|
-
/** Updated booking. */
|
|
2273
|
-
booking?: Booking;
|
|
2274
|
-
}
|
|
2275
|
-
interface BulkConfirmOrDeclineBookingRequest {
|
|
2276
|
-
/**
|
|
2277
|
-
* Bookings to confirm or decline.
|
|
2278
|
-
* @minSize 1
|
|
2279
|
-
* @maxSize 300
|
|
2280
|
-
*/
|
|
2281
|
-
details: BulkConfirmOrDeclineBookingRequestBookingDetails[];
|
|
2282
|
-
/** Whether to return the confirmed or declined booking objects. */
|
|
2283
|
-
returnEntity?: boolean;
|
|
2284
|
-
}
|
|
2285
|
-
interface BulkConfirmOrDeclineBookingRequestBookingDetails {
|
|
2286
|
-
/**
|
|
2287
|
-
* ID of the booking to confirm or decline.
|
|
2288
|
-
* @format GUID
|
|
2289
|
-
*/
|
|
2290
|
-
bookingId?: string;
|
|
2291
|
-
/**
|
|
2292
|
-
* Current payment status of the booking when using a custom checkout page and
|
|
2293
|
-
* not the [eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
|
|
2294
|
-
*
|
|
2295
|
-
* The booking is declined if there is a double booking conflict and you provide
|
|
2296
|
-
* one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
|
|
2297
|
-
*/
|
|
2298
|
-
paymentStatus?: PaymentStatusWithLiterals;
|
|
2299
|
-
}
|
|
2300
|
-
interface BulkConfirmOrDeclineBookingResponse {
|
|
2301
|
-
/** List of confirmed or declined bookings, including metadata. */
|
|
2302
|
-
results?: BulkBookingResult[];
|
|
2303
|
-
/** Total successes and failures of the Bulk Confirm Or Decline call. */
|
|
2304
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
2305
|
-
}
|
|
2306
|
-
interface BulkBookingResult {
|
|
2307
|
-
/**
|
|
2308
|
-
* Information about the booking that was created or updated.
|
|
2309
|
-
* Including its ID, index in the bulk request and whether it was
|
|
2310
|
-
* successfully created or updated.
|
|
2311
|
-
*/
|
|
2312
|
-
itemMetadata?: ItemMetadata;
|
|
2313
|
-
/**
|
|
2314
|
-
* Created or updated booking. Available only if you requested
|
|
2315
|
-
* to return the booking entity.
|
|
2316
|
-
*/
|
|
2317
|
-
item?: Booking;
|
|
2318
|
-
}
|
|
2319
2319
|
interface BookingChanged {
|
|
2320
2320
|
/** The booking before the changes. */
|
|
2321
2321
|
previousBooking?: Booking;
|
|
@@ -3231,6 +3231,22 @@ interface GetSchedulingUrlResponse {
|
|
|
3231
3231
|
schedulingUrl?: string | null;
|
|
3232
3232
|
}
|
|
3233
3233
|
/** @docsIgnore */
|
|
3234
|
+
type ConfirmOrDeclineBookingApplicationErrors = {
|
|
3235
|
+
code?: 'INVALID_BOOKING_STATUS';
|
|
3236
|
+
description?: string;
|
|
3237
|
+
data?: Record<string, any>;
|
|
3238
|
+
} | {
|
|
3239
|
+
code?: 'BOOKING_NOT_FOUND';
|
|
3240
|
+
description?: string;
|
|
3241
|
+
data?: Record<string, any>;
|
|
3242
|
+
};
|
|
3243
|
+
/** @docsIgnore */
|
|
3244
|
+
type BulkConfirmOrDeclineBookingApplicationErrors = {
|
|
3245
|
+
code?: 'DUPLICATED_BOOKINGS';
|
|
3246
|
+
description?: string;
|
|
3247
|
+
data?: Record<string, any>;
|
|
3248
|
+
};
|
|
3249
|
+
/** @docsIgnore */
|
|
3234
3250
|
type CreateMultiServiceBookingApplicationErrors = {
|
|
3235
3251
|
code?: 'VALIDATION_FAILURE';
|
|
3236
3252
|
description?: string;
|
|
@@ -3501,22 +3517,6 @@ type RemoveBookingsFromMultiServiceBookingApplicationErrors = {
|
|
|
3501
3517
|
data?: Record<string, any>;
|
|
3502
3518
|
};
|
|
3503
3519
|
/** @docsIgnore */
|
|
3504
|
-
type ConfirmOrDeclineBookingApplicationErrors = {
|
|
3505
|
-
code?: 'INVALID_BOOKING_STATUS';
|
|
3506
|
-
description?: string;
|
|
3507
|
-
data?: Record<string, any>;
|
|
3508
|
-
} | {
|
|
3509
|
-
code?: 'BOOKING_NOT_FOUND';
|
|
3510
|
-
description?: string;
|
|
3511
|
-
data?: Record<string, any>;
|
|
3512
|
-
};
|
|
3513
|
-
/** @docsIgnore */
|
|
3514
|
-
type BulkConfirmOrDeclineBookingApplicationErrors = {
|
|
3515
|
-
code?: 'DUPLICATED_BOOKINGS';
|
|
3516
|
-
description?: string;
|
|
3517
|
-
data?: Record<string, any>;
|
|
3518
|
-
};
|
|
3519
|
-
/** @docsIgnore */
|
|
3520
3520
|
type CreateBookingApplicationErrors = {
|
|
3521
3521
|
code?: 'SESSION_NOT_FOUND';
|
|
3522
3522
|
description?: string;
|
|
@@ -3819,6 +3819,10 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
3819
3819
|
__responseType: Q;
|
|
3820
3820
|
__originalResponseType: R;
|
|
3821
3821
|
};
|
|
3822
|
+
declare function confirmOrDeclineBooking(): __PublicMethodMetaInfo<'POST', {
|
|
3823
|
+
bookingId: string;
|
|
3824
|
+
}, ConfirmOrDeclineBookingRequest$1, ConfirmOrDeclineBookingRequest, ConfirmOrDeclineBookingResponse$1, ConfirmOrDeclineBookingResponse>;
|
|
3825
|
+
declare function bulkConfirmOrDeclineBooking(): __PublicMethodMetaInfo<'POST', {}, BulkConfirmOrDeclineBookingRequest$1, BulkConfirmOrDeclineBookingRequest, BulkConfirmOrDeclineBookingResponse$1, BulkConfirmOrDeclineBookingResponse>;
|
|
3822
3826
|
declare function createMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {}, CreateMultiServiceBookingRequest$1, CreateMultiServiceBookingRequest, CreateMultiServiceBookingResponse$1, CreateMultiServiceBookingResponse>;
|
|
3823
3827
|
declare function rescheduleMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {
|
|
3824
3828
|
multiServiceBookingId: string;
|
|
@@ -3844,10 +3848,6 @@ declare function getMultiServiceBooking(): __PublicMethodMetaInfo<'GET', {
|
|
|
3844
3848
|
}, GetMultiServiceBookingRequest$1, GetMultiServiceBookingRequest, GetMultiServiceBookingResponse$1, GetMultiServiceBookingResponse>;
|
|
3845
3849
|
declare function addBookingsToMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {}, AddBookingsToMultiServiceBookingRequest$1, AddBookingsToMultiServiceBookingRequest, AddBookingsToMultiServiceBookingResponse$1, AddBookingsToMultiServiceBookingResponse>;
|
|
3846
3850
|
declare function removeBookingsFromMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {}, RemoveBookingsFromMultiServiceBookingRequest$1, RemoveBookingsFromMultiServiceBookingRequest, RemoveBookingsFromMultiServiceBookingResponse$1, RemoveBookingsFromMultiServiceBookingResponse>;
|
|
3847
|
-
declare function confirmOrDeclineBooking(): __PublicMethodMetaInfo<'POST', {
|
|
3848
|
-
bookingId: string;
|
|
3849
|
-
}, ConfirmOrDeclineBookingRequest$1, ConfirmOrDeclineBookingRequest, ConfirmOrDeclineBookingResponse$1, ConfirmOrDeclineBookingResponse>;
|
|
3850
|
-
declare function bulkConfirmOrDeclineBooking(): __PublicMethodMetaInfo<'POST', {}, BulkConfirmOrDeclineBookingRequest$1, BulkConfirmOrDeclineBookingRequest, BulkConfirmOrDeclineBookingResponse$1, BulkConfirmOrDeclineBookingResponse>;
|
|
3851
3851
|
declare function createBooking(): __PublicMethodMetaInfo<'POST', {}, CreateBookingRequest$1, CreateBookingRequest, CreateBookingResponse$1, CreateBookingResponse>;
|
|
3852
3852
|
declare function bulkCreateBooking(): __PublicMethodMetaInfo<'POST', {}, BulkCreateBookingRequest$1, BulkCreateBookingRequest, BulkCreateBookingResponse$1, BulkCreateBookingResponse>;
|
|
3853
3853
|
declare function rescheduleBooking(): __PublicMethodMetaInfo<'POST', {
|