@livechat/developer-studio-api 2.3.62 → 2.3.64

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
@@ -1136,8 +1136,11 @@ type LinkAppStorageNeonData = {
1136
1136
  branchId: string;
1137
1137
  databaseType: "new" | "existing";
1138
1138
  };
1139
- interface LinkAppStorageVercelData {
1140
- }
1139
+ type LinkAppStorageVercelData = {
1140
+ type: "new";
1141
+ } | {
1142
+ type: "existing";
1143
+ };
1141
1144
  type LinkAppStorageData = ({
1142
1145
  provider: "planetscale";
1143
1146
  } & LinkAppStoragePlanetScaleData) | ({
package/dist/index.d.ts CHANGED
@@ -1136,8 +1136,11 @@ type LinkAppStorageNeonData = {
1136
1136
  branchId: string;
1137
1137
  databaseType: "new" | "existing";
1138
1138
  };
1139
- interface LinkAppStorageVercelData {
1140
- }
1139
+ type LinkAppStorageVercelData = {
1140
+ type: "new";
1141
+ } | {
1142
+ type: "existing";
1143
+ };
1141
1144
  type LinkAppStorageData = ({
1142
1145
  provider: "planetscale";
1143
1146
  } & LinkAppStoragePlanetScaleData) | ({
package/dist/index.js CHANGED
@@ -2158,9 +2158,9 @@ var vercelClientInstance = import_axios8.default.create({
2158
2158
  vercelClientInstance.interceptors.response.use(
2159
2159
  (r) => r,
2160
2160
  (error) => {
2161
- var _a;
2161
+ var _a, _b;
2162
2162
  if (import_axios8.default.isAxiosError(error)) {
2163
- if (((_a = error.response) == null ? void 0 : _a.status) === 401) {
2163
+ if (((_a = error.response) == null ? void 0 : _a.status) === 401 || ((_b = error.response) == null ? void 0 : _b.status) === 403) {
2164
2164
  throw new UnauthorizeApiError("vercel");
2165
2165
  }
2166
2166
  }
package/dist/index.mjs CHANGED
@@ -2062,9 +2062,9 @@ var vercelClientInstance = axios8.create({
2062
2062
  vercelClientInstance.interceptors.response.use(
2063
2063
  (r) => r,
2064
2064
  (error) => {
2065
- var _a;
2065
+ var _a, _b;
2066
2066
  if (axios8.isAxiosError(error)) {
2067
- if (((_a = error.response) == null ? void 0 : _a.status) === 401) {
2067
+ if (((_a = error.response) == null ? void 0 : _a.status) === 401 || ((_b = error.response) == null ? void 0 : _b.status) === 403) {
2068
2068
  throw new UnauthorizeApiError("vercel");
2069
2069
  }
2070
2070
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "2.3.62",
3
+ "version": "2.3.64",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",