@livechat/developer-studio-api 3.0.50 → 3.0.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 +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +30 -27
- package/dist/index.mjs +30 -27
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as shopify_api_node from 'shopify-api-node';
|
|
1
2
|
import * as axios from 'axios';
|
|
2
3
|
import { AxiosRequestConfig } from 'axios';
|
|
3
4
|
|
|
@@ -590,7 +591,7 @@ interface MailchimpListWebhook {
|
|
|
590
591
|
};
|
|
591
592
|
}
|
|
592
593
|
|
|
593
|
-
type ApiErrorName = "adapter" | "accounts" | "livechat" | "dps" | "github" | "vercel" | "netlify" | "planetscale" | "neon" | "mailchimp" | "shopify";
|
|
594
|
+
type ApiErrorName = "adapter" | "accounts" | "livechat" | "dps" | "github" | "vercel" | "netlify" | "planetscale" | "neon" | "mailchimp" | "shopify" | "platform_workflows";
|
|
594
595
|
type ApiErrorSource = "accounts" | "github" | "vercel" | "netlify" | "planetscale" | "neon" | "mailchimp" | "shopify";
|
|
595
596
|
type ApiErrorKind = "unauthorized" | "error";
|
|
596
597
|
type ApiError<TData = unknown> = {
|
|
@@ -3198,10 +3199,10 @@ declare const api: {
|
|
|
3198
3199
|
topic?: string | undefined;
|
|
3199
3200
|
address?: string | undefined;
|
|
3200
3201
|
} | undefined, authorization?: ShopifyClientAuthorization | undefined): Promise<{
|
|
3201
|
-
webhooks: IWebhook[];
|
|
3202
|
+
webhooks: shopify_api_node.IWebhook[];
|
|
3202
3203
|
}>;
|
|
3203
|
-
register(webhook: ICreateWebhook, authorization?: ShopifyClientAuthorization | undefined): Promise<{
|
|
3204
|
-
webhook: IWebhook;
|
|
3204
|
+
register(webhook: shopify_api_node.ICreateWebhook, authorization?: ShopifyClientAuthorization | undefined): Promise<{
|
|
3205
|
+
webhook: shopify_api_node.IWebhook;
|
|
3205
3206
|
}>;
|
|
3206
3207
|
unregister(webhookId: number, authorization?: ShopifyClientAuthorization | undefined): Promise<void>;
|
|
3207
3208
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as shopify_api_node from 'shopify-api-node';
|
|
1
2
|
import * as axios from 'axios';
|
|
2
3
|
import { AxiosRequestConfig } from 'axios';
|
|
3
4
|
|
|
@@ -590,7 +591,7 @@ interface MailchimpListWebhook {
|
|
|
590
591
|
};
|
|
591
592
|
}
|
|
592
593
|
|
|
593
|
-
type ApiErrorName = "adapter" | "accounts" | "livechat" | "dps" | "github" | "vercel" | "netlify" | "planetscale" | "neon" | "mailchimp" | "shopify";
|
|
594
|
+
type ApiErrorName = "adapter" | "accounts" | "livechat" | "dps" | "github" | "vercel" | "netlify" | "planetscale" | "neon" | "mailchimp" | "shopify" | "platform_workflows";
|
|
594
595
|
type ApiErrorSource = "accounts" | "github" | "vercel" | "netlify" | "planetscale" | "neon" | "mailchimp" | "shopify";
|
|
595
596
|
type ApiErrorKind = "unauthorized" | "error";
|
|
596
597
|
type ApiError<TData = unknown> = {
|
|
@@ -3198,10 +3199,10 @@ declare const api: {
|
|
|
3198
3199
|
topic?: string | undefined;
|
|
3199
3200
|
address?: string | undefined;
|
|
3200
3201
|
} | undefined, authorization?: ShopifyClientAuthorization | undefined): Promise<{
|
|
3201
|
-
webhooks: IWebhook[];
|
|
3202
|
+
webhooks: shopify_api_node.IWebhook[];
|
|
3202
3203
|
}>;
|
|
3203
|
-
register(webhook: ICreateWebhook, authorization?: ShopifyClientAuthorization | undefined): Promise<{
|
|
3204
|
-
webhook: IWebhook;
|
|
3204
|
+
register(webhook: shopify_api_node.ICreateWebhook, authorization?: ShopifyClientAuthorization | undefined): Promise<{
|
|
3205
|
+
webhook: shopify_api_node.IWebhook;
|
|
3205
3206
|
}>;
|
|
3206
3207
|
unregister(webhookId: number, authorization?: ShopifyClientAuthorization | undefined): Promise<void>;
|
|
3207
3208
|
};
|
package/dist/index.js
CHANGED
|
@@ -6124,16 +6124,16 @@ var platformBillingApi = {
|
|
|
6124
6124
|
|
|
6125
6125
|
// src/apis/platform/workflows/instance.ts
|
|
6126
6126
|
var import_axios22 = __toESM(require("axios"));
|
|
6127
|
-
var
|
|
6127
|
+
var PlatformWorkflowsApiError = class extends ApiErrorBase {
|
|
6128
6128
|
constructor() {
|
|
6129
6129
|
super(...arguments);
|
|
6130
|
-
this.name = "
|
|
6130
|
+
this.name = "platform_workflows";
|
|
6131
6131
|
}
|
|
6132
6132
|
};
|
|
6133
|
-
var
|
|
6133
|
+
var platformWorkflowsClientInstance = import_axios22.default.create({
|
|
6134
6134
|
baseURL: "https://api.labs.text.com/workflow_platform"
|
|
6135
6135
|
});
|
|
6136
|
-
|
|
6136
|
+
platformWorkflowsClientInstance.interceptors.response.use(
|
|
6137
6137
|
(response) => response,
|
|
6138
6138
|
(error) => {
|
|
6139
6139
|
var _a, _b, _c, _d;
|
|
@@ -6141,7 +6141,7 @@ workflowsClientInstance.interceptors.response.use(
|
|
|
6141
6141
|
return Promise.reject(new UnauthorizeApiError("accounts"));
|
|
6142
6142
|
}
|
|
6143
6143
|
return Promise.reject(
|
|
6144
|
-
new
|
|
6144
|
+
new PlatformWorkflowsApiError(
|
|
6145
6145
|
error.message,
|
|
6146
6146
|
(_b = error.response) == null ? void 0 : _b.data,
|
|
6147
6147
|
(_d = (_c = error.response) == null ? void 0 : _c.status) != null ? _d : 400
|
|
@@ -6149,9 +6149,9 @@ workflowsClientInstance.interceptors.response.use(
|
|
|
6149
6149
|
);
|
|
6150
6150
|
}
|
|
6151
6151
|
);
|
|
6152
|
-
function
|
|
6152
|
+
function getPlatformWorkflowsClientConfig(options = {}) {
|
|
6153
6153
|
var _a;
|
|
6154
|
-
const currentHeaders =
|
|
6154
|
+
const currentHeaders = platformWorkflowsClientInstance.defaults.headers;
|
|
6155
6155
|
const defaultAuthorization = currentHeaders.Authorization;
|
|
6156
6156
|
if (!options.token && !defaultAuthorization) {
|
|
6157
6157
|
throw new UnauthorizeApiError("accounts");
|
|
@@ -6163,10 +6163,10 @@ function getWorkflowsClientConfig(options = {}) {
|
|
|
6163
6163
|
headers: __spreadValues({}, headers.authorization ? { Authorization: headers.authorization } : {})
|
|
6164
6164
|
};
|
|
6165
6165
|
}
|
|
6166
|
-
function
|
|
6167
|
-
const headers =
|
|
6166
|
+
function initPlatformWorkflowsClient(baseUrl, token) {
|
|
6167
|
+
const headers = platformWorkflowsClientInstance.defaults.headers;
|
|
6168
6168
|
if (baseUrl) {
|
|
6169
|
-
|
|
6169
|
+
platformWorkflowsClientInstance.interceptors.request.use(
|
|
6170
6170
|
(config) => {
|
|
6171
6171
|
config.baseURL = baseUrl;
|
|
6172
6172
|
return config;
|
|
@@ -6185,9 +6185,9 @@ function initWorkflowsClient(baseUrl, token) {
|
|
|
6185
6185
|
var workflowsApi = {
|
|
6186
6186
|
getWorkflows(authorization) {
|
|
6187
6187
|
return __async(this, null, function* () {
|
|
6188
|
-
const { data: workflows } = yield
|
|
6188
|
+
const { data: workflows } = yield platformWorkflowsClientInstance.get(
|
|
6189
6189
|
"/workflows",
|
|
6190
|
-
|
|
6190
|
+
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6191
6191
|
ensureAuthorizationToken: true
|
|
6192
6192
|
}))
|
|
6193
6193
|
);
|
|
@@ -6196,10 +6196,10 @@ var workflowsApi = {
|
|
|
6196
6196
|
},
|
|
6197
6197
|
createWorkflow(payload, authorization) {
|
|
6198
6198
|
return __async(this, null, function* () {
|
|
6199
|
-
yield
|
|
6199
|
+
yield platformWorkflowsClientInstance.post(
|
|
6200
6200
|
"/workflows",
|
|
6201
6201
|
payload,
|
|
6202
|
-
|
|
6202
|
+
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6203
6203
|
ensureAuthorizationToken: true
|
|
6204
6204
|
}))
|
|
6205
6205
|
);
|
|
@@ -6207,9 +6207,9 @@ var workflowsApi = {
|
|
|
6207
6207
|
},
|
|
6208
6208
|
getWorkflow(payload, authorization) {
|
|
6209
6209
|
return __async(this, null, function* () {
|
|
6210
|
-
const { data: workflow } = yield
|
|
6210
|
+
const { data: workflow } = yield platformWorkflowsClientInstance.get(
|
|
6211
6211
|
`/workflows/${payload.name}?version=${payload.version}`,
|
|
6212
|
-
|
|
6212
|
+
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6213
6213
|
ensureAuthorizationToken: true
|
|
6214
6214
|
}))
|
|
6215
6215
|
);
|
|
@@ -6218,10 +6218,10 @@ var workflowsApi = {
|
|
|
6218
6218
|
},
|
|
6219
6219
|
updateWorkflow(payload, authorization) {
|
|
6220
6220
|
return __async(this, null, function* () {
|
|
6221
|
-
const { data: workflow } = yield
|
|
6221
|
+
const { data: workflow } = yield platformWorkflowsClientInstance.put(
|
|
6222
6222
|
`/workflows/${payload.name}`,
|
|
6223
6223
|
payload,
|
|
6224
|
-
|
|
6224
|
+
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6225
6225
|
ensureAuthorizationToken: true
|
|
6226
6226
|
}))
|
|
6227
6227
|
);
|
|
@@ -6230,9 +6230,9 @@ var workflowsApi = {
|
|
|
6230
6230
|
},
|
|
6231
6231
|
deleteWorkflow(payload, authorization) {
|
|
6232
6232
|
return __async(this, null, function* () {
|
|
6233
|
-
yield
|
|
6233
|
+
yield platformWorkflowsClientInstance.delete(
|
|
6234
6234
|
`/workflows/${payload.name}`,
|
|
6235
|
-
|
|
6235
|
+
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6236
6236
|
ensureAuthorizationToken: true
|
|
6237
6237
|
}))
|
|
6238
6238
|
);
|
|
@@ -6240,10 +6240,10 @@ var workflowsApi = {
|
|
|
6240
6240
|
},
|
|
6241
6241
|
executeWorkflow(payload, authorization) {
|
|
6242
6242
|
return __async(this, null, function* () {
|
|
6243
|
-
const { data: execution } = yield
|
|
6243
|
+
const { data: execution } = yield platformWorkflowsClientInstance.post(
|
|
6244
6244
|
`/workflows/${payload.name}/executions`,
|
|
6245
6245
|
payload,
|
|
6246
|
-
|
|
6246
|
+
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6247
6247
|
ensureAuthorizationToken: true
|
|
6248
6248
|
}))
|
|
6249
6249
|
);
|
|
@@ -6252,9 +6252,9 @@ var workflowsApi = {
|
|
|
6252
6252
|
},
|
|
6253
6253
|
getWorkflowExecutionsList(payload, authorization) {
|
|
6254
6254
|
return __async(this, null, function* () {
|
|
6255
|
-
const { data: executions } = yield
|
|
6255
|
+
const { data: executions } = yield platformWorkflowsClientInstance.get(
|
|
6256
6256
|
`/workflows/${payload.name}/executions`,
|
|
6257
|
-
|
|
6257
|
+
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6258
6258
|
ensureAuthorizationToken: true
|
|
6259
6259
|
}))
|
|
6260
6260
|
);
|
|
@@ -6263,9 +6263,9 @@ var workflowsApi = {
|
|
|
6263
6263
|
},
|
|
6264
6264
|
getWorkflowExecutionDetails(payload, authorization) {
|
|
6265
6265
|
return __async(this, null, function* () {
|
|
6266
|
-
const { data: execution } = yield
|
|
6266
|
+
const { data: execution } = yield platformWorkflowsClientInstance.get(
|
|
6267
6267
|
`/workflows/${payload.name}/executions/${payload.execution_id}`,
|
|
6268
|
-
|
|
6268
|
+
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6269
6269
|
ensureAuthorizationToken: true
|
|
6270
6270
|
}))
|
|
6271
6271
|
);
|
|
@@ -6301,7 +6301,10 @@ function initApi(config, tokens) {
|
|
|
6301
6301
|
(_d = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _d.token
|
|
6302
6302
|
);
|
|
6303
6303
|
initPlatformDpsClient((_e = config.urls.platform) == null ? void 0 : _e.dps, (_f = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _f.token);
|
|
6304
|
-
|
|
6304
|
+
initPlatformWorkflowsClient(
|
|
6305
|
+
(_g = config.urls.platform) == null ? void 0 : _g.workflows,
|
|
6306
|
+
(_h = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _h.token
|
|
6307
|
+
);
|
|
6305
6308
|
initPlatformAdapterClient(
|
|
6306
6309
|
(_i = config.urls.platform) == null ? void 0 : _i.adapter,
|
|
6307
6310
|
tokens ? {
|
package/dist/index.mjs
CHANGED
|
@@ -6006,16 +6006,16 @@ var platformBillingApi = {
|
|
|
6006
6006
|
|
|
6007
6007
|
// src/apis/platform/workflows/instance.ts
|
|
6008
6008
|
import axios20 from "axios";
|
|
6009
|
-
var
|
|
6009
|
+
var PlatformWorkflowsApiError = class extends ApiErrorBase {
|
|
6010
6010
|
constructor() {
|
|
6011
6011
|
super(...arguments);
|
|
6012
|
-
this.name = "
|
|
6012
|
+
this.name = "platform_workflows";
|
|
6013
6013
|
}
|
|
6014
6014
|
};
|
|
6015
|
-
var
|
|
6015
|
+
var platformWorkflowsClientInstance = axios20.create({
|
|
6016
6016
|
baseURL: "https://api.labs.text.com/workflow_platform"
|
|
6017
6017
|
});
|
|
6018
|
-
|
|
6018
|
+
platformWorkflowsClientInstance.interceptors.response.use(
|
|
6019
6019
|
(response) => response,
|
|
6020
6020
|
(error) => {
|
|
6021
6021
|
var _a, _b, _c, _d;
|
|
@@ -6023,7 +6023,7 @@ workflowsClientInstance.interceptors.response.use(
|
|
|
6023
6023
|
return Promise.reject(new UnauthorizeApiError("accounts"));
|
|
6024
6024
|
}
|
|
6025
6025
|
return Promise.reject(
|
|
6026
|
-
new
|
|
6026
|
+
new PlatformWorkflowsApiError(
|
|
6027
6027
|
error.message,
|
|
6028
6028
|
(_b = error.response) == null ? void 0 : _b.data,
|
|
6029
6029
|
(_d = (_c = error.response) == null ? void 0 : _c.status) != null ? _d : 400
|
|
@@ -6031,9 +6031,9 @@ workflowsClientInstance.interceptors.response.use(
|
|
|
6031
6031
|
);
|
|
6032
6032
|
}
|
|
6033
6033
|
);
|
|
6034
|
-
function
|
|
6034
|
+
function getPlatformWorkflowsClientConfig(options = {}) {
|
|
6035
6035
|
var _a;
|
|
6036
|
-
const currentHeaders =
|
|
6036
|
+
const currentHeaders = platformWorkflowsClientInstance.defaults.headers;
|
|
6037
6037
|
const defaultAuthorization = currentHeaders.Authorization;
|
|
6038
6038
|
if (!options.token && !defaultAuthorization) {
|
|
6039
6039
|
throw new UnauthorizeApiError("accounts");
|
|
@@ -6045,10 +6045,10 @@ function getWorkflowsClientConfig(options = {}) {
|
|
|
6045
6045
|
headers: __spreadValues({}, headers.authorization ? { Authorization: headers.authorization } : {})
|
|
6046
6046
|
};
|
|
6047
6047
|
}
|
|
6048
|
-
function
|
|
6049
|
-
const headers =
|
|
6048
|
+
function initPlatformWorkflowsClient(baseUrl, token) {
|
|
6049
|
+
const headers = platformWorkflowsClientInstance.defaults.headers;
|
|
6050
6050
|
if (baseUrl) {
|
|
6051
|
-
|
|
6051
|
+
platformWorkflowsClientInstance.interceptors.request.use(
|
|
6052
6052
|
(config) => {
|
|
6053
6053
|
config.baseURL = baseUrl;
|
|
6054
6054
|
return config;
|
|
@@ -6067,9 +6067,9 @@ function initWorkflowsClient(baseUrl, token) {
|
|
|
6067
6067
|
var workflowsApi = {
|
|
6068
6068
|
getWorkflows(authorization) {
|
|
6069
6069
|
return __async(this, null, function* () {
|
|
6070
|
-
const { data: workflows } = yield
|
|
6070
|
+
const { data: workflows } = yield platformWorkflowsClientInstance.get(
|
|
6071
6071
|
"/workflows",
|
|
6072
|
-
|
|
6072
|
+
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6073
6073
|
ensureAuthorizationToken: true
|
|
6074
6074
|
}))
|
|
6075
6075
|
);
|
|
@@ -6078,10 +6078,10 @@ var workflowsApi = {
|
|
|
6078
6078
|
},
|
|
6079
6079
|
createWorkflow(payload, authorization) {
|
|
6080
6080
|
return __async(this, null, function* () {
|
|
6081
|
-
yield
|
|
6081
|
+
yield platformWorkflowsClientInstance.post(
|
|
6082
6082
|
"/workflows",
|
|
6083
6083
|
payload,
|
|
6084
|
-
|
|
6084
|
+
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6085
6085
|
ensureAuthorizationToken: true
|
|
6086
6086
|
}))
|
|
6087
6087
|
);
|
|
@@ -6089,9 +6089,9 @@ var workflowsApi = {
|
|
|
6089
6089
|
},
|
|
6090
6090
|
getWorkflow(payload, authorization) {
|
|
6091
6091
|
return __async(this, null, function* () {
|
|
6092
|
-
const { data: workflow } = yield
|
|
6092
|
+
const { data: workflow } = yield platformWorkflowsClientInstance.get(
|
|
6093
6093
|
`/workflows/${payload.name}?version=${payload.version}`,
|
|
6094
|
-
|
|
6094
|
+
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6095
6095
|
ensureAuthorizationToken: true
|
|
6096
6096
|
}))
|
|
6097
6097
|
);
|
|
@@ -6100,10 +6100,10 @@ var workflowsApi = {
|
|
|
6100
6100
|
},
|
|
6101
6101
|
updateWorkflow(payload, authorization) {
|
|
6102
6102
|
return __async(this, null, function* () {
|
|
6103
|
-
const { data: workflow } = yield
|
|
6103
|
+
const { data: workflow } = yield platformWorkflowsClientInstance.put(
|
|
6104
6104
|
`/workflows/${payload.name}`,
|
|
6105
6105
|
payload,
|
|
6106
|
-
|
|
6106
|
+
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6107
6107
|
ensureAuthorizationToken: true
|
|
6108
6108
|
}))
|
|
6109
6109
|
);
|
|
@@ -6112,9 +6112,9 @@ var workflowsApi = {
|
|
|
6112
6112
|
},
|
|
6113
6113
|
deleteWorkflow(payload, authorization) {
|
|
6114
6114
|
return __async(this, null, function* () {
|
|
6115
|
-
yield
|
|
6115
|
+
yield platformWorkflowsClientInstance.delete(
|
|
6116
6116
|
`/workflows/${payload.name}`,
|
|
6117
|
-
|
|
6117
|
+
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6118
6118
|
ensureAuthorizationToken: true
|
|
6119
6119
|
}))
|
|
6120
6120
|
);
|
|
@@ -6122,10 +6122,10 @@ var workflowsApi = {
|
|
|
6122
6122
|
},
|
|
6123
6123
|
executeWorkflow(payload, authorization) {
|
|
6124
6124
|
return __async(this, null, function* () {
|
|
6125
|
-
const { data: execution } = yield
|
|
6125
|
+
const { data: execution } = yield platformWorkflowsClientInstance.post(
|
|
6126
6126
|
`/workflows/${payload.name}/executions`,
|
|
6127
6127
|
payload,
|
|
6128
|
-
|
|
6128
|
+
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6129
6129
|
ensureAuthorizationToken: true
|
|
6130
6130
|
}))
|
|
6131
6131
|
);
|
|
@@ -6134,9 +6134,9 @@ var workflowsApi = {
|
|
|
6134
6134
|
},
|
|
6135
6135
|
getWorkflowExecutionsList(payload, authorization) {
|
|
6136
6136
|
return __async(this, null, function* () {
|
|
6137
|
-
const { data: executions } = yield
|
|
6137
|
+
const { data: executions } = yield platformWorkflowsClientInstance.get(
|
|
6138
6138
|
`/workflows/${payload.name}/executions`,
|
|
6139
|
-
|
|
6139
|
+
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6140
6140
|
ensureAuthorizationToken: true
|
|
6141
6141
|
}))
|
|
6142
6142
|
);
|
|
@@ -6145,9 +6145,9 @@ var workflowsApi = {
|
|
|
6145
6145
|
},
|
|
6146
6146
|
getWorkflowExecutionDetails(payload, authorization) {
|
|
6147
6147
|
return __async(this, null, function* () {
|
|
6148
|
-
const { data: execution } = yield
|
|
6148
|
+
const { data: execution } = yield platformWorkflowsClientInstance.get(
|
|
6149
6149
|
`/workflows/${payload.name}/executions/${payload.execution_id}`,
|
|
6150
|
-
|
|
6150
|
+
getPlatformWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
6151
6151
|
ensureAuthorizationToken: true
|
|
6152
6152
|
}))
|
|
6153
6153
|
);
|
|
@@ -6183,7 +6183,10 @@ function initApi(config, tokens) {
|
|
|
6183
6183
|
(_d = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _d.token
|
|
6184
6184
|
);
|
|
6185
6185
|
initPlatformDpsClient((_e = config.urls.platform) == null ? void 0 : _e.dps, (_f = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _f.token);
|
|
6186
|
-
|
|
6186
|
+
initPlatformWorkflowsClient(
|
|
6187
|
+
(_g = config.urls.platform) == null ? void 0 : _g.workflows,
|
|
6188
|
+
(_h = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _h.token
|
|
6189
|
+
);
|
|
6187
6190
|
initPlatformAdapterClient(
|
|
6188
6191
|
(_i = config.urls.platform) == null ? void 0 : _i.adapter,
|
|
6189
6192
|
tokens ? {
|
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.51",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"@types/node": "^17.0.12",
|
|
20
20
|
"tsup": "^7.1.0",
|
|
21
21
|
"typescript": "^5.1.6",
|
|
22
|
-
"tsconfig": "0.0.1",
|
|
23
22
|
"utils": "0.0.4",
|
|
24
|
-
"eslint-config-custom": "0.0.8"
|
|
23
|
+
"eslint-config-custom": "0.0.8",
|
|
24
|
+
"tsconfig": "0.0.1"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "tsup",
|