@livechat/developer-studio-api 3.2.8 → 3.3.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/index.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +16 -0
- package/dist/index.mjs +16 -0
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -2023,7 +2023,8 @@ declare enum IntegrationNames {
|
|
|
2023
2023
|
Shopify = "shopify",
|
|
2024
2024
|
HubSpot = "hubspot",
|
|
2025
2025
|
BigCommerce = "bigcommerce",
|
|
2026
|
-
Text = "text"
|
|
2026
|
+
Text = "text",
|
|
2027
|
+
OpenAI = "openai"
|
|
2027
2028
|
}
|
|
2028
2029
|
declare enum IntegrationDisplayNames {
|
|
2029
2030
|
Accounts = "Accounts",
|
|
@@ -2036,7 +2037,8 @@ declare enum IntegrationDisplayNames {
|
|
|
2036
2037
|
Shopify = "Shopify",
|
|
2037
2038
|
HubSpot = "Hubspot",
|
|
2038
2039
|
BigCommerce = "BigCommerce",
|
|
2039
|
-
Text = "Text"
|
|
2040
|
+
Text = "Text",
|
|
2041
|
+
OpenAI = "OpenAI"
|
|
2040
2042
|
}
|
|
2041
2043
|
declare enum IntegrationModes {
|
|
2042
2044
|
Redirect = "redirect",
|
|
@@ -5516,6 +5518,7 @@ interface AgentDto {
|
|
|
5516
5518
|
instances: [];
|
|
5517
5519
|
api_key: string;
|
|
5518
5520
|
license_id: number;
|
|
5521
|
+
license: number;
|
|
5519
5522
|
bot: number;
|
|
5520
5523
|
account_id: string;
|
|
5521
5524
|
}
|
|
@@ -6288,6 +6291,7 @@ declare const api: {
|
|
|
6288
6291
|
install(appId: string, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
|
|
6289
6292
|
uninstall(appId: string, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
|
|
6290
6293
|
updateDirectInstallationUrl(appId: string, payload: UpdateApplicationDirectInstallUrlPayload, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
|
|
6294
|
+
getInstalledApplication(appId: string, license: string, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<ApplicationDto, any>>;
|
|
6291
6295
|
};
|
|
6292
6296
|
infrastructure: {
|
|
6293
6297
|
blocks: {
|
package/dist/index.d.ts
CHANGED
|
@@ -2023,7 +2023,8 @@ declare enum IntegrationNames {
|
|
|
2023
2023
|
Shopify = "shopify",
|
|
2024
2024
|
HubSpot = "hubspot",
|
|
2025
2025
|
BigCommerce = "bigcommerce",
|
|
2026
|
-
Text = "text"
|
|
2026
|
+
Text = "text",
|
|
2027
|
+
OpenAI = "openai"
|
|
2027
2028
|
}
|
|
2028
2029
|
declare enum IntegrationDisplayNames {
|
|
2029
2030
|
Accounts = "Accounts",
|
|
@@ -2036,7 +2037,8 @@ declare enum IntegrationDisplayNames {
|
|
|
2036
2037
|
Shopify = "Shopify",
|
|
2037
2038
|
HubSpot = "Hubspot",
|
|
2038
2039
|
BigCommerce = "BigCommerce",
|
|
2039
|
-
Text = "Text"
|
|
2040
|
+
Text = "Text",
|
|
2041
|
+
OpenAI = "OpenAI"
|
|
2040
2042
|
}
|
|
2041
2043
|
declare enum IntegrationModes {
|
|
2042
2044
|
Redirect = "redirect",
|
|
@@ -5516,6 +5518,7 @@ interface AgentDto {
|
|
|
5516
5518
|
instances: [];
|
|
5517
5519
|
api_key: string;
|
|
5518
5520
|
license_id: number;
|
|
5521
|
+
license: number;
|
|
5519
5522
|
bot: number;
|
|
5520
5523
|
account_id: string;
|
|
5521
5524
|
}
|
|
@@ -6288,6 +6291,7 @@ declare const api: {
|
|
|
6288
6291
|
install(appId: string, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
|
|
6289
6292
|
uninstall(appId: string, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
|
|
6290
6293
|
updateDirectInstallationUrl(appId: string, payload: UpdateApplicationDirectInstallUrlPayload, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
|
|
6294
|
+
getInstalledApplication(appId: string, license: string, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<ApplicationDto, any>>;
|
|
6291
6295
|
};
|
|
6292
6296
|
infrastructure: {
|
|
6293
6297
|
blocks: {
|
package/dist/index.js
CHANGED
|
@@ -2287,6 +2287,7 @@ var IntegrationNames = /* @__PURE__ */ ((IntegrationNames2) => {
|
|
|
2287
2287
|
IntegrationNames2["HubSpot"] = "hubspot";
|
|
2288
2288
|
IntegrationNames2["BigCommerce"] = "bigcommerce";
|
|
2289
2289
|
IntegrationNames2["Text"] = "text";
|
|
2290
|
+
IntegrationNames2["OpenAI"] = "openai";
|
|
2290
2291
|
return IntegrationNames2;
|
|
2291
2292
|
})(IntegrationNames || {});
|
|
2292
2293
|
var IntegrationDisplayNames = /* @__PURE__ */ ((IntegrationDisplayNames2) => {
|
|
@@ -2301,6 +2302,7 @@ var IntegrationDisplayNames = /* @__PURE__ */ ((IntegrationDisplayNames2) => {
|
|
|
2301
2302
|
IntegrationDisplayNames2["HubSpot"] = "Hubspot";
|
|
2302
2303
|
IntegrationDisplayNames2["BigCommerce"] = "BigCommerce";
|
|
2303
2304
|
IntegrationDisplayNames2["Text"] = "Text";
|
|
2305
|
+
IntegrationDisplayNames2["OpenAI"] = "OpenAI";
|
|
2304
2306
|
return IntegrationDisplayNames2;
|
|
2305
2307
|
})(IntegrationDisplayNames || {});
|
|
2306
2308
|
var IntegrationModes = /* @__PURE__ */ ((IntegrationModes2) => {
|
|
@@ -6329,6 +6331,20 @@ var platformDpsApplicationInstallApi = {
|
|
|
6329
6331
|
);
|
|
6330
6332
|
});
|
|
6331
6333
|
});
|
|
6334
|
+
},
|
|
6335
|
+
getInstalledApplication(appId, license, authorization) {
|
|
6336
|
+
return __async(this, null, function* () {
|
|
6337
|
+
return platformDpsClientInstance.get(
|
|
6338
|
+
`/v1/applications/${encodeURIComponent(appId)}/installed`,
|
|
6339
|
+
{
|
|
6340
|
+
headers: __spreadProps(__spreadValues({}, getPlatformDpsClientConfig(authorization).headers), {
|
|
6341
|
+
"X-License": license
|
|
6342
|
+
})
|
|
6343
|
+
}
|
|
6344
|
+
).catch((error) => {
|
|
6345
|
+
throw error.withCustomMessage(`Couldn't get app. [${error.message}]`);
|
|
6346
|
+
});
|
|
6347
|
+
});
|
|
6332
6348
|
}
|
|
6333
6349
|
};
|
|
6334
6350
|
|
package/dist/index.mjs
CHANGED
|
@@ -2134,6 +2134,7 @@ var IntegrationNames = /* @__PURE__ */ ((IntegrationNames2) => {
|
|
|
2134
2134
|
IntegrationNames2["HubSpot"] = "hubspot";
|
|
2135
2135
|
IntegrationNames2["BigCommerce"] = "bigcommerce";
|
|
2136
2136
|
IntegrationNames2["Text"] = "text";
|
|
2137
|
+
IntegrationNames2["OpenAI"] = "openai";
|
|
2137
2138
|
return IntegrationNames2;
|
|
2138
2139
|
})(IntegrationNames || {});
|
|
2139
2140
|
var IntegrationDisplayNames = /* @__PURE__ */ ((IntegrationDisplayNames2) => {
|
|
@@ -2148,6 +2149,7 @@ var IntegrationDisplayNames = /* @__PURE__ */ ((IntegrationDisplayNames2) => {
|
|
|
2148
2149
|
IntegrationDisplayNames2["HubSpot"] = "Hubspot";
|
|
2149
2150
|
IntegrationDisplayNames2["BigCommerce"] = "BigCommerce";
|
|
2150
2151
|
IntegrationDisplayNames2["Text"] = "Text";
|
|
2152
|
+
IntegrationDisplayNames2["OpenAI"] = "OpenAI";
|
|
2151
2153
|
return IntegrationDisplayNames2;
|
|
2152
2154
|
})(IntegrationDisplayNames || {});
|
|
2153
2155
|
var IntegrationModes = /* @__PURE__ */ ((IntegrationModes2) => {
|
|
@@ -6176,6 +6178,20 @@ var platformDpsApplicationInstallApi = {
|
|
|
6176
6178
|
);
|
|
6177
6179
|
});
|
|
6178
6180
|
});
|
|
6181
|
+
},
|
|
6182
|
+
getInstalledApplication(appId, license, authorization) {
|
|
6183
|
+
return __async(this, null, function* () {
|
|
6184
|
+
return platformDpsClientInstance.get(
|
|
6185
|
+
`/v1/applications/${encodeURIComponent(appId)}/installed`,
|
|
6186
|
+
{
|
|
6187
|
+
headers: __spreadProps(__spreadValues({}, getPlatformDpsClientConfig(authorization).headers), {
|
|
6188
|
+
"X-License": license
|
|
6189
|
+
})
|
|
6190
|
+
}
|
|
6191
|
+
).catch((error) => {
|
|
6192
|
+
throw error.withCustomMessage(`Couldn't get app. [${error.message}]`);
|
|
6193
|
+
});
|
|
6194
|
+
});
|
|
6179
6195
|
}
|
|
6180
6196
|
};
|
|
6181
6197
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
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
|
+
"tsconfig": "0.0.1",
|
|
25
|
+
"utils": "0.0.4"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsup",
|