@livechat/developer-studio-api 3.0.21 → 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 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(
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.21",
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",