@wix/auto_sdk_bookings_bookings 1.0.106 → 1.0.107

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +72 -72
  2. package/build/cjs/index.js +211 -211
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +353 -353
  5. package/build/cjs/index.typings.js +193 -193
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +246 -246
  8. package/build/cjs/meta.js +171 -171
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +72 -72
  11. package/build/es/index.mjs +211 -211
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +353 -353
  14. package/build/es/index.typings.mjs +193 -193
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +246 -246
  17. package/build/es/meta.mjs +171 -171
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +72 -72
  20. package/build/internal/cjs/index.js +211 -211
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +353 -353
  23. package/build/internal/cjs/index.typings.js +193 -193
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +246 -246
  26. package/build/internal/cjs/meta.js +171 -171
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +72 -72
  29. package/build/internal/es/index.mjs +211 -211
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +353 -353
  32. package/build/internal/es/index.typings.mjs +193 -193
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +246 -246
  35. package/build/internal/es/meta.mjs +171 -171
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1,4 +1,4 @@
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 } from './index.typings.mjs';
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, ConfirmOrDeclineBookingRequest as ConfirmOrDeclineBookingRequest$1, ConfirmOrDeclineBookingResponse as ConfirmOrDeclineBookingResponse$1, BulkConfirmOrDeclineBookingRequest as BulkConfirmOrDeclineBookingRequest$1, BulkConfirmOrDeclineBookingResponse as BulkConfirmOrDeclineBookingResponse$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 } from './index.typings.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  /** An entity representing a scheduled appointment, class session, or course. */
@@ -877,231 +877,6 @@ interface BookingFormFilled {
877
877
  */
878
878
  formId?: string | null;
879
879
  }
880
- interface ConfirmOrDeclineBookingRequest {
881
- /**
882
- * ID of the booking to confirm or decline.
883
- * @format GUID
884
- */
885
- bookingId: string;
886
- /**
887
- * Current payment status of the booking when using a custom checkout page and
888
- * not the [eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
889
- *
890
- * The booking is declined if there is a double booking conflict and you provide
891
- * one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
892
- */
893
- paymentStatus?: PaymentStatusWithLiterals;
894
- }
895
- interface ConfirmOrDeclineBookingResponse {
896
- /** Updated booking. */
897
- booking?: Booking;
898
- }
899
- interface BulkConfirmOrDeclineBookingRequest {
900
- /**
901
- * Bookings to confirm or decline.
902
- * @minSize 1
903
- * @maxSize 300
904
- */
905
- details: BulkConfirmOrDeclineBookingRequestBookingDetails[];
906
- /** Whether to return the confirmed or declined booking objects. */
907
- returnEntity?: boolean;
908
- }
909
- interface BulkConfirmOrDeclineBookingRequestBookingDetails {
910
- /**
911
- * ID of the booking to confirm or decline.
912
- * @format GUID
913
- */
914
- bookingId?: string;
915
- /**
916
- * Current payment status of the booking when using a custom checkout page and
917
- * not the [eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
918
- *
919
- * The booking is declined if there is a double booking conflict and you provide
920
- * one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
921
- */
922
- paymentStatus?: PaymentStatusWithLiterals;
923
- }
924
- interface BulkConfirmOrDeclineBookingResponse {
925
- /** List of confirmed or declined bookings, including metadata. */
926
- results?: BulkBookingResult[];
927
- /** Total successes and failures of the Bulk Confirm Or Decline call. */
928
- bulkActionMetadata?: BulkActionMetadata;
929
- }
930
- interface BulkBookingResult {
931
- /**
932
- * Information about the booking that was created or updated.
933
- * Including its ID, index in the bulk request and whether it was
934
- * successfully created or updated.
935
- */
936
- itemMetadata?: ItemMetadata;
937
- /**
938
- * Created or updated booking. Available only if you requested
939
- * to return the booking entity.
940
- */
941
- item?: Booking;
942
- }
943
- interface ItemMetadata {
944
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
945
- id?: string | null;
946
- /** Index of the item within the request array. Allows for correlation between request and response items. */
947
- originalIndex?: number;
948
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
949
- success?: boolean;
950
- /** Details about the error in case of failure. */
951
- error?: ApplicationError;
952
- }
953
- interface ApplicationError {
954
- /** Error code. */
955
- code?: string;
956
- /** Description of the error. */
957
- description?: string;
958
- /** Data related to the error. */
959
- data?: Record<string, any> | null;
960
- }
961
- interface BulkActionMetadata {
962
- /** Number of items that were successfully processed. */
963
- totalSuccesses?: number;
964
- /** Number of items that couldn't be processed. */
965
- totalFailures?: number;
966
- /** Number of failures without details because detailed failure threshold was exceeded. */
967
- undetailedFailures?: number;
968
- }
969
- interface DomainEvent extends DomainEventBodyOneOf {
970
- createdEvent?: EntityCreatedEvent;
971
- updatedEvent?: EntityUpdatedEvent;
972
- deletedEvent?: EntityDeletedEvent;
973
- actionEvent?: ActionEvent;
974
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
975
- id?: string;
976
- /**
977
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
978
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
979
- */
980
- entityFqdn?: string;
981
- /**
982
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
983
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
984
- */
985
- slug?: string;
986
- /** ID of the entity associated with the event. */
987
- entityId?: string;
988
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
989
- eventTime?: Date | null;
990
- /**
991
- * Whether the event was triggered as a result of a privacy regulation application
992
- * (for example, GDPR).
993
- */
994
- triggeredByAnonymizeRequest?: boolean | null;
995
- /** If present, indicates the action that triggered the event. */
996
- originatedFrom?: string | null;
997
- /**
998
- * 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.
999
- * 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.
1000
- */
1001
- entityEventSequence?: string | null;
1002
- }
1003
- /** @oneof */
1004
- interface DomainEventBodyOneOf {
1005
- createdEvent?: EntityCreatedEvent;
1006
- updatedEvent?: EntityUpdatedEvent;
1007
- deletedEvent?: EntityDeletedEvent;
1008
- actionEvent?: ActionEvent;
1009
- }
1010
- interface EntityCreatedEvent {
1011
- entityAsJson?: string;
1012
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
1013
- restoreInfo?: RestoreInfo;
1014
- }
1015
- interface RestoreInfo {
1016
- deletedDate?: Date | null;
1017
- }
1018
- interface EntityUpdatedEvent {
1019
- /**
1020
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1021
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1022
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1023
- */
1024
- currentEntityAsJson?: string;
1025
- }
1026
- interface EntityDeletedEvent {
1027
- /** Entity that was deleted. */
1028
- deletedEntityAsJson?: string | null;
1029
- }
1030
- interface ActionEvent {
1031
- bodyAsJson?: string;
1032
- }
1033
- interface MessageEnvelope {
1034
- /**
1035
- * App instance ID.
1036
- * @format GUID
1037
- */
1038
- instanceId?: string | null;
1039
- /**
1040
- * Event type.
1041
- * @maxLength 150
1042
- */
1043
- eventType?: string;
1044
- /** The identification type and identity data. */
1045
- identity?: WebhooksIdentificationData;
1046
- /** Stringify payload. */
1047
- data?: string;
1048
- }
1049
- interface WebhooksIdentificationData extends WebhooksIdentificationDataIdOneOf {
1050
- /**
1051
- * ID of a site visitor that has not logged in to the site.
1052
- * @format GUID
1053
- */
1054
- anonymousVisitorId?: string;
1055
- /**
1056
- * ID of a site visitor that has logged in to the site.
1057
- * @format GUID
1058
- */
1059
- memberId?: string;
1060
- /**
1061
- * ID of a Wix user (site owner, contributor, etc.).
1062
- * @format GUID
1063
- */
1064
- wixUserId?: string;
1065
- /**
1066
- * ID of an app.
1067
- * @format GUID
1068
- */
1069
- appId?: string;
1070
- /** @readonly */
1071
- identityType?: WebhookIdentityTypeWithLiterals;
1072
- }
1073
- /** @oneof */
1074
- interface WebhooksIdentificationDataIdOneOf {
1075
- /**
1076
- * ID of a site visitor that has not logged in to the site.
1077
- * @format GUID
1078
- */
1079
- anonymousVisitorId?: string;
1080
- /**
1081
- * ID of a site visitor that has logged in to the site.
1082
- * @format GUID
1083
- */
1084
- memberId?: string;
1085
- /**
1086
- * ID of a Wix user (site owner, contributor, etc.).
1087
- * @format GUID
1088
- */
1089
- wixUserId?: string;
1090
- /**
1091
- * ID of an app.
1092
- * @format GUID
1093
- */
1094
- appId?: string;
1095
- }
1096
- declare enum WebhookIdentityType {
1097
- UNKNOWN = "UNKNOWN",
1098
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1099
- MEMBER = "MEMBER",
1100
- WIX_USER = "WIX_USER",
1101
- APP = "APP"
1102
- }
1103
- /** @enumType */
1104
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1105
880
  interface V2CreateBookingRequest extends V2CreateBookingRequestBookableItemOneOf, V2CreateBookingRequestParticipantsInfoOneOf {
1106
881
  /**
1107
882
  * Information about the slot to create a booking for.
@@ -1485,6 +1260,142 @@ interface V2UpdateNumberOfParticipantsResponse {
1485
1260
  /** Booking with updated number of participants. */
1486
1261
  booking?: Booking;
1487
1262
  }
1263
+ interface DomainEvent extends DomainEventBodyOneOf {
1264
+ createdEvent?: EntityCreatedEvent;
1265
+ updatedEvent?: EntityUpdatedEvent;
1266
+ deletedEvent?: EntityDeletedEvent;
1267
+ actionEvent?: ActionEvent;
1268
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
1269
+ id?: string;
1270
+ /**
1271
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
1272
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
1273
+ */
1274
+ entityFqdn?: string;
1275
+ /**
1276
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
1277
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
1278
+ */
1279
+ slug?: string;
1280
+ /** ID of the entity associated with the event. */
1281
+ entityId?: string;
1282
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
1283
+ eventTime?: Date | null;
1284
+ /**
1285
+ * Whether the event was triggered as a result of a privacy regulation application
1286
+ * (for example, GDPR).
1287
+ */
1288
+ triggeredByAnonymizeRequest?: boolean | null;
1289
+ /** If present, indicates the action that triggered the event. */
1290
+ originatedFrom?: string | null;
1291
+ /**
1292
+ * 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.
1293
+ * 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.
1294
+ */
1295
+ entityEventSequence?: string | null;
1296
+ }
1297
+ /** @oneof */
1298
+ interface DomainEventBodyOneOf {
1299
+ createdEvent?: EntityCreatedEvent;
1300
+ updatedEvent?: EntityUpdatedEvent;
1301
+ deletedEvent?: EntityDeletedEvent;
1302
+ actionEvent?: ActionEvent;
1303
+ }
1304
+ interface EntityCreatedEvent {
1305
+ entityAsJson?: string;
1306
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
1307
+ restoreInfo?: RestoreInfo;
1308
+ }
1309
+ interface RestoreInfo {
1310
+ deletedDate?: Date | null;
1311
+ }
1312
+ interface EntityUpdatedEvent {
1313
+ /**
1314
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1315
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1316
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1317
+ */
1318
+ currentEntityAsJson?: string;
1319
+ }
1320
+ interface EntityDeletedEvent {
1321
+ /** Entity that was deleted. */
1322
+ deletedEntityAsJson?: string | null;
1323
+ }
1324
+ interface ActionEvent {
1325
+ bodyAsJson?: string;
1326
+ }
1327
+ interface MessageEnvelope {
1328
+ /**
1329
+ * App instance ID.
1330
+ * @format GUID
1331
+ */
1332
+ instanceId?: string | null;
1333
+ /**
1334
+ * Event type.
1335
+ * @maxLength 150
1336
+ */
1337
+ eventType?: string;
1338
+ /** The identification type and identity data. */
1339
+ identity?: WebhooksIdentificationData;
1340
+ /** Stringify payload. */
1341
+ data?: string;
1342
+ }
1343
+ interface WebhooksIdentificationData extends WebhooksIdentificationDataIdOneOf {
1344
+ /**
1345
+ * ID of a site visitor that has not logged in to the site.
1346
+ * @format GUID
1347
+ */
1348
+ anonymousVisitorId?: string;
1349
+ /**
1350
+ * ID of a site visitor that has logged in to the site.
1351
+ * @format GUID
1352
+ */
1353
+ memberId?: string;
1354
+ /**
1355
+ * ID of a Wix user (site owner, contributor, etc.).
1356
+ * @format GUID
1357
+ */
1358
+ wixUserId?: string;
1359
+ /**
1360
+ * ID of an app.
1361
+ * @format GUID
1362
+ */
1363
+ appId?: string;
1364
+ /** @readonly */
1365
+ identityType?: WebhookIdentityTypeWithLiterals;
1366
+ }
1367
+ /** @oneof */
1368
+ interface WebhooksIdentificationDataIdOneOf {
1369
+ /**
1370
+ * ID of a site visitor that has not logged in to the site.
1371
+ * @format GUID
1372
+ */
1373
+ anonymousVisitorId?: string;
1374
+ /**
1375
+ * ID of a site visitor that has logged in to the site.
1376
+ * @format GUID
1377
+ */
1378
+ memberId?: string;
1379
+ /**
1380
+ * ID of a Wix user (site owner, contributor, etc.).
1381
+ * @format GUID
1382
+ */
1383
+ wixUserId?: string;
1384
+ /**
1385
+ * ID of an app.
1386
+ * @format GUID
1387
+ */
1388
+ appId?: string;
1389
+ }
1390
+ declare enum WebhookIdentityType {
1391
+ UNKNOWN = "UNKNOWN",
1392
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1393
+ MEMBER = "MEMBER",
1394
+ WIX_USER = "WIX_USER",
1395
+ APP = "APP"
1396
+ }
1397
+ /** @enumType */
1398
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1488
1399
  interface CreateMultiServiceBookingRequest {
1489
1400
  /**
1490
1401
  * Between 2 to 8 new single-service booking specifications to create and combine in a multi-service booking.
@@ -2198,6 +2109,24 @@ interface BulkCalculateAllowedActionsResult {
2198
2109
  /** Booking entity. */
2199
2110
  item?: AllowedActions;
2200
2111
  }
2112
+ interface ItemMetadata {
2113
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
2114
+ id?: string | null;
2115
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
2116
+ originalIndex?: number;
2117
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
2118
+ success?: boolean;
2119
+ /** Details about the error in case of failure. */
2120
+ error?: ApplicationError;
2121
+ }
2122
+ interface ApplicationError {
2123
+ /** Error code. */
2124
+ code?: string;
2125
+ /** Description of the error. */
2126
+ description?: string;
2127
+ /** Data related to the error. */
2128
+ data?: Record<string, any> | null;
2129
+ }
2201
2130
  /** Possible actions allowed for the booking. */
2202
2131
  interface AllowedActions {
2203
2132
  /** Whether canceling the booking is allowed. */
@@ -2205,6 +2134,14 @@ interface AllowedActions {
2205
2134
  /** Whether rescheduling the booking is allowed. */
2206
2135
  reschedule?: boolean;
2207
2136
  }
2137
+ interface BulkActionMetadata {
2138
+ /** Number of items that were successfully processed. */
2139
+ totalSuccesses?: number;
2140
+ /** Number of items that couldn't be processed. */
2141
+ totalFailures?: number;
2142
+ /** Number of failures without details because detailed failure threshold was exceeded. */
2143
+ undetailedFailures?: number;
2144
+ }
2208
2145
  interface GetMultiServiceBookingRequest {
2209
2146
  /**
2210
2147
  * ID of the multi-service booking.
@@ -2281,6 +2218,69 @@ interface RemoveBookingsFromMultiServiceBookingResponse {
2281
2218
  /** Single-service bookings that were removed from the multi-service booking. */
2282
2219
  bookings?: BookingResult[];
2283
2220
  }
2221
+ interface ConfirmOrDeclineBookingRequest {
2222
+ /**
2223
+ * ID of the booking to confirm or decline.
2224
+ * @format GUID
2225
+ */
2226
+ bookingId: string;
2227
+ /**
2228
+ * Current payment status of the booking when using a custom checkout page and
2229
+ * not the [eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
2230
+ *
2231
+ * The booking is declined if there is a double booking conflict and you provide
2232
+ * one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
2233
+ */
2234
+ paymentStatus?: PaymentStatusWithLiterals;
2235
+ }
2236
+ interface ConfirmOrDeclineBookingResponse {
2237
+ /** Updated booking. */
2238
+ booking?: Booking;
2239
+ }
2240
+ interface BulkConfirmOrDeclineBookingRequest {
2241
+ /**
2242
+ * Bookings to confirm or decline.
2243
+ * @minSize 1
2244
+ * @maxSize 300
2245
+ */
2246
+ details: BulkConfirmOrDeclineBookingRequestBookingDetails[];
2247
+ /** Whether to return the confirmed or declined booking objects. */
2248
+ returnEntity?: boolean;
2249
+ }
2250
+ interface BulkConfirmOrDeclineBookingRequestBookingDetails {
2251
+ /**
2252
+ * ID of the booking to confirm or decline.
2253
+ * @format GUID
2254
+ */
2255
+ bookingId?: string;
2256
+ /**
2257
+ * Current payment status of the booking when using a custom checkout page and
2258
+ * not the [eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
2259
+ *
2260
+ * The booking is declined if there is a double booking conflict and you provide
2261
+ * one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
2262
+ */
2263
+ paymentStatus?: PaymentStatusWithLiterals;
2264
+ }
2265
+ interface BulkConfirmOrDeclineBookingResponse {
2266
+ /** List of confirmed or declined bookings, including metadata. */
2267
+ results?: BulkBookingResult[];
2268
+ /** Total successes and failures of the Bulk Confirm Or Decline call. */
2269
+ bulkActionMetadata?: BulkActionMetadata;
2270
+ }
2271
+ interface BulkBookingResult {
2272
+ /**
2273
+ * Information about the booking that was created or updated.
2274
+ * Including its ID, index in the bulk request and whether it was
2275
+ * successfully created or updated.
2276
+ */
2277
+ itemMetadata?: ItemMetadata;
2278
+ /**
2279
+ * Created or updated booking. Available only if you requested
2280
+ * to return the booking entity.
2281
+ */
2282
+ item?: Booking;
2283
+ }
2284
2284
  interface BookingChanged {
2285
2285
  /** The booking before the changes. */
2286
2286
  previousBooking?: Booking;
@@ -3162,22 +3162,6 @@ interface AllowedActionsAnonymously {
3162
3162
  reschedule?: boolean;
3163
3163
  }
3164
3164
  /** @docsIgnore */
3165
- type ConfirmOrDeclineBookingApplicationErrors = {
3166
- code?: 'INVALID_BOOKING_STATUS';
3167
- description?: string;
3168
- data?: Record<string, any>;
3169
- } | {
3170
- code?: 'BOOKING_NOT_FOUND';
3171
- description?: string;
3172
- data?: Record<string, any>;
3173
- };
3174
- /** @docsIgnore */
3175
- type BulkConfirmOrDeclineBookingApplicationErrors = {
3176
- code?: 'DUPLICATED_BOOKINGS';
3177
- description?: string;
3178
- data?: Record<string, any>;
3179
- };
3180
- /** @docsIgnore */
3181
3165
  type CreateMultiServiceBookingApplicationErrors = {
3182
3166
  code?: 'VALIDATION_FAILURE';
3183
3167
  description?: string;
@@ -3448,6 +3432,22 @@ type RemoveBookingsFromMultiServiceBookingApplicationErrors = {
3448
3432
  data?: Record<string, any>;
3449
3433
  };
3450
3434
  /** @docsIgnore */
3435
+ type ConfirmOrDeclineBookingApplicationErrors = {
3436
+ code?: 'INVALID_BOOKING_STATUS';
3437
+ description?: string;
3438
+ data?: Record<string, any>;
3439
+ } | {
3440
+ code?: 'BOOKING_NOT_FOUND';
3441
+ description?: string;
3442
+ data?: Record<string, any>;
3443
+ };
3444
+ /** @docsIgnore */
3445
+ type BulkConfirmOrDeclineBookingApplicationErrors = {
3446
+ code?: 'DUPLICATED_BOOKINGS';
3447
+ description?: string;
3448
+ data?: Record<string, any>;
3449
+ };
3450
+ /** @docsIgnore */
3451
3451
  type CreateBookingApplicationErrors = {
3452
3452
  code?: 'SESSION_NOT_FOUND';
3453
3453
  description?: string;
@@ -3750,10 +3750,6 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
3750
3750
  __responseType: Q;
3751
3751
  __originalResponseType: R;
3752
3752
  };
3753
- declare function confirmOrDeclineBooking(): __PublicMethodMetaInfo<'POST', {
3754
- bookingId: string;
3755
- }, ConfirmOrDeclineBookingRequest$1, ConfirmOrDeclineBookingRequest, ConfirmOrDeclineBookingResponse$1, ConfirmOrDeclineBookingResponse>;
3756
- declare function bulkConfirmOrDeclineBooking(): __PublicMethodMetaInfo<'POST', {}, BulkConfirmOrDeclineBookingRequest$1, BulkConfirmOrDeclineBookingRequest, BulkConfirmOrDeclineBookingResponse$1, BulkConfirmOrDeclineBookingResponse>;
3757
3753
  declare function createMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {}, CreateMultiServiceBookingRequest$1, CreateMultiServiceBookingRequest, CreateMultiServiceBookingResponse$1, CreateMultiServiceBookingResponse>;
3758
3754
  declare function rescheduleMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {
3759
3755
  multiServiceBookingId: string;
@@ -3779,6 +3775,10 @@ declare function getMultiServiceBooking(): __PublicMethodMetaInfo<'GET', {
3779
3775
  }, GetMultiServiceBookingRequest$1, GetMultiServiceBookingRequest, GetMultiServiceBookingResponse$1, GetMultiServiceBookingResponse>;
3780
3776
  declare function addBookingsToMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {}, AddBookingsToMultiServiceBookingRequest$1, AddBookingsToMultiServiceBookingRequest, AddBookingsToMultiServiceBookingResponse$1, AddBookingsToMultiServiceBookingResponse>;
3781
3777
  declare function removeBookingsFromMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {}, RemoveBookingsFromMultiServiceBookingRequest$1, RemoveBookingsFromMultiServiceBookingRequest, RemoveBookingsFromMultiServiceBookingResponse$1, RemoveBookingsFromMultiServiceBookingResponse>;
3778
+ declare function confirmOrDeclineBooking(): __PublicMethodMetaInfo<'POST', {
3779
+ bookingId: string;
3780
+ }, ConfirmOrDeclineBookingRequest$1, ConfirmOrDeclineBookingRequest, ConfirmOrDeclineBookingResponse$1, ConfirmOrDeclineBookingResponse>;
3781
+ declare function bulkConfirmOrDeclineBooking(): __PublicMethodMetaInfo<'POST', {}, BulkConfirmOrDeclineBookingRequest$1, BulkConfirmOrDeclineBookingRequest, BulkConfirmOrDeclineBookingResponse$1, BulkConfirmOrDeclineBookingResponse>;
3782
3782
  declare function createBooking(): __PublicMethodMetaInfo<'POST', {}, CreateBookingRequest$1, CreateBookingRequest, CreateBookingResponse$1, CreateBookingResponse>;
3783
3783
  declare function bulkCreateBooking(): __PublicMethodMetaInfo<'POST', {}, BulkCreateBookingRequest$1, BulkCreateBookingRequest, BulkCreateBookingResponse$1, BulkCreateBookingResponse>;
3784
3784
  declare function rescheduleBooking(): __PublicMethodMetaInfo<'POST', {