@wix/auto_sdk_editor-branches_branches 1.0.54 → 1.0.56

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 +1 -1
  2. package/build/cjs/index.js +3 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +28 -7
  5. package/build/cjs/index.typings.js +3 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +26 -6
  8. package/build/cjs/meta.js +3 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +16 -0
  11. package/build/cjs/schemas.js +32 -16
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +1 -1
  14. package/build/es/index.mjs +3 -0
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +28 -7
  17. package/build/es/index.typings.mjs +3 -0
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +26 -6
  20. package/build/es/meta.mjs +3 -0
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +16 -0
  23. package/build/es/schemas.mjs +32 -16
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +1 -1
  26. package/build/internal/cjs/index.js +3 -0
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +28 -7
  29. package/build/internal/cjs/index.typings.js +3 -0
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +26 -6
  32. package/build/internal/cjs/meta.js +3 -0
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +16 -0
  35. package/build/internal/cjs/schemas.js +32 -16
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +1 -1
  38. package/build/internal/es/index.mjs +3 -0
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +28 -7
  41. package/build/internal/es/index.typings.mjs +3 -0
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +26 -6
  44. package/build/internal/es/meta.mjs +3 -0
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +16 -0
  47. package/build/internal/es/schemas.mjs +32 -16
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -42,7 +42,8 @@ interface Branch extends BranchSourceOneOf {
42
42
  lastPublishDate?: string | null;
43
43
  /**
44
44
  * Wix editor type.
45
- * @readonly
45
+ * Provide this field only when the new branch uses a different editor than the branch it was created from, and the branch is not created from a template. Only `STUDIO_TWO` may be provided explicitly; otherwise the editor type is calculated automatically.
46
+ * @immutable
46
47
  */
47
48
  editorType?: EditorType;
48
49
  /**
@@ -99,10 +100,14 @@ declare enum EditorTypeOptions {
99
100
  /** Wix Studio Editor. */
100
101
  STUDIO = "STUDIO",
101
102
  /** Wix's Classic Editor. */
102
- CLASSIC = "CLASSIC"
103
+ CLASSIC = "CLASSIC",
104
+ /** Wix Type Harmony Editor. */
105
+ HARMONY = "HARMONY",
106
+ /** Wix StudioTwo Editor. */
107
+ STUDIO_TWO = "STUDIO_TWO"
103
108
  }
104
109
  /** @enumType */
105
- type EditorTypeOptionsWithLiterals = EditorTypeOptions | 'STUDIO' | 'CLASSIC';
110
+ type EditorTypeOptionsWithLiterals = EditorTypeOptions | 'STUDIO' | 'CLASSIC' | 'HARMONY' | 'STUDIO_TWO';
106
111
  interface SourceBranch {
107
112
  /**
108
113
  * Source branch ID.
@@ -647,10 +652,12 @@ declare enum Namespace {
647
652
  * Symphony — a siteless site representing a project within Symphony (the evolution of Orion).
648
653
  * Holds project data, conversations, assets, and manages collaborators / shared team members for the project.
649
654
  */
650
- SYMPHONY = "SYMPHONY"
655
+ SYMPHONY = "SYMPHONY",
656
+ /** Nautilus platform app. */
657
+ NAUTILUS_APPS = "NAUTILUS_APPS"
651
658
  }
652
659
  /** @enumType */
653
- type NamespaceWithLiterals = Namespace | 'UNKNOWN_NAMESPACE' | 'WIX' | 'SHOUT_OUT' | 'ALBUMS' | 'WIX_STORES_TEST_DRIVE' | 'HOTELS' | 'CLUBS' | 'ONBOARDING_DRAFT' | 'DEV_SITE' | 'LOGOS' | 'VIDEO_MAKER' | 'PARTNER_DASHBOARD' | 'DEV_CENTER_COMPANY' | 'HTML_DRAFT' | 'SITELESS_BUSINESS' | 'CREATOR_ECONOMY' | 'DASHBOARD_FIRST' | 'ANYWHERE' | 'HEADLESS' | 'ACCOUNT_MASTER_CMS' | 'RISE' | 'BRANDED_FIRST' | 'NOWNIA' | 'UGC_TEMPLATE' | 'CODUX' | 'MEDIA_DESIGN_CREATOR' | 'SHARED_BLOG_ENTERPRISE' | 'STANDALONE_FORMS' | 'STANDALONE_EVENTS' | 'MIMIR' | 'TWINS' | 'NANO' | 'BASE44' | 'CHANNELS' | 'NAUTILUS' | 'SYMPHONY';
660
+ type NamespaceWithLiterals = Namespace | 'UNKNOWN_NAMESPACE' | 'WIX' | 'SHOUT_OUT' | 'ALBUMS' | 'WIX_STORES_TEST_DRIVE' | 'HOTELS' | 'CLUBS' | 'ONBOARDING_DRAFT' | 'DEV_SITE' | 'LOGOS' | 'VIDEO_MAKER' | 'PARTNER_DASHBOARD' | 'DEV_CENTER_COMPANY' | 'HTML_DRAFT' | 'SITELESS_BUSINESS' | 'CREATOR_ECONOMY' | 'DASHBOARD_FIRST' | 'ANYWHERE' | 'HEADLESS' | 'ACCOUNT_MASTER_CMS' | 'RISE' | 'BRANDED_FIRST' | 'NOWNIA' | 'UGC_TEMPLATE' | 'CODUX' | 'MEDIA_DESIGN_CREATOR' | 'SHARED_BLOG_ENTERPRISE' | 'STANDALONE_FORMS' | 'STANDALONE_EVENTS' | 'MIMIR' | 'TWINS' | 'NANO' | 'BASE44' | 'CHANNELS' | 'NAUTILUS' | 'SYMPHONY' | 'NAUTILUS_APPS';
654
661
  /** Site transferred to another user. */
655
662
  interface SiteTransferred {
656
663
  /**
@@ -999,6 +1006,15 @@ interface BulkActionMetadata {
999
1006
  /** Number of failures without detailed error information because the detailed failure threshold was exceeded. */
1000
1007
  undetailedFailures?: number;
1001
1008
  }
1009
+ interface RestoreBranchFromBinRequest {
1010
+ /**
1011
+ * ID of the branch to restore from the trash bin.
1012
+ * @format GUID
1013
+ */
1014
+ branchId?: string;
1015
+ }
1016
+ interface RestoreBranchFromBinResponse {
1017
+ }
1002
1018
  interface BulkUpdateBranchTagsByFilterRequest {
1003
1019
  /** Filter to select which branches to update. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) for more information. */
1004
1020
  filter: Record<string, any> | null;
@@ -1130,6 +1146,10 @@ type CreateBranchApplicationErrors = {
1130
1146
  code?: 'SOURCE_USER_BRANCH_DOES_NOT_EXIST';
1131
1147
  description?: string;
1132
1148
  data?: Record<string, any>;
1149
+ } | {
1150
+ code?: 'EDITOR_TYPE_VALIDATION';
1151
+ description?: string;
1152
+ data?: Record<string, any>;
1133
1153
  };
1134
1154
  /** @docsIgnore */
1135
1155
  type UpdateBranchApplicationErrors = {
@@ -1349,7 +1369,8 @@ interface UpdateBranch {
1349
1369
  lastPublishDate?: string | null;
1350
1370
  /**
1351
1371
  * Wix editor type.
1352
- * @readonly
1372
+ * Provide this field only when the new branch uses a different editor than the branch it was created from, and the branch is not created from a template. Only `STUDIO_TWO` may be provided explicitly; otherwise the editor type is calculated automatically.
1373
+ * @immutable
1353
1374
  */
1354
1375
  editorType?: EditorType;
1355
1376
  /**
@@ -1614,4 +1635,4 @@ interface BulkUpdateBranchTagsByFilterOptions {
1614
1635
  unassignTags?: PublicTags;
1615
1636
  }
1616
1637
 
1617
- export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type ApplicationError, type Asset, type BaseEventMetadata, type Branch, type BranchCreatedEnvelope, type BranchDeletedEnvelope, type BranchQuery, type BranchQuerySpec, type BranchSourceOneOf, type BranchUpdatedEnvelope, type BranchesQueryBuilder, type BranchesQueryResult, type BulkActionMetadata, type BulkUpdateBranchTagsApplicationErrors, type BulkUpdateBranchTagsByFilterApplicationErrors, type BulkUpdateBranchTagsByFilterOptions, type BulkUpdateBranchTagsByFilterRequest, type BulkUpdateBranchTagsByFilterResponse, type BulkUpdateBranchTagsOptions, type BulkUpdateBranchTagsRequest, type BulkUpdateBranchTagsResponse, type BulkUpdateBranchTagsResult, type CommonQueryWithEntityContext, type CreateBranchApplicationErrors, type CreateBranchRequest, type CreateBranchResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteBranchApplicationErrors, type DeleteBranchRequest, type DeleteBranchResponse, type DeleteContext, DeleteStatus, type DeleteStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type EditorType, EditorTypeOptions, type EditorTypeOptionsWithLiterals, type EditorlessAssigned, type EditorlessUnassigned, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type GetBranchRequest, type GetBranchResponse, type GetDefaultBranchRequest, type GetDefaultBranchResponse, type HtmlSitePublished, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type Page, type PicassoAssigned, type PicassoUnassigned, type PublicTags, type QueryBranchesRequest, type QueryBranchesResponse, type RestoreInfo, type ServiceProvisioned, type ServiceRemoved, type SetDefaultBranchRequest, type SetDefaultBranchResponse, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, type SourceBranch, type SourceTemplate, SourceType, type SourceTypeWithLiterals, State, type StateWithLiterals, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, type TagList, type TagsModified, Type, type TypeWithLiterals, type UpdateBranch, type UpdateBranchApplicationErrors, type UpdateBranchRequest, type UpdateBranchResponse, type UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse, type UserDomainMediaDisabled, type UserDomainMediaEnabled, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned, bulkUpdateBranchTags, bulkUpdateBranchTagsByFilter, createBranch, deleteBranch, getBranch, getDefaultBranch, onBranchCreated, onBranchDeleted, onBranchUpdated, queryBranches, setDefaultBranch, typedQueryBranches, updateBranch, utils };
1638
+ export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type ApplicationError, type Asset, type BaseEventMetadata, type Branch, type BranchCreatedEnvelope, type BranchDeletedEnvelope, type BranchQuery, type BranchQuerySpec, type BranchSourceOneOf, type BranchUpdatedEnvelope, type BranchesQueryBuilder, type BranchesQueryResult, type BulkActionMetadata, type BulkUpdateBranchTagsApplicationErrors, type BulkUpdateBranchTagsByFilterApplicationErrors, type BulkUpdateBranchTagsByFilterOptions, type BulkUpdateBranchTagsByFilterRequest, type BulkUpdateBranchTagsByFilterResponse, type BulkUpdateBranchTagsOptions, type BulkUpdateBranchTagsRequest, type BulkUpdateBranchTagsResponse, type BulkUpdateBranchTagsResult, type CommonQueryWithEntityContext, type CreateBranchApplicationErrors, type CreateBranchRequest, type CreateBranchResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteBranchApplicationErrors, type DeleteBranchRequest, type DeleteBranchResponse, type DeleteContext, DeleteStatus, type DeleteStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type EditorType, EditorTypeOptions, type EditorTypeOptionsWithLiterals, type EditorlessAssigned, type EditorlessUnassigned, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type GetBranchRequest, type GetBranchResponse, type GetDefaultBranchRequest, type GetDefaultBranchResponse, type HtmlSitePublished, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type Page, type PicassoAssigned, type PicassoUnassigned, type PublicTags, type QueryBranchesRequest, type QueryBranchesResponse, type RestoreBranchFromBinRequest, type RestoreBranchFromBinResponse, type RestoreInfo, type ServiceProvisioned, type ServiceRemoved, type SetDefaultBranchRequest, type SetDefaultBranchResponse, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, type SourceBranch, type SourceTemplate, SourceType, type SourceTypeWithLiterals, State, type StateWithLiterals, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, type TagList, type TagsModified, Type, type TypeWithLiterals, type UpdateBranch, type UpdateBranchApplicationErrors, type UpdateBranchRequest, type UpdateBranchResponse, type UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse, type UserDomainMediaDisabled, type UserDomainMediaEnabled, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned, bulkUpdateBranchTags, bulkUpdateBranchTagsByFilter, createBranch, deleteBranch, getBranch, getDefaultBranch, onBranchCreated, onBranchDeleted, onBranchUpdated, queryBranches, setDefaultBranch, typedQueryBranches, updateBranch, utils };
@@ -366,6 +366,8 @@ var SourceType = /* @__PURE__ */ ((SourceType2) => {
366
366
  var EditorTypeOptions = /* @__PURE__ */ ((EditorTypeOptions2) => {
367
367
  EditorTypeOptions2["STUDIO"] = "STUDIO";
368
368
  EditorTypeOptions2["CLASSIC"] = "CLASSIC";
369
+ EditorTypeOptions2["HARMONY"] = "HARMONY";
370
+ EditorTypeOptions2["STUDIO_TWO"] = "STUDIO_TWO";
369
371
  return EditorTypeOptions2;
370
372
  })(EditorTypeOptions || {});
371
373
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
@@ -427,6 +429,7 @@ var Namespace = /* @__PURE__ */ ((Namespace2) => {
427
429
  Namespace2["CHANNELS"] = "CHANNELS";
428
430
  Namespace2["NAUTILUS"] = "NAUTILUS";
429
431
  Namespace2["SYMPHONY"] = "SYMPHONY";
432
+ Namespace2["NAUTILUS_APPS"] = "NAUTILUS_APPS";
430
433
  return Namespace2;
431
434
  })(Namespace || {});
432
435
  var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {