@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.mjs';
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.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 */
@@ -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 };
package/build/es/meta.mjs CHANGED
@@ -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
  };
@@ -182,8 +190,8 @@ function createSection(payload) {
182
190
  }
183
191
  return __createSection;
184
192
  }
185
- function bulkCreateSection(payload) {
186
- function __bulkCreateSection({ host }) {
193
+ function bulkCreateSections(payload) {
194
+ function __bulkCreateSections({ host }) {
187
195
  const serializedData = transformPaths(payload, [
188
196
  {
189
197
  transformFn: transformSDKTimestampToRESTTimestamp,
@@ -219,7 +227,7 @@ function bulkCreateSection(payload) {
219
227
  const metadata = {
220
228
  entityFqdn: "wix.online_programs.v3.section",
221
229
  method: "POST",
222
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSection",
230
+ methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSections",
223
231
  packageName: PACKAGE_NAME,
224
232
  migrationOptions: {
225
233
  optInTransformResponse: true
@@ -269,10 +277,10 @@ function bulkCreateSection(payload) {
269
277
  };
270
278
  return metadata;
271
279
  }
272
- return __bulkCreateSection;
280
+ return __bulkCreateSections;
273
281
  }
274
- function bulkCreateSectionMigration(payload) {
275
- function __bulkCreateSectionMigration({ host }) {
282
+ function bulkCreateSection(payload) {
283
+ function __bulkCreateSection({ host }) {
276
284
  const serializedData = transformPaths(payload, [
277
285
  {
278
286
  transformFn: transformSDKTimestampToRESTTimestamp,
@@ -308,13 +316,13 @@ function bulkCreateSectionMigration(payload) {
308
316
  const metadata = {
309
317
  entityFqdn: "wix.online_programs.v3.section",
310
318
  method: "POST",
311
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSectionMigration",
319
+ methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSection",
312
320
  packageName: PACKAGE_NAME,
313
321
  migrationOptions: {
314
322
  optInTransformResponse: true
315
323
  },
316
324
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
317
- protoPath: "/v3/bulk/sections/create/migration",
325
+ protoPath: "/v3/bulk/sections/create-deprecated",
318
326
  data: serializedData,
319
327
  host
320
328
  }),
@@ -358,7 +366,7 @@ function bulkCreateSectionMigration(payload) {
358
366
  };
359
367
  return metadata;
360
368
  }
361
- return __bulkCreateSectionMigration;
369
+ return __bulkCreateSection;
362
370
  }
363
371
  function getSection(payload) {
364
372
  function __getSection({ host }) {
@@ -525,6 +533,15 @@ function deleteSection(payload) {
525
533
  }
526
534
  function querySections(payload) {
527
535
  function __querySections({ host }) {
536
+ const serializedData = transformPaths(payload, [
537
+ {
538
+ transformFn: transformSDKFloatToRESTFloat,
539
+ paths: [
540
+ { path: "query.sort.origin.latitude" },
541
+ { path: "query.sort.origin.longitude" }
542
+ ]
543
+ }
544
+ ]);
528
545
  const metadata = {
529
546
  entityFqdn: "wix.online_programs.v3.section",
530
547
  method: "POST",
@@ -535,10 +552,10 @@ function querySections(payload) {
535
552
  },
536
553
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
537
554
  protoPath: "/v3/sections/query",
538
- data: payload,
555
+ data: serializedData,
539
556
  host
540
557
  }),
541
- data: payload,
558
+ data: serializedData,
542
559
  transformResponse: (payload2) => transformPaths(payload2, [
543
560
  {
544
561
  transformFn: transformRESTTimestampToSDKTimestamp,
@@ -869,9 +886,9 @@ function createSection2() {
869
886
  __originalResponseType: null
870
887
  };
871
888
  }
872
- function bulkCreateSection2() {
889
+ function bulkCreateSections2() {
873
890
  const payload = {};
874
- const getRequestOptions = bulkCreateSection(payload);
891
+ const getRequestOptions = bulkCreateSections(payload);
875
892
  const getUrl = (context) => {
876
893
  const { url } = getRequestOptions(context);
877
894
  return url;
@@ -887,9 +904,9 @@ function bulkCreateSection2() {
887
904
  __originalResponseType: null
888
905
  };
889
906
  }
890
- function bulkCreateSectionMigration2() {
907
+ function bulkCreateSection2() {
891
908
  const payload = {};
892
- const getRequestOptions = bulkCreateSectionMigration(payload);
909
+ const getRequestOptions = bulkCreateSection(payload);
893
910
  const getUrl = (context) => {
894
911
  const { url } = getRequestOptions(context);
895
912
  return url;
@@ -897,7 +914,7 @@ function bulkCreateSectionMigration2() {
897
914
  return {
898
915
  getUrl,
899
916
  httpMethod: "POST",
900
- path: "/v3/bulk/sections/create/migration",
917
+ path: "/v3/bulk/sections/create-deprecated",
901
918
  pathParams: {},
902
919
  __requestType: null,
903
920
  __originalRequestType: null,
@@ -1059,7 +1076,7 @@ export {
1059
1076
  State as StateOriginal,
1060
1077
  WebhookIdentityType as WebhookIdentityTypeOriginal,
1061
1078
  bulkCreateSection2 as bulkCreateSection,
1062
- bulkCreateSectionMigration2 as bulkCreateSectionMigration,
1079
+ bulkCreateSections2 as bulkCreateSections,
1063
1080
  cloneSection2 as cloneSection,
1064
1081
  createSection2 as createSection,
1065
1082
  deleteSection2 as deleteSection,