@livechat/developer-studio-api 2.3.11 → 2.3.12
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 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/dist/index.mjs +5 -3
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -2264,7 +2264,7 @@ declare const api: {
|
|
|
2264
2264
|
getRepositoryBranch(repositoryName: string, repositoryBranch: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepositoryBranch>;
|
|
2265
2265
|
getRepositorySeed(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepositorySeed | undefined>;
|
|
2266
2266
|
createRepository(name: string, hasInstallation: boolean, template?: string | undefined, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepository>;
|
|
2267
|
-
seedRepository(repositoryName: string, appId: string, clientId: string | undefined, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepositorySeed>;
|
|
2267
|
+
seedRepository(repositoryName: string, appId: string, clientId: string | undefined, isForLabs?: boolean | undefined, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepositorySeed>;
|
|
2268
2268
|
deleteRepository(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<any>>;
|
|
2269
2269
|
createRepositoryDeployKey(repositoryName: string, deployKey: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<{
|
|
2270
2270
|
keys: GitHubRepositoryKey[];
|
package/dist/index.d.ts
CHANGED
|
@@ -2264,7 +2264,7 @@ declare const api: {
|
|
|
2264
2264
|
getRepositoryBranch(repositoryName: string, repositoryBranch: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepositoryBranch>;
|
|
2265
2265
|
getRepositorySeed(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepositorySeed | undefined>;
|
|
2266
2266
|
createRepository(name: string, hasInstallation: boolean, template?: string | undefined, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepository>;
|
|
2267
|
-
seedRepository(repositoryName: string, appId: string, clientId: string | undefined, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepositorySeed>;
|
|
2267
|
+
seedRepository(repositoryName: string, appId: string, clientId: string | undefined, isForLabs?: boolean | undefined, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepositorySeed>;
|
|
2268
2268
|
deleteRepository(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<any>>;
|
|
2269
2269
|
createRepositoryDeployKey(repositoryName: string, deployKey: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<{
|
|
2270
2270
|
keys: GitHubRepositoryKey[];
|
package/dist/index.js
CHANGED
|
@@ -457,7 +457,7 @@ var gitHubRepositoryApi = {
|
|
|
457
457
|
return response.data;
|
|
458
458
|
});
|
|
459
459
|
},
|
|
460
|
-
seedRepository(repositoryName, appId, clientId, authorization) {
|
|
460
|
+
seedRepository(repositoryName, appId, clientId, isForLabs, authorization) {
|
|
461
461
|
return __async(this, null, function* () {
|
|
462
462
|
const upsert = (sha) => __async(this, null, function* () {
|
|
463
463
|
var _a;
|
|
@@ -468,12 +468,14 @@ var gitHubRepositoryApi = {
|
|
|
468
468
|
sha,
|
|
469
469
|
content: btoa(
|
|
470
470
|
JSON.stringify(
|
|
471
|
-
{
|
|
471
|
+
__spreadValues({
|
|
472
472
|
appId,
|
|
473
473
|
auth: {
|
|
474
474
|
clientId
|
|
475
475
|
}
|
|
476
|
-
},
|
|
476
|
+
}, isForLabs ? {
|
|
477
|
+
stage: "labs"
|
|
478
|
+
} : {}),
|
|
477
479
|
null,
|
|
478
480
|
4
|
|
479
481
|
)
|
package/dist/index.mjs
CHANGED
|
@@ -366,7 +366,7 @@ var gitHubRepositoryApi = {
|
|
|
366
366
|
return response.data;
|
|
367
367
|
});
|
|
368
368
|
},
|
|
369
|
-
seedRepository(repositoryName, appId, clientId, authorization) {
|
|
369
|
+
seedRepository(repositoryName, appId, clientId, isForLabs, authorization) {
|
|
370
370
|
return __async(this, null, function* () {
|
|
371
371
|
const upsert = (sha) => __async(this, null, function* () {
|
|
372
372
|
var _a;
|
|
@@ -377,12 +377,14 @@ var gitHubRepositoryApi = {
|
|
|
377
377
|
sha,
|
|
378
378
|
content: btoa(
|
|
379
379
|
JSON.stringify(
|
|
380
|
-
{
|
|
380
|
+
__spreadValues({
|
|
381
381
|
appId,
|
|
382
382
|
auth: {
|
|
383
383
|
clientId
|
|
384
384
|
}
|
|
385
|
-
},
|
|
385
|
+
}, isForLabs ? {
|
|
386
|
+
stage: "labs"
|
|
387
|
+
} : {}),
|
|
386
388
|
null,
|
|
387
389
|
4
|
|
388
390
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.12",
|
|
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.1",
|
|
20
21
|
"eslint-config-custom": "0.0.2",
|
|
21
|
-
"tsconfig": "0.0.1"
|
|
22
|
-
"config": "0.0.1"
|
|
22
|
+
"tsconfig": "0.0.1"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|