@livechat/developer-studio-api 2.1.5 → 2.2.0
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 -5
- package/dist/index.d.ts +1 -5
- package/dist/index.js +15 -2
- package/dist/index.mjs +15 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -211,10 +211,6 @@ interface PlanetScaleOrganization {
|
|
|
211
211
|
id: string;
|
|
212
212
|
type: string;
|
|
213
213
|
name: string;
|
|
214
|
-
free_databases_remaining: number;
|
|
215
|
-
has_card: boolean;
|
|
216
|
-
payment_info_required: boolean;
|
|
217
|
-
valid_billing_info: boolean;
|
|
218
214
|
}
|
|
219
215
|
|
|
220
216
|
type GetPlanetScaleOrganizationsResult = PlanetScalePaginatedResult & {
|
|
@@ -1342,7 +1338,6 @@ interface AppVercelStorageConfig {
|
|
|
1342
1338
|
interface AppPlanetScaleStorageConfig {
|
|
1343
1339
|
organization: string;
|
|
1344
1340
|
databaseName: string;
|
|
1345
|
-
isSeeded: boolean;
|
|
1346
1341
|
}
|
|
1347
1342
|
interface AppSentryLoggerConfig {
|
|
1348
1343
|
name: string;
|
|
@@ -2161,6 +2156,7 @@ declare const api: {
|
|
|
2161
2156
|
keys: GitHubRepositoryHook[];
|
|
2162
2157
|
} | undefined>;
|
|
2163
2158
|
getFile(path: string, repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<any>;
|
|
2159
|
+
getCommits(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<{}[]>;
|
|
2164
2160
|
commitFiles(data: {
|
|
2165
2161
|
repositoryName: string;
|
|
2166
2162
|
repositoryBranch: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -211,10 +211,6 @@ interface PlanetScaleOrganization {
|
|
|
211
211
|
id: string;
|
|
212
212
|
type: string;
|
|
213
213
|
name: string;
|
|
214
|
-
free_databases_remaining: number;
|
|
215
|
-
has_card: boolean;
|
|
216
|
-
payment_info_required: boolean;
|
|
217
|
-
valid_billing_info: boolean;
|
|
218
214
|
}
|
|
219
215
|
|
|
220
216
|
type GetPlanetScaleOrganizationsResult = PlanetScalePaginatedResult & {
|
|
@@ -1342,7 +1338,6 @@ interface AppVercelStorageConfig {
|
|
|
1342
1338
|
interface AppPlanetScaleStorageConfig {
|
|
1343
1339
|
organization: string;
|
|
1344
1340
|
databaseName: string;
|
|
1345
|
-
isSeeded: boolean;
|
|
1346
1341
|
}
|
|
1347
1342
|
interface AppSentryLoggerConfig {
|
|
1348
1343
|
name: string;
|
|
@@ -2161,6 +2156,7 @@ declare const api: {
|
|
|
2161
2156
|
keys: GitHubRepositoryHook[];
|
|
2162
2157
|
} | undefined>;
|
|
2163
2158
|
getFile(path: string, repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<any>;
|
|
2159
|
+
getCommits(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<{}[]>;
|
|
2164
2160
|
commitFiles(data: {
|
|
2165
2161
|
repositoryName: string;
|
|
2166
2162
|
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;
|
|
@@ -4947,8 +4960,8 @@ var platformAdapterAppVariablesApi = {
|
|
|
4947
4960
|
},
|
|
4948
4961
|
editVariable(appId, data, authorization) {
|
|
4949
4962
|
return __async(this, null, function* () {
|
|
4950
|
-
const response = yield platformAdapterClientInstance.
|
|
4951
|
-
`/console/app/${appId}/variables/${data.key}
|
|
4963
|
+
const response = yield platformAdapterClientInstance.put(
|
|
4964
|
+
`/console/app/${appId}/variables/${data.key}`,
|
|
4952
4965
|
data,
|
|
4953
4966
|
getPlatformAdapterClientConfig(authorization)
|
|
4954
4967
|
);
|
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;
|
|
@@ -4859,8 +4872,8 @@ var platformAdapterAppVariablesApi = {
|
|
|
4859
4872
|
},
|
|
4860
4873
|
editVariable(appId, data, authorization) {
|
|
4861
4874
|
return __async(this, null, function* () {
|
|
4862
|
-
const response = yield platformAdapterClientInstance.
|
|
4863
|
-
`/console/app/${appId}/variables/${data.key}
|
|
4875
|
+
const response = yield platformAdapterClientInstance.put(
|
|
4876
|
+
`/console/app/${appId}/variables/${data.key}`,
|
|
4864
4877
|
data,
|
|
4865
4878
|
getPlatformAdapterClientConfig(authorization)
|
|
4866
4879
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
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,9 +17,9 @@
|
|
|
17
17
|
"@types/node": "^17.0.12",
|
|
18
18
|
"tsup": "^7.1.0",
|
|
19
19
|
"typescript": "^5.1.6",
|
|
20
|
+
"config": "0.0.0",
|
|
20
21
|
"eslint-config-custom-lib": "0.0.1",
|
|
21
22
|
"types": "0.0.1",
|
|
22
|
-
"config": "0.0.0",
|
|
23
23
|
"tsconfig": "0.0.0"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|