@wix/auto_sdk_seatings_seating-reservation 1.0.3 → 1.0.5

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 (119) hide show
  1. package/build/cjs/index.d.ts +61 -1
  2. package/build/cjs/index.js +613 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/meta.d.ts +841 -1
  5. package/build/cjs/meta.js +369 -15
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/{internal/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.d.ts → cjs/seating-v1-seating-reservation-seating-reservation.universal-CzABkBgJ.d.ts} +118 -195
  8. package/build/es/index.d.mts +61 -0
  9. package/build/es/index.mjs +577 -0
  10. package/build/es/index.mjs.map +1 -0
  11. package/build/{cjs/src/seating-v1-seating-reservation-seating-reservation.types.d.ts → es/meta.d.mts} +99 -419
  12. package/build/es/meta.mjs +340 -0
  13. package/build/es/meta.mjs.map +1 -0
  14. package/build/{cjs/src/seating-v1-seating-reservation-seating-reservation.universal.d.ts → es/seating-v1-seating-reservation-seating-reservation.universal-CzABkBgJ.d.mts} +118 -195
  15. package/build/internal/cjs/index.d.ts +61 -1
  16. package/build/internal/cjs/index.js +613 -15
  17. package/build/internal/cjs/index.js.map +1 -1
  18. package/build/internal/cjs/meta.d.ts +841 -1
  19. package/build/internal/cjs/meta.js +369 -15
  20. package/build/internal/cjs/meta.js.map +1 -1
  21. package/build/internal/{es/src/seating-v1-seating-reservation-seating-reservation.universal.d.ts → cjs/seating-v1-seating-reservation-seating-reservation.universal-CzABkBgJ.d.ts} +118 -195
  22. package/build/internal/es/index.d.mts +61 -0
  23. package/build/internal/es/index.mjs +577 -0
  24. package/build/internal/es/index.mjs.map +1 -0
  25. package/build/internal/{cjs/src/seating-v1-seating-reservation-seating-reservation.types.d.ts → es/meta.d.mts} +99 -419
  26. package/build/internal/es/meta.mjs +340 -0
  27. package/build/internal/es/meta.mjs.map +1 -0
  28. package/build/{es/src/seating-v1-seating-reservation-seating-reservation.universal.d.ts → internal/es/seating-v1-seating-reservation-seating-reservation.universal-CzABkBgJ.d.mts} +118 -195
  29. package/package.json +10 -9
  30. package/build/cjs/index.typings.d.ts +0 -1
  31. package/build/cjs/index.typings.js +0 -18
  32. package/build/cjs/index.typings.js.map +0 -1
  33. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.context.d.ts +0 -17
  34. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.context.js +0 -28
  35. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.context.js.map +0 -1
  36. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.http.d.ts +0 -11
  37. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.http.js +0 -232
  38. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.http.js.map +0 -1
  39. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.d.ts +0 -24
  40. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.js +0 -142
  41. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.js.map +0 -1
  42. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.public.d.ts +0 -50
  43. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.public.js +0 -67
  44. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.public.js.map +0 -1
  45. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.types.js +0 -77
  46. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.types.js.map +0 -1
  47. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.js +0 -332
  48. package/build/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.js.map +0 -1
  49. package/build/es/index.d.ts +0 -1
  50. package/build/es/index.js +0 -2
  51. package/build/es/index.js.map +0 -1
  52. package/build/es/index.typings.d.ts +0 -1
  53. package/build/es/index.typings.js +0 -2
  54. package/build/es/index.typings.js.map +0 -1
  55. package/build/es/meta.d.ts +0 -1
  56. package/build/es/meta.js +0 -2
  57. package/build/es/meta.js.map +0 -1
  58. package/build/es/src/seating-v1-seating-reservation-seating-reservation.context.d.ts +0 -17
  59. package/build/es/src/seating-v1-seating-reservation-seating-reservation.context.js +0 -17
  60. package/build/es/src/seating-v1-seating-reservation-seating-reservation.context.js.map +0 -1
  61. package/build/es/src/seating-v1-seating-reservation-seating-reservation.http.d.ts +0 -11
  62. package/build/es/src/seating-v1-seating-reservation-seating-reservation.http.js +0 -223
  63. package/build/es/src/seating-v1-seating-reservation-seating-reservation.http.js.map +0 -1
  64. package/build/es/src/seating-v1-seating-reservation-seating-reservation.meta.d.ts +0 -24
  65. package/build/es/src/seating-v1-seating-reservation-seating-reservation.meta.js +0 -110
  66. package/build/es/src/seating-v1-seating-reservation-seating-reservation.meta.js.map +0 -1
  67. package/build/es/src/seating-v1-seating-reservation-seating-reservation.public.d.ts +0 -50
  68. package/build/es/src/seating-v1-seating-reservation-seating-reservation.public.js +0 -50
  69. package/build/es/src/seating-v1-seating-reservation-seating-reservation.public.js.map +0 -1
  70. package/build/es/src/seating-v1-seating-reservation-seating-reservation.types.d.ts +0 -1161
  71. package/build/es/src/seating-v1-seating-reservation-seating-reservation.types.js +0 -74
  72. package/build/es/src/seating-v1-seating-reservation-seating-reservation.types.js.map +0 -1
  73. package/build/es/src/seating-v1-seating-reservation-seating-reservation.universal.js +0 -300
  74. package/build/es/src/seating-v1-seating-reservation-seating-reservation.universal.js.map +0 -1
  75. package/build/internal/cjs/index.typings.d.ts +0 -1
  76. package/build/internal/cjs/index.typings.js +0 -18
  77. package/build/internal/cjs/index.typings.js.map +0 -1
  78. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.context.d.ts +0 -17
  79. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.context.js +0 -28
  80. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.context.js.map +0 -1
  81. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.http.d.ts +0 -11
  82. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.http.js +0 -232
  83. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.http.js.map +0 -1
  84. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.d.ts +0 -24
  85. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.js +0 -142
  86. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.meta.js.map +0 -1
  87. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.public.d.ts +0 -50
  88. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.public.js +0 -67
  89. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.public.js.map +0 -1
  90. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.types.js +0 -77
  91. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.types.js.map +0 -1
  92. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.js +0 -332
  93. package/build/internal/cjs/src/seating-v1-seating-reservation-seating-reservation.universal.js.map +0 -1
  94. package/build/internal/es/index.d.ts +0 -1
  95. package/build/internal/es/index.js +0 -2
  96. package/build/internal/es/index.js.map +0 -1
  97. package/build/internal/es/index.typings.d.ts +0 -1
  98. package/build/internal/es/index.typings.js +0 -2
  99. package/build/internal/es/index.typings.js.map +0 -1
  100. package/build/internal/es/meta.d.ts +0 -1
  101. package/build/internal/es/meta.js +0 -2
  102. package/build/internal/es/meta.js.map +0 -1
  103. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.context.d.ts +0 -17
  104. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.context.js +0 -17
  105. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.context.js.map +0 -1
  106. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.http.d.ts +0 -11
  107. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.http.js +0 -223
  108. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.http.js.map +0 -1
  109. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.meta.d.ts +0 -24
  110. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.meta.js +0 -110
  111. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.meta.js.map +0 -1
  112. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.public.d.ts +0 -50
  113. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.public.js +0 -50
  114. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.public.js.map +0 -1
  115. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.types.d.ts +0 -1161
  116. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.types.js +0 -74
  117. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.types.js.map +0 -1
  118. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.universal.js +0 -300
  119. package/build/internal/es/src/seating-v1-seating-reservation-seating-reservation.universal.js.map +0 -1
@@ -1,18 +1,616 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
15
9
  };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/seating-v1-seating-reservation-seating-reservation.context.js"), exports);
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ Icon: () => Icon,
24
+ Numbering: () => Numbering,
25
+ PlaceTypeEnumType: () => PlaceTypeEnumType,
26
+ Position: () => Position,
27
+ ShapeTypeEnumType: () => ShapeTypeEnumType,
28
+ SortOrder: () => SortOrder,
29
+ Type: () => Type,
30
+ WebhookIdentityType: () => WebhookIdentityType,
31
+ createSeatingReservation: () => createSeatingReservation4,
32
+ deleteSeatingReservation: () => deleteSeatingReservation4,
33
+ getReservation: () => getReservation4,
34
+ getSeatingCategorySummary: () => getSeatingCategorySummary4,
35
+ getSeatingReservationSummary: () => getSeatingReservationSummary4,
36
+ onSeatingReservationCreated: () => onSeatingReservationCreated2,
37
+ onSeatingReservationDeleted: () => onSeatingReservationDeleted2,
38
+ querySeatingReservation: () => querySeatingReservation4
39
+ });
40
+ module.exports = __toCommonJS(index_exports);
41
+
42
+ // src/seating-v1-seating-reservation-seating-reservation.public.ts
43
+ var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
44
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
45
+ var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
46
+ var import_sdk_types = require("@wix/sdk-types");
47
+
48
+ // src/seating-v1-seating-reservation-seating-reservation.universal.ts
49
+ var import_transform_error = require("@wix/sdk-runtime/transform-error");
50
+ var import_query_builder = require("@wix/sdk-runtime/query-builder");
51
+ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
52
+
53
+ // src/seating-v1-seating-reservation-seating-reservation.http.ts
54
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
55
+ var import_float = require("@wix/sdk-runtime/transformations/float");
56
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
57
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
58
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
59
+ function resolveComWixpressSeatingSeatingReservationServiceUrl(opts) {
60
+ const domainToMappings = {
61
+ _api_base_domain_: [
62
+ {
63
+ srcPath: "/seating-reservations",
64
+ destPath: ""
65
+ }
66
+ ],
67
+ _: [
68
+ {
69
+ srcPath: "/_api/seating-reservations",
70
+ destPath: ""
71
+ }
72
+ ],
73
+ "api._base_domain_": [
74
+ {
75
+ srcPath: "/seating-reservations",
76
+ destPath: ""
77
+ }
78
+ ],
79
+ "editor.wixapps.net": [
80
+ {
81
+ srcPath: "/_api/seating-reservations",
82
+ destPath: ""
83
+ }
84
+ ],
85
+ "manage._base_domain_": [
86
+ {
87
+ srcPath: "/_api/seating-reservations",
88
+ destPath: ""
89
+ }
90
+ ],
91
+ "editor._base_domain_": [
92
+ {
93
+ srcPath: "/_api/seating-reservations",
94
+ destPath: ""
95
+ }
96
+ ],
97
+ "blocks._base_domain_": [
98
+ {
99
+ srcPath: "/_api/seating-reservations",
100
+ destPath: ""
101
+ }
102
+ ],
103
+ "create.editorx": [
104
+ {
105
+ srcPath: "/_api/seating-reservations",
106
+ destPath: ""
107
+ }
108
+ ],
109
+ "*.dev.wix-code.com": [
110
+ {
111
+ srcPath: "/_api/seating-reservations",
112
+ destPath: ""
113
+ }
114
+ ],
115
+ "www._base_domain_": [
116
+ {
117
+ srcPath: "/_api/seating-reservations",
118
+ destPath: ""
119
+ }
120
+ ]
121
+ };
122
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
123
+ }
124
+ var PACKAGE_NAME = "@wix/auto_sdk_seatings_seating-reservation";
125
+ function createSeatingReservation(payload) {
126
+ function __createSeatingReservation({ host }) {
127
+ const metadata = {
128
+ entityFqdn: "wix.seating.v1.seating_reservation",
129
+ method: "POST",
130
+ methodFqn: "com.wixpress.seating.SeatingReservationService.CreateSeatingReservation",
131
+ packageName: PACKAGE_NAME,
132
+ url: resolveComWixpressSeatingSeatingReservationServiceUrl({
133
+ protoPath: "/v1/reservations",
134
+ data: payload,
135
+ host
136
+ }),
137
+ data: payload
138
+ };
139
+ return metadata;
140
+ }
141
+ return __createSeatingReservation;
142
+ }
143
+ function getReservation(payload) {
144
+ function __getReservation({ host }) {
145
+ const metadata = {
146
+ entityFqdn: "wix.seating.v1.seating_reservation",
147
+ method: "GET",
148
+ methodFqn: "com.wixpress.seating.SeatingReservationService.GetReservation",
149
+ packageName: PACKAGE_NAME,
150
+ url: resolveComWixpressSeatingSeatingReservationServiceUrl({
151
+ protoPath: "/v1/reservations/{id}",
152
+ data: payload,
153
+ host
154
+ }),
155
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
156
+ };
157
+ return metadata;
158
+ }
159
+ return __getReservation;
160
+ }
161
+ function querySeatingReservation(payload) {
162
+ function __querySeatingReservation({ host }) {
163
+ const metadata = {
164
+ entityFqdn: "wix.seating.v1.seating_reservation",
165
+ method: "POST",
166
+ methodFqn: "com.wixpress.seating.SeatingReservationService.QuerySeatingReservation",
167
+ packageName: PACKAGE_NAME,
168
+ url: resolveComWixpressSeatingSeatingReservationServiceUrl({
169
+ protoPath: "/v1/reservations/query",
170
+ data: payload,
171
+ host
172
+ }),
173
+ data: payload
174
+ };
175
+ return metadata;
176
+ }
177
+ return __querySeatingReservation;
178
+ }
179
+ function deleteSeatingReservation(payload) {
180
+ function __deleteSeatingReservation({ host }) {
181
+ const metadata = {
182
+ entityFqdn: "wix.seating.v1.seating_reservation",
183
+ method: "DELETE",
184
+ methodFqn: "com.wixpress.seating.SeatingReservationService.DeleteSeatingReservation",
185
+ packageName: PACKAGE_NAME,
186
+ url: resolveComWixpressSeatingSeatingReservationServiceUrl({
187
+ protoPath: "/v1/reservations/{id}",
188
+ data: payload,
189
+ host
190
+ }),
191
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
192
+ };
193
+ return metadata;
194
+ }
195
+ return __deleteSeatingReservation;
196
+ }
197
+ function getSeatingCategorySummary(payload) {
198
+ function __getSeatingCategorySummary({ host }) {
199
+ const metadata = {
200
+ entityFqdn: "wix.seating.v1.seating_reservation",
201
+ method: "GET",
202
+ methodFqn: "com.wixpress.seating.SeatingReservationService.GetSeatingCategorySummary",
203
+ packageName: PACKAGE_NAME,
204
+ url: resolveComWixpressSeatingSeatingReservationServiceUrl({
205
+ protoPath: "/v1/reservations/seating-category-summary",
206
+ data: payload,
207
+ host
208
+ }),
209
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
210
+ };
211
+ return metadata;
212
+ }
213
+ return __getSeatingCategorySummary;
214
+ }
215
+ function getSeatingReservationSummary(payload) {
216
+ function __getSeatingReservationSummary({ host }) {
217
+ const metadata = {
218
+ entityFqdn: "wix.seating.v1.seating_reservation",
219
+ method: "GET",
220
+ methodFqn: "com.wixpress.seating.SeatingReservationService.GetSeatingReservationSummary",
221
+ packageName: PACKAGE_NAME,
222
+ url: resolveComWixpressSeatingSeatingReservationServiceUrl({
223
+ protoPath: "/v1/reservations/seating-reservation-summary/{externalId}",
224
+ data: payload,
225
+ host
226
+ }),
227
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
228
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
229
+ {
230
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
231
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
232
+ },
233
+ {
234
+ transformFn: import_float.transformRESTFloatToSDKFloat,
235
+ paths: [
236
+ { path: "plan.sections.elements.uiProperties.x" },
237
+ { path: "plan.sections.elements.uiProperties.y" },
238
+ { path: "plan.sections.elements.uiProperties.width" },
239
+ { path: "plan.sections.elements.uiProperties.height" },
240
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
241
+ {
242
+ path: "plan.sections.elements.multiRowProperties.curveAngleTo"
243
+ },
244
+ {
245
+ path: "plan.sections.elements.multiRowProperties.curveAngleFrom"
246
+ },
247
+ {
248
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
249
+ },
250
+ {
251
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
252
+ },
253
+ {
254
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
255
+ },
256
+ {
257
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
258
+ },
259
+ { path: "plan.elementGroups.uiProperties.x" },
260
+ { path: "plan.elementGroups.uiProperties.y" },
261
+ { path: "plan.elementGroups.uiProperties.width" },
262
+ { path: "plan.elementGroups.uiProperties.height" },
263
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
264
+ ]
265
+ }
266
+ ])
267
+ };
268
+ return metadata;
269
+ }
270
+ return __getSeatingReservationSummary;
271
+ }
272
+
273
+ // src/seating-v1-seating-reservation-seating-reservation.universal.ts
274
+ var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
275
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
276
+ SortOrder2["ASC"] = "ASC";
277
+ SortOrder2["DESC"] = "DESC";
278
+ return SortOrder2;
279
+ })(SortOrder || {});
280
+ var Type = /* @__PURE__ */ ((Type2) => {
281
+ Type2["AREA"] = "AREA";
282
+ Type2["ROW"] = "ROW";
283
+ Type2["MULTI_ROW"] = "MULTI_ROW";
284
+ Type2["TABLE"] = "TABLE";
285
+ Type2["ROUND_TABLE"] = "ROUND_TABLE";
286
+ Type2["SHAPE"] = "SHAPE";
287
+ return Type2;
288
+ })(Type || {});
289
+ var PlaceTypeEnumType = /* @__PURE__ */ ((PlaceTypeEnumType2) => {
290
+ PlaceTypeEnumType2["UNKNOWN_PROPERTY"] = "UNKNOWN_PROPERTY";
291
+ PlaceTypeEnumType2["STANDARD"] = "STANDARD";
292
+ PlaceTypeEnumType2["WHEELCHAIR"] = "WHEELCHAIR";
293
+ PlaceTypeEnumType2["ACCESSIBLE"] = "ACCESSIBLE";
294
+ PlaceTypeEnumType2["COMPANION"] = "COMPANION";
295
+ PlaceTypeEnumType2["OBSTRUCTED"] = "OBSTRUCTED";
296
+ PlaceTypeEnumType2["DISCOUNT"] = "DISCOUNT";
297
+ return PlaceTypeEnumType2;
298
+ })(PlaceTypeEnumType || {});
299
+ var ShapeTypeEnumType = /* @__PURE__ */ ((ShapeTypeEnumType2) => {
300
+ ShapeTypeEnumType2["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
301
+ ShapeTypeEnumType2["TEXT"] = "TEXT";
302
+ ShapeTypeEnumType2["RECTANGLE"] = "RECTANGLE";
303
+ ShapeTypeEnumType2["ELLIPSE"] = "ELLIPSE";
304
+ ShapeTypeEnumType2["LINE"] = "LINE";
305
+ ShapeTypeEnumType2["ICON"] = "ICON";
306
+ ShapeTypeEnumType2["IMAGE"] = "IMAGE";
307
+ return ShapeTypeEnumType2;
308
+ })(ShapeTypeEnumType || {});
309
+ var Position = /* @__PURE__ */ ((Position2) => {
310
+ Position2["UNKNOWN_POSITION"] = "UNKNOWN_POSITION";
311
+ Position2["LEFT"] = "LEFT";
312
+ Position2["RIGHT"] = "RIGHT";
313
+ Position2["BOTH"] = "BOTH";
314
+ Position2["NONE"] = "NONE";
315
+ return Position2;
316
+ })(Position || {});
317
+ var Icon = /* @__PURE__ */ ((Icon2) => {
318
+ Icon2["UNKNOWN_ICON"] = "UNKNOWN_ICON";
319
+ Icon2["ENTER"] = "ENTER";
320
+ Icon2["EXIT"] = "EXIT";
321
+ Icon2["DRINKS"] = "DRINKS";
322
+ Icon2["WC"] = "WC";
323
+ Icon2["WC_MEN"] = "WC_MEN";
324
+ Icon2["WC_WOMEN"] = "WC_WOMEN";
325
+ Icon2["FOOD"] = "FOOD";
326
+ Icon2["STAIRS"] = "STAIRS";
327
+ Icon2["ELEVATOR"] = "ELEVATOR";
328
+ Icon2["SMOKING"] = "SMOKING";
329
+ Icon2["CHECKROOM"] = "CHECKROOM";
330
+ Icon2["STAGE"] = "STAGE";
331
+ return Icon2;
332
+ })(Icon || {});
333
+ var Numbering = /* @__PURE__ */ ((Numbering2) => {
334
+ Numbering2["UNKNOWN_NUMBERING"] = "UNKNOWN_NUMBERING";
335
+ Numbering2["NUMERIC"] = "NUMERIC";
336
+ Numbering2["ODD_EVEN"] = "ODD_EVEN";
337
+ Numbering2["ALPHABETICAL"] = "ALPHABETICAL";
338
+ return Numbering2;
339
+ })(Numbering || {});
340
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
341
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
342
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
343
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
344
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
345
+ WebhookIdentityType2["APP"] = "APP";
346
+ return WebhookIdentityType2;
347
+ })(WebhookIdentityType || {});
348
+ async function createSeatingReservation2(options) {
349
+ const { httpClient, sideEffects } = arguments[1];
350
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
351
+ reservation: options?.reservation
352
+ });
353
+ const reqOpts = createSeatingReservation(payload);
354
+ sideEffects?.onSiteCall?.();
355
+ try {
356
+ const result = await httpClient.request(reqOpts);
357
+ sideEffects?.onSuccess?.(result);
358
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.reservation;
359
+ } catch (err) {
360
+ const transformedError = (0, import_transform_error.transformError)(
361
+ err,
362
+ {
363
+ spreadPathsToArguments: {},
364
+ explicitPathsToArguments: { reservation: "$[0].reservation" },
365
+ singleArgumentUnchanged: false
366
+ },
367
+ ["options"]
368
+ );
369
+ sideEffects?.onError?.(err);
370
+ throw transformedError;
371
+ }
372
+ }
373
+ async function getReservation2(_id) {
374
+ const { httpClient, sideEffects } = arguments[1];
375
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
376
+ const reqOpts = getReservation(payload);
377
+ sideEffects?.onSiteCall?.();
378
+ try {
379
+ const result = await httpClient.request(reqOpts);
380
+ sideEffects?.onSuccess?.(result);
381
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.reservation;
382
+ } catch (err) {
383
+ const transformedError = (0, import_transform_error.transformError)(
384
+ err,
385
+ {
386
+ spreadPathsToArguments: {},
387
+ explicitPathsToArguments: { id: "$[0]" },
388
+ singleArgumentUnchanged: false
389
+ },
390
+ ["_id"]
391
+ );
392
+ sideEffects?.onError?.(err);
393
+ throw transformedError;
394
+ }
395
+ }
396
+ function querySeatingReservation2() {
397
+ const { httpClient, sideEffects } = arguments[0];
398
+ return (0, import_query_builder.queryBuilder)({
399
+ func: async (payload) => {
400
+ const reqOpts = querySeatingReservation(
401
+ payload
402
+ );
403
+ sideEffects?.onSiteCall?.();
404
+ try {
405
+ const result = await httpClient.request(reqOpts);
406
+ sideEffects?.onSuccess?.(result);
407
+ return result;
408
+ } catch (err) {
409
+ sideEffects?.onError?.(err);
410
+ throw err;
411
+ }
412
+ },
413
+ requestTransformer: (query) => {
414
+ const args = [query, {}];
415
+ return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
416
+ ...args?.[1],
417
+ query: args?.[0]
418
+ });
419
+ },
420
+ responseTransformer: ({
421
+ data
422
+ }) => {
423
+ const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
424
+ (0, import_transform_paths2.transformPaths)(data, [])
425
+ );
426
+ return {
427
+ items: transformedData?.reservations,
428
+ pagingMetadata: transformedData?.metadata
429
+ };
430
+ },
431
+ errorTransformer: (err) => {
432
+ const transformedError = (0, import_transform_error.transformError)(err, {
433
+ spreadPathsToArguments: {},
434
+ explicitPathsToArguments: { query: "$[0]" },
435
+ singleArgumentUnchanged: false
436
+ });
437
+ throw transformedError;
438
+ },
439
+ pagingMethod: "CURSOR",
440
+ transformationPaths: {}
441
+ });
442
+ }
443
+ async function deleteSeatingReservation2(_id) {
444
+ const { httpClient, sideEffects } = arguments[1];
445
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
446
+ const reqOpts = deleteSeatingReservation(payload);
447
+ sideEffects?.onSiteCall?.();
448
+ try {
449
+ const result = await httpClient.request(reqOpts);
450
+ sideEffects?.onSuccess?.(result);
451
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
452
+ } catch (err) {
453
+ const transformedError = (0, import_transform_error.transformError)(
454
+ err,
455
+ {
456
+ spreadPathsToArguments: {},
457
+ explicitPathsToArguments: { id: "$[0]" },
458
+ singleArgumentUnchanged: false
459
+ },
460
+ ["_id"]
461
+ );
462
+ sideEffects?.onError?.(err);
463
+ throw transformedError;
464
+ }
465
+ }
466
+ async function getSeatingCategorySummary2(options) {
467
+ const { httpClient, sideEffects } = arguments[1];
468
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
469
+ externalId: options?.externalId
470
+ });
471
+ const reqOpts = getSeatingCategorySummary(payload);
472
+ sideEffects?.onSiteCall?.();
473
+ try {
474
+ const result = await httpClient.request(reqOpts);
475
+ sideEffects?.onSuccess?.(result);
476
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
477
+ } catch (err) {
478
+ const transformedError = (0, import_transform_error.transformError)(
479
+ err,
480
+ {
481
+ spreadPathsToArguments: {},
482
+ explicitPathsToArguments: { externalId: "$[0].externalId" },
483
+ singleArgumentUnchanged: false
484
+ },
485
+ ["options"]
486
+ );
487
+ sideEffects?.onError?.(err);
488
+ throw transformedError;
489
+ }
490
+ }
491
+ async function getSeatingReservationSummary2(externalId) {
492
+ const { httpClient, sideEffects } = arguments[1];
493
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
494
+ externalId
495
+ });
496
+ const reqOpts = getSeatingReservationSummary(
497
+ payload
498
+ );
499
+ sideEffects?.onSiteCall?.();
500
+ try {
501
+ const result = await httpClient.request(reqOpts);
502
+ sideEffects?.onSuccess?.(result);
503
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
504
+ } catch (err) {
505
+ const transformedError = (0, import_transform_error.transformError)(
506
+ err,
507
+ {
508
+ spreadPathsToArguments: {},
509
+ explicitPathsToArguments: { externalId: "$[0]" },
510
+ singleArgumentUnchanged: false
511
+ },
512
+ ["externalId"]
513
+ );
514
+ sideEffects?.onError?.(err);
515
+ throw transformedError;
516
+ }
517
+ }
518
+
519
+ // src/seating-v1-seating-reservation-seating-reservation.public.ts
520
+ function createSeatingReservation3(httpClient) {
521
+ return (options) => createSeatingReservation2(
522
+ options,
523
+ // @ts-ignore
524
+ { httpClient }
525
+ );
526
+ }
527
+ function getReservation3(httpClient) {
528
+ return (_id) => getReservation2(
529
+ _id,
530
+ // @ts-ignore
531
+ { httpClient }
532
+ );
533
+ }
534
+ function querySeatingReservation3(httpClient) {
535
+ return () => querySeatingReservation2(
536
+ // @ts-ignore
537
+ { httpClient }
538
+ );
539
+ }
540
+ function deleteSeatingReservation3(httpClient) {
541
+ return (_id) => deleteSeatingReservation2(
542
+ _id,
543
+ // @ts-ignore
544
+ { httpClient }
545
+ );
546
+ }
547
+ function getSeatingCategorySummary3(httpClient) {
548
+ return (options) => getSeatingCategorySummary2(
549
+ options,
550
+ // @ts-ignore
551
+ { httpClient }
552
+ );
553
+ }
554
+ function getSeatingReservationSummary3(httpClient) {
555
+ return (externalId) => getSeatingReservationSummary2(
556
+ externalId,
557
+ // @ts-ignore
558
+ { httpClient }
559
+ );
560
+ }
561
+ var onSeatingReservationCreated = (0, import_sdk_types.EventDefinition)(
562
+ "wix.seating.v1.seating_reservation_created",
563
+ true,
564
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
565
+ (0, import_transform_paths3.transformPaths)(event, [
566
+ {
567
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
568
+ paths: [{ path: "metadata.eventTime" }]
569
+ }
570
+ ])
571
+ )
572
+ )();
573
+ var onSeatingReservationDeleted = (0, import_sdk_types.EventDefinition)(
574
+ "wix.seating.v1.seating_reservation_deleted",
575
+ true,
576
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
577
+ (0, import_transform_paths3.transformPaths)(event, [
578
+ {
579
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
580
+ paths: [{ path: "metadata.eventTime" }]
581
+ }
582
+ ])
583
+ )
584
+ )();
585
+
586
+ // src/seating-v1-seating-reservation-seating-reservation.context.ts
587
+ var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
588
+ var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
589
+ var createSeatingReservation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createSeatingReservation3);
590
+ var getReservation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getReservation3);
591
+ var querySeatingReservation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(querySeatingReservation3);
592
+ var deleteSeatingReservation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteSeatingReservation3);
593
+ var getSeatingCategorySummary4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSeatingCategorySummary3);
594
+ var getSeatingReservationSummary4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSeatingReservationSummary3);
595
+ var onSeatingReservationCreated2 = (0, import_event_definition_modules.createEventModule)(onSeatingReservationCreated);
596
+ var onSeatingReservationDeleted2 = (0, import_event_definition_modules.createEventModule)(onSeatingReservationDeleted);
597
+ // Annotate the CommonJS export names for ESM import in node:
598
+ 0 && (module.exports = {
599
+ Icon,
600
+ Numbering,
601
+ PlaceTypeEnumType,
602
+ Position,
603
+ ShapeTypeEnumType,
604
+ SortOrder,
605
+ Type,
606
+ WebhookIdentityType,
607
+ createSeatingReservation,
608
+ deleteSeatingReservation,
609
+ getReservation,
610
+ getSeatingCategorySummary,
611
+ getSeatingReservationSummary,
612
+ onSeatingReservationCreated,
613
+ onSeatingReservationDeleted,
614
+ querySeatingReservation
615
+ });
18
616
  //# sourceMappingURL=index.js.map