@livechat/developer-studio-api 3.1.16 → 3.1.17
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/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -4059,7 +4059,7 @@ declare const api: {
|
|
|
4059
4059
|
readonly getAccountInfo: (product: BillingProduct, authorization?: PlatformClientAuthorization | undefined) => Promise<axios.AxiosResponse<BillingAccountInfoDto, any>>;
|
|
4060
4060
|
};
|
|
4061
4061
|
invoices: {
|
|
4062
|
-
readonly getInvoices: (authorization?: PlatformClientAuthorization | undefined) => Promise<axios.AxiosResponse<{
|
|
4062
|
+
readonly getInvoices: (product: BillingProduct, authorization?: PlatformClientAuthorization | undefined) => Promise<axios.AxiosResponse<{
|
|
4063
4063
|
result: BillingInvoiceDto[];
|
|
4064
4064
|
}, any>>;
|
|
4065
4065
|
readonly downloadInvoices: (number: number, authorization?: PlatformClientAuthorization | undefined) => Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -4059,7 +4059,7 @@ declare const api: {
|
|
|
4059
4059
|
readonly getAccountInfo: (product: BillingProduct, authorization?: PlatformClientAuthorization | undefined) => Promise<axios.AxiosResponse<BillingAccountInfoDto, any>>;
|
|
4060
4060
|
};
|
|
4061
4061
|
invoices: {
|
|
4062
|
-
readonly getInvoices: (authorization?: PlatformClientAuthorization | undefined) => Promise<axios.AxiosResponse<{
|
|
4062
|
+
readonly getInvoices: (product: BillingProduct, authorization?: PlatformClientAuthorization | undefined) => Promise<axios.AxiosResponse<{
|
|
4063
4063
|
result: BillingInvoiceDto[];
|
|
4064
4064
|
}, any>>;
|
|
4065
4065
|
readonly downloadInvoices: (number: number, authorization?: PlatformClientAuthorization | undefined) => Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -6791,10 +6791,13 @@ var platformBillingAccountApi = {
|
|
|
6791
6791
|
|
|
6792
6792
|
// src/apis/platform/billing/invoices/api.ts
|
|
6793
6793
|
var platformBillingInvoicesApi = {
|
|
6794
|
-
getInvoices(authorization) {
|
|
6794
|
+
getInvoices(product, authorization) {
|
|
6795
6795
|
return __async(this, null, function* () {
|
|
6796
6796
|
try {
|
|
6797
|
-
return yield platformBillingClientInstance.get(
|
|
6797
|
+
return yield platformBillingClientInstance.get(
|
|
6798
|
+
`/v2/invoices/${product}`,
|
|
6799
|
+
getPlatformBillingClientConfig(authorization)
|
|
6800
|
+
);
|
|
6798
6801
|
} catch (error) {
|
|
6799
6802
|
if (error instanceof Error) {
|
|
6800
6803
|
throw new Error(`Invoices couldn't be fetched. [${error.message}]`);
|
package/dist/index.mjs
CHANGED
|
@@ -6660,10 +6660,13 @@ var platformBillingAccountApi = {
|
|
|
6660
6660
|
|
|
6661
6661
|
// src/apis/platform/billing/invoices/api.ts
|
|
6662
6662
|
var platformBillingInvoicesApi = {
|
|
6663
|
-
getInvoices(authorization) {
|
|
6663
|
+
getInvoices(product, authorization) {
|
|
6664
6664
|
return __async(this, null, function* () {
|
|
6665
6665
|
try {
|
|
6666
|
-
return yield platformBillingClientInstance.get(
|
|
6666
|
+
return yield platformBillingClientInstance.get(
|
|
6667
|
+
`/v2/invoices/${product}`,
|
|
6668
|
+
getPlatformBillingClientConfig(authorization)
|
|
6669
|
+
);
|
|
6667
6670
|
} catch (error) {
|
|
6668
6671
|
if (error instanceof Error) {
|
|
6669
6672
|
throw new Error(`Invoices couldn't be fetched. [${error.message}]`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.17",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@types/node": "^17.0.12",
|
|
21
21
|
"tsup": "^7.1.0",
|
|
22
22
|
"typescript": "^5.1.6",
|
|
23
|
-
"eslint-config-custom": "0.0.8",
|
|
24
23
|
"tsconfig": "0.0.1",
|
|
24
|
+
"eslint-config-custom": "0.0.8",
|
|
25
25
|
"utils": "0.0.4"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|