@wix/auto_sdk_online-programs_sections 1.0.12 → 1.0.14

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 (50) hide show
  1. package/build/cjs/index.d.ts +49 -31
  2. package/build/cjs/index.js +18 -149
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +221 -154
  5. package/build/cjs/index.typings.js +18 -141
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +89 -77
  8. package/build/cjs/meta.js +8 -111
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +537 -0
  11. package/build/cjs/schemas.js +852 -0
  12. package/build/cjs/schemas.js.map +1 -0
  13. package/build/es/index.d.mts +49 -31
  14. package/build/es/index.mjs +16 -147
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +221 -154
  17. package/build/es/index.typings.mjs +16 -139
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +89 -77
  20. package/build/es/meta.mjs +8 -110
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +537 -0
  23. package/build/es/schemas.mjs +796 -0
  24. package/build/es/schemas.mjs.map +1 -0
  25. package/build/internal/cjs/index.d.ts +49 -31
  26. package/build/internal/cjs/index.js +18 -149
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +221 -154
  29. package/build/internal/cjs/index.typings.js +18 -141
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +89 -77
  32. package/build/internal/cjs/meta.js +8 -111
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +537 -0
  35. package/build/internal/cjs/schemas.js +852 -0
  36. package/build/internal/cjs/schemas.js.map +1 -0
  37. package/build/internal/es/index.d.mts +49 -31
  38. package/build/internal/es/index.mjs +16 -147
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +221 -154
  41. package/build/internal/es/index.typings.mjs +16 -139
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +89 -77
  44. package/build/internal/es/meta.mjs +8 -110
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +537 -0
  47. package/build/internal/es/schemas.mjs +796 -0
  48. package/build/internal/es/schemas.mjs.map +1 -0
  49. package/package.json +12 -5
  50. package/schemas/package.json +3 -0
@@ -1,58 +1,64 @@
1
- import { CreateSectionRequest as CreateSectionRequest$1, CreateSectionResponse as CreateSectionResponse$1, BulkCreateSectionRequest as BulkCreateSectionRequest$1, BulkCreateSectionResponse as BulkCreateSectionResponse$1, BulkCreateSectionMigrationRequest as BulkCreateSectionMigrationRequest$1, BulkCreateSectionMigrationResponse as BulkCreateSectionMigrationResponse$1, GetSectionRequest as GetSectionRequest$1, GetSectionResponse as GetSectionResponse$1, UpdateSectionRequest as UpdateSectionRequest$1, UpdateSectionResponse as UpdateSectionResponse$1, DeleteSectionRequest as DeleteSectionRequest$1, DeleteSectionResponse as DeleteSectionResponse$1, QuerySectionsRequest as QuerySectionsRequest$1, QuerySectionsResponse as QuerySectionsResponse$1, ListSectionsRequest as ListSectionsRequest$1, ListSectionsResponse as ListSectionsResponse$1, CloneSectionRequest as CloneSectionRequest$1, CloneSectionResponse as CloneSectionResponse$1, MoveSectionRequest as MoveSectionRequest$1, MoveSectionResponse as MoveSectionResponse$1, PublishSectionRequest as PublishSectionRequest$1, PublishSectionResponse as PublishSectionResponse$1 } from './index.typings.mjs';
1
+ import { CreateSectionRequest as CreateSectionRequest$1, CreateSectionResponse as CreateSectionResponse$1, BulkCreateSectionRequest as BulkCreateSectionRequest$1, BulkCreateSectionResponse as BulkCreateSectionResponse$1, GetSectionRequest as GetSectionRequest$1, GetSectionResponse as GetSectionResponse$1, UpdateSectionRequest as UpdateSectionRequest$1, UpdateSectionResponse as UpdateSectionResponse$1, DeleteSectionRequest as DeleteSectionRequest$1, DeleteSectionResponse as DeleteSectionResponse$1, QuerySectionsRequest as QuerySectionsRequest$1, QuerySectionsResponse as QuerySectionsResponse$1, ListSectionsRequest as ListSectionsRequest$1, ListSectionsResponse as ListSectionsResponse$1, CloneSectionRequest as CloneSectionRequest$1, CloneSectionResponse as CloneSectionResponse$1, MoveSectionRequest as MoveSectionRequest$1, MoveSectionResponse as MoveSectionResponse$1, PublishSectionRequest as PublishSectionRequest$1, PublishSectionResponse as PublishSectionResponse$1 } from './index.typings.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
+ /**
5
+ * A section groups related steps within an online program.
6
+ *
7
+ * Sections can be drafted, published, reordered, and optionally released after a delay from the start of the parent program.
8
+ */
4
9
  interface Section {
5
10
  /**
6
- * Program Section ID.
11
+ * Section ID.
7
12
  * @format GUID
8
13
  * @readonly
9
14
  */
10
15
  id?: string | null;
11
16
  /**
12
- * Represents the current state of an item. Each time the item is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision
17
+ * Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current `revision` must be passed when updating or publishing the section.
13
18
  * @readonly
14
19
  */
15
20
  revision?: string | null;
16
21
  /**
17
- * Represents the time this Section was created
22
+ * Date and time the section was created.
18
23
  * @readonly
19
24
  */
20
25
  createdDate?: Date | null;
21
26
  /**
22
- * Represents the time this Section was last updated
27
+ * Date and time the section was last updated.
23
28
  * @readonly
24
29
  */
25
30
  updatedDate?: Date | null;
26
31
  /**
27
- * Program Id to which this section is assigned to.
32
+ * Program ID of the parent program. Provide it when creating a section. After creation, this value can't be changed.
28
33
  * @format GUID
29
34
  * @readonly
35
+ * @immutable
30
36
  */
31
37
  programId?: string;
32
- /** title, description and media content. */
38
+ /** Section title and deprecated backward-compatibility content fields. */
33
39
  description?: Description;
34
- /** is this section published yet? */
40
+ /** Publication state of the section. */
35
41
  state?: StateWithLiterals;
36
42
  /**
37
- * number of program steps in this section.
43
+ * Legacy total number of steps in the section.
38
44
  * @readonly
39
45
  */
40
46
  oldTotalSteps?: number;
41
47
  /**
42
- * number of program steps in this section.
48
+ * Total number of steps in the section.
43
49
  * @readonly
44
50
  */
45
51
  totalSteps?: number | null;
46
- /** should we open this section as a trial content even though the owning program isn't purchased yet? */
52
+ /** Whether participants can access the section as trial content before purchasing the parent program. */
47
53
  trialSection?: boolean;
48
- /** field for manual ordering of sections */
54
+ /** Position rank used to order sections within a program. To reorder sections, call Move Section. */
49
55
  ordering?: number;
50
56
  /**
51
- * open after defined number of days passed.
57
+ * Number of days after the parent program starts before the section becomes available. Use `0` to make the section available immediately.
52
58
  * @max 5000
53
59
  */
54
60
  delayInDays?: number;
55
- /** extensible field */
61
+ /** Custom field data for the section. */
56
62
  extendedFields?: ExtendedFields;
57
63
  }
58
64
  interface Description extends DescriptionMediaOneOf {
@@ -68,7 +74,11 @@ interface Description extends DescriptionMediaOneOf {
68
74
  video?: VideoV2;
69
75
  /** @maxLength 500 */
70
76
  title?: string;
71
- /** @maxLength 10000000 */
77
+ /**
78
+ * @maxLength 10000000
79
+ * @deprecated
80
+ * @targetRemovalDate 2026-06-25
81
+ */
72
82
  details?: string | null;
73
83
  }
74
84
  /** @oneof */
@@ -143,15 +153,13 @@ interface VideoResolution {
143
153
  format?: string;
144
154
  }
145
155
  declare enum State {
146
- /** invalid default state. */
147
- UNKNOWN_STATE = "UNKNOWN_STATE",
148
156
  /** the section isn't ready to be shown to participants. */
149
157
  DRAFT = "DRAFT",
150
158
  /** this content is visible to participants. */
151
159
  PUBLISHED = "PUBLISHED"
152
160
  }
153
161
  /** @enumType */
154
- type StateWithLiterals = State | 'UNKNOWN_STATE' | 'DRAFT' | 'PUBLISHED';
162
+ type StateWithLiterals = State | 'DRAFT' | 'PUBLISHED';
155
163
  interface ExtendedFields {
156
164
  /**
157
165
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
@@ -274,40 +282,43 @@ interface UpdateExistingOperation {
274
282
  /** documents to update */
275
283
  documents?: IndexDocument[];
276
284
  }
285
+ /** Payload for the Section Updated event. */
277
286
  interface SectionUpdated {
278
- /** Section before update. */
287
+ /** Section before the update. */
279
288
  previous?: Section;
280
- /** Section after update. */
289
+ /** Section after the update. */
281
290
  current?: Section;
282
291
  }
292
+ /** Payload for the Section Deleted event. */
283
293
  interface SectionDeleted {
284
- /** Full section that was deleted */
294
+ /** Section that was deleted. */
285
295
  section?: Section;
286
296
  }
297
+ /** Payload for the Section Cloned event. */
287
298
  interface SectionCloned {
288
- /** Section which was used as a prototype for cloning. */
299
+ /** Source section used for cloning. */
289
300
  prototype?: Section;
290
- /** Result of section cloning. */
301
+ /** Cloned section. */
291
302
  cloned?: Section;
292
303
  }
293
304
  interface SectionMoved {
294
305
  /**
295
- * Moved section id
306
+ * ID of the moved section.
296
307
  * @format GUID
297
308
  */
298
309
  sectionId?: string;
299
- /** section position */
310
+ /** New ordering rank assigned to the moved section. */
300
311
  newSectionPositionRank?: number;
301
312
  }
302
313
  interface SectionPublished {
303
314
  /**
304
- * Published section id
315
+ * ID of the published section.
305
316
  * @format GUID
306
317
  */
307
318
  sectionId?: string;
308
319
  }
309
320
  interface CreateSectionRequest {
310
- /** Section to be created. */
321
+ /** Section to create. Must include `section.program_id`. */
311
322
  section: Section;
312
323
  /**
313
324
  * Predefined sets of fields to return.
@@ -316,20 +327,18 @@ interface CreateSectionRequest {
316
327
  fields?: RequestedFieldsWithLiterals[];
317
328
  }
318
329
  declare enum RequestedFields {
319
- /** not implemented, invalid default value. */
320
- UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
321
330
  /** return total number of steps in this section. */
322
331
  TOTAL_STEPS = "TOTAL_STEPS"
323
332
  }
324
333
  /** @enumType */
325
- type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELD' | 'TOTAL_STEPS';
334
+ type RequestedFieldsWithLiterals = RequestedFields | 'TOTAL_STEPS';
326
335
  interface CreateSectionResponse {
327
- /** The created Section. */
336
+ /** Created section. */
328
337
  section?: Section;
329
338
  }
330
339
  interface BulkCreateSectionRequest {
331
340
  /**
332
- * List of sections you want to create
341
+ * List of sections to create. Each section must include `program_id`, and all sections must belong to the same program.
333
342
  * @minSize 1
334
343
  * @maxSize 100
335
344
  */
@@ -341,17 +350,17 @@ interface BulkCreateSectionRequest {
341
350
  fields?: RequestedFieldsWithLiterals[];
342
351
  }
343
352
  interface BulkCreateSectionResponse {
344
- /** bulk results */
353
+ /** Results for the bulk create operation. */
345
354
  results?: BulkSectionResult[];
346
- /** bulk metadata */
355
+ /** Summary of the bulk create operation. */
347
356
  bulkActionMetadata?: BulkActionMetadata;
348
357
  }
349
358
  interface BulkSectionResult {
350
- /** item metadata */
359
+ /** Metadata for the bulk operation result. */
351
360
  itemMetadata?: ItemMetadata;
352
- /** created section */
361
+ /** Created section. */
353
362
  item?: Section;
354
- /** indicator whether it was create or update */
363
+ /** Action associated with the bulk result. */
355
364
  action?: BulkActionTypeWithLiterals;
356
365
  }
357
366
  interface ItemMetadata {
@@ -390,16 +399,16 @@ interface BulkActionMetadata {
390
399
  }
391
400
  interface BulkCreateSectionMigrationRequest {
392
401
  /**
393
- * List of sections you want to create
402
+ * List of sections to create.
394
403
  * @minSize 1
395
404
  * @maxSize 100
396
405
  */
397
- sections: Section[];
406
+ sections?: Section[];
398
407
  }
399
408
  interface BulkCreateSectionMigrationResponse {
400
- /** bulk results */
409
+ /** Results for the bulk create operation. */
401
410
  results?: BulkSectionResult[];
402
- /** bulk metadata */
411
+ /** Summary of the bulk create operation. */
403
412
  bulkActionMetadata?: BulkActionMetadata;
404
413
  }
405
414
  interface GetSectionRequest {
@@ -408,7 +417,7 @@ interface GetSectionRequest {
408
417
  * @format GUID
409
418
  */
410
419
  sectionId: string;
411
- /** Whenever to return description only with title or with details as well */
420
+ /** Compatibility option for existing integrations. Current section responses return the section title. */
412
421
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
413
422
  /**
414
423
  * Predefined sets of fields to return.
@@ -417,17 +426,19 @@ interface GetSectionRequest {
417
426
  fields?: RequestedFieldsWithLiterals[];
418
427
  }
419
428
  declare enum DescriptionFieldSet {
429
+ /** Retained for backward compatibility. Current section responses return the section title. */
420
430
  STANDARD = "STANDARD",
431
+ /** Retained for backward compatibility. Current section responses return the section title. */
421
432
  EXTENDED = "EXTENDED"
422
433
  }
423
434
  /** @enumType */
424
435
  type DescriptionFieldSetWithLiterals = DescriptionFieldSet | 'STANDARD' | 'EXTENDED';
425
436
  interface GetSectionResponse {
426
- /** The requested Section. */
437
+ /** Retrieved section. */
427
438
  section?: Section;
428
439
  }
429
440
  interface UpdateSectionRequest {
430
- /** Section to be updated, may be partial. */
441
+ /** Section to update. Include `section.id`, `section.revision`, and the fields to update. */
431
442
  section?: Section;
432
443
  /**
433
444
  * Predefined sets of fields to return.
@@ -436,12 +447,12 @@ interface UpdateSectionRequest {
436
447
  fields?: RequestedFieldsWithLiterals[];
437
448
  }
438
449
  interface UpdateSectionResponse {
439
- /** Updated Section. */
450
+ /** Updated section. */
440
451
  section?: Section;
441
452
  }
442
453
  interface DeleteSectionRequest {
443
454
  /**
444
- * Id of the Section to delete.
455
+ * ID of the section to delete.
445
456
  * @format GUID
446
457
  */
447
458
  sectionId: string;
@@ -450,27 +461,29 @@ interface DeleteSectionResponse {
450
461
  }
451
462
  interface DeleteAllProgramSectionsRequest {
452
463
  /**
453
- * Program id to delete sections from
464
+ * Program ID to delete sections from.
454
465
  * @format GUID
455
466
  */
456
467
  programId?: string;
457
468
  }
458
469
  interface DeleteAllProgramSectionsResponse {
459
- /** Total count of sections in the program */
470
+ /** Total number of sections in the program. */
460
471
  sectionsTotal?: number;
461
- /** Count of successfully deleted sections */
472
+ /** Number of sections that were deleted successfully. */
462
473
  successfulCount?: number;
463
- /** Count of sections that failed to be deleted */
474
+ /** Number of sections that couldn't be deleted. */
464
475
  failedCount?: number;
465
476
  }
466
477
  interface QuerySectionsRequest {
467
478
  /** WQL expression. */
468
479
  query?: CursorQuery;
469
- /** Whenever to return description only with title or with details as well */
480
+ /** Compatibility option for existing integrations. Current section responses return the section title. */
470
481
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
471
482
  /**
472
- * Program id to query sections
473
- * @maxLength 36
483
+ * Deprecated. Program ID used to scope the query. Use `query.filter` instead.
484
+ * @deprecated
485
+ * @replacedBy wix.common.CursorQuery
486
+ * @targetRemovalDate 2026-06-30
474
487
  */
475
488
  programId?: string;
476
489
  /**
@@ -540,9 +553,9 @@ interface CursorPaging {
540
553
  cursor?: string | null;
541
554
  }
542
555
  interface QuerySectionsResponse {
543
- /** List of Sections. */
556
+ /** Matching sections. */
544
557
  sections?: Section[];
545
- /** Paging metadata */
558
+ /** Paging metadata. */
546
559
  pagingMetadata?: CursorPagingMetadata;
547
560
  }
548
561
  interface CursorPagingMetadata {
@@ -572,11 +585,11 @@ interface Cursors {
572
585
  }
573
586
  interface ListSectionsRequest {
574
587
  /**
575
- * Program id to list sections
588
+ * Program ID to list sections for.
576
589
  * @format GUID
577
590
  */
578
591
  programId: string;
579
- /** Whenever to return description only with title or with details as well */
592
+ /** Compatibility option for existing integrations. Current section responses return the section title. */
580
593
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
581
594
  /**
582
595
  * Predefined sets of fields to return.
@@ -586,14 +599,14 @@ interface ListSectionsRequest {
586
599
  }
587
600
  interface ListSectionsResponse {
588
601
  /**
589
- * sections
602
+ * Sections in the requested program.
590
603
  * @maxSize 1000
591
604
  */
592
605
  sections?: Section[];
593
606
  }
594
607
  interface CloneSectionRequest {
595
608
  /**
596
- * Section to clone
609
+ * ID of the section to clone.
597
610
  * @format GUID
598
611
  */
599
612
  sectionId: string;
@@ -604,21 +617,21 @@ interface CloneSectionRequest {
604
617
  fields?: RequestedFieldsWithLiterals[];
605
618
  }
606
619
  interface CloneSectionResponse {
607
- /** cloned section */
620
+ /** Cloned section. */
608
621
  section?: Section;
609
622
  }
610
623
  interface MoveSectionRequest {
611
624
  /**
612
- * Section to move
625
+ * ID of the section to move.
613
626
  * @format GUID
614
627
  */
615
628
  sectionId?: string;
616
629
  /**
617
- * change section position to be after the specified section. If empty insert in the "0" position.
630
+ * ID of the section that the moved section should be placed after. Leave empty to move the section to the beginning of the program.
618
631
  * @format GUID
619
632
  */
620
633
  afterSectionId?: string | null;
621
- /** section revision */
634
+ /** Current revision of the section. */
622
635
  revision?: string;
623
636
  /**
624
637
  * Predefined sets of fields to return.
@@ -627,16 +640,16 @@ interface MoveSectionRequest {
627
640
  fields?: RequestedFieldsWithLiterals[];
628
641
  }
629
642
  interface MoveSectionResponse {
630
- /** updated section which was moved */
643
+ /** Moved section. */
631
644
  section?: Section;
632
645
  }
633
646
  interface PublishSectionRequest {
634
647
  /**
635
- * Section to publish
648
+ * ID of the section to publish.
636
649
  * @format GUID
637
650
  */
638
651
  sectionId?: string;
639
- /** section revision */
652
+ /** Current revision of the section. */
640
653
  revision?: string;
641
654
  /**
642
655
  * Predefined sets of fields to return.
@@ -645,38 +658,38 @@ interface PublishSectionRequest {
645
658
  fields?: RequestedFieldsWithLiterals[];
646
659
  }
647
660
  interface PublishSectionResponse {
648
- /** Published section */
661
+ /** Published section. */
649
662
  section?: Section;
650
663
  }
651
664
  interface BulkCloneSectionRequest {
652
665
  /**
653
- * id of program which was cloned
666
+ * ID of the program that was cloned.
654
667
  * @format GUID
655
668
  */
656
669
  prototypeProgramId?: string;
657
670
  /**
658
- * id of program created after clone
671
+ * ID of the program created by the clone operation.
659
672
  * @format GUID
660
673
  */
661
674
  clonedProgramId?: string;
662
675
  }
663
676
  interface BulkCloneSectionResponse {
664
677
  /**
665
- * id of program which was cloned
678
+ * ID of the program that was cloned.
666
679
  * @format GUID
667
680
  */
668
681
  prototypeProgramId?: string;
669
682
  /**
670
- * id of program created after clone
683
+ * ID of the program created by the clone operation.
671
684
  * @format GUID
672
685
  */
673
686
  clonedProgramId?: string;
674
- /** mapping of original to cloned section ids */
687
+ /** Mapping from original section IDs to cloned section IDs. */
675
688
  prototypeIdToClonedId?: Record<string, string>;
676
689
  }
677
690
  interface RestoreSectionFromTrashRequest {
678
691
  /**
679
- * section id to restore
692
+ * ID of the section to restore.
680
693
  * @format GUID
681
694
  */
682
695
  sectionId?: string;
@@ -687,7 +700,7 @@ interface RestoreSectionFromTrashRequest {
687
700
  fields?: RequestedFieldsWithLiterals[];
688
701
  }
689
702
  interface RestoreSectionFromTrashResponse {
690
- /** restored section */
703
+ /** Restored section. */
691
704
  section?: Section;
692
705
  }
693
706
  interface DomainEvent extends DomainEventBodyOneOf {
@@ -719,7 +732,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
719
732
  /** If present, indicates the action that triggered the event. */
720
733
  originatedFrom?: string | null;
721
734
  /**
722
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
735
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
723
736
  * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
724
737
  */
725
738
  entityEventSequence?: string | null;
@@ -883,7 +896,6 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
883
896
  };
884
897
  declare function createSection(): __PublicMethodMetaInfo<'POST', {}, CreateSectionRequest$1, CreateSectionRequest, CreateSectionResponse$1, CreateSectionResponse>;
885
898
  declare function bulkCreateSection(): __PublicMethodMetaInfo<'POST', {}, BulkCreateSectionRequest$1, BulkCreateSectionRequest, BulkCreateSectionResponse$1, BulkCreateSectionResponse>;
886
- declare function bulkCreateSectionMigration(): __PublicMethodMetaInfo<'POST', {}, BulkCreateSectionMigrationRequest$1, BulkCreateSectionMigrationRequest, BulkCreateSectionMigrationResponse$1, BulkCreateSectionMigrationResponse>;
887
899
  declare function getSection(): __PublicMethodMetaInfo<'GET', {
888
900
  sectionId: string;
889
901
  }, GetSectionRequest$1, GetSectionRequest, GetSectionResponse$1, GetSectionResponse>;
@@ -901,4 +913,4 @@ declare function cloneSection(): __PublicMethodMetaInfo<'POST', {
901
913
  declare function moveSection(): __PublicMethodMetaInfo<'PATCH', {}, MoveSectionRequest$1, MoveSectionRequest, MoveSectionResponse$1, MoveSectionResponse>;
902
914
  declare function publishSection(): __PublicMethodMetaInfo<'PATCH', {}, PublishSectionRequest$1, PublishSectionRequest, PublishSectionResponse$1, PublishSectionResponse>;
903
915
 
904
- export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, BulkActionType as BulkActionTypeOriginal, type BulkActionTypeWithLiterals as BulkActionTypeWithLiteralsOriginal, type BulkCloneSectionRequest as BulkCloneSectionRequestOriginal, type BulkCloneSectionResponse as BulkCloneSectionResponseOriginal, type BulkCreateSectionMigrationRequest as BulkCreateSectionMigrationRequestOriginal, type BulkCreateSectionMigrationResponse as BulkCreateSectionMigrationResponseOriginal, type BulkCreateSectionRequest as BulkCreateSectionRequestOriginal, type BulkCreateSectionResponse as BulkCreateSectionResponseOriginal, type BulkSectionResult as BulkSectionResultOriginal, type CloneSectionRequest as CloneSectionRequestOriginal, type CloneSectionResponse as CloneSectionResponseOriginal, type CreateSectionRequest as CreateSectionRequestOriginal, type CreateSectionResponse as CreateSectionResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteAllProgramSectionsRequest as DeleteAllProgramSectionsRequestOriginal, type DeleteAllProgramSectionsResponse as DeleteAllProgramSectionsResponseOriginal, type DeleteByFilterOperation as DeleteByFilterOperationOriginal, type DeleteByIdsOperation as DeleteByIdsOperationOriginal, type DeleteSectionRequest as DeleteSectionRequestOriginal, type DeleteSectionResponse as DeleteSectionResponseOriginal, DescriptionFieldSet as DescriptionFieldSetOriginal, type DescriptionFieldSetWithLiterals as DescriptionFieldSetWithLiteralsOriginal, type DescriptionMediaOneOf as DescriptionMediaOneOfOriginal, type Description as DescriptionOriginal, type DocumentImage as DocumentImageOriginal, type DocumentPayload as DocumentPayloadOriginal, type DocumentUpdateOperation as DocumentUpdateOperationOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, Enum as EnumOriginal, type EnumWithLiterals as EnumWithLiteralsOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FocalPoint as FocalPointOriginal, type GetSectionRequest as GetSectionRequestOriginal, type GetSectionResponse as GetSectionResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type IndexDocument as IndexDocumentOriginal, type ItemMetadata as ItemMetadataOriginal, type ListSectionsRequest as ListSectionsRequestOriginal, type ListSectionsResponse as ListSectionsResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MoveSectionRequest as MoveSectionRequestOriginal, type MoveSectionResponse as MoveSectionResponseOriginal, type PublishSectionRequest as PublishSectionRequestOriginal, type PublishSectionResponse as PublishSectionResponseOriginal, type QuerySectionsRequest as QuerySectionsRequestOriginal, type QuerySectionsResponse as QuerySectionsResponseOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type RestoreSectionFromTrashRequest as RestoreSectionFromTrashRequestOriginal, type RestoreSectionFromTrashResponse as RestoreSectionFromTrashResponseOriginal, type SearchIndexingNotification as SearchIndexingNotificationOriginal, SearchIndexingNotificationState as SearchIndexingNotificationStateOriginal, type SearchIndexingNotificationStateWithLiterals as SearchIndexingNotificationStateWithLiteralsOriginal, type SectionCloned as SectionClonedOriginal, type SectionDeleted as SectionDeletedOriginal, type SectionMoved as SectionMovedOriginal, type Section as SectionOriginal, type SectionPublished as SectionPublishedOriginal, type SectionUpdated as SectionUpdatedOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, State as StateOriginal, type StateWithLiterals as StateWithLiteralsOriginal, type UpdateByFilterOperation as UpdateByFilterOperationOriginal, type UpdateDocumentsEventOperationOneOf as UpdateDocumentsEventOperationOneOfOriginal, type UpdateDocumentsEvent as UpdateDocumentsEventOriginal, type UpdateExistingOperation as UpdateExistingOperationOriginal, type UpdateSectionRequest as UpdateSectionRequestOriginal, type UpdateSectionResponse as UpdateSectionResponseOriginal, type VideoResolution as VideoResolutionOriginal, type VideoV2 as VideoV2Original, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateSection, bulkCreateSectionMigration, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, publishSection, querySections, updateSection };
916
+ export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, BulkActionType as BulkActionTypeOriginal, type BulkActionTypeWithLiterals as BulkActionTypeWithLiteralsOriginal, type BulkCloneSectionRequest as BulkCloneSectionRequestOriginal, type BulkCloneSectionResponse as BulkCloneSectionResponseOriginal, type BulkCreateSectionMigrationRequest as BulkCreateSectionMigrationRequestOriginal, type BulkCreateSectionMigrationResponse as BulkCreateSectionMigrationResponseOriginal, type BulkCreateSectionRequest as BulkCreateSectionRequestOriginal, type BulkCreateSectionResponse as BulkCreateSectionResponseOriginal, type BulkSectionResult as BulkSectionResultOriginal, type CloneSectionRequest as CloneSectionRequestOriginal, type CloneSectionResponse as CloneSectionResponseOriginal, type CreateSectionRequest as CreateSectionRequestOriginal, type CreateSectionResponse as CreateSectionResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteAllProgramSectionsRequest as DeleteAllProgramSectionsRequestOriginal, type DeleteAllProgramSectionsResponse as DeleteAllProgramSectionsResponseOriginal, type DeleteByFilterOperation as DeleteByFilterOperationOriginal, type DeleteByIdsOperation as DeleteByIdsOperationOriginal, type DeleteSectionRequest as DeleteSectionRequestOriginal, type DeleteSectionResponse as DeleteSectionResponseOriginal, DescriptionFieldSet as DescriptionFieldSetOriginal, type DescriptionFieldSetWithLiterals as DescriptionFieldSetWithLiteralsOriginal, type DescriptionMediaOneOf as DescriptionMediaOneOfOriginal, type Description as DescriptionOriginal, type DocumentImage as DocumentImageOriginal, type DocumentPayload as DocumentPayloadOriginal, type DocumentUpdateOperation as DocumentUpdateOperationOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, Enum as EnumOriginal, type EnumWithLiterals as EnumWithLiteralsOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FocalPoint as FocalPointOriginal, type GetSectionRequest as GetSectionRequestOriginal, type GetSectionResponse as GetSectionResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type IndexDocument as IndexDocumentOriginal, type ItemMetadata as ItemMetadataOriginal, type ListSectionsRequest as ListSectionsRequestOriginal, type ListSectionsResponse as ListSectionsResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MoveSectionRequest as MoveSectionRequestOriginal, type MoveSectionResponse as MoveSectionResponseOriginal, type PublishSectionRequest as PublishSectionRequestOriginal, type PublishSectionResponse as PublishSectionResponseOriginal, type QuerySectionsRequest as QuerySectionsRequestOriginal, type QuerySectionsResponse as QuerySectionsResponseOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type RestoreSectionFromTrashRequest as RestoreSectionFromTrashRequestOriginal, type RestoreSectionFromTrashResponse as RestoreSectionFromTrashResponseOriginal, type SearchIndexingNotification as SearchIndexingNotificationOriginal, SearchIndexingNotificationState as SearchIndexingNotificationStateOriginal, type SearchIndexingNotificationStateWithLiterals as SearchIndexingNotificationStateWithLiteralsOriginal, type SectionCloned as SectionClonedOriginal, type SectionDeleted as SectionDeletedOriginal, type SectionMoved as SectionMovedOriginal, type Section as SectionOriginal, type SectionPublished as SectionPublishedOriginal, type SectionUpdated as SectionUpdatedOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, State as StateOriginal, type StateWithLiterals as StateWithLiteralsOriginal, type UpdateByFilterOperation as UpdateByFilterOperationOriginal, type UpdateDocumentsEventOperationOneOf as UpdateDocumentsEventOperationOneOfOriginal, type UpdateDocumentsEvent as UpdateDocumentsEventOriginal, type UpdateExistingOperation as UpdateExistingOperationOriginal, type UpdateSectionRequest as UpdateSectionRequestOriginal, type UpdateSectionResponse as UpdateSectionResponseOriginal, type VideoResolution as VideoResolutionOriginal, type VideoV2 as VideoV2Original, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateSection, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, publishSection, querySections, updateSection };
@@ -93,6 +93,14 @@ function resolveWixOnlineprogramsSectionsV3SectionsServiceUrl(opts) {
93
93
  {
94
94
  srcPath: "/program-sections-service",
95
95
  destPath: ""
96
+ },
97
+ {
98
+ srcPath: "/online-programs/v3/sections",
99
+ destPath: "/v3/sections"
100
+ },
101
+ {
102
+ srcPath: "/online-programs/v3/bulk/sections",
103
+ destPath: "/v3/bulk/sections"
96
104
  }
97
105
  ]
98
106
  };
@@ -271,95 +279,6 @@ function bulkCreateSection(payload) {
271
279
  }
272
280
  return __bulkCreateSection;
273
281
  }
274
- function bulkCreateSectionMigration(payload) {
275
- function __bulkCreateSectionMigration({ host }) {
276
- const serializedData = transformPaths(payload, [
277
- {
278
- transformFn: transformSDKTimestampToRESTTimestamp,
279
- paths: [
280
- { path: "sections.createdDate" },
281
- { path: "sections.updatedDate" },
282
- { path: "sections.description.image.urlExpirationDate" },
283
- { path: "sections.description.video.urlExpirationDate" },
284
- { path: "sections.description.video.resolutions.urlExpirationDate" },
285
- {
286
- path: "sections.description.video.resolutions.poster.urlExpirationDate"
287
- },
288
- { path: "sections.description.video.posters.urlExpirationDate" }
289
- ]
290
- },
291
- {
292
- transformFn: transformSDKFloatToRESTFloat,
293
- paths: [
294
- { path: "sections.ordering" },
295
- { path: "sections.description.image.focalPoint.x" },
296
- { path: "sections.description.image.focalPoint.y" },
297
- {
298
- path: "sections.description.video.resolutions.poster.focalPoint.x"
299
- },
300
- {
301
- path: "sections.description.video.resolutions.poster.focalPoint.y"
302
- },
303
- { path: "sections.description.video.posters.focalPoint.x" },
304
- { path: "sections.description.video.posters.focalPoint.y" }
305
- ]
306
- }
307
- ]);
308
- const metadata = {
309
- entityFqdn: "wix.online_programs.v3.section",
310
- method: "POST",
311
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSectionMigration",
312
- packageName: PACKAGE_NAME,
313
- migrationOptions: {
314
- optInTransformResponse: true
315
- },
316
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
317
- protoPath: "/v3/bulk/sections/create/migration",
318
- data: serializedData,
319
- host
320
- }),
321
- data: serializedData,
322
- transformResponse: (payload2) => transformPaths(payload2, [
323
- {
324
- transformFn: transformRESTTimestampToSDKTimestamp,
325
- paths: [
326
- { path: "results.item.createdDate" },
327
- { path: "results.item.updatedDate" },
328
- { path: "results.item.description.image.urlExpirationDate" },
329
- { path: "results.item.description.video.urlExpirationDate" },
330
- {
331
- path: "results.item.description.video.resolutions.urlExpirationDate"
332
- },
333
- {
334
- path: "results.item.description.video.resolutions.poster.urlExpirationDate"
335
- },
336
- {
337
- path: "results.item.description.video.posters.urlExpirationDate"
338
- }
339
- ]
340
- },
341
- {
342
- transformFn: transformRESTFloatToSDKFloat,
343
- paths: [
344
- { path: "results.item.ordering" },
345
- { path: "results.item.description.image.focalPoint.x" },
346
- { path: "results.item.description.image.focalPoint.y" },
347
- {
348
- path: "results.item.description.video.resolutions.poster.focalPoint.x"
349
- },
350
- {
351
- path: "results.item.description.video.resolutions.poster.focalPoint.y"
352
- },
353
- { path: "results.item.description.video.posters.focalPoint.x" },
354
- { path: "results.item.description.video.posters.focalPoint.y" }
355
- ]
356
- }
357
- ])
358
- };
359
- return metadata;
360
- }
361
- return __bulkCreateSectionMigration;
362
- }
363
282
  function getSection(payload) {
364
283
  function __getSection({ host }) {
365
284
  const metadata = {
@@ -801,7 +720,6 @@ function publishSection(payload) {
801
720
 
802
721
  // src/online-programs-v3-section-sections.types.ts
803
722
  var State = /* @__PURE__ */ ((State2) => {
804
- State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
805
723
  State2["DRAFT"] = "DRAFT";
806
724
  State2["PUBLISHED"] = "PUBLISHED";
807
725
  return State2;
@@ -816,7 +734,6 @@ var Enum = /* @__PURE__ */ ((Enum2) => {
816
734
  return Enum2;
817
735
  })(Enum || {});
818
736
  var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
819
- RequestedFields2["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
820
737
  RequestedFields2["TOTAL_STEPS"] = "TOTAL_STEPS";
821
738
  return RequestedFields2;
822
739
  })(RequestedFields || {});
@@ -889,24 +806,6 @@ function bulkCreateSection2() {
889
806
  __originalResponseType: null
890
807
  };
891
808
  }
892
- function bulkCreateSectionMigration2() {
893
- const payload = {};
894
- const getRequestOptions = bulkCreateSectionMigration(payload);
895
- const getUrl = (context) => {
896
- const { url } = getRequestOptions(context);
897
- return url;
898
- };
899
- return {
900
- getUrl,
901
- httpMethod: "POST",
902
- path: "/v3/bulk/sections/create/migration",
903
- pathParams: {},
904
- __requestType: null,
905
- __originalRequestType: null,
906
- __responseType: null,
907
- __originalResponseType: null
908
- };
909
- }
910
809
  function getSection2() {
911
810
  const payload = { sectionId: ":sectionId" };
912
811
  const getRequestOptions = getSection(payload);
@@ -1061,7 +960,6 @@ export {
1061
960
  State as StateOriginal,
1062
961
  WebhookIdentityType as WebhookIdentityTypeOriginal,
1063
962
  bulkCreateSection2 as bulkCreateSection,
1064
- bulkCreateSectionMigration2 as bulkCreateSectionMigration,
1065
963
  cloneSection2 as cloneSection,
1066
964
  createSection2 as createSection,
1067
965
  deleteSection2 as deleteSection,