@scaleway/sdk-billing 2.17.0 → 2.18.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/LICENSE +191 -0
- package/dist/_virtual/_rolldown/runtime.js +11 -6
- package/dist/index.gen.d.ts +3 -6
- package/dist/index.gen.js +2 -1
- package/dist/metadata.gen.d.ts +7 -5
- package/dist/metadata.gen.js +2 -1
- package/dist/v2/api.gen.d.ts +123 -120
- package/dist/v2/api.gen.js +6 -4
- package/dist/v2/constants.gen.d.ts +3 -1
- package/dist/v2/constants.gen.js +2 -1
- package/dist/v2/index.gen.d.ts +10 -5
- package/dist/v2/index.gen.js +3 -1
- package/dist/v2/marshalling.gen.d.ts +4 -2
- package/dist/v2/marshalling.gen.js +3 -1
- package/dist/v2/metadata.gen.d.ts +56 -54
- package/dist/v2/metadata.gen.js +2 -1
- package/dist/v2/types.gen.d.ts +287 -285
- package/dist/v2/validation-rules.gen.d.ts +28 -23
- package/dist/v2/validation-rules.gen.js +3 -1
- package/dist/v2beta1/api.gen.d.ts +81 -78
- package/dist/v2beta1/api.gen.js +6 -4
- package/dist/v2beta1/constants.gen.d.ts +3 -1
- package/dist/v2beta1/constants.gen.js +2 -1
- package/dist/v2beta1/index.gen.d.ts +10 -5
- package/dist/v2beta1/index.gen.js +3 -1
- package/dist/v2beta1/marshalling.gen.d.ts +3 -1
- package/dist/v2beta1/marshalling.gen.js +3 -1
- package/dist/v2beta1/metadata.gen.d.ts +86 -84
- package/dist/v2beta1/metadata.gen.js +2 -1
- package/dist/v2beta1/types.gen.d.ts +482 -480
- package/dist/v2beta1/validation-rules.gen.d.ts +9 -4
- package/dist/v2beta1/validation-rules.gen.js +3 -1
- package/package.json +5 -7
- package/dist/.vite/license.md +0 -3
- package/dist/v2/types.gen.js +0 -0
- package/dist/v2beta1/types.gen.js +0 -0
|
@@ -1,33 +1,38 @@
|
|
|
1
|
+
declare namespace validation_rules_gen_d_exports {
|
|
2
|
+
export { CreateBudgetAlertRequest, ElectronicBillingApiCreateElectronicAddressRequest, ElectronicBillingApiListElectronicAddressesRequest, ElectronicBillingApiUpdateElectronicAddressRequest, UpdateBudgetAlertRequest };
|
|
3
|
+
}
|
|
1
4
|
export declare const CreateBudgetAlertRequest: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
threshold: {
|
|
6
|
+
greaterThanOrEqual: number;
|
|
7
|
+
lessThanOrEqual: number;
|
|
8
|
+
};
|
|
6
9
|
};
|
|
7
10
|
export declare const ElectronicBillingApiCreateElectronicAddressRequest: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
value: {
|
|
12
|
+
maxLength: number;
|
|
13
|
+
minLength: number;
|
|
14
|
+
};
|
|
12
15
|
};
|
|
13
16
|
export declare const ElectronicBillingApiListElectronicAddressesRequest: {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
page: {
|
|
18
|
+
greaterThanOrEqual: number;
|
|
19
|
+
};
|
|
20
|
+
pageSize: {
|
|
21
|
+
greaterThanOrEqual: number;
|
|
22
|
+
lessThanOrEqual: number;
|
|
23
|
+
};
|
|
21
24
|
};
|
|
22
25
|
export declare const ElectronicBillingApiUpdateElectronicAddressRequest: {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
value: {
|
|
27
|
+
maxLength: number;
|
|
28
|
+
minLength: number;
|
|
29
|
+
};
|
|
27
30
|
};
|
|
28
31
|
export declare const UpdateBudgetAlertRequest: {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
threshold: {
|
|
33
|
+
greaterThanOrEqual: number;
|
|
34
|
+
lessThanOrEqual: number;
|
|
35
|
+
};
|
|
33
36
|
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { validation_rules_gen_d_exports };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
|
|
2
3
|
//#region src/v2/validation-rules.gen.ts
|
|
3
4
|
var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
4
5
|
CreateBudgetAlertRequest: () => CreateBudgetAlertRequest,
|
|
@@ -30,5 +31,6 @@ const UpdateBudgetAlertRequest = { threshold: {
|
|
|
30
31
|
greaterThanOrEqual: 1,
|
|
31
32
|
lessThanOrEqual: 100
|
|
32
33
|
} };
|
|
34
|
+
|
|
33
35
|
//#endregion
|
|
34
|
-
export { CreateBudgetAlertRequest, ElectronicBillingApiCreateElectronicAddressRequest, ElectronicBillingApiListElectronicAddressesRequest, ElectronicBillingApiUpdateElectronicAddressRequest, UpdateBudgetAlertRequest, validation_rules_gen_exports };
|
|
36
|
+
export { CreateBudgetAlertRequest, ElectronicBillingApiCreateElectronicAddressRequest, ElectronicBillingApiListElectronicAddressesRequest, ElectronicBillingApiUpdateElectronicAddressRequest, UpdateBudgetAlertRequest, validation_rules_gen_exports };
|
|
@@ -1,67 +1,68 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { Discount, DownloadInvoiceRequest, ExportInvoicesRequest, FinOpsApiListChargesRequest, GetInvoiceRequest, Invoice, ListChargesResponse, ListConsumptionsRequest, ListConsumptionsResponse, ListConsumptionsResponseConsumption, ListDiscountsRequest, ListDiscountsResponse, ListInvoicesRequest, ListInvoicesResponse, ListTaxesRequest, ListTaxesResponse, ListTaxesResponseTax, RedeemCouponRequest } from "./types.gen.js";
|
|
2
|
+
import { API } from "@scaleway/sdk-client";
|
|
3
|
+
//#region src/v2beta1/api.gen.d.ts
|
|
3
4
|
/**
|
|
4
5
|
* Billing API.
|
|
5
6
|
|
|
6
7
|
This API allows you to manage and query your Scaleway billing and consumption.
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
9
|
+
declare class API$1 extends API {
|
|
10
|
+
protected pageOfListConsumptions: (request?: Readonly<ListConsumptionsRequest>) => Promise<ListConsumptionsResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Get monthly consumption. Consumption allows you to retrieve your past or current consumption cost, by project or category.
|
|
13
|
+
*
|
|
14
|
+
* @param request - The request {@link ListConsumptionsRequest}
|
|
15
|
+
* @returns A Promise of ListConsumptionsResponse
|
|
16
|
+
*/
|
|
17
|
+
listConsumptions: (request?: Readonly<ListConsumptionsRequest>) => Promise<ListConsumptionsResponse> & {
|
|
18
|
+
all: () => Promise<ListConsumptionsResponseConsumption[]>;
|
|
19
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<ListConsumptionsResponseConsumption[], void, void>;
|
|
20
|
+
};
|
|
21
|
+
protected pageOfListTaxes: (request?: Readonly<ListTaxesRequest>) => Promise<ListTaxesResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Get monthly consumption taxes. Consumption Tax allows you to retrieve your past or current tax charges, by project or category.
|
|
24
|
+
*
|
|
25
|
+
* @param request - The request {@link ListTaxesRequest}
|
|
26
|
+
* @returns A Promise of ListTaxesResponse
|
|
27
|
+
*/
|
|
28
|
+
listTaxes: (request?: Readonly<ListTaxesRequest>) => Promise<ListTaxesResponse> & {
|
|
29
|
+
all: () => Promise<ListTaxesResponseTax[]>;
|
|
30
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<ListTaxesResponseTax[], void, void>;
|
|
31
|
+
};
|
|
32
|
+
protected pageOfListInvoices: (request?: Readonly<ListInvoicesRequest>) => Promise<ListInvoicesResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* List invoices. List all your invoices, filtering by `start_date` and `invoice_type`. Each invoice has its own ID.
|
|
35
|
+
*
|
|
36
|
+
* @param request - The request {@link ListInvoicesRequest}
|
|
37
|
+
* @returns A Promise of ListInvoicesResponse
|
|
38
|
+
*/
|
|
39
|
+
listInvoices: (request?: Readonly<ListInvoicesRequest>) => Promise<ListInvoicesResponse> & {
|
|
40
|
+
all: () => Promise<Invoice[]>;
|
|
41
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<Invoice[], void, void>;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Export invoices. Export invoices in a CSV file.
|
|
45
|
+
*
|
|
46
|
+
* @param request - The request {@link ExportInvoicesRequest}
|
|
47
|
+
* @returns A Promise of Blob
|
|
48
|
+
*/
|
|
49
|
+
exportInvoices: (request?: Readonly<ExportInvoicesRequest>) => Promise<Blob>;
|
|
50
|
+
/**
|
|
51
|
+
* Get an invoice. Get a specific invoice, specified by its ID.
|
|
52
|
+
*
|
|
53
|
+
* @param request - The request {@link GetInvoiceRequest}
|
|
54
|
+
* @returns A Promise of Invoice
|
|
55
|
+
*/
|
|
56
|
+
getInvoice: (request: Readonly<GetInvoiceRequest>) => Promise<Invoice>;
|
|
57
|
+
/**
|
|
58
|
+
* Download an invoice. Download a specific invoice, specified by its ID.
|
|
59
|
+
*
|
|
60
|
+
* @param request - The request {@link DownloadInvoiceRequest}
|
|
61
|
+
* @returns A Promise of Blob
|
|
62
|
+
*/
|
|
63
|
+
downloadInvoice: (request: Readonly<DownloadInvoiceRequest>) => Promise<Blob>;
|
|
64
|
+
protected pageOfListDiscounts: (request?: Readonly<ListDiscountsRequest>) => Promise<ListDiscountsResponse>;
|
|
65
|
+
/**
|
|
65
66
|
* List discounts. List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the discount can be applied. As a reseller:
|
|
66
67
|
- If you do not specify an `organization_id` you will list the discounts applied to your own Organization and your customers
|
|
67
68
|
- If you indicate your `organization_id` you will list only the discounts applied to your Organization
|
|
@@ -70,27 +71,29 @@ export declare class API extends ParentAPI {
|
|
|
70
71
|
* @param request - The request {@link ListDiscountsRequest}
|
|
71
72
|
* @returns A Promise of ListDiscountsResponse
|
|
72
73
|
*/
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
74
|
+
listDiscounts: (request?: Readonly<ListDiscountsRequest>) => Promise<ListDiscountsResponse> & {
|
|
75
|
+
all: () => Promise<Discount[]>;
|
|
76
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<Discount[], void, void>;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Redeem coupon. Redeem a coupon given the related code.
|
|
80
|
+
*
|
|
81
|
+
* @param request - The request {@link RedeemCouponRequest}
|
|
82
|
+
* @returns A Promise of Discount
|
|
83
|
+
*/
|
|
84
|
+
redeemCoupon: (request: Readonly<RedeemCouponRequest>) => Promise<Discount>;
|
|
84
85
|
}
|
|
85
86
|
/**
|
|
86
87
|
* Billing FinOps API.
|
|
87
88
|
*/
|
|
88
|
-
export declare class FinOpsAPI extends
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
89
|
+
export declare class FinOpsAPI extends API {
|
|
90
|
+
/**
|
|
91
|
+
* List charges. List charges for organizations or projects. You must specify at least `organization_ids` or `project_ids`.
|
|
92
|
+
*
|
|
93
|
+
* @param request - The request {@link FinOpsApiListChargesRequest}
|
|
94
|
+
* @returns A Promise of ListChargesResponse
|
|
95
|
+
*/
|
|
96
|
+
listCharges: (request?: Readonly<FinOpsApiListChargesRequest>) => Promise<ListChargesResponse>;
|
|
96
97
|
}
|
|
98
|
+
//#endregion
|
|
99
|
+
export { API$1 as API };
|
package/dist/v2beta1/api.gen.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { unmarshalDiscount, unmarshalInvoice, unmarshalListChargesResponse, unmarshalListConsumptionsResponse, unmarshalListDiscountsResponse, unmarshalListInvoicesResponse, unmarshalListTaxesResponse } from "./marshalling.gen.js";
|
|
2
|
-
import { API
|
|
2
|
+
import { API, enrichForPagination, resolveOneOf, urlParams, validatePathParam } from "@scaleway/sdk-client";
|
|
3
|
+
|
|
3
4
|
//#region src/v2beta1/api.gen.ts
|
|
4
5
|
/**
|
|
5
6
|
* Billing API.
|
|
6
7
|
|
|
7
8
|
This API allows you to manage and query your Scaleway billing and consumption.
|
|
8
9
|
*/
|
|
9
|
-
var API = class extends API
|
|
10
|
+
var API$1 = class extends API {
|
|
10
11
|
constructor(..._args) {
|
|
11
12
|
super(..._args);
|
|
12
13
|
this.pageOfListConsumptions = (request = {}) => this.client.fetch({
|
|
@@ -67,7 +68,7 @@ var API = class extends API$1 {
|
|
|
67
68
|
/**
|
|
68
69
|
* Billing FinOps API.
|
|
69
70
|
*/
|
|
70
|
-
var FinOpsAPI = class extends API
|
|
71
|
+
var FinOpsAPI = class extends API {
|
|
71
72
|
constructor(..._args2) {
|
|
72
73
|
super(..._args2);
|
|
73
74
|
this.listCharges = (request = {}) => this.client.fetch({
|
|
@@ -77,5 +78,6 @@ var FinOpsAPI = class extends API$1 {
|
|
|
77
78
|
}, unmarshalListChargesResponse);
|
|
78
79
|
}
|
|
79
80
|
};
|
|
81
|
+
|
|
80
82
|
//#endregion
|
|
81
|
-
export { API, FinOpsAPI };
|
|
83
|
+
export { API$1 as API, FinOpsAPI };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DiscountDiscountMode, DiscountFilterType, DownloadInvoiceRequestFileType, ExportInvoicesRequestFileType, ExportInvoicesRequestOrderBy, InvoiceType, ListChargesRequestOrderBy, ListConsumptionsRequestOrderBy, ListDiscountsRequestOrderBy, ListInvoicesRequestOrderBy, ListTaxesRequestOrderBy } from "./types.gen.js";
|
|
2
|
+
//#region src/v2beta1/constants.gen.d.ts
|
|
2
3
|
/** Lists all values of the enum {@link DiscountDiscountMode}. */
|
|
3
4
|
export declare const DISCOUNT_DISCOUNT_MODES: DiscountDiscountMode[];
|
|
4
5
|
/** Lists all values of the enum {@link DiscountFilterType}. */
|
|
@@ -21,3 +22,4 @@ export declare const LIST_DISCOUNTS_REQUEST_ORDER_BIES: ListDiscountsRequestOrde
|
|
|
21
22
|
export declare const LIST_INVOICES_REQUEST_ORDER_BIES: ListInvoicesRequestOrderBy[];
|
|
22
23
|
/** Lists all values of the enum {@link ListTaxesRequestOrderBy}. */
|
|
23
24
|
export declare const LIST_TAXES_REQUEST_ORDER_BIES: ListTaxesRequestOrderBy[];
|
|
25
|
+
//#endregion
|
|
@@ -86,5 +86,6 @@ const LIST_TAXES_REQUEST_ORDER_BIES = [
|
|
|
86
86
|
"category_name_desc",
|
|
87
87
|
"category_name_asc"
|
|
88
88
|
];
|
|
89
|
+
|
|
89
90
|
//#endregion
|
|
90
|
-
export { DISCOUNT_DISCOUNT_MODES, DISCOUNT_FILTER_TYPES, DOWNLOAD_INVOICE_REQUEST_FILE_TYPES, EXPORT_INVOICES_REQUEST_FILE_TYPES, EXPORT_INVOICES_REQUEST_ORDER_BIES, INVOICE_TYPES, LIST_CHARGES_REQUEST_ORDER_BIES, LIST_CONSUMPTIONS_REQUEST_ORDER_BIES, LIST_DISCOUNTS_REQUEST_ORDER_BIES, LIST_INVOICES_REQUEST_ORDER_BIES, LIST_TAXES_REQUEST_ORDER_BIES };
|
|
91
|
+
export { DISCOUNT_DISCOUNT_MODES, DISCOUNT_FILTER_TYPES, DOWNLOAD_INVOICE_REQUEST_FILE_TYPES, EXPORT_INVOICES_REQUEST_FILE_TYPES, EXPORT_INVOICES_REQUEST_ORDER_BIES, INVOICE_TYPES, LIST_CHARGES_REQUEST_ORDER_BIES, LIST_CONSUMPTIONS_REQUEST_ORDER_BIES, LIST_DISCOUNTS_REQUEST_ORDER_BIES, LIST_INVOICES_REQUEST_ORDER_BIES, LIST_TAXES_REQUEST_ORDER_BIES };
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { Charge, Discount, DiscountCoupon, DiscountDiscountMode, DiscountFilter, DiscountFilterType, DownloadInvoiceRequest, DownloadInvoiceRequestFileType, ExportInvoicesRequest, ExportInvoicesRequestFileType, ExportInvoicesRequestOrderBy, FinOpsApiListChargesRequest, GetInvoiceRequest, Invoice, InvoiceType, ListChargesRequestOrderBy, ListChargesResponse, ListConsumptionsRequest, ListConsumptionsRequestOrderBy, ListConsumptionsResponse, ListConsumptionsResponseConsumption, ListDiscountsRequest, ListDiscountsRequestOrderBy, ListDiscountsResponse, ListInvoicesRequest, ListInvoicesRequestOrderBy, ListInvoicesResponse, ListTaxesRequest, ListTaxesRequestOrderBy, ListTaxesResponse, ListTaxesResponseTax, RedeemCouponRequest } from "./types.gen.js";
|
|
2
|
+
import { API, FinOpsAPI } from "./api.gen.js";
|
|
3
|
+
import { DISCOUNT_DISCOUNT_MODES, DISCOUNT_FILTER_TYPES, DOWNLOAD_INVOICE_REQUEST_FILE_TYPES, EXPORT_INVOICES_REQUEST_FILE_TYPES, EXPORT_INVOICES_REQUEST_ORDER_BIES, INVOICE_TYPES, LIST_CHARGES_REQUEST_ORDER_BIES, LIST_CONSUMPTIONS_REQUEST_ORDER_BIES, LIST_DISCOUNTS_REQUEST_ORDER_BIES, LIST_INVOICES_REQUEST_ORDER_BIES, LIST_TAXES_REQUEST_ORDER_BIES } from "./constants.gen.js";
|
|
4
|
+
import { unmarshalDiscount, unmarshalInvoice, unmarshalListChargesResponse, unmarshalListConsumptionsResponse, unmarshalListDiscountsResponse, unmarshalListInvoicesResponse, unmarshalListTaxesResponse } from "./marshalling.gen.js";
|
|
5
|
+
import { validation_rules_gen_d_exports } from "./validation-rules.gen.js";
|
|
6
|
+
declare namespace index_gen_d_exports {
|
|
7
|
+
export { API, Charge, DISCOUNT_DISCOUNT_MODES, DISCOUNT_FILTER_TYPES, DOWNLOAD_INVOICE_REQUEST_FILE_TYPES, Discount, DiscountCoupon, DiscountDiscountMode, DiscountFilter, DiscountFilterType, DownloadInvoiceRequest, DownloadInvoiceRequestFileType, EXPORT_INVOICES_REQUEST_FILE_TYPES, EXPORT_INVOICES_REQUEST_ORDER_BIES, ExportInvoicesRequest, ExportInvoicesRequestFileType, ExportInvoicesRequestOrderBy, FinOpsAPI, FinOpsApiListChargesRequest, GetInvoiceRequest, INVOICE_TYPES, Invoice, InvoiceType, LIST_CHARGES_REQUEST_ORDER_BIES, LIST_CONSUMPTIONS_REQUEST_ORDER_BIES, LIST_DISCOUNTS_REQUEST_ORDER_BIES, LIST_INVOICES_REQUEST_ORDER_BIES, LIST_TAXES_REQUEST_ORDER_BIES, ListChargesRequestOrderBy, ListChargesResponse, ListConsumptionsRequest, ListConsumptionsRequestOrderBy, ListConsumptionsResponse, ListConsumptionsResponseConsumption, ListDiscountsRequest, ListDiscountsRequestOrderBy, ListDiscountsResponse, ListInvoicesRequest, ListInvoicesRequestOrderBy, ListInvoicesResponse, ListTaxesRequest, ListTaxesRequestOrderBy, ListTaxesResponse, ListTaxesResponseTax, RedeemCouponRequest, validation_rules_gen_d_exports as ValidationRules, unmarshalDiscount, unmarshalInvoice, unmarshalListChargesResponse, unmarshalListConsumptionsResponse, unmarshalListDiscountsResponse, unmarshalListInvoicesResponse, unmarshalListTaxesResponse };
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { API, type Charge, DISCOUNT_DISCOUNT_MODES, DISCOUNT_FILTER_TYPES, DOWNLOAD_INVOICE_REQUEST_FILE_TYPES, type Discount, type DiscountCoupon, type DiscountDiscountMode, type DiscountFilter, type DiscountFilterType, type DownloadInvoiceRequest, type DownloadInvoiceRequestFileType, EXPORT_INVOICES_REQUEST_FILE_TYPES, EXPORT_INVOICES_REQUEST_ORDER_BIES, type ExportInvoicesRequest, type ExportInvoicesRequestFileType, type ExportInvoicesRequestOrderBy, FinOpsAPI, type FinOpsApiListChargesRequest, type GetInvoiceRequest, INVOICE_TYPES, type Invoice, type InvoiceType, LIST_CHARGES_REQUEST_ORDER_BIES, LIST_CONSUMPTIONS_REQUEST_ORDER_BIES, LIST_DISCOUNTS_REQUEST_ORDER_BIES, LIST_INVOICES_REQUEST_ORDER_BIES, LIST_TAXES_REQUEST_ORDER_BIES, type ListChargesRequestOrderBy, type ListChargesResponse, type ListConsumptionsRequest, type ListConsumptionsRequestOrderBy, type ListConsumptionsResponse, type ListConsumptionsResponseConsumption, type ListDiscountsRequest, type ListDiscountsRequestOrderBy, type ListDiscountsResponse, type ListInvoicesRequest, type ListInvoicesRequestOrderBy, type ListInvoicesResponse, type ListTaxesRequest, type ListTaxesRequestOrderBy, type ListTaxesResponse, type ListTaxesResponseTax, type RedeemCouponRequest, validation_rules_gen_d_exports as ValidationRules, index_gen_d_exports, unmarshalDiscount, unmarshalInvoice, unmarshalListChargesResponse, unmarshalListConsumptionsResponse, unmarshalListDiscountsResponse, unmarshalListInvoicesResponse, unmarshalListTaxesResponse };
|
|
@@ -3,6 +3,7 @@ import { unmarshalDiscount, unmarshalInvoice, unmarshalListChargesResponse, unma
|
|
|
3
3
|
import { API, FinOpsAPI } from "./api.gen.js";
|
|
4
4
|
import { DISCOUNT_DISCOUNT_MODES, DISCOUNT_FILTER_TYPES, DOWNLOAD_INVOICE_REQUEST_FILE_TYPES, EXPORT_INVOICES_REQUEST_FILE_TYPES, EXPORT_INVOICES_REQUEST_ORDER_BIES, INVOICE_TYPES, LIST_CHARGES_REQUEST_ORDER_BIES, LIST_CONSUMPTIONS_REQUEST_ORDER_BIES, LIST_DISCOUNTS_REQUEST_ORDER_BIES, LIST_INVOICES_REQUEST_ORDER_BIES, LIST_TAXES_REQUEST_ORDER_BIES } from "./constants.gen.js";
|
|
5
5
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
6
|
+
|
|
6
7
|
//#region src/v2beta1/index.gen.ts
|
|
7
8
|
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
8
9
|
API: () => API,
|
|
@@ -27,5 +28,6 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
27
28
|
unmarshalListInvoicesResponse: () => unmarshalListInvoicesResponse,
|
|
28
29
|
unmarshalListTaxesResponse: () => unmarshalListTaxesResponse
|
|
29
30
|
});
|
|
31
|
+
|
|
30
32
|
//#endregion
|
|
31
|
-
export { API, DISCOUNT_DISCOUNT_MODES, DISCOUNT_FILTER_TYPES, DOWNLOAD_INVOICE_REQUEST_FILE_TYPES, EXPORT_INVOICES_REQUEST_FILE_TYPES, EXPORT_INVOICES_REQUEST_ORDER_BIES, FinOpsAPI, INVOICE_TYPES, LIST_CHARGES_REQUEST_ORDER_BIES, LIST_CONSUMPTIONS_REQUEST_ORDER_BIES, LIST_DISCOUNTS_REQUEST_ORDER_BIES, LIST_INVOICES_REQUEST_ORDER_BIES, LIST_TAXES_REQUEST_ORDER_BIES, validation_rules_gen_exports as ValidationRules, index_gen_exports, unmarshalDiscount, unmarshalInvoice, unmarshalListChargesResponse, unmarshalListConsumptionsResponse, unmarshalListDiscountsResponse, unmarshalListInvoicesResponse, unmarshalListTaxesResponse };
|
|
33
|
+
export { API, DISCOUNT_DISCOUNT_MODES, DISCOUNT_FILTER_TYPES, DOWNLOAD_INVOICE_REQUEST_FILE_TYPES, EXPORT_INVOICES_REQUEST_FILE_TYPES, EXPORT_INVOICES_REQUEST_ORDER_BIES, FinOpsAPI, INVOICE_TYPES, LIST_CHARGES_REQUEST_ORDER_BIES, LIST_CONSUMPTIONS_REQUEST_ORDER_BIES, LIST_DISCOUNTS_REQUEST_ORDER_BIES, LIST_INVOICES_REQUEST_ORDER_BIES, LIST_TAXES_REQUEST_ORDER_BIES, validation_rules_gen_exports as ValidationRules, index_gen_exports, unmarshalDiscount, unmarshalInvoice, unmarshalListChargesResponse, unmarshalListConsumptionsResponse, unmarshalListDiscountsResponse, unmarshalListInvoicesResponse, unmarshalListTaxesResponse };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Discount, Invoice, ListChargesResponse, ListConsumptionsResponse, ListDiscountsResponse, ListInvoicesResponse, ListTaxesResponse } from "./types.gen.js";
|
|
2
|
+
//#region src/v2beta1/marshalling.gen.d.ts
|
|
2
3
|
export declare const unmarshalDiscount: (data: unknown) => Discount;
|
|
3
4
|
export declare const unmarshalInvoice: (data: unknown) => Invoice;
|
|
4
5
|
export declare const unmarshalListChargesResponse: (data: unknown) => ListChargesResponse;
|
|
@@ -6,3 +7,4 @@ export declare const unmarshalListConsumptionsResponse: (data: unknown) => ListC
|
|
|
6
7
|
export declare const unmarshalListDiscountsResponse: (data: unknown) => ListDiscountsResponse;
|
|
7
8
|
export declare const unmarshalListInvoicesResponse: (data: unknown) => ListInvoicesResponse;
|
|
8
9
|
export declare const unmarshalListTaxesResponse: (data: unknown) => ListTaxesResponse;
|
|
10
|
+
//#endregion
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isJSONObject, unmarshalArrayOfObject, unmarshalDate, unmarshalMoney } from "@scaleway/sdk-client";
|
|
2
|
+
|
|
2
3
|
//#region src/v2beta1/marshalling.gen.ts
|
|
3
4
|
const unmarshalDiscountCoupon = (data) => {
|
|
4
5
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DiscountCoupon' failed as data isn't a dictionary.`);
|
|
@@ -131,5 +132,6 @@ const unmarshalListTaxesResponse = (data) => {
|
|
|
131
132
|
updatedAt: unmarshalDate(data.updated_at)
|
|
132
133
|
};
|
|
133
134
|
};
|
|
135
|
+
|
|
134
136
|
//#endregion
|
|
135
|
-
export { unmarshalDiscount, unmarshalInvoice, unmarshalListChargesResponse, unmarshalListConsumptionsResponse, unmarshalListDiscountsResponse, unmarshalListInvoicesResponse, unmarshalListTaxesResponse };
|
|
137
|
+
export { unmarshalDiscount, unmarshalInvoice, unmarshalListChargesResponse, unmarshalListConsumptionsResponse, unmarshalListDiscountsResponse, unmarshalListInvoicesResponse, unmarshalListTaxesResponse };
|
|
@@ -1,89 +1,91 @@
|
|
|
1
|
+
//#region src/v2beta1/metadata.gen.d.ts
|
|
1
2
|
export declare const queriesMetadata: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}, {
|
|
21
|
-
readonly methodName: 'listTaxes';
|
|
22
|
-
readonly protoName: 'ListTaxes';
|
|
23
|
-
readonly paramsType: 'ListTaxesRequest';
|
|
24
|
-
readonly returnType: 'ListTaxesResponse';
|
|
25
|
-
readonly returnTypeNamespace: '@scaleway/sdk-billing/v2beta1';
|
|
26
|
-
readonly isList: true;
|
|
27
|
-
readonly paginationType: 'offset';
|
|
28
|
-
readonly pageParamKey: 'page';
|
|
29
|
-
readonly listItemType: 'ListTaxesResponseTax';
|
|
30
|
-
readonly listItemTypeNamespace: '@scaleway/sdk-billing/v2beta1';
|
|
31
|
-
readonly isPrivate: false;
|
|
32
|
-
readonly description: '"';
|
|
33
|
-
}, {
|
|
34
|
-
readonly methodName: 'listInvoices';
|
|
35
|
-
readonly protoName: 'ListInvoices';
|
|
36
|
-
readonly paramsType: 'ListInvoicesRequest';
|
|
37
|
-
readonly returnType: 'ListInvoicesResponse';
|
|
38
|
-
readonly returnTypeNamespace: '@scaleway/sdk-billing/v2beta1';
|
|
39
|
-
readonly isList: true;
|
|
40
|
-
readonly paginationType: 'offset';
|
|
41
|
-
readonly pageParamKey: 'page';
|
|
42
|
-
readonly listItemType: 'Invoice';
|
|
43
|
-
readonly listItemTypeNamespace: '@scaleway/sdk-billing/v2beta1';
|
|
44
|
-
readonly isPrivate: false;
|
|
45
|
-
readonly description: '"';
|
|
46
|
-
}, {
|
|
47
|
-
readonly methodName: 'getInvoice';
|
|
48
|
-
readonly protoName: 'GetInvoice';
|
|
49
|
-
readonly paramsType: 'GetInvoiceRequest';
|
|
50
|
-
readonly returnType: 'Invoice';
|
|
51
|
-
readonly returnTypeNamespace: '@scaleway/sdk-billing/v2beta1';
|
|
52
|
-
readonly isList: false;
|
|
53
|
-
readonly paginationType: 'none';
|
|
54
|
-
readonly isPrivate: false;
|
|
55
|
-
readonly description: '"';
|
|
56
|
-
}, {
|
|
57
|
-
readonly methodName: 'listDiscounts';
|
|
58
|
-
readonly protoName: 'ListDiscounts';
|
|
59
|
-
readonly paramsType: 'ListDiscountsRequest';
|
|
60
|
-
readonly returnType: 'ListDiscountsResponse';
|
|
61
|
-
readonly returnTypeNamespace: '@scaleway/sdk-billing/v2beta1';
|
|
62
|
-
readonly isList: true;
|
|
63
|
-
readonly paginationType: 'offset';
|
|
64
|
-
readonly pageParamKey: 'page';
|
|
65
|
-
readonly listItemType: 'Discount';
|
|
66
|
-
readonly listItemTypeNamespace: '@scaleway/sdk-billing/v2beta1';
|
|
67
|
-
readonly isPrivate: false;
|
|
68
|
-
readonly description: '"';
|
|
69
|
-
}];
|
|
3
|
+
readonly namespace: 'billing';
|
|
4
|
+
readonly version: 'v2beta1';
|
|
5
|
+
readonly folderName: 'billingv2beta1';
|
|
6
|
+
readonly services: readonly [{
|
|
7
|
+
readonly apiClass: 'API';
|
|
8
|
+
readonly methods: readonly [{
|
|
9
|
+
readonly methodName: 'listConsumptions';
|
|
10
|
+
readonly protoName: 'ListConsumptions';
|
|
11
|
+
readonly paramsType: 'ListConsumptionsRequest';
|
|
12
|
+
readonly returnType: 'ListConsumptionsResponse';
|
|
13
|
+
readonly returnTypeNamespace: '@scaleway/sdk-billing/v2beta1';
|
|
14
|
+
readonly isList: true;
|
|
15
|
+
readonly paginationType: 'offset';
|
|
16
|
+
readonly pageParamKey: 'page';
|
|
17
|
+
readonly listItemType: 'ListConsumptionsResponseConsumption';
|
|
18
|
+
readonly listItemTypeNamespace: '@scaleway/sdk-billing/v2beta1';
|
|
19
|
+
readonly isPrivate: false;
|
|
20
|
+
readonly description: '"';
|
|
70
21
|
}, {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
22
|
+
readonly methodName: 'listTaxes';
|
|
23
|
+
readonly protoName: 'ListTaxes';
|
|
24
|
+
readonly paramsType: 'ListTaxesRequest';
|
|
25
|
+
readonly returnType: 'ListTaxesResponse';
|
|
26
|
+
readonly returnTypeNamespace: '@scaleway/sdk-billing/v2beta1';
|
|
27
|
+
readonly isList: true;
|
|
28
|
+
readonly paginationType: 'offset';
|
|
29
|
+
readonly pageParamKey: 'page';
|
|
30
|
+
readonly listItemType: 'ListTaxesResponseTax';
|
|
31
|
+
readonly listItemTypeNamespace: '@scaleway/sdk-billing/v2beta1';
|
|
32
|
+
readonly isPrivate: false;
|
|
33
|
+
readonly description: '"';
|
|
34
|
+
}, {
|
|
35
|
+
readonly methodName: 'listInvoices';
|
|
36
|
+
readonly protoName: 'ListInvoices';
|
|
37
|
+
readonly paramsType: 'ListInvoicesRequest';
|
|
38
|
+
readonly returnType: 'ListInvoicesResponse';
|
|
39
|
+
readonly returnTypeNamespace: '@scaleway/sdk-billing/v2beta1';
|
|
40
|
+
readonly isList: true;
|
|
41
|
+
readonly paginationType: 'offset';
|
|
42
|
+
readonly pageParamKey: 'page';
|
|
43
|
+
readonly listItemType: 'Invoice';
|
|
44
|
+
readonly listItemTypeNamespace: '@scaleway/sdk-billing/v2beta1';
|
|
45
|
+
readonly isPrivate: false;
|
|
46
|
+
readonly description: '"';
|
|
47
|
+
}, {
|
|
48
|
+
readonly methodName: 'getInvoice';
|
|
49
|
+
readonly protoName: 'GetInvoice';
|
|
50
|
+
readonly paramsType: 'GetInvoiceRequest';
|
|
51
|
+
readonly returnType: 'Invoice';
|
|
52
|
+
readonly returnTypeNamespace: '@scaleway/sdk-billing/v2beta1';
|
|
53
|
+
readonly isList: false;
|
|
54
|
+
readonly paginationType: 'none';
|
|
55
|
+
readonly isPrivate: false;
|
|
56
|
+
readonly description: '"';
|
|
57
|
+
}, {
|
|
58
|
+
readonly methodName: 'listDiscounts';
|
|
59
|
+
readonly protoName: 'ListDiscounts';
|
|
60
|
+
readonly paramsType: 'ListDiscountsRequest';
|
|
61
|
+
readonly returnType: 'ListDiscountsResponse';
|
|
62
|
+
readonly returnTypeNamespace: '@scaleway/sdk-billing/v2beta1';
|
|
63
|
+
readonly isList: true;
|
|
64
|
+
readonly paginationType: 'offset';
|
|
65
|
+
readonly pageParamKey: 'page';
|
|
66
|
+
readonly listItemType: 'Discount';
|
|
67
|
+
readonly listItemTypeNamespace: '@scaleway/sdk-billing/v2beta1';
|
|
68
|
+
readonly isPrivate: false;
|
|
69
|
+
readonly description: '"';
|
|
70
|
+
}];
|
|
71
|
+
}, {
|
|
72
|
+
readonly apiClass: 'FinOpsAPI';
|
|
73
|
+
readonly methods: readonly [{
|
|
74
|
+
readonly methodName: 'listCharges';
|
|
75
|
+
readonly protoName: 'ListCharges';
|
|
76
|
+
readonly paramsType: 'FinOpsApiListChargesRequest';
|
|
77
|
+
readonly returnType: 'ListChargesResponse';
|
|
78
|
+
readonly returnTypeNamespace: '@scaleway/sdk-billing/v2beta1';
|
|
79
|
+
readonly isList: true;
|
|
80
|
+
readonly paginationType: 'cursor';
|
|
81
|
+
readonly pageParamKey: 'pageToken';
|
|
82
|
+
readonly listItemType: 'Charge';
|
|
83
|
+
readonly listItemTypeNamespace: '@scaleway/sdk-billing/v2beta1';
|
|
84
|
+
readonly nextPageField: 'nextPageToken';
|
|
85
|
+
readonly isPrivate: false;
|
|
86
|
+
readonly description: '"';
|
|
87
87
|
}];
|
|
88
|
+
}];
|
|
88
89
|
};
|
|
89
90
|
export type QueriesMetadata = typeof queriesMetadata;
|
|
91
|
+
//#endregion
|