@wix/auto_sdk_seatings_seating-plan 1.0.4 → 1.0.6

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 +96 -1
  2. package/build/cjs/index.js +1310 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/meta.d.ts +783 -1
  5. package/build/cjs/meta.js +860 -15
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/{internal/cjs/src/seating-v1-seating-plan-seating-plan.universal.d.ts → cjs/seating-v1-seating-plan-seating-plan.universal-BphMjTRF.d.ts} +122 -264
  8. package/build/es/index.d.mts +96 -0
  9. package/build/es/index.mjs +1269 -0
  10. package/build/es/index.mjs.map +1 -0
  11. package/build/es/{src/seating-v1-seating-plan-seating-plan.types.d.ts → meta.d.mts} +108 -285
  12. package/build/es/meta.mjs +828 -0
  13. package/build/es/meta.mjs.map +1 -0
  14. package/build/{internal/es/src/seating-v1-seating-plan-seating-plan.universal.d.ts → es/seating-v1-seating-plan-seating-plan.universal-BphMjTRF.d.mts} +122 -264
  15. package/build/internal/cjs/index.d.ts +96 -1
  16. package/build/internal/cjs/index.js +1310 -15
  17. package/build/internal/cjs/index.js.map +1 -1
  18. package/build/internal/cjs/meta.d.ts +783 -1
  19. package/build/internal/cjs/meta.js +860 -15
  20. package/build/internal/cjs/meta.js.map +1 -1
  21. package/build/{cjs/src/seating-v1-seating-plan-seating-plan.universal.d.ts → internal/cjs/seating-v1-seating-plan-seating-plan.universal-BphMjTRF.d.ts} +122 -264
  22. package/build/internal/es/index.d.mts +96 -0
  23. package/build/internal/es/index.mjs +1269 -0
  24. package/build/internal/es/index.mjs.map +1 -0
  25. package/build/internal/{cjs/src/seating-v1-seating-plan-seating-plan.types.d.ts → es/meta.d.mts} +108 -285
  26. package/build/internal/es/meta.mjs +828 -0
  27. package/build/internal/es/meta.mjs.map +1 -0
  28. package/build/{es/src/seating-v1-seating-plan-seating-plan.universal.d.ts → internal/es/seating-v1-seating-plan-seating-plan.universal-BphMjTRF.d.mts} +122 -264
  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-plan-seating-plan.context.d.ts +0 -23
  34. package/build/cjs/src/seating-v1-seating-plan-seating-plan.context.js +0 -35
  35. package/build/cjs/src/seating-v1-seating-plan-seating-plan.context.js.map +0 -1
  36. package/build/cjs/src/seating-v1-seating-plan-seating-plan.http.d.ts +0 -19
  37. package/build/cjs/src/seating-v1-seating-plan-seating-plan.http.js +0 -673
  38. package/build/cjs/src/seating-v1-seating-plan-seating-plan.http.js.map +0 -1
  39. package/build/cjs/src/seating-v1-seating-plan-seating-plan.meta.d.ts +0 -25
  40. package/build/cjs/src/seating-v1-seating-plan-seating-plan.meta.js +0 -199
  41. package/build/cjs/src/seating-v1-seating-plan-seating-plan.meta.js.map +0 -1
  42. package/build/cjs/src/seating-v1-seating-plan-seating-plan.public.d.ts +0 -80
  43. package/build/cjs/src/seating-v1-seating-plan-seating-plan.public.js +0 -204
  44. package/build/cjs/src/seating-v1-seating-plan-seating-plan.public.js.map +0 -1
  45. package/build/cjs/src/seating-v1-seating-plan-seating-plan.types.d.ts +0 -960
  46. package/build/cjs/src/seating-v1-seating-plan-seating-plan.types.js +0 -85
  47. package/build/cjs/src/seating-v1-seating-plan-seating-plan.types.js.map +0 -1
  48. package/build/cjs/src/seating-v1-seating-plan-seating-plan.universal.js +0 -487
  49. package/build/cjs/src/seating-v1-seating-plan-seating-plan.universal.js.map +0 -1
  50. package/build/es/index.d.ts +0 -1
  51. package/build/es/index.js +0 -2
  52. package/build/es/index.js.map +0 -1
  53. package/build/es/index.typings.d.ts +0 -1
  54. package/build/es/index.typings.js +0 -2
  55. package/build/es/index.typings.js.map +0 -1
  56. package/build/es/meta.d.ts +0 -1
  57. package/build/es/meta.js +0 -2
  58. package/build/es/meta.js.map +0 -1
  59. package/build/es/src/seating-v1-seating-plan-seating-plan.context.d.ts +0 -23
  60. package/build/es/src/seating-v1-seating-plan-seating-plan.context.js +0 -23
  61. package/build/es/src/seating-v1-seating-plan-seating-plan.context.js.map +0 -1
  62. package/build/es/src/seating-v1-seating-plan-seating-plan.http.d.ts +0 -19
  63. package/build/es/src/seating-v1-seating-plan-seating-plan.http.js +0 -661
  64. package/build/es/src/seating-v1-seating-plan-seating-plan.http.js.map +0 -1
  65. package/build/es/src/seating-v1-seating-plan-seating-plan.meta.d.ts +0 -25
  66. package/build/es/src/seating-v1-seating-plan-seating-plan.meta.js +0 -164
  67. package/build/es/src/seating-v1-seating-plan-seating-plan.meta.js.map +0 -1
  68. package/build/es/src/seating-v1-seating-plan-seating-plan.public.d.ts +0 -80
  69. package/build/es/src/seating-v1-seating-plan-seating-plan.public.js +0 -183
  70. package/build/es/src/seating-v1-seating-plan-seating-plan.public.js.map +0 -1
  71. package/build/es/src/seating-v1-seating-plan-seating-plan.types.js +0 -82
  72. package/build/es/src/seating-v1-seating-plan-seating-plan.types.js.map +0 -1
  73. package/build/es/src/seating-v1-seating-plan-seating-plan.universal.js +0 -452
  74. package/build/es/src/seating-v1-seating-plan-seating-plan.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-plan-seating-plan.context.d.ts +0 -23
  79. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.context.js +0 -35
  80. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.context.js.map +0 -1
  81. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.http.d.ts +0 -19
  82. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.http.js +0 -673
  83. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.http.js.map +0 -1
  84. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.meta.d.ts +0 -25
  85. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.meta.js +0 -199
  86. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.meta.js.map +0 -1
  87. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.public.d.ts +0 -80
  88. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.public.js +0 -204
  89. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.public.js.map +0 -1
  90. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.types.js +0 -85
  91. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.types.js.map +0 -1
  92. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.universal.js +0 -487
  93. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.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-plan-seating-plan.context.d.ts +0 -23
  104. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.context.js +0 -23
  105. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.context.js.map +0 -1
  106. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.http.d.ts +0 -19
  107. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.http.js +0 -661
  108. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.http.js.map +0 -1
  109. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.meta.d.ts +0 -25
  110. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.meta.js +0 -164
  111. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.meta.js.map +0 -1
  112. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.public.d.ts +0 -80
  113. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.public.js +0 -183
  114. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.public.js.map +0 -1
  115. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.types.d.ts +0 -960
  116. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.types.js +0 -82
  117. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.types.js.map +0 -1
  118. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.universal.js +0 -452
  119. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.universal.js.map +0 -1
@@ -0,0 +1,1269 @@
1
+ // src/seating-v1-seating-plan-seating-plan.public.ts
2
+ import { renameKeysFromRESTResponseToSDKResponse as renameKeysFromRESTResponseToSDKResponse2 } from "@wix/sdk-runtime/rename-all-nested-keys";
3
+ import { transformRESTFloatToSDKFloat as transformRESTFloatToSDKFloat2 } from "@wix/sdk-runtime/transformations/float";
4
+ import { transformRESTTimestampToSDKTimestamp as transformRESTTimestampToSDKTimestamp2 } from "@wix/sdk-runtime/transformations/timestamp";
5
+ import { transformPaths as transformPaths3 } from "@wix/sdk-runtime/transformations/transform-paths";
6
+ import { EventDefinition } from "@wix/sdk-types";
7
+
8
+ // src/seating-v1-seating-plan-seating-plan.universal.ts
9
+ import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
10
+ import { queryBuilder } from "@wix/sdk-runtime/query-builder";
11
+ import {
12
+ renameKeysFromSDKRequestToRESTRequest,
13
+ renameKeysFromRESTResponseToSDKResponse
14
+ } from "@wix/sdk-runtime/rename-all-nested-keys";
15
+
16
+ // src/seating-v1-seating-plan-seating-plan.http.ts
17
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
18
+ import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
19
+ import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
20
+ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
21
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
22
+ import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
23
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
24
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
25
+ function resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl(opts) {
26
+ const domainToMappings = {
27
+ "manage._base_domain_": [
28
+ {
29
+ srcPath: "/_api/seating-plans",
30
+ destPath: ""
31
+ }
32
+ ],
33
+ "www._base_domain_": [
34
+ {
35
+ srcPath: "/_api/seating-plans",
36
+ destPath: ""
37
+ }
38
+ ],
39
+ "editor-flow.wixapps.net": [
40
+ {
41
+ srcPath: "/_api/seating-plans",
42
+ destPath: ""
43
+ }
44
+ ],
45
+ "editor._base_domain_": [
46
+ {
47
+ srcPath: "/_api/seating-plans",
48
+ destPath: ""
49
+ }
50
+ ],
51
+ "blocks._base_domain_": [
52
+ {
53
+ srcPath: "/_api/seating-plans",
54
+ destPath: ""
55
+ }
56
+ ],
57
+ "create.editorx": [
58
+ {
59
+ srcPath: "/_api/seating-plans",
60
+ destPath: ""
61
+ }
62
+ ],
63
+ "api._base_domain_": [
64
+ {
65
+ srcPath: "/seating-plans",
66
+ destPath: ""
67
+ }
68
+ ],
69
+ "editor.wixapps.net": [
70
+ {
71
+ srcPath: "/_api/seating-plans",
72
+ destPath: ""
73
+ }
74
+ ],
75
+ "api._api_base_domain_": [
76
+ {
77
+ srcPath: "/seating-plans",
78
+ destPath: ""
79
+ }
80
+ ],
81
+ _: [
82
+ {
83
+ srcPath: "/_api/seating-plans",
84
+ destPath: ""
85
+ }
86
+ ]
87
+ };
88
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
89
+ }
90
+ function resolveComWixpressSeatingSeatingPlanManagementUrl(opts) {
91
+ const domainToMappings = {
92
+ "manage._base_domain_": [
93
+ {
94
+ srcPath: "/_api/seating-plans",
95
+ destPath: ""
96
+ }
97
+ ],
98
+ "www._base_domain_": [
99
+ {
100
+ srcPath: "/_api/seating-plans",
101
+ destPath: ""
102
+ }
103
+ ],
104
+ "editor-flow.wixapps.net": [
105
+ {
106
+ srcPath: "/_api/seating-plans",
107
+ destPath: ""
108
+ }
109
+ ],
110
+ "editor._base_domain_": [
111
+ {
112
+ srcPath: "/_api/seating-plans",
113
+ destPath: ""
114
+ }
115
+ ],
116
+ "blocks._base_domain_": [
117
+ {
118
+ srcPath: "/_api/seating-plans",
119
+ destPath: ""
120
+ }
121
+ ],
122
+ "create.editorx": [
123
+ {
124
+ srcPath: "/_api/seating-plans",
125
+ destPath: ""
126
+ }
127
+ ],
128
+ "api._base_domain_": [
129
+ {
130
+ srcPath: "/seating-plans",
131
+ destPath: ""
132
+ }
133
+ ],
134
+ "editor.wixapps.net": [
135
+ {
136
+ srcPath: "/_api/seating-plans",
137
+ destPath: ""
138
+ }
139
+ ],
140
+ "api._api_base_domain_": [
141
+ {
142
+ srcPath: "/seating-plans",
143
+ destPath: ""
144
+ }
145
+ ],
146
+ _: [
147
+ {
148
+ srcPath: "/_api/seating-plans",
149
+ destPath: ""
150
+ }
151
+ ]
152
+ };
153
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
154
+ }
155
+ var PACKAGE_NAME = "@wix/auto_sdk_seatings_seating-plan";
156
+ function createSeatingPlan(payload) {
157
+ function __createSeatingPlan({ host }) {
158
+ const serializedData = transformPaths(payload, [
159
+ {
160
+ transformFn: transformSDKTimestampToRESTTimestamp,
161
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
162
+ },
163
+ {
164
+ transformFn: transformSDKFloatToRESTFloat,
165
+ paths: [
166
+ { path: "plan.sections.elements.uiProperties.x" },
167
+ { path: "plan.sections.elements.uiProperties.y" },
168
+ { path: "plan.sections.elements.uiProperties.width" },
169
+ { path: "plan.sections.elements.uiProperties.height" },
170
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
171
+ { path: "plan.sections.elements.multiRowProperties.curveAngleTo" },
172
+ { path: "plan.sections.elements.multiRowProperties.curveAngleFrom" },
173
+ {
174
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
175
+ },
176
+ {
177
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
178
+ },
179
+ {
180
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
181
+ },
182
+ {
183
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
184
+ },
185
+ { path: "plan.elementGroups.uiProperties.x" },
186
+ { path: "plan.elementGroups.uiProperties.y" },
187
+ { path: "plan.elementGroups.uiProperties.width" },
188
+ { path: "plan.elementGroups.uiProperties.height" },
189
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
190
+ ]
191
+ }
192
+ ]);
193
+ const metadata = {
194
+ entityFqdn: "wix.seating.v1.seating_plan",
195
+ method: "POST",
196
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.CreateSeatingPlan",
197
+ packageName: PACKAGE_NAME,
198
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
199
+ protoPath: "/v1/plans",
200
+ data: serializedData,
201
+ host
202
+ }),
203
+ data: serializedData,
204
+ transformResponse: (payload2) => transformPaths(payload2, [
205
+ {
206
+ transformFn: transformRESTTimestampToSDKTimestamp,
207
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
208
+ },
209
+ {
210
+ transformFn: transformRESTFloatToSDKFloat,
211
+ paths: [
212
+ { path: "plan.sections.elements.uiProperties.x" },
213
+ { path: "plan.sections.elements.uiProperties.y" },
214
+ { path: "plan.sections.elements.uiProperties.width" },
215
+ { path: "plan.sections.elements.uiProperties.height" },
216
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
217
+ {
218
+ path: "plan.sections.elements.multiRowProperties.curveAngleTo"
219
+ },
220
+ {
221
+ path: "plan.sections.elements.multiRowProperties.curveAngleFrom"
222
+ },
223
+ {
224
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
225
+ },
226
+ {
227
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
228
+ },
229
+ {
230
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
231
+ },
232
+ {
233
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
234
+ },
235
+ { path: "plan.elementGroups.uiProperties.x" },
236
+ { path: "plan.elementGroups.uiProperties.y" },
237
+ { path: "plan.elementGroups.uiProperties.width" },
238
+ { path: "plan.elementGroups.uiProperties.height" },
239
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
240
+ ]
241
+ }
242
+ ])
243
+ };
244
+ return metadata;
245
+ }
246
+ return __createSeatingPlan;
247
+ }
248
+ function updateSeatingPlan(payload) {
249
+ function __updateSeatingPlan({ host }) {
250
+ const serializedData = transformPaths(payload, [
251
+ {
252
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
253
+ paths: [{ path: "fields" }]
254
+ },
255
+ {
256
+ transformFn: transformSDKTimestampToRESTTimestamp,
257
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
258
+ },
259
+ {
260
+ transformFn: transformSDKFloatToRESTFloat,
261
+ paths: [
262
+ { path: "plan.sections.elements.uiProperties.x" },
263
+ { path: "plan.sections.elements.uiProperties.y" },
264
+ { path: "plan.sections.elements.uiProperties.width" },
265
+ { path: "plan.sections.elements.uiProperties.height" },
266
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
267
+ { path: "plan.sections.elements.multiRowProperties.curveAngleTo" },
268
+ { path: "plan.sections.elements.multiRowProperties.curveAngleFrom" },
269
+ {
270
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
271
+ },
272
+ {
273
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
274
+ },
275
+ {
276
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
277
+ },
278
+ {
279
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
280
+ },
281
+ { path: "plan.elementGroups.uiProperties.x" },
282
+ { path: "plan.elementGroups.uiProperties.y" },
283
+ { path: "plan.elementGroups.uiProperties.width" },
284
+ { path: "plan.elementGroups.uiProperties.height" },
285
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
286
+ ]
287
+ }
288
+ ]);
289
+ const metadata = {
290
+ entityFqdn: "wix.seating.v1.seating_plan",
291
+ method: "PUT",
292
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.UpdateSeatingPlan",
293
+ packageName: PACKAGE_NAME,
294
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
295
+ protoPath: "/v1/plans",
296
+ data: serializedData,
297
+ host
298
+ }),
299
+ data: serializedData,
300
+ transformResponse: (payload2) => transformPaths(payload2, [
301
+ {
302
+ transformFn: transformRESTTimestampToSDKTimestamp,
303
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
304
+ },
305
+ {
306
+ transformFn: transformRESTFloatToSDKFloat,
307
+ paths: [
308
+ { path: "plan.sections.elements.uiProperties.x" },
309
+ { path: "plan.sections.elements.uiProperties.y" },
310
+ { path: "plan.sections.elements.uiProperties.width" },
311
+ { path: "plan.sections.elements.uiProperties.height" },
312
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
313
+ {
314
+ path: "plan.sections.elements.multiRowProperties.curveAngleTo"
315
+ },
316
+ {
317
+ path: "plan.sections.elements.multiRowProperties.curveAngleFrom"
318
+ },
319
+ {
320
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
321
+ },
322
+ {
323
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
324
+ },
325
+ {
326
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
327
+ },
328
+ {
329
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
330
+ },
331
+ { path: "plan.elementGroups.uiProperties.x" },
332
+ { path: "plan.elementGroups.uiProperties.y" },
333
+ { path: "plan.elementGroups.uiProperties.width" },
334
+ { path: "plan.elementGroups.uiProperties.height" },
335
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
336
+ ]
337
+ }
338
+ ])
339
+ };
340
+ return metadata;
341
+ }
342
+ return __updateSeatingPlan;
343
+ }
344
+ function copySeatingPlan(payload) {
345
+ function __copySeatingPlan({ host }) {
346
+ const metadata = {
347
+ entityFqdn: "wix.seating.v1.seating_plan",
348
+ method: "POST",
349
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.CopySeatingPlan",
350
+ packageName: PACKAGE_NAME,
351
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
352
+ protoPath: "/v1/plans/copy",
353
+ data: payload,
354
+ host
355
+ }),
356
+ data: payload,
357
+ transformResponse: (payload2) => transformPaths(payload2, [
358
+ {
359
+ transformFn: transformRESTTimestampToSDKTimestamp,
360
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
361
+ },
362
+ {
363
+ transformFn: transformRESTFloatToSDKFloat,
364
+ paths: [
365
+ { path: "plan.sections.elements.uiProperties.x" },
366
+ { path: "plan.sections.elements.uiProperties.y" },
367
+ { path: "plan.sections.elements.uiProperties.width" },
368
+ { path: "plan.sections.elements.uiProperties.height" },
369
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
370
+ {
371
+ path: "plan.sections.elements.multiRowProperties.curveAngleTo"
372
+ },
373
+ {
374
+ path: "plan.sections.elements.multiRowProperties.curveAngleFrom"
375
+ },
376
+ {
377
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
378
+ },
379
+ {
380
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
381
+ },
382
+ {
383
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
384
+ },
385
+ {
386
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
387
+ },
388
+ { path: "plan.elementGroups.uiProperties.x" },
389
+ { path: "plan.elementGroups.uiProperties.y" },
390
+ { path: "plan.elementGroups.uiProperties.width" },
391
+ { path: "plan.elementGroups.uiProperties.height" },
392
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
393
+ ]
394
+ }
395
+ ])
396
+ };
397
+ return metadata;
398
+ }
399
+ return __copySeatingPlan;
400
+ }
401
+ function querySeatingPlan(payload) {
402
+ function __querySeatingPlan({ host }) {
403
+ const metadata = {
404
+ entityFqdn: "wix.seating.v1.seating_plan",
405
+ method: "POST",
406
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.QuerySeatingPlan",
407
+ packageName: PACKAGE_NAME,
408
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
409
+ protoPath: "/v1/plans/query",
410
+ data: payload,
411
+ host
412
+ }),
413
+ data: payload,
414
+ transformResponse: (payload2) => transformPaths(payload2, [
415
+ {
416
+ transformFn: transformRESTTimestampToSDKTimestamp,
417
+ paths: [
418
+ { path: "plans.createdDate" },
419
+ { path: "plans.updatedDate" }
420
+ ]
421
+ },
422
+ {
423
+ transformFn: transformRESTFloatToSDKFloat,
424
+ paths: [
425
+ { path: "plans.sections.elements.uiProperties.x" },
426
+ { path: "plans.sections.elements.uiProperties.y" },
427
+ { path: "plans.sections.elements.uiProperties.width" },
428
+ { path: "plans.sections.elements.uiProperties.height" },
429
+ { path: "plans.sections.elements.uiProperties.rotationAngle" },
430
+ {
431
+ path: "plans.sections.elements.multiRowProperties.curveAngleTo"
432
+ },
433
+ {
434
+ path: "plans.sections.elements.multiRowProperties.curveAngleFrom"
435
+ },
436
+ {
437
+ path: "plans.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
438
+ },
439
+ {
440
+ path: "plans.sections.elements.multiRowProperties.rows.uiProperties.width"
441
+ },
442
+ {
443
+ path: "plans.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
444
+ },
445
+ {
446
+ path: "plans.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
447
+ },
448
+ { path: "plans.elementGroups.uiProperties.x" },
449
+ { path: "plans.elementGroups.uiProperties.y" },
450
+ { path: "plans.elementGroups.uiProperties.width" },
451
+ { path: "plans.elementGroups.uiProperties.height" },
452
+ { path: "plans.elementGroups.uiProperties.rotationAngle" }
453
+ ]
454
+ }
455
+ ])
456
+ };
457
+ return metadata;
458
+ }
459
+ return __querySeatingPlan;
460
+ }
461
+ function getSeatingPlan(payload) {
462
+ function __getSeatingPlan({ host }) {
463
+ const metadata = {
464
+ entityFqdn: "wix.seating.v1.seating_plan",
465
+ method: "GET",
466
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.GetSeatingPlan",
467
+ packageName: PACKAGE_NAME,
468
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
469
+ protoPath: "/v1/plans/{id}",
470
+ data: payload,
471
+ host
472
+ }),
473
+ params: toURLSearchParams(payload),
474
+ transformResponse: (payload2) => transformPaths(payload2, [
475
+ {
476
+ transformFn: transformRESTTimestampToSDKTimestamp,
477
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
478
+ },
479
+ {
480
+ transformFn: transformRESTFloatToSDKFloat,
481
+ paths: [
482
+ { path: "plan.sections.elements.uiProperties.x" },
483
+ { path: "plan.sections.elements.uiProperties.y" },
484
+ { path: "plan.sections.elements.uiProperties.width" },
485
+ { path: "plan.sections.elements.uiProperties.height" },
486
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
487
+ {
488
+ path: "plan.sections.elements.multiRowProperties.curveAngleTo"
489
+ },
490
+ {
491
+ path: "plan.sections.elements.multiRowProperties.curveAngleFrom"
492
+ },
493
+ {
494
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
495
+ },
496
+ {
497
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
498
+ },
499
+ {
500
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
501
+ },
502
+ {
503
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
504
+ },
505
+ { path: "plan.elementGroups.uiProperties.x" },
506
+ { path: "plan.elementGroups.uiProperties.y" },
507
+ { path: "plan.elementGroups.uiProperties.width" },
508
+ { path: "plan.elementGroups.uiProperties.height" },
509
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
510
+ ]
511
+ }
512
+ ])
513
+ };
514
+ return metadata;
515
+ }
516
+ return __getSeatingPlan;
517
+ }
518
+ function findSeatingPlan(payload) {
519
+ function __findSeatingPlan({ host }) {
520
+ const metadata = {
521
+ entityFqdn: "wix.seating.v1.seating_plan",
522
+ method: "POST",
523
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.FindSeatingPlan",
524
+ packageName: PACKAGE_NAME,
525
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
526
+ protoPath: "/v1/plans/find",
527
+ data: payload,
528
+ host
529
+ }),
530
+ data: payload,
531
+ transformResponse: (payload2) => transformPaths(payload2, [
532
+ {
533
+ transformFn: transformRESTTimestampToSDKTimestamp,
534
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
535
+ },
536
+ {
537
+ transformFn: transformRESTFloatToSDKFloat,
538
+ paths: [
539
+ { path: "plan.sections.elements.uiProperties.x" },
540
+ { path: "plan.sections.elements.uiProperties.y" },
541
+ { path: "plan.sections.elements.uiProperties.width" },
542
+ { path: "plan.sections.elements.uiProperties.height" },
543
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
544
+ {
545
+ path: "plan.sections.elements.multiRowProperties.curveAngleTo"
546
+ },
547
+ {
548
+ path: "plan.sections.elements.multiRowProperties.curveAngleFrom"
549
+ },
550
+ {
551
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
552
+ },
553
+ {
554
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
555
+ },
556
+ {
557
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
558
+ },
559
+ {
560
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
561
+ },
562
+ { path: "plan.elementGroups.uiProperties.x" },
563
+ { path: "plan.elementGroups.uiProperties.y" },
564
+ { path: "plan.elementGroups.uiProperties.width" },
565
+ { path: "plan.elementGroups.uiProperties.height" },
566
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
567
+ ]
568
+ }
569
+ ])
570
+ };
571
+ return metadata;
572
+ }
573
+ return __findSeatingPlan;
574
+ }
575
+ function deleteSeatingPlan(payload) {
576
+ function __deleteSeatingPlan({ host }) {
577
+ const metadata = {
578
+ entityFqdn: "wix.seating.v1.seating_plan",
579
+ method: "DELETE",
580
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.DeleteSeatingPlan",
581
+ packageName: PACKAGE_NAME,
582
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
583
+ protoPath: "/v1/plans/{id}",
584
+ data: payload,
585
+ host
586
+ }),
587
+ params: toURLSearchParams(payload),
588
+ transformResponse: (payload2) => transformPaths(payload2, [
589
+ {
590
+ transformFn: transformRESTTimestampToSDKTimestamp,
591
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
592
+ },
593
+ {
594
+ transformFn: transformRESTFloatToSDKFloat,
595
+ paths: [
596
+ { path: "plan.sections.elements.uiProperties.x" },
597
+ { path: "plan.sections.elements.uiProperties.y" },
598
+ { path: "plan.sections.elements.uiProperties.width" },
599
+ { path: "plan.sections.elements.uiProperties.height" },
600
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
601
+ {
602
+ path: "plan.sections.elements.multiRowProperties.curveAngleTo"
603
+ },
604
+ {
605
+ path: "plan.sections.elements.multiRowProperties.curveAngleFrom"
606
+ },
607
+ {
608
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
609
+ },
610
+ {
611
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
612
+ },
613
+ {
614
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
615
+ },
616
+ {
617
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
618
+ },
619
+ { path: "plan.elementGroups.uiProperties.x" },
620
+ { path: "plan.elementGroups.uiProperties.y" },
621
+ { path: "plan.elementGroups.uiProperties.width" },
622
+ { path: "plan.elementGroups.uiProperties.height" },
623
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
624
+ ]
625
+ }
626
+ ])
627
+ };
628
+ return metadata;
629
+ }
630
+ return __deleteSeatingPlan;
631
+ }
632
+ function updateSeatingPlanThumbnail(payload) {
633
+ function __updateSeatingPlanThumbnail({ host }) {
634
+ const metadata = {
635
+ entityFqdn: "wix.seating.v1.seating_plan",
636
+ method: "POST",
637
+ methodFqn: "com.wixpress.seating.SeatingPlanThumbnailService.UpdateSeatingPlanThumbnail",
638
+ packageName: PACKAGE_NAME,
639
+ url: resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl({
640
+ protoPath: "/v1/plan-thumbnails",
641
+ data: payload,
642
+ host
643
+ }),
644
+ data: payload
645
+ };
646
+ return metadata;
647
+ }
648
+ return __updateSeatingPlanThumbnail;
649
+ }
650
+ function getSeatingPlanThumbnail(payload) {
651
+ function __getSeatingPlanThumbnail({ host }) {
652
+ const metadata = {
653
+ entityFqdn: "wix.seating.v1.seating_plan",
654
+ method: "GET",
655
+ methodFqn: "com.wixpress.seating.SeatingPlanThumbnailService.GetSeatingPlanThumbnail",
656
+ packageName: PACKAGE_NAME,
657
+ url: resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl({
658
+ protoPath: "/v1/plan-thumbnails",
659
+ data: payload,
660
+ host
661
+ }),
662
+ params: toURLSearchParams(payload)
663
+ };
664
+ return metadata;
665
+ }
666
+ return __getSeatingPlanThumbnail;
667
+ }
668
+
669
+ // src/seating-v1-seating-plan-seating-plan.universal.ts
670
+ import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
671
+ var Type = /* @__PURE__ */ ((Type2) => {
672
+ Type2["AREA"] = "AREA";
673
+ Type2["ROW"] = "ROW";
674
+ Type2["MULTI_ROW"] = "MULTI_ROW";
675
+ Type2["TABLE"] = "TABLE";
676
+ Type2["ROUND_TABLE"] = "ROUND_TABLE";
677
+ Type2["SHAPE"] = "SHAPE";
678
+ return Type2;
679
+ })(Type || {});
680
+ var PlaceTypeEnumType = /* @__PURE__ */ ((PlaceTypeEnumType2) => {
681
+ PlaceTypeEnumType2["UNKNOWN_PROPERTY"] = "UNKNOWN_PROPERTY";
682
+ PlaceTypeEnumType2["STANDARD"] = "STANDARD";
683
+ PlaceTypeEnumType2["WHEELCHAIR"] = "WHEELCHAIR";
684
+ PlaceTypeEnumType2["ACCESSIBLE"] = "ACCESSIBLE";
685
+ PlaceTypeEnumType2["COMPANION"] = "COMPANION";
686
+ PlaceTypeEnumType2["OBSTRUCTED"] = "OBSTRUCTED";
687
+ PlaceTypeEnumType2["DISCOUNT"] = "DISCOUNT";
688
+ return PlaceTypeEnumType2;
689
+ })(PlaceTypeEnumType || {});
690
+ var ShapeTypeEnumType = /* @__PURE__ */ ((ShapeTypeEnumType2) => {
691
+ ShapeTypeEnumType2["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
692
+ ShapeTypeEnumType2["TEXT"] = "TEXT";
693
+ ShapeTypeEnumType2["RECTANGLE"] = "RECTANGLE";
694
+ ShapeTypeEnumType2["ELLIPSE"] = "ELLIPSE";
695
+ ShapeTypeEnumType2["LINE"] = "LINE";
696
+ ShapeTypeEnumType2["ICON"] = "ICON";
697
+ ShapeTypeEnumType2["IMAGE"] = "IMAGE";
698
+ return ShapeTypeEnumType2;
699
+ })(ShapeTypeEnumType || {});
700
+ var Position = /* @__PURE__ */ ((Position2) => {
701
+ Position2["UNKNOWN_POSITION"] = "UNKNOWN_POSITION";
702
+ Position2["LEFT"] = "LEFT";
703
+ Position2["RIGHT"] = "RIGHT";
704
+ Position2["BOTH"] = "BOTH";
705
+ Position2["NONE"] = "NONE";
706
+ return Position2;
707
+ })(Position || {});
708
+ var Icon = /* @__PURE__ */ ((Icon2) => {
709
+ Icon2["UNKNOWN_ICON"] = "UNKNOWN_ICON";
710
+ Icon2["ENTER"] = "ENTER";
711
+ Icon2["EXIT"] = "EXIT";
712
+ Icon2["DRINKS"] = "DRINKS";
713
+ Icon2["WC"] = "WC";
714
+ Icon2["WC_MEN"] = "WC_MEN";
715
+ Icon2["WC_WOMEN"] = "WC_WOMEN";
716
+ Icon2["FOOD"] = "FOOD";
717
+ Icon2["STAIRS"] = "STAIRS";
718
+ Icon2["ELEVATOR"] = "ELEVATOR";
719
+ Icon2["SMOKING"] = "SMOKING";
720
+ Icon2["CHECKROOM"] = "CHECKROOM";
721
+ Icon2["STAGE"] = "STAGE";
722
+ return Icon2;
723
+ })(Icon || {});
724
+ var Numbering = /* @__PURE__ */ ((Numbering2) => {
725
+ Numbering2["UNKNOWN_NUMBERING"] = "UNKNOWN_NUMBERING";
726
+ Numbering2["NUMERIC"] = "NUMERIC";
727
+ Numbering2["ODD_EVEN"] = "ODD_EVEN";
728
+ Numbering2["ALPHABETICAL"] = "ALPHABETICAL";
729
+ return Numbering2;
730
+ })(Numbering || {});
731
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
732
+ SortOrder2["ASC"] = "ASC";
733
+ SortOrder2["DESC"] = "DESC";
734
+ return SortOrder2;
735
+ })(SortOrder || {});
736
+ var Fieldset = /* @__PURE__ */ ((Fieldset2) => {
737
+ Fieldset2["ELEMENTS"] = "ELEMENTS";
738
+ Fieldset2["CATEGORIES"] = "CATEGORIES";
739
+ Fieldset2["PLACES"] = "PLACES";
740
+ Fieldset2["CONFIG"] = "CONFIG";
741
+ Fieldset2["ELEMENT_GROUPS"] = "ELEMENT_GROUPS";
742
+ return Fieldset2;
743
+ })(Fieldset || {});
744
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
745
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
746
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
747
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
748
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
749
+ WebhookIdentityType2["APP"] = "APP";
750
+ return WebhookIdentityType2;
751
+ })(WebhookIdentityType || {});
752
+ async function createSeatingPlan2(plan) {
753
+ const { httpClient, sideEffects } = arguments[1];
754
+ const payload = renameKeysFromSDKRequestToRESTRequest({ plan });
755
+ const reqOpts = createSeatingPlan(payload);
756
+ sideEffects?.onSiteCall?.();
757
+ try {
758
+ const result = await httpClient.request(reqOpts);
759
+ sideEffects?.onSuccess?.(result);
760
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.plan;
761
+ } catch (err) {
762
+ const transformedError = sdkTransformError(
763
+ err,
764
+ {
765
+ spreadPathsToArguments: {},
766
+ explicitPathsToArguments: { plan: "$[0]" },
767
+ singleArgumentUnchanged: false
768
+ },
769
+ ["plan"]
770
+ );
771
+ sideEffects?.onError?.(err);
772
+ throw transformedError;
773
+ }
774
+ }
775
+ async function updateSeatingPlan2(options) {
776
+ const { httpClient, sideEffects } = arguments[1];
777
+ const payload = renameKeysFromSDKRequestToRESTRequest({
778
+ plan: options?.plan,
779
+ fields: options?.fields
780
+ });
781
+ const reqOpts = updateSeatingPlan(payload);
782
+ sideEffects?.onSiteCall?.();
783
+ try {
784
+ const result = await httpClient.request(reqOpts);
785
+ sideEffects?.onSuccess?.(result);
786
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.plan;
787
+ } catch (err) {
788
+ const transformedError = sdkTransformError(
789
+ err,
790
+ {
791
+ spreadPathsToArguments: {},
792
+ explicitPathsToArguments: { plan: "$[0].plan", fields: "$[0].fields" },
793
+ singleArgumentUnchanged: false
794
+ },
795
+ ["options"]
796
+ );
797
+ sideEffects?.onError?.(err);
798
+ throw transformedError;
799
+ }
800
+ }
801
+ async function copySeatingPlan2(_id, options) {
802
+ const { httpClient, sideEffects } = arguments[2];
803
+ const payload = renameKeysFromSDKRequestToRESTRequest({
804
+ id: _id,
805
+ title: options?.title,
806
+ externalId: options?.externalId
807
+ });
808
+ const reqOpts = copySeatingPlan(payload);
809
+ sideEffects?.onSiteCall?.();
810
+ try {
811
+ const result = await httpClient.request(reqOpts);
812
+ sideEffects?.onSuccess?.(result);
813
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
814
+ } catch (err) {
815
+ const transformedError = sdkTransformError(
816
+ err,
817
+ {
818
+ spreadPathsToArguments: {},
819
+ explicitPathsToArguments: {
820
+ id: "$[0]",
821
+ title: "$[1].title",
822
+ externalId: "$[1].externalId"
823
+ },
824
+ singleArgumentUnchanged: false
825
+ },
826
+ ["_id", "options"]
827
+ );
828
+ sideEffects?.onError?.(err);
829
+ throw transformedError;
830
+ }
831
+ }
832
+ function querySeatingPlan2(options) {
833
+ const { httpClient, sideEffects } = arguments[1];
834
+ return queryBuilder({
835
+ func: async (payload) => {
836
+ const reqOpts = querySeatingPlan({
837
+ ...payload,
838
+ ...options ?? {}
839
+ });
840
+ sideEffects?.onSiteCall?.();
841
+ try {
842
+ const result = await httpClient.request(reqOpts);
843
+ sideEffects?.onSuccess?.(result);
844
+ return result;
845
+ } catch (err) {
846
+ sideEffects?.onError?.(err);
847
+ throw err;
848
+ }
849
+ },
850
+ requestTransformer: (query) => {
851
+ const args = [query, options];
852
+ return renameKeysFromSDKRequestToRESTRequest({
853
+ ...args?.[1],
854
+ query: args?.[0]
855
+ });
856
+ },
857
+ responseTransformer: ({ data }) => {
858
+ const transformedData = renameKeysFromRESTResponseToSDKResponse(
859
+ transformPaths2(data, [])
860
+ );
861
+ return {
862
+ items: transformedData?.plans,
863
+ pagingMetadata: transformedData?.metadata
864
+ };
865
+ },
866
+ errorTransformer: (err) => {
867
+ const transformedError = sdkTransformError(err, {
868
+ spreadPathsToArguments: {},
869
+ explicitPathsToArguments: { query: "$[0]" },
870
+ singleArgumentUnchanged: false
871
+ });
872
+ throw transformedError;
873
+ },
874
+ pagingMethod: "CURSOR",
875
+ transformationPaths: {}
876
+ });
877
+ }
878
+ async function getSeatingPlan2(_id, options) {
879
+ const { httpClient, sideEffects } = arguments[2];
880
+ const payload = renameKeysFromSDKRequestToRESTRequest({
881
+ id: _id,
882
+ fieldset: options?.fieldset,
883
+ fieldsets: options?.fieldsets,
884
+ seatingPlanMask: options?.seatingPlanMask
885
+ });
886
+ const reqOpts = getSeatingPlan(payload);
887
+ sideEffects?.onSiteCall?.();
888
+ try {
889
+ const result = await httpClient.request(reqOpts);
890
+ sideEffects?.onSuccess?.(result);
891
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.plan;
892
+ } catch (err) {
893
+ const transformedError = sdkTransformError(
894
+ err,
895
+ {
896
+ spreadPathsToArguments: {},
897
+ explicitPathsToArguments: {
898
+ id: "$[0]",
899
+ fieldset: "$[1].fieldset",
900
+ fieldsets: "$[1].fieldsets",
901
+ seatingPlanMask: "$[1].seatingPlanMask"
902
+ },
903
+ singleArgumentUnchanged: false
904
+ },
905
+ ["_id", "options"]
906
+ );
907
+ sideEffects?.onError?.(err);
908
+ throw transformedError;
909
+ }
910
+ }
911
+ async function findSeatingPlan2(filter, options) {
912
+ const { httpClient, sideEffects } = arguments[2];
913
+ const payload = renameKeysFromSDKRequestToRESTRequest({
914
+ filter,
915
+ fieldset: options?.fieldset,
916
+ fieldsets: options?.fieldsets,
917
+ seatingPlanMask: options?.seatingPlanMask
918
+ });
919
+ const reqOpts = findSeatingPlan(payload);
920
+ sideEffects?.onSiteCall?.();
921
+ try {
922
+ const result = await httpClient.request(reqOpts);
923
+ sideEffects?.onSuccess?.(result);
924
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
925
+ } catch (err) {
926
+ const transformedError = sdkTransformError(
927
+ err,
928
+ {
929
+ spreadPathsToArguments: {},
930
+ explicitPathsToArguments: {
931
+ filter: "$[0]",
932
+ fieldset: "$[1].fieldset",
933
+ fieldsets: "$[1].fieldsets",
934
+ seatingPlanMask: "$[1].seatingPlanMask"
935
+ },
936
+ singleArgumentUnchanged: false
937
+ },
938
+ ["filter", "options"]
939
+ );
940
+ sideEffects?.onError?.(err);
941
+ throw transformedError;
942
+ }
943
+ }
944
+ async function deleteSeatingPlan2(_id) {
945
+ const { httpClient, sideEffects } = arguments[1];
946
+ const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
947
+ const reqOpts = deleteSeatingPlan(payload);
948
+ sideEffects?.onSiteCall?.();
949
+ try {
950
+ const result = await httpClient.request(reqOpts);
951
+ sideEffects?.onSuccess?.(result);
952
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
953
+ } catch (err) {
954
+ const transformedError = sdkTransformError(
955
+ err,
956
+ {
957
+ spreadPathsToArguments: {},
958
+ explicitPathsToArguments: { id: "$[0]" },
959
+ singleArgumentUnchanged: false
960
+ },
961
+ ["_id"]
962
+ );
963
+ sideEffects?.onError?.(err);
964
+ throw transformedError;
965
+ }
966
+ }
967
+ async function updateSeatingPlanThumbnail2(thumbnail) {
968
+ const { httpClient, sideEffects } = arguments[1];
969
+ const payload = renameKeysFromSDKRequestToRESTRequest({
970
+ thumbnail
971
+ });
972
+ const reqOpts = updateSeatingPlanThumbnail(payload);
973
+ sideEffects?.onSiteCall?.();
974
+ try {
975
+ const result = await httpClient.request(reqOpts);
976
+ sideEffects?.onSuccess?.(result);
977
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
978
+ } catch (err) {
979
+ const transformedError = sdkTransformError(
980
+ err,
981
+ {
982
+ spreadPathsToArguments: {},
983
+ explicitPathsToArguments: { thumbnail: "$[0]" },
984
+ singleArgumentUnchanged: false
985
+ },
986
+ ["thumbnail"]
987
+ );
988
+ sideEffects?.onError?.(err);
989
+ throw transformedError;
990
+ }
991
+ }
992
+ async function getSeatingPlanThumbnail2(_id) {
993
+ const { httpClient, sideEffects } = arguments[1];
994
+ const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
995
+ const reqOpts = getSeatingPlanThumbnail(payload);
996
+ sideEffects?.onSiteCall?.();
997
+ try {
998
+ const result = await httpClient.request(reqOpts);
999
+ sideEffects?.onSuccess?.(result);
1000
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1001
+ } catch (err) {
1002
+ const transformedError = sdkTransformError(
1003
+ err,
1004
+ {
1005
+ spreadPathsToArguments: {},
1006
+ explicitPathsToArguments: { id: "$[0]" },
1007
+ singleArgumentUnchanged: false
1008
+ },
1009
+ ["_id"]
1010
+ );
1011
+ sideEffects?.onError?.(err);
1012
+ throw transformedError;
1013
+ }
1014
+ }
1015
+
1016
+ // src/seating-v1-seating-plan-seating-plan.public.ts
1017
+ function createSeatingPlan3(httpClient) {
1018
+ return (plan) => createSeatingPlan2(
1019
+ plan,
1020
+ // @ts-ignore
1021
+ { httpClient }
1022
+ );
1023
+ }
1024
+ function updateSeatingPlan3(httpClient) {
1025
+ return (options) => updateSeatingPlan2(
1026
+ options,
1027
+ // @ts-ignore
1028
+ { httpClient }
1029
+ );
1030
+ }
1031
+ function copySeatingPlan3(httpClient) {
1032
+ return (_id, options) => copySeatingPlan2(
1033
+ _id,
1034
+ options,
1035
+ // @ts-ignore
1036
+ { httpClient }
1037
+ );
1038
+ }
1039
+ function querySeatingPlan3(httpClient) {
1040
+ return (options) => querySeatingPlan2(
1041
+ options,
1042
+ // @ts-ignore
1043
+ { httpClient }
1044
+ );
1045
+ }
1046
+ function getSeatingPlan3(httpClient) {
1047
+ return (_id, options) => getSeatingPlan2(
1048
+ _id,
1049
+ options,
1050
+ // @ts-ignore
1051
+ { httpClient }
1052
+ );
1053
+ }
1054
+ function findSeatingPlan3(httpClient) {
1055
+ return (filter, options) => findSeatingPlan2(
1056
+ filter,
1057
+ options,
1058
+ // @ts-ignore
1059
+ { httpClient }
1060
+ );
1061
+ }
1062
+ function deleteSeatingPlan3(httpClient) {
1063
+ return (_id) => deleteSeatingPlan2(
1064
+ _id,
1065
+ // @ts-ignore
1066
+ { httpClient }
1067
+ );
1068
+ }
1069
+ function updateSeatingPlanThumbnail3(httpClient) {
1070
+ return (thumbnail) => updateSeatingPlanThumbnail2(
1071
+ thumbnail,
1072
+ // @ts-ignore
1073
+ { httpClient }
1074
+ );
1075
+ }
1076
+ function getSeatingPlanThumbnail3(httpClient) {
1077
+ return (_id) => getSeatingPlanThumbnail2(
1078
+ _id,
1079
+ // @ts-ignore
1080
+ { httpClient }
1081
+ );
1082
+ }
1083
+ var onSeatingPlanCreated = EventDefinition(
1084
+ "wix.seating.v1.seating_plan_created",
1085
+ true,
1086
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
1087
+ transformPaths3(event, [
1088
+ {
1089
+ transformFn: transformRESTTimestampToSDKTimestamp2,
1090
+ paths: [
1091
+ { path: "entity.createdDate" },
1092
+ { path: "entity.updatedDate" },
1093
+ { path: "metadata.eventTime" }
1094
+ ]
1095
+ },
1096
+ {
1097
+ transformFn: transformRESTFloatToSDKFloat2,
1098
+ paths: [
1099
+ { path: "entity.sections.elements.uiProperties.x" },
1100
+ { path: "entity.sections.elements.uiProperties.y" },
1101
+ { path: "entity.sections.elements.uiProperties.width" },
1102
+ { path: "entity.sections.elements.uiProperties.height" },
1103
+ { path: "entity.sections.elements.uiProperties.rotationAngle" },
1104
+ {
1105
+ path: "entity.sections.elements.multiRowProperties.curveAngleTo"
1106
+ },
1107
+ {
1108
+ path: "entity.sections.elements.multiRowProperties.curveAngleFrom"
1109
+ },
1110
+ {
1111
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
1112
+ },
1113
+ {
1114
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.width"
1115
+ },
1116
+ {
1117
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
1118
+ },
1119
+ {
1120
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
1121
+ },
1122
+ { path: "entity.elementGroups.uiProperties.x" },
1123
+ { path: "entity.elementGroups.uiProperties.y" },
1124
+ { path: "entity.elementGroups.uiProperties.width" },
1125
+ { path: "entity.elementGroups.uiProperties.height" },
1126
+ { path: "entity.elementGroups.uiProperties.rotationAngle" }
1127
+ ]
1128
+ }
1129
+ ])
1130
+ )
1131
+ )();
1132
+ var onSeatingPlanDeleted = EventDefinition(
1133
+ "wix.seating.v1.seating_plan_deleted",
1134
+ true,
1135
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
1136
+ transformPaths3(event, [
1137
+ {
1138
+ transformFn: transformRESTTimestampToSDKTimestamp2,
1139
+ paths: [
1140
+ { path: "entity.createdDate" },
1141
+ { path: "entity.updatedDate" },
1142
+ { path: "metadata.eventTime" }
1143
+ ]
1144
+ },
1145
+ {
1146
+ transformFn: transformRESTFloatToSDKFloat2,
1147
+ paths: [
1148
+ { path: "entity.sections.elements.uiProperties.x" },
1149
+ { path: "entity.sections.elements.uiProperties.y" },
1150
+ { path: "entity.sections.elements.uiProperties.width" },
1151
+ { path: "entity.sections.elements.uiProperties.height" },
1152
+ { path: "entity.sections.elements.uiProperties.rotationAngle" },
1153
+ {
1154
+ path: "entity.sections.elements.multiRowProperties.curveAngleTo"
1155
+ },
1156
+ {
1157
+ path: "entity.sections.elements.multiRowProperties.curveAngleFrom"
1158
+ },
1159
+ {
1160
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
1161
+ },
1162
+ {
1163
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.width"
1164
+ },
1165
+ {
1166
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
1167
+ },
1168
+ {
1169
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
1170
+ },
1171
+ { path: "entity.elementGroups.uiProperties.x" },
1172
+ { path: "entity.elementGroups.uiProperties.y" },
1173
+ { path: "entity.elementGroups.uiProperties.width" },
1174
+ { path: "entity.elementGroups.uiProperties.height" },
1175
+ { path: "entity.elementGroups.uiProperties.rotationAngle" }
1176
+ ]
1177
+ }
1178
+ ])
1179
+ )
1180
+ )();
1181
+ var onSeatingPlanUpdated = EventDefinition(
1182
+ "wix.seating.v1.seating_plan_updated",
1183
+ true,
1184
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
1185
+ transformPaths3(event, [
1186
+ {
1187
+ transformFn: transformRESTTimestampToSDKTimestamp2,
1188
+ paths: [
1189
+ { path: "entity.createdDate" },
1190
+ { path: "entity.updatedDate" },
1191
+ { path: "metadata.eventTime" }
1192
+ ]
1193
+ },
1194
+ {
1195
+ transformFn: transformRESTFloatToSDKFloat2,
1196
+ paths: [
1197
+ { path: "entity.sections.elements.uiProperties.x" },
1198
+ { path: "entity.sections.elements.uiProperties.y" },
1199
+ { path: "entity.sections.elements.uiProperties.width" },
1200
+ { path: "entity.sections.elements.uiProperties.height" },
1201
+ { path: "entity.sections.elements.uiProperties.rotationAngle" },
1202
+ {
1203
+ path: "entity.sections.elements.multiRowProperties.curveAngleTo"
1204
+ },
1205
+ {
1206
+ path: "entity.sections.elements.multiRowProperties.curveAngleFrom"
1207
+ },
1208
+ {
1209
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
1210
+ },
1211
+ {
1212
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.width"
1213
+ },
1214
+ {
1215
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
1216
+ },
1217
+ {
1218
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
1219
+ },
1220
+ { path: "entity.elementGroups.uiProperties.x" },
1221
+ { path: "entity.elementGroups.uiProperties.y" },
1222
+ { path: "entity.elementGroups.uiProperties.width" },
1223
+ { path: "entity.elementGroups.uiProperties.height" },
1224
+ { path: "entity.elementGroups.uiProperties.rotationAngle" }
1225
+ ]
1226
+ }
1227
+ ])
1228
+ )
1229
+ )();
1230
+
1231
+ // src/seating-v1-seating-plan-seating-plan.context.ts
1232
+ import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
1233
+ import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
1234
+ var createSeatingPlan4 = /* @__PURE__ */ createRESTModule(createSeatingPlan3);
1235
+ var updateSeatingPlan4 = /* @__PURE__ */ createRESTModule(updateSeatingPlan3);
1236
+ var copySeatingPlan4 = /* @__PURE__ */ createRESTModule(copySeatingPlan3);
1237
+ var querySeatingPlan4 = /* @__PURE__ */ createRESTModule(querySeatingPlan3);
1238
+ var getSeatingPlan4 = /* @__PURE__ */ createRESTModule(getSeatingPlan3);
1239
+ var findSeatingPlan4 = /* @__PURE__ */ createRESTModule(findSeatingPlan3);
1240
+ var deleteSeatingPlan4 = /* @__PURE__ */ createRESTModule(deleteSeatingPlan3);
1241
+ var updateSeatingPlanThumbnail4 = /* @__PURE__ */ createRESTModule(updateSeatingPlanThumbnail3);
1242
+ var getSeatingPlanThumbnail4 = /* @__PURE__ */ createRESTModule(getSeatingPlanThumbnail3);
1243
+ var onSeatingPlanCreated2 = createEventModule(onSeatingPlanCreated);
1244
+ var onSeatingPlanDeleted2 = createEventModule(onSeatingPlanDeleted);
1245
+ var onSeatingPlanUpdated2 = createEventModule(onSeatingPlanUpdated);
1246
+ export {
1247
+ Fieldset,
1248
+ Icon,
1249
+ Numbering,
1250
+ PlaceTypeEnumType,
1251
+ Position,
1252
+ ShapeTypeEnumType,
1253
+ SortOrder,
1254
+ Type,
1255
+ WebhookIdentityType,
1256
+ copySeatingPlan4 as copySeatingPlan,
1257
+ createSeatingPlan4 as createSeatingPlan,
1258
+ deleteSeatingPlan4 as deleteSeatingPlan,
1259
+ findSeatingPlan4 as findSeatingPlan,
1260
+ getSeatingPlan4 as getSeatingPlan,
1261
+ getSeatingPlanThumbnail4 as getSeatingPlanThumbnail,
1262
+ onSeatingPlanCreated2 as onSeatingPlanCreated,
1263
+ onSeatingPlanDeleted2 as onSeatingPlanDeleted,
1264
+ onSeatingPlanUpdated2 as onSeatingPlanUpdated,
1265
+ querySeatingPlan4 as querySeatingPlan,
1266
+ updateSeatingPlan4 as updateSeatingPlan,
1267
+ updateSeatingPlanThumbnail4 as updateSeatingPlanThumbnail
1268
+ };
1269
+ //# sourceMappingURL=index.mjs.map