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