gopadjs 2.4.1 → 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/.openapi-generator/FILES +18 -10
- package/CHANGELOG.md +14 -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 +6 -6
- 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
package/api/profile-api.ts
CHANGED
|
@@ -47,6 +47,8 @@ import type { AuthToken } from "../model";
|
|
|
47
47
|
import type { Notification } from "../model";
|
|
48
48
|
// @ts-ignore
|
|
49
49
|
import type { Profile } from "../model";
|
|
50
|
+
// @ts-ignore
|
|
51
|
+
import type { UpdateProfileRequest } from "../model";
|
|
50
52
|
/**
|
|
51
53
|
* ProfileApi - axios parameter creator
|
|
52
54
|
* @export
|
|
@@ -80,9 +82,6 @@ export const ProfileApiAxiosParamCreator = function (
|
|
|
80
82
|
const localVarHeaderParameter = {} as any;
|
|
81
83
|
const localVarQueryParameter = {} as any;
|
|
82
84
|
|
|
83
|
-
// authentication Cookie required
|
|
84
|
-
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
85
|
-
|
|
86
85
|
// authentication Basic required
|
|
87
86
|
// http basic authentication required
|
|
88
87
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
@@ -137,9 +136,6 @@ export const ProfileApiAxiosParamCreator = function (
|
|
|
137
136
|
const localVarHeaderParameter = {} as any;
|
|
138
137
|
const localVarQueryParameter = {} as any;
|
|
139
138
|
|
|
140
|
-
// authentication Cookie required
|
|
141
|
-
await setApiKeyToObject(localVarHeaderParameter, "Cookie", configuration);
|
|
142
|
-
|
|
143
139
|
// authentication Basic required
|
|
144
140
|
// http basic authentication required
|
|
145
141
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
@@ -172,16 +168,20 @@ export const ProfileApiAxiosParamCreator = function (
|
|
|
172
168
|
/**
|
|
173
169
|
*
|
|
174
170
|
* @summary Update your own profile information
|
|
175
|
-
* @param {
|
|
171
|
+
* @param {UpdateProfileRequest} updateProfileRequest The profile data to update
|
|
176
172
|
* @param {*} [options] Override http request option.
|
|
177
173
|
* @throws {RequiredError}
|
|
178
174
|
*/
|
|
179
175
|
updateProfile: async (
|
|
180
|
-
|
|
176
|
+
updateProfileRequest: UpdateProfileRequest,
|
|
181
177
|
options: RawAxiosRequestConfig = {},
|
|
182
178
|
): Promise<RequestArgs> => {
|
|
183
|
-
// verify required parameter '
|
|
184
|
-
assertParamExists(
|
|
179
|
+
// verify required parameter 'updateProfileRequest' is not null or undefined
|
|
180
|
+
assertParamExists(
|
|
181
|
+
"updateProfile",
|
|
182
|
+
"updateProfileRequest",
|
|
183
|
+
updateProfileRequest,
|
|
184
|
+
);
|
|
185
185
|
const localVarPath = `/profile/self`;
|
|
186
186
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
187
187
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -198,6 +198,21 @@ export const ProfileApiAxiosParamCreator = function (
|
|
|
198
198
|
const localVarHeaderParameter = {} as any;
|
|
199
199
|
const localVarQueryParameter = {} as any;
|
|
200
200
|
|
|
201
|
+
// authentication Basic required
|
|
202
|
+
// http basic authentication required
|
|
203
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
204
|
+
|
|
205
|
+
// authentication Header required
|
|
206
|
+
await setApiKeyToObject(
|
|
207
|
+
localVarHeaderParameter,
|
|
208
|
+
"X-API-Key",
|
|
209
|
+
configuration,
|
|
210
|
+
);
|
|
211
|
+
|
|
212
|
+
// authentication Bearer required
|
|
213
|
+
// http bearer authentication required
|
|
214
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
215
|
+
|
|
201
216
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
202
217
|
|
|
203
218
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -209,7 +224,7 @@ export const ProfileApiAxiosParamCreator = function (
|
|
|
209
224
|
...options.headers,
|
|
210
225
|
};
|
|
211
226
|
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
212
|
-
|
|
227
|
+
updateProfileRequest,
|
|
213
228
|
localVarRequestOptions,
|
|
214
229
|
configuration,
|
|
215
230
|
);
|
|
@@ -284,18 +299,18 @@ export const ProfileApiFp = function (configuration?: Configuration) {
|
|
|
284
299
|
/**
|
|
285
300
|
*
|
|
286
301
|
* @summary Update your own profile information
|
|
287
|
-
* @param {
|
|
302
|
+
* @param {UpdateProfileRequest} updateProfileRequest The profile data to update
|
|
288
303
|
* @param {*} [options] Override http request option.
|
|
289
304
|
* @throws {RequiredError}
|
|
290
305
|
*/
|
|
291
306
|
async updateProfile(
|
|
292
|
-
|
|
307
|
+
updateProfileRequest: UpdateProfileRequest,
|
|
293
308
|
options?: RawAxiosRequestConfig,
|
|
294
309
|
): Promise<
|
|
295
310
|
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Profile>
|
|
296
311
|
> {
|
|
297
312
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateProfile(
|
|
298
|
-
|
|
313
|
+
updateProfileRequest,
|
|
299
314
|
options,
|
|
300
315
|
);
|
|
301
316
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
@@ -359,7 +374,7 @@ export const ProfileApiFactory = function (
|
|
|
359
374
|
options?: RawAxiosRequestConfig,
|
|
360
375
|
): AxiosPromise<Profile> {
|
|
361
376
|
return localVarFp
|
|
362
|
-
.updateProfile(requestParameters.
|
|
377
|
+
.updateProfile(requestParameters.updateProfileRequest, options)
|
|
363
378
|
.then((request) => request(axios, basePath));
|
|
364
379
|
},
|
|
365
380
|
};
|
|
@@ -373,10 +388,10 @@ export const ProfileApiFactory = function (
|
|
|
373
388
|
export interface ProfileApiUpdateProfileRequest {
|
|
374
389
|
/**
|
|
375
390
|
* The profile data to update
|
|
376
|
-
* @type {
|
|
391
|
+
* @type {UpdateProfileRequest}
|
|
377
392
|
* @memberof ProfileApiUpdateProfile
|
|
378
393
|
*/
|
|
379
|
-
readonly
|
|
394
|
+
readonly updateProfileRequest: UpdateProfileRequest;
|
|
380
395
|
}
|
|
381
396
|
|
|
382
397
|
/**
|
|
@@ -425,7 +440,7 @@ export class ProfileApi extends BaseAPI {
|
|
|
425
440
|
options?: RawAxiosRequestConfig,
|
|
426
441
|
) {
|
|
427
442
|
return ProfileApiFp(this.configuration)
|
|
428
|
-
.updateProfile(requestParameters.
|
|
443
|
+
.updateProfile(requestParameters.updateProfileRequest, options)
|
|
429
444
|
.then((request) => request(this.axios, this.basePath));
|
|
430
445
|
}
|
|
431
446
|
}
|