@wix/auto_sdk_seatings_seating-plan 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/build/cjs/index.d.ts +96 -1
  2. package/build/cjs/index.js +1310 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/meta.d.ts +783 -1
  5. package/build/cjs/meta.js +860 -15
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/{internal/cjs/src/seating-v1-seating-plan-seating-plan.universal.d.ts → cjs/seating-v1-seating-plan-seating-plan.universal-BphMjTRF.d.ts} +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,673 +0,0 @@
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