@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
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
// src/editor-branches-v1-branch-branches.http.ts
|
|
2
|
+
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
3
|
+
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
4
|
+
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
5
|
+
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
6
|
+
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
7
|
+
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
8
|
+
function resolveWixEditorBranchesV1BranchesServiceUrl(opts) {
|
|
9
|
+
const domainToMappings = {
|
|
10
|
+
"editor._base_domain_": [
|
|
11
|
+
{
|
|
12
|
+
srcPath: "/_api/editor-branches",
|
|
13
|
+
destPath: ""
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"blocks._base_domain_": [
|
|
17
|
+
{
|
|
18
|
+
srcPath: "/_api/editor-branches",
|
|
19
|
+
destPath: ""
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"create.editorx": [
|
|
23
|
+
{
|
|
24
|
+
srcPath: "/_api/editor-branches",
|
|
25
|
+
destPath: ""
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"www.wixapis.com": [
|
|
29
|
+
{
|
|
30
|
+
srcPath: "/branches/v1/branches",
|
|
31
|
+
destPath: "/v1/branches"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"*.dev.wix-code.com": [
|
|
35
|
+
{
|
|
36
|
+
srcPath: "/_api/editor-branches",
|
|
37
|
+
destPath: ""
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
_: [
|
|
41
|
+
{
|
|
42
|
+
srcPath: "/_api/editor-branches",
|
|
43
|
+
destPath: ""
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"manage._base_domain_": [
|
|
47
|
+
{
|
|
48
|
+
srcPath: "/_api/editor-branches",
|
|
49
|
+
destPath: ""
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
};
|
|
53
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
54
|
+
}
|
|
55
|
+
var PACKAGE_NAME = "@wix/auto_sdk_editor-branches_branches";
|
|
56
|
+
function createBranch(payload) {
|
|
57
|
+
function __createBranch({ host }) {
|
|
58
|
+
const serializedData = transformPaths(payload, [
|
|
59
|
+
{
|
|
60
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
61
|
+
paths: [{ path: "branch.createdDate" }, { path: "branch.updatedDate" }]
|
|
62
|
+
}
|
|
63
|
+
]);
|
|
64
|
+
const metadata = {
|
|
65
|
+
entityFqdn: "wix.editor.branches.v1.branch",
|
|
66
|
+
method: "POST",
|
|
67
|
+
methodFqn: "wix.editor.branches.v1.BranchesService.CreateBranch",
|
|
68
|
+
packageName: PACKAGE_NAME,
|
|
69
|
+
url: resolveWixEditorBranchesV1BranchesServiceUrl({
|
|
70
|
+
protoPath: "/v1/branches",
|
|
71
|
+
data: serializedData,
|
|
72
|
+
host
|
|
73
|
+
}),
|
|
74
|
+
data: serializedData,
|
|
75
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
76
|
+
{
|
|
77
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
78
|
+
paths: [
|
|
79
|
+
{ path: "branch.createdDate" },
|
|
80
|
+
{ path: "branch.updatedDate" }
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
])
|
|
84
|
+
};
|
|
85
|
+
return metadata;
|
|
86
|
+
}
|
|
87
|
+
return __createBranch;
|
|
88
|
+
}
|
|
89
|
+
function getBranch(payload) {
|
|
90
|
+
function __getBranch({ host }) {
|
|
91
|
+
const metadata = {
|
|
92
|
+
entityFqdn: "wix.editor.branches.v1.branch",
|
|
93
|
+
method: "GET",
|
|
94
|
+
methodFqn: "wix.editor.branches.v1.BranchesService.GetBranch",
|
|
95
|
+
packageName: PACKAGE_NAME,
|
|
96
|
+
url: resolveWixEditorBranchesV1BranchesServiceUrl({
|
|
97
|
+
protoPath: "/v1/branches/{branchId}",
|
|
98
|
+
data: payload,
|
|
99
|
+
host
|
|
100
|
+
}),
|
|
101
|
+
params: toURLSearchParams(payload),
|
|
102
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
103
|
+
{
|
|
104
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
105
|
+
paths: [
|
|
106
|
+
{ path: "branch.createdDate" },
|
|
107
|
+
{ path: "branch.updatedDate" }
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
])
|
|
111
|
+
};
|
|
112
|
+
return metadata;
|
|
113
|
+
}
|
|
114
|
+
return __getBranch;
|
|
115
|
+
}
|
|
116
|
+
function updateBranch(payload) {
|
|
117
|
+
function __updateBranch({ host }) {
|
|
118
|
+
const serializedData = transformPaths(payload, [
|
|
119
|
+
{
|
|
120
|
+
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
121
|
+
paths: [{ path: "fieldMask" }]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
125
|
+
paths: [{ path: "branch.createdDate" }, { path: "branch.updatedDate" }]
|
|
126
|
+
}
|
|
127
|
+
]);
|
|
128
|
+
const metadata = {
|
|
129
|
+
entityFqdn: "wix.editor.branches.v1.branch",
|
|
130
|
+
method: "PATCH",
|
|
131
|
+
methodFqn: "wix.editor.branches.v1.BranchesService.UpdateBranch",
|
|
132
|
+
packageName: PACKAGE_NAME,
|
|
133
|
+
url: resolveWixEditorBranchesV1BranchesServiceUrl({
|
|
134
|
+
protoPath: "/v1/branches/{branch.id}",
|
|
135
|
+
data: serializedData,
|
|
136
|
+
host
|
|
137
|
+
}),
|
|
138
|
+
data: serializedData,
|
|
139
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
140
|
+
{
|
|
141
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
142
|
+
paths: [
|
|
143
|
+
{ path: "branch.createdDate" },
|
|
144
|
+
{ path: "branch.updatedDate" }
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
])
|
|
148
|
+
};
|
|
149
|
+
return metadata;
|
|
150
|
+
}
|
|
151
|
+
return __updateBranch;
|
|
152
|
+
}
|
|
153
|
+
function deleteBranch(payload) {
|
|
154
|
+
function __deleteBranch({ host }) {
|
|
155
|
+
const metadata = {
|
|
156
|
+
entityFqdn: "wix.editor.branches.v1.branch",
|
|
157
|
+
method: "DELETE",
|
|
158
|
+
methodFqn: "wix.editor.branches.v1.BranchesService.DeleteBranch",
|
|
159
|
+
packageName: PACKAGE_NAME,
|
|
160
|
+
url: resolveWixEditorBranchesV1BranchesServiceUrl({
|
|
161
|
+
protoPath: "/v1/branches/{branchId}",
|
|
162
|
+
data: payload,
|
|
163
|
+
host
|
|
164
|
+
}),
|
|
165
|
+
params: toURLSearchParams(payload)
|
|
166
|
+
};
|
|
167
|
+
return metadata;
|
|
168
|
+
}
|
|
169
|
+
return __deleteBranch;
|
|
170
|
+
}
|
|
171
|
+
function queryBranches(payload) {
|
|
172
|
+
function __queryBranches({ host }) {
|
|
173
|
+
const metadata = {
|
|
174
|
+
entityFqdn: "wix.editor.branches.v1.branch",
|
|
175
|
+
method: "POST",
|
|
176
|
+
methodFqn: "wix.editor.branches.v1.BranchesService.QueryBranches",
|
|
177
|
+
packageName: PACKAGE_NAME,
|
|
178
|
+
url: resolveWixEditorBranchesV1BranchesServiceUrl({
|
|
179
|
+
protoPath: "/v1/branches/query",
|
|
180
|
+
data: payload,
|
|
181
|
+
host
|
|
182
|
+
}),
|
|
183
|
+
data: payload,
|
|
184
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
185
|
+
{
|
|
186
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
187
|
+
paths: [
|
|
188
|
+
{ path: "branches.createdDate" },
|
|
189
|
+
{ path: "branches.updatedDate" }
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
]),
|
|
193
|
+
fallback: [
|
|
194
|
+
{
|
|
195
|
+
method: "POST",
|
|
196
|
+
url: resolveWixEditorBranchesV1BranchesServiceUrl({
|
|
197
|
+
protoPath: "/v1/branches/query",
|
|
198
|
+
data: payload,
|
|
199
|
+
host
|
|
200
|
+
}),
|
|
201
|
+
data: payload
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
};
|
|
205
|
+
return metadata;
|
|
206
|
+
}
|
|
207
|
+
return __queryBranches;
|
|
208
|
+
}
|
|
209
|
+
function setDefaultBranch(payload) {
|
|
210
|
+
function __setDefaultBranch({ host }) {
|
|
211
|
+
const metadata = {
|
|
212
|
+
entityFqdn: "wix.editor.branches.v1.branch",
|
|
213
|
+
method: "POST",
|
|
214
|
+
methodFqn: "wix.editor.branches.v1.BranchesService.SetDefaultBranch",
|
|
215
|
+
packageName: PACKAGE_NAME,
|
|
216
|
+
url: resolveWixEditorBranchesV1BranchesServiceUrl({
|
|
217
|
+
protoPath: "/v1/branches/{branchId}/set-default",
|
|
218
|
+
data: payload,
|
|
219
|
+
host
|
|
220
|
+
}),
|
|
221
|
+
data: payload,
|
|
222
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
223
|
+
{
|
|
224
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
225
|
+
paths: [
|
|
226
|
+
{ path: "branch.createdDate" },
|
|
227
|
+
{ path: "branch.updatedDate" }
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
])
|
|
231
|
+
};
|
|
232
|
+
return metadata;
|
|
233
|
+
}
|
|
234
|
+
return __setDefaultBranch;
|
|
235
|
+
}
|
|
236
|
+
function getDefaultBranch(payload) {
|
|
237
|
+
function __getDefaultBranch({ host }) {
|
|
238
|
+
const metadata = {
|
|
239
|
+
entityFqdn: "wix.editor.branches.v1.branch",
|
|
240
|
+
method: "GET",
|
|
241
|
+
methodFqn: "wix.editor.branches.v1.BranchesService.GetDefaultBranch",
|
|
242
|
+
packageName: PACKAGE_NAME,
|
|
243
|
+
url: resolveWixEditorBranchesV1BranchesServiceUrl({
|
|
244
|
+
protoPath: "/v1/branches/default",
|
|
245
|
+
data: payload,
|
|
246
|
+
host
|
|
247
|
+
}),
|
|
248
|
+
params: toURLSearchParams(payload),
|
|
249
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
250
|
+
{
|
|
251
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
252
|
+
paths: [
|
|
253
|
+
{ path: "branch.createdDate" },
|
|
254
|
+
{ path: "branch.updatedDate" }
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
])
|
|
258
|
+
};
|
|
259
|
+
return metadata;
|
|
260
|
+
}
|
|
261
|
+
return __getDefaultBranch;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
// src/editor-branches-v1-branch-branches.meta.ts
|
|
265
|
+
function createBranch2() {
|
|
266
|
+
const payload = {};
|
|
267
|
+
const getRequestOptions = createBranch(payload);
|
|
268
|
+
const getUrl = (context) => {
|
|
269
|
+
const { url } = getRequestOptions(context);
|
|
270
|
+
return url;
|
|
271
|
+
};
|
|
272
|
+
return {
|
|
273
|
+
getUrl,
|
|
274
|
+
httpMethod: "POST",
|
|
275
|
+
path: "/v1/branches",
|
|
276
|
+
pathParams: {},
|
|
277
|
+
__requestType: null,
|
|
278
|
+
__originalRequestType: null,
|
|
279
|
+
__responseType: null,
|
|
280
|
+
__originalResponseType: null
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
function getBranch2() {
|
|
284
|
+
const payload = { branchId: ":branchId" };
|
|
285
|
+
const getRequestOptions = getBranch(payload);
|
|
286
|
+
const getUrl = (context) => {
|
|
287
|
+
const { url } = getRequestOptions(context);
|
|
288
|
+
return url;
|
|
289
|
+
};
|
|
290
|
+
return {
|
|
291
|
+
getUrl,
|
|
292
|
+
httpMethod: "GET",
|
|
293
|
+
path: "/v1/branches/{branchId}",
|
|
294
|
+
pathParams: { branchId: "branchId" },
|
|
295
|
+
__requestType: null,
|
|
296
|
+
__originalRequestType: null,
|
|
297
|
+
__responseType: null,
|
|
298
|
+
__originalResponseType: null
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
function updateBranch2() {
|
|
302
|
+
const payload = { branch: { id: ":branchId" } };
|
|
303
|
+
const getRequestOptions = updateBranch(payload);
|
|
304
|
+
const getUrl = (context) => {
|
|
305
|
+
const { url } = getRequestOptions(context);
|
|
306
|
+
return url;
|
|
307
|
+
};
|
|
308
|
+
return {
|
|
309
|
+
getUrl,
|
|
310
|
+
httpMethod: "PATCH",
|
|
311
|
+
path: "/v1/branches/{branch.id}",
|
|
312
|
+
pathParams: { branchId: "branchId" },
|
|
313
|
+
__requestType: null,
|
|
314
|
+
__originalRequestType: null,
|
|
315
|
+
__responseType: null,
|
|
316
|
+
__originalResponseType: null
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
function deleteBranch2() {
|
|
320
|
+
const payload = { branchId: ":branchId" };
|
|
321
|
+
const getRequestOptions = deleteBranch(payload);
|
|
322
|
+
const getUrl = (context) => {
|
|
323
|
+
const { url } = getRequestOptions(context);
|
|
324
|
+
return url;
|
|
325
|
+
};
|
|
326
|
+
return {
|
|
327
|
+
getUrl,
|
|
328
|
+
httpMethod: "DELETE",
|
|
329
|
+
path: "/v1/branches/{branchId}",
|
|
330
|
+
pathParams: { branchId: "branchId" },
|
|
331
|
+
__requestType: null,
|
|
332
|
+
__originalRequestType: null,
|
|
333
|
+
__responseType: null,
|
|
334
|
+
__originalResponseType: null
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
function queryBranches2() {
|
|
338
|
+
const payload = {};
|
|
339
|
+
const getRequestOptions = queryBranches(payload);
|
|
340
|
+
const getUrl = (context) => {
|
|
341
|
+
const { url } = getRequestOptions(context);
|
|
342
|
+
return url;
|
|
343
|
+
};
|
|
344
|
+
return {
|
|
345
|
+
getUrl,
|
|
346
|
+
httpMethod: "GET",
|
|
347
|
+
path: "/v1/branches/query",
|
|
348
|
+
pathParams: {},
|
|
349
|
+
__requestType: null,
|
|
350
|
+
__originalRequestType: null,
|
|
351
|
+
__responseType: null,
|
|
352
|
+
__originalResponseType: null
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
function setDefaultBranch2() {
|
|
356
|
+
const payload = { branchId: ":branchId" };
|
|
357
|
+
const getRequestOptions = setDefaultBranch(payload);
|
|
358
|
+
const getUrl = (context) => {
|
|
359
|
+
const { url } = getRequestOptions(context);
|
|
360
|
+
return url;
|
|
361
|
+
};
|
|
362
|
+
return {
|
|
363
|
+
getUrl,
|
|
364
|
+
httpMethod: "POST",
|
|
365
|
+
path: "/v1/branches/{branchId}/set-default",
|
|
366
|
+
pathParams: { branchId: "branchId" },
|
|
367
|
+
__requestType: null,
|
|
368
|
+
__originalRequestType: null,
|
|
369
|
+
__responseType: null,
|
|
370
|
+
__originalResponseType: null
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
function getDefaultBranch2() {
|
|
374
|
+
const payload = {};
|
|
375
|
+
const getRequestOptions = getDefaultBranch(payload);
|
|
376
|
+
const getUrl = (context) => {
|
|
377
|
+
const { url } = getRequestOptions(context);
|
|
378
|
+
return url;
|
|
379
|
+
};
|
|
380
|
+
return {
|
|
381
|
+
getUrl,
|
|
382
|
+
httpMethod: "GET",
|
|
383
|
+
path: "/v1/branches/default",
|
|
384
|
+
pathParams: {},
|
|
385
|
+
__requestType: null,
|
|
386
|
+
__originalRequestType: null,
|
|
387
|
+
__responseType: null,
|
|
388
|
+
__originalResponseType: null
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
export {
|
|
392
|
+
createBranch2 as createBranch,
|
|
393
|
+
deleteBranch2 as deleteBranch,
|
|
394
|
+
getBranch2 as getBranch,
|
|
395
|
+
getDefaultBranch2 as getDefaultBranch,
|
|
396
|
+
queryBranches2 as queryBranches,
|
|
397
|
+
setDefaultBranch2 as setDefaultBranch,
|
|
398
|
+
updateBranch2 as updateBranch
|
|
399
|
+
};
|
|
400
|
+
//# sourceMappingURL=meta.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/editor-branches-v1-branch-branches.http.ts","../../../src/editor-branches-v1-branch-branches.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixEditorBranchesV1BranchesServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'editor._base_domain_': [\n {\n srcPath: '/_api/editor-branches',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/editor-branches',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/editor-branches',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/branches/v1/branches',\n destPath: '/v1/branches',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/editor-branches',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/editor-branches',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/editor-branches',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_editor-branches_branches';\n\n/**\n * Creates a branch.\n * If a source branch is not provided, the branch will include a blank website.\n */\nexport function createBranch(payload: object): RequestOptionsFactory<any> {\n function __createBranch({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'branch.createdDate' }, { path: 'branch.updatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.editor.branches.v1.branch',\n method: 'POST' as any,\n methodFqn: 'wix.editor.branches.v1.BranchesService.CreateBranch',\n packageName: PACKAGE_NAME,\n url: resolveWixEditorBranchesV1BranchesServiceUrl({\n protoPath: '/v1/branches',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'branch.createdDate' },\n { path: 'branch.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createBranch;\n}\n\n/** Retrieves a branch. */\nexport function getBranch(payload: object): RequestOptionsFactory<any> {\n function __getBranch({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.editor.branches.v1.branch',\n method: 'GET' as any,\n methodFqn: 'wix.editor.branches.v1.BranchesService.GetBranch',\n packageName: PACKAGE_NAME,\n url: resolveWixEditorBranchesV1BranchesServiceUrl({\n protoPath: '/v1/branches/{branchId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'branch.createdDate' },\n { path: 'branch.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getBranch;\n}\n\n/**\n * Updates a branch.\n *\n * `ORIGINAL_BRANCH` types can't be updated.\n */\nexport function updateBranch(payload: object): RequestOptionsFactory<any> {\n function __updateBranch({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'branch.createdDate' }, { path: 'branch.updatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.editor.branches.v1.branch',\n method: 'PATCH' as any,\n methodFqn: 'wix.editor.branches.v1.BranchesService.UpdateBranch',\n packageName: PACKAGE_NAME,\n url: resolveWixEditorBranchesV1BranchesServiceUrl({\n protoPath: '/v1/branches/{branch.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'branch.createdDate' },\n { path: 'branch.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateBranch;\n}\n\n/** Permanently deletes a branch. */\nexport function deleteBranch(payload: object): RequestOptionsFactory<any> {\n function __deleteBranch({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.editor.branches.v1.branch',\n method: 'DELETE' as any,\n methodFqn: 'wix.editor.branches.v1.BranchesService.DeleteBranch',\n packageName: PACKAGE_NAME,\n url: resolveWixEditorBranchesV1BranchesServiceUrl({\n protoPath: '/v1/branches/{branchId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteBranch;\n}\n\n/** Retrieves a list of branches, given the specified [paging, filtering, and sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language). */\nexport function queryBranches(payload: object): RequestOptionsFactory<any> {\n function __queryBranches({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.editor.branches.v1.branch',\n method: 'POST' as any,\n methodFqn: 'wix.editor.branches.v1.BranchesService.QueryBranches',\n packageName: PACKAGE_NAME,\n url: resolveWixEditorBranchesV1BranchesServiceUrl({\n protoPath: '/v1/branches/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'branches.createdDate' },\n { path: 'branches.updatedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixEditorBranchesV1BranchesServiceUrl({\n protoPath: '/v1/branches/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryBranches;\n}\n\n/** Set branch as the default branch. */\nexport function setDefaultBranch(payload: object): RequestOptionsFactory<any> {\n function __setDefaultBranch({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.editor.branches.v1.branch',\n method: 'POST' as any,\n methodFqn: 'wix.editor.branches.v1.BranchesService.SetDefaultBranch',\n packageName: PACKAGE_NAME,\n url: resolveWixEditorBranchesV1BranchesServiceUrl({\n protoPath: '/v1/branches/{branchId}/set-default',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'branch.createdDate' },\n { path: 'branch.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __setDefaultBranch;\n}\n\n/** Get default branch. */\nexport function getDefaultBranch(payload: object): RequestOptionsFactory<any> {\n function __getDefaultBranch({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.editor.branches.v1.branch',\n method: 'GET' as any,\n methodFqn: 'wix.editor.branches.v1.BranchesService.GetDefaultBranch',\n packageName: PACKAGE_NAME,\n url: resolveWixEditorBranchesV1BranchesServiceUrl({\n protoPath: '/v1/branches/default',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'branch.createdDate' },\n { path: 'branch.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDefaultBranch;\n}\n","import * as ambassadorWixEditorBranchesV1Branch from './editor-branches-v1-branch-branches.http.js';\nimport * as ambassadorWixEditorBranchesV1BranchTypes from './editor-branches-v1-branch-branches.types.js';\nimport * as ambassadorWixEditorBranchesV1BranchUniversalTypes from './editor-branches-v1-branch-branches.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createBranch(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEditorBranchesV1BranchUniversalTypes.CreateBranchRequest,\n ambassadorWixEditorBranchesV1BranchTypes.CreateBranchRequest,\n ambassadorWixEditorBranchesV1BranchUniversalTypes.CreateBranchResponse,\n ambassadorWixEditorBranchesV1BranchTypes.CreateBranchResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEditorBranchesV1Branch.createBranch(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/branches',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getBranch(): __PublicMethodMetaInfo<\n 'GET',\n { branchId: string },\n ambassadorWixEditorBranchesV1BranchUniversalTypes.GetBranchRequest,\n ambassadorWixEditorBranchesV1BranchTypes.GetBranchRequest,\n ambassadorWixEditorBranchesV1BranchUniversalTypes.GetBranchResponse,\n ambassadorWixEditorBranchesV1BranchTypes.GetBranchResponse\n> {\n const payload = { branchId: ':branchId' } as any;\n\n const getRequestOptions =\n ambassadorWixEditorBranchesV1Branch.getBranch(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/branches/{branchId}',\n pathParams: { branchId: 'branchId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateBranch(): __PublicMethodMetaInfo<\n 'PATCH',\n { branchId: string },\n ambassadorWixEditorBranchesV1BranchUniversalTypes.UpdateBranchRequest,\n ambassadorWixEditorBranchesV1BranchTypes.UpdateBranchRequest,\n ambassadorWixEditorBranchesV1BranchUniversalTypes.UpdateBranchResponse,\n ambassadorWixEditorBranchesV1BranchTypes.UpdateBranchResponse\n> {\n const payload = { branch: { id: ':branchId' } } as any;\n\n const getRequestOptions =\n ambassadorWixEditorBranchesV1Branch.updateBranch(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/branches/{branch.id}',\n pathParams: { branchId: 'branchId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteBranch(): __PublicMethodMetaInfo<\n 'DELETE',\n { branchId: string },\n ambassadorWixEditorBranchesV1BranchUniversalTypes.DeleteBranchRequest,\n ambassadorWixEditorBranchesV1BranchTypes.DeleteBranchRequest,\n ambassadorWixEditorBranchesV1BranchUniversalTypes.DeleteBranchResponse,\n ambassadorWixEditorBranchesV1BranchTypes.DeleteBranchResponse\n> {\n const payload = { branchId: ':branchId' } as any;\n\n const getRequestOptions =\n ambassadorWixEditorBranchesV1Branch.deleteBranch(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/branches/{branchId}',\n pathParams: { branchId: 'branchId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryBranches(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixEditorBranchesV1BranchUniversalTypes.QueryBranchesRequest,\n ambassadorWixEditorBranchesV1BranchTypes.QueryBranchesRequest,\n ambassadorWixEditorBranchesV1BranchUniversalTypes.QueryBranchesResponse,\n ambassadorWixEditorBranchesV1BranchTypes.QueryBranchesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEditorBranchesV1Branch.queryBranches(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/branches/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setDefaultBranch(): __PublicMethodMetaInfo<\n 'POST',\n { branchId: string },\n ambassadorWixEditorBranchesV1BranchUniversalTypes.SetDefaultBranchRequest,\n ambassadorWixEditorBranchesV1BranchTypes.SetDefaultBranchRequest,\n ambassadorWixEditorBranchesV1BranchUniversalTypes.SetDefaultBranchResponse,\n ambassadorWixEditorBranchesV1BranchTypes.SetDefaultBranchResponse\n> {\n const payload = { branchId: ':branchId' } as any;\n\n const getRequestOptions =\n ambassadorWixEditorBranchesV1Branch.setDefaultBranch(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/branches/{branchId}/set-default',\n pathParams: { branchId: 'branchId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getDefaultBranch(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixEditorBranchesV1BranchUniversalTypes.GetDefaultBranchRequest,\n ambassadorWixEditorBranchesV1BranchTypes.GetDefaultBranchRequest,\n ambassadorWixEditorBranchesV1BranchUniversalTypes.GetDefaultBranchResponse,\n ambassadorWixEditorBranchesV1BranchTypes.GetDefaultBranchResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEditorBranchesV1Branch.getDefaultBranch(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/branches/default',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACr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ch","getBranch","updateBranch","deleteBranch","queryBranches","setDefaultBranch","getDefaultBranch"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_editor-branches_branches",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
|
+
"license": "MIT",
|
|
4
5
|
"publishConfig": {
|
|
5
6
|
"registry": "https://registry.npmjs.org/",
|
|
6
7
|
"access": "public"
|
|
@@ -8,18 +9,18 @@
|
|
|
8
9
|
"keywords": [],
|
|
9
10
|
"sideEffects": false,
|
|
10
11
|
"main": "./build/cjs/index.js",
|
|
11
|
-
"types": "./build/
|
|
12
|
+
"types": "./build/cjs/index.d.ts",
|
|
12
13
|
"exports": {
|
|
13
14
|
".": {
|
|
14
|
-
"import": "./build/es/index.
|
|
15
|
+
"import": "./build/es/index.mjs",
|
|
15
16
|
"require": "./build/cjs/index.js",
|
|
16
|
-
"types": "./build/es/index.d.
|
|
17
|
+
"types": "./build/es/index.d.mts"
|
|
17
18
|
},
|
|
18
19
|
"./package.json": "./package.json",
|
|
19
20
|
"./meta": {
|
|
20
|
-
"import": "./build/es/meta.
|
|
21
|
+
"import": "./build/es/meta.mjs",
|
|
21
22
|
"require": "./build/cjs/meta.js",
|
|
22
|
-
"types": "./build/es/meta.d.
|
|
23
|
+
"types": "./build/es/meta.d.mts"
|
|
23
24
|
}
|
|
24
25
|
},
|
|
25
26
|
"files": [
|
|
@@ -28,14 +29,15 @@
|
|
|
28
29
|
"service-plugins"
|
|
29
30
|
],
|
|
30
31
|
"dependencies": {
|
|
31
|
-
"@wix/sdk-runtime": "^0.3.
|
|
32
|
-
"@wix/sdk-types": "^1.13.
|
|
32
|
+
"@wix/sdk-runtime": "^0.3.55",
|
|
33
|
+
"@wix/sdk-types": "^1.13.35"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
36
|
+
"tsup": "^8.4.0",
|
|
35
37
|
"typescript": "^5.3.2"
|
|
36
38
|
},
|
|
37
39
|
"scripts": {
|
|
38
|
-
"build": "
|
|
40
|
+
"build": "tsup",
|
|
39
41
|
"test": ":"
|
|
40
42
|
},
|
|
41
43
|
"wix": {
|
|
@@ -48,5 +50,5 @@
|
|
|
48
50
|
"fqdn": "wix.editor.branches.v1.branch"
|
|
49
51
|
}
|
|
50
52
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "52bbe575e30e9f80eb5a306a8fae0ff8d55dd25c0bb5ed6646c95b70"
|
|
52
54
|
}
|
|
@@ -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,31 +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 = exports.onBranchUpdated = exports.onBranchDeleted = exports.onBranchCreated = exports.queryBranches = exports.deleteBranch = exports.updateBranch = exports.getBranch = exports.createBranch = void 0;
|
|
4
|
-
const editor_branches_v1_branch_branches_public_js_1 = require("./editor-branches-v1-branch-branches.public.js");
|
|
5
|
-
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
|
-
const event_definition_modules_1 = require("@wix/sdk-runtime/event-definition-modules");
|
|
7
|
-
const editor_branches_v1_branch_branches_public_js_2 = require("./editor-branches-v1-branch-branches.public.js");
|
|
8
|
-
const editor_branches_v1_branch_branches_public_js_3 = require("./editor-branches-v1-branch-branches.public.js");
|
|
9
|
-
const editor_branches_v1_branch_branches_public_js_4 = require("./editor-branches-v1-branch-branches.public.js");
|
|
10
|
-
exports.createBranch = (0, rest_modules_1.createRESTModule)(editor_branches_v1_branch_branches_public_js_1.createBranch);
|
|
11
|
-
exports.getBranch = (0, rest_modules_1.createRESTModule)(editor_branches_v1_branch_branches_public_js_1.getBranch);
|
|
12
|
-
exports.updateBranch = (0, rest_modules_1.createRESTModule)(editor_branches_v1_branch_branches_public_js_1.updateBranch);
|
|
13
|
-
exports.deleteBranch = (0, rest_modules_1.createRESTModule)(editor_branches_v1_branch_branches_public_js_1.deleteBranch);
|
|
14
|
-
exports.queryBranches = (0, rest_modules_1.createRESTModule)(editor_branches_v1_branch_branches_public_js_1.queryBranches);
|
|
15
|
-
/** */
|
|
16
|
-
exports.onBranchCreated = (0, event_definition_modules_1.createEventModule)(editor_branches_v1_branch_branches_public_js_2.onBranchCreated);
|
|
17
|
-
/** */
|
|
18
|
-
exports.onBranchDeleted = (0, event_definition_modules_1.createEventModule)(editor_branches_v1_branch_branches_public_js_3.onBranchDeleted);
|
|
19
|
-
/** */
|
|
20
|
-
exports.onBranchUpdated = (0, event_definition_modules_1.createEventModule)(editor_branches_v1_branch_branches_public_js_4.onBranchUpdated);
|
|
21
|
-
var editor_branches_v1_branch_branches_universal_js_1 = require("./editor-branches-v1-branch-branches.universal.js");
|
|
22
|
-
Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return editor_branches_v1_branch_branches_universal_js_1.Type; } });
|
|
23
|
-
Object.defineProperty(exports, "SourceType", { enumerable: true, get: function () { return editor_branches_v1_branch_branches_universal_js_1.SourceType; } });
|
|
24
|
-
Object.defineProperty(exports, "EditorTypeOptions", { enumerable: true, get: function () { return editor_branches_v1_branch_branches_universal_js_1.EditorTypeOptions; } });
|
|
25
|
-
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return editor_branches_v1_branch_branches_universal_js_1.SortOrder; } });
|
|
26
|
-
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return editor_branches_v1_branch_branches_universal_js_1.State; } });
|
|
27
|
-
Object.defineProperty(exports, "SiteCreatedContext", { enumerable: true, get: function () { return editor_branches_v1_branch_branches_universal_js_1.SiteCreatedContext; } });
|
|
28
|
-
Object.defineProperty(exports, "Namespace", { enumerable: true, get: function () { return editor_branches_v1_branch_branches_universal_js_1.Namespace; } });
|
|
29
|
-
Object.defineProperty(exports, "DeleteStatus", { enumerable: true, get: function () { return editor_branches_v1_branch_branches_universal_js_1.DeleteStatus; } });
|
|
30
|
-
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return editor_branches_v1_branch_branches_universal_js_1.WebhookIdentityType; } });
|
|
31
|
-
//# 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,iHAMwD;AACxD,gEAAiE;AACjE,wFAA8E;AAE9E,iHAA0G;AAC1G,iHAA0G;AAC1G,iHAA0G;AAE7F,QAAA,YAAY,GAEP,IAAA,+BAAgB,EAAC,2DAAkB,CAAC,CAAC;AAC1C,QAAA,SAAS,GAEJ,IAAA,+BAAgB,EAAC,wDAAe,CAAC,CAAC;AACvC,QAAA,YAAY,GAEP,IAAA,+BAAgB,EAAC,2DAAkB,CAAC,CAAC;AAC1C,QAAA,YAAY,GAEP,IAAA,+BAAgB,EAAC,2DAAkB,CAAC,CAAC;AAC1C,QAAA,aAAa,GAER,IAAA,+BAAgB,EAAC,4DAAmB,CAAC,CAAC;AACxD,MAAM;AACO,QAAA,eAAe,GAExB,IAAA,4CAAiB,EAAC,8DAAqB,CAAC,CAAC;AAC7C,MAAM;AACO,QAAA,eAAe,GAExB,IAAA,4CAAiB,EAAC,8DAAqB,CAAC,CAAC;AAC7C,MAAM;AACO,QAAA,eAAe,GAExB,IAAA,4CAAiB,EAAC,8DAAqB,CAAC,CAAC;AAE7C,qHAU2D;AATzD,uIAAA,IAAI,OAAA;AACJ,6IAAA,UAAU,OAAA;AACV,oJAAA,iBAAiB,OAAA;AACjB,4IAAA,SAAS,OAAA;AACT,wIAAA,KAAK,OAAA;AACL,qJAAA,kBAAkB,OAAA;AAClB,4IAAA,SAAS,OAAA;AACT,+IAAA,YAAY,OAAA;AACZ,sJAAA,mBAAmB,OAAA"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a branch.
|
|
4
|
-
* If a source branch is not provided, the branch will include a blank website.
|
|
5
|
-
*/
|
|
6
|
-
export declare function createBranch(payload: object): RequestOptionsFactory<any>;
|
|
7
|
-
/** Retrieves a branch. */
|
|
8
|
-
export declare function getBranch(payload: object): RequestOptionsFactory<any>;
|
|
9
|
-
/**
|
|
10
|
-
* Updates a branch.
|
|
11
|
-
*
|
|
12
|
-
* `ORIGINAL_BRANCH` types can't be updated.
|
|
13
|
-
*/
|
|
14
|
-
export declare function updateBranch(payload: object): RequestOptionsFactory<any>;
|
|
15
|
-
/** Permanently deletes a branch. */
|
|
16
|
-
export declare function deleteBranch(payload: object): RequestOptionsFactory<any>;
|
|
17
|
-
/** Retrieves a list of branches, given the specified [paging, filtering, and sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language). */
|
|
18
|
-
export declare function queryBranches(payload: object): RequestOptionsFactory<any>;
|