@livechat/developer-studio-api 1.0.8 → 1.0.10
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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +14 -1
- package/dist/index.mjs +14 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1820,7 +1820,7 @@ declare const api: {
|
|
|
1820
1820
|
};
|
|
1821
1821
|
deployment: {
|
|
1822
1822
|
get(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppDeployment>;
|
|
1823
|
-
link(payload: LinkAppDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<
|
|
1823
|
+
link(payload: LinkAppDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<LinkAppDeploymentResult>>;
|
|
1824
1824
|
unlink(payload: UnlinkAppDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
1825
1825
|
installSentry(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
1826
1826
|
};
|
|
@@ -2097,6 +2097,7 @@ declare const api: {
|
|
|
2097
2097
|
createRepositoryBuildHook(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<{
|
|
2098
2098
|
keys: GitHubRepositoryHook[];
|
|
2099
2099
|
} | undefined>;
|
|
2100
|
+
getFile(path: string, repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<any>;
|
|
2100
2101
|
commitFiles(data: {
|
|
2101
2102
|
repositoryName: string;
|
|
2102
2103
|
repositoryBranch: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1820,7 +1820,7 @@ declare const api: {
|
|
|
1820
1820
|
};
|
|
1821
1821
|
deployment: {
|
|
1822
1822
|
get(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppDeployment>;
|
|
1823
|
-
link(payload: LinkAppDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<
|
|
1823
|
+
link(payload: LinkAppDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<LinkAppDeploymentResult>>;
|
|
1824
1824
|
unlink(payload: UnlinkAppDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
1825
1825
|
installSentry(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
1826
1826
|
};
|
|
@@ -2097,6 +2097,7 @@ declare const api: {
|
|
|
2097
2097
|
createRepositoryBuildHook(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<{
|
|
2098
2098
|
keys: GitHubRepositoryHook[];
|
|
2099
2099
|
} | undefined>;
|
|
2100
|
+
getFile(path: string, repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<any>;
|
|
2100
2101
|
commitFiles(data: {
|
|
2101
2102
|
repositoryName: string;
|
|
2102
2103
|
repositoryBranch: string;
|
package/dist/index.js
CHANGED
|
@@ -548,6 +548,19 @@ var gitHubRepositoryApi = {
|
|
|
548
548
|
}
|
|
549
549
|
});
|
|
550
550
|
},
|
|
551
|
+
getFile(path, repositoryName, authorization) {
|
|
552
|
+
return __async(this, null, function* () {
|
|
553
|
+
var _a;
|
|
554
|
+
const { data } = yield githubClientInstance.get(
|
|
555
|
+
`/repos/${repositoryName}/contents/${path}`,
|
|
556
|
+
getGithubClientRequestConfig({
|
|
557
|
+
token: (_a = authorization == null ? void 0 : authorization.tokens) == null ? void 0 : _a.app,
|
|
558
|
+
ensureAuthorizationToken: true
|
|
559
|
+
})
|
|
560
|
+
);
|
|
561
|
+
return data;
|
|
562
|
+
});
|
|
563
|
+
},
|
|
551
564
|
commitFiles(data, authorization) {
|
|
552
565
|
return __async(this, null, function* () {
|
|
553
566
|
var _a, _b, _c, _d, _e;
|
|
@@ -4536,7 +4549,7 @@ var platformAdapterAppDeploymentApi = {
|
|
|
4536
4549
|
},
|
|
4537
4550
|
link(payload, authorization) {
|
|
4538
4551
|
return __async(this, null, function* () {
|
|
4539
|
-
yield platformAdapterClientInstance.post(
|
|
4552
|
+
return yield platformAdapterClientInstance.post(
|
|
4540
4553
|
`/console/app/${payload.appId}/blocks/deployment/link`,
|
|
4541
4554
|
payload,
|
|
4542
4555
|
getPlatformAdapterClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
package/dist/index.mjs
CHANGED
|
@@ -464,6 +464,19 @@ var gitHubRepositoryApi = {
|
|
|
464
464
|
}
|
|
465
465
|
});
|
|
466
466
|
},
|
|
467
|
+
getFile(path, repositoryName, authorization) {
|
|
468
|
+
return __async(this, null, function* () {
|
|
469
|
+
var _a;
|
|
470
|
+
const { data } = yield githubClientInstance.get(
|
|
471
|
+
`/repos/${repositoryName}/contents/${path}`,
|
|
472
|
+
getGithubClientRequestConfig({
|
|
473
|
+
token: (_a = authorization == null ? void 0 : authorization.tokens) == null ? void 0 : _a.app,
|
|
474
|
+
ensureAuthorizationToken: true
|
|
475
|
+
})
|
|
476
|
+
);
|
|
477
|
+
return data;
|
|
478
|
+
});
|
|
479
|
+
},
|
|
467
480
|
commitFiles(data, authorization) {
|
|
468
481
|
return __async(this, null, function* () {
|
|
469
482
|
var _a, _b, _c, _d, _e;
|
|
@@ -4452,7 +4465,7 @@ var platformAdapterAppDeploymentApi = {
|
|
|
4452
4465
|
},
|
|
4453
4466
|
link(payload, authorization) {
|
|
4454
4467
|
return __async(this, null, function* () {
|
|
4455
|
-
yield platformAdapterClientInstance.post(
|
|
4468
|
+
return yield platformAdapterClientInstance.post(
|
|
4456
4469
|
`/console/app/${payload.appId}/blocks/deployment/link`,
|
|
4457
4470
|
payload,
|
|
4458
4471
|
getPlatformAdapterClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"@types/node": "^17.0.12",
|
|
18
18
|
"tsup": "^7.1.0",
|
|
19
19
|
"typescript": "^5.1.6",
|
|
20
|
-
"config": "0.0.0",
|
|
21
20
|
"eslint-config-custom-lib": "0.0.1",
|
|
22
21
|
"tsconfig": "0.0.0",
|
|
23
|
-
"types": "0.0.1"
|
|
22
|
+
"types": "0.0.1",
|
|
23
|
+
"config": "0.0.0"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|