@wix/auto_sdk_seatings_seating-plan 1.0.5 → 1.0.7

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} +95 -279
  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} +86 -281
  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} +95 -279
  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} +95 -279
  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} +86 -281
  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} +95 -279
  29. package/package.json +9 -8
  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 -978
  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 -505
  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 -470
  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 -505
  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 -978
  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 -470
  119. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.universal.js.map +0 -1
@@ -1,661 +0,0 @@
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