@livechat/developer-studio-api 2.3.43 → 2.3.44

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
@@ -1329,6 +1329,7 @@ declare function initPlatformAdapterClientInstance(baseUrl?: string, tokens?: {
1329
1329
  netlify?: string;
1330
1330
  vercel?: string;
1331
1331
  planetscale?: string;
1332
+ neon?: string;
1332
1333
  sentry?: string;
1333
1334
  }): void;
1334
1335
  declare function updatePlatformAdapterClientInstance(tokens?: {
@@ -1342,6 +1343,7 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
1342
1343
  netlify?: string;
1343
1344
  vercel?: string;
1344
1345
  planetscale?: string;
1346
+ neon?: string;
1345
1347
  sentry?: string;
1346
1348
  }): void;
1347
1349
 
@@ -1678,7 +1680,7 @@ type AppRepositoryTarget = "node" | "nextjs";
1678
1680
  type AppDeploymentProvider = "internal" | "netlify" | "vercel" | "heroku" | "custom";
1679
1681
  type AppDeploymentMode = "local" | "provider";
1680
1682
  type AppLoggerProvider = "sentry" | "amplitude";
1681
- type AppStorageProvider = "vercel" | "planetscale";
1683
+ type AppStorageProvider = "vercel" | "planetscale" | "neon";
1682
1684
  interface AppGitHubRepositoryConfig {
1683
1685
  name: string;
1684
1686
  branch: string;
@@ -2583,6 +2585,7 @@ declare const api: {
2583
2585
  project: {
2584
2586
  branch: {
2585
2587
  getBranch(projectId: string, branchId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectBranchDto>;
2588
+ getBranches(projectId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectBranchDto[]>;
2586
2589
  };
2587
2590
  createProject(projectName: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectWithConnectionUriDto>;
2588
2591
  getProject(projectId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectDto>;
package/dist/index.d.ts CHANGED
@@ -1329,6 +1329,7 @@ declare function initPlatformAdapterClientInstance(baseUrl?: string, tokens?: {
1329
1329
  netlify?: string;
1330
1330
  vercel?: string;
1331
1331
  planetscale?: string;
1332
+ neon?: string;
1332
1333
  sentry?: string;
1333
1334
  }): void;
1334
1335
  declare function updatePlatformAdapterClientInstance(tokens?: {
@@ -1342,6 +1343,7 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
1342
1343
  netlify?: string;
1343
1344
  vercel?: string;
1344
1345
  planetscale?: string;
1346
+ neon?: string;
1345
1347
  sentry?: string;
1346
1348
  }): void;
1347
1349
 
@@ -1678,7 +1680,7 @@ type AppRepositoryTarget = "node" | "nextjs";
1678
1680
  type AppDeploymentProvider = "internal" | "netlify" | "vercel" | "heroku" | "custom";
1679
1681
  type AppDeploymentMode = "local" | "provider";
1680
1682
  type AppLoggerProvider = "sentry" | "amplitude";
1681
- type AppStorageProvider = "vercel" | "planetscale";
1683
+ type AppStorageProvider = "vercel" | "planetscale" | "neon";
1682
1684
  interface AppGitHubRepositoryConfig {
1683
1685
  name: string;
1684
1686
  branch: string;
@@ -2583,6 +2585,7 @@ declare const api: {
2583
2585
  project: {
2584
2586
  branch: {
2585
2587
  getBranch(projectId: string, branchId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectBranchDto>;
2588
+ getBranches(projectId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectBranchDto[]>;
2586
2589
  };
2587
2590
  createProject(projectName: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectWithConnectionUriDto>;
2588
2591
  getProject(projectId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectDto>;
package/dist/index.js CHANGED
@@ -2525,6 +2525,15 @@ var neonProjectBranchApi = {
2525
2525
  );
2526
2526
  return response.data;
2527
2527
  });
2528
+ },
2529
+ getBranches(projectId, authorization) {
2530
+ return __async(this, null, function* () {
2531
+ const response = yield neonClientInstance.get(
2532
+ `projects/${projectId}/branches`,
2533
+ getNeonClientConfig(__spreadValues({}, authorization))
2534
+ );
2535
+ return response.data;
2536
+ });
2528
2537
  }
2529
2538
  };
2530
2539
 
@@ -5253,6 +5262,9 @@ function updatePlatformAdapterClientInstance(tokens) {
5253
5262
  if (tokens == null ? void 0 : tokens.planetscale) {
5254
5263
  headers["planetscale-token"] = tokens.planetscale;
5255
5264
  }
5265
+ if (tokens == null ? void 0 : tokens.neon) {
5266
+ headers["neon-token"] = tokens.neon;
5267
+ }
5256
5268
  if (tokens == null ? void 0 : tokens.sentry) {
5257
5269
  headers["sentry-token"] = tokens.sentry;
5258
5270
  }
package/dist/index.mjs CHANGED
@@ -2429,6 +2429,15 @@ var neonProjectBranchApi = {
2429
2429
  );
2430
2430
  return response.data;
2431
2431
  });
2432
+ },
2433
+ getBranches(projectId, authorization) {
2434
+ return __async(this, null, function* () {
2435
+ const response = yield neonClientInstance.get(
2436
+ `projects/${projectId}/branches`,
2437
+ getNeonClientConfig(__spreadValues({}, authorization))
2438
+ );
2439
+ return response.data;
2440
+ });
2432
2441
  }
2433
2442
  };
2434
2443
 
@@ -5157,6 +5166,9 @@ function updatePlatformAdapterClientInstance(tokens) {
5157
5166
  if (tokens == null ? void 0 : tokens.planetscale) {
5158
5167
  headers["planetscale-token"] = tokens.planetscale;
5159
5168
  }
5169
+ if (tokens == null ? void 0 : tokens.neon) {
5170
+ headers["neon-token"] = tokens.neon;
5171
+ }
5160
5172
  if (tokens == null ? void 0 : tokens.sentry) {
5161
5173
  headers["sentry-token"] = tokens.sentry;
5162
5174
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "2.3.43",
3
+ "version": "2.3.44",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",