@livechat/developer-studio-api 2.3.11 → 2.3.13
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 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -6
- package/dist/index.mjs +8 -6
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1148,7 +1148,7 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
|
|
|
1148
1148
|
platform?: {
|
|
1149
1149
|
dps?: string;
|
|
1150
1150
|
};
|
|
1151
|
-
github
|
|
1151
|
+
github?: {
|
|
1152
1152
|
app?: string;
|
|
1153
1153
|
oauth?: string;
|
|
1154
1154
|
};
|
|
@@ -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
|
@@ -1148,7 +1148,7 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
|
|
|
1148
1148
|
platform?: {
|
|
1149
1149
|
dps?: string;
|
|
1150
1150
|
};
|
|
1151
|
-
github
|
|
1151
|
+
github?: {
|
|
1152
1152
|
app?: string;
|
|
1153
1153
|
oauth?: string;
|
|
1154
1154
|
};
|
|
@@ -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
|
)
|
|
@@ -5008,15 +5010,15 @@ function initPlatformAdapterClientInstance(baseUrl, tokens) {
|
|
|
5008
5010
|
}
|
|
5009
5011
|
}
|
|
5010
5012
|
function updatePlatformAdapterClientInstance(tokens) {
|
|
5011
|
-
var _a;
|
|
5013
|
+
var _a, _b, _c;
|
|
5012
5014
|
const headers = platformAdapterClientInstance.defaults.headers;
|
|
5013
5015
|
if ((_a = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _a.dps) {
|
|
5014
5016
|
headers["platform-dps-token"] = tokens.platform.dps;
|
|
5015
5017
|
}
|
|
5016
|
-
if (tokens == null ? void 0 : tokens.github.app) {
|
|
5018
|
+
if ((_b = tokens == null ? void 0 : tokens.github) == null ? void 0 : _b.app) {
|
|
5017
5019
|
headers["github-app-token"] = tokens.github.app;
|
|
5018
5020
|
}
|
|
5019
|
-
if (tokens == null ? void 0 : tokens.github.oauth) {
|
|
5021
|
+
if ((_c = tokens == null ? void 0 : tokens.github) == null ? void 0 : _c.oauth) {
|
|
5020
5022
|
headers["github-oauth-token"] = tokens.github.oauth;
|
|
5021
5023
|
}
|
|
5022
5024
|
if (tokens == null ? void 0 : tokens.netlify) {
|
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
|
)
|
|
@@ -4917,15 +4919,15 @@ function initPlatformAdapterClientInstance(baseUrl, tokens) {
|
|
|
4917
4919
|
}
|
|
4918
4920
|
}
|
|
4919
4921
|
function updatePlatformAdapterClientInstance(tokens) {
|
|
4920
|
-
var _a;
|
|
4922
|
+
var _a, _b, _c;
|
|
4921
4923
|
const headers = platformAdapterClientInstance.defaults.headers;
|
|
4922
4924
|
if ((_a = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _a.dps) {
|
|
4923
4925
|
headers["platform-dps-token"] = tokens.platform.dps;
|
|
4924
4926
|
}
|
|
4925
|
-
if (tokens == null ? void 0 : tokens.github.app) {
|
|
4927
|
+
if ((_b = tokens == null ? void 0 : tokens.github) == null ? void 0 : _b.app) {
|
|
4926
4928
|
headers["github-app-token"] = tokens.github.app;
|
|
4927
4929
|
}
|
|
4928
|
-
if (tokens == null ? void 0 : tokens.github.oauth) {
|
|
4930
|
+
if ((_c = tokens == null ? void 0 : tokens.github) == null ? void 0 : _c.oauth) {
|
|
4929
4931
|
headers["github-oauth-token"] = tokens.github.oauth;
|
|
4930
4932
|
}
|
|
4931
4933
|
if (tokens == null ? void 0 : tokens.netlify) {
|
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.13",
|
|
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",
|