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