@livechat/developer-studio-api 3.4.9 → 3.4.11
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 +554 -703
- package/dist/index.d.ts +554 -703
- package/dist/index.js +101 -101
- package/dist/index.mjs +100 -100
- package/package.json +5 -4
package/dist/index.mjs
CHANGED
|
@@ -318,7 +318,7 @@ var gitHubRepositoryApi = {
|
|
|
318
318
|
repository = response2.data;
|
|
319
319
|
} else {
|
|
320
320
|
const response2 = yield githubClientInstance.post(
|
|
321
|
-
|
|
321
|
+
"/user/repos",
|
|
322
322
|
{
|
|
323
323
|
name,
|
|
324
324
|
description: name,
|
|
@@ -346,7 +346,7 @@ var gitHubRepositoryApi = {
|
|
|
346
346
|
return repository;
|
|
347
347
|
}
|
|
348
348
|
const response = yield githubClientInstance.post(
|
|
349
|
-
|
|
349
|
+
"/user/repos",
|
|
350
350
|
{
|
|
351
351
|
name,
|
|
352
352
|
description: name,
|
|
@@ -567,7 +567,7 @@ var gitHubUserApi = {
|
|
|
567
567
|
getUser(authorization) {
|
|
568
568
|
return __async(this, null, function* () {
|
|
569
569
|
const { data: user } = yield githubClientInstance.get(
|
|
570
|
-
|
|
570
|
+
"/user",
|
|
571
571
|
getGithubClientConfig({
|
|
572
572
|
token: authorization == null ? void 0 : authorization.appToken,
|
|
573
573
|
ensureAuthorizationToken: true
|
|
@@ -665,7 +665,7 @@ var netlifyAccountApi = {
|
|
|
665
665
|
getAccount(authorization) {
|
|
666
666
|
return __async(this, null, function* () {
|
|
667
667
|
const { data: accounts } = yield netlifyClientInstance.get(
|
|
668
|
-
|
|
668
|
+
"/accounts",
|
|
669
669
|
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
670
670
|
ensureAuthorizationToken: true
|
|
671
671
|
}))
|
|
@@ -946,7 +946,7 @@ var netlifySiteApi = {
|
|
|
946
946
|
cmd: ""
|
|
947
947
|
};
|
|
948
948
|
const response = yield netlifyClientInstance.post(
|
|
949
|
-
|
|
949
|
+
"/sites",
|
|
950
950
|
{
|
|
951
951
|
name,
|
|
952
952
|
repo: {
|
|
@@ -993,7 +993,7 @@ var netlifySiteApi = {
|
|
|
993
993
|
cmd: ""
|
|
994
994
|
};
|
|
995
995
|
const response = yield netlifyClientInstance.post(
|
|
996
|
-
|
|
996
|
+
"/sites",
|
|
997
997
|
{
|
|
998
998
|
name,
|
|
999
999
|
repo: {
|
|
@@ -1134,7 +1134,7 @@ function getPlanetScaleClientConfig(options = {}) {
|
|
|
1134
1134
|
var _a;
|
|
1135
1135
|
const currentHeaders = planetScaleClientInstance.defaults.headers;
|
|
1136
1136
|
const config = {
|
|
1137
|
-
authorization: (_a = options.token ?
|
|
1137
|
+
authorization: (_a = options.token ? options.token : void 0) != null ? _a : currentHeaders.Authorization
|
|
1138
1138
|
};
|
|
1139
1139
|
if (options.ensureAuthorizationToken && !config.authorization) {
|
|
1140
1140
|
throw new UnauthorizeApiError("planetscale");
|
|
@@ -1151,7 +1151,7 @@ function initPlanetScaleClient(token) {
|
|
|
1151
1151
|
function updatePlanetScaleClient(token) {
|
|
1152
1152
|
const headers = planetScaleClientInstance.defaults.headers;
|
|
1153
1153
|
if (token) {
|
|
1154
|
-
headers.Authorization =
|
|
1154
|
+
headers.Authorization = token;
|
|
1155
1155
|
} else {
|
|
1156
1156
|
delete headers.Authorization;
|
|
1157
1157
|
}
|
|
@@ -1287,7 +1287,7 @@ var planescaleOrganizationApi = {
|
|
|
1287
1287
|
getOrganizations(authorization) {
|
|
1288
1288
|
return __async(this, null, function* () {
|
|
1289
1289
|
const response = yield planetScaleClientInstance.get(
|
|
1290
|
-
|
|
1290
|
+
"/v1/organizations",
|
|
1291
1291
|
getPlanetScaleClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1292
1292
|
ensureAuthorizationToken: true
|
|
1293
1293
|
}))
|
|
@@ -1313,7 +1313,7 @@ var planescaleUserApi = {
|
|
|
1313
1313
|
getUser(authorization) {
|
|
1314
1314
|
return __async(this, null, function* () {
|
|
1315
1315
|
const response = yield planetScaleClientInstance.get(
|
|
1316
|
-
|
|
1316
|
+
"/v1/user",
|
|
1317
1317
|
getPlanetScaleClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1318
1318
|
ensureAuthorizationToken: true
|
|
1319
1319
|
}))
|
|
@@ -1806,7 +1806,7 @@ var HubspotApiError = class extends ApiErrorBase {
|
|
|
1806
1806
|
}
|
|
1807
1807
|
};
|
|
1808
1808
|
var hubspotClientInstance = axios12.create({
|
|
1809
|
-
baseURL:
|
|
1809
|
+
baseURL: "https://api.hubapi.com",
|
|
1810
1810
|
headers: {
|
|
1811
1811
|
"Content-Type": "application/json"
|
|
1812
1812
|
}
|
|
@@ -3265,7 +3265,7 @@ var textPlatformDashboardApi = {
|
|
|
3265
3265
|
return __async(this, null, function* () {
|
|
3266
3266
|
try {
|
|
3267
3267
|
const response = yield textClientInstance.get(
|
|
3268
|
-
|
|
3268
|
+
"/platform_dashboard/credits",
|
|
3269
3269
|
getTextClientConfig(authorization)
|
|
3270
3270
|
);
|
|
3271
3271
|
return response.data;
|
|
@@ -3281,7 +3281,7 @@ var textPlatformDashboardApi = {
|
|
|
3281
3281
|
return __async(this, null, function* () {
|
|
3282
3282
|
try {
|
|
3283
3283
|
const response = yield textClientInstance.get(
|
|
3284
|
-
|
|
3284
|
+
"/platform_dashboard/next_payment",
|
|
3285
3285
|
getTextClientConfig(authorization)
|
|
3286
3286
|
);
|
|
3287
3287
|
return response.data;
|
|
@@ -3297,7 +3297,7 @@ var textPlatformDashboardApi = {
|
|
|
3297
3297
|
return __async(this, null, function* () {
|
|
3298
3298
|
try {
|
|
3299
3299
|
const response = yield textClientInstance.post(
|
|
3300
|
-
|
|
3300
|
+
"/platform_dashboard/credits",
|
|
3301
3301
|
getTextClientConfig(authorization)
|
|
3302
3302
|
);
|
|
3303
3303
|
return response.data;
|
|
@@ -3333,7 +3333,7 @@ var textPlatformWorkflowsCredentialsApi = {
|
|
|
3333
3333
|
getList(authorization) {
|
|
3334
3334
|
return __async(this, null, function* () {
|
|
3335
3335
|
return textClientInstance.get(
|
|
3336
|
-
|
|
3336
|
+
"/workflow_platform/credentials",
|
|
3337
3337
|
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
3338
3338
|
ensureAuthorizationToken: true
|
|
3339
3339
|
}))
|
|
@@ -3350,7 +3350,7 @@ var textPlatformWorkflowsCredentialsApi = {
|
|
|
3350
3350
|
create(payload, authorization) {
|
|
3351
3351
|
return __async(this, null, function* () {
|
|
3352
3352
|
return textClientInstance.post(
|
|
3353
|
-
|
|
3353
|
+
"/workflow_platform/credentials",
|
|
3354
3354
|
payload,
|
|
3355
3355
|
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
3356
3356
|
ensureAuthorizationToken: true
|
|
@@ -3427,7 +3427,7 @@ var textPlatformWorkflowsFunctionsApi = {
|
|
|
3427
3427
|
get(authorization) {
|
|
3428
3428
|
return __async(this, null, function* () {
|
|
3429
3429
|
return textClientInstance.get(
|
|
3430
|
-
|
|
3430
|
+
"/workflow_platform/functions",
|
|
3431
3431
|
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
3432
3432
|
ensureAuthorizationToken: true
|
|
3433
3433
|
}))
|
|
@@ -3580,7 +3580,7 @@ var textPlatformWorkflowsApi = {
|
|
|
3580
3580
|
validateWorkflowDefinition(payload, authorization) {
|
|
3581
3581
|
return __async(this, null, function* () {
|
|
3582
3582
|
yield textClientInstance.post(
|
|
3583
|
-
|
|
3583
|
+
"/workflow_platform/workflows/validation",
|
|
3584
3584
|
payload,
|
|
3585
3585
|
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
3586
3586
|
ensureAuthorizationToken: true
|
|
@@ -3618,7 +3618,7 @@ var vercelDeployApi = {
|
|
|
3618
3618
|
createDeploy(project, repoId, branch, authorization) {
|
|
3619
3619
|
return __async(this, null, function* () {
|
|
3620
3620
|
const response = yield vercelClientInstance.post(
|
|
3621
|
-
|
|
3621
|
+
"/v13/deployments",
|
|
3622
3622
|
{
|
|
3623
3623
|
gitSource: { type: "github", ref: branch, repoId },
|
|
3624
3624
|
name: project,
|
|
@@ -3639,7 +3639,7 @@ var vercelIntegrationApi = {
|
|
|
3639
3639
|
getGitNamespaces(authorization) {
|
|
3640
3640
|
return __async(this, null, function* () {
|
|
3641
3641
|
const response = yield vercelClientInstance.get(
|
|
3642
|
-
|
|
3642
|
+
"/v1/integrations/git-namespaces?provider=github",
|
|
3643
3643
|
getVercelClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
3644
3644
|
ensureAuthorizationToken: true
|
|
3645
3645
|
}))
|
|
@@ -3738,7 +3738,7 @@ var vercelProjectApi = {
|
|
|
3738
3738
|
createProject(name, repositoryFullName, branch, authorization) {
|
|
3739
3739
|
return __async(this, null, function* () {
|
|
3740
3740
|
const response = yield vercelClientInstance.post(
|
|
3741
|
-
|
|
3741
|
+
"/v9/projects",
|
|
3742
3742
|
{
|
|
3743
3743
|
name,
|
|
3744
3744
|
gitRepository: {
|
|
@@ -4051,7 +4051,7 @@ var neonProjectApi = {
|
|
|
4051
4051
|
createProject(projectName, databaseName, authorization) {
|
|
4052
4052
|
return __async(this, null, function* () {
|
|
4053
4053
|
const response = yield neonClientInstance.post(
|
|
4054
|
-
|
|
4054
|
+
"/projects",
|
|
4055
4055
|
{
|
|
4056
4056
|
project: {
|
|
4057
4057
|
name: projectName,
|
|
@@ -4081,7 +4081,7 @@ var neonProjectApi = {
|
|
|
4081
4081
|
getProjects(authorization) {
|
|
4082
4082
|
return __async(this, null, function* () {
|
|
4083
4083
|
const response = yield neonClientInstance.get(
|
|
4084
|
-
|
|
4084
|
+
"/projects",
|
|
4085
4085
|
getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
4086
4086
|
ensureAuthorizationToken: true
|
|
4087
4087
|
}))
|
|
@@ -4107,7 +4107,7 @@ var neonUserApi = {
|
|
|
4107
4107
|
getUser(authorization) {
|
|
4108
4108
|
return __async(this, null, function* () {
|
|
4109
4109
|
const response = yield neonClientInstance.get(
|
|
4110
|
-
|
|
4110
|
+
"/users/me",
|
|
4111
4111
|
getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
4112
4112
|
ensureAuthorizationToken: true
|
|
4113
4113
|
}))
|
|
@@ -4285,7 +4285,7 @@ var shopifyWebhooksApi = {
|
|
|
4285
4285
|
register(webhook, authorization) {
|
|
4286
4286
|
return __async(this, null, function* () {
|
|
4287
4287
|
const response = yield shopifyClientInstance.post(
|
|
4288
|
-
|
|
4288
|
+
"/webhooks.json",
|
|
4289
4289
|
{
|
|
4290
4290
|
webhook
|
|
4291
4291
|
},
|
|
@@ -4506,7 +4506,7 @@ var bigCommerceWebhooksApi = {
|
|
|
4506
4506
|
list(authorization) {
|
|
4507
4507
|
return __async(this, null, function* () {
|
|
4508
4508
|
const response = yield bigCommerceClientInstance.get(
|
|
4509
|
-
|
|
4509
|
+
"/hooks",
|
|
4510
4510
|
getBigCommerceClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
4511
4511
|
ensureAuthorizationToken: true
|
|
4512
4512
|
}))
|
|
@@ -4517,7 +4517,7 @@ var bigCommerceWebhooksApi = {
|
|
|
4517
4517
|
register(webhook, authorization) {
|
|
4518
4518
|
return __async(this, null, function* () {
|
|
4519
4519
|
const response = yield bigCommerceClientInstance.post(
|
|
4520
|
-
|
|
4520
|
+
"/hooks",
|
|
4521
4521
|
webhook,
|
|
4522
4522
|
getBigCommerceClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
4523
4523
|
ensureAuthorizationToken: true
|
|
@@ -4608,7 +4608,7 @@ var livechatAgentApi = {
|
|
|
4608
4608
|
return __async(this, null, function* () {
|
|
4609
4609
|
try {
|
|
4610
4610
|
const response = yield livechatClientInstance.get(
|
|
4611
|
-
|
|
4611
|
+
"/agents/me",
|
|
4612
4612
|
{
|
|
4613
4613
|
headers: {
|
|
4614
4614
|
"X-API-Version": 2
|
|
@@ -4631,7 +4631,7 @@ var livechatAgentsApi = {
|
|
|
4631
4631
|
getAgents(authorization) {
|
|
4632
4632
|
return __async(this, null, function* () {
|
|
4633
4633
|
const response = yield livechatClientInstance.post(
|
|
4634
|
-
|
|
4634
|
+
"/v3.5/configuration/action/list_agents",
|
|
4635
4635
|
{},
|
|
4636
4636
|
getLiveChatClientConfig(authorization)
|
|
4637
4637
|
);
|
|
@@ -4820,7 +4820,7 @@ var livechatBotsTemplatesApi = {
|
|
|
4820
4820
|
return __async(this, null, function* () {
|
|
4821
4821
|
try {
|
|
4822
4822
|
const response = yield livechatClientInstance.post(
|
|
4823
|
-
|
|
4823
|
+
"v3.5/configuration/action/create_bot_template",
|
|
4824
4824
|
bot,
|
|
4825
4825
|
getLiveChatClientConfig(authorization)
|
|
4826
4826
|
);
|
|
@@ -4840,7 +4840,7 @@ var livechatBotsTemplatesApi = {
|
|
|
4840
4840
|
return __async(this, null, function* () {
|
|
4841
4841
|
try {
|
|
4842
4842
|
const response = yield livechatClientInstance.post(
|
|
4843
|
-
|
|
4843
|
+
"v3.5/configuration/action/list_bot_templates",
|
|
4844
4844
|
{
|
|
4845
4845
|
owner_client_id: clientId
|
|
4846
4846
|
},
|
|
@@ -4862,7 +4862,7 @@ var livechatBotsTemplatesApi = {
|
|
|
4862
4862
|
return __async(this, null, function* () {
|
|
4863
4863
|
try {
|
|
4864
4864
|
const response = yield livechatClientInstance.post(
|
|
4865
|
-
|
|
4865
|
+
"v3.5/configuration/action/update_bot_template",
|
|
4866
4866
|
bot,
|
|
4867
4867
|
getLiveChatClientConfig(authorization)
|
|
4868
4868
|
);
|
|
@@ -4882,7 +4882,7 @@ var livechatBotsTemplatesApi = {
|
|
|
4882
4882
|
return __async(this, null, function* () {
|
|
4883
4883
|
try {
|
|
4884
4884
|
const response = yield livechatClientInstance.post(
|
|
4885
|
-
|
|
4885
|
+
"v3.5/configuration/action/delete_bot_template",
|
|
4886
4886
|
bot,
|
|
4887
4887
|
getLiveChatClientConfig(authorization)
|
|
4888
4888
|
);
|
|
@@ -4902,7 +4902,7 @@ var livechatBotsTemplatesApi = {
|
|
|
4902
4902
|
return __async(this, null, function* () {
|
|
4903
4903
|
try {
|
|
4904
4904
|
const response = yield livechatClientInstance.post(
|
|
4905
|
-
|
|
4905
|
+
"v3.5/configuration/action/reset_bot_template_secret",
|
|
4906
4906
|
bot,
|
|
4907
4907
|
getLiveChatClientConfig(authorization)
|
|
4908
4908
|
);
|
|
@@ -4928,7 +4928,7 @@ var livechatBotsTemplatesApi = {
|
|
|
4928
4928
|
yield Promise.all(
|
|
4929
4929
|
botTemplates.map((bot) => __async(this, null, function* () {
|
|
4930
4930
|
return livechatClientInstance.post(
|
|
4931
|
-
|
|
4931
|
+
"v3.5/configuration/action/delete_bot_template",
|
|
4932
4932
|
{
|
|
4933
4933
|
id: bot.id,
|
|
4934
4934
|
owner_client_id: clientId
|
|
@@ -4961,7 +4961,7 @@ var livechatPropertyApi = {
|
|
|
4961
4961
|
}
|
|
4962
4962
|
try {
|
|
4963
4963
|
const response = yield livechatClientInstance.post(
|
|
4964
|
-
|
|
4964
|
+
"/v3.3/configuration/action/list_properties",
|
|
4965
4965
|
{
|
|
4966
4966
|
owner_client_id: clientId
|
|
4967
4967
|
},
|
|
@@ -4981,7 +4981,7 @@ var livechatPropertyApi = {
|
|
|
4981
4981
|
return __async(this, null, function* () {
|
|
4982
4982
|
try {
|
|
4983
4983
|
const response = yield livechatClientInstance.post(
|
|
4984
|
-
|
|
4984
|
+
"/v3.3/configuration/action/register_property",
|
|
4985
4985
|
{
|
|
4986
4986
|
name: property.name,
|
|
4987
4987
|
owner_client_id: property.owner_client_id,
|
|
@@ -5008,7 +5008,7 @@ var livechatPropertyApi = {
|
|
|
5008
5008
|
return __async(this, null, function* () {
|
|
5009
5009
|
try {
|
|
5010
5010
|
const response = yield livechatClientInstance.post(
|
|
5011
|
-
|
|
5011
|
+
"/v3.3/configuration/action/unregister_property",
|
|
5012
5012
|
{
|
|
5013
5013
|
name: propertyId,
|
|
5014
5014
|
owner_client_id: clientId
|
|
@@ -5035,7 +5035,7 @@ var livechatPropertyApi = {
|
|
|
5035
5035
|
return __async(this, null, function* () {
|
|
5036
5036
|
try {
|
|
5037
5037
|
const response = yield livechatClientInstance.post(
|
|
5038
|
-
|
|
5038
|
+
"/v3.3/configuration/action/publish_property",
|
|
5039
5039
|
{
|
|
5040
5040
|
name: propertyId,
|
|
5041
5041
|
owner_client_id: clientId,
|
|
@@ -5059,7 +5059,7 @@ var livechatPropertyApi = {
|
|
|
5059
5059
|
const response = yield Promise.all(
|
|
5060
5060
|
properties.filter((property) => property.public_access).map((property) => __async(this, null, function* () {
|
|
5061
5061
|
return livechatClientInstance.post(
|
|
5062
|
-
|
|
5062
|
+
"/v3.3/configuration/action/publish_property",
|
|
5063
5063
|
{
|
|
5064
5064
|
name: property.name,
|
|
5065
5065
|
owner_client_id: property.owner_client_id,
|
|
@@ -5085,7 +5085,7 @@ var livechatPropertyApi = {
|
|
|
5085
5085
|
const response = yield Promise.all(
|
|
5086
5086
|
properties.map((property) => __async(this, null, function* () {
|
|
5087
5087
|
return livechatClientInstance.post(
|
|
5088
|
-
|
|
5088
|
+
"/v3.3/configuration/action/register_property",
|
|
5089
5089
|
{
|
|
5090
5090
|
name: property.name,
|
|
5091
5091
|
type: property.type,
|
|
@@ -5117,7 +5117,7 @@ var livechatPropertyApi = {
|
|
|
5117
5117
|
Object.keys(properties).map((property) => __async(this, null, function* () {
|
|
5118
5118
|
if (Object.keys(properties[property]).indexOf("public_access") <= 0) {
|
|
5119
5119
|
return livechatClientInstance.post(
|
|
5120
|
-
|
|
5120
|
+
"/v3.3/configuration/action/unregister_property",
|
|
5121
5121
|
{
|
|
5122
5122
|
name: property,
|
|
5123
5123
|
owner_client_id: clientId
|
|
@@ -5140,7 +5140,7 @@ var livechatPropertyApi = {
|
|
|
5140
5140
|
return __async(this, null, function* () {
|
|
5141
5141
|
try {
|
|
5142
5142
|
const response = yield livechatClientInstance.post(
|
|
5143
|
-
|
|
5143
|
+
"/v3.5/configuration/action/list_license_properties",
|
|
5144
5144
|
{
|
|
5145
5145
|
namespace
|
|
5146
5146
|
},
|
|
@@ -5162,7 +5162,7 @@ var livechatPropertyApi = {
|
|
|
5162
5162
|
return __async(this, null, function* () {
|
|
5163
5163
|
try {
|
|
5164
5164
|
const response = yield livechatClientInstance.post(
|
|
5165
|
-
|
|
5165
|
+
"/v3.5/configuration/action/update_license_properties",
|
|
5166
5166
|
{
|
|
5167
5167
|
properties: {
|
|
5168
5168
|
[namespace]: property
|
|
@@ -5195,7 +5195,7 @@ var livechatWebhookApi = {
|
|
|
5195
5195
|
}
|
|
5196
5196
|
try {
|
|
5197
5197
|
const response = yield livechatClientInstance.post(
|
|
5198
|
-
|
|
5198
|
+
"/v3.5/configuration/action/list_webhooks",
|
|
5199
5199
|
{
|
|
5200
5200
|
owner_client_id: clientId
|
|
5201
5201
|
},
|
|
@@ -5217,7 +5217,7 @@ var livechatWebhookApi = {
|
|
|
5217
5217
|
return __async(this, null, function* () {
|
|
5218
5218
|
try {
|
|
5219
5219
|
const response = yield livechatClientInstance.post(
|
|
5220
|
-
|
|
5220
|
+
"/v3.5/configuration/action/unregister_webhook",
|
|
5221
5221
|
{
|
|
5222
5222
|
id: webhookId,
|
|
5223
5223
|
owner_client_id: clientId
|
|
@@ -5247,7 +5247,7 @@ var livechatWebhookApi = {
|
|
|
5247
5247
|
yield Promise.all(
|
|
5248
5248
|
webhooks.map((webhook) => __async(this, null, function* () {
|
|
5249
5249
|
return livechatClientInstance.post(
|
|
5250
|
-
|
|
5250
|
+
"/v3.5/configuration/action/unregister_webhook",
|
|
5251
5251
|
{
|
|
5252
5252
|
id: webhook.id,
|
|
5253
5253
|
owner_client_id: clientId
|
|
@@ -5331,7 +5331,7 @@ var livechatWebhookApi = {
|
|
|
5331
5331
|
}
|
|
5332
5332
|
try {
|
|
5333
5333
|
const response = yield livechatClientInstance.post(
|
|
5334
|
-
|
|
5334
|
+
"/v3.2/configuration/action/list_registered_webhooks",
|
|
5335
5335
|
{},
|
|
5336
5336
|
getLiveChatClientConfig(authorization)
|
|
5337
5337
|
);
|
|
@@ -5351,7 +5351,7 @@ var livechatWebhookApi = {
|
|
|
5351
5351
|
return __async(this, null, function* () {
|
|
5352
5352
|
try {
|
|
5353
5353
|
const response = yield livechatClientInstance.post(
|
|
5354
|
-
|
|
5354
|
+
"/v3.2/configuration/action/unregister_webhook",
|
|
5355
5355
|
{ webhook_id: id },
|
|
5356
5356
|
getLiveChatClientConfig(authorization)
|
|
5357
5357
|
);
|
|
@@ -5371,7 +5371,7 @@ var livechatWebhookApi = {
|
|
|
5371
5371
|
return __async(this, null, function* () {
|
|
5372
5372
|
try {
|
|
5373
5373
|
const response = yield livechatClientInstance.post(
|
|
5374
|
-
|
|
5374
|
+
"/v3.5/configuration/action/list_webhook_names",
|
|
5375
5375
|
{ version },
|
|
5376
5376
|
getLiveChatClientConfig(authorization)
|
|
5377
5377
|
);
|
|
@@ -5408,7 +5408,7 @@ var helpdeskWebhooksApi = {
|
|
|
5408
5408
|
list(authorization) {
|
|
5409
5409
|
return __async(this, null, function* () {
|
|
5410
5410
|
const response = yield helpdeskClientInstance.get(
|
|
5411
|
-
|
|
5411
|
+
"/webhooks",
|
|
5412
5412
|
getHelpDeskClientConfig(authorization)
|
|
5413
5413
|
);
|
|
5414
5414
|
return response;
|
|
@@ -5426,7 +5426,7 @@ var helpdeskWebhooksApi = {
|
|
|
5426
5426
|
create(payload, authorization) {
|
|
5427
5427
|
return __async(this, null, function* () {
|
|
5428
5428
|
const response = yield helpdeskClientInstance.post(
|
|
5429
|
-
|
|
5429
|
+
"/webhooks",
|
|
5430
5430
|
payload,
|
|
5431
5431
|
getHelpDeskClientConfig(authorization)
|
|
5432
5432
|
);
|
|
@@ -5469,7 +5469,7 @@ var productsApi = {
|
|
|
5469
5469
|
var platformAccountsAccountApi = {
|
|
5470
5470
|
getAccounts(authorization) {
|
|
5471
5471
|
return __async(this, null, function* () {
|
|
5472
|
-
return platformAccountsClientInstance.get(
|
|
5472
|
+
return platformAccountsClientInstance.get("/v2/accounts", {
|
|
5473
5473
|
authorization,
|
|
5474
5474
|
customErrorMessage: "Accounts couldn't be fetched."
|
|
5475
5475
|
});
|
|
@@ -5489,7 +5489,7 @@ var platformAccountsAccountApi = {
|
|
|
5489
5489
|
getMeAccount(authorization) {
|
|
5490
5490
|
return __async(this, null, function* () {
|
|
5491
5491
|
return platformAccountsClientInstance.get(
|
|
5492
|
-
|
|
5492
|
+
"/v2/accounts/me",
|
|
5493
5493
|
{
|
|
5494
5494
|
authorization,
|
|
5495
5495
|
customErrorMessage: "Me account couldn't be fetched."
|
|
@@ -5503,7 +5503,7 @@ var platformAccountsAccountApi = {
|
|
|
5503
5503
|
var platformAccountsClientApi = {
|
|
5504
5504
|
getClients(authorization) {
|
|
5505
5505
|
return __async(this, null, function* () {
|
|
5506
|
-
return platformAccountsClientInstance.get(
|
|
5506
|
+
return platformAccountsClientInstance.get("/v2/clients", {
|
|
5507
5507
|
authorization,
|
|
5508
5508
|
customErrorMessage: "Clients couldn't be fetched."
|
|
5509
5509
|
});
|
|
@@ -5522,7 +5522,7 @@ var platformAccountsClientApi = {
|
|
|
5522
5522
|
},
|
|
5523
5523
|
createClient(payload, authorization) {
|
|
5524
5524
|
return __async(this, null, function* () {
|
|
5525
|
-
return platformAccountsClientInstance.post(
|
|
5525
|
+
return platformAccountsClientInstance.post("/v2/clients", payload, {
|
|
5526
5526
|
authorization,
|
|
5527
5527
|
customErrorMessage: "Client couldn't be created."
|
|
5528
5528
|
});
|
|
@@ -5586,7 +5586,7 @@ var platformAccountsClientApi = {
|
|
|
5586
5586
|
},
|
|
5587
5587
|
getInfo(authorization) {
|
|
5588
5588
|
return __async(this, null, function* () {
|
|
5589
|
-
return platformAccountsClientInstance.get(
|
|
5589
|
+
return platformAccountsClientInstance.get("/v2/info", {
|
|
5590
5590
|
authorization,
|
|
5591
5591
|
customErrorMessage: "Client info couldn't be fetched."
|
|
5592
5592
|
});
|
|
@@ -5599,7 +5599,7 @@ var platformAccountsOrganizationApi = {
|
|
|
5599
5599
|
getOrganizations(authorization) {
|
|
5600
5600
|
return __async(this, null, function* () {
|
|
5601
5601
|
return platformAccountsClientInstance.get(
|
|
5602
|
-
|
|
5602
|
+
"/v2/organizations",
|
|
5603
5603
|
{
|
|
5604
5604
|
authorization,
|
|
5605
5605
|
customErrorMessage: "Organizations couldn't be fetched."
|
|
@@ -5610,7 +5610,7 @@ var platformAccountsOrganizationApi = {
|
|
|
5610
5610
|
getMyOrganization(authorization) {
|
|
5611
5611
|
return __async(this, null, function* () {
|
|
5612
5612
|
return platformAccountsClientInstance.get(
|
|
5613
|
-
|
|
5613
|
+
"/v2/organizations/my",
|
|
5614
5614
|
{
|
|
5615
5615
|
authorization,
|
|
5616
5616
|
customErrorMessage: "My organization couldn't be fetched."
|
|
@@ -5624,7 +5624,7 @@ var platformAccountsOrganizationApi = {
|
|
|
5624
5624
|
var platformAccountsPersonalAccessTokenApi = {
|
|
5625
5625
|
getPersonalAccessTokens(authorization) {
|
|
5626
5626
|
return __async(this, null, function* () {
|
|
5627
|
-
return platformAccountsClientInstance.get(
|
|
5627
|
+
return platformAccountsClientInstance.get("/v2/personal_token", {
|
|
5628
5628
|
authorization,
|
|
5629
5629
|
customErrorMessage: "Personal Access Tokens couldn't be fetched."
|
|
5630
5630
|
});
|
|
@@ -5633,7 +5633,7 @@ var platformAccountsPersonalAccessTokenApi = {
|
|
|
5633
5633
|
createPersonalAccessToken(name, scopes, authorization) {
|
|
5634
5634
|
return __async(this, null, function* () {
|
|
5635
5635
|
return platformAccountsClientInstance.post(
|
|
5636
|
-
|
|
5636
|
+
"/v2/personal_token",
|
|
5637
5637
|
{
|
|
5638
5638
|
name,
|
|
5639
5639
|
scope: scopes.map((item) => item.name).filter((el) => el).join(",")
|
|
@@ -5664,7 +5664,7 @@ var platformAccountsProductsApi = {
|
|
|
5664
5664
|
getOrganizationProducts(authorization) {
|
|
5665
5665
|
return __async(this, null, function* () {
|
|
5666
5666
|
return platformAccountsClientInstance.get(
|
|
5667
|
-
|
|
5667
|
+
"/v2/organizations/my/products",
|
|
5668
5668
|
{ authorization, customErrorMessage: "Products couldn't be fetched." }
|
|
5669
5669
|
);
|
|
5670
5670
|
});
|
|
@@ -5672,7 +5672,7 @@ var platformAccountsProductsApi = {
|
|
|
5672
5672
|
updateOrganizationProducts(payload, authorization) {
|
|
5673
5673
|
return __async(this, null, function* () {
|
|
5674
5674
|
return platformAccountsClientInstance.post(
|
|
5675
|
-
|
|
5675
|
+
"/v2/organizations/my/products",
|
|
5676
5676
|
payload,
|
|
5677
5677
|
{ authorization, customErrorMessage: "Products couldn't be updated." }
|
|
5678
5678
|
);
|
|
@@ -5684,7 +5684,7 @@ var platformAccountsProductsApi = {
|
|
|
5684
5684
|
var platformAccountsScopesApi = {
|
|
5685
5685
|
getScopes(authorization) {
|
|
5686
5686
|
return __async(this, null, function* () {
|
|
5687
|
-
return platformAccountsClientInstance.get(
|
|
5687
|
+
return platformAccountsClientInstance.get("/v2/scopes", {
|
|
5688
5688
|
authorization,
|
|
5689
5689
|
customErrorMessage: "Scopes couldn't be fetched."
|
|
5690
5690
|
});
|
|
@@ -5697,7 +5697,7 @@ var platformAccountsSessionsApi = {
|
|
|
5697
5697
|
deleteSessions(authorization) {
|
|
5698
5698
|
return __async(this, null, function* () {
|
|
5699
5699
|
return platformAccountsClientInstance.delete(
|
|
5700
|
-
|
|
5700
|
+
"/v2/sessions",
|
|
5701
5701
|
void 0,
|
|
5702
5702
|
{
|
|
5703
5703
|
authorization,
|
|
@@ -5720,7 +5720,7 @@ var platformAccountsTokenApi = {
|
|
|
5720
5720
|
redirect_uri: redirectUrl
|
|
5721
5721
|
});
|
|
5722
5722
|
return platformAccountsClientInstance.post(
|
|
5723
|
-
|
|
5723
|
+
"/v2/token",
|
|
5724
5724
|
data,
|
|
5725
5725
|
{
|
|
5726
5726
|
customErrorMessage: "Couldn't exchange code for token."
|
|
@@ -6030,7 +6030,7 @@ var platformDpsApplicationDisplayApi = {
|
|
|
6030
6030
|
body,
|
|
6031
6031
|
getDpsClientConfig(authorization)
|
|
6032
6032
|
).catch((error) => {
|
|
6033
|
-
throw error.withCustomMessage(
|
|
6033
|
+
throw error.withCustomMessage("Image couldn't be uploaded");
|
|
6034
6034
|
});
|
|
6035
6035
|
});
|
|
6036
6036
|
}
|
|
@@ -6594,7 +6594,7 @@ var platformDpsApplicationApi = {
|
|
|
6594
6594
|
createApp(payload, authorization) {
|
|
6595
6595
|
return __async(this, null, function* () {
|
|
6596
6596
|
return dpsClientInstance.post(
|
|
6597
|
-
|
|
6597
|
+
"/v2/applications",
|
|
6598
6598
|
payload,
|
|
6599
6599
|
getDpsClientConfig(authorization)
|
|
6600
6600
|
).then(({ data }) => data).catch((error) => {
|
|
@@ -6790,7 +6790,7 @@ var platformDpsApplicationsApi = {
|
|
|
6790
6790
|
var platformDpsCategoriesApi = {
|
|
6791
6791
|
getCategories(authorization) {
|
|
6792
6792
|
return __async(this, null, function* () {
|
|
6793
|
-
return dpsClientInstance.get(
|
|
6793
|
+
return dpsClientInstance.get("/v2/categories", getDpsClientConfig(authorization)).then(({ data }) => data).catch((error) => {
|
|
6794
6794
|
throw error.withCustomMessage(
|
|
6795
6795
|
`Categories couldn't be fetched. [${error.message}]`
|
|
6796
6796
|
);
|
|
@@ -6806,7 +6806,7 @@ var platformDpsDeveloperApi = {
|
|
|
6806
6806
|
const { startAt, endAt, size, page } = options;
|
|
6807
6807
|
const withRange = Boolean(startAt && endAt);
|
|
6808
6808
|
const withPagination = Boolean(size && typeof page === "number");
|
|
6809
|
-
let params = withRange || withPagination ?
|
|
6809
|
+
let params = withRange || withPagination ? "?" : "";
|
|
6810
6810
|
if (withRange) {
|
|
6811
6811
|
params += `from=${startAt}&to=${endAt}`;
|
|
6812
6812
|
}
|
|
@@ -6857,7 +6857,7 @@ var platformDpsDevelopersApi = {
|
|
|
6857
6857
|
var platformDpsLinksApi = {
|
|
6858
6858
|
updateShortcuts(links, authorization) {
|
|
6859
6859
|
return __async(this, null, function* () {
|
|
6860
|
-
yield dpsClientInstance.put(
|
|
6860
|
+
yield dpsClientInstance.put("/v2/links", links, getDpsClientConfig(authorization)).catch((error) => {
|
|
6861
6861
|
throw error.withCustomMessage(
|
|
6862
6862
|
`Shortcuts couldn't be updated. [${error.message}]`
|
|
6863
6863
|
);
|
|
@@ -6871,7 +6871,7 @@ var dpsResearchCustomerApi = {
|
|
|
6871
6871
|
getResearchCustomersLicenses(authorization) {
|
|
6872
6872
|
return __async(this, null, function* () {
|
|
6873
6873
|
return dpsClientInstance.get(
|
|
6874
|
-
|
|
6874
|
+
"/v2/research/customers/licenses",
|
|
6875
6875
|
getDpsClientConfig(authorization)
|
|
6876
6876
|
).then(({ data }) => data).catch((error) => {
|
|
6877
6877
|
throw error.withCustomMessage(
|
|
@@ -6883,7 +6883,7 @@ var dpsResearchCustomerApi = {
|
|
|
6883
6883
|
getResearchCustomersBusiness(authorization) {
|
|
6884
6884
|
return __async(this, null, function* () {
|
|
6885
6885
|
return dpsClientInstance.get(
|
|
6886
|
-
|
|
6886
|
+
"/v2/research/customers/business",
|
|
6887
6887
|
getDpsClientConfig(authorization)
|
|
6888
6888
|
).then(({ data }) => data).catch((error) => {
|
|
6889
6889
|
throw error.withCustomMessage(
|
|
@@ -6895,7 +6895,7 @@ var dpsResearchCustomerApi = {
|
|
|
6895
6895
|
getResearchCustomersLocation(authorization) {
|
|
6896
6896
|
return __async(this, null, function* () {
|
|
6897
6897
|
return dpsClientInstance.get(
|
|
6898
|
-
|
|
6898
|
+
"/v2/research/customers/location",
|
|
6899
6899
|
getDpsClientConfig(authorization)
|
|
6900
6900
|
).then(({ data }) => data).catch((error) => {
|
|
6901
6901
|
throw error.withCustomMessage(
|
|
@@ -6996,7 +6996,7 @@ var platformDpsUserApi = {
|
|
|
6996
6996
|
getUser(authorization) {
|
|
6997
6997
|
return __async(this, null, function* () {
|
|
6998
6998
|
const response = yield dpsClientInstance.get(
|
|
6999
|
-
|
|
6999
|
+
"/v2/me",
|
|
7000
7000
|
getDpsClientConfig(authorization)
|
|
7001
7001
|
);
|
|
7002
7002
|
return response.data;
|
|
@@ -7005,7 +7005,7 @@ var platformDpsUserApi = {
|
|
|
7005
7005
|
getUserIntegrations(authorization) {
|
|
7006
7006
|
return __async(this, null, function* () {
|
|
7007
7007
|
const response = yield dpsClientInstance.get(
|
|
7008
|
-
|
|
7008
|
+
"/v2/me/integrations",
|
|
7009
7009
|
getDpsClientConfig(authorization)
|
|
7010
7010
|
);
|
|
7011
7011
|
return response.data;
|
|
@@ -7014,7 +7014,7 @@ var platformDpsUserApi = {
|
|
|
7014
7014
|
updateUser(user, authorization) {
|
|
7015
7015
|
return __async(this, null, function* () {
|
|
7016
7016
|
const { status } = yield dpsClientInstance.put(
|
|
7017
|
-
|
|
7017
|
+
"/v2/me",
|
|
7018
7018
|
user,
|
|
7019
7019
|
getDpsClientConfig(authorization)
|
|
7020
7020
|
);
|
|
@@ -7024,7 +7024,7 @@ var platformDpsUserApi = {
|
|
|
7024
7024
|
updateUserIntegrations(payload, authorization) {
|
|
7025
7025
|
return __async(this, null, function* () {
|
|
7026
7026
|
yield dpsClientInstance.patch(
|
|
7027
|
-
|
|
7027
|
+
"/v2/me/integrations",
|
|
7028
7028
|
payload,
|
|
7029
7029
|
getDpsClientConfig(authorization)
|
|
7030
7030
|
);
|
|
@@ -7050,7 +7050,7 @@ var platformDpsUserApi = {
|
|
|
7050
7050
|
},
|
|
7051
7051
|
removeUserGitHubIntegrationByInstallationId(installationId, authorization) {
|
|
7052
7052
|
return __async(this, null, function* () {
|
|
7053
|
-
yield dpsClientInstance.delete(
|
|
7053
|
+
yield dpsClientInstance.delete("/v2/me/integrations/github", __spreadProps(__spreadValues({}, getDpsClientConfig(authorization)), {
|
|
7054
7054
|
data: {
|
|
7055
7055
|
githubInstallationId: installationId
|
|
7056
7056
|
}
|
|
@@ -7060,7 +7060,7 @@ var platformDpsUserApi = {
|
|
|
7060
7060
|
updateUserNetlifyIntegration(userNetlifyIntegration, authorization) {
|
|
7061
7061
|
return __async(this, null, function* () {
|
|
7062
7062
|
const { status } = yield dpsClientInstance.patch(
|
|
7063
|
-
|
|
7063
|
+
"/v2/me/integrations",
|
|
7064
7064
|
{ netlify: userNetlifyIntegration },
|
|
7065
7065
|
getDpsClientConfig(authorization)
|
|
7066
7066
|
);
|
|
@@ -7526,7 +7526,7 @@ var platformAdapterAppTemplatesApi = {
|
|
|
7526
7526
|
getTemplates(authorization) {
|
|
7527
7527
|
return __async(this, null, function* () {
|
|
7528
7528
|
return adapterClientInstance.get(
|
|
7529
|
-
|
|
7529
|
+
"/console/app/templates",
|
|
7530
7530
|
getAdapterClientDefaultConfig(authorization)
|
|
7531
7531
|
);
|
|
7532
7532
|
});
|
|
@@ -7534,7 +7534,7 @@ var platformAdapterAppTemplatesApi = {
|
|
|
7534
7534
|
getRepositoryTemplates(authorization) {
|
|
7535
7535
|
return __async(this, null, function* () {
|
|
7536
7536
|
return adapterClientInstance.get(
|
|
7537
|
-
|
|
7537
|
+
"/console/app/templates/repository",
|
|
7538
7538
|
getAdapterClientDefaultConfig(authorization)
|
|
7539
7539
|
);
|
|
7540
7540
|
});
|
|
@@ -7575,7 +7575,7 @@ var platformAdapterAppApi = {
|
|
|
7575
7575
|
status(sagaId, authorization) {
|
|
7576
7576
|
return __async(this, null, function* () {
|
|
7577
7577
|
return adapterClientInstance.get(
|
|
7578
|
-
|
|
7578
|
+
"/console/app/status",
|
|
7579
7579
|
__spreadValues({
|
|
7580
7580
|
params: {
|
|
7581
7581
|
sagaId
|
|
@@ -7592,7 +7592,7 @@ var platformAdapterBigCommerceApi = {
|
|
|
7592
7592
|
subscribe(payload, authorization) {
|
|
7593
7593
|
return __async(this, null, function* () {
|
|
7594
7594
|
yield adapterClientInstance.post(
|
|
7595
|
-
|
|
7595
|
+
"/integrations/bigcommerce/events/subscribe",
|
|
7596
7596
|
payload,
|
|
7597
7597
|
getBigCommerceClientConfig(authorization)
|
|
7598
7598
|
);
|
|
@@ -7601,7 +7601,7 @@ var platformAdapterBigCommerceApi = {
|
|
|
7601
7601
|
unsubscribe(payload, authorization) {
|
|
7602
7602
|
return __async(this, null, function* () {
|
|
7603
7603
|
yield adapterClientInstance.post(
|
|
7604
|
-
|
|
7604
|
+
"/integrations/bigcommerce/events/unsubscribe",
|
|
7605
7605
|
payload,
|
|
7606
7606
|
getBigCommerceClientConfig(authorization)
|
|
7607
7607
|
);
|
|
@@ -7616,7 +7616,7 @@ var platformAdapterHubspotApi = {
|
|
|
7616
7616
|
subscribe(payload, authorization) {
|
|
7617
7617
|
return __async(this, null, function* () {
|
|
7618
7618
|
yield adapterClientInstance.post(
|
|
7619
|
-
|
|
7619
|
+
"/integrations/hubspot/events/subscribe",
|
|
7620
7620
|
payload,
|
|
7621
7621
|
getHubspotClientConfig(authorization)
|
|
7622
7622
|
);
|
|
@@ -7625,7 +7625,7 @@ var platformAdapterHubspotApi = {
|
|
|
7625
7625
|
unsubscribe(payload, authorization) {
|
|
7626
7626
|
return __async(this, null, function* () {
|
|
7627
7627
|
yield adapterClientInstance.post(
|
|
7628
|
-
|
|
7628
|
+
"/integrations/hubspot/events/unsubscribe",
|
|
7629
7629
|
payload,
|
|
7630
7630
|
getHubspotClientConfig(authorization)
|
|
7631
7631
|
);
|
|
@@ -7640,7 +7640,7 @@ var platformAdapterMailchimpApi = {
|
|
|
7640
7640
|
subscribe(payload, authorization) {
|
|
7641
7641
|
return __async(this, null, function* () {
|
|
7642
7642
|
yield adapterClientInstance.post(
|
|
7643
|
-
|
|
7643
|
+
"/integrations/mailchimp/events/subscribe",
|
|
7644
7644
|
payload,
|
|
7645
7645
|
getMailchimpClientConfig(authorization)
|
|
7646
7646
|
);
|
|
@@ -7649,7 +7649,7 @@ var platformAdapterMailchimpApi = {
|
|
|
7649
7649
|
unsubscribe(payload, authorization) {
|
|
7650
7650
|
return __async(this, null, function* () {
|
|
7651
7651
|
yield adapterClientInstance.post(
|
|
7652
|
-
|
|
7652
|
+
"/integrations/mailchimp/events/unsubscribe",
|
|
7653
7653
|
payload,
|
|
7654
7654
|
getMailchimpClientConfig(authorization)
|
|
7655
7655
|
);
|
|
@@ -7664,7 +7664,7 @@ var platformAdapterShopifyApi = {
|
|
|
7664
7664
|
subscribe(payload, authorization) {
|
|
7665
7665
|
return __async(this, null, function* () {
|
|
7666
7666
|
yield adapterClientInstance.post(
|
|
7667
|
-
|
|
7667
|
+
"/integrations/shopify/events/subscribe",
|
|
7668
7668
|
payload,
|
|
7669
7669
|
getShopifyClientConfig(authorization)
|
|
7670
7670
|
);
|
|
@@ -7673,7 +7673,7 @@ var platformAdapterShopifyApi = {
|
|
|
7673
7673
|
unsubscribe(payload, authorization) {
|
|
7674
7674
|
return __async(this, null, function* () {
|
|
7675
7675
|
yield adapterClientInstance.post(
|
|
7676
|
-
|
|
7676
|
+
"/integrations/shopify/events/unsubscribe",
|
|
7677
7677
|
payload,
|
|
7678
7678
|
getShopifyClientConfig(authorization)
|
|
7679
7679
|
);
|
|
@@ -7688,7 +7688,7 @@ var platformAdapterTextApi = {
|
|
|
7688
7688
|
subscribe(payload, authorization) {
|
|
7689
7689
|
return __async(this, null, function* () {
|
|
7690
7690
|
yield adapterClientInstance.post(
|
|
7691
|
-
|
|
7691
|
+
"/integrations/text/events/subscribe",
|
|
7692
7692
|
payload,
|
|
7693
7693
|
getTextClientConfig(authorization)
|
|
7694
7694
|
);
|
|
@@ -7697,7 +7697,7 @@ var platformAdapterTextApi = {
|
|
|
7697
7697
|
unsubscribe(payload, authorization) {
|
|
7698
7698
|
return __async(this, null, function* () {
|
|
7699
7699
|
yield adapterClientInstance.post(
|
|
7700
|
-
|
|
7700
|
+
"/integrations/text/events/unsubscribe",
|
|
7701
7701
|
payload,
|
|
7702
7702
|
getTextClientConfig(authorization)
|
|
7703
7703
|
);
|
|
@@ -7722,7 +7722,7 @@ var platformAdapterApi = {
|
|
|
7722
7722
|
log(payload, authorization) {
|
|
7723
7723
|
return __async(this, null, function* () {
|
|
7724
7724
|
return adapterClientInstance.post(
|
|
7725
|
-
|
|
7725
|
+
"/log",
|
|
7726
7726
|
payload,
|
|
7727
7727
|
getAdapterClientConfig(authorization)
|
|
7728
7728
|
);
|
|
@@ -7736,7 +7736,7 @@ var platformBillingAccountApi = {
|
|
|
7736
7736
|
return __async(this, null, function* () {
|
|
7737
7737
|
try {
|
|
7738
7738
|
return yield billingClientInstance.get(
|
|
7739
|
-
|
|
7739
|
+
"/v3/account",
|
|
7740
7740
|
getBillingClientConfig(authorization)
|
|
7741
7741
|
);
|
|
7742
7742
|
} catch (error) {
|
|
@@ -7888,13 +7888,13 @@ var serializerBase64 = {
|
|
|
7888
7888
|
};
|
|
7889
7889
|
|
|
7890
7890
|
// src/utils/integrations/getIntegrationFlowUrl.ts
|
|
7891
|
-
function
|
|
7892
|
-
const
|
|
7891
|
+
function getIntegrationFlowUrlForRedirection(provider, flow, state, context, config) {
|
|
7892
|
+
const serializedState = typeof state === "string" ? state : serializerBase64.serialize(state);
|
|
7893
7893
|
const serializedContext = serializerBase64.serialize(__spreadProps(__spreadValues({}, context), {
|
|
7894
7894
|
mode: "redirect" /* Redirect */,
|
|
7895
|
-
state:
|
|
7895
|
+
state: serializedState
|
|
7896
7896
|
}));
|
|
7897
|
-
return `${config.adapterUrl}/integrations/${provider}/
|
|
7897
|
+
return `${config.adapterUrl}/integrations/${provider}/flows/${flow}/flow?context=${serializedContext}`;
|
|
7898
7898
|
}
|
|
7899
7899
|
function getIntegrationFlowUrl(name, flow, trigger, context, state, config) {
|
|
7900
7900
|
return __async(this, null, function* () {
|
|
@@ -8033,7 +8033,7 @@ export {
|
|
|
8033
8033
|
getHelpDeskClientConfig,
|
|
8034
8034
|
getHubspotClientConfig,
|
|
8035
8035
|
getIntegrationFlowUrl,
|
|
8036
|
-
|
|
8036
|
+
getIntegrationFlowUrlForRedirection,
|
|
8037
8037
|
getLiveChatClientConfig,
|
|
8038
8038
|
getMailchimpClientConfig,
|
|
8039
8039
|
getMailchimpClientUrl,
|