@wix/auto_sdk_editor-branches_branches 1.0.48 → 1.0.50

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 (46) hide show
  1. package/build/cjs/index.js +1 -4
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +29 -53
  4. package/build/cjs/index.typings.js +1 -4
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +22 -34
  7. package/build/cjs/meta.js +1 -4
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/cjs/schemas.d.ts +465 -0
  10. package/build/cjs/schemas.js +777 -0
  11. package/build/cjs/schemas.js.map +1 -0
  12. package/build/es/index.mjs +1 -4
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +29 -53
  15. package/build/es/index.typings.mjs +1 -4
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +22 -34
  18. package/build/es/meta.mjs +1 -4
  19. package/build/es/meta.mjs.map +1 -1
  20. package/build/es/schemas.d.mts +465 -0
  21. package/build/es/schemas.mjs +723 -0
  22. package/build/es/schemas.mjs.map +1 -0
  23. package/build/internal/cjs/index.js +1 -4
  24. package/build/internal/cjs/index.js.map +1 -1
  25. package/build/internal/cjs/index.typings.d.ts +29 -53
  26. package/build/internal/cjs/index.typings.js +1 -4
  27. package/build/internal/cjs/index.typings.js.map +1 -1
  28. package/build/internal/cjs/meta.d.ts +22 -34
  29. package/build/internal/cjs/meta.js +1 -4
  30. package/build/internal/cjs/meta.js.map +1 -1
  31. package/build/internal/cjs/schemas.d.ts +465 -0
  32. package/build/internal/cjs/schemas.js +777 -0
  33. package/build/internal/cjs/schemas.js.map +1 -0
  34. package/build/internal/es/index.mjs +1 -4
  35. package/build/internal/es/index.mjs.map +1 -1
  36. package/build/internal/es/index.typings.d.mts +29 -53
  37. package/build/internal/es/index.typings.mjs +1 -4
  38. package/build/internal/es/index.typings.mjs.map +1 -1
  39. package/build/internal/es/meta.d.mts +22 -34
  40. package/build/internal/es/meta.mjs +1 -4
  41. package/build/internal/es/meta.mjs.map +1 -1
  42. package/build/internal/es/schemas.d.mts +465 -0
  43. package/build/internal/es/schemas.mjs +723 -0
  44. package/build/internal/es/schemas.mjs.map +1 -0
  45. package/package.json +12 -5
  46. package/schemas/package.json +3 -0
@@ -76,8 +76,6 @@ interface BranchSourceOneOf {
76
76
  sourceTemplateProperties?: SourceTemplate;
77
77
  }
78
78
  declare enum Type {
79
- /** Unknown branch type. */
80
- UNKNOWN_TYPE = "UNKNOWN_TYPE",
81
79
  /** A branch created by a site owner that can be accessed for editing and publishing in the editor. */
82
80
  USER = "USER",
83
81
  /** A branch created for technical purposes, unrelated to site owners. For internal use, can't be accessed in the editor. */
@@ -86,31 +84,25 @@ declare enum Type {
86
84
  ORIGINAL_BRANCH = "ORIGINAL_BRANCH"
87
85
  }
88
86
  /** @enumType */
89
- type TypeWithLiterals = Type | 'UNKNOWN_TYPE' | 'USER' | 'TECHNICAL' | 'ORIGINAL_BRANCH';
87
+ type TypeWithLiterals = Type | 'USER' | 'TECHNICAL' | 'ORIGINAL_BRANCH';
90
88
  declare enum SourceType {
91
- /** Unknown source type. Don't use - will cause `ILLEGAL_SOURCE_TYPE` error. */
92
- UNKNOWN_SOURCE_TYPE = "UNKNOWN_SOURCE_TYPE",
93
89
  /** This branch's source was another branch. Must be used with `sourceBranchProperties`. */
94
- SOURCE_BRANCH = "SOURCE_BRANCH",
95
- /** This branch's source was a template. Must be used with `sourceTemplateProperties`. For internal use. */
96
- SOURCE_TEMPLATE = "SOURCE_TEMPLATE"
90
+ SOURCE_BRANCH = "SOURCE_BRANCH"
97
91
  }
98
92
  /** @enumType */
99
- type SourceTypeWithLiterals = SourceType | 'UNKNOWN_SOURCE_TYPE' | 'SOURCE_BRANCH' | 'SOURCE_TEMPLATE';
93
+ type SourceTypeWithLiterals = SourceType | 'SOURCE_BRANCH';
100
94
  interface EditorType {
101
95
  /** Wix editor types. */
102
96
  editorTypeOptions?: EditorTypeOptionsWithLiterals;
103
97
  }
104
98
  declare enum EditorTypeOptions {
105
- /** Unknown editor type. */
106
- UNKNOWN_EDITOR_TYPE = "UNKNOWN_EDITOR_TYPE",
107
99
  /** Wix Studio Editor. */
108
100
  STUDIO = "STUDIO",
109
101
  /** Wix's Classic Editor. */
110
102
  CLASSIC = "CLASSIC"
111
103
  }
112
104
  /** @enumType */
113
- type EditorTypeOptionsWithLiterals = EditorTypeOptions | 'UNKNOWN_EDITOR_TYPE' | 'STUDIO' | 'CLASSIC';
105
+ type EditorTypeOptionsWithLiterals = EditorTypeOptions | 'STUDIO' | 'CLASSIC';
114
106
  interface SourceBranch {
115
107
  /**
116
108
  * Source branch ID.
@@ -199,39 +191,33 @@ interface QueryBranchesRequest {
199
191
  query?: CursorQuery;
200
192
  }
201
193
  interface CursorQuery extends CursorQueryPagingMethodOneOf {
202
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
203
- cursorPaging?: CursorPaging;
204
194
  /**
205
- * Filter object in the following format: `"filter" : { "fieldName1": "value1", "fieldName2":{"$operator":"value2"}}`.
206
- *
207
- * Filterable fields:
195
+ * Cursor paging options.
208
196
  *
209
- * - `type`,
210
- * - `name`,
211
- * - `updatedDate`,
212
- * - `createdDate`,
213
- * - `lastPublishDate`,
214
- * - `sourceBranchProperties.branchId`,
215
- * - `sourceBranchProperties.branchRevision`
197
+ * Learn more about [cursor paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language#cursor-paging).
198
+ */
199
+ cursorPaging?: CursorPaging;
200
+ /**
201
+ * Filter object.
216
202
  *
217
- * All operators are valid.
203
+ * Learn more about [filtering](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language#filters).
218
204
  */
219
205
  filter?: Record<string, any> | null;
220
206
  /**
221
- * Sort object in the following format: `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`.
222
- *
223
- * Sortable fields:
207
+ * Sort object.
224
208
  *
225
- * - `updatedDate`,
226
- * - `createdDate`,
227
- * - `lastPublishDate`
209
+ * Learn more about [sorting](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language#sorting).
228
210
  * @maxSize 5
229
211
  */
230
212
  sort?: Sorting[];
231
213
  }
232
214
  /** @oneof */
233
215
  interface CursorQueryPagingMethodOneOf {
234
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
216
+ /**
217
+ * Cursor paging options.
218
+ *
219
+ * Learn more about [cursor paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language#cursor-paging).
220
+ */
235
221
  cursorPaging?: CursorPaging;
236
222
  }
237
223
  interface Sorting {
@@ -652,10 +638,12 @@ declare enum Namespace {
652
638
  /** Base44 headless sites. */
653
639
  BASE44 = "BASE44",
654
640
  /** Wix Channels Sites */
655
- CHANNELS = "CHANNELS"
641
+ CHANNELS = "CHANNELS",
642
+ /** Nautilus platform. */
643
+ NAUTILUS = "NAUTILUS"
656
644
  }
657
645
  /** @enumType */
658
- 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';
646
+ 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';
659
647
  /** Site transferred to another user. */
660
648
  interface SiteTransferred {
661
649
  /**
@@ -1502,7 +1490,9 @@ interface BranchQuerySpec extends QuerySpec {
1502
1490
  type CommonQueryWithEntityContext = Query<Branch, BranchQuerySpec>;
1503
1491
  type BranchQuery = {
1504
1492
  /**
1505
- Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`.
1493
+ Cursor paging options.
1494
+
1495
+ Learn more about [cursor paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language#cursor-paging).
1506
1496
  */
1507
1497
  cursorPaging?: {
1508
1498
  /**
@@ -1520,29 +1510,15 @@ type BranchQuery = {
1520
1510
  cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
1521
1511
  };
1522
1512
  /**
1523
- Filter object in the following format: `"filter" : { "fieldName1": "value1", "fieldName2":{"$operator":"value2"}}`.
1513
+ Filter object.
1524
1514
 
1525
- Filterable fields:
1526
-
1527
- - `type`,
1528
- - `name`,
1529
- - `updatedDate`,
1530
- - `createdDate`,
1531
- - `lastPublishDate`,
1532
- - `sourceBranchProperties.branchId`,
1533
- - `sourceBranchProperties.branchRevision`
1534
-
1535
- All operators are valid.
1515
+ Learn more about [filtering](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language#filters).
1536
1516
  */
1537
1517
  filter?: CommonQueryWithEntityContext['filter'] | null;
1538
1518
  /**
1539
- Sort object in the following format: `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`.
1540
-
1541
- Sortable fields:
1519
+ Sort object.
1542
1520
 
1543
- - `updatedDate`,
1544
- - `createdDate`,
1545
- - `lastPublishDate`
1521
+ Learn more about [sorting](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language#sorting).
1546
1522
  @maxSize: 5
1547
1523
  */
1548
1524
  sort?: {
@@ -396,20 +396,16 @@ function bulkUpdateBranchTagsByFilter(payload) {
396
396
  var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
397
397
  var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
398
398
  var Type = /* @__PURE__ */ ((Type2) => {
399
- Type2["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
400
399
  Type2["USER"] = "USER";
401
400
  Type2["TECHNICAL"] = "TECHNICAL";
402
401
  Type2["ORIGINAL_BRANCH"] = "ORIGINAL_BRANCH";
403
402
  return Type2;
404
403
  })(Type || {});
405
404
  var SourceType = /* @__PURE__ */ ((SourceType2) => {
406
- SourceType2["UNKNOWN_SOURCE_TYPE"] = "UNKNOWN_SOURCE_TYPE";
407
405
  SourceType2["SOURCE_BRANCH"] = "SOURCE_BRANCH";
408
- SourceType2["SOURCE_TEMPLATE"] = "SOURCE_TEMPLATE";
409
406
  return SourceType2;
410
407
  })(SourceType || {});
411
408
  var EditorTypeOptions = /* @__PURE__ */ ((EditorTypeOptions2) => {
412
- EditorTypeOptions2["UNKNOWN_EDITOR_TYPE"] = "UNKNOWN_EDITOR_TYPE";
413
409
  EditorTypeOptions2["STUDIO"] = "STUDIO";
414
410
  EditorTypeOptions2["CLASSIC"] = "CLASSIC";
415
411
  return EditorTypeOptions2;
@@ -471,6 +467,7 @@ var Namespace = /* @__PURE__ */ ((Namespace2) => {
471
467
  Namespace2["NANO"] = "NANO";
472
468
  Namespace2["BASE44"] = "BASE44";
473
469
  Namespace2["CHANNELS"] = "CHANNELS";
470
+ Namespace2["NAUTILUS"] = "NAUTILUS";
474
471
  return Namespace2;
475
472
  })(Namespace || {});
476
473
  var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {