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