@livechat/developer-studio-api 3.0.26 → 3.0.28
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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1024,6 +1024,7 @@ interface AppAuthorizationData {
|
|
|
1024
1024
|
|
|
1025
1025
|
type AddAppAuthorizationPayload = {
|
|
1026
1026
|
appId: string;
|
|
1027
|
+
appName: string;
|
|
1027
1028
|
} & Omit<AppAuthorizationData, "clientId">;
|
|
1028
1029
|
interface AddAppAuthorizationResult {
|
|
1029
1030
|
clientId: string;
|
|
@@ -2637,7 +2638,7 @@ declare const api: {
|
|
|
2637
2638
|
getEvents(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<AppEventDto[]>;
|
|
2638
2639
|
};
|
|
2639
2640
|
install: {
|
|
2640
|
-
|
|
2641
|
+
getInstallationsCount(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<{
|
|
2641
2642
|
installations: number;
|
|
2642
2643
|
}, any>>;
|
|
2643
2644
|
install(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1024,6 +1024,7 @@ interface AppAuthorizationData {
|
|
|
1024
1024
|
|
|
1025
1025
|
type AddAppAuthorizationPayload = {
|
|
1026
1026
|
appId: string;
|
|
1027
|
+
appName: string;
|
|
1027
1028
|
} & Omit<AppAuthorizationData, "clientId">;
|
|
1028
1029
|
interface AddAppAuthorizationResult {
|
|
1029
1030
|
clientId: string;
|
|
@@ -2637,7 +2638,7 @@ declare const api: {
|
|
|
2637
2638
|
getEvents(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<AppEventDto[]>;
|
|
2638
2639
|
};
|
|
2639
2640
|
install: {
|
|
2640
|
-
|
|
2641
|
+
getInstallationsCount(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<{
|
|
2641
2642
|
installations: number;
|
|
2642
2643
|
}, any>>;
|
|
2643
2644
|
install(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -3900,14 +3900,14 @@ var platformDpsApplicationInfrastructureApi = {
|
|
|
3900
3900
|
|
|
3901
3901
|
// src/apis/platform/dps/applications/application/install/api.ts
|
|
3902
3902
|
var platformDpsApplicationInstallApi = {
|
|
3903
|
-
|
|
3903
|
+
getInstallationsCount(appId, authorization) {
|
|
3904
3904
|
return __async(this, null, function* () {
|
|
3905
3905
|
return platformDpsClientInstance.get(
|
|
3906
|
-
`/v2/applications/${appId}/installations`,
|
|
3906
|
+
`/v2/applications/${appId}/installations/count`,
|
|
3907
3907
|
getPlatformDpsClientConfig(authorization)
|
|
3908
3908
|
).catch((error) => {
|
|
3909
3909
|
throw error.withCustomMessage(
|
|
3910
|
-
`Couldn't get app
|
|
3910
|
+
`Couldn't get app installation count. [${error.message}]`
|
|
3911
3911
|
);
|
|
3912
3912
|
});
|
|
3913
3913
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -3798,14 +3798,14 @@ var platformDpsApplicationInfrastructureApi = {
|
|
|
3798
3798
|
|
|
3799
3799
|
// src/apis/platform/dps/applications/application/install/api.ts
|
|
3800
3800
|
var platformDpsApplicationInstallApi = {
|
|
3801
|
-
|
|
3801
|
+
getInstallationsCount(appId, authorization) {
|
|
3802
3802
|
return __async(this, null, function* () {
|
|
3803
3803
|
return platformDpsClientInstance.get(
|
|
3804
|
-
`/v2/applications/${appId}/installations`,
|
|
3804
|
+
`/v2/applications/${appId}/installations/count`,
|
|
3805
3805
|
getPlatformDpsClientConfig(authorization)
|
|
3806
3806
|
).catch((error) => {
|
|
3807
3807
|
throw error.withCustomMessage(
|
|
3808
|
-
`Couldn't get app
|
|
3808
|
+
`Couldn't get app installation count. [${error.message}]`
|
|
3809
3809
|
);
|
|
3810
3810
|
});
|
|
3811
3811
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.28",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"tsup": "^7.1.0",
|
|
19
19
|
"typescript": "^5.1.6",
|
|
20
20
|
"eslint-config-custom": "0.0.7",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"tsconfig": "0.0.1",
|
|
22
|
+
"utils": "0.0.3"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "tsup",
|