@wix/auto_sdk_seatings_seating-plan 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/build/cjs/index.d.ts +96 -1
  2. package/build/cjs/index.js +1310 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/meta.d.ts +783 -1
  5. package/build/cjs/meta.js +860 -15
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/{internal/cjs/src/seating-v1-seating-plan-seating-plan.universal.d.ts → cjs/seating-v1-seating-plan-seating-plan.universal-BphMjTRF.d.ts} +122 -264
  8. package/build/es/index.d.mts +96 -0
  9. package/build/es/index.mjs +1269 -0
  10. package/build/es/index.mjs.map +1 -0
  11. package/build/es/{src/seating-v1-seating-plan-seating-plan.types.d.ts → meta.d.mts} +108 -285
  12. package/build/es/meta.mjs +828 -0
  13. package/build/es/meta.mjs.map +1 -0
  14. package/build/{internal/es/src/seating-v1-seating-plan-seating-plan.universal.d.ts → es/seating-v1-seating-plan-seating-plan.universal-BphMjTRF.d.mts} +122 -264
  15. package/build/internal/cjs/index.d.ts +96 -1
  16. package/build/internal/cjs/index.js +1310 -15
  17. package/build/internal/cjs/index.js.map +1 -1
  18. package/build/internal/cjs/meta.d.ts +783 -1
  19. package/build/internal/cjs/meta.js +860 -15
  20. package/build/internal/cjs/meta.js.map +1 -1
  21. package/build/{cjs/src/seating-v1-seating-plan-seating-plan.universal.d.ts → internal/cjs/seating-v1-seating-plan-seating-plan.universal-BphMjTRF.d.ts} +122 -264
  22. package/build/internal/es/index.d.mts +96 -0
  23. package/build/internal/es/index.mjs +1269 -0
  24. package/build/internal/es/index.mjs.map +1 -0
  25. package/build/internal/{cjs/src/seating-v1-seating-plan-seating-plan.types.d.ts → es/meta.d.mts} +108 -285
  26. package/build/internal/es/meta.mjs +828 -0
  27. package/build/internal/es/meta.mjs.map +1 -0
  28. package/build/{es/src/seating-v1-seating-plan-seating-plan.universal.d.ts → internal/es/seating-v1-seating-plan-seating-plan.universal-BphMjTRF.d.mts} +122 -264
  29. package/package.json +10 -9
  30. package/build/cjs/index.typings.d.ts +0 -1
  31. package/build/cjs/index.typings.js +0 -18
  32. package/build/cjs/index.typings.js.map +0 -1
  33. package/build/cjs/src/seating-v1-seating-plan-seating-plan.context.d.ts +0 -23
  34. package/build/cjs/src/seating-v1-seating-plan-seating-plan.context.js +0 -35
  35. package/build/cjs/src/seating-v1-seating-plan-seating-plan.context.js.map +0 -1
  36. package/build/cjs/src/seating-v1-seating-plan-seating-plan.http.d.ts +0 -19
  37. package/build/cjs/src/seating-v1-seating-plan-seating-plan.http.js +0 -673
  38. package/build/cjs/src/seating-v1-seating-plan-seating-plan.http.js.map +0 -1
  39. package/build/cjs/src/seating-v1-seating-plan-seating-plan.meta.d.ts +0 -25
  40. package/build/cjs/src/seating-v1-seating-plan-seating-plan.meta.js +0 -199
  41. package/build/cjs/src/seating-v1-seating-plan-seating-plan.meta.js.map +0 -1
  42. package/build/cjs/src/seating-v1-seating-plan-seating-plan.public.d.ts +0 -80
  43. package/build/cjs/src/seating-v1-seating-plan-seating-plan.public.js +0 -204
  44. package/build/cjs/src/seating-v1-seating-plan-seating-plan.public.js.map +0 -1
  45. package/build/cjs/src/seating-v1-seating-plan-seating-plan.types.d.ts +0 -960
  46. package/build/cjs/src/seating-v1-seating-plan-seating-plan.types.js +0 -85
  47. package/build/cjs/src/seating-v1-seating-plan-seating-plan.types.js.map +0 -1
  48. package/build/cjs/src/seating-v1-seating-plan-seating-plan.universal.js +0 -487
  49. package/build/cjs/src/seating-v1-seating-plan-seating-plan.universal.js.map +0 -1
  50. package/build/es/index.d.ts +0 -1
  51. package/build/es/index.js +0 -2
  52. package/build/es/index.js.map +0 -1
  53. package/build/es/index.typings.d.ts +0 -1
  54. package/build/es/index.typings.js +0 -2
  55. package/build/es/index.typings.js.map +0 -1
  56. package/build/es/meta.d.ts +0 -1
  57. package/build/es/meta.js +0 -2
  58. package/build/es/meta.js.map +0 -1
  59. package/build/es/src/seating-v1-seating-plan-seating-plan.context.d.ts +0 -23
  60. package/build/es/src/seating-v1-seating-plan-seating-plan.context.js +0 -23
  61. package/build/es/src/seating-v1-seating-plan-seating-plan.context.js.map +0 -1
  62. package/build/es/src/seating-v1-seating-plan-seating-plan.http.d.ts +0 -19
  63. package/build/es/src/seating-v1-seating-plan-seating-plan.http.js +0 -661
  64. package/build/es/src/seating-v1-seating-plan-seating-plan.http.js.map +0 -1
  65. package/build/es/src/seating-v1-seating-plan-seating-plan.meta.d.ts +0 -25
  66. package/build/es/src/seating-v1-seating-plan-seating-plan.meta.js +0 -164
  67. package/build/es/src/seating-v1-seating-plan-seating-plan.meta.js.map +0 -1
  68. package/build/es/src/seating-v1-seating-plan-seating-plan.public.d.ts +0 -80
  69. package/build/es/src/seating-v1-seating-plan-seating-plan.public.js +0 -183
  70. package/build/es/src/seating-v1-seating-plan-seating-plan.public.js.map +0 -1
  71. package/build/es/src/seating-v1-seating-plan-seating-plan.types.js +0 -82
  72. package/build/es/src/seating-v1-seating-plan-seating-plan.types.js.map +0 -1
  73. package/build/es/src/seating-v1-seating-plan-seating-plan.universal.js +0 -452
  74. package/build/es/src/seating-v1-seating-plan-seating-plan.universal.js.map +0 -1
  75. package/build/internal/cjs/index.typings.d.ts +0 -1
  76. package/build/internal/cjs/index.typings.js +0 -18
  77. package/build/internal/cjs/index.typings.js.map +0 -1
  78. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.context.d.ts +0 -23
  79. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.context.js +0 -35
  80. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.context.js.map +0 -1
  81. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.http.d.ts +0 -19
  82. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.http.js +0 -673
  83. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.http.js.map +0 -1
  84. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.meta.d.ts +0 -25
  85. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.meta.js +0 -199
  86. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.meta.js.map +0 -1
  87. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.public.d.ts +0 -80
  88. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.public.js +0 -204
  89. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.public.js.map +0 -1
  90. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.types.js +0 -85
  91. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.types.js.map +0 -1
  92. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.universal.js +0 -487
  93. package/build/internal/cjs/src/seating-v1-seating-plan-seating-plan.universal.js.map +0 -1
  94. package/build/internal/es/index.d.ts +0 -1
  95. package/build/internal/es/index.js +0 -2
  96. package/build/internal/es/index.js.map +0 -1
  97. package/build/internal/es/index.typings.d.ts +0 -1
  98. package/build/internal/es/index.typings.js +0 -2
  99. package/build/internal/es/index.typings.js.map +0 -1
  100. package/build/internal/es/meta.d.ts +0 -1
  101. package/build/internal/es/meta.js +0 -2
  102. package/build/internal/es/meta.js.map +0 -1
  103. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.context.d.ts +0 -23
  104. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.context.js +0 -23
  105. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.context.js.map +0 -1
  106. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.http.d.ts +0 -19
  107. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.http.js +0 -661
  108. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.http.js.map +0 -1
  109. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.meta.d.ts +0 -25
  110. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.meta.js +0 -164
  111. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.meta.js.map +0 -1
  112. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.public.d.ts +0 -80
  113. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.public.js +0 -183
  114. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.public.js.map +0 -1
  115. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.types.d.ts +0 -960
  116. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.types.js +0 -82
  117. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.types.js.map +0 -1
  118. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.universal.js +0 -452
  119. package/build/internal/es/src/seating-v1-seating-plan-seating-plan.universal.js.map +0 -1
package/build/cjs/meta.js CHANGED
@@ -1,18 +1,863 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
15
9
  };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/seating-v1-seating-plan-seating-plan.meta.js"), exports);
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // meta.ts
21
+ var meta_exports = {};
22
+ __export(meta_exports, {
23
+ copySeatingPlan: () => copySeatingPlan2,
24
+ createSeatingPlan: () => createSeatingPlan2,
25
+ deleteSeatingPlan: () => deleteSeatingPlan2,
26
+ findSeatingPlan: () => findSeatingPlan2,
27
+ getSeatingPlan: () => getSeatingPlan2,
28
+ getSeatingPlanThumbnail: () => getSeatingPlanThumbnail2,
29
+ querySeatingPlan: () => querySeatingPlan2,
30
+ updateSeatingPlan: () => updateSeatingPlan2,
31
+ updateSeatingPlanThumbnail: () => updateSeatingPlanThumbnail2
32
+ });
33
+ module.exports = __toCommonJS(meta_exports);
34
+
35
+ // src/seating-v1-seating-plan-seating-plan.http.ts
36
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
37
+ var import_float = require("@wix/sdk-runtime/transformations/float");
38
+ var import_float2 = require("@wix/sdk-runtime/transformations/float");
39
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
40
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
41
+ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
42
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
43
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
44
+ function resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl(opts) {
45
+ const domainToMappings = {
46
+ "manage._base_domain_": [
47
+ {
48
+ srcPath: "/_api/seating-plans",
49
+ destPath: ""
50
+ }
51
+ ],
52
+ "www._base_domain_": [
53
+ {
54
+ srcPath: "/_api/seating-plans",
55
+ destPath: ""
56
+ }
57
+ ],
58
+ "editor-flow.wixapps.net": [
59
+ {
60
+ srcPath: "/_api/seating-plans",
61
+ destPath: ""
62
+ }
63
+ ],
64
+ "editor._base_domain_": [
65
+ {
66
+ srcPath: "/_api/seating-plans",
67
+ destPath: ""
68
+ }
69
+ ],
70
+ "blocks._base_domain_": [
71
+ {
72
+ srcPath: "/_api/seating-plans",
73
+ destPath: ""
74
+ }
75
+ ],
76
+ "create.editorx": [
77
+ {
78
+ srcPath: "/_api/seating-plans",
79
+ destPath: ""
80
+ }
81
+ ],
82
+ "api._base_domain_": [
83
+ {
84
+ srcPath: "/seating-plans",
85
+ destPath: ""
86
+ }
87
+ ],
88
+ "editor.wixapps.net": [
89
+ {
90
+ srcPath: "/_api/seating-plans",
91
+ destPath: ""
92
+ }
93
+ ],
94
+ "api._api_base_domain_": [
95
+ {
96
+ srcPath: "/seating-plans",
97
+ destPath: ""
98
+ }
99
+ ],
100
+ _: [
101
+ {
102
+ srcPath: "/_api/seating-plans",
103
+ destPath: ""
104
+ }
105
+ ]
106
+ };
107
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
108
+ }
109
+ function resolveComWixpressSeatingSeatingPlanManagementUrl(opts) {
110
+ const domainToMappings = {
111
+ "manage._base_domain_": [
112
+ {
113
+ srcPath: "/_api/seating-plans",
114
+ destPath: ""
115
+ }
116
+ ],
117
+ "www._base_domain_": [
118
+ {
119
+ srcPath: "/_api/seating-plans",
120
+ destPath: ""
121
+ }
122
+ ],
123
+ "editor-flow.wixapps.net": [
124
+ {
125
+ srcPath: "/_api/seating-plans",
126
+ destPath: ""
127
+ }
128
+ ],
129
+ "editor._base_domain_": [
130
+ {
131
+ srcPath: "/_api/seating-plans",
132
+ destPath: ""
133
+ }
134
+ ],
135
+ "blocks._base_domain_": [
136
+ {
137
+ srcPath: "/_api/seating-plans",
138
+ destPath: ""
139
+ }
140
+ ],
141
+ "create.editorx": [
142
+ {
143
+ srcPath: "/_api/seating-plans",
144
+ destPath: ""
145
+ }
146
+ ],
147
+ "api._base_domain_": [
148
+ {
149
+ srcPath: "/seating-plans",
150
+ destPath: ""
151
+ }
152
+ ],
153
+ "editor.wixapps.net": [
154
+ {
155
+ srcPath: "/_api/seating-plans",
156
+ destPath: ""
157
+ }
158
+ ],
159
+ "api._api_base_domain_": [
160
+ {
161
+ srcPath: "/seating-plans",
162
+ destPath: ""
163
+ }
164
+ ],
165
+ _: [
166
+ {
167
+ srcPath: "/_api/seating-plans",
168
+ destPath: ""
169
+ }
170
+ ]
171
+ };
172
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
173
+ }
174
+ var PACKAGE_NAME = "@wix/auto_sdk_seatings_seating-plan";
175
+ function createSeatingPlan(payload) {
176
+ function __createSeatingPlan({ host }) {
177
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
178
+ {
179
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
180
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
181
+ },
182
+ {
183
+ transformFn: import_float.transformSDKFloatToRESTFloat,
184
+ paths: [
185
+ { path: "plan.sections.elements.uiProperties.x" },
186
+ { path: "plan.sections.elements.uiProperties.y" },
187
+ { path: "plan.sections.elements.uiProperties.width" },
188
+ { path: "plan.sections.elements.uiProperties.height" },
189
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
190
+ { path: "plan.sections.elements.multiRowProperties.curveAngleTo" },
191
+ { path: "plan.sections.elements.multiRowProperties.curveAngleFrom" },
192
+ {
193
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
194
+ },
195
+ {
196
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
197
+ },
198
+ {
199
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
200
+ },
201
+ {
202
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
203
+ },
204
+ { path: "plan.elementGroups.uiProperties.x" },
205
+ { path: "plan.elementGroups.uiProperties.y" },
206
+ { path: "plan.elementGroups.uiProperties.width" },
207
+ { path: "plan.elementGroups.uiProperties.height" },
208
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
209
+ ]
210
+ }
211
+ ]);
212
+ const metadata = {
213
+ entityFqdn: "wix.seating.v1.seating_plan",
214
+ method: "POST",
215
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.CreateSeatingPlan",
216
+ packageName: PACKAGE_NAME,
217
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
218
+ protoPath: "/v1/plans",
219
+ data: serializedData,
220
+ host
221
+ }),
222
+ data: serializedData,
223
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
224
+ {
225
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
226
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
227
+ },
228
+ {
229
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
230
+ paths: [
231
+ { path: "plan.sections.elements.uiProperties.x" },
232
+ { path: "plan.sections.elements.uiProperties.y" },
233
+ { path: "plan.sections.elements.uiProperties.width" },
234
+ { path: "plan.sections.elements.uiProperties.height" },
235
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
236
+ {
237
+ path: "plan.sections.elements.multiRowProperties.curveAngleTo"
238
+ },
239
+ {
240
+ path: "plan.sections.elements.multiRowProperties.curveAngleFrom"
241
+ },
242
+ {
243
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
244
+ },
245
+ {
246
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
247
+ },
248
+ {
249
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
250
+ },
251
+ {
252
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
253
+ },
254
+ { path: "plan.elementGroups.uiProperties.x" },
255
+ { path: "plan.elementGroups.uiProperties.y" },
256
+ { path: "plan.elementGroups.uiProperties.width" },
257
+ { path: "plan.elementGroups.uiProperties.height" },
258
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
259
+ ]
260
+ }
261
+ ])
262
+ };
263
+ return metadata;
264
+ }
265
+ return __createSeatingPlan;
266
+ }
267
+ function updateSeatingPlan(payload) {
268
+ function __updateSeatingPlan({ host }) {
269
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
270
+ {
271
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
272
+ paths: [{ path: "fields" }]
273
+ },
274
+ {
275
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
276
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
277
+ },
278
+ {
279
+ transformFn: import_float.transformSDKFloatToRESTFloat,
280
+ paths: [
281
+ { path: "plan.sections.elements.uiProperties.x" },
282
+ { path: "plan.sections.elements.uiProperties.y" },
283
+ { path: "plan.sections.elements.uiProperties.width" },
284
+ { path: "plan.sections.elements.uiProperties.height" },
285
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
286
+ { path: "plan.sections.elements.multiRowProperties.curveAngleTo" },
287
+ { path: "plan.sections.elements.multiRowProperties.curveAngleFrom" },
288
+ {
289
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
290
+ },
291
+ {
292
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
293
+ },
294
+ {
295
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
296
+ },
297
+ {
298
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
299
+ },
300
+ { path: "plan.elementGroups.uiProperties.x" },
301
+ { path: "plan.elementGroups.uiProperties.y" },
302
+ { path: "plan.elementGroups.uiProperties.width" },
303
+ { path: "plan.elementGroups.uiProperties.height" },
304
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
305
+ ]
306
+ }
307
+ ]);
308
+ const metadata = {
309
+ entityFqdn: "wix.seating.v1.seating_plan",
310
+ method: "PUT",
311
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.UpdateSeatingPlan",
312
+ packageName: PACKAGE_NAME,
313
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
314
+ protoPath: "/v1/plans",
315
+ data: serializedData,
316
+ host
317
+ }),
318
+ data: serializedData,
319
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
320
+ {
321
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
322
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
323
+ },
324
+ {
325
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
326
+ paths: [
327
+ { path: "plan.sections.elements.uiProperties.x" },
328
+ { path: "plan.sections.elements.uiProperties.y" },
329
+ { path: "plan.sections.elements.uiProperties.width" },
330
+ { path: "plan.sections.elements.uiProperties.height" },
331
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
332
+ {
333
+ path: "plan.sections.elements.multiRowProperties.curveAngleTo"
334
+ },
335
+ {
336
+ path: "plan.sections.elements.multiRowProperties.curveAngleFrom"
337
+ },
338
+ {
339
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
340
+ },
341
+ {
342
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
343
+ },
344
+ {
345
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
346
+ },
347
+ {
348
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
349
+ },
350
+ { path: "plan.elementGroups.uiProperties.x" },
351
+ { path: "plan.elementGroups.uiProperties.y" },
352
+ { path: "plan.elementGroups.uiProperties.width" },
353
+ { path: "plan.elementGroups.uiProperties.height" },
354
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
355
+ ]
356
+ }
357
+ ])
358
+ };
359
+ return metadata;
360
+ }
361
+ return __updateSeatingPlan;
362
+ }
363
+ function copySeatingPlan(payload) {
364
+ function __copySeatingPlan({ host }) {
365
+ const metadata = {
366
+ entityFqdn: "wix.seating.v1.seating_plan",
367
+ method: "POST",
368
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.CopySeatingPlan",
369
+ packageName: PACKAGE_NAME,
370
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
371
+ protoPath: "/v1/plans/copy",
372
+ data: payload,
373
+ host
374
+ }),
375
+ data: payload,
376
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
377
+ {
378
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
379
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
380
+ },
381
+ {
382
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
383
+ paths: [
384
+ { path: "plan.sections.elements.uiProperties.x" },
385
+ { path: "plan.sections.elements.uiProperties.y" },
386
+ { path: "plan.sections.elements.uiProperties.width" },
387
+ { path: "plan.sections.elements.uiProperties.height" },
388
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
389
+ {
390
+ path: "plan.sections.elements.multiRowProperties.curveAngleTo"
391
+ },
392
+ {
393
+ path: "plan.sections.elements.multiRowProperties.curveAngleFrom"
394
+ },
395
+ {
396
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
397
+ },
398
+ {
399
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
400
+ },
401
+ {
402
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
403
+ },
404
+ {
405
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
406
+ },
407
+ { path: "plan.elementGroups.uiProperties.x" },
408
+ { path: "plan.elementGroups.uiProperties.y" },
409
+ { path: "plan.elementGroups.uiProperties.width" },
410
+ { path: "plan.elementGroups.uiProperties.height" },
411
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
412
+ ]
413
+ }
414
+ ])
415
+ };
416
+ return metadata;
417
+ }
418
+ return __copySeatingPlan;
419
+ }
420
+ function querySeatingPlan(payload) {
421
+ function __querySeatingPlan({ host }) {
422
+ const metadata = {
423
+ entityFqdn: "wix.seating.v1.seating_plan",
424
+ method: "POST",
425
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.QuerySeatingPlan",
426
+ packageName: PACKAGE_NAME,
427
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
428
+ protoPath: "/v1/plans/query",
429
+ data: payload,
430
+ host
431
+ }),
432
+ data: payload,
433
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
434
+ {
435
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
436
+ paths: [
437
+ { path: "plans.createdDate" },
438
+ { path: "plans.updatedDate" }
439
+ ]
440
+ },
441
+ {
442
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
443
+ paths: [
444
+ { path: "plans.sections.elements.uiProperties.x" },
445
+ { path: "plans.sections.elements.uiProperties.y" },
446
+ { path: "plans.sections.elements.uiProperties.width" },
447
+ { path: "plans.sections.elements.uiProperties.height" },
448
+ { path: "plans.sections.elements.uiProperties.rotationAngle" },
449
+ {
450
+ path: "plans.sections.elements.multiRowProperties.curveAngleTo"
451
+ },
452
+ {
453
+ path: "plans.sections.elements.multiRowProperties.curveAngleFrom"
454
+ },
455
+ {
456
+ path: "plans.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
457
+ },
458
+ {
459
+ path: "plans.sections.elements.multiRowProperties.rows.uiProperties.width"
460
+ },
461
+ {
462
+ path: "plans.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
463
+ },
464
+ {
465
+ path: "plans.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
466
+ },
467
+ { path: "plans.elementGroups.uiProperties.x" },
468
+ { path: "plans.elementGroups.uiProperties.y" },
469
+ { path: "plans.elementGroups.uiProperties.width" },
470
+ { path: "plans.elementGroups.uiProperties.height" },
471
+ { path: "plans.elementGroups.uiProperties.rotationAngle" }
472
+ ]
473
+ }
474
+ ])
475
+ };
476
+ return metadata;
477
+ }
478
+ return __querySeatingPlan;
479
+ }
480
+ function getSeatingPlan(payload) {
481
+ function __getSeatingPlan({ host }) {
482
+ const metadata = {
483
+ entityFqdn: "wix.seating.v1.seating_plan",
484
+ method: "GET",
485
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.GetSeatingPlan",
486
+ packageName: PACKAGE_NAME,
487
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
488
+ protoPath: "/v1/plans/{id}",
489
+ data: payload,
490
+ host
491
+ }),
492
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
493
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
494
+ {
495
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
496
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
497
+ },
498
+ {
499
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
500
+ paths: [
501
+ { path: "plan.sections.elements.uiProperties.x" },
502
+ { path: "plan.sections.elements.uiProperties.y" },
503
+ { path: "plan.sections.elements.uiProperties.width" },
504
+ { path: "plan.sections.elements.uiProperties.height" },
505
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
506
+ {
507
+ path: "plan.sections.elements.multiRowProperties.curveAngleTo"
508
+ },
509
+ {
510
+ path: "plan.sections.elements.multiRowProperties.curveAngleFrom"
511
+ },
512
+ {
513
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
514
+ },
515
+ {
516
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
517
+ },
518
+ {
519
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
520
+ },
521
+ {
522
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
523
+ },
524
+ { path: "plan.elementGroups.uiProperties.x" },
525
+ { path: "plan.elementGroups.uiProperties.y" },
526
+ { path: "plan.elementGroups.uiProperties.width" },
527
+ { path: "plan.elementGroups.uiProperties.height" },
528
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
529
+ ]
530
+ }
531
+ ])
532
+ };
533
+ return metadata;
534
+ }
535
+ return __getSeatingPlan;
536
+ }
537
+ function findSeatingPlan(payload) {
538
+ function __findSeatingPlan({ host }) {
539
+ const metadata = {
540
+ entityFqdn: "wix.seating.v1.seating_plan",
541
+ method: "POST",
542
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.FindSeatingPlan",
543
+ packageName: PACKAGE_NAME,
544
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
545
+ protoPath: "/v1/plans/find",
546
+ data: payload,
547
+ host
548
+ }),
549
+ data: payload,
550
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
551
+ {
552
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
553
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
554
+ },
555
+ {
556
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
557
+ paths: [
558
+ { path: "plan.sections.elements.uiProperties.x" },
559
+ { path: "plan.sections.elements.uiProperties.y" },
560
+ { path: "plan.sections.elements.uiProperties.width" },
561
+ { path: "plan.sections.elements.uiProperties.height" },
562
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
563
+ {
564
+ path: "plan.sections.elements.multiRowProperties.curveAngleTo"
565
+ },
566
+ {
567
+ path: "plan.sections.elements.multiRowProperties.curveAngleFrom"
568
+ },
569
+ {
570
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
571
+ },
572
+ {
573
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
574
+ },
575
+ {
576
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
577
+ },
578
+ {
579
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
580
+ },
581
+ { path: "plan.elementGroups.uiProperties.x" },
582
+ { path: "plan.elementGroups.uiProperties.y" },
583
+ { path: "plan.elementGroups.uiProperties.width" },
584
+ { path: "plan.elementGroups.uiProperties.height" },
585
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
586
+ ]
587
+ }
588
+ ])
589
+ };
590
+ return metadata;
591
+ }
592
+ return __findSeatingPlan;
593
+ }
594
+ function deleteSeatingPlan(payload) {
595
+ function __deleteSeatingPlan({ host }) {
596
+ const metadata = {
597
+ entityFqdn: "wix.seating.v1.seating_plan",
598
+ method: "DELETE",
599
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.DeleteSeatingPlan",
600
+ packageName: PACKAGE_NAME,
601
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
602
+ protoPath: "/v1/plans/{id}",
603
+ data: payload,
604
+ host
605
+ }),
606
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
607
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
608
+ {
609
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
610
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
611
+ },
612
+ {
613
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
614
+ paths: [
615
+ { path: "plan.sections.elements.uiProperties.x" },
616
+ { path: "plan.sections.elements.uiProperties.y" },
617
+ { path: "plan.sections.elements.uiProperties.width" },
618
+ { path: "plan.sections.elements.uiProperties.height" },
619
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
620
+ {
621
+ path: "plan.sections.elements.multiRowProperties.curveAngleTo"
622
+ },
623
+ {
624
+ path: "plan.sections.elements.multiRowProperties.curveAngleFrom"
625
+ },
626
+ {
627
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
628
+ },
629
+ {
630
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
631
+ },
632
+ {
633
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
634
+ },
635
+ {
636
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
637
+ },
638
+ { path: "plan.elementGroups.uiProperties.x" },
639
+ { path: "plan.elementGroups.uiProperties.y" },
640
+ { path: "plan.elementGroups.uiProperties.width" },
641
+ { path: "plan.elementGroups.uiProperties.height" },
642
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
643
+ ]
644
+ }
645
+ ])
646
+ };
647
+ return metadata;
648
+ }
649
+ return __deleteSeatingPlan;
650
+ }
651
+ function updateSeatingPlanThumbnail(payload) {
652
+ function __updateSeatingPlanThumbnail({ host }) {
653
+ const metadata = {
654
+ entityFqdn: "wix.seating.v1.seating_plan",
655
+ method: "POST",
656
+ methodFqn: "com.wixpress.seating.SeatingPlanThumbnailService.UpdateSeatingPlanThumbnail",
657
+ packageName: PACKAGE_NAME,
658
+ url: resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl({
659
+ protoPath: "/v1/plan-thumbnails",
660
+ data: payload,
661
+ host
662
+ }),
663
+ data: payload
664
+ };
665
+ return metadata;
666
+ }
667
+ return __updateSeatingPlanThumbnail;
668
+ }
669
+ function getSeatingPlanThumbnail(payload) {
670
+ function __getSeatingPlanThumbnail({ host }) {
671
+ const metadata = {
672
+ entityFqdn: "wix.seating.v1.seating_plan",
673
+ method: "GET",
674
+ methodFqn: "com.wixpress.seating.SeatingPlanThumbnailService.GetSeatingPlanThumbnail",
675
+ packageName: PACKAGE_NAME,
676
+ url: resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl({
677
+ protoPath: "/v1/plan-thumbnails",
678
+ data: payload,
679
+ host
680
+ }),
681
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
682
+ };
683
+ return metadata;
684
+ }
685
+ return __getSeatingPlanThumbnail;
686
+ }
687
+
688
+ // src/seating-v1-seating-plan-seating-plan.meta.ts
689
+ function createSeatingPlan2() {
690
+ const payload = {};
691
+ const getRequestOptions = createSeatingPlan(payload);
692
+ const getUrl = (context) => {
693
+ const { url } = getRequestOptions(context);
694
+ return url;
695
+ };
696
+ return {
697
+ getUrl,
698
+ httpMethod: "POST",
699
+ path: "/v1/plans",
700
+ pathParams: {},
701
+ __requestType: null,
702
+ __originalRequestType: null,
703
+ __responseType: null,
704
+ __originalResponseType: null
705
+ };
706
+ }
707
+ function updateSeatingPlan2() {
708
+ const payload = {};
709
+ const getRequestOptions = updateSeatingPlan(payload);
710
+ const getUrl = (context) => {
711
+ const { url } = getRequestOptions(context);
712
+ return url;
713
+ };
714
+ return {
715
+ getUrl,
716
+ httpMethod: "PUT",
717
+ path: "/v1/plans",
718
+ pathParams: {},
719
+ __requestType: null,
720
+ __originalRequestType: null,
721
+ __responseType: null,
722
+ __originalResponseType: null
723
+ };
724
+ }
725
+ function copySeatingPlan2() {
726
+ const payload = {};
727
+ const getRequestOptions = copySeatingPlan(payload);
728
+ const getUrl = (context) => {
729
+ const { url } = getRequestOptions(context);
730
+ return url;
731
+ };
732
+ return {
733
+ getUrl,
734
+ httpMethod: "POST",
735
+ path: "/v1/plans/copy",
736
+ pathParams: {},
737
+ __requestType: null,
738
+ __originalRequestType: null,
739
+ __responseType: null,
740
+ __originalResponseType: null
741
+ };
742
+ }
743
+ function querySeatingPlan2() {
744
+ const payload = {};
745
+ const getRequestOptions = querySeatingPlan(payload);
746
+ const getUrl = (context) => {
747
+ const { url } = getRequestOptions(context);
748
+ return url;
749
+ };
750
+ return {
751
+ getUrl,
752
+ httpMethod: "POST",
753
+ path: "/v1/plans/query",
754
+ pathParams: {},
755
+ __requestType: null,
756
+ __originalRequestType: null,
757
+ __responseType: null,
758
+ __originalResponseType: null
759
+ };
760
+ }
761
+ function getSeatingPlan2() {
762
+ const payload = { id: ":id" };
763
+ const getRequestOptions = getSeatingPlan(payload);
764
+ const getUrl = (context) => {
765
+ const { url } = getRequestOptions(context);
766
+ return url;
767
+ };
768
+ return {
769
+ getUrl,
770
+ httpMethod: "GET",
771
+ path: "/v1/plans/{id}",
772
+ pathParams: { id: "id" },
773
+ __requestType: null,
774
+ __originalRequestType: null,
775
+ __responseType: null,
776
+ __originalResponseType: null
777
+ };
778
+ }
779
+ function findSeatingPlan2() {
780
+ const payload = {};
781
+ const getRequestOptions = findSeatingPlan(payload);
782
+ const getUrl = (context) => {
783
+ const { url } = getRequestOptions(context);
784
+ return url;
785
+ };
786
+ return {
787
+ getUrl,
788
+ httpMethod: "POST",
789
+ path: "/v1/plans/find",
790
+ pathParams: {},
791
+ __requestType: null,
792
+ __originalRequestType: null,
793
+ __responseType: null,
794
+ __originalResponseType: null
795
+ };
796
+ }
797
+ function deleteSeatingPlan2() {
798
+ const payload = { id: ":id" };
799
+ const getRequestOptions = deleteSeatingPlan(payload);
800
+ const getUrl = (context) => {
801
+ const { url } = getRequestOptions(context);
802
+ return url;
803
+ };
804
+ return {
805
+ getUrl,
806
+ httpMethod: "DELETE",
807
+ path: "/v1/plans/{id}",
808
+ pathParams: { id: "id" },
809
+ __requestType: null,
810
+ __originalRequestType: null,
811
+ __responseType: null,
812
+ __originalResponseType: null
813
+ };
814
+ }
815
+ function updateSeatingPlanThumbnail2() {
816
+ const payload = {};
817
+ const getRequestOptions = updateSeatingPlanThumbnail(payload);
818
+ const getUrl = (context) => {
819
+ const { url } = getRequestOptions(context);
820
+ return url;
821
+ };
822
+ return {
823
+ getUrl,
824
+ httpMethod: "POST",
825
+ path: "/v1/plan-thumbnails",
826
+ pathParams: {},
827
+ __requestType: null,
828
+ __originalRequestType: null,
829
+ __responseType: null,
830
+ __originalResponseType: null
831
+ };
832
+ }
833
+ function getSeatingPlanThumbnail2() {
834
+ const payload = {};
835
+ const getRequestOptions = getSeatingPlanThumbnail(payload);
836
+ const getUrl = (context) => {
837
+ const { url } = getRequestOptions(context);
838
+ return url;
839
+ };
840
+ return {
841
+ getUrl,
842
+ httpMethod: "GET",
843
+ path: "/v1/plan-thumbnails",
844
+ pathParams: {},
845
+ __requestType: null,
846
+ __originalRequestType: null,
847
+ __responseType: null,
848
+ __originalResponseType: null
849
+ };
850
+ }
851
+ // Annotate the CommonJS export names for ESM import in node:
852
+ 0 && (module.exports = {
853
+ copySeatingPlan,
854
+ createSeatingPlan,
855
+ deleteSeatingPlan,
856
+ findSeatingPlan,
857
+ getSeatingPlan,
858
+ getSeatingPlanThumbnail,
859
+ querySeatingPlan,
860
+ updateSeatingPlan,
861
+ updateSeatingPlanThumbnail
862
+ });
18
863
  //# sourceMappingURL=meta.js.map