@wix/auto_sdk_online-programs_programs 1.0.38 → 1.0.39

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.
package/build/es/meta.mjs CHANGED
@@ -7,6 +7,126 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
7
7
  import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
8
8
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
9
9
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
10
+ var TRANSFORM_PATHS_0 = [
11
+ { path: "program.createdDate" },
12
+ { path: "program.updatedDate" },
13
+ { path: "program.statusUpdatedDate" },
14
+ { path: "program.description.image.urlExpirationDate" },
15
+ { path: "program.description.video.urlExpirationDate" },
16
+ { path: "program.description.video.resolutions.urlExpirationDate" },
17
+ { path: "program.description.video.resolutions.poster.urlExpirationDate" },
18
+ { path: "program.description.video.posters.urlExpirationDate" },
19
+ { path: "program.rewards.certificate.connectedDate" }
20
+ ];
21
+ var TRANSFORM_PATHS_1 = [
22
+ { path: "program.description.image.focalPoint.x" },
23
+ { path: "program.description.image.focalPoint.y" },
24
+ { path: "program.description.video.resolutions.poster.focalPoint.x" },
25
+ { path: "program.description.video.resolutions.poster.focalPoint.y" },
26
+ { path: "program.description.video.posters.focalPoint.x" },
27
+ { path: "program.description.video.posters.focalPoint.y" },
28
+ { path: "program.videoStepsSettings.requiredCompletionPercentage" }
29
+ ];
30
+ var TRANSFORM_PATHS_2 = [{ path: "fieldMask" }];
31
+ var TRANSFORM_PATHS_3 = [
32
+ { path: "programs.createdDate" },
33
+ { path: "programs.updatedDate" },
34
+ { path: "programs.statusUpdatedDate" },
35
+ { path: "programs.description.image.urlExpirationDate" },
36
+ { path: "programs.description.video.urlExpirationDate" },
37
+ { path: "programs.description.video.resolutions.urlExpirationDate" },
38
+ { path: "programs.description.video.resolutions.poster.urlExpirationDate" },
39
+ { path: "programs.description.video.posters.urlExpirationDate" },
40
+ { path: "programs.rewards.certificate.connectedDate" }
41
+ ];
42
+ var TRANSFORM_PATHS_4 = [
43
+ { path: "programs.description.image.focalPoint.x" },
44
+ { path: "programs.description.image.focalPoint.y" },
45
+ { path: "programs.description.video.resolutions.poster.focalPoint.x" },
46
+ { path: "programs.description.video.resolutions.poster.focalPoint.y" },
47
+ { path: "programs.description.video.posters.focalPoint.x" },
48
+ { path: "programs.description.video.posters.focalPoint.y" },
49
+ { path: "programs.videoStepsSettings.requiredCompletionPercentage" }
50
+ ];
51
+ var TRANSFORM_PATHS_5 = [
52
+ { path: "search.aggregations.range.buckets.from" },
53
+ { path: "search.aggregations.range.buckets.to" },
54
+ { path: "search.aggregations.nested.nestedAggregations.range.buckets.from" },
55
+ { path: "search.aggregations.nested.nestedAggregations.range.buckets.to" }
56
+ ];
57
+ var TRANSFORM_PATHS_6 = [
58
+ { path: "programs.description.image.focalPoint.x" },
59
+ { path: "programs.description.image.focalPoint.y" },
60
+ { path: "programs.description.video.resolutions.poster.focalPoint.x" },
61
+ { path: "programs.description.video.resolutions.poster.focalPoint.y" },
62
+ { path: "programs.description.video.posters.focalPoint.x" },
63
+ { path: "programs.description.video.posters.focalPoint.y" },
64
+ { path: "programs.videoStepsSettings.requiredCompletionPercentage" },
65
+ { path: "aggregationData.results.scalar.value" },
66
+ {
67
+ path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
68
+ },
69
+ { path: "aggregationData.results.nested.results.results.*.scalar.value" },
70
+ { path: "aggregationData.results.ranges.results.from" },
71
+ { path: "aggregationData.results.ranges.results.to" },
72
+ {
73
+ path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
74
+ },
75
+ {
76
+ path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
77
+ },
78
+ { path: "aggregationData.results.nested.results.results.*.range.from" },
79
+ { path: "aggregationData.results.nested.results.results.*.range.to" }
80
+ ];
81
+ var TRANSFORM_PATHS_7 = [{ path: "programs.fieldMask" }];
82
+ var TRANSFORM_PATHS_8 = [
83
+ { path: "programs.program.createdDate" },
84
+ { path: "programs.program.updatedDate" },
85
+ { path: "programs.program.statusUpdatedDate" },
86
+ { path: "programs.program.description.image.urlExpirationDate" },
87
+ { path: "programs.program.description.video.urlExpirationDate" },
88
+ { path: "programs.program.description.video.resolutions.urlExpirationDate" },
89
+ {
90
+ path: "programs.program.description.video.resolutions.poster.urlExpirationDate"
91
+ },
92
+ { path: "programs.program.description.video.posters.urlExpirationDate" },
93
+ { path: "programs.program.rewards.certificate.connectedDate" }
94
+ ];
95
+ var TRANSFORM_PATHS_9 = [
96
+ { path: "programs.program.description.image.focalPoint.x" },
97
+ { path: "programs.program.description.image.focalPoint.y" },
98
+ {
99
+ path: "programs.program.description.video.resolutions.poster.focalPoint.x"
100
+ },
101
+ {
102
+ path: "programs.program.description.video.resolutions.poster.focalPoint.y"
103
+ },
104
+ { path: "programs.program.description.video.posters.focalPoint.x" },
105
+ { path: "programs.program.description.video.posters.focalPoint.y" },
106
+ { path: "programs.program.videoStepsSettings.requiredCompletionPercentage" }
107
+ ];
108
+ var TRANSFORM_PATHS_10 = [
109
+ { path: "results.item.createdDate" },
110
+ { path: "results.item.updatedDate" },
111
+ { path: "results.item.statusUpdatedDate" },
112
+ { path: "results.item.description.image.urlExpirationDate" },
113
+ { path: "results.item.description.video.urlExpirationDate" },
114
+ { path: "results.item.description.video.resolutions.urlExpirationDate" },
115
+ {
116
+ path: "results.item.description.video.resolutions.poster.urlExpirationDate"
117
+ },
118
+ { path: "results.item.description.video.posters.urlExpirationDate" },
119
+ { path: "results.item.rewards.certificate.connectedDate" }
120
+ ];
121
+ var TRANSFORM_PATHS_11 = [
122
+ { path: "results.item.description.image.focalPoint.x" },
123
+ { path: "results.item.description.image.focalPoint.y" },
124
+ { path: "results.item.description.video.resolutions.poster.focalPoint.x" },
125
+ { path: "results.item.description.video.resolutions.poster.focalPoint.y" },
126
+ { path: "results.item.description.video.posters.focalPoint.x" },
127
+ { path: "results.item.description.video.posters.focalPoint.y" },
128
+ { path: "results.item.videoStepsSettings.requiredCompletionPercentage" }
129
+ ];
10
130
  function resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl(opts) {
11
131
  const domainToMappings = {
12
132
  "manage._base_domain_": [
@@ -60,31 +180,11 @@ function createProgram(payload) {
60
180
  const serializedData = transformPaths(payload, [
61
181
  {
62
182
  transformFn: transformSDKTimestampToRESTTimestamp,
63
- paths: [
64
- { path: "program.createdDate" },
65
- { path: "program.updatedDate" },
66
- { path: "program.statusUpdatedDate" },
67
- { path: "program.description.image.urlExpirationDate" },
68
- { path: "program.description.video.urlExpirationDate" },
69
- { path: "program.description.video.resolutions.urlExpirationDate" },
70
- {
71
- path: "program.description.video.resolutions.poster.urlExpirationDate"
72
- },
73
- { path: "program.description.video.posters.urlExpirationDate" },
74
- { path: "program.rewards.certificate.connectedDate" }
75
- ]
183
+ paths: TRANSFORM_PATHS_0
76
184
  },
77
185
  {
78
186
  transformFn: transformSDKFloatToRESTFloat,
79
- paths: [
80
- { path: "program.description.image.focalPoint.x" },
81
- { path: "program.description.image.focalPoint.y" },
82
- { path: "program.description.video.resolutions.poster.focalPoint.x" },
83
- { path: "program.description.video.resolutions.poster.focalPoint.y" },
84
- { path: "program.description.video.posters.focalPoint.x" },
85
- { path: "program.description.video.posters.focalPoint.y" },
86
- { path: "program.videoStepsSettings.requiredCompletionPercentage" }
87
- ]
187
+ paths: TRANSFORM_PATHS_1
88
188
  }
89
189
  ]);
90
190
  const metadata = {
@@ -104,39 +204,11 @@ function createProgram(payload) {
104
204
  transformResponse: (payload2) => transformPaths(payload2, [
105
205
  {
106
206
  transformFn: transformRESTTimestampToSDKTimestamp,
107
- paths: [
108
- { path: "program.createdDate" },
109
- { path: "program.updatedDate" },
110
- { path: "program.statusUpdatedDate" },
111
- { path: "program.description.image.urlExpirationDate" },
112
- { path: "program.description.video.urlExpirationDate" },
113
- {
114
- path: "program.description.video.resolutions.urlExpirationDate"
115
- },
116
- {
117
- path: "program.description.video.resolutions.poster.urlExpirationDate"
118
- },
119
- { path: "program.description.video.posters.urlExpirationDate" },
120
- { path: "program.rewards.certificate.connectedDate" }
121
- ]
207
+ paths: TRANSFORM_PATHS_0
122
208
  },
123
209
  {
124
210
  transformFn: transformRESTFloatToSDKFloat,
125
- paths: [
126
- { path: "program.description.image.focalPoint.x" },
127
- { path: "program.description.image.focalPoint.y" },
128
- {
129
- path: "program.description.video.resolutions.poster.focalPoint.x"
130
- },
131
- {
132
- path: "program.description.video.resolutions.poster.focalPoint.y"
133
- },
134
- { path: "program.description.video.posters.focalPoint.x" },
135
- { path: "program.description.video.posters.focalPoint.y" },
136
- {
137
- path: "program.videoStepsSettings.requiredCompletionPercentage"
138
- }
139
- ]
211
+ paths: TRANSFORM_PATHS_1
140
212
  }
141
213
  ])
142
214
  };
@@ -163,39 +235,11 @@ function duplicateProgram(payload) {
163
235
  transformResponse: (payload2) => transformPaths(payload2, [
164
236
  {
165
237
  transformFn: transformRESTTimestampToSDKTimestamp,
166
- paths: [
167
- { path: "program.createdDate" },
168
- { path: "program.updatedDate" },
169
- { path: "program.statusUpdatedDate" },
170
- { path: "program.description.image.urlExpirationDate" },
171
- { path: "program.description.video.urlExpirationDate" },
172
- {
173
- path: "program.description.video.resolutions.urlExpirationDate"
174
- },
175
- {
176
- path: "program.description.video.resolutions.poster.urlExpirationDate"
177
- },
178
- { path: "program.description.video.posters.urlExpirationDate" },
179
- { path: "program.rewards.certificate.connectedDate" }
180
- ]
238
+ paths: TRANSFORM_PATHS_0
181
239
  },
182
240
  {
183
241
  transformFn: transformRESTFloatToSDKFloat,
184
- paths: [
185
- { path: "program.description.image.focalPoint.x" },
186
- { path: "program.description.image.focalPoint.y" },
187
- {
188
- path: "program.description.video.resolutions.poster.focalPoint.x"
189
- },
190
- {
191
- path: "program.description.video.resolutions.poster.focalPoint.y"
192
- },
193
- { path: "program.description.video.posters.focalPoint.x" },
194
- { path: "program.description.video.posters.focalPoint.y" },
195
- {
196
- path: "program.videoStepsSettings.requiredCompletionPercentage"
197
- }
198
- ]
242
+ paths: TRANSFORM_PATHS_1
199
243
  }
200
244
  ])
201
245
  };
@@ -222,39 +266,11 @@ function getProgram(payload) {
222
266
  transformResponse: (payload2) => transformPaths(payload2, [
223
267
  {
224
268
  transformFn: transformRESTTimestampToSDKTimestamp,
225
- paths: [
226
- { path: "program.createdDate" },
227
- { path: "program.updatedDate" },
228
- { path: "program.statusUpdatedDate" },
229
- { path: "program.description.image.urlExpirationDate" },
230
- { path: "program.description.video.urlExpirationDate" },
231
- {
232
- path: "program.description.video.resolutions.urlExpirationDate"
233
- },
234
- {
235
- path: "program.description.video.resolutions.poster.urlExpirationDate"
236
- },
237
- { path: "program.description.video.posters.urlExpirationDate" },
238
- { path: "program.rewards.certificate.connectedDate" }
239
- ]
269
+ paths: TRANSFORM_PATHS_0
240
270
  },
241
271
  {
242
272
  transformFn: transformRESTFloatToSDKFloat,
243
- paths: [
244
- { path: "program.description.image.focalPoint.x" },
245
- { path: "program.description.image.focalPoint.y" },
246
- {
247
- path: "program.description.video.resolutions.poster.focalPoint.x"
248
- },
249
- {
250
- path: "program.description.video.resolutions.poster.focalPoint.y"
251
- },
252
- { path: "program.description.video.posters.focalPoint.x" },
253
- { path: "program.description.video.posters.focalPoint.y" },
254
- {
255
- path: "program.videoStepsSettings.requiredCompletionPercentage"
256
- }
257
- ]
273
+ paths: TRANSFORM_PATHS_1
258
274
  }
259
275
  ])
260
276
  };
@@ -267,35 +283,15 @@ function updateProgram(payload) {
267
283
  const serializedData = transformPaths(payload, [
268
284
  {
269
285
  transformFn: transformSDKFieldMaskToRESTFieldMask,
270
- paths: [{ path: "fieldMask" }]
286
+ paths: TRANSFORM_PATHS_2
271
287
  },
272
288
  {
273
289
  transformFn: transformSDKTimestampToRESTTimestamp,
274
- paths: [
275
- { path: "program.createdDate" },
276
- { path: "program.updatedDate" },
277
- { path: "program.statusUpdatedDate" },
278
- { path: "program.description.image.urlExpirationDate" },
279
- { path: "program.description.video.urlExpirationDate" },
280
- { path: "program.description.video.resolutions.urlExpirationDate" },
281
- {
282
- path: "program.description.video.resolutions.poster.urlExpirationDate"
283
- },
284
- { path: "program.description.video.posters.urlExpirationDate" },
285
- { path: "program.rewards.certificate.connectedDate" }
286
- ]
290
+ paths: TRANSFORM_PATHS_0
287
291
  },
288
292
  {
289
293
  transformFn: transformSDKFloatToRESTFloat,
290
- paths: [
291
- { path: "program.description.image.focalPoint.x" },
292
- { path: "program.description.image.focalPoint.y" },
293
- { path: "program.description.video.resolutions.poster.focalPoint.x" },
294
- { path: "program.description.video.resolutions.poster.focalPoint.y" },
295
- { path: "program.description.video.posters.focalPoint.x" },
296
- { path: "program.description.video.posters.focalPoint.y" },
297
- { path: "program.videoStepsSettings.requiredCompletionPercentage" }
298
- ]
294
+ paths: TRANSFORM_PATHS_1
299
295
  }
300
296
  ]);
301
297
  const metadata = {
@@ -315,39 +311,11 @@ function updateProgram(payload) {
315
311
  transformResponse: (payload2) => transformPaths(payload2, [
316
312
  {
317
313
  transformFn: transformRESTTimestampToSDKTimestamp,
318
- paths: [
319
- { path: "program.createdDate" },
320
- { path: "program.updatedDate" },
321
- { path: "program.statusUpdatedDate" },
322
- { path: "program.description.image.urlExpirationDate" },
323
- { path: "program.description.video.urlExpirationDate" },
324
- {
325
- path: "program.description.video.resolutions.urlExpirationDate"
326
- },
327
- {
328
- path: "program.description.video.resolutions.poster.urlExpirationDate"
329
- },
330
- { path: "program.description.video.posters.urlExpirationDate" },
331
- { path: "program.rewards.certificate.connectedDate" }
332
- ]
314
+ paths: TRANSFORM_PATHS_0
333
315
  },
334
316
  {
335
317
  transformFn: transformRESTFloatToSDKFloat,
336
- paths: [
337
- { path: "program.description.image.focalPoint.x" },
338
- { path: "program.description.image.focalPoint.y" },
339
- {
340
- path: "program.description.video.resolutions.poster.focalPoint.x"
341
- },
342
- {
343
- path: "program.description.video.resolutions.poster.focalPoint.y"
344
- },
345
- { path: "program.description.video.posters.focalPoint.x" },
346
- { path: "program.description.video.posters.focalPoint.y" },
347
- {
348
- path: "program.videoStepsSettings.requiredCompletionPercentage"
349
- }
350
- ]
318
+ paths: TRANSFORM_PATHS_1
351
319
  }
352
320
  ])
353
321
  };
@@ -395,39 +363,11 @@ function queryPrograms(payload) {
395
363
  transformResponse: (payload2) => transformPaths(payload2, [
396
364
  {
397
365
  transformFn: transformRESTTimestampToSDKTimestamp,
398
- paths: [
399
- { path: "programs.createdDate" },
400
- { path: "programs.updatedDate" },
401
- { path: "programs.statusUpdatedDate" },
402
- { path: "programs.description.image.urlExpirationDate" },
403
- { path: "programs.description.video.urlExpirationDate" },
404
- {
405
- path: "programs.description.video.resolutions.urlExpirationDate"
406
- },
407
- {
408
- path: "programs.description.video.resolutions.poster.urlExpirationDate"
409
- },
410
- { path: "programs.description.video.posters.urlExpirationDate" },
411
- { path: "programs.rewards.certificate.connectedDate" }
412
- ]
366
+ paths: TRANSFORM_PATHS_3
413
367
  },
414
368
  {
415
369
  transformFn: transformRESTFloatToSDKFloat,
416
- paths: [
417
- { path: "programs.description.image.focalPoint.x" },
418
- { path: "programs.description.image.focalPoint.y" },
419
- {
420
- path: "programs.description.video.resolutions.poster.focalPoint.x"
421
- },
422
- {
423
- path: "programs.description.video.resolutions.poster.focalPoint.y"
424
- },
425
- { path: "programs.description.video.posters.focalPoint.x" },
426
- { path: "programs.description.video.posters.focalPoint.y" },
427
- {
428
- path: "programs.videoStepsSettings.requiredCompletionPercentage"
429
- }
430
- ]
370
+ paths: TRANSFORM_PATHS_4
431
371
  }
432
372
  ])
433
373
  };
@@ -440,16 +380,7 @@ function searchPrograms(payload) {
440
380
  const serializedData = transformPaths(payload, [
441
381
  {
442
382
  transformFn: transformSDKFloatToRESTFloat,
443
- paths: [
444
- { path: "search.aggregations.range.buckets.from" },
445
- { path: "search.aggregations.range.buckets.to" },
446
- {
447
- path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
448
- },
449
- {
450
- path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
451
- }
452
- ]
383
+ paths: TRANSFORM_PATHS_5
453
384
  }
454
385
  ]);
455
386
  const metadata = {
@@ -469,60 +400,11 @@ function searchPrograms(payload) {
469
400
  transformResponse: (payload2) => transformPaths(payload2, [
470
401
  {
471
402
  transformFn: transformRESTTimestampToSDKTimestamp,
472
- paths: [
473
- { path: "programs.createdDate" },
474
- { path: "programs.updatedDate" },
475
- { path: "programs.statusUpdatedDate" },
476
- { path: "programs.description.image.urlExpirationDate" },
477
- { path: "programs.description.video.urlExpirationDate" },
478
- {
479
- path: "programs.description.video.resolutions.urlExpirationDate"
480
- },
481
- {
482
- path: "programs.description.video.resolutions.poster.urlExpirationDate"
483
- },
484
- { path: "programs.description.video.posters.urlExpirationDate" },
485
- { path: "programs.rewards.certificate.connectedDate" }
486
- ]
403
+ paths: TRANSFORM_PATHS_3
487
404
  },
488
405
  {
489
406
  transformFn: transformRESTFloatToSDKFloat,
490
- paths: [
491
- { path: "programs.description.image.focalPoint.x" },
492
- { path: "programs.description.image.focalPoint.y" },
493
- {
494
- path: "programs.description.video.resolutions.poster.focalPoint.x"
495
- },
496
- {
497
- path: "programs.description.video.resolutions.poster.focalPoint.y"
498
- },
499
- { path: "programs.description.video.posters.focalPoint.x" },
500
- { path: "programs.description.video.posters.focalPoint.y" },
501
- {
502
- path: "programs.videoStepsSettings.requiredCompletionPercentage"
503
- },
504
- { path: "aggregationData.results.scalar.value" },
505
- {
506
- path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
507
- },
508
- {
509
- path: "aggregationData.results.nested.results.results.*.scalar.value"
510
- },
511
- { path: "aggregationData.results.ranges.results.from" },
512
- { path: "aggregationData.results.ranges.results.to" },
513
- {
514
- path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
515
- },
516
- {
517
- path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
518
- },
519
- {
520
- path: "aggregationData.results.nested.results.results.*.range.from"
521
- },
522
- {
523
- path: "aggregationData.results.nested.results.results.*.range.to"
524
- }
525
- ]
407
+ paths: TRANSFORM_PATHS_6
526
408
  }
527
409
  ])
528
410
  };
@@ -549,39 +431,11 @@ function publishProgram(payload) {
549
431
  transformResponse: (payload2) => transformPaths(payload2, [
550
432
  {
551
433
  transformFn: transformRESTTimestampToSDKTimestamp,
552
- paths: [
553
- { path: "program.createdDate" },
554
- { path: "program.updatedDate" },
555
- { path: "program.statusUpdatedDate" },
556
- { path: "program.description.image.urlExpirationDate" },
557
- { path: "program.description.video.urlExpirationDate" },
558
- {
559
- path: "program.description.video.resolutions.urlExpirationDate"
560
- },
561
- {
562
- path: "program.description.video.resolutions.poster.urlExpirationDate"
563
- },
564
- { path: "program.description.video.posters.urlExpirationDate" },
565
- { path: "program.rewards.certificate.connectedDate" }
566
- ]
434
+ paths: TRANSFORM_PATHS_0
567
435
  },
568
436
  {
569
437
  transformFn: transformRESTFloatToSDKFloat,
570
- paths: [
571
- { path: "program.description.image.focalPoint.x" },
572
- { path: "program.description.image.focalPoint.y" },
573
- {
574
- path: "program.description.video.resolutions.poster.focalPoint.x"
575
- },
576
- {
577
- path: "program.description.video.resolutions.poster.focalPoint.y"
578
- },
579
- { path: "program.description.video.posters.focalPoint.x" },
580
- { path: "program.description.video.posters.focalPoint.y" },
581
- {
582
- path: "program.videoStepsSettings.requiredCompletionPercentage"
583
- }
584
- ]
438
+ paths: TRANSFORM_PATHS_1
585
439
  }
586
440
  ])
587
441
  };
@@ -608,39 +462,11 @@ function endProgram(payload) {
608
462
  transformResponse: (payload2) => transformPaths(payload2, [
609
463
  {
610
464
  transformFn: transformRESTTimestampToSDKTimestamp,
611
- paths: [
612
- { path: "program.createdDate" },
613
- { path: "program.updatedDate" },
614
- { path: "program.statusUpdatedDate" },
615
- { path: "program.description.image.urlExpirationDate" },
616
- { path: "program.description.video.urlExpirationDate" },
617
- {
618
- path: "program.description.video.resolutions.urlExpirationDate"
619
- },
620
- {
621
- path: "program.description.video.resolutions.poster.urlExpirationDate"
622
- },
623
- { path: "program.description.video.posters.urlExpirationDate" },
624
- { path: "program.rewards.certificate.connectedDate" }
625
- ]
465
+ paths: TRANSFORM_PATHS_0
626
466
  },
627
467
  {
628
468
  transformFn: transformRESTFloatToSDKFloat,
629
- paths: [
630
- { path: "program.description.image.focalPoint.x" },
631
- { path: "program.description.image.focalPoint.y" },
632
- {
633
- path: "program.description.video.resolutions.poster.focalPoint.x"
634
- },
635
- {
636
- path: "program.description.video.resolutions.poster.focalPoint.y"
637
- },
638
- { path: "program.description.video.posters.focalPoint.x" },
639
- { path: "program.description.video.posters.focalPoint.y" },
640
- {
641
- path: "program.videoStepsSettings.requiredCompletionPercentage"
642
- }
643
- ]
469
+ paths: TRANSFORM_PATHS_1
644
470
  }
645
471
  ])
646
472
  };
@@ -667,39 +493,11 @@ function archiveProgram(payload) {
667
493
  transformResponse: (payload2) => transformPaths(payload2, [
668
494
  {
669
495
  transformFn: transformRESTTimestampToSDKTimestamp,
670
- paths: [
671
- { path: "program.createdDate" },
672
- { path: "program.updatedDate" },
673
- { path: "program.statusUpdatedDate" },
674
- { path: "program.description.image.urlExpirationDate" },
675
- { path: "program.description.video.urlExpirationDate" },
676
- {
677
- path: "program.description.video.resolutions.urlExpirationDate"
678
- },
679
- {
680
- path: "program.description.video.resolutions.poster.urlExpirationDate"
681
- },
682
- { path: "program.description.video.posters.urlExpirationDate" },
683
- { path: "program.rewards.certificate.connectedDate" }
684
- ]
496
+ paths: TRANSFORM_PATHS_0
685
497
  },
686
498
  {
687
499
  transformFn: transformRESTFloatToSDKFloat,
688
- paths: [
689
- { path: "program.description.image.focalPoint.x" },
690
- { path: "program.description.image.focalPoint.y" },
691
- {
692
- path: "program.description.video.resolutions.poster.focalPoint.x"
693
- },
694
- {
695
- path: "program.description.video.resolutions.poster.focalPoint.y"
696
- },
697
- { path: "program.description.video.posters.focalPoint.x" },
698
- { path: "program.description.video.posters.focalPoint.y" },
699
- {
700
- path: "program.videoStepsSettings.requiredCompletionPercentage"
701
- }
702
- ]
500
+ paths: TRANSFORM_PATHS_1
703
501
  }
704
502
  ])
705
503
  };
@@ -712,45 +510,15 @@ function bulkUpdatePrograms(payload) {
712
510
  const serializedData = transformPaths(payload, [
713
511
  {
714
512
  transformFn: transformSDKFieldMaskToRESTFieldMask,
715
- paths: [{ path: "programs.fieldMask" }]
513
+ paths: TRANSFORM_PATHS_7
716
514
  },
717
515
  {
718
516
  transformFn: transformSDKTimestampToRESTTimestamp,
719
- paths: [
720
- { path: "programs.program.createdDate" },
721
- { path: "programs.program.updatedDate" },
722
- { path: "programs.program.statusUpdatedDate" },
723
- { path: "programs.program.description.image.urlExpirationDate" },
724
- { path: "programs.program.description.video.urlExpirationDate" },
725
- {
726
- path: "programs.program.description.video.resolutions.urlExpirationDate"
727
- },
728
- {
729
- path: "programs.program.description.video.resolutions.poster.urlExpirationDate"
730
- },
731
- {
732
- path: "programs.program.description.video.posters.urlExpirationDate"
733
- },
734
- { path: "programs.program.rewards.certificate.connectedDate" }
735
- ]
517
+ paths: TRANSFORM_PATHS_8
736
518
  },
737
519
  {
738
520
  transformFn: transformSDKFloatToRESTFloat,
739
- paths: [
740
- { path: "programs.program.description.image.focalPoint.x" },
741
- { path: "programs.program.description.image.focalPoint.y" },
742
- {
743
- path: "programs.program.description.video.resolutions.poster.focalPoint.x"
744
- },
745
- {
746
- path: "programs.program.description.video.resolutions.poster.focalPoint.y"
747
- },
748
- { path: "programs.program.description.video.posters.focalPoint.x" },
749
- { path: "programs.program.description.video.posters.focalPoint.y" },
750
- {
751
- path: "programs.program.videoStepsSettings.requiredCompletionPercentage"
752
- }
753
- ]
521
+ paths: TRANSFORM_PATHS_9
754
522
  }
755
523
  ]);
756
524
  const metadata = {
@@ -770,41 +538,11 @@ function bulkUpdatePrograms(payload) {
770
538
  transformResponse: (payload2) => transformPaths(payload2, [
771
539
  {
772
540
  transformFn: transformRESTTimestampToSDKTimestamp,
773
- paths: [
774
- { path: "results.item.createdDate" },
775
- { path: "results.item.updatedDate" },
776
- { path: "results.item.statusUpdatedDate" },
777
- { path: "results.item.description.image.urlExpirationDate" },
778
- { path: "results.item.description.video.urlExpirationDate" },
779
- {
780
- path: "results.item.description.video.resolutions.urlExpirationDate"
781
- },
782
- {
783
- path: "results.item.description.video.resolutions.poster.urlExpirationDate"
784
- },
785
- {
786
- path: "results.item.description.video.posters.urlExpirationDate"
787
- },
788
- { path: "results.item.rewards.certificate.connectedDate" }
789
- ]
541
+ paths: TRANSFORM_PATHS_10
790
542
  },
791
543
  {
792
544
  transformFn: transformRESTFloatToSDKFloat,
793
- paths: [
794
- { path: "results.item.description.image.focalPoint.x" },
795
- { path: "results.item.description.image.focalPoint.y" },
796
- {
797
- path: "results.item.description.video.resolutions.poster.focalPoint.x"
798
- },
799
- {
800
- path: "results.item.description.video.resolutions.poster.focalPoint.y"
801
- },
802
- { path: "results.item.description.video.posters.focalPoint.x" },
803
- { path: "results.item.description.video.posters.focalPoint.y" },
804
- {
805
- path: "results.item.videoStepsSettings.requiredCompletionPercentage"
806
- }
807
- ]
545
+ paths: TRANSFORM_PATHS_11
808
546
  }
809
547
  ])
810
548
  };
@@ -852,45 +590,11 @@ function listSamplePrograms(payload) {
852
590
  transformResponse: (payload2) => transformPaths(payload2, [
853
591
  {
854
592
  transformFn: transformRESTTimestampToSDKTimestamp,
855
- paths: [
856
- { path: "programs.program.createdDate" },
857
- { path: "programs.program.updatedDate" },
858
- { path: "programs.program.statusUpdatedDate" },
859
- { path: "programs.program.description.image.urlExpirationDate" },
860
- { path: "programs.program.description.video.urlExpirationDate" },
861
- {
862
- path: "programs.program.description.video.resolutions.urlExpirationDate"
863
- },
864
- {
865
- path: "programs.program.description.video.resolutions.poster.urlExpirationDate"
866
- },
867
- {
868
- path: "programs.program.description.video.posters.urlExpirationDate"
869
- },
870
- { path: "programs.program.rewards.certificate.connectedDate" }
871
- ]
593
+ paths: TRANSFORM_PATHS_8
872
594
  },
873
595
  {
874
596
  transformFn: transformRESTFloatToSDKFloat,
875
- paths: [
876
- { path: "programs.program.description.image.focalPoint.x" },
877
- { path: "programs.program.description.image.focalPoint.y" },
878
- {
879
- path: "programs.program.description.video.resolutions.poster.focalPoint.x"
880
- },
881
- {
882
- path: "programs.program.description.video.resolutions.poster.focalPoint.y"
883
- },
884
- {
885
- path: "programs.program.description.video.posters.focalPoint.x"
886
- },
887
- {
888
- path: "programs.program.description.video.posters.focalPoint.y"
889
- },
890
- {
891
- path: "programs.program.videoStepsSettings.requiredCompletionPercentage"
892
- }
893
- ]
597
+ paths: TRANSFORM_PATHS_9
894
598
  }
895
599
  ])
896
600
  };