@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/es/meta.mjs CHANGED
@@ -134,6 +134,9 @@ function createSection(payload) {
134
134
  method: "POST",
135
135
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.CreateSection",
136
136
  packageName: PACKAGE_NAME,
137
+ migrationOptions: {
138
+ optInTransformResponse: true
139
+ },
137
140
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
138
141
  protoPath: "/v3/sections",
139
142
  data: serializedData,
@@ -218,6 +221,9 @@ function bulkCreateSection(payload) {
218
221
  method: "POST",
219
222
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSection",
220
223
  packageName: PACKAGE_NAME,
224
+ migrationOptions: {
225
+ optInTransformResponse: true
226
+ },
221
227
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
222
228
  protoPath: "/v3/bulk/sections/create",
223
229
  data: serializedData,
@@ -304,6 +310,9 @@ function bulkCreateSectionMigration(payload) {
304
310
  method: "POST",
305
311
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.BulkCreateSectionMigration",
306
312
  packageName: PACKAGE_NAME,
313
+ migrationOptions: {
314
+ optInTransformResponse: true
315
+ },
307
316
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
308
317
  protoPath: "/v3/bulk/sections/create/migration",
309
318
  data: serializedData,
@@ -358,6 +367,9 @@ function getSection(payload) {
358
367
  method: "GET",
359
368
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.GetSection",
360
369
  packageName: PACKAGE_NAME,
370
+ migrationOptions: {
371
+ optInTransformResponse: true
372
+ },
361
373
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
362
374
  protoPath: "/v3/sections/{sectionId}",
363
375
  data: payload,
@@ -442,6 +454,9 @@ function updateSection(payload) {
442
454
  method: "PATCH",
443
455
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.UpdateSection",
444
456
  packageName: PACKAGE_NAME,
457
+ migrationOptions: {
458
+ optInTransformResponse: true
459
+ },
445
460
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
446
461
  protoPath: "/v3/sections/{section.id}",
447
462
  data: serializedData,
@@ -494,6 +509,9 @@ function deleteSection(payload) {
494
509
  method: "DELETE",
495
510
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.DeleteSection",
496
511
  packageName: PACKAGE_NAME,
512
+ migrationOptions: {
513
+ optInTransformResponse: true
514
+ },
497
515
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
498
516
  protoPath: "/v3/sections/{sectionId}",
499
517
  data: payload,
@@ -512,6 +530,9 @@ function querySections(payload) {
512
530
  method: "POST",
513
531
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.QuerySections",
514
532
  packageName: PACKAGE_NAME,
533
+ migrationOptions: {
534
+ optInTransformResponse: true
535
+ },
515
536
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
516
537
  protoPath: "/v3/sections/query",
517
538
  data: payload,
@@ -564,6 +585,9 @@ function listSections(payload) {
564
585
  method: "GET",
565
586
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.ListSections",
566
587
  packageName: PACKAGE_NAME,
588
+ migrationOptions: {
589
+ optInTransformResponse: true
590
+ },
567
591
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
568
592
  protoPath: "/v3/sections",
569
593
  data: payload,
@@ -616,6 +640,9 @@ function cloneSection(payload) {
616
640
  method: "POST",
617
641
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.CloneSection",
618
642
  packageName: PACKAGE_NAME,
643
+ migrationOptions: {
644
+ optInTransformResponse: true
645
+ },
619
646
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
620
647
  protoPath: "/v3/sections/{sectionId}/clone",
621
648
  data: payload,
@@ -668,6 +695,9 @@ function moveSection(payload) {
668
695
  method: "PATCH",
669
696
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.MoveSection",
670
697
  packageName: PACKAGE_NAME,
698
+ migrationOptions: {
699
+ optInTransformResponse: true
700
+ },
671
701
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
672
702
  protoPath: "/v3/sections/move",
673
703
  data: payload,
@@ -720,6 +750,9 @@ function publishSection(payload) {
720
750
  method: "PATCH",
721
751
  methodFqn: "wix.onlineprograms.sections.v3.SectionsService.PublishSection",
722
752
  packageName: PACKAGE_NAME,
753
+ migrationOptions: {
754
+ optInTransformResponse: true
755
+ },
723
756
  url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
724
757
  protoPath: "/v3/sections/publish",
725
758
  data: payload,
@@ -766,6 +799,59 @@ function publishSection(payload) {
766
799
  return __publishSection;
767
800
  }
768
801
 
802
+ // src/online-programs-v3-section-sections.types.ts
803
+ var State = /* @__PURE__ */ ((State2) => {
804
+ State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
805
+ State2["DRAFT"] = "DRAFT";
806
+ State2["PUBLISHED"] = "PUBLISHED";
807
+ return State2;
808
+ })(State || {});
809
+ var Enum = /* @__PURE__ */ ((Enum2) => {
810
+ Enum2["UNKNOWN"] = "UNKNOWN";
811
+ Enum2["PROTECTED"] = "PROTECTED";
812
+ Enum2["PRIVATE"] = "PRIVATE";
813
+ Enum2["PUBLIC"] = "PUBLIC";
814
+ Enum2["UNCHANGED"] = "UNCHANGED";
815
+ Enum2["GROUP_PROTECTED"] = "GROUP_PROTECTED";
816
+ return Enum2;
817
+ })(Enum || {});
818
+ var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
819
+ RequestedFields2["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
820
+ RequestedFields2["TOTAL_STEPS"] = "TOTAL_STEPS";
821
+ return RequestedFields2;
822
+ })(RequestedFields || {});
823
+ var BulkActionType = /* @__PURE__ */ ((BulkActionType2) => {
824
+ BulkActionType2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
825
+ BulkActionType2["INSERT"] = "INSERT";
826
+ BulkActionType2["UPDATE"] = "UPDATE";
827
+ BulkActionType2["DELETE"] = "DELETE";
828
+ return BulkActionType2;
829
+ })(BulkActionType || {});
830
+ var DescriptionFieldSet = /* @__PURE__ */ ((DescriptionFieldSet2) => {
831
+ DescriptionFieldSet2["STANDARD"] = "STANDARD";
832
+ DescriptionFieldSet2["EXTENDED"] = "EXTENDED";
833
+ return DescriptionFieldSet2;
834
+ })(DescriptionFieldSet || {});
835
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
836
+ SortOrder2["ASC"] = "ASC";
837
+ SortOrder2["DESC"] = "DESC";
838
+ return SortOrder2;
839
+ })(SortOrder || {});
840
+ var SearchIndexingNotificationState = /* @__PURE__ */ ((SearchIndexingNotificationState2) => {
841
+ SearchIndexingNotificationState2["Unknown"] = "Unknown";
842
+ SearchIndexingNotificationState2["Off"] = "Off";
843
+ SearchIndexingNotificationState2["On"] = "On";
844
+ return SearchIndexingNotificationState2;
845
+ })(SearchIndexingNotificationState || {});
846
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
847
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
848
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
849
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
850
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
851
+ WebhookIdentityType2["APP"] = "APP";
852
+ return WebhookIdentityType2;
853
+ })(WebhookIdentityType || {});
854
+
769
855
  // src/online-programs-v3-section-sections.meta.ts
770
856
  function createSection2() {
771
857
  const payload = {};
@@ -966,6 +1052,14 @@ function publishSection2() {
966
1052
  };
967
1053
  }
968
1054
  export {
1055
+ BulkActionType as BulkActionTypeOriginal,
1056
+ DescriptionFieldSet as DescriptionFieldSetOriginal,
1057
+ Enum as EnumOriginal,
1058
+ RequestedFields as RequestedFieldsOriginal,
1059
+ SearchIndexingNotificationState as SearchIndexingNotificationStateOriginal,
1060
+ SortOrder as SortOrderOriginal,
1061
+ State as StateOriginal,
1062
+ WebhookIdentityType as WebhookIdentityTypeOriginal,
969
1063
  bulkCreateSection2 as bulkCreateSection,
970
1064
  bulkCreateSectionMigration2 as bulkCreateSectionMigration,
971
1065
  cloneSection2 as cloneSection,