@livechat/developer-studio-api 3.1.17 → 3.1.19
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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +411 -228
- package/dist/index.mjs +411 -228
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -370,7 +370,9 @@ var gitHubInstallationApi = {
|
|
|
370
370
|
getInstallationRepositories(installationId, authorization) {
|
|
371
371
|
return __async(this, null, function* () {
|
|
372
372
|
const response = yield githubClientInstance.get(
|
|
373
|
-
`/user/installations/${
|
|
373
|
+
`/user/installations/${encodeURIComponent(
|
|
374
|
+
installationId
|
|
375
|
+
)}/repositories?timestamp=${(/* @__PURE__ */ new Date()).getTime()}&per_page=100`,
|
|
374
376
|
getGithubClientConfig({
|
|
375
377
|
token: authorization == null ? void 0 : authorization.appToken,
|
|
376
378
|
ensureAuthorizationToken: true
|
|
@@ -387,7 +389,7 @@ var gitHubRepositoryApi = {
|
|
|
387
389
|
getRepository(repositoryName, authorization) {
|
|
388
390
|
return __async(this, null, function* () {
|
|
389
391
|
const response = yield githubClientInstance.get(
|
|
390
|
-
`/repos/${repositoryName}`,
|
|
392
|
+
`/repos/${encodeURIComponent(repositoryName)}`,
|
|
391
393
|
getGithubClientConfig({
|
|
392
394
|
token: authorization == null ? void 0 : authorization.appToken,
|
|
393
395
|
ensureAuthorizationToken: true
|
|
@@ -399,7 +401,7 @@ var gitHubRepositoryApi = {
|
|
|
399
401
|
getRepositoryBranches(repositoryName, authorization) {
|
|
400
402
|
return __async(this, null, function* () {
|
|
401
403
|
const response = yield githubClientInstance.get(
|
|
402
|
-
`/repos/${repositoryName}/branches`,
|
|
404
|
+
`/repos/${encodeURIComponent(repositoryName)}/branches`,
|
|
403
405
|
getGithubClientConfig({
|
|
404
406
|
token: authorization == null ? void 0 : authorization.appToken,
|
|
405
407
|
ensureAuthorizationToken: true
|
|
@@ -411,7 +413,7 @@ var gitHubRepositoryApi = {
|
|
|
411
413
|
getRepositoryBranch(repositoryName, repositoryBranch, authorization) {
|
|
412
414
|
return __async(this, null, function* () {
|
|
413
415
|
const response = yield githubClientInstance.get(
|
|
414
|
-
`/repos/${repositoryName}/branches`,
|
|
416
|
+
`/repos/${encodeURIComponent(repositoryName)}/branches`,
|
|
415
417
|
getGithubClientConfig({
|
|
416
418
|
token: authorization == null ? void 0 : authorization.appToken,
|
|
417
419
|
ensureAuthorizationToken: true
|
|
@@ -429,7 +431,9 @@ var gitHubRepositoryApi = {
|
|
|
429
431
|
getRepositorySeed(repositoryName, authorization) {
|
|
430
432
|
return __async(this, null, function* () {
|
|
431
433
|
const { data } = yield githubClientInstance.get(
|
|
432
|
-
`/repos/${
|
|
434
|
+
`/repos/${encodeURIComponent(
|
|
435
|
+
repositoryName
|
|
436
|
+
)}/contents/livechat.config.json`,
|
|
433
437
|
getGithubClientConfig({
|
|
434
438
|
token: authorization == null ? void 0 : authorization.appToken,
|
|
435
439
|
ensureAuthorizationToken: true
|
|
@@ -444,7 +448,7 @@ var gitHubRepositoryApi = {
|
|
|
444
448
|
let repository;
|
|
445
449
|
if (template) {
|
|
446
450
|
const response2 = yield githubClientInstance.post(
|
|
447
|
-
`/repos/${template}/generate`,
|
|
451
|
+
`/repos/${encodeURIComponent(template)}/generate`,
|
|
448
452
|
{
|
|
449
453
|
name,
|
|
450
454
|
description: name,
|
|
@@ -475,7 +479,7 @@ var gitHubRepositoryApi = {
|
|
|
475
479
|
repository = response2.data;
|
|
476
480
|
}
|
|
477
481
|
yield githubClientInstance.patch(
|
|
478
|
-
`/repos/${repository.full_name}`,
|
|
482
|
+
`/repos/${encodeURIComponent(repository.full_name)}`,
|
|
479
483
|
{
|
|
480
484
|
private: true
|
|
481
485
|
},
|
|
@@ -507,7 +511,9 @@ var gitHubRepositoryApi = {
|
|
|
507
511
|
return __async(this, null, function* () {
|
|
508
512
|
const upsert = (sha) => __async(this, null, function* () {
|
|
509
513
|
const response = yield githubClientInstance.put(
|
|
510
|
-
`/repos/${
|
|
514
|
+
`/repos/${encodeURIComponent(
|
|
515
|
+
repositoryName
|
|
516
|
+
)}/contents/livechat.config.json`,
|
|
511
517
|
{
|
|
512
518
|
message: "Added LiveChat Developer App configuration",
|
|
513
519
|
sha,
|
|
@@ -539,7 +545,7 @@ var gitHubRepositoryApi = {
|
|
|
539
545
|
deleteRepository(repositoryName, authorization) {
|
|
540
546
|
return __async(this, null, function* () {
|
|
541
547
|
return githubClientInstance.delete(
|
|
542
|
-
`/repos/${repositoryName}`,
|
|
548
|
+
`/repos/${encodeURIComponent(repositoryName)}`,
|
|
543
549
|
getGithubClientConfig({
|
|
544
550
|
token: authorization == null ? void 0 : authorization.appToken,
|
|
545
551
|
ensureAuthorizationToken: true
|
|
@@ -550,7 +556,7 @@ var gitHubRepositoryApi = {
|
|
|
550
556
|
createRepositoryDeployKey(repositoryName, deployKey, authorization) {
|
|
551
557
|
return __async(this, null, function* () {
|
|
552
558
|
const response = yield githubClientInstance.post(
|
|
553
|
-
`/repos/${repositoryName}/keys`,
|
|
559
|
+
`/repos/${encodeURIComponent(repositoryName)}/keys`,
|
|
554
560
|
{
|
|
555
561
|
title: "developer-console-to-netlify",
|
|
556
562
|
key: deployKey
|
|
@@ -567,7 +573,7 @@ var gitHubRepositoryApi = {
|
|
|
567
573
|
return __async(this, null, function* () {
|
|
568
574
|
try {
|
|
569
575
|
const response = yield githubClientInstance.post(
|
|
570
|
-
`/repos/${repositoryName}/hooks`,
|
|
576
|
+
`/repos/${encodeURIComponent(repositoryName)}/hooks`,
|
|
571
577
|
{
|
|
572
578
|
name: "web",
|
|
573
579
|
active: true,
|
|
@@ -598,7 +604,7 @@ var gitHubRepositoryApi = {
|
|
|
598
604
|
getFile(path, repositoryName, authorization) {
|
|
599
605
|
return __async(this, null, function* () {
|
|
600
606
|
const { data } = yield githubClientInstance.get(
|
|
601
|
-
`/repos/${repositoryName}/contents/${path}`,
|
|
607
|
+
`/repos/${encodeURIComponent(repositoryName)}/contents/${path}`,
|
|
602
608
|
getGithubClientConfig({
|
|
603
609
|
token: authorization == null ? void 0 : authorization.appToken,
|
|
604
610
|
ensureAuthorizationToken: true
|
|
@@ -610,7 +616,7 @@ var gitHubRepositoryApi = {
|
|
|
610
616
|
getCommits(repositoryName, authorization) {
|
|
611
617
|
return __async(this, null, function* () {
|
|
612
618
|
const { data: commits } = yield githubClientInstance.get(
|
|
613
|
-
`/repos/${repositoryName}/commits`,
|
|
619
|
+
`/repos/${encodeURIComponent(repositoryName)}/commits`,
|
|
614
620
|
getGithubClientConfig({
|
|
615
621
|
token: authorization == null ? void 0 : authorization.appToken,
|
|
616
622
|
ensureAuthorizationToken: true
|
|
@@ -628,7 +634,9 @@ var gitHubRepositoryApi = {
|
|
|
628
634
|
object: { sha: currentCommitSha }
|
|
629
635
|
}
|
|
630
636
|
} = yield githubClientInstance.get(
|
|
631
|
-
`/repos/${
|
|
637
|
+
`/repos/${encodeURIComponent(
|
|
638
|
+
data.repositoryName
|
|
639
|
+
)}/git/refs/heads/${encodeURIComponent(data.repositoryBranch)}`,
|
|
632
640
|
getGithubClientConfig({
|
|
633
641
|
token: authorization == null ? void 0 : authorization.appToken,
|
|
634
642
|
ensureAuthorizationToken: true
|
|
@@ -639,7 +647,9 @@ var gitHubRepositoryApi = {
|
|
|
639
647
|
tree: { sha: treeSha }
|
|
640
648
|
}
|
|
641
649
|
} = yield githubClientInstance.get(
|
|
642
|
-
`/repos/${
|
|
650
|
+
`/repos/${encodeURIComponent(
|
|
651
|
+
data.repositoryName
|
|
652
|
+
)}/git/commits/${currentCommitSha}`,
|
|
643
653
|
getGithubClientConfig({
|
|
644
654
|
token: authorization == null ? void 0 : authorization.appToken,
|
|
645
655
|
ensureAuthorizationToken: true
|
|
@@ -648,7 +658,7 @@ var gitHubRepositoryApi = {
|
|
|
648
658
|
const {
|
|
649
659
|
data: { sha: newTreeSha }
|
|
650
660
|
} = yield githubClientInstance.post(
|
|
651
|
-
`/repos/${data.repositoryName}/git/trees`,
|
|
661
|
+
`/repos/${encodeURIComponent(data.repositoryName)}/git/trees`,
|
|
652
662
|
{
|
|
653
663
|
base_tree: treeSha,
|
|
654
664
|
tree: data.files.map(
|
|
@@ -664,7 +674,7 @@ var gitHubRepositoryApi = {
|
|
|
664
674
|
const {
|
|
665
675
|
data: { sha: newCommitSha }
|
|
666
676
|
} = yield githubClientInstance.post(
|
|
667
|
-
`/repos/${data.repositoryName}/git/commits`,
|
|
677
|
+
`/repos/${encodeURIComponent(data.repositoryName)}/git/commits`,
|
|
668
678
|
{
|
|
669
679
|
message: data.message,
|
|
670
680
|
tree: newTreeSha,
|
|
@@ -676,7 +686,7 @@ var gitHubRepositoryApi = {
|
|
|
676
686
|
})
|
|
677
687
|
);
|
|
678
688
|
yield githubClientInstance.post(
|
|
679
|
-
`/repos/${data.repositoryName}/git/refs/heads/${data.repositoryBranch}`,
|
|
689
|
+
`/repos/${encodeURIComponent(data.repositoryName)}/git/refs/heads/${data.repositoryBranch}`,
|
|
680
690
|
{ sha: newCommitSha },
|
|
681
691
|
getGithubClientConfig({
|
|
682
692
|
token: authorization == null ? void 0 : authorization.appToken,
|
|
@@ -687,16 +697,19 @@ var gitHubRepositoryApi = {
|
|
|
687
697
|
},
|
|
688
698
|
getRepositoryIssues(repositoryName, state) {
|
|
689
699
|
return __async(this, null, function* () {
|
|
690
|
-
const { data: issues } = yield githubClientInstance.get(`/repos/${repositoryName}/issues?state=${state}`);
|
|
700
|
+
const { data: issues } = yield githubClientInstance.get(`/repos/${encodeURIComponent(repositoryName)}/issues?state=${state}`);
|
|
691
701
|
return issues;
|
|
692
702
|
});
|
|
693
703
|
},
|
|
694
704
|
createRepositoryIssue(repositoryName, title, body) {
|
|
695
705
|
return __async(this, null, function* () {
|
|
696
|
-
yield githubClientInstance.post(
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
706
|
+
yield githubClientInstance.post(
|
|
707
|
+
`/repos/${encodeURIComponent(repositoryName)}/issues`,
|
|
708
|
+
{
|
|
709
|
+
title,
|
|
710
|
+
body
|
|
711
|
+
}
|
|
712
|
+
);
|
|
700
713
|
});
|
|
701
714
|
}
|
|
702
715
|
};
|
|
@@ -832,7 +845,9 @@ var netlifyAccountApi = {
|
|
|
832
845
|
throw new import_axios5.AxiosError("No account", "404");
|
|
833
846
|
}
|
|
834
847
|
const { data: envs } = yield netlifyClientInstance.get(
|
|
835
|
-
`/accounts/${
|
|
848
|
+
`/accounts/${encodeURIComponent(
|
|
849
|
+
targetAccountId
|
|
850
|
+
)}/env?site_id=${siteId}&scope=all&context=all&level=all`,
|
|
836
851
|
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
837
852
|
ensureAuthorizationToken: true
|
|
838
853
|
}))
|
|
@@ -850,7 +865,9 @@ var netlifyAccountApi = {
|
|
|
850
865
|
throw new import_axios5.AxiosError("No account", "404");
|
|
851
866
|
}
|
|
852
867
|
const { data: envs } = yield netlifyClientInstance.get(
|
|
853
|
-
`/accounts/${
|
|
868
|
+
`/accounts/${encodeURIComponent(
|
|
869
|
+
targetAccountId
|
|
870
|
+
)}/env/${envKey}?site_id=${siteId}`,
|
|
854
871
|
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
855
872
|
ensureAuthorizationToken: true
|
|
856
873
|
}))
|
|
@@ -870,7 +887,9 @@ var netlifyAccountApi = {
|
|
|
870
887
|
}
|
|
871
888
|
if (!targetEnvs) {
|
|
872
889
|
const response = yield netlifyClientInstance.get(
|
|
873
|
-
`/accounts/${
|
|
890
|
+
`/accounts/${encodeURIComponent(
|
|
891
|
+
targetAccountId
|
|
892
|
+
)}/env?site_id=${siteId}&scope=all&context=all&level=all`,
|
|
874
893
|
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
875
894
|
ensureAuthorizationToken: true
|
|
876
895
|
}))
|
|
@@ -880,7 +899,7 @@ var netlifyAccountApi = {
|
|
|
880
899
|
const existingEnv = targetEnvs.find((env) => env.key === envName);
|
|
881
900
|
if (existingEnv) {
|
|
882
901
|
yield netlifyClientInstance.put(
|
|
883
|
-
`/accounts/${targetAccountId}/env/${existingEnv.key}?site_id=${siteId}`,
|
|
902
|
+
`/accounts/${encodeURIComponent(targetAccountId)}/env/${existingEnv.key}?site_id=${siteId}`,
|
|
884
903
|
{
|
|
885
904
|
key: existingEnv.key,
|
|
886
905
|
scopes: ["builds", "functions", "runtime", "post_processing"],
|
|
@@ -892,7 +911,9 @@ var netlifyAccountApi = {
|
|
|
892
911
|
);
|
|
893
912
|
} else {
|
|
894
913
|
yield netlifyClientInstance.post(
|
|
895
|
-
`/accounts/${
|
|
914
|
+
`/accounts/${encodeURIComponent(
|
|
915
|
+
targetAccountId
|
|
916
|
+
)}/env?site_id=${siteId}`,
|
|
896
917
|
[
|
|
897
918
|
{
|
|
898
919
|
key: envName,
|
|
@@ -917,7 +938,9 @@ var netlifyAccountApi = {
|
|
|
917
938
|
throw new import_axios5.AxiosError("No account", "404");
|
|
918
939
|
}
|
|
919
940
|
yield netlifyClientInstance.delete(
|
|
920
|
-
`/accounts/${
|
|
941
|
+
`/accounts/${encodeURIComponent(
|
|
942
|
+
targetAccountId
|
|
943
|
+
)}/env/${envKey}?site_id=${siteId}`,
|
|
921
944
|
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
922
945
|
ensureAuthorizationToken: true
|
|
923
946
|
}))
|
|
@@ -1017,7 +1040,7 @@ var netlifySiteApi = {
|
|
|
1017
1040
|
getSite(siteId, authorization) {
|
|
1018
1041
|
return __async(this, null, function* () {
|
|
1019
1042
|
const response = yield netlifyClientInstance.get(
|
|
1020
|
-
`/sites/${siteId}`,
|
|
1043
|
+
`/sites/${encodeURIComponent(siteId)}`,
|
|
1021
1044
|
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1022
1045
|
ensureAuthorizationToken: true
|
|
1023
1046
|
}))
|
|
@@ -1028,7 +1051,7 @@ var netlifySiteApi = {
|
|
|
1028
1051
|
getSiteDeploy(siteId, authorization) {
|
|
1029
1052
|
return __async(this, null, function* () {
|
|
1030
1053
|
const { data: deploys } = yield netlifyClientInstance.get(
|
|
1031
|
-
`/sites/${siteId}/deploys/`,
|
|
1054
|
+
`/sites/${encodeURIComponent(siteId)}/deploys/`,
|
|
1032
1055
|
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1033
1056
|
ensureAuthorizationToken: true
|
|
1034
1057
|
}))
|
|
@@ -1037,7 +1060,7 @@ var netlifySiteApi = {
|
|
|
1037
1060
|
(innerDeploy) => innerDeploy.context === "production"
|
|
1038
1061
|
)[0];
|
|
1039
1062
|
const { data: pluginRuns } = yield netlifyClientInstance.get(
|
|
1040
|
-
`/deploys/${deploy.id}/plugin_runs`,
|
|
1063
|
+
`/deploys/${encodeURIComponent(deploy.id)}/plugin_runs`,
|
|
1041
1064
|
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1042
1065
|
ensureAuthorizationToken: true
|
|
1043
1066
|
}))
|
|
@@ -1049,7 +1072,7 @@ var netlifySiteApi = {
|
|
|
1049
1072
|
getSiteDeploys(siteId, authorization) {
|
|
1050
1073
|
return __async(this, null, function* () {
|
|
1051
1074
|
const { data: deploys } = yield netlifyClientInstance.get(
|
|
1052
|
-
`/sites/${siteId}/deploys`,
|
|
1075
|
+
`/sites/${encodeURIComponent(siteId)}/deploys`,
|
|
1053
1076
|
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1054
1077
|
ensureAuthorizationToken: true
|
|
1055
1078
|
}))
|
|
@@ -1060,7 +1083,7 @@ var netlifySiteApi = {
|
|
|
1060
1083
|
getSiteSnippets(siteId, authorization) {
|
|
1061
1084
|
return __async(this, null, function* () {
|
|
1062
1085
|
const { data: snippets } = yield netlifyClientInstance.get(
|
|
1063
|
-
`sites/${siteId}/snippets`,
|
|
1086
|
+
`sites/${encodeURIComponent(siteId)}/snippets`,
|
|
1064
1087
|
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1065
1088
|
ensureAuthorizationToken: true
|
|
1066
1089
|
}))
|
|
@@ -1075,7 +1098,7 @@ var netlifySiteApi = {
|
|
|
1075
1098
|
packages: [{ package: "@netlify/plugin-nextjs" }],
|
|
1076
1099
|
dir: ".next",
|
|
1077
1100
|
cmd: "npm run build"
|
|
1078
|
-
} : target === "
|
|
1101
|
+
} : target === "browser" ? {
|
|
1079
1102
|
plugins: [],
|
|
1080
1103
|
dir: "dist",
|
|
1081
1104
|
cmd: "npm run build"
|
|
@@ -1118,7 +1141,7 @@ var netlifySiteApi = {
|
|
|
1118
1141
|
packages: [{ package: "@netlify/plugin-nextjs" }],
|
|
1119
1142
|
dir: ".next",
|
|
1120
1143
|
cmd: "npm run build"
|
|
1121
|
-
} : target === "
|
|
1144
|
+
} : target === "browser" ? {
|
|
1122
1145
|
packages: [],
|
|
1123
1146
|
dir: "dist",
|
|
1124
1147
|
cmd: "npm run build"
|
|
@@ -1156,7 +1179,7 @@ var netlifySiteApi = {
|
|
|
1156
1179
|
removeSite(siteId, authorization) {
|
|
1157
1180
|
return __async(this, null, function* () {
|
|
1158
1181
|
yield netlifyClientInstance.delete(
|
|
1159
|
-
`/sites/${siteId}`,
|
|
1182
|
+
`/sites/${encodeURIComponent(siteId)}`,
|
|
1160
1183
|
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1161
1184
|
ensureAuthorizationToken: true
|
|
1162
1185
|
}))
|
|
@@ -1166,7 +1189,7 @@ var netlifySiteApi = {
|
|
|
1166
1189
|
triggerSiteBuild(siteId, authorization) {
|
|
1167
1190
|
return __async(this, null, function* () {
|
|
1168
1191
|
yield netlifyClientInstance.post(
|
|
1169
|
-
`/sites/${siteId}/builds`,
|
|
1192
|
+
`/sites/${encodeURIComponent(siteId)}/builds`,
|
|
1170
1193
|
{},
|
|
1171
1194
|
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1172
1195
|
ensureAuthorizationToken: true
|
|
@@ -1177,13 +1200,13 @@ var netlifySiteApi = {
|
|
|
1177
1200
|
addGitHubInstallationToSite(siteId, installationId, authorization) {
|
|
1178
1201
|
return __async(this, null, function* () {
|
|
1179
1202
|
const site = yield netlifyClientInstance.get(
|
|
1180
|
-
`/sites/${siteId}`,
|
|
1203
|
+
`/sites/${encodeURIComponent(siteId)}`,
|
|
1181
1204
|
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1182
1205
|
ensureAuthorizationToken: true
|
|
1183
1206
|
}))
|
|
1184
1207
|
);
|
|
1185
1208
|
yield netlifyClientInstance.put(
|
|
1186
|
-
`/sites/${siteId}`,
|
|
1209
|
+
`/sites/${encodeURIComponent(siteId)}`,
|
|
1187
1210
|
{
|
|
1188
1211
|
repo: {
|
|
1189
1212
|
provider: site.data.build_settings.provider,
|
|
@@ -1303,7 +1326,11 @@ var planescaleDatabasePasswordApi = {
|
|
|
1303
1326
|
getDatabasePasswords(organization, databaseName, branchName, authorization) {
|
|
1304
1327
|
return __async(this, null, function* () {
|
|
1305
1328
|
const response = yield planetScaleClientInstance.get(
|
|
1306
|
-
`/v1/organizations/${
|
|
1329
|
+
`/v1/organizations/${encodeURIComponent(
|
|
1330
|
+
organization
|
|
1331
|
+
)}/databases/${encodeURIComponent(
|
|
1332
|
+
databaseName
|
|
1333
|
+
)}/branches/${encodeURIComponent(branchName)}/passwords`,
|
|
1307
1334
|
getPlanetScaleClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1308
1335
|
ensureAuthorizationToken: true
|
|
1309
1336
|
}))
|
|
@@ -1314,7 +1341,13 @@ var planescaleDatabasePasswordApi = {
|
|
|
1314
1341
|
getDatabasePassword(organization, databaseName, branchName, passwordId, authorization) {
|
|
1315
1342
|
return __async(this, null, function* () {
|
|
1316
1343
|
const response = yield planetScaleClientInstance.get(
|
|
1317
|
-
`/v1/organizations/${
|
|
1344
|
+
`/v1/organizations/${encodeURIComponent(
|
|
1345
|
+
organization
|
|
1346
|
+
)}/databases/${encodeURIComponent(
|
|
1347
|
+
databaseName
|
|
1348
|
+
)}/branches/${encodeURIComponent(
|
|
1349
|
+
branchName
|
|
1350
|
+
)}/passwords/${encodeURIComponent(passwordId)}`,
|
|
1318
1351
|
getPlanetScaleClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1319
1352
|
ensureAuthorizationToken: true
|
|
1320
1353
|
}))
|
|
@@ -1325,7 +1358,11 @@ var planescaleDatabasePasswordApi = {
|
|
|
1325
1358
|
createDatabasePassword(organization, databaseName, branchName, passwordName, authorization) {
|
|
1326
1359
|
return __async(this, null, function* () {
|
|
1327
1360
|
const response = yield planetScaleClientInstance.post(
|
|
1328
|
-
`/v1/organizations/${
|
|
1361
|
+
`/v1/organizations/${encodeURIComponent(
|
|
1362
|
+
organization
|
|
1363
|
+
)}/databases/${encodeURIComponent(
|
|
1364
|
+
databaseName
|
|
1365
|
+
)}/branches/${encodeURIComponent(branchName)}/passwords`,
|
|
1329
1366
|
{
|
|
1330
1367
|
name: passwordName
|
|
1331
1368
|
},
|
|
@@ -1339,7 +1376,13 @@ var planescaleDatabasePasswordApi = {
|
|
|
1339
1376
|
deleteDatabasePassword(organization, databaseName, branchName, passwordId, authorization) {
|
|
1340
1377
|
return __async(this, null, function* () {
|
|
1341
1378
|
yield planetScaleClientInstance.delete(
|
|
1342
|
-
`/v1/organizations/${
|
|
1379
|
+
`/v1/organizations/${encodeURIComponent(
|
|
1380
|
+
organization
|
|
1381
|
+
)}/databases/${encodeURIComponent(
|
|
1382
|
+
databaseName
|
|
1383
|
+
)}/branches/${encodeURIComponent(
|
|
1384
|
+
branchName
|
|
1385
|
+
)}/passwords/${encodeURIComponent(passwordId)}`,
|
|
1343
1386
|
getPlanetScaleClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1344
1387
|
ensureAuthorizationToken: true
|
|
1345
1388
|
}))
|
|
@@ -1354,7 +1397,7 @@ var planescaleDatabaseApi = {
|
|
|
1354
1397
|
getDatabases(organization, authorization) {
|
|
1355
1398
|
return __async(this, null, function* () {
|
|
1356
1399
|
const response = yield planetScaleClientInstance.get(
|
|
1357
|
-
`/v1/organizations/${organization}/databases`,
|
|
1400
|
+
`/v1/organizations/${encodeURIComponent(organization)}/databases`,
|
|
1358
1401
|
getPlanetScaleClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1359
1402
|
ensureAuthorizationToken: true
|
|
1360
1403
|
}))
|
|
@@ -1365,7 +1408,9 @@ var planescaleDatabaseApi = {
|
|
|
1365
1408
|
getDatabase(organization, databaseName, authorization) {
|
|
1366
1409
|
return __async(this, null, function* () {
|
|
1367
1410
|
const response = yield planetScaleClientInstance.get(
|
|
1368
|
-
`/v1/organizations/${
|
|
1411
|
+
`/v1/organizations/${encodeURIComponent(
|
|
1412
|
+
organization
|
|
1413
|
+
)}/databases/${encodeURIComponent(databaseName)}`,
|
|
1369
1414
|
getPlanetScaleClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1370
1415
|
ensureAuthorizationToken: true
|
|
1371
1416
|
}))
|
|
@@ -1376,7 +1421,7 @@ var planescaleDatabaseApi = {
|
|
|
1376
1421
|
createDatabase(organization, name, authorization) {
|
|
1377
1422
|
return __async(this, null, function* () {
|
|
1378
1423
|
const response = yield planetScaleClientInstance.post(
|
|
1379
|
-
`/v1/organizations/${organization}/databases`,
|
|
1424
|
+
`/v1/organizations/${encodeURIComponent(organization)}/databases`,
|
|
1380
1425
|
{
|
|
1381
1426
|
name
|
|
1382
1427
|
},
|
|
@@ -1390,7 +1435,9 @@ var planescaleDatabaseApi = {
|
|
|
1390
1435
|
removeDatabase(organization, databaseName, authorization) {
|
|
1391
1436
|
return __async(this, null, function* () {
|
|
1392
1437
|
yield planetScaleClientInstance.delete(
|
|
1393
|
-
`/v1/organizations/${
|
|
1438
|
+
`/v1/organizations/${encodeURIComponent(
|
|
1439
|
+
organization
|
|
1440
|
+
)}/databases/${encodeURIComponent(databaseName)}`,
|
|
1394
1441
|
getPlanetScaleClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1395
1442
|
ensureAuthorizationToken: true
|
|
1396
1443
|
}))
|
|
@@ -1415,7 +1462,7 @@ var planescaleOrganizationApi = {
|
|
|
1415
1462
|
getOrganization(organization, authorization) {
|
|
1416
1463
|
return __async(this, null, function* () {
|
|
1417
1464
|
const response = yield planetScaleClientInstance.get(
|
|
1418
|
-
`/v1/organizations/${organization}`,
|
|
1465
|
+
`/v1/organizations/${encodeURIComponent(organization)}`,
|
|
1419
1466
|
getPlanetScaleClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1420
1467
|
ensureAuthorizationToken: true
|
|
1421
1468
|
}))
|
|
@@ -1455,7 +1502,9 @@ var planetscaleApi = {
|
|
|
1455
1502
|
grant_type: "authorization_code"
|
|
1456
1503
|
});
|
|
1457
1504
|
const response = yield import_axios8.default.post(
|
|
1458
|
-
`https://api.planetscale.com/v1/organizations/${
|
|
1505
|
+
`https://api.planetscale.com/v1/organizations/${encodeURIComponent(
|
|
1506
|
+
organization
|
|
1507
|
+
)}/oauth-applications/${encodeURIComponent(applicationId)}/token`,
|
|
1459
1508
|
data,
|
|
1460
1509
|
{
|
|
1461
1510
|
headers: {
|
|
@@ -1555,7 +1604,9 @@ var textAppMonitoringEventsApi = {
|
|
|
1555
1604
|
return __async(this, null, function* () {
|
|
1556
1605
|
try {
|
|
1557
1606
|
const response = yield textClientInstance.get(
|
|
1558
|
-
`/app_monitoring/${
|
|
1607
|
+
`/app_monitoring/${encodeURIComponent(
|
|
1608
|
+
appId
|
|
1609
|
+
)}/events/${encodeURIComponent(eventKey)}`,
|
|
1559
1610
|
getTextClientConfig(authorization)
|
|
1560
1611
|
);
|
|
1561
1612
|
return response.data;
|
|
@@ -1571,7 +1622,7 @@ var textAppMonitoringEventsApi = {
|
|
|
1571
1622
|
return __async(this, null, function* () {
|
|
1572
1623
|
try {
|
|
1573
1624
|
const response = yield textClientInstance.get(
|
|
1574
|
-
`/app_monitoring/${appId}/events`,
|
|
1625
|
+
`/app_monitoring/${encodeURIComponent(appId)}/events`,
|
|
1575
1626
|
getTextClientConfig(authorization)
|
|
1576
1627
|
);
|
|
1577
1628
|
return response.data;
|
|
@@ -1587,7 +1638,9 @@ var textAppMonitoringEventsApi = {
|
|
|
1587
1638
|
return __async(this, null, function* () {
|
|
1588
1639
|
try {
|
|
1589
1640
|
yield textClientInstance.post(
|
|
1590
|
-
`/app_monitoring/${
|
|
1641
|
+
`/app_monitoring/${encodeURIComponent(
|
|
1642
|
+
appId
|
|
1643
|
+
)}/events/${encodeURIComponent(event.key)}`,
|
|
1591
1644
|
event,
|
|
1592
1645
|
getTextClientConfig(authorization)
|
|
1593
1646
|
);
|
|
@@ -1603,7 +1656,9 @@ var textAppMonitoringEventsApi = {
|
|
|
1603
1656
|
return __async(this, null, function* () {
|
|
1604
1657
|
try {
|
|
1605
1658
|
yield textClientInstance.delete(
|
|
1606
|
-
`/app_monitoring/${
|
|
1659
|
+
`/app_monitoring/${encodeURIComponent(
|
|
1660
|
+
appId
|
|
1661
|
+
)}/events/${encodeURIComponent(eventKey)}`,
|
|
1607
1662
|
getTextClientConfig(authorization)
|
|
1608
1663
|
);
|
|
1609
1664
|
} catch (error) {
|
|
@@ -1618,7 +1673,7 @@ var textAppMonitoringEventsApi = {
|
|
|
1618
1673
|
return __async(this, null, function* () {
|
|
1619
1674
|
try {
|
|
1620
1675
|
yield textClientInstance.post(
|
|
1621
|
-
`/app_monitoring/${appId}/events`,
|
|
1676
|
+
`/app_monitoring/${encodeURIComponent(appId)}/events`,
|
|
1622
1677
|
data,
|
|
1623
1678
|
getTextClientConfig(authorization)
|
|
1624
1679
|
);
|
|
@@ -1644,7 +1699,9 @@ var textAppMonitoringEventsApi = {
|
|
|
1644
1699
|
});
|
|
1645
1700
|
}
|
|
1646
1701
|
const response = yield textClientInstance.get(
|
|
1647
|
-
`/app_monitoring/${
|
|
1702
|
+
`/app_monitoring/${encodeURIComponent(
|
|
1703
|
+
appId
|
|
1704
|
+
)}/events?${searchParams.toString()}`,
|
|
1648
1705
|
// v1
|
|
1649
1706
|
// `/app_monitoring/${appId}/events/logs?${searchParams.toString()}`, // v2
|
|
1650
1707
|
getTextClientConfig(authorization)
|
|
@@ -1666,7 +1723,9 @@ var textAppMonitoringReportsApi = {
|
|
|
1666
1723
|
return __async(this, null, function* () {
|
|
1667
1724
|
try {
|
|
1668
1725
|
const response = yield textClientInstance.get(
|
|
1669
|
-
`/app_monitoring/${
|
|
1726
|
+
`/app_monitoring/${encodeURIComponent(
|
|
1727
|
+
appId
|
|
1728
|
+
)}/reports/uptime?${new URLSearchParams({
|
|
1670
1729
|
from: payload.from,
|
|
1671
1730
|
to: payload.to,
|
|
1672
1731
|
resolution: payload.resolution
|
|
@@ -1686,7 +1745,9 @@ var textAppMonitoringReportsApi = {
|
|
|
1686
1745
|
return __async(this, null, function* () {
|
|
1687
1746
|
try {
|
|
1688
1747
|
const response = yield textClientInstance.get(
|
|
1689
|
-
`/app_monitoring/${
|
|
1748
|
+
`/app_monitoring/${encodeURIComponent(
|
|
1749
|
+
appId
|
|
1750
|
+
)}/reports/events?${new URLSearchParams({
|
|
1690
1751
|
from: payload.from,
|
|
1691
1752
|
to: payload.to,
|
|
1692
1753
|
resolution: payload.resolution
|
|
@@ -1706,7 +1767,9 @@ var textAppMonitoringReportsApi = {
|
|
|
1706
1767
|
return __async(this, null, function* () {
|
|
1707
1768
|
try {
|
|
1708
1769
|
const response = yield textClientInstance.get(
|
|
1709
|
-
`/app_monitoring/${
|
|
1770
|
+
`/app_monitoring/${encodeURIComponent(
|
|
1771
|
+
appId
|
|
1772
|
+
)}/reports/custom/${encodeURIComponent(customReportId)}`,
|
|
1710
1773
|
getTextClientConfig(authorization)
|
|
1711
1774
|
);
|
|
1712
1775
|
return response.data;
|
|
@@ -1722,7 +1785,9 @@ var textAppMonitoringReportsApi = {
|
|
|
1722
1785
|
return __async(this, null, function* () {
|
|
1723
1786
|
try {
|
|
1724
1787
|
const response = yield textClientInstance.get(
|
|
1725
|
-
`/app_monitoring/${
|
|
1788
|
+
`/app_monitoring/${encodeURIComponent(
|
|
1789
|
+
appId
|
|
1790
|
+
)}/reports/custom/${encodeURIComponent(customReportId)}/data`,
|
|
1726
1791
|
getTextClientConfig(authorization)
|
|
1727
1792
|
);
|
|
1728
1793
|
return response.data;
|
|
@@ -1738,7 +1803,7 @@ var textAppMonitoringReportsApi = {
|
|
|
1738
1803
|
return __async(this, null, function* () {
|
|
1739
1804
|
try {
|
|
1740
1805
|
const response = yield textClientInstance.get(
|
|
1741
|
-
`/app_monitoring/${appId}/reports/custom`,
|
|
1806
|
+
`/app_monitoring/${encodeURIComponent(appId)}/reports/custom`,
|
|
1742
1807
|
getTextClientConfig(authorization)
|
|
1743
1808
|
);
|
|
1744
1809
|
return response.data;
|
|
@@ -1754,7 +1819,7 @@ var textAppMonitoringReportsApi = {
|
|
|
1754
1819
|
return __async(this, null, function* () {
|
|
1755
1820
|
try {
|
|
1756
1821
|
yield textClientInstance.post(
|
|
1757
|
-
`/app_monitoring/${appId}/reports/custom`,
|
|
1822
|
+
`/app_monitoring/${encodeURIComponent(appId)}/reports/custom`,
|
|
1758
1823
|
customReport,
|
|
1759
1824
|
getTextClientConfig(authorization)
|
|
1760
1825
|
);
|
|
@@ -1770,7 +1835,9 @@ var textAppMonitoringReportsApi = {
|
|
|
1770
1835
|
return __async(this, null, function* () {
|
|
1771
1836
|
try {
|
|
1772
1837
|
yield textClientInstance.post(
|
|
1773
|
-
`/app_monitoring/${
|
|
1838
|
+
`/app_monitoring/${encodeURIComponent(
|
|
1839
|
+
appId
|
|
1840
|
+
)}/reports/custom/${encodeURIComponent(customReport.id)}`,
|
|
1774
1841
|
customReport,
|
|
1775
1842
|
getTextClientConfig(authorization)
|
|
1776
1843
|
);
|
|
@@ -1786,7 +1853,9 @@ var textAppMonitoringReportsApi = {
|
|
|
1786
1853
|
return __async(this, null, function* () {
|
|
1787
1854
|
try {
|
|
1788
1855
|
yield textClientInstance.delete(
|
|
1789
|
-
`/app_monitoring/${
|
|
1856
|
+
`/app_monitoring/${encodeURIComponent(
|
|
1857
|
+
appId
|
|
1858
|
+
)}/reports/custom/${encodeURIComponent(customReportId)}`,
|
|
1790
1859
|
getTextClientConfig(authorization)
|
|
1791
1860
|
);
|
|
1792
1861
|
} catch (error) {
|
|
@@ -1908,7 +1977,7 @@ var textPlatformWorkflowsCredentialsApi = {
|
|
|
1908
1977
|
get(id, authorization) {
|
|
1909
1978
|
return __async(this, null, function* () {
|
|
1910
1979
|
return textClientInstance.get(
|
|
1911
|
-
`/workflow_platform/credentials/${id}`,
|
|
1980
|
+
`/workflow_platform/credentials/${encodeURIComponent(id)}`,
|
|
1912
1981
|
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1913
1982
|
ensureAuthorizationToken: true
|
|
1914
1983
|
}))
|
|
@@ -1960,7 +2029,7 @@ var textPlatformWorkflowsCredentialsApi = {
|
|
|
1960
2029
|
update(id, payload, authorization) {
|
|
1961
2030
|
return __async(this, null, function* () {
|
|
1962
2031
|
return textClientInstance.post(
|
|
1963
|
-
`/workflow_platform/credentials/${id}`,
|
|
2032
|
+
`/workflow_platform/credentials/${encodeURIComponent(id)}`,
|
|
1964
2033
|
payload,
|
|
1965
2034
|
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1966
2035
|
ensureAuthorizationToken: true
|
|
@@ -1978,7 +2047,7 @@ var textPlatformWorkflowsCredentialsApi = {
|
|
|
1978
2047
|
delete(id, authorization) {
|
|
1979
2048
|
return __async(this, null, function* () {
|
|
1980
2049
|
return textClientInstance.delete(
|
|
1981
|
-
`/workflow_platform/credentials/${id}`,
|
|
2050
|
+
`/workflow_platform/credentials/${encodeURIComponent(id)}`,
|
|
1982
2051
|
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1983
2052
|
ensureAuthorizationToken: true
|
|
1984
2053
|
}))
|
|
@@ -1995,7 +2064,7 @@ var textPlatformWorkflowsCredentialsApi = {
|
|
|
1995
2064
|
connect(id, code, authorization) {
|
|
1996
2065
|
return __async(this, null, function* () {
|
|
1997
2066
|
return textClientInstance.put(
|
|
1998
|
-
`/workflow_platform/credentials/${id}/connection`,
|
|
2067
|
+
`/workflow_platform/credentials/${encodeURIComponent(id)}/connection`,
|
|
1999
2068
|
{
|
|
2000
2069
|
code
|
|
2001
2070
|
},
|
|
@@ -2041,7 +2110,9 @@ var textPlatformWorkflowsApi = {
|
|
|
2041
2110
|
getWorkflow(payload, authorization) {
|
|
2042
2111
|
return __async(this, null, function* () {
|
|
2043
2112
|
const { data: workflow } = yield textClientInstance.get(
|
|
2044
|
-
`/workflow_platform/workflows/${
|
|
2113
|
+
`/workflow_platform/workflows/${encodeURIComponent(
|
|
2114
|
+
payload.name
|
|
2115
|
+
)}?version=${payload.version}`,
|
|
2045
2116
|
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2046
2117
|
ensureAuthorizationToken: true
|
|
2047
2118
|
}))
|
|
@@ -2052,7 +2123,7 @@ var textPlatformWorkflowsApi = {
|
|
|
2052
2123
|
updateWorkflow(payload, authorization) {
|
|
2053
2124
|
return __async(this, null, function* () {
|
|
2054
2125
|
const { data: workflow } = yield textClientInstance.put(
|
|
2055
|
-
`/workflow_platform/workflows/${payload.name}`,
|
|
2126
|
+
`/workflow_platform/workflows/${encodeURIComponent(payload.name)}`,
|
|
2056
2127
|
payload,
|
|
2057
2128
|
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2058
2129
|
ensureAuthorizationToken: true
|
|
@@ -2064,7 +2135,7 @@ var textPlatformWorkflowsApi = {
|
|
|
2064
2135
|
deleteWorkflow(payload, authorization) {
|
|
2065
2136
|
return __async(this, null, function* () {
|
|
2066
2137
|
yield textClientInstance.delete(
|
|
2067
|
-
`/workflow_platform/workflows/${payload.name}`,
|
|
2138
|
+
`/workflow_platform/workflows/${encodeURIComponent(payload.name)}`,
|
|
2068
2139
|
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2069
2140
|
ensureAuthorizationToken: true
|
|
2070
2141
|
}))
|
|
@@ -2074,7 +2145,9 @@ var textPlatformWorkflowsApi = {
|
|
|
2074
2145
|
executeWorkflow(payload, authorization) {
|
|
2075
2146
|
return __async(this, null, function* () {
|
|
2076
2147
|
const { data: execution } = yield textClientInstance.post(
|
|
2077
|
-
`/workflow_platform/workflows/${
|
|
2148
|
+
`/workflow_platform/workflows/${encodeURIComponent(
|
|
2149
|
+
payload.name
|
|
2150
|
+
)}/executions`,
|
|
2078
2151
|
payload,
|
|
2079
2152
|
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2080
2153
|
ensureAuthorizationToken: true
|
|
@@ -2086,7 +2159,9 @@ var textPlatformWorkflowsApi = {
|
|
|
2086
2159
|
getWorkflowExecutionsList(payload, authorization) {
|
|
2087
2160
|
return __async(this, null, function* () {
|
|
2088
2161
|
const { data: executions } = yield textClientInstance.get(
|
|
2089
|
-
`/workflow_platform/workflows/${
|
|
2162
|
+
`/workflow_platform/workflows/${encodeURIComponent(
|
|
2163
|
+
payload.name
|
|
2164
|
+
)}/executions`,
|
|
2090
2165
|
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2091
2166
|
ensureAuthorizationToken: true
|
|
2092
2167
|
}))
|
|
@@ -2097,7 +2172,9 @@ var textPlatformWorkflowsApi = {
|
|
|
2097
2172
|
getWorkflowExecutionDetails(payload, authorization) {
|
|
2098
2173
|
return __async(this, null, function* () {
|
|
2099
2174
|
const { data: execution } = yield textClientInstance.get(
|
|
2100
|
-
`/workflow_platform/workflows/${
|
|
2175
|
+
`/workflow_platform/workflows/${encodeURIComponent(
|
|
2176
|
+
payload.name
|
|
2177
|
+
)}/executions/${encodeURIComponent(payload.execution_id)}`,
|
|
2101
2178
|
getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2102
2179
|
ensureAuthorizationToken: true
|
|
2103
2180
|
}))
|
|
@@ -2296,7 +2373,7 @@ var vercelProjectApi = {
|
|
|
2296
2373
|
getProject(projectId, authorization) {
|
|
2297
2374
|
return __async(this, null, function* () {
|
|
2298
2375
|
const response = yield vercelClientInstance.get(
|
|
2299
|
-
`/v9/projects/${projectId}`,
|
|
2376
|
+
`/v9/projects/${encodeURIComponent(projectId)}`,
|
|
2300
2377
|
getVercelClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2301
2378
|
ensureAuthorizationToken: true
|
|
2302
2379
|
}))
|
|
@@ -2327,7 +2404,7 @@ var vercelProjectApi = {
|
|
|
2327
2404
|
removeProject(projectId, authorization) {
|
|
2328
2405
|
return __async(this, null, function* () {
|
|
2329
2406
|
yield vercelClientInstance.delete(
|
|
2330
|
-
`/projects/${projectId}`,
|
|
2407
|
+
`/projects/${encodeURIComponent(projectId)}`,
|
|
2331
2408
|
getVercelClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2332
2409
|
ensureAuthorizationToken: true
|
|
2333
2410
|
}))
|
|
@@ -2339,7 +2416,7 @@ var vercelProjectApi = {
|
|
|
2339
2416
|
const {
|
|
2340
2417
|
data: { envs }
|
|
2341
2418
|
} = yield vercelClientInstance.get(
|
|
2342
|
-
`/v9/projects/${projectId}/env`,
|
|
2419
|
+
`/v9/projects/${encodeURIComponent(projectId)}/env`,
|
|
2343
2420
|
getVercelClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2344
2421
|
ensureAuthorizationToken: true
|
|
2345
2422
|
}))
|
|
@@ -2350,7 +2427,9 @@ var vercelProjectApi = {
|
|
|
2350
2427
|
getProjectEnv(projectId, envId, authorization) {
|
|
2351
2428
|
return __async(this, null, function* () {
|
|
2352
2429
|
const { data } = yield vercelClientInstance.get(
|
|
2353
|
-
`/v9/projects/${projectId}/env/${
|
|
2430
|
+
`/v9/projects/${encodeURIComponent(projectId)}/env/${encodeURIComponent(
|
|
2431
|
+
envId
|
|
2432
|
+
)}`,
|
|
2354
2433
|
getVercelClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2355
2434
|
ensureAuthorizationToken: true
|
|
2356
2435
|
}))
|
|
@@ -2372,13 +2451,18 @@ var vercelProjectApi = {
|
|
|
2372
2451
|
return __async(this, null, function* () {
|
|
2373
2452
|
let envs = projectEnvs;
|
|
2374
2453
|
if (!envs) {
|
|
2375
|
-
const response = yield vercelClientInstance.get(
|
|
2454
|
+
const response = yield vercelClientInstance.get(
|
|
2455
|
+
`/v9/projects/${encodeURIComponent(projectId)}/env`,
|
|
2456
|
+
getVercelClientConfig(authorization)
|
|
2457
|
+
);
|
|
2376
2458
|
envs = response.data.envs;
|
|
2377
2459
|
}
|
|
2378
2460
|
const existingEnv = envs.find((env) => env.key === key);
|
|
2379
2461
|
if (existingEnv) {
|
|
2380
2462
|
const { data: editedEnv } = yield vercelClientInstance.patch(
|
|
2381
|
-
`/v9/projects/${
|
|
2463
|
+
`/v9/projects/${encodeURIComponent(
|
|
2464
|
+
projectId
|
|
2465
|
+
)}/env/${encodeURIComponent(existingEnv.id)}`,
|
|
2382
2466
|
{
|
|
2383
2467
|
key,
|
|
2384
2468
|
value,
|
|
@@ -2392,7 +2476,7 @@ var vercelProjectApi = {
|
|
|
2392
2476
|
return editedEnv;
|
|
2393
2477
|
}
|
|
2394
2478
|
const { data: createdEnv } = yield vercelClientInstance.post(
|
|
2395
|
-
`/v9/projects/${projectId}/env`,
|
|
2479
|
+
`/v9/projects/${encodeURIComponent(projectId)}/env`,
|
|
2396
2480
|
{
|
|
2397
2481
|
key,
|
|
2398
2482
|
value,
|
|
@@ -2409,7 +2493,9 @@ var vercelProjectApi = {
|
|
|
2409
2493
|
removeProjectEnv(projectId, envId, authorization) {
|
|
2410
2494
|
return __async(this, null, function* () {
|
|
2411
2495
|
yield vercelClientInstance.delete(
|
|
2412
|
-
`/v9/projects/${projectId}/env/${
|
|
2496
|
+
`/v9/projects/${encodeURIComponent(projectId)}/env/${encodeURIComponent(
|
|
2497
|
+
envId
|
|
2498
|
+
)}`,
|
|
2413
2499
|
getVercelClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2414
2500
|
ensureAuthorizationToken: true
|
|
2415
2501
|
}))
|
|
@@ -2511,7 +2597,9 @@ var neonProjectBranchApi = {
|
|
|
2511
2597
|
getBranch(projectId, branchId, authorization) {
|
|
2512
2598
|
return __async(this, null, function* () {
|
|
2513
2599
|
const response = yield neonClientInstance.get(
|
|
2514
|
-
`projects/${projectId}/branches/${
|
|
2600
|
+
`projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(
|
|
2601
|
+
branchId
|
|
2602
|
+
)}`,
|
|
2515
2603
|
getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2516
2604
|
ensureAuthorizationToken: true
|
|
2517
2605
|
}))
|
|
@@ -2522,7 +2610,7 @@ var neonProjectBranchApi = {
|
|
|
2522
2610
|
getBranches(projectId, authorization) {
|
|
2523
2611
|
return __async(this, null, function* () {
|
|
2524
2612
|
const response = yield neonClientInstance.get(
|
|
2525
|
-
`projects/${projectId}/branches`,
|
|
2613
|
+
`projects/${encodeURIComponent(projectId)}/branches`,
|
|
2526
2614
|
getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2527
2615
|
ensureAuthorizationToken: true
|
|
2528
2616
|
}))
|
|
@@ -2533,7 +2621,9 @@ var neonProjectBranchApi = {
|
|
|
2533
2621
|
createRole(projectId, branchId, roleName, authorization) {
|
|
2534
2622
|
return __async(this, null, function* () {
|
|
2535
2623
|
const response = yield neonClientInstance.post(
|
|
2536
|
-
`projects/${projectId}/branches/${
|
|
2624
|
+
`projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(
|
|
2625
|
+
branchId
|
|
2626
|
+
)}/roles`,
|
|
2537
2627
|
{
|
|
2538
2628
|
role: {
|
|
2539
2629
|
name: roleName
|
|
@@ -2549,7 +2639,9 @@ var neonProjectBranchApi = {
|
|
|
2549
2639
|
getRole(projectId, branchId, roleName, authorization) {
|
|
2550
2640
|
return __async(this, null, function* () {
|
|
2551
2641
|
const response = yield neonClientInstance.get(
|
|
2552
|
-
`projects/${projectId}/branches/${
|
|
2642
|
+
`projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(
|
|
2643
|
+
branchId
|
|
2644
|
+
)}/roles/${encodeURIComponent(roleName)}`,
|
|
2553
2645
|
getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2554
2646
|
ensureAuthorizationToken: true
|
|
2555
2647
|
}))
|
|
@@ -2560,7 +2652,9 @@ var neonProjectBranchApi = {
|
|
|
2560
2652
|
getRoles(projectId, branchId, authorization) {
|
|
2561
2653
|
return __async(this, null, function* () {
|
|
2562
2654
|
const response = yield neonClientInstance.get(
|
|
2563
|
-
`projects/${projectId}/branches/${
|
|
2655
|
+
`projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(
|
|
2656
|
+
branchId
|
|
2657
|
+
)}/roles`,
|
|
2564
2658
|
getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2565
2659
|
ensureAuthorizationToken: true
|
|
2566
2660
|
}))
|
|
@@ -2571,7 +2665,9 @@ var neonProjectBranchApi = {
|
|
|
2571
2665
|
createDatabase(projectId, branchId, databaseName, ownerName, authorization) {
|
|
2572
2666
|
return __async(this, null, function* () {
|
|
2573
2667
|
const response = yield neonClientInstance.post(
|
|
2574
|
-
`projects/${projectId}/branches/${
|
|
2668
|
+
`projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(
|
|
2669
|
+
branchId
|
|
2670
|
+
)}/databases`,
|
|
2575
2671
|
{
|
|
2576
2672
|
database: {
|
|
2577
2673
|
name: databaseName,
|
|
@@ -2588,7 +2684,9 @@ var neonProjectBranchApi = {
|
|
|
2588
2684
|
deleteDatabase(projectId, branchId, databaseName, authorization) {
|
|
2589
2685
|
return __async(this, null, function* () {
|
|
2590
2686
|
const response = yield neonClientInstance.delete(
|
|
2591
|
-
`projects/${projectId}/branches/${
|
|
2687
|
+
`projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(
|
|
2688
|
+
branchId
|
|
2689
|
+
)}/databases/${encodeURIComponent(databaseName)}`,
|
|
2592
2690
|
getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2593
2691
|
ensureAuthorizationToken: true
|
|
2594
2692
|
}))
|
|
@@ -2599,7 +2697,9 @@ var neonProjectBranchApi = {
|
|
|
2599
2697
|
getDatabase(projectId, branchId, databaseName, authorization) {
|
|
2600
2698
|
return __async(this, null, function* () {
|
|
2601
2699
|
const response = yield neonClientInstance.get(
|
|
2602
|
-
`projects/${projectId}/branches/${
|
|
2700
|
+
`projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(
|
|
2701
|
+
branchId
|
|
2702
|
+
)}/databases/${encodeURIComponent(databaseName)}`,
|
|
2603
2703
|
getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2604
2704
|
ensureAuthorizationToken: true
|
|
2605
2705
|
}))
|
|
@@ -2610,7 +2710,9 @@ var neonProjectBranchApi = {
|
|
|
2610
2710
|
getDatabases(projectId, branchId, authorization) {
|
|
2611
2711
|
return __async(this, null, function* () {
|
|
2612
2712
|
const response = yield neonClientInstance.get(
|
|
2613
|
-
`projects/${projectId}/branches/${
|
|
2713
|
+
`projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(
|
|
2714
|
+
branchId
|
|
2715
|
+
)}/databases`,
|
|
2614
2716
|
getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2615
2717
|
ensureAuthorizationToken: true
|
|
2616
2718
|
}))
|
|
@@ -2621,7 +2723,9 @@ var neonProjectBranchApi = {
|
|
|
2621
2723
|
getRolePassword(projectId, branchId, roleName, authorization) {
|
|
2622
2724
|
return __async(this, null, function* () {
|
|
2623
2725
|
const response = yield neonClientInstance.get(
|
|
2624
|
-
`projects/${projectId}/branches/${
|
|
2726
|
+
`projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(
|
|
2727
|
+
branchId
|
|
2728
|
+
)}/roles/${encodeURIComponent(roleName)}/reveal_password`,
|
|
2625
2729
|
getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2626
2730
|
ensureAuthorizationToken: true
|
|
2627
2731
|
}))
|
|
@@ -2632,7 +2736,9 @@ var neonProjectBranchApi = {
|
|
|
2632
2736
|
getBranchEndpoints(projectId, branchId, authorization) {
|
|
2633
2737
|
return __async(this, null, function* () {
|
|
2634
2738
|
const response = yield neonClientInstance.get(
|
|
2635
|
-
`projects/${projectId}/branches/${
|
|
2739
|
+
`projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(
|
|
2740
|
+
branchId
|
|
2741
|
+
)}/endpoints`,
|
|
2636
2742
|
getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2637
2743
|
ensureAuthorizationToken: true
|
|
2638
2744
|
}))
|
|
@@ -2667,7 +2773,7 @@ var neonProjectApi = {
|
|
|
2667
2773
|
getProject(projectId, authorization) {
|
|
2668
2774
|
return __async(this, null, function* () {
|
|
2669
2775
|
const response = yield neonClientInstance.get(
|
|
2670
|
-
`/projects/${projectId}`,
|
|
2776
|
+
`/projects/${encodeURIComponent(projectId)}`,
|
|
2671
2777
|
getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2672
2778
|
ensureAuthorizationToken: true
|
|
2673
2779
|
}))
|
|
@@ -2689,7 +2795,7 @@ var neonProjectApi = {
|
|
|
2689
2795
|
deleteProject(projectId, authorization) {
|
|
2690
2796
|
return __async(this, null, function* () {
|
|
2691
2797
|
const response = yield neonClientInstance.delete(
|
|
2692
|
-
`/projects/${projectId}`,
|
|
2798
|
+
`/projects/${encodeURIComponent(projectId)}`,
|
|
2693
2799
|
getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2694
2800
|
ensureAuthorizationToken: true
|
|
2695
2801
|
}))
|
|
@@ -2855,7 +2961,7 @@ var mailchimpListsWebhooksApi = {
|
|
|
2855
2961
|
list(listId, authorization) {
|
|
2856
2962
|
return __async(this, null, function* () {
|
|
2857
2963
|
const response = yield mailchimpClientInstance.get(
|
|
2858
|
-
`/lists/${listId}/webhooks`,
|
|
2964
|
+
`/lists/${encodeURIComponent(listId)}/webhooks`,
|
|
2859
2965
|
getMailchimpClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2860
2966
|
ensureAuthorizationToken: true
|
|
2861
2967
|
}))
|
|
@@ -2866,7 +2972,7 @@ var mailchimpListsWebhooksApi = {
|
|
|
2866
2972
|
add(listId, webhook, authorization) {
|
|
2867
2973
|
return __async(this, null, function* () {
|
|
2868
2974
|
const response = yield mailchimpClientInstance.post(
|
|
2869
|
-
`/lists/${listId}/webhooks`,
|
|
2975
|
+
`/lists/${encodeURIComponent(listId)}/webhooks`,
|
|
2870
2976
|
webhook,
|
|
2871
2977
|
getMailchimpClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2872
2978
|
ensureAuthorizationToken: true
|
|
@@ -2878,7 +2984,7 @@ var mailchimpListsWebhooksApi = {
|
|
|
2878
2984
|
delete(listId, webhookId, authorization) {
|
|
2879
2985
|
return __async(this, null, function* () {
|
|
2880
2986
|
yield mailchimpClientInstance.delete(
|
|
2881
|
-
`/lists/${listId}/webhooks/${webhookId}`,
|
|
2987
|
+
`/lists/${encodeURIComponent(listId)}/webhooks/${webhookId}`,
|
|
2882
2988
|
getMailchimpClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2883
2989
|
ensureAuthorizationToken: true
|
|
2884
2990
|
}))
|
|
@@ -3052,7 +3158,7 @@ var shopifyWebhooksApi = {
|
|
|
3052
3158
|
unregister(webhookId, authorization) {
|
|
3053
3159
|
return __async(this, null, function* () {
|
|
3054
3160
|
yield shopifyClientInstance.delete(
|
|
3055
|
-
`/webhooks/${webhookId}.json`,
|
|
3161
|
+
`/webhooks/${encodeURIComponent(webhookId)}.json`,
|
|
3056
3162
|
getShopifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
3057
3163
|
ensureAuthorizationToken: true
|
|
3058
3164
|
}))
|
|
@@ -3075,7 +3181,9 @@ var shopifyApi = {
|
|
|
3075
3181
|
grant_type: "authorization_code"
|
|
3076
3182
|
});
|
|
3077
3183
|
const response = yield import_axios17.default.post(
|
|
3078
|
-
`https://${
|
|
3184
|
+
`https://${encodeURIComponent(
|
|
3185
|
+
shop
|
|
3186
|
+
)}.myshopify.com/admin/oauth/access_token`,
|
|
3079
3187
|
data,
|
|
3080
3188
|
{
|
|
3081
3189
|
headers: {
|
|
@@ -3749,7 +3857,7 @@ var platformAccountsAccountApi = {
|
|
|
3749
3857
|
getAccount(accountId, authorization) {
|
|
3750
3858
|
return __async(this, null, function* () {
|
|
3751
3859
|
return platformAccountsClientInstance.get(
|
|
3752
|
-
`/v2/accounts/${accountId}`,
|
|
3860
|
+
`/v2/accounts/${encodeURIComponent(accountId)}`,
|
|
3753
3861
|
{
|
|
3754
3862
|
authorization,
|
|
3755
3863
|
customErrorMessage: "Account couldn't be fetched."
|
|
@@ -3774,19 +3882,16 @@ var platformAccountsAccountApi = {
|
|
|
3774
3882
|
var platformAccountsClientApi = {
|
|
3775
3883
|
getClients(authorization) {
|
|
3776
3884
|
return __async(this, null, function* () {
|
|
3777
|
-
return platformAccountsClientInstance.get(
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
customErrorMessage: "Clients couldn't be fetched."
|
|
3782
|
-
}
|
|
3783
|
-
);
|
|
3885
|
+
return platformAccountsClientInstance.get(`/v2/clients`, {
|
|
3886
|
+
authorization,
|
|
3887
|
+
customErrorMessage: "Clients couldn't be fetched."
|
|
3888
|
+
});
|
|
3784
3889
|
});
|
|
3785
3890
|
},
|
|
3786
3891
|
getClient(clientId, authorization) {
|
|
3787
3892
|
return __async(this, null, function* () {
|
|
3788
3893
|
return platformAccountsClientInstance.get(
|
|
3789
|
-
`/v2/clients/${clientId}`,
|
|
3894
|
+
`/v2/clients/${encodeURIComponent(clientId)}`,
|
|
3790
3895
|
{
|
|
3791
3896
|
authorization,
|
|
3792
3897
|
customErrorMessage: "Client couldn't be fetched."
|
|
@@ -3805,7 +3910,7 @@ var platformAccountsClientApi = {
|
|
|
3805
3910
|
updateClient(clientId, payload, authorization) {
|
|
3806
3911
|
return __async(this, null, function* () {
|
|
3807
3912
|
return platformAccountsClientInstance.patch(
|
|
3808
|
-
`/v2/clients/${clientId}`,
|
|
3913
|
+
`/v2/clients/${encodeURIComponent(clientId)}`,
|
|
3809
3914
|
payload,
|
|
3810
3915
|
{
|
|
3811
3916
|
authorization,
|
|
@@ -3817,7 +3922,7 @@ var platformAccountsClientApi = {
|
|
|
3817
3922
|
deleteClient(clientId, authorization) {
|
|
3818
3923
|
return __async(this, null, function* () {
|
|
3819
3924
|
return platformAccountsClientInstance.delete(
|
|
3820
|
-
`/v2/clients/${clientId}`,
|
|
3925
|
+
`/v2/clients/${encodeURIComponent(clientId)}`,
|
|
3821
3926
|
void 0,
|
|
3822
3927
|
{
|
|
3823
3928
|
authorization,
|
|
@@ -3829,7 +3934,7 @@ var platformAccountsClientApi = {
|
|
|
3829
3934
|
updateClientScopes(clientId, scopes, authorization) {
|
|
3830
3935
|
return __async(this, null, function* () {
|
|
3831
3936
|
return platformAccountsClientInstance.put(
|
|
3832
|
-
`/v2/clients/${clientId}/scopes`,
|
|
3937
|
+
`/v2/clients/${encodeURIComponent(clientId)}/scopes`,
|
|
3833
3938
|
scopes.map((scope) => ({
|
|
3834
3939
|
scope: scope.scope,
|
|
3835
3940
|
required: scope.required
|
|
@@ -3844,7 +3949,7 @@ var platformAccountsClientApi = {
|
|
|
3844
3949
|
deleteClientScopes(clientId, scopes, authorization) {
|
|
3845
3950
|
return __async(this, null, function* () {
|
|
3846
3951
|
return platformAccountsClientInstance.delete(
|
|
3847
|
-
`/v2/clients/${clientId}/scopes`,
|
|
3952
|
+
`/v2/clients/${encodeURIComponent(clientId)}/scopes`,
|
|
3848
3953
|
{
|
|
3849
3954
|
data: scopes.map((scope) => ({
|
|
3850
3955
|
scope: scope.scope,
|
|
@@ -3922,7 +4027,7 @@ var platformAccountsPersonalAccessTokenApi = {
|
|
|
3922
4027
|
deletePersonalAccessToken(id, authorization) {
|
|
3923
4028
|
return __async(this, null, function* () {
|
|
3924
4029
|
return platformAccountsClientInstance.delete(
|
|
3925
|
-
`/v2/personal_token/${id}`,
|
|
4030
|
+
`/v2/personal_token/${encodeURIComponent(id)}`,
|
|
3926
4031
|
void 0,
|
|
3927
4032
|
{
|
|
3928
4033
|
authorization,
|
|
@@ -4225,7 +4330,7 @@ var appTemplates = {
|
|
|
4225
4330
|
target: "nextjs"
|
|
4226
4331
|
},
|
|
4227
4332
|
deployment: {
|
|
4228
|
-
provider: "
|
|
4333
|
+
provider: "vercel",
|
|
4229
4334
|
url: ""
|
|
4230
4335
|
},
|
|
4231
4336
|
storage: {
|
|
@@ -4264,7 +4369,7 @@ var platformDpsApplicationAuthorizationApi = {
|
|
|
4264
4369
|
createAuth(appId, payload, authorization) {
|
|
4265
4370
|
return __async(this, null, function* () {
|
|
4266
4371
|
yield platformDpsClientInstance.post(
|
|
4267
|
-
`/v2/applications/${appId}/authorization`,
|
|
4372
|
+
`/v2/applications/${encodeURIComponent(appId)}/authorization`,
|
|
4268
4373
|
payload,
|
|
4269
4374
|
getPlatformDpsClientConfig(authorization)
|
|
4270
4375
|
).catch((error) => {
|
|
@@ -4277,7 +4382,7 @@ var platformDpsApplicationAuthorizationApi = {
|
|
|
4277
4382
|
deleteAuth(appId, authorization) {
|
|
4278
4383
|
return __async(this, null, function* () {
|
|
4279
4384
|
yield platformDpsClientInstance.delete(
|
|
4280
|
-
`/v2/applications/${appId}/authorization`,
|
|
4385
|
+
`/v2/applications/${encodeURIComponent(appId)}/authorization`,
|
|
4281
4386
|
getPlatformDpsClientConfig(authorization)
|
|
4282
4387
|
).catch((error) => {
|
|
4283
4388
|
throw error.withCustomMessage(
|
|
@@ -4360,7 +4465,7 @@ var platformDpsApplicationAutoReviewApi = {
|
|
|
4360
4465
|
getAutoReview(appId, authorization) {
|
|
4361
4466
|
return __async(this, null, function* () {
|
|
4362
4467
|
return platformDpsClientInstance.get(
|
|
4363
|
-
`/v2/applications/${appId}/auto-review`,
|
|
4468
|
+
`/v2/applications/${encodeURIComponent(appId)}/auto-review`,
|
|
4364
4469
|
getPlatformDpsClientConfig(authorization)
|
|
4365
4470
|
).then(({ status, data }) => {
|
|
4366
4471
|
if (status === 204) {
|
|
@@ -4377,7 +4482,7 @@ var platformDpsApplicationAutoReviewApi = {
|
|
|
4377
4482
|
submitAutoReview(appId, payload, authorization) {
|
|
4378
4483
|
return __async(this, null, function* () {
|
|
4379
4484
|
yield platformDpsClientInstance.post(
|
|
4380
|
-
`/v2/applications/${appId}/auto-review`,
|
|
4485
|
+
`/v2/applications/${encodeURIComponent(appId)}/auto-review`,
|
|
4381
4486
|
payload,
|
|
4382
4487
|
getPlatformDpsClientConfig(authorization)
|
|
4383
4488
|
).catch((error) => {
|
|
@@ -4394,7 +4499,9 @@ var platformDpsApplicationChatActionsApi = {
|
|
|
4394
4499
|
createChatAction(appId, payload, authorization) {
|
|
4395
4500
|
return __async(this, null, function* () {
|
|
4396
4501
|
yield platformDpsClientInstance.put(
|
|
4397
|
-
`/v2/applications/${
|
|
4502
|
+
`/v2/applications/${encodeURIComponent(
|
|
4503
|
+
appId
|
|
4504
|
+
)}/chat-actions/${encodeURIComponent(payload.id)}`,
|
|
4398
4505
|
payload,
|
|
4399
4506
|
getPlatformDpsClientConfig(authorization)
|
|
4400
4507
|
).catch((error) => {
|
|
@@ -4407,7 +4514,9 @@ var platformDpsApplicationChatActionsApi = {
|
|
|
4407
4514
|
updateChatAction(appId, payload, authorization) {
|
|
4408
4515
|
return __async(this, null, function* () {
|
|
4409
4516
|
yield platformDpsClientInstance.patch(
|
|
4410
|
-
`/v2/applications/${
|
|
4517
|
+
`/v2/applications/${encodeURIComponent(
|
|
4518
|
+
appId
|
|
4519
|
+
)}/chat-actions/${encodeURIComponent(payload.id)}`,
|
|
4411
4520
|
payload,
|
|
4412
4521
|
getPlatformDpsClientConfig(authorization)
|
|
4413
4522
|
).catch((error) => {
|
|
@@ -4420,7 +4529,9 @@ var platformDpsApplicationChatActionsApi = {
|
|
|
4420
4529
|
deleteChatAction(appId, chatActionId, authorization) {
|
|
4421
4530
|
return __async(this, null, function* () {
|
|
4422
4531
|
yield platformDpsClientInstance.delete(
|
|
4423
|
-
`/v2/applications/${
|
|
4532
|
+
`/v2/applications/${encodeURIComponent(
|
|
4533
|
+
appId
|
|
4534
|
+
)}/chat-actions/${encodeURIComponent(chatActionId)}`,
|
|
4424
4535
|
__spreadValues({}, getPlatformDpsClientConfig(authorization))
|
|
4425
4536
|
).catch((error) => {
|
|
4426
4537
|
throw error.withCustomMessage(
|
|
@@ -4435,7 +4546,9 @@ var platformDpsApplicationChatActionsApi = {
|
|
|
4435
4546
|
var platformDpsApplicationChatBoostersApi = {
|
|
4436
4547
|
createChatBooster(appId, chatBoosterId, payload, authorization) {
|
|
4437
4548
|
return platformDpsClientInstance.put(
|
|
4438
|
-
`/v2/applications/${
|
|
4549
|
+
`/v2/applications/${encodeURIComponent(
|
|
4550
|
+
appId
|
|
4551
|
+
)}/chat-boosters/${encodeURIComponent(chatBoosterId)}`,
|
|
4439
4552
|
payload,
|
|
4440
4553
|
getPlatformDpsClientConfig(authorization)
|
|
4441
4554
|
).catch((error) => {
|
|
@@ -4447,7 +4560,9 @@ var platformDpsApplicationChatBoostersApi = {
|
|
|
4447
4560
|
updateChatBooster(appId, chatBoosterId, payload, authorization) {
|
|
4448
4561
|
return __async(this, null, function* () {
|
|
4449
4562
|
return platformDpsClientInstance.put(
|
|
4450
|
-
`/v2/applications/${
|
|
4563
|
+
`/v2/applications/${encodeURIComponent(
|
|
4564
|
+
appId
|
|
4565
|
+
)}/chat-boosters/${encodeURIComponent(chatBoosterId)}`,
|
|
4451
4566
|
payload,
|
|
4452
4567
|
getPlatformDpsClientConfig(authorization)
|
|
4453
4568
|
).catch((error) => {
|
|
@@ -4460,7 +4575,9 @@ var platformDpsApplicationChatBoostersApi = {
|
|
|
4460
4575
|
deleteChatBooster(appId, chatBoosterId, authorization) {
|
|
4461
4576
|
return __async(this, null, function* () {
|
|
4462
4577
|
return platformDpsClientInstance.delete(
|
|
4463
|
-
`/v2/applications/${
|
|
4578
|
+
`/v2/applications/${encodeURIComponent(
|
|
4579
|
+
appId
|
|
4580
|
+
)}/chat-boosters/${encodeURIComponent(chatBoosterId)}`,
|
|
4464
4581
|
getPlatformDpsClientConfig(authorization)
|
|
4465
4582
|
).catch((error) => {
|
|
4466
4583
|
throw error.withCustomMessage(
|
|
@@ -4476,7 +4593,7 @@ var platformDpsApplicationDisplayApi = {
|
|
|
4476
4593
|
updateVersionHistory(appId, payload, authorization) {
|
|
4477
4594
|
return __async(this, null, function* () {
|
|
4478
4595
|
yield platformDpsClientInstance.put(
|
|
4479
|
-
`/v2/applications/${appId}/display/changelog`,
|
|
4596
|
+
`/v2/applications/${encodeURIComponent(appId)}/display/changelog`,
|
|
4480
4597
|
payload,
|
|
4481
4598
|
getPlatformDpsClientConfig(authorization)
|
|
4482
4599
|
).catch((error) => {
|
|
@@ -4489,7 +4606,7 @@ var platformDpsApplicationDisplayApi = {
|
|
|
4489
4606
|
updateBasicDetails(appId, basicDetails, authorization) {
|
|
4490
4607
|
return __async(this, null, function* () {
|
|
4491
4608
|
yield platformDpsClientInstance.put(
|
|
4492
|
-
`/v2/applications/${appId}/display`,
|
|
4609
|
+
`/v2/applications/${encodeURIComponent(appId)}/display`,
|
|
4493
4610
|
basicDetails,
|
|
4494
4611
|
getPlatformDpsClientConfig(authorization)
|
|
4495
4612
|
).catch((error) => {
|
|
@@ -4502,7 +4619,7 @@ var platformDpsApplicationDisplayApi = {
|
|
|
4502
4619
|
patchBasicDetails(appId, basicDetails, authorization) {
|
|
4503
4620
|
return __async(this, null, function* () {
|
|
4504
4621
|
yield platformDpsClientInstance.patch(
|
|
4505
|
-
`/v2/applications/${appId}/display`,
|
|
4622
|
+
`/v2/applications/${encodeURIComponent(appId)}/display`,
|
|
4506
4623
|
basicDetails,
|
|
4507
4624
|
getPlatformDpsClientConfig(authorization)
|
|
4508
4625
|
).catch((error) => {
|
|
@@ -4515,7 +4632,7 @@ var platformDpsApplicationDisplayApi = {
|
|
|
4515
4632
|
updateOverview(appId, data, authorization) {
|
|
4516
4633
|
return __async(this, null, function* () {
|
|
4517
4634
|
yield platformDpsClientInstance.put(
|
|
4518
|
-
`/v2/applications/${appId}/listing/overview`,
|
|
4635
|
+
`/v2/applications/${encodeURIComponent(appId)}/listing/overview`,
|
|
4519
4636
|
data,
|
|
4520
4637
|
getPlatformDpsClientConfig(authorization)
|
|
4521
4638
|
).catch((error) => {
|
|
@@ -4528,7 +4645,7 @@ var platformDpsApplicationDisplayApi = {
|
|
|
4528
4645
|
updateTutorialAndSupport(appId, data, authorization) {
|
|
4529
4646
|
return __async(this, null, function* () {
|
|
4530
4647
|
yield platformDpsClientInstance.put(
|
|
4531
|
-
`/v2/applications/${appId}/listing/support`,
|
|
4648
|
+
`/v2/applications/${encodeURIComponent(appId)}/listing/support`,
|
|
4532
4649
|
data,
|
|
4533
4650
|
getPlatformDpsClientConfig(authorization)
|
|
4534
4651
|
).catch((error) => {
|
|
@@ -4541,7 +4658,7 @@ var platformDpsApplicationDisplayApi = {
|
|
|
4541
4658
|
updateAppIcon(appId, payload, authorization) {
|
|
4542
4659
|
return __async(this, null, function* () {
|
|
4543
4660
|
yield platformDpsClientInstance.put(
|
|
4544
|
-
`/v2/applications/${appId}/display/icons`,
|
|
4661
|
+
`/v2/applications/${encodeURIComponent(appId)}/display/icons`,
|
|
4545
4662
|
payload,
|
|
4546
4663
|
getPlatformDpsClientConfig(authorization)
|
|
4547
4664
|
).catch((error) => {
|
|
@@ -4554,7 +4671,7 @@ var platformDpsApplicationDisplayApi = {
|
|
|
4554
4671
|
updateDisplayImages(appId, screenshots, authorization) {
|
|
4555
4672
|
return __async(this, null, function* () {
|
|
4556
4673
|
yield platformDpsClientInstance.put(
|
|
4557
|
-
`/v2/applications/${appId}/screenshots/commit`,
|
|
4674
|
+
`/v2/applications/${encodeURIComponent(appId)}/screenshots/commit`,
|
|
4558
4675
|
screenshots,
|
|
4559
4676
|
getPlatformDpsClientConfig(authorization)
|
|
4560
4677
|
).catch((error) => {
|
|
@@ -4567,7 +4684,7 @@ var platformDpsApplicationDisplayApi = {
|
|
|
4567
4684
|
updateDisplayFeatures(appId, features, authorization) {
|
|
4568
4685
|
return __async(this, null, function* () {
|
|
4569
4686
|
yield platformDpsClientInstance.put(
|
|
4570
|
-
`/v2/applications/${appId}/features`,
|
|
4687
|
+
`/v2/applications/${encodeURIComponent(appId)}/features`,
|
|
4571
4688
|
features,
|
|
4572
4689
|
getPlatformDpsClientConfig(authorization)
|
|
4573
4690
|
).catch((error) => {
|
|
@@ -4580,7 +4697,7 @@ var platformDpsApplicationDisplayApi = {
|
|
|
4580
4697
|
updateDisplayBenefits(appId, benefits, authorization) {
|
|
4581
4698
|
return __async(this, null, function* () {
|
|
4582
4699
|
yield platformDpsClientInstance.put(
|
|
4583
|
-
`/v2/applications/${appId}/benefits`,
|
|
4700
|
+
`/v2/applications/${encodeURIComponent(appId)}/benefits`,
|
|
4584
4701
|
benefits,
|
|
4585
4702
|
getPlatformDpsClientConfig(authorization)
|
|
4586
4703
|
).catch((error) => {
|
|
@@ -4597,7 +4714,7 @@ var platformDpsApplicationEventApi = {
|
|
|
4597
4714
|
getEvents(appId, authorization) {
|
|
4598
4715
|
return __async(this, null, function* () {
|
|
4599
4716
|
return platformDpsClientInstance.get(
|
|
4600
|
-
`/v2/applications/${appId}/events?limit=300`,
|
|
4717
|
+
`/v2/applications/${encodeURIComponent(appId)}/events?limit=300`,
|
|
4601
4718
|
getPlatformDpsClientConfig(authorization)
|
|
4602
4719
|
).then(({ data }) => data).catch((error) => {
|
|
4603
4720
|
throw error.withCustomMessage(
|
|
@@ -4613,7 +4730,7 @@ var platformDpsApplicationInfrastructureBlocksApi = {
|
|
|
4613
4730
|
getBlocks(appId, authorization) {
|
|
4614
4731
|
return __async(this, null, function* () {
|
|
4615
4732
|
const response = yield platformDpsClientInstance.get(
|
|
4616
|
-
`/v2/applications/${appId}/infrastructure/blocks`,
|
|
4733
|
+
`/v2/applications/${encodeURIComponent(appId)}/infrastructure/blocks`,
|
|
4617
4734
|
getPlatformDpsClientConfig(authorization)
|
|
4618
4735
|
);
|
|
4619
4736
|
delete response.data.appId;
|
|
@@ -4623,7 +4740,7 @@ var platformDpsApplicationInfrastructureBlocksApi = {
|
|
|
4623
4740
|
updateBlocks(appId, payload, authorization) {
|
|
4624
4741
|
return __async(this, null, function* () {
|
|
4625
4742
|
yield platformDpsClientInstance.patch(
|
|
4626
|
-
`/v2/applications/${appId}/infrastructure/blocks`,
|
|
4743
|
+
`/v2/applications/${encodeURIComponent(appId)}/infrastructure/blocks`,
|
|
4627
4744
|
payload,
|
|
4628
4745
|
getPlatformDpsClientConfig(authorization)
|
|
4629
4746
|
);
|
|
@@ -4632,7 +4749,9 @@ var platformDpsApplicationInfrastructureBlocksApi = {
|
|
|
4632
4749
|
deleteBlock(appId, block, authorization) {
|
|
4633
4750
|
return __async(this, null, function* () {
|
|
4634
4751
|
yield platformDpsClientInstance.delete(
|
|
4635
|
-
`/v2/applications/${
|
|
4752
|
+
`/v2/applications/${encodeURIComponent(
|
|
4753
|
+
appId
|
|
4754
|
+
)}/infrastructure/blocks/${encodeURIComponent(block)}`,
|
|
4636
4755
|
getPlatformDpsClientConfig(authorization)
|
|
4637
4756
|
);
|
|
4638
4757
|
});
|
|
@@ -4640,7 +4759,7 @@ var platformDpsApplicationInfrastructureBlocksApi = {
|
|
|
4640
4759
|
updateRepository(appId, payload, authorization) {
|
|
4641
4760
|
return __async(this, null, function* () {
|
|
4642
4761
|
yield platformDpsClientInstance.patch(
|
|
4643
|
-
`/v2/applications/${appId}/infrastructure/blocks`,
|
|
4762
|
+
`/v2/applications/${encodeURIComponent(appId)}/infrastructure/blocks`,
|
|
4644
4763
|
{
|
|
4645
4764
|
appId,
|
|
4646
4765
|
repository: {
|
|
@@ -4655,7 +4774,7 @@ var platformDpsApplicationInfrastructureBlocksApi = {
|
|
|
4655
4774
|
return __async(this, null, function* () {
|
|
4656
4775
|
const config = payload.customUrl ? { custom: { url: payload.customUrl } } : { custom: null };
|
|
4657
4776
|
yield platformDpsClientInstance.patch(
|
|
4658
|
-
`/v2/applications/${appId}/infrastructure/blocks`,
|
|
4777
|
+
`/v2/applications/${encodeURIComponent(appId)}/infrastructure/blocks`,
|
|
4659
4778
|
{
|
|
4660
4779
|
appId,
|
|
4661
4780
|
deployment: {
|
|
@@ -4670,7 +4789,7 @@ var platformDpsApplicationInfrastructureBlocksApi = {
|
|
|
4670
4789
|
updateStorage(appId, payload, authorization) {
|
|
4671
4790
|
return __async(this, null, function* () {
|
|
4672
4791
|
yield platformDpsClientInstance.patch(
|
|
4673
|
-
`/v2/applications/${appId}/infrastructure/blocks`,
|
|
4792
|
+
`/v2/applications/${encodeURIComponent(appId)}/infrastructure/blocks`,
|
|
4674
4793
|
{
|
|
4675
4794
|
appId,
|
|
4676
4795
|
storage: {
|
|
@@ -4693,7 +4812,7 @@ var platformDpsApplicationInstallApi = {
|
|
|
4693
4812
|
getInstallationsCount(appId, authorization) {
|
|
4694
4813
|
return __async(this, null, function* () {
|
|
4695
4814
|
return platformDpsClientInstance.get(
|
|
4696
|
-
`/v2/applications/${appId}/installations/count`,
|
|
4815
|
+
`/v2/applications/${encodeURIComponent(appId)}/installations/count`,
|
|
4697
4816
|
getPlatformDpsClientConfig(authorization)
|
|
4698
4817
|
).catch((error) => {
|
|
4699
4818
|
throw error.withCustomMessage(
|
|
@@ -4705,7 +4824,7 @@ var platformDpsApplicationInstallApi = {
|
|
|
4705
4824
|
install(appId, authorization) {
|
|
4706
4825
|
return __async(this, null, function* () {
|
|
4707
4826
|
yield platformDpsClientInstance.put(
|
|
4708
|
-
`/v2/applications/${appId}/install`,
|
|
4827
|
+
`/v2/applications/${encodeURIComponent(appId)}/install`,
|
|
4709
4828
|
{},
|
|
4710
4829
|
getPlatformDpsClientConfig(authorization)
|
|
4711
4830
|
).catch((error) => {
|
|
@@ -4718,7 +4837,7 @@ var platformDpsApplicationInstallApi = {
|
|
|
4718
4837
|
uninstall(appId, authorization) {
|
|
4719
4838
|
return __async(this, null, function* () {
|
|
4720
4839
|
yield platformDpsClientInstance.delete(
|
|
4721
|
-
`/v2/applications/${appId}/install`,
|
|
4840
|
+
`/v2/applications/${encodeURIComponent(appId)}/install`,
|
|
4722
4841
|
getPlatformDpsClientConfig(authorization)
|
|
4723
4842
|
).catch((error) => {
|
|
4724
4843
|
throw error.withCustomMessage(
|
|
@@ -4730,7 +4849,7 @@ var platformDpsApplicationInstallApi = {
|
|
|
4730
4849
|
updateDirectInstallationUrl(appId, payload, authorization) {
|
|
4731
4850
|
return __async(this, null, function* () {
|
|
4732
4851
|
yield platformDpsClientInstance.put(
|
|
4733
|
-
`/v2/applications/${appId}/install/direct`,
|
|
4852
|
+
`/v2/applications/${encodeURIComponent(appId)}/install/direct`,
|
|
4734
4853
|
payload,
|
|
4735
4854
|
getPlatformDpsClientConfig(authorization)
|
|
4736
4855
|
).catch((error) => {
|
|
@@ -4747,7 +4866,7 @@ var platformDpsApplicationOnboardingApi = {
|
|
|
4747
4866
|
updateOnboarding(appId, payload, authorization) {
|
|
4748
4867
|
return __async(this, null, function* () {
|
|
4749
4868
|
yield platformDpsClientInstance.put(
|
|
4750
|
-
`/v2/applications/${appId}/onboarding`,
|
|
4869
|
+
`/v2/applications/${encodeURIComponent(appId)}/onboarding`,
|
|
4751
4870
|
payload,
|
|
4752
4871
|
getPlatformDpsClientConfig(authorization)
|
|
4753
4872
|
).catch((error) => {
|
|
@@ -4759,7 +4878,10 @@ var platformDpsApplicationOnboardingApi = {
|
|
|
4759
4878
|
},
|
|
4760
4879
|
deleteOnboarding(appId, authorization) {
|
|
4761
4880
|
return __async(this, null, function* () {
|
|
4762
|
-
yield platformDpsClientInstance.delete(
|
|
4881
|
+
yield platformDpsClientInstance.delete(
|
|
4882
|
+
`/v2/applications/${encodeURIComponent(appId)}/onboarding`,
|
|
4883
|
+
__spreadValues({}, getPlatformDpsClientConfig(authorization))
|
|
4884
|
+
).catch((error) => {
|
|
4763
4885
|
throw error.withCustomMessage(
|
|
4764
4886
|
`${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
|
|
4765
4887
|
);
|
|
@@ -4774,7 +4896,7 @@ var platformDpsApplicationPaymentApi = {
|
|
|
4774
4896
|
return __async(this, null, function* () {
|
|
4775
4897
|
var _a;
|
|
4776
4898
|
yield platformDpsClientInstance.put(
|
|
4777
|
-
`/v2/applications/${appId}/payment`,
|
|
4899
|
+
`/v2/applications/${encodeURIComponent(appId)}/payment`,
|
|
4778
4900
|
__spreadProps(__spreadValues({}, payment), {
|
|
4779
4901
|
creditCardRequired: (_a = payment.creditCardRequired) != null ? _a : true
|
|
4780
4902
|
}),
|
|
@@ -4789,7 +4911,7 @@ var platformDpsApplicationPaymentApi = {
|
|
|
4789
4911
|
deletePaymentBlock(appId, authorization) {
|
|
4790
4912
|
return __async(this, null, function* () {
|
|
4791
4913
|
yield platformDpsClientInstance.delete(
|
|
4792
|
-
`/v2/applications/${appId}/payment`,
|
|
4914
|
+
`/v2/applications/${encodeURIComponent(appId)}/payment`,
|
|
4793
4915
|
getPlatformDpsClientConfig(authorization)
|
|
4794
4916
|
).catch((error) => {
|
|
4795
4917
|
throw error.withCustomMessage(
|
|
@@ -4805,7 +4927,7 @@ var platformDpsApplicationProductApi = {
|
|
|
4805
4927
|
updateProduct(appId, payload, authorization) {
|
|
4806
4928
|
return __async(this, null, function* () {
|
|
4807
4929
|
yield platformDpsClientInstance.put(
|
|
4808
|
-
`/v2/applications/${appId}/product`,
|
|
4930
|
+
`/v2/applications/${encodeURIComponent(appId)}/product`,
|
|
4809
4931
|
payload,
|
|
4810
4932
|
getPlatformDpsClientConfig(authorization)
|
|
4811
4933
|
).catch((error) => {
|
|
@@ -4822,7 +4944,7 @@ var platformDpsApplicationCustomPropsApi = {
|
|
|
4822
4944
|
createCustomProps(appId, property, authorization) {
|
|
4823
4945
|
return __async(this, null, function* () {
|
|
4824
4946
|
return platformDpsClientInstance.post(
|
|
4825
|
-
`/v2/applications/${appId}/property`,
|
|
4947
|
+
`/v2/applications/${encodeURIComponent(appId)}/property`,
|
|
4826
4948
|
property,
|
|
4827
4949
|
getPlatformDpsClientConfig(authorization)
|
|
4828
4950
|
).then(({ data }) => data).catch((error) => {
|
|
@@ -4835,7 +4957,7 @@ var platformDpsApplicationCustomPropsApi = {
|
|
|
4835
4957
|
updateCustomProps(appId, property, authorization) {
|
|
4836
4958
|
return __async(this, null, function* () {
|
|
4837
4959
|
return platformDpsClientInstance.put(
|
|
4838
|
-
`/v2/applications/${appId}/property`,
|
|
4960
|
+
`/v2/applications/${encodeURIComponent(appId)}/property`,
|
|
4839
4961
|
property,
|
|
4840
4962
|
getPlatformDpsClientConfig(authorization)
|
|
4841
4963
|
).then(({ data }) => data).catch((error) => {
|
|
@@ -4847,9 +4969,12 @@ var platformDpsApplicationCustomPropsApi = {
|
|
|
4847
4969
|
},
|
|
4848
4970
|
deleteCustomProps(appId, property, authorization) {
|
|
4849
4971
|
return __async(this, null, function* () {
|
|
4850
|
-
return platformDpsClientInstance.delete(
|
|
4851
|
-
|
|
4852
|
-
|
|
4972
|
+
return platformDpsClientInstance.delete(
|
|
4973
|
+
`/v2/applications/${encodeURIComponent(appId)}/property`,
|
|
4974
|
+
__spreadValues({
|
|
4975
|
+
data: property
|
|
4976
|
+
}, getPlatformDpsClientConfig(authorization))
|
|
4977
|
+
).then(({ data }) => data).catch((error) => {
|
|
4853
4978
|
throw error.withCustomMessage(
|
|
4854
4979
|
`${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
|
|
4855
4980
|
);
|
|
@@ -4863,7 +4988,7 @@ var platformDpsApplicationResourcesApi = {
|
|
|
4863
4988
|
getAppUpgrades(appId, authorization) {
|
|
4864
4989
|
return __async(this, null, function* () {
|
|
4865
4990
|
return platformDpsClientInstance.get(
|
|
4866
|
-
`/v2/applications/${appId}/resources`,
|
|
4991
|
+
`/v2/applications/${encodeURIComponent(appId)}/resources`,
|
|
4867
4992
|
getPlatformDpsClientConfig(authorization)
|
|
4868
4993
|
).catch((error) => {
|
|
4869
4994
|
throw error.withCustomMessage(
|
|
@@ -4875,7 +5000,7 @@ var platformDpsApplicationResourcesApi = {
|
|
|
4875
5000
|
createAppUpgrade(appId, body, authorization) {
|
|
4876
5001
|
return __async(this, null, function* () {
|
|
4877
5002
|
return platformDpsClientInstance.put(
|
|
4878
|
-
`/v2/applications/${appId}/resources`,
|
|
5003
|
+
`/v2/applications/${encodeURIComponent(appId)}/resources`,
|
|
4879
5004
|
body,
|
|
4880
5005
|
getPlatformDpsClientConfig(authorization)
|
|
4881
5006
|
).catch((error) => {
|
|
@@ -4888,7 +5013,7 @@ var platformDpsApplicationResourcesApi = {
|
|
|
4888
5013
|
updateAppUpgrade(appId, body, authorization) {
|
|
4889
5014
|
return __async(this, null, function* () {
|
|
4890
5015
|
return platformDpsClientInstance.put(
|
|
4891
|
-
`/v2/applications/${appId}/resources`,
|
|
5016
|
+
`/v2/applications/${encodeURIComponent(appId)}/resources`,
|
|
4892
5017
|
body,
|
|
4893
5018
|
getPlatformDpsClientConfig(authorization)
|
|
4894
5019
|
).catch((error) => {
|
|
@@ -4901,7 +5026,9 @@ var platformDpsApplicationResourcesApi = {
|
|
|
4901
5026
|
deleteAppUpgrade(appId, resourceId, authorization) {
|
|
4902
5027
|
return __async(this, null, function* () {
|
|
4903
5028
|
return platformDpsClientInstance.delete(
|
|
4904
|
-
`/v2/applications/${
|
|
5029
|
+
`/v2/applications/${encodeURIComponent(
|
|
5030
|
+
appId
|
|
5031
|
+
)}/resources/${encodeURIComponent(resourceId)}`,
|
|
4905
5032
|
getPlatformDpsClientConfig(authorization)
|
|
4906
5033
|
).catch((error) => {
|
|
4907
5034
|
throw error.withCustomMessage(
|
|
@@ -4913,7 +5040,9 @@ var platformDpsApplicationResourcesApi = {
|
|
|
4913
5040
|
copyUpgrade(sourceAppId, destinationAppId, authorization) {
|
|
4914
5041
|
return __async(this, null, function* () {
|
|
4915
5042
|
return platformDpsClientInstance.put(
|
|
4916
|
-
`/v2/applications/${
|
|
5043
|
+
`/v2/applications/${encodeURIComponent(
|
|
5044
|
+
sourceAppId
|
|
5045
|
+
)}/resources/copy?application=${encodeURIComponent(destinationAppId)}`,
|
|
4917
5046
|
{},
|
|
4918
5047
|
getPlatformDpsClientConfig(authorization)
|
|
4919
5048
|
).catch((error) => {
|
|
@@ -4930,7 +5059,7 @@ var platformDpsApplicationReviewApi = {
|
|
|
4930
5059
|
createSubmission(appId, payload, authorization) {
|
|
4931
5060
|
return __async(this, null, function* () {
|
|
4932
5061
|
return platformDpsClientInstance.put(
|
|
4933
|
-
`/v2/applications/${appId}/review/submit`,
|
|
5062
|
+
`/v2/applications/${encodeURIComponent(appId)}/review/submit`,
|
|
4934
5063
|
payload,
|
|
4935
5064
|
getPlatformDpsClientConfig(authorization)
|
|
4936
5065
|
).then(({ data }) => data).catch((error) => {
|
|
@@ -4943,7 +5072,7 @@ var platformDpsApplicationReviewApi = {
|
|
|
4943
5072
|
cancelSubmission(appId, authorization) {
|
|
4944
5073
|
return __async(this, null, function* () {
|
|
4945
5074
|
return platformDpsClientInstance.put(
|
|
4946
|
-
`/v2/applications/${appId}/review/cancel`,
|
|
5075
|
+
`/v2/applications/${encodeURIComponent(appId)}/review/cancel`,
|
|
4947
5076
|
getPlatformDpsClientConfig(authorization)
|
|
4948
5077
|
).then(({ data }) => data).catch((error) => {
|
|
4949
5078
|
throw error.withCustomMessage(
|
|
@@ -4959,7 +5088,7 @@ var platformDpsApplicationStatsApi = {
|
|
|
4959
5088
|
getStats(appId, authorization) {
|
|
4960
5089
|
return __async(this, null, function* () {
|
|
4961
5090
|
return platformDpsClientInstance.get(
|
|
4962
|
-
`/v2/applications/${appId}/stats`,
|
|
5091
|
+
`/v2/applications/${encodeURIComponent(appId)}/stats`,
|
|
4963
5092
|
getPlatformDpsClientConfig(authorization)
|
|
4964
5093
|
).catch((error) => {
|
|
4965
5094
|
throw error.withCustomMessage(
|
|
@@ -4975,7 +5104,7 @@ var platformDpsApplicationWebhooksApi = {
|
|
|
4975
5104
|
updateAppWebhooks(appId, payload, authorization) {
|
|
4976
5105
|
return __async(this, null, function* () {
|
|
4977
5106
|
yield platformDpsClientInstance.put(
|
|
4978
|
-
`/v2/applications/${appId}/webhook`,
|
|
5107
|
+
`/v2/applications/${encodeURIComponent(appId)}/webhook`,
|
|
4979
5108
|
payload,
|
|
4980
5109
|
getPlatformDpsClientConfig(authorization)
|
|
4981
5110
|
).catch((error) => {
|
|
@@ -4988,7 +5117,7 @@ var platformDpsApplicationWebhooksApi = {
|
|
|
4988
5117
|
deleteAppWebhooks(appId, authorization) {
|
|
4989
5118
|
return __async(this, null, function* () {
|
|
4990
5119
|
yield platformDpsClientInstance.delete(
|
|
4991
|
-
`/v2/applications/${appId}/webhook`,
|
|
5120
|
+
`/v2/applications/${encodeURIComponent(appId)}/webhook`,
|
|
4992
5121
|
getPlatformDpsClientConfig(authorization)
|
|
4993
5122
|
).catch((error) => {
|
|
4994
5123
|
throw error.withCustomMessage(
|
|
@@ -5000,7 +5129,7 @@ var platformDpsApplicationWebhooksApi = {
|
|
|
5000
5129
|
getChatWebhook(appId, authorization) {
|
|
5001
5130
|
return __async(this, null, function* () {
|
|
5002
5131
|
return platformDpsClientInstance.get(
|
|
5003
|
-
`/v2/applications/${appId}/chat-webhooks`,
|
|
5132
|
+
`/v2/applications/${encodeURIComponent(appId)}/chat-webhooks`,
|
|
5004
5133
|
getPlatformDpsClientConfig(authorization)
|
|
5005
5134
|
).catch((error) => {
|
|
5006
5135
|
throw error.withCustomMessage(
|
|
@@ -5012,7 +5141,7 @@ var platformDpsApplicationWebhooksApi = {
|
|
|
5012
5141
|
updateChatWebhook(appId, payload, authorization) {
|
|
5013
5142
|
return __async(this, null, function* () {
|
|
5014
5143
|
yield platformDpsClientInstance.post(
|
|
5015
|
-
`/v2/applications/${appId}/chat-webhooks`,
|
|
5144
|
+
`/v2/applications/${encodeURIComponent(appId)}/chat-webhooks`,
|
|
5016
5145
|
payload,
|
|
5017
5146
|
getPlatformDpsClientConfig(authorization)
|
|
5018
5147
|
).catch((error) => {
|
|
@@ -5024,7 +5153,10 @@ var platformDpsApplicationWebhooksApi = {
|
|
|
5024
5153
|
},
|
|
5025
5154
|
deleteChatWebhook(appId, authorization) {
|
|
5026
5155
|
return __async(this, null, function* () {
|
|
5027
|
-
yield platformDpsClientInstance.delete(
|
|
5156
|
+
yield platformDpsClientInstance.delete(
|
|
5157
|
+
`/v2/applications/${encodeURIComponent(appId)}/chat-webhooks`,
|
|
5158
|
+
__spreadValues({}, getPlatformDpsClientConfig(authorization))
|
|
5159
|
+
).catch((error) => {
|
|
5028
5160
|
throw error.withCustomMessage(
|
|
5029
5161
|
`${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
|
|
5030
5162
|
);
|
|
@@ -5038,7 +5170,9 @@ var platformDpsApplicationWidgetsApi = {
|
|
|
5038
5170
|
createWidget(appId, widgetId, widget, authorization) {
|
|
5039
5171
|
return __async(this, null, function* () {
|
|
5040
5172
|
yield platformDpsClientInstance.put(
|
|
5041
|
-
`/v2/applications/${
|
|
5173
|
+
`/v2/applications/${encodeURIComponent(
|
|
5174
|
+
appId
|
|
5175
|
+
)}/widgets/${encodeURIComponent(widgetId)}`,
|
|
5042
5176
|
widget,
|
|
5043
5177
|
getPlatformDpsClientConfig(authorization)
|
|
5044
5178
|
).catch((error) => {
|
|
@@ -5051,7 +5185,9 @@ var platformDpsApplicationWidgetsApi = {
|
|
|
5051
5185
|
updateWidget(appId, widgetId, widget, authorization) {
|
|
5052
5186
|
return __async(this, null, function* () {
|
|
5053
5187
|
yield platformDpsClientInstance.patch(
|
|
5054
|
-
`/v2/applications/${
|
|
5188
|
+
`/v2/applications/${encodeURIComponent(
|
|
5189
|
+
appId
|
|
5190
|
+
)}/widgets/${encodeURIComponent(widgetId)}`,
|
|
5055
5191
|
widget,
|
|
5056
5192
|
getPlatformDpsClientConfig(authorization)
|
|
5057
5193
|
).catch((error) => {
|
|
@@ -5063,7 +5199,12 @@ var platformDpsApplicationWidgetsApi = {
|
|
|
5063
5199
|
},
|
|
5064
5200
|
deleteWidget(appId, widgetId, authorization) {
|
|
5065
5201
|
return __async(this, null, function* () {
|
|
5066
|
-
yield platformDpsClientInstance.delete(
|
|
5202
|
+
yield platformDpsClientInstance.delete(
|
|
5203
|
+
`/v2/applications/${encodeURIComponent(
|
|
5204
|
+
appId
|
|
5205
|
+
)}/widgets/${encodeURIComponent(widgetId)}`,
|
|
5206
|
+
__spreadValues({}, getPlatformDpsClientConfig(authorization))
|
|
5207
|
+
).catch((error) => {
|
|
5067
5208
|
throw error.withCustomMessage(
|
|
5068
5209
|
`${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
|
|
5069
5210
|
);
|
|
@@ -5095,7 +5236,7 @@ var platformDpsApplicationApi = {
|
|
|
5095
5236
|
return __async(this, null, function* () {
|
|
5096
5237
|
try {
|
|
5097
5238
|
const response = yield platformDpsClientInstance.get(
|
|
5098
|
-
`/v2/applications/${appId}`,
|
|
5239
|
+
`/v2/applications/${encodeURIComponent(appId)}`,
|
|
5099
5240
|
getPlatformDpsClientConfig(authorization)
|
|
5100
5241
|
);
|
|
5101
5242
|
return response.data;
|
|
@@ -5125,7 +5266,7 @@ var platformDpsApplicationApi = {
|
|
|
5125
5266
|
fork(appId, authorization) {
|
|
5126
5267
|
return __async(this, null, function* () {
|
|
5127
5268
|
return platformDpsClientInstance.post(
|
|
5128
|
-
`/v2/applications/${appId}/fork`,
|
|
5269
|
+
`/v2/applications/${encodeURIComponent(appId)}/fork`,
|
|
5129
5270
|
{},
|
|
5130
5271
|
getPlatformDpsClientConfig(authorization)
|
|
5131
5272
|
).catch((error) => {
|
|
@@ -5138,7 +5279,7 @@ var platformDpsApplicationApi = {
|
|
|
5138
5279
|
publish(appId, authorization) {
|
|
5139
5280
|
return __async(this, null, function* () {
|
|
5140
5281
|
return platformDpsClientInstance.put(
|
|
5141
|
-
`/v2/applications/${appId}/publish`,
|
|
5282
|
+
`/v2/applications/${encodeURIComponent(appId)}/publish`,
|
|
5142
5283
|
{},
|
|
5143
5284
|
getPlatformDpsClientConfig(authorization)
|
|
5144
5285
|
).catch((error) => {
|
|
@@ -5150,7 +5291,7 @@ var platformDpsApplicationApi = {
|
|
|
5150
5291
|
},
|
|
5151
5292
|
updateQL(appId) {
|
|
5152
5293
|
return __async(this, null, function* () {
|
|
5153
|
-
yield platformDpsClientInstance.patch(`/v2/applications/${appId}/qualified-lead`).catch((error) => {
|
|
5294
|
+
yield platformDpsClientInstance.patch(`/v2/applications/${encodeURIComponent(appId)}/qualified-lead`).catch((error) => {
|
|
5154
5295
|
throw error.withCustomMessage(
|
|
5155
5296
|
`QL couldn't be updated. [${error.message}]`
|
|
5156
5297
|
);
|
|
@@ -5160,7 +5301,7 @@ var platformDpsApplicationApi = {
|
|
|
5160
5301
|
deleteApp(appId, authorization) {
|
|
5161
5302
|
return __async(this, null, function* () {
|
|
5162
5303
|
yield platformDpsClientInstance.delete(
|
|
5163
|
-
`/v2/applications/${appId}`,
|
|
5304
|
+
`/v2/applications/${encodeURIComponent(appId)}`,
|
|
5164
5305
|
getPlatformDpsClientConfig(authorization)
|
|
5165
5306
|
).catch((error) => {
|
|
5166
5307
|
throw error.withCustomMessage(
|
|
@@ -5171,7 +5312,7 @@ var platformDpsApplicationApi = {
|
|
|
5171
5312
|
},
|
|
5172
5313
|
createAiContent(appId, appName, appSummary) {
|
|
5173
5314
|
return __async(this, null, function* () {
|
|
5174
|
-
return platformDpsClientInstance.post(`/v2/ai/application/${appId}/content`, {
|
|
5315
|
+
return platformDpsClientInstance.post(`/v2/ai/application/${encodeURIComponent(appId)}/content`, {
|
|
5175
5316
|
name: appName,
|
|
5176
5317
|
summary: appSummary
|
|
5177
5318
|
}).catch((error) => {
|
|
@@ -5339,7 +5480,7 @@ var platformDpsDeveloperApi = {
|
|
|
5339
5480
|
}
|
|
5340
5481
|
}
|
|
5341
5482
|
return platformDpsClientInstance.get(
|
|
5342
|
-
`/v2/developers/${userId}/account/ledger${params}`,
|
|
5483
|
+
`/v2/developers/${encodeURIComponent(userId)}/account/ledger${params}`,
|
|
5343
5484
|
getPlatformDpsClientConfig(authorization)
|
|
5344
5485
|
).then(({ data }) => data).catch((error) => {
|
|
5345
5486
|
throw error.withCustomMessage(
|
|
@@ -5355,7 +5496,9 @@ var platformDpsDeveloperApi = {
|
|
|
5355
5496
|
userId
|
|
5356
5497
|
}, authorization) {
|
|
5357
5498
|
return platformDpsClientInstance.patch(
|
|
5358
|
-
`/v2/developers/${
|
|
5499
|
+
`/v2/developers/${encodeURIComponent(
|
|
5500
|
+
userId
|
|
5501
|
+
)}/account/withdrawal/request`,
|
|
5359
5502
|
{ amount, note },
|
|
5360
5503
|
getPlatformDpsClientConfig(authorization)
|
|
5361
5504
|
).then(({ data }) => data).catch((error) => {
|
|
@@ -5608,11 +5751,21 @@ var getRegion2 = (token) => {
|
|
|
5608
5751
|
return region;
|
|
5609
5752
|
}
|
|
5610
5753
|
};
|
|
5611
|
-
var AdapterApiError = class extends ApiErrorBase {
|
|
5754
|
+
var AdapterApiError = class _AdapterApiError extends ApiErrorBase {
|
|
5612
5755
|
constructor() {
|
|
5613
5756
|
super(...arguments);
|
|
5614
5757
|
this.name = "adapter";
|
|
5615
5758
|
}
|
|
5759
|
+
static notFound(message) {
|
|
5760
|
+
return new _AdapterApiError(
|
|
5761
|
+
message != null ? message : "Not found",
|
|
5762
|
+
{
|
|
5763
|
+
errorCode: "not_found",
|
|
5764
|
+
errorMessage: "Not found"
|
|
5765
|
+
},
|
|
5766
|
+
404
|
|
5767
|
+
);
|
|
5768
|
+
}
|
|
5616
5769
|
};
|
|
5617
5770
|
var platformAdapterClientInstance = import_axios20.default.create({
|
|
5618
5771
|
baseURL: "https://platform.labs.text.com/console-adapter/api",
|
|
@@ -5826,7 +5979,7 @@ var platformAdapterAppAuthorizationApi = {
|
|
|
5826
5979
|
get(appId, authorization) {
|
|
5827
5980
|
return __async(this, null, function* () {
|
|
5828
5981
|
return platformAdapterClientInstance.get(
|
|
5829
|
-
`/console/app/${appId}/blocks/authorization`,
|
|
5982
|
+
`/console/app/${encodeURIComponent(appId)}/blocks/authorization`,
|
|
5830
5983
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
5831
5984
|
);
|
|
5832
5985
|
});
|
|
@@ -5834,7 +5987,7 @@ var platformAdapterAppAuthorizationApi = {
|
|
|
5834
5987
|
add(payload, authorization) {
|
|
5835
5988
|
return __async(this, null, function* () {
|
|
5836
5989
|
return platformAdapterClientInstance.post(
|
|
5837
|
-
`/console/app/${payload.appId}/blocks/authorization`,
|
|
5990
|
+
`/console/app/${encodeURIComponent(payload.appId)}/blocks/authorization`,
|
|
5838
5991
|
payload,
|
|
5839
5992
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
5840
5993
|
);
|
|
@@ -5843,7 +5996,7 @@ var platformAdapterAppAuthorizationApi = {
|
|
|
5843
5996
|
update(payload, authorization) {
|
|
5844
5997
|
return __async(this, null, function* () {
|
|
5845
5998
|
return platformAdapterClientInstance.put(
|
|
5846
|
-
`/console/app/${payload.appId}/blocks/authorization`,
|
|
5999
|
+
`/console/app/${encodeURIComponent(payload.appId)}/blocks/authorization`,
|
|
5847
6000
|
payload,
|
|
5848
6001
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
5849
6002
|
);
|
|
@@ -5852,7 +6005,7 @@ var platformAdapterAppAuthorizationApi = {
|
|
|
5852
6005
|
remove(payload, authorization) {
|
|
5853
6006
|
return __async(this, null, function* () {
|
|
5854
6007
|
return platformAdapterClientInstance.delete(
|
|
5855
|
-
`/console/app/${payload.appId}/blocks/authorization`,
|
|
6008
|
+
`/console/app/${encodeURIComponent(payload.appId)}/blocks/authorization`,
|
|
5856
6009
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
5857
6010
|
);
|
|
5858
6011
|
});
|
|
@@ -5864,7 +6017,7 @@ var platformAdapterAppDeploymentApi = {
|
|
|
5864
6017
|
getAggregate(appId, authorization) {
|
|
5865
6018
|
return __async(this, null, function* () {
|
|
5866
6019
|
return platformAdapterClientInstance.get(
|
|
5867
|
-
`/console/app/${appId}/blocks/deployment/aggregate`,
|
|
6020
|
+
`/console/app/${encodeURIComponent(appId)}/blocks/deployment/aggregate`,
|
|
5868
6021
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
5869
6022
|
);
|
|
5870
6023
|
});
|
|
@@ -5872,7 +6025,7 @@ var platformAdapterAppDeploymentApi = {
|
|
|
5872
6025
|
get(appId, authorization) {
|
|
5873
6026
|
return __async(this, null, function* () {
|
|
5874
6027
|
return platformAdapterClientInstance.get(
|
|
5875
|
-
`/console/app/${appId}/blocks/deployment`,
|
|
6028
|
+
`/console/app/${encodeURIComponent(appId)}/blocks/deployment`,
|
|
5876
6029
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
5877
6030
|
);
|
|
5878
6031
|
});
|
|
@@ -5880,7 +6033,7 @@ var platformAdapterAppDeploymentApi = {
|
|
|
5880
6033
|
link(payload, authorization) {
|
|
5881
6034
|
return __async(this, null, function* () {
|
|
5882
6035
|
return platformAdapterClientInstance.put(
|
|
5883
|
-
`/console/app/${payload.appId}/blocks/deployment`,
|
|
6036
|
+
`/console/app/${encodeURIComponent(payload.appId)}/blocks/deployment`,
|
|
5884
6037
|
payload,
|
|
5885
6038
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
5886
6039
|
);
|
|
@@ -5889,7 +6042,9 @@ var platformAdapterAppDeploymentApi = {
|
|
|
5889
6042
|
unlink(payload, authorization) {
|
|
5890
6043
|
return __async(this, null, function* () {
|
|
5891
6044
|
return platformAdapterClientInstance.delete(
|
|
5892
|
-
`/console/app/${
|
|
6045
|
+
`/console/app/${encodeURIComponent(
|
|
6046
|
+
payload.appId
|
|
6047
|
+
)}/blocks/deployment?${new URLSearchParams(
|
|
5893
6048
|
payload
|
|
5894
6049
|
).toString()}`,
|
|
5895
6050
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
@@ -5899,7 +6054,7 @@ var platformAdapterAppDeploymentApi = {
|
|
|
5899
6054
|
upsert(payload, authorization) {
|
|
5900
6055
|
return __async(this, null, function* () {
|
|
5901
6056
|
return platformAdapterClientInstance.patch(
|
|
5902
|
-
`/console/app/${payload.appId}/blocks/deployment`,
|
|
6057
|
+
`/console/app/${encodeURIComponent(payload.appId)}/blocks/deployment`,
|
|
5903
6058
|
payload,
|
|
5904
6059
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
5905
6060
|
);
|
|
@@ -5912,7 +6067,7 @@ var platformAdapterAppMonetizationApi = {
|
|
|
5912
6067
|
get(appId, authorization) {
|
|
5913
6068
|
return __async(this, null, function* () {
|
|
5914
6069
|
return platformAdapterClientInstance.get(
|
|
5915
|
-
`/console/app/${appId}/blocks/monetization`,
|
|
6070
|
+
`/console/app/${encodeURIComponent(appId)}/blocks/monetization`,
|
|
5916
6071
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
5917
6072
|
);
|
|
5918
6073
|
});
|
|
@@ -5920,7 +6075,7 @@ var platformAdapterAppMonetizationApi = {
|
|
|
5920
6075
|
upsert(payload, authorization) {
|
|
5921
6076
|
return __async(this, null, function* () {
|
|
5922
6077
|
return platformAdapterClientInstance.post(
|
|
5923
|
-
`/console/app/${payload.appId}/blocks/monetization`,
|
|
6078
|
+
`/console/app/${encodeURIComponent(payload.appId)}/blocks/monetization`,
|
|
5924
6079
|
payload,
|
|
5925
6080
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
5926
6081
|
);
|
|
@@ -5929,7 +6084,7 @@ var platformAdapterAppMonetizationApi = {
|
|
|
5929
6084
|
remove(payload, authorization) {
|
|
5930
6085
|
return __async(this, null, function* () {
|
|
5931
6086
|
return platformAdapterClientInstance.delete(
|
|
5932
|
-
`/console/app/${payload.appId}/blocks/monetization`,
|
|
6087
|
+
`/console/app/${encodeURIComponent(payload.appId)}/blocks/monetization`,
|
|
5933
6088
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
5934
6089
|
);
|
|
5935
6090
|
});
|
|
@@ -5941,7 +6096,9 @@ var platformAdapterAppPropertyApi = {
|
|
|
5941
6096
|
get(appId, propertyId, authorization) {
|
|
5942
6097
|
return __async(this, null, function* () {
|
|
5943
6098
|
return platformAdapterClientInstance.get(
|
|
5944
|
-
`/console/app/${
|
|
6099
|
+
`/console/app/${encodeURIComponent(
|
|
6100
|
+
appId
|
|
6101
|
+
)}/blocks/properties/${encodeURIComponent(propertyId)}`,
|
|
5945
6102
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
5946
6103
|
);
|
|
5947
6104
|
});
|
|
@@ -5949,7 +6106,9 @@ var platformAdapterAppPropertyApi = {
|
|
|
5949
6106
|
upsert(payload, authorization) {
|
|
5950
6107
|
return __async(this, null, function* () {
|
|
5951
6108
|
return platformAdapterClientInstance.post(
|
|
5952
|
-
`/console/app/${
|
|
6109
|
+
`/console/app/${encodeURIComponent(
|
|
6110
|
+
payload.appId
|
|
6111
|
+
)}/blocks/properties/${encodeURIComponent(payload.propertyId)}`,
|
|
5953
6112
|
payload,
|
|
5954
6113
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
5955
6114
|
);
|
|
@@ -5958,7 +6117,7 @@ var platformAdapterAppPropertyApi = {
|
|
|
5958
6117
|
remove(payload, authorization) {
|
|
5959
6118
|
return __async(this, null, function* () {
|
|
5960
6119
|
return platformAdapterClientInstance.delete(
|
|
5961
|
-
`/console/app/${payload.appId}/blocks/properties/${payload.propertyId}`,
|
|
6120
|
+
`/console/app/${encodeURIComponent(payload.appId)}/blocks/properties/${payload.propertyId}`,
|
|
5962
6121
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
5963
6122
|
);
|
|
5964
6123
|
});
|
|
@@ -5971,7 +6130,7 @@ var platformAdapterAppPropertiesApi = {
|
|
|
5971
6130
|
get(appId, authorization) {
|
|
5972
6131
|
return __async(this, null, function* () {
|
|
5973
6132
|
return platformAdapterClientInstance.get(
|
|
5974
|
-
`/console/app/${appId}/blocks/properties`,
|
|
6133
|
+
`/console/app/${encodeURIComponent(appId)}/blocks/properties`,
|
|
5975
6134
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
5976
6135
|
);
|
|
5977
6136
|
});
|
|
@@ -5979,7 +6138,7 @@ var platformAdapterAppPropertiesApi = {
|
|
|
5979
6138
|
upsert(payload, authorization) {
|
|
5980
6139
|
return __async(this, null, function* () {
|
|
5981
6140
|
return platformAdapterClientInstance.post(
|
|
5982
|
-
`/console/app/${payload.appId}/blocks/properties`,
|
|
6141
|
+
`/console/app/${encodeURIComponent(payload.appId)}/blocks/properties`,
|
|
5983
6142
|
payload,
|
|
5984
6143
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
5985
6144
|
);
|
|
@@ -5988,7 +6147,7 @@ var platformAdapterAppPropertiesApi = {
|
|
|
5988
6147
|
remove(payload, authorization) {
|
|
5989
6148
|
return __async(this, null, function* () {
|
|
5990
6149
|
return platformAdapterClientInstance.delete(
|
|
5991
|
-
`/console/app/${payload.appId}/blocks/properties`,
|
|
6150
|
+
`/console/app/${encodeURIComponent(payload.appId)}/blocks/properties`,
|
|
5992
6151
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
5993
6152
|
);
|
|
5994
6153
|
});
|
|
@@ -6000,7 +6159,7 @@ var platformAdapterAppRepositoryApi = {
|
|
|
6000
6159
|
getAggregate(appId, authorization) {
|
|
6001
6160
|
return __async(this, null, function* () {
|
|
6002
6161
|
return platformAdapterClientInstance.get(
|
|
6003
|
-
`/console/app/${appId}/blocks/repository/aggregate`,
|
|
6162
|
+
`/console/app/${encodeURIComponent(appId)}/blocks/repository/aggregate`,
|
|
6004
6163
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6005
6164
|
);
|
|
6006
6165
|
});
|
|
@@ -6008,7 +6167,7 @@ var platformAdapterAppRepositoryApi = {
|
|
|
6008
6167
|
get(appId, authorization) {
|
|
6009
6168
|
return __async(this, null, function* () {
|
|
6010
6169
|
return platformAdapterClientInstance.get(
|
|
6011
|
-
`/console/app/${appId}/blocks/repository`,
|
|
6170
|
+
`/console/app/${encodeURIComponent(appId)}/blocks/repository`,
|
|
6012
6171
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6013
6172
|
);
|
|
6014
6173
|
});
|
|
@@ -6016,7 +6175,7 @@ var platformAdapterAppRepositoryApi = {
|
|
|
6016
6175
|
link(payload, authorization) {
|
|
6017
6176
|
return __async(this, null, function* () {
|
|
6018
6177
|
return platformAdapterClientInstance.put(
|
|
6019
|
-
`/console/app/${payload.appId}/blocks/repository`,
|
|
6178
|
+
`/console/app/${encodeURIComponent(payload.appId)}/blocks/repository`,
|
|
6020
6179
|
payload,
|
|
6021
6180
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6022
6181
|
);
|
|
@@ -6025,7 +6184,9 @@ var platformAdapterAppRepositoryApi = {
|
|
|
6025
6184
|
unlink(payload, authorization) {
|
|
6026
6185
|
return __async(this, null, function* () {
|
|
6027
6186
|
return platformAdapterClientInstance.delete(
|
|
6028
|
-
`/console/app/${
|
|
6187
|
+
`/console/app/${encodeURIComponent(
|
|
6188
|
+
payload.appId
|
|
6189
|
+
)}/blocks/repository?${new URLSearchParams(
|
|
6029
6190
|
payload
|
|
6030
6191
|
).toString()}`,
|
|
6031
6192
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
@@ -6035,7 +6196,7 @@ var platformAdapterAppRepositoryApi = {
|
|
|
6035
6196
|
upsert(payload, authorization) {
|
|
6036
6197
|
return __async(this, null, function* () {
|
|
6037
6198
|
return platformAdapterClientInstance.patch(
|
|
6038
|
-
`/console/app/${payload.appId}/blocks/repository`,
|
|
6199
|
+
`/console/app/${encodeURIComponent(payload.appId)}/blocks/repository`,
|
|
6039
6200
|
payload,
|
|
6040
6201
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6041
6202
|
);
|
|
@@ -6044,7 +6205,9 @@ var platformAdapterAppRepositoryApi = {
|
|
|
6044
6205
|
seed(payload, authorization) {
|
|
6045
6206
|
return __async(this, null, function* () {
|
|
6046
6207
|
return platformAdapterClientInstance.post(
|
|
6047
|
-
`/console/app/${
|
|
6208
|
+
`/console/app/${encodeURIComponent(
|
|
6209
|
+
payload.appId
|
|
6210
|
+
)}/blocks/repository/seed`,
|
|
6048
6211
|
payload,
|
|
6049
6212
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6050
6213
|
);
|
|
@@ -6057,7 +6220,7 @@ var platformAdapterAppStorageApi = {
|
|
|
6057
6220
|
getAggregate(appId, authorization) {
|
|
6058
6221
|
return __async(this, null, function* () {
|
|
6059
6222
|
return platformAdapterClientInstance.get(
|
|
6060
|
-
`/console/app/${appId}/blocks/storage/aggregate`,
|
|
6223
|
+
`/console/app/${encodeURIComponent(appId)}/blocks/storage/aggregate`,
|
|
6061
6224
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6062
6225
|
);
|
|
6063
6226
|
});
|
|
@@ -6065,7 +6228,7 @@ var platformAdapterAppStorageApi = {
|
|
|
6065
6228
|
get(appId, authorization) {
|
|
6066
6229
|
return __async(this, null, function* () {
|
|
6067
6230
|
return platformAdapterClientInstance.get(
|
|
6068
|
-
`/console/app/${appId}/blocks/storage`,
|
|
6231
|
+
`/console/app/${encodeURIComponent(appId)}/blocks/storage`,
|
|
6069
6232
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6070
6233
|
);
|
|
6071
6234
|
});
|
|
@@ -6073,7 +6236,7 @@ var platformAdapterAppStorageApi = {
|
|
|
6073
6236
|
link(payload, authorization) {
|
|
6074
6237
|
return __async(this, null, function* () {
|
|
6075
6238
|
return platformAdapterClientInstance.put(
|
|
6076
|
-
`/console/app/${payload.appId}/blocks/storage`,
|
|
6239
|
+
`/console/app/${encodeURIComponent(payload.appId)}/blocks/storage`,
|
|
6077
6240
|
payload,
|
|
6078
6241
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6079
6242
|
);
|
|
@@ -6082,7 +6245,9 @@ var platformAdapterAppStorageApi = {
|
|
|
6082
6245
|
unlink(payload, authorization) {
|
|
6083
6246
|
return __async(this, null, function* () {
|
|
6084
6247
|
return platformAdapterClientInstance.delete(
|
|
6085
|
-
`/console/app/${
|
|
6248
|
+
`/console/app/${encodeURIComponent(
|
|
6249
|
+
payload.appId
|
|
6250
|
+
)}/blocks/storage?${new URLSearchParams(
|
|
6086
6251
|
payload
|
|
6087
6252
|
).toString()}`,
|
|
6088
6253
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
@@ -6092,7 +6257,7 @@ var platformAdapterAppStorageApi = {
|
|
|
6092
6257
|
upsert(payload, authorization) {
|
|
6093
6258
|
return __async(this, null, function* () {
|
|
6094
6259
|
return platformAdapterClientInstance.patch(
|
|
6095
|
-
`/console/app/${payload.appId}/blocks/storage`,
|
|
6260
|
+
`/console/app/${encodeURIComponent(payload.appId)}/blocks/storage`,
|
|
6096
6261
|
payload,
|
|
6097
6262
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6098
6263
|
);
|
|
@@ -6105,7 +6270,9 @@ var platformAdapterAppWidgetApi = {
|
|
|
6105
6270
|
get(appId, widgetId, authorization) {
|
|
6106
6271
|
return __async(this, null, function* () {
|
|
6107
6272
|
return platformAdapterClientInstance.get(
|
|
6108
|
-
`/console/app/${
|
|
6273
|
+
`/console/app/${encodeURIComponent(
|
|
6274
|
+
appId
|
|
6275
|
+
)}/blocks/widgets/${encodeURIComponent(widgetId)}`,
|
|
6109
6276
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6110
6277
|
);
|
|
6111
6278
|
});
|
|
@@ -6113,7 +6280,9 @@ var platformAdapterAppWidgetApi = {
|
|
|
6113
6280
|
upsert(payload, authorization) {
|
|
6114
6281
|
return __async(this, null, function* () {
|
|
6115
6282
|
return platformAdapterClientInstance.post(
|
|
6116
|
-
`/console/app/${
|
|
6283
|
+
`/console/app/${encodeURIComponent(
|
|
6284
|
+
payload.appId
|
|
6285
|
+
)}/blocks/widgets/${encodeURIComponent(payload.widgetId)}`,
|
|
6117
6286
|
payload,
|
|
6118
6287
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6119
6288
|
);
|
|
@@ -6122,7 +6291,9 @@ var platformAdapterAppWidgetApi = {
|
|
|
6122
6291
|
remove(payload, authorization) {
|
|
6123
6292
|
return __async(this, null, function* () {
|
|
6124
6293
|
return platformAdapterClientInstance.delete(
|
|
6125
|
-
`/console/app/${
|
|
6294
|
+
`/console/app/${encodeURIComponent(
|
|
6295
|
+
payload.appId
|
|
6296
|
+
)}/blocks/widgets/${encodeURIComponent(payload.widgetId)}`,
|
|
6126
6297
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6127
6298
|
);
|
|
6128
6299
|
});
|
|
@@ -6135,7 +6306,7 @@ var platformAdapterAppWidgetsApi = {
|
|
|
6135
6306
|
get(appId, authorization) {
|
|
6136
6307
|
return __async(this, null, function* () {
|
|
6137
6308
|
return platformAdapterClientInstance.get(
|
|
6138
|
-
`/console/app/${appId}/blocks/widgets`,
|
|
6309
|
+
`/console/app/${encodeURIComponent(appId)}/blocks/widgets`,
|
|
6139
6310
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6140
6311
|
);
|
|
6141
6312
|
});
|
|
@@ -6143,7 +6314,7 @@ var platformAdapterAppWidgetsApi = {
|
|
|
6143
6314
|
upsert(payload, authorization) {
|
|
6144
6315
|
return __async(this, null, function* () {
|
|
6145
6316
|
return platformAdapterClientInstance.post(
|
|
6146
|
-
`/console/app/${payload.appId}/blocks/widgets`,
|
|
6317
|
+
`/console/app/${encodeURIComponent(payload.appId)}/blocks/widgets`,
|
|
6147
6318
|
payload,
|
|
6148
6319
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6149
6320
|
);
|
|
@@ -6152,7 +6323,7 @@ var platformAdapterAppWidgetsApi = {
|
|
|
6152
6323
|
remove(payload, authorization) {
|
|
6153
6324
|
return __async(this, null, function* () {
|
|
6154
6325
|
return platformAdapterClientInstance.delete(
|
|
6155
|
-
`/console/app/${payload.appId}/blocks/widgets`,
|
|
6326
|
+
`/console/app/${encodeURIComponent(payload.appId)}/blocks/widgets`,
|
|
6156
6327
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6157
6328
|
);
|
|
6158
6329
|
});
|
|
@@ -6175,7 +6346,7 @@ var platformAdapterAppVariablesApi = {
|
|
|
6175
6346
|
getVariables(appId, decrypted, authorization) {
|
|
6176
6347
|
return __async(this, null, function* () {
|
|
6177
6348
|
const response = yield platformAdapterClientInstance.get(
|
|
6178
|
-
`/console/app/${appId}/variables`,
|
|
6349
|
+
`/console/app/${encodeURIComponent(appId)}/variables`,
|
|
6179
6350
|
__spreadValues({
|
|
6180
6351
|
params: {
|
|
6181
6352
|
decrypted
|
|
@@ -6188,7 +6359,9 @@ var platformAdapterAppVariablesApi = {
|
|
|
6188
6359
|
getVariable(appId, key, authorization) {
|
|
6189
6360
|
return __async(this, null, function* () {
|
|
6190
6361
|
const response = yield platformAdapterClientInstance.get(
|
|
6191
|
-
`/console/app/${appId}/variables/${
|
|
6362
|
+
`/console/app/${encodeURIComponent(appId)}/variables/${encodeURIComponent(
|
|
6363
|
+
key
|
|
6364
|
+
)}`,
|
|
6192
6365
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6193
6366
|
);
|
|
6194
6367
|
return response.data;
|
|
@@ -6197,7 +6370,9 @@ var platformAdapterAppVariablesApi = {
|
|
|
6197
6370
|
syncVariable(appId, key, payload, authorization) {
|
|
6198
6371
|
return __async(this, null, function* () {
|
|
6199
6372
|
yield platformAdapterClientInstance.post(
|
|
6200
|
-
`/console/app/${appId}/variables/${
|
|
6373
|
+
`/console/app/${encodeURIComponent(appId)}/variables/${encodeURIComponent(
|
|
6374
|
+
key
|
|
6375
|
+
)}/sync`,
|
|
6201
6376
|
payload,
|
|
6202
6377
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6203
6378
|
);
|
|
@@ -6206,7 +6381,9 @@ var platformAdapterAppVariablesApi = {
|
|
|
6206
6381
|
createVariable(appId, data, authorization) {
|
|
6207
6382
|
return __async(this, null, function* () {
|
|
6208
6383
|
yield platformAdapterClientInstance.post(
|
|
6209
|
-
`/console/app/${appId}/variables/${
|
|
6384
|
+
`/console/app/${encodeURIComponent(appId)}/variables/${encodeURIComponent(
|
|
6385
|
+
data.key
|
|
6386
|
+
)}`,
|
|
6210
6387
|
data,
|
|
6211
6388
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6212
6389
|
);
|
|
@@ -6215,7 +6392,9 @@ var platformAdapterAppVariablesApi = {
|
|
|
6215
6392
|
editVariable(appId, data, authorization) {
|
|
6216
6393
|
return __async(this, null, function* () {
|
|
6217
6394
|
yield platformAdapterClientInstance.post(
|
|
6218
|
-
`/console/app/${appId}/variables/${
|
|
6395
|
+
`/console/app/${encodeURIComponent(appId)}/variables/${encodeURIComponent(
|
|
6396
|
+
data.key
|
|
6397
|
+
)}/edit`,
|
|
6219
6398
|
data,
|
|
6220
6399
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6221
6400
|
);
|
|
@@ -6224,7 +6403,9 @@ var platformAdapterAppVariablesApi = {
|
|
|
6224
6403
|
deleteVariable(appId, key) {
|
|
6225
6404
|
return __async(this, null, function* () {
|
|
6226
6405
|
yield platformAdapterClientInstance.delete(
|
|
6227
|
-
`/console/app/${appId}/variables/${
|
|
6406
|
+
`/console/app/${encodeURIComponent(appId)}/variables/${encodeURIComponent(
|
|
6407
|
+
key
|
|
6408
|
+
)}`
|
|
6228
6409
|
);
|
|
6229
6410
|
});
|
|
6230
6411
|
}
|
|
@@ -6258,7 +6439,7 @@ var platformAdapterAppApi = {
|
|
|
6258
6439
|
push(payload, authorization) {
|
|
6259
6440
|
return __async(this, null, function* () {
|
|
6260
6441
|
return platformAdapterClientInstance.post(
|
|
6261
|
-
`/console/app${payload.manifest.id ? `/${payload.manifest.id}` : ""}`,
|
|
6442
|
+
`/console/app${payload.manifest.id ? `/${encodeURIComponent(payload.manifest.id)}` : ""}`,
|
|
6262
6443
|
payload,
|
|
6263
6444
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6264
6445
|
);
|
|
@@ -6267,7 +6448,7 @@ var platformAdapterAppApi = {
|
|
|
6267
6448
|
pull(appId, authorization) {
|
|
6268
6449
|
return __async(this, null, function* () {
|
|
6269
6450
|
return platformAdapterClientInstance.get(
|
|
6270
|
-
`/console/app/${appId}`,
|
|
6451
|
+
`/console/app/${encodeURIComponent(appId)}`,
|
|
6271
6452
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6272
6453
|
);
|
|
6273
6454
|
});
|
|
@@ -6275,7 +6456,7 @@ var platformAdapterAppApi = {
|
|
|
6275
6456
|
verify(payload, authorization) {
|
|
6276
6457
|
return __async(this, null, function* () {
|
|
6277
6458
|
return platformAdapterClientInstance.post(
|
|
6278
|
-
`/console/app/${payload.appId}/verify`,
|
|
6459
|
+
`/console/app/${encodeURIComponent(payload.appId)}/verify`,
|
|
6279
6460
|
payload,
|
|
6280
6461
|
getPlatformAdapterClientDefaultConfig(authorization)
|
|
6281
6462
|
);
|
|
@@ -6672,7 +6853,7 @@ var platformAdapterNeonProxyApi = {
|
|
|
6672
6853
|
databases(projectId, authorization) {
|
|
6673
6854
|
return __async(this, null, function* () {
|
|
6674
6855
|
const response = yield platformAdapterClientInstance.get(
|
|
6675
|
-
`/integrations/neon/projects/${projectId}/databases`,
|
|
6856
|
+
`/integrations/neon/projects/${encodeURIComponent(projectId)}/databases`,
|
|
6676
6857
|
getNeonClientConfig(authorization)
|
|
6677
6858
|
);
|
|
6678
6859
|
return response.data;
|
|
@@ -6773,7 +6954,7 @@ var platformBillingAccountApi = {
|
|
|
6773
6954
|
return __async(this, null, function* () {
|
|
6774
6955
|
try {
|
|
6775
6956
|
return yield platformBillingClientInstance.get(
|
|
6776
|
-
`/v3/account/${product}/billing_info`,
|
|
6957
|
+
`/v3/account/${encodeURIComponent(product)}/billing_info`,
|
|
6777
6958
|
getPlatformBillingClientConfig(authorization)
|
|
6778
6959
|
);
|
|
6779
6960
|
} catch (error) {
|
|
@@ -6795,7 +6976,7 @@ var platformBillingInvoicesApi = {
|
|
|
6795
6976
|
return __async(this, null, function* () {
|
|
6796
6977
|
try {
|
|
6797
6978
|
return yield platformBillingClientInstance.get(
|
|
6798
|
-
`/v2/invoices/${product}`,
|
|
6979
|
+
`/v2/invoices/${encodeURIComponent(product)}`,
|
|
6799
6980
|
getPlatformBillingClientConfig(authorization)
|
|
6800
6981
|
);
|
|
6801
6982
|
} catch (error) {
|
|
@@ -6811,7 +6992,9 @@ var platformBillingInvoicesApi = {
|
|
|
6811
6992
|
return __async(this, null, function* () {
|
|
6812
6993
|
try {
|
|
6813
6994
|
const response = yield platformBillingClientInstance.request(__spreadValues({
|
|
6814
|
-
url: `https://api.labs.livechatinc.com/v2/invoices/${
|
|
6995
|
+
url: `https://api.labs.livechatinc.com/v2/invoices/${encodeURIComponent(
|
|
6996
|
+
number
|
|
6997
|
+
)}`,
|
|
6815
6998
|
data: new URLSearchParams({
|
|
6816
6999
|
_method: "GET"
|
|
6817
7000
|
//gave the values directly for testing
|