@livechat/developer-studio-api 3.0.21 → 3.0.23
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 +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +13 -1
- package/dist/index.mjs +13 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -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
|
@@ -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(
|
|
@@ -2919,9 +2930,10 @@ function getPlatformAccountsClientAuthorization(req) {
|
|
|
2919
2930
|
};
|
|
2920
2931
|
}
|
|
2921
2932
|
function getPlatformAccountsClientConfig(options = {}) {
|
|
2933
|
+
var _a;
|
|
2922
2934
|
const defaultAuthorization = platformAccountsClientInstance.defaults.headers.Authorization;
|
|
2923
2935
|
const headers = {
|
|
2924
|
-
authorization:
|
|
2936
|
+
authorization: (_a = options.token ? `Bearer ${options.token}` : void 0) != null ? _a : defaultAuthorization
|
|
2925
2937
|
};
|
|
2926
2938
|
return {
|
|
2927
2939
|
headers: __spreadValues({}, headers.authorization ? { Authorization: headers.authorization } : {})
|
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(
|
|
@@ -2817,9 +2828,10 @@ function getPlatformAccountsClientAuthorization(req) {
|
|
|
2817
2828
|
};
|
|
2818
2829
|
}
|
|
2819
2830
|
function getPlatformAccountsClientConfig(options = {}) {
|
|
2831
|
+
var _a;
|
|
2820
2832
|
const defaultAuthorization = platformAccountsClientInstance.defaults.headers.Authorization;
|
|
2821
2833
|
const headers = {
|
|
2822
|
-
authorization:
|
|
2834
|
+
authorization: (_a = options.token ? `Bearer ${options.token}` : void 0) != null ? _a : defaultAuthorization
|
|
2823
2835
|
};
|
|
2824
2836
|
return {
|
|
2825
2837
|
headers: __spreadValues({}, headers.authorization ? { Authorization: headers.authorization } : {})
|