@wix/auto_sdk_editor-branches_branches 1.0.53 → 1.0.55

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 (45) hide show
  1. package/build/cjs/index.js +3 -0
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +20 -8
  4. package/build/cjs/index.typings.js +3 -0
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +17 -6
  7. package/build/cjs/meta.js +3 -0
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/cjs/schemas.d.ts +16 -0
  10. package/build/cjs/schemas.js +32 -16
  11. package/build/cjs/schemas.js.map +1 -1
  12. package/build/es/index.mjs +3 -0
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +20 -8
  15. package/build/es/index.typings.mjs +3 -0
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +17 -6
  18. package/build/es/meta.mjs +3 -0
  19. package/build/es/meta.mjs.map +1 -1
  20. package/build/es/schemas.d.mts +16 -0
  21. package/build/es/schemas.mjs +32 -16
  22. package/build/es/schemas.mjs.map +1 -1
  23. package/build/internal/cjs/index.js +3 -0
  24. package/build/internal/cjs/index.js.map +1 -1
  25. package/build/internal/cjs/index.typings.d.ts +20 -8
  26. package/build/internal/cjs/index.typings.js +3 -0
  27. package/build/internal/cjs/index.typings.js.map +1 -1
  28. package/build/internal/cjs/meta.d.ts +17 -6
  29. package/build/internal/cjs/meta.js +3 -0
  30. package/build/internal/cjs/meta.js.map +1 -1
  31. package/build/internal/cjs/schemas.d.ts +16 -0
  32. package/build/internal/cjs/schemas.js +32 -16
  33. package/build/internal/cjs/schemas.js.map +1 -1
  34. package/build/internal/es/index.mjs +3 -0
  35. package/build/internal/es/index.mjs.map +1 -1
  36. package/build/internal/es/index.typings.d.mts +20 -8
  37. package/build/internal/es/index.typings.mjs +3 -0
  38. package/build/internal/es/index.typings.mjs.map +1 -1
  39. package/build/internal/es/meta.d.mts +17 -6
  40. package/build/internal/es/meta.mjs +3 -0
  41. package/build/internal/es/meta.mjs.map +1 -1
  42. package/build/internal/es/schemas.d.mts +16 -0
  43. package/build/internal/es/schemas.mjs +32 -16
  44. package/build/internal/es/schemas.mjs.map +1 -1
  45. 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
  /**
@@ -893,7 +900,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
893
900
  /** If present, indicates the action that triggered the event. */
894
901
  originatedFrom?: string | null;
895
902
  /**
896
- * 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.
903
+ * 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.
897
904
  * 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.
898
905
  */
899
906
  entityEventSequence?: string | null;
@@ -1130,6 +1137,10 @@ type CreateBranchApplicationErrors = {
1130
1137
  code?: 'SOURCE_USER_BRANCH_DOES_NOT_EXIST';
1131
1138
  description?: string;
1132
1139
  data?: Record<string, any>;
1140
+ } | {
1141
+ code?: 'EDITOR_TYPE_VALIDATION';
1142
+ description?: string;
1143
+ data?: Record<string, any>;
1133
1144
  };
1134
1145
  /** @docsIgnore */
1135
1146
  type UpdateBranchApplicationErrors = {
@@ -1200,7 +1211,7 @@ interface EventMetadata extends BaseEventMetadata {
1200
1211
  /** If present, indicates the action that triggered the event. */
1201
1212
  originatedFrom?: string | null;
1202
1213
  /**
1203
- * 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.
1214
+ * 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.
1204
1215
  * 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.
1205
1216
  */
1206
1217
  entityEventSequence?: string | null;
@@ -1349,7 +1360,8 @@ interface UpdateBranch {
1349
1360
  lastPublishDate?: string | null;
1350
1361
  /**
1351
1362
  * Wix editor type.
1352
- * @readonly
1363
+ * 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.
1364
+ * @immutable
1353
1365
  */
1354
1366
  editorType?: EditorType;
1355
1367
  /**
@@ -408,6 +408,8 @@ var SourceType = /* @__PURE__ */ ((SourceType2) => {
408
408
  var EditorTypeOptions = /* @__PURE__ */ ((EditorTypeOptions2) => {
409
409
  EditorTypeOptions2["STUDIO"] = "STUDIO";
410
410
  EditorTypeOptions2["CLASSIC"] = "CLASSIC";
411
+ EditorTypeOptions2["HARMONY"] = "HARMONY";
412
+ EditorTypeOptions2["STUDIO_TWO"] = "STUDIO_TWO";
411
413
  return EditorTypeOptions2;
412
414
  })(EditorTypeOptions || {});
413
415
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
@@ -469,6 +471,7 @@ var Namespace = /* @__PURE__ */ ((Namespace2) => {
469
471
  Namespace2["CHANNELS"] = "CHANNELS";
470
472
  Namespace2["NAUTILUS"] = "NAUTILUS";
471
473
  Namespace2["SYMPHONY"] = "SYMPHONY";
474
+ Namespace2["NAUTILUS_APPS"] = "NAUTILUS_APPS";
472
475
  return Namespace2;
473
476
  })(Namespace || {});
474
477
  var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {