qovery-typescript-axios 1.1.182 → 1.1.183

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/api.ts CHANGED
@@ -92,6 +92,12 @@ export interface AccountInfo {
92
92
  * @memberof AccountInfo
93
93
  */
94
94
  'profile_picture_url'?: string;
95
+ /**
96
+ *
97
+ * @type {string}
98
+ * @memberof AccountInfo
99
+ */
100
+ 'communication_email'?: string;
95
101
  }
96
102
  /**
97
103
  *
@@ -100,23 +106,11 @@ export interface AccountInfo {
100
106
  */
101
107
  export interface AccountInfoEditRequest {
102
108
  /**
103
- *
109
+ * The email to be used for official Qovery communications
104
110
  * @type {string}
105
111
  * @memberof AccountInfoEditRequest
106
112
  */
107
- 'first_name'?: string;
108
- /**
109
- *
110
- * @type {string}
111
- * @memberof AccountInfoEditRequest
112
- */
113
- 'last_name'?: string;
114
- /**
115
- *
116
- * @type {string}
117
- * @memberof AccountInfoEditRequest
118
- */
119
- 'profile_picture_url'?: string;
113
+ 'communication_email'?: string | null;
120
114
  }
121
115
  /**
122
116
  *
@@ -13663,6 +13657,44 @@ export enum WeekdayEnum {
13663
13657
  */
13664
13658
  export const AccountInfoApiAxiosParamCreator = function (configuration?: Configuration) {
13665
13659
  return {
13660
+ /**
13661
+ *
13662
+ * @summary Edit account information
13663
+ * @param {AccountInfoEditRequest} [accountInfoEditRequest]
13664
+ * @param {*} [options] Override http request option.
13665
+ * @throws {RequiredError}
13666
+ */
13667
+ editAccountInformation: async (accountInfoEditRequest?: AccountInfoEditRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
13668
+ const localVarPath = `/account`;
13669
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13670
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13671
+ let baseOptions;
13672
+ if (configuration) {
13673
+ baseOptions = configuration.baseOptions;
13674
+ }
13675
+
13676
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
13677
+ const localVarHeaderParameter = {} as any;
13678
+ const localVarQueryParameter = {} as any;
13679
+
13680
+ // authentication bearerAuth required
13681
+ // http bearer authentication required
13682
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13683
+
13684
+
13685
+
13686
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13687
+
13688
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13689
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13690
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13691
+ localVarRequestOptions.data = serializeDataIfNeeded(accountInfoEditRequest, localVarRequestOptions, configuration)
13692
+
13693
+ return {
13694
+ url: toPathString(localVarUrlObj),
13695
+ options: localVarRequestOptions,
13696
+ };
13697
+ },
13666
13698
  /**
13667
13699
  *
13668
13700
  * @summary Get Account information
@@ -13707,6 +13739,17 @@ export const AccountInfoApiAxiosParamCreator = function (configuration?: Configu
13707
13739
  export const AccountInfoApiFp = function(configuration?: Configuration) {
13708
13740
  const localVarAxiosParamCreator = AccountInfoApiAxiosParamCreator(configuration)
13709
13741
  return {
13742
+ /**
13743
+ *
13744
+ * @summary Edit account information
13745
+ * @param {AccountInfoEditRequest} [accountInfoEditRequest]
13746
+ * @param {*} [options] Override http request option.
13747
+ * @throws {RequiredError}
13748
+ */
13749
+ async editAccountInformation(accountInfoEditRequest?: AccountInfoEditRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountInfo>> {
13750
+ const localVarAxiosArgs = await localVarAxiosParamCreator.editAccountInformation(accountInfoEditRequest, options);
13751
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
13752
+ },
13710
13753
  /**
13711
13754
  *
13712
13755
  * @summary Get Account information
@@ -13727,6 +13770,16 @@ export const AccountInfoApiFp = function(configuration?: Configuration) {
13727
13770
  export const AccountInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
13728
13771
  const localVarFp = AccountInfoApiFp(configuration)
13729
13772
  return {
13773
+ /**
13774
+ *
13775
+ * @summary Edit account information
13776
+ * @param {AccountInfoEditRequest} [accountInfoEditRequest]
13777
+ * @param {*} [options] Override http request option.
13778
+ * @throws {RequiredError}
13779
+ */
13780
+ editAccountInformation(accountInfoEditRequest?: AccountInfoEditRequest, options?: any): AxiosPromise<AccountInfo> {
13781
+ return localVarFp.editAccountInformation(accountInfoEditRequest, options).then((request) => request(axios, basePath));
13782
+ },
13730
13783
  /**
13731
13784
  *
13732
13785
  * @summary Get Account information
@@ -13746,6 +13799,18 @@ export const AccountInfoApiFactory = function (configuration?: Configuration, ba
13746
13799
  * @extends {BaseAPI}
13747
13800
  */
13748
13801
  export class AccountInfoApi extends BaseAPI {
13802
+ /**
13803
+ *
13804
+ * @summary Edit account information
13805
+ * @param {AccountInfoEditRequest} [accountInfoEditRequest]
13806
+ * @param {*} [options] Override http request option.
13807
+ * @throws {RequiredError}
13808
+ * @memberof AccountInfoApi
13809
+ */
13810
+ public editAccountInformation(accountInfoEditRequest?: AccountInfoEditRequest, options?: AxiosRequestConfig) {
13811
+ return AccountInfoApiFp(this.configuration).editAccountInformation(accountInfoEditRequest, options).then((request) => request(this.axios, this.basePath));
13812
+ }
13813
+
13749
13814
  /**
13750
13815
  *
13751
13816
  * @summary Get Account information
package/dist/api.d.ts CHANGED
@@ -79,6 +79,12 @@ export interface AccountInfo {
79
79
  * @memberof AccountInfo
80
80
  */
81
81
  'profile_picture_url'?: string;
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof AccountInfo
86
+ */
87
+ 'communication_email'?: string;
82
88
  }
83
89
  /**
84
90
  *
@@ -87,23 +93,11 @@ export interface AccountInfo {
87
93
  */
88
94
  export interface AccountInfoEditRequest {
89
95
  /**
90
- *
91
- * @type {string}
92
- * @memberof AccountInfoEditRequest
93
- */
94
- 'first_name'?: string;
95
- /**
96
- *
97
- * @type {string}
98
- * @memberof AccountInfoEditRequest
99
- */
100
- 'last_name'?: string;
101
- /**
102
- *
96
+ * The email to be used for official Qovery communications
103
97
  * @type {string}
104
98
  * @memberof AccountInfoEditRequest
105
99
  */
106
- 'profile_picture_url'?: string;
100
+ 'communication_email'?: string | null;
107
101
  }
108
102
  /**
109
103
  *
@@ -13562,6 +13556,14 @@ export declare enum WeekdayEnum {
13562
13556
  * @export
13563
13557
  */
13564
13558
  export declare const AccountInfoApiAxiosParamCreator: (configuration?: Configuration) => {
13559
+ /**
13560
+ *
13561
+ * @summary Edit account information
13562
+ * @param {AccountInfoEditRequest} [accountInfoEditRequest]
13563
+ * @param {*} [options] Override http request option.
13564
+ * @throws {RequiredError}
13565
+ */
13566
+ editAccountInformation: (accountInfoEditRequest?: AccountInfoEditRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
13565
13567
  /**
13566
13568
  *
13567
13569
  * @summary Get Account information
@@ -13575,6 +13577,14 @@ export declare const AccountInfoApiAxiosParamCreator: (configuration?: Configura
13575
13577
  * @export
13576
13578
  */
13577
13579
  export declare const AccountInfoApiFp: (configuration?: Configuration) => {
13580
+ /**
13581
+ *
13582
+ * @summary Edit account information
13583
+ * @param {AccountInfoEditRequest} [accountInfoEditRequest]
13584
+ * @param {*} [options] Override http request option.
13585
+ * @throws {RequiredError}
13586
+ */
13587
+ editAccountInformation(accountInfoEditRequest?: AccountInfoEditRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountInfo>>;
13578
13588
  /**
13579
13589
  *
13580
13590
  * @summary Get Account information
@@ -13588,6 +13598,14 @@ export declare const AccountInfoApiFp: (configuration?: Configuration) => {
13588
13598
  * @export
13589
13599
  */
13590
13600
  export declare const AccountInfoApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
13601
+ /**
13602
+ *
13603
+ * @summary Edit account information
13604
+ * @param {AccountInfoEditRequest} [accountInfoEditRequest]
13605
+ * @param {*} [options] Override http request option.
13606
+ * @throws {RequiredError}
13607
+ */
13608
+ editAccountInformation(accountInfoEditRequest?: AccountInfoEditRequest, options?: any): AxiosPromise<AccountInfo>;
13591
13609
  /**
13592
13610
  *
13593
13611
  * @summary Get Account information
@@ -13603,6 +13621,15 @@ export declare const AccountInfoApiFactory: (configuration?: Configuration, base
13603
13621
  * @extends {BaseAPI}
13604
13622
  */
13605
13623
  export declare class AccountInfoApi extends BaseAPI {
13624
+ /**
13625
+ *
13626
+ * @summary Edit account information
13627
+ * @param {AccountInfoEditRequest} [accountInfoEditRequest]
13628
+ * @param {*} [options] Override http request option.
13629
+ * @throws {RequiredError}
13630
+ * @memberof AccountInfoApi
13631
+ */
13632
+ editAccountInformation(accountInfoEditRequest?: AccountInfoEditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountInfo>>;
13606
13633
  /**
13607
13634
  *
13608
13635
  * @summary Get Account information
package/dist/api.js CHANGED
@@ -696,6 +696,37 @@ var WeekdayEnum;
696
696
  */
697
697
  const AccountInfoApiAxiosParamCreator = function (configuration) {
698
698
  return {
699
+ /**
700
+ *
701
+ * @summary Edit account information
702
+ * @param {AccountInfoEditRequest} [accountInfoEditRequest]
703
+ * @param {*} [options] Override http request option.
704
+ * @throws {RequiredError}
705
+ */
706
+ editAccountInformation: (accountInfoEditRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
707
+ const localVarPath = `/account`;
708
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
709
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
710
+ let baseOptions;
711
+ if (configuration) {
712
+ baseOptions = configuration.baseOptions;
713
+ }
714
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
715
+ const localVarHeaderParameter = {};
716
+ const localVarQueryParameter = {};
717
+ // authentication bearerAuth required
718
+ // http bearer authentication required
719
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
720
+ localVarHeaderParameter['Content-Type'] = 'application/json';
721
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
722
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
723
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
724
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountInfoEditRequest, localVarRequestOptions, configuration);
725
+ return {
726
+ url: (0, common_1.toPathString)(localVarUrlObj),
727
+ options: localVarRequestOptions,
728
+ };
729
+ }),
699
730
  /**
700
731
  *
701
732
  * @summary Get Account information
@@ -734,6 +765,19 @@ exports.AccountInfoApiAxiosParamCreator = AccountInfoApiAxiosParamCreator;
734
765
  const AccountInfoApiFp = function (configuration) {
735
766
  const localVarAxiosParamCreator = (0, exports.AccountInfoApiAxiosParamCreator)(configuration);
736
767
  return {
768
+ /**
769
+ *
770
+ * @summary Edit account information
771
+ * @param {AccountInfoEditRequest} [accountInfoEditRequest]
772
+ * @param {*} [options] Override http request option.
773
+ * @throws {RequiredError}
774
+ */
775
+ editAccountInformation(accountInfoEditRequest, options) {
776
+ return __awaiter(this, void 0, void 0, function* () {
777
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.editAccountInformation(accountInfoEditRequest, options);
778
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
779
+ });
780
+ },
737
781
  /**
738
782
  *
739
783
  * @summary Get Account information
@@ -756,6 +800,16 @@ exports.AccountInfoApiFp = AccountInfoApiFp;
756
800
  const AccountInfoApiFactory = function (configuration, basePath, axios) {
757
801
  const localVarFp = (0, exports.AccountInfoApiFp)(configuration);
758
802
  return {
803
+ /**
804
+ *
805
+ * @summary Edit account information
806
+ * @param {AccountInfoEditRequest} [accountInfoEditRequest]
807
+ * @param {*} [options] Override http request option.
808
+ * @throws {RequiredError}
809
+ */
810
+ editAccountInformation(accountInfoEditRequest, options) {
811
+ return localVarFp.editAccountInformation(accountInfoEditRequest, options).then((request) => request(axios, basePath));
812
+ },
759
813
  /**
760
814
  *
761
815
  * @summary Get Account information
@@ -775,6 +829,17 @@ exports.AccountInfoApiFactory = AccountInfoApiFactory;
775
829
  * @extends {BaseAPI}
776
830
  */
777
831
  class AccountInfoApi extends base_1.BaseAPI {
832
+ /**
833
+ *
834
+ * @summary Edit account information
835
+ * @param {AccountInfoEditRequest} [accountInfoEditRequest]
836
+ * @param {*} [options] Override http request option.
837
+ * @throws {RequiredError}
838
+ * @memberof AccountInfoApi
839
+ */
840
+ editAccountInformation(accountInfoEditRequest, options) {
841
+ return (0, exports.AccountInfoApiFp)(this.configuration).editAccountInformation(accountInfoEditRequest, options).then((request) => request(this.axios, this.basePath));
842
+ }
778
843
  /**
779
844
  *
780
845
  * @summary Get Account information
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-typescript-axios",
3
- "version": "v1.1.182",
3
+ "version": "v1.1.183",
4
4
  "description": "OpenAPI client for qovery-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [