@scaleway/sdk-billing 2.13.0 → 2.14.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/dist/v2/constants.gen.d.ts +5 -0
- package/dist/v2/constants.gen.js +12 -0
- package/dist/v2/index.gen.d.ts +1 -0
- package/dist/v2/index.gen.js +4 -1
- package/dist/v2beta1/constants.gen.d.ts +23 -0
- package/dist/v2beta1/constants.gen.js +90 -0
- package/dist/v2beta1/index.gen.d.ts +1 -0
- package/dist/v2beta1/index.gen.js +13 -1
- package/package.json +4 -4
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { BudgetAlertNotificationType, ListElectronicAddressesRequestOrderBy } from './types.gen.js';
|
|
2
|
+
/** Lists all values of the enum {@link BudgetAlertNotificationType}. */
|
|
3
|
+
export declare const BUDGET_ALERT_NOTIFICATION_TYPES: BudgetAlertNotificationType[];
|
|
4
|
+
/** Lists all values of the enum {@link ListElectronicAddressesRequestOrderBy}. */
|
|
5
|
+
export declare const LIST_ELECTRONIC_ADDRESSES_REQUEST_ORDER_BIES: ListElectronicAddressesRequestOrderBy[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/v2/constants.gen.ts
|
|
2
|
+
/** Lists all values of the enum {@link BudgetAlertNotificationType}. */
|
|
3
|
+
const BUDGET_ALERT_NOTIFICATION_TYPES = [
|
|
4
|
+
"unknown_type",
|
|
5
|
+
"sms",
|
|
6
|
+
"email",
|
|
7
|
+
"webhook"
|
|
8
|
+
];
|
|
9
|
+
/** Lists all values of the enum {@link ListElectronicAddressesRequestOrderBy}. */
|
|
10
|
+
const LIST_ELECTRONIC_ADDRESSES_REQUEST_ORDER_BIES = ["starts_at_asc", "starts_at_desc"];
|
|
11
|
+
//#endregion
|
|
12
|
+
export { BUDGET_ALERT_NOTIFICATION_TYPES, LIST_ELECTRONIC_ADDRESSES_REQUEST_ORDER_BIES };
|
package/dist/v2/index.gen.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { API, ElectronicBillingAPI, } from './api.gen.js';
|
|
2
|
+
export * from './constants.gen.js';
|
|
2
3
|
export * from './marshalling.gen.js';
|
|
3
4
|
export type { Budget, BudgetAlert, BudgetAlertNotification, BudgetAlertNotificationType, CreateBudgetAlertNotificationRequest, CreateBudgetAlertRequest, CreateBudgetRequest, DeleteBudgetAlertNotificationRequest, DeleteBudgetAlertRequest, DeleteBudgetRequest, ElectronicAddress, ElectronicBillingApiCreateElectronicAddressRequest, ElectronicBillingApiDeleteElectronicAddressRequest, ElectronicBillingApiGetElectronicAddressRequest, ElectronicBillingApiListElectronicAddressesRequest, ElectronicBillingApiUpdateElectronicAddressRequest, GetBudgetRequest, ListBudgetsRequest, ListBudgetsResponse, ListElectronicAddressesRequestOrderBy, ListElectronicAddressesResponse, UpdateBudgetAlertNotificationRequest, UpdateBudgetAlertRequest, UpdateBudgetRequest, } from './types.gen.js';
|
|
4
5
|
export * as ValidationRules from './validation-rules.gen.js';
|
package/dist/v2/index.gen.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { marshalCreateBudgetAlertNotificationRequest, marshalCreateBudgetAlertRequest, marshalCreateBudgetRequest, marshalElectronicBillingApiCreateElectronicAddressRequest, marshalElectronicBillingApiUpdateElectronicAddressRequest, marshalUpdateBudgetAlertNotificationRequest, marshalUpdateBudgetAlertRequest, marshalUpdateBudgetRequest, unmarshalBudget, unmarshalBudgetAlert, unmarshalBudgetAlertNotification, unmarshalElectronicAddress, unmarshalListBudgetsResponse, unmarshalListElectronicAddressesResponse } from "./marshalling.gen.js";
|
|
3
3
|
import { API, ElectronicBillingAPI } from "./api.gen.js";
|
|
4
|
+
import { BUDGET_ALERT_NOTIFICATION_TYPES, LIST_ELECTRONIC_ADDRESSES_REQUEST_ORDER_BIES } from "./constants.gen.js";
|
|
4
5
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
5
6
|
//#region src/v2/index.gen.ts
|
|
6
7
|
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
7
8
|
API: () => API,
|
|
9
|
+
BUDGET_ALERT_NOTIFICATION_TYPES: () => BUDGET_ALERT_NOTIFICATION_TYPES,
|
|
8
10
|
ElectronicBillingAPI: () => ElectronicBillingAPI,
|
|
11
|
+
LIST_ELECTRONIC_ADDRESSES_REQUEST_ORDER_BIES: () => LIST_ELECTRONIC_ADDRESSES_REQUEST_ORDER_BIES,
|
|
9
12
|
ValidationRules: () => validation_rules_gen_exports,
|
|
10
13
|
marshalCreateBudgetAlertNotificationRequest: () => marshalCreateBudgetAlertNotificationRequest,
|
|
11
14
|
marshalCreateBudgetAlertRequest: () => marshalCreateBudgetAlertRequest,
|
|
@@ -23,4 +26,4 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
23
26
|
unmarshalListElectronicAddressesResponse: () => unmarshalListElectronicAddressesResponse
|
|
24
27
|
});
|
|
25
28
|
//#endregion
|
|
26
|
-
export { API, ElectronicBillingAPI, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalCreateBudgetAlertNotificationRequest, marshalCreateBudgetAlertRequest, marshalCreateBudgetRequest, marshalElectronicBillingApiCreateElectronicAddressRequest, marshalElectronicBillingApiUpdateElectronicAddressRequest, marshalUpdateBudgetAlertNotificationRequest, marshalUpdateBudgetAlertRequest, marshalUpdateBudgetRequest, unmarshalBudget, unmarshalBudgetAlert, unmarshalBudgetAlertNotification, unmarshalElectronicAddress, unmarshalListBudgetsResponse, unmarshalListElectronicAddressesResponse };
|
|
29
|
+
export { API, BUDGET_ALERT_NOTIFICATION_TYPES, ElectronicBillingAPI, LIST_ELECTRONIC_ADDRESSES_REQUEST_ORDER_BIES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalCreateBudgetAlertNotificationRequest, marshalCreateBudgetAlertRequest, marshalCreateBudgetRequest, marshalElectronicBillingApiCreateElectronicAddressRequest, marshalElectronicBillingApiUpdateElectronicAddressRequest, marshalUpdateBudgetAlertNotificationRequest, marshalUpdateBudgetAlertRequest, marshalUpdateBudgetRequest, unmarshalBudget, unmarshalBudgetAlert, unmarshalBudgetAlertNotification, unmarshalElectronicAddress, unmarshalListBudgetsResponse, unmarshalListElectronicAddressesResponse };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { DiscountDiscountMode, DiscountFilterType, DownloadInvoiceRequestFileType, ExportInvoicesRequestFileType, ExportInvoicesRequestOrderBy, InvoiceType, ListChargesRequestOrderBy, ListConsumptionsRequestOrderBy, ListDiscountsRequestOrderBy, ListInvoicesRequestOrderBy, ListTaxesRequestOrderBy } from './types.gen.js';
|
|
2
|
+
/** Lists all values of the enum {@link DiscountDiscountMode}. */
|
|
3
|
+
export declare const DISCOUNT_DISCOUNT_MODES: DiscountDiscountMode[];
|
|
4
|
+
/** Lists all values of the enum {@link DiscountFilterType}. */
|
|
5
|
+
export declare const DISCOUNT_FILTER_TYPES: DiscountFilterType[];
|
|
6
|
+
/** Lists all values of the enum {@link DownloadInvoiceRequestFileType}. */
|
|
7
|
+
export declare const DOWNLOAD_INVOICE_REQUEST_FILE_TYPES: DownloadInvoiceRequestFileType[];
|
|
8
|
+
/** Lists all values of the enum {@link ExportInvoicesRequestFileType}. */
|
|
9
|
+
export declare const EXPORT_INVOICES_REQUEST_FILE_TYPES: ExportInvoicesRequestFileType[];
|
|
10
|
+
/** Lists all values of the enum {@link ExportInvoicesRequestOrderBy}. */
|
|
11
|
+
export declare const EXPORT_INVOICES_REQUEST_ORDER_BIES: ExportInvoicesRequestOrderBy[];
|
|
12
|
+
/** Lists all values of the enum {@link InvoiceType}. */
|
|
13
|
+
export declare const INVOICE_TYPES: InvoiceType[];
|
|
14
|
+
/** Lists all values of the enum {@link ListChargesRequestOrderBy}. */
|
|
15
|
+
export declare const LIST_CHARGES_REQUEST_ORDER_BIES: ListChargesRequestOrderBy[];
|
|
16
|
+
/** Lists all values of the enum {@link ListConsumptionsRequestOrderBy}. */
|
|
17
|
+
export declare const LIST_CONSUMPTIONS_REQUEST_ORDER_BIES: ListConsumptionsRequestOrderBy[];
|
|
18
|
+
/** Lists all values of the enum {@link ListDiscountsRequestOrderBy}. */
|
|
19
|
+
export declare const LIST_DISCOUNTS_REQUEST_ORDER_BIES: ListDiscountsRequestOrderBy[];
|
|
20
|
+
/** Lists all values of the enum {@link ListInvoicesRequestOrderBy}. */
|
|
21
|
+
export declare const LIST_INVOICES_REQUEST_ORDER_BIES: ListInvoicesRequestOrderBy[];
|
|
22
|
+
/** Lists all values of the enum {@link ListTaxesRequestOrderBy}. */
|
|
23
|
+
export declare const LIST_TAXES_REQUEST_ORDER_BIES: ListTaxesRequestOrderBy[];
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
//#region src/v2beta1/constants.gen.ts
|
|
2
|
+
/** Lists all values of the enum {@link DiscountDiscountMode}. */
|
|
3
|
+
const DISCOUNT_DISCOUNT_MODES = [
|
|
4
|
+
"unknown_discount_mode",
|
|
5
|
+
"discount_mode_rate",
|
|
6
|
+
"discount_mode_value",
|
|
7
|
+
"discount_mode_splittable"
|
|
8
|
+
];
|
|
9
|
+
/** Lists all values of the enum {@link DiscountFilterType}. */
|
|
10
|
+
const DISCOUNT_FILTER_TYPES = [
|
|
11
|
+
"unknown_type",
|
|
12
|
+
"category_name",
|
|
13
|
+
"product_name",
|
|
14
|
+
"product_range",
|
|
15
|
+
"resource_name",
|
|
16
|
+
"region",
|
|
17
|
+
"zone"
|
|
18
|
+
];
|
|
19
|
+
/** Lists all values of the enum {@link DownloadInvoiceRequestFileType}. */
|
|
20
|
+
const DOWNLOAD_INVOICE_REQUEST_FILE_TYPES = ["pdf"];
|
|
21
|
+
/** Lists all values of the enum {@link ExportInvoicesRequestFileType}. */
|
|
22
|
+
const EXPORT_INVOICES_REQUEST_FILE_TYPES = ["csv"];
|
|
23
|
+
/** Lists all values of the enum {@link ExportInvoicesRequestOrderBy}. */
|
|
24
|
+
const EXPORT_INVOICES_REQUEST_ORDER_BIES = [
|
|
25
|
+
"invoice_number_desc",
|
|
26
|
+
"invoice_number_asc",
|
|
27
|
+
"start_date_desc",
|
|
28
|
+
"start_date_asc",
|
|
29
|
+
"issued_date_desc",
|
|
30
|
+
"issued_date_asc",
|
|
31
|
+
"due_date_desc",
|
|
32
|
+
"due_date_asc",
|
|
33
|
+
"total_untaxed_desc",
|
|
34
|
+
"total_untaxed_asc",
|
|
35
|
+
"total_taxed_desc",
|
|
36
|
+
"total_taxed_asc",
|
|
37
|
+
"invoice_type_desc",
|
|
38
|
+
"invoice_type_asc"
|
|
39
|
+
];
|
|
40
|
+
/** Lists all values of the enum {@link InvoiceType}. */
|
|
41
|
+
const INVOICE_TYPES = [
|
|
42
|
+
"unknown_type",
|
|
43
|
+
"periodic",
|
|
44
|
+
"purchase",
|
|
45
|
+
"credit_note"
|
|
46
|
+
];
|
|
47
|
+
/** Lists all values of the enum {@link ListChargesRequestOrderBy}. */
|
|
48
|
+
const LIST_CHARGES_REQUEST_ORDER_BIES = ["start_date_asc", "start_date_desc"];
|
|
49
|
+
/** Lists all values of the enum {@link ListConsumptionsRequestOrderBy}. */
|
|
50
|
+
const LIST_CONSUMPTIONS_REQUEST_ORDER_BIES = [
|
|
51
|
+
"updated_at_desc",
|
|
52
|
+
"updated_at_asc",
|
|
53
|
+
"category_name_desc",
|
|
54
|
+
"category_name_asc"
|
|
55
|
+
];
|
|
56
|
+
/** Lists all values of the enum {@link ListDiscountsRequestOrderBy}. */
|
|
57
|
+
const LIST_DISCOUNTS_REQUEST_ORDER_BIES = [
|
|
58
|
+
"creation_date_desc",
|
|
59
|
+
"creation_date_asc",
|
|
60
|
+
"start_date_desc",
|
|
61
|
+
"start_date_asc",
|
|
62
|
+
"stop_date_desc",
|
|
63
|
+
"stop_date_asc"
|
|
64
|
+
];
|
|
65
|
+
/** Lists all values of the enum {@link ListInvoicesRequestOrderBy}. */
|
|
66
|
+
const LIST_INVOICES_REQUEST_ORDER_BIES = [
|
|
67
|
+
"invoice_number_desc",
|
|
68
|
+
"invoice_number_asc",
|
|
69
|
+
"start_date_desc",
|
|
70
|
+
"start_date_asc",
|
|
71
|
+
"issued_date_desc",
|
|
72
|
+
"issued_date_asc",
|
|
73
|
+
"due_date_desc",
|
|
74
|
+
"due_date_asc",
|
|
75
|
+
"total_untaxed_desc",
|
|
76
|
+
"total_untaxed_asc",
|
|
77
|
+
"total_taxed_desc",
|
|
78
|
+
"total_taxed_asc",
|
|
79
|
+
"invoice_type_desc",
|
|
80
|
+
"invoice_type_asc"
|
|
81
|
+
];
|
|
82
|
+
/** Lists all values of the enum {@link ListTaxesRequestOrderBy}. */
|
|
83
|
+
const LIST_TAXES_REQUEST_ORDER_BIES = [
|
|
84
|
+
"updated_at_desc",
|
|
85
|
+
"updated_at_asc",
|
|
86
|
+
"category_name_desc",
|
|
87
|
+
"category_name_asc"
|
|
88
|
+
];
|
|
89
|
+
//#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 };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { API, FinOpsAPI, } from './api.gen.js';
|
|
2
|
+
export * from './constants.gen.js';
|
|
2
3
|
export * from './marshalling.gen.js';
|
|
3
4
|
export type { 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';
|
|
4
5
|
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { unmarshalDiscount, unmarshalInvoice, unmarshalListChargesResponse, unmarshalListConsumptionsResponse, unmarshalListDiscountsResponse, unmarshalListInvoicesResponse, unmarshalListTaxesResponse } from "./marshalling.gen.js";
|
|
3
3
|
import { API, FinOpsAPI } from "./api.gen.js";
|
|
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";
|
|
4
5
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
5
6
|
//#region src/v2beta1/index.gen.ts
|
|
6
7
|
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
7
8
|
API: () => API,
|
|
9
|
+
DISCOUNT_DISCOUNT_MODES: () => DISCOUNT_DISCOUNT_MODES,
|
|
10
|
+
DISCOUNT_FILTER_TYPES: () => DISCOUNT_FILTER_TYPES,
|
|
11
|
+
DOWNLOAD_INVOICE_REQUEST_FILE_TYPES: () => DOWNLOAD_INVOICE_REQUEST_FILE_TYPES,
|
|
12
|
+
EXPORT_INVOICES_REQUEST_FILE_TYPES: () => EXPORT_INVOICES_REQUEST_FILE_TYPES,
|
|
13
|
+
EXPORT_INVOICES_REQUEST_ORDER_BIES: () => EXPORT_INVOICES_REQUEST_ORDER_BIES,
|
|
8
14
|
FinOpsAPI: () => FinOpsAPI,
|
|
15
|
+
INVOICE_TYPES: () => INVOICE_TYPES,
|
|
16
|
+
LIST_CHARGES_REQUEST_ORDER_BIES: () => LIST_CHARGES_REQUEST_ORDER_BIES,
|
|
17
|
+
LIST_CONSUMPTIONS_REQUEST_ORDER_BIES: () => LIST_CONSUMPTIONS_REQUEST_ORDER_BIES,
|
|
18
|
+
LIST_DISCOUNTS_REQUEST_ORDER_BIES: () => LIST_DISCOUNTS_REQUEST_ORDER_BIES,
|
|
19
|
+
LIST_INVOICES_REQUEST_ORDER_BIES: () => LIST_INVOICES_REQUEST_ORDER_BIES,
|
|
20
|
+
LIST_TAXES_REQUEST_ORDER_BIES: () => LIST_TAXES_REQUEST_ORDER_BIES,
|
|
9
21
|
ValidationRules: () => validation_rules_gen_exports,
|
|
10
22
|
unmarshalDiscount: () => unmarshalDiscount,
|
|
11
23
|
unmarshalInvoice: () => unmarshalInvoice,
|
|
@@ -16,4 +28,4 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
16
28
|
unmarshalListTaxesResponse: () => unmarshalListTaxesResponse
|
|
17
29
|
});
|
|
18
30
|
//#endregion
|
|
19
|
-
export { API, FinOpsAPI, validation_rules_gen_exports as ValidationRules, index_gen_exports, unmarshalDiscount, unmarshalInvoice, unmarshalListChargesResponse, unmarshalListConsumptionsResponse, unmarshalListDiscountsResponse, unmarshalListInvoicesResponse, unmarshalListTaxesResponse };
|
|
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-billing",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.14.0",
|
|
4
4
|
"description": "Scaleway SDK billing",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@scaleway/random-name": "6.0.2",
|
|
36
|
-
"@scaleway/sdk-std": "2.
|
|
36
|
+
"@scaleway/sdk-std": "2.7.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
39
|
+
"@repo/configs": "^0.1.1",
|
|
40
|
+
"@scaleway/sdk-client": "^2.6.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@scaleway/sdk-client": "^2.6.0"
|