Skip to content

Commit c6da88c

Browse files
committed
♻️ move IntegrationErrorTypes to clinq-types
1 parent d1e959b commit c6da88c

File tree

5 files changed

+17
-21
lines changed

5 files changed

+17
-21
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@sipgate:registry=https://npm.pkg.github.com

package-lock.json

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"typescript": "4.9.5"
6464
},
6565
"dependencies": {
66+
"@sipgate/clinq-types": "^0.67.9",
6667
"ajv": "^8.11.0",
6768
"awesome-phonenumber": "^3.2.0",
6869
"axios": "^0.27.2",

src/models/integration-error.model.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/util/error.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import axios, { AxiosError } from "axios";
2+
import { ServerError } from "../models";
3+
import { errorLogger } from "./logger.util";
24
import {
35
DELEGATE_TO_FRONTEND_CODE,
46
IntegrationErrorType,
5-
ServerError,
6-
} from "../models";
7-
import { errorLogger } from "./logger.util";
7+
} from "@sipgate/clinq-types";
88

99
export const throwAndDelegateError = (
1010
error: AxiosError | ServerError | Error,

0 commit comments

Comments
 (0)