@wix/auto_sdk_editor-branches_branches 1.0.10 → 1.0.12
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.d.ts +89 -1
- package/build/cjs/index.js +726 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1265 -1
- package/build/cjs/index.typings.js +602 -15
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +317 -1
- package/build/cjs/meta.js +430 -15
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +89 -0
- package/build/es/index.mjs +687 -0
- package/build/es/index.mjs.map +1 -0
- package/build/{internal/cjs/src/editor-branches-v1-branch-branches.universal.d.ts → es/index.typings.d.mts} +221 -107
- package/build/es/index.typings.mjs +566 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +317 -0
- package/build/es/meta.mjs +400 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +89 -1
- package/build/internal/cjs/index.js +726 -15
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +1265 -1
- package/build/internal/cjs/index.typings.js +602 -15
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +317 -1
- package/build/internal/cjs/meta.js +430 -15
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +89 -0
- package/build/internal/es/index.mjs +687 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/{cjs/src/editor-branches-v1-branch-branches.universal.d.ts → internal/es/index.typings.d.mts} +221 -107
- package/build/internal/es/index.typings.mjs +566 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +317 -0
- package/build/internal/es/meta.mjs +400 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +12 -10
- package/build/cjs/src/editor-branches-v1-branch-branches.context.d.ts +0 -19
- package/build/cjs/src/editor-branches-v1-branch-branches.context.js +0 -31
- package/build/cjs/src/editor-branches-v1-branch-branches.context.js.map +0 -1
- package/build/cjs/src/editor-branches-v1-branch-branches.http.d.ts +0 -18
- package/build/cjs/src/editor-branches-v1-branch-branches.http.js +0 -228
- package/build/cjs/src/editor-branches-v1-branch-branches.http.js.map +0 -1
- package/build/cjs/src/editor-branches-v1-branch-branches.meta.d.ts +0 -23
- package/build/cjs/src/editor-branches-v1-branch-branches.meta.js +0 -123
- package/build/cjs/src/editor-branches-v1-branch-branches.meta.js.map +0 -1
- package/build/cjs/src/editor-branches-v1-branch-branches.public.d.ts +0 -54
- package/build/cjs/src/editor-branches-v1-branch-branches.public.js +0 -80
- package/build/cjs/src/editor-branches-v1-branch-branches.public.js.map +0 -1
- package/build/cjs/src/editor-branches-v1-branch-branches.types.d.ts +0 -890
- package/build/cjs/src/editor-branches-v1-branch-branches.types.js +0 -160
- package/build/cjs/src/editor-branches-v1-branch-branches.types.js.map +0 -1
- package/build/cjs/src/editor-branches-v1-branch-branches.universal.js +0 -373
- package/build/cjs/src/editor-branches-v1-branch-branches.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/editor-branches-v1-branch-branches.context.d.ts +0 -19
- package/build/es/src/editor-branches-v1-branch-branches.context.js +0 -19
- package/build/es/src/editor-branches-v1-branch-branches.context.js.map +0 -1
- package/build/es/src/editor-branches-v1-branch-branches.http.d.ts +0 -18
- package/build/es/src/editor-branches-v1-branch-branches.http.js +0 -220
- package/build/es/src/editor-branches-v1-branch-branches.http.js.map +0 -1
- package/build/es/src/editor-branches-v1-branch-branches.meta.d.ts +0 -23
- package/build/es/src/editor-branches-v1-branch-branches.meta.js +0 -92
- package/build/es/src/editor-branches-v1-branch-branches.meta.js.map +0 -1
- package/build/es/src/editor-branches-v1-branch-branches.public.d.ts +0 -54
- package/build/es/src/editor-branches-v1-branch-branches.public.js +0 -63
- package/build/es/src/editor-branches-v1-branch-branches.public.js.map +0 -1
- package/build/es/src/editor-branches-v1-branch-branches.types.d.ts +0 -890
- package/build/es/src/editor-branches-v1-branch-branches.types.js +0 -157
- package/build/es/src/editor-branches-v1-branch-branches.types.js.map +0 -1
- package/build/es/src/editor-branches-v1-branch-branches.universal.d.ts +0 -1151
- package/build/es/src/editor-branches-v1-branch-branches.universal.js +0 -342
- package/build/es/src/editor-branches-v1-branch-branches.universal.js.map +0 -1
- package/build/internal/cjs/src/editor-branches-v1-branch-branches.context.d.ts +0 -19
- package/build/internal/cjs/src/editor-branches-v1-branch-branches.context.js +0 -31
- package/build/internal/cjs/src/editor-branches-v1-branch-branches.context.js.map +0 -1
- package/build/internal/cjs/src/editor-branches-v1-branch-branches.http.d.ts +0 -18
- package/build/internal/cjs/src/editor-branches-v1-branch-branches.http.js +0 -228
- package/build/internal/cjs/src/editor-branches-v1-branch-branches.http.js.map +0 -1
- package/build/internal/cjs/src/editor-branches-v1-branch-branches.meta.d.ts +0 -23
- package/build/internal/cjs/src/editor-branches-v1-branch-branches.meta.js +0 -123
- package/build/internal/cjs/src/editor-branches-v1-branch-branches.meta.js.map +0 -1
- package/build/internal/cjs/src/editor-branches-v1-branch-branches.public.d.ts +0 -54
- package/build/internal/cjs/src/editor-branches-v1-branch-branches.public.js +0 -80
- package/build/internal/cjs/src/editor-branches-v1-branch-branches.public.js.map +0 -1
- package/build/internal/cjs/src/editor-branches-v1-branch-branches.types.d.ts +0 -890
- package/build/internal/cjs/src/editor-branches-v1-branch-branches.types.js +0 -160
- package/build/internal/cjs/src/editor-branches-v1-branch-branches.types.js.map +0 -1
- package/build/internal/cjs/src/editor-branches-v1-branch-branches.universal.js +0 -373
- package/build/internal/cjs/src/editor-branches-v1-branch-branches.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/editor-branches-v1-branch-branches.context.d.ts +0 -19
- package/build/internal/es/src/editor-branches-v1-branch-branches.context.js +0 -19
- package/build/internal/es/src/editor-branches-v1-branch-branches.context.js.map +0 -1
- package/build/internal/es/src/editor-branches-v1-branch-branches.http.d.ts +0 -18
- package/build/internal/es/src/editor-branches-v1-branch-branches.http.js +0 -220
- package/build/internal/es/src/editor-branches-v1-branch-branches.http.js.map +0 -1
- package/build/internal/es/src/editor-branches-v1-branch-branches.meta.d.ts +0 -23
- package/build/internal/es/src/editor-branches-v1-branch-branches.meta.js +0 -92
- package/build/internal/es/src/editor-branches-v1-branch-branches.meta.js.map +0 -1
- package/build/internal/es/src/editor-branches-v1-branch-branches.public.d.ts +0 -54
- package/build/internal/es/src/editor-branches-v1-branch-branches.public.js +0 -63
- package/build/internal/es/src/editor-branches-v1-branch-branches.public.js.map +0 -1
- package/build/internal/es/src/editor-branches-v1-branch-branches.types.d.ts +0 -890
- package/build/internal/es/src/editor-branches-v1-branch-branches.types.js +0 -157
- package/build/internal/es/src/editor-branches-v1-branch-branches.types.js.map +0 -1
- package/build/internal/es/src/editor-branches-v1-branch-branches.universal.d.ts +0 -1151
- package/build/internal/es/src/editor-branches-v1-branch-branches.universal.js +0 -342
- package/build/internal/es/src/editor-branches-v1-branch-branches.universal.js.map +0 -1
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebhookIdentityType = exports.DeleteStatus = exports.Namespace = exports.SiteCreatedContext = exports.State = exports.SortOrder = exports.EditorTypeOptions = exports.SourceType = exports.Type = void 0;
|
|
4
|
-
var Type;
|
|
5
|
-
(function (Type) {
|
|
6
|
-
/** Unknown branch type. */
|
|
7
|
-
Type["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
8
|
-
/** A branch created by a Wix user, that can be accessed for editing and publishing via the editor UI. */
|
|
9
|
-
Type["USER"] = "USER";
|
|
10
|
-
/** A branch created for technical purposes, unrelated to the Wix user. For internal use, can't be accessed via the editor UI. */
|
|
11
|
-
Type["TECHNICAL"] = "TECHNICAL";
|
|
12
|
-
/** The original branch of the site, created when the site is created. Can be accessed for editing and publishing in the editor. */
|
|
13
|
-
Type["ORIGINAL_BRANCH"] = "ORIGINAL_BRANCH";
|
|
14
|
-
})(Type || (exports.Type = Type = {}));
|
|
15
|
-
var SourceType;
|
|
16
|
-
(function (SourceType) {
|
|
17
|
-
/** Unknown source type. */
|
|
18
|
-
SourceType["UNKNOWN_SOURCE_TYPE"] = "UNKNOWN_SOURCE_TYPE";
|
|
19
|
-
/** This branch's source was a branch. */
|
|
20
|
-
SourceType["SOURCE_BRANCH"] = "SOURCE_BRANCH";
|
|
21
|
-
/** This branch's source was a template. For internal use. */
|
|
22
|
-
SourceType["SOURCE_TEMPLATE"] = "SOURCE_TEMPLATE";
|
|
23
|
-
})(SourceType || (exports.SourceType = SourceType = {}));
|
|
24
|
-
var EditorTypeOptions;
|
|
25
|
-
(function (EditorTypeOptions) {
|
|
26
|
-
/** Unknown editor type */
|
|
27
|
-
EditorTypeOptions["UNKNOWN_EDITOR_TYPE"] = "UNKNOWN_EDITOR_TYPE";
|
|
28
|
-
/** STUDIO */
|
|
29
|
-
EditorTypeOptions["STUDIO"] = "STUDIO";
|
|
30
|
-
/** CLASSIC */
|
|
31
|
-
EditorTypeOptions["CLASSIC"] = "CLASSIC";
|
|
32
|
-
})(EditorTypeOptions || (exports.EditorTypeOptions = EditorTypeOptions = {}));
|
|
33
|
-
var SortOrder;
|
|
34
|
-
(function (SortOrder) {
|
|
35
|
-
SortOrder["ASC"] = "ASC";
|
|
36
|
-
SortOrder["DESC"] = "DESC";
|
|
37
|
-
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
38
|
-
var State;
|
|
39
|
-
(function (State) {
|
|
40
|
-
State["UNKNOWN"] = "UNKNOWN";
|
|
41
|
-
State["ENABLED"] = "ENABLED";
|
|
42
|
-
State["DISABLED"] = "DISABLED";
|
|
43
|
-
State["PENDING"] = "PENDING";
|
|
44
|
-
State["DEMO"] = "DEMO";
|
|
45
|
-
})(State || (exports.State = State = {}));
|
|
46
|
-
var SiteCreatedContext;
|
|
47
|
-
(function (SiteCreatedContext) {
|
|
48
|
-
/** A valid option, we don't expose all reasons why site might be created. */
|
|
49
|
-
SiteCreatedContext["OTHER"] = "OTHER";
|
|
50
|
-
/** A meta site was created from template. */
|
|
51
|
-
SiteCreatedContext["FROM_TEMPLATE"] = "FROM_TEMPLATE";
|
|
52
|
-
/** A meta site was created by copying of the transfferred meta site. */
|
|
53
|
-
SiteCreatedContext["DUPLICATE_BY_SITE_TRANSFER"] = "DUPLICATE_BY_SITE_TRANSFER";
|
|
54
|
-
/** A copy of existing meta site. */
|
|
55
|
-
SiteCreatedContext["DUPLICATE"] = "DUPLICATE";
|
|
56
|
-
/** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
|
|
57
|
-
SiteCreatedContext["OLD_SITE_TRANSFER"] = "OLD_SITE_TRANSFER";
|
|
58
|
-
/** deprecated A meta site was created for Flash editor. */
|
|
59
|
-
SiteCreatedContext["FLASH"] = "FLASH";
|
|
60
|
-
})(SiteCreatedContext || (exports.SiteCreatedContext = SiteCreatedContext = {}));
|
|
61
|
-
var Namespace;
|
|
62
|
-
(function (Namespace) {
|
|
63
|
-
Namespace["UNKNOWN_NAMESPACE"] = "UNKNOWN_NAMESPACE";
|
|
64
|
-
/** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
|
|
65
|
-
Namespace["WIX"] = "WIX";
|
|
66
|
-
/** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
67
|
-
Namespace["SHOUT_OUT"] = "SHOUT_OUT";
|
|
68
|
-
/** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
69
|
-
Namespace["ALBUMS"] = "ALBUMS";
|
|
70
|
-
/** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
71
|
-
Namespace["WIX_STORES_TEST_DRIVE"] = "WIX_STORES_TEST_DRIVE";
|
|
72
|
-
/** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
73
|
-
Namespace["HOTELS"] = "HOTELS";
|
|
74
|
-
/** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
75
|
-
Namespace["CLUBS"] = "CLUBS";
|
|
76
|
-
/** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
77
|
-
Namespace["ONBOARDING_DRAFT"] = "ONBOARDING_DRAFT";
|
|
78
|
-
/** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
79
|
-
Namespace["DEV_SITE"] = "DEV_SITE";
|
|
80
|
-
/** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
81
|
-
Namespace["LOGOS"] = "LOGOS";
|
|
82
|
-
/** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
83
|
-
Namespace["VIDEO_MAKER"] = "VIDEO_MAKER";
|
|
84
|
-
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
85
|
-
Namespace["PARTNER_DASHBOARD"] = "PARTNER_DASHBOARD";
|
|
86
|
-
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
87
|
-
Namespace["DEV_CENTER_COMPANY"] = "DEV_CENTER_COMPANY";
|
|
88
|
-
/**
|
|
89
|
-
* A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
|
|
90
|
-
*
|
|
91
|
-
* Meta site with this namespace will *not* be shown in a user's site list by default.
|
|
92
|
-
*/
|
|
93
|
-
Namespace["HTML_DRAFT"] = "HTML_DRAFT";
|
|
94
|
-
/**
|
|
95
|
-
* the user-journey for Fitness users who want to start from managing their business instead of designing their website.
|
|
96
|
-
* Will be accessible from Site List and will not have a website app.
|
|
97
|
-
* Once the user attaches a site, the site will become a regular wixsite.
|
|
98
|
-
*/
|
|
99
|
-
Namespace["SITELESS_BUSINESS"] = "SITELESS_BUSINESS";
|
|
100
|
-
/** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
|
|
101
|
-
Namespace["CREATOR_ECONOMY"] = "CREATOR_ECONOMY";
|
|
102
|
-
/** It is to be used in the Business First efforts. */
|
|
103
|
-
Namespace["DASHBOARD_FIRST"] = "DASHBOARD_FIRST";
|
|
104
|
-
/** Bookings business flow with no site. */
|
|
105
|
-
Namespace["ANYWHERE"] = "ANYWHERE";
|
|
106
|
-
/** Namespace for Headless Backoffice with no editor */
|
|
107
|
-
Namespace["HEADLESS"] = "HEADLESS";
|
|
108
|
-
/**
|
|
109
|
-
* Namespace for master site that will exist in parent account that will be referenced by subaccounts
|
|
110
|
-
* The site will be used for account level CSM feature for enterprise
|
|
111
|
-
*/
|
|
112
|
-
Namespace["ACCOUNT_MASTER_CMS"] = "ACCOUNT_MASTER_CMS";
|
|
113
|
-
/** Rise.ai Siteless account management for Gift Cards and Store Credit. */
|
|
114
|
-
Namespace["RISE"] = "RISE";
|
|
115
|
-
/**
|
|
116
|
-
* As part of the branded app new funnel, users now can create a meta site that will be branded app first.
|
|
117
|
-
* There's a blank site behind the scene but it's blank).
|
|
118
|
-
* The Mobile company will be the owner of this namespace.
|
|
119
|
-
*/
|
|
120
|
-
Namespace["BRANDED_FIRST"] = "BRANDED_FIRST";
|
|
121
|
-
/** Nownia.com Siteless account management for Ai Scheduling Assistant. */
|
|
122
|
-
Namespace["NOWNIA"] = "NOWNIA";
|
|
123
|
-
/**
|
|
124
|
-
* UGC Templates are templates that are created by users for personal use and to sale to other users.
|
|
125
|
-
* The Partners company owns this namespace.
|
|
126
|
-
*/
|
|
127
|
-
Namespace["UGC_TEMPLATE"] = "UGC_TEMPLATE";
|
|
128
|
-
/** Codux Headless Sites */
|
|
129
|
-
Namespace["CODUX"] = "CODUX";
|
|
130
|
-
/** Bobb - AI Design Creator. */
|
|
131
|
-
Namespace["MEDIA_DESIGN_CREATOR"] = "MEDIA_DESIGN_CREATOR";
|
|
132
|
-
/**
|
|
133
|
-
* Shared Blog Site is a unique single site across Enterprise account,
|
|
134
|
-
* This site will hold all Blog posts related to the Marketing product.
|
|
135
|
-
*/
|
|
136
|
-
Namespace["SHARED_BLOG_ENTERPRISE"] = "SHARED_BLOG_ENTERPRISE";
|
|
137
|
-
/** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
138
|
-
Namespace["STANDALONE_FORMS"] = "STANDALONE_FORMS";
|
|
139
|
-
/** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
140
|
-
Namespace["STANDALONE_EVENTS"] = "STANDALONE_EVENTS";
|
|
141
|
-
/** MIMIR - Siteless account for MIMIR Ai Job runner. */
|
|
142
|
-
Namespace["MIMIR"] = "MIMIR";
|
|
143
|
-
})(Namespace || (exports.Namespace = Namespace = {}));
|
|
144
|
-
var DeleteStatus;
|
|
145
|
-
(function (DeleteStatus) {
|
|
146
|
-
DeleteStatus["UNKNOWN"] = "UNKNOWN";
|
|
147
|
-
DeleteStatus["TRASH"] = "TRASH";
|
|
148
|
-
DeleteStatus["DELETED"] = "DELETED";
|
|
149
|
-
DeleteStatus["PENDING_PURGE"] = "PENDING_PURGE";
|
|
150
|
-
DeleteStatus["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
|
|
151
|
-
})(DeleteStatus || (exports.DeleteStatus = DeleteStatus = {}));
|
|
152
|
-
var WebhookIdentityType;
|
|
153
|
-
(function (WebhookIdentityType) {
|
|
154
|
-
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
155
|
-
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
156
|
-
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
157
|
-
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
158
|
-
WebhookIdentityType["APP"] = "APP";
|
|
159
|
-
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
|
|
160
|
-
//# sourceMappingURL=editor-branches-v1-branch-branches.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editor-branches-v1-branch-branches.types.js","sourceRoot":"","sources":["../../../src/editor-branches-v1-branch-branches.types.ts"],"names":[],"mappings":";;;AAkEA,IAAY,IASX;AATD,WAAY,IAAI;IACd,2BAA2B;IAC3B,qCAA6B,CAAA;IAC7B,yGAAyG;IACzG,qBAAa,CAAA;IACb,iIAAiI;IACjI,+BAAuB,CAAA;IACvB,mIAAmI;IACnI,2CAAmC,CAAA;AACrC,CAAC,EATW,IAAI,oBAAJ,IAAI,QASf;AAED,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,2BAA2B;IAC3B,yDAA2C,CAAA;IAC3C,yCAAyC;IACzC,6CAA+B,CAAA;IAC/B,6DAA6D;IAC7D,iDAAmC,CAAA;AACrC,CAAC,EAPW,UAAU,0BAAV,UAAU,QAOrB;AAOD,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IAC3B,0BAA0B;IAC1B,gEAA2C,CAAA;IAC3C,aAAa;IACb,sCAAiB,CAAA;IACjB,cAAc;IACd,wCAAmB,CAAA;AACrB,CAAC,EAPW,iBAAiB,iCAA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AmC,CAAA;IACnC,2CAA2C;IAC3C,kCAAqB,CAAA;IACrB,uDAAuD;IACvD,kCAAqB,CAAA;IACrB;;;OAGG;IACH,sDAAyC,CAAA;IACzC,2EAA2E;IAC3E,0BAAa,CAAA;IACb;;;;OAIG;IACH,4CAA+B,CAAA;IAC/B,0EAA0E;IAC1E,8BAAiB,CAAA;IACjB;;;OAGG;IACH,0CAA6B,CAAA;IAC7B,2BAA2B;IAC3B,4BAAe,CAAA;IACf,gCAAgC;IAChC,0DAA6C,CAAA;IAC7C;;;OAGG;IACH,8DAAiD,CAAA;IACjD,uHAAuH;IACvH,kDAAqC,CAAA;IACrC,wHAAwH;IACxH,oDAAuC,CAAA;IACvC,wDAAwD;IACxD,4BAAe,CAAA;AACjB,CAAC,EAjFW,SAAS,yBAAT,SAAS,QAiFpB;AAuCD,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,+CAA+B,CAAA;IAC/B,uDAAuC,CAAA;AACzC,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AAoSD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|
|
@@ -1,373 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.queryBranches = exports.deleteBranch = exports.updateBranch = exports.getBranch = exports.createBranch = exports.WebhookIdentityType = exports.DeleteStatus = exports.Namespace = exports.SiteCreatedContext = exports.State = exports.SortOrder = exports.EditorTypeOptions = exports.SourceType = exports.Type = void 0;
|
|
27
|
-
const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
28
|
-
const query_builder_1 = require("@wix/sdk-runtime/query-builder");
|
|
29
|
-
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
30
|
-
const ambassadorWixEditorBranchesV1Branch = __importStar(require("./editor-branches-v1-branch-branches.http.js"));
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
33
|
-
var Type;
|
|
34
|
-
(function (Type) {
|
|
35
|
-
/** Unknown branch type. */
|
|
36
|
-
Type["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
37
|
-
/** A branch created by a Wix user, that can be accessed for editing and publishing via the editor UI. */
|
|
38
|
-
Type["USER"] = "USER";
|
|
39
|
-
/** A branch created for technical purposes, unrelated to the Wix user. For internal use, can't be accessed via the editor UI. */
|
|
40
|
-
Type["TECHNICAL"] = "TECHNICAL";
|
|
41
|
-
/** The original branch of the site, created when the site is created. Can be accessed for editing and publishing in the editor. */
|
|
42
|
-
Type["ORIGINAL_BRANCH"] = "ORIGINAL_BRANCH";
|
|
43
|
-
})(Type || (exports.Type = Type = {}));
|
|
44
|
-
var SourceType;
|
|
45
|
-
(function (SourceType) {
|
|
46
|
-
/** Unknown source type. */
|
|
47
|
-
SourceType["UNKNOWN_SOURCE_TYPE"] = "UNKNOWN_SOURCE_TYPE";
|
|
48
|
-
/** This branch's source was a branch. */
|
|
49
|
-
SourceType["SOURCE_BRANCH"] = "SOURCE_BRANCH";
|
|
50
|
-
/** This branch's source was a template. For internal use. */
|
|
51
|
-
SourceType["SOURCE_TEMPLATE"] = "SOURCE_TEMPLATE";
|
|
52
|
-
})(SourceType || (exports.SourceType = SourceType = {}));
|
|
53
|
-
var EditorTypeOptions;
|
|
54
|
-
(function (EditorTypeOptions) {
|
|
55
|
-
/** Unknown editor type */
|
|
56
|
-
EditorTypeOptions["UNKNOWN_EDITOR_TYPE"] = "UNKNOWN_EDITOR_TYPE";
|
|
57
|
-
/** STUDIO */
|
|
58
|
-
EditorTypeOptions["STUDIO"] = "STUDIO";
|
|
59
|
-
/** CLASSIC */
|
|
60
|
-
EditorTypeOptions["CLASSIC"] = "CLASSIC";
|
|
61
|
-
})(EditorTypeOptions || (exports.EditorTypeOptions = EditorTypeOptions = {}));
|
|
62
|
-
var SortOrder;
|
|
63
|
-
(function (SortOrder) {
|
|
64
|
-
SortOrder["ASC"] = "ASC";
|
|
65
|
-
SortOrder["DESC"] = "DESC";
|
|
66
|
-
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
67
|
-
var State;
|
|
68
|
-
(function (State) {
|
|
69
|
-
State["UNKNOWN"] = "UNKNOWN";
|
|
70
|
-
State["ENABLED"] = "ENABLED";
|
|
71
|
-
State["DISABLED"] = "DISABLED";
|
|
72
|
-
State["PENDING"] = "PENDING";
|
|
73
|
-
State["DEMO"] = "DEMO";
|
|
74
|
-
})(State || (exports.State = State = {}));
|
|
75
|
-
var SiteCreatedContext;
|
|
76
|
-
(function (SiteCreatedContext) {
|
|
77
|
-
/** A valid option, we don't expose all reasons why site might be created. */
|
|
78
|
-
SiteCreatedContext["OTHER"] = "OTHER";
|
|
79
|
-
/** A meta site was created from template. */
|
|
80
|
-
SiteCreatedContext["FROM_TEMPLATE"] = "FROM_TEMPLATE";
|
|
81
|
-
/** A meta site was created by copying of the transfferred meta site. */
|
|
82
|
-
SiteCreatedContext["DUPLICATE_BY_SITE_TRANSFER"] = "DUPLICATE_BY_SITE_TRANSFER";
|
|
83
|
-
/** A copy of existing meta site. */
|
|
84
|
-
SiteCreatedContext["DUPLICATE"] = "DUPLICATE";
|
|
85
|
-
/** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
|
|
86
|
-
SiteCreatedContext["OLD_SITE_TRANSFER"] = "OLD_SITE_TRANSFER";
|
|
87
|
-
/** deprecated A meta site was created for Flash editor. */
|
|
88
|
-
SiteCreatedContext["FLASH"] = "FLASH";
|
|
89
|
-
})(SiteCreatedContext || (exports.SiteCreatedContext = SiteCreatedContext = {}));
|
|
90
|
-
var Namespace;
|
|
91
|
-
(function (Namespace) {
|
|
92
|
-
Namespace["UNKNOWN_NAMESPACE"] = "UNKNOWN_NAMESPACE";
|
|
93
|
-
/** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
|
|
94
|
-
Namespace["WIX"] = "WIX";
|
|
95
|
-
/** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
96
|
-
Namespace["SHOUT_OUT"] = "SHOUT_OUT";
|
|
97
|
-
/** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
98
|
-
Namespace["ALBUMS"] = "ALBUMS";
|
|
99
|
-
/** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
100
|
-
Namespace["WIX_STORES_TEST_DRIVE"] = "WIX_STORES_TEST_DRIVE";
|
|
101
|
-
/** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
102
|
-
Namespace["HOTELS"] = "HOTELS";
|
|
103
|
-
/** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
104
|
-
Namespace["CLUBS"] = "CLUBS";
|
|
105
|
-
/** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
106
|
-
Namespace["ONBOARDING_DRAFT"] = "ONBOARDING_DRAFT";
|
|
107
|
-
/** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
108
|
-
Namespace["DEV_SITE"] = "DEV_SITE";
|
|
109
|
-
/** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
110
|
-
Namespace["LOGOS"] = "LOGOS";
|
|
111
|
-
/** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
112
|
-
Namespace["VIDEO_MAKER"] = "VIDEO_MAKER";
|
|
113
|
-
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
114
|
-
Namespace["PARTNER_DASHBOARD"] = "PARTNER_DASHBOARD";
|
|
115
|
-
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
116
|
-
Namespace["DEV_CENTER_COMPANY"] = "DEV_CENTER_COMPANY";
|
|
117
|
-
/**
|
|
118
|
-
* A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
|
|
119
|
-
*
|
|
120
|
-
* Meta site with this namespace will *not* be shown in a user's site list by default.
|
|
121
|
-
*/
|
|
122
|
-
Namespace["HTML_DRAFT"] = "HTML_DRAFT";
|
|
123
|
-
/**
|
|
124
|
-
* the user-journey for Fitness users who want to start from managing their business instead of designing their website.
|
|
125
|
-
* Will be accessible from Site List and will not have a website app.
|
|
126
|
-
* Once the user attaches a site, the site will become a regular wixsite.
|
|
127
|
-
*/
|
|
128
|
-
Namespace["SITELESS_BUSINESS"] = "SITELESS_BUSINESS";
|
|
129
|
-
/** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
|
|
130
|
-
Namespace["CREATOR_ECONOMY"] = "CREATOR_ECONOMY";
|
|
131
|
-
/** It is to be used in the Business First efforts. */
|
|
132
|
-
Namespace["DASHBOARD_FIRST"] = "DASHBOARD_FIRST";
|
|
133
|
-
/** Bookings business flow with no site. */
|
|
134
|
-
Namespace["ANYWHERE"] = "ANYWHERE";
|
|
135
|
-
/** Namespace for Headless Backoffice with no editor */
|
|
136
|
-
Namespace["HEADLESS"] = "HEADLESS";
|
|
137
|
-
/**
|
|
138
|
-
* Namespace for master site that will exist in parent account that will be referenced by subaccounts
|
|
139
|
-
* The site will be used for account level CSM feature for enterprise
|
|
140
|
-
*/
|
|
141
|
-
Namespace["ACCOUNT_MASTER_CMS"] = "ACCOUNT_MASTER_CMS";
|
|
142
|
-
/** Rise.ai Siteless account management for Gift Cards and Store Credit. */
|
|
143
|
-
Namespace["RISE"] = "RISE";
|
|
144
|
-
/**
|
|
145
|
-
* As part of the branded app new funnel, users now can create a meta site that will be branded app first.
|
|
146
|
-
* There's a blank site behind the scene but it's blank).
|
|
147
|
-
* The Mobile company will be the owner of this namespace.
|
|
148
|
-
*/
|
|
149
|
-
Namespace["BRANDED_FIRST"] = "BRANDED_FIRST";
|
|
150
|
-
/** Nownia.com Siteless account management for Ai Scheduling Assistant. */
|
|
151
|
-
Namespace["NOWNIA"] = "NOWNIA";
|
|
152
|
-
/**
|
|
153
|
-
* UGC Templates are templates that are created by users for personal use and to sale to other users.
|
|
154
|
-
* The Partners company owns this namespace.
|
|
155
|
-
*/
|
|
156
|
-
Namespace["UGC_TEMPLATE"] = "UGC_TEMPLATE";
|
|
157
|
-
/** Codux Headless Sites */
|
|
158
|
-
Namespace["CODUX"] = "CODUX";
|
|
159
|
-
/** Bobb - AI Design Creator. */
|
|
160
|
-
Namespace["MEDIA_DESIGN_CREATOR"] = "MEDIA_DESIGN_CREATOR";
|
|
161
|
-
/**
|
|
162
|
-
* Shared Blog Site is a unique single site across Enterprise account,
|
|
163
|
-
* This site will hold all Blog posts related to the Marketing product.
|
|
164
|
-
*/
|
|
165
|
-
Namespace["SHARED_BLOG_ENTERPRISE"] = "SHARED_BLOG_ENTERPRISE";
|
|
166
|
-
/** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
167
|
-
Namespace["STANDALONE_FORMS"] = "STANDALONE_FORMS";
|
|
168
|
-
/** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
169
|
-
Namespace["STANDALONE_EVENTS"] = "STANDALONE_EVENTS";
|
|
170
|
-
/** MIMIR - Siteless account for MIMIR Ai Job runner. */
|
|
171
|
-
Namespace["MIMIR"] = "MIMIR";
|
|
172
|
-
})(Namespace || (exports.Namespace = Namespace = {}));
|
|
173
|
-
var DeleteStatus;
|
|
174
|
-
(function (DeleteStatus) {
|
|
175
|
-
DeleteStatus["UNKNOWN"] = "UNKNOWN";
|
|
176
|
-
DeleteStatus["TRASH"] = "TRASH";
|
|
177
|
-
DeleteStatus["DELETED"] = "DELETED";
|
|
178
|
-
DeleteStatus["PENDING_PURGE"] = "PENDING_PURGE";
|
|
179
|
-
DeleteStatus["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
|
|
180
|
-
})(DeleteStatus || (exports.DeleteStatus = DeleteStatus = {}));
|
|
181
|
-
var WebhookIdentityType;
|
|
182
|
-
(function (WebhookIdentityType) {
|
|
183
|
-
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
184
|
-
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
185
|
-
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
186
|
-
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
187
|
-
WebhookIdentityType["APP"] = "APP";
|
|
188
|
-
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
|
|
189
|
-
/**
|
|
190
|
-
* Creates a branch.
|
|
191
|
-
* If a source branch is not provided, the branch will include a blank website.
|
|
192
|
-
* @param branch - Branch to be created.
|
|
193
|
-
* @public
|
|
194
|
-
* @documentationMaturity preview
|
|
195
|
-
* @requiredField branch
|
|
196
|
-
* @permissionId EDITOR.BRANCH_CREATE
|
|
197
|
-
* @returns Created branch.
|
|
198
|
-
* @fqn wix.editor.branches.v1.BranchesService.CreateBranch
|
|
199
|
-
*/
|
|
200
|
-
async function createBranch(branch) {
|
|
201
|
-
// @ts-ignore
|
|
202
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
203
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({ branch: branch });
|
|
204
|
-
const reqOpts = ambassadorWixEditorBranchesV1Branch.createBranch(payload);
|
|
205
|
-
sideEffects?.onSiteCall?.();
|
|
206
|
-
try {
|
|
207
|
-
const result = await httpClient.request(reqOpts);
|
|
208
|
-
sideEffects?.onSuccess?.(result);
|
|
209
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data)?.branch;
|
|
210
|
-
}
|
|
211
|
-
catch (err) {
|
|
212
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
213
|
-
spreadPathsToArguments: {},
|
|
214
|
-
explicitPathsToArguments: { branch: '$[0]' },
|
|
215
|
-
singleArgumentUnchanged: false,
|
|
216
|
-
}, ['branch']);
|
|
217
|
-
sideEffects?.onError?.(err);
|
|
218
|
-
throw transformedError;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
exports.createBranch = createBranch;
|
|
222
|
-
/**
|
|
223
|
-
* Retrieves a branch.
|
|
224
|
-
* @param branchId - ID of branch to retrieve.
|
|
225
|
-
* @public
|
|
226
|
-
* @documentationMaturity preview
|
|
227
|
-
* @requiredField branchId
|
|
228
|
-
* @permissionId EDITOR.BRANCH_READ
|
|
229
|
-
* @returns Requested branch.
|
|
230
|
-
* @fqn wix.editor.branches.v1.BranchesService.GetBranch
|
|
231
|
-
*/
|
|
232
|
-
async function getBranch(branchId) {
|
|
233
|
-
// @ts-ignore
|
|
234
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
235
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({ branchId: branchId });
|
|
236
|
-
const reqOpts = ambassadorWixEditorBranchesV1Branch.getBranch(payload);
|
|
237
|
-
sideEffects?.onSiteCall?.();
|
|
238
|
-
try {
|
|
239
|
-
const result = await httpClient.request(reqOpts);
|
|
240
|
-
sideEffects?.onSuccess?.(result);
|
|
241
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data)?.branch;
|
|
242
|
-
}
|
|
243
|
-
catch (err) {
|
|
244
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
245
|
-
spreadPathsToArguments: {},
|
|
246
|
-
explicitPathsToArguments: { branchId: '$[0]' },
|
|
247
|
-
singleArgumentUnchanged: false,
|
|
248
|
-
}, ['branchId']);
|
|
249
|
-
sideEffects?.onError?.(err);
|
|
250
|
-
throw transformedError;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
exports.getBranch = getBranch;
|
|
254
|
-
/**
|
|
255
|
-
* Updates a branch.
|
|
256
|
-
*
|
|
257
|
-
* `ORIGINAL_BRANCH` types can't be updated.
|
|
258
|
-
* @param _id - Branch ID.
|
|
259
|
-
* @public
|
|
260
|
-
* @documentationMaturity preview
|
|
261
|
-
* @requiredField _id
|
|
262
|
-
* @requiredField branch
|
|
263
|
-
* @requiredField branch.revision
|
|
264
|
-
* @permissionId EDITOR.BRANCH_UPDATE
|
|
265
|
-
* @returns Updated branch.
|
|
266
|
-
* @fqn wix.editor.branches.v1.BranchesService.UpdateBranch
|
|
267
|
-
*/
|
|
268
|
-
async function updateBranch(_id, branch) {
|
|
269
|
-
// @ts-ignore
|
|
270
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
271
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
272
|
-
branch: { ...branch, id: _id },
|
|
273
|
-
});
|
|
274
|
-
const reqOpts = ambassadorWixEditorBranchesV1Branch.updateBranch(payload);
|
|
275
|
-
sideEffects?.onSiteCall?.();
|
|
276
|
-
try {
|
|
277
|
-
const result = await httpClient.request(reqOpts);
|
|
278
|
-
sideEffects?.onSuccess?.(result);
|
|
279
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data)?.branch;
|
|
280
|
-
}
|
|
281
|
-
catch (err) {
|
|
282
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
283
|
-
spreadPathsToArguments: { branch: '$[1]' },
|
|
284
|
-
explicitPathsToArguments: { 'branch.id': '$[0]' },
|
|
285
|
-
singleArgumentUnchanged: false,
|
|
286
|
-
}, ['_id', 'branch']);
|
|
287
|
-
sideEffects?.onError?.(err);
|
|
288
|
-
throw transformedError;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
exports.updateBranch = updateBranch;
|
|
292
|
-
/**
|
|
293
|
-
* Permanently deletes a branch.
|
|
294
|
-
* @param branchId - ID of branch to delete.
|
|
295
|
-
* @public
|
|
296
|
-
* @documentationMaturity preview
|
|
297
|
-
* @requiredField branchId
|
|
298
|
-
* @permissionId EDITOR.BRANCH_DELETE
|
|
299
|
-
* @fqn wix.editor.branches.v1.BranchesService.DeleteBranch
|
|
300
|
-
*/
|
|
301
|
-
async function deleteBranch(branchId) {
|
|
302
|
-
// @ts-ignore
|
|
303
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
304
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({ branchId: branchId });
|
|
305
|
-
const reqOpts = ambassadorWixEditorBranchesV1Branch.deleteBranch(payload);
|
|
306
|
-
sideEffects?.onSiteCall?.();
|
|
307
|
-
try {
|
|
308
|
-
const result = await httpClient.request(reqOpts);
|
|
309
|
-
sideEffects?.onSuccess?.(result);
|
|
310
|
-
}
|
|
311
|
-
catch (err) {
|
|
312
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
313
|
-
spreadPathsToArguments: {},
|
|
314
|
-
explicitPathsToArguments: { branchId: '$[0]' },
|
|
315
|
-
singleArgumentUnchanged: false,
|
|
316
|
-
}, ['branchId']);
|
|
317
|
-
sideEffects?.onError?.(err);
|
|
318
|
-
throw transformedError;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
exports.deleteBranch = deleteBranch;
|
|
322
|
-
/**
|
|
323
|
-
* Retrieves a list of branches, given the specified [paging, filtering, and sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
|
|
324
|
-
* @public
|
|
325
|
-
* @documentationMaturity preview
|
|
326
|
-
* @permissionId EDITOR.BRANCH_READ
|
|
327
|
-
* @fqn wix.editor.branches.v1.BranchesService.QueryBranches
|
|
328
|
-
*/
|
|
329
|
-
function queryBranches() {
|
|
330
|
-
// @ts-ignore
|
|
331
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
332
|
-
return (0, query_builder_1.queryBuilder)({
|
|
333
|
-
func: async (payload) => {
|
|
334
|
-
const reqOpts = ambassadorWixEditorBranchesV1Branch.queryBranches(payload);
|
|
335
|
-
sideEffects?.onSiteCall?.();
|
|
336
|
-
try {
|
|
337
|
-
const result = await httpClient.request(reqOpts);
|
|
338
|
-
sideEffects?.onSuccess?.(result);
|
|
339
|
-
return result;
|
|
340
|
-
}
|
|
341
|
-
catch (err) {
|
|
342
|
-
sideEffects?.onError?.(err);
|
|
343
|
-
throw err;
|
|
344
|
-
}
|
|
345
|
-
},
|
|
346
|
-
requestTransformer: (query) => {
|
|
347
|
-
const args = [query, {}];
|
|
348
|
-
return (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
349
|
-
...args?.[1],
|
|
350
|
-
query: args?.[0],
|
|
351
|
-
});
|
|
352
|
-
},
|
|
353
|
-
responseTransformer: ({ data }) => {
|
|
354
|
-
const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(data, []));
|
|
355
|
-
return {
|
|
356
|
-
items: transformedData?.branches,
|
|
357
|
-
pagingMetadata: transformedData?.pagingMetadata,
|
|
358
|
-
};
|
|
359
|
-
},
|
|
360
|
-
errorTransformer: (err) => {
|
|
361
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
362
|
-
spreadPathsToArguments: {},
|
|
363
|
-
explicitPathsToArguments: { query: '$[0]' },
|
|
364
|
-
singleArgumentUnchanged: false,
|
|
365
|
-
});
|
|
366
|
-
throw transformedError;
|
|
367
|
-
},
|
|
368
|
-
pagingMethod: 'CURSOR',
|
|
369
|
-
transformationPaths: {},
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
exports.queryBranches = queryBranches;
|
|
373
|
-
//# sourceMappingURL=editor-branches-v1-branch-branches.universal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editor-branches-v1-branch-branches.universal.js","sourceRoot":"","sources":["../../../src/editor-branches-v1-branch-branches.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,kHAAoG;AACpG,aAAa;AACb,sFAAkF;AAoElF,IAAY,IASX;AATD,WAAY,IAAI;IACd,2BAA2B;IAC3B,qCAA6B,CAAA;IAC7B,yGAAyG;IACzG,qBAAa,CAAA;IACb,iIAAiI;IACjI,+BAAuB,CAAA;IACvB,mIAAmI;IACnI,2CAAmC,CAAA;AACrC,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AAE,eAAe,EAAE,cAAc;aAChD,CAAC;QACJ,CAAC;QACD,gBAAgB,EAAE,CAAC,GAAY,EAAE,EAAE;YACjC,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EAAC,GAAG,EAAE;gBAC9C,sBAAsB,EAAE,EAAE;gBAC1B,wBAAwB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBAC3C,uBAAuB,EAAE,KAAK;aAC/B,CAAC,CAAC;YAEH,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,EAAE;KACxB,CAAC,CAAC;AACL,CAAC;AAxDD,sCAwDC"}
|
package/build/es/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/editor-branches-v1-branch-branches.context.js';
|
package/build/es/index.js
DELETED
package/build/es/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,qDAAqD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/editor-branches-v1-branch-branches.universal.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":"AAAA,cAAc,uDAAuD,CAAC"}
|
package/build/es/meta.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/editor-branches-v1-branch-branches.meta.js';
|
package/build/es/meta.js
DELETED
package/build/es/meta.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,cAAc,kDAAkD,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { createBranch as publicCreateBranch, getBranch as publicGetBranch, updateBranch as publicUpdateBranch, deleteBranch as publicDeleteBranch, queryBranches as publicQueryBranches } from './editor-branches-v1-branch-branches.public.js';
|
|
2
|
-
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
3
|
-
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
4
|
-
import { onBranchCreated as publicOnBranchCreated } from './editor-branches-v1-branch-branches.public.js';
|
|
5
|
-
import { onBranchDeleted as publicOnBranchDeleted } from './editor-branches-v1-branch-branches.public.js';
|
|
6
|
-
import { onBranchUpdated as publicOnBranchUpdated } from './editor-branches-v1-branch-branches.public.js';
|
|
7
|
-
export declare const createBranch: MaybeContext<BuildRESTFunction<typeof publicCreateBranch> & typeof publicCreateBranch>;
|
|
8
|
-
export declare const getBranch: MaybeContext<BuildRESTFunction<typeof publicGetBranch> & typeof publicGetBranch>;
|
|
9
|
-
export declare const updateBranch: MaybeContext<BuildRESTFunction<typeof publicUpdateBranch> & typeof publicUpdateBranch>;
|
|
10
|
-
export declare const deleteBranch: MaybeContext<BuildRESTFunction<typeof publicDeleteBranch> & typeof publicDeleteBranch>;
|
|
11
|
-
export declare const queryBranches: MaybeContext<BuildRESTFunction<typeof publicQueryBranches> & typeof publicQueryBranches>;
|
|
12
|
-
/** */
|
|
13
|
-
export declare const onBranchCreated: ReturnType<typeof createEventModule<typeof publicOnBranchCreated>>;
|
|
14
|
-
/** */
|
|
15
|
-
export declare const onBranchDeleted: ReturnType<typeof createEventModule<typeof publicOnBranchDeleted>>;
|
|
16
|
-
/** */
|
|
17
|
-
export declare const onBranchUpdated: ReturnType<typeof createEventModule<typeof publicOnBranchUpdated>>;
|
|
18
|
-
export { Type, SourceType, EditorTypeOptions, SortOrder, State, SiteCreatedContext, Namespace, DeleteStatus, WebhookIdentityType, } from './editor-branches-v1-branch-branches.universal.js';
|
|
19
|
-
export { Branch, BranchSourceOneOf, EditorType, SourceBranch, SourceTemplate, ExtendedFields, CreateBranchRequest, CreateBranchResponse, GetBranchRequest, GetBranchResponse, UpdateBranchRequest, UpdateBranchResponse, DeleteBranchRequest, DeleteBranchResponse, QueryBranchesRequest, CursorQuery, CursorQueryPagingMethodOneOf, Sorting, CursorPaging, QueryBranchesResponse, CursorPagingMetadata, Cursors, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, HtmlSitePublished, Page, Empty, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Asset, SiteCreated, SiteTransferred, SiteDeleted, DeleteContext, SiteUndeleted, SitePublished, SiteUnpublished, SiteMarkedAsTemplate, SiteMarkedAsWixSite, ServiceProvisioned, ServiceRemoved, SiteRenamed, SiteHardDeleted, NamespaceChanged, StudioAssigned, StudioUnassigned, SiteUrlChanged, SitePurgedExternally, OdeditorAssigned, OdeditorUnassigned, PicassoAssigned, PicassoUnassigned, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, EventMetadata, BranchCreatedEnvelope, BranchDeletedEnvelope, BranchUpdatedEnvelope, UpdateBranch, BranchesQueryResult, BranchesQueryBuilder, } from './editor-branches-v1-branch-branches.universal.js';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { createBranch as publicCreateBranch, getBranch as publicGetBranch, updateBranch as publicUpdateBranch, deleteBranch as publicDeleteBranch, queryBranches as publicQueryBranches, } from './editor-branches-v1-branch-branches.public.js';
|
|
2
|
-
import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
|
|
3
|
-
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
4
|
-
import { onBranchCreated as publicOnBranchCreated } from './editor-branches-v1-branch-branches.public.js';
|
|
5
|
-
import { onBranchDeleted as publicOnBranchDeleted } from './editor-branches-v1-branch-branches.public.js';
|
|
6
|
-
import { onBranchUpdated as publicOnBranchUpdated } from './editor-branches-v1-branch-branches.public.js';
|
|
7
|
-
export const createBranch = /*#__PURE__*/ createRESTModule(publicCreateBranch);
|
|
8
|
-
export const getBranch = /*#__PURE__*/ createRESTModule(publicGetBranch);
|
|
9
|
-
export const updateBranch = /*#__PURE__*/ createRESTModule(publicUpdateBranch);
|
|
10
|
-
export const deleteBranch = /*#__PURE__*/ createRESTModule(publicDeleteBranch);
|
|
11
|
-
export const queryBranches = /*#__PURE__*/ createRESTModule(publicQueryBranches);
|
|
12
|
-
/** */
|
|
13
|
-
export const onBranchCreated = createEventModule(publicOnBranchCreated);
|
|
14
|
-
/** */
|
|
15
|
-
export const onBranchDeleted = createEventModule(publicOnBranchDeleted);
|
|
16
|
-
/** */
|
|
17
|
-
export const onBranchUpdated = createEventModule(publicOnBranchUpdated);
|
|
18
|
-
export { Type, SourceType, EditorTypeOptions, SortOrder, State, SiteCreatedContext, Namespace, DeleteStatus, WebhookIdentityType, } from './editor-branches-v1-branch-branches.universal.js';
|
|
19
|
-
//# sourceMappingURL=editor-branches-v1-branch-branches.context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editor-branches-v1-branch-branches.context.js","sourceRoot":"","sources":["../../../src/editor-branches-v1-branch-branches.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,IAAI,kBAAkB,EAClC,SAAS,IAAI,eAAe,EAC5B,YAAY,IAAI,kBAAkB,EAClC,YAAY,IAAI,kBAAkB,EAClC,aAAa,IAAI,mBAAmB,GACrC,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,EAAE,eAAe,IAAI,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AAC1G,OAAO,EAAE,eAAe,IAAI,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AAC1G,OAAO,EAAE,eAAe,IAAI,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AAE1G,MAAM,CAAC,MAAM,YAAY,GAErB,aAAa,CAAC,gBAAgB,CA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