@wix/auto_sdk_editor-branches_branches 1.0.47 → 1.0.49

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.
@@ -199,39 +199,33 @@ interface QueryBranchesRequest {
199
199
  query?: CursorQuery;
200
200
  }
201
201
  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
202
  /**
205
- * Filter object in the following format: `"filter" : { "fieldName1": "value1", "fieldName2":{"$operator":"value2"}}`.
206
- *
207
- * Filterable fields:
203
+ * Cursor paging options.
208
204
  *
209
- * - `type`,
210
- * - `name`,
211
- * - `updatedDate`,
212
- * - `createdDate`,
213
- * - `lastPublishDate`,
214
- * - `sourceBranchProperties.branchId`,
215
- * - `sourceBranchProperties.branchRevision`
205
+ * 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).
206
+ */
207
+ cursorPaging?: CursorPaging;
208
+ /**
209
+ * Filter object.
216
210
  *
217
- * All operators are valid.
211
+ * 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
212
  */
219
213
  filter?: Record<string, any> | null;
220
214
  /**
221
- * Sort object in the following format: `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`.
222
- *
223
- * Sortable fields:
215
+ * Sort object.
224
216
  *
225
- * - `updatedDate`,
226
- * - `createdDate`,
227
- * - `lastPublishDate`
217
+ * 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
218
  * @maxSize 5
229
219
  */
230
220
  sort?: Sorting[];
231
221
  }
232
222
  /** @oneof */
233
223
  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`. */
224
+ /**
225
+ * Cursor paging options.
226
+ *
227
+ * 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).
228
+ */
235
229
  cursorPaging?: CursorPaging;
236
230
  }
237
231
  interface Sorting {
@@ -1225,6 +1219,8 @@ interface BranchCreatedEnvelope {
1225
1219
  }
1226
1220
  /**
1227
1221
  * Triggered when a branch is created.
1222
+ * @permissionScope Manage SEO Settings
1223
+ * @permissionScopeId SCOPE.PROMOTE.MANAGE-SEO
1228
1224
  * @permissionScope Manage Site Branches
1229
1225
  * @permissionScopeId SCOPE.DC-DOCUMENT-MANAGEMENT.MANAGE-BRANCHES
1230
1226
  * @permissionId EDITOR.BRANCH_READ
@@ -1239,6 +1235,8 @@ interface BranchDeletedEnvelope {
1239
1235
  }
1240
1236
  /**
1241
1237
  * Triggered when a branch is deleted.
1238
+ * @permissionScope Manage SEO Settings
1239
+ * @permissionScopeId SCOPE.PROMOTE.MANAGE-SEO
1242
1240
  * @permissionScope Manage Site Branches
1243
1241
  * @permissionScopeId SCOPE.DC-DOCUMENT-MANAGEMENT.MANAGE-BRANCHES
1244
1242
  * @permissionId EDITOR.BRANCH_READ
@@ -1255,6 +1253,8 @@ interface BranchUpdatedEnvelope {
1255
1253
  }
1256
1254
  /**
1257
1255
  * Triggered when a branch is updated.
1256
+ * @permissionScope Manage SEO Settings
1257
+ * @permissionScopeId SCOPE.PROMOTE.MANAGE-SEO
1258
1258
  * @permissionScope Manage Site Branches
1259
1259
  * @permissionScopeId SCOPE.DC-DOCUMENT-MANAGEMENT.MANAGE-BRANCHES
1260
1260
  * @permissionId EDITOR.BRANCH_READ
@@ -1496,7 +1496,9 @@ interface BranchQuerySpec extends QuerySpec {
1496
1496
  type CommonQueryWithEntityContext = Query<Branch, BranchQuerySpec>;
1497
1497
  type BranchQuery = {
1498
1498
  /**
1499
- 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`.
1499
+ Cursor paging options.
1500
+
1501
+ 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).
1500
1502
  */
1501
1503
  cursorPaging?: {
1502
1504
  /**
@@ -1514,29 +1516,15 @@ type BranchQuery = {
1514
1516
  cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
1515
1517
  };
1516
1518
  /**
1517
- Filter object in the following format: `"filter" : { "fieldName1": "value1", "fieldName2":{"$operator":"value2"}}`.
1518
-
1519
- Filterable fields:
1519
+ Filter object.
1520
1520
 
1521
- - `type`,
1522
- - `name`,
1523
- - `updatedDate`,
1524
- - `createdDate`,
1525
- - `lastPublishDate`,
1526
- - `sourceBranchProperties.branchId`,
1527
- - `sourceBranchProperties.branchRevision`
1528
-
1529
- All operators are valid.
1521
+ 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).
1530
1522
  */
1531
1523
  filter?: CommonQueryWithEntityContext['filter'] | null;
1532
1524
  /**
1533
- Sort object in the following format: `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`.
1534
-
1535
- Sortable fields:
1525
+ Sort object.
1536
1526
 
1537
- - `updatedDate`,
1538
- - `createdDate`,
1539
- - `lastPublishDate`
1527
+ 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).
1540
1528
  @maxSize: 5
1541
1529
  */
1542
1530
  sort?: {
@@ -1552,9 +1540,11 @@ type BranchQuery = {
1552
1540
  }[];
1553
1541
  };
1554
1542
  declare const utils: {
1555
- QueryBuilder: () => _wix_sdk_types.QueryBuilder<Branch, BranchQuerySpec, BranchQuery>;
1556
- Filter: _wix_sdk_types.FilterFactory<Branch, BranchQuerySpec>;
1557
- Sort: _wix_sdk_types.SortFactory<BranchQuerySpec>;
1543
+ query: {
1544
+ QueryBuilder: () => _wix_sdk_types.QueryBuilder<Branch, BranchQuerySpec, BranchQuery>;
1545
+ Filter: _wix_sdk_types.FilterFactory<Branch, BranchQuerySpec>;
1546
+ Sort: _wix_sdk_types.SortFactory<BranchQuerySpec>;
1547
+ };
1558
1548
  };
1559
1549
  /**
1560
1550
  * Sets the specified branch as the default.
@@ -650,7 +650,9 @@ async function typedQueryBranches(query) {
650
650
  }
651
651
  }
652
652
  var utils = {
653
- ...(0, import_query_builder_utils.createQueryUtils)()
653
+ query: {
654
+ ...(0, import_query_builder_utils.createQueryUtils)()
655
+ }
654
656
  };
655
657
  async function setDefaultBranch2(branchId) {
656
658
  const { httpClient, sideEffects } = arguments[1];