@wix/auto_sdk_online-programs_sections 1.0.13 → 1.0.15

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 +61 -31
  2. package/build/cjs/index.js +47 -26
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +220 -120
  5. package/build/cjs/index.typings.js +41 -21
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +117 -72
  8. package/build/cjs/meta.js +35 -18
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +14 -5
  11. package/build/cjs/schemas.js +335 -212
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +61 -31
  14. package/build/es/index.mjs +46 -25
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +220 -120
  17. package/build/es/index.typings.mjs +40 -20
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +117 -72
  20. package/build/es/meta.mjs +34 -17
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +14 -5
  23. package/build/es/schemas.mjs +333 -210
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +61 -31
  26. package/build/internal/cjs/index.js +47 -26
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +220 -120
  29. package/build/internal/cjs/index.typings.js +41 -21
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +117 -72
  32. package/build/internal/cjs/meta.js +35 -18
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +14 -5
  35. package/build/internal/cjs/schemas.js +335 -212
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +61 -31
  38. package/build/internal/es/index.mjs +46 -25
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +220 -120
  41. package/build/internal/es/index.typings.mjs +40 -20
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +117 -72
  44. package/build/internal/es/meta.mjs +34 -17
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +14 -5
  47. package/build/internal/es/schemas.mjs +333 -210
  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, BulkCreateSectionsRequest as BulkCreateSectionsRequest$1, BulkCreateSectionsResponse as BulkCreateSectionsResponse$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
- interface BulkCreateSectionRequest {
339
+ interface BulkCreateSectionsRequest {
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
  */
@@ -336,18 +349,18 @@ interface BulkCreateSectionRequest {
336
349
  */
337
350
  fields?: RequestedFieldsWithLiterals[];
338
351
  }
339
- interface BulkCreateSectionResponse {
340
- /** bulk results */
352
+ interface BulkCreateSectionsResponse {
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 {
@@ -384,18 +397,37 @@ interface BulkActionMetadata {
384
397
  /** Number of failures without details because detailed failure threshold was exceeded. */
385
398
  undetailedFailures?: number;
386
399
  }
387
- interface BulkCreateSectionMigrationRequest {
400
+ interface BulkCreateSectionRequest {
388
401
  /**
389
- * List of sections you want to create
402
+ * List of sections to create. Each section must include `program_id`, and all sections must belong to the same program.
390
403
  * @minSize 1
391
404
  * @maxSize 100
392
405
  */
393
406
  sections: Section[];
407
+ /**
408
+ * Predefined sets of fields to return.
409
+ * @maxSize 1
410
+ */
411
+ fields?: RequestedFieldsWithLiterals[];
412
+ }
413
+ interface BulkCreateSectionResponse {
414
+ /** Results for the bulk create operation. */
415
+ results?: BulkSectionResult[];
416
+ /** Summary of the bulk create operation. */
417
+ bulkActionMetadata?: BulkActionMetadata;
418
+ }
419
+ interface BulkCreateSectionMigrationRequest {
420
+ /**
421
+ * List of sections to create.
422
+ * @minSize 1
423
+ * @maxSize 100
424
+ */
425
+ sections?: Section[];
394
426
  }
395
427
  interface BulkCreateSectionMigrationResponse {
396
- /** bulk results */
428
+ /** Results for the bulk create operation. */
397
429
  results?: BulkSectionResult[];
398
- /** bulk metadata */
430
+ /** Summary of the bulk create operation. */
399
431
  bulkActionMetadata?: BulkActionMetadata;
400
432
  }
401
433
  interface GetSectionRequest {
@@ -404,7 +436,7 @@ interface GetSectionRequest {
404
436
  * @format GUID
405
437
  */
406
438
  sectionId: string;
407
- /** Whenever to return description only with title or with details as well */
439
+ /** Compatibility option for existing integrations. Current section responses return the section title. */
408
440
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
409
441
  /**
410
442
  * Predefined sets of fields to return.
@@ -413,17 +445,19 @@ interface GetSectionRequest {
413
445
  fields?: RequestedFieldsWithLiterals[];
414
446
  }
415
447
  declare enum DescriptionFieldSet {
448
+ /** Retained for backward compatibility. Current section responses return the section title. */
416
449
  STANDARD = "STANDARD",
450
+ /** Retained for backward compatibility. Current section responses return the section title. */
417
451
  EXTENDED = "EXTENDED"
418
452
  }
419
453
  /** @enumType */
420
454
  type DescriptionFieldSetWithLiterals = DescriptionFieldSet | 'STANDARD' | 'EXTENDED';
421
455
  interface GetSectionResponse {
422
- /** The requested Section. */
456
+ /** Retrieved section. */
423
457
  section?: Section;
424
458
  }
425
459
  interface UpdateSectionRequest {
426
- /** Section to be updated, may be partial. */
460
+ /** Section to update. Include `section.id`, `section.revision`, and the fields to update. */
427
461
  section?: Section;
428
462
  /**
429
463
  * Predefined sets of fields to return.
@@ -432,12 +466,12 @@ interface UpdateSectionRequest {
432
466
  fields?: RequestedFieldsWithLiterals[];
433
467
  }
434
468
  interface UpdateSectionResponse {
435
- /** Updated Section. */
469
+ /** Updated section. */
436
470
  section?: Section;
437
471
  }
438
472
  interface DeleteSectionRequest {
439
473
  /**
440
- * Id of the Section to delete.
474
+ * ID of the section to delete.
441
475
  * @format GUID
442
476
  */
443
477
  sectionId: string;
@@ -446,26 +480,26 @@ interface DeleteSectionResponse {
446
480
  }
447
481
  interface DeleteAllProgramSectionsRequest {
448
482
  /**
449
- * Program id to delete sections from
483
+ * Program ID to delete sections from.
450
484
  * @format GUID
451
485
  */
452
486
  programId?: string;
453
487
  }
454
488
  interface DeleteAllProgramSectionsResponse {
455
- /** Total count of sections in the program */
489
+ /** Total number of sections in the program. */
456
490
  sectionsTotal?: number;
457
- /** Count of successfully deleted sections */
491
+ /** Number of sections that were deleted successfully. */
458
492
  successfulCount?: number;
459
- /** Count of sections that failed to be deleted */
493
+ /** Number of sections that couldn't be deleted. */
460
494
  failedCount?: number;
461
495
  }
462
496
  interface QuerySectionsRequest {
463
497
  /** WQL expression. */
464
498
  query?: CursorQuery;
465
- /** Whenever to return description only with title or with details as well */
499
+ /** Compatibility option for existing integrations. Current section responses return the section title. */
466
500
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
467
501
  /**
468
- * Program id to query sections. Not used anymore. Deprecated in favor of query filter param.
502
+ * Deprecated. Program ID used to scope the query. Use `query.filter` instead.
469
503
  * @deprecated
470
504
  * @replacedBy wix.common.CursorQuery
471
505
  * @targetRemovalDate 2026-06-30
@@ -515,6 +549,11 @@ interface Sorting {
515
549
  fieldName?: string;
516
550
  /** Sort order. */
517
551
  order?: SortOrderWithLiterals;
552
+ /**
553
+ * Origin point for geo-distance sorting on a GEO field
554
+ * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
555
+ */
556
+ origin?: AddressLocation;
518
557
  }
519
558
  declare enum SortOrder {
520
559
  ASC = "ASC",
@@ -522,6 +561,12 @@ declare enum SortOrder {
522
561
  }
523
562
  /** @enumType */
524
563
  type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
564
+ interface AddressLocation {
565
+ /** Address latitude. */
566
+ latitude?: number | null;
567
+ /** Address longitude. */
568
+ longitude?: number | null;
569
+ }
525
570
  interface CursorPaging {
526
571
  /**
527
572
  * Maximum number of items to return in the results.
@@ -538,9 +583,9 @@ interface CursorPaging {
538
583
  cursor?: string | null;
539
584
  }
540
585
  interface QuerySectionsResponse {
541
- /** List of Sections. */
586
+ /** Matching sections. */
542
587
  sections?: Section[];
543
- /** Paging metadata */
588
+ /** Paging metadata. */
544
589
  pagingMetadata?: CursorPagingMetadata;
545
590
  }
546
591
  interface CursorPagingMetadata {
@@ -570,11 +615,11 @@ interface Cursors {
570
615
  }
571
616
  interface ListSectionsRequest {
572
617
  /**
573
- * Program id to list sections
618
+ * Program ID to list sections for.
574
619
  * @format GUID
575
620
  */
576
621
  programId: string;
577
- /** Whenever to return description only with title or with details as well */
622
+ /** Compatibility option for existing integrations. Current section responses return the section title. */
578
623
  descriptionFieldSet?: DescriptionFieldSetWithLiterals;
579
624
  /**
580
625
  * Predefined sets of fields to return.
@@ -584,14 +629,14 @@ interface ListSectionsRequest {
584
629
  }
585
630
  interface ListSectionsResponse {
586
631
  /**
587
- * sections
632
+ * Sections in the requested program.
588
633
  * @maxSize 1000
589
634
  */
590
635
  sections?: Section[];
591
636
  }
592
637
  interface CloneSectionRequest {
593
638
  /**
594
- * Section to clone
639
+ * ID of the section to clone.
595
640
  * @format GUID
596
641
  */
597
642
  sectionId: string;
@@ -602,21 +647,21 @@ interface CloneSectionRequest {
602
647
  fields?: RequestedFieldsWithLiterals[];
603
648
  }
604
649
  interface CloneSectionResponse {
605
- /** cloned section */
650
+ /** Cloned section. */
606
651
  section?: Section;
607
652
  }
608
653
  interface MoveSectionRequest {
609
654
  /**
610
- * Section to move
655
+ * ID of the section to move.
611
656
  * @format GUID
612
657
  */
613
658
  sectionId?: string;
614
659
  /**
615
- * change section position to be after the specified section. If empty insert in the "0" position.
660
+ * 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
661
  * @format GUID
617
662
  */
618
663
  afterSectionId?: string | null;
619
- /** section revision */
664
+ /** Current revision of the section. */
620
665
  revision?: string;
621
666
  /**
622
667
  * Predefined sets of fields to return.
@@ -625,16 +670,16 @@ interface MoveSectionRequest {
625
670
  fields?: RequestedFieldsWithLiterals[];
626
671
  }
627
672
  interface MoveSectionResponse {
628
- /** updated section which was moved */
673
+ /** Moved section. */
629
674
  section?: Section;
630
675
  }
631
676
  interface PublishSectionRequest {
632
677
  /**
633
- * Section to publish
678
+ * ID of the section to publish.
634
679
  * @format GUID
635
680
  */
636
681
  sectionId?: string;
637
- /** section revision */
682
+ /** Current revision of the section. */
638
683
  revision?: string;
639
684
  /**
640
685
  * Predefined sets of fields to return.
@@ -643,38 +688,38 @@ interface PublishSectionRequest {
643
688
  fields?: RequestedFieldsWithLiterals[];
644
689
  }
645
690
  interface PublishSectionResponse {
646
- /** Published section */
691
+ /** Published section. */
647
692
  section?: Section;
648
693
  }
649
694
  interface BulkCloneSectionRequest {
650
695
  /**
651
- * id of program which was cloned
696
+ * ID of the program that was cloned.
652
697
  * @format GUID
653
698
  */
654
699
  prototypeProgramId?: string;
655
700
  /**
656
- * id of program created after clone
701
+ * ID of the program created by the clone operation.
657
702
  * @format GUID
658
703
  */
659
704
  clonedProgramId?: string;
660
705
  }
661
706
  interface BulkCloneSectionResponse {
662
707
  /**
663
- * id of program which was cloned
708
+ * ID of the program that was cloned.
664
709
  * @format GUID
665
710
  */
666
711
  prototypeProgramId?: string;
667
712
  /**
668
- * id of program created after clone
713
+ * ID of the program created by the clone operation.
669
714
  * @format GUID
670
715
  */
671
716
  clonedProgramId?: string;
672
- /** mapping of original to cloned section ids */
717
+ /** Mapping from original section IDs to cloned section IDs. */
673
718
  prototypeIdToClonedId?: Record<string, string>;
674
719
  }
675
720
  interface RestoreSectionFromTrashRequest {
676
721
  /**
677
- * section id to restore
722
+ * ID of the section to restore.
678
723
  * @format GUID
679
724
  */
680
725
  sectionId?: string;
@@ -685,7 +730,7 @@ interface RestoreSectionFromTrashRequest {
685
730
  fields?: RequestedFieldsWithLiterals[];
686
731
  }
687
732
  interface RestoreSectionFromTrashResponse {
688
- /** restored section */
733
+ /** Restored section. */
689
734
  section?: Section;
690
735
  }
691
736
  interface DomainEvent extends DomainEventBodyOneOf {
@@ -717,7 +762,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
717
762
  /** If present, indicates the action that triggered the event. */
718
763
  originatedFrom?: string | null;
719
764
  /**
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.
765
+ * 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
766
  * 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
767
  */
723
768
  entityEventSequence?: string | null;
@@ -880,8 +925,8 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
880
925
  __originalResponseType: R;
881
926
  };
882
927
  declare function createSection(): __PublicMethodMetaInfo<'POST', {}, CreateSectionRequest$1, CreateSectionRequest, CreateSectionResponse$1, CreateSectionResponse>;
928
+ declare function bulkCreateSections(): __PublicMethodMetaInfo<'POST', {}, BulkCreateSectionsRequest$1, BulkCreateSectionsRequest, BulkCreateSectionsResponse$1, BulkCreateSectionsResponse>;
883
929
  declare function bulkCreateSection(): __PublicMethodMetaInfo<'POST', {}, BulkCreateSectionRequest$1, BulkCreateSectionRequest, BulkCreateSectionResponse$1, BulkCreateSectionResponse>;
884
- declare function bulkCreateSectionMigration(): __PublicMethodMetaInfo<'POST', {}, BulkCreateSectionMigrationRequest$1, BulkCreateSectionMigrationRequest, BulkCreateSectionMigrationResponse$1, BulkCreateSectionMigrationResponse>;
885
930
  declare function getSection(): __PublicMethodMetaInfo<'GET', {
886
931
  sectionId: string;
887
932
  }, GetSectionRequest$1, GetSectionRequest, GetSectionResponse$1, GetSectionResponse>;
@@ -899,4 +944,4 @@ declare function cloneSection(): __PublicMethodMetaInfo<'POST', {
899
944
  declare function moveSection(): __PublicMethodMetaInfo<'PATCH', {}, MoveSectionRequest$1, MoveSectionRequest, MoveSectionResponse$1, MoveSectionResponse>;
900
945
  declare function publishSection(): __PublicMethodMetaInfo<'PATCH', {}, PublishSectionRequest$1, PublishSectionRequest, PublishSectionResponse$1, PublishSectionResponse>;
901
946
 
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 };
947
+ export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AddressLocation as AddressLocationOriginal, 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 BulkCreateSectionsRequest as BulkCreateSectionsRequestOriginal, type BulkCreateSectionsResponse as BulkCreateSectionsResponseOriginal, 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, bulkCreateSections, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, publishSection, querySections, updateSection };
@@ -29,7 +29,7 @@ __export(meta_exports, {
29
29
  StateOriginal: () => State,
30
30
  WebhookIdentityTypeOriginal: () => WebhookIdentityType,
31
31
  bulkCreateSection: () => bulkCreateSection2,
32
- bulkCreateSectionMigration: () => bulkCreateSectionMigration2,
32
+ bulkCreateSections: () => bulkCreateSections2,
33
33
  cloneSection: () => cloneSection2,
34
34
  createSection: () => createSection2,
35
35
  deleteSection: () => deleteSection2,
@@ -137,6 +137,14 @@ function resolveWixOnlineprogramsSectionsV3SectionsServiceUrl(opts) {
137
137
  {
138
138
  srcPath: "/program-sections-service",
139
139
  destPath: ""
140
+ },
141
+ {
142
+ srcPath: "/online-programs/v3/sections",
143
+ destPath: "/v3/sections"
144
+ },
145
+ {
146
+ srcPath: "/online-programs/v3/bulk/sections",
147
+ destPath: "/v3/bulk/sections"
140
148
  }
141
149
  ]
142
150
  };
@@ -226,8 +234,8 @@ function createSection(payload) {
226
234
  }
227
235
  return __createSection;
228
236
  }
229
- function bulkCreateSection(payload) {
230
- function __bulkCreateSection({ host }) {
237
+ function bulkCreateSections(payload) {
238
+ function __bulkCreateSections({ host }) {
231
239
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
232
240
  {
233
241
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
@@ -263,7 +271,7 @@ function bulkCreateSection(payload) {
263
271
  const metadata = {
264
272
  entityFqdn: "wix.online_programs.v3.section",
265
273
  method: "POST",
266
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSection",
274
+ methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSections",
267
275
  packageName: PACKAGE_NAME,
268
276
  migrationOptions: {
269
277
  optInTransformResponse: true
@@ -313,10 +321,10 @@ function bulkCreateSection(payload) {
313
321
  };
314
322
  return metadata;
315
323
  }
316
- return __bulkCreateSection;
324
+ return __bulkCreateSections;
317
325
  }
318
- function bulkCreateSectionMigration(payload) {
319
- function __bulkCreateSectionMigration({ host }) {
326
+ function bulkCreateSection(payload) {
327
+ function __bulkCreateSection({ host }) {
320
328
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
321
329
  {
322
330
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
@@ -352,13 +360,13 @@ function bulkCreateSectionMigration(payload) {
352
360
  const metadata = {
353
361
  entityFqdn: "wix.online_programs.v3.section",
354
362
  method: "POST",
355
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSectionMigration",
363
+ methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSection",
356
364
  packageName: PACKAGE_NAME,
357
365
  migrationOptions: {
358
366
  optInTransformResponse: true
359
367
  },
360
368
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
361
- protoPath: "/v3/bulk/sections/create/migration",
369
+ protoPath: "/v3/bulk/sections/create-deprecated",
362
370
  data: serializedData,
363
371
  host
364
372
  }),
@@ -402,7 +410,7 @@ function bulkCreateSectionMigration(payload) {
402
410
  };
403
411
  return metadata;
404
412
  }
405
- return __bulkCreateSectionMigration;
413
+ return __bulkCreateSection;
406
414
  }
407
415
  function getSection(payload) {
408
416
  function __getSection({ host }) {
@@ -569,6 +577,15 @@ function deleteSection(payload) {
569
577
  }
570
578
  function querySections(payload) {
571
579
  function __querySections({ host }) {
580
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
581
+ {
582
+ transformFn: import_float.transformSDKFloatToRESTFloat,
583
+ paths: [
584
+ { path: "query.sort.origin.latitude" },
585
+ { path: "query.sort.origin.longitude" }
586
+ ]
587
+ }
588
+ ]);
572
589
  const metadata = {
573
590
  entityFqdn: "wix.online_programs.v3.section",
574
591
  method: "POST",
@@ -579,10 +596,10 @@ function querySections(payload) {
579
596
  },
580
597
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
581
598
  protoPath: "/v3/sections/query",
582
- data: payload,
599
+ data: serializedData,
583
600
  host
584
601
  }),
585
- data: payload,
602
+ data: serializedData,
586
603
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
587
604
  {
588
605
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
@@ -913,9 +930,9 @@ function createSection2() {
913
930
  __originalResponseType: null
914
931
  };
915
932
  }
916
- function bulkCreateSection2() {
933
+ function bulkCreateSections2() {
917
934
  const payload = {};
918
- const getRequestOptions = bulkCreateSection(payload);
935
+ const getRequestOptions = bulkCreateSections(payload);
919
936
  const getUrl = (context) => {
920
937
  const { url } = getRequestOptions(context);
921
938
  return url;
@@ -931,9 +948,9 @@ function bulkCreateSection2() {
931
948
  __originalResponseType: null
932
949
  };
933
950
  }
934
- function bulkCreateSectionMigration2() {
951
+ function bulkCreateSection2() {
935
952
  const payload = {};
936
- const getRequestOptions = bulkCreateSectionMigration(payload);
953
+ const getRequestOptions = bulkCreateSection(payload);
937
954
  const getUrl = (context) => {
938
955
  const { url } = getRequestOptions(context);
939
956
  return url;
@@ -941,7 +958,7 @@ function bulkCreateSectionMigration2() {
941
958
  return {
942
959
  getUrl,
943
960
  httpMethod: "POST",
944
- path: "/v3/bulk/sections/create/migration",
961
+ path: "/v3/bulk/sections/create-deprecated",
945
962
  pathParams: {},
946
963
  __requestType: null,
947
964
  __originalRequestType: null,
@@ -1104,7 +1121,7 @@ function publishSection2() {
1104
1121
  StateOriginal,
1105
1122
  WebhookIdentityTypeOriginal,
1106
1123
  bulkCreateSection,
1107
- bulkCreateSectionMigration,
1124
+ bulkCreateSections,
1108
1125
  cloneSection,
1109
1126
  createSection,
1110
1127
  deleteSection,