@wix/auto_sdk_online-programs_programs 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 (43) hide show
  1. package/build/cjs/index.d.ts +129 -0
  2. package/build/cjs/index.js +1834 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +19 -0
  5. package/build/cjs/index.typings.js +1725 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1235 -0
  8. package/build/cjs/meta.js +1142 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/online-programs-v3-program-programs.universal-D4bCXD7K.d.ts +2867 -0
  11. package/build/es/index.d.mts +129 -0
  12. package/build/es/index.mjs +1773 -0
  13. package/build/es/index.mjs.map +1 -0
  14. package/build/es/index.typings.d.mts +19 -0
  15. package/build/es/index.typings.mjs +1664 -0
  16. package/build/es/index.typings.mjs.map +1 -0
  17. package/build/es/meta.d.mts +1235 -0
  18. package/build/es/meta.mjs +1103 -0
  19. package/build/es/meta.mjs.map +1 -0
  20. package/build/es/online-programs-v3-program-programs.universal-D4bCXD7K.d.mts +2867 -0
  21. package/build/es/package.json +3 -0
  22. package/build/internal/cjs/index.d.ts +129 -0
  23. package/build/internal/cjs/index.js +1834 -0
  24. package/build/internal/cjs/index.js.map +1 -0
  25. package/build/internal/cjs/index.typings.d.ts +19 -0
  26. package/build/internal/cjs/index.typings.js +1725 -0
  27. package/build/internal/cjs/index.typings.js.map +1 -0
  28. package/build/internal/cjs/meta.d.ts +1235 -0
  29. package/build/internal/cjs/meta.js +1142 -0
  30. package/build/internal/cjs/meta.js.map +1 -0
  31. package/build/internal/cjs/online-programs-v3-program-programs.universal-DOkVx-lj.d.ts +2895 -0
  32. package/build/internal/es/index.d.mts +129 -0
  33. package/build/internal/es/index.mjs +1773 -0
  34. package/build/internal/es/index.mjs.map +1 -0
  35. package/build/internal/es/index.typings.d.mts +19 -0
  36. package/build/internal/es/index.typings.mjs +1664 -0
  37. package/build/internal/es/index.typings.mjs.map +1 -0
  38. package/build/internal/es/meta.d.mts +1235 -0
  39. package/build/internal/es/meta.mjs +1103 -0
  40. package/build/internal/es/meta.mjs.map +1 -0
  41. package/build/internal/es/online-programs-v3-program-programs.universal-DOkVx-lj.d.mts +2895 -0
  42. package/meta/package.json +3 -0
  43. package/package.json +54 -0
@@ -0,0 +1,1773 @@
1
+ // src/online-programs-v3-program-programs.universal.ts
2
+ import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
3
+ import { queryBuilder } from "@wix/sdk-runtime/query-builder";
4
+ import {
5
+ renameKeysFromSDKRequestToRESTRequest,
6
+ renameKeysFromRESTResponseToSDKResponse
7
+ } from "@wix/sdk-runtime/rename-all-nested-keys";
8
+
9
+ // src/online-programs-v3-program-programs.http.ts
10
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
11
+ import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
12
+ import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
13
+ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
14
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
15
+ import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
16
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
17
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
18
+ function resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl(opts) {
19
+ const domainToMappings = {
20
+ "manage._base_domain_": [
21
+ {
22
+ srcPath: "/_api/programs-service",
23
+ destPath: ""
24
+ }
25
+ ],
26
+ _: [
27
+ {
28
+ srcPath: "/_api/programs-service",
29
+ destPath: ""
30
+ }
31
+ ],
32
+ "editor.wixapps.net": [
33
+ {
34
+ srcPath: "/_api/programs-service",
35
+ destPath: ""
36
+ }
37
+ ]
38
+ };
39
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
40
+ }
41
+ var PACKAGE_NAME = "@wix/auto_sdk_online-programs_programs";
42
+ function createProgram(payload) {
43
+ function __createProgram({ host }) {
44
+ const serializedData = transformPaths(payload, [
45
+ {
46
+ transformFn: transformSDKTimestampToRESTTimestamp,
47
+ paths: [
48
+ { path: "program.createdDate" },
49
+ { path: "program.updatedDate" },
50
+ { path: "program.stateUpdatedDate" },
51
+ { path: "program.statusUpdatedDate" },
52
+ { path: "program.description.image.urlExpirationDate" },
53
+ { path: "program.description.video.urlExpirationDate" },
54
+ { path: "program.description.video.resolutions.urlExpirationDate" },
55
+ {
56
+ path: "program.description.video.resolutions.poster.urlExpirationDate"
57
+ },
58
+ { path: "program.description.video.posters.urlExpirationDate" },
59
+ { path: "program.rewards.certificate.connectedDate" }
60
+ ]
61
+ },
62
+ {
63
+ transformFn: transformSDKFloatToRESTFloat,
64
+ paths: [
65
+ { path: "program.description.image.focalPoint.x" },
66
+ { path: "program.description.image.focalPoint.y" },
67
+ { path: "program.description.video.resolutions.poster.focalPoint.x" },
68
+ { path: "program.description.video.resolutions.poster.focalPoint.y" },
69
+ { path: "program.description.video.posters.focalPoint.x" },
70
+ { path: "program.description.video.posters.focalPoint.y" },
71
+ { path: "program.videoStepsSettings.requiredCompletionPercentage" }
72
+ ]
73
+ }
74
+ ]);
75
+ const metadata = {
76
+ entityFqdn: "wix.online_programs.v3.program",
77
+ method: "POST",
78
+ methodFqn: "wix.onlineprograms.programs.v3.ProgramsService.CreateProgram",
79
+ packageName: PACKAGE_NAME,
80
+ url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({
81
+ protoPath: "/v3/programs",
82
+ data: serializedData,
83
+ host
84
+ }),
85
+ data: serializedData,
86
+ transformResponse: (payload2) => transformPaths(payload2, [
87
+ {
88
+ transformFn: transformRESTTimestampToSDKTimestamp,
89
+ paths: [
90
+ { path: "program.createdDate" },
91
+ { path: "program.updatedDate" },
92
+ { path: "program.stateUpdatedDate" },
93
+ { path: "program.statusUpdatedDate" },
94
+ { path: "program.description.image.urlExpirationDate" },
95
+ { path: "program.description.video.urlExpirationDate" },
96
+ {
97
+ path: "program.description.video.resolutions.urlExpirationDate"
98
+ },
99
+ {
100
+ path: "program.description.video.resolutions.poster.urlExpirationDate"
101
+ },
102
+ { path: "program.description.video.posters.urlExpirationDate" },
103
+ { path: "program.rewards.certificate.connectedDate" }
104
+ ]
105
+ },
106
+ {
107
+ transformFn: transformRESTFloatToSDKFloat,
108
+ paths: [
109
+ { path: "program.description.image.focalPoint.x" },
110
+ { path: "program.description.image.focalPoint.y" },
111
+ {
112
+ path: "program.description.video.resolutions.poster.focalPoint.x"
113
+ },
114
+ {
115
+ path: "program.description.video.resolutions.poster.focalPoint.y"
116
+ },
117
+ { path: "program.description.video.posters.focalPoint.x" },
118
+ { path: "program.description.video.posters.focalPoint.y" },
119
+ {
120
+ path: "program.videoStepsSettings.requiredCompletionPercentage"
121
+ }
122
+ ]
123
+ }
124
+ ])
125
+ };
126
+ return metadata;
127
+ }
128
+ return __createProgram;
129
+ }
130
+ function duplicateProgram(payload) {
131
+ function __duplicateProgram({ host }) {
132
+ const metadata = {
133
+ entityFqdn: "wix.online_programs.v3.program",
134
+ method: "POST",
135
+ methodFqn: "wix.onlineprograms.programs.v3.ProgramsService.DuplicateProgram",
136
+ packageName: PACKAGE_NAME,
137
+ url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({
138
+ protoPath: "/v3/programs/{programId}/duplicate",
139
+ data: payload,
140
+ host
141
+ }),
142
+ data: payload,
143
+ transformResponse: (payload2) => transformPaths(payload2, [
144
+ {
145
+ transformFn: transformRESTTimestampToSDKTimestamp,
146
+ paths: [
147
+ { path: "program.createdDate" },
148
+ { path: "program.updatedDate" },
149
+ { path: "program.stateUpdatedDate" },
150
+ { path: "program.statusUpdatedDate" },
151
+ { path: "program.description.image.urlExpirationDate" },
152
+ { path: "program.description.video.urlExpirationDate" },
153
+ {
154
+ path: "program.description.video.resolutions.urlExpirationDate"
155
+ },
156
+ {
157
+ path: "program.description.video.resolutions.poster.urlExpirationDate"
158
+ },
159
+ { path: "program.description.video.posters.urlExpirationDate" },
160
+ { path: "program.rewards.certificate.connectedDate" }
161
+ ]
162
+ },
163
+ {
164
+ transformFn: transformRESTFloatToSDKFloat,
165
+ paths: [
166
+ { path: "program.description.image.focalPoint.x" },
167
+ { path: "program.description.image.focalPoint.y" },
168
+ {
169
+ path: "program.description.video.resolutions.poster.focalPoint.x"
170
+ },
171
+ {
172
+ path: "program.description.video.resolutions.poster.focalPoint.y"
173
+ },
174
+ { path: "program.description.video.posters.focalPoint.x" },
175
+ { path: "program.description.video.posters.focalPoint.y" },
176
+ {
177
+ path: "program.videoStepsSettings.requiredCompletionPercentage"
178
+ }
179
+ ]
180
+ }
181
+ ])
182
+ };
183
+ return metadata;
184
+ }
185
+ return __duplicateProgram;
186
+ }
187
+ function getProgram(payload) {
188
+ function __getProgram({ host }) {
189
+ const metadata = {
190
+ entityFqdn: "wix.online_programs.v3.program",
191
+ method: "GET",
192
+ methodFqn: "wix.onlineprograms.programs.v3.ProgramsService.GetProgram",
193
+ packageName: PACKAGE_NAME,
194
+ url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({
195
+ protoPath: "/v3/programs/{programId}",
196
+ data: payload,
197
+ host
198
+ }),
199
+ params: toURLSearchParams(payload),
200
+ transformResponse: (payload2) => transformPaths(payload2, [
201
+ {
202
+ transformFn: transformRESTTimestampToSDKTimestamp,
203
+ paths: [
204
+ { path: "program.createdDate" },
205
+ { path: "program.updatedDate" },
206
+ { path: "program.stateUpdatedDate" },
207
+ { path: "program.statusUpdatedDate" },
208
+ { path: "program.description.image.urlExpirationDate" },
209
+ { path: "program.description.video.urlExpirationDate" },
210
+ {
211
+ path: "program.description.video.resolutions.urlExpirationDate"
212
+ },
213
+ {
214
+ path: "program.description.video.resolutions.poster.urlExpirationDate"
215
+ },
216
+ { path: "program.description.video.posters.urlExpirationDate" },
217
+ { path: "program.rewards.certificate.connectedDate" }
218
+ ]
219
+ },
220
+ {
221
+ transformFn: transformRESTFloatToSDKFloat,
222
+ paths: [
223
+ { path: "program.description.image.focalPoint.x" },
224
+ { path: "program.description.image.focalPoint.y" },
225
+ {
226
+ path: "program.description.video.resolutions.poster.focalPoint.x"
227
+ },
228
+ {
229
+ path: "program.description.video.resolutions.poster.focalPoint.y"
230
+ },
231
+ { path: "program.description.video.posters.focalPoint.x" },
232
+ { path: "program.description.video.posters.focalPoint.y" },
233
+ {
234
+ path: "program.videoStepsSettings.requiredCompletionPercentage"
235
+ }
236
+ ]
237
+ }
238
+ ])
239
+ };
240
+ return metadata;
241
+ }
242
+ return __getProgram;
243
+ }
244
+ function updateProgram(payload) {
245
+ function __updateProgram({ host }) {
246
+ const serializedData = transformPaths(payload, [
247
+ {
248
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
249
+ paths: [{ path: "fieldMask" }]
250
+ },
251
+ {
252
+ transformFn: transformSDKTimestampToRESTTimestamp,
253
+ paths: [
254
+ { path: "program.createdDate" },
255
+ { path: "program.updatedDate" },
256
+ { path: "program.stateUpdatedDate" },
257
+ { path: "program.statusUpdatedDate" },
258
+ { path: "program.description.image.urlExpirationDate" },
259
+ { path: "program.description.video.urlExpirationDate" },
260
+ { path: "program.description.video.resolutions.urlExpirationDate" },
261
+ {
262
+ path: "program.description.video.resolutions.poster.urlExpirationDate"
263
+ },
264
+ { path: "program.description.video.posters.urlExpirationDate" },
265
+ { path: "program.rewards.certificate.connectedDate" }
266
+ ]
267
+ },
268
+ {
269
+ transformFn: transformSDKFloatToRESTFloat,
270
+ paths: [
271
+ { path: "program.description.image.focalPoint.x" },
272
+ { path: "program.description.image.focalPoint.y" },
273
+ { path: "program.description.video.resolutions.poster.focalPoint.x" },
274
+ { path: "program.description.video.resolutions.poster.focalPoint.y" },
275
+ { path: "program.description.video.posters.focalPoint.x" },
276
+ { path: "program.description.video.posters.focalPoint.y" },
277
+ { path: "program.videoStepsSettings.requiredCompletionPercentage" }
278
+ ]
279
+ }
280
+ ]);
281
+ const metadata = {
282
+ entityFqdn: "wix.online_programs.v3.program",
283
+ method: "PATCH",
284
+ methodFqn: "wix.onlineprograms.programs.v3.ProgramsService.UpdateProgram",
285
+ packageName: PACKAGE_NAME,
286
+ url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({
287
+ protoPath: "/v3/programs/{program.id}",
288
+ data: serializedData,
289
+ host
290
+ }),
291
+ data: serializedData,
292
+ transformResponse: (payload2) => transformPaths(payload2, [
293
+ {
294
+ transformFn: transformRESTTimestampToSDKTimestamp,
295
+ paths: [
296
+ { path: "program.createdDate" },
297
+ { path: "program.updatedDate" },
298
+ { path: "program.stateUpdatedDate" },
299
+ { path: "program.statusUpdatedDate" },
300
+ { path: "program.description.image.urlExpirationDate" },
301
+ { path: "program.description.video.urlExpirationDate" },
302
+ {
303
+ path: "program.description.video.resolutions.urlExpirationDate"
304
+ },
305
+ {
306
+ path: "program.description.video.resolutions.poster.urlExpirationDate"
307
+ },
308
+ { path: "program.description.video.posters.urlExpirationDate" },
309
+ { path: "program.rewards.certificate.connectedDate" }
310
+ ]
311
+ },
312
+ {
313
+ transformFn: transformRESTFloatToSDKFloat,
314
+ paths: [
315
+ { path: "program.description.image.focalPoint.x" },
316
+ { path: "program.description.image.focalPoint.y" },
317
+ {
318
+ path: "program.description.video.resolutions.poster.focalPoint.x"
319
+ },
320
+ {
321
+ path: "program.description.video.resolutions.poster.focalPoint.y"
322
+ },
323
+ { path: "program.description.video.posters.focalPoint.x" },
324
+ { path: "program.description.video.posters.focalPoint.y" },
325
+ {
326
+ path: "program.videoStepsSettings.requiredCompletionPercentage"
327
+ }
328
+ ]
329
+ }
330
+ ])
331
+ };
332
+ return metadata;
333
+ }
334
+ return __updateProgram;
335
+ }
336
+ function deleteProgram(payload) {
337
+ function __deleteProgram({ host }) {
338
+ const metadata = {
339
+ entityFqdn: "wix.online_programs.v3.program",
340
+ method: "DELETE",
341
+ methodFqn: "wix.onlineprograms.programs.v3.ProgramsService.DeleteProgram",
342
+ packageName: PACKAGE_NAME,
343
+ url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({
344
+ protoPath: "/v3/programs/{programId}",
345
+ data: payload,
346
+ host
347
+ }),
348
+ params: toURLSearchParams(payload)
349
+ };
350
+ return metadata;
351
+ }
352
+ return __deleteProgram;
353
+ }
354
+ function queryPrograms(payload) {
355
+ function __queryPrograms({ host }) {
356
+ const metadata = {
357
+ entityFqdn: "wix.online_programs.v3.program",
358
+ method: "POST",
359
+ methodFqn: "wix.onlineprograms.programs.v3.ProgramsService.QueryPrograms",
360
+ packageName: PACKAGE_NAME,
361
+ url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({
362
+ protoPath: "/v3/programs/query",
363
+ data: payload,
364
+ host
365
+ }),
366
+ data: payload,
367
+ transformResponse: (payload2) => transformPaths(payload2, [
368
+ {
369
+ transformFn: transformRESTTimestampToSDKTimestamp,
370
+ paths: [
371
+ { path: "programs.createdDate" },
372
+ { path: "programs.updatedDate" },
373
+ { path: "programs.stateUpdatedDate" },
374
+ { path: "programs.statusUpdatedDate" },
375
+ { path: "programs.description.image.urlExpirationDate" },
376
+ { path: "programs.description.video.urlExpirationDate" },
377
+ {
378
+ path: "programs.description.video.resolutions.urlExpirationDate"
379
+ },
380
+ {
381
+ path: "programs.description.video.resolutions.poster.urlExpirationDate"
382
+ },
383
+ { path: "programs.description.video.posters.urlExpirationDate" },
384
+ { path: "programs.rewards.certificate.connectedDate" }
385
+ ]
386
+ },
387
+ {
388
+ transformFn: transformRESTFloatToSDKFloat,
389
+ paths: [
390
+ { path: "programs.description.image.focalPoint.x" },
391
+ { path: "programs.description.image.focalPoint.y" },
392
+ {
393
+ path: "programs.description.video.resolutions.poster.focalPoint.x"
394
+ },
395
+ {
396
+ path: "programs.description.video.resolutions.poster.focalPoint.y"
397
+ },
398
+ { path: "programs.description.video.posters.focalPoint.x" },
399
+ { path: "programs.description.video.posters.focalPoint.y" },
400
+ {
401
+ path: "programs.videoStepsSettings.requiredCompletionPercentage"
402
+ }
403
+ ]
404
+ }
405
+ ])
406
+ };
407
+ return metadata;
408
+ }
409
+ return __queryPrograms;
410
+ }
411
+ function searchPrograms(payload) {
412
+ function __searchPrograms({ host }) {
413
+ const serializedData = transformPaths(payload, [
414
+ {
415
+ transformFn: transformSDKFloatToRESTFloat,
416
+ paths: [
417
+ { path: "search.aggregations.range.buckets.from" },
418
+ { path: "search.aggregations.range.buckets.to" },
419
+ {
420
+ path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
421
+ },
422
+ {
423
+ path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
424
+ }
425
+ ]
426
+ }
427
+ ]);
428
+ const metadata = {
429
+ entityFqdn: "wix.online_programs.v3.program",
430
+ method: "POST",
431
+ methodFqn: "wix.onlineprograms.programs.v3.ProgramsService.SearchPrograms",
432
+ packageName: PACKAGE_NAME,
433
+ url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({
434
+ protoPath: "/v3/programs/search",
435
+ data: serializedData,
436
+ host
437
+ }),
438
+ data: serializedData,
439
+ transformResponse: (payload2) => transformPaths(payload2, [
440
+ {
441
+ transformFn: transformRESTTimestampToSDKTimestamp,
442
+ paths: [
443
+ { path: "programs.createdDate" },
444
+ { path: "programs.updatedDate" },
445
+ { path: "programs.stateUpdatedDate" },
446
+ { path: "programs.statusUpdatedDate" },
447
+ { path: "programs.description.image.urlExpirationDate" },
448
+ { path: "programs.description.video.urlExpirationDate" },
449
+ {
450
+ path: "programs.description.video.resolutions.urlExpirationDate"
451
+ },
452
+ {
453
+ path: "programs.description.video.resolutions.poster.urlExpirationDate"
454
+ },
455
+ { path: "programs.description.video.posters.urlExpirationDate" },
456
+ { path: "programs.rewards.certificate.connectedDate" }
457
+ ]
458
+ },
459
+ {
460
+ transformFn: transformRESTFloatToSDKFloat,
461
+ paths: [
462
+ { path: "programs.description.image.focalPoint.x" },
463
+ { path: "programs.description.image.focalPoint.y" },
464
+ {
465
+ path: "programs.description.video.resolutions.poster.focalPoint.x"
466
+ },
467
+ {
468
+ path: "programs.description.video.resolutions.poster.focalPoint.y"
469
+ },
470
+ { path: "programs.description.video.posters.focalPoint.x" },
471
+ { path: "programs.description.video.posters.focalPoint.y" },
472
+ {
473
+ path: "programs.videoStepsSettings.requiredCompletionPercentage"
474
+ },
475
+ { path: "aggregationData.results.scalar.value" },
476
+ {
477
+ path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
478
+ },
479
+ {
480
+ path: "aggregationData.results.nested.results.results.*.scalar.value"
481
+ },
482
+ { path: "aggregationData.results.ranges.results.from" },
483
+ { path: "aggregationData.results.ranges.results.to" },
484
+ {
485
+ path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
486
+ },
487
+ {
488
+ path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
489
+ },
490
+ {
491
+ path: "aggregationData.results.nested.results.results.*.range.from"
492
+ },
493
+ {
494
+ path: "aggregationData.results.nested.results.results.*.range.to"
495
+ }
496
+ ]
497
+ }
498
+ ])
499
+ };
500
+ return metadata;
501
+ }
502
+ return __searchPrograms;
503
+ }
504
+ function publishProgram(payload) {
505
+ function __publishProgram({ host }) {
506
+ const metadata = {
507
+ entityFqdn: "wix.online_programs.v3.program",
508
+ method: "POST",
509
+ methodFqn: "wix.onlineprograms.programs.v3.ProgramsService.PublishProgram",
510
+ packageName: PACKAGE_NAME,
511
+ url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({
512
+ protoPath: "/v3/programs/{programId}/publish",
513
+ data: payload,
514
+ host
515
+ }),
516
+ data: payload,
517
+ transformResponse: (payload2) => transformPaths(payload2, [
518
+ {
519
+ transformFn: transformRESTTimestampToSDKTimestamp,
520
+ paths: [
521
+ { path: "program.createdDate" },
522
+ { path: "program.updatedDate" },
523
+ { path: "program.stateUpdatedDate" },
524
+ { path: "program.statusUpdatedDate" },
525
+ { path: "program.description.image.urlExpirationDate" },
526
+ { path: "program.description.video.urlExpirationDate" },
527
+ {
528
+ path: "program.description.video.resolutions.urlExpirationDate"
529
+ },
530
+ {
531
+ path: "program.description.video.resolutions.poster.urlExpirationDate"
532
+ },
533
+ { path: "program.description.video.posters.urlExpirationDate" },
534
+ { path: "program.rewards.certificate.connectedDate" }
535
+ ]
536
+ },
537
+ {
538
+ transformFn: transformRESTFloatToSDKFloat,
539
+ paths: [
540
+ { path: "program.description.image.focalPoint.x" },
541
+ { path: "program.description.image.focalPoint.y" },
542
+ {
543
+ path: "program.description.video.resolutions.poster.focalPoint.x"
544
+ },
545
+ {
546
+ path: "program.description.video.resolutions.poster.focalPoint.y"
547
+ },
548
+ { path: "program.description.video.posters.focalPoint.x" },
549
+ { path: "program.description.video.posters.focalPoint.y" },
550
+ {
551
+ path: "program.videoStepsSettings.requiredCompletionPercentage"
552
+ }
553
+ ]
554
+ }
555
+ ])
556
+ };
557
+ return metadata;
558
+ }
559
+ return __publishProgram;
560
+ }
561
+ function endProgram(payload) {
562
+ function __endProgram({ host }) {
563
+ const metadata = {
564
+ entityFqdn: "wix.online_programs.v3.program",
565
+ method: "POST",
566
+ methodFqn: "wix.onlineprograms.programs.v3.ProgramsService.EndProgram",
567
+ packageName: PACKAGE_NAME,
568
+ url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({
569
+ protoPath: "/v3/programs/{programId}/end",
570
+ data: payload,
571
+ host
572
+ }),
573
+ data: payload,
574
+ transformResponse: (payload2) => transformPaths(payload2, [
575
+ {
576
+ transformFn: transformRESTTimestampToSDKTimestamp,
577
+ paths: [
578
+ { path: "program.createdDate" },
579
+ { path: "program.updatedDate" },
580
+ { path: "program.stateUpdatedDate" },
581
+ { path: "program.statusUpdatedDate" },
582
+ { path: "program.description.image.urlExpirationDate" },
583
+ { path: "program.description.video.urlExpirationDate" },
584
+ {
585
+ path: "program.description.video.resolutions.urlExpirationDate"
586
+ },
587
+ {
588
+ path: "program.description.video.resolutions.poster.urlExpirationDate"
589
+ },
590
+ { path: "program.description.video.posters.urlExpirationDate" },
591
+ { path: "program.rewards.certificate.connectedDate" }
592
+ ]
593
+ },
594
+ {
595
+ transformFn: transformRESTFloatToSDKFloat,
596
+ paths: [
597
+ { path: "program.description.image.focalPoint.x" },
598
+ { path: "program.description.image.focalPoint.y" },
599
+ {
600
+ path: "program.description.video.resolutions.poster.focalPoint.x"
601
+ },
602
+ {
603
+ path: "program.description.video.resolutions.poster.focalPoint.y"
604
+ },
605
+ { path: "program.description.video.posters.focalPoint.x" },
606
+ { path: "program.description.video.posters.focalPoint.y" },
607
+ {
608
+ path: "program.videoStepsSettings.requiredCompletionPercentage"
609
+ }
610
+ ]
611
+ }
612
+ ])
613
+ };
614
+ return metadata;
615
+ }
616
+ return __endProgram;
617
+ }
618
+ function archiveProgram(payload) {
619
+ function __archiveProgram({ host }) {
620
+ const metadata = {
621
+ entityFqdn: "wix.online_programs.v3.program",
622
+ method: "POST",
623
+ methodFqn: "wix.onlineprograms.programs.v3.ProgramsService.ArchiveProgram",
624
+ packageName: PACKAGE_NAME,
625
+ url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({
626
+ protoPath: "/v3/programs/{programId}/archive",
627
+ data: payload,
628
+ host
629
+ }),
630
+ data: payload,
631
+ transformResponse: (payload2) => transformPaths(payload2, [
632
+ {
633
+ transformFn: transformRESTTimestampToSDKTimestamp,
634
+ paths: [
635
+ { path: "program.createdDate" },
636
+ { path: "program.updatedDate" },
637
+ { path: "program.stateUpdatedDate" },
638
+ { path: "program.statusUpdatedDate" },
639
+ { path: "program.description.image.urlExpirationDate" },
640
+ { path: "program.description.video.urlExpirationDate" },
641
+ {
642
+ path: "program.description.video.resolutions.urlExpirationDate"
643
+ },
644
+ {
645
+ path: "program.description.video.resolutions.poster.urlExpirationDate"
646
+ },
647
+ { path: "program.description.video.posters.urlExpirationDate" },
648
+ { path: "program.rewards.certificate.connectedDate" }
649
+ ]
650
+ },
651
+ {
652
+ transformFn: transformRESTFloatToSDKFloat,
653
+ paths: [
654
+ { path: "program.description.image.focalPoint.x" },
655
+ { path: "program.description.image.focalPoint.y" },
656
+ {
657
+ path: "program.description.video.resolutions.poster.focalPoint.x"
658
+ },
659
+ {
660
+ path: "program.description.video.resolutions.poster.focalPoint.y"
661
+ },
662
+ { path: "program.description.video.posters.focalPoint.x" },
663
+ { path: "program.description.video.posters.focalPoint.y" },
664
+ {
665
+ path: "program.videoStepsSettings.requiredCompletionPercentage"
666
+ }
667
+ ]
668
+ }
669
+ ])
670
+ };
671
+ return metadata;
672
+ }
673
+ return __archiveProgram;
674
+ }
675
+ function bulkUpdatePrograms(payload) {
676
+ function __bulkUpdatePrograms({ host }) {
677
+ const serializedData = transformPaths(payload, [
678
+ {
679
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
680
+ paths: [{ path: "programs.fieldMask" }]
681
+ },
682
+ {
683
+ transformFn: transformSDKTimestampToRESTTimestamp,
684
+ paths: [
685
+ { path: "programs.program.createdDate" },
686
+ { path: "programs.program.updatedDate" },
687
+ { path: "programs.program.stateUpdatedDate" },
688
+ { path: "programs.program.statusUpdatedDate" },
689
+ { path: "programs.program.description.image.urlExpirationDate" },
690
+ { path: "programs.program.description.video.urlExpirationDate" },
691
+ {
692
+ path: "programs.program.description.video.resolutions.urlExpirationDate"
693
+ },
694
+ {
695
+ path: "programs.program.description.video.resolutions.poster.urlExpirationDate"
696
+ },
697
+ {
698
+ path: "programs.program.description.video.posters.urlExpirationDate"
699
+ },
700
+ { path: "programs.program.rewards.certificate.connectedDate" }
701
+ ]
702
+ },
703
+ {
704
+ transformFn: transformSDKFloatToRESTFloat,
705
+ paths: [
706
+ { path: "programs.program.description.image.focalPoint.x" },
707
+ { path: "programs.program.description.image.focalPoint.y" },
708
+ {
709
+ path: "programs.program.description.video.resolutions.poster.focalPoint.x"
710
+ },
711
+ {
712
+ path: "programs.program.description.video.resolutions.poster.focalPoint.y"
713
+ },
714
+ { path: "programs.program.description.video.posters.focalPoint.x" },
715
+ { path: "programs.program.description.video.posters.focalPoint.y" },
716
+ {
717
+ path: "programs.program.videoStepsSettings.requiredCompletionPercentage"
718
+ }
719
+ ]
720
+ }
721
+ ]);
722
+ const metadata = {
723
+ entityFqdn: "wix.online_programs.v3.program",
724
+ method: "POST",
725
+ methodFqn: "wix.onlineprograms.programs.v3.ProgramsService.BulkUpdatePrograms",
726
+ packageName: PACKAGE_NAME,
727
+ url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({
728
+ protoPath: "/v3/bulk/programs/update",
729
+ data: serializedData,
730
+ host
731
+ }),
732
+ data: serializedData,
733
+ transformResponse: (payload2) => transformPaths(payload2, [
734
+ {
735
+ transformFn: transformRESTTimestampToSDKTimestamp,
736
+ paths: [
737
+ { path: "results.item.createdDate" },
738
+ { path: "results.item.updatedDate" },
739
+ { path: "results.item.stateUpdatedDate" },
740
+ { path: "results.item.statusUpdatedDate" },
741
+ { path: "results.item.description.image.urlExpirationDate" },
742
+ { path: "results.item.description.video.urlExpirationDate" },
743
+ {
744
+ path: "results.item.description.video.resolutions.urlExpirationDate"
745
+ },
746
+ {
747
+ path: "results.item.description.video.resolutions.poster.urlExpirationDate"
748
+ },
749
+ {
750
+ path: "results.item.description.video.posters.urlExpirationDate"
751
+ },
752
+ { path: "results.item.rewards.certificate.connectedDate" }
753
+ ]
754
+ },
755
+ {
756
+ transformFn: transformRESTFloatToSDKFloat,
757
+ paths: [
758
+ { path: "results.item.description.image.focalPoint.x" },
759
+ { path: "results.item.description.image.focalPoint.y" },
760
+ {
761
+ path: "results.item.description.video.resolutions.poster.focalPoint.x"
762
+ },
763
+ {
764
+ path: "results.item.description.video.resolutions.poster.focalPoint.y"
765
+ },
766
+ { path: "results.item.description.video.posters.focalPoint.x" },
767
+ { path: "results.item.description.video.posters.focalPoint.y" },
768
+ {
769
+ path: "results.item.videoStepsSettings.requiredCompletionPercentage"
770
+ }
771
+ ]
772
+ }
773
+ ])
774
+ };
775
+ return metadata;
776
+ }
777
+ return __bulkUpdatePrograms;
778
+ }
779
+ function countPrograms(payload) {
780
+ function __countPrograms({ host }) {
781
+ const metadata = {
782
+ entityFqdn: "wix.online_programs.v3.program",
783
+ method: "POST",
784
+ methodFqn: "wix.onlineprograms.programs.v3.ProgramsService.CountPrograms",
785
+ packageName: PACKAGE_NAME,
786
+ url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({
787
+ protoPath: "/v3/programs/count",
788
+ data: payload,
789
+ host
790
+ }),
791
+ data: payload
792
+ };
793
+ return metadata;
794
+ }
795
+ return __countPrograms;
796
+ }
797
+ function listSamplePrograms(payload) {
798
+ function __listSamplePrograms({ host }) {
799
+ const metadata = {
800
+ entityFqdn: "wix.online_programs.v3.program",
801
+ method: "GET",
802
+ methodFqn: "wix.onlineprograms.programs.v3.ProgramsService.ListSamplePrograms",
803
+ packageName: PACKAGE_NAME,
804
+ url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({
805
+ protoPath: "/v3/programs/samples",
806
+ data: payload,
807
+ host
808
+ }),
809
+ params: toURLSearchParams(payload),
810
+ transformResponse: (payload2) => transformPaths(payload2, [
811
+ {
812
+ transformFn: transformRESTTimestampToSDKTimestamp,
813
+ paths: [
814
+ { path: "programs.program.createdDate" },
815
+ { path: "programs.program.updatedDate" },
816
+ { path: "programs.program.stateUpdatedDate" },
817
+ { path: "programs.program.statusUpdatedDate" },
818
+ { path: "programs.program.description.image.urlExpirationDate" },
819
+ { path: "programs.program.description.video.urlExpirationDate" },
820
+ {
821
+ path: "programs.program.description.video.resolutions.urlExpirationDate"
822
+ },
823
+ {
824
+ path: "programs.program.description.video.resolutions.poster.urlExpirationDate"
825
+ },
826
+ {
827
+ path: "programs.program.description.video.posters.urlExpirationDate"
828
+ },
829
+ { path: "programs.program.rewards.certificate.connectedDate" }
830
+ ]
831
+ },
832
+ {
833
+ transformFn: transformRESTFloatToSDKFloat,
834
+ paths: [
835
+ { path: "programs.program.description.image.focalPoint.x" },
836
+ { path: "programs.program.description.image.focalPoint.y" },
837
+ {
838
+ path: "programs.program.description.video.resolutions.poster.focalPoint.x"
839
+ },
840
+ {
841
+ path: "programs.program.description.video.resolutions.poster.focalPoint.y"
842
+ },
843
+ {
844
+ path: "programs.program.description.video.posters.focalPoint.x"
845
+ },
846
+ {
847
+ path: "programs.program.description.video.posters.focalPoint.y"
848
+ },
849
+ {
850
+ path: "programs.program.videoStepsSettings.requiredCompletionPercentage"
851
+ }
852
+ ]
853
+ }
854
+ ])
855
+ };
856
+ return metadata;
857
+ }
858
+ return __listSamplePrograms;
859
+ }
860
+
861
+ // src/online-programs-v3-program-programs.universal.ts
862
+ import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/image";
863
+ import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
864
+ import { transformSDKVideoV2ToRESTVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
865
+ import { transformRESTVideoV2ToSDKVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
866
+ import { transformSDKPageURLToRESTPageURL } from "@wix/sdk-runtime/transformations/page-url";
867
+ import { transformRESTPageURLToSDKPageURL } from "@wix/sdk-runtime/transformations/page-url";
868
+ import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
869
+ var V3State = /* @__PURE__ */ ((V3State2) => {
870
+ V3State2["DRAFT"] = "DRAFT";
871
+ V3State2["PUBLISHED"] = "PUBLISHED";
872
+ V3State2["ENDED"] = "ENDED";
873
+ V3State2["ARCHIVED"] = "ARCHIVED";
874
+ return V3State2;
875
+ })(V3State || {});
876
+ var Status = /* @__PURE__ */ ((Status2) => {
877
+ Status2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
878
+ Status2["DRAFT"] = "DRAFT";
879
+ Status2["PUBLISHED"] = "PUBLISHED";
880
+ Status2["ENDED"] = "ENDED";
881
+ Status2["ARCHIVED"] = "ARCHIVED";
882
+ return Status2;
883
+ })(Status || {});
884
+ var RestrictionsAccessType = /* @__PURE__ */ ((RestrictionsAccessType2) => {
885
+ RestrictionsAccessType2["UNKNOWN_ACCESS_TYPE"] = "UNKNOWN_ACCESS_TYPE";
886
+ RestrictionsAccessType2["PUBLIC"] = "PUBLIC";
887
+ RestrictionsAccessType2["PRIVATE"] = "PRIVATE";
888
+ RestrictionsAccessType2["SECRET"] = "SECRET";
889
+ return RestrictionsAccessType2;
890
+ })(RestrictionsAccessType || {});
891
+ var Trigger = /* @__PURE__ */ ((Trigger2) => {
892
+ Trigger2["JOINED_TO_PROGRAM"] = "JOINED_TO_PROGRAM";
893
+ Trigger2["STEP_COMPLETED"] = "STEP_COMPLETED";
894
+ Trigger2["ALL_STEPS_COMPLETED"] = "ALL_STEPS_COMPLETED";
895
+ return Trigger2;
896
+ })(Trigger || {});
897
+ var AccessType = /* @__PURE__ */ ((AccessType2) => {
898
+ AccessType2["PUBLIC"] = "PUBLIC";
899
+ AccessType2["PRIVATE"] = "PRIVATE";
900
+ AccessType2["SECRET"] = "SECRET";
901
+ return AccessType2;
902
+ })(AccessType || {});
903
+ var Enum = /* @__PURE__ */ ((Enum2) => {
904
+ Enum2["UNKNOWN"] = "UNKNOWN";
905
+ Enum2["PROTECTED"] = "PROTECTED";
906
+ Enum2["PRIVATE"] = "PRIVATE";
907
+ Enum2["PUBLIC"] = "PUBLIC";
908
+ Enum2["UNCHANGED"] = "UNCHANGED";
909
+ Enum2["GROUP_PROTECTED"] = "GROUP_PROTECTED";
910
+ return Enum2;
911
+ })(Enum || {});
912
+ var BulkActionType = /* @__PURE__ */ ((BulkActionType2) => {
913
+ BulkActionType2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
914
+ BulkActionType2["INSERT"] = "INSERT";
915
+ BulkActionType2["UPDATE"] = "UPDATE";
916
+ BulkActionType2["DELETE"] = "DELETE";
917
+ return BulkActionType2;
918
+ })(BulkActionType || {});
919
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
920
+ SortOrder2["ASC"] = "ASC";
921
+ SortOrder2["DESC"] = "DESC";
922
+ return SortOrder2;
923
+ })(SortOrder || {});
924
+ var SortType = /* @__PURE__ */ ((SortType2) => {
925
+ SortType2["COUNT"] = "COUNT";
926
+ SortType2["VALUE"] = "VALUE";
927
+ return SortType2;
928
+ })(SortType || {});
929
+ var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
930
+ SortDirection2["DESC"] = "DESC";
931
+ SortDirection2["ASC"] = "ASC";
932
+ return SortDirection2;
933
+ })(SortDirection || {});
934
+ var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
935
+ MissingValues2["EXCLUDE"] = "EXCLUDE";
936
+ MissingValues2["INCLUDE"] = "INCLUDE";
937
+ return MissingValues2;
938
+ })(MissingValues || {});
939
+ var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
940
+ ScalarType2["UNKNOWN_SCALAR_TYPE"] = "UNKNOWN_SCALAR_TYPE";
941
+ ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
942
+ ScalarType2["MIN"] = "MIN";
943
+ ScalarType2["MAX"] = "MAX";
944
+ return ScalarType2;
945
+ })(ScalarType || {});
946
+ var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
947
+ NestedAggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
948
+ NestedAggregationType2["VALUE"] = "VALUE";
949
+ NestedAggregationType2["RANGE"] = "RANGE";
950
+ NestedAggregationType2["SCALAR"] = "SCALAR";
951
+ NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
952
+ return NestedAggregationType2;
953
+ })(NestedAggregationType || {});
954
+ var Interval = /* @__PURE__ */ ((Interval2) => {
955
+ Interval2["UNKNOWN_INTERVAL"] = "UNKNOWN_INTERVAL";
956
+ Interval2["YEAR"] = "YEAR";
957
+ Interval2["MONTH"] = "MONTH";
958
+ Interval2["WEEK"] = "WEEK";
959
+ Interval2["DAY"] = "DAY";
960
+ Interval2["HOUR"] = "HOUR";
961
+ Interval2["MINUTE"] = "MINUTE";
962
+ Interval2["SECOND"] = "SECOND";
963
+ return Interval2;
964
+ })(Interval || {});
965
+ var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
966
+ AggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
967
+ AggregationType2["VALUE"] = "VALUE";
968
+ AggregationType2["RANGE"] = "RANGE";
969
+ AggregationType2["SCALAR"] = "SCALAR";
970
+ AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
971
+ AggregationType2["NESTED"] = "NESTED";
972
+ return AggregationType2;
973
+ })(AggregationType || {});
974
+ var Mode = /* @__PURE__ */ ((Mode2) => {
975
+ Mode2["OR"] = "OR";
976
+ Mode2["AND"] = "AND";
977
+ return Mode2;
978
+ })(Mode || {});
979
+ var State = /* @__PURE__ */ ((State2) => {
980
+ State2["UNKNOWN"] = "UNKNOWN";
981
+ State2["ENABLED"] = "ENABLED";
982
+ State2["DISABLED"] = "DISABLED";
983
+ State2["PENDING"] = "PENDING";
984
+ State2["DEMO"] = "DEMO";
985
+ return State2;
986
+ })(State || {});
987
+ var SiteCreatedContext = /* @__PURE__ */ ((SiteCreatedContext2) => {
988
+ SiteCreatedContext2["OTHER"] = "OTHER";
989
+ SiteCreatedContext2["FROM_TEMPLATE"] = "FROM_TEMPLATE";
990
+ SiteCreatedContext2["DUPLICATE_BY_SITE_TRANSFER"] = "DUPLICATE_BY_SITE_TRANSFER";
991
+ SiteCreatedContext2["DUPLICATE"] = "DUPLICATE";
992
+ SiteCreatedContext2["OLD_SITE_TRANSFER"] = "OLD_SITE_TRANSFER";
993
+ SiteCreatedContext2["FLASH"] = "FLASH";
994
+ return SiteCreatedContext2;
995
+ })(SiteCreatedContext || {});
996
+ var Namespace = /* @__PURE__ */ ((Namespace2) => {
997
+ Namespace2["UNKNOWN_NAMESPACE"] = "UNKNOWN_NAMESPACE";
998
+ Namespace2["WIX"] = "WIX";
999
+ Namespace2["SHOUT_OUT"] = "SHOUT_OUT";
1000
+ Namespace2["ALBUMS"] = "ALBUMS";
1001
+ Namespace2["WIX_STORES_TEST_DRIVE"] = "WIX_STORES_TEST_DRIVE";
1002
+ Namespace2["HOTELS"] = "HOTELS";
1003
+ Namespace2["CLUBS"] = "CLUBS";
1004
+ Namespace2["ONBOARDING_DRAFT"] = "ONBOARDING_DRAFT";
1005
+ Namespace2["DEV_SITE"] = "DEV_SITE";
1006
+ Namespace2["LOGOS"] = "LOGOS";
1007
+ Namespace2["VIDEO_MAKER"] = "VIDEO_MAKER";
1008
+ Namespace2["PARTNER_DASHBOARD"] = "PARTNER_DASHBOARD";
1009
+ Namespace2["DEV_CENTER_COMPANY"] = "DEV_CENTER_COMPANY";
1010
+ Namespace2["HTML_DRAFT"] = "HTML_DRAFT";
1011
+ Namespace2["SITELESS_BUSINESS"] = "SITELESS_BUSINESS";
1012
+ Namespace2["CREATOR_ECONOMY"] = "CREATOR_ECONOMY";
1013
+ Namespace2["DASHBOARD_FIRST"] = "DASHBOARD_FIRST";
1014
+ Namespace2["ANYWHERE"] = "ANYWHERE";
1015
+ Namespace2["HEADLESS"] = "HEADLESS";
1016
+ Namespace2["ACCOUNT_MASTER_CMS"] = "ACCOUNT_MASTER_CMS";
1017
+ Namespace2["RISE"] = "RISE";
1018
+ Namespace2["BRANDED_FIRST"] = "BRANDED_FIRST";
1019
+ Namespace2["NOWNIA"] = "NOWNIA";
1020
+ Namespace2["UGC_TEMPLATE"] = "UGC_TEMPLATE";
1021
+ Namespace2["CODUX"] = "CODUX";
1022
+ Namespace2["MEDIA_DESIGN_CREATOR"] = "MEDIA_DESIGN_CREATOR";
1023
+ Namespace2["SHARED_BLOG_ENTERPRISE"] = "SHARED_BLOG_ENTERPRISE";
1024
+ Namespace2["STANDALONE_FORMS"] = "STANDALONE_FORMS";
1025
+ Namespace2["STANDALONE_EVENTS"] = "STANDALONE_EVENTS";
1026
+ Namespace2["MIMIR"] = "MIMIR";
1027
+ Namespace2["TWINS"] = "TWINS";
1028
+ Namespace2["NANO"] = "NANO";
1029
+ return Namespace2;
1030
+ })(Namespace || {});
1031
+ var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
1032
+ DeleteStatus2["UNKNOWN"] = "UNKNOWN";
1033
+ DeleteStatus2["TRASH"] = "TRASH";
1034
+ DeleteStatus2["DELETED"] = "DELETED";
1035
+ DeleteStatus2["PENDING_PURGE"] = "PENDING_PURGE";
1036
+ DeleteStatus2["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
1037
+ return DeleteStatus2;
1038
+ })(DeleteStatus || {});
1039
+ var SearchIndexingNotificationState = /* @__PURE__ */ ((SearchIndexingNotificationState2) => {
1040
+ SearchIndexingNotificationState2["Unknown"] = "Unknown";
1041
+ SearchIndexingNotificationState2["Off"] = "Off";
1042
+ SearchIndexingNotificationState2["On"] = "On";
1043
+ return SearchIndexingNotificationState2;
1044
+ })(SearchIndexingNotificationState || {});
1045
+ var PlacementType = /* @__PURE__ */ ((PlacementType2) => {
1046
+ PlacementType2["BEFORE"] = "BEFORE";
1047
+ PlacementType2["AFTER"] = "AFTER";
1048
+ PlacementType2["REPLACE"] = "REPLACE";
1049
+ return PlacementType2;
1050
+ })(PlacementType || {});
1051
+ var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
1052
+ DayOfWeek2["MONDAY"] = "MONDAY";
1053
+ DayOfWeek2["TUESDAY"] = "TUESDAY";
1054
+ DayOfWeek2["WEDNESDAY"] = "WEDNESDAY";
1055
+ DayOfWeek2["THURSDAY"] = "THURSDAY";
1056
+ DayOfWeek2["FRIDAY"] = "FRIDAY";
1057
+ DayOfWeek2["SATURDAY"] = "SATURDAY";
1058
+ DayOfWeek2["SUNDAY"] = "SUNDAY";
1059
+ return DayOfWeek2;
1060
+ })(DayOfWeek || {});
1061
+ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
1062
+ ResolutionMethod2["QUERY_PARAM"] = "QUERY_PARAM";
1063
+ ResolutionMethod2["SUBDOMAIN"] = "SUBDOMAIN";
1064
+ ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
1065
+ return ResolutionMethod2;
1066
+ })(ResolutionMethod || {});
1067
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1068
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1069
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1070
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
1071
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1072
+ WebhookIdentityType2["APP"] = "APP";
1073
+ return WebhookIdentityType2;
1074
+ })(WebhookIdentityType || {});
1075
+ async function createProgram2(program) {
1076
+ const { httpClient, sideEffects } = arguments[1];
1077
+ const payload = transformPaths2(
1078
+ renameKeysFromSDKRequestToRESTRequest({ program }),
1079
+ [
1080
+ {
1081
+ transformFn: transformSDKImageToRESTImage,
1082
+ paths: [{ path: "program.description.image" }]
1083
+ },
1084
+ {
1085
+ transformFn: transformSDKVideoV2ToRESTVideoV2,
1086
+ paths: [{ path: "program.description.video" }]
1087
+ },
1088
+ {
1089
+ transformFn: transformSDKPageURLToRESTPageURL,
1090
+ paths: [{ path: "program.seo.url" }]
1091
+ }
1092
+ ]
1093
+ );
1094
+ const reqOpts = createProgram(payload);
1095
+ sideEffects?.onSiteCall?.();
1096
+ try {
1097
+ const result = await httpClient.request(reqOpts);
1098
+ sideEffects?.onSuccess?.(result);
1099
+ return renameKeysFromRESTResponseToSDKResponse(
1100
+ transformPaths2(result.data, [
1101
+ {
1102
+ transformFn: transformRESTImageToSDKImage,
1103
+ paths: [{ path: "program.description.image" }]
1104
+ },
1105
+ {
1106
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1107
+ paths: [{ path: "program.description.video" }]
1108
+ },
1109
+ {
1110
+ transformFn: transformRESTPageURLToSDKPageURL,
1111
+ paths: [{ path: "program.seo.url" }]
1112
+ }
1113
+ ])
1114
+ )?.program;
1115
+ } catch (err) {
1116
+ const transformedError = sdkTransformError(
1117
+ err,
1118
+ {
1119
+ spreadPathsToArguments: {},
1120
+ explicitPathsToArguments: { program: "$[0]" },
1121
+ singleArgumentUnchanged: false
1122
+ },
1123
+ ["program"]
1124
+ );
1125
+ sideEffects?.onError?.(err);
1126
+ throw transformedError;
1127
+ }
1128
+ }
1129
+ async function duplicateProgram2(programId) {
1130
+ const { httpClient, sideEffects } = arguments[1];
1131
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1132
+ programId
1133
+ });
1134
+ const reqOpts = duplicateProgram(payload);
1135
+ sideEffects?.onSiteCall?.();
1136
+ try {
1137
+ const result = await httpClient.request(reqOpts);
1138
+ sideEffects?.onSuccess?.(result);
1139
+ return renameKeysFromRESTResponseToSDKResponse(
1140
+ transformPaths2(result.data, [
1141
+ {
1142
+ transformFn: transformRESTImageToSDKImage,
1143
+ paths: [{ path: "program.description.image" }]
1144
+ },
1145
+ {
1146
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1147
+ paths: [{ path: "program.description.video" }]
1148
+ },
1149
+ {
1150
+ transformFn: transformRESTPageURLToSDKPageURL,
1151
+ paths: [{ path: "program.seo.url" }]
1152
+ }
1153
+ ])
1154
+ );
1155
+ } catch (err) {
1156
+ const transformedError = sdkTransformError(
1157
+ err,
1158
+ {
1159
+ spreadPathsToArguments: {},
1160
+ explicitPathsToArguments: { programId: "$[0]" },
1161
+ singleArgumentUnchanged: false
1162
+ },
1163
+ ["programId"]
1164
+ );
1165
+ sideEffects?.onError?.(err);
1166
+ throw transformedError;
1167
+ }
1168
+ }
1169
+ async function getProgram2(programId) {
1170
+ const { httpClient, sideEffects } = arguments[1];
1171
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1172
+ programId
1173
+ });
1174
+ const reqOpts = getProgram(payload);
1175
+ sideEffects?.onSiteCall?.();
1176
+ try {
1177
+ const result = await httpClient.request(reqOpts);
1178
+ sideEffects?.onSuccess?.(result);
1179
+ return renameKeysFromRESTResponseToSDKResponse(
1180
+ transformPaths2(result.data, [
1181
+ {
1182
+ transformFn: transformRESTImageToSDKImage,
1183
+ paths: [{ path: "program.description.image" }]
1184
+ },
1185
+ {
1186
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1187
+ paths: [{ path: "program.description.video" }]
1188
+ },
1189
+ {
1190
+ transformFn: transformRESTPageURLToSDKPageURL,
1191
+ paths: [{ path: "program.seo.url" }]
1192
+ }
1193
+ ])
1194
+ )?.program;
1195
+ } catch (err) {
1196
+ const transformedError = sdkTransformError(
1197
+ err,
1198
+ {
1199
+ spreadPathsToArguments: {},
1200
+ explicitPathsToArguments: { programId: "$[0]" },
1201
+ singleArgumentUnchanged: false
1202
+ },
1203
+ ["programId"]
1204
+ );
1205
+ sideEffects?.onError?.(err);
1206
+ throw transformedError;
1207
+ }
1208
+ }
1209
+ async function updateProgram2(_id, program) {
1210
+ const { httpClient, sideEffects } = arguments[2];
1211
+ const payload = transformPaths2(
1212
+ renameKeysFromSDKRequestToRESTRequest({ program: { ...program, id: _id } }),
1213
+ [
1214
+ {
1215
+ transformFn: transformSDKImageToRESTImage,
1216
+ paths: [{ path: "program.description.image" }]
1217
+ },
1218
+ {
1219
+ transformFn: transformSDKVideoV2ToRESTVideoV2,
1220
+ paths: [{ path: "program.description.video" }]
1221
+ },
1222
+ {
1223
+ transformFn: transformSDKPageURLToRESTPageURL,
1224
+ paths: [{ path: "program.seo.url" }]
1225
+ }
1226
+ ]
1227
+ );
1228
+ const reqOpts = updateProgram(payload);
1229
+ sideEffects?.onSiteCall?.();
1230
+ try {
1231
+ const result = await httpClient.request(reqOpts);
1232
+ sideEffects?.onSuccess?.(result);
1233
+ return renameKeysFromRESTResponseToSDKResponse(
1234
+ transformPaths2(result.data, [
1235
+ {
1236
+ transformFn: transformRESTImageToSDKImage,
1237
+ paths: [{ path: "program.description.image" }]
1238
+ },
1239
+ {
1240
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1241
+ paths: [{ path: "program.description.video" }]
1242
+ },
1243
+ {
1244
+ transformFn: transformRESTPageURLToSDKPageURL,
1245
+ paths: [{ path: "program.seo.url" }]
1246
+ }
1247
+ ])
1248
+ )?.program;
1249
+ } catch (err) {
1250
+ const transformedError = sdkTransformError(
1251
+ err,
1252
+ {
1253
+ spreadPathsToArguments: { program: "$[1]" },
1254
+ explicitPathsToArguments: { "program.id": "$[0]" },
1255
+ singleArgumentUnchanged: false
1256
+ },
1257
+ ["_id", "program"]
1258
+ );
1259
+ sideEffects?.onError?.(err);
1260
+ throw transformedError;
1261
+ }
1262
+ }
1263
+ async function deleteProgram2(programId) {
1264
+ const { httpClient, sideEffects } = arguments[1];
1265
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1266
+ programId
1267
+ });
1268
+ const reqOpts = deleteProgram(payload);
1269
+ sideEffects?.onSiteCall?.();
1270
+ try {
1271
+ const result = await httpClient.request(reqOpts);
1272
+ sideEffects?.onSuccess?.(result);
1273
+ } catch (err) {
1274
+ const transformedError = sdkTransformError(
1275
+ err,
1276
+ {
1277
+ spreadPathsToArguments: {},
1278
+ explicitPathsToArguments: { programId: "$[0]" },
1279
+ singleArgumentUnchanged: false
1280
+ },
1281
+ ["programId"]
1282
+ );
1283
+ sideEffects?.onError?.(err);
1284
+ throw transformedError;
1285
+ }
1286
+ }
1287
+ function queryPrograms2() {
1288
+ const { httpClient, sideEffects } = arguments[0];
1289
+ return queryBuilder({
1290
+ func: async (payload) => {
1291
+ const reqOpts = queryPrograms(payload);
1292
+ sideEffects?.onSiteCall?.();
1293
+ try {
1294
+ const result = await httpClient.request(reqOpts);
1295
+ sideEffects?.onSuccess?.(result);
1296
+ return result;
1297
+ } catch (err) {
1298
+ sideEffects?.onError?.(err);
1299
+ throw err;
1300
+ }
1301
+ },
1302
+ requestTransformer: (query) => {
1303
+ const args = [query, {}];
1304
+ return renameKeysFromSDKRequestToRESTRequest({
1305
+ ...args?.[1],
1306
+ query: args?.[0]
1307
+ });
1308
+ },
1309
+ responseTransformer: ({ data }) => {
1310
+ const transformedData = renameKeysFromRESTResponseToSDKResponse(
1311
+ transformPaths2(data, [
1312
+ {
1313
+ transformFn: transformRESTImageToSDKImage,
1314
+ paths: [{ path: "programs.description.image" }]
1315
+ },
1316
+ {
1317
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1318
+ paths: [{ path: "programs.description.video" }]
1319
+ },
1320
+ {
1321
+ transformFn: transformRESTPageURLToSDKPageURL,
1322
+ paths: [{ path: "programs.seo.url" }]
1323
+ }
1324
+ ])
1325
+ );
1326
+ return {
1327
+ items: transformedData?.programs,
1328
+ pagingMetadata: transformedData?.pagingMetadata
1329
+ };
1330
+ },
1331
+ errorTransformer: (err) => {
1332
+ const transformedError = sdkTransformError(err, {
1333
+ spreadPathsToArguments: {},
1334
+ explicitPathsToArguments: { query: "$[0]" },
1335
+ singleArgumentUnchanged: false
1336
+ });
1337
+ throw transformedError;
1338
+ },
1339
+ pagingMethod: "CURSOR",
1340
+ transformationPaths: {}
1341
+ });
1342
+ }
1343
+ async function searchPrograms2(search) {
1344
+ const { httpClient, sideEffects } = arguments[1];
1345
+ const payload = renameKeysFromSDKRequestToRESTRequest({ search });
1346
+ const reqOpts = searchPrograms(payload);
1347
+ sideEffects?.onSiteCall?.();
1348
+ try {
1349
+ const result = await httpClient.request(reqOpts);
1350
+ sideEffects?.onSuccess?.(result);
1351
+ return renameKeysFromRESTResponseToSDKResponse(
1352
+ transformPaths2(result.data, [
1353
+ {
1354
+ transformFn: transformRESTImageToSDKImage,
1355
+ paths: [{ path: "programs.description.image" }]
1356
+ },
1357
+ {
1358
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1359
+ paths: [{ path: "programs.description.video" }]
1360
+ },
1361
+ {
1362
+ transformFn: transformRESTPageURLToSDKPageURL,
1363
+ paths: [{ path: "programs.seo.url" }]
1364
+ }
1365
+ ])
1366
+ );
1367
+ } catch (err) {
1368
+ const transformedError = sdkTransformError(
1369
+ err,
1370
+ {
1371
+ spreadPathsToArguments: {},
1372
+ explicitPathsToArguments: { search: "$[0]" },
1373
+ singleArgumentUnchanged: false
1374
+ },
1375
+ ["search"]
1376
+ );
1377
+ sideEffects?.onError?.(err);
1378
+ throw transformedError;
1379
+ }
1380
+ }
1381
+ async function publishProgram2(programId) {
1382
+ const { httpClient, sideEffects } = arguments[1];
1383
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1384
+ programId
1385
+ });
1386
+ const reqOpts = publishProgram(payload);
1387
+ sideEffects?.onSiteCall?.();
1388
+ try {
1389
+ const result = await httpClient.request(reqOpts);
1390
+ sideEffects?.onSuccess?.(result);
1391
+ return renameKeysFromRESTResponseToSDKResponse(
1392
+ transformPaths2(result.data, [
1393
+ {
1394
+ transformFn: transformRESTImageToSDKImage,
1395
+ paths: [{ path: "program.description.image" }]
1396
+ },
1397
+ {
1398
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1399
+ paths: [{ path: "program.description.video" }]
1400
+ },
1401
+ {
1402
+ transformFn: transformRESTPageURLToSDKPageURL,
1403
+ paths: [{ path: "program.seo.url" }]
1404
+ }
1405
+ ])
1406
+ );
1407
+ } catch (err) {
1408
+ const transformedError = sdkTransformError(
1409
+ err,
1410
+ {
1411
+ spreadPathsToArguments: {},
1412
+ explicitPathsToArguments: { programId: "$[0]" },
1413
+ singleArgumentUnchanged: false
1414
+ },
1415
+ ["programId"]
1416
+ );
1417
+ sideEffects?.onError?.(err);
1418
+ throw transformedError;
1419
+ }
1420
+ }
1421
+ async function endProgram2(programId) {
1422
+ const { httpClient, sideEffects } = arguments[1];
1423
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1424
+ programId
1425
+ });
1426
+ const reqOpts = endProgram(payload);
1427
+ sideEffects?.onSiteCall?.();
1428
+ try {
1429
+ const result = await httpClient.request(reqOpts);
1430
+ sideEffects?.onSuccess?.(result);
1431
+ return renameKeysFromRESTResponseToSDKResponse(
1432
+ transformPaths2(result.data, [
1433
+ {
1434
+ transformFn: transformRESTImageToSDKImage,
1435
+ paths: [{ path: "program.description.image" }]
1436
+ },
1437
+ {
1438
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1439
+ paths: [{ path: "program.description.video" }]
1440
+ },
1441
+ {
1442
+ transformFn: transformRESTPageURLToSDKPageURL,
1443
+ paths: [{ path: "program.seo.url" }]
1444
+ }
1445
+ ])
1446
+ );
1447
+ } catch (err) {
1448
+ const transformedError = sdkTransformError(
1449
+ err,
1450
+ {
1451
+ spreadPathsToArguments: {},
1452
+ explicitPathsToArguments: { programId: "$[0]" },
1453
+ singleArgumentUnchanged: false
1454
+ },
1455
+ ["programId"]
1456
+ );
1457
+ sideEffects?.onError?.(err);
1458
+ throw transformedError;
1459
+ }
1460
+ }
1461
+ async function archiveProgram2(programId) {
1462
+ const { httpClient, sideEffects } = arguments[1];
1463
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1464
+ programId
1465
+ });
1466
+ const reqOpts = archiveProgram(payload);
1467
+ sideEffects?.onSiteCall?.();
1468
+ try {
1469
+ const result = await httpClient.request(reqOpts);
1470
+ sideEffects?.onSuccess?.(result);
1471
+ return renameKeysFromRESTResponseToSDKResponse(
1472
+ transformPaths2(result.data, [
1473
+ {
1474
+ transformFn: transformRESTImageToSDKImage,
1475
+ paths: [{ path: "program.description.image" }]
1476
+ },
1477
+ {
1478
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1479
+ paths: [{ path: "program.description.video" }]
1480
+ },
1481
+ {
1482
+ transformFn: transformRESTPageURLToSDKPageURL,
1483
+ paths: [{ path: "program.seo.url" }]
1484
+ }
1485
+ ])
1486
+ );
1487
+ } catch (err) {
1488
+ const transformedError = sdkTransformError(
1489
+ err,
1490
+ {
1491
+ spreadPathsToArguments: {},
1492
+ explicitPathsToArguments: { programId: "$[0]" },
1493
+ singleArgumentUnchanged: false
1494
+ },
1495
+ ["programId"]
1496
+ );
1497
+ sideEffects?.onError?.(err);
1498
+ throw transformedError;
1499
+ }
1500
+ }
1501
+ async function bulkUpdatePrograms2(programs, options) {
1502
+ const { httpClient, sideEffects } = arguments[2];
1503
+ const payload = transformPaths2(
1504
+ renameKeysFromSDKRequestToRESTRequest({
1505
+ programs,
1506
+ returnEntity: options?.returnEntity
1507
+ }),
1508
+ [
1509
+ {
1510
+ transformFn: transformSDKImageToRESTImage,
1511
+ paths: [{ path: "programs.program.description.image" }]
1512
+ },
1513
+ {
1514
+ transformFn: transformSDKVideoV2ToRESTVideoV2,
1515
+ paths: [{ path: "programs.program.description.video" }]
1516
+ },
1517
+ {
1518
+ transformFn: transformSDKPageURLToRESTPageURL,
1519
+ paths: [{ path: "programs.program.seo.url" }]
1520
+ }
1521
+ ]
1522
+ );
1523
+ const reqOpts = bulkUpdatePrograms(payload);
1524
+ sideEffects?.onSiteCall?.();
1525
+ try {
1526
+ const result = await httpClient.request(reqOpts);
1527
+ sideEffects?.onSuccess?.(result);
1528
+ return renameKeysFromRESTResponseToSDKResponse(
1529
+ transformPaths2(result.data, [
1530
+ {
1531
+ transformFn: transformRESTImageToSDKImage,
1532
+ paths: [{ path: "results.item.description.image" }]
1533
+ },
1534
+ {
1535
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1536
+ paths: [{ path: "results.item.description.video" }]
1537
+ },
1538
+ {
1539
+ transformFn: transformRESTPageURLToSDKPageURL,
1540
+ paths: [{ path: "results.item.seo.url" }]
1541
+ }
1542
+ ])
1543
+ );
1544
+ } catch (err) {
1545
+ const transformedError = sdkTransformError(
1546
+ err,
1547
+ {
1548
+ spreadPathsToArguments: {},
1549
+ explicitPathsToArguments: {
1550
+ programs: "$[0]",
1551
+ returnEntity: "$[1].returnEntity"
1552
+ },
1553
+ singleArgumentUnchanged: false
1554
+ },
1555
+ ["programs", "options"]
1556
+ );
1557
+ sideEffects?.onError?.(err);
1558
+ throw transformedError;
1559
+ }
1560
+ }
1561
+ async function countPrograms2(options) {
1562
+ const { httpClient, sideEffects } = arguments[1];
1563
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1564
+ filter: options?.filter
1565
+ });
1566
+ const reqOpts = countPrograms(payload);
1567
+ sideEffects?.onSiteCall?.();
1568
+ try {
1569
+ const result = await httpClient.request(reqOpts);
1570
+ sideEffects?.onSuccess?.(result);
1571
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1572
+ } catch (err) {
1573
+ const transformedError = sdkTransformError(
1574
+ err,
1575
+ {
1576
+ spreadPathsToArguments: {},
1577
+ explicitPathsToArguments: { filter: "$[0].filter" },
1578
+ singleArgumentUnchanged: false
1579
+ },
1580
+ ["options"]
1581
+ );
1582
+ sideEffects?.onError?.(err);
1583
+ throw transformedError;
1584
+ }
1585
+ }
1586
+ async function listSamplePrograms2() {
1587
+ const { httpClient, sideEffects } = arguments[0];
1588
+ const payload = renameKeysFromSDKRequestToRESTRequest({});
1589
+ const reqOpts = listSamplePrograms(payload);
1590
+ sideEffects?.onSiteCall?.();
1591
+ try {
1592
+ const result = await httpClient.request(reqOpts);
1593
+ sideEffects?.onSuccess?.(result);
1594
+ return renameKeysFromRESTResponseToSDKResponse(
1595
+ transformPaths2(result.data, [
1596
+ {
1597
+ transformFn: transformRESTImageToSDKImage,
1598
+ paths: [{ path: "programs.program.description.image" }]
1599
+ },
1600
+ {
1601
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1602
+ paths: [{ path: "programs.program.description.video" }]
1603
+ },
1604
+ {
1605
+ transformFn: transformRESTPageURLToSDKPageURL,
1606
+ paths: [{ path: "programs.program.seo.url" }]
1607
+ }
1608
+ ])
1609
+ );
1610
+ } catch (err) {
1611
+ const transformedError = sdkTransformError(
1612
+ err,
1613
+ {
1614
+ spreadPathsToArguments: {},
1615
+ explicitPathsToArguments: {},
1616
+ singleArgumentUnchanged: false
1617
+ },
1618
+ []
1619
+ );
1620
+ sideEffects?.onError?.(err);
1621
+ throw transformedError;
1622
+ }
1623
+ }
1624
+
1625
+ // src/online-programs-v3-program-programs.public.ts
1626
+ function createProgram3(httpClient) {
1627
+ return (program) => createProgram2(
1628
+ program,
1629
+ // @ts-ignore
1630
+ { httpClient }
1631
+ );
1632
+ }
1633
+ function duplicateProgram3(httpClient) {
1634
+ return (programId) => duplicateProgram2(
1635
+ programId,
1636
+ // @ts-ignore
1637
+ { httpClient }
1638
+ );
1639
+ }
1640
+ function getProgram3(httpClient) {
1641
+ return (programId) => getProgram2(
1642
+ programId,
1643
+ // @ts-ignore
1644
+ { httpClient }
1645
+ );
1646
+ }
1647
+ function updateProgram3(httpClient) {
1648
+ return (_id, program) => updateProgram2(
1649
+ _id,
1650
+ program,
1651
+ // @ts-ignore
1652
+ { httpClient }
1653
+ );
1654
+ }
1655
+ function deleteProgram3(httpClient) {
1656
+ return (programId) => deleteProgram2(
1657
+ programId,
1658
+ // @ts-ignore
1659
+ { httpClient }
1660
+ );
1661
+ }
1662
+ function queryPrograms3(httpClient) {
1663
+ return () => queryPrograms2(
1664
+ // @ts-ignore
1665
+ { httpClient }
1666
+ );
1667
+ }
1668
+ function searchPrograms3(httpClient) {
1669
+ return (search) => searchPrograms2(
1670
+ search,
1671
+ // @ts-ignore
1672
+ { httpClient }
1673
+ );
1674
+ }
1675
+ function publishProgram3(httpClient) {
1676
+ return (programId) => publishProgram2(
1677
+ programId,
1678
+ // @ts-ignore
1679
+ { httpClient }
1680
+ );
1681
+ }
1682
+ function endProgram3(httpClient) {
1683
+ return (programId) => endProgram2(
1684
+ programId,
1685
+ // @ts-ignore
1686
+ { httpClient }
1687
+ );
1688
+ }
1689
+ function archiveProgram3(httpClient) {
1690
+ return (programId) => archiveProgram2(
1691
+ programId,
1692
+ // @ts-ignore
1693
+ { httpClient }
1694
+ );
1695
+ }
1696
+ function bulkUpdatePrograms3(httpClient) {
1697
+ return (programs, options) => bulkUpdatePrograms2(
1698
+ programs,
1699
+ options,
1700
+ // @ts-ignore
1701
+ { httpClient }
1702
+ );
1703
+ }
1704
+ function countPrograms3(httpClient) {
1705
+ return (options) => countPrograms2(
1706
+ options,
1707
+ // @ts-ignore
1708
+ { httpClient }
1709
+ );
1710
+ }
1711
+ function listSamplePrograms3(httpClient) {
1712
+ return () => listSamplePrograms2(
1713
+ // @ts-ignore
1714
+ { httpClient }
1715
+ );
1716
+ }
1717
+
1718
+ // src/online-programs-v3-program-programs.context.ts
1719
+ import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
1720
+ var createProgram4 = /* @__PURE__ */ createRESTModule(createProgram3);
1721
+ var duplicateProgram4 = /* @__PURE__ */ createRESTModule(duplicateProgram3);
1722
+ var getProgram4 = /* @__PURE__ */ createRESTModule(getProgram3);
1723
+ var updateProgram4 = /* @__PURE__ */ createRESTModule(updateProgram3);
1724
+ var deleteProgram4 = /* @__PURE__ */ createRESTModule(deleteProgram3);
1725
+ var queryPrograms4 = /* @__PURE__ */ createRESTModule(queryPrograms3);
1726
+ var searchPrograms4 = /* @__PURE__ */ createRESTModule(searchPrograms3);
1727
+ var publishProgram4 = /* @__PURE__ */ createRESTModule(publishProgram3);
1728
+ var endProgram4 = /* @__PURE__ */ createRESTModule(endProgram3);
1729
+ var archiveProgram4 = /* @__PURE__ */ createRESTModule(archiveProgram3);
1730
+ var bulkUpdatePrograms4 = /* @__PURE__ */ createRESTModule(bulkUpdatePrograms3);
1731
+ var countPrograms4 = /* @__PURE__ */ createRESTModule(countPrograms3);
1732
+ var listSamplePrograms4 = /* @__PURE__ */ createRESTModule(listSamplePrograms3);
1733
+ export {
1734
+ AccessType,
1735
+ AggregationType,
1736
+ BulkActionType,
1737
+ DayOfWeek,
1738
+ DeleteStatus,
1739
+ Enum,
1740
+ Interval,
1741
+ MissingValues,
1742
+ Mode,
1743
+ Namespace,
1744
+ NestedAggregationType,
1745
+ PlacementType,
1746
+ ResolutionMethod,
1747
+ RestrictionsAccessType,
1748
+ ScalarType,
1749
+ SearchIndexingNotificationState,
1750
+ SiteCreatedContext,
1751
+ SortDirection,
1752
+ SortOrder,
1753
+ SortType,
1754
+ State,
1755
+ Status,
1756
+ Trigger,
1757
+ V3State,
1758
+ WebhookIdentityType,
1759
+ archiveProgram4 as archiveProgram,
1760
+ bulkUpdatePrograms4 as bulkUpdatePrograms,
1761
+ countPrograms4 as countPrograms,
1762
+ createProgram4 as createProgram,
1763
+ deleteProgram4 as deleteProgram,
1764
+ duplicateProgram4 as duplicateProgram,
1765
+ endProgram4 as endProgram,
1766
+ getProgram4 as getProgram,
1767
+ listSamplePrograms4 as listSamplePrograms,
1768
+ publishProgram4 as publishProgram,
1769
+ queryPrograms4 as queryPrograms,
1770
+ searchPrograms4 as searchPrograms,
1771
+ updateProgram4 as updateProgram
1772
+ };
1773
+ //# sourceMappingURL=index.mjs.map