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