@wix/auto_sdk_online-programs_sections 1.0.13 → 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 (49) hide show
  1. package/build/cjs/index.d.ts +49 -31
  2. package/build/cjs/index.js +8 -145
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +164 -122
  5. package/build/cjs/index.typings.js +8 -137
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +84 -70
  8. package/build/cjs/meta.js +8 -109
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +1 -92
  11. package/build/cjs/schemas.js +270 -294
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +49 -31
  14. package/build/es/index.mjs +8 -144
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +164 -122
  17. package/build/es/index.typings.mjs +8 -136
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +84 -70
  20. package/build/es/meta.mjs +8 -108
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +1 -92
  23. package/build/es/schemas.mjs +270 -292
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +49 -31
  26. package/build/internal/cjs/index.js +8 -145
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +164 -122
  29. package/build/internal/cjs/index.typings.js +8 -137
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +84 -70
  32. package/build/internal/cjs/meta.js +8 -109
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +1 -92
  35. package/build/internal/cjs/schemas.js +270 -294
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +49 -31
  38. package/build/internal/es/index.mjs +8 -144
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +164 -122
  41. package/build/internal/es/index.typings.mjs +8 -136
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +84 -70
  44. package/build/internal/es/meta.mjs +8 -108
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +1 -92
  47. package/build/internal/es/schemas.mjs +270 -292
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -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.js';
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.js';
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 */
@@ -272,40 +282,43 @@ interface UpdateExistingOperation {
272
282
  /** documents to update */
273
283
  documents?: IndexDocument[];
274
284
  }
285
+ /** Payload for the Section Updated event. */
275
286
  interface SectionUpdated {
276
- /** Section before update. */
287
+ /** Section before the update. */
277
288
  previous?: Section;
278
- /** Section after update. */
289
+ /** Section after the update. */
279
290
  current?: Section;
280
291
  }
292
+ /** Payload for the Section Deleted event. */
281
293
  interface SectionDeleted {
282
- /** Full section that was deleted */
294
+ /** Section that was deleted. */
283
295
  section?: Section;
284
296
  }
297
+ /** Payload for the Section Cloned event. */
285
298
  interface SectionCloned {
286
- /** Section which was used as a prototype for cloning. */
299
+ /** Source section used for cloning. */
287
300
  prototype?: Section;
288
- /** Result of section cloning. */
301
+ /** Cloned section. */
289
302
  cloned?: Section;
290
303
  }
291
304
  interface SectionMoved {
292
305
  /**
293
- * Moved section id
306
+ * ID of the moved section.
294
307
  * @format GUID
295
308
  */
296
309
  sectionId?: string;
297
- /** section position */
310
+ /** New ordering rank assigned to the moved section. */
298
311
  newSectionPositionRank?: number;
299
312
  }
300
313
  interface SectionPublished {
301
314
  /**
302
- * Published section id
315
+ * ID of the published section.
303
316
  * @format GUID
304
317
  */
305
318
  sectionId?: string;
306
319
  }
307
320
  interface CreateSectionRequest {
308
- /** Section to be created. */
321
+ /** Section to create. Must include `section.program_id`. */
309
322
  section: Section;
310
323
  /**
311
324
  * Predefined sets of fields to return.
@@ -320,12 +333,12 @@ declare enum RequestedFields {
320
333
  /** @enumType */
321
334
  type RequestedFieldsWithLiterals = RequestedFields | 'TOTAL_STEPS';
322
335
  interface CreateSectionResponse {
323
- /** The created Section. */
336
+ /** Created section. */
324
337
  section?: Section;
325
338
  }
326
339
  interface BulkCreateSectionRequest {
327
340
  /**
328
- * 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.
329
342
  * @minSize 1
330
343
  * @maxSize 100
331
344
  */
@@ -337,17 +350,17 @@ interface BulkCreateSectionRequest {
337
350
  fields?: RequestedFieldsWithLiterals[];
338
351
  }
339
352
  interface BulkCreateSectionResponse {
340
- /** bulk results */
353
+ /** Results for the bulk create operation. */
341
354
  results?: BulkSectionResult[];
342
- /** bulk metadata */
355
+ /** Summary of the bulk create operation. */
343
356
  bulkActionMetadata?: BulkActionMetadata;
344
357
  }
345
358
  interface BulkSectionResult {
346
- /** item metadata */
359
+ /** Metadata for the bulk operation result. */
347
360
  itemMetadata?: ItemMetadata;
348
- /** created section */
361
+ /** Created section. */
349
362
  item?: Section;
350
- /** indicator whether it was create or update */
363
+ /** Action associated with the bulk result. */
351
364
  action?: BulkActionTypeWithLiterals;
352
365
  }
353
366
  interface ItemMetadata {
@@ -386,16 +399,16 @@ interface BulkActionMetadata {
386
399
  }
387
400
  interface BulkCreateSectionMigrationRequest {
388
401
  /**
389
- * List of sections you want to create
402
+ * List of sections to create.
390
403
  * @minSize 1
391
404
  * @maxSize 100
392
405
  */
393
- sections: Section[];
406
+ sections?: Section[];
394
407
  }
395
408
  interface BulkCreateSectionMigrationResponse {
396
- /** bulk results */
409
+ /** Results for the bulk create operation. */
397
410
  results?: BulkSectionResult[];
398
- /** bulk metadata */
411
+ /** Summary of the bulk create operation. */
399
412
  bulkActionMetadata?: BulkActionMetadata;
400
413
  }
401
414
  interface GetSectionRequest {
@@ -404,7 +417,7 @@ interface GetSectionRequest {
404
417
  * @format GUID
405
418
  */
406
419
  sectionId: string;
407
- /** 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. */
408
421
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
409
422
  /**
410
423
  * Predefined sets of fields to return.
@@ -413,17 +426,19 @@ interface GetSectionRequest {
413
426
  fields?: RequestedFieldsWithLiterals[];
414
427
  }
415
428
  declare enum DescriptionFieldSet {
429
+ /** Retained for backward compatibility. Current section responses return the section title. */
416
430
  STANDARD = "STANDARD",
431
+ /** Retained for backward compatibility. Current section responses return the section title. */
417
432
  EXTENDED = "EXTENDED"
418
433
  }
419
434
  /** @enumType */
420
435
  type DescriptionFieldSetWithLiterals = DescriptionFieldSet | 'STANDARD' | 'EXTENDED';
421
436
  interface GetSectionResponse {
422
- /** The requested Section. */
437
+ /** Retrieved section. */
423
438
  section?: Section;
424
439
  }
425
440
  interface UpdateSectionRequest {
426
- /** Section to be updated, may be partial. */
441
+ /** Section to update. Include `section.id`, `section.revision`, and the fields to update. */
427
442
  section?: Section;
428
443
  /**
429
444
  * Predefined sets of fields to return.
@@ -432,12 +447,12 @@ interface UpdateSectionRequest {
432
447
  fields?: RequestedFieldsWithLiterals[];
433
448
  }
434
449
  interface UpdateSectionResponse {
435
- /** Updated Section. */
450
+ /** Updated section. */
436
451
  section?: Section;
437
452
  }
438
453
  interface DeleteSectionRequest {
439
454
  /**
440
- * Id of the Section to delete.
455
+ * ID of the section to delete.
441
456
  * @format GUID
442
457
  */
443
458
  sectionId: string;
@@ -446,26 +461,26 @@ interface DeleteSectionResponse {
446
461
  }
447
462
  interface DeleteAllProgramSectionsRequest {
448
463
  /**
449
- * Program id to delete sections from
464
+ * Program ID to delete sections from.
450
465
  * @format GUID
451
466
  */
452
467
  programId?: string;
453
468
  }
454
469
  interface DeleteAllProgramSectionsResponse {
455
- /** Total count of sections in the program */
470
+ /** Total number of sections in the program. */
456
471
  sectionsTotal?: number;
457
- /** Count of successfully deleted sections */
472
+ /** Number of sections that were deleted successfully. */
458
473
  successfulCount?: number;
459
- /** Count of sections that failed to be deleted */
474
+ /** Number of sections that couldn't be deleted. */
460
475
  failedCount?: number;
461
476
  }
462
477
  interface QuerySectionsRequest {
463
478
  /** WQL expression. */
464
479
  query?: CursorQuery;
465
- /** 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. */
466
481
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
467
482
  /**
468
- * Program id to query sections. Not used anymore. Deprecated in favor of query filter param.
483
+ * Deprecated. Program ID used to scope the query. Use `query.filter` instead.
469
484
  * @deprecated
470
485
  * @replacedBy wix.common.CursorQuery
471
486
  * @targetRemovalDate 2026-06-30
@@ -538,9 +553,9 @@ interface CursorPaging {
538
553
  cursor?: string | null;
539
554
  }
540
555
  interface QuerySectionsResponse {
541
- /** List of Sections. */
556
+ /** Matching sections. */
542
557
  sections?: Section[];
543
- /** Paging metadata */
558
+ /** Paging metadata. */
544
559
  pagingMetadata?: CursorPagingMetadata;
545
560
  }
546
561
  interface CursorPagingMetadata {
@@ -570,11 +585,11 @@ interface Cursors {
570
585
  }
571
586
  interface ListSectionsRequest {
572
587
  /**
573
- * Program id to list sections
588
+ * Program ID to list sections for.
574
589
  * @format GUID
575
590
  */
576
591
  programId: string;
577
- /** 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. */
578
593
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
579
594
  /**
580
595
  * Predefined sets of fields to return.
@@ -584,14 +599,14 @@ interface ListSectionsRequest {
584
599
  }
585
600
  interface ListSectionsResponse {
586
601
  /**
587
- * sections
602
+ * Sections in the requested program.
588
603
  * @maxSize 1000
589
604
  */
590
605
  sections?: Section[];
591
606
  }
592
607
  interface CloneSectionRequest {
593
608
  /**
594
- * Section to clone
609
+ * ID of the section to clone.
595
610
  * @format GUID
596
611
  */
597
612
  sectionId: string;
@@ -602,21 +617,21 @@ interface CloneSectionRequest {
602
617
  fields?: RequestedFieldsWithLiterals[];
603
618
  }
604
619
  interface CloneSectionResponse {
605
- /** cloned section */
620
+ /** Cloned section. */
606
621
  section?: Section;
607
622
  }
608
623
  interface MoveSectionRequest {
609
624
  /**
610
- * Section to move
625
+ * ID of the section to move.
611
626
  * @format GUID
612
627
  */
613
628
  sectionId?: string;
614
629
  /**
615
- * 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.
616
631
  * @format GUID
617
632
  */
618
633
  afterSectionId?: string | null;
619
- /** section revision */
634
+ /** Current revision of the section. */
620
635
  revision?: string;
621
636
  /**
622
637
  * Predefined sets of fields to return.
@@ -625,16 +640,16 @@ interface MoveSectionRequest {
625
640
  fields?: RequestedFieldsWithLiterals[];
626
641
  }
627
642
  interface MoveSectionResponse {
628
- /** updated section which was moved */
643
+ /** Moved section. */
629
644
  section?: Section;
630
645
  }
631
646
  interface PublishSectionRequest {
632
647
  /**
633
- * Section to publish
648
+ * ID of the section to publish.
634
649
  * @format GUID
635
650
  */
636
651
  sectionId?: string;
637
- /** section revision */
652
+ /** Current revision of the section. */
638
653
  revision?: string;
639
654
  /**
640
655
  * Predefined sets of fields to return.
@@ -643,38 +658,38 @@ interface PublishSectionRequest {
643
658
  fields?: RequestedFieldsWithLiterals[];
644
659
  }
645
660
  interface PublishSectionResponse {
646
- /** Published section */
661
+ /** Published section. */
647
662
  section?: Section;
648
663
  }
649
664
  interface BulkCloneSectionRequest {
650
665
  /**
651
- * id of program which was cloned
666
+ * ID of the program that was cloned.
652
667
  * @format GUID
653
668
  */
654
669
  prototypeProgramId?: string;
655
670
  /**
656
- * id of program created after clone
671
+ * ID of the program created by the clone operation.
657
672
  * @format GUID
658
673
  */
659
674
  clonedProgramId?: string;
660
675
  }
661
676
  interface BulkCloneSectionResponse {
662
677
  /**
663
- * id of program which was cloned
678
+ * ID of the program that was cloned.
664
679
  * @format GUID
665
680
  */
666
681
  prototypeProgramId?: string;
667
682
  /**
668
- * id of program created after clone
683
+ * ID of the program created by the clone operation.
669
684
  * @format GUID
670
685
  */
671
686
  clonedProgramId?: string;
672
- /** mapping of original to cloned section ids */
687
+ /** Mapping from original section IDs to cloned section IDs. */
673
688
  prototypeIdToClonedId?: Record<string, string>;
674
689
  }
675
690
  interface RestoreSectionFromTrashRequest {
676
691
  /**
677
- * section id to restore
692
+ * ID of the section to restore.
678
693
  * @format GUID
679
694
  */
680
695
  sectionId?: string;
@@ -685,7 +700,7 @@ interface RestoreSectionFromTrashRequest {
685
700
  fields?: RequestedFieldsWithLiterals[];
686
701
  }
687
702
  interface RestoreSectionFromTrashResponse {
688
- /** restored section */
703
+ /** Restored section. */
689
704
  section?: Section;
690
705
  }
691
706
  interface DomainEvent extends DomainEventBodyOneOf {
@@ -717,7 +732,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
717
732
  /** If present, indicates the action that triggered the event. */
718
733
  originatedFrom?: string | null;
719
734
  /**
720
- * 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.
721
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.
722
737
  */
723
738
  entityEventSequence?: string | null;
@@ -881,7 +896,6 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
881
896
  };
882
897
  declare function createSection(): __PublicMethodMetaInfo<'POST', {}, CreateSectionRequest$1, CreateSectionRequest, CreateSectionResponse$1, CreateSectionResponse>;
883
898
  declare function bulkCreateSection(): __PublicMethodMetaInfo<'POST', {}, BulkCreateSectionRequest$1, BulkCreateSectionRequest, BulkCreateSectionResponse$1, BulkCreateSectionResponse>;
884
- declare function bulkCreateSectionMigration(): __PublicMethodMetaInfo<'POST', {}, BulkCreateSectionMigrationRequest$1, BulkCreateSectionMigrationRequest, BulkCreateSectionMigrationResponse$1, BulkCreateSectionMigrationResponse>;
885
899
  declare function getSection(): __PublicMethodMetaInfo<'GET', {
886
900
  sectionId: string;
887
901
  }, GetSectionRequest$1, GetSectionRequest, GetSectionResponse$1, GetSectionResponse>;
@@ -899,4 +913,4 @@ declare function cloneSection(): __PublicMethodMetaInfo<'POST', {
899
913
  declare function moveSection(): __PublicMethodMetaInfo<'PATCH', {}, MoveSectionRequest$1, MoveSectionRequest, MoveSectionResponse$1, MoveSectionResponse>;
900
914
  declare function publishSection(): __PublicMethodMetaInfo<'PATCH', {}, PublishSectionRequest$1, PublishSectionRequest, PublishSectionResponse$1, PublishSectionResponse>;
901
915
 
902
- 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 };
package/build/cjs/meta.js CHANGED
@@ -29,7 +29,6 @@ __export(meta_exports, {
29
29
  StateOriginal: () => State,
30
30
  WebhookIdentityTypeOriginal: () => WebhookIdentityType,
31
31
  bulkCreateSection: () => bulkCreateSection2,
32
- bulkCreateSectionMigration: () => bulkCreateSectionMigration2,
33
32
  cloneSection: () => cloneSection2,
34
33
  createSection: () => createSection2,
35
34
  deleteSection: () => deleteSection2,
@@ -137,6 +136,14 @@ function resolveWixOnlineprogramsSectionsV3SectionsServiceUrl(opts) {
137
136
  {
138
137
  srcPath: "/program-sections-service",
139
138
  destPath: ""
139
+ },
140
+ {
141
+ srcPath: "/online-programs/v3/sections",
142
+ destPath: "/v3/sections"
143
+ },
144
+ {
145
+ srcPath: "/online-programs/v3/bulk/sections",
146
+ destPath: "/v3/bulk/sections"
140
147
  }
141
148
  ]
142
149
  };
@@ -315,95 +322,6 @@ function bulkCreateSection(payload) {
315
322
  }
316
323
  return __bulkCreateSection;
317
324
  }
318
- function bulkCreateSectionMigration(payload) {
319
- function __bulkCreateSectionMigration({ host }) {
320
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
321
- {
322
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
323
- paths: [
324
- { path: "sections.createdDate" },
325
- { path: "sections.updatedDate" },
326
- { path: "sections.description.image.urlExpirationDate" },
327
- { path: "sections.description.video.urlExpirationDate" },
328
- { path: "sections.description.video.resolutions.urlExpirationDate" },
329
- {
330
- path: "sections.description.video.resolutions.poster.urlExpirationDate"
331
- },
332
- { path: "sections.description.video.posters.urlExpirationDate" }
333
- ]
334
- },
335
- {
336
- transformFn: import_float.transformSDKFloatToRESTFloat,
337
- paths: [
338
- { path: "sections.ordering" },
339
- { path: "sections.description.image.focalPoint.x" },
340
- { path: "sections.description.image.focalPoint.y" },
341
- {
342
- path: "sections.description.video.resolutions.poster.focalPoint.x"
343
- },
344
- {
345
- path: "sections.description.video.resolutions.poster.focalPoint.y"
346
- },
347
- { path: "sections.description.video.posters.focalPoint.x" },
348
- { path: "sections.description.video.posters.focalPoint.y" }
349
- ]
350
- }
351
- ]);
352
- const metadata = {
353
- entityFqdn: "wix.online_programs.v3.section",
354
- method: "POST",
355
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSectionMigration",
356
- packageName: PACKAGE_NAME,
357
- migrationOptions: {
358
- optInTransformResponse: true
359
- },
360
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
361
- protoPath: "/v3/bulk/sections/create/migration",
362
- data: serializedData,
363
- host
364
- }),
365
- data: serializedData,
366
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
367
- {
368
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
369
- paths: [
370
- { path: "results.item.createdDate" },
371
- { path: "results.item.updatedDate" },
372
- { path: "results.item.description.image.urlExpirationDate" },
373
- { path: "results.item.description.video.urlExpirationDate" },
374
- {
375
- path: "results.item.description.video.resolutions.urlExpirationDate"
376
- },
377
- {
378
- path: "results.item.description.video.resolutions.poster.urlExpirationDate"
379
- },
380
- {
381
- path: "results.item.description.video.posters.urlExpirationDate"
382
- }
383
- ]
384
- },
385
- {
386
- transformFn: import_float2.transformRESTFloatToSDKFloat,
387
- paths: [
388
- { path: "results.item.ordering" },
389
- { path: "results.item.description.image.focalPoint.x" },
390
- { path: "results.item.description.image.focalPoint.y" },
391
- {
392
- path: "results.item.description.video.resolutions.poster.focalPoint.x"
393
- },
394
- {
395
- path: "results.item.description.video.resolutions.poster.focalPoint.y"
396
- },
397
- { path: "results.item.description.video.posters.focalPoint.x" },
398
- { path: "results.item.description.video.posters.focalPoint.y" }
399
- ]
400
- }
401
- ])
402
- };
403
- return metadata;
404
- }
405
- return __bulkCreateSectionMigration;
406
- }
407
325
  function getSection(payload) {
408
326
  function __getSection({ host }) {
409
327
  const metadata = {
@@ -931,24 +849,6 @@ function bulkCreateSection2() {
931
849
  __originalResponseType: null
932
850
  };
933
851
  }
934
- function bulkCreateSectionMigration2() {
935
- const payload = {};
936
- const getRequestOptions = bulkCreateSectionMigration(payload);
937
- const getUrl = (context) => {
938
- const { url } = getRequestOptions(context);
939
- return url;
940
- };
941
- return {
942
- getUrl,
943
- httpMethod: "POST",
944
- path: "/v3/bulk/sections/create/migration",
945
- pathParams: {},
946
- __requestType: null,
947
- __originalRequestType: null,
948
- __responseType: null,
949
- __originalResponseType: null
950
- };
951
- }
952
852
  function getSection2() {
953
853
  const payload = { sectionId: ":sectionId" };
954
854
  const getRequestOptions = getSection(payload);
@@ -1104,7 +1004,6 @@ function publishSection2() {
1104
1004
  StateOriginal,
1105
1005
  WebhookIdentityTypeOriginal,
1106
1006
  bulkCreateSection,
1107
- bulkCreateSectionMigration,
1108
1007
  cloneSection,
1109
1008
  createSection,
1110
1009
  deleteSection,