@wix/auto_sdk_user-management_contributors 1.0.69 → 1.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +2 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +22 -0
- package/build/internal/cjs/meta.d.ts +64 -0
- package/build/internal/es/index.typings.d.mts +22 -0
- 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,738 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// index.ts
|
|
21
|
-
var index_exports = {};
|
|
22
|
-
__export(index_exports, {
|
|
23
|
-
AccountGroup: () => AccountGroup,
|
|
24
|
-
ConditionAttributeType: () => ConditionAttributeType,
|
|
25
|
-
FieldSet: () => FieldSet,
|
|
26
|
-
InviteStatus: () => InviteStatus,
|
|
27
|
-
ResourceType: () => ResourceType,
|
|
28
|
-
SubjectContextType: () => SubjectContextType,
|
|
29
|
-
SubjectType: () => SubjectType,
|
|
30
|
-
Type: () => Type,
|
|
31
|
-
WebhookIdentityType: () => WebhookIdentityType,
|
|
32
|
-
changeContributorLocation: () => changeContributorLocation4,
|
|
33
|
-
changeRole: () => changeRole4,
|
|
34
|
-
getContributorsQuota: () => getContributorsQuota4,
|
|
35
|
-
getCurrentContributor: () => getCurrentContributor4,
|
|
36
|
-
getSiteContributorsV2: () => getSiteContributorsV24,
|
|
37
|
-
onContributorCreated: () => onContributorCreated2,
|
|
38
|
-
querySiteContributors: () => querySiteContributors4,
|
|
39
|
-
removeContributor: () => removeContributor4
|
|
40
|
-
});
|
|
41
|
-
module.exports = __toCommonJS(index_exports);
|
|
42
|
-
|
|
43
|
-
// src/identity-v1-contributor-contributors.public.ts
|
|
44
|
-
var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
45
|
-
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
46
|
-
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
47
|
-
var import_sdk_types = require("@wix/sdk-types");
|
|
48
|
-
|
|
49
|
-
// src/identity-v1-contributor-contributors.universal.ts
|
|
50
|
-
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
51
|
-
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
52
|
-
|
|
53
|
-
// src/identity-v1-contributor-contributors.http.ts
|
|
54
|
-
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
55
|
-
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
56
|
-
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
57
|
-
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
58
|
-
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
59
|
-
function resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl(opts) {
|
|
60
|
-
const domainToMappings = {
|
|
61
|
-
"manage._base_domain_": [
|
|
62
|
-
{
|
|
63
|
-
srcPath: "/contributors/accept",
|
|
64
|
-
destPath: "/contributors/accept"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
srcPath: "/roles-management-web",
|
|
68
|
-
destPath: ""
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
srcPath: "/team/accept",
|
|
72
|
-
destPath: "/team/accept"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
srcPath: "/_api/roles-management-web",
|
|
76
|
-
destPath: ""
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
srcPath: "/app/accept",
|
|
80
|
-
destPath: "/app/accept"
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
"api._api_base_domain_": [
|
|
84
|
-
{
|
|
85
|
-
srcPath: "/roles-management-web",
|
|
86
|
-
destPath: ""
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
"editor._base_domain_": [
|
|
90
|
-
{
|
|
91
|
-
srcPath: "/_api/roles-management-web",
|
|
92
|
-
destPath: ""
|
|
93
|
-
}
|
|
94
|
-
],
|
|
95
|
-
"blocks._base_domain_": [
|
|
96
|
-
{
|
|
97
|
-
srcPath: "/_api/roles-management-web",
|
|
98
|
-
destPath: ""
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
"create.editorx": [
|
|
102
|
-
{
|
|
103
|
-
srcPath: "/_api/roles-management-web",
|
|
104
|
-
destPath: ""
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
"www._base_domain_": [
|
|
108
|
-
{
|
|
109
|
-
srcPath: "/_api/roles-management-web",
|
|
110
|
-
destPath: ""
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
srcPath: "/roles-management-web",
|
|
114
|
-
destPath: ""
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
srcPath: "/contributors/accept",
|
|
118
|
-
destPath: "/contributors/accept"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
srcPath: "/team/accept",
|
|
122
|
-
destPath: "/team/accept"
|
|
123
|
-
}
|
|
124
|
-
],
|
|
125
|
-
"dev._base_domain_": [
|
|
126
|
-
{
|
|
127
|
-
srcPath: "/_api/roles-management-web",
|
|
128
|
-
destPath: ""
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
"platform.rise.ai": [
|
|
132
|
-
{
|
|
133
|
-
srcPath: "/v2/contributors",
|
|
134
|
-
destPath: "/v2/contributors"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
srcPath: "/contributor/change/role",
|
|
138
|
-
destPath: "/contributor/change/role"
|
|
139
|
-
}
|
|
140
|
-
],
|
|
141
|
-
"www.wixapis.com": [
|
|
142
|
-
{
|
|
143
|
-
srcPath: "/roles-management",
|
|
144
|
-
destPath: ""
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
srcPath: "/roles-management-web",
|
|
148
|
-
destPath: ""
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
srcPath: "/roles-management/roles",
|
|
152
|
-
destPath: "/roles"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
srcPath: "/roles-management/team",
|
|
156
|
-
destPath: "/team"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
srcPath: "/roles-management/v3/team",
|
|
160
|
-
destPath: "/v3/team"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
srcPath: "/roles-management/v2/team",
|
|
164
|
-
destPath: "/v2/team"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
srcPath: "/roles-management/contributor/change",
|
|
168
|
-
destPath: "/contributor/change"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
srcPath: "/roles-management/v2/contributors",
|
|
172
|
-
destPath: "/v2/contributors"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
srcPath: "/roles-management/contributor/remove",
|
|
176
|
-
destPath: "/contributor/remove"
|
|
177
|
-
}
|
|
178
|
-
],
|
|
179
|
-
"*.dev.wix-code.com": [
|
|
180
|
-
{
|
|
181
|
-
srcPath: "/identity/contributor",
|
|
182
|
-
destPath: "/contributor"
|
|
183
|
-
}
|
|
184
|
-
],
|
|
185
|
-
"vibe._base_domain_": [
|
|
186
|
-
{
|
|
187
|
-
srcPath: "/roles-management-web/v2/contributors",
|
|
188
|
-
destPath: "/v2/contributors"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
srcPath: "/roles-management-web/myRoles",
|
|
192
|
-
destPath: "/roles-management-web/myRoles"
|
|
193
|
-
}
|
|
194
|
-
],
|
|
195
|
-
_: [
|
|
196
|
-
{
|
|
197
|
-
srcPath: "/identity/contributor",
|
|
198
|
-
destPath: "/contributor"
|
|
199
|
-
}
|
|
200
|
-
],
|
|
201
|
-
"bo._base_domain_": [
|
|
202
|
-
{
|
|
203
|
-
srcPath: "/_api/roles-management-web",
|
|
204
|
-
destPath: ""
|
|
205
|
-
}
|
|
206
|
-
],
|
|
207
|
-
"wixbo.ai": [
|
|
208
|
-
{
|
|
209
|
-
srcPath: "/_api/roles-management-web",
|
|
210
|
-
destPath: ""
|
|
211
|
-
}
|
|
212
|
-
],
|
|
213
|
-
"wix-bo.com": [
|
|
214
|
-
{
|
|
215
|
-
srcPath: "/_api/roles-management-web",
|
|
216
|
-
destPath: ""
|
|
217
|
-
}
|
|
218
|
-
]
|
|
219
|
-
};
|
|
220
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
221
|
-
}
|
|
222
|
-
var PACKAGE_NAME = "@wix/auto_sdk_user-management_contributors";
|
|
223
|
-
function getSiteContributorsV2(payload) {
|
|
224
|
-
function __getSiteContributorsV2({ host }) {
|
|
225
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
226
|
-
{
|
|
227
|
-
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
228
|
-
paths: [{ path: "fields" }]
|
|
229
|
-
}
|
|
230
|
-
]);
|
|
231
|
-
const metadata = {
|
|
232
|
-
entityFqdn: "wix.identity.v1.contributor",
|
|
233
|
-
method: "GET",
|
|
234
|
-
methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.GetSiteContributorsV2",
|
|
235
|
-
packageName: PACKAGE_NAME,
|
|
236
|
-
migrationOptions: {
|
|
237
|
-
optInTransformResponse: true
|
|
238
|
-
},
|
|
239
|
-
url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
|
|
240
|
-
protoPath: "/v2/contributors",
|
|
241
|
-
data: serializedData,
|
|
242
|
-
host
|
|
243
|
-
}),
|
|
244
|
-
params: (0, import_rest_modules.toURLSearchParams)(serializedData),
|
|
245
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
246
|
-
{
|
|
247
|
-
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
248
|
-
paths: [
|
|
249
|
-
{ path: "contributors.joinedAt" },
|
|
250
|
-
{ path: "invites.dateCreated" },
|
|
251
|
-
{ path: "invites.expirationDate" },
|
|
252
|
-
{ path: "pendingOwner.expirationDate" },
|
|
253
|
-
{ path: "enrichedInvites.dateCreated" },
|
|
254
|
-
{ path: "enrichedInvites.expirationDate" }
|
|
255
|
-
]
|
|
256
|
-
}
|
|
257
|
-
])
|
|
258
|
-
};
|
|
259
|
-
return metadata;
|
|
260
|
-
}
|
|
261
|
-
return __getSiteContributorsV2;
|
|
262
|
-
}
|
|
263
|
-
function getCurrentContributor(payload) {
|
|
264
|
-
function __getCurrentContributor({ host }) {
|
|
265
|
-
const metadata = {
|
|
266
|
-
entityFqdn: "wix.identity.v1.contributor",
|
|
267
|
-
method: "GET",
|
|
268
|
-
methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.GetCurrentContributor",
|
|
269
|
-
packageName: PACKAGE_NAME,
|
|
270
|
-
migrationOptions: {
|
|
271
|
-
optInTransformResponse: true
|
|
272
|
-
},
|
|
273
|
-
url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
|
|
274
|
-
protoPath: "/v2/contributors/current",
|
|
275
|
-
data: payload,
|
|
276
|
-
host
|
|
277
|
-
}),
|
|
278
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
279
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
280
|
-
{
|
|
281
|
-
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
282
|
-
paths: [{ path: "contributor.joinedAt" }]
|
|
283
|
-
}
|
|
284
|
-
])
|
|
285
|
-
};
|
|
286
|
-
return metadata;
|
|
287
|
-
}
|
|
288
|
-
return __getCurrentContributor;
|
|
289
|
-
}
|
|
290
|
-
function changeRole(payload) {
|
|
291
|
-
function __changeRole({ host }) {
|
|
292
|
-
const metadata = {
|
|
293
|
-
entityFqdn: "wix.identity.v1.contributor",
|
|
294
|
-
method: "PUT",
|
|
295
|
-
methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.ChangeRole",
|
|
296
|
-
packageName: PACKAGE_NAME,
|
|
297
|
-
migrationOptions: {
|
|
298
|
-
optInTransformResponse: true
|
|
299
|
-
},
|
|
300
|
-
url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
|
|
301
|
-
protoPath: "/contributor/change/role",
|
|
302
|
-
data: payload,
|
|
303
|
-
host
|
|
304
|
-
}),
|
|
305
|
-
data: payload
|
|
306
|
-
};
|
|
307
|
-
return metadata;
|
|
308
|
-
}
|
|
309
|
-
return __changeRole;
|
|
310
|
-
}
|
|
311
|
-
function changeContributorLocation(payload) {
|
|
312
|
-
function __changeContributorLocation({ host }) {
|
|
313
|
-
const metadata = {
|
|
314
|
-
entityFqdn: "wix.identity.v1.contributor",
|
|
315
|
-
method: "PUT",
|
|
316
|
-
methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.ChangeContributorLocation",
|
|
317
|
-
packageName: PACKAGE_NAME,
|
|
318
|
-
migrationOptions: {
|
|
319
|
-
optInTransformResponse: true
|
|
320
|
-
},
|
|
321
|
-
url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
|
|
322
|
-
protoPath: "/contributor/change/locations",
|
|
323
|
-
data: payload,
|
|
324
|
-
host
|
|
325
|
-
}),
|
|
326
|
-
data: payload
|
|
327
|
-
};
|
|
328
|
-
return metadata;
|
|
329
|
-
}
|
|
330
|
-
return __changeContributorLocation;
|
|
331
|
-
}
|
|
332
|
-
function querySiteContributors(payload) {
|
|
333
|
-
function __querySiteContributors({ host }) {
|
|
334
|
-
const metadata = {
|
|
335
|
-
entityFqdn: "wix.identity.v1.contributor",
|
|
336
|
-
method: "GET",
|
|
337
|
-
methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.QuerySiteContributors",
|
|
338
|
-
packageName: PACKAGE_NAME,
|
|
339
|
-
migrationOptions: {
|
|
340
|
-
optInTransformResponse: true
|
|
341
|
-
},
|
|
342
|
-
url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
|
|
343
|
-
protoPath: "/v2/contributors/query",
|
|
344
|
-
data: payload,
|
|
345
|
-
host
|
|
346
|
-
}),
|
|
347
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
348
|
-
};
|
|
349
|
-
return metadata;
|
|
350
|
-
}
|
|
351
|
-
return __querySiteContributors;
|
|
352
|
-
}
|
|
353
|
-
function getContributorsQuota(payload) {
|
|
354
|
-
function __getContributorsQuota({ host }) {
|
|
355
|
-
const metadata = {
|
|
356
|
-
entityFqdn: "wix.identity.v1.contributor",
|
|
357
|
-
method: "GET",
|
|
358
|
-
methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.GetContributorsQuota",
|
|
359
|
-
packageName: PACKAGE_NAME,
|
|
360
|
-
migrationOptions: {
|
|
361
|
-
optInTransformResponse: true
|
|
362
|
-
},
|
|
363
|
-
url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
|
|
364
|
-
protoPath: "/v2/contributors/quota",
|
|
365
|
-
data: payload,
|
|
366
|
-
host
|
|
367
|
-
}),
|
|
368
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
369
|
-
};
|
|
370
|
-
return metadata;
|
|
371
|
-
}
|
|
372
|
-
return __getContributorsQuota;
|
|
373
|
-
}
|
|
374
|
-
function removeContributor(payload) {
|
|
375
|
-
function __removeContributor({ host }) {
|
|
376
|
-
const metadata = {
|
|
377
|
-
entityFqdn: "wix.identity.v1.contributor",
|
|
378
|
-
method: "POST",
|
|
379
|
-
methodFqn: "com.wixpress.roles.management.api.SiteRolesManagementService.RemoveContributor",
|
|
380
|
-
packageName: PACKAGE_NAME,
|
|
381
|
-
migrationOptions: {
|
|
382
|
-
optInTransformResponse: true
|
|
383
|
-
},
|
|
384
|
-
url: resolveComWixpressRolesManagementApiSiteRolesManagementServiceUrl({
|
|
385
|
-
protoPath: "/contributor/remove",
|
|
386
|
-
data: payload,
|
|
387
|
-
host
|
|
388
|
-
}),
|
|
389
|
-
data: payload
|
|
390
|
-
};
|
|
391
|
-
return metadata;
|
|
392
|
-
}
|
|
393
|
-
return __removeContributor;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
// src/identity-v1-contributor-contributors.universal.ts
|
|
397
|
-
var ResourceType = /* @__PURE__ */ ((ResourceType2) => {
|
|
398
|
-
ResourceType2["UNKNOWN_RESOURCE_TYPE"] = "UNKNOWN_RESOURCE_TYPE";
|
|
399
|
-
ResourceType2["SITE"] = "SITE";
|
|
400
|
-
return ResourceType2;
|
|
401
|
-
})(ResourceType || {});
|
|
402
|
-
var ConditionAttributeType = /* @__PURE__ */ ((ConditionAttributeType2) => {
|
|
403
|
-
ConditionAttributeType2["UNKNOWN_CONDITION_TYPE"] = "UNKNOWN_CONDITION_TYPE";
|
|
404
|
-
ConditionAttributeType2["FOLDER"] = "FOLDER";
|
|
405
|
-
return ConditionAttributeType2;
|
|
406
|
-
})(ConditionAttributeType || {});
|
|
407
|
-
var SubjectType = /* @__PURE__ */ ((SubjectType2) => {
|
|
408
|
-
SubjectType2["UNKNOWN"] = "UNKNOWN";
|
|
409
|
-
SubjectType2["ACCOUNT"] = "ACCOUNT";
|
|
410
|
-
SubjectType2["USER"] = "USER";
|
|
411
|
-
SubjectType2["USER_GROUP"] = "USER_GROUP";
|
|
412
|
-
SubjectType2["MEMBER_GROUP"] = "MEMBER_GROUP";
|
|
413
|
-
SubjectType2["VISITOR_GROUP"] = "VISITOR_GROUP";
|
|
414
|
-
SubjectType2["EXTERNAL_APP"] = "EXTERNAL_APP";
|
|
415
|
-
SubjectType2["ACCOUNT_GROUP"] = "ACCOUNT_GROUP";
|
|
416
|
-
SubjectType2["WIX_APP"] = "WIX_APP";
|
|
417
|
-
return SubjectType2;
|
|
418
|
-
})(SubjectType || {});
|
|
419
|
-
var SubjectContextType = /* @__PURE__ */ ((SubjectContextType2) => {
|
|
420
|
-
SubjectContextType2["UNKNOWN_CTX"] = "UNKNOWN_CTX";
|
|
421
|
-
SubjectContextType2["ORG_CTX"] = "ORG_CTX";
|
|
422
|
-
SubjectContextType2["ACCOUNT_CTX"] = "ACCOUNT_CTX";
|
|
423
|
-
return SubjectContextType2;
|
|
424
|
-
})(SubjectContextType || {});
|
|
425
|
-
var AccountGroup = /* @__PURE__ */ ((AccountGroup2) => {
|
|
426
|
-
AccountGroup2["ENTERPRISE"] = "ENTERPRISE";
|
|
427
|
-
AccountGroup2["CHANNELS"] = "CHANNELS";
|
|
428
|
-
return AccountGroup2;
|
|
429
|
-
})(AccountGroup || {});
|
|
430
|
-
var InviteStatus = /* @__PURE__ */ ((InviteStatus2) => {
|
|
431
|
-
InviteStatus2["Pending"] = "Pending";
|
|
432
|
-
InviteStatus2["Used"] = "Used";
|
|
433
|
-
InviteStatus2["Deleted"] = "Deleted";
|
|
434
|
-
InviteStatus2["Declined"] = "Declined";
|
|
435
|
-
InviteStatus2["Expired"] = "Expired";
|
|
436
|
-
return InviteStatus2;
|
|
437
|
-
})(InviteStatus || {});
|
|
438
|
-
var Type = /* @__PURE__ */ ((Type2) => {
|
|
439
|
-
Type2["UNKNOWN"] = "UNKNOWN";
|
|
440
|
-
Type2["LIMITED"] = "LIMITED";
|
|
441
|
-
Type2["UNLIMITED"] = "UNLIMITED";
|
|
442
|
-
return Type2;
|
|
443
|
-
})(Type || {});
|
|
444
|
-
var FieldSet = /* @__PURE__ */ ((FieldSet2) => {
|
|
445
|
-
FieldSet2["UNKNOWN"] = "UNKNOWN";
|
|
446
|
-
FieldSet2["META_DATA"] = "META_DATA";
|
|
447
|
-
return FieldSet2;
|
|
448
|
-
})(FieldSet || {});
|
|
449
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
450
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
451
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
452
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
453
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
454
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
455
|
-
return WebhookIdentityType2;
|
|
456
|
-
})(WebhookIdentityType || {});
|
|
457
|
-
async function getSiteContributorsV22(options) {
|
|
458
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
459
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
460
|
-
locale: options?.locale,
|
|
461
|
-
fields: options?.fields,
|
|
462
|
-
host: options?.host
|
|
463
|
-
});
|
|
464
|
-
const reqOpts = getSiteContributorsV2(payload);
|
|
465
|
-
sideEffects?.onSiteCall?.();
|
|
466
|
-
try {
|
|
467
|
-
const result = await httpClient.request(reqOpts);
|
|
468
|
-
sideEffects?.onSuccess?.(result);
|
|
469
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
470
|
-
} catch (err) {
|
|
471
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
472
|
-
err,
|
|
473
|
-
{
|
|
474
|
-
spreadPathsToArguments: {},
|
|
475
|
-
explicitPathsToArguments: {
|
|
476
|
-
locale: "$[0].locale",
|
|
477
|
-
fields: "$[0].fields",
|
|
478
|
-
host: "$[0].host"
|
|
479
|
-
},
|
|
480
|
-
singleArgumentUnchanged: false
|
|
481
|
-
},
|
|
482
|
-
["options"]
|
|
483
|
-
);
|
|
484
|
-
sideEffects?.onError?.(err);
|
|
485
|
-
throw transformedError;
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
async function getCurrentContributor2() {
|
|
489
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
490
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
|
|
491
|
-
const reqOpts = getCurrentContributor(payload);
|
|
492
|
-
sideEffects?.onSiteCall?.();
|
|
493
|
-
try {
|
|
494
|
-
const result = await httpClient.request(reqOpts);
|
|
495
|
-
sideEffects?.onSuccess?.(result);
|
|
496
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
497
|
-
} catch (err) {
|
|
498
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
499
|
-
err,
|
|
500
|
-
{
|
|
501
|
-
spreadPathsToArguments: {},
|
|
502
|
-
explicitPathsToArguments: {},
|
|
503
|
-
singleArgumentUnchanged: false
|
|
504
|
-
},
|
|
505
|
-
[]
|
|
506
|
-
);
|
|
507
|
-
sideEffects?.onError?.(err);
|
|
508
|
-
throw transformedError;
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
async function changeRole2(accountId, options) {
|
|
512
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
513
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
514
|
-
accountId,
|
|
515
|
-
newRoles: options?.newRoles
|
|
516
|
-
});
|
|
517
|
-
const reqOpts = changeRole(payload);
|
|
518
|
-
sideEffects?.onSiteCall?.();
|
|
519
|
-
try {
|
|
520
|
-
const result = await httpClient.request(reqOpts);
|
|
521
|
-
sideEffects?.onSuccess?.(result);
|
|
522
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
523
|
-
} catch (err) {
|
|
524
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
525
|
-
err,
|
|
526
|
-
{
|
|
527
|
-
spreadPathsToArguments: {},
|
|
528
|
-
explicitPathsToArguments: {
|
|
529
|
-
accountId: "$[0]",
|
|
530
|
-
newRoles: "$[1].newRoles"
|
|
531
|
-
},
|
|
532
|
-
singleArgumentUnchanged: false
|
|
533
|
-
},
|
|
534
|
-
["accountId", "options"]
|
|
535
|
-
);
|
|
536
|
-
sideEffects?.onError?.(err);
|
|
537
|
-
throw transformedError;
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
async function changeContributorLocation2(accountId, options) {
|
|
541
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
542
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
543
|
-
accountId,
|
|
544
|
-
newLocations: options?.newLocations
|
|
545
|
-
});
|
|
546
|
-
const reqOpts = changeContributorLocation(payload);
|
|
547
|
-
sideEffects?.onSiteCall?.();
|
|
548
|
-
try {
|
|
549
|
-
const result = await httpClient.request(reqOpts);
|
|
550
|
-
sideEffects?.onSuccess?.(result);
|
|
551
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
552
|
-
} catch (err) {
|
|
553
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
554
|
-
err,
|
|
555
|
-
{
|
|
556
|
-
spreadPathsToArguments: {},
|
|
557
|
-
explicitPathsToArguments: {
|
|
558
|
-
accountId: "$[0]",
|
|
559
|
-
newLocations: "$[1].newLocations"
|
|
560
|
-
},
|
|
561
|
-
singleArgumentUnchanged: false
|
|
562
|
-
},
|
|
563
|
-
["accountId", "options"]
|
|
564
|
-
);
|
|
565
|
-
sideEffects?.onError?.(err);
|
|
566
|
-
throw transformedError;
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
async function querySiteContributors2(options) {
|
|
570
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
571
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
572
|
-
filter: options?.filter
|
|
573
|
-
});
|
|
574
|
-
const reqOpts = querySiteContributors(payload);
|
|
575
|
-
sideEffects?.onSiteCall?.();
|
|
576
|
-
try {
|
|
577
|
-
const result = await httpClient.request(reqOpts);
|
|
578
|
-
sideEffects?.onSuccess?.(result);
|
|
579
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
580
|
-
} catch (err) {
|
|
581
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
582
|
-
err,
|
|
583
|
-
{
|
|
584
|
-
spreadPathsToArguments: {},
|
|
585
|
-
explicitPathsToArguments: { filter: "$[0].filter" },
|
|
586
|
-
singleArgumentUnchanged: false
|
|
587
|
-
},
|
|
588
|
-
["options"]
|
|
589
|
-
);
|
|
590
|
-
sideEffects?.onError?.(err);
|
|
591
|
-
throw transformedError;
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
async function getContributorsQuota2() {
|
|
595
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
596
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
|
|
597
|
-
const reqOpts = getContributorsQuota(payload);
|
|
598
|
-
sideEffects?.onSiteCall?.();
|
|
599
|
-
try {
|
|
600
|
-
const result = await httpClient.request(reqOpts);
|
|
601
|
-
sideEffects?.onSuccess?.(result);
|
|
602
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
603
|
-
} catch (err) {
|
|
604
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
605
|
-
err,
|
|
606
|
-
{
|
|
607
|
-
spreadPathsToArguments: {},
|
|
608
|
-
explicitPathsToArguments: {},
|
|
609
|
-
singleArgumentUnchanged: false
|
|
610
|
-
},
|
|
611
|
-
[]
|
|
612
|
-
);
|
|
613
|
-
sideEffects?.onError?.(err);
|
|
614
|
-
throw transformedError;
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
async function removeContributor2(accountId) {
|
|
618
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
619
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
620
|
-
accountId
|
|
621
|
-
});
|
|
622
|
-
const reqOpts = removeContributor(payload);
|
|
623
|
-
sideEffects?.onSiteCall?.();
|
|
624
|
-
try {
|
|
625
|
-
const result = await httpClient.request(reqOpts);
|
|
626
|
-
sideEffects?.onSuccess?.(result);
|
|
627
|
-
} catch (err) {
|
|
628
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
629
|
-
err,
|
|
630
|
-
{
|
|
631
|
-
spreadPathsToArguments: {},
|
|
632
|
-
explicitPathsToArguments: { accountId: "$[0]" },
|
|
633
|
-
singleArgumentUnchanged: false
|
|
634
|
-
},
|
|
635
|
-
["accountId"]
|
|
636
|
-
);
|
|
637
|
-
sideEffects?.onError?.(err);
|
|
638
|
-
throw transformedError;
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
// src/identity-v1-contributor-contributors.public.ts
|
|
643
|
-
function getSiteContributorsV23(httpClient) {
|
|
644
|
-
return (options) => getSiteContributorsV22(
|
|
645
|
-
options,
|
|
646
|
-
// @ts-ignore
|
|
647
|
-
{ httpClient }
|
|
648
|
-
);
|
|
649
|
-
}
|
|
650
|
-
function getCurrentContributor3(httpClient) {
|
|
651
|
-
return () => getCurrentContributor2(
|
|
652
|
-
// @ts-ignore
|
|
653
|
-
{ httpClient }
|
|
654
|
-
);
|
|
655
|
-
}
|
|
656
|
-
function changeRole3(httpClient) {
|
|
657
|
-
return (accountId, options) => changeRole2(
|
|
658
|
-
accountId,
|
|
659
|
-
options,
|
|
660
|
-
// @ts-ignore
|
|
661
|
-
{ httpClient }
|
|
662
|
-
);
|
|
663
|
-
}
|
|
664
|
-
function changeContributorLocation3(httpClient) {
|
|
665
|
-
return (accountId, options) => changeContributorLocation2(
|
|
666
|
-
accountId,
|
|
667
|
-
options,
|
|
668
|
-
// @ts-ignore
|
|
669
|
-
{ httpClient }
|
|
670
|
-
);
|
|
671
|
-
}
|
|
672
|
-
function querySiteContributors3(httpClient) {
|
|
673
|
-
return (options) => querySiteContributors2(
|
|
674
|
-
options,
|
|
675
|
-
// @ts-ignore
|
|
676
|
-
{ httpClient }
|
|
677
|
-
);
|
|
678
|
-
}
|
|
679
|
-
function getContributorsQuota3(httpClient) {
|
|
680
|
-
return () => getContributorsQuota2(
|
|
681
|
-
// @ts-ignore
|
|
682
|
-
{ httpClient }
|
|
683
|
-
);
|
|
684
|
-
}
|
|
685
|
-
function removeContributor3(httpClient) {
|
|
686
|
-
return (accountId) => removeContributor2(
|
|
687
|
-
accountId,
|
|
688
|
-
// @ts-ignore
|
|
689
|
-
{ httpClient }
|
|
690
|
-
);
|
|
691
|
-
}
|
|
692
|
-
var onContributorCreated = (0, import_sdk_types.EventDefinition)(
|
|
693
|
-
"wix.identity.v1.contributor_created",
|
|
694
|
-
true,
|
|
695
|
-
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
696
|
-
(0, import_transform_paths2.transformPaths)(event, [
|
|
697
|
-
{
|
|
698
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
699
|
-
paths: [{ path: "entity.joinedAt" }, { path: "metadata.eventTime" }]
|
|
700
|
-
}
|
|
701
|
-
])
|
|
702
|
-
)
|
|
703
|
-
)();
|
|
704
|
-
|
|
705
|
-
// src/identity-v1-contributor-contributors.context.ts
|
|
706
|
-
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
707
|
-
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
708
|
-
var getSiteContributorsV24 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSiteContributorsV23);
|
|
709
|
-
var getCurrentContributor4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getCurrentContributor3);
|
|
710
|
-
var changeRole4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(changeRole3);
|
|
711
|
-
var changeContributorLocation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(changeContributorLocation3);
|
|
712
|
-
var querySiteContributors4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(querySiteContributors3);
|
|
713
|
-
var getContributorsQuota4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getContributorsQuota3);
|
|
714
|
-
var removeContributor4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(removeContributor3);
|
|
715
|
-
var onContributorCreated2 = (0, import_event_definition_modules.createEventModule)(
|
|
716
|
-
onContributorCreated
|
|
717
|
-
);
|
|
718
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
719
|
-
0 && (module.exports = {
|
|
720
|
-
AccountGroup,
|
|
721
|
-
ConditionAttributeType,
|
|
722
|
-
FieldSet,
|
|
723
|
-
InviteStatus,
|
|
724
|
-
ResourceType,
|
|
725
|
-
SubjectContextType,
|
|
726
|
-
SubjectType,
|
|
727
|
-
Type,
|
|
728
|
-
WebhookIdentityType,
|
|
729
|
-
changeContributorLocation,
|
|
730
|
-
changeRole,
|
|
731
|
-
getContributorsQuota,
|
|
732
|
-
getCurrentContributor,
|
|
733
|
-
getSiteContributorsV2,
|
|
734
|
-
onContributorCreated,
|
|
735
|
-
querySiteContributors,
|
|
736
|
-
removeContributor
|
|
737
|
-
});
|
|
738
|
-
//# sourceMappingURL=index.js.map
|