@livechat/developer-studio-api 2.1.5 → 2.2.1
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 +13 -0
- package/dist/index.mjs +13 -0
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -2161,6 +2161,7 @@ declare const api: {
|
|
|
2161
2161
|
keys: GitHubRepositoryHook[];
|
|
2162
2162
|
} | undefined>;
|
|
2163
2163
|
getFile(path: string, repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<any>;
|
|
2164
|
+
getCommits(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<{}[]>;
|
|
2164
2165
|
commitFiles(data: {
|
|
2165
2166
|
repositoryName: string;
|
|
2166
2167
|
repositoryBranch: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2161,6 +2161,7 @@ declare const api: {
|
|
|
2161
2161
|
keys: GitHubRepositoryHook[];
|
|
2162
2162
|
} | undefined>;
|
|
2163
2163
|
getFile(path: string, repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<any>;
|
|
2164
|
+
getCommits(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<{}[]>;
|
|
2164
2165
|
commitFiles(data: {
|
|
2165
2166
|
repositoryName: string;
|
|
2166
2167
|
repositoryBranch: string;
|
package/dist/index.js
CHANGED
|
@@ -564,6 +564,19 @@ var gitHubRepositoryApi = {
|
|
|
564
564
|
return data;
|
|
565
565
|
});
|
|
566
566
|
},
|
|
567
|
+
getCommits(repositoryName, authorization) {
|
|
568
|
+
return __async(this, null, function* () {
|
|
569
|
+
var _a;
|
|
570
|
+
const { data: commits } = yield githubClientInstance.get(
|
|
571
|
+
`/repos/${repositoryName}/commits`,
|
|
572
|
+
getGithubClientRequestConfig({
|
|
573
|
+
token: (_a = authorization == null ? void 0 : authorization.tokens) == null ? void 0 : _a.app,
|
|
574
|
+
ensureAuthorizationToken: true
|
|
575
|
+
})
|
|
576
|
+
);
|
|
577
|
+
return commits;
|
|
578
|
+
});
|
|
579
|
+
},
|
|
567
580
|
commitFiles(data, authorization) {
|
|
568
581
|
return __async(this, null, function* () {
|
|
569
582
|
var _a, _b, _c, _d, _e;
|
package/dist/index.mjs
CHANGED
|
@@ -476,6 +476,19 @@ var gitHubRepositoryApi = {
|
|
|
476
476
|
return data;
|
|
477
477
|
});
|
|
478
478
|
},
|
|
479
|
+
getCommits(repositoryName, authorization) {
|
|
480
|
+
return __async(this, null, function* () {
|
|
481
|
+
var _a;
|
|
482
|
+
const { data: commits } = yield githubClientInstance.get(
|
|
483
|
+
`/repos/${repositoryName}/commits`,
|
|
484
|
+
getGithubClientRequestConfig({
|
|
485
|
+
token: (_a = authorization == null ? void 0 : authorization.tokens) == null ? void 0 : _a.app,
|
|
486
|
+
ensureAuthorizationToken: true
|
|
487
|
+
})
|
|
488
|
+
);
|
|
489
|
+
return commits;
|
|
490
|
+
});
|
|
491
|
+
},
|
|
479
492
|
commitFiles(data, authorization) {
|
|
480
493
|
return __async(this, null, function* () {
|
|
481
494
|
var _a, _b, _c, _d, _e;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
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
|
-
"eslint-config-custom-lib": "0.0.1",
|
|
21
|
-
"types": "0.0.1",
|
|
22
20
|
"config": "0.0.0",
|
|
23
|
-
"tsconfig": "0.0.0"
|
|
21
|
+
"tsconfig": "0.0.0",
|
|
22
|
+
"eslint-config-custom-lib": "0.0.1",
|
|
23
|
+
"types": "0.0.1"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|