@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,1088 @@
1
+ import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';
2
+ import { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';
3
+ import { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';
4
+ import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
5
+ import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
6
+ import { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';
7
+ import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
8
+ import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
9
+ function resolveComWixStoresCatalogInfoSectionV3InfoSectionsServiceUrl(opts) {
10
+ const domainToMappings = {
11
+ 'www.wixapis.com': [
12
+ {
13
+ srcPath: '/stores/v3/info-sections',
14
+ destPath: '/v3/info-sections',
15
+ },
16
+ {
17
+ srcPath: '/stores/v3/bulk/info-sections',
18
+ destPath: '/v3/bulk/info-sections',
19
+ },
20
+ ],
21
+ 'manage._base_domain_': [
22
+ {
23
+ srcPath: '/info-sections',
24
+ destPath: '',
25
+ },
26
+ ],
27
+ 'editor._base_domain_': [
28
+ {
29
+ srcPath: '/_api/info-section',
30
+ destPath: '',
31
+ },
32
+ ],
33
+ 'blocks._base_domain_': [
34
+ {
35
+ srcPath: '/_api/info-section',
36
+ destPath: '',
37
+ },
38
+ ],
39
+ 'create.editorx': [
40
+ {
41
+ srcPath: '/_api/info-section',
42
+ destPath: '',
43
+ },
44
+ ],
45
+ _: [
46
+ {
47
+ srcPath: '/_api/info-section',
48
+ destPath: '',
49
+ },
50
+ ],
51
+ '*.dev.wix-code.com': [
52
+ {
53
+ srcPath: '/_api/info-section',
54
+ destPath: '',
55
+ },
56
+ ],
57
+ };
58
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
59
+ }
60
+ const PACKAGE_NAME = '@wix/auto_sdk_stores_info-sections-v-3';
61
+ /**
62
+ * Creates an info section.
63
+ *
64
+ * To assign the info section to a product, include the `infoSection.id` or `infoSection.uniqueName`
65
+ * when [creating](https://dev.wix.com/docs/rest/business-solutions/stores/catalog-v3/products-v3/create-product) or
66
+ * [updating](https://dev.wix.com/docs/rest/business-solutions/stores/catalog-v3/products-v3/update-product) a product.
67
+ */
68
+ export function createInfoSection(payload) {
69
+ function __createInfoSection({ host }) {
70
+ const serializedData = transformPaths(payload, [
71
+ {
72
+ transformFn: transformSDKTimestampToRESTTimestamp,
73
+ paths: [
74
+ { path: 'infoSection.createdDate' },
75
+ { path: 'infoSection.updatedDate' },
76
+ { path: 'infoSection.description.metadata.createdTimestamp' },
77
+ { path: 'infoSection.description.metadata.updatedTimestamp' },
78
+ ],
79
+ },
80
+ {
81
+ transformFn: transformSDKFloatToRESTFloat,
82
+ paths: [
83
+ {
84
+ path: 'infoSection.description.nodes.galleryData.items.image.media.duration',
85
+ },
86
+ {
87
+ path: 'infoSection.description.nodes.galleryData.items.video.media.duration',
88
+ },
89
+ {
90
+ path: 'infoSection.description.nodes.galleryData.items.video.thumbnail.duration',
91
+ },
92
+ {
93
+ path: 'infoSection.description.nodes.galleryData.options.item.ratio',
94
+ },
95
+ { path: 'infoSection.description.nodes.imageData.image.duration' },
96
+ { path: 'infoSection.description.nodes.mapData.mapSettings.lat' },
97
+ { path: 'infoSection.description.nodes.mapData.mapSettings.lng' },
98
+ {
99
+ path: 'infoSection.description.nodes.pollData.poll.image.duration',
100
+ },
101
+ {
102
+ path: 'infoSection.description.nodes.pollData.poll.options.image.duration',
103
+ },
104
+ {
105
+ path: 'infoSection.description.nodes.pollData.design.poll.background.image.duration',
106
+ },
107
+ { path: 'infoSection.description.nodes.appEmbedData.image.duration' },
108
+ { path: 'infoSection.description.nodes.videoData.video.duration' },
109
+ {
110
+ path: 'infoSection.description.nodes.videoData.thumbnail.duration',
111
+ },
112
+ { path: 'infoSection.description.nodes.audioData.audio.duration' },
113
+ {
114
+ path: 'infoSection.description.nodes.audioData.coverImage.duration',
115
+ },
116
+ ],
117
+ },
118
+ ]);
119
+ const metadata = {
120
+ entityFqdn: 'wix.stores.catalog.v3.info_section',
121
+ method: 'POST',
122
+ methodFqn: 'com.wix.stores.catalog.info.section.v3.InfoSectionsService.CreateInfoSection',
123
+ packageName: PACKAGE_NAME,
124
+ url: resolveComWixStoresCatalogInfoSectionV3InfoSectionsServiceUrl({
125
+ protoPath: '/v3/info-sections',
126
+ data: serializedData,
127
+ host,
128
+ }),
129
+ data: serializedData,
130
+ transformResponse: (payload) => transformPaths(payload, [
131
+ {
132
+ transformFn: transformRESTTimestampToSDKTimestamp,
133
+ paths: [
134
+ { path: 'infoSection.createdDate' },
135
+ { path: 'infoSection.updatedDate' },
136
+ { path: 'infoSection.description.metadata.createdTimestamp' },
137
+ { path: 'infoSection.description.metadata.updatedTimestamp' },
138
+ ],
139
+ },
140
+ {
141
+ transformFn: transformRESTFloatToSDKFloat,
142
+ paths: [
143
+ {
144
+ path: 'infoSection.description.nodes.galleryData.items.image.media.duration',
145
+ },
146
+ {
147
+ path: 'infoSection.description.nodes.galleryData.items.video.media.duration',
148
+ },
149
+ {
150
+ path: 'infoSection.description.nodes.galleryData.items.video.thumbnail.duration',
151
+ },
152
+ {
153
+ path: 'infoSection.description.nodes.galleryData.options.item.ratio',
154
+ },
155
+ {
156
+ path: 'infoSection.description.nodes.imageData.image.duration',
157
+ },
158
+ { path: 'infoSection.description.nodes.mapData.mapSettings.lat' },
159
+ { path: 'infoSection.description.nodes.mapData.mapSettings.lng' },
160
+ {
161
+ path: 'infoSection.description.nodes.pollData.poll.image.duration',
162
+ },
163
+ {
164
+ path: 'infoSection.description.nodes.pollData.poll.options.image.duration',
165
+ },
166
+ {
167
+ path: 'infoSection.description.nodes.pollData.design.poll.background.image.duration',
168
+ },
169
+ {
170
+ path: 'infoSection.description.nodes.appEmbedData.image.duration',
171
+ },
172
+ {
173
+ path: 'infoSection.description.nodes.videoData.video.duration',
174
+ },
175
+ {
176
+ path: 'infoSection.description.nodes.videoData.thumbnail.duration',
177
+ },
178
+ {
179
+ path: 'infoSection.description.nodes.audioData.audio.duration',
180
+ },
181
+ {
182
+ path: 'infoSection.description.nodes.audioData.coverImage.duration',
183
+ },
184
+ ],
185
+ },
186
+ ]),
187
+ };
188
+ return metadata;
189
+ }
190
+ return __createInfoSection;
191
+ }
192
+ /** Retrieves an info section. */
193
+ export function getInfoSection(payload) {
194
+ function __getInfoSection({ host }) {
195
+ const metadata = {
196
+ entityFqdn: 'wix.stores.catalog.v3.info_section',
197
+ method: 'GET',
198
+ methodFqn: 'com.wix.stores.catalog.info.section.v3.InfoSectionsService.GetInfoSection',
199
+ packageName: PACKAGE_NAME,
200
+ url: resolveComWixStoresCatalogInfoSectionV3InfoSectionsServiceUrl({
201
+ protoPath: '/v3/info-sections/{infoSectionId}',
202
+ data: payload,
203
+ host,
204
+ }),
205
+ params: toURLSearchParams(payload),
206
+ transformResponse: (payload) => transformPaths(payload, [
207
+ {
208
+ transformFn: transformRESTTimestampToSDKTimestamp,
209
+ paths: [
210
+ { path: 'infoSection.createdDate' },
211
+ { path: 'infoSection.updatedDate' },
212
+ { path: 'infoSection.description.metadata.createdTimestamp' },
213
+ { path: 'infoSection.description.metadata.updatedTimestamp' },
214
+ ],
215
+ },
216
+ {
217
+ transformFn: transformRESTFloatToSDKFloat,
218
+ paths: [
219
+ {
220
+ path: 'infoSection.description.nodes.galleryData.items.image.media.duration',
221
+ },
222
+ {
223
+ path: 'infoSection.description.nodes.galleryData.items.video.media.duration',
224
+ },
225
+ {
226
+ path: 'infoSection.description.nodes.galleryData.items.video.thumbnail.duration',
227
+ },
228
+ {
229
+ path: 'infoSection.description.nodes.galleryData.options.item.ratio',
230
+ },
231
+ {
232
+ path: 'infoSection.description.nodes.imageData.image.duration',
233
+ },
234
+ { path: 'infoSection.description.nodes.mapData.mapSettings.lat' },
235
+ { path: 'infoSection.description.nodes.mapData.mapSettings.lng' },
236
+ {
237
+ path: 'infoSection.description.nodes.pollData.poll.image.duration',
238
+ },
239
+ {
240
+ path: 'infoSection.description.nodes.pollData.poll.options.image.duration',
241
+ },
242
+ {
243
+ path: 'infoSection.description.nodes.pollData.design.poll.background.image.duration',
244
+ },
245
+ {
246
+ path: 'infoSection.description.nodes.appEmbedData.image.duration',
247
+ },
248
+ {
249
+ path: 'infoSection.description.nodes.videoData.video.duration',
250
+ },
251
+ {
252
+ path: 'infoSection.description.nodes.videoData.thumbnail.duration',
253
+ },
254
+ {
255
+ path: 'infoSection.description.nodes.audioData.audio.duration',
256
+ },
257
+ {
258
+ path: 'infoSection.description.nodes.audioData.coverImage.duration',
259
+ },
260
+ ],
261
+ },
262
+ ]),
263
+ };
264
+ return metadata;
265
+ }
266
+ return __getInfoSection;
267
+ }
268
+ /**
269
+ * Retrieves an info section by ID or `uniqueName`, or creates an info section if one with the passed `uniqueName` doesn't exist.
270
+ *
271
+ * > **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.
272
+ */
273
+ export function getOrCreateInfoSection(payload) {
274
+ function __getOrCreateInfoSection({ host }) {
275
+ const serializedData = transformPaths(payload, [
276
+ {
277
+ transformFn: transformSDKFloatToRESTFloat,
278
+ paths: [
279
+ {
280
+ path: 'infoSection.description.nodes.galleryData.items.image.media.duration',
281
+ },
282
+ {
283
+ path: 'infoSection.description.nodes.galleryData.items.video.media.duration',
284
+ },
285
+ {
286
+ path: 'infoSection.description.nodes.galleryData.items.video.thumbnail.duration',
287
+ },
288
+ {
289
+ path: 'infoSection.description.nodes.galleryData.options.item.ratio',
290
+ },
291
+ { path: 'infoSection.description.nodes.imageData.image.duration' },
292
+ { path: 'infoSection.description.nodes.mapData.mapSettings.lat' },
293
+ { path: 'infoSection.description.nodes.mapData.mapSettings.lng' },
294
+ {
295
+ path: 'infoSection.description.nodes.pollData.poll.image.duration',
296
+ },
297
+ {
298
+ path: 'infoSection.description.nodes.pollData.poll.options.image.duration',
299
+ },
300
+ {
301
+ path: 'infoSection.description.nodes.pollData.design.poll.background.image.duration',
302
+ },
303
+ { path: 'infoSection.description.nodes.appEmbedData.image.duration' },
304
+ { path: 'infoSection.description.nodes.videoData.video.duration' },
305
+ {
306
+ path: 'infoSection.description.nodes.videoData.thumbnail.duration',
307
+ },
308
+ { path: 'infoSection.description.nodes.audioData.audio.duration' },
309
+ {
310
+ path: 'infoSection.description.nodes.audioData.coverImage.duration',
311
+ },
312
+ ],
313
+ },
314
+ {
315
+ transformFn: transformSDKTimestampToRESTTimestamp,
316
+ paths: [
317
+ { path: 'infoSection.description.metadata.createdTimestamp' },
318
+ { path: 'infoSection.description.metadata.updatedTimestamp' },
319
+ ],
320
+ },
321
+ ]);
322
+ const metadata = {
323
+ entityFqdn: 'wix.stores.catalog.v3.info_section',
324
+ method: 'POST',
325
+ methodFqn: 'com.wix.stores.catalog.info.section.v3.InfoSectionsService.GetOrCreateInfoSection',
326
+ packageName: PACKAGE_NAME,
327
+ url: resolveComWixStoresCatalogInfoSectionV3InfoSectionsServiceUrl({
328
+ protoPath: '/v3/info-sections/get-or-create',
329
+ data: serializedData,
330
+ host,
331
+ }),
332
+ data: serializedData,
333
+ transformResponse: (payload) => transformPaths(payload, [
334
+ {
335
+ transformFn: transformRESTTimestampToSDKTimestamp,
336
+ paths: [
337
+ { path: 'infoSection.createdDate' },
338
+ { path: 'infoSection.updatedDate' },
339
+ { path: 'infoSection.description.metadata.createdTimestamp' },
340
+ { path: 'infoSection.description.metadata.updatedTimestamp' },
341
+ ],
342
+ },
343
+ {
344
+ transformFn: transformRESTFloatToSDKFloat,
345
+ paths: [
346
+ {
347
+ path: 'infoSection.description.nodes.galleryData.items.image.media.duration',
348
+ },
349
+ {
350
+ path: 'infoSection.description.nodes.galleryData.items.video.media.duration',
351
+ },
352
+ {
353
+ path: 'infoSection.description.nodes.galleryData.items.video.thumbnail.duration',
354
+ },
355
+ {
356
+ path: 'infoSection.description.nodes.galleryData.options.item.ratio',
357
+ },
358
+ {
359
+ path: 'infoSection.description.nodes.imageData.image.duration',
360
+ },
361
+ { path: 'infoSection.description.nodes.mapData.mapSettings.lat' },
362
+ { path: 'infoSection.description.nodes.mapData.mapSettings.lng' },
363
+ {
364
+ path: 'infoSection.description.nodes.pollData.poll.image.duration',
365
+ },
366
+ {
367
+ path: 'infoSection.description.nodes.pollData.poll.options.image.duration',
368
+ },
369
+ {
370
+ path: 'infoSection.description.nodes.pollData.design.poll.background.image.duration',
371
+ },
372
+ {
373
+ path: 'infoSection.description.nodes.appEmbedData.image.duration',
374
+ },
375
+ {
376
+ path: 'infoSection.description.nodes.videoData.video.duration',
377
+ },
378
+ {
379
+ path: 'infoSection.description.nodes.videoData.thumbnail.duration',
380
+ },
381
+ {
382
+ path: 'infoSection.description.nodes.audioData.audio.duration',
383
+ },
384
+ {
385
+ path: 'infoSection.description.nodes.audioData.coverImage.duration',
386
+ },
387
+ ],
388
+ },
389
+ ]),
390
+ };
391
+ return metadata;
392
+ }
393
+ return __getOrCreateInfoSection;
394
+ }
395
+ /**
396
+ * Retrieves multiple info sections by ID or `uniqueName`, or creates multiple info sections if those with the passed `uniqueName` don't exist.
397
+ *
398
+ * > **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.
399
+ */
400
+ export function bulkGetOrCreateInfoSections(payload) {
401
+ function __bulkGetOrCreateInfoSections({ host }) {
402
+ const serializedData = transformPaths(payload, [
403
+ {
404
+ transformFn: transformSDKFloatToRESTFloat,
405
+ paths: [
406
+ {
407
+ path: 'infoSections.description.nodes.galleryData.items.image.media.duration',
408
+ },
409
+ {
410
+ path: 'infoSections.description.nodes.galleryData.items.video.media.duration',
411
+ },
412
+ {
413
+ path: 'infoSections.description.nodes.galleryData.items.video.thumbnail.duration',
414
+ },
415
+ {
416
+ path: 'infoSections.description.nodes.galleryData.options.item.ratio',
417
+ },
418
+ { path: 'infoSections.description.nodes.imageData.image.duration' },
419
+ { path: 'infoSections.description.nodes.mapData.mapSettings.lat' },
420
+ { path: 'infoSections.description.nodes.mapData.mapSettings.lng' },
421
+ {
422
+ path: 'infoSections.description.nodes.pollData.poll.image.duration',
423
+ },
424
+ {
425
+ path: 'infoSections.description.nodes.pollData.poll.options.image.duration',
426
+ },
427
+ {
428
+ path: 'infoSections.description.nodes.pollData.design.poll.background.image.duration',
429
+ },
430
+ {
431
+ path: 'infoSections.description.nodes.appEmbedData.image.duration',
432
+ },
433
+ { path: 'infoSections.description.nodes.videoData.video.duration' },
434
+ {
435
+ path: 'infoSections.description.nodes.videoData.thumbnail.duration',
436
+ },
437
+ { path: 'infoSections.description.nodes.audioData.audio.duration' },
438
+ {
439
+ path: 'infoSections.description.nodes.audioData.coverImage.duration',
440
+ },
441
+ ],
442
+ },
443
+ {
444
+ transformFn: transformSDKTimestampToRESTTimestamp,
445
+ paths: [
446
+ { path: 'infoSections.description.metadata.createdTimestamp' },
447
+ { path: 'infoSections.description.metadata.updatedTimestamp' },
448
+ ],
449
+ },
450
+ ]);
451
+ const metadata = {
452
+ entityFqdn: 'wix.stores.catalog.v3.info_section',
453
+ method: 'POST',
454
+ methodFqn: 'com.wix.stores.catalog.info.section.v3.InfoSectionsService.BulkGetOrCreateInfoSections',
455
+ packageName: PACKAGE_NAME,
456
+ url: resolveComWixStoresCatalogInfoSectionV3InfoSectionsServiceUrl({
457
+ protoPath: '/v3/bulk/info-sections/get-or-create',
458
+ data: serializedData,
459
+ host,
460
+ }),
461
+ data: serializedData,
462
+ transformResponse: (payload) => transformPaths(payload, [
463
+ {
464
+ transformFn: transformRESTTimestampToSDKTimestamp,
465
+ paths: [
466
+ { path: 'results.item.createdDate' },
467
+ { path: 'results.item.updatedDate' },
468
+ { path: 'results.item.description.metadata.createdTimestamp' },
469
+ { path: 'results.item.description.metadata.updatedTimestamp' },
470
+ ],
471
+ },
472
+ {
473
+ transformFn: transformRESTFloatToSDKFloat,
474
+ paths: [
475
+ {
476
+ path: 'results.item.description.nodes.galleryData.items.image.media.duration',
477
+ },
478
+ {
479
+ path: 'results.item.description.nodes.galleryData.items.video.media.duration',
480
+ },
481
+ {
482
+ path: 'results.item.description.nodes.galleryData.items.video.thumbnail.duration',
483
+ },
484
+ {
485
+ path: 'results.item.description.nodes.galleryData.options.item.ratio',
486
+ },
487
+ {
488
+ path: 'results.item.description.nodes.imageData.image.duration',
489
+ },
490
+ {
491
+ path: 'results.item.description.nodes.mapData.mapSettings.lat',
492
+ },
493
+ {
494
+ path: 'results.item.description.nodes.mapData.mapSettings.lng',
495
+ },
496
+ {
497
+ path: 'results.item.description.nodes.pollData.poll.image.duration',
498
+ },
499
+ {
500
+ path: 'results.item.description.nodes.pollData.poll.options.image.duration',
501
+ },
502
+ {
503
+ path: 'results.item.description.nodes.pollData.design.poll.background.image.duration',
504
+ },
505
+ {
506
+ path: 'results.item.description.nodes.appEmbedData.image.duration',
507
+ },
508
+ {
509
+ path: 'results.item.description.nodes.videoData.video.duration',
510
+ },
511
+ {
512
+ path: 'results.item.description.nodes.videoData.thumbnail.duration',
513
+ },
514
+ {
515
+ path: 'results.item.description.nodes.audioData.audio.duration',
516
+ },
517
+ {
518
+ path: 'results.item.description.nodes.audioData.coverImage.duration',
519
+ },
520
+ ],
521
+ },
522
+ ]),
523
+ };
524
+ return metadata;
525
+ }
526
+ return __bulkGetOrCreateInfoSections;
527
+ }
528
+ /**
529
+ * Updates an info section.
530
+ *
531
+ *
532
+ * Each time the info section is updated, `revision` increments by 1.
533
+ * The current `revision` must be passed when updating the info section.
534
+ * This ensures you're working with the latest info section and prevents unintended overwrites.
535
+ */
536
+ export function updateInfoSection(payload) {
537
+ function __updateInfoSection({ host }) {
538
+ const serializedData = transformPaths(payload, [
539
+ {
540
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
541
+ paths: [{ path: 'fieldMask' }],
542
+ },
543
+ {
544
+ transformFn: transformSDKTimestampToRESTTimestamp,
545
+ paths: [
546
+ { path: 'infoSection.createdDate' },
547
+ { path: 'infoSection.updatedDate' },
548
+ { path: 'infoSection.description.metadata.createdTimestamp' },
549
+ { path: 'infoSection.description.metadata.updatedTimestamp' },
550
+ ],
551
+ },
552
+ {
553
+ transformFn: transformSDKFloatToRESTFloat,
554
+ paths: [
555
+ {
556
+ path: 'infoSection.description.nodes.galleryData.items.image.media.duration',
557
+ },
558
+ {
559
+ path: 'infoSection.description.nodes.galleryData.items.video.media.duration',
560
+ },
561
+ {
562
+ path: 'infoSection.description.nodes.galleryData.items.video.thumbnail.duration',
563
+ },
564
+ {
565
+ path: 'infoSection.description.nodes.galleryData.options.item.ratio',
566
+ },
567
+ { path: 'infoSection.description.nodes.imageData.image.duration' },
568
+ { path: 'infoSection.description.nodes.mapData.mapSettings.lat' },
569
+ { path: 'infoSection.description.nodes.mapData.mapSettings.lng' },
570
+ {
571
+ path: 'infoSection.description.nodes.pollData.poll.image.duration',
572
+ },
573
+ {
574
+ path: 'infoSection.description.nodes.pollData.poll.options.image.duration',
575
+ },
576
+ {
577
+ path: 'infoSection.description.nodes.pollData.design.poll.background.image.duration',
578
+ },
579
+ { path: 'infoSection.description.nodes.appEmbedData.image.duration' },
580
+ { path: 'infoSection.description.nodes.videoData.video.duration' },
581
+ {
582
+ path: 'infoSection.description.nodes.videoData.thumbnail.duration',
583
+ },
584
+ { path: 'infoSection.description.nodes.audioData.audio.duration' },
585
+ {
586
+ path: 'infoSection.description.nodes.audioData.coverImage.duration',
587
+ },
588
+ ],
589
+ },
590
+ ]);
591
+ const metadata = {
592
+ entityFqdn: 'wix.stores.catalog.v3.info_section',
593
+ method: 'PATCH',
594
+ methodFqn: 'com.wix.stores.catalog.info.section.v3.InfoSectionsService.UpdateInfoSection',
595
+ packageName: PACKAGE_NAME,
596
+ url: resolveComWixStoresCatalogInfoSectionV3InfoSectionsServiceUrl({
597
+ protoPath: '/v3/info-sections/{infoSection.id}',
598
+ data: serializedData,
599
+ host,
600
+ }),
601
+ data: serializedData,
602
+ transformResponse: (payload) => transformPaths(payload, [
603
+ {
604
+ transformFn: transformRESTTimestampToSDKTimestamp,
605
+ paths: [
606
+ { path: 'infoSection.createdDate' },
607
+ { path: 'infoSection.updatedDate' },
608
+ { path: 'infoSection.description.metadata.createdTimestamp' },
609
+ { path: 'infoSection.description.metadata.updatedTimestamp' },
610
+ ],
611
+ },
612
+ {
613
+ transformFn: transformRESTFloatToSDKFloat,
614
+ paths: [
615
+ {
616
+ path: 'infoSection.description.nodes.galleryData.items.image.media.duration',
617
+ },
618
+ {
619
+ path: 'infoSection.description.nodes.galleryData.items.video.media.duration',
620
+ },
621
+ {
622
+ path: 'infoSection.description.nodes.galleryData.items.video.thumbnail.duration',
623
+ },
624
+ {
625
+ path: 'infoSection.description.nodes.galleryData.options.item.ratio',
626
+ },
627
+ {
628
+ path: 'infoSection.description.nodes.imageData.image.duration',
629
+ },
630
+ { path: 'infoSection.description.nodes.mapData.mapSettings.lat' },
631
+ { path: 'infoSection.description.nodes.mapData.mapSettings.lng' },
632
+ {
633
+ path: 'infoSection.description.nodes.pollData.poll.image.duration',
634
+ },
635
+ {
636
+ path: 'infoSection.description.nodes.pollData.poll.options.image.duration',
637
+ },
638
+ {
639
+ path: 'infoSection.description.nodes.pollData.design.poll.background.image.duration',
640
+ },
641
+ {
642
+ path: 'infoSection.description.nodes.appEmbedData.image.duration',
643
+ },
644
+ {
645
+ path: 'infoSection.description.nodes.videoData.video.duration',
646
+ },
647
+ {
648
+ path: 'infoSection.description.nodes.videoData.thumbnail.duration',
649
+ },
650
+ {
651
+ path: 'infoSection.description.nodes.audioData.audio.duration',
652
+ },
653
+ {
654
+ path: 'infoSection.description.nodes.audioData.coverImage.duration',
655
+ },
656
+ ],
657
+ },
658
+ ]),
659
+ };
660
+ return metadata;
661
+ }
662
+ return __updateInfoSection;
663
+ }
664
+ /**
665
+ * Deletes an info section.
666
+ *
667
+ * > **Note:** Deleting an info section will also remove it from all products it is assigned to.
668
+ */
669
+ export function deleteInfoSection(payload) {
670
+ function __deleteInfoSection({ host }) {
671
+ const metadata = {
672
+ entityFqdn: 'wix.stores.catalog.v3.info_section',
673
+ method: 'DELETE',
674
+ methodFqn: 'com.wix.stores.catalog.info.section.v3.InfoSectionsService.DeleteInfoSection',
675
+ packageName: PACKAGE_NAME,
676
+ url: resolveComWixStoresCatalogInfoSectionV3InfoSectionsServiceUrl({
677
+ protoPath: '/v3/info-sections/{infoSectionId}',
678
+ data: payload,
679
+ host,
680
+ }),
681
+ params: toURLSearchParams(payload),
682
+ };
683
+ return metadata;
684
+ }
685
+ return __deleteInfoSection;
686
+ }
687
+ /**
688
+ * Retrieves a list of up to 100 info sections, given the provided filtering, sorting, and cursor paging.
689
+ * Pass supported values to the `fields` array in the request to include those fields in the response.
690
+ *
691
+ *
692
+ * Query Info Sections runs with these defaults, which you can override:
693
+ *
694
+ * - `createdDate` is sorted in `DESC` order
695
+ * - `cursorPaging.limit` is `100`
696
+ *
697
+ * For field support for filters and sorting,
698
+ * 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).
699
+ *
700
+ * To learn about working with _Query_ endpoints, see
701
+ * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language),
702
+ * and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
703
+ */
704
+ export function queryInfoSections(payload) {
705
+ function __queryInfoSections({ host }) {
706
+ const metadata = {
707
+ entityFqdn: 'wix.stores.catalog.v3.info_section',
708
+ method: 'POST',
709
+ methodFqn: 'com.wix.stores.catalog.info.section.v3.InfoSectionsService.QueryInfoSections',
710
+ packageName: PACKAGE_NAME,
711
+ url: resolveComWixStoresCatalogInfoSectionV3InfoSectionsServiceUrl({
712
+ protoPath: '/v3/info-sections/query',
713
+ data: payload,
714
+ host,
715
+ }),
716
+ data: payload,
717
+ transformResponse: (payload) => transformPaths(payload, [
718
+ {
719
+ transformFn: transformRESTTimestampToSDKTimestamp,
720
+ paths: [
721
+ { path: 'infoSections.createdDate' },
722
+ { path: 'infoSections.updatedDate' },
723
+ { path: 'infoSections.description.metadata.createdTimestamp' },
724
+ { path: 'infoSections.description.metadata.updatedTimestamp' },
725
+ ],
726
+ },
727
+ {
728
+ transformFn: transformRESTFloatToSDKFloat,
729
+ paths: [
730
+ {
731
+ path: 'infoSections.description.nodes.galleryData.items.image.media.duration',
732
+ },
733
+ {
734
+ path: 'infoSections.description.nodes.galleryData.items.video.media.duration',
735
+ },
736
+ {
737
+ path: 'infoSections.description.nodes.galleryData.items.video.thumbnail.duration',
738
+ },
739
+ {
740
+ path: 'infoSections.description.nodes.galleryData.options.item.ratio',
741
+ },
742
+ {
743
+ path: 'infoSections.description.nodes.imageData.image.duration',
744
+ },
745
+ {
746
+ path: 'infoSections.description.nodes.mapData.mapSettings.lat',
747
+ },
748
+ {
749
+ path: 'infoSections.description.nodes.mapData.mapSettings.lng',
750
+ },
751
+ {
752
+ path: 'infoSections.description.nodes.pollData.poll.image.duration',
753
+ },
754
+ {
755
+ path: 'infoSections.description.nodes.pollData.poll.options.image.duration',
756
+ },
757
+ {
758
+ path: 'infoSections.description.nodes.pollData.design.poll.background.image.duration',
759
+ },
760
+ {
761
+ path: 'infoSections.description.nodes.appEmbedData.image.duration',
762
+ },
763
+ {
764
+ path: 'infoSections.description.nodes.videoData.video.duration',
765
+ },
766
+ {
767
+ path: 'infoSections.description.nodes.videoData.thumbnail.duration',
768
+ },
769
+ {
770
+ path: 'infoSections.description.nodes.audioData.audio.duration',
771
+ },
772
+ {
773
+ path: 'infoSections.description.nodes.audioData.coverImage.duration',
774
+ },
775
+ ],
776
+ },
777
+ ]),
778
+ };
779
+ return metadata;
780
+ }
781
+ return __queryInfoSections;
782
+ }
783
+ /** Creates multiple info sections. */
784
+ export function bulkCreateInfoSections(payload) {
785
+ function __bulkCreateInfoSections({ host }) {
786
+ const serializedData = transformPaths(payload, [
787
+ {
788
+ transformFn: transformSDKTimestampToRESTTimestamp,
789
+ paths: [
790
+ { path: 'infoSections.createdDate' },
791
+ { path: 'infoSections.updatedDate' },
792
+ { path: 'infoSections.description.metadata.createdTimestamp' },
793
+ { path: 'infoSections.description.metadata.updatedTimestamp' },
794
+ ],
795
+ },
796
+ {
797
+ transformFn: transformSDKFloatToRESTFloat,
798
+ paths: [
799
+ {
800
+ path: 'infoSections.description.nodes.galleryData.items.image.media.duration',
801
+ },
802
+ {
803
+ path: 'infoSections.description.nodes.galleryData.items.video.media.duration',
804
+ },
805
+ {
806
+ path: 'infoSections.description.nodes.galleryData.items.video.thumbnail.duration',
807
+ },
808
+ {
809
+ path: 'infoSections.description.nodes.galleryData.options.item.ratio',
810
+ },
811
+ { path: 'infoSections.description.nodes.imageData.image.duration' },
812
+ { path: 'infoSections.description.nodes.mapData.mapSettings.lat' },
813
+ { path: 'infoSections.description.nodes.mapData.mapSettings.lng' },
814
+ {
815
+ path: 'infoSections.description.nodes.pollData.poll.image.duration',
816
+ },
817
+ {
818
+ path: 'infoSections.description.nodes.pollData.poll.options.image.duration',
819
+ },
820
+ {
821
+ path: 'infoSections.description.nodes.pollData.design.poll.background.image.duration',
822
+ },
823
+ {
824
+ path: 'infoSections.description.nodes.appEmbedData.image.duration',
825
+ },
826
+ { path: 'infoSections.description.nodes.videoData.video.duration' },
827
+ {
828
+ path: 'infoSections.description.nodes.videoData.thumbnail.duration',
829
+ },
830
+ { path: 'infoSections.description.nodes.audioData.audio.duration' },
831
+ {
832
+ path: 'infoSections.description.nodes.audioData.coverImage.duration',
833
+ },
834
+ ],
835
+ },
836
+ ]);
837
+ const metadata = {
838
+ entityFqdn: 'wix.stores.catalog.v3.info_section',
839
+ method: 'POST',
840
+ methodFqn: 'com.wix.stores.catalog.info.section.v3.InfoSectionsService.BulkCreateInfoSections',
841
+ packageName: PACKAGE_NAME,
842
+ url: resolveComWixStoresCatalogInfoSectionV3InfoSectionsServiceUrl({
843
+ protoPath: '/v3/bulk/info-sections/create',
844
+ data: serializedData,
845
+ host,
846
+ }),
847
+ data: serializedData,
848
+ transformResponse: (payload) => transformPaths(payload, [
849
+ {
850
+ transformFn: transformRESTTimestampToSDKTimestamp,
851
+ paths: [
852
+ { path: 'results.item.createdDate' },
853
+ { path: 'results.item.updatedDate' },
854
+ { path: 'results.item.description.metadata.createdTimestamp' },
855
+ { path: 'results.item.description.metadata.updatedTimestamp' },
856
+ ],
857
+ },
858
+ {
859
+ transformFn: transformRESTFloatToSDKFloat,
860
+ paths: [
861
+ {
862
+ path: 'results.item.description.nodes.galleryData.items.image.media.duration',
863
+ },
864
+ {
865
+ path: 'results.item.description.nodes.galleryData.items.video.media.duration',
866
+ },
867
+ {
868
+ path: 'results.item.description.nodes.galleryData.items.video.thumbnail.duration',
869
+ },
870
+ {
871
+ path: 'results.item.description.nodes.galleryData.options.item.ratio',
872
+ },
873
+ {
874
+ path: 'results.item.description.nodes.imageData.image.duration',
875
+ },
876
+ {
877
+ path: 'results.item.description.nodes.mapData.mapSettings.lat',
878
+ },
879
+ {
880
+ path: 'results.item.description.nodes.mapData.mapSettings.lng',
881
+ },
882
+ {
883
+ path: 'results.item.description.nodes.pollData.poll.image.duration',
884
+ },
885
+ {
886
+ path: 'results.item.description.nodes.pollData.poll.options.image.duration',
887
+ },
888
+ {
889
+ path: 'results.item.description.nodes.pollData.design.poll.background.image.duration',
890
+ },
891
+ {
892
+ path: 'results.item.description.nodes.appEmbedData.image.duration',
893
+ },
894
+ {
895
+ path: 'results.item.description.nodes.videoData.video.duration',
896
+ },
897
+ {
898
+ path: 'results.item.description.nodes.videoData.thumbnail.duration',
899
+ },
900
+ {
901
+ path: 'results.item.description.nodes.audioData.audio.duration',
902
+ },
903
+ {
904
+ path: 'results.item.description.nodes.audioData.coverImage.duration',
905
+ },
906
+ ],
907
+ },
908
+ ]),
909
+ };
910
+ return metadata;
911
+ }
912
+ return __bulkCreateInfoSections;
913
+ }
914
+ /**
915
+ * Updates multiple info sections.
916
+ *
917
+ * Each time an info section is updated, `revision` increments by 1.
918
+ * The current `revision` must be passed when updating an info section.
919
+ * This ensures you're working with the latest info section and prevents unintended overwrites.
920
+ */
921
+ export function bulkUpdateInfoSections(payload) {
922
+ function __bulkUpdateInfoSections({ host }) {
923
+ const serializedData = transformPaths(payload, [
924
+ {
925
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
926
+ paths: [{ path: 'infoSections.fieldMask' }],
927
+ },
928
+ {
929
+ transformFn: transformSDKTimestampToRESTTimestamp,
930
+ paths: [
931
+ { path: 'infoSections.infoSection.createdDate' },
932
+ { path: 'infoSections.infoSection.updatedDate' },
933
+ {
934
+ path: 'infoSections.infoSection.description.metadata.createdTimestamp',
935
+ },
936
+ {
937
+ path: 'infoSections.infoSection.description.metadata.updatedTimestamp',
938
+ },
939
+ ],
940
+ },
941
+ {
942
+ transformFn: transformSDKFloatToRESTFloat,
943
+ paths: [
944
+ {
945
+ path: 'infoSections.infoSection.description.nodes.galleryData.items.image.media.duration',
946
+ },
947
+ {
948
+ path: 'infoSections.infoSection.description.nodes.galleryData.items.video.media.duration',
949
+ },
950
+ {
951
+ path: 'infoSections.infoSection.description.nodes.galleryData.items.video.thumbnail.duration',
952
+ },
953
+ {
954
+ path: 'infoSections.infoSection.description.nodes.galleryData.options.item.ratio',
955
+ },
956
+ {
957
+ path: 'infoSections.infoSection.description.nodes.imageData.image.duration',
958
+ },
959
+ {
960
+ path: 'infoSections.infoSection.description.nodes.mapData.mapSettings.lat',
961
+ },
962
+ {
963
+ path: 'infoSections.infoSection.description.nodes.mapData.mapSettings.lng',
964
+ },
965
+ {
966
+ path: 'infoSections.infoSection.description.nodes.pollData.poll.image.duration',
967
+ },
968
+ {
969
+ path: 'infoSections.infoSection.description.nodes.pollData.poll.options.image.duration',
970
+ },
971
+ {
972
+ path: 'infoSections.infoSection.description.nodes.pollData.design.poll.background.image.duration',
973
+ },
974
+ {
975
+ path: 'infoSections.infoSection.description.nodes.appEmbedData.image.duration',
976
+ },
977
+ {
978
+ path: 'infoSections.infoSection.description.nodes.videoData.video.duration',
979
+ },
980
+ {
981
+ path: 'infoSections.infoSection.description.nodes.videoData.thumbnail.duration',
982
+ },
983
+ {
984
+ path: 'infoSections.infoSection.description.nodes.audioData.audio.duration',
985
+ },
986
+ {
987
+ path: 'infoSections.infoSection.description.nodes.audioData.coverImage.duration',
988
+ },
989
+ ],
990
+ },
991
+ ]);
992
+ const metadata = {
993
+ entityFqdn: 'wix.stores.catalog.v3.info_section',
994
+ method: 'POST',
995
+ methodFqn: 'com.wix.stores.catalog.info.section.v3.InfoSectionsService.BulkUpdateInfoSections',
996
+ packageName: PACKAGE_NAME,
997
+ url: resolveComWixStoresCatalogInfoSectionV3InfoSectionsServiceUrl({
998
+ protoPath: '/v3/bulk/info-sections/update',
999
+ data: serializedData,
1000
+ host,
1001
+ }),
1002
+ data: serializedData,
1003
+ transformResponse: (payload) => transformPaths(payload, [
1004
+ {
1005
+ transformFn: transformRESTTimestampToSDKTimestamp,
1006
+ paths: [
1007
+ { path: 'results.item.createdDate' },
1008
+ { path: 'results.item.updatedDate' },
1009
+ { path: 'results.item.description.metadata.createdTimestamp' },
1010
+ { path: 'results.item.description.metadata.updatedTimestamp' },
1011
+ ],
1012
+ },
1013
+ {
1014
+ transformFn: transformRESTFloatToSDKFloat,
1015
+ paths: [
1016
+ {
1017
+ path: 'results.item.description.nodes.galleryData.items.image.media.duration',
1018
+ },
1019
+ {
1020
+ path: 'results.item.description.nodes.galleryData.items.video.media.duration',
1021
+ },
1022
+ {
1023
+ path: 'results.item.description.nodes.galleryData.items.video.thumbnail.duration',
1024
+ },
1025
+ {
1026
+ path: 'results.item.description.nodes.galleryData.options.item.ratio',
1027
+ },
1028
+ {
1029
+ path: 'results.item.description.nodes.imageData.image.duration',
1030
+ },
1031
+ {
1032
+ path: 'results.item.description.nodes.mapData.mapSettings.lat',
1033
+ },
1034
+ {
1035
+ path: 'results.item.description.nodes.mapData.mapSettings.lng',
1036
+ },
1037
+ {
1038
+ path: 'results.item.description.nodes.pollData.poll.image.duration',
1039
+ },
1040
+ {
1041
+ path: 'results.item.description.nodes.pollData.poll.options.image.duration',
1042
+ },
1043
+ {
1044
+ path: 'results.item.description.nodes.pollData.design.poll.background.image.duration',
1045
+ },
1046
+ {
1047
+ path: 'results.item.description.nodes.appEmbedData.image.duration',
1048
+ },
1049
+ {
1050
+ path: 'results.item.description.nodes.videoData.video.duration',
1051
+ },
1052
+ {
1053
+ path: 'results.item.description.nodes.videoData.thumbnail.duration',
1054
+ },
1055
+ {
1056
+ path: 'results.item.description.nodes.audioData.audio.duration',
1057
+ },
1058
+ {
1059
+ path: 'results.item.description.nodes.audioData.coverImage.duration',
1060
+ },
1061
+ ],
1062
+ },
1063
+ ]),
1064
+ };
1065
+ return metadata;
1066
+ }
1067
+ return __bulkUpdateInfoSections;
1068
+ }
1069
+ /** Deletes multiple info sections. */
1070
+ export function bulkDeleteInfoSections(payload) {
1071
+ function __bulkDeleteInfoSections({ host }) {
1072
+ const metadata = {
1073
+ entityFqdn: 'wix.stores.catalog.v3.info_section',
1074
+ method: 'POST',
1075
+ methodFqn: 'com.wix.stores.catalog.info.section.v3.InfoSectionsService.BulkDeleteInfoSections',
1076
+ packageName: PACKAGE_NAME,
1077
+ url: resolveComWixStoresCatalogInfoSectionV3InfoSectionsServiceUrl({
1078
+ protoPath: '/v3/bulk/info-sections/delete',
1079
+ data: payload,
1080
+ host,
1081
+ }),
1082
+ data: payload,
1083
+ };
1084
+ return metadata;
1085
+ }
1086
+ return __bulkDeleteInfoSections;
1087
+ }
1088
+ //# sourceMappingURL=stores-catalog-v3-info-section-info-sections-v-3.http.js.map