@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,18 +1,1313 @@
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.context.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
+ // index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ Fieldset: () => Fieldset,
24
+ Icon: () => Icon,
25
+ Numbering: () => Numbering,
26
+ PlaceTypeEnumType: () => PlaceTypeEnumType,
27
+ Position: () => Position,
28
+ ShapeTypeEnumType: () => ShapeTypeEnumType,
29
+ SortOrder: () => SortOrder,
30
+ Type: () => Type,
31
+ WebhookIdentityType: () => WebhookIdentityType,
32
+ copySeatingPlan: () => copySeatingPlan4,
33
+ createSeatingPlan: () => createSeatingPlan4,
34
+ deleteSeatingPlan: () => deleteSeatingPlan4,
35
+ findSeatingPlan: () => findSeatingPlan4,
36
+ getSeatingPlan: () => getSeatingPlan4,
37
+ getSeatingPlanThumbnail: () => getSeatingPlanThumbnail4,
38
+ onSeatingPlanCreated: () => onSeatingPlanCreated2,
39
+ onSeatingPlanDeleted: () => onSeatingPlanDeleted2,
40
+ onSeatingPlanUpdated: () => onSeatingPlanUpdated2,
41
+ querySeatingPlan: () => querySeatingPlan4,
42
+ updateSeatingPlan: () => updateSeatingPlan4,
43
+ updateSeatingPlanThumbnail: () => updateSeatingPlanThumbnail4
44
+ });
45
+ module.exports = __toCommonJS(index_exports);
46
+
47
+ // src/seating-v1-seating-plan-seating-plan.public.ts
48
+ var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
49
+ var import_float3 = require("@wix/sdk-runtime/transformations/float");
50
+ var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
51
+ var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
52
+ var import_sdk_types = require("@wix/sdk-types");
53
+
54
+ // src/seating-v1-seating-plan-seating-plan.universal.ts
55
+ var import_transform_error = require("@wix/sdk-runtime/transform-error");
56
+ var import_query_builder = require("@wix/sdk-runtime/query-builder");
57
+ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
58
+
59
+ // src/seating-v1-seating-plan-seating-plan.http.ts
60
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
61
+ var import_float = require("@wix/sdk-runtime/transformations/float");
62
+ var import_float2 = require("@wix/sdk-runtime/transformations/float");
63
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
64
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
65
+ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
66
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
67
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
68
+ function resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl(opts) {
69
+ const domainToMappings = {
70
+ "manage._base_domain_": [
71
+ {
72
+ srcPath: "/_api/seating-plans",
73
+ destPath: ""
74
+ }
75
+ ],
76
+ "www._base_domain_": [
77
+ {
78
+ srcPath: "/_api/seating-plans",
79
+ destPath: ""
80
+ }
81
+ ],
82
+ "editor-flow.wixapps.net": [
83
+ {
84
+ srcPath: "/_api/seating-plans",
85
+ destPath: ""
86
+ }
87
+ ],
88
+ "editor._base_domain_": [
89
+ {
90
+ srcPath: "/_api/seating-plans",
91
+ destPath: ""
92
+ }
93
+ ],
94
+ "blocks._base_domain_": [
95
+ {
96
+ srcPath: "/_api/seating-plans",
97
+ destPath: ""
98
+ }
99
+ ],
100
+ "create.editorx": [
101
+ {
102
+ srcPath: "/_api/seating-plans",
103
+ destPath: ""
104
+ }
105
+ ],
106
+ "api._base_domain_": [
107
+ {
108
+ srcPath: "/seating-plans",
109
+ destPath: ""
110
+ }
111
+ ],
112
+ "editor.wixapps.net": [
113
+ {
114
+ srcPath: "/_api/seating-plans",
115
+ destPath: ""
116
+ }
117
+ ],
118
+ "api._api_base_domain_": [
119
+ {
120
+ srcPath: "/seating-plans",
121
+ destPath: ""
122
+ }
123
+ ],
124
+ _: [
125
+ {
126
+ srcPath: "/_api/seating-plans",
127
+ destPath: ""
128
+ }
129
+ ]
130
+ };
131
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
132
+ }
133
+ function resolveComWixpressSeatingSeatingPlanManagementUrl(opts) {
134
+ const domainToMappings = {
135
+ "manage._base_domain_": [
136
+ {
137
+ srcPath: "/_api/seating-plans",
138
+ destPath: ""
139
+ }
140
+ ],
141
+ "www._base_domain_": [
142
+ {
143
+ srcPath: "/_api/seating-plans",
144
+ destPath: ""
145
+ }
146
+ ],
147
+ "editor-flow.wixapps.net": [
148
+ {
149
+ srcPath: "/_api/seating-plans",
150
+ destPath: ""
151
+ }
152
+ ],
153
+ "editor._base_domain_": [
154
+ {
155
+ srcPath: "/_api/seating-plans",
156
+ destPath: ""
157
+ }
158
+ ],
159
+ "blocks._base_domain_": [
160
+ {
161
+ srcPath: "/_api/seating-plans",
162
+ destPath: ""
163
+ }
164
+ ],
165
+ "create.editorx": [
166
+ {
167
+ srcPath: "/_api/seating-plans",
168
+ destPath: ""
169
+ }
170
+ ],
171
+ "api._base_domain_": [
172
+ {
173
+ srcPath: "/seating-plans",
174
+ destPath: ""
175
+ }
176
+ ],
177
+ "editor.wixapps.net": [
178
+ {
179
+ srcPath: "/_api/seating-plans",
180
+ destPath: ""
181
+ }
182
+ ],
183
+ "api._api_base_domain_": [
184
+ {
185
+ srcPath: "/seating-plans",
186
+ destPath: ""
187
+ }
188
+ ],
189
+ _: [
190
+ {
191
+ srcPath: "/_api/seating-plans",
192
+ destPath: ""
193
+ }
194
+ ]
195
+ };
196
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
197
+ }
198
+ var PACKAGE_NAME = "@wix/auto_sdk_seatings_seating-plan";
199
+ function createSeatingPlan(payload) {
200
+ function __createSeatingPlan({ host }) {
201
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
202
+ {
203
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
204
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
205
+ },
206
+ {
207
+ transformFn: import_float.transformSDKFloatToRESTFloat,
208
+ paths: [
209
+ { path: "plan.sections.elements.uiProperties.x" },
210
+ { path: "plan.sections.elements.uiProperties.y" },
211
+ { path: "plan.sections.elements.uiProperties.width" },
212
+ { path: "plan.sections.elements.uiProperties.height" },
213
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
214
+ { path: "plan.sections.elements.multiRowProperties.curveAngleTo" },
215
+ { path: "plan.sections.elements.multiRowProperties.curveAngleFrom" },
216
+ {
217
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
218
+ },
219
+ {
220
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
221
+ },
222
+ {
223
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
224
+ },
225
+ {
226
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
227
+ },
228
+ { path: "plan.elementGroups.uiProperties.x" },
229
+ { path: "plan.elementGroups.uiProperties.y" },
230
+ { path: "plan.elementGroups.uiProperties.width" },
231
+ { path: "plan.elementGroups.uiProperties.height" },
232
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
233
+ ]
234
+ }
235
+ ]);
236
+ const metadata = {
237
+ entityFqdn: "wix.seating.v1.seating_plan",
238
+ method: "POST",
239
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.CreateSeatingPlan",
240
+ packageName: PACKAGE_NAME,
241
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
242
+ protoPath: "/v1/plans",
243
+ data: serializedData,
244
+ host
245
+ }),
246
+ data: serializedData,
247
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
248
+ {
249
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
250
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
251
+ },
252
+ {
253
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
254
+ paths: [
255
+ { path: "plan.sections.elements.uiProperties.x" },
256
+ { path: "plan.sections.elements.uiProperties.y" },
257
+ { path: "plan.sections.elements.uiProperties.width" },
258
+ { path: "plan.sections.elements.uiProperties.height" },
259
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
260
+ {
261
+ path: "plan.sections.elements.multiRowProperties.curveAngleTo"
262
+ },
263
+ {
264
+ path: "plan.sections.elements.multiRowProperties.curveAngleFrom"
265
+ },
266
+ {
267
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
268
+ },
269
+ {
270
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
271
+ },
272
+ {
273
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
274
+ },
275
+ {
276
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
277
+ },
278
+ { path: "plan.elementGroups.uiProperties.x" },
279
+ { path: "plan.elementGroups.uiProperties.y" },
280
+ { path: "plan.elementGroups.uiProperties.width" },
281
+ { path: "plan.elementGroups.uiProperties.height" },
282
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
283
+ ]
284
+ }
285
+ ])
286
+ };
287
+ return metadata;
288
+ }
289
+ return __createSeatingPlan;
290
+ }
291
+ function updateSeatingPlan(payload) {
292
+ function __updateSeatingPlan({ host }) {
293
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
294
+ {
295
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
296
+ paths: [{ path: "fields" }]
297
+ },
298
+ {
299
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
300
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
301
+ },
302
+ {
303
+ transformFn: import_float.transformSDKFloatToRESTFloat,
304
+ paths: [
305
+ { path: "plan.sections.elements.uiProperties.x" },
306
+ { path: "plan.sections.elements.uiProperties.y" },
307
+ { path: "plan.sections.elements.uiProperties.width" },
308
+ { path: "plan.sections.elements.uiProperties.height" },
309
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
310
+ { path: "plan.sections.elements.multiRowProperties.curveAngleTo" },
311
+ { path: "plan.sections.elements.multiRowProperties.curveAngleFrom" },
312
+ {
313
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
314
+ },
315
+ {
316
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
317
+ },
318
+ {
319
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
320
+ },
321
+ {
322
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
323
+ },
324
+ { path: "plan.elementGroups.uiProperties.x" },
325
+ { path: "plan.elementGroups.uiProperties.y" },
326
+ { path: "plan.elementGroups.uiProperties.width" },
327
+ { path: "plan.elementGroups.uiProperties.height" },
328
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
329
+ ]
330
+ }
331
+ ]);
332
+ const metadata = {
333
+ entityFqdn: "wix.seating.v1.seating_plan",
334
+ method: "PUT",
335
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.UpdateSeatingPlan",
336
+ packageName: PACKAGE_NAME,
337
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
338
+ protoPath: "/v1/plans",
339
+ data: serializedData,
340
+ host
341
+ }),
342
+ data: serializedData,
343
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
344
+ {
345
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
346
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
347
+ },
348
+ {
349
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
350
+ paths: [
351
+ { path: "plan.sections.elements.uiProperties.x" },
352
+ { path: "plan.sections.elements.uiProperties.y" },
353
+ { path: "plan.sections.elements.uiProperties.width" },
354
+ { path: "plan.sections.elements.uiProperties.height" },
355
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
356
+ {
357
+ path: "plan.sections.elements.multiRowProperties.curveAngleTo"
358
+ },
359
+ {
360
+ path: "plan.sections.elements.multiRowProperties.curveAngleFrom"
361
+ },
362
+ {
363
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
364
+ },
365
+ {
366
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
367
+ },
368
+ {
369
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
370
+ },
371
+ {
372
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
373
+ },
374
+ { path: "plan.elementGroups.uiProperties.x" },
375
+ { path: "plan.elementGroups.uiProperties.y" },
376
+ { path: "plan.elementGroups.uiProperties.width" },
377
+ { path: "plan.elementGroups.uiProperties.height" },
378
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
379
+ ]
380
+ }
381
+ ])
382
+ };
383
+ return metadata;
384
+ }
385
+ return __updateSeatingPlan;
386
+ }
387
+ function copySeatingPlan(payload) {
388
+ function __copySeatingPlan({ host }) {
389
+ const metadata = {
390
+ entityFqdn: "wix.seating.v1.seating_plan",
391
+ method: "POST",
392
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.CopySeatingPlan",
393
+ packageName: PACKAGE_NAME,
394
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
395
+ protoPath: "/v1/plans/copy",
396
+ data: payload,
397
+ host
398
+ }),
399
+ data: payload,
400
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
401
+ {
402
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
403
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
404
+ },
405
+ {
406
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
407
+ paths: [
408
+ { path: "plan.sections.elements.uiProperties.x" },
409
+ { path: "plan.sections.elements.uiProperties.y" },
410
+ { path: "plan.sections.elements.uiProperties.width" },
411
+ { path: "plan.sections.elements.uiProperties.height" },
412
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
413
+ {
414
+ path: "plan.sections.elements.multiRowProperties.curveAngleTo"
415
+ },
416
+ {
417
+ path: "plan.sections.elements.multiRowProperties.curveAngleFrom"
418
+ },
419
+ {
420
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
421
+ },
422
+ {
423
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
424
+ },
425
+ {
426
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
427
+ },
428
+ {
429
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
430
+ },
431
+ { path: "plan.elementGroups.uiProperties.x" },
432
+ { path: "plan.elementGroups.uiProperties.y" },
433
+ { path: "plan.elementGroups.uiProperties.width" },
434
+ { path: "plan.elementGroups.uiProperties.height" },
435
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
436
+ ]
437
+ }
438
+ ])
439
+ };
440
+ return metadata;
441
+ }
442
+ return __copySeatingPlan;
443
+ }
444
+ function querySeatingPlan(payload) {
445
+ function __querySeatingPlan({ host }) {
446
+ const metadata = {
447
+ entityFqdn: "wix.seating.v1.seating_plan",
448
+ method: "POST",
449
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.QuerySeatingPlan",
450
+ packageName: PACKAGE_NAME,
451
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
452
+ protoPath: "/v1/plans/query",
453
+ data: payload,
454
+ host
455
+ }),
456
+ data: payload,
457
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
458
+ {
459
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
460
+ paths: [
461
+ { path: "plans.createdDate" },
462
+ { path: "plans.updatedDate" }
463
+ ]
464
+ },
465
+ {
466
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
467
+ paths: [
468
+ { path: "plans.sections.elements.uiProperties.x" },
469
+ { path: "plans.sections.elements.uiProperties.y" },
470
+ { path: "plans.sections.elements.uiProperties.width" },
471
+ { path: "plans.sections.elements.uiProperties.height" },
472
+ { path: "plans.sections.elements.uiProperties.rotationAngle" },
473
+ {
474
+ path: "plans.sections.elements.multiRowProperties.curveAngleTo"
475
+ },
476
+ {
477
+ path: "plans.sections.elements.multiRowProperties.curveAngleFrom"
478
+ },
479
+ {
480
+ path: "plans.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
481
+ },
482
+ {
483
+ path: "plans.sections.elements.multiRowProperties.rows.uiProperties.width"
484
+ },
485
+ {
486
+ path: "plans.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
487
+ },
488
+ {
489
+ path: "plans.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
490
+ },
491
+ { path: "plans.elementGroups.uiProperties.x" },
492
+ { path: "plans.elementGroups.uiProperties.y" },
493
+ { path: "plans.elementGroups.uiProperties.width" },
494
+ { path: "plans.elementGroups.uiProperties.height" },
495
+ { path: "plans.elementGroups.uiProperties.rotationAngle" }
496
+ ]
497
+ }
498
+ ])
499
+ };
500
+ return metadata;
501
+ }
502
+ return __querySeatingPlan;
503
+ }
504
+ function getSeatingPlan(payload) {
505
+ function __getSeatingPlan({ host }) {
506
+ const metadata = {
507
+ entityFqdn: "wix.seating.v1.seating_plan",
508
+ method: "GET",
509
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.GetSeatingPlan",
510
+ packageName: PACKAGE_NAME,
511
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
512
+ protoPath: "/v1/plans/{id}",
513
+ data: payload,
514
+ host
515
+ }),
516
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
517
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
518
+ {
519
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
520
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
521
+ },
522
+ {
523
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
524
+ paths: [
525
+ { path: "plan.sections.elements.uiProperties.x" },
526
+ { path: "plan.sections.elements.uiProperties.y" },
527
+ { path: "plan.sections.elements.uiProperties.width" },
528
+ { path: "plan.sections.elements.uiProperties.height" },
529
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
530
+ {
531
+ path: "plan.sections.elements.multiRowProperties.curveAngleTo"
532
+ },
533
+ {
534
+ path: "plan.sections.elements.multiRowProperties.curveAngleFrom"
535
+ },
536
+ {
537
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
538
+ },
539
+ {
540
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
541
+ },
542
+ {
543
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
544
+ },
545
+ {
546
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
547
+ },
548
+ { path: "plan.elementGroups.uiProperties.x" },
549
+ { path: "plan.elementGroups.uiProperties.y" },
550
+ { path: "plan.elementGroups.uiProperties.width" },
551
+ { path: "plan.elementGroups.uiProperties.height" },
552
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
553
+ ]
554
+ }
555
+ ])
556
+ };
557
+ return metadata;
558
+ }
559
+ return __getSeatingPlan;
560
+ }
561
+ function findSeatingPlan(payload) {
562
+ function __findSeatingPlan({ host }) {
563
+ const metadata = {
564
+ entityFqdn: "wix.seating.v1.seating_plan",
565
+ method: "POST",
566
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.FindSeatingPlan",
567
+ packageName: PACKAGE_NAME,
568
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
569
+ protoPath: "/v1/plans/find",
570
+ data: payload,
571
+ host
572
+ }),
573
+ data: payload,
574
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
575
+ {
576
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
577
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
578
+ },
579
+ {
580
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
581
+ paths: [
582
+ { path: "plan.sections.elements.uiProperties.x" },
583
+ { path: "plan.sections.elements.uiProperties.y" },
584
+ { path: "plan.sections.elements.uiProperties.width" },
585
+ { path: "plan.sections.elements.uiProperties.height" },
586
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
587
+ {
588
+ path: "plan.sections.elements.multiRowProperties.curveAngleTo"
589
+ },
590
+ {
591
+ path: "plan.sections.elements.multiRowProperties.curveAngleFrom"
592
+ },
593
+ {
594
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
595
+ },
596
+ {
597
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
598
+ },
599
+ {
600
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
601
+ },
602
+ {
603
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
604
+ },
605
+ { path: "plan.elementGroups.uiProperties.x" },
606
+ { path: "plan.elementGroups.uiProperties.y" },
607
+ { path: "plan.elementGroups.uiProperties.width" },
608
+ { path: "plan.elementGroups.uiProperties.height" },
609
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
610
+ ]
611
+ }
612
+ ])
613
+ };
614
+ return metadata;
615
+ }
616
+ return __findSeatingPlan;
617
+ }
618
+ function deleteSeatingPlan(payload) {
619
+ function __deleteSeatingPlan({ host }) {
620
+ const metadata = {
621
+ entityFqdn: "wix.seating.v1.seating_plan",
622
+ method: "DELETE",
623
+ methodFqn: "com.wixpress.seating.SeatingPlanManagement.DeleteSeatingPlan",
624
+ packageName: PACKAGE_NAME,
625
+ url: resolveComWixpressSeatingSeatingPlanManagementUrl({
626
+ protoPath: "/v1/plans/{id}",
627
+ data: payload,
628
+ host
629
+ }),
630
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
631
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
632
+ {
633
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
634
+ paths: [{ path: "plan.createdDate" }, { path: "plan.updatedDate" }]
635
+ },
636
+ {
637
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
638
+ paths: [
639
+ { path: "plan.sections.elements.uiProperties.x" },
640
+ { path: "plan.sections.elements.uiProperties.y" },
641
+ { path: "plan.sections.elements.uiProperties.width" },
642
+ { path: "plan.sections.elements.uiProperties.height" },
643
+ { path: "plan.sections.elements.uiProperties.rotationAngle" },
644
+ {
645
+ path: "plan.sections.elements.multiRowProperties.curveAngleTo"
646
+ },
647
+ {
648
+ path: "plan.sections.elements.multiRowProperties.curveAngleFrom"
649
+ },
650
+ {
651
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
652
+ },
653
+ {
654
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
655
+ },
656
+ {
657
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
658
+ },
659
+ {
660
+ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
661
+ },
662
+ { path: "plan.elementGroups.uiProperties.x" },
663
+ { path: "plan.elementGroups.uiProperties.y" },
664
+ { path: "plan.elementGroups.uiProperties.width" },
665
+ { path: "plan.elementGroups.uiProperties.height" },
666
+ { path: "plan.elementGroups.uiProperties.rotationAngle" }
667
+ ]
668
+ }
669
+ ])
670
+ };
671
+ return metadata;
672
+ }
673
+ return __deleteSeatingPlan;
674
+ }
675
+ function updateSeatingPlanThumbnail(payload) {
676
+ function __updateSeatingPlanThumbnail({ host }) {
677
+ const metadata = {
678
+ entityFqdn: "wix.seating.v1.seating_plan",
679
+ method: "POST",
680
+ methodFqn: "com.wixpress.seating.SeatingPlanThumbnailService.UpdateSeatingPlanThumbnail",
681
+ packageName: PACKAGE_NAME,
682
+ url: resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl({
683
+ protoPath: "/v1/plan-thumbnails",
684
+ data: payload,
685
+ host
686
+ }),
687
+ data: payload
688
+ };
689
+ return metadata;
690
+ }
691
+ return __updateSeatingPlanThumbnail;
692
+ }
693
+ function getSeatingPlanThumbnail(payload) {
694
+ function __getSeatingPlanThumbnail({ host }) {
695
+ const metadata = {
696
+ entityFqdn: "wix.seating.v1.seating_plan",
697
+ method: "GET",
698
+ methodFqn: "com.wixpress.seating.SeatingPlanThumbnailService.GetSeatingPlanThumbnail",
699
+ packageName: PACKAGE_NAME,
700
+ url: resolveComWixpressSeatingSeatingPlanThumbnailServiceUrl({
701
+ protoPath: "/v1/plan-thumbnails",
702
+ data: payload,
703
+ host
704
+ }),
705
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
706
+ };
707
+ return metadata;
708
+ }
709
+ return __getSeatingPlanThumbnail;
710
+ }
711
+
712
+ // src/seating-v1-seating-plan-seating-plan.universal.ts
713
+ var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
714
+ var Type = /* @__PURE__ */ ((Type2) => {
715
+ Type2["AREA"] = "AREA";
716
+ Type2["ROW"] = "ROW";
717
+ Type2["MULTI_ROW"] = "MULTI_ROW";
718
+ Type2["TABLE"] = "TABLE";
719
+ Type2["ROUND_TABLE"] = "ROUND_TABLE";
720
+ Type2["SHAPE"] = "SHAPE";
721
+ return Type2;
722
+ })(Type || {});
723
+ var PlaceTypeEnumType = /* @__PURE__ */ ((PlaceTypeEnumType2) => {
724
+ PlaceTypeEnumType2["UNKNOWN_PROPERTY"] = "UNKNOWN_PROPERTY";
725
+ PlaceTypeEnumType2["STANDARD"] = "STANDARD";
726
+ PlaceTypeEnumType2["WHEELCHAIR"] = "WHEELCHAIR";
727
+ PlaceTypeEnumType2["ACCESSIBLE"] = "ACCESSIBLE";
728
+ PlaceTypeEnumType2["COMPANION"] = "COMPANION";
729
+ PlaceTypeEnumType2["OBSTRUCTED"] = "OBSTRUCTED";
730
+ PlaceTypeEnumType2["DISCOUNT"] = "DISCOUNT";
731
+ return PlaceTypeEnumType2;
732
+ })(PlaceTypeEnumType || {});
733
+ var ShapeTypeEnumType = /* @__PURE__ */ ((ShapeTypeEnumType2) => {
734
+ ShapeTypeEnumType2["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
735
+ ShapeTypeEnumType2["TEXT"] = "TEXT";
736
+ ShapeTypeEnumType2["RECTANGLE"] = "RECTANGLE";
737
+ ShapeTypeEnumType2["ELLIPSE"] = "ELLIPSE";
738
+ ShapeTypeEnumType2["LINE"] = "LINE";
739
+ ShapeTypeEnumType2["ICON"] = "ICON";
740
+ ShapeTypeEnumType2["IMAGE"] = "IMAGE";
741
+ return ShapeTypeEnumType2;
742
+ })(ShapeTypeEnumType || {});
743
+ var Position = /* @__PURE__ */ ((Position2) => {
744
+ Position2["UNKNOWN_POSITION"] = "UNKNOWN_POSITION";
745
+ Position2["LEFT"] = "LEFT";
746
+ Position2["RIGHT"] = "RIGHT";
747
+ Position2["BOTH"] = "BOTH";
748
+ Position2["NONE"] = "NONE";
749
+ return Position2;
750
+ })(Position || {});
751
+ var Icon = /* @__PURE__ */ ((Icon2) => {
752
+ Icon2["UNKNOWN_ICON"] = "UNKNOWN_ICON";
753
+ Icon2["ENTER"] = "ENTER";
754
+ Icon2["EXIT"] = "EXIT";
755
+ Icon2["DRINKS"] = "DRINKS";
756
+ Icon2["WC"] = "WC";
757
+ Icon2["WC_MEN"] = "WC_MEN";
758
+ Icon2["WC_WOMEN"] = "WC_WOMEN";
759
+ Icon2["FOOD"] = "FOOD";
760
+ Icon2["STAIRS"] = "STAIRS";
761
+ Icon2["ELEVATOR"] = "ELEVATOR";
762
+ Icon2["SMOKING"] = "SMOKING";
763
+ Icon2["CHECKROOM"] = "CHECKROOM";
764
+ Icon2["STAGE"] = "STAGE";
765
+ return Icon2;
766
+ })(Icon || {});
767
+ var Numbering = /* @__PURE__ */ ((Numbering2) => {
768
+ Numbering2["UNKNOWN_NUMBERING"] = "UNKNOWN_NUMBERING";
769
+ Numbering2["NUMERIC"] = "NUMERIC";
770
+ Numbering2["ODD_EVEN"] = "ODD_EVEN";
771
+ Numbering2["ALPHABETICAL"] = "ALPHABETICAL";
772
+ return Numbering2;
773
+ })(Numbering || {});
774
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
775
+ SortOrder2["ASC"] = "ASC";
776
+ SortOrder2["DESC"] = "DESC";
777
+ return SortOrder2;
778
+ })(SortOrder || {});
779
+ var Fieldset = /* @__PURE__ */ ((Fieldset2) => {
780
+ Fieldset2["ELEMENTS"] = "ELEMENTS";
781
+ Fieldset2["CATEGORIES"] = "CATEGORIES";
782
+ Fieldset2["PLACES"] = "PLACES";
783
+ Fieldset2["CONFIG"] = "CONFIG";
784
+ Fieldset2["ELEMENT_GROUPS"] = "ELEMENT_GROUPS";
785
+ return Fieldset2;
786
+ })(Fieldset || {});
787
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
788
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
789
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
790
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
791
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
792
+ WebhookIdentityType2["APP"] = "APP";
793
+ return WebhookIdentityType2;
794
+ })(WebhookIdentityType || {});
795
+ async function createSeatingPlan2(plan) {
796
+ const { httpClient, sideEffects } = arguments[1];
797
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ plan });
798
+ const reqOpts = createSeatingPlan(payload);
799
+ sideEffects?.onSiteCall?.();
800
+ try {
801
+ const result = await httpClient.request(reqOpts);
802
+ sideEffects?.onSuccess?.(result);
803
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.plan;
804
+ } catch (err) {
805
+ const transformedError = (0, import_transform_error.transformError)(
806
+ err,
807
+ {
808
+ spreadPathsToArguments: {},
809
+ explicitPathsToArguments: { plan: "$[0]" },
810
+ singleArgumentUnchanged: false
811
+ },
812
+ ["plan"]
813
+ );
814
+ sideEffects?.onError?.(err);
815
+ throw transformedError;
816
+ }
817
+ }
818
+ async function updateSeatingPlan2(options) {
819
+ const { httpClient, sideEffects } = arguments[1];
820
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
821
+ plan: options?.plan,
822
+ fields: options?.fields
823
+ });
824
+ const reqOpts = updateSeatingPlan(payload);
825
+ sideEffects?.onSiteCall?.();
826
+ try {
827
+ const result = await httpClient.request(reqOpts);
828
+ sideEffects?.onSuccess?.(result);
829
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.plan;
830
+ } catch (err) {
831
+ const transformedError = (0, import_transform_error.transformError)(
832
+ err,
833
+ {
834
+ spreadPathsToArguments: {},
835
+ explicitPathsToArguments: { plan: "$[0].plan", fields: "$[0].fields" },
836
+ singleArgumentUnchanged: false
837
+ },
838
+ ["options"]
839
+ );
840
+ sideEffects?.onError?.(err);
841
+ throw transformedError;
842
+ }
843
+ }
844
+ async function copySeatingPlan2(_id, options) {
845
+ const { httpClient, sideEffects } = arguments[2];
846
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
847
+ id: _id,
848
+ title: options?.title,
849
+ externalId: options?.externalId
850
+ });
851
+ const reqOpts = copySeatingPlan(payload);
852
+ sideEffects?.onSiteCall?.();
853
+ try {
854
+ const result = await httpClient.request(reqOpts);
855
+ sideEffects?.onSuccess?.(result);
856
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
857
+ } catch (err) {
858
+ const transformedError = (0, import_transform_error.transformError)(
859
+ err,
860
+ {
861
+ spreadPathsToArguments: {},
862
+ explicitPathsToArguments: {
863
+ id: "$[0]",
864
+ title: "$[1].title",
865
+ externalId: "$[1].externalId"
866
+ },
867
+ singleArgumentUnchanged: false
868
+ },
869
+ ["_id", "options"]
870
+ );
871
+ sideEffects?.onError?.(err);
872
+ throw transformedError;
873
+ }
874
+ }
875
+ function querySeatingPlan2(options) {
876
+ const { httpClient, sideEffects } = arguments[1];
877
+ return (0, import_query_builder.queryBuilder)({
878
+ func: async (payload) => {
879
+ const reqOpts = querySeatingPlan({
880
+ ...payload,
881
+ ...options ?? {}
882
+ });
883
+ sideEffects?.onSiteCall?.();
884
+ try {
885
+ const result = await httpClient.request(reqOpts);
886
+ sideEffects?.onSuccess?.(result);
887
+ return result;
888
+ } catch (err) {
889
+ sideEffects?.onError?.(err);
890
+ throw err;
891
+ }
892
+ },
893
+ requestTransformer: (query) => {
894
+ const args = [query, options];
895
+ return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
896
+ ...args?.[1],
897
+ query: args?.[0]
898
+ });
899
+ },
900
+ responseTransformer: ({ data }) => {
901
+ const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
902
+ (0, import_transform_paths2.transformPaths)(data, [])
903
+ );
904
+ return {
905
+ items: transformedData?.plans,
906
+ pagingMetadata: transformedData?.metadata
907
+ };
908
+ },
909
+ errorTransformer: (err) => {
910
+ const transformedError = (0, import_transform_error.transformError)(err, {
911
+ spreadPathsToArguments: {},
912
+ explicitPathsToArguments: { query: "$[0]" },
913
+ singleArgumentUnchanged: false
914
+ });
915
+ throw transformedError;
916
+ },
917
+ pagingMethod: "CURSOR",
918
+ transformationPaths: {}
919
+ });
920
+ }
921
+ async function getSeatingPlan2(_id, options) {
922
+ const { httpClient, sideEffects } = arguments[2];
923
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
924
+ id: _id,
925
+ fieldset: options?.fieldset,
926
+ fieldsets: options?.fieldsets,
927
+ seatingPlanMask: options?.seatingPlanMask
928
+ });
929
+ const reqOpts = getSeatingPlan(payload);
930
+ sideEffects?.onSiteCall?.();
931
+ try {
932
+ const result = await httpClient.request(reqOpts);
933
+ sideEffects?.onSuccess?.(result);
934
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.plan;
935
+ } catch (err) {
936
+ const transformedError = (0, import_transform_error.transformError)(
937
+ err,
938
+ {
939
+ spreadPathsToArguments: {},
940
+ explicitPathsToArguments: {
941
+ id: "$[0]",
942
+ fieldset: "$[1].fieldset",
943
+ fieldsets: "$[1].fieldsets",
944
+ seatingPlanMask: "$[1].seatingPlanMask"
945
+ },
946
+ singleArgumentUnchanged: false
947
+ },
948
+ ["_id", "options"]
949
+ );
950
+ sideEffects?.onError?.(err);
951
+ throw transformedError;
952
+ }
953
+ }
954
+ async function findSeatingPlan2(filter, options) {
955
+ const { httpClient, sideEffects } = arguments[2];
956
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
957
+ filter,
958
+ fieldset: options?.fieldset,
959
+ fieldsets: options?.fieldsets,
960
+ seatingPlanMask: options?.seatingPlanMask
961
+ });
962
+ const reqOpts = findSeatingPlan(payload);
963
+ sideEffects?.onSiteCall?.();
964
+ try {
965
+ const result = await httpClient.request(reqOpts);
966
+ sideEffects?.onSuccess?.(result);
967
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
968
+ } catch (err) {
969
+ const transformedError = (0, import_transform_error.transformError)(
970
+ err,
971
+ {
972
+ spreadPathsToArguments: {},
973
+ explicitPathsToArguments: {
974
+ filter: "$[0]",
975
+ fieldset: "$[1].fieldset",
976
+ fieldsets: "$[1].fieldsets",
977
+ seatingPlanMask: "$[1].seatingPlanMask"
978
+ },
979
+ singleArgumentUnchanged: false
980
+ },
981
+ ["filter", "options"]
982
+ );
983
+ sideEffects?.onError?.(err);
984
+ throw transformedError;
985
+ }
986
+ }
987
+ async function deleteSeatingPlan2(_id) {
988
+ const { httpClient, sideEffects } = arguments[1];
989
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
990
+ const reqOpts = deleteSeatingPlan(payload);
991
+ sideEffects?.onSiteCall?.();
992
+ try {
993
+ const result = await httpClient.request(reqOpts);
994
+ sideEffects?.onSuccess?.(result);
995
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
996
+ } catch (err) {
997
+ const transformedError = (0, import_transform_error.transformError)(
998
+ err,
999
+ {
1000
+ spreadPathsToArguments: {},
1001
+ explicitPathsToArguments: { id: "$[0]" },
1002
+ singleArgumentUnchanged: false
1003
+ },
1004
+ ["_id"]
1005
+ );
1006
+ sideEffects?.onError?.(err);
1007
+ throw transformedError;
1008
+ }
1009
+ }
1010
+ async function updateSeatingPlanThumbnail2(thumbnail) {
1011
+ const { httpClient, sideEffects } = arguments[1];
1012
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1013
+ thumbnail
1014
+ });
1015
+ const reqOpts = updateSeatingPlanThumbnail(payload);
1016
+ sideEffects?.onSiteCall?.();
1017
+ try {
1018
+ const result = await httpClient.request(reqOpts);
1019
+ sideEffects?.onSuccess?.(result);
1020
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1021
+ } catch (err) {
1022
+ const transformedError = (0, import_transform_error.transformError)(
1023
+ err,
1024
+ {
1025
+ spreadPathsToArguments: {},
1026
+ explicitPathsToArguments: { thumbnail: "$[0]" },
1027
+ singleArgumentUnchanged: false
1028
+ },
1029
+ ["thumbnail"]
1030
+ );
1031
+ sideEffects?.onError?.(err);
1032
+ throw transformedError;
1033
+ }
1034
+ }
1035
+ async function getSeatingPlanThumbnail2(_id) {
1036
+ const { httpClient, sideEffects } = arguments[1];
1037
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
1038
+ const reqOpts = getSeatingPlanThumbnail(payload);
1039
+ sideEffects?.onSiteCall?.();
1040
+ try {
1041
+ const result = await httpClient.request(reqOpts);
1042
+ sideEffects?.onSuccess?.(result);
1043
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1044
+ } catch (err) {
1045
+ const transformedError = (0, import_transform_error.transformError)(
1046
+ err,
1047
+ {
1048
+ spreadPathsToArguments: {},
1049
+ explicitPathsToArguments: { id: "$[0]" },
1050
+ singleArgumentUnchanged: false
1051
+ },
1052
+ ["_id"]
1053
+ );
1054
+ sideEffects?.onError?.(err);
1055
+ throw transformedError;
1056
+ }
1057
+ }
1058
+
1059
+ // src/seating-v1-seating-plan-seating-plan.public.ts
1060
+ function createSeatingPlan3(httpClient) {
1061
+ return (plan) => createSeatingPlan2(
1062
+ plan,
1063
+ // @ts-ignore
1064
+ { httpClient }
1065
+ );
1066
+ }
1067
+ function updateSeatingPlan3(httpClient) {
1068
+ return (options) => updateSeatingPlan2(
1069
+ options,
1070
+ // @ts-ignore
1071
+ { httpClient }
1072
+ );
1073
+ }
1074
+ function copySeatingPlan3(httpClient) {
1075
+ return (_id, options) => copySeatingPlan2(
1076
+ _id,
1077
+ options,
1078
+ // @ts-ignore
1079
+ { httpClient }
1080
+ );
1081
+ }
1082
+ function querySeatingPlan3(httpClient) {
1083
+ return (options) => querySeatingPlan2(
1084
+ options,
1085
+ // @ts-ignore
1086
+ { httpClient }
1087
+ );
1088
+ }
1089
+ function getSeatingPlan3(httpClient) {
1090
+ return (_id, options) => getSeatingPlan2(
1091
+ _id,
1092
+ options,
1093
+ // @ts-ignore
1094
+ { httpClient }
1095
+ );
1096
+ }
1097
+ function findSeatingPlan3(httpClient) {
1098
+ return (filter, options) => findSeatingPlan2(
1099
+ filter,
1100
+ options,
1101
+ // @ts-ignore
1102
+ { httpClient }
1103
+ );
1104
+ }
1105
+ function deleteSeatingPlan3(httpClient) {
1106
+ return (_id) => deleteSeatingPlan2(
1107
+ _id,
1108
+ // @ts-ignore
1109
+ { httpClient }
1110
+ );
1111
+ }
1112
+ function updateSeatingPlanThumbnail3(httpClient) {
1113
+ return (thumbnail) => updateSeatingPlanThumbnail2(
1114
+ thumbnail,
1115
+ // @ts-ignore
1116
+ { httpClient }
1117
+ );
1118
+ }
1119
+ function getSeatingPlanThumbnail3(httpClient) {
1120
+ return (_id) => getSeatingPlanThumbnail2(
1121
+ _id,
1122
+ // @ts-ignore
1123
+ { httpClient }
1124
+ );
1125
+ }
1126
+ var onSeatingPlanCreated = (0, import_sdk_types.EventDefinition)(
1127
+ "wix.seating.v1.seating_plan_created",
1128
+ true,
1129
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1130
+ (0, import_transform_paths3.transformPaths)(event, [
1131
+ {
1132
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1133
+ paths: [
1134
+ { path: "entity.createdDate" },
1135
+ { path: "entity.updatedDate" },
1136
+ { path: "metadata.eventTime" }
1137
+ ]
1138
+ },
1139
+ {
1140
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
1141
+ paths: [
1142
+ { path: "entity.sections.elements.uiProperties.x" },
1143
+ { path: "entity.sections.elements.uiProperties.y" },
1144
+ { path: "entity.sections.elements.uiProperties.width" },
1145
+ { path: "entity.sections.elements.uiProperties.height" },
1146
+ { path: "entity.sections.elements.uiProperties.rotationAngle" },
1147
+ {
1148
+ path: "entity.sections.elements.multiRowProperties.curveAngleTo"
1149
+ },
1150
+ {
1151
+ path: "entity.sections.elements.multiRowProperties.curveAngleFrom"
1152
+ },
1153
+ {
1154
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
1155
+ },
1156
+ {
1157
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.width"
1158
+ },
1159
+ {
1160
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
1161
+ },
1162
+ {
1163
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
1164
+ },
1165
+ { path: "entity.elementGroups.uiProperties.x" },
1166
+ { path: "entity.elementGroups.uiProperties.y" },
1167
+ { path: "entity.elementGroups.uiProperties.width" },
1168
+ { path: "entity.elementGroups.uiProperties.height" },
1169
+ { path: "entity.elementGroups.uiProperties.rotationAngle" }
1170
+ ]
1171
+ }
1172
+ ])
1173
+ )
1174
+ )();
1175
+ var onSeatingPlanDeleted = (0, import_sdk_types.EventDefinition)(
1176
+ "wix.seating.v1.seating_plan_deleted",
1177
+ true,
1178
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1179
+ (0, import_transform_paths3.transformPaths)(event, [
1180
+ {
1181
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1182
+ paths: [
1183
+ { path: "entity.createdDate" },
1184
+ { path: "entity.updatedDate" },
1185
+ { path: "metadata.eventTime" }
1186
+ ]
1187
+ },
1188
+ {
1189
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
1190
+ paths: [
1191
+ { path: "entity.sections.elements.uiProperties.x" },
1192
+ { path: "entity.sections.elements.uiProperties.y" },
1193
+ { path: "entity.sections.elements.uiProperties.width" },
1194
+ { path: "entity.sections.elements.uiProperties.height" },
1195
+ { path: "entity.sections.elements.uiProperties.rotationAngle" },
1196
+ {
1197
+ path: "entity.sections.elements.multiRowProperties.curveAngleTo"
1198
+ },
1199
+ {
1200
+ path: "entity.sections.elements.multiRowProperties.curveAngleFrom"
1201
+ },
1202
+ {
1203
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
1204
+ },
1205
+ {
1206
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.width"
1207
+ },
1208
+ {
1209
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
1210
+ },
1211
+ {
1212
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
1213
+ },
1214
+ { path: "entity.elementGroups.uiProperties.x" },
1215
+ { path: "entity.elementGroups.uiProperties.y" },
1216
+ { path: "entity.elementGroups.uiProperties.width" },
1217
+ { path: "entity.elementGroups.uiProperties.height" },
1218
+ { path: "entity.elementGroups.uiProperties.rotationAngle" }
1219
+ ]
1220
+ }
1221
+ ])
1222
+ )
1223
+ )();
1224
+ var onSeatingPlanUpdated = (0, import_sdk_types.EventDefinition)(
1225
+ "wix.seating.v1.seating_plan_updated",
1226
+ true,
1227
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1228
+ (0, import_transform_paths3.transformPaths)(event, [
1229
+ {
1230
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1231
+ paths: [
1232
+ { path: "entity.createdDate" },
1233
+ { path: "entity.updatedDate" },
1234
+ { path: "metadata.eventTime" }
1235
+ ]
1236
+ },
1237
+ {
1238
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
1239
+ paths: [
1240
+ { path: "entity.sections.elements.uiProperties.x" },
1241
+ { path: "entity.sections.elements.uiProperties.y" },
1242
+ { path: "entity.sections.elements.uiProperties.width" },
1243
+ { path: "entity.sections.elements.uiProperties.height" },
1244
+ { path: "entity.sections.elements.uiProperties.rotationAngle" },
1245
+ {
1246
+ path: "entity.sections.elements.multiRowProperties.curveAngleTo"
1247
+ },
1248
+ {
1249
+ path: "entity.sections.elements.multiRowProperties.curveAngleFrom"
1250
+ },
1251
+ {
1252
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
1253
+ },
1254
+ {
1255
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.width"
1256
+ },
1257
+ {
1258
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
1259
+ },
1260
+ {
1261
+ path: "entity.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
1262
+ },
1263
+ { path: "entity.elementGroups.uiProperties.x" },
1264
+ { path: "entity.elementGroups.uiProperties.y" },
1265
+ { path: "entity.elementGroups.uiProperties.width" },
1266
+ { path: "entity.elementGroups.uiProperties.height" },
1267
+ { path: "entity.elementGroups.uiProperties.rotationAngle" }
1268
+ ]
1269
+ }
1270
+ ])
1271
+ )
1272
+ )();
1273
+
1274
+ // src/seating-v1-seating-plan-seating-plan.context.ts
1275
+ var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
1276
+ var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
1277
+ var createSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createSeatingPlan3);
1278
+ var updateSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateSeatingPlan3);
1279
+ var copySeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(copySeatingPlan3);
1280
+ var querySeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(querySeatingPlan3);
1281
+ var getSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSeatingPlan3);
1282
+ var findSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(findSeatingPlan3);
1283
+ var deleteSeatingPlan4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteSeatingPlan3);
1284
+ var updateSeatingPlanThumbnail4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateSeatingPlanThumbnail3);
1285
+ var getSeatingPlanThumbnail4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSeatingPlanThumbnail3);
1286
+ var onSeatingPlanCreated2 = (0, import_event_definition_modules.createEventModule)(onSeatingPlanCreated);
1287
+ var onSeatingPlanDeleted2 = (0, import_event_definition_modules.createEventModule)(onSeatingPlanDeleted);
1288
+ var onSeatingPlanUpdated2 = (0, import_event_definition_modules.createEventModule)(onSeatingPlanUpdated);
1289
+ // Annotate the CommonJS export names for ESM import in node:
1290
+ 0 && (module.exports = {
1291
+ Fieldset,
1292
+ Icon,
1293
+ Numbering,
1294
+ PlaceTypeEnumType,
1295
+ Position,
1296
+ ShapeTypeEnumType,
1297
+ SortOrder,
1298
+ Type,
1299
+ WebhookIdentityType,
1300
+ copySeatingPlan,
1301
+ createSeatingPlan,
1302
+ deleteSeatingPlan,
1303
+ findSeatingPlan,
1304
+ getSeatingPlan,
1305
+ getSeatingPlanThumbnail,
1306
+ onSeatingPlanCreated,
1307
+ onSeatingPlanDeleted,
1308
+ onSeatingPlanUpdated,
1309
+ querySeatingPlan,
1310
+ updateSeatingPlan,
1311
+ updateSeatingPlanThumbnail
1312
+ });
18
1313
  //# sourceMappingURL=index.js.map