@wix/auto_sdk_online-programs_sections 1.0.0 → 1.0.2

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.
@@ -107,6 +107,16 @@ interface Image {
107
107
  */
108
108
  filename?: string | null;
109
109
  }
110
+ interface FocalPoint {
111
+ /** X-coordinate of the focal point. */
112
+ x?: number;
113
+ /** Y-coordinate of the focal point. */
114
+ y?: number;
115
+ /** crop by height */
116
+ height?: number | null;
117
+ /** crop by width */
118
+ width?: number | null;
119
+ }
110
120
  interface VideoV2 {
111
121
  /** WixMedia ID. */
112
122
  id?: string;
@@ -153,6 +163,149 @@ interface ExtendedFields {
153
163
  */
154
164
  namespaces?: Record<string, Record<string, any>>;
155
165
  }
166
+ interface UpdateDocumentsEvent extends UpdateDocumentsEventOperationOneOf {
167
+ /** insert/update documents */
168
+ update?: DocumentUpdateOperation;
169
+ /** delete by document ids */
170
+ deleteByIds?: DeleteByIdsOperation;
171
+ /** delete documents matching filter */
172
+ deleteByFilter?: DeleteByFilterOperation;
173
+ /** update documents matching filter */
174
+ updateByFilter?: UpdateByFilterOperation;
175
+ /** update only existing documents */
176
+ updateExisting?: UpdateExistingOperation;
177
+ /**
178
+ * application which owns documents
179
+ * @minLength 2
180
+ */
181
+ appDefId?: string | null;
182
+ /**
183
+ * type of the documents
184
+ * @minLength 2
185
+ */
186
+ documentType?: string | null;
187
+ /**
188
+ * language of the documents
189
+ * @minLength 2
190
+ */
191
+ language?: string | null;
192
+ /**
193
+ * site documents belong to
194
+ * @minLength 2
195
+ */
196
+ msId?: string | null;
197
+ }
198
+ /** @oneof */
199
+ interface UpdateDocumentsEventOperationOneOf {
200
+ /** insert/update documents */
201
+ update?: DocumentUpdateOperation;
202
+ /** delete by document ids */
203
+ deleteByIds?: DeleteByIdsOperation;
204
+ /** delete documents matching filter */
205
+ deleteByFilter?: DeleteByFilterOperation;
206
+ /** update documents matching filter */
207
+ updateByFilter?: UpdateByFilterOperation;
208
+ /** update only existing documents */
209
+ updateExisting?: UpdateExistingOperation;
210
+ }
211
+ interface DocumentUpdateOperation {
212
+ /** documents to index or update */
213
+ documents?: IndexDocument[];
214
+ }
215
+ interface IndexDocument {
216
+ /** data bag with non-searchable fields (url, image) */
217
+ payload?: DocumentPayload;
218
+ /** what type of users should documents be visible to */
219
+ exposure?: EnumWithLiterals;
220
+ /** document with mandatory fields (id, title, description) and with fields specific to the type of the document */
221
+ document?: Record<string, any> | null;
222
+ /** what member groups is the document exposed to. Used only with GROUP_PROTECTED exposure */
223
+ permittedMemberGroups?: string[];
224
+ /** if true SEO is disabled for this document */
225
+ seoHidden?: boolean | null;
226
+ /** if true the page is a lightbox popup */
227
+ isPopup?: boolean | null;
228
+ }
229
+ interface DocumentPayload {
230
+ /** url of the page representing the document */
231
+ url?: string | null;
232
+ /** image which represents the document */
233
+ documentImage?: DocumentImage;
234
+ }
235
+ interface DocumentImage {
236
+ /** the name of the image */
237
+ name?: string;
238
+ /** the width of the image */
239
+ width?: number;
240
+ /** the height of the image */
241
+ height?: number;
242
+ }
243
+ declare enum Enum {
244
+ /** Default value. Means that permission not set */
245
+ UNKNOWN = "UNKNOWN",
246
+ /** Protected exposure. Exposed to members and owners */
247
+ PROTECTED = "PROTECTED",
248
+ /** Private exposure. Exposed to owners */
249
+ PRIVATE = "PRIVATE",
250
+ /** Public exposure. Visible to everyone */
251
+ PUBLIC = "PUBLIC",
252
+ /** Used for partial updates, to state that exposure is not changing */
253
+ UNCHANGED = "UNCHANGED",
254
+ /** Protected to members of permitted groups and owners */
255
+ GROUP_PROTECTED = "GROUP_PROTECTED"
256
+ }
257
+ /** @enumType */
258
+ type EnumWithLiterals = Enum | 'UNKNOWN' | 'PROTECTED' | 'PRIVATE' | 'PUBLIC' | 'UNCHANGED' | 'GROUP_PROTECTED';
259
+ interface DeleteByIdsOperation {
260
+ /** ids of the documents to delete */
261
+ documentIds?: string[];
262
+ }
263
+ interface DeleteByFilterOperation {
264
+ /** documents matching this filter wil be deleted. only filterable documents defined in document_type can be used for filtering */
265
+ filter?: Record<string, any> | null;
266
+ }
267
+ interface UpdateByFilterOperation {
268
+ /** documents matching this filter will be updated */
269
+ filter?: Record<string, any> | null;
270
+ /** partial document to apply */
271
+ document?: IndexDocument;
272
+ }
273
+ interface UpdateExistingOperation {
274
+ /** documents to update */
275
+ documents?: IndexDocument[];
276
+ }
277
+ interface SectionUpdated {
278
+ /** Section before update. */
279
+ previous?: Section;
280
+ /** Section after update. */
281
+ current?: Section;
282
+ }
283
+ interface SectionDeleted {
284
+ /** Full section that was deleted */
285
+ section?: Section;
286
+ }
287
+ interface SectionCloned {
288
+ /** Section which was used as a prototype for cloning. */
289
+ prototype?: Section;
290
+ /** Result of section cloning. */
291
+ cloned?: Section;
292
+ }
293
+ interface SectionMoved {
294
+ /**
295
+ * Moved section id
296
+ * @format GUID
297
+ */
298
+ sectionId?: string;
299
+ /** section position */
300
+ newSectionPositionRank?: number;
301
+ }
302
+ interface SectionPublished {
303
+ /**
304
+ * Published section id
305
+ * @format GUID
306
+ */
307
+ sectionId?: string;
308
+ }
156
309
  interface CreateSectionRequest {
157
310
  /** Section to be created. */
158
311
  section: Section;
@@ -295,6 +448,21 @@ interface DeleteSectionRequest {
295
448
  }
296
449
  interface DeleteSectionResponse {
297
450
  }
451
+ interface DeleteAllProgramSectionsRequest {
452
+ /**
453
+ * Program id to delete sections from
454
+ * @format GUID
455
+ */
456
+ programId?: string;
457
+ }
458
+ interface DeleteAllProgramSectionsResponse {
459
+ /** Total count of sections in the program */
460
+ sectionsTotal?: number;
461
+ /** Count of successfully deleted sections */
462
+ successfulCount?: number;
463
+ /** Count of sections that failed to be deleted */
464
+ failedCount?: number;
465
+ }
298
466
  interface QuerySectionsRequest {
299
467
  /** WQL expression. */
300
468
  query?: CursorQuery;
@@ -480,6 +648,209 @@ interface PublishSectionResponse {
480
648
  /** Published section */
481
649
  section?: Section;
482
650
  }
651
+ interface BulkCloneSectionRequest {
652
+ /**
653
+ * id of program which was cloned
654
+ * @format GUID
655
+ */
656
+ prototypeProgramId?: string;
657
+ /**
658
+ * id of program created after clone
659
+ * @format GUID
660
+ */
661
+ clonedProgramId?: string;
662
+ }
663
+ interface BulkCloneSectionResponse {
664
+ /**
665
+ * id of program which was cloned
666
+ * @format GUID
667
+ */
668
+ prototypeProgramId?: string;
669
+ /**
670
+ * id of program created after clone
671
+ * @format GUID
672
+ */
673
+ clonedProgramId?: string;
674
+ /** mapping of original to cloned section ids */
675
+ prototypeIdToClonedId?: Record<string, string>;
676
+ }
677
+ interface RestoreSectionFromTrashRequest {
678
+ /**
679
+ * section id to restore
680
+ * @format GUID
681
+ */
682
+ sectionId?: string;
683
+ /**
684
+ * Predefined sets of fields to return.
685
+ * @maxSize 1
686
+ */
687
+ fields?: RequestedFieldsWithLiterals[];
688
+ }
689
+ interface RestoreSectionFromTrashResponse {
690
+ /** restored section */
691
+ section?: Section;
692
+ }
693
+ interface DomainEvent extends DomainEventBodyOneOf {
694
+ createdEvent?: EntityCreatedEvent;
695
+ updatedEvent?: EntityUpdatedEvent;
696
+ deletedEvent?: EntityDeletedEvent;
697
+ actionEvent?: ActionEvent;
698
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
699
+ id?: string;
700
+ /**
701
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
702
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
703
+ */
704
+ entityFqdn?: string;
705
+ /**
706
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
707
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
708
+ */
709
+ slug?: string;
710
+ /** ID of the entity associated with the event. */
711
+ entityId?: string;
712
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
713
+ eventTime?: Date | null;
714
+ /**
715
+ * Whether the event was triggered as a result of a privacy regulation application
716
+ * (for example, GDPR).
717
+ */
718
+ triggeredByAnonymizeRequest?: boolean | null;
719
+ /** If present, indicates the action that triggered the event. */
720
+ originatedFrom?: string | null;
721
+ /**
722
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
723
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
724
+ */
725
+ entityEventSequence?: string | null;
726
+ }
727
+ /** @oneof */
728
+ interface DomainEventBodyOneOf {
729
+ createdEvent?: EntityCreatedEvent;
730
+ updatedEvent?: EntityUpdatedEvent;
731
+ deletedEvent?: EntityDeletedEvent;
732
+ actionEvent?: ActionEvent;
733
+ }
734
+ interface EntityCreatedEvent {
735
+ entityAsJson?: string;
736
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
737
+ restoreInfo?: RestoreInfo;
738
+ }
739
+ interface RestoreInfo {
740
+ deletedDate?: Date | null;
741
+ }
742
+ interface EntityUpdatedEvent {
743
+ /**
744
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
745
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
746
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
747
+ */
748
+ currentEntityAsJson?: string;
749
+ }
750
+ interface EntityDeletedEvent {
751
+ /** Entity that was deleted. */
752
+ deletedEntityAsJson?: string | null;
753
+ }
754
+ interface ActionEvent {
755
+ bodyAsJson?: string;
756
+ }
757
+ interface Empty {
758
+ }
759
+ interface SearchIndexingNotification {
760
+ /** new state of indexing for the site specified in ms_id */
761
+ indexState?: SearchIndexingNotificationStateWithLiterals;
762
+ /** type of the document the notification is targeted for. Applies to all types if not provided */
763
+ documentType?: string | null;
764
+ /** languaInternalDocumentUpdateByFilterOperationge the notification is targeted for. Applies to all languages if not provided */
765
+ language?: string | null;
766
+ /**
767
+ * site for which notification is targeted
768
+ * @minLength 2
769
+ */
770
+ msId?: string | null;
771
+ }
772
+ declare enum SearchIndexingNotificationState {
773
+ /** default state */
774
+ Unknown = "Unknown",
775
+ /** metasite does not require site search indexing */
776
+ Off = "Off",
777
+ /** metasite requires site search indexing */
778
+ On = "On"
779
+ }
780
+ /** @enumType */
781
+ type SearchIndexingNotificationStateWithLiterals = SearchIndexingNotificationState | 'Unknown' | 'Off' | 'On';
782
+ interface MessageEnvelope {
783
+ /**
784
+ * App instance ID.
785
+ * @format GUID
786
+ */
787
+ instanceId?: string | null;
788
+ /**
789
+ * Event type.
790
+ * @maxLength 150
791
+ */
792
+ eventType?: string;
793
+ /** The identification type and identity data. */
794
+ identity?: IdentificationData;
795
+ /** Stringify payload. */
796
+ data?: string;
797
+ }
798
+ interface IdentificationData extends IdentificationDataIdOneOf {
799
+ /**
800
+ * ID of a site visitor that has not logged in to the site.
801
+ * @format GUID
802
+ */
803
+ anonymousVisitorId?: string;
804
+ /**
805
+ * ID of a site visitor that has logged in to the site.
806
+ * @format GUID
807
+ */
808
+ memberId?: string;
809
+ /**
810
+ * ID of a Wix user (site owner, contributor, etc.).
811
+ * @format GUID
812
+ */
813
+ wixUserId?: string;
814
+ /**
815
+ * ID of an app.
816
+ * @format GUID
817
+ */
818
+ appId?: string;
819
+ /** @readonly */
820
+ identityType?: WebhookIdentityTypeWithLiterals;
821
+ }
822
+ /** @oneof */
823
+ interface IdentificationDataIdOneOf {
824
+ /**
825
+ * ID of a site visitor that has not logged in to the site.
826
+ * @format GUID
827
+ */
828
+ anonymousVisitorId?: string;
829
+ /**
830
+ * ID of a site visitor that has logged in to the site.
831
+ * @format GUID
832
+ */
833
+ memberId?: string;
834
+ /**
835
+ * ID of a Wix user (site owner, contributor, etc.).
836
+ * @format GUID
837
+ */
838
+ wixUserId?: string;
839
+ /**
840
+ * ID of an app.
841
+ * @format GUID
842
+ */
843
+ appId?: string;
844
+ }
845
+ declare enum WebhookIdentityType {
846
+ UNKNOWN = "UNKNOWN",
847
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
848
+ MEMBER = "MEMBER",
849
+ WIX_USER = "WIX_USER",
850
+ APP = "APP"
851
+ }
852
+ /** @enumType */
853
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
483
854
 
484
855
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
485
856
  getUrl: (context: any) => string;
@@ -511,4 +882,4 @@ declare function cloneSection(): __PublicMethodMetaInfo<'POST', {
511
882
  declare function moveSection(): __PublicMethodMetaInfo<'PATCH', {}, MoveSectionRequest$1, MoveSectionRequest, MoveSectionResponse$1, MoveSectionResponse>;
512
883
  declare function publishSection(): __PublicMethodMetaInfo<'PATCH', {}, PublishSectionRequest$1, PublishSectionRequest, PublishSectionResponse$1, PublishSectionResponse>;
513
884
 
514
- export { type __PublicMethodMetaInfo, bulkCreateSection, bulkCreateSectionMigration, cloneSection, createSection, deleteSection, getSection, listSections, moveSection, publishSection, querySections, updateSection };
885
+ export { 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 };
package/build/cjs/meta.js CHANGED
@@ -20,6 +20,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // meta.ts
21
21
  var meta_exports = {};
22
22
  __export(meta_exports, {
23
+ BulkActionTypeOriginal: () => BulkActionType,
24
+ DescriptionFieldSetOriginal: () => DescriptionFieldSet,
25
+ EnumOriginal: () => Enum,
26
+ RequestedFieldsOriginal: () => RequestedFields,
27
+ SearchIndexingNotificationStateOriginal: () => SearchIndexingNotificationState,
28
+ SortOrderOriginal: () => SortOrder,
29
+ StateOriginal: () => State,
30
+ WebhookIdentityTypeOriginal: () => WebhookIdentityType,
23
31
  bulkCreateSection: () => bulkCreateSection2,
24
32
  bulkCreateSectionMigration: () => bulkCreateSectionMigration2,
25
33
  cloneSection: () => cloneSection2,
@@ -170,6 +178,9 @@ function createSection(payload) {
170
178
  method: "POST",
171
179
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.CreateSection",
172
180
  packageName: PACKAGE_NAME,
181
+ migrationOptions: {
182
+ optInTransformResponse: true
183
+ },
173
184
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
174
185
  protoPath: "/v3/sections",
175
186
  data: serializedData,
@@ -254,6 +265,9 @@ function bulkCreateSection(payload) {
254
265
  method: "POST",
255
266
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSection",
256
267
  packageName: PACKAGE_NAME,
268
+ migrationOptions: {
269
+ optInTransformResponse: true
270
+ },
257
271
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
258
272
  protoPath: "/v3/bulk/sections/create",
259
273
  data: serializedData,
@@ -340,6 +354,9 @@ function bulkCreateSectionMigration(payload) {
340
354
  method: "POST",
341
355
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSectionMigration",
342
356
  packageName: PACKAGE_NAME,
357
+ migrationOptions: {
358
+ optInTransformResponse: true
359
+ },
343
360
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
344
361
  protoPath: "/v3/bulk/sections/create/migration",
345
362
  data: serializedData,
@@ -394,6 +411,9 @@ function getSection(payload) {
394
411
  method: "GET",
395
412
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.GetSection",
396
413
  packageName: PACKAGE_NAME,
414
+ migrationOptions: {
415
+ optInTransformResponse: true
416
+ },
397
417
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
398
418
  protoPath: "/v3/sections/{sectionId}",
399
419
  data: payload,
@@ -478,6 +498,9 @@ function updateSection(payload) {
478
498
  method: "PATCH",
479
499
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.UpdateSection",
480
500
  packageName: PACKAGE_NAME,
501
+ migrationOptions: {
502
+ optInTransformResponse: true
503
+ },
481
504
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
482
505
  protoPath: "/v3/sections/{section.id}",
483
506
  data: serializedData,
@@ -530,6 +553,9 @@ function deleteSection(payload) {
530
553
  method: "DELETE",
531
554
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.DeleteSection",
532
555
  packageName: PACKAGE_NAME,
556
+ migrationOptions: {
557
+ optInTransformResponse: true
558
+ },
533
559
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
534
560
  protoPath: "/v3/sections/{sectionId}",
535
561
  data: payload,
@@ -548,6 +574,9 @@ function querySections(payload) {
548
574
  method: "POST",
549
575
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.QuerySections",
550
576
  packageName: PACKAGE_NAME,
577
+ migrationOptions: {
578
+ optInTransformResponse: true
579
+ },
551
580
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
552
581
  protoPath: "/v3/sections/query",
553
582
  data: payload,
@@ -600,6 +629,9 @@ function listSections(payload) {
600
629
  method: "GET",
601
630
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.ListSections",
602
631
  packageName: PACKAGE_NAME,
632
+ migrationOptions: {
633
+ optInTransformResponse: true
634
+ },
603
635
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
604
636
  protoPath: "/v3/sections",
605
637
  data: payload,
@@ -652,6 +684,9 @@ function cloneSection(payload) {
652
684
  method: "POST",
653
685
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.CloneSection",
654
686
  packageName: PACKAGE_NAME,
687
+ migrationOptions: {
688
+ optInTransformResponse: true
689
+ },
655
690
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
656
691
  protoPath: "/v3/sections/{sectionId}/clone",
657
692
  data: payload,
@@ -704,6 +739,9 @@ function moveSection(payload) {
704
739
  method: "PATCH",
705
740
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.MoveSection",
706
741
  packageName: PACKAGE_NAME,
742
+ migrationOptions: {
743
+ optInTransformResponse: true
744
+ },
707
745
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
708
746
  protoPath: "/v3/sections/move",
709
747
  data: payload,
@@ -756,6 +794,9 @@ function publishSection(payload) {
756
794
  method: "PATCH",
757
795
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.PublishSection",
758
796
  packageName: PACKAGE_NAME,
797
+ migrationOptions: {
798
+ optInTransformResponse: true
799
+ },
759
800
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
760
801
  protoPath: "/v3/sections/publish",
761
802
  data: payload,
@@ -802,6 +843,59 @@ function publishSection(payload) {
802
843
  return __publishSection;
803
844
  }
804
845
 
846
+ // src/online-programs-v3-section-sections.types.ts
847
+ var State = /* @__PURE__ */ ((State2) => {
848
+ State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
849
+ State2["DRAFT"] = "DRAFT";
850
+ State2["PUBLISHED"] = "PUBLISHED";
851
+ return State2;
852
+ })(State || {});
853
+ var Enum = /* @__PURE__ */ ((Enum2) => {
854
+ Enum2["UNKNOWN"] = "UNKNOWN";
855
+ Enum2["PROTECTED"] = "PROTECTED";
856
+ Enum2["PRIVATE"] = "PRIVATE";
857
+ Enum2["PUBLIC"] = "PUBLIC";
858
+ Enum2["UNCHANGED"] = "UNCHANGED";
859
+ Enum2["GROUP_PROTECTED"] = "GROUP_PROTECTED";
860
+ return Enum2;
861
+ })(Enum || {});
862
+ var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
863
+ RequestedFields2["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
864
+ RequestedFields2["TOTAL_STEPS"] = "TOTAL_STEPS";
865
+ return RequestedFields2;
866
+ })(RequestedFields || {});
867
+ var BulkActionType = /* @__PURE__ */ ((BulkActionType2) => {
868
+ BulkActionType2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
869
+ BulkActionType2["INSERT"] = "INSERT";
870
+ BulkActionType2["UPDATE"] = "UPDATE";
871
+ BulkActionType2["DELETE"] = "DELETE";
872
+ return BulkActionType2;
873
+ })(BulkActionType || {});
874
+ var DescriptionFieldSet = /* @__PURE__ */ ((DescriptionFieldSet2) => {
875
+ DescriptionFieldSet2["STANDARD"] = "STANDARD";
876
+ DescriptionFieldSet2["EXTENDED"] = "EXTENDED";
877
+ return DescriptionFieldSet2;
878
+ })(DescriptionFieldSet || {});
879
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
880
+ SortOrder2["ASC"] = "ASC";
881
+ SortOrder2["DESC"] = "DESC";
882
+ return SortOrder2;
883
+ })(SortOrder || {});
884
+ var SearchIndexingNotificationState = /* @__PURE__ */ ((SearchIndexingNotificationState2) => {
885
+ SearchIndexingNotificationState2["Unknown"] = "Unknown";
886
+ SearchIndexingNotificationState2["Off"] = "Off";
887
+ SearchIndexingNotificationState2["On"] = "On";
888
+ return SearchIndexingNotificationState2;
889
+ })(SearchIndexingNotificationState || {});
890
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
891
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
892
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
893
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
894
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
895
+ WebhookIdentityType2["APP"] = "APP";
896
+ return WebhookIdentityType2;
897
+ })(WebhookIdentityType || {});
898
+
805
899
  // src/online-programs-v3-section-sections.meta.ts
806
900
  function createSection2() {
807
901
  const payload = {};
@@ -1003,6 +1097,14 @@ function publishSection2() {
1003
1097
  }
1004
1098
  // Annotate the CommonJS export names for ESM import in node:
1005
1099
  0 && (module.exports = {
1100
+ BulkActionTypeOriginal,
1101
+ DescriptionFieldSetOriginal,
1102
+ EnumOriginal,
1103
+ RequestedFieldsOriginal,
1104
+ SearchIndexingNotificationStateOriginal,
1105
+ SortOrderOriginal,
1106
+ StateOriginal,
1107
+ WebhookIdentityTypeOriginal,
1006
1108
  bulkCreateSection,
1007
1109
  bulkCreateSectionMigration,
1008
1110
  cloneSection,