@wix/auto_sdk_members_members-about 1.0.21 → 1.0.23

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 (29) hide show
  1. package/build/cjs/index.d.ts +5 -5
  2. package/build/cjs/index.js +71 -18
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/{members-about-v2-member-about-members-about.universal-35AgPK6C.d.ts → index.typings.d.ts} +380 -14
  5. package/build/cjs/index.typings.js +1048 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +227 -14
  8. package/build/es/index.d.mts +5 -5
  9. package/build/es/index.mjs +64 -18
  10. package/build/es/index.mjs.map +1 -1
  11. package/build/es/{members-about-v2-member-about-members-about.universal-35AgPK6C.d.mts → index.typings.d.mts} +380 -14
  12. package/build/es/index.typings.mjs +980 -0
  13. package/build/es/index.typings.mjs.map +1 -0
  14. package/build/es/meta.d.mts +227 -14
  15. package/build/internal/cjs/index.d.ts +5 -5
  16. package/build/internal/cjs/index.js +71 -18
  17. package/build/internal/cjs/index.js.map +1 -1
  18. package/build/internal/cjs/{members-about-v2-member-about-members-about.universal-35AgPK6C.d.ts → index.typings.d.ts} +380 -14
  19. package/build/internal/cjs/index.typings.js +1048 -0
  20. package/build/internal/cjs/index.typings.js.map +1 -0
  21. package/build/internal/cjs/meta.d.ts +227 -14
  22. package/build/internal/es/index.d.mts +5 -5
  23. package/build/internal/es/index.mjs +64 -18
  24. package/build/internal/es/index.mjs.map +1 -1
  25. package/build/internal/es/{members-about-v2-member-about-members-about.universal-35AgPK6C.d.mts → index.typings.d.mts} +380 -14
  26. package/build/internal/es/index.typings.mjs +980 -0
  27. package/build/internal/es/index.typings.mjs.map +1 -0
  28. package/build/internal/es/meta.d.mts +227 -14
  29. package/package.json +3 -3
@@ -0,0 +1,980 @@
1
+ // src/members-about-v2-member-about-members-about.universal.ts
2
+ import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
3
+ import { queryBuilder } from "@wix/sdk-runtime/query-builder";
4
+ import {
5
+ renameKeysFromSDKRequestToRESTRequest,
6
+ renameKeysFromRESTResponseToSDKResponse
7
+ } from "@wix/sdk-runtime/rename-all-nested-keys";
8
+
9
+ // src/members-about-v2-member-about-members-about.http.ts
10
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
11
+ import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
12
+ import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
13
+ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
14
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
15
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
16
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
17
+ function resolveWixMembersAboutV2MembersAboutUrl(opts) {
18
+ const domainToMappings = {
19
+ "bo._base_domain_": [
20
+ {
21
+ srcPath: "/members-about-api",
22
+ destPath: ""
23
+ },
24
+ {
25
+ srcPath: "/members/v2/abouts",
26
+ destPath: "/v2/abouts"
27
+ }
28
+ ],
29
+ "wixbo.ai": [
30
+ {
31
+ srcPath: "/members-about-api",
32
+ destPath: ""
33
+ },
34
+ {
35
+ srcPath: "/members/v2/abouts",
36
+ destPath: "/v2/abouts"
37
+ }
38
+ ],
39
+ "wix-bo.com": [
40
+ {
41
+ srcPath: "/members-about-api",
42
+ destPath: ""
43
+ },
44
+ {
45
+ srcPath: "/members/v2/abouts",
46
+ destPath: "/v2/abouts"
47
+ }
48
+ ],
49
+ "www.wixapis.com": [
50
+ {
51
+ srcPath: "/members/v2/abouts",
52
+ destPath: "/v2/abouts"
53
+ }
54
+ ]
55
+ };
56
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
57
+ }
58
+ var PACKAGE_NAME = "@wix/auto_sdk_members_members-about";
59
+ function createMemberAbout(payload) {
60
+ function __createMemberAbout({ host }) {
61
+ const serializedData = transformPaths(payload, [
62
+ {
63
+ transformFn: transformSDKFloatToRESTFloat,
64
+ paths: [
65
+ {
66
+ path: "memberAbout.content.nodes.galleryData.items.image.media.duration"
67
+ },
68
+ {
69
+ path: "memberAbout.content.nodes.galleryData.items.video.media.duration"
70
+ },
71
+ {
72
+ path: "memberAbout.content.nodes.galleryData.items.video.thumbnail.duration"
73
+ },
74
+ { path: "memberAbout.content.nodes.galleryData.options.item.ratio" },
75
+ { path: "memberAbout.content.nodes.imageData.image.duration" },
76
+ { path: "memberAbout.content.nodes.mapData.mapSettings.lat" },
77
+ { path: "memberAbout.content.nodes.mapData.mapSettings.lng" },
78
+ { path: "memberAbout.content.nodes.pollData.poll.image.duration" },
79
+ {
80
+ path: "memberAbout.content.nodes.pollData.poll.options.image.duration"
81
+ },
82
+ {
83
+ path: "memberAbout.content.nodes.pollData.design.poll.background.image.duration"
84
+ },
85
+ { path: "memberAbout.content.nodes.appEmbedData.image.duration" },
86
+ { path: "memberAbout.content.nodes.videoData.video.duration" },
87
+ { path: "memberAbout.content.nodes.videoData.thumbnail.duration" },
88
+ { path: "memberAbout.content.nodes.audioData.audio.duration" },
89
+ { path: "memberAbout.content.nodes.audioData.coverImage.duration" }
90
+ ]
91
+ },
92
+ {
93
+ transformFn: transformSDKTimestampToRESTTimestamp,
94
+ paths: [
95
+ { path: "memberAbout.content.metadata.createdTimestamp" },
96
+ { path: "memberAbout.content.metadata.updatedTimestamp" }
97
+ ]
98
+ }
99
+ ]);
100
+ const metadata = {
101
+ entityFqdn: "wix.members.about.v2.member_about",
102
+ method: "POST",
103
+ methodFqn: "wix.members.about.v2.MembersAbout.CreateMemberAbout",
104
+ packageName: PACKAGE_NAME,
105
+ url: resolveWixMembersAboutV2MembersAboutUrl({
106
+ protoPath: "/v2/abouts",
107
+ data: serializedData,
108
+ host
109
+ }),
110
+ data: serializedData,
111
+ transformResponse: (payload2) => transformPaths(payload2, [
112
+ {
113
+ transformFn: transformRESTFloatToSDKFloat,
114
+ paths: [
115
+ {
116
+ path: "memberAbout.content.nodes.galleryData.items.image.media.duration"
117
+ },
118
+ {
119
+ path: "memberAbout.content.nodes.galleryData.items.video.media.duration"
120
+ },
121
+ {
122
+ path: "memberAbout.content.nodes.galleryData.items.video.thumbnail.duration"
123
+ },
124
+ {
125
+ path: "memberAbout.content.nodes.galleryData.options.item.ratio"
126
+ },
127
+ { path: "memberAbout.content.nodes.imageData.image.duration" },
128
+ { path: "memberAbout.content.nodes.mapData.mapSettings.lat" },
129
+ { path: "memberAbout.content.nodes.mapData.mapSettings.lng" },
130
+ {
131
+ path: "memberAbout.content.nodes.pollData.poll.image.duration"
132
+ },
133
+ {
134
+ path: "memberAbout.content.nodes.pollData.poll.options.image.duration"
135
+ },
136
+ {
137
+ path: "memberAbout.content.nodes.pollData.design.poll.background.image.duration"
138
+ },
139
+ { path: "memberAbout.content.nodes.appEmbedData.image.duration" },
140
+ { path: "memberAbout.content.nodes.videoData.video.duration" },
141
+ {
142
+ path: "memberAbout.content.nodes.videoData.thumbnail.duration"
143
+ },
144
+ { path: "memberAbout.content.nodes.audioData.audio.duration" },
145
+ {
146
+ path: "memberAbout.content.nodes.audioData.coverImage.duration"
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ transformFn: transformRESTTimestampToSDKTimestamp,
152
+ paths: [
153
+ { path: "memberAbout.content.metadata.createdTimestamp" },
154
+ { path: "memberAbout.content.metadata.updatedTimestamp" }
155
+ ]
156
+ }
157
+ ])
158
+ };
159
+ return metadata;
160
+ }
161
+ return __createMemberAbout;
162
+ }
163
+ function updateMemberAbout(payload) {
164
+ function __updateMemberAbout({ host }) {
165
+ const serializedData = transformPaths(payload, [
166
+ {
167
+ transformFn: transformSDKFloatToRESTFloat,
168
+ paths: [
169
+ {
170
+ path: "memberAbout.content.nodes.galleryData.items.image.media.duration"
171
+ },
172
+ {
173
+ path: "memberAbout.content.nodes.galleryData.items.video.media.duration"
174
+ },
175
+ {
176
+ path: "memberAbout.content.nodes.galleryData.items.video.thumbnail.duration"
177
+ },
178
+ { path: "memberAbout.content.nodes.galleryData.options.item.ratio" },
179
+ { path: "memberAbout.content.nodes.imageData.image.duration" },
180
+ { path: "memberAbout.content.nodes.mapData.mapSettings.lat" },
181
+ { path: "memberAbout.content.nodes.mapData.mapSettings.lng" },
182
+ { path: "memberAbout.content.nodes.pollData.poll.image.duration" },
183
+ {
184
+ path: "memberAbout.content.nodes.pollData.poll.options.image.duration"
185
+ },
186
+ {
187
+ path: "memberAbout.content.nodes.pollData.design.poll.background.image.duration"
188
+ },
189
+ { path: "memberAbout.content.nodes.appEmbedData.image.duration" },
190
+ { path: "memberAbout.content.nodes.videoData.video.duration" },
191
+ { path: "memberAbout.content.nodes.videoData.thumbnail.duration" },
192
+ { path: "memberAbout.content.nodes.audioData.audio.duration" },
193
+ { path: "memberAbout.content.nodes.audioData.coverImage.duration" }
194
+ ]
195
+ },
196
+ {
197
+ transformFn: transformSDKTimestampToRESTTimestamp,
198
+ paths: [
199
+ { path: "memberAbout.content.metadata.createdTimestamp" },
200
+ { path: "memberAbout.content.metadata.updatedTimestamp" }
201
+ ]
202
+ }
203
+ ]);
204
+ const metadata = {
205
+ entityFqdn: "wix.members.about.v2.member_about",
206
+ method: "PATCH",
207
+ methodFqn: "wix.members.about.v2.MembersAbout.UpdateMemberAbout",
208
+ packageName: PACKAGE_NAME,
209
+ url: resolveWixMembersAboutV2MembersAboutUrl({
210
+ protoPath: "/v2/abouts/{memberAbout.id}",
211
+ data: serializedData,
212
+ host
213
+ }),
214
+ data: serializedData,
215
+ transformResponse: (payload2) => transformPaths(payload2, [
216
+ {
217
+ transformFn: transformRESTFloatToSDKFloat,
218
+ paths: [
219
+ {
220
+ path: "memberAbout.content.nodes.galleryData.items.image.media.duration"
221
+ },
222
+ {
223
+ path: "memberAbout.content.nodes.galleryData.items.video.media.duration"
224
+ },
225
+ {
226
+ path: "memberAbout.content.nodes.galleryData.items.video.thumbnail.duration"
227
+ },
228
+ {
229
+ path: "memberAbout.content.nodes.galleryData.options.item.ratio"
230
+ },
231
+ { path: "memberAbout.content.nodes.imageData.image.duration" },
232
+ { path: "memberAbout.content.nodes.mapData.mapSettings.lat" },
233
+ { path: "memberAbout.content.nodes.mapData.mapSettings.lng" },
234
+ {
235
+ path: "memberAbout.content.nodes.pollData.poll.image.duration"
236
+ },
237
+ {
238
+ path: "memberAbout.content.nodes.pollData.poll.options.image.duration"
239
+ },
240
+ {
241
+ path: "memberAbout.content.nodes.pollData.design.poll.background.image.duration"
242
+ },
243
+ { path: "memberAbout.content.nodes.appEmbedData.image.duration" },
244
+ { path: "memberAbout.content.nodes.videoData.video.duration" },
245
+ {
246
+ path: "memberAbout.content.nodes.videoData.thumbnail.duration"
247
+ },
248
+ { path: "memberAbout.content.nodes.audioData.audio.duration" },
249
+ {
250
+ path: "memberAbout.content.nodes.audioData.coverImage.duration"
251
+ }
252
+ ]
253
+ },
254
+ {
255
+ transformFn: transformRESTTimestampToSDKTimestamp,
256
+ paths: [
257
+ { path: "memberAbout.content.metadata.createdTimestamp" },
258
+ { path: "memberAbout.content.metadata.updatedTimestamp" }
259
+ ]
260
+ }
261
+ ])
262
+ };
263
+ return metadata;
264
+ }
265
+ return __updateMemberAbout;
266
+ }
267
+ function deleteMemberAbout(payload) {
268
+ function __deleteMemberAbout({ host }) {
269
+ const metadata = {
270
+ entityFqdn: "wix.members.about.v2.member_about",
271
+ method: "DELETE",
272
+ methodFqn: "wix.members.about.v2.MembersAbout.DeleteMemberAbout",
273
+ packageName: PACKAGE_NAME,
274
+ url: resolveWixMembersAboutV2MembersAboutUrl({
275
+ protoPath: "/v2/abouts/{id}",
276
+ data: payload,
277
+ host
278
+ }),
279
+ params: toURLSearchParams(payload)
280
+ };
281
+ return metadata;
282
+ }
283
+ return __deleteMemberAbout;
284
+ }
285
+ function getMemberAbout(payload) {
286
+ function __getMemberAbout({ host }) {
287
+ const metadata = {
288
+ entityFqdn: "wix.members.about.v2.member_about",
289
+ method: "GET",
290
+ methodFqn: "wix.members.about.v2.MembersAbout.GetMemberAbout",
291
+ packageName: PACKAGE_NAME,
292
+ url: resolveWixMembersAboutV2MembersAboutUrl({
293
+ protoPath: "/v2/abouts/{id}",
294
+ data: payload,
295
+ host
296
+ }),
297
+ params: toURLSearchParams(payload),
298
+ transformResponse: (payload2) => transformPaths(payload2, [
299
+ {
300
+ transformFn: transformRESTFloatToSDKFloat,
301
+ paths: [
302
+ {
303
+ path: "memberAbout.content.nodes.galleryData.items.image.media.duration"
304
+ },
305
+ {
306
+ path: "memberAbout.content.nodes.galleryData.items.video.media.duration"
307
+ },
308
+ {
309
+ path: "memberAbout.content.nodes.galleryData.items.video.thumbnail.duration"
310
+ },
311
+ {
312
+ path: "memberAbout.content.nodes.galleryData.options.item.ratio"
313
+ },
314
+ { path: "memberAbout.content.nodes.imageData.image.duration" },
315
+ { path: "memberAbout.content.nodes.mapData.mapSettings.lat" },
316
+ { path: "memberAbout.content.nodes.mapData.mapSettings.lng" },
317
+ {
318
+ path: "memberAbout.content.nodes.pollData.poll.image.duration"
319
+ },
320
+ {
321
+ path: "memberAbout.content.nodes.pollData.poll.options.image.duration"
322
+ },
323
+ {
324
+ path: "memberAbout.content.nodes.pollData.design.poll.background.image.duration"
325
+ },
326
+ { path: "memberAbout.content.nodes.appEmbedData.image.duration" },
327
+ { path: "memberAbout.content.nodes.videoData.video.duration" },
328
+ {
329
+ path: "memberAbout.content.nodes.videoData.thumbnail.duration"
330
+ },
331
+ { path: "memberAbout.content.nodes.audioData.audio.duration" },
332
+ {
333
+ path: "memberAbout.content.nodes.audioData.coverImage.duration"
334
+ }
335
+ ]
336
+ },
337
+ {
338
+ transformFn: transformRESTTimestampToSDKTimestamp,
339
+ paths: [
340
+ { path: "memberAbout.content.metadata.createdTimestamp" },
341
+ { path: "memberAbout.content.metadata.updatedTimestamp" }
342
+ ]
343
+ }
344
+ ])
345
+ };
346
+ return metadata;
347
+ }
348
+ return __getMemberAbout;
349
+ }
350
+ function getMyMemberAbout(payload) {
351
+ function __getMyMemberAbout({ host }) {
352
+ const metadata = {
353
+ entityFqdn: "wix.members.about.v2.member_about",
354
+ method: "GET",
355
+ methodFqn: "wix.members.about.v2.MembersAbout.GetMyMemberAbout",
356
+ packageName: PACKAGE_NAME,
357
+ url: resolveWixMembersAboutV2MembersAboutUrl({
358
+ protoPath: "/v2/abouts/my",
359
+ data: payload,
360
+ host
361
+ }),
362
+ params: toURLSearchParams(payload),
363
+ transformResponse: (payload2) => transformPaths(payload2, [
364
+ {
365
+ transformFn: transformRESTFloatToSDKFloat,
366
+ paths: [
367
+ {
368
+ path: "memberAbout.content.nodes.galleryData.items.image.media.duration"
369
+ },
370
+ {
371
+ path: "memberAbout.content.nodes.galleryData.items.video.media.duration"
372
+ },
373
+ {
374
+ path: "memberAbout.content.nodes.galleryData.items.video.thumbnail.duration"
375
+ },
376
+ {
377
+ path: "memberAbout.content.nodes.galleryData.options.item.ratio"
378
+ },
379
+ { path: "memberAbout.content.nodes.imageData.image.duration" },
380
+ { path: "memberAbout.content.nodes.mapData.mapSettings.lat" },
381
+ { path: "memberAbout.content.nodes.mapData.mapSettings.lng" },
382
+ {
383
+ path: "memberAbout.content.nodes.pollData.poll.image.duration"
384
+ },
385
+ {
386
+ path: "memberAbout.content.nodes.pollData.poll.options.image.duration"
387
+ },
388
+ {
389
+ path: "memberAbout.content.nodes.pollData.design.poll.background.image.duration"
390
+ },
391
+ { path: "memberAbout.content.nodes.appEmbedData.image.duration" },
392
+ { path: "memberAbout.content.nodes.videoData.video.duration" },
393
+ {
394
+ path: "memberAbout.content.nodes.videoData.thumbnail.duration"
395
+ },
396
+ { path: "memberAbout.content.nodes.audioData.audio.duration" },
397
+ {
398
+ path: "memberAbout.content.nodes.audioData.coverImage.duration"
399
+ }
400
+ ]
401
+ },
402
+ {
403
+ transformFn: transformRESTTimestampToSDKTimestamp,
404
+ paths: [
405
+ { path: "memberAbout.content.metadata.createdTimestamp" },
406
+ { path: "memberAbout.content.metadata.updatedTimestamp" }
407
+ ]
408
+ }
409
+ ])
410
+ };
411
+ return metadata;
412
+ }
413
+ return __getMyMemberAbout;
414
+ }
415
+ function queryMemberAbouts(payload) {
416
+ function __queryMemberAbouts({ host }) {
417
+ const metadata = {
418
+ entityFqdn: "wix.members.about.v2.member_about",
419
+ method: "POST",
420
+ methodFqn: "wix.members.about.v2.MembersAbout.QueryMemberAbouts",
421
+ packageName: PACKAGE_NAME,
422
+ url: resolveWixMembersAboutV2MembersAboutUrl({
423
+ protoPath: "/v2/abouts/query",
424
+ data: payload,
425
+ host
426
+ }),
427
+ data: payload,
428
+ transformResponse: (payload2) => transformPaths(payload2, [
429
+ {
430
+ transformFn: transformRESTFloatToSDKFloat,
431
+ paths: [
432
+ {
433
+ path: "memberAbouts.content.nodes.galleryData.items.image.media.duration"
434
+ },
435
+ {
436
+ path: "memberAbouts.content.nodes.galleryData.items.video.media.duration"
437
+ },
438
+ {
439
+ path: "memberAbouts.content.nodes.galleryData.items.video.thumbnail.duration"
440
+ },
441
+ {
442
+ path: "memberAbouts.content.nodes.galleryData.options.item.ratio"
443
+ },
444
+ { path: "memberAbouts.content.nodes.imageData.image.duration" },
445
+ { path: "memberAbouts.content.nodes.mapData.mapSettings.lat" },
446
+ { path: "memberAbouts.content.nodes.mapData.mapSettings.lng" },
447
+ {
448
+ path: "memberAbouts.content.nodes.pollData.poll.image.duration"
449
+ },
450
+ {
451
+ path: "memberAbouts.content.nodes.pollData.poll.options.image.duration"
452
+ },
453
+ {
454
+ path: "memberAbouts.content.nodes.pollData.design.poll.background.image.duration"
455
+ },
456
+ {
457
+ path: "memberAbouts.content.nodes.appEmbedData.image.duration"
458
+ },
459
+ { path: "memberAbouts.content.nodes.videoData.video.duration" },
460
+ {
461
+ path: "memberAbouts.content.nodes.videoData.thumbnail.duration"
462
+ },
463
+ { path: "memberAbouts.content.nodes.audioData.audio.duration" },
464
+ {
465
+ path: "memberAbouts.content.nodes.audioData.coverImage.duration"
466
+ }
467
+ ]
468
+ },
469
+ {
470
+ transformFn: transformRESTTimestampToSDKTimestamp,
471
+ paths: [
472
+ { path: "memberAbouts.content.metadata.createdTimestamp" },
473
+ { path: "memberAbouts.content.metadata.updatedTimestamp" }
474
+ ]
475
+ }
476
+ ])
477
+ };
478
+ return metadata;
479
+ }
480
+ return __queryMemberAbouts;
481
+ }
482
+
483
+ // src/members-about-v2-member-about-members-about.universal.ts
484
+ import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
485
+ var NodeType = /* @__PURE__ */ ((NodeType2) => {
486
+ NodeType2["PARAGRAPH"] = "PARAGRAPH";
487
+ NodeType2["TEXT"] = "TEXT";
488
+ NodeType2["HEADING"] = "HEADING";
489
+ NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
490
+ NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
491
+ NodeType2["LIST_ITEM"] = "LIST_ITEM";
492
+ NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
493
+ NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
494
+ NodeType2["VIDEO"] = "VIDEO";
495
+ NodeType2["DIVIDER"] = "DIVIDER";
496
+ NodeType2["FILE"] = "FILE";
497
+ NodeType2["GALLERY"] = "GALLERY";
498
+ NodeType2["GIF"] = "GIF";
499
+ NodeType2["HTML"] = "HTML";
500
+ NodeType2["IMAGE"] = "IMAGE";
501
+ NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
502
+ NodeType2["MAP"] = "MAP";
503
+ NodeType2["POLL"] = "POLL";
504
+ NodeType2["APP_EMBED"] = "APP_EMBED";
505
+ NodeType2["BUTTON"] = "BUTTON";
506
+ NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
507
+ NodeType2["TABLE"] = "TABLE";
508
+ NodeType2["EMBED"] = "EMBED";
509
+ NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
510
+ NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
511
+ NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
512
+ NodeType2["TABLE_CELL"] = "TABLE_CELL";
513
+ NodeType2["TABLE_ROW"] = "TABLE_ROW";
514
+ NodeType2["EXTERNAL"] = "EXTERNAL";
515
+ NodeType2["AUDIO"] = "AUDIO";
516
+ NodeType2["CAPTION"] = "CAPTION";
517
+ NodeType2["LAYOUT"] = "LAYOUT";
518
+ NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
519
+ return NodeType2;
520
+ })(NodeType || {});
521
+ var WidthType = /* @__PURE__ */ ((WidthType2) => {
522
+ WidthType2["CONTENT"] = "CONTENT";
523
+ WidthType2["SMALL"] = "SMALL";
524
+ WidthType2["ORIGINAL"] = "ORIGINAL";
525
+ WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
526
+ return WidthType2;
527
+ })(WidthType || {});
528
+ var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
529
+ PluginContainerDataAlignment2["CENTER"] = "CENTER";
530
+ PluginContainerDataAlignment2["LEFT"] = "LEFT";
531
+ PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
532
+ return PluginContainerDataAlignment2;
533
+ })(PluginContainerDataAlignment || {});
534
+ var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
535
+ ButtonDataType2["LINK"] = "LINK";
536
+ ButtonDataType2["ACTION"] = "ACTION";
537
+ return ButtonDataType2;
538
+ })(ButtonDataType || {});
539
+ var Target = /* @__PURE__ */ ((Target2) => {
540
+ Target2["SELF"] = "SELF";
541
+ Target2["BLANK"] = "BLANK";
542
+ Target2["PARENT"] = "PARENT";
543
+ Target2["TOP"] = "TOP";
544
+ return Target2;
545
+ })(Target || {});
546
+ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
547
+ TextAlignment2["AUTO"] = "AUTO";
548
+ TextAlignment2["LEFT"] = "LEFT";
549
+ TextAlignment2["RIGHT"] = "RIGHT";
550
+ TextAlignment2["CENTER"] = "CENTER";
551
+ TextAlignment2["JUSTIFY"] = "JUSTIFY";
552
+ return TextAlignment2;
553
+ })(TextAlignment || {});
554
+ var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
555
+ LineStyle2["SINGLE"] = "SINGLE";
556
+ LineStyle2["DOUBLE"] = "DOUBLE";
557
+ LineStyle2["DASHED"] = "DASHED";
558
+ LineStyle2["DOTTED"] = "DOTTED";
559
+ return LineStyle2;
560
+ })(LineStyle || {});
561
+ var Width = /* @__PURE__ */ ((Width2) => {
562
+ Width2["LARGE"] = "LARGE";
563
+ Width2["MEDIUM"] = "MEDIUM";
564
+ Width2["SMALL"] = "SMALL";
565
+ return Width2;
566
+ })(Width || {});
567
+ var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
568
+ DividerDataAlignment2["CENTER"] = "CENTER";
569
+ DividerDataAlignment2["LEFT"] = "LEFT";
570
+ DividerDataAlignment2["RIGHT"] = "RIGHT";
571
+ return DividerDataAlignment2;
572
+ })(DividerDataAlignment || {});
573
+ var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
574
+ ViewMode2["NONE"] = "NONE";
575
+ ViewMode2["FULL"] = "FULL";
576
+ ViewMode2["MINI"] = "MINI";
577
+ return ViewMode2;
578
+ })(ViewMode || {});
579
+ var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
580
+ LayoutType2["COLLAGE"] = "COLLAGE";
581
+ LayoutType2["MASONRY"] = "MASONRY";
582
+ LayoutType2["GRID"] = "GRID";
583
+ LayoutType2["THUMBNAIL"] = "THUMBNAIL";
584
+ LayoutType2["SLIDER"] = "SLIDER";
585
+ LayoutType2["SLIDESHOW"] = "SLIDESHOW";
586
+ LayoutType2["PANORAMA"] = "PANORAMA";
587
+ LayoutType2["COLUMN"] = "COLUMN";
588
+ LayoutType2["MAGIC"] = "MAGIC";
589
+ LayoutType2["FULLSIZE"] = "FULLSIZE";
590
+ return LayoutType2;
591
+ })(LayoutType || {});
592
+ var Orientation = /* @__PURE__ */ ((Orientation2) => {
593
+ Orientation2["ROWS"] = "ROWS";
594
+ Orientation2["COLUMNS"] = "COLUMNS";
595
+ return Orientation2;
596
+ })(Orientation || {});
597
+ var Crop = /* @__PURE__ */ ((Crop2) => {
598
+ Crop2["FILL"] = "FILL";
599
+ Crop2["FIT"] = "FIT";
600
+ return Crop2;
601
+ })(Crop || {});
602
+ var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
603
+ ThumbnailsAlignment2["TOP"] = "TOP";
604
+ ThumbnailsAlignment2["RIGHT"] = "RIGHT";
605
+ ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
606
+ ThumbnailsAlignment2["LEFT"] = "LEFT";
607
+ ThumbnailsAlignment2["NONE"] = "NONE";
608
+ return ThumbnailsAlignment2;
609
+ })(ThumbnailsAlignment || {});
610
+ var GIFType = /* @__PURE__ */ ((GIFType2) => {
611
+ GIFType2["NORMAL"] = "NORMAL";
612
+ GIFType2["STICKER"] = "STICKER";
613
+ return GIFType2;
614
+ })(GIFType || {});
615
+ var Source = /* @__PURE__ */ ((Source2) => {
616
+ Source2["HTML"] = "HTML";
617
+ Source2["ADSENSE"] = "ADSENSE";
618
+ return Source2;
619
+ })(Source || {});
620
+ var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
621
+ StylesPosition2["START"] = "START";
622
+ StylesPosition2["END"] = "END";
623
+ StylesPosition2["TOP"] = "TOP";
624
+ StylesPosition2["HIDDEN"] = "HIDDEN";
625
+ return StylesPosition2;
626
+ })(StylesPosition || {});
627
+ var MapType = /* @__PURE__ */ ((MapType2) => {
628
+ MapType2["ROADMAP"] = "ROADMAP";
629
+ MapType2["SATELITE"] = "SATELITE";
630
+ MapType2["HYBRID"] = "HYBRID";
631
+ MapType2["TERRAIN"] = "TERRAIN";
632
+ return MapType2;
633
+ })(MapType || {});
634
+ var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
635
+ ViewRole2["CREATOR"] = "CREATOR";
636
+ ViewRole2["VOTERS"] = "VOTERS";
637
+ ViewRole2["EVERYONE"] = "EVERYONE";
638
+ return ViewRole2;
639
+ })(ViewRole || {});
640
+ var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
641
+ VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
642
+ VoteRole2["ALL"] = "ALL";
643
+ return VoteRole2;
644
+ })(VoteRole || {});
645
+ var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
646
+ PollLayoutType2["LIST"] = "LIST";
647
+ PollLayoutType2["GRID"] = "GRID";
648
+ return PollLayoutType2;
649
+ })(PollLayoutType || {});
650
+ var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
651
+ PollLayoutDirection2["LTR"] = "LTR";
652
+ PollLayoutDirection2["RTL"] = "RTL";
653
+ return PollLayoutDirection2;
654
+ })(PollLayoutDirection || {});
655
+ var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
656
+ BackgroundType2["COLOR"] = "COLOR";
657
+ BackgroundType2["IMAGE"] = "IMAGE";
658
+ BackgroundType2["GRADIENT"] = "GRADIENT";
659
+ return BackgroundType2;
660
+ })(BackgroundType || {});
661
+ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
662
+ DecorationType2["BOLD"] = "BOLD";
663
+ DecorationType2["ITALIC"] = "ITALIC";
664
+ DecorationType2["UNDERLINE"] = "UNDERLINE";
665
+ DecorationType2["SPOILER"] = "SPOILER";
666
+ DecorationType2["ANCHOR"] = "ANCHOR";
667
+ DecorationType2["MENTION"] = "MENTION";
668
+ DecorationType2["LINK"] = "LINK";
669
+ DecorationType2["COLOR"] = "COLOR";
670
+ DecorationType2["FONT_SIZE"] = "FONT_SIZE";
671
+ DecorationType2["EXTERNAL"] = "EXTERNAL";
672
+ DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
673
+ DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
674
+ DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
675
+ return DecorationType2;
676
+ })(DecorationType || {});
677
+ var FontType = /* @__PURE__ */ ((FontType2) => {
678
+ FontType2["PX"] = "PX";
679
+ FontType2["EM"] = "EM";
680
+ return FontType2;
681
+ })(FontType || {});
682
+ var Position = /* @__PURE__ */ ((Position2) => {
683
+ Position2["START"] = "START";
684
+ Position2["END"] = "END";
685
+ Position2["TOP"] = "TOP";
686
+ return Position2;
687
+ })(Position || {});
688
+ var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
689
+ AspectRatio2["SQUARE"] = "SQUARE";
690
+ AspectRatio2["RECTANGLE"] = "RECTANGLE";
691
+ return AspectRatio2;
692
+ })(AspectRatio || {});
693
+ var Resizing = /* @__PURE__ */ ((Resizing2) => {
694
+ Resizing2["FILL"] = "FILL";
695
+ Resizing2["FIT"] = "FIT";
696
+ return Resizing2;
697
+ })(Resizing || {});
698
+ var Placement = /* @__PURE__ */ ((Placement2) => {
699
+ Placement2["IMAGE"] = "IMAGE";
700
+ Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
701
+ return Placement2;
702
+ })(Placement || {});
703
+ var Type = /* @__PURE__ */ ((Type2) => {
704
+ Type2["CONTAINED"] = "CONTAINED";
705
+ Type2["FRAMELESS"] = "FRAMELESS";
706
+ return Type2;
707
+ })(Type || {});
708
+ var Alignment = /* @__PURE__ */ ((Alignment2) => {
709
+ Alignment2["START"] = "START";
710
+ Alignment2["CENTER"] = "CENTER";
711
+ Alignment2["END"] = "END";
712
+ return Alignment2;
713
+ })(Alignment || {});
714
+ var Layout = /* @__PURE__ */ ((Layout2) => {
715
+ Layout2["STACKED"] = "STACKED";
716
+ Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
717
+ return Layout2;
718
+ })(Layout || {});
719
+ var AppType = /* @__PURE__ */ ((AppType2) => {
720
+ AppType2["PRODUCT"] = "PRODUCT";
721
+ AppType2["EVENT"] = "EVENT";
722
+ AppType2["BOOKING"] = "BOOKING";
723
+ return AppType2;
724
+ })(AppType || {});
725
+ var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
726
+ InitialExpandedItems2["FIRST"] = "FIRST";
727
+ InitialExpandedItems2["ALL"] = "ALL";
728
+ InitialExpandedItems2["NONE"] = "NONE";
729
+ return InitialExpandedItems2;
730
+ })(InitialExpandedItems || {});
731
+ var Direction = /* @__PURE__ */ ((Direction2) => {
732
+ Direction2["LTR"] = "LTR";
733
+ Direction2["RTL"] = "RTL";
734
+ return Direction2;
735
+ })(Direction || {});
736
+ var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
737
+ VerticalAlignment2["TOP"] = "TOP";
738
+ VerticalAlignment2["MIDDLE"] = "MIDDLE";
739
+ VerticalAlignment2["BOTTOM"] = "BOTTOM";
740
+ return VerticalAlignment2;
741
+ })(VerticalAlignment || {});
742
+ var NullValue = /* @__PURE__ */ ((NullValue2) => {
743
+ NullValue2["NULL_VALUE"] = "NULL_VALUE";
744
+ return NullValue2;
745
+ })(NullValue || {});
746
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
747
+ SortOrder2["ASC"] = "ASC";
748
+ SortOrder2["DESC"] = "DESC";
749
+ return SortOrder2;
750
+ })(SortOrder || {});
751
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
752
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
753
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
754
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
755
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
756
+ WebhookIdentityType2["APP"] = "APP";
757
+ return WebhookIdentityType2;
758
+ })(WebhookIdentityType || {});
759
+ async function createMemberAbout2(memberAbout) {
760
+ const { httpClient, sideEffects } = arguments[1];
761
+ const payload = renameKeysFromSDKRequestToRESTRequest(
762
+ { memberAbout },
763
+ ["memberAbout.content"]
764
+ );
765
+ const reqOpts = createMemberAbout(payload);
766
+ sideEffects?.onSiteCall?.();
767
+ try {
768
+ const result = await httpClient.request(reqOpts);
769
+ sideEffects?.onSuccess?.(result);
770
+ return renameKeysFromRESTResponseToSDKResponse(result.data, [
771
+ "memberAbout.content"
772
+ ])?.memberAbout;
773
+ } catch (err) {
774
+ const transformedError = sdkTransformError(
775
+ err,
776
+ {
777
+ spreadPathsToArguments: {},
778
+ explicitPathsToArguments: { memberAbout: "$[0]" },
779
+ singleArgumentUnchanged: false
780
+ },
781
+ ["memberAbout"]
782
+ );
783
+ sideEffects?.onError?.(err);
784
+ throw transformedError;
785
+ }
786
+ }
787
+ async function updateMemberAbout2(_id, memberAbout) {
788
+ const { httpClient, sideEffects } = arguments[2];
789
+ const payload = renameKeysFromSDKRequestToRESTRequest(
790
+ { memberAbout: { ...memberAbout, id: _id } },
791
+ ["memberAbout.content"]
792
+ );
793
+ const reqOpts = updateMemberAbout(payload);
794
+ sideEffects?.onSiteCall?.();
795
+ try {
796
+ const result = await httpClient.request(reqOpts);
797
+ sideEffects?.onSuccess?.(result);
798
+ return renameKeysFromRESTResponseToSDKResponse(result.data, [
799
+ "memberAbout.content"
800
+ ])?.memberAbout;
801
+ } catch (err) {
802
+ const transformedError = sdkTransformError(
803
+ err,
804
+ {
805
+ spreadPathsToArguments: { memberAbout: "$[1]" },
806
+ explicitPathsToArguments: { "memberAbout.id": "$[0]" },
807
+ singleArgumentUnchanged: false
808
+ },
809
+ ["_id", "memberAbout"]
810
+ );
811
+ sideEffects?.onError?.(err);
812
+ throw transformedError;
813
+ }
814
+ }
815
+ async function deleteMemberAbout2(_id) {
816
+ const { httpClient, sideEffects } = arguments[1];
817
+ const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id }, []);
818
+ const reqOpts = deleteMemberAbout(payload);
819
+ sideEffects?.onSiteCall?.();
820
+ try {
821
+ const result = await httpClient.request(reqOpts);
822
+ sideEffects?.onSuccess?.(result);
823
+ } catch (err) {
824
+ const transformedError = sdkTransformError(
825
+ err,
826
+ {
827
+ spreadPathsToArguments: {},
828
+ explicitPathsToArguments: { id: "$[0]" },
829
+ singleArgumentUnchanged: false
830
+ },
831
+ ["_id"]
832
+ );
833
+ sideEffects?.onError?.(err);
834
+ throw transformedError;
835
+ }
836
+ }
837
+ async function getMemberAbout2(_id) {
838
+ const { httpClient, sideEffects } = arguments[1];
839
+ const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id }, []);
840
+ const reqOpts = getMemberAbout(payload);
841
+ sideEffects?.onSiteCall?.();
842
+ try {
843
+ const result = await httpClient.request(reqOpts);
844
+ sideEffects?.onSuccess?.(result);
845
+ return renameKeysFromRESTResponseToSDKResponse(result.data, [
846
+ "memberAbout.content"
847
+ ])?.memberAbout;
848
+ } catch (err) {
849
+ const transformedError = sdkTransformError(
850
+ err,
851
+ {
852
+ spreadPathsToArguments: {},
853
+ explicitPathsToArguments: { id: "$[0]" },
854
+ singleArgumentUnchanged: false
855
+ },
856
+ ["_id"]
857
+ );
858
+ sideEffects?.onError?.(err);
859
+ throw transformedError;
860
+ }
861
+ }
862
+ async function getMyMemberAbout2() {
863
+ const { httpClient, sideEffects } = arguments[0];
864
+ const payload = renameKeysFromSDKRequestToRESTRequest({}, []);
865
+ const reqOpts = getMyMemberAbout(payload);
866
+ sideEffects?.onSiteCall?.();
867
+ try {
868
+ const result = await httpClient.request(reqOpts);
869
+ sideEffects?.onSuccess?.(result);
870
+ return renameKeysFromRESTResponseToSDKResponse(result.data, [
871
+ "memberAbout.content"
872
+ ]);
873
+ } catch (err) {
874
+ const transformedError = sdkTransformError(
875
+ err,
876
+ {
877
+ spreadPathsToArguments: {},
878
+ explicitPathsToArguments: {},
879
+ singleArgumentUnchanged: false
880
+ },
881
+ []
882
+ );
883
+ sideEffects?.onError?.(err);
884
+ throw transformedError;
885
+ }
886
+ }
887
+ function queryMemberAbouts2() {
888
+ const { httpClient, sideEffects } = arguments[0];
889
+ return queryBuilder({
890
+ func: async (payload) => {
891
+ const reqOpts = queryMemberAbouts(payload);
892
+ sideEffects?.onSiteCall?.();
893
+ try {
894
+ const result = await httpClient.request(reqOpts);
895
+ sideEffects?.onSuccess?.(result);
896
+ return result;
897
+ } catch (err) {
898
+ sideEffects?.onError?.(err);
899
+ throw err;
900
+ }
901
+ },
902
+ requestTransformer: (query) => {
903
+ const args = [query, {}];
904
+ return renameKeysFromSDKRequestToRESTRequest(
905
+ { ...args?.[1], query: args?.[0] },
906
+ []
907
+ );
908
+ },
909
+ responseTransformer: ({
910
+ data
911
+ }) => {
912
+ const transformedData = renameKeysFromRESTResponseToSDKResponse(
913
+ transformPaths2(data, []),
914
+ ["memberAbouts.content"]
915
+ );
916
+ return {
917
+ items: transformedData?.memberAbouts,
918
+ pagingMetadata: transformedData?.metadata
919
+ };
920
+ },
921
+ errorTransformer: (err) => {
922
+ const transformedError = sdkTransformError(err, {
923
+ spreadPathsToArguments: {},
924
+ explicitPathsToArguments: { query: "$[0]" },
925
+ singleArgumentUnchanged: false
926
+ });
927
+ throw transformedError;
928
+ },
929
+ pagingMethod: "CURSOR",
930
+ transformationPaths: {}
931
+ });
932
+ }
933
+ export {
934
+ Alignment,
935
+ AppType,
936
+ AspectRatio,
937
+ BackgroundType,
938
+ ButtonDataType,
939
+ Crop,
940
+ DecorationType,
941
+ Direction,
942
+ DividerDataAlignment,
943
+ FontType,
944
+ GIFType,
945
+ InitialExpandedItems,
946
+ Layout,
947
+ LayoutType,
948
+ LineStyle,
949
+ MapType,
950
+ NodeType,
951
+ NullValue,
952
+ Orientation,
953
+ Placement,
954
+ PluginContainerDataAlignment,
955
+ PollLayoutDirection,
956
+ PollLayoutType,
957
+ Position,
958
+ Resizing,
959
+ SortOrder,
960
+ Source,
961
+ StylesPosition,
962
+ Target,
963
+ TextAlignment,
964
+ ThumbnailsAlignment,
965
+ Type,
966
+ VerticalAlignment,
967
+ ViewMode,
968
+ ViewRole,
969
+ VoteRole,
970
+ WebhookIdentityType,
971
+ Width,
972
+ WidthType,
973
+ createMemberAbout2 as createMemberAbout,
974
+ deleteMemberAbout2 as deleteMemberAbout,
975
+ getMemberAbout2 as getMemberAbout,
976
+ getMyMemberAbout2 as getMyMemberAbout,
977
+ queryMemberAbouts2 as queryMemberAbouts,
978
+ updateMemberAbout2 as updateMemberAbout
979
+ };
980
+ //# sourceMappingURL=index.typings.mjs.map