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