@wix/auto_sdk_seatings_seating-plan 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/seating-v1-seating-plan-seating-plan.context.d.ts +23 -0
  11. package/build/cjs/src/seating-v1-seating-plan-seating-plan.context.js +35 -0
  12. package/build/cjs/src/seating-v1-seating-plan-seating-plan.context.js.map +1 -0
  13. package/build/cjs/src/seating-v1-seating-plan-seating-plan.http.d.ts +19 -0
  14. package/build/cjs/src/seating-v1-seating-plan-seating-plan.http.js +673 -0
  15. package/build/cjs/src/seating-v1-seating-plan-seating-plan.http.js.map +1 -0
  16. package/build/cjs/src/seating-v1-seating-plan-seating-plan.meta.d.ts +25 -0
  17. package/build/cjs/src/seating-v1-seating-plan-seating-plan.meta.js +199 -0
  18. package/build/cjs/src/seating-v1-seating-plan-seating-plan.meta.js.map +1 -0
  19. package/build/cjs/src/seating-v1-seating-plan-seating-plan.public.d.ts +80 -0
  20. package/build/cjs/src/seating-v1-seating-plan-seating-plan.public.js +204 -0
  21. package/build/cjs/src/seating-v1-seating-plan-seating-plan.public.js.map +1 -0
  22. package/build/cjs/src/seating-v1-seating-plan-seating-plan.types.d.ts +815 -0
  23. package/build/cjs/src/seating-v1-seating-plan-seating-plan.types.js +85 -0
  24. package/build/cjs/src/seating-v1-seating-plan-seating-plan.types.js.map +1 -0
  25. package/build/cjs/src/seating-v1-seating-plan-seating-plan.universal.d.ts +1060 -0
  26. package/build/cjs/src/seating-v1-seating-plan-seating-plan.universal.js +458 -0
  27. package/build/cjs/src/seating-v1-seating-plan-seating-plan.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/seating-v1-seating-plan-seating-plan.context.d.ts +23 -0
  39. package/build/es/src/seating-v1-seating-plan-seating-plan.context.js +23 -0
  40. package/build/es/src/seating-v1-seating-plan-seating-plan.context.js.map +1 -0
  41. package/build/es/src/seating-v1-seating-plan-seating-plan.http.d.ts +19 -0
  42. package/build/es/src/seating-v1-seating-plan-seating-plan.http.js +661 -0
  43. package/build/es/src/seating-v1-seating-plan-seating-plan.http.js.map +1 -0
  44. package/build/es/src/seating-v1-seating-plan-seating-plan.meta.d.ts +25 -0
  45. package/build/es/src/seating-v1-seating-plan-seating-plan.meta.js +164 -0
  46. package/build/es/src/seating-v1-seating-plan-seating-plan.meta.js.map +1 -0
  47. package/build/es/src/seating-v1-seating-plan-seating-plan.public.d.ts +80 -0
  48. package/build/es/src/seating-v1-seating-plan-seating-plan.public.js +183 -0
  49. package/build/es/src/seating-v1-seating-plan-seating-plan.public.js.map +1 -0
  50. package/build/es/src/seating-v1-seating-plan-seating-plan.types.d.ts +815 -0
  51. package/build/es/src/seating-v1-seating-plan-seating-plan.types.js +82 -0
  52. package/build/es/src/seating-v1-seating-plan-seating-plan.types.js.map +1 -0
  53. package/build/es/src/seating-v1-seating-plan-seating-plan.universal.d.ts +1060 -0
  54. package/build/es/src/seating-v1-seating-plan-seating-plan.universal.js +423 -0
  55. package/build/es/src/seating-v1-seating-plan-seating-plan.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/seating-v1-seating-plan-seating-plan.context.d.ts +23 -0
  66. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.context.js +35 -0
  67. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.context.js.map +1 -0
  68. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.http.d.ts +19 -0
  69. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.http.js +673 -0
  70. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.http.js.map +1 -0
  71. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.meta.d.ts +25 -0
  72. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.meta.js +199 -0
  73. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.meta.js.map +1 -0
  74. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.public.d.ts +80 -0
  75. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.public.js +204 -0
  76. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.public.js.map +1 -0
  77. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.types.d.ts +815 -0
  78. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.types.js +85 -0
  79. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.types.js.map +1 -0
  80. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.universal.d.ts +1060 -0
  81. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.universal.js +458 -0
  82. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.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/seating-v1-seating-plan-seating-plan.context.d.ts +23 -0
  93. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.context.js +23 -0
  94. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.context.js.map +1 -0
  95. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.http.d.ts +19 -0
  96. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.http.js +661 -0
  97. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.http.js.map +1 -0
  98. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.meta.d.ts +25 -0
  99. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.meta.js +164 -0
  100. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.meta.js.map +1 -0
  101. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.public.d.ts +80 -0
  102. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.public.js +183 -0
  103. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.public.js.map +1 -0
  104. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.types.d.ts +815 -0
  105. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.types.js +82 -0
  106. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.types.js.map +1 -0
  107. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.universal.d.ts +1060 -0
  108. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.universal.js +423 -0
  109. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,661 @@
1
+ import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';
2
+ import { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';
3
+ import { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';
4
+ import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
5
+ import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
6
+ import { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';
7
+ import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
8
+ import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
9
+ function resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl(opts) {
10
+ const domainToMappings = {
11
+ 'manage._base_domain_': [
12
+ {
13
+ srcPath: '/_api/seating-plans',
14
+ destPath: '',
15
+ },
16
+ ],
17
+ 'www._base_domain_': [
18
+ {
19
+ srcPath: '/_api/seating-plans',
20
+ destPath: '',
21
+ },
22
+ ],
23
+ 'editor-flow.wixapps.net': [
24
+ {
25
+ srcPath: '/_api/seating-plans',
26
+ destPath: '',
27
+ },
28
+ ],
29
+ 'editor._base_domain_': [
30
+ {
31
+ srcPath: '/_api/seating-plans',
32
+ destPath: '',
33
+ },
34
+ ],
35
+ 'blocks._base_domain_': [
36
+ {
37
+ srcPath: '/_api/seating-plans',
38
+ destPath: '',
39
+ },
40
+ ],
41
+ 'create.editorx': [
42
+ {
43
+ srcPath: '/_api/seating-plans',
44
+ destPath: '',
45
+ },
46
+ ],
47
+ 'api._base_domain_': [
48
+ {
49
+ srcPath: '/seating-plans',
50
+ destPath: '',
51
+ },
52
+ ],
53
+ 'editor.wixapps.net': [
54
+ {
55
+ srcPath: '/_api/seating-plans',
56
+ destPath: '',
57
+ },
58
+ ],
59
+ 'api._api_base_domain_': [
60
+ {
61
+ srcPath: '/seating-plans',
62
+ destPath: '',
63
+ },
64
+ ],
65
+ _: [
66
+ {
67
+ srcPath: '/_api/seating-plans',
68
+ destPath: '',
69
+ },
70
+ ],
71
+ };
72
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
73
+ }
74
+ function resolveComWixpressSeatingSeatingPlanManagementUrl(opts) {
75
+ const domainToMappings = {
76
+ 'manage._base_domain_': [
77
+ {
78
+ srcPath: '/_api/seating-plans',
79
+ destPath: '',
80
+ },
81
+ ],
82
+ 'www._base_domain_': [
83
+ {
84
+ srcPath: '/_api/seating-plans',
85
+ destPath: '',
86
+ },
87
+ ],
88
+ 'editor-flow.wixapps.net': [
89
+ {
90
+ srcPath: '/_api/seating-plans',
91
+ destPath: '',
92
+ },
93
+ ],
94
+ 'editor._base_domain_': [
95
+ {
96
+ srcPath: '/_api/seating-plans',
97
+ destPath: '',
98
+ },
99
+ ],
100
+ 'blocks._base_domain_': [
101
+ {
102
+ srcPath: '/_api/seating-plans',
103
+ destPath: '',
104
+ },
105
+ ],
106
+ 'create.editorx': [
107
+ {
108
+ srcPath: '/_api/seating-plans',
109
+ destPath: '',
110
+ },
111
+ ],
112
+ 'api._base_domain_': [
113
+ {
114
+ srcPath: '/seating-plans',
115
+ destPath: '',
116
+ },
117
+ ],
118
+ 'editor.wixapps.net': [
119
+ {
120
+ srcPath: '/_api/seating-plans',
121
+ destPath: '',
122
+ },
123
+ ],
124
+ 'api._api_base_domain_': [
125
+ {
126
+ srcPath: '/seating-plans',
127
+ destPath: '',
128
+ },
129
+ ],
130
+ _: [
131
+ {
132
+ srcPath: '/_api/seating-plans',
133
+ destPath: '',
134
+ },
135
+ ],
136
+ };
137
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
138
+ }
139
+ const PACKAGE_NAME = '@wix/auto_sdk_seatings_seating-plan';
140
+ /** Crates a seating plan */
141
+ export function createSeatingPlan(payload) {
142
+ function __createSeatingPlan({ host }) {
143
+ const serializedData = transformPaths(payload, [
144
+ {
145
+ transformFn: transformSDKTimestampToRESTTimestamp,
146
+ paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],
147
+ },
148
+ {
149
+ transformFn: transformSDKFloatToRESTFloat,
150
+ paths: [
151
+ { path: 'plan.sections.elements.uiProperties.x' },
152
+ { path: 'plan.sections.elements.uiProperties.y' },
153
+ { path: 'plan.sections.elements.uiProperties.width' },
154
+ { path: 'plan.sections.elements.uiProperties.height' },
155
+ { path: 'plan.sections.elements.uiProperties.rotationAngle' },
156
+ { path: 'plan.sections.elements.multiRowProperties.curveAngleTo' },
157
+ { path: 'plan.sections.elements.multiRowProperties.curveAngleFrom' },
158
+ {
159
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX',
160
+ },
161
+ {
162
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.width',
163
+ },
164
+ {
165
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom',
166
+ },
167
+ {
168
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo',
169
+ },
170
+ { path: 'plan.elementGroups.uiProperties.x' },
171
+ { path: 'plan.elementGroups.uiProperties.y' },
172
+ { path: 'plan.elementGroups.uiProperties.width' },
173
+ { path: 'plan.elementGroups.uiProperties.height' },
174
+ { path: 'plan.elementGroups.uiProperties.rotationAngle' },
175
+ ],
176
+ },
177
+ ]);
178
+ const metadata = {
179
+ entityFqdn: 'wix.seating.v1.seating_plan',
180
+ method: 'POST',
181
+ methodFqn: 'com.wixpress.seating.SeatingPlanManagement.CreateSeatingPlan',
182
+ packageName: PACKAGE_NAME,
183
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
184
+ protoPath: '/v1/plans',
185
+ data: serializedData,
186
+ host,
187
+ }),
188
+ data: serializedData,
189
+ transformResponse: (payload) => transformPaths(payload, [
190
+ {
191
+ transformFn: transformRESTTimestampToSDKTimestamp,
192
+ paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],
193
+ },
194
+ {
195
+ transformFn: transformRESTFloatToSDKFloat,
196
+ paths: [
197
+ { path: 'plan.sections.elements.uiProperties.x' },
198
+ { path: 'plan.sections.elements.uiProperties.y' },
199
+ { path: 'plan.sections.elements.uiProperties.width' },
200
+ { path: 'plan.sections.elements.uiProperties.height' },
201
+ { path: 'plan.sections.elements.uiProperties.rotationAngle' },
202
+ {
203
+ path: 'plan.sections.elements.multiRowProperties.curveAngleTo',
204
+ },
205
+ {
206
+ path: 'plan.sections.elements.multiRowProperties.curveAngleFrom',
207
+ },
208
+ {
209
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX',
210
+ },
211
+ {
212
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.width',
213
+ },
214
+ {
215
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom',
216
+ },
217
+ {
218
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo',
219
+ },
220
+ { path: 'plan.elementGroups.uiProperties.x' },
221
+ { path: 'plan.elementGroups.uiProperties.y' },
222
+ { path: 'plan.elementGroups.uiProperties.width' },
223
+ { path: 'plan.elementGroups.uiProperties.height' },
224
+ { path: 'plan.elementGroups.uiProperties.rotationAngle' },
225
+ ],
226
+ },
227
+ ]),
228
+ };
229
+ return metadata;
230
+ }
231
+ return __createSeatingPlan;
232
+ }
233
+ /** Updates the seating plan */
234
+ export function updateSeatingPlan(payload) {
235
+ function __updateSeatingPlan({ host }) {
236
+ const serializedData = transformPaths(payload, [
237
+ {
238
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
239
+ paths: [{ path: 'fields' }],
240
+ },
241
+ {
242
+ transformFn: transformSDKTimestampToRESTTimestamp,
243
+ paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],
244
+ },
245
+ {
246
+ transformFn: transformSDKFloatToRESTFloat,
247
+ paths: [
248
+ { path: 'plan.sections.elements.uiProperties.x' },
249
+ { path: 'plan.sections.elements.uiProperties.y' },
250
+ { path: 'plan.sections.elements.uiProperties.width' },
251
+ { path: 'plan.sections.elements.uiProperties.height' },
252
+ { path: 'plan.sections.elements.uiProperties.rotationAngle' },
253
+ { path: 'plan.sections.elements.multiRowProperties.curveAngleTo' },
254
+ { path: 'plan.sections.elements.multiRowProperties.curveAngleFrom' },
255
+ {
256
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX',
257
+ },
258
+ {
259
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.width',
260
+ },
261
+ {
262
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom',
263
+ },
264
+ {
265
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo',
266
+ },
267
+ { path: 'plan.elementGroups.uiProperties.x' },
268
+ { path: 'plan.elementGroups.uiProperties.y' },
269
+ { path: 'plan.elementGroups.uiProperties.width' },
270
+ { path: 'plan.elementGroups.uiProperties.height' },
271
+ { path: 'plan.elementGroups.uiProperties.rotationAngle' },
272
+ ],
273
+ },
274
+ ]);
275
+ const metadata = {
276
+ entityFqdn: 'wix.seating.v1.seating_plan',
277
+ method: 'PUT',
278
+ methodFqn: 'com.wixpress.seating.SeatingPlanManagement.UpdateSeatingPlan',
279
+ packageName: PACKAGE_NAME,
280
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
281
+ protoPath: '/v1/plans',
282
+ data: serializedData,
283
+ host,
284
+ }),
285
+ data: serializedData,
286
+ transformResponse: (payload) => transformPaths(payload, [
287
+ {
288
+ transformFn: transformRESTTimestampToSDKTimestamp,
289
+ paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],
290
+ },
291
+ {
292
+ transformFn: transformRESTFloatToSDKFloat,
293
+ paths: [
294
+ { path: 'plan.sections.elements.uiProperties.x' },
295
+ { path: 'plan.sections.elements.uiProperties.y' },
296
+ { path: 'plan.sections.elements.uiProperties.width' },
297
+ { path: 'plan.sections.elements.uiProperties.height' },
298
+ { path: 'plan.sections.elements.uiProperties.rotationAngle' },
299
+ {
300
+ path: 'plan.sections.elements.multiRowProperties.curveAngleTo',
301
+ },
302
+ {
303
+ path: 'plan.sections.elements.multiRowProperties.curveAngleFrom',
304
+ },
305
+ {
306
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX',
307
+ },
308
+ {
309
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.width',
310
+ },
311
+ {
312
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom',
313
+ },
314
+ {
315
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo',
316
+ },
317
+ { path: 'plan.elementGroups.uiProperties.x' },
318
+ { path: 'plan.elementGroups.uiProperties.y' },
319
+ { path: 'plan.elementGroups.uiProperties.width' },
320
+ { path: 'plan.elementGroups.uiProperties.height' },
321
+ { path: 'plan.elementGroups.uiProperties.rotationAngle' },
322
+ ],
323
+ },
324
+ ]),
325
+ };
326
+ return metadata;
327
+ }
328
+ return __updateSeatingPlan;
329
+ }
330
+ /** Copies the seating plan */
331
+ export function copySeatingPlan(payload) {
332
+ function __copySeatingPlan({ host }) {
333
+ const metadata = {
334
+ entityFqdn: 'wix.seating.v1.seating_plan',
335
+ method: 'POST',
336
+ methodFqn: 'com.wixpress.seating.SeatingPlanManagement.CopySeatingPlan',
337
+ packageName: PACKAGE_NAME,
338
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
339
+ protoPath: '/v1/plans/copy',
340
+ data: payload,
341
+ host,
342
+ }),
343
+ data: payload,
344
+ transformResponse: (payload) => transformPaths(payload, [
345
+ {
346
+ transformFn: transformRESTTimestampToSDKTimestamp,
347
+ paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],
348
+ },
349
+ {
350
+ transformFn: transformRESTFloatToSDKFloat,
351
+ paths: [
352
+ { path: 'plan.sections.elements.uiProperties.x' },
353
+ { path: 'plan.sections.elements.uiProperties.y' },
354
+ { path: 'plan.sections.elements.uiProperties.width' },
355
+ { path: 'plan.sections.elements.uiProperties.height' },
356
+ { path: 'plan.sections.elements.uiProperties.rotationAngle' },
357
+ {
358
+ path: 'plan.sections.elements.multiRowProperties.curveAngleTo',
359
+ },
360
+ {
361
+ path: 'plan.sections.elements.multiRowProperties.curveAngleFrom',
362
+ },
363
+ {
364
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX',
365
+ },
366
+ {
367
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.width',
368
+ },
369
+ {
370
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom',
371
+ },
372
+ {
373
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo',
374
+ },
375
+ { path: 'plan.elementGroups.uiProperties.x' },
376
+ { path: 'plan.elementGroups.uiProperties.y' },
377
+ { path: 'plan.elementGroups.uiProperties.width' },
378
+ { path: 'plan.elementGroups.uiProperties.height' },
379
+ { path: 'plan.elementGroups.uiProperties.rotationAngle' },
380
+ ],
381
+ },
382
+ ]),
383
+ };
384
+ return metadata;
385
+ }
386
+ return __copySeatingPlan;
387
+ }
388
+ /** Lists seating plans by provided query request */
389
+ export function querySeatingPlan(payload) {
390
+ function __querySeatingPlan({ host }) {
391
+ const metadata = {
392
+ entityFqdn: 'wix.seating.v1.seating_plan',
393
+ method: 'POST',
394
+ methodFqn: 'com.wixpress.seating.SeatingPlanManagement.QuerySeatingPlan',
395
+ packageName: PACKAGE_NAME,
396
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
397
+ protoPath: '/v1/plans/query',
398
+ data: payload,
399
+ host,
400
+ }),
401
+ data: payload,
402
+ transformResponse: (payload) => transformPaths(payload, [
403
+ {
404
+ transformFn: transformRESTTimestampToSDKTimestamp,
405
+ paths: [
406
+ { path: 'plans.createdDate' },
407
+ { path: 'plans.updatedDate' },
408
+ ],
409
+ },
410
+ {
411
+ transformFn: transformRESTFloatToSDKFloat,
412
+ paths: [
413
+ { path: 'plans.sections.elements.uiProperties.x' },
414
+ { path: 'plans.sections.elements.uiProperties.y' },
415
+ { path: 'plans.sections.elements.uiProperties.width' },
416
+ { path: 'plans.sections.elements.uiProperties.height' },
417
+ { path: 'plans.sections.elements.uiProperties.rotationAngle' },
418
+ {
419
+ path: 'plans.sections.elements.multiRowProperties.curveAngleTo',
420
+ },
421
+ {
422
+ path: 'plans.sections.elements.multiRowProperties.curveAngleFrom',
423
+ },
424
+ {
425
+ path: 'plans.sections.elements.multiRowProperties.rows.uiProperties.relativeX',
426
+ },
427
+ {
428
+ path: 'plans.sections.elements.multiRowProperties.rows.uiProperties.width',
429
+ },
430
+ {
431
+ path: 'plans.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom',
432
+ },
433
+ {
434
+ path: 'plans.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo',
435
+ },
436
+ { path: 'plans.elementGroups.uiProperties.x' },
437
+ { path: 'plans.elementGroups.uiProperties.y' },
438
+ { path: 'plans.elementGroups.uiProperties.width' },
439
+ { path: 'plans.elementGroups.uiProperties.height' },
440
+ { path: 'plans.elementGroups.uiProperties.rotationAngle' },
441
+ ],
442
+ },
443
+ ]),
444
+ };
445
+ return metadata;
446
+ }
447
+ return __querySeatingPlan;
448
+ }
449
+ /** Returns the seating plan. Fails of not fond. */
450
+ export function getSeatingPlan(payload) {
451
+ function __getSeatingPlan({ host }) {
452
+ const metadata = {
453
+ entityFqdn: 'wix.seating.v1.seating_plan',
454
+ method: 'GET',
455
+ methodFqn: 'com.wixpress.seating.SeatingPlanManagement.GetSeatingPlan',
456
+ packageName: PACKAGE_NAME,
457
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
458
+ protoPath: '/v1/plans/{id}',
459
+ data: payload,
460
+ host,
461
+ }),
462
+ params: toURLSearchParams(payload),
463
+ transformResponse: (payload) => transformPaths(payload, [
464
+ {
465
+ transformFn: transformRESTTimestampToSDKTimestamp,
466
+ paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],
467
+ },
468
+ {
469
+ transformFn: transformRESTFloatToSDKFloat,
470
+ paths: [
471
+ { path: 'plan.sections.elements.uiProperties.x' },
472
+ { path: 'plan.sections.elements.uiProperties.y' },
473
+ { path: 'plan.sections.elements.uiProperties.width' },
474
+ { path: 'plan.sections.elements.uiProperties.height' },
475
+ { path: 'plan.sections.elements.uiProperties.rotationAngle' },
476
+ {
477
+ path: 'plan.sections.elements.multiRowProperties.curveAngleTo',
478
+ },
479
+ {
480
+ path: 'plan.sections.elements.multiRowProperties.curveAngleFrom',
481
+ },
482
+ {
483
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX',
484
+ },
485
+ {
486
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.width',
487
+ },
488
+ {
489
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom',
490
+ },
491
+ {
492
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo',
493
+ },
494
+ { path: 'plan.elementGroups.uiProperties.x' },
495
+ { path: 'plan.elementGroups.uiProperties.y' },
496
+ { path: 'plan.elementGroups.uiProperties.width' },
497
+ { path: 'plan.elementGroups.uiProperties.height' },
498
+ { path: 'plan.elementGroups.uiProperties.rotationAngle' },
499
+ ],
500
+ },
501
+ ]),
502
+ };
503
+ return metadata;
504
+ }
505
+ return __getSeatingPlan;
506
+ }
507
+ /** Returns the first seating plan found by filter request. */
508
+ export function findSeatingPlan(payload) {
509
+ function __findSeatingPlan({ host }) {
510
+ const metadata = {
511
+ entityFqdn: 'wix.seating.v1.seating_plan',
512
+ method: 'POST',
513
+ methodFqn: 'com.wixpress.seating.SeatingPlanManagement.FindSeatingPlan',
514
+ packageName: PACKAGE_NAME,
515
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
516
+ protoPath: '/v1/plans/find',
517
+ data: payload,
518
+ host,
519
+ }),
520
+ data: payload,
521
+ transformResponse: (payload) => transformPaths(payload, [
522
+ {
523
+ transformFn: transformRESTTimestampToSDKTimestamp,
524
+ paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],
525
+ },
526
+ {
527
+ transformFn: transformRESTFloatToSDKFloat,
528
+ paths: [
529
+ { path: 'plan.sections.elements.uiProperties.x' },
530
+ { path: 'plan.sections.elements.uiProperties.y' },
531
+ { path: 'plan.sections.elements.uiProperties.width' },
532
+ { path: 'plan.sections.elements.uiProperties.height' },
533
+ { path: 'plan.sections.elements.uiProperties.rotationAngle' },
534
+ {
535
+ path: 'plan.sections.elements.multiRowProperties.curveAngleTo',
536
+ },
537
+ {
538
+ path: 'plan.sections.elements.multiRowProperties.curveAngleFrom',
539
+ },
540
+ {
541
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX',
542
+ },
543
+ {
544
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.width',
545
+ },
546
+ {
547
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom',
548
+ },
549
+ {
550
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo',
551
+ },
552
+ { path: 'plan.elementGroups.uiProperties.x' },
553
+ { path: 'plan.elementGroups.uiProperties.y' },
554
+ { path: 'plan.elementGroups.uiProperties.width' },
555
+ { path: 'plan.elementGroups.uiProperties.height' },
556
+ { path: 'plan.elementGroups.uiProperties.rotationAngle' },
557
+ ],
558
+ },
559
+ ]),
560
+ };
561
+ return metadata;
562
+ }
563
+ return __findSeatingPlan;
564
+ }
565
+ /** Deletes the seating plan. */
566
+ export function deleteSeatingPlan(payload) {
567
+ function __deleteSeatingPlan({ host }) {
568
+ const metadata = {
569
+ entityFqdn: 'wix.seating.v1.seating_plan',
570
+ method: 'DELETE',
571
+ methodFqn: 'com.wixpress.seating.SeatingPlanManagement.DeleteSeatingPlan',
572
+ packageName: PACKAGE_NAME,
573
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
574
+ protoPath: '/v1/plans/{id}',
575
+ data: payload,
576
+ host,
577
+ }),
578
+ params: toURLSearchParams(payload),
579
+ transformResponse: (payload) => transformPaths(payload, [
580
+ {
581
+ transformFn: transformRESTTimestampToSDKTimestamp,
582
+ paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],
583
+ },
584
+ {
585
+ transformFn: transformRESTFloatToSDKFloat,
586
+ paths: [
587
+ { path: 'plan.sections.elements.uiProperties.x' },
588
+ { path: 'plan.sections.elements.uiProperties.y' },
589
+ { path: 'plan.sections.elements.uiProperties.width' },
590
+ { path: 'plan.sections.elements.uiProperties.height' },
591
+ { path: 'plan.sections.elements.uiProperties.rotationAngle' },
592
+ {
593
+ path: 'plan.sections.elements.multiRowProperties.curveAngleTo',
594
+ },
595
+ {
596
+ path: 'plan.sections.elements.multiRowProperties.curveAngleFrom',
597
+ },
598
+ {
599
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX',
600
+ },
601
+ {
602
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.width',
603
+ },
604
+ {
605
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom',
606
+ },
607
+ {
608
+ path: 'plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo',
609
+ },
610
+ { path: 'plan.elementGroups.uiProperties.x' },
611
+ { path: 'plan.elementGroups.uiProperties.y' },
612
+ { path: 'plan.elementGroups.uiProperties.width' },
613
+ { path: 'plan.elementGroups.uiProperties.height' },
614
+ { path: 'plan.elementGroups.uiProperties.rotationAngle' },
615
+ ],
616
+ },
617
+ ]),
618
+ };
619
+ return metadata;
620
+ }
621
+ return __deleteSeatingPlan;
622
+ }
623
+ /** Updates seating plan thumbnail. */
624
+ export function updateSeatingPlanThumbnail(payload) {
625
+ function __updateSeatingPlanThumbnail({ host }) {
626
+ const metadata = {
627
+ entityFqdn: 'wix.seating.v1.seating_plan',
628
+ method: 'POST',
629
+ methodFqn: 'com.wixpress.seating.SeatingPlanThumbnailService.UpdateSeatingPlanThumbnail',
630
+ packageName: PACKAGE_NAME,
631
+ url: resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl({
632
+ protoPath: '/v1/plan-thumbnails',
633
+ data: payload,
634
+ host,
635
+ }),
636
+ data: payload,
637
+ };
638
+ return metadata;
639
+ }
640
+ return __updateSeatingPlanThumbnail;
641
+ }
642
+ /** Get seating plan thumbnail. */
643
+ export function getSeatingPlanThumbnail(payload) {
644
+ function __getSeatingPlanThumbnail({ host }) {
645
+ const metadata = {
646
+ entityFqdn: 'wix.seating.v1.seating_plan',
647
+ method: 'GET',
648
+ methodFqn: 'com.wixpress.seating.SeatingPlanThumbnailService.GetSeatingPlanThumbnail',
649
+ packageName: PACKAGE_NAME,
650
+ url: resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl({
651
+ protoPath: '/v1/plan-thumbnails',
652
+ data: payload,
653
+ host,
654
+ }),
655
+ params: toURLSearchParams(payload),
656
+ };
657
+ return metadata;
658
+ }
659
+ return __getSeatingPlanThumbnail;
660
+ }
661
+ //# sourceMappingURL=seating-v1-seating-plan-seating-plan.http.js.map