@wix/auto_sdk_user-management_contributors 1.0.69 → 1.0.71
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 +3 -3
- package/build/cjs/index.js +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +5 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +3 -3
- package/build/es/index.mjs +2 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +5 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +6 -6
- package/build/internal/cjs/index.typings.d.ts +30 -6
- package/build/internal/cjs/meta.d.ts +64 -0
- package/build/internal/es/index.d.mts +6 -6
- package/build/internal/es/index.typings.d.mts +30 -6
- package/build/internal/es/meta.d.mts +64 -0
- package/package.json +5 -12
- package/build/cjs/schemas.d.ts +0 -49
- package/build/cjs/schemas.js +0 -127
- package/build/cjs/schemas.js.map +0 -1
- package/build/es/schemas.d.mts +0 -49
- package/build/es/schemas.mjs +0 -83
- package/build/es/schemas.mjs.map +0 -1
- package/build/internal/cjs/index.js +0 -738
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -653
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -593
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.d.ts +0 -49
- package/build/internal/cjs/schemas.js +0 -127
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -698
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -614
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -551
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.d.mts +0 -49
- package/build/internal/es/schemas.mjs +0 -83
- package/build/internal/es/schemas.mjs.map +0 -1
- package/schemas/package.json +0 -3
|
@@ -1,614 +0,0 @@
|
|
|
1
|
-
// src/identity-v1-contributor-contributors.universal.ts
|
|
2
|
-
import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
|
|
3
|
-
import {
|
|
4
|
-
renameKeysFromSDKRequestToRESTRequest,
|
|
5
|
-
renameKeysFromRESTResponseToSDKResponse
|
|
6
|
-
} from "@wix/sdk-runtime/rename-all-nested-keys";
|
|
7
|
-
|
|
8
|
-
// src/identity-v1-contributor-contributors.http.ts
|
|
9
|
-
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
10
|
-
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
11
|
-
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
12
|
-
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
13
|
-
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
14
|
-
function resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl(opts) {
|
|
15
|
-
const domainToMappings = {
|
|
16
|
-
"manage._base_domain_": [
|
|
17
|
-
{
|
|
18
|
-
srcPath: "/contributors/accept",
|
|
19
|
-
destPath: "/contributors/accept"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
srcPath: "/roles-management-web",
|
|
23
|
-
destPath: ""
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
srcPath: "/team/accept",
|
|
27
|
-
destPath: "/team/accept"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
srcPath: "/_api/roles-management-web",
|
|
31
|
-
destPath: ""
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
srcPath: "/app/accept",
|
|
35
|
-
destPath: "/app/accept"
|
|
36
|
-
}
|
|
37
|
-
],
|
|
38
|
-
"api._api_base_domain_": [
|
|
39
|
-
{
|
|
40
|
-
srcPath: "/roles-management-web",
|
|
41
|
-
destPath: ""
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
"editor._base_domain_": [
|
|
45
|
-
{
|
|
46
|
-
srcPath: "/_api/roles-management-web",
|
|
47
|
-
destPath: ""
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"blocks._base_domain_": [
|
|
51
|
-
{
|
|
52
|
-
srcPath: "/_api/roles-management-web",
|
|
53
|
-
destPath: ""
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
"create.editorx": [
|
|
57
|
-
{
|
|
58
|
-
srcPath: "/_api/roles-management-web",
|
|
59
|
-
destPath: ""
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
"www._base_domain_": [
|
|
63
|
-
{
|
|
64
|
-
srcPath: "/_api/roles-management-web",
|
|
65
|
-
destPath: ""
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
srcPath: "/roles-management-web",
|
|
69
|
-
destPath: ""
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
srcPath: "/contributors/accept",
|
|
73
|
-
destPath: "/contributors/accept"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
srcPath: "/team/accept",
|
|
77
|
-
destPath: "/team/accept"
|
|
78
|
-
}
|
|
79
|
-
],
|
|
80
|
-
"dev._base_domain_": [
|
|
81
|
-
{
|
|
82
|
-
srcPath: "/_api/roles-management-web",
|
|
83
|
-
destPath: ""
|
|
84
|
-
}
|
|
85
|
-
],
|
|
86
|
-
"platform.rise.ai": [
|
|
87
|
-
{
|
|
88
|
-
srcPath: "/v2/contributors",
|
|
89
|
-
destPath: "/v2/contributors"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
srcPath: "/contributor/change/role",
|
|
93
|
-
destPath: "/contributor/change/role"
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
"www.wixapis.com": [
|
|
97
|
-
{
|
|
98
|
-
srcPath: "/roles-management",
|
|
99
|
-
destPath: ""
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
srcPath: "/roles-management-web",
|
|
103
|
-
destPath: ""
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
srcPath: "/roles-management/roles",
|
|
107
|
-
destPath: "/roles"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
srcPath: "/roles-management/team",
|
|
111
|
-
destPath: "/team"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
srcPath: "/roles-management/v3/team",
|
|
115
|
-
destPath: "/v3/team"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
srcPath: "/roles-management/v2/team",
|
|
119
|
-
destPath: "/v2/team"
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
srcPath: "/roles-management/contributor/change",
|
|
123
|
-
destPath: "/contributor/change"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
srcPath: "/roles-management/v2/contributors",
|
|
127
|
-
destPath: "/v2/contributors"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
srcPath: "/roles-management/contributor/remove",
|
|
131
|
-
destPath: "/contributor/remove"
|
|
132
|
-
}
|
|
133
|
-
],
|
|
134
|
-
"*.dev.wix-code.com": [
|
|
135
|
-
{
|
|
136
|
-
srcPath: "/identity/contributor",
|
|
137
|
-
destPath: "/contributor"
|
|
138
|
-
}
|
|
139
|
-
],
|
|
140
|
-
"vibe._base_domain_": [
|
|
141
|
-
{
|
|
142
|
-
srcPath: "/roles-management-web/v2/contributors",
|
|
143
|
-
destPath: "/v2/contributors"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
srcPath: "/roles-management-web/myRoles",
|
|
147
|
-
destPath: "/roles-management-web/myRoles"
|
|
148
|
-
}
|
|
149
|
-
],
|
|
150
|
-
_: [
|
|
151
|
-
{
|
|
152
|
-
srcPath: "/identity/contributor",
|
|
153
|
-
destPath: "/contributor"
|
|
154
|
-
}
|
|
155
|
-
],
|
|
156
|
-
"bo._base_domain_": [
|
|
157
|
-
{
|
|
158
|
-
srcPath: "/_api/roles-management-web",
|
|
159
|
-
destPath: ""
|
|
160
|
-
}
|
|
161
|
-
],
|
|
162
|
-
"wixbo.ai": [
|
|
163
|
-
{
|
|
164
|
-
srcPath: "/_api/roles-management-web",
|
|
165
|
-
destPath: ""
|
|
166
|
-
}
|
|
167
|
-
],
|
|
168
|
-
"wix-bo.com": [
|
|
169
|
-
{
|
|
170
|
-
srcPath: "/_api/roles-management-web",
|
|
171
|
-
destPath: ""
|
|
172
|
-
}
|
|
173
|
-
]
|
|
174
|
-
};
|
|
175
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
176
|
-
}
|
|
177
|
-
var PACKAGE_NAME = "@wix/auto_sdk_user-management_contributors";
|
|
178
|
-
function getSiteContributorsV2(payload) {
|
|
179
|
-
function __getSiteContributorsV2({ host }) {
|
|
180
|
-
const serializedData = transformPaths(payload, [
|
|
181
|
-
{
|
|
182
|
-
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
183
|
-
paths: [{ path: "fields" }]
|
|
184
|
-
}
|
|
185
|
-
]);
|
|
186
|
-
const metadata = {
|
|
187
|
-
entityFqdn: "wix.identity.v1.contributor",
|
|
188
|
-
method: "GET",
|
|
189
|
-
methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.GetSiteContributorsV2",
|
|
190
|
-
packageName: PACKAGE_NAME,
|
|
191
|
-
migrationOptions: {
|
|
192
|
-
optInTransformResponse: true
|
|
193
|
-
},
|
|
194
|
-
url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
|
|
195
|
-
protoPath: "/v2/contributors",
|
|
196
|
-
data: serializedData,
|
|
197
|
-
host
|
|
198
|
-
}),
|
|
199
|
-
params: toURLSearchParams(serializedData),
|
|
200
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
201
|
-
{
|
|
202
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
203
|
-
paths: [
|
|
204
|
-
{ path: "contributors.joinedAt" },
|
|
205
|
-
{ path: "invites.dateCreated" },
|
|
206
|
-
{ path: "invites.expirationDate" },
|
|
207
|
-
{ path: "pendingOwner.expirationDate" },
|
|
208
|
-
{ path: "enrichedInvites.dateCreated" },
|
|
209
|
-
{ path: "enrichedInvites.expirationDate" }
|
|
210
|
-
]
|
|
211
|
-
}
|
|
212
|
-
])
|
|
213
|
-
};
|
|
214
|
-
return metadata;
|
|
215
|
-
}
|
|
216
|
-
return __getSiteContributorsV2;
|
|
217
|
-
}
|
|
218
|
-
function getCurrentContributor(payload) {
|
|
219
|
-
function __getCurrentContributor({ host }) {
|
|
220
|
-
const metadata = {
|
|
221
|
-
entityFqdn: "wix.identity.v1.contributor",
|
|
222
|
-
method: "GET",
|
|
223
|
-
methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.GetCurrentContributor",
|
|
224
|
-
packageName: PACKAGE_NAME,
|
|
225
|
-
migrationOptions: {
|
|
226
|
-
optInTransformResponse: true
|
|
227
|
-
},
|
|
228
|
-
url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
|
|
229
|
-
protoPath: "/v2/contributors/current",
|
|
230
|
-
data: payload,
|
|
231
|
-
host
|
|
232
|
-
}),
|
|
233
|
-
params: toURLSearchParams(payload),
|
|
234
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
235
|
-
{
|
|
236
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
237
|
-
paths: [{ path: "contributor.joinedAt" }]
|
|
238
|
-
}
|
|
239
|
-
])
|
|
240
|
-
};
|
|
241
|
-
return metadata;
|
|
242
|
-
}
|
|
243
|
-
return __getCurrentContributor;
|
|
244
|
-
}
|
|
245
|
-
function changeRole(payload) {
|
|
246
|
-
function __changeRole({ host }) {
|
|
247
|
-
const metadata = {
|
|
248
|
-
entityFqdn: "wix.identity.v1.contributor",
|
|
249
|
-
method: "PUT",
|
|
250
|
-
methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.ChangeRole",
|
|
251
|
-
packageName: PACKAGE_NAME,
|
|
252
|
-
migrationOptions: {
|
|
253
|
-
optInTransformResponse: true
|
|
254
|
-
},
|
|
255
|
-
url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
|
|
256
|
-
protoPath: "/contributor/change/role",
|
|
257
|
-
data: payload,
|
|
258
|
-
host
|
|
259
|
-
}),
|
|
260
|
-
data: payload
|
|
261
|
-
};
|
|
262
|
-
return metadata;
|
|
263
|
-
}
|
|
264
|
-
return __changeRole;
|
|
265
|
-
}
|
|
266
|
-
function changeContributorLocation(payload) {
|
|
267
|
-
function __changeContributorLocation({ host }) {
|
|
268
|
-
const metadata = {
|
|
269
|
-
entityFqdn: "wix.identity.v1.contributor",
|
|
270
|
-
method: "PUT",
|
|
271
|
-
methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.ChangeContributorLocation",
|
|
272
|
-
packageName: PACKAGE_NAME,
|
|
273
|
-
migrationOptions: {
|
|
274
|
-
optInTransformResponse: true
|
|
275
|
-
},
|
|
276
|
-
url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
|
|
277
|
-
protoPath: "/contributor/change/locations",
|
|
278
|
-
data: payload,
|
|
279
|
-
host
|
|
280
|
-
}),
|
|
281
|
-
data: payload
|
|
282
|
-
};
|
|
283
|
-
return metadata;
|
|
284
|
-
}
|
|
285
|
-
return __changeContributorLocation;
|
|
286
|
-
}
|
|
287
|
-
function querySiteContributors(payload) {
|
|
288
|
-
function __querySiteContributors({ host }) {
|
|
289
|
-
const metadata = {
|
|
290
|
-
entityFqdn: "wix.identity.v1.contributor",
|
|
291
|
-
method: "GET",
|
|
292
|
-
methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.QuerySiteContributors",
|
|
293
|
-
packageName: PACKAGE_NAME,
|
|
294
|
-
migrationOptions: {
|
|
295
|
-
optInTransformResponse: true
|
|
296
|
-
},
|
|
297
|
-
url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
|
|
298
|
-
protoPath: "/v2/contributors/query",
|
|
299
|
-
data: payload,
|
|
300
|
-
host
|
|
301
|
-
}),
|
|
302
|
-
params: toURLSearchParams(payload)
|
|
303
|
-
};
|
|
304
|
-
return metadata;
|
|
305
|
-
}
|
|
306
|
-
return __querySiteContributors;
|
|
307
|
-
}
|
|
308
|
-
function getContributorsQuota(payload) {
|
|
309
|
-
function __getContributorsQuota({ host }) {
|
|
310
|
-
const metadata = {
|
|
311
|
-
entityFqdn: "wix.identity.v1.contributor",
|
|
312
|
-
method: "GET",
|
|
313
|
-
methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.GetContributorsQuota",
|
|
314
|
-
packageName: PACKAGE_NAME,
|
|
315
|
-
migrationOptions: {
|
|
316
|
-
optInTransformResponse: true
|
|
317
|
-
},
|
|
318
|
-
url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
|
|
319
|
-
protoPath: "/v2/contributors/quota",
|
|
320
|
-
data: payload,
|
|
321
|
-
host
|
|
322
|
-
}),
|
|
323
|
-
params: toURLSearchParams(payload)
|
|
324
|
-
};
|
|
325
|
-
return metadata;
|
|
326
|
-
}
|
|
327
|
-
return __getContributorsQuota;
|
|
328
|
-
}
|
|
329
|
-
function removeContributor(payload) {
|
|
330
|
-
function __removeContributor({ host }) {
|
|
331
|
-
const metadata = {
|
|
332
|
-
entityFqdn: "wix.identity.v1.contributor",
|
|
333
|
-
method: "POST",
|
|
334
|
-
methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.RemoveContributor",
|
|
335
|
-
packageName: PACKAGE_NAME,
|
|
336
|
-
migrationOptions: {
|
|
337
|
-
optInTransformResponse: true
|
|
338
|
-
},
|
|
339
|
-
url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
|
|
340
|
-
protoPath: "/contributor/remove",
|
|
341
|
-
data: payload,
|
|
342
|
-
host
|
|
343
|
-
}),
|
|
344
|
-
data: payload
|
|
345
|
-
};
|
|
346
|
-
return metadata;
|
|
347
|
-
}
|
|
348
|
-
return __removeContributor;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
// src/identity-v1-contributor-contributors.universal.ts
|
|
352
|
-
var ResourceType = /* @__PURE__ */ ((ResourceType2) => {
|
|
353
|
-
ResourceType2["UNKNOWN_RESOURCE_TYPE"] = "UNKNOWN_RESOURCE_TYPE";
|
|
354
|
-
ResourceType2["SITE"] = "SITE";
|
|
355
|
-
return ResourceType2;
|
|
356
|
-
})(ResourceType || {});
|
|
357
|
-
var ConditionAttributeType = /* @__PURE__ */ ((ConditionAttributeType2) => {
|
|
358
|
-
ConditionAttributeType2["UNKNOWN_CONDITION_TYPE"] = "UNKNOWN_CONDITION_TYPE";
|
|
359
|
-
ConditionAttributeType2["FOLDER"] = "FOLDER";
|
|
360
|
-
return ConditionAttributeType2;
|
|
361
|
-
})(ConditionAttributeType || {});
|
|
362
|
-
var SubjectType = /* @__PURE__ */ ((SubjectType2) => {
|
|
363
|
-
SubjectType2["UNKNOWN"] = "UNKNOWN";
|
|
364
|
-
SubjectType2["ACCOUNT"] = "ACCOUNT";
|
|
365
|
-
SubjectType2["USER"] = "USER";
|
|
366
|
-
SubjectType2["USER_GROUP"] = "USER_GROUP";
|
|
367
|
-
SubjectType2["MEMBER_GROUP"] = "MEMBER_GROUP";
|
|
368
|
-
SubjectType2["VISITOR_GROUP"] = "VISITOR_GROUP";
|
|
369
|
-
SubjectType2["EXTERNAL_APP"] = "EXTERNAL_APP";
|
|
370
|
-
SubjectType2["ACCOUNT_GROUP"] = "ACCOUNT_GROUP";
|
|
371
|
-
SubjectType2["WIX_APP"] = "WIX_APP";
|
|
372
|
-
return SubjectType2;
|
|
373
|
-
})(SubjectType || {});
|
|
374
|
-
var SubjectContextType = /* @__PURE__ */ ((SubjectContextType2) => {
|
|
375
|
-
SubjectContextType2["UNKNOWN_CTX"] = "UNKNOWN_CTX";
|
|
376
|
-
SubjectContextType2["ORG_CTX"] = "ORG_CTX";
|
|
377
|
-
SubjectContextType2["ACCOUNT_CTX"] = "ACCOUNT_CTX";
|
|
378
|
-
return SubjectContextType2;
|
|
379
|
-
})(SubjectContextType || {});
|
|
380
|
-
var AccountGroup = /* @__PURE__ */ ((AccountGroup2) => {
|
|
381
|
-
AccountGroup2["ENTERPRISE"] = "ENTERPRISE";
|
|
382
|
-
AccountGroup2["CHANNELS"] = "CHANNELS";
|
|
383
|
-
return AccountGroup2;
|
|
384
|
-
})(AccountGroup || {});
|
|
385
|
-
var InviteStatus = /* @__PURE__ */ ((InviteStatus2) => {
|
|
386
|
-
InviteStatus2["Pending"] = "Pending";
|
|
387
|
-
InviteStatus2["Used"] = "Used";
|
|
388
|
-
InviteStatus2["Deleted"] = "Deleted";
|
|
389
|
-
InviteStatus2["Declined"] = "Declined";
|
|
390
|
-
InviteStatus2["Expired"] = "Expired";
|
|
391
|
-
return InviteStatus2;
|
|
392
|
-
})(InviteStatus || {});
|
|
393
|
-
var Type = /* @__PURE__ */ ((Type2) => {
|
|
394
|
-
Type2["UNKNOWN"] = "UNKNOWN";
|
|
395
|
-
Type2["LIMITED"] = "LIMITED";
|
|
396
|
-
Type2["UNLIMITED"] = "UNLIMITED";
|
|
397
|
-
return Type2;
|
|
398
|
-
})(Type || {});
|
|
399
|
-
var FieldSet = /* @__PURE__ */ ((FieldSet2) => {
|
|
400
|
-
FieldSet2["UNKNOWN"] = "UNKNOWN";
|
|
401
|
-
FieldSet2["META_DATA"] = "META_DATA";
|
|
402
|
-
return FieldSet2;
|
|
403
|
-
})(FieldSet || {});
|
|
404
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
405
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
406
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
407
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
408
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
409
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
410
|
-
return WebhookIdentityType2;
|
|
411
|
-
})(WebhookIdentityType || {});
|
|
412
|
-
async function getSiteContributorsV22(options) {
|
|
413
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
414
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
415
|
-
locale: options?.locale,
|
|
416
|
-
fields: options?.fields,
|
|
417
|
-
host: options?.host
|
|
418
|
-
});
|
|
419
|
-
const reqOpts = getSiteContributorsV2(payload);
|
|
420
|
-
sideEffects?.onSiteCall?.();
|
|
421
|
-
try {
|
|
422
|
-
const result = await httpClient.request(reqOpts);
|
|
423
|
-
sideEffects?.onSuccess?.(result);
|
|
424
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
425
|
-
} catch (err) {
|
|
426
|
-
const transformedError = sdkTransformError(
|
|
427
|
-
err,
|
|
428
|
-
{
|
|
429
|
-
spreadPathsToArguments: {},
|
|
430
|
-
explicitPathsToArguments: {
|
|
431
|
-
locale: "$[0].locale",
|
|
432
|
-
fields: "$[0].fields",
|
|
433
|
-
host: "$[0].host"
|
|
434
|
-
},
|
|
435
|
-
singleArgumentUnchanged: false
|
|
436
|
-
},
|
|
437
|
-
["options"]
|
|
438
|
-
);
|
|
439
|
-
sideEffects?.onError?.(err);
|
|
440
|
-
throw transformedError;
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
async function getCurrentContributor2() {
|
|
444
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
445
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
446
|
-
const reqOpts = getCurrentContributor(payload);
|
|
447
|
-
sideEffects?.onSiteCall?.();
|
|
448
|
-
try {
|
|
449
|
-
const result = await httpClient.request(reqOpts);
|
|
450
|
-
sideEffects?.onSuccess?.(result);
|
|
451
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
452
|
-
} catch (err) {
|
|
453
|
-
const transformedError = sdkTransformError(
|
|
454
|
-
err,
|
|
455
|
-
{
|
|
456
|
-
spreadPathsToArguments: {},
|
|
457
|
-
explicitPathsToArguments: {},
|
|
458
|
-
singleArgumentUnchanged: false
|
|
459
|
-
},
|
|
460
|
-
[]
|
|
461
|
-
);
|
|
462
|
-
sideEffects?.onError?.(err);
|
|
463
|
-
throw transformedError;
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
async function changeRole2(accountId, options) {
|
|
467
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
468
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
469
|
-
accountId,
|
|
470
|
-
newRoles: options?.newRoles
|
|
471
|
-
});
|
|
472
|
-
const reqOpts = changeRole(payload);
|
|
473
|
-
sideEffects?.onSiteCall?.();
|
|
474
|
-
try {
|
|
475
|
-
const result = await httpClient.request(reqOpts);
|
|
476
|
-
sideEffects?.onSuccess?.(result);
|
|
477
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
478
|
-
} catch (err) {
|
|
479
|
-
const transformedError = sdkTransformError(
|
|
480
|
-
err,
|
|
481
|
-
{
|
|
482
|
-
spreadPathsToArguments: {},
|
|
483
|
-
explicitPathsToArguments: {
|
|
484
|
-
accountId: "$[0]",
|
|
485
|
-
newRoles: "$[1].newRoles"
|
|
486
|
-
},
|
|
487
|
-
singleArgumentUnchanged: false
|
|
488
|
-
},
|
|
489
|
-
["accountId", "options"]
|
|
490
|
-
);
|
|
491
|
-
sideEffects?.onError?.(err);
|
|
492
|
-
throw transformedError;
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
async function changeContributorLocation2(accountId, options) {
|
|
496
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
497
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
498
|
-
accountId,
|
|
499
|
-
newLocations: options?.newLocations
|
|
500
|
-
});
|
|
501
|
-
const reqOpts = changeContributorLocation(payload);
|
|
502
|
-
sideEffects?.onSiteCall?.();
|
|
503
|
-
try {
|
|
504
|
-
const result = await httpClient.request(reqOpts);
|
|
505
|
-
sideEffects?.onSuccess?.(result);
|
|
506
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
507
|
-
} catch (err) {
|
|
508
|
-
const transformedError = sdkTransformError(
|
|
509
|
-
err,
|
|
510
|
-
{
|
|
511
|
-
spreadPathsToArguments: {},
|
|
512
|
-
explicitPathsToArguments: {
|
|
513
|
-
accountId: "$[0]",
|
|
514
|
-
newLocations: "$[1].newLocations"
|
|
515
|
-
},
|
|
516
|
-
singleArgumentUnchanged: false
|
|
517
|
-
},
|
|
518
|
-
["accountId", "options"]
|
|
519
|
-
);
|
|
520
|
-
sideEffects?.onError?.(err);
|
|
521
|
-
throw transformedError;
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
async function querySiteContributors2(options) {
|
|
525
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
526
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
527
|
-
filter: options?.filter
|
|
528
|
-
});
|
|
529
|
-
const reqOpts = querySiteContributors(payload);
|
|
530
|
-
sideEffects?.onSiteCall?.();
|
|
531
|
-
try {
|
|
532
|
-
const result = await httpClient.request(reqOpts);
|
|
533
|
-
sideEffects?.onSuccess?.(result);
|
|
534
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
535
|
-
} catch (err) {
|
|
536
|
-
const transformedError = sdkTransformError(
|
|
537
|
-
err,
|
|
538
|
-
{
|
|
539
|
-
spreadPathsToArguments: {},
|
|
540
|
-
explicitPathsToArguments: { filter: "$[0].filter" },
|
|
541
|
-
singleArgumentUnchanged: false
|
|
542
|
-
},
|
|
543
|
-
["options"]
|
|
544
|
-
);
|
|
545
|
-
sideEffects?.onError?.(err);
|
|
546
|
-
throw transformedError;
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
async function getContributorsQuota2() {
|
|
550
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
551
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
552
|
-
const reqOpts = getContributorsQuota(payload);
|
|
553
|
-
sideEffects?.onSiteCall?.();
|
|
554
|
-
try {
|
|
555
|
-
const result = await httpClient.request(reqOpts);
|
|
556
|
-
sideEffects?.onSuccess?.(result);
|
|
557
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
558
|
-
} catch (err) {
|
|
559
|
-
const transformedError = sdkTransformError(
|
|
560
|
-
err,
|
|
561
|
-
{
|
|
562
|
-
spreadPathsToArguments: {},
|
|
563
|
-
explicitPathsToArguments: {},
|
|
564
|
-
singleArgumentUnchanged: false
|
|
565
|
-
},
|
|
566
|
-
[]
|
|
567
|
-
);
|
|
568
|
-
sideEffects?.onError?.(err);
|
|
569
|
-
throw transformedError;
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
async function removeContributor2(accountId) {
|
|
573
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
574
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
575
|
-
accountId
|
|
576
|
-
});
|
|
577
|
-
const reqOpts = removeContributor(payload);
|
|
578
|
-
sideEffects?.onSiteCall?.();
|
|
579
|
-
try {
|
|
580
|
-
const result = await httpClient.request(reqOpts);
|
|
581
|
-
sideEffects?.onSuccess?.(result);
|
|
582
|
-
} catch (err) {
|
|
583
|
-
const transformedError = sdkTransformError(
|
|
584
|
-
err,
|
|
585
|
-
{
|
|
586
|
-
spreadPathsToArguments: {},
|
|
587
|
-
explicitPathsToArguments: { accountId: "$[0]" },
|
|
588
|
-
singleArgumentUnchanged: false
|
|
589
|
-
},
|
|
590
|
-
["accountId"]
|
|
591
|
-
);
|
|
592
|
-
sideEffects?.onError?.(err);
|
|
593
|
-
throw transformedError;
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
export {
|
|
597
|
-
AccountGroup,
|
|
598
|
-
ConditionAttributeType,
|
|
599
|
-
FieldSet,
|
|
600
|
-
InviteStatus,
|
|
601
|
-
ResourceType,
|
|
602
|
-
SubjectContextType,
|
|
603
|
-
SubjectType,
|
|
604
|
-
Type,
|
|
605
|
-
WebhookIdentityType,
|
|
606
|
-
changeContributorLocation2 as changeContributorLocation,
|
|
607
|
-
changeRole2 as changeRole,
|
|
608
|
-
getContributorsQuota2 as getContributorsQuota,
|
|
609
|
-
getCurrentContributor2 as getCurrentContributor,
|
|
610
|
-
getSiteContributorsV22 as getSiteContributorsV2,
|
|
611
|
-
querySiteContributors2 as querySiteContributors,
|
|
612
|
-
removeContributor2 as removeContributor
|
|
613
|
-
};
|
|
614
|
-
//# sourceMappingURL=index.typings.mjs.map
|