@livechat/developer-studio-api 3.1.5 → 3.1.7
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 +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -362,7 +362,7 @@ interface TextPlatformDashboardPaymentDto {
|
|
|
362
362
|
interface TextPlatformDashboardReportItemDto {
|
|
363
363
|
usage: number;
|
|
364
364
|
amount: number;
|
|
365
|
-
service?: "agent-api" | "customer-api" | "configuration-api" | "lc-webhooks" | "reports-api";
|
|
365
|
+
service?: "agent-api" | "customer-api" | "configuration-api" | "lc-webhooks" | "reports-api" | "lang-id-api";
|
|
366
366
|
action?: string;
|
|
367
367
|
source?: string;
|
|
368
368
|
}
|
|
@@ -378,7 +378,7 @@ interface TextPlatformDashboardCreditsDto {
|
|
|
378
378
|
interface GetTextPlatformDashboardReportParams {
|
|
379
379
|
from: string;
|
|
380
380
|
to: string;
|
|
381
|
-
service?: "agent-api" | "customer-api" | "configuration-api" | "lc-webhooks" | "reports-api";
|
|
381
|
+
service?: "agent-api" | "customer-api" | "configuration-api" | "lc-webhooks" | "reports-api" | "lang-id-api";
|
|
382
382
|
action?: string;
|
|
383
383
|
source?: string;
|
|
384
384
|
time_distribution: "hour" | "day";
|
|
@@ -4697,7 +4697,7 @@ declare const api: {
|
|
|
4697
4697
|
getReport(params: GetTextPlatformDashboardReportParams, authorization?: PlatformClientAuthorization | undefined): Promise<TextPlatformDashboardReportDto>;
|
|
4698
4698
|
getCredits(authorization?: PlatformClientAuthorization | undefined): Promise<TextPlatformDashboardCreditsDto>;
|
|
4699
4699
|
getPayment(authorization?: PlatformClientAuthorization | undefined): Promise<TextPlatformDashboardPaymentDto>;
|
|
4700
|
-
registerDeveloper(authorization?: PlatformClientAuthorization | undefined): Promise<
|
|
4700
|
+
registerDeveloper(authorization?: PlatformClientAuthorization | undefined): Promise<void>;
|
|
4701
4701
|
};
|
|
4702
4702
|
workflow: {
|
|
4703
4703
|
workflows: {
|
package/dist/index.d.ts
CHANGED
|
@@ -362,7 +362,7 @@ interface TextPlatformDashboardPaymentDto {
|
|
|
362
362
|
interface TextPlatformDashboardReportItemDto {
|
|
363
363
|
usage: number;
|
|
364
364
|
amount: number;
|
|
365
|
-
service?: "agent-api" | "customer-api" | "configuration-api" | "lc-webhooks" | "reports-api";
|
|
365
|
+
service?: "agent-api" | "customer-api" | "configuration-api" | "lc-webhooks" | "reports-api" | "lang-id-api";
|
|
366
366
|
action?: string;
|
|
367
367
|
source?: string;
|
|
368
368
|
}
|
|
@@ -378,7 +378,7 @@ interface TextPlatformDashboardCreditsDto {
|
|
|
378
378
|
interface GetTextPlatformDashboardReportParams {
|
|
379
379
|
from: string;
|
|
380
380
|
to: string;
|
|
381
|
-
service?: "agent-api" | "customer-api" | "configuration-api" | "lc-webhooks" | "reports-api";
|
|
381
|
+
service?: "agent-api" | "customer-api" | "configuration-api" | "lc-webhooks" | "reports-api" | "lang-id-api";
|
|
382
382
|
action?: string;
|
|
383
383
|
source?: string;
|
|
384
384
|
time_distribution: "hour" | "day";
|
|
@@ -4697,7 +4697,7 @@ declare const api: {
|
|
|
4697
4697
|
getReport(params: GetTextPlatformDashboardReportParams, authorization?: PlatformClientAuthorization | undefined): Promise<TextPlatformDashboardReportDto>;
|
|
4698
4698
|
getCredits(authorization?: PlatformClientAuthorization | undefined): Promise<TextPlatformDashboardCreditsDto>;
|
|
4699
4699
|
getPayment(authorization?: PlatformClientAuthorization | undefined): Promise<TextPlatformDashboardPaymentDto>;
|
|
4700
|
-
registerDeveloper(authorization?: PlatformClientAuthorization | undefined): Promise<
|
|
4700
|
+
registerDeveloper(authorization?: PlatformClientAuthorization | undefined): Promise<void>;
|
|
4701
4701
|
};
|
|
4702
4702
|
workflow: {
|
|
4703
4703
|
workflows: {
|
package/dist/index.js
CHANGED
|
@@ -1474,7 +1474,7 @@ function getTextClientConfig(option = {}) {
|
|
|
1474
1474
|
}
|
|
1475
1475
|
function initTextClient(baseUrl, token) {
|
|
1476
1476
|
if (baseUrl && token) {
|
|
1477
|
-
updateTextClient(token);
|
|
1477
|
+
updateTextClient(baseUrl, token);
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
1480
|
function updateTextClient(baseUrl, token) {
|
package/dist/index.mjs
CHANGED
|
@@ -1344,7 +1344,7 @@ function getTextClientConfig(option = {}) {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
function initTextClient(baseUrl, token) {
|
|
1346
1346
|
if (baseUrl && token) {
|
|
1347
|
-
updateTextClient(token);
|
|
1347
|
+
updateTextClient(baseUrl, token);
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
1350
1350
|
function updateTextClient(baseUrl, token) {
|
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.7",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"tsup": "^7.1.0",
|
|
22
22
|
"typescript": "^5.1.6",
|
|
23
23
|
"eslint-config-custom": "0.0.8",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
24
|
+
"utils": "0.0.4",
|
|
25
|
+
"tsconfig": "0.0.1"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsup",
|