qovery-typescript-axios 1.1.367 → 1.1.369

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
@@ -4354,11 +4354,11 @@ export interface CurrentCost {
4354
4354
  */
4355
4355
  'remaining_trial_day'?: number;
4356
4356
  /**
4357
- *
4358
- * @type {RemainingCredits}
4357
+ * date when the current plan will be renewed
4358
+ * @type {string}
4359
4359
  * @memberof CurrentCost
4360
4360
  */
4361
- 'remaining_credits'?: RemainingCredits;
4361
+ 'renewal_at'?: string | null;
4362
4362
  /**
4363
4363
  *
4364
4364
  * @type {Cost}
@@ -9966,6 +9966,50 @@ export interface OrganizationAvailableRoleList {
9966
9966
  */
9967
9967
  'results'?: Array<OrganizationAvailableRole>;
9968
9968
  }
9969
+ /**
9970
+ *
9971
+ * @export
9972
+ * @interface OrganizationBillingUsageReportRequest
9973
+ */
9974
+ export interface OrganizationBillingUsageReportRequest {
9975
+ /**
9976
+ * The start date of the report
9977
+ * @type {string}
9978
+ * @memberof OrganizationBillingUsageReportRequest
9979
+ */
9980
+ 'from'?: string;
9981
+ /**
9982
+ * The end date of the report
9983
+ * @type {string}
9984
+ * @memberof OrganizationBillingUsageReportRequest
9985
+ */
9986
+ 'to'?: string;
9987
+ /**
9988
+ * The number of seconds the report will be publicly available
9989
+ * @type {number}
9990
+ * @memberof OrganizationBillingUsageReportRequest
9991
+ */
9992
+ 'report_expiration_in_seconds'?: number;
9993
+ }
9994
+ /**
9995
+ *
9996
+ * @export
9997
+ * @interface OrganizationBillingUsageReportResponse
9998
+ */
9999
+ export interface OrganizationBillingUsageReportResponse {
10000
+ /**
10001
+ * The URL of the report
10002
+ * @type {string}
10003
+ * @memberof OrganizationBillingUsageReportResponse
10004
+ */
10005
+ 'report_url'?: string;
10006
+ /**
10007
+ * The URL to delete the report. Use this URL to pro-actively delete the report before it expires
10008
+ * @type {string}
10009
+ * @memberof OrganizationBillingUsageReportResponse
10010
+ */
10011
+ 'delete_report_url'?: string;
10012
+ }
9969
10013
  /**
9970
10014
  *
9971
10015
  * @export
@@ -10049,23 +10093,17 @@ export interface OrganizationCurrentCost {
10049
10093
  */
10050
10094
  'remaining_trial_day'?: number;
10051
10095
  /**
10052
- *
10053
- * @type {RemainingCredits}
10096
+ * date when the current plan will be renewed
10097
+ * @type {string}
10054
10098
  * @memberof OrganizationCurrentCost
10055
10099
  */
10056
- 'remaining_credits'?: RemainingCredits;
10100
+ 'renewal_at'?: string | null;
10057
10101
  /**
10058
10102
  *
10059
10103
  * @type {Cost}
10060
10104
  * @memberof OrganizationCurrentCost
10061
10105
  */
10062
10106
  'cost'?: Cost;
10063
- /**
10064
- *
10065
- * @type {PaidUsage}
10066
- * @memberof OrganizationCurrentCost
10067
- */
10068
- 'paid_usage'?: PaidUsage;
10069
10107
  }
10070
10108
 
10071
10109
 
@@ -10995,55 +11033,6 @@ export interface PaginationData {
10995
11033
  */
10996
11034
  'page_size': number;
10997
11035
  }
10998
- /**
10999
- *
11000
- * @export
11001
- * @interface PaidUsage
11002
- */
11003
- export interface PaidUsage {
11004
- /**
11005
- *
11006
- * @type {number}
11007
- * @memberof PaidUsage
11008
- */
11009
- 'max_deployments_per_month'?: number;
11010
- /**
11011
- *
11012
- * @type {number}
11013
- * @memberof PaidUsage
11014
- */
11015
- 'consumed_deployments'?: number;
11016
- /**
11017
- *
11018
- * @type {number}
11019
- * @memberof PaidUsage
11020
- */
11021
- 'monthly_plan_cost'?: number;
11022
- /**
11023
- *
11024
- * @type {number}
11025
- * @memberof PaidUsage
11026
- */
11027
- 'monthly_plan_cost_in_cents'?: number;
11028
- /**
11029
- *
11030
- * @type {number}
11031
- * @memberof PaidUsage
11032
- */
11033
- 'remaining_deployments'?: number;
11034
- /**
11035
- *
11036
- * @type {boolean}
11037
- * @memberof PaidUsage
11038
- */
11039
- 'deployments_exceeded'?: boolean;
11040
- /**
11041
- *
11042
- * @type {string}
11043
- * @memberof PaidUsage
11044
- */
11045
- 'renewal_at'?: string | null;
11046
- }
11047
11036
  /**
11048
11037
  * BUSINESS & PROFESSIONAL are deprecated
11049
11038
  * @export
@@ -17649,6 +17638,51 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
17649
17638
  options: localVarRequestOptions,
17650
17639
  };
17651
17640
  },
17641
+ /**
17642
+ *
17643
+ * @summary Generate organization billing usage report
17644
+ * @param {string} organizationId Organization ID
17645
+ * @param {OrganizationBillingUsageReportRequest} [organizationBillingUsageReportRequest]
17646
+ * @param {*} [options] Override http request option.
17647
+ * @throws {RequiredError}
17648
+ */
17649
+ generateBillingUsageReport: async (organizationId: string, organizationBillingUsageReportRequest?: OrganizationBillingUsageReportRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
17650
+ // verify required parameter 'organizationId' is not null or undefined
17651
+ assertParamExists('generateBillingUsageReport', 'organizationId', organizationId)
17652
+ const localVarPath = `/organization/{organizationId}/billingUsageReport`
17653
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
17654
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17655
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17656
+ let baseOptions;
17657
+ if (configuration) {
17658
+ baseOptions = configuration.baseOptions;
17659
+ }
17660
+
17661
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17662
+ const localVarHeaderParameter = {} as any;
17663
+ const localVarQueryParameter = {} as any;
17664
+
17665
+ // authentication ApiKeyAuth required
17666
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
17667
+
17668
+ // authentication bearerAuth required
17669
+ // http bearer authentication required
17670
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
17671
+
17672
+
17673
+
17674
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17675
+
17676
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17677
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17678
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17679
+ localVarRequestOptions.data = serializeDataIfNeeded(organizationBillingUsageReportRequest, localVarRequestOptions, configuration)
17680
+
17681
+ return {
17682
+ url: toPathString(localVarUrlObj),
17683
+ options: localVarRequestOptions,
17684
+ };
17685
+ },
17652
17686
  /**
17653
17687
  * Get your cluster cost range. We are unable to give a precise cost of your infrastructure at the moment. But Qovery guarantees that the cost of your cluster will not exceed the max range.
17654
17688
  * @summary Get cluster current cost
@@ -18141,6 +18175,18 @@ export const BillingApiFp = function(configuration?: Configuration) {
18141
18175
  const localVarAxiosArgs = await localVarAxiosParamCreator.editOrganizationBillingInfo(organizationId, billingInfoRequest, options);
18142
18176
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18143
18177
  },
18178
+ /**
18179
+ *
18180
+ * @summary Generate organization billing usage report
18181
+ * @param {string} organizationId Organization ID
18182
+ * @param {OrganizationBillingUsageReportRequest} [organizationBillingUsageReportRequest]
18183
+ * @param {*} [options] Override http request option.
18184
+ * @throws {RequiredError}
18185
+ */
18186
+ async generateBillingUsageReport(organizationId: string, organizationBillingUsageReportRequest?: OrganizationBillingUsageReportRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationBillingUsageReportResponse>> {
18187
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generateBillingUsageReport(organizationId, organizationBillingUsageReportRequest, options);
18188
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18189
+ },
18144
18190
  /**
18145
18191
  * Get your cluster cost range. We are unable to give a precise cost of your infrastructure at the moment. But Qovery guarantees that the cost of your cluster will not exceed the max range.
18146
18192
  * @summary Get cluster current cost
@@ -18319,6 +18365,17 @@ export const BillingApiFactory = function (configuration?: Configuration, basePa
18319
18365
  editOrganizationBillingInfo(organizationId: string, billingInfoRequest?: BillingInfoRequest, options?: any): AxiosPromise<BillingInfo> {
18320
18366
  return localVarFp.editOrganizationBillingInfo(organizationId, billingInfoRequest, options).then((request) => request(axios, basePath));
18321
18367
  },
18368
+ /**
18369
+ *
18370
+ * @summary Generate organization billing usage report
18371
+ * @param {string} organizationId Organization ID
18372
+ * @param {OrganizationBillingUsageReportRequest} [organizationBillingUsageReportRequest]
18373
+ * @param {*} [options] Override http request option.
18374
+ * @throws {RequiredError}
18375
+ */
18376
+ generateBillingUsageReport(organizationId: string, organizationBillingUsageReportRequest?: OrganizationBillingUsageReportRequest, options?: any): AxiosPromise<OrganizationBillingUsageReportResponse> {
18377
+ return localVarFp.generateBillingUsageReport(organizationId, organizationBillingUsageReportRequest, options).then((request) => request(axios, basePath));
18378
+ },
18322
18379
  /**
18323
18380
  * Get your cluster cost range. We are unable to give a precise cost of your infrastructure at the moment. But Qovery guarantees that the cost of your cluster will not exceed the max range.
18324
18381
  * @summary Get cluster current cost
@@ -18497,6 +18554,19 @@ export class BillingApi extends BaseAPI {
18497
18554
  return BillingApiFp(this.configuration).editOrganizationBillingInfo(organizationId, billingInfoRequest, options).then((request) => request(this.axios, this.basePath));
18498
18555
  }
18499
18556
 
18557
+ /**
18558
+ *
18559
+ * @summary Generate organization billing usage report
18560
+ * @param {string} organizationId Organization ID
18561
+ * @param {OrganizationBillingUsageReportRequest} [organizationBillingUsageReportRequest]
18562
+ * @param {*} [options] Override http request option.
18563
+ * @throws {RequiredError}
18564
+ * @memberof BillingApi
18565
+ */
18566
+ public generateBillingUsageReport(organizationId: string, organizationBillingUsageReportRequest?: OrganizationBillingUsageReportRequest, options?: AxiosRequestConfig) {
18567
+ return BillingApiFp(this.configuration).generateBillingUsageReport(organizationId, organizationBillingUsageReportRequest, options).then((request) => request(this.axios, this.basePath));
18568
+ }
18569
+
18500
18570
  /**
18501
18571
  * Get your cluster cost range. We are unable to give a precise cost of your infrastructure at the moment. But Qovery guarantees that the cost of your cluster will not exceed the max range.
18502
18572
  * @summary Get cluster current cost
package/dist/api.d.ts CHANGED
@@ -4249,11 +4249,11 @@ export interface CurrentCost {
4249
4249
  */
4250
4250
  'remaining_trial_day'?: number;
4251
4251
  /**
4252
- *
4253
- * @type {RemainingCredits}
4252
+ * date when the current plan will be renewed
4253
+ * @type {string}
4254
4254
  * @memberof CurrentCost
4255
4255
  */
4256
- 'remaining_credits'?: RemainingCredits;
4256
+ 'renewal_at'?: string | null;
4257
4257
  /**
4258
4258
  *
4259
4259
  * @type {Cost}
@@ -9687,6 +9687,50 @@ export interface OrganizationAvailableRoleList {
9687
9687
  */
9688
9688
  'results'?: Array<OrganizationAvailableRole>;
9689
9689
  }
9690
+ /**
9691
+ *
9692
+ * @export
9693
+ * @interface OrganizationBillingUsageReportRequest
9694
+ */
9695
+ export interface OrganizationBillingUsageReportRequest {
9696
+ /**
9697
+ * The start date of the report
9698
+ * @type {string}
9699
+ * @memberof OrganizationBillingUsageReportRequest
9700
+ */
9701
+ 'from'?: string;
9702
+ /**
9703
+ * The end date of the report
9704
+ * @type {string}
9705
+ * @memberof OrganizationBillingUsageReportRequest
9706
+ */
9707
+ 'to'?: string;
9708
+ /**
9709
+ * The number of seconds the report will be publicly available
9710
+ * @type {number}
9711
+ * @memberof OrganizationBillingUsageReportRequest
9712
+ */
9713
+ 'report_expiration_in_seconds'?: number;
9714
+ }
9715
+ /**
9716
+ *
9717
+ * @export
9718
+ * @interface OrganizationBillingUsageReportResponse
9719
+ */
9720
+ export interface OrganizationBillingUsageReportResponse {
9721
+ /**
9722
+ * The URL of the report
9723
+ * @type {string}
9724
+ * @memberof OrganizationBillingUsageReportResponse
9725
+ */
9726
+ 'report_url'?: string;
9727
+ /**
9728
+ * The URL to delete the report. Use this URL to pro-actively delete the report before it expires
9729
+ * @type {string}
9730
+ * @memberof OrganizationBillingUsageReportResponse
9731
+ */
9732
+ 'delete_report_url'?: string;
9733
+ }
9690
9734
  /**
9691
9735
  *
9692
9736
  * @export
@@ -9770,23 +9814,17 @@ export interface OrganizationCurrentCost {
9770
9814
  */
9771
9815
  'remaining_trial_day'?: number;
9772
9816
  /**
9773
- *
9774
- * @type {RemainingCredits}
9817
+ * date when the current plan will be renewed
9818
+ * @type {string}
9775
9819
  * @memberof OrganizationCurrentCost
9776
9820
  */
9777
- 'remaining_credits'?: RemainingCredits;
9821
+ 'renewal_at'?: string | null;
9778
9822
  /**
9779
9823
  *
9780
9824
  * @type {Cost}
9781
9825
  * @memberof OrganizationCurrentCost
9782
9826
  */
9783
9827
  'cost'?: Cost;
9784
- /**
9785
- *
9786
- * @type {PaidUsage}
9787
- * @memberof OrganizationCurrentCost
9788
- */
9789
- 'paid_usage'?: PaidUsage;
9790
9828
  }
9791
9829
  /**
9792
9830
  *
@@ -10666,55 +10704,6 @@ export interface PaginationData {
10666
10704
  */
10667
10705
  'page_size': number;
10668
10706
  }
10669
- /**
10670
- *
10671
- * @export
10672
- * @interface PaidUsage
10673
- */
10674
- export interface PaidUsage {
10675
- /**
10676
- *
10677
- * @type {number}
10678
- * @memberof PaidUsage
10679
- */
10680
- 'max_deployments_per_month'?: number;
10681
- /**
10682
- *
10683
- * @type {number}
10684
- * @memberof PaidUsage
10685
- */
10686
- 'consumed_deployments'?: number;
10687
- /**
10688
- *
10689
- * @type {number}
10690
- * @memberof PaidUsage
10691
- */
10692
- 'monthly_plan_cost'?: number;
10693
- /**
10694
- *
10695
- * @type {number}
10696
- * @memberof PaidUsage
10697
- */
10698
- 'monthly_plan_cost_in_cents'?: number;
10699
- /**
10700
- *
10701
- * @type {number}
10702
- * @memberof PaidUsage
10703
- */
10704
- 'remaining_deployments'?: number;
10705
- /**
10706
- *
10707
- * @type {boolean}
10708
- * @memberof PaidUsage
10709
- */
10710
- 'deployments_exceeded'?: boolean;
10711
- /**
10712
- *
10713
- * @type {string}
10714
- * @memberof PaidUsage
10715
- */
10716
- 'renewal_at'?: string | null;
10717
- }
10718
10707
  /**
10719
10708
  * BUSINESS & PROFESSIONAL are deprecated
10720
10709
  * @export
@@ -14942,6 +14931,15 @@ export declare const BillingApiAxiosParamCreator: (configuration?: Configuration
14942
14931
  * @throws {RequiredError}
14943
14932
  */
14944
14933
  editOrganizationBillingInfo: (organizationId: string, billingInfoRequest?: BillingInfoRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
14934
+ /**
14935
+ *
14936
+ * @summary Generate organization billing usage report
14937
+ * @param {string} organizationId Organization ID
14938
+ * @param {OrganizationBillingUsageReportRequest} [organizationBillingUsageReportRequest]
14939
+ * @param {*} [options] Override http request option.
14940
+ * @throws {RequiredError}
14941
+ */
14942
+ generateBillingUsageReport: (organizationId: string, organizationBillingUsageReportRequest?: OrganizationBillingUsageReportRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
14945
14943
  /**
14946
14944
  * Get your cluster cost range. We are unable to give a precise cost of your infrastructure at the moment. But Qovery guarantees that the cost of your cluster will not exceed the max range.
14947
14945
  * @summary Get cluster current cost
@@ -15076,6 +15074,15 @@ export declare const BillingApiFp: (configuration?: Configuration) => {
15076
15074
  * @throws {RequiredError}
15077
15075
  */
15078
15076
  editOrganizationBillingInfo(organizationId: string, billingInfoRequest?: BillingInfoRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingInfo>>;
15077
+ /**
15078
+ *
15079
+ * @summary Generate organization billing usage report
15080
+ * @param {string} organizationId Organization ID
15081
+ * @param {OrganizationBillingUsageReportRequest} [organizationBillingUsageReportRequest]
15082
+ * @param {*} [options] Override http request option.
15083
+ * @throws {RequiredError}
15084
+ */
15085
+ generateBillingUsageReport(organizationId: string, organizationBillingUsageReportRequest?: OrganizationBillingUsageReportRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationBillingUsageReportResponse>>;
15079
15086
  /**
15080
15087
  * Get your cluster cost range. We are unable to give a precise cost of your infrastructure at the moment. But Qovery guarantees that the cost of your cluster will not exceed the max range.
15081
15088
  * @summary Get cluster current cost
@@ -15210,6 +15217,15 @@ export declare const BillingApiFactory: (configuration?: Configuration, basePath
15210
15217
  * @throws {RequiredError}
15211
15218
  */
15212
15219
  editOrganizationBillingInfo(organizationId: string, billingInfoRequest?: BillingInfoRequest, options?: any): AxiosPromise<BillingInfo>;
15220
+ /**
15221
+ *
15222
+ * @summary Generate organization billing usage report
15223
+ * @param {string} organizationId Organization ID
15224
+ * @param {OrganizationBillingUsageReportRequest} [organizationBillingUsageReportRequest]
15225
+ * @param {*} [options] Override http request option.
15226
+ * @throws {RequiredError}
15227
+ */
15228
+ generateBillingUsageReport(organizationId: string, organizationBillingUsageReportRequest?: OrganizationBillingUsageReportRequest, options?: any): AxiosPromise<OrganizationBillingUsageReportResponse>;
15213
15229
  /**
15214
15230
  * Get your cluster cost range. We are unable to give a precise cost of your infrastructure at the moment. But Qovery guarantees that the cost of your cluster will not exceed the max range.
15215
15231
  * @summary Get cluster current cost
@@ -15351,6 +15367,16 @@ export declare class BillingApi extends BaseAPI {
15351
15367
  * @memberof BillingApi
15352
15368
  */
15353
15369
  editOrganizationBillingInfo(organizationId: string, billingInfoRequest?: BillingInfoRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BillingInfo, any>>;
15370
+ /**
15371
+ *
15372
+ * @summary Generate organization billing usage report
15373
+ * @param {string} organizationId Organization ID
15374
+ * @param {OrganizationBillingUsageReportRequest} [organizationBillingUsageReportRequest]
15375
+ * @param {*} [options] Override http request option.
15376
+ * @throws {RequiredError}
15377
+ * @memberof BillingApi
15378
+ */
15379
+ generateBillingUsageReport(organizationId: string, organizationBillingUsageReportRequest?: OrganizationBillingUsageReportRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrganizationBillingUsageReportResponse, any>>;
15354
15380
  /**
15355
15381
  * Get your cluster cost range. We are unable to give a precise cost of your infrastructure at the moment. But Qovery guarantees that the cost of your cluster will not exceed the max range.
15356
15382
  * @summary Get cluster current cost
package/dist/api.js CHANGED
@@ -4644,6 +4644,43 @@ const BillingApiAxiosParamCreator = function (configuration) {
4644
4644
  options: localVarRequestOptions,
4645
4645
  };
4646
4646
  }),
4647
+ /**
4648
+ *
4649
+ * @summary Generate organization billing usage report
4650
+ * @param {string} organizationId Organization ID
4651
+ * @param {OrganizationBillingUsageReportRequest} [organizationBillingUsageReportRequest]
4652
+ * @param {*} [options] Override http request option.
4653
+ * @throws {RequiredError}
4654
+ */
4655
+ generateBillingUsageReport: (organizationId, organizationBillingUsageReportRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
4656
+ // verify required parameter 'organizationId' is not null or undefined
4657
+ (0, common_1.assertParamExists)('generateBillingUsageReport', 'organizationId', organizationId);
4658
+ const localVarPath = `/organization/{organizationId}/billingUsageReport`
4659
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
4660
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4661
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4662
+ let baseOptions;
4663
+ if (configuration) {
4664
+ baseOptions = configuration.baseOptions;
4665
+ }
4666
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4667
+ const localVarHeaderParameter = {};
4668
+ const localVarQueryParameter = {};
4669
+ // authentication ApiKeyAuth required
4670
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
4671
+ // authentication bearerAuth required
4672
+ // http bearer authentication required
4673
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4674
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4675
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4676
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4677
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4678
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(organizationBillingUsageReportRequest, localVarRequestOptions, configuration);
4679
+ return {
4680
+ url: (0, common_1.toPathString)(localVarUrlObj),
4681
+ options: localVarRequestOptions,
4682
+ };
4683
+ }),
4647
4684
  /**
4648
4685
  * Get your cluster cost range. We are unable to give a precise cost of your infrastructure at the moment. But Qovery guarantees that the cost of your cluster will not exceed the max range.
4649
4686
  * @summary Get cluster current cost
@@ -5076,6 +5113,20 @@ const BillingApiFp = function (configuration) {
5076
5113
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
5077
5114
  });
5078
5115
  },
5116
+ /**
5117
+ *
5118
+ * @summary Generate organization billing usage report
5119
+ * @param {string} organizationId Organization ID
5120
+ * @param {OrganizationBillingUsageReportRequest} [organizationBillingUsageReportRequest]
5121
+ * @param {*} [options] Override http request option.
5122
+ * @throws {RequiredError}
5123
+ */
5124
+ generateBillingUsageReport(organizationId, organizationBillingUsageReportRequest, options) {
5125
+ return __awaiter(this, void 0, void 0, function* () {
5126
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.generateBillingUsageReport(organizationId, organizationBillingUsageReportRequest, options);
5127
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
5128
+ });
5129
+ },
5079
5130
  /**
5080
5131
  * Get your cluster cost range. We are unable to give a precise cost of your infrastructure at the moment. But Qovery guarantees that the cost of your cluster will not exceed the max range.
5081
5132
  * @summary Get cluster current cost
@@ -5274,6 +5325,17 @@ const BillingApiFactory = function (configuration, basePath, axios) {
5274
5325
  editOrganizationBillingInfo(organizationId, billingInfoRequest, options) {
5275
5326
  return localVarFp.editOrganizationBillingInfo(organizationId, billingInfoRequest, options).then((request) => request(axios, basePath));
5276
5327
  },
5328
+ /**
5329
+ *
5330
+ * @summary Generate organization billing usage report
5331
+ * @param {string} organizationId Organization ID
5332
+ * @param {OrganizationBillingUsageReportRequest} [organizationBillingUsageReportRequest]
5333
+ * @param {*} [options] Override http request option.
5334
+ * @throws {RequiredError}
5335
+ */
5336
+ generateBillingUsageReport(organizationId, organizationBillingUsageReportRequest, options) {
5337
+ return localVarFp.generateBillingUsageReport(organizationId, organizationBillingUsageReportRequest, options).then((request) => request(axios, basePath));
5338
+ },
5277
5339
  /**
5278
5340
  * Get your cluster cost range. We are unable to give a precise cost of your infrastructure at the moment. But Qovery guarantees that the cost of your cluster will not exceed the max range.
5279
5341
  * @summary Get cluster current cost
@@ -5447,6 +5509,18 @@ class BillingApi extends base_1.BaseAPI {
5447
5509
  editOrganizationBillingInfo(organizationId, billingInfoRequest, options) {
5448
5510
  return (0, exports.BillingApiFp)(this.configuration).editOrganizationBillingInfo(organizationId, billingInfoRequest, options).then((request) => request(this.axios, this.basePath));
5449
5511
  }
5512
+ /**
5513
+ *
5514
+ * @summary Generate organization billing usage report
5515
+ * @param {string} organizationId Organization ID
5516
+ * @param {OrganizationBillingUsageReportRequest} [organizationBillingUsageReportRequest]
5517
+ * @param {*} [options] Override http request option.
5518
+ * @throws {RequiredError}
5519
+ * @memberof BillingApi
5520
+ */
5521
+ generateBillingUsageReport(organizationId, organizationBillingUsageReportRequest, options) {
5522
+ return (0, exports.BillingApiFp)(this.configuration).generateBillingUsageReport(organizationId, organizationBillingUsageReportRequest, options).then((request) => request(this.axios, this.basePath));
5523
+ }
5450
5524
  /**
5451
5525
  * Get your cluster cost range. We are unable to give a precise cost of your infrastructure at the moment. But Qovery guarantees that the cost of your cluster will not exceed the max range.
5452
5526
  * @summary Get cluster current cost
package/dist/esm/api.d.ts CHANGED
@@ -4249,11 +4249,11 @@ export interface CurrentCost {
4249
4249
  */
4250
4250
  'remaining_trial_day'?: number;
4251
4251
  /**
4252
- *
4253
- * @type {RemainingCredits}
4252
+ * date when the current plan will be renewed
4253
+ * @type {string}
4254
4254
  * @memberof CurrentCost
4255
4255
  */
4256
- 'remaining_credits'?: RemainingCredits;
4256
+ 'renewal_at'?: string | null;
4257
4257
  /**
4258
4258
  *
4259
4259
  * @type {Cost}
@@ -9687,6 +9687,50 @@ export interface OrganizationAvailableRoleList {
9687
9687
  */
9688
9688
  'results'?: Array<OrganizationAvailableRole>;
9689
9689
  }
9690
+ /**
9691
+ *
9692
+ * @export
9693
+ * @interface OrganizationBillingUsageReportRequest
9694
+ */
9695
+ export interface OrganizationBillingUsageReportRequest {
9696
+ /**
9697
+ * The start date of the report
9698
+ * @type {string}
9699
+ * @memberof OrganizationBillingUsageReportRequest
9700
+ */
9701
+ 'from'?: string;
9702
+ /**
9703
+ * The end date of the report
9704
+ * @type {string}
9705
+ * @memberof OrganizationBillingUsageReportRequest
9706
+ */
9707
+ 'to'?: string;
9708
+ /**
9709
+ * The number of seconds the report will be publicly available
9710
+ * @type {number}
9711
+ * @memberof OrganizationBillingUsageReportRequest
9712
+ */
9713
+ 'report_expiration_in_seconds'?: number;
9714
+ }
9715
+ /**
9716
+ *
9717
+ * @export
9718
+ * @interface OrganizationBillingUsageReportResponse
9719
+ */
9720
+ export interface OrganizationBillingUsageReportResponse {
9721
+ /**
9722
+ * The URL of the report
9723
+ * @type {string}
9724
+ * @memberof OrganizationBillingUsageReportResponse
9725
+ */
9726
+ 'report_url'?: string;
9727
+ /**
9728
+ * The URL to delete the report. Use this URL to pro-actively delete the report before it expires
9729
+ * @type {string}
9730
+ * @memberof OrganizationBillingUsageReportResponse
9731
+ */
9732
+ 'delete_report_url'?: string;
9733
+ }
9690
9734
  /**
9691
9735
  *
9692
9736
  * @export
@@ -9770,23 +9814,17 @@ export interface OrganizationCurrentCost {
9770
9814
  */
9771
9815
  'remaining_trial_day'?: number;
9772
9816
  /**
9773
- *
9774
- * @type {RemainingCredits}
9817
+ * date when the current plan will be renewed
9818
+ * @type {string}
9775
9819
  * @memberof OrganizationCurrentCost
9776
9820
  */
9777
- 'remaining_credits'?: RemainingCredits;
9821
+ 'renewal_at'?: string | null;
9778
9822
  /**
9779
9823
  *
9780
9824
  * @type {Cost}
9781
9825
  * @memberof OrganizationCurrentCost
9782
9826
  */
9783
9827
  'cost'?: Cost;
9784
- /**
9785
- *
9786
- * @type {PaidUsage}
9787
- * @memberof OrganizationCurrentCost
9788
- */
9789
- 'paid_usage'?: PaidUsage;
9790
9828
  }
9791
9829
  /**
9792
9830
  *
@@ -10666,55 +10704,6 @@ export interface PaginationData {
10666
10704
  */
10667
10705
  'page_size': number;
10668
10706
  }
10669
- /**
10670
- *
10671
- * @export
10672
- * @interface PaidUsage
10673
- */
10674
- export interface PaidUsage {
10675
- /**
10676
- *
10677
- * @type {number}
10678
- * @memberof PaidUsage
10679
- */
10680
- 'max_deployments_per_month'?: number;
10681
- /**
10682
- *
10683
- * @type {number}
10684
- * @memberof PaidUsage
10685
- */
10686
- 'consumed_deployments'?: number;
10687
- /**
10688
- *
10689
- * @type {number}
10690
- * @memberof PaidUsage
10691
- */
10692
- 'monthly_plan_cost'?: number;
10693
- /**
10694
- *
10695
- * @type {number}
10696
- * @memberof PaidUsage
10697
- */
10698
- 'monthly_plan_cost_in_cents'?: number;
10699
- /**
10700
- *
10701
- * @type {number}
10702
- * @memberof PaidUsage
10703
- */
10704
- 'remaining_deployments'?: number;
10705
- /**
10706
- *
10707
- * @type {boolean}
10708
- * @memberof PaidUsage
10709
- */
10710
- 'deployments_exceeded'?: boolean;
10711
- /**
10712
- *
10713
- * @type {string}
10714
- * @memberof PaidUsage
10715
- */
10716
- 'renewal_at'?: string | null;
10717
- }
10718
10707
  /**
10719
10708
  * BUSINESS & PROFESSIONAL are deprecated
10720
10709
  * @export
@@ -14942,6 +14931,15 @@ export declare const BillingApiAxiosParamCreator: (configuration?: Configuration
14942
14931
  * @throws {RequiredError}
14943
14932
  */
14944
14933
  editOrganizationBillingInfo: (organizationId: string, billingInfoRequest?: BillingInfoRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
14934
+ /**
14935
+ *
14936
+ * @summary Generate organization billing usage report
14937
+ * @param {string} organizationId Organization ID
14938
+ * @param {OrganizationBillingUsageReportRequest} [organizationBillingUsageReportRequest]
14939
+ * @param {*} [options] Override http request option.
14940
+ * @throws {RequiredError}
14941
+ */
14942
+ generateBillingUsageReport: (organizationId: string, organizationBillingUsageReportRequest?: OrganizationBillingUsageReportRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
14945
14943
  /**
14946
14944
  * Get your cluster cost range. We are unable to give a precise cost of your infrastructure at the moment. But Qovery guarantees that the cost of your cluster will not exceed the max range.
14947
14945
  * @summary Get cluster current cost
@@ -15076,6 +15074,15 @@ export declare const BillingApiFp: (configuration?: Configuration) => {
15076
15074
  * @throws {RequiredError}
15077
15075
  */
15078
15076
  editOrganizationBillingInfo(organizationId: string, billingInfoRequest?: BillingInfoRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingInfo>>;
15077
+ /**
15078
+ *
15079
+ * @summary Generate organization billing usage report
15080
+ * @param {string} organizationId Organization ID
15081
+ * @param {OrganizationBillingUsageReportRequest} [organizationBillingUsageReportRequest]
15082
+ * @param {*} [options] Override http request option.
15083
+ * @throws {RequiredError}
15084
+ */
15085
+ generateBillingUsageReport(organizationId: string, organizationBillingUsageReportRequest?: OrganizationBillingUsageReportRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationBillingUsageReportResponse>>;
15079
15086
  /**
15080
15087
  * Get your cluster cost range. We are unable to give a precise cost of your infrastructure at the moment. But Qovery guarantees that the cost of your cluster will not exceed the max range.
15081
15088
  * @summary Get cluster current cost
@@ -15210,6 +15217,15 @@ export declare const BillingApiFactory: (configuration?: Configuration, basePath
15210
15217
  * @throws {RequiredError}
15211
15218
  */
15212
15219
  editOrganizationBillingInfo(organizationId: string, billingInfoRequest?: BillingInfoRequest, options?: any): AxiosPromise<BillingInfo>;
15220
+ /**
15221
+ *
15222
+ * @summary Generate organization billing usage report
15223
+ * @param {string} organizationId Organization ID
15224
+ * @param {OrganizationBillingUsageReportRequest} [organizationBillingUsageReportRequest]
15225
+ * @param {*} [options] Override http request option.
15226
+ * @throws {RequiredError}
15227
+ */
15228
+ generateBillingUsageReport(organizationId: string, organizationBillingUsageReportRequest?: OrganizationBillingUsageReportRequest, options?: any): AxiosPromise<OrganizationBillingUsageReportResponse>;
15213
15229
  /**
15214
15230
  * Get your cluster cost range. We are unable to give a precise cost of your infrastructure at the moment. But Qovery guarantees that the cost of your cluster will not exceed the max range.
15215
15231
  * @summary Get cluster current cost
@@ -15351,6 +15367,16 @@ export declare class BillingApi extends BaseAPI {
15351
15367
  * @memberof BillingApi
15352
15368
  */
15353
15369
  editOrganizationBillingInfo(organizationId: string, billingInfoRequest?: BillingInfoRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BillingInfo, any>>;
15370
+ /**
15371
+ *
15372
+ * @summary Generate organization billing usage report
15373
+ * @param {string} organizationId Organization ID
15374
+ * @param {OrganizationBillingUsageReportRequest} [organizationBillingUsageReportRequest]
15375
+ * @param {*} [options] Override http request option.
15376
+ * @throws {RequiredError}
15377
+ * @memberof BillingApi
15378
+ */
15379
+ generateBillingUsageReport(organizationId: string, organizationBillingUsageReportRequest?: OrganizationBillingUsageReportRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrganizationBillingUsageReportResponse, any>>;
15354
15380
  /**
15355
15381
  * Get your cluster cost range. We are unable to give a precise cost of your infrastructure at the moment. But Qovery guarantees that the cost of your cluster will not exceed the max range.
15356
15382
  * @summary Get cluster current cost
package/dist/esm/api.js CHANGED
@@ -4590,6 +4590,43 @@ export const BillingApiAxiosParamCreator = function (configuration) {
4590
4590
  options: localVarRequestOptions,
4591
4591
  };
4592
4592
  }),
4593
+ /**
4594
+ *
4595
+ * @summary Generate organization billing usage report
4596
+ * @param {string} organizationId Organization ID
4597
+ * @param {OrganizationBillingUsageReportRequest} [organizationBillingUsageReportRequest]
4598
+ * @param {*} [options] Override http request option.
4599
+ * @throws {RequiredError}
4600
+ */
4601
+ generateBillingUsageReport: (organizationId, organizationBillingUsageReportRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
4602
+ // verify required parameter 'organizationId' is not null or undefined
4603
+ assertParamExists('generateBillingUsageReport', 'organizationId', organizationId);
4604
+ const localVarPath = `/organization/{organizationId}/billingUsageReport`
4605
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
4606
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4607
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4608
+ let baseOptions;
4609
+ if (configuration) {
4610
+ baseOptions = configuration.baseOptions;
4611
+ }
4612
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4613
+ const localVarHeaderParameter = {};
4614
+ const localVarQueryParameter = {};
4615
+ // authentication ApiKeyAuth required
4616
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
4617
+ // authentication bearerAuth required
4618
+ // http bearer authentication required
4619
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4620
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4621
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4622
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4623
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4624
+ localVarRequestOptions.data = serializeDataIfNeeded(organizationBillingUsageReportRequest, localVarRequestOptions, configuration);
4625
+ return {
4626
+ url: toPathString(localVarUrlObj),
4627
+ options: localVarRequestOptions,
4628
+ };
4629
+ }),
4593
4630
  /**
4594
4631
  * Get your cluster cost range. We are unable to give a precise cost of your infrastructure at the moment. But Qovery guarantees that the cost of your cluster will not exceed the max range.
4595
4632
  * @summary Get cluster current cost
@@ -5021,6 +5058,20 @@ export const BillingApiFp = function (configuration) {
5021
5058
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5022
5059
  });
5023
5060
  },
5061
+ /**
5062
+ *
5063
+ * @summary Generate organization billing usage report
5064
+ * @param {string} organizationId Organization ID
5065
+ * @param {OrganizationBillingUsageReportRequest} [organizationBillingUsageReportRequest]
5066
+ * @param {*} [options] Override http request option.
5067
+ * @throws {RequiredError}
5068
+ */
5069
+ generateBillingUsageReport(organizationId, organizationBillingUsageReportRequest, options) {
5070
+ return __awaiter(this, void 0, void 0, function* () {
5071
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.generateBillingUsageReport(organizationId, organizationBillingUsageReportRequest, options);
5072
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5073
+ });
5074
+ },
5024
5075
  /**
5025
5076
  * Get your cluster cost range. We are unable to give a precise cost of your infrastructure at the moment. But Qovery guarantees that the cost of your cluster will not exceed the max range.
5026
5077
  * @summary Get cluster current cost
@@ -5218,6 +5269,17 @@ export const BillingApiFactory = function (configuration, basePath, axios) {
5218
5269
  editOrganizationBillingInfo(organizationId, billingInfoRequest, options) {
5219
5270
  return localVarFp.editOrganizationBillingInfo(organizationId, billingInfoRequest, options).then((request) => request(axios, basePath));
5220
5271
  },
5272
+ /**
5273
+ *
5274
+ * @summary Generate organization billing usage report
5275
+ * @param {string} organizationId Organization ID
5276
+ * @param {OrganizationBillingUsageReportRequest} [organizationBillingUsageReportRequest]
5277
+ * @param {*} [options] Override http request option.
5278
+ * @throws {RequiredError}
5279
+ */
5280
+ generateBillingUsageReport(organizationId, organizationBillingUsageReportRequest, options) {
5281
+ return localVarFp.generateBillingUsageReport(organizationId, organizationBillingUsageReportRequest, options).then((request) => request(axios, basePath));
5282
+ },
5221
5283
  /**
5222
5284
  * Get your cluster cost range. We are unable to give a precise cost of your infrastructure at the moment. But Qovery guarantees that the cost of your cluster will not exceed the max range.
5223
5285
  * @summary Get cluster current cost
@@ -5390,6 +5452,18 @@ export class BillingApi extends BaseAPI {
5390
5452
  editOrganizationBillingInfo(organizationId, billingInfoRequest, options) {
5391
5453
  return BillingApiFp(this.configuration).editOrganizationBillingInfo(organizationId, billingInfoRequest, options).then((request) => request(this.axios, this.basePath));
5392
5454
  }
5455
+ /**
5456
+ *
5457
+ * @summary Generate organization billing usage report
5458
+ * @param {string} organizationId Organization ID
5459
+ * @param {OrganizationBillingUsageReportRequest} [organizationBillingUsageReportRequest]
5460
+ * @param {*} [options] Override http request option.
5461
+ * @throws {RequiredError}
5462
+ * @memberof BillingApi
5463
+ */
5464
+ generateBillingUsageReport(organizationId, organizationBillingUsageReportRequest, options) {
5465
+ return BillingApiFp(this.configuration).generateBillingUsageReport(organizationId, organizationBillingUsageReportRequest, options).then((request) => request(this.axios, this.basePath));
5466
+ }
5393
5467
  /**
5394
5468
  * Get your cluster cost range. We are unable to give a precise cost of your infrastructure at the moment. But Qovery guarantees that the cost of your cluster will not exceed the max range.
5395
5469
  * @summary Get cluster current cost
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-typescript-axios",
3
- "version": "v1.1.367",
3
+ "version": "v1.1.369",
4
4
  "description": "OpenAPI client for qovery-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {