gopadjs 2.4.0 → 2.5.0
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/.github/RELEASE +1 -1
- package/.github/renovate.json +1 -1
- package/.github/workflows/automerge.yml +1 -0
- package/.openapi-generator/FILES +18 -10
- package/CHANGELOG.md +21 -0
- package/README.md +2 -2
- package/api/auth-api.ts +179 -114
- package/api/{team-api.ts → group-api.ts} +466 -472
- package/api/profile-api.ts +33 -18
- package/api/user-api.ts +220 -236
- package/api.ts +1 -1
- package/flake.lock +93 -19
- package/flake.nix +46 -23
- package/hack/openapi/templates/gitignore +7 -5
- package/model/create-group-request.ts +33 -0
- package/model/create-user-request.ts +57 -0
- package/model/delete-group-from-user-request.ts +27 -0
- package/model/delete-user-from-group-request.ts +27 -0
- package/model/{team.ts → group.ts} +8 -18
- package/model/index.ts +17 -9
- package/model/list-group-users200-response.ts +58 -0
- package/model/{team-users.ts → list-groups200-response.ts} +18 -15
- package/model/{teams.ts → list-providers200-response.ts} +9 -9
- package/model/{user-teams.ts → list-user-groups200-response.ts} +24 -12
- package/model/{users.ts → list-users200-response.ts} +19 -7
- package/model/{auth-login.ts → login-auth-request.ts} +4 -4
- package/model/{team-user-params.ts → permit-group-user-request.ts} +6 -15
- package/model/{user-team-params.ts → permit-user-group-request.ts} +7 -16
- package/model/profile.ts +3 -3
- package/model/provider.ts +45 -0
- package/model/update-profile-request.ts +45 -0
- package/model/update-user-request.ts +57 -0
- package/model/{user-team.ts → user-group.ts} +19 -19
- package/model/user.ts +0 -9
- package/openapi.yml +1 -1
- package/package.json +1 -1
|
@@ -42,43 +42,51 @@ import {
|
|
|
42
42
|
operationServerMap,
|
|
43
43
|
} from "../base";
|
|
44
44
|
// @ts-ignore
|
|
45
|
-
import type {
|
|
45
|
+
import type { CreateGroupRequest } from "../model";
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
import type { DeleteGroupFromUserRequest } from "../model";
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
import type { Group } from "../model";
|
|
46
50
|
// @ts-ignore
|
|
47
|
-
import type {
|
|
51
|
+
import type { ListGroupUsers200Response } from "../model";
|
|
48
52
|
// @ts-ignore
|
|
49
|
-
import type {
|
|
53
|
+
import type { ListGroups200Response } from "../model";
|
|
50
54
|
// @ts-ignore
|
|
51
|
-
import type {
|
|
55
|
+
import type { Notification } from "../model";
|
|
52
56
|
// @ts-ignore
|
|
53
|
-
import type {
|
|
57
|
+
import type { PermitGroupUserRequest } from "../model";
|
|
54
58
|
/**
|
|
55
|
-
*
|
|
59
|
+
* GroupApi - axios parameter creator
|
|
56
60
|
* @export
|
|
57
61
|
*/
|
|
58
|
-
export const
|
|
62
|
+
export const GroupApiAxiosParamCreator = function (
|
|
59
63
|
configuration?: Configuration,
|
|
60
64
|
) {
|
|
61
65
|
return {
|
|
62
66
|
/**
|
|
63
67
|
*
|
|
64
|
-
* @summary Attach a user to
|
|
65
|
-
* @param {string}
|
|
66
|
-
* @param {
|
|
68
|
+
* @summary Attach a user to group
|
|
69
|
+
* @param {string} groupId A group identifier or slug
|
|
70
|
+
* @param {PermitGroupUserRequest} permitGroupUserRequest The group user data to permit
|
|
67
71
|
* @param {*} [options] Override http request option.
|
|
68
72
|
* @throws {RequiredError}
|
|
69
73
|
*/
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
74
|
+
attachGroupToUser: async (
|
|
75
|
+
groupId: string,
|
|
76
|
+
permitGroupUserRequest: PermitGroupUserRequest,
|
|
73
77
|
options: RawAxiosRequestConfig = {},
|
|
74
78
|
): Promise<RequestArgs> => {
|
|
75
|
-
// verify required parameter '
|
|
76
|
-
assertParamExists("
|
|
77
|
-
// verify required parameter '
|
|
78
|
-
assertParamExists(
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
80
|
+
assertParamExists("attachGroupToUser", "groupId", groupId);
|
|
81
|
+
// verify required parameter 'permitGroupUserRequest' is not null or undefined
|
|
82
|
+
assertParamExists(
|
|
83
|
+
"attachGroupToUser",
|
|
84
|
+
"permitGroupUserRequest",
|
|
85
|
+
permitGroupUserRequest,
|
|
86
|
+
);
|
|
87
|
+
const localVarPath = `/groups/{group_id}/users`.replace(
|
|
88
|
+
`{${"group_id"}}`,
|
|
89
|
+
encodeURIComponent(String(groupId)),
|
|
82
90
|
);
|
|
83
91
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
84
92
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -95,9 +103,6 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
95
103
|
const localVarHeaderParameter = {} as any;
|
|
96
104
|
const localVarQueryParameter = {} as any;
|
|
97
105
|
|
|
98
|
-
// authentication Cookie required
|
|
99
|
-
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
100
|
-
|
|
101
106
|
// authentication Basic required
|
|
102
107
|
// http basic authentication required
|
|
103
108
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
@@ -124,7 +129,7 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
124
129
|
...options.headers,
|
|
125
130
|
};
|
|
126
131
|
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
127
|
-
|
|
132
|
+
permitGroupUserRequest,
|
|
128
133
|
localVarRequestOptions,
|
|
129
134
|
configuration,
|
|
130
135
|
);
|
|
@@ -136,18 +141,22 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
136
141
|
},
|
|
137
142
|
/**
|
|
138
143
|
*
|
|
139
|
-
* @summary Create a new
|
|
140
|
-
* @param {
|
|
144
|
+
* @summary Create a new group
|
|
145
|
+
* @param {CreateGroupRequest} createGroupRequest The group data to create
|
|
141
146
|
* @param {*} [options] Override http request option.
|
|
142
147
|
* @throws {RequiredError}
|
|
143
148
|
*/
|
|
144
|
-
|
|
145
|
-
|
|
149
|
+
createGroup: async (
|
|
150
|
+
createGroupRequest: CreateGroupRequest,
|
|
146
151
|
options: RawAxiosRequestConfig = {},
|
|
147
152
|
): Promise<RequestArgs> => {
|
|
148
|
-
// verify required parameter '
|
|
149
|
-
assertParamExists(
|
|
150
|
-
|
|
153
|
+
// verify required parameter 'createGroupRequest' is not null or undefined
|
|
154
|
+
assertParamExists(
|
|
155
|
+
"createGroup",
|
|
156
|
+
"createGroupRequest",
|
|
157
|
+
createGroupRequest,
|
|
158
|
+
);
|
|
159
|
+
const localVarPath = `/groups`;
|
|
151
160
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
152
161
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
153
162
|
let baseOptions;
|
|
@@ -163,9 +172,6 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
163
172
|
const localVarHeaderParameter = {} as any;
|
|
164
173
|
const localVarQueryParameter = {} as any;
|
|
165
174
|
|
|
166
|
-
// authentication Cookie required
|
|
167
|
-
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
168
|
-
|
|
169
175
|
// authentication Basic required
|
|
170
176
|
// http basic authentication required
|
|
171
177
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
@@ -192,7 +198,7 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
192
198
|
...options.headers,
|
|
193
199
|
};
|
|
194
200
|
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
195
|
-
|
|
201
|
+
createGroupRequest,
|
|
196
202
|
localVarRequestOptions,
|
|
197
203
|
configuration,
|
|
198
204
|
);
|
|
@@ -204,20 +210,20 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
204
210
|
},
|
|
205
211
|
/**
|
|
206
212
|
*
|
|
207
|
-
* @summary Delete a specific
|
|
208
|
-
* @param {string}
|
|
213
|
+
* @summary Delete a specific group
|
|
214
|
+
* @param {string} groupId A group identifier or slug
|
|
209
215
|
* @param {*} [options] Override http request option.
|
|
210
216
|
* @throws {RequiredError}
|
|
211
217
|
*/
|
|
212
|
-
|
|
213
|
-
|
|
218
|
+
deleteGroup: async (
|
|
219
|
+
groupId: string,
|
|
214
220
|
options: RawAxiosRequestConfig = {},
|
|
215
221
|
): Promise<RequestArgs> => {
|
|
216
|
-
// verify required parameter '
|
|
217
|
-
assertParamExists("
|
|
218
|
-
const localVarPath = `/
|
|
219
|
-
`{${"
|
|
220
|
-
encodeURIComponent(String(
|
|
222
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
223
|
+
assertParamExists("deleteGroup", "groupId", groupId);
|
|
224
|
+
const localVarPath = `/groups/{group_id}`.replace(
|
|
225
|
+
`{${"group_id"}}`,
|
|
226
|
+
encodeURIComponent(String(groupId)),
|
|
221
227
|
);
|
|
222
228
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
223
229
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -234,9 +240,6 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
234
240
|
const localVarHeaderParameter = {} as any;
|
|
235
241
|
const localVarQueryParameter = {} as any;
|
|
236
242
|
|
|
237
|
-
// authentication Cookie required
|
|
238
|
-
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
239
|
-
|
|
240
243
|
// authentication Basic required
|
|
241
244
|
// http basic authentication required
|
|
242
245
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
@@ -268,24 +271,28 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
268
271
|
},
|
|
269
272
|
/**
|
|
270
273
|
*
|
|
271
|
-
* @summary Unlink a user from
|
|
272
|
-
* @param {string}
|
|
273
|
-
* @param {
|
|
274
|
+
* @summary Unlink a user from group
|
|
275
|
+
* @param {string} groupId A group identifier or slug
|
|
276
|
+
* @param {DeleteGroupFromUserRequest} deleteGroupFromUserRequest The group user data to unlink
|
|
274
277
|
* @param {*} [options] Override http request option.
|
|
275
278
|
* @throws {RequiredError}
|
|
276
279
|
*/
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
+
deleteGroupFromUser: async (
|
|
281
|
+
groupId: string,
|
|
282
|
+
deleteGroupFromUserRequest: DeleteGroupFromUserRequest,
|
|
280
283
|
options: RawAxiosRequestConfig = {},
|
|
281
284
|
): Promise<RequestArgs> => {
|
|
282
|
-
// verify required parameter '
|
|
283
|
-
assertParamExists("
|
|
284
|
-
// verify required parameter '
|
|
285
|
-
assertParamExists(
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
285
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
286
|
+
assertParamExists("deleteGroupFromUser", "groupId", groupId);
|
|
287
|
+
// verify required parameter 'deleteGroupFromUserRequest' is not null or undefined
|
|
288
|
+
assertParamExists(
|
|
289
|
+
"deleteGroupFromUser",
|
|
290
|
+
"deleteGroupFromUserRequest",
|
|
291
|
+
deleteGroupFromUserRequest,
|
|
292
|
+
);
|
|
293
|
+
const localVarPath = `/groups/{group_id}/users`.replace(
|
|
294
|
+
`{${"group_id"}}`,
|
|
295
|
+
encodeURIComponent(String(groupId)),
|
|
289
296
|
);
|
|
290
297
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
291
298
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -302,9 +309,6 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
302
309
|
const localVarHeaderParameter = {} as any;
|
|
303
310
|
const localVarQueryParameter = {} as any;
|
|
304
311
|
|
|
305
|
-
// authentication Cookie required
|
|
306
|
-
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
307
|
-
|
|
308
312
|
// authentication Basic required
|
|
309
313
|
// http basic authentication required
|
|
310
314
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
@@ -331,7 +335,7 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
331
335
|
...options.headers,
|
|
332
336
|
};
|
|
333
337
|
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
334
|
-
|
|
338
|
+
deleteGroupFromUserRequest,
|
|
335
339
|
localVarRequestOptions,
|
|
336
340
|
configuration,
|
|
337
341
|
);
|
|
@@ -343,30 +347,30 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
343
347
|
},
|
|
344
348
|
/**
|
|
345
349
|
*
|
|
346
|
-
* @summary Fetch all users attached to
|
|
347
|
-
* @param {string}
|
|
350
|
+
* @summary Fetch all users attached to group
|
|
351
|
+
* @param {string} groupId A group identifier or slug
|
|
348
352
|
* @param {string} [search] Search query
|
|
349
|
-
* @param {
|
|
350
|
-
* @param {
|
|
353
|
+
* @param {string} [sort] Sorting column
|
|
354
|
+
* @param {ListGroupUsersOrderEnum} [order] Sorting order
|
|
351
355
|
* @param {number} [limit] Paging limit
|
|
352
356
|
* @param {number} [offset] Paging offset
|
|
353
357
|
* @param {*} [options] Override http request option.
|
|
354
358
|
* @throws {RequiredError}
|
|
355
359
|
*/
|
|
356
|
-
|
|
357
|
-
|
|
360
|
+
listGroupUsers: async (
|
|
361
|
+
groupId: string,
|
|
358
362
|
search?: string,
|
|
359
|
-
sort?:
|
|
360
|
-
order?:
|
|
363
|
+
sort?: string,
|
|
364
|
+
order?: ListGroupUsersOrderEnum,
|
|
361
365
|
limit?: number,
|
|
362
366
|
offset?: number,
|
|
363
367
|
options: RawAxiosRequestConfig = {},
|
|
364
368
|
): Promise<RequestArgs> => {
|
|
365
|
-
// verify required parameter '
|
|
366
|
-
assertParamExists("
|
|
367
|
-
const localVarPath = `/
|
|
368
|
-
`{${"
|
|
369
|
-
encodeURIComponent(String(
|
|
369
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
370
|
+
assertParamExists("listGroupUsers", "groupId", groupId);
|
|
371
|
+
const localVarPath = `/groups/{group_id}/users`.replace(
|
|
372
|
+
`{${"group_id"}}`,
|
|
373
|
+
encodeURIComponent(String(groupId)),
|
|
370
374
|
);
|
|
371
375
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
372
376
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -383,9 +387,6 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
383
387
|
const localVarHeaderParameter = {} as any;
|
|
384
388
|
const localVarQueryParameter = {} as any;
|
|
385
389
|
|
|
386
|
-
// authentication Cookie required
|
|
387
|
-
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
388
|
-
|
|
389
390
|
// authentication Basic required
|
|
390
391
|
// http basic authentication required
|
|
391
392
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
@@ -437,24 +438,24 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
437
438
|
},
|
|
438
439
|
/**
|
|
439
440
|
*
|
|
440
|
-
* @summary Fetch all available
|
|
441
|
+
* @summary Fetch all available groups
|
|
441
442
|
* @param {string} [search] Search query
|
|
442
|
-
* @param {
|
|
443
|
-
* @param {
|
|
443
|
+
* @param {string} [sort] Sorting column
|
|
444
|
+
* @param {ListGroupsOrderEnum} [order] Sorting order
|
|
444
445
|
* @param {number} [limit] Paging limit
|
|
445
446
|
* @param {number} [offset] Paging offset
|
|
446
447
|
* @param {*} [options] Override http request option.
|
|
447
448
|
* @throws {RequiredError}
|
|
448
449
|
*/
|
|
449
|
-
|
|
450
|
+
listGroups: async (
|
|
450
451
|
search?: string,
|
|
451
|
-
sort?:
|
|
452
|
-
order?:
|
|
452
|
+
sort?: string,
|
|
453
|
+
order?: ListGroupsOrderEnum,
|
|
453
454
|
limit?: number,
|
|
454
455
|
offset?: number,
|
|
455
456
|
options: RawAxiosRequestConfig = {},
|
|
456
457
|
): Promise<RequestArgs> => {
|
|
457
|
-
const localVarPath = `/
|
|
458
|
+
const localVarPath = `/groups`;
|
|
458
459
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
459
460
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
460
461
|
let baseOptions;
|
|
@@ -470,9 +471,6 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
470
471
|
const localVarHeaderParameter = {} as any;
|
|
471
472
|
const localVarQueryParameter = {} as any;
|
|
472
473
|
|
|
473
|
-
// authentication Cookie required
|
|
474
|
-
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
475
|
-
|
|
476
474
|
// authentication Basic required
|
|
477
475
|
// http basic authentication required
|
|
478
476
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
@@ -524,24 +522,28 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
524
522
|
},
|
|
525
523
|
/**
|
|
526
524
|
*
|
|
527
|
-
* @summary Update user perms for
|
|
528
|
-
* @param {string}
|
|
529
|
-
* @param {
|
|
525
|
+
* @summary Update user perms for group
|
|
526
|
+
* @param {string} groupId A group identifier or slug
|
|
527
|
+
* @param {PermitGroupUserRequest} permitGroupUserRequest The group user data to permit
|
|
530
528
|
* @param {*} [options] Override http request option.
|
|
531
529
|
* @throws {RequiredError}
|
|
532
530
|
*/
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
531
|
+
permitGroupUser: async (
|
|
532
|
+
groupId: string,
|
|
533
|
+
permitGroupUserRequest: PermitGroupUserRequest,
|
|
536
534
|
options: RawAxiosRequestConfig = {},
|
|
537
535
|
): Promise<RequestArgs> => {
|
|
538
|
-
// verify required parameter '
|
|
539
|
-
assertParamExists("
|
|
540
|
-
// verify required parameter '
|
|
541
|
-
assertParamExists(
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
536
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
537
|
+
assertParamExists("permitGroupUser", "groupId", groupId);
|
|
538
|
+
// verify required parameter 'permitGroupUserRequest' is not null or undefined
|
|
539
|
+
assertParamExists(
|
|
540
|
+
"permitGroupUser",
|
|
541
|
+
"permitGroupUserRequest",
|
|
542
|
+
permitGroupUserRequest,
|
|
543
|
+
);
|
|
544
|
+
const localVarPath = `/groups/{group_id}/users`.replace(
|
|
545
|
+
`{${"group_id"}}`,
|
|
546
|
+
encodeURIComponent(String(groupId)),
|
|
545
547
|
);
|
|
546
548
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
547
549
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -558,9 +560,6 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
558
560
|
const localVarHeaderParameter = {} as any;
|
|
559
561
|
const localVarQueryParameter = {} as any;
|
|
560
562
|
|
|
561
|
-
// authentication Cookie required
|
|
562
|
-
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
563
|
-
|
|
564
563
|
// authentication Basic required
|
|
565
564
|
// http basic authentication required
|
|
566
565
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
@@ -587,7 +586,7 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
587
586
|
...options.headers,
|
|
588
587
|
};
|
|
589
588
|
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
590
|
-
|
|
589
|
+
permitGroupUserRequest,
|
|
591
590
|
localVarRequestOptions,
|
|
592
591
|
configuration,
|
|
593
592
|
);
|
|
@@ -599,20 +598,20 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
599
598
|
},
|
|
600
599
|
/**
|
|
601
600
|
*
|
|
602
|
-
* @summary Fetch a specific
|
|
603
|
-
* @param {string}
|
|
601
|
+
* @summary Fetch a specific group
|
|
602
|
+
* @param {string} groupId A group identifier or slug
|
|
604
603
|
* @param {*} [options] Override http request option.
|
|
605
604
|
* @throws {RequiredError}
|
|
606
605
|
*/
|
|
607
|
-
|
|
608
|
-
|
|
606
|
+
showGroup: async (
|
|
607
|
+
groupId: string,
|
|
609
608
|
options: RawAxiosRequestConfig = {},
|
|
610
609
|
): Promise<RequestArgs> => {
|
|
611
|
-
// verify required parameter '
|
|
612
|
-
assertParamExists("
|
|
613
|
-
const localVarPath = `/
|
|
614
|
-
`{${"
|
|
615
|
-
encodeURIComponent(String(
|
|
610
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
611
|
+
assertParamExists("showGroup", "groupId", groupId);
|
|
612
|
+
const localVarPath = `/groups/{group_id}`.replace(
|
|
613
|
+
`{${"group_id"}}`,
|
|
614
|
+
encodeURIComponent(String(groupId)),
|
|
616
615
|
);
|
|
617
616
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
618
617
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -629,9 +628,6 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
629
628
|
const localVarHeaderParameter = {} as any;
|
|
630
629
|
const localVarQueryParameter = {} as any;
|
|
631
630
|
|
|
632
|
-
// authentication Cookie required
|
|
633
|
-
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
634
|
-
|
|
635
631
|
// authentication Basic required
|
|
636
632
|
// http basic authentication required
|
|
637
633
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
@@ -663,24 +659,28 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
663
659
|
},
|
|
664
660
|
/**
|
|
665
661
|
*
|
|
666
|
-
* @summary Update a specific
|
|
667
|
-
* @param {string}
|
|
668
|
-
* @param {
|
|
662
|
+
* @summary Update a specific group
|
|
663
|
+
* @param {string} groupId A group identifier or slug
|
|
664
|
+
* @param {CreateGroupRequest} createGroupRequest The group data to update
|
|
669
665
|
* @param {*} [options] Override http request option.
|
|
670
666
|
* @throws {RequiredError}
|
|
671
667
|
*/
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
668
|
+
updateGroup: async (
|
|
669
|
+
groupId: string,
|
|
670
|
+
createGroupRequest: CreateGroupRequest,
|
|
675
671
|
options: RawAxiosRequestConfig = {},
|
|
676
672
|
): Promise<RequestArgs> => {
|
|
677
|
-
// verify required parameter '
|
|
678
|
-
assertParamExists("
|
|
679
|
-
// verify required parameter '
|
|
680
|
-
assertParamExists(
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
673
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
674
|
+
assertParamExists("updateGroup", "groupId", groupId);
|
|
675
|
+
// verify required parameter 'createGroupRequest' is not null or undefined
|
|
676
|
+
assertParamExists(
|
|
677
|
+
"updateGroup",
|
|
678
|
+
"createGroupRequest",
|
|
679
|
+
createGroupRequest,
|
|
680
|
+
);
|
|
681
|
+
const localVarPath = `/groups/{group_id}`.replace(
|
|
682
|
+
`{${"group_id"}}`,
|
|
683
|
+
encodeURIComponent(String(groupId)),
|
|
684
684
|
);
|
|
685
685
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
686
686
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -697,9 +697,6 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
697
697
|
const localVarHeaderParameter = {} as any;
|
|
698
698
|
const localVarQueryParameter = {} as any;
|
|
699
699
|
|
|
700
|
-
// authentication Cookie required
|
|
701
|
-
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
702
|
-
|
|
703
700
|
// authentication Basic required
|
|
704
701
|
// http basic authentication required
|
|
705
702
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
@@ -726,7 +723,7 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
726
723
|
...options.headers,
|
|
727
724
|
};
|
|
728
725
|
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
729
|
-
|
|
726
|
+
createGroupRequest,
|
|
730
727
|
localVarRequestOptions,
|
|
731
728
|
configuration,
|
|
732
729
|
);
|
|
@@ -740,36 +737,36 @@ export const TeamApiAxiosParamCreator = function (
|
|
|
740
737
|
};
|
|
741
738
|
|
|
742
739
|
/**
|
|
743
|
-
*
|
|
740
|
+
* GroupApi - functional programming interface
|
|
744
741
|
* @export
|
|
745
742
|
*/
|
|
746
|
-
export const
|
|
747
|
-
const localVarAxiosParamCreator =
|
|
743
|
+
export const GroupApiFp = function (configuration?: Configuration) {
|
|
744
|
+
const localVarAxiosParamCreator = GroupApiAxiosParamCreator(configuration);
|
|
748
745
|
return {
|
|
749
746
|
/**
|
|
750
747
|
*
|
|
751
|
-
* @summary Attach a user to
|
|
752
|
-
* @param {string}
|
|
753
|
-
* @param {
|
|
748
|
+
* @summary Attach a user to group
|
|
749
|
+
* @param {string} groupId A group identifier or slug
|
|
750
|
+
* @param {PermitGroupUserRequest} permitGroupUserRequest The group user data to permit
|
|
754
751
|
* @param {*} [options] Override http request option.
|
|
755
752
|
* @throws {RequiredError}
|
|
756
753
|
*/
|
|
757
|
-
async
|
|
758
|
-
|
|
759
|
-
|
|
754
|
+
async attachGroupToUser(
|
|
755
|
+
groupId: string,
|
|
756
|
+
permitGroupUserRequest: PermitGroupUserRequest,
|
|
760
757
|
options?: RawAxiosRequestConfig,
|
|
761
758
|
): Promise<
|
|
762
759
|
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
|
|
763
760
|
> {
|
|
764
761
|
const localVarAxiosArgs =
|
|
765
|
-
await localVarAxiosParamCreator.
|
|
766
|
-
|
|
767
|
-
|
|
762
|
+
await localVarAxiosParamCreator.attachGroupToUser(
|
|
763
|
+
groupId,
|
|
764
|
+
permitGroupUserRequest,
|
|
768
765
|
options,
|
|
769
766
|
);
|
|
770
767
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
771
768
|
const localVarOperationServerBasePath =
|
|
772
|
-
operationServerMap["
|
|
769
|
+
operationServerMap["GroupApi.attachGroupToUser"]?.[
|
|
773
770
|
localVarOperationServerIndex
|
|
774
771
|
]?.url;
|
|
775
772
|
return (axios, basePath) =>
|
|
@@ -782,25 +779,26 @@ export const TeamApiFp = function (configuration?: Configuration) {
|
|
|
782
779
|
},
|
|
783
780
|
/**
|
|
784
781
|
*
|
|
785
|
-
* @summary Create a new
|
|
786
|
-
* @param {
|
|
782
|
+
* @summary Create a new group
|
|
783
|
+
* @param {CreateGroupRequest} createGroupRequest The group data to create
|
|
787
784
|
* @param {*} [options] Override http request option.
|
|
788
785
|
* @throws {RequiredError}
|
|
789
786
|
*/
|
|
790
|
-
async
|
|
791
|
-
|
|
787
|
+
async createGroup(
|
|
788
|
+
createGroupRequest: CreateGroupRequest,
|
|
792
789
|
options?: RawAxiosRequestConfig,
|
|
793
790
|
): Promise<
|
|
794
|
-
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
791
|
+
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Group>
|
|
795
792
|
> {
|
|
796
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
797
|
-
|
|
793
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createGroup(
|
|
794
|
+
createGroupRequest,
|
|
798
795
|
options,
|
|
799
796
|
);
|
|
800
797
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
801
798
|
const localVarOperationServerBasePath =
|
|
802
|
-
operationServerMap["
|
|
803
|
-
|
|
799
|
+
operationServerMap["GroupApi.createGroup"]?.[
|
|
800
|
+
localVarOperationServerIndex
|
|
801
|
+
]?.url;
|
|
804
802
|
return (axios, basePath) =>
|
|
805
803
|
createRequestFunction(
|
|
806
804
|
localVarAxiosArgs,
|
|
@@ -811,25 +809,26 @@ export const TeamApiFp = function (configuration?: Configuration) {
|
|
|
811
809
|
},
|
|
812
810
|
/**
|
|
813
811
|
*
|
|
814
|
-
* @summary Delete a specific
|
|
815
|
-
* @param {string}
|
|
812
|
+
* @summary Delete a specific group
|
|
813
|
+
* @param {string} groupId A group identifier or slug
|
|
816
814
|
* @param {*} [options] Override http request option.
|
|
817
815
|
* @throws {RequiredError}
|
|
818
816
|
*/
|
|
819
|
-
async
|
|
820
|
-
|
|
817
|
+
async deleteGroup(
|
|
818
|
+
groupId: string,
|
|
821
819
|
options?: RawAxiosRequestConfig,
|
|
822
820
|
): Promise<
|
|
823
821
|
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
|
|
824
822
|
> {
|
|
825
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
826
|
-
|
|
823
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteGroup(
|
|
824
|
+
groupId,
|
|
827
825
|
options,
|
|
828
826
|
);
|
|
829
827
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
830
828
|
const localVarOperationServerBasePath =
|
|
831
|
-
operationServerMap["
|
|
832
|
-
|
|
829
|
+
operationServerMap["GroupApi.deleteGroup"]?.[
|
|
830
|
+
localVarOperationServerIndex
|
|
831
|
+
]?.url;
|
|
833
832
|
return (axios, basePath) =>
|
|
834
833
|
createRequestFunction(
|
|
835
834
|
localVarAxiosArgs,
|
|
@@ -840,28 +839,28 @@ export const TeamApiFp = function (configuration?: Configuration) {
|
|
|
840
839
|
},
|
|
841
840
|
/**
|
|
842
841
|
*
|
|
843
|
-
* @summary Unlink a user from
|
|
844
|
-
* @param {string}
|
|
845
|
-
* @param {
|
|
842
|
+
* @summary Unlink a user from group
|
|
843
|
+
* @param {string} groupId A group identifier or slug
|
|
844
|
+
* @param {DeleteGroupFromUserRequest} deleteGroupFromUserRequest The group user data to unlink
|
|
846
845
|
* @param {*} [options] Override http request option.
|
|
847
846
|
* @throws {RequiredError}
|
|
848
847
|
*/
|
|
849
|
-
async
|
|
850
|
-
|
|
851
|
-
|
|
848
|
+
async deleteGroupFromUser(
|
|
849
|
+
groupId: string,
|
|
850
|
+
deleteGroupFromUserRequest: DeleteGroupFromUserRequest,
|
|
852
851
|
options?: RawAxiosRequestConfig,
|
|
853
852
|
): Promise<
|
|
854
853
|
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
|
|
855
854
|
> {
|
|
856
855
|
const localVarAxiosArgs =
|
|
857
|
-
await localVarAxiosParamCreator.
|
|
858
|
-
|
|
859
|
-
|
|
856
|
+
await localVarAxiosParamCreator.deleteGroupFromUser(
|
|
857
|
+
groupId,
|
|
858
|
+
deleteGroupFromUserRequest,
|
|
860
859
|
options,
|
|
861
860
|
);
|
|
862
861
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
863
862
|
const localVarOperationServerBasePath =
|
|
864
|
-
operationServerMap["
|
|
863
|
+
operationServerMap["GroupApi.deleteGroupFromUser"]?.[
|
|
865
864
|
localVarOperationServerIndex
|
|
866
865
|
]?.url;
|
|
867
866
|
return (axios, basePath) =>
|
|
@@ -874,29 +873,32 @@ export const TeamApiFp = function (configuration?: Configuration) {
|
|
|
874
873
|
},
|
|
875
874
|
/**
|
|
876
875
|
*
|
|
877
|
-
* @summary Fetch all users attached to
|
|
878
|
-
* @param {string}
|
|
876
|
+
* @summary Fetch all users attached to group
|
|
877
|
+
* @param {string} groupId A group identifier or slug
|
|
879
878
|
* @param {string} [search] Search query
|
|
880
|
-
* @param {
|
|
881
|
-
* @param {
|
|
879
|
+
* @param {string} [sort] Sorting column
|
|
880
|
+
* @param {ListGroupUsersOrderEnum} [order] Sorting order
|
|
882
881
|
* @param {number} [limit] Paging limit
|
|
883
882
|
* @param {number} [offset] Paging offset
|
|
884
883
|
* @param {*} [options] Override http request option.
|
|
885
884
|
* @throws {RequiredError}
|
|
886
885
|
*/
|
|
887
|
-
async
|
|
888
|
-
|
|
886
|
+
async listGroupUsers(
|
|
887
|
+
groupId: string,
|
|
889
888
|
search?: string,
|
|
890
|
-
sort?:
|
|
891
|
-
order?:
|
|
889
|
+
sort?: string,
|
|
890
|
+
order?: ListGroupUsersOrderEnum,
|
|
892
891
|
limit?: number,
|
|
893
892
|
offset?: number,
|
|
894
893
|
options?: RawAxiosRequestConfig,
|
|
895
894
|
): Promise<
|
|
896
|
-
(
|
|
895
|
+
(
|
|
896
|
+
axios?: AxiosInstance,
|
|
897
|
+
basePath?: string,
|
|
898
|
+
) => AxiosPromise<ListGroupUsers200Response>
|
|
897
899
|
> {
|
|
898
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
899
|
-
|
|
900
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listGroupUsers(
|
|
901
|
+
groupId,
|
|
900
902
|
search,
|
|
901
903
|
sort,
|
|
902
904
|
order,
|
|
@@ -906,7 +908,7 @@ export const TeamApiFp = function (configuration?: Configuration) {
|
|
|
906
908
|
);
|
|
907
909
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
908
910
|
const localVarOperationServerBasePath =
|
|
909
|
-
operationServerMap["
|
|
911
|
+
operationServerMap["GroupApi.listGroupUsers"]?.[
|
|
910
912
|
localVarOperationServerIndex
|
|
911
913
|
]?.url;
|
|
912
914
|
return (axios, basePath) =>
|
|
@@ -919,26 +921,29 @@ export const TeamApiFp = function (configuration?: Configuration) {
|
|
|
919
921
|
},
|
|
920
922
|
/**
|
|
921
923
|
*
|
|
922
|
-
* @summary Fetch all available
|
|
924
|
+
* @summary Fetch all available groups
|
|
923
925
|
* @param {string} [search] Search query
|
|
924
|
-
* @param {
|
|
925
|
-
* @param {
|
|
926
|
+
* @param {string} [sort] Sorting column
|
|
927
|
+
* @param {ListGroupsOrderEnum} [order] Sorting order
|
|
926
928
|
* @param {number} [limit] Paging limit
|
|
927
929
|
* @param {number} [offset] Paging offset
|
|
928
930
|
* @param {*} [options] Override http request option.
|
|
929
931
|
* @throws {RequiredError}
|
|
930
932
|
*/
|
|
931
|
-
async
|
|
933
|
+
async listGroups(
|
|
932
934
|
search?: string,
|
|
933
|
-
sort?:
|
|
934
|
-
order?:
|
|
935
|
+
sort?: string,
|
|
936
|
+
order?: ListGroupsOrderEnum,
|
|
935
937
|
limit?: number,
|
|
936
938
|
offset?: number,
|
|
937
939
|
options?: RawAxiosRequestConfig,
|
|
938
940
|
): Promise<
|
|
939
|
-
(
|
|
941
|
+
(
|
|
942
|
+
axios?: AxiosInstance,
|
|
943
|
+
basePath?: string,
|
|
944
|
+
) => AxiosPromise<ListGroups200Response>
|
|
940
945
|
> {
|
|
941
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
946
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listGroups(
|
|
942
947
|
search,
|
|
943
948
|
sort,
|
|
944
949
|
order,
|
|
@@ -948,8 +953,9 @@ export const TeamApiFp = function (configuration?: Configuration) {
|
|
|
948
953
|
);
|
|
949
954
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
950
955
|
const localVarOperationServerBasePath =
|
|
951
|
-
operationServerMap["
|
|
952
|
-
|
|
956
|
+
operationServerMap["GroupApi.listGroups"]?.[
|
|
957
|
+
localVarOperationServerIndex
|
|
958
|
+
]?.url;
|
|
953
959
|
return (axios, basePath) =>
|
|
954
960
|
createRequestFunction(
|
|
955
961
|
localVarAxiosArgs,
|
|
@@ -960,27 +966,27 @@ export const TeamApiFp = function (configuration?: Configuration) {
|
|
|
960
966
|
},
|
|
961
967
|
/**
|
|
962
968
|
*
|
|
963
|
-
* @summary Update user perms for
|
|
964
|
-
* @param {string}
|
|
965
|
-
* @param {
|
|
969
|
+
* @summary Update user perms for group
|
|
970
|
+
* @param {string} groupId A group identifier or slug
|
|
971
|
+
* @param {PermitGroupUserRequest} permitGroupUserRequest The group user data to permit
|
|
966
972
|
* @param {*} [options] Override http request option.
|
|
967
973
|
* @throws {RequiredError}
|
|
968
974
|
*/
|
|
969
|
-
async
|
|
970
|
-
|
|
971
|
-
|
|
975
|
+
async permitGroupUser(
|
|
976
|
+
groupId: string,
|
|
977
|
+
permitGroupUserRequest: PermitGroupUserRequest,
|
|
972
978
|
options?: RawAxiosRequestConfig,
|
|
973
979
|
): Promise<
|
|
974
980
|
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>
|
|
975
981
|
> {
|
|
976
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
977
|
-
|
|
978
|
-
|
|
982
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.permitGroupUser(
|
|
983
|
+
groupId,
|
|
984
|
+
permitGroupUserRequest,
|
|
979
985
|
options,
|
|
980
986
|
);
|
|
981
987
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
982
988
|
const localVarOperationServerBasePath =
|
|
983
|
-
operationServerMap["
|
|
989
|
+
operationServerMap["GroupApi.permitGroupUser"]?.[
|
|
984
990
|
localVarOperationServerIndex
|
|
985
991
|
]?.url;
|
|
986
992
|
return (axios, basePath) =>
|
|
@@ -993,24 +999,24 @@ export const TeamApiFp = function (configuration?: Configuration) {
|
|
|
993
999
|
},
|
|
994
1000
|
/**
|
|
995
1001
|
*
|
|
996
|
-
* @summary Fetch a specific
|
|
997
|
-
* @param {string}
|
|
1002
|
+
* @summary Fetch a specific group
|
|
1003
|
+
* @param {string} groupId A group identifier or slug
|
|
998
1004
|
* @param {*} [options] Override http request option.
|
|
999
1005
|
* @throws {RequiredError}
|
|
1000
1006
|
*/
|
|
1001
|
-
async
|
|
1002
|
-
|
|
1007
|
+
async showGroup(
|
|
1008
|
+
groupId: string,
|
|
1003
1009
|
options?: RawAxiosRequestConfig,
|
|
1004
1010
|
): Promise<
|
|
1005
|
-
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1011
|
+
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Group>
|
|
1006
1012
|
> {
|
|
1007
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1008
|
-
|
|
1013
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.showGroup(
|
|
1014
|
+
groupId,
|
|
1009
1015
|
options,
|
|
1010
1016
|
);
|
|
1011
1017
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1012
1018
|
const localVarOperationServerBasePath =
|
|
1013
|
-
operationServerMap["
|
|
1019
|
+
operationServerMap["GroupApi.showGroup"]?.[localVarOperationServerIndex]
|
|
1014
1020
|
?.url;
|
|
1015
1021
|
return (axios, basePath) =>
|
|
1016
1022
|
createRequestFunction(
|
|
@@ -1022,28 +1028,29 @@ export const TeamApiFp = function (configuration?: Configuration) {
|
|
|
1022
1028
|
},
|
|
1023
1029
|
/**
|
|
1024
1030
|
*
|
|
1025
|
-
* @summary Update a specific
|
|
1026
|
-
* @param {string}
|
|
1027
|
-
* @param {
|
|
1031
|
+
* @summary Update a specific group
|
|
1032
|
+
* @param {string} groupId A group identifier or slug
|
|
1033
|
+
* @param {CreateGroupRequest} createGroupRequest The group data to update
|
|
1028
1034
|
* @param {*} [options] Override http request option.
|
|
1029
1035
|
* @throws {RequiredError}
|
|
1030
1036
|
*/
|
|
1031
|
-
async
|
|
1032
|
-
|
|
1033
|
-
|
|
1037
|
+
async updateGroup(
|
|
1038
|
+
groupId: string,
|
|
1039
|
+
createGroupRequest: CreateGroupRequest,
|
|
1034
1040
|
options?: RawAxiosRequestConfig,
|
|
1035
1041
|
): Promise<
|
|
1036
|
-
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1042
|
+
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Group>
|
|
1037
1043
|
> {
|
|
1038
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1039
|
-
|
|
1040
|
-
|
|
1044
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateGroup(
|
|
1045
|
+
groupId,
|
|
1046
|
+
createGroupRequest,
|
|
1041
1047
|
options,
|
|
1042
1048
|
);
|
|
1043
1049
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1044
1050
|
const localVarOperationServerBasePath =
|
|
1045
|
-
operationServerMap["
|
|
1046
|
-
|
|
1051
|
+
operationServerMap["GroupApi.updateGroup"]?.[
|
|
1052
|
+
localVarOperationServerIndex
|
|
1053
|
+
]?.url;
|
|
1047
1054
|
return (axios, basePath) =>
|
|
1048
1055
|
createRequestFunction(
|
|
1049
1056
|
localVarAxiosArgs,
|
|
@@ -1056,98 +1063,98 @@ export const TeamApiFp = function (configuration?: Configuration) {
|
|
|
1056
1063
|
};
|
|
1057
1064
|
|
|
1058
1065
|
/**
|
|
1059
|
-
*
|
|
1066
|
+
* GroupApi - factory interface
|
|
1060
1067
|
* @export
|
|
1061
1068
|
*/
|
|
1062
|
-
export const
|
|
1069
|
+
export const GroupApiFactory = function (
|
|
1063
1070
|
configuration?: Configuration,
|
|
1064
1071
|
basePath?: string,
|
|
1065
1072
|
axios?: AxiosInstance,
|
|
1066
1073
|
) {
|
|
1067
|
-
const localVarFp =
|
|
1074
|
+
const localVarFp = GroupApiFp(configuration);
|
|
1068
1075
|
return {
|
|
1069
1076
|
/**
|
|
1070
1077
|
*
|
|
1071
|
-
* @summary Attach a user to
|
|
1072
|
-
* @param {
|
|
1078
|
+
* @summary Attach a user to group
|
|
1079
|
+
* @param {GroupApiAttachGroupToUserRequest} requestParameters Request parameters.
|
|
1073
1080
|
* @param {*} [options] Override http request option.
|
|
1074
1081
|
* @throws {RequiredError}
|
|
1075
1082
|
*/
|
|
1076
|
-
|
|
1077
|
-
requestParameters:
|
|
1083
|
+
attachGroupToUser(
|
|
1084
|
+
requestParameters: GroupApiAttachGroupToUserRequest,
|
|
1078
1085
|
options?: RawAxiosRequestConfig,
|
|
1079
1086
|
): AxiosPromise<Notification> {
|
|
1080
1087
|
return localVarFp
|
|
1081
|
-
.
|
|
1082
|
-
requestParameters.
|
|
1083
|
-
requestParameters.
|
|
1088
|
+
.attachGroupToUser(
|
|
1089
|
+
requestParameters.groupId,
|
|
1090
|
+
requestParameters.permitGroupUserRequest,
|
|
1084
1091
|
options,
|
|
1085
1092
|
)
|
|
1086
1093
|
.then((request) => request(axios, basePath));
|
|
1087
1094
|
},
|
|
1088
1095
|
/**
|
|
1089
1096
|
*
|
|
1090
|
-
* @summary Create a new
|
|
1091
|
-
* @param {
|
|
1097
|
+
* @summary Create a new group
|
|
1098
|
+
* @param {GroupApiCreateGroupRequest} requestParameters Request parameters.
|
|
1092
1099
|
* @param {*} [options] Override http request option.
|
|
1093
1100
|
* @throws {RequiredError}
|
|
1094
1101
|
*/
|
|
1095
|
-
|
|
1096
|
-
requestParameters:
|
|
1102
|
+
createGroup(
|
|
1103
|
+
requestParameters: GroupApiCreateGroupRequest,
|
|
1097
1104
|
options?: RawAxiosRequestConfig,
|
|
1098
|
-
): AxiosPromise<
|
|
1105
|
+
): AxiosPromise<Group> {
|
|
1099
1106
|
return localVarFp
|
|
1100
|
-
.
|
|
1107
|
+
.createGroup(requestParameters.createGroupRequest, options)
|
|
1101
1108
|
.then((request) => request(axios, basePath));
|
|
1102
1109
|
},
|
|
1103
1110
|
/**
|
|
1104
1111
|
*
|
|
1105
|
-
* @summary Delete a specific
|
|
1106
|
-
* @param {
|
|
1112
|
+
* @summary Delete a specific group
|
|
1113
|
+
* @param {GroupApiDeleteGroupRequest} requestParameters Request parameters.
|
|
1107
1114
|
* @param {*} [options] Override http request option.
|
|
1108
1115
|
* @throws {RequiredError}
|
|
1109
1116
|
*/
|
|
1110
|
-
|
|
1111
|
-
requestParameters:
|
|
1117
|
+
deleteGroup(
|
|
1118
|
+
requestParameters: GroupApiDeleteGroupRequest,
|
|
1112
1119
|
options?: RawAxiosRequestConfig,
|
|
1113
1120
|
): AxiosPromise<Notification> {
|
|
1114
1121
|
return localVarFp
|
|
1115
|
-
.
|
|
1122
|
+
.deleteGroup(requestParameters.groupId, options)
|
|
1116
1123
|
.then((request) => request(axios, basePath));
|
|
1117
1124
|
},
|
|
1118
1125
|
/**
|
|
1119
1126
|
*
|
|
1120
|
-
* @summary Unlink a user from
|
|
1121
|
-
* @param {
|
|
1127
|
+
* @summary Unlink a user from group
|
|
1128
|
+
* @param {GroupApiDeleteGroupFromUserRequest} requestParameters Request parameters.
|
|
1122
1129
|
* @param {*} [options] Override http request option.
|
|
1123
1130
|
* @throws {RequiredError}
|
|
1124
1131
|
*/
|
|
1125
|
-
|
|
1126
|
-
requestParameters:
|
|
1132
|
+
deleteGroupFromUser(
|
|
1133
|
+
requestParameters: GroupApiDeleteGroupFromUserRequest,
|
|
1127
1134
|
options?: RawAxiosRequestConfig,
|
|
1128
1135
|
): AxiosPromise<Notification> {
|
|
1129
1136
|
return localVarFp
|
|
1130
|
-
.
|
|
1131
|
-
requestParameters.
|
|
1132
|
-
requestParameters.
|
|
1137
|
+
.deleteGroupFromUser(
|
|
1138
|
+
requestParameters.groupId,
|
|
1139
|
+
requestParameters.deleteGroupFromUserRequest,
|
|
1133
1140
|
options,
|
|
1134
1141
|
)
|
|
1135
1142
|
.then((request) => request(axios, basePath));
|
|
1136
1143
|
},
|
|
1137
1144
|
/**
|
|
1138
1145
|
*
|
|
1139
|
-
* @summary Fetch all users attached to
|
|
1140
|
-
* @param {
|
|
1146
|
+
* @summary Fetch all users attached to group
|
|
1147
|
+
* @param {GroupApiListGroupUsersRequest} requestParameters Request parameters.
|
|
1141
1148
|
* @param {*} [options] Override http request option.
|
|
1142
1149
|
* @throws {RequiredError}
|
|
1143
1150
|
*/
|
|
1144
|
-
|
|
1145
|
-
requestParameters:
|
|
1151
|
+
listGroupUsers(
|
|
1152
|
+
requestParameters: GroupApiListGroupUsersRequest,
|
|
1146
1153
|
options?: RawAxiosRequestConfig,
|
|
1147
|
-
): AxiosPromise<
|
|
1154
|
+
): AxiosPromise<ListGroupUsers200Response> {
|
|
1148
1155
|
return localVarFp
|
|
1149
|
-
.
|
|
1150
|
-
requestParameters.
|
|
1156
|
+
.listGroupUsers(
|
|
1157
|
+
requestParameters.groupId,
|
|
1151
1158
|
requestParameters.search,
|
|
1152
1159
|
requestParameters.sort,
|
|
1153
1160
|
requestParameters.order,
|
|
@@ -1159,17 +1166,17 @@ export const TeamApiFactory = function (
|
|
|
1159
1166
|
},
|
|
1160
1167
|
/**
|
|
1161
1168
|
*
|
|
1162
|
-
* @summary Fetch all available
|
|
1163
|
-
* @param {
|
|
1169
|
+
* @summary Fetch all available groups
|
|
1170
|
+
* @param {GroupApiListGroupsRequest} requestParameters Request parameters.
|
|
1164
1171
|
* @param {*} [options] Override http request option.
|
|
1165
1172
|
* @throws {RequiredError}
|
|
1166
1173
|
*/
|
|
1167
|
-
|
|
1168
|
-
requestParameters:
|
|
1174
|
+
listGroups(
|
|
1175
|
+
requestParameters: GroupApiListGroupsRequest = {},
|
|
1169
1176
|
options?: RawAxiosRequestConfig,
|
|
1170
|
-
): AxiosPromise<
|
|
1177
|
+
): AxiosPromise<ListGroups200Response> {
|
|
1171
1178
|
return localVarFp
|
|
1172
|
-
.
|
|
1179
|
+
.listGroups(
|
|
1173
1180
|
requestParameters.search,
|
|
1174
1181
|
requestParameters.sort,
|
|
1175
1182
|
requestParameters.order,
|
|
@@ -1181,296 +1188,300 @@ export const TeamApiFactory = function (
|
|
|
1181
1188
|
},
|
|
1182
1189
|
/**
|
|
1183
1190
|
*
|
|
1184
|
-
* @summary Update user perms for
|
|
1185
|
-
* @param {
|
|
1191
|
+
* @summary Update user perms for group
|
|
1192
|
+
* @param {GroupApiPermitGroupUserRequest} requestParameters Request parameters.
|
|
1186
1193
|
* @param {*} [options] Override http request option.
|
|
1187
1194
|
* @throws {RequiredError}
|
|
1188
1195
|
*/
|
|
1189
|
-
|
|
1190
|
-
requestParameters:
|
|
1196
|
+
permitGroupUser(
|
|
1197
|
+
requestParameters: GroupApiPermitGroupUserRequest,
|
|
1191
1198
|
options?: RawAxiosRequestConfig,
|
|
1192
1199
|
): AxiosPromise<Notification> {
|
|
1193
1200
|
return localVarFp
|
|
1194
|
-
.
|
|
1195
|
-
requestParameters.
|
|
1196
|
-
requestParameters.
|
|
1201
|
+
.permitGroupUser(
|
|
1202
|
+
requestParameters.groupId,
|
|
1203
|
+
requestParameters.permitGroupUserRequest,
|
|
1197
1204
|
options,
|
|
1198
1205
|
)
|
|
1199
1206
|
.then((request) => request(axios, basePath));
|
|
1200
1207
|
},
|
|
1201
1208
|
/**
|
|
1202
1209
|
*
|
|
1203
|
-
* @summary Fetch a specific
|
|
1204
|
-
* @param {
|
|
1210
|
+
* @summary Fetch a specific group
|
|
1211
|
+
* @param {GroupApiShowGroupRequest} requestParameters Request parameters.
|
|
1205
1212
|
* @param {*} [options] Override http request option.
|
|
1206
1213
|
* @throws {RequiredError}
|
|
1207
1214
|
*/
|
|
1208
|
-
|
|
1209
|
-
requestParameters:
|
|
1215
|
+
showGroup(
|
|
1216
|
+
requestParameters: GroupApiShowGroupRequest,
|
|
1210
1217
|
options?: RawAxiosRequestConfig,
|
|
1211
|
-
): AxiosPromise<
|
|
1218
|
+
): AxiosPromise<Group> {
|
|
1212
1219
|
return localVarFp
|
|
1213
|
-
.
|
|
1220
|
+
.showGroup(requestParameters.groupId, options)
|
|
1214
1221
|
.then((request) => request(axios, basePath));
|
|
1215
1222
|
},
|
|
1216
1223
|
/**
|
|
1217
1224
|
*
|
|
1218
|
-
* @summary Update a specific
|
|
1219
|
-
* @param {
|
|
1225
|
+
* @summary Update a specific group
|
|
1226
|
+
* @param {GroupApiUpdateGroupRequest} requestParameters Request parameters.
|
|
1220
1227
|
* @param {*} [options] Override http request option.
|
|
1221
1228
|
* @throws {RequiredError}
|
|
1222
1229
|
*/
|
|
1223
|
-
|
|
1224
|
-
requestParameters:
|
|
1230
|
+
updateGroup(
|
|
1231
|
+
requestParameters: GroupApiUpdateGroupRequest,
|
|
1225
1232
|
options?: RawAxiosRequestConfig,
|
|
1226
|
-
): AxiosPromise<
|
|
1233
|
+
): AxiosPromise<Group> {
|
|
1227
1234
|
return localVarFp
|
|
1228
|
-
.
|
|
1235
|
+
.updateGroup(
|
|
1236
|
+
requestParameters.groupId,
|
|
1237
|
+
requestParameters.createGroupRequest,
|
|
1238
|
+
options,
|
|
1239
|
+
)
|
|
1229
1240
|
.then((request) => request(axios, basePath));
|
|
1230
1241
|
},
|
|
1231
1242
|
};
|
|
1232
1243
|
};
|
|
1233
1244
|
|
|
1234
1245
|
/**
|
|
1235
|
-
* Request parameters for
|
|
1246
|
+
* Request parameters for attachGroupToUser operation in GroupApi.
|
|
1236
1247
|
* @export
|
|
1237
|
-
* @interface
|
|
1248
|
+
* @interface GroupApiAttachGroupToUserRequest
|
|
1238
1249
|
*/
|
|
1239
|
-
export interface
|
|
1250
|
+
export interface GroupApiAttachGroupToUserRequest {
|
|
1240
1251
|
/**
|
|
1241
|
-
* A
|
|
1252
|
+
* A group identifier or slug
|
|
1242
1253
|
* @type {string}
|
|
1243
|
-
* @memberof
|
|
1254
|
+
* @memberof GroupApiAttachGroupToUser
|
|
1244
1255
|
*/
|
|
1245
|
-
readonly
|
|
1256
|
+
readonly groupId: string;
|
|
1246
1257
|
|
|
1247
1258
|
/**
|
|
1248
|
-
* The
|
|
1249
|
-
* @type {
|
|
1250
|
-
* @memberof
|
|
1259
|
+
* The group user data to permit
|
|
1260
|
+
* @type {PermitGroupUserRequest}
|
|
1261
|
+
* @memberof GroupApiAttachGroupToUser
|
|
1251
1262
|
*/
|
|
1252
|
-
readonly
|
|
1263
|
+
readonly permitGroupUserRequest: PermitGroupUserRequest;
|
|
1253
1264
|
}
|
|
1254
1265
|
|
|
1255
1266
|
/**
|
|
1256
|
-
* Request parameters for
|
|
1267
|
+
* Request parameters for createGroup operation in GroupApi.
|
|
1257
1268
|
* @export
|
|
1258
|
-
* @interface
|
|
1269
|
+
* @interface GroupApiCreateGroupRequest
|
|
1259
1270
|
*/
|
|
1260
|
-
export interface
|
|
1271
|
+
export interface GroupApiCreateGroupRequest {
|
|
1261
1272
|
/**
|
|
1262
|
-
* The
|
|
1263
|
-
* @type {
|
|
1264
|
-
* @memberof
|
|
1273
|
+
* The group data to create
|
|
1274
|
+
* @type {CreateGroupRequest}
|
|
1275
|
+
* @memberof GroupApiCreateGroup
|
|
1265
1276
|
*/
|
|
1266
|
-
readonly
|
|
1277
|
+
readonly createGroupRequest: CreateGroupRequest;
|
|
1267
1278
|
}
|
|
1268
1279
|
|
|
1269
1280
|
/**
|
|
1270
|
-
* Request parameters for
|
|
1281
|
+
* Request parameters for deleteGroup operation in GroupApi.
|
|
1271
1282
|
* @export
|
|
1272
|
-
* @interface
|
|
1283
|
+
* @interface GroupApiDeleteGroupRequest
|
|
1273
1284
|
*/
|
|
1274
|
-
export interface
|
|
1285
|
+
export interface GroupApiDeleteGroupRequest {
|
|
1275
1286
|
/**
|
|
1276
|
-
* A
|
|
1287
|
+
* A group identifier or slug
|
|
1277
1288
|
* @type {string}
|
|
1278
|
-
* @memberof
|
|
1289
|
+
* @memberof GroupApiDeleteGroup
|
|
1279
1290
|
*/
|
|
1280
|
-
readonly
|
|
1291
|
+
readonly groupId: string;
|
|
1281
1292
|
}
|
|
1282
1293
|
|
|
1283
1294
|
/**
|
|
1284
|
-
* Request parameters for
|
|
1295
|
+
* Request parameters for deleteGroupFromUser operation in GroupApi.
|
|
1285
1296
|
* @export
|
|
1286
|
-
* @interface
|
|
1297
|
+
* @interface GroupApiDeleteGroupFromUserRequest
|
|
1287
1298
|
*/
|
|
1288
|
-
export interface
|
|
1299
|
+
export interface GroupApiDeleteGroupFromUserRequest {
|
|
1289
1300
|
/**
|
|
1290
|
-
* A
|
|
1301
|
+
* A group identifier or slug
|
|
1291
1302
|
* @type {string}
|
|
1292
|
-
* @memberof
|
|
1303
|
+
* @memberof GroupApiDeleteGroupFromUser
|
|
1293
1304
|
*/
|
|
1294
|
-
readonly
|
|
1305
|
+
readonly groupId: string;
|
|
1295
1306
|
|
|
1296
1307
|
/**
|
|
1297
|
-
* The
|
|
1298
|
-
* @type {
|
|
1299
|
-
* @memberof
|
|
1308
|
+
* The group user data to unlink
|
|
1309
|
+
* @type {DeleteGroupFromUserRequest}
|
|
1310
|
+
* @memberof GroupApiDeleteGroupFromUser
|
|
1300
1311
|
*/
|
|
1301
|
-
readonly
|
|
1312
|
+
readonly deleteGroupFromUserRequest: DeleteGroupFromUserRequest;
|
|
1302
1313
|
}
|
|
1303
1314
|
|
|
1304
1315
|
/**
|
|
1305
|
-
* Request parameters for
|
|
1316
|
+
* Request parameters for listGroupUsers operation in GroupApi.
|
|
1306
1317
|
* @export
|
|
1307
|
-
* @interface
|
|
1318
|
+
* @interface GroupApiListGroupUsersRequest
|
|
1308
1319
|
*/
|
|
1309
|
-
export interface
|
|
1320
|
+
export interface GroupApiListGroupUsersRequest {
|
|
1310
1321
|
/**
|
|
1311
|
-
* A
|
|
1322
|
+
* A group identifier or slug
|
|
1312
1323
|
* @type {string}
|
|
1313
|
-
* @memberof
|
|
1324
|
+
* @memberof GroupApiListGroupUsers
|
|
1314
1325
|
*/
|
|
1315
|
-
readonly
|
|
1326
|
+
readonly groupId: string;
|
|
1316
1327
|
|
|
1317
1328
|
/**
|
|
1318
1329
|
* Search query
|
|
1319
1330
|
* @type {string}
|
|
1320
|
-
* @memberof
|
|
1331
|
+
* @memberof GroupApiListGroupUsers
|
|
1321
1332
|
*/
|
|
1322
1333
|
readonly search?: string;
|
|
1323
1334
|
|
|
1324
1335
|
/**
|
|
1325
1336
|
* Sorting column
|
|
1326
|
-
* @type {
|
|
1327
|
-
* @memberof
|
|
1337
|
+
* @type {string}
|
|
1338
|
+
* @memberof GroupApiListGroupUsers
|
|
1328
1339
|
*/
|
|
1329
|
-
readonly sort?:
|
|
1340
|
+
readonly sort?: string;
|
|
1330
1341
|
|
|
1331
1342
|
/**
|
|
1332
1343
|
* Sorting order
|
|
1333
1344
|
* @type {'asc' | 'desc'}
|
|
1334
|
-
* @memberof
|
|
1345
|
+
* @memberof GroupApiListGroupUsers
|
|
1335
1346
|
*/
|
|
1336
|
-
readonly order?:
|
|
1347
|
+
readonly order?: ListGroupUsersOrderEnum;
|
|
1337
1348
|
|
|
1338
1349
|
/**
|
|
1339
1350
|
* Paging limit
|
|
1340
1351
|
* @type {number}
|
|
1341
|
-
* @memberof
|
|
1352
|
+
* @memberof GroupApiListGroupUsers
|
|
1342
1353
|
*/
|
|
1343
1354
|
readonly limit?: number;
|
|
1344
1355
|
|
|
1345
1356
|
/**
|
|
1346
1357
|
* Paging offset
|
|
1347
1358
|
* @type {number}
|
|
1348
|
-
* @memberof
|
|
1359
|
+
* @memberof GroupApiListGroupUsers
|
|
1349
1360
|
*/
|
|
1350
1361
|
readonly offset?: number;
|
|
1351
1362
|
}
|
|
1352
1363
|
|
|
1353
1364
|
/**
|
|
1354
|
-
* Request parameters for
|
|
1365
|
+
* Request parameters for listGroups operation in GroupApi.
|
|
1355
1366
|
* @export
|
|
1356
|
-
* @interface
|
|
1367
|
+
* @interface GroupApiListGroupsRequest
|
|
1357
1368
|
*/
|
|
1358
|
-
export interface
|
|
1369
|
+
export interface GroupApiListGroupsRequest {
|
|
1359
1370
|
/**
|
|
1360
1371
|
* Search query
|
|
1361
1372
|
* @type {string}
|
|
1362
|
-
* @memberof
|
|
1373
|
+
* @memberof GroupApiListGroups
|
|
1363
1374
|
*/
|
|
1364
1375
|
readonly search?: string;
|
|
1365
1376
|
|
|
1366
1377
|
/**
|
|
1367
1378
|
* Sorting column
|
|
1368
|
-
* @type {
|
|
1369
|
-
* @memberof
|
|
1379
|
+
* @type {string}
|
|
1380
|
+
* @memberof GroupApiListGroups
|
|
1370
1381
|
*/
|
|
1371
|
-
readonly sort?:
|
|
1382
|
+
readonly sort?: string;
|
|
1372
1383
|
|
|
1373
1384
|
/**
|
|
1374
1385
|
* Sorting order
|
|
1375
1386
|
* @type {'asc' | 'desc'}
|
|
1376
|
-
* @memberof
|
|
1387
|
+
* @memberof GroupApiListGroups
|
|
1377
1388
|
*/
|
|
1378
|
-
readonly order?:
|
|
1389
|
+
readonly order?: ListGroupsOrderEnum;
|
|
1379
1390
|
|
|
1380
1391
|
/**
|
|
1381
1392
|
* Paging limit
|
|
1382
1393
|
* @type {number}
|
|
1383
|
-
* @memberof
|
|
1394
|
+
* @memberof GroupApiListGroups
|
|
1384
1395
|
*/
|
|
1385
1396
|
readonly limit?: number;
|
|
1386
1397
|
|
|
1387
1398
|
/**
|
|
1388
1399
|
* Paging offset
|
|
1389
1400
|
* @type {number}
|
|
1390
|
-
* @memberof
|
|
1401
|
+
* @memberof GroupApiListGroups
|
|
1391
1402
|
*/
|
|
1392
1403
|
readonly offset?: number;
|
|
1393
1404
|
}
|
|
1394
1405
|
|
|
1395
1406
|
/**
|
|
1396
|
-
* Request parameters for
|
|
1407
|
+
* Request parameters for permitGroupUser operation in GroupApi.
|
|
1397
1408
|
* @export
|
|
1398
|
-
* @interface
|
|
1409
|
+
* @interface GroupApiPermitGroupUserRequest
|
|
1399
1410
|
*/
|
|
1400
|
-
export interface
|
|
1411
|
+
export interface GroupApiPermitGroupUserRequest {
|
|
1401
1412
|
/**
|
|
1402
|
-
* A
|
|
1413
|
+
* A group identifier or slug
|
|
1403
1414
|
* @type {string}
|
|
1404
|
-
* @memberof
|
|
1415
|
+
* @memberof GroupApiPermitGroupUser
|
|
1405
1416
|
*/
|
|
1406
|
-
readonly
|
|
1417
|
+
readonly groupId: string;
|
|
1407
1418
|
|
|
1408
1419
|
/**
|
|
1409
|
-
* The
|
|
1410
|
-
* @type {
|
|
1411
|
-
* @memberof
|
|
1420
|
+
* The group user data to permit
|
|
1421
|
+
* @type {PermitGroupUserRequest}
|
|
1422
|
+
* @memberof GroupApiPermitGroupUser
|
|
1412
1423
|
*/
|
|
1413
|
-
readonly
|
|
1424
|
+
readonly permitGroupUserRequest: PermitGroupUserRequest;
|
|
1414
1425
|
}
|
|
1415
1426
|
|
|
1416
1427
|
/**
|
|
1417
|
-
* Request parameters for
|
|
1428
|
+
* Request parameters for showGroup operation in GroupApi.
|
|
1418
1429
|
* @export
|
|
1419
|
-
* @interface
|
|
1430
|
+
* @interface GroupApiShowGroupRequest
|
|
1420
1431
|
*/
|
|
1421
|
-
export interface
|
|
1432
|
+
export interface GroupApiShowGroupRequest {
|
|
1422
1433
|
/**
|
|
1423
|
-
* A
|
|
1434
|
+
* A group identifier or slug
|
|
1424
1435
|
* @type {string}
|
|
1425
|
-
* @memberof
|
|
1436
|
+
* @memberof GroupApiShowGroup
|
|
1426
1437
|
*/
|
|
1427
|
-
readonly
|
|
1438
|
+
readonly groupId: string;
|
|
1428
1439
|
}
|
|
1429
1440
|
|
|
1430
1441
|
/**
|
|
1431
|
-
* Request parameters for
|
|
1442
|
+
* Request parameters for updateGroup operation in GroupApi.
|
|
1432
1443
|
* @export
|
|
1433
|
-
* @interface
|
|
1444
|
+
* @interface GroupApiUpdateGroupRequest
|
|
1434
1445
|
*/
|
|
1435
|
-
export interface
|
|
1446
|
+
export interface GroupApiUpdateGroupRequest {
|
|
1436
1447
|
/**
|
|
1437
|
-
* A
|
|
1448
|
+
* A group identifier or slug
|
|
1438
1449
|
* @type {string}
|
|
1439
|
-
* @memberof
|
|
1450
|
+
* @memberof GroupApiUpdateGroup
|
|
1440
1451
|
*/
|
|
1441
|
-
readonly
|
|
1452
|
+
readonly groupId: string;
|
|
1442
1453
|
|
|
1443
1454
|
/**
|
|
1444
|
-
* The
|
|
1445
|
-
* @type {
|
|
1446
|
-
* @memberof
|
|
1455
|
+
* The group data to update
|
|
1456
|
+
* @type {CreateGroupRequest}
|
|
1457
|
+
* @memberof GroupApiUpdateGroup
|
|
1447
1458
|
*/
|
|
1448
|
-
readonly
|
|
1459
|
+
readonly createGroupRequest: CreateGroupRequest;
|
|
1449
1460
|
}
|
|
1450
1461
|
|
|
1451
1462
|
/**
|
|
1452
|
-
*
|
|
1463
|
+
* GroupApi - object-oriented interface
|
|
1453
1464
|
* @export
|
|
1454
|
-
* @class
|
|
1465
|
+
* @class GroupApi
|
|
1455
1466
|
* @extends {BaseAPI}
|
|
1456
1467
|
*/
|
|
1457
|
-
export class
|
|
1468
|
+
export class GroupApi extends BaseAPI {
|
|
1458
1469
|
/**
|
|
1459
1470
|
*
|
|
1460
|
-
* @summary Attach a user to
|
|
1461
|
-
* @param {
|
|
1471
|
+
* @summary Attach a user to group
|
|
1472
|
+
* @param {GroupApiAttachGroupToUserRequest} requestParameters Request parameters.
|
|
1462
1473
|
* @param {*} [options] Override http request option.
|
|
1463
1474
|
* @throws {RequiredError}
|
|
1464
|
-
* @memberof
|
|
1475
|
+
* @memberof GroupApi
|
|
1465
1476
|
*/
|
|
1466
|
-
public
|
|
1467
|
-
requestParameters:
|
|
1477
|
+
public attachGroupToUser(
|
|
1478
|
+
requestParameters: GroupApiAttachGroupToUserRequest,
|
|
1468
1479
|
options?: RawAxiosRequestConfig,
|
|
1469
1480
|
) {
|
|
1470
|
-
return
|
|
1471
|
-
.
|
|
1472
|
-
requestParameters.
|
|
1473
|
-
requestParameters.
|
|
1481
|
+
return GroupApiFp(this.configuration)
|
|
1482
|
+
.attachGroupToUser(
|
|
1483
|
+
requestParameters.groupId,
|
|
1484
|
+
requestParameters.permitGroupUserRequest,
|
|
1474
1485
|
options,
|
|
1475
1486
|
)
|
|
1476
1487
|
.then((request) => request(this.axios, this.basePath));
|
|
@@ -1478,54 +1489,54 @@ export class TeamApi extends BaseAPI {
|
|
|
1478
1489
|
|
|
1479
1490
|
/**
|
|
1480
1491
|
*
|
|
1481
|
-
* @summary Create a new
|
|
1482
|
-
* @param {
|
|
1492
|
+
* @summary Create a new group
|
|
1493
|
+
* @param {GroupApiCreateGroupRequest} requestParameters Request parameters.
|
|
1483
1494
|
* @param {*} [options] Override http request option.
|
|
1484
1495
|
* @throws {RequiredError}
|
|
1485
|
-
* @memberof
|
|
1496
|
+
* @memberof GroupApi
|
|
1486
1497
|
*/
|
|
1487
|
-
public
|
|
1488
|
-
requestParameters:
|
|
1498
|
+
public createGroup(
|
|
1499
|
+
requestParameters: GroupApiCreateGroupRequest,
|
|
1489
1500
|
options?: RawAxiosRequestConfig,
|
|
1490
1501
|
) {
|
|
1491
|
-
return
|
|
1492
|
-
.
|
|
1502
|
+
return GroupApiFp(this.configuration)
|
|
1503
|
+
.createGroup(requestParameters.createGroupRequest, options)
|
|
1493
1504
|
.then((request) => request(this.axios, this.basePath));
|
|
1494
1505
|
}
|
|
1495
1506
|
|
|
1496
1507
|
/**
|
|
1497
1508
|
*
|
|
1498
|
-
* @summary Delete a specific
|
|
1499
|
-
* @param {
|
|
1509
|
+
* @summary Delete a specific group
|
|
1510
|
+
* @param {GroupApiDeleteGroupRequest} requestParameters Request parameters.
|
|
1500
1511
|
* @param {*} [options] Override http request option.
|
|
1501
1512
|
* @throws {RequiredError}
|
|
1502
|
-
* @memberof
|
|
1513
|
+
* @memberof GroupApi
|
|
1503
1514
|
*/
|
|
1504
|
-
public
|
|
1505
|
-
requestParameters:
|
|
1515
|
+
public deleteGroup(
|
|
1516
|
+
requestParameters: GroupApiDeleteGroupRequest,
|
|
1506
1517
|
options?: RawAxiosRequestConfig,
|
|
1507
1518
|
) {
|
|
1508
|
-
return
|
|
1509
|
-
.
|
|
1519
|
+
return GroupApiFp(this.configuration)
|
|
1520
|
+
.deleteGroup(requestParameters.groupId, options)
|
|
1510
1521
|
.then((request) => request(this.axios, this.basePath));
|
|
1511
1522
|
}
|
|
1512
1523
|
|
|
1513
1524
|
/**
|
|
1514
1525
|
*
|
|
1515
|
-
* @summary Unlink a user from
|
|
1516
|
-
* @param {
|
|
1526
|
+
* @summary Unlink a user from group
|
|
1527
|
+
* @param {GroupApiDeleteGroupFromUserRequest} requestParameters Request parameters.
|
|
1517
1528
|
* @param {*} [options] Override http request option.
|
|
1518
1529
|
* @throws {RequiredError}
|
|
1519
|
-
* @memberof
|
|
1530
|
+
* @memberof GroupApi
|
|
1520
1531
|
*/
|
|
1521
|
-
public
|
|
1522
|
-
requestParameters:
|
|
1532
|
+
public deleteGroupFromUser(
|
|
1533
|
+
requestParameters: GroupApiDeleteGroupFromUserRequest,
|
|
1523
1534
|
options?: RawAxiosRequestConfig,
|
|
1524
1535
|
) {
|
|
1525
|
-
return
|
|
1526
|
-
.
|
|
1527
|
-
requestParameters.
|
|
1528
|
-
requestParameters.
|
|
1536
|
+
return GroupApiFp(this.configuration)
|
|
1537
|
+
.deleteGroupFromUser(
|
|
1538
|
+
requestParameters.groupId,
|
|
1539
|
+
requestParameters.deleteGroupFromUserRequest,
|
|
1529
1540
|
options,
|
|
1530
1541
|
)
|
|
1531
1542
|
.then((request) => request(this.axios, this.basePath));
|
|
@@ -1533,19 +1544,19 @@ export class TeamApi extends BaseAPI {
|
|
|
1533
1544
|
|
|
1534
1545
|
/**
|
|
1535
1546
|
*
|
|
1536
|
-
* @summary Fetch all users attached to
|
|
1537
|
-
* @param {
|
|
1547
|
+
* @summary Fetch all users attached to group
|
|
1548
|
+
* @param {GroupApiListGroupUsersRequest} requestParameters Request parameters.
|
|
1538
1549
|
* @param {*} [options] Override http request option.
|
|
1539
1550
|
* @throws {RequiredError}
|
|
1540
|
-
* @memberof
|
|
1551
|
+
* @memberof GroupApi
|
|
1541
1552
|
*/
|
|
1542
|
-
public
|
|
1543
|
-
requestParameters:
|
|
1553
|
+
public listGroupUsers(
|
|
1554
|
+
requestParameters: GroupApiListGroupUsersRequest,
|
|
1544
1555
|
options?: RawAxiosRequestConfig,
|
|
1545
1556
|
) {
|
|
1546
|
-
return
|
|
1547
|
-
.
|
|
1548
|
-
requestParameters.
|
|
1557
|
+
return GroupApiFp(this.configuration)
|
|
1558
|
+
.listGroupUsers(
|
|
1559
|
+
requestParameters.groupId,
|
|
1549
1560
|
requestParameters.search,
|
|
1550
1561
|
requestParameters.sort,
|
|
1551
1562
|
requestParameters.order,
|
|
@@ -1558,18 +1569,18 @@ export class TeamApi extends BaseAPI {
|
|
|
1558
1569
|
|
|
1559
1570
|
/**
|
|
1560
1571
|
*
|
|
1561
|
-
* @summary Fetch all available
|
|
1562
|
-
* @param {
|
|
1572
|
+
* @summary Fetch all available groups
|
|
1573
|
+
* @param {GroupApiListGroupsRequest} requestParameters Request parameters.
|
|
1563
1574
|
* @param {*} [options] Override http request option.
|
|
1564
1575
|
* @throws {RequiredError}
|
|
1565
|
-
* @memberof
|
|
1576
|
+
* @memberof GroupApi
|
|
1566
1577
|
*/
|
|
1567
|
-
public
|
|
1568
|
-
requestParameters:
|
|
1578
|
+
public listGroups(
|
|
1579
|
+
requestParameters: GroupApiListGroupsRequest = {},
|
|
1569
1580
|
options?: RawAxiosRequestConfig,
|
|
1570
1581
|
) {
|
|
1571
|
-
return
|
|
1572
|
-
.
|
|
1582
|
+
return GroupApiFp(this.configuration)
|
|
1583
|
+
.listGroups(
|
|
1573
1584
|
requestParameters.search,
|
|
1574
1585
|
requestParameters.sort,
|
|
1575
1586
|
requestParameters.order,
|
|
@@ -1582,20 +1593,20 @@ export class TeamApi extends BaseAPI {
|
|
|
1582
1593
|
|
|
1583
1594
|
/**
|
|
1584
1595
|
*
|
|
1585
|
-
* @summary Update user perms for
|
|
1586
|
-
* @param {
|
|
1596
|
+
* @summary Update user perms for group
|
|
1597
|
+
* @param {GroupApiPermitGroupUserRequest} requestParameters Request parameters.
|
|
1587
1598
|
* @param {*} [options] Override http request option.
|
|
1588
1599
|
* @throws {RequiredError}
|
|
1589
|
-
* @memberof
|
|
1600
|
+
* @memberof GroupApi
|
|
1590
1601
|
*/
|
|
1591
|
-
public
|
|
1592
|
-
requestParameters:
|
|
1602
|
+
public permitGroupUser(
|
|
1603
|
+
requestParameters: GroupApiPermitGroupUserRequest,
|
|
1593
1604
|
options?: RawAxiosRequestConfig,
|
|
1594
1605
|
) {
|
|
1595
|
-
return
|
|
1596
|
-
.
|
|
1597
|
-
requestParameters.
|
|
1598
|
-
requestParameters.
|
|
1606
|
+
return GroupApiFp(this.configuration)
|
|
1607
|
+
.permitGroupUser(
|
|
1608
|
+
requestParameters.groupId,
|
|
1609
|
+
requestParameters.permitGroupUserRequest,
|
|
1599
1610
|
options,
|
|
1600
1611
|
)
|
|
1601
1612
|
.then((request) => request(this.axios, this.basePath));
|
|
@@ -1603,35 +1614,39 @@ export class TeamApi extends BaseAPI {
|
|
|
1603
1614
|
|
|
1604
1615
|
/**
|
|
1605
1616
|
*
|
|
1606
|
-
* @summary Fetch a specific
|
|
1607
|
-
* @param {
|
|
1617
|
+
* @summary Fetch a specific group
|
|
1618
|
+
* @param {GroupApiShowGroupRequest} requestParameters Request parameters.
|
|
1608
1619
|
* @param {*} [options] Override http request option.
|
|
1609
1620
|
* @throws {RequiredError}
|
|
1610
|
-
* @memberof
|
|
1621
|
+
* @memberof GroupApi
|
|
1611
1622
|
*/
|
|
1612
|
-
public
|
|
1613
|
-
requestParameters:
|
|
1623
|
+
public showGroup(
|
|
1624
|
+
requestParameters: GroupApiShowGroupRequest,
|
|
1614
1625
|
options?: RawAxiosRequestConfig,
|
|
1615
1626
|
) {
|
|
1616
|
-
return
|
|
1617
|
-
.
|
|
1627
|
+
return GroupApiFp(this.configuration)
|
|
1628
|
+
.showGroup(requestParameters.groupId, options)
|
|
1618
1629
|
.then((request) => request(this.axios, this.basePath));
|
|
1619
1630
|
}
|
|
1620
1631
|
|
|
1621
1632
|
/**
|
|
1622
1633
|
*
|
|
1623
|
-
* @summary Update a specific
|
|
1624
|
-
* @param {
|
|
1634
|
+
* @summary Update a specific group
|
|
1635
|
+
* @param {GroupApiUpdateGroupRequest} requestParameters Request parameters.
|
|
1625
1636
|
* @param {*} [options] Override http request option.
|
|
1626
1637
|
* @throws {RequiredError}
|
|
1627
|
-
* @memberof
|
|
1638
|
+
* @memberof GroupApi
|
|
1628
1639
|
*/
|
|
1629
|
-
public
|
|
1630
|
-
requestParameters:
|
|
1640
|
+
public updateGroup(
|
|
1641
|
+
requestParameters: GroupApiUpdateGroupRequest,
|
|
1631
1642
|
options?: RawAxiosRequestConfig,
|
|
1632
1643
|
) {
|
|
1633
|
-
return
|
|
1634
|
-
.
|
|
1644
|
+
return GroupApiFp(this.configuration)
|
|
1645
|
+
.updateGroup(
|
|
1646
|
+
requestParameters.groupId,
|
|
1647
|
+
requestParameters.createGroupRequest,
|
|
1648
|
+
options,
|
|
1649
|
+
)
|
|
1635
1650
|
.then((request) => request(this.axios, this.basePath));
|
|
1636
1651
|
}
|
|
1637
1652
|
}
|
|
@@ -1639,39 +1654,18 @@ export class TeamApi extends BaseAPI {
|
|
|
1639
1654
|
/**
|
|
1640
1655
|
* @export
|
|
1641
1656
|
*/
|
|
1642
|
-
export const
|
|
1643
|
-
Username: "username",
|
|
1644
|
-
Email: "email",
|
|
1645
|
-
Fullname: "fullname",
|
|
1646
|
-
Admin: "admin",
|
|
1647
|
-
Active: "active",
|
|
1648
|
-
} as const;
|
|
1649
|
-
export type ListTeamUsersSortEnum =
|
|
1650
|
-
(typeof ListTeamUsersSortEnum)[keyof typeof ListTeamUsersSortEnum];
|
|
1651
|
-
/**
|
|
1652
|
-
* @export
|
|
1653
|
-
*/
|
|
1654
|
-
export const ListTeamUsersOrderEnum = {
|
|
1657
|
+
export const ListGroupUsersOrderEnum = {
|
|
1655
1658
|
Asc: "asc",
|
|
1656
1659
|
Desc: "desc",
|
|
1657
1660
|
} as const;
|
|
1658
|
-
export type
|
|
1659
|
-
(typeof
|
|
1660
|
-
/**
|
|
1661
|
-
* @export
|
|
1662
|
-
*/
|
|
1663
|
-
export const ListTeamsSortEnum = {
|
|
1664
|
-
Slug: "slug",
|
|
1665
|
-
Name: "name",
|
|
1666
|
-
} as const;
|
|
1667
|
-
export type ListTeamsSortEnum =
|
|
1668
|
-
(typeof ListTeamsSortEnum)[keyof typeof ListTeamsSortEnum];
|
|
1661
|
+
export type ListGroupUsersOrderEnum =
|
|
1662
|
+
(typeof ListGroupUsersOrderEnum)[keyof typeof ListGroupUsersOrderEnum];
|
|
1669
1663
|
/**
|
|
1670
1664
|
* @export
|
|
1671
1665
|
*/
|
|
1672
|
-
export const
|
|
1666
|
+
export const ListGroupsOrderEnum = {
|
|
1673
1667
|
Asc: "asc",
|
|
1674
1668
|
Desc: "desc",
|
|
1675
1669
|
} as const;
|
|
1676
|
-
export type
|
|
1677
|
-
(typeof
|
|
1670
|
+
export type ListGroupsOrderEnum =
|
|
1671
|
+
(typeof ListGroupsOrderEnum)[keyof typeof ListGroupsOrderEnum];
|