gopadjs 2.4.1 → 2.6.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.
@@ -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 {Profile} profile The profile data to update
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
- profile: Profile,
176
+ updateProfileRequest: UpdateProfileRequest,
181
177
  options: RawAxiosRequestConfig = {},
182
178
  ): Promise<RequestArgs> => {
183
- // verify required parameter 'profile' is not null or undefined
184
- assertParamExists("updateProfile", "profile", profile);
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
- profile,
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 {Profile} profile The profile data to update
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
- profile: Profile,
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
- profile,
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.profile, options)
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 {Profile}
391
+ * @type {UpdateProfileRequest}
377
392
  * @memberof ProfileApiUpdateProfile
378
393
  */
379
- readonly profile: Profile;
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.profile, options)
443
+ .updateProfile(requestParameters.updateProfileRequest, options)
429
444
  .then((request) => request(this.axios, this.basePath));
430
445
  }
431
446
  }