@livechat/developer-studio-api 2.3.10 → 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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +21 -3
- package/dist/index.mjs +21 -3
- package/package.json +2 -2
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[];
|
|
@@ -2428,6 +2428,7 @@ declare const api: {
|
|
|
2428
2428
|
getReport(params: GetTextPlatformDashboardReportParams, authorization?: TextClientInstanceAuthorization | undefined): Promise<TextPlatformDashboardReportDto>;
|
|
2429
2429
|
getCredits(authorization?: TextClientInstanceAuthorization | undefined): Promise<TextPlatformDashboardCreditsDto>;
|
|
2430
2430
|
getPayment(authorization?: TextClientInstanceAuthorization | undefined): Promise<TextPlatformDashboardPaymentDto>;
|
|
2431
|
+
registerDeveloper(authorization?: TextClientInstanceAuthorization | undefined): Promise<any>;
|
|
2431
2432
|
};
|
|
2432
2433
|
};
|
|
2433
2434
|
};
|
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[];
|
|
@@ -2428,6 +2428,7 @@ declare const api: {
|
|
|
2428
2428
|
getReport(params: GetTextPlatformDashboardReportParams, authorization?: TextClientInstanceAuthorization | undefined): Promise<TextPlatformDashboardReportDto>;
|
|
2429
2429
|
getCredits(authorization?: TextClientInstanceAuthorization | undefined): Promise<TextPlatformDashboardCreditsDto>;
|
|
2430
2430
|
getPayment(authorization?: TextClientInstanceAuthorization | undefined): Promise<TextPlatformDashboardPaymentDto>;
|
|
2431
|
+
registerDeveloper(authorization?: TextClientInstanceAuthorization | undefined): Promise<any>;
|
|
2431
2432
|
};
|
|
2432
2433
|
};
|
|
2433
2434
|
};
|
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
|
)
|
|
@@ -2110,6 +2112,22 @@ var textPlatformDashboardApi = {
|
|
|
2110
2112
|
throw error;
|
|
2111
2113
|
}
|
|
2112
2114
|
});
|
|
2115
|
+
},
|
|
2116
|
+
registerDeveloper(authorization) {
|
|
2117
|
+
return __async(this, null, function* () {
|
|
2118
|
+
try {
|
|
2119
|
+
const response = yield textClientInstance.post(
|
|
2120
|
+
`/platform_dashboard/credits`,
|
|
2121
|
+
getTextClientConfig(authorization)
|
|
2122
|
+
);
|
|
2123
|
+
return response.data;
|
|
2124
|
+
} catch (error) {
|
|
2125
|
+
if (error instanceof Error) {
|
|
2126
|
+
throw new Error(`Couldn't register developer. [${error.message}]`);
|
|
2127
|
+
}
|
|
2128
|
+
throw error;
|
|
2129
|
+
}
|
|
2130
|
+
});
|
|
2113
2131
|
}
|
|
2114
2132
|
};
|
|
2115
2133
|
|
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
|
)
|
|
@@ -2019,6 +2021,22 @@ var textPlatformDashboardApi = {
|
|
|
2019
2021
|
throw error;
|
|
2020
2022
|
}
|
|
2021
2023
|
});
|
|
2024
|
+
},
|
|
2025
|
+
registerDeveloper(authorization) {
|
|
2026
|
+
return __async(this, null, function* () {
|
|
2027
|
+
try {
|
|
2028
|
+
const response = yield textClientInstance.post(
|
|
2029
|
+
`/platform_dashboard/credits`,
|
|
2030
|
+
getTextClientConfig(authorization)
|
|
2031
|
+
);
|
|
2032
|
+
return response.data;
|
|
2033
|
+
} catch (error) {
|
|
2034
|
+
if (error instanceof Error) {
|
|
2035
|
+
throw new Error(`Couldn't register developer. [${error.message}]`);
|
|
2036
|
+
}
|
|
2037
|
+
throw error;
|
|
2038
|
+
}
|
|
2039
|
+
});
|
|
2022
2040
|
}
|
|
2023
2041
|
};
|
|
2024
2042
|
|
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,8 +17,8 @@
|
|
|
17
17
|
"@types/node": "^17.0.12",
|
|
18
18
|
"tsup": "^7.1.0",
|
|
19
19
|
"typescript": "^5.1.6",
|
|
20
|
-
"eslint-config-custom": "0.0.2",
|
|
21
20
|
"config": "0.0.1",
|
|
21
|
+
"eslint-config-custom": "0.0.2",
|
|
22
22
|
"tsconfig": "0.0.1"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|