@livechat/developer-studio-api 3.4.19 → 3.4.20
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.js +6 -6
- package/dist/index.mjs +6 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3103,7 +3103,7 @@ var HelpDeskApiError = class extends ApiErrorBase {
|
|
|
3103
3103
|
}
|
|
3104
3104
|
};
|
|
3105
3105
|
var helpdeskClientInstance = import_axios20.default.create({
|
|
3106
|
-
baseURL: "https://api.labs.helpdesk.com
|
|
3106
|
+
baseURL: "https://api.labs.helpdesk.com"
|
|
3107
3107
|
});
|
|
3108
3108
|
helpdeskClientInstance.interceptors.response.use(
|
|
3109
3109
|
(response) => response,
|
|
@@ -5773,7 +5773,7 @@ var helpdeskWebhooksApi = {
|
|
|
5773
5773
|
list(authorization) {
|
|
5774
5774
|
return __async(this, null, function* () {
|
|
5775
5775
|
const response = yield helpdeskClientInstance.get(
|
|
5776
|
-
"/webhooks",
|
|
5776
|
+
"/v1/webhooks",
|
|
5777
5777
|
getHelpDeskClientConfig(authorization)
|
|
5778
5778
|
);
|
|
5779
5779
|
return response;
|
|
@@ -5782,7 +5782,7 @@ var helpdeskWebhooksApi = {
|
|
|
5782
5782
|
get(webhookId, authorization) {
|
|
5783
5783
|
return __async(this, null, function* () {
|
|
5784
5784
|
const response = yield helpdeskClientInstance.get(
|
|
5785
|
-
`/webhooks/${encodeURIComponent(webhookId)}`,
|
|
5785
|
+
`/v1/webhooks/${encodeURIComponent(webhookId)}`,
|
|
5786
5786
|
getHelpDeskClientConfig(authorization)
|
|
5787
5787
|
);
|
|
5788
5788
|
return response;
|
|
@@ -5791,7 +5791,7 @@ var helpdeskWebhooksApi = {
|
|
|
5791
5791
|
create(payload, authorization) {
|
|
5792
5792
|
return __async(this, null, function* () {
|
|
5793
5793
|
const response = yield helpdeskClientInstance.post(
|
|
5794
|
-
"/webhooks",
|
|
5794
|
+
"/v1/webhooks",
|
|
5795
5795
|
payload,
|
|
5796
5796
|
getHelpDeskClientConfig(authorization)
|
|
5797
5797
|
);
|
|
@@ -5801,7 +5801,7 @@ var helpdeskWebhooksApi = {
|
|
|
5801
5801
|
update(webhookId, payload, authorization) {
|
|
5802
5802
|
return __async(this, null, function* () {
|
|
5803
5803
|
const response = yield helpdeskClientInstance.patch(
|
|
5804
|
-
`/webhooks/${encodeURIComponent(webhookId)}`,
|
|
5804
|
+
`/v1/webhooks/${encodeURIComponent(webhookId)}`,
|
|
5805
5805
|
payload,
|
|
5806
5806
|
getHelpDeskClientConfig(authorization)
|
|
5807
5807
|
);
|
|
@@ -5811,7 +5811,7 @@ var helpdeskWebhooksApi = {
|
|
|
5811
5811
|
delete(webhookId, authorization) {
|
|
5812
5812
|
return __async(this, null, function* () {
|
|
5813
5813
|
const response = yield helpdeskClientInstance.delete(
|
|
5814
|
-
`/webhooks/${encodeURIComponent(webhookId)}`,
|
|
5814
|
+
`/v1/webhooks/${encodeURIComponent(webhookId)}`,
|
|
5815
5815
|
getHelpDeskClientConfig(authorization)
|
|
5816
5816
|
);
|
|
5817
5817
|
return response;
|
package/dist/index.mjs
CHANGED
|
@@ -2950,7 +2950,7 @@ var HelpDeskApiError = class extends ApiErrorBase {
|
|
|
2950
2950
|
}
|
|
2951
2951
|
};
|
|
2952
2952
|
var helpdeskClientInstance = axios18.create({
|
|
2953
|
-
baseURL: "https://api.labs.helpdesk.com
|
|
2953
|
+
baseURL: "https://api.labs.helpdesk.com"
|
|
2954
2954
|
});
|
|
2955
2955
|
helpdeskClientInstance.interceptors.response.use(
|
|
2956
2956
|
(response) => response,
|
|
@@ -5620,7 +5620,7 @@ var helpdeskWebhooksApi = {
|
|
|
5620
5620
|
list(authorization) {
|
|
5621
5621
|
return __async(this, null, function* () {
|
|
5622
5622
|
const response = yield helpdeskClientInstance.get(
|
|
5623
|
-
"/webhooks",
|
|
5623
|
+
"/v1/webhooks",
|
|
5624
5624
|
getHelpDeskClientConfig(authorization)
|
|
5625
5625
|
);
|
|
5626
5626
|
return response;
|
|
@@ -5629,7 +5629,7 @@ var helpdeskWebhooksApi = {
|
|
|
5629
5629
|
get(webhookId, authorization) {
|
|
5630
5630
|
return __async(this, null, function* () {
|
|
5631
5631
|
const response = yield helpdeskClientInstance.get(
|
|
5632
|
-
`/webhooks/${encodeURIComponent(webhookId)}`,
|
|
5632
|
+
`/v1/webhooks/${encodeURIComponent(webhookId)}`,
|
|
5633
5633
|
getHelpDeskClientConfig(authorization)
|
|
5634
5634
|
);
|
|
5635
5635
|
return response;
|
|
@@ -5638,7 +5638,7 @@ var helpdeskWebhooksApi = {
|
|
|
5638
5638
|
create(payload, authorization) {
|
|
5639
5639
|
return __async(this, null, function* () {
|
|
5640
5640
|
const response = yield helpdeskClientInstance.post(
|
|
5641
|
-
"/webhooks",
|
|
5641
|
+
"/v1/webhooks",
|
|
5642
5642
|
payload,
|
|
5643
5643
|
getHelpDeskClientConfig(authorization)
|
|
5644
5644
|
);
|
|
@@ -5648,7 +5648,7 @@ var helpdeskWebhooksApi = {
|
|
|
5648
5648
|
update(webhookId, payload, authorization) {
|
|
5649
5649
|
return __async(this, null, function* () {
|
|
5650
5650
|
const response = yield helpdeskClientInstance.patch(
|
|
5651
|
-
`/webhooks/${encodeURIComponent(webhookId)}`,
|
|
5651
|
+
`/v1/webhooks/${encodeURIComponent(webhookId)}`,
|
|
5652
5652
|
payload,
|
|
5653
5653
|
getHelpDeskClientConfig(authorization)
|
|
5654
5654
|
);
|
|
@@ -5658,7 +5658,7 @@ var helpdeskWebhooksApi = {
|
|
|
5658
5658
|
delete(webhookId, authorization) {
|
|
5659
5659
|
return __async(this, null, function* () {
|
|
5660
5660
|
const response = yield helpdeskClientInstance.delete(
|
|
5661
|
-
`/webhooks/${encodeURIComponent(webhookId)}`,
|
|
5661
|
+
`/v1/webhooks/${encodeURIComponent(webhookId)}`,
|
|
5662
5662
|
getHelpDeskClientConfig(authorization)
|
|
5663
5663
|
);
|
|
5664
5664
|
return response;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.20",
|
|
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,9 +20,9 @@
|
|
|
20
20
|
"@types/node": "^17.0.12",
|
|
21
21
|
"tsup": "^7.1.0",
|
|
22
22
|
"typescript": "^5.1.6",
|
|
23
|
-
"
|
|
23
|
+
"eslint-config-custom": "0.0.10",
|
|
24
24
|
"utils": "0.0.5",
|
|
25
|
-
"
|
|
25
|
+
"tsconfig": "0.0.1"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsup",
|