@livechat/developer-studio-api 2.3.50 → 2.3.51
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 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +35 -0
- package/dist/index.mjs +35 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2357,6 +2357,8 @@ declare const api: {
|
|
|
2357
2357
|
getEvents(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<AppEventDto[]>;
|
|
2358
2358
|
};
|
|
2359
2359
|
install: {
|
|
2360
|
+
install(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
2361
|
+
uninstall(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
2360
2362
|
updateDirectInstallationUrl(appId: string, payload: UpdateApplicationDirectInstallUrlPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
2361
2363
|
};
|
|
2362
2364
|
infrastructure: {
|
package/dist/index.d.ts
CHANGED
|
@@ -2357,6 +2357,8 @@ declare const api: {
|
|
|
2357
2357
|
getEvents(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<AppEventDto[]>;
|
|
2358
2358
|
};
|
|
2359
2359
|
install: {
|
|
2360
|
+
install(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
2361
|
+
uninstall(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
2360
2362
|
updateDirectInstallationUrl(appId: string, payload: UpdateApplicationDirectInstallUrlPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
2361
2363
|
};
|
|
2362
2364
|
infrastructure: {
|
package/dist/index.js
CHANGED
|
@@ -4137,6 +4137,41 @@ var platformDpsApplicationInfrastructureApi = {
|
|
|
4137
4137
|
|
|
4138
4138
|
// src/apis/platform/dps/applications/application/install/api.ts
|
|
4139
4139
|
var platformDpsApplicationInstallApi = {
|
|
4140
|
+
install(appId, authorization) {
|
|
4141
|
+
return __async(this, null, function* () {
|
|
4142
|
+
try {
|
|
4143
|
+
yield platformDpsClientInstance.put(
|
|
4144
|
+
`/v2/applications/${appId}/install`,
|
|
4145
|
+
{},
|
|
4146
|
+
getPlatformDpsClientConfig(authorization)
|
|
4147
|
+
);
|
|
4148
|
+
} catch (error) {
|
|
4149
|
+
if (error instanceof Error) {
|
|
4150
|
+
throw new Error(
|
|
4151
|
+
`App couldn't be installed. [${error.message}]`
|
|
4152
|
+
);
|
|
4153
|
+
}
|
|
4154
|
+
throw error;
|
|
4155
|
+
}
|
|
4156
|
+
});
|
|
4157
|
+
},
|
|
4158
|
+
uninstall(appId, authorization) {
|
|
4159
|
+
return __async(this, null, function* () {
|
|
4160
|
+
try {
|
|
4161
|
+
yield platformDpsClientInstance.delete(
|
|
4162
|
+
`/v2/applications/${appId}/install`,
|
|
4163
|
+
getPlatformDpsClientConfig(authorization)
|
|
4164
|
+
);
|
|
4165
|
+
} catch (error) {
|
|
4166
|
+
if (error instanceof Error) {
|
|
4167
|
+
throw new Error(
|
|
4168
|
+
`App couldn't be uninstalled. [${error.message}]`
|
|
4169
|
+
);
|
|
4170
|
+
}
|
|
4171
|
+
throw error;
|
|
4172
|
+
}
|
|
4173
|
+
});
|
|
4174
|
+
},
|
|
4140
4175
|
updateDirectInstallationUrl(appId, payload, authorization) {
|
|
4141
4176
|
return __async(this, null, function* () {
|
|
4142
4177
|
try {
|
package/dist/index.mjs
CHANGED
|
@@ -4041,6 +4041,41 @@ var platformDpsApplicationInfrastructureApi = {
|
|
|
4041
4041
|
|
|
4042
4042
|
// src/apis/platform/dps/applications/application/install/api.ts
|
|
4043
4043
|
var platformDpsApplicationInstallApi = {
|
|
4044
|
+
install(appId, authorization) {
|
|
4045
|
+
return __async(this, null, function* () {
|
|
4046
|
+
try {
|
|
4047
|
+
yield platformDpsClientInstance.put(
|
|
4048
|
+
`/v2/applications/${appId}/install`,
|
|
4049
|
+
{},
|
|
4050
|
+
getPlatformDpsClientConfig(authorization)
|
|
4051
|
+
);
|
|
4052
|
+
} catch (error) {
|
|
4053
|
+
if (error instanceof Error) {
|
|
4054
|
+
throw new Error(
|
|
4055
|
+
`App couldn't be installed. [${error.message}]`
|
|
4056
|
+
);
|
|
4057
|
+
}
|
|
4058
|
+
throw error;
|
|
4059
|
+
}
|
|
4060
|
+
});
|
|
4061
|
+
},
|
|
4062
|
+
uninstall(appId, authorization) {
|
|
4063
|
+
return __async(this, null, function* () {
|
|
4064
|
+
try {
|
|
4065
|
+
yield platformDpsClientInstance.delete(
|
|
4066
|
+
`/v2/applications/${appId}/install`,
|
|
4067
|
+
getPlatformDpsClientConfig(authorization)
|
|
4068
|
+
);
|
|
4069
|
+
} catch (error) {
|
|
4070
|
+
if (error instanceof Error) {
|
|
4071
|
+
throw new Error(
|
|
4072
|
+
`App couldn't be uninstalled. [${error.message}]`
|
|
4073
|
+
);
|
|
4074
|
+
}
|
|
4075
|
+
throw error;
|
|
4076
|
+
}
|
|
4077
|
+
});
|
|
4078
|
+
},
|
|
4044
4079
|
updateDirectInstallationUrl(appId, payload, authorization) {
|
|
4045
4080
|
return __async(this, null, function* () {
|
|
4046
4081
|
try {
|