@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.
- package/build/cjs/index.js +1 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +29 -53
- package/build/cjs/index.typings.js +1 -4
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +22 -34
- package/build/cjs/meta.js +1 -4
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +465 -0
- package/build/cjs/schemas.js +777 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/index.mjs +1 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +29 -53
- package/build/es/index.typings.mjs +1 -4
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +22 -34
- package/build/es/meta.mjs +1 -4
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +465 -0
- package/build/es/schemas.mjs +723 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/index.js +1 -4
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +29 -53
- package/build/internal/cjs/index.typings.js +1 -4
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +22 -34
- package/build/internal/cjs/meta.js +1 -4
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +465 -0
- package/build/internal/cjs/schemas.js +777 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/index.mjs +1 -4
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +29 -53
- package/build/internal/es/index.typings.mjs +1 -4
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +22 -34
- package/build/internal/es/meta.mjs +1 -4
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +465 -0
- package/build/internal/es/schemas.mjs +723 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/package.json +12 -5
- 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 | '
|
|
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 | '
|
|
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 | '
|
|
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
|
-
*
|
|
206
|
-
*
|
|
207
|
-
* Filterable fields:
|
|
195
|
+
* Cursor paging options.
|
|
208
196
|
*
|
|
209
|
-
* -
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
*
|
|
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
|
-
*
|
|
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
|
|
222
|
-
*
|
|
223
|
-
* Sortable fields:
|
|
207
|
+
* Sort object.
|
|
224
208
|
*
|
|
225
|
-
* -
|
|
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
|
-
/**
|
|
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
|
|
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
|
|
1513
|
+
Filter object.
|
|
1524
1514
|
|
|
1525
|
-
|
|
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
|
|
1540
|
-
|
|
1541
|
-
Sortable fields:
|
|
1519
|
+
Sort object.
|
|
1542
1520
|
|
|
1543
|
-
-
|
|
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?: {
|
|
@@ -354,20 +354,16 @@ function bulkUpdateBranchTagsByFilter(payload) {
|
|
|
354
354
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
355
355
|
import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
|
|
356
356
|
var Type = /* @__PURE__ */ ((Type2) => {
|
|
357
|
-
Type2["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
358
357
|
Type2["USER"] = "USER";
|
|
359
358
|
Type2["TECHNICAL"] = "TECHNICAL";
|
|
360
359
|
Type2["ORIGINAL_BRANCH"] = "ORIGINAL_BRANCH";
|
|
361
360
|
return Type2;
|
|
362
361
|
})(Type || {});
|
|
363
362
|
var SourceType = /* @__PURE__ */ ((SourceType2) => {
|
|
364
|
-
SourceType2["UNKNOWN_SOURCE_TYPE"] = "UNKNOWN_SOURCE_TYPE";
|
|
365
363
|
SourceType2["SOURCE_BRANCH"] = "SOURCE_BRANCH";
|
|
366
|
-
SourceType2["SOURCE_TEMPLATE"] = "SOURCE_TEMPLATE";
|
|
367
364
|
return SourceType2;
|
|
368
365
|
})(SourceType || {});
|
|
369
366
|
var EditorTypeOptions = /* @__PURE__ */ ((EditorTypeOptions2) => {
|
|
370
|
-
EditorTypeOptions2["UNKNOWN_EDITOR_TYPE"] = "UNKNOWN_EDITOR_TYPE";
|
|
371
367
|
EditorTypeOptions2["STUDIO"] = "STUDIO";
|
|
372
368
|
EditorTypeOptions2["CLASSIC"] = "CLASSIC";
|
|
373
369
|
return EditorTypeOptions2;
|
|
@@ -429,6 +425,7 @@ var Namespace = /* @__PURE__ */ ((Namespace2) => {
|
|
|
429
425
|
Namespace2["NANO"] = "NANO";
|
|
430
426
|
Namespace2["BASE44"] = "BASE44";
|
|
431
427
|
Namespace2["CHANNELS"] = "CHANNELS";
|
|
428
|
+
Namespace2["NAUTILUS"] = "NAUTILUS";
|
|
432
429
|
return Namespace2;
|
|
433
430
|
})(Namespace || {});
|
|
434
431
|
var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
|