@wix/auto_sdk_bookings_bookings 1.0.0

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 (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/bookings-v2-booking-bookings.context.d.ts +61 -0
  11. package/build/cjs/src/bookings-v2-booking-bookings.context.js +77 -0
  12. package/build/cjs/src/bookings-v2-booking-bookings.context.js.map +1 -0
  13. package/build/cjs/src/bookings-v2-booking-bookings.http.d.ts +507 -0
  14. package/build/cjs/src/bookings-v2-booking-bookings.http.js +1576 -0
  15. package/build/cjs/src/bookings-v2-booking-bookings.http.js.map +1 -0
  16. package/build/cjs/src/bookings-v2-booking-bookings.meta.d.ts +61 -0
  17. package/build/cjs/src/bookings-v2-booking-bookings.meta.js +427 -0
  18. package/build/cjs/src/bookings-v2-booking-bookings.meta.js.map +1 -0
  19. package/build/cjs/src/bookings-v2-booking-bookings.public.d.ts +625 -0
  20. package/build/cjs/src/bookings-v2-booking-bookings.public.js +313 -0
  21. package/build/cjs/src/bookings-v2-booking-bookings.public.js.map +1 -0
  22. package/build/cjs/src/bookings-v2-booking-bookings.types.d.ts +2736 -0
  23. package/build/cjs/src/bookings-v2-booking-bookings.types.js +165 -0
  24. package/build/cjs/src/bookings-v2-booking-bookings.types.js.map +1 -0
  25. package/build/cjs/src/bookings-v2-booking-bookings.universal.d.ts +4014 -0
  26. package/build/cjs/src/bookings-v2-booking-bookings.universal.js +1646 -0
  27. package/build/cjs/src/bookings-v2-booking-bookings.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/bookings-v2-booking-bookings.context.d.ts +61 -0
  39. package/build/es/src/bookings-v2-booking-bookings.context.js +61 -0
  40. package/build/es/src/bookings-v2-booking-bookings.context.js.map +1 -0
  41. package/build/es/src/bookings-v2-booking-bookings.http.d.ts +507 -0
  42. package/build/es/src/bookings-v2-booking-bookings.http.js +1552 -0
  43. package/build/es/src/bookings-v2-booking-bookings.http.js.map +1 -0
  44. package/build/es/src/bookings-v2-booking-bookings.meta.d.ts +61 -0
  45. package/build/es/src/bookings-v2-booking-bookings.meta.js +380 -0
  46. package/build/es/src/bookings-v2-booking-bookings.meta.js.map +1 -0
  47. package/build/es/src/bookings-v2-booking-bookings.public.d.ts +625 -0
  48. package/build/es/src/bookings-v2-booking-bookings.public.js +276 -0
  49. package/build/es/src/bookings-v2-booking-bookings.public.js.map +1 -0
  50. package/build/es/src/bookings-v2-booking-bookings.types.d.ts +2736 -0
  51. package/build/es/src/bookings-v2-booking-bookings.types.js +162 -0
  52. package/build/es/src/bookings-v2-booking-bookings.types.js.map +1 -0
  53. package/build/es/src/bookings-v2-booking-bookings.universal.d.ts +4014 -0
  54. package/build/es/src/bookings-v2-booking-bookings.universal.js +1599 -0
  55. package/build/es/src/bookings-v2-booking-bookings.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/bookings-v2-booking-bookings.context.d.ts +61 -0
  66. package/build/internal/cjs/src/bookings-v2-booking-bookings.context.js +77 -0
  67. package/build/internal/cjs/src/bookings-v2-booking-bookings.context.js.map +1 -0
  68. package/build/internal/cjs/src/bookings-v2-booking-bookings.http.d.ts +507 -0
  69. package/build/internal/cjs/src/bookings-v2-booking-bookings.http.js +1576 -0
  70. package/build/internal/cjs/src/bookings-v2-booking-bookings.http.js.map +1 -0
  71. package/build/internal/cjs/src/bookings-v2-booking-bookings.meta.d.ts +61 -0
  72. package/build/internal/cjs/src/bookings-v2-booking-bookings.meta.js +427 -0
  73. package/build/internal/cjs/src/bookings-v2-booking-bookings.meta.js.map +1 -0
  74. package/build/internal/cjs/src/bookings-v2-booking-bookings.public.d.ts +625 -0
  75. package/build/internal/cjs/src/bookings-v2-booking-bookings.public.js +313 -0
  76. package/build/internal/cjs/src/bookings-v2-booking-bookings.public.js.map +1 -0
  77. package/build/internal/cjs/src/bookings-v2-booking-bookings.types.d.ts +2736 -0
  78. package/build/internal/cjs/src/bookings-v2-booking-bookings.types.js +165 -0
  79. package/build/internal/cjs/src/bookings-v2-booking-bookings.types.js.map +1 -0
  80. package/build/internal/cjs/src/bookings-v2-booking-bookings.universal.d.ts +4014 -0
  81. package/build/internal/cjs/src/bookings-v2-booking-bookings.universal.js +1646 -0
  82. package/build/internal/cjs/src/bookings-v2-booking-bookings.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/bookings-v2-booking-bookings.context.d.ts +61 -0
  93. package/build/internal/es/src/bookings-v2-booking-bookings.context.js +61 -0
  94. package/build/internal/es/src/bookings-v2-booking-bookings.context.js.map +1 -0
  95. package/build/internal/es/src/bookings-v2-booking-bookings.http.d.ts +507 -0
  96. package/build/internal/es/src/bookings-v2-booking-bookings.http.js +1552 -0
  97. package/build/internal/es/src/bookings-v2-booking-bookings.http.js.map +1 -0
  98. package/build/internal/es/src/bookings-v2-booking-bookings.meta.d.ts +61 -0
  99. package/build/internal/es/src/bookings-v2-booking-bookings.meta.js +380 -0
  100. package/build/internal/es/src/bookings-v2-booking-bookings.meta.js.map +1 -0
  101. package/build/internal/es/src/bookings-v2-booking-bookings.public.d.ts +625 -0
  102. package/build/internal/es/src/bookings-v2-booking-bookings.public.js +276 -0
  103. package/build/internal/es/src/bookings-v2-booking-bookings.public.js.map +1 -0
  104. package/build/internal/es/src/bookings-v2-booking-bookings.types.d.ts +2736 -0
  105. package/build/internal/es/src/bookings-v2-booking-bookings.types.js +162 -0
  106. package/build/internal/es/src/bookings-v2-booking-bookings.types.js.map +1 -0
  107. package/build/internal/es/src/bookings-v2-booking-bookings.universal.d.ts +4014 -0
  108. package/build/internal/es/src/bookings-v2-booking-bookings.universal.js +1599 -0
  109. package/build/internal/es/src/bookings-v2-booking-bookings.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,162 @@
1
+ /**
2
+ * A multi-service booking is considered available if all individual bookings are available as returned from List Multi Service Availability Time Slots.
3
+ * Currently, `SEPARATE_BOOKINGS` and `PARALLEL_BOOKINGS` are not supported.
4
+ * Multi-service booking is available if each of its bookings is available separately.
5
+ * For `SEQUENTIAL_BOOKINGS`, see `List Multi Service Availability Time Slots` documentation.
6
+ */
7
+ export var MultiServiceBookingType;
8
+ (function (MultiServiceBookingType) {
9
+ MultiServiceBookingType["SEQUENTIAL_BOOKINGS"] = "SEQUENTIAL_BOOKINGS";
10
+ MultiServiceBookingType["SEPARATE_BOOKINGS"] = "SEPARATE_BOOKINGS";
11
+ MultiServiceBookingType["PARALLEL_BOOKINGS"] = "PARALLEL_BOOKINGS";
12
+ })(MultiServiceBookingType || (MultiServiceBookingType = {}));
13
+ export var LocationType;
14
+ (function (LocationType) {
15
+ LocationType["UNDEFINED"] = "UNDEFINED";
16
+ LocationType["OWNER_BUSINESS"] = "OWNER_BUSINESS";
17
+ LocationType["OWNER_CUSTOM"] = "OWNER_CUSTOM";
18
+ LocationType["CUSTOM"] = "CUSTOM";
19
+ })(LocationType || (LocationType = {}));
20
+ export var ValueType;
21
+ (function (ValueType) {
22
+ /** Short text. This is the default value type. */
23
+ ValueType["SHORT_TEXT"] = "SHORT_TEXT";
24
+ /** Long text. */
25
+ ValueType["LONG_TEXT"] = "LONG_TEXT";
26
+ /** A text that represents the check box value. If selected the value is `true`, otherwise `false`. */
27
+ ValueType["CHECK_BOX"] = "CHECK_BOX";
28
+ })(ValueType || (ValueType = {}));
29
+ /** Booking status. */
30
+ export var BookingStatus;
31
+ (function (BookingStatus) {
32
+ /**
33
+ * The booking was created, but the customer hasn't completed the related
34
+ * eCommerce order yet.
35
+ */
36
+ BookingStatus["CREATED"] = "CREATED";
37
+ /**
38
+ * The merchant has confirmed the booking and it appears in the
39
+ * business calendar. Merchants can set up their services
40
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction))
41
+ * to automatically confirm all `PENDING` bookings.
42
+ */
43
+ BookingStatus["CONFIRMED"] = "CONFIRMED";
44
+ /**
45
+ * The customer has canceled the booking. Depending on the relevant service's
46
+ * policy snapshot
47
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policy-snapshots/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policy-snapshots/introduction))
48
+ * they may have to pay a cancellation fee
49
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-fees/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/booking-fees/introduction)).
50
+ */
51
+ BookingStatus["CANCELED"] = "CANCELED";
52
+ /**
53
+ * The merchant must manually confirm the booking before it appears
54
+ * in the business calendar.
55
+ */
56
+ BookingStatus["PENDING"] = "PENDING";
57
+ /** The merchant has declined the booking before the customer was charged. */
58
+ BookingStatus["DECLINED"] = "DECLINED";
59
+ /**
60
+ * The booking is on a waitlist.
61
+ * Currently, you can't call Register to Waitlist
62
+ * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/waitlist/register-to-waitlist))
63
+ * for course or appointment bookings, even though this is supported in live sites.
64
+ * You can call Register to Waitlist only for class session bookings.
65
+ */
66
+ BookingStatus["WAITING_LIST"] = "WAITING_LIST";
67
+ })(BookingStatus || (BookingStatus = {}));
68
+ /**
69
+ * Payment status.
70
+ * Automatically updated when using eCommerce checkout APIs.
71
+ */
72
+ export var PaymentStatus;
73
+ (function (PaymentStatus) {
74
+ /** Undefined payment status. */
75
+ PaymentStatus["UNDEFINED"] = "UNDEFINED";
76
+ /** The booking isn't paid. */
77
+ PaymentStatus["NOT_PAID"] = "NOT_PAID";
78
+ /** The booking is fully paid. */
79
+ PaymentStatus["PAID"] = "PAID";
80
+ /** The booking is partially paid. */
81
+ PaymentStatus["PARTIALLY_PAID"] = "PARTIALLY_PAID";
82
+ /** The booking is refunded. */
83
+ PaymentStatus["REFUNDED"] = "REFUNDED";
84
+ /** The booking is free of charge. */
85
+ PaymentStatus["EXEMPT"] = "EXEMPT";
86
+ })(PaymentStatus || (PaymentStatus = {}));
87
+ /**
88
+ * Selected payment option.
89
+ *
90
+ * One of the payment options offered by the service.
91
+ * This field is set when the user selects an option during booking.
92
+ * If left undefined, the payment option is resolved by the service configuration on checkout.
93
+ */
94
+ export var SelectedPaymentOption;
95
+ (function (SelectedPaymentOption) {
96
+ /** Undefined payment option. */
97
+ SelectedPaymentOption["UNDEFINED"] = "UNDEFINED";
98
+ /** Offline payment. */
99
+ SelectedPaymentOption["OFFLINE"] = "OFFLINE";
100
+ /** Online payment. */
101
+ SelectedPaymentOption["ONLINE"] = "ONLINE";
102
+ /** Payment using a Wix Pricing Plan. */
103
+ SelectedPaymentOption["MEMBERSHIP"] = "MEMBERSHIP";
104
+ /**
105
+ * Customers can pay only in person with a Wix Pricing Plan, while the Wix user
106
+ * must manually redeem the pricing plan in the dashboard.
107
+ */
108
+ SelectedPaymentOption["MEMBERSHIP_OFFLINE"] = "MEMBERSHIP_OFFLINE";
109
+ })(SelectedPaymentOption || (SelectedPaymentOption = {}));
110
+ export var Platform;
111
+ (function (Platform) {
112
+ Platform["UNDEFINED_PLATFORM"] = "UNDEFINED_PLATFORM";
113
+ Platform["WEB"] = "WEB";
114
+ Platform["MOBILE_APP"] = "MOBILE_APP";
115
+ })(Platform || (Platform = {}));
116
+ export var Actor;
117
+ (function (Actor) {
118
+ Actor["UNDEFINED_ACTOR"] = "UNDEFINED_ACTOR";
119
+ Actor["BUSINESS"] = "BUSINESS";
120
+ Actor["CUSTOMER"] = "CUSTOMER";
121
+ })(Actor || (Actor = {}));
122
+ export var IdentificationDataIdentityType;
123
+ (function (IdentificationDataIdentityType) {
124
+ IdentificationDataIdentityType["UNKNOWN"] = "UNKNOWN";
125
+ IdentificationDataIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
126
+ IdentificationDataIdentityType["MEMBER"] = "MEMBER";
127
+ IdentificationDataIdentityType["WIX_USER"] = "WIX_USER";
128
+ IdentificationDataIdentityType["APP"] = "APP";
129
+ })(IdentificationDataIdentityType || (IdentificationDataIdentityType = {}));
130
+ export var WebhookIdentityType;
131
+ (function (WebhookIdentityType) {
132
+ WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
133
+ WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
134
+ WebhookIdentityType["MEMBER"] = "MEMBER";
135
+ WebhookIdentityType["WIX_USER"] = "WIX_USER";
136
+ WebhookIdentityType["APP"] = "APP";
137
+ })(WebhookIdentityType || (WebhookIdentityType = {}));
138
+ export var LocationLocationType;
139
+ (function (LocationLocationType) {
140
+ /** Undefined location type. */
141
+ LocationLocationType["UNDEFINED"] = "UNDEFINED";
142
+ /** The business address as set in the site’s general settings. */
143
+ LocationLocationType["OWNER_BUSINESS"] = "OWNER_BUSINESS";
144
+ /** The address set when creating the service. */
145
+ LocationLocationType["OWNER_CUSTOM"] = "OWNER_CUSTOM";
146
+ /** The address set for the individual session. */
147
+ LocationLocationType["CUSTOM"] = "CUSTOM";
148
+ })(LocationLocationType || (LocationLocationType = {}));
149
+ export var IdentityType;
150
+ (function (IdentityType) {
151
+ IdentityType["UNKNOWN"] = "UNKNOWN";
152
+ IdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
153
+ IdentityType["MEMBER"] = "MEMBER";
154
+ IdentityType["WIX_USER"] = "WIX_USER";
155
+ IdentityType["APP"] = "APP";
156
+ })(IdentityType || (IdentityType = {}));
157
+ export var SortOrder;
158
+ (function (SortOrder) {
159
+ SortOrder["ASC"] = "ASC";
160
+ SortOrder["DESC"] = "DESC";
161
+ })(SortOrder || (SortOrder = {}));
162
+ //# sourceMappingURL=bookings-v2-booking-bookings.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bookings-v2-booking-bookings.types.js","sourceRoot":"","sources":["../../../src/bookings-v2-booking-bookings.types.ts"],"names":[],"mappings":"AA4HA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,sEAA2C,CAAA;IAC3C,kEAAuC,CAAA;IACvC,kEAAuC,CAAA;AACzC,CAAC,EAJW,uBAAuB,KAAvB,uBAAuB,QAIlC;AA6HD,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,Y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