@livechat/developer-studio-api 3.0.20 → 3.0.22
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 +8 -5
- package/dist/index.d.ts +8 -5
- package/dist/index.js +11 -0
- package/dist/index.mjs +11 -0
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1259,16 +1259,16 @@ type LinkAppStorageNeonData = {
|
|
|
1259
1259
|
databaseType: "existing";
|
|
1260
1260
|
databaseName: string;
|
|
1261
1261
|
}));
|
|
1262
|
-
type LinkAppStorageData =
|
|
1262
|
+
type LinkAppStorageData = {
|
|
1263
|
+
seedRepository: boolean;
|
|
1264
|
+
force?: boolean;
|
|
1265
|
+
} & (({
|
|
1263
1266
|
provider: "planetscale";
|
|
1264
1267
|
} & LinkAppStoragePlanetScaleData) | ({
|
|
1265
1268
|
provider: "neon";
|
|
1266
|
-
} & LinkAppStorageNeonData))
|
|
1267
|
-
force?: boolean;
|
|
1268
|
-
};
|
|
1269
|
+
} & LinkAppStorageNeonData));
|
|
1269
1270
|
type LinkAppStoragePayload = {
|
|
1270
1271
|
appId: string;
|
|
1271
|
-
seedRepository: boolean;
|
|
1272
1272
|
} & LinkAppStorageData;
|
|
1273
1273
|
|
|
1274
1274
|
interface UnlinkAppStorageData {
|
|
@@ -2943,6 +2943,9 @@ declare const api: {
|
|
|
2943
2943
|
neon: {
|
|
2944
2944
|
project: {
|
|
2945
2945
|
branch: {
|
|
2946
|
+
getBranch(projectId: string, branchId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<{
|
|
2947
|
+
branch: NeonProjectBranchDto;
|
|
2948
|
+
}>;
|
|
2946
2949
|
getBranches(projectId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectBranchesDto>;
|
|
2947
2950
|
createRole(projectId: string, branchId: string, roleName: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<{
|
|
2948
2951
|
role: NeonProjectRoleDto;
|
package/dist/index.d.ts
CHANGED
|
@@ -1259,16 +1259,16 @@ type LinkAppStorageNeonData = {
|
|
|
1259
1259
|
databaseType: "existing";
|
|
1260
1260
|
databaseName: string;
|
|
1261
1261
|
}));
|
|
1262
|
-
type LinkAppStorageData =
|
|
1262
|
+
type LinkAppStorageData = {
|
|
1263
|
+
seedRepository: boolean;
|
|
1264
|
+
force?: boolean;
|
|
1265
|
+
} & (({
|
|
1263
1266
|
provider: "planetscale";
|
|
1264
1267
|
} & LinkAppStoragePlanetScaleData) | ({
|
|
1265
1268
|
provider: "neon";
|
|
1266
|
-
} & LinkAppStorageNeonData))
|
|
1267
|
-
force?: boolean;
|
|
1268
|
-
};
|
|
1269
|
+
} & LinkAppStorageNeonData));
|
|
1269
1270
|
type LinkAppStoragePayload = {
|
|
1270
1271
|
appId: string;
|
|
1271
|
-
seedRepository: boolean;
|
|
1272
1272
|
} & LinkAppStorageData;
|
|
1273
1273
|
|
|
1274
1274
|
interface UnlinkAppStorageData {
|
|
@@ -2943,6 +2943,9 @@ declare const api: {
|
|
|
2943
2943
|
neon: {
|
|
2944
2944
|
project: {
|
|
2945
2945
|
branch: {
|
|
2946
|
+
getBranch(projectId: string, branchId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<{
|
|
2947
|
+
branch: NeonProjectBranchDto;
|
|
2948
|
+
}>;
|
|
2946
2949
|
getBranches(projectId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectBranchesDto>;
|
|
2947
2950
|
createRole(projectId: string, branchId: string, roleName: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<{
|
|
2948
2951
|
role: NeonProjectRoleDto;
|
package/dist/index.js
CHANGED
|
@@ -2096,6 +2096,17 @@ function updateNeonClientInstance(token) {
|
|
|
2096
2096
|
|
|
2097
2097
|
// src/apis/integrations/neon/project/branch/api.ts
|
|
2098
2098
|
var neonProjectBranchApi = {
|
|
2099
|
+
getBranch(projectId, branchId, authorization) {
|
|
2100
|
+
return __async(this, null, function* () {
|
|
2101
|
+
const response = yield neonClientInstance.get(
|
|
2102
|
+
`projects/${projectId}/branches/${branchId}`,
|
|
2103
|
+
getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2104
|
+
ensureAuthorizationToken: true
|
|
2105
|
+
}))
|
|
2106
|
+
);
|
|
2107
|
+
return response.data;
|
|
2108
|
+
});
|
|
2109
|
+
},
|
|
2099
2110
|
getBranches(projectId, authorization) {
|
|
2100
2111
|
return __async(this, null, function* () {
|
|
2101
2112
|
const response = yield neonClientInstance.get(
|
package/dist/index.mjs
CHANGED
|
@@ -1994,6 +1994,17 @@ function updateNeonClientInstance(token) {
|
|
|
1994
1994
|
|
|
1995
1995
|
// src/apis/integrations/neon/project/branch/api.ts
|
|
1996
1996
|
var neonProjectBranchApi = {
|
|
1997
|
+
getBranch(projectId, branchId, authorization) {
|
|
1998
|
+
return __async(this, null, function* () {
|
|
1999
|
+
const response = yield neonClientInstance.get(
|
|
2000
|
+
`projects/${projectId}/branches/${branchId}`,
|
|
2001
|
+
getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2002
|
+
ensureAuthorizationToken: true
|
|
2003
|
+
}))
|
|
2004
|
+
);
|
|
2005
|
+
return response.data;
|
|
2006
|
+
});
|
|
2007
|
+
},
|
|
1997
2008
|
getBranches(projectId, authorization) {
|
|
1998
2009
|
return __async(this, null, function* () {
|
|
1999
2010
|
const response = yield neonClientInstance.get(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.22",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"tsup": "^7.1.0",
|
|
19
19
|
"typescript": "^5.1.6",
|
|
20
20
|
"eslint-config-custom": "0.0.7",
|
|
21
|
-
"utils": "0.0.
|
|
21
|
+
"utils": "0.0.3",
|
|
22
22
|
"tsconfig": "0.0.1"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|