@wix/auto_sdk_stores_info-sections-v-3 1.0.0

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 (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.context.d.ts +30 -0
  11. package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.context.js +65 -0
  12. package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.context.js.map +1 -0
  13. package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.http.d.ts +68 -0
  14. package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.http.js +1101 -0
  15. package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.http.js.map +1 -0
  16. package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.meta.d.ts +28 -0
  17. package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.meta.js +218 -0
  18. package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.meta.js.map +1 -0
  19. package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.public.d.ts +122 -0
  20. package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.public.js +238 -0
  21. package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.public.js.map +1 -0
  22. package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.types.d.ts +2083 -0
  23. package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.types.js +318 -0
  24. package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.types.js.map +1 -0
  25. package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.universal.d.ts +2640 -0
  26. package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.universal.js +862 -0
  27. package/build/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.context.d.ts +30 -0
  39. package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.context.js +30 -0
  40. package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.context.js.map +1 -0
  41. package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.http.d.ts +68 -0
  42. package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.http.js +1088 -0
  43. package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.http.js.map +1 -0
  44. package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.meta.d.ts +28 -0
  45. package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.meta.js +182 -0
  46. package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.meta.js.map +1 -0
  47. package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.public.d.ts +122 -0
  48. package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.public.js +193 -0
  49. package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.public.js.map +1 -0
  50. package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.types.d.ts +2083 -0
  51. package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.types.js +315 -0
  52. package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.types.js.map +1 -0
  53. package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.universal.d.ts +2640 -0
  54. package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.universal.js +826 -0
  55. package/build/es/src/stores-catalog-v3-info-section-info-sections-v-3.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.context.d.ts +30 -0
  66. package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.context.js +65 -0
  67. package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.context.js.map +1 -0
  68. package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.http.d.ts +68 -0
  69. package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.http.js +1101 -0
  70. package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.http.js.map +1 -0
  71. package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.meta.d.ts +28 -0
  72. package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.meta.js +218 -0
  73. package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.meta.js.map +1 -0
  74. package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.public.d.ts +122 -0
  75. package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.public.js +238 -0
  76. package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.public.js.map +1 -0
  77. package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.types.d.ts +2083 -0
  78. package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.types.js +318 -0
  79. package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.types.js.map +1 -0
  80. package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.universal.d.ts +2640 -0
  81. package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.universal.js +862 -0
  82. package/build/internal/cjs/src/stores-catalog-v3-info-section-info-sections-v-3.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.context.d.ts +30 -0
  93. package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.context.js +30 -0
  94. package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.context.js.map +1 -0
  95. package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.http.d.ts +68 -0
  96. package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.http.js +1088 -0
  97. package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.http.js.map +1 -0
  98. package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.meta.d.ts +28 -0
  99. package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.meta.js +182 -0
  100. package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.meta.js.map +1 -0
  101. package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.public.d.ts +122 -0
  102. package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.public.js +193 -0
  103. package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.public.js.map +1 -0
  104. package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.types.d.ts +2083 -0
  105. package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.types.js +315 -0
  106. package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.types.js.map +1 -0
  107. package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.universal.d.ts +2640 -0
  108. package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.universal.js +826 -0
  109. package/build/internal/es/src/stores-catalog-v3-info-section-info-sections-v-3.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,826 @@
1
+ import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
2
+ import { queryBuilder } from '@wix/sdk-runtime/query-builder';
3
+ import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
4
+ import * as ambassadorWixStoresCatalogV3InfoSection from './stores-catalog-v3-info-section-info-sections-v-3.http.js';
5
+ export var NodeType;
6
+ (function (NodeType) {
7
+ NodeType["PARAGRAPH"] = "PARAGRAPH";
8
+ NodeType["TEXT"] = "TEXT";
9
+ NodeType["HEADING"] = "HEADING";
10
+ NodeType["BULLETED_LIST"] = "BULLETED_LIST";
11
+ NodeType["ORDERED_LIST"] = "ORDERED_LIST";
12
+ NodeType["LIST_ITEM"] = "LIST_ITEM";
13
+ NodeType["BLOCKQUOTE"] = "BLOCKQUOTE";
14
+ NodeType["CODE_BLOCK"] = "CODE_BLOCK";
15
+ NodeType["VIDEO"] = "VIDEO";
16
+ NodeType["DIVIDER"] = "DIVIDER";
17
+ NodeType["FILE"] = "FILE";
18
+ NodeType["GALLERY"] = "GALLERY";
19
+ NodeType["GIF"] = "GIF";
20
+ NodeType["HTML"] = "HTML";
21
+ NodeType["IMAGE"] = "IMAGE";
22
+ NodeType["LINK_PREVIEW"] = "LINK_PREVIEW";
23
+ /** @deprecated */
24
+ NodeType["MAP"] = "MAP";
25
+ NodeType["POLL"] = "POLL";
26
+ NodeType["APP_EMBED"] = "APP_EMBED";
27
+ NodeType["BUTTON"] = "BUTTON";
28
+ NodeType["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
29
+ NodeType["TABLE"] = "TABLE";
30
+ NodeType["EMBED"] = "EMBED";
31
+ NodeType["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
32
+ NodeType["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
33
+ NodeType["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
34
+ NodeType["TABLE_CELL"] = "TABLE_CELL";
35
+ NodeType["TABLE_ROW"] = "TABLE_ROW";
36
+ NodeType["EXTERNAL"] = "EXTERNAL";
37
+ NodeType["AUDIO"] = "AUDIO";
38
+ NodeType["CAPTION"] = "CAPTION";
39
+ NodeType["LAYOUT"] = "LAYOUT";
40
+ NodeType["LAYOUT_CELL"] = "LAYOUT_CELL";
41
+ })(NodeType || (NodeType = {}));
42
+ export var WidthType;
43
+ (function (WidthType) {
44
+ /** Width matches the content width */
45
+ WidthType["CONTENT"] = "CONTENT";
46
+ /** Small Width */
47
+ WidthType["SMALL"] = "SMALL";
48
+ /** Width will match the original asset width */
49
+ WidthType["ORIGINAL"] = "ORIGINAL";
50
+ /** coast-to-coast display */
51
+ WidthType["FULL_WIDTH"] = "FULL_WIDTH";
52
+ })(WidthType || (WidthType = {}));
53
+ export var PluginContainerDataAlignment;
54
+ (function (PluginContainerDataAlignment) {
55
+ /** Center Alignment */
56
+ PluginContainerDataAlignment["CENTER"] = "CENTER";
57
+ /** Left Alignment */
58
+ PluginContainerDataAlignment["LEFT"] = "LEFT";
59
+ /** Right Alignment */
60
+ PluginContainerDataAlignment["RIGHT"] = "RIGHT";
61
+ })(PluginContainerDataAlignment || (PluginContainerDataAlignment = {}));
62
+ export var Type;
63
+ (function (Type) {
64
+ /** Regular link button */
65
+ Type["LINK"] = "LINK";
66
+ /** Triggers custom action that is defined in plugin configuration by the consumer */
67
+ Type["ACTION"] = "ACTION";
68
+ })(Type || (Type = {}));
69
+ export var Target;
70
+ (function (Target) {
71
+ /** Opens the linked document in the same frame as it was clicked (this is default) */
72
+ Target["SELF"] = "SELF";
73
+ /** Opens the linked document in a new window or tab */
74
+ Target["BLANK"] = "BLANK";
75
+ /** Opens the linked document in the parent frame */
76
+ Target["PARENT"] = "PARENT";
77
+ /** Opens the linked document in the full body of the window */
78
+ Target["TOP"] = "TOP";
79
+ })(Target || (Target = {}));
80
+ export var TextAlignment;
81
+ (function (TextAlignment) {
82
+ /** browser default, eqivalent to `initial` */
83
+ TextAlignment["AUTO"] = "AUTO";
84
+ /** Left align */
85
+ TextAlignment["LEFT"] = "LEFT";
86
+ /** Right align */
87
+ TextAlignment["RIGHT"] = "RIGHT";
88
+ /** Center align */
89
+ TextAlignment["CENTER"] = "CENTER";
90
+ /** Text is spaced to line up its left and right edges to the left and right edges of the line box, except for the last line */
91
+ TextAlignment["JUSTIFY"] = "JUSTIFY";
92
+ })(TextAlignment || (TextAlignment = {}));
93
+ export var LineStyle;
94
+ (function (LineStyle) {
95
+ /** Single Line */
96
+ LineStyle["SINGLE"] = "SINGLE";
97
+ /** Double Line */
98
+ LineStyle["DOUBLE"] = "DOUBLE";
99
+ /** Dashed Line */
100
+ LineStyle["DASHED"] = "DASHED";
101
+ /** Dotted Line */
102
+ LineStyle["DOTTED"] = "DOTTED";
103
+ })(LineStyle || (LineStyle = {}));
104
+ export var Width;
105
+ (function (Width) {
106
+ /** Large line */
107
+ Width["LARGE"] = "LARGE";
108
+ /** Medium line */
109
+ Width["MEDIUM"] = "MEDIUM";
110
+ /** Small line */
111
+ Width["SMALL"] = "SMALL";
112
+ })(Width || (Width = {}));
113
+ export var Alignment;
114
+ (function (Alignment) {
115
+ /** Center alignment */
116
+ Alignment["CENTER"] = "CENTER";
117
+ /** Left alignment */
118
+ Alignment["LEFT"] = "LEFT";
119
+ /** Right alignment */
120
+ Alignment["RIGHT"] = "RIGHT";
121
+ })(Alignment || (Alignment = {}));
122
+ export var ViewMode;
123
+ (function (ViewMode) {
124
+ /** No PDF view */
125
+ ViewMode["NONE"] = "NONE";
126
+ /** Full PDF view */
127
+ ViewMode["FULL"] = "FULL";
128
+ /** Mini PDF view */
129
+ ViewMode["MINI"] = "MINI";
130
+ })(ViewMode || (ViewMode = {}));
131
+ export var LayoutType;
132
+ (function (LayoutType) {
133
+ /** Collage type */
134
+ LayoutType["COLLAGE"] = "COLLAGE";
135
+ /** Masonry type */
136
+ LayoutType["MASONRY"] = "MASONRY";
137
+ /** Grid type */
138
+ LayoutType["GRID"] = "GRID";
139
+ /** Thumbnail type */
140
+ LayoutType["THUMBNAIL"] = "THUMBNAIL";
141
+ /** Slider type */
142
+ LayoutType["SLIDER"] = "SLIDER";
143
+ /** Slideshow type */
144
+ LayoutType["SLIDESHOW"] = "SLIDESHOW";
145
+ /** Panorama type */
146
+ LayoutType["PANORAMA"] = "PANORAMA";
147
+ /** Column type */
148
+ LayoutType["COLUMN"] = "COLUMN";
149
+ /** Magic type */
150
+ LayoutType["MAGIC"] = "MAGIC";
151
+ /** Fullsize images type */
152
+ LayoutType["FULLSIZE"] = "FULLSIZE";
153
+ })(LayoutType || (LayoutType = {}));
154
+ export var Orientation;
155
+ (function (Orientation) {
156
+ /** Rows Orientation */
157
+ Orientation["ROWS"] = "ROWS";
158
+ /** Columns Orientation */
159
+ Orientation["COLUMNS"] = "COLUMNS";
160
+ })(Orientation || (Orientation = {}));
161
+ export var Crop;
162
+ (function (Crop) {
163
+ /** Crop to fill */
164
+ Crop["FILL"] = "FILL";
165
+ /** Crop to fit */
166
+ Crop["FIT"] = "FIT";
167
+ })(Crop || (Crop = {}));
168
+ export var ThumbnailsAlignment;
169
+ (function (ThumbnailsAlignment) {
170
+ /** Top alignment */
171
+ ThumbnailsAlignment["TOP"] = "TOP";
172
+ /** Right alignment */
173
+ ThumbnailsAlignment["RIGHT"] = "RIGHT";
174
+ /** Bottom alignment */
175
+ ThumbnailsAlignment["BOTTOM"] = "BOTTOM";
176
+ /** Left alignment */
177
+ ThumbnailsAlignment["LEFT"] = "LEFT";
178
+ /** No thumbnail */
179
+ ThumbnailsAlignment["NONE"] = "NONE";
180
+ })(ThumbnailsAlignment || (ThumbnailsAlignment = {}));
181
+ export var GIFType;
182
+ (function (GIFType) {
183
+ GIFType["GIF"] = "GIF";
184
+ GIFType["STICKER"] = "STICKER";
185
+ })(GIFType || (GIFType = {}));
186
+ export var Source;
187
+ (function (Source) {
188
+ Source["HTML"] = "HTML";
189
+ Source["ADSENSE"] = "ADSENSE";
190
+ })(Source || (Source = {}));
191
+ export var MapType;
192
+ (function (MapType) {
193
+ /** Roadmap map type */
194
+ MapType["ROADMAP"] = "ROADMAP";
195
+ /** Satellite map type */
196
+ MapType["SATELITE"] = "SATELITE";
197
+ /** Hybrid map type */
198
+ MapType["HYBRID"] = "HYBRID";
199
+ /** Terrain map type */
200
+ MapType["TERRAIN"] = "TERRAIN";
201
+ })(MapType || (MapType = {}));
202
+ export var ViewRole;
203
+ (function (ViewRole) {
204
+ /** Only Poll creator can view the results */
205
+ ViewRole["CREATOR"] = "CREATOR";
206
+ /** Anyone who voted can see the results */
207
+ ViewRole["VOTERS"] = "VOTERS";
208
+ /** Anyone can see the results, even if one didn't vote */
209
+ ViewRole["EVERYONE"] = "EVERYONE";
210
+ })(ViewRole || (ViewRole = {}));
211
+ export var VoteRole;
212
+ (function (VoteRole) {
213
+ /** Logged in member */
214
+ VoteRole["SITE_MEMBERS"] = "SITE_MEMBERS";
215
+ /** Anyone */
216
+ VoteRole["ALL"] = "ALL";
217
+ })(VoteRole || (VoteRole = {}));
218
+ export var PollLayoutType;
219
+ (function (PollLayoutType) {
220
+ /** List */
221
+ PollLayoutType["LIST"] = "LIST";
222
+ /** Grid */
223
+ PollLayoutType["GRID"] = "GRID";
224
+ })(PollLayoutType || (PollLayoutType = {}));
225
+ export var PollLayoutDirection;
226
+ (function (PollLayoutDirection) {
227
+ /** Left-to-right */
228
+ PollLayoutDirection["LTR"] = "LTR";
229
+ /** Right-to-left */
230
+ PollLayoutDirection["RTL"] = "RTL";
231
+ })(PollLayoutDirection || (PollLayoutDirection = {}));
232
+ export var BackgroundType;
233
+ (function (BackgroundType) {
234
+ /** Color background type */
235
+ BackgroundType["COLOR"] = "COLOR";
236
+ /** Image background type */
237
+ BackgroundType["IMAGE"] = "IMAGE";
238
+ /** Gradiant background type */
239
+ BackgroundType["GRADIENT"] = "GRADIENT";
240
+ })(BackgroundType || (BackgroundType = {}));
241
+ export var DecorationType;
242
+ (function (DecorationType) {
243
+ DecorationType["BOLD"] = "BOLD";
244
+ DecorationType["ITALIC"] = "ITALIC";
245
+ DecorationType["UNDERLINE"] = "UNDERLINE";
246
+ DecorationType["SPOILER"] = "SPOILER";
247
+ DecorationType["ANCHOR"] = "ANCHOR";
248
+ DecorationType["MENTION"] = "MENTION";
249
+ DecorationType["LINK"] = "LINK";
250
+ DecorationType["COLOR"] = "COLOR";
251
+ DecorationType["FONT_SIZE"] = "FONT_SIZE";
252
+ DecorationType["EXTERNAL"] = "EXTERNAL";
253
+ })(DecorationType || (DecorationType = {}));
254
+ export var FontType;
255
+ (function (FontType) {
256
+ FontType["PX"] = "PX";
257
+ FontType["EM"] = "EM";
258
+ })(FontType || (FontType = {}));
259
+ export var AppType;
260
+ (function (AppType) {
261
+ AppType["PRODUCT"] = "PRODUCT";
262
+ AppType["EVENT"] = "EVENT";
263
+ AppType["BOOKING"] = "BOOKING";
264
+ })(AppType || (AppType = {}));
265
+ export var InitialExpandedItems;
266
+ (function (InitialExpandedItems) {
267
+ /** First item will be expended initally */
268
+ InitialExpandedItems["FIRST"] = "FIRST";
269
+ /** All items will expended initally */
270
+ InitialExpandedItems["ALL"] = "ALL";
271
+ /** All items collapsed initally */
272
+ InitialExpandedItems["NONE"] = "NONE";
273
+ })(InitialExpandedItems || (InitialExpandedItems = {}));
274
+ export var Direction;
275
+ (function (Direction) {
276
+ /** Left-to-right */
277
+ Direction["LTR"] = "LTR";
278
+ /** Right-to-left */
279
+ Direction["RTL"] = "RTL";
280
+ })(Direction || (Direction = {}));
281
+ export var VerticalAlignment;
282
+ (function (VerticalAlignment) {
283
+ /** Top alignment */
284
+ VerticalAlignment["TOP"] = "TOP";
285
+ /** Middle alignment */
286
+ VerticalAlignment["MIDDLE"] = "MIDDLE";
287
+ /** Bottom alignment */
288
+ VerticalAlignment["BOTTOM"] = "BOTTOM";
289
+ })(VerticalAlignment || (VerticalAlignment = {}));
290
+ /**
291
+ * `NullValue` is a singleton enumeration to represent the null value for the
292
+ * `Value` type union.
293
+ *
294
+ * The JSON representation for `NullValue` is JSON `null`.
295
+ */
296
+ export var NullValue;
297
+ (function (NullValue) {
298
+ /** Null value. */
299
+ NullValue["NULL_VALUE"] = "NULL_VALUE";
300
+ })(NullValue || (NullValue = {}));
301
+ export var RequestedFields;
302
+ (function (RequestedFields) {
303
+ RequestedFields["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
304
+ RequestedFields["ASSIGNED_PRODUCTS_COUNT"] = "ASSIGNED_PRODUCTS_COUNT";
305
+ })(RequestedFields || (RequestedFields = {}));
306
+ export var SortOrder;
307
+ (function (SortOrder) {
308
+ SortOrder["ASC"] = "ASC";
309
+ SortOrder["DESC"] = "DESC";
310
+ })(SortOrder || (SortOrder = {}));
311
+ export var WebhookIdentityType;
312
+ (function (WebhookIdentityType) {
313
+ WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
314
+ WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
315
+ WebhookIdentityType["MEMBER"] = "MEMBER";
316
+ WebhookIdentityType["WIX_USER"] = "WIX_USER";
317
+ WebhookIdentityType["APP"] = "APP";
318
+ })(WebhookIdentityType || (WebhookIdentityType = {}));
319
+ /**
320
+ * Creates an info section.
321
+ *
322
+ * To assign the info section to a product, include the `infoSection.id` or `infoSection.uniqueName`
323
+ * when [creating](https://dev.wix.com/docs/rest/business-solutions/stores/catalog-v3/products-v3/create-product) or
324
+ * [updating](https://dev.wix.com/docs/rest/business-solutions/stores/catalog-v3/products-v3/update-product) a product.
325
+ * @param infoSection - Info section to create.
326
+ * @public
327
+ * @documentationMaturity preview
328
+ * @requiredField infoSection
329
+ * @requiredField infoSection.title
330
+ * @requiredField infoSection.uniqueName
331
+ * @permissionId WIX_STORES.INFO_SECTION_CREATE
332
+ * @permissionScope Manage Products
333
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
334
+ * @permissionScope Info section write in v3 catalog
335
+ * @permissionScopeId SCOPE.STORES.INFO_SECTION_WRITE
336
+ * @permissionScope Product write in v3 catalog
337
+ * @permissionScopeId SCOPE.STORES.PRODUCT_WRITE
338
+ * @permissionScope Manage v3 catalog
339
+ * @permissionScopeId SCOPE.STORES.CATALOG_WRITE
340
+ * @applicableIdentity APP
341
+ * @returns Created info section.
342
+ * @fqn com.wix.stores.catalog.info.section.v3.InfoSectionsService.CreateInfoSection
343
+ */
344
+ export async function createInfoSection(infoSection) {
345
+ // @ts-ignore
346
+ const { httpClient, sideEffects } = arguments[1];
347
+ const payload = renameKeysFromSDKRequestToRESTRequest({
348
+ infoSection: infoSection,
349
+ });
350
+ const reqOpts = ambassadorWixStoresCatalogV3InfoSection.createInfoSection(payload);
351
+ sideEffects?.onSiteCall?.();
352
+ try {
353
+ const result = await httpClient.request(reqOpts);
354
+ sideEffects?.onSuccess?.(result);
355
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.infoSection;
356
+ }
357
+ catch (err) {
358
+ const transformedError = sdkTransformError(err, {
359
+ spreadPathsToArguments: {},
360
+ explicitPathsToArguments: { infoSection: '$[0]' },
361
+ singleArgumentUnchanged: false,
362
+ }, ['infoSection']);
363
+ sideEffects?.onError?.(err);
364
+ throw transformedError;
365
+ }
366
+ }
367
+ /**
368
+ * Retrieves an info section.
369
+ * @param infoSectionId - Info section ID.
370
+ * @public
371
+ * @documentationMaturity preview
372
+ * @requiredField infoSectionId
373
+ * @permissionId WIX_STORES.INFO_SECTION_READ
374
+ * @permissionScope Read info sections in v3 catalog
375
+ * @permissionScopeId SCOPE.STORES.INFO_SECTION_READ
376
+ * @permissionScope Read v3 catalog
377
+ * @permissionScopeId SCOPE.STORES.CATALOG_READ
378
+ * @permissionScope Manage Products
379
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
380
+ * @permissionScope Read Products
381
+ * @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
382
+ * @permissionScope Product write in v3 catalog
383
+ * @permissionScopeId SCOPE.STORES.PRODUCT_WRITE
384
+ * @permissionScope Manage v3 catalog
385
+ * @permissionScopeId SCOPE.STORES.CATALOG_WRITE
386
+ * @permissionScope Manage Orders
387
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
388
+ * @applicableIdentity APP
389
+ * @applicableIdentity VISITOR
390
+ * @returns Info section.
391
+ * @fqn com.wix.stores.catalog.info.section.v3.InfoSectionsService.GetInfoSection
392
+ */
393
+ export async function getInfoSection(infoSectionId, options) {
394
+ // @ts-ignore
395
+ const { httpClient, sideEffects } = arguments[2];
396
+ const payload = renameKeysFromSDKRequestToRESTRequest({
397
+ infoSectionId: infoSectionId,
398
+ fields: options?.fields,
399
+ });
400
+ const reqOpts = ambassadorWixStoresCatalogV3InfoSection.getInfoSection(payload);
401
+ sideEffects?.onSiteCall?.();
402
+ try {
403
+ const result = await httpClient.request(reqOpts);
404
+ sideEffects?.onSuccess?.(result);
405
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.infoSection;
406
+ }
407
+ catch (err) {
408
+ const transformedError = sdkTransformError(err, {
409
+ spreadPathsToArguments: {},
410
+ explicitPathsToArguments: {
411
+ infoSectionId: '$[0]',
412
+ fields: '$[1].fields',
413
+ },
414
+ singleArgumentUnchanged: false,
415
+ }, ['infoSectionId', 'options']);
416
+ sideEffects?.onError?.(err);
417
+ throw transformedError;
418
+ }
419
+ }
420
+ /**
421
+ * Retrieves an info section by ID or `uniqueName`, or creates an info section if one with the passed `uniqueName` doesn't exist.
422
+ *
423
+ * > **Note:** If an info section with the passed `uniqueName` doesn't exist, the `uniqueName` and `title` fields are required to create a new info section.
424
+ * @public
425
+ * @documentationMaturity preview
426
+ * @permissionId WIX_STORES.INFO_SECTION_GET_OR_CREATE
427
+ * @permissionScope Manage Products
428
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
429
+ * @permissionScope Info section write in v3 catalog
430
+ * @permissionScopeId SCOPE.STORES.INFO_SECTION_WRITE
431
+ * @permissionScope Product write in v3 catalog
432
+ * @permissionScopeId SCOPE.STORES.PRODUCT_WRITE
433
+ * @permissionScope Manage v3 catalog
434
+ * @permissionScopeId SCOPE.STORES.CATALOG_WRITE
435
+ * @applicableIdentity APP
436
+ * @fqn com.wix.stores.catalog.info.section.v3.InfoSectionsService.GetOrCreateInfoSection
437
+ */
438
+ export async function getOrCreateInfoSection(options) {
439
+ // @ts-ignore
440
+ const { httpClient, sideEffects } = arguments[1];
441
+ const payload = renameKeysFromSDKRequestToRESTRequest({
442
+ infoSection: options?.infoSection,
443
+ fields: options?.fields,
444
+ });
445
+ const reqOpts = ambassadorWixStoresCatalogV3InfoSection.getOrCreateInfoSection(payload);
446
+ sideEffects?.onSiteCall?.();
447
+ try {
448
+ const result = await httpClient.request(reqOpts);
449
+ sideEffects?.onSuccess?.(result);
450
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
451
+ }
452
+ catch (err) {
453
+ const transformedError = sdkTransformError(err, {
454
+ spreadPathsToArguments: {},
455
+ explicitPathsToArguments: {
456
+ infoSection: '$[0].infoSection',
457
+ fields: '$[0].fields',
458
+ },
459
+ singleArgumentUnchanged: false,
460
+ }, ['options']);
461
+ sideEffects?.onError?.(err);
462
+ throw transformedError;
463
+ }
464
+ }
465
+ /**
466
+ * Retrieves multiple info sections by ID or `uniqueName`, or creates multiple info sections if those with the passed `uniqueName` don't exist.
467
+ *
468
+ * > **Note:** If an info section with the passed `uniqueName` doesn't exist, the `uniqueName` and `title` fields are required to create a new info section.
469
+ * @public
470
+ * @documentationMaturity preview
471
+ * @permissionId WIX_STORES.INFO_SECTION_GET_OR_CREATE
472
+ * @permissionScope Manage Products
473
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
474
+ * @permissionScope Info section write in v3 catalog
475
+ * @permissionScopeId SCOPE.STORES.INFO_SECTION_WRITE
476
+ * @permissionScope Product write in v3 catalog
477
+ * @permissionScopeId SCOPE.STORES.PRODUCT_WRITE
478
+ * @permissionScope Manage v3 catalog
479
+ * @permissionScopeId SCOPE.STORES.CATALOG_WRITE
480
+ * @applicableIdentity APP
481
+ * @fqn com.wix.stores.catalog.info.section.v3.InfoSectionsService.BulkGetOrCreateInfoSections
482
+ */
483
+ export async function bulkGetOrCreateInfoSections(options) {
484
+ // @ts-ignore
485
+ const { httpClient, sideEffects } = arguments[1];
486
+ const payload = renameKeysFromSDKRequestToRESTRequest({
487
+ infoSections: options?.infoSections,
488
+ fields: options?.fields,
489
+ });
490
+ const reqOpts = ambassadorWixStoresCatalogV3InfoSection.bulkGetOrCreateInfoSections(payload);
491
+ sideEffects?.onSiteCall?.();
492
+ try {
493
+ const result = await httpClient.request(reqOpts);
494
+ sideEffects?.onSuccess?.(result);
495
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
496
+ }
497
+ catch (err) {
498
+ const transformedError = sdkTransformError(err, {
499
+ spreadPathsToArguments: {},
500
+ explicitPathsToArguments: {
501
+ infoSections: '$[0].infoSections',
502
+ fields: '$[0].fields',
503
+ },
504
+ singleArgumentUnchanged: false,
505
+ }, ['options']);
506
+ sideEffects?.onError?.(err);
507
+ throw transformedError;
508
+ }
509
+ }
510
+ /**
511
+ * Updates an info section.
512
+ *
513
+ *
514
+ * Each time the info section is updated, `revision` increments by 1.
515
+ * The current `revision` must be passed when updating the info section.
516
+ * This ensures you're working with the latest info section and prevents unintended overwrites.
517
+ * @param _id - Info section ID.
518
+ * @public
519
+ * @documentationMaturity preview
520
+ * @requiredField _id
521
+ * @requiredField infoSection
522
+ * @requiredField infoSection.revision
523
+ * @permissionId WIX_STORES.INFO_SECTION_UPDATE
524
+ * @permissionScope Manage Products
525
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
526
+ * @permissionScope Info section write in v3 catalog
527
+ * @permissionScopeId SCOPE.STORES.INFO_SECTION_WRITE
528
+ * @permissionScope Product write in v3 catalog
529
+ * @permissionScopeId SCOPE.STORES.PRODUCT_WRITE
530
+ * @permissionScope Manage v3 catalog
531
+ * @permissionScopeId SCOPE.STORES.CATALOG_WRITE
532
+ * @applicableIdentity APP
533
+ * @returns Updated info section.
534
+ * @fqn com.wix.stores.catalog.info.section.v3.InfoSectionsService.UpdateInfoSection
535
+ */
536
+ export async function updateInfoSection(_id, infoSection, options) {
537
+ // @ts-ignore
538
+ const { httpClient, sideEffects } = arguments[3];
539
+ const payload = renameKeysFromSDKRequestToRESTRequest({
540
+ infoSection: { ...infoSection, id: _id },
541
+ fields: options?.fields,
542
+ });
543
+ const reqOpts = ambassadorWixStoresCatalogV3InfoSection.updateInfoSection(payload);
544
+ sideEffects?.onSiteCall?.();
545
+ try {
546
+ const result = await httpClient.request(reqOpts);
547
+ sideEffects?.onSuccess?.(result);
548
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.infoSection;
549
+ }
550
+ catch (err) {
551
+ const transformedError = sdkTransformError(err, {
552
+ spreadPathsToArguments: { infoSection: '$[1]' },
553
+ explicitPathsToArguments: {
554
+ 'infoSection.id': '$[0]',
555
+ fields: '$[2].fields',
556
+ },
557
+ singleArgumentUnchanged: false,
558
+ }, ['_id', 'infoSection', 'options']);
559
+ sideEffects?.onError?.(err);
560
+ throw transformedError;
561
+ }
562
+ }
563
+ /**
564
+ * Deletes an info section.
565
+ *
566
+ * > **Note:** Deleting an info section will also remove it from all products it is assigned to.
567
+ * @param infoSectionId - Info section ID
568
+ * @public
569
+ * @documentationMaturity preview
570
+ * @requiredField infoSectionId
571
+ * @permissionId WIX_STORES.INFO_SECTION_DELETE
572
+ * @permissionScope Manage Products
573
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
574
+ * @permissionScope Info section write in v3 catalog
575
+ * @permissionScopeId SCOPE.STORES.INFO_SECTION_WRITE
576
+ * @permissionScope Product write in v3 catalog
577
+ * @permissionScopeId SCOPE.STORES.PRODUCT_WRITE
578
+ * @permissionScope Manage v3 catalog
579
+ * @permissionScopeId SCOPE.STORES.CATALOG_WRITE
580
+ * @applicableIdentity APP
581
+ * @fqn com.wix.stores.catalog.info.section.v3.InfoSectionsService.DeleteInfoSection
582
+ */
583
+ export async function deleteInfoSection(infoSectionId) {
584
+ // @ts-ignore
585
+ const { httpClient, sideEffects } = arguments[1];
586
+ const payload = renameKeysFromSDKRequestToRESTRequest({
587
+ infoSectionId: infoSectionId,
588
+ });
589
+ const reqOpts = ambassadorWixStoresCatalogV3InfoSection.deleteInfoSection(payload);
590
+ sideEffects?.onSiteCall?.();
591
+ try {
592
+ const result = await httpClient.request(reqOpts);
593
+ sideEffects?.onSuccess?.(result);
594
+ }
595
+ catch (err) {
596
+ const transformedError = sdkTransformError(err, {
597
+ spreadPathsToArguments: {},
598
+ explicitPathsToArguments: { infoSectionId: '$[0]' },
599
+ singleArgumentUnchanged: false,
600
+ }, ['infoSectionId']);
601
+ sideEffects?.onError?.(err);
602
+ throw transformedError;
603
+ }
604
+ }
605
+ /**
606
+ * Retrieves a list of up to 100 info sections, given the provided filtering, sorting, and cursor paging.
607
+ * Pass supported values to the `fields` array in the request to include those fields in the response.
608
+ *
609
+ *
610
+ * Query Info Sections runs with these defaults, which you can override:
611
+ *
612
+ * - `createdDate` is sorted in `DESC` order
613
+ * - `cursorPaging.limit` is `100`
614
+ *
615
+ * For field support for filters and sorting,
616
+ * see [Info Sections: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-solutions/stores/catalog-v3/info-sections-v3/supported-filters-and-sorting).
617
+ *
618
+ * To learn about working with _Query_ endpoints, see
619
+ * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language),
620
+ * and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
621
+ * @public
622
+ * @documentationMaturity preview
623
+ * @permissionScope Read info sections in v3 catalog
624
+ * @permissionScopeId SCOPE.STORES.INFO_SECTION_READ
625
+ * @permissionScope Read v3 catalog
626
+ * @permissionScopeId SCOPE.STORES.CATALOG_READ
627
+ * @permissionScope Manage Products
628
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
629
+ * @permissionScope Read Products
630
+ * @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
631
+ * @permissionScope Product write in v3 catalog
632
+ * @permissionScopeId SCOPE.STORES.PRODUCT_WRITE
633
+ * @permissionScope Manage v3 catalog
634
+ * @permissionScopeId SCOPE.STORES.CATALOG_WRITE
635
+ * @permissionScope Manage Orders
636
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
637
+ * @permissionId WIX_STORES.INFO_SECTION_READ
638
+ * @applicableIdentity APP
639
+ * @applicableIdentity VISITOR
640
+ * @fqn com.wix.stores.catalog.info.section.v3.InfoSectionsService.QueryInfoSections
641
+ */
642
+ export function queryInfoSections(options) {
643
+ // @ts-ignore
644
+ const { httpClient, sideEffects } = arguments[1];
645
+ return queryBuilder({
646
+ func: async (payload) => {
647
+ const reqOpts = ambassadorWixStoresCatalogV3InfoSection.queryInfoSections({ ...payload, ...(options ?? {}) });
648
+ sideEffects?.onSiteCall?.();
649
+ try {
650
+ const result = await httpClient.request(reqOpts);
651
+ sideEffects?.onSuccess?.(result);
652
+ return result;
653
+ }
654
+ catch (err) {
655
+ sideEffects?.onError?.(err);
656
+ throw err;
657
+ }
658
+ },
659
+ requestTransformer: (query) => {
660
+ const args = [query, options];
661
+ return renameKeysFromSDKRequestToRESTRequest({
662
+ ...args?.[1],
663
+ query: args?.[0],
664
+ });
665
+ },
666
+ responseTransformer: ({ data, }) => {
667
+ const transformedData = renameKeysFromRESTResponseToSDKResponse(data);
668
+ return {
669
+ items: transformedData?.infoSections,
670
+ pagingMetadata: transformedData?.pagingMetadata,
671
+ };
672
+ },
673
+ errorTransformer: (err) => {
674
+ const transformedError = sdkTransformError(err, {
675
+ spreadPathsToArguments: {},
676
+ explicitPathsToArguments: { query: '$[0]' },
677
+ singleArgumentUnchanged: false,
678
+ });
679
+ throw transformedError;
680
+ },
681
+ pagingMethod: 'CURSOR',
682
+ transformationPaths: {},
683
+ });
684
+ }
685
+ /**
686
+ * Creates multiple info sections.
687
+ * @param infoSections - Info sections to create.
688
+ * @public
689
+ * @documentationMaturity preview
690
+ * @requiredField infoSections
691
+ * @requiredField infoSections.title
692
+ * @requiredField infoSections.uniqueName
693
+ * @permissionId WIX_STORES.INFO_SECTION_CREATE
694
+ * @permissionScope Manage Products
695
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
696
+ * @permissionScope Info section write in v3 catalog
697
+ * @permissionScopeId SCOPE.STORES.INFO_SECTION_WRITE
698
+ * @permissionScope Product write in v3 catalog
699
+ * @permissionScopeId SCOPE.STORES.PRODUCT_WRITE
700
+ * @permissionScope Manage v3 catalog
701
+ * @permissionScopeId SCOPE.STORES.CATALOG_WRITE
702
+ * @applicableIdentity APP
703
+ * @fqn com.wix.stores.catalog.info.section.v3.InfoSectionsService.BulkCreateInfoSections
704
+ */
705
+ export async function bulkCreateInfoSections(infoSections, options) {
706
+ // @ts-ignore
707
+ const { httpClient, sideEffects } = arguments[2];
708
+ const payload = renameKeysFromSDKRequestToRESTRequest({
709
+ infoSections: infoSections,
710
+ returnEntity: options?.returnEntity,
711
+ });
712
+ const reqOpts = ambassadorWixStoresCatalogV3InfoSection.bulkCreateInfoSections(payload);
713
+ sideEffects?.onSiteCall?.();
714
+ try {
715
+ const result = await httpClient.request(reqOpts);
716
+ sideEffects?.onSuccess?.(result);
717
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
718
+ }
719
+ catch (err) {
720
+ const transformedError = sdkTransformError(err, {
721
+ spreadPathsToArguments: {},
722
+ explicitPathsToArguments: {
723
+ infoSections: '$[0]',
724
+ returnEntity: '$[1].returnEntity',
725
+ },
726
+ singleArgumentUnchanged: false,
727
+ }, ['infoSections', 'options']);
728
+ sideEffects?.onError?.(err);
729
+ throw transformedError;
730
+ }
731
+ }
732
+ /**
733
+ * Updates multiple info sections.
734
+ *
735
+ * Each time an info section is updated, `revision` increments by 1.
736
+ * The current `revision` must be passed when updating an info section.
737
+ * This ensures you're working with the latest info section and prevents unintended overwrites.
738
+ * @param infoSections - List of info sections to update.
739
+ * @public
740
+ * @documentationMaturity preview
741
+ * @requiredField infoSections
742
+ * @requiredField infoSections.infoSection._id
743
+ * @requiredField infoSections.infoSection.revision
744
+ * @permissionId WIX_STORES.INFO_SECTION_UPDATE
745
+ * @permissionScope Manage Products
746
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
747
+ * @permissionScope Info section write in v3 catalog
748
+ * @permissionScopeId SCOPE.STORES.INFO_SECTION_WRITE
749
+ * @permissionScope Product write in v3 catalog
750
+ * @permissionScopeId SCOPE.STORES.PRODUCT_WRITE
751
+ * @permissionScope Manage v3 catalog
752
+ * @permissionScopeId SCOPE.STORES.CATALOG_WRITE
753
+ * @applicableIdentity APP
754
+ * @fqn com.wix.stores.catalog.info.section.v3.InfoSectionsService.BulkUpdateInfoSections
755
+ */
756
+ export async function bulkUpdateInfoSections(infoSections, options) {
757
+ // @ts-ignore
758
+ const { httpClient, sideEffects } = arguments[2];
759
+ const payload = renameKeysFromSDKRequestToRESTRequest({
760
+ infoSections: infoSections,
761
+ returnEntity: options?.returnEntity,
762
+ fields: options?.fields,
763
+ });
764
+ const reqOpts = ambassadorWixStoresCatalogV3InfoSection.bulkUpdateInfoSections(payload);
765
+ sideEffects?.onSiteCall?.();
766
+ try {
767
+ const result = await httpClient.request(reqOpts);
768
+ sideEffects?.onSuccess?.(result);
769
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
770
+ }
771
+ catch (err) {
772
+ const transformedError = sdkTransformError(err, {
773
+ spreadPathsToArguments: {},
774
+ explicitPathsToArguments: {
775
+ infoSections: '$[0]',
776
+ returnEntity: '$[1].returnEntity',
777
+ fields: '$[1].fields',
778
+ },
779
+ singleArgumentUnchanged: false,
780
+ }, ['infoSections', 'options']);
781
+ sideEffects?.onError?.(err);
782
+ throw transformedError;
783
+ }
784
+ }
785
+ /**
786
+ * Deletes multiple info sections.
787
+ * @param infoSectionIds - IDs of info sections to delete.
788
+ * @public
789
+ * @documentationMaturity preview
790
+ * @requiredField infoSectionIds
791
+ * @permissionId WIX_STORES.INFO_SECTION_DELETE
792
+ * @permissionScope Manage Products
793
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
794
+ * @permissionScope Info section write in v3 catalog
795
+ * @permissionScopeId SCOPE.STORES.INFO_SECTION_WRITE
796
+ * @permissionScope Product write in v3 catalog
797
+ * @permissionScopeId SCOPE.STORES.PRODUCT_WRITE
798
+ * @permissionScope Manage v3 catalog
799
+ * @permissionScopeId SCOPE.STORES.CATALOG_WRITE
800
+ * @applicableIdentity APP
801
+ * @fqn com.wix.stores.catalog.info.section.v3.InfoSectionsService.BulkDeleteInfoSections
802
+ */
803
+ export async function bulkDeleteInfoSections(infoSectionIds) {
804
+ // @ts-ignore
805
+ const { httpClient, sideEffects } = arguments[1];
806
+ const payload = renameKeysFromSDKRequestToRESTRequest({
807
+ infoSectionIds: infoSectionIds,
808
+ });
809
+ const reqOpts = ambassadorWixStoresCatalogV3InfoSection.bulkDeleteInfoSections(payload);
810
+ sideEffects?.onSiteCall?.();
811
+ try {
812
+ const result = await httpClient.request(reqOpts);
813
+ sideEffects?.onSuccess?.(result);
814
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
815
+ }
816
+ catch (err) {
817
+ const transformedError = sdkTransformError(err, {
818
+ spreadPathsToArguments: {},
819
+ explicitPathsToArguments: { infoSectionIds: '$[0]' },
820
+ singleArgumentUnchanged: false,
821
+ }, ['infoSectionIds']);
822
+ sideEffects?.onError?.(err);
823
+ throw transformedError;
824
+ }
825
+ }
826
+ //# sourceMappingURL=stores-catalog-v3-info-section-info-sections-v-3.universal.js.map