Skip to content

Commit

Permalink
Merge pull request #1675 from notaphplover/refactor/solve-frontend-de…
Browse files Browse the repository at this point in the history
…precations

Solve frontend deprecations
  • Loading branch information
notaphplover authored Sep 24, 2024
2 parents 51dda52 + 44f58b6 commit 61e9c68
Show file tree
Hide file tree
Showing 15 changed files with 222 additions and 213 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HttpClient } from '@cornie-js/api-http-client';
import { models as apiModels } from '@cornie-js/api-models';
import { AppError, AppErrorKind } from '@cornie-js/frontend-common';
import { AppErrorKind } from '@cornie-js/frontend-common';

import { SerializableAppError } from '../../foundation/error/SerializableAppError';
import { HttpApiParams } from '../../foundation/http/models/HttpApiParams';
Expand Down Expand Up @@ -70,7 +70,10 @@ export function createAuthV2(
};
default:
return {
error: new AppError(AppErrorKind.unknown),
error: {
kind: AppErrorKind.unknown,
message: '',
},
};
}
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HttpClient } from '@cornie-js/api-http-client';
import { models as apiModels } from '@cornie-js/api-models';
import { AppError, AppErrorKind } from '@cornie-js/frontend-common';
import { AppErrorKind } from '@cornie-js/frontend-common';
import { BaseQueryApi } from '@reduxjs/toolkit/query';

import { SerializableAppError } from '../../foundation/error/SerializableAppError';
Expand Down Expand Up @@ -68,7 +68,10 @@ export function createGamesV1(
};
default:
return {
error: new AppError(AppErrorKind.unknown),
error: {
kind: AppErrorKind.unknown,
message: '',
},
};
}
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HttpClient } from '@cornie-js/api-http-client';
import { models as apiModels } from '@cornie-js/api-models';
import { AppError, AppErrorKind } from '@cornie-js/frontend-common';
import { AppErrorKind } from '@cornie-js/frontend-common';
import { BaseQueryApi } from '@reduxjs/toolkit/query';

import { SerializableAppError } from '../../foundation/error/SerializableAppError';
Expand Down Expand Up @@ -88,7 +88,10 @@ export function createGamesV1Slots(
};
default:
return {
error: new AppError(AppErrorKind.unknown),
error: {
kind: AppErrorKind.unknown,
message: '',
},
};
}
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HttpClient } from '@cornie-js/api-http-client';
import { models as apiModels } from '@cornie-js/api-models';
import { AppError, AppErrorKind } from '@cornie-js/frontend-common';
import { AppErrorKind } from '@cornie-js/frontend-common';
import { BaseQueryApi } from '@reduxjs/toolkit/query';

import { SerializableAppError } from '../../foundation/error/SerializableAppError';
Expand Down Expand Up @@ -60,7 +60,10 @@ export function getGamesSpecsV1(
};
default:
return {
error: new AppError(AppErrorKind.unknown),
error: {
kind: AppErrorKind.unknown,
message: '',
},
};
}
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HttpClient } from '@cornie-js/api-http-client';
import { models as apiModels } from '@cornie-js/api-models';
import { AppError, AppErrorKind } from '@cornie-js/frontend-common';
import { AppErrorKind } from '@cornie-js/frontend-common';
import { BaseQueryApi } from '@reduxjs/toolkit/query';

import { SerializableAppError } from '../../foundation/error/SerializableAppError';
Expand Down Expand Up @@ -67,7 +67,10 @@ export function getGamesV1(
};
default:
return {
error: new AppError(AppErrorKind.unknown),
error: {
kind: AppErrorKind.unknown,
message: '',
},
};
}
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HttpClient } from '@cornie-js/api-http-client';
import { models as apiModels } from '@cornie-js/api-models';
import { AppError, AppErrorKind } from '@cornie-js/frontend-common';
import { AppErrorKind } from '@cornie-js/frontend-common';
import { BaseQueryApi } from '@reduxjs/toolkit/query';

import { SerializableAppError } from '../../foundation/error/SerializableAppError';
Expand Down Expand Up @@ -65,7 +65,10 @@ export function getGamesV1GameId(
};
default:
return {
error: new AppError(AppErrorKind.unknown),
error: {
kind: AppErrorKind.unknown,
message: '',
},
};
}
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HttpClient } from '@cornie-js/api-http-client';
import { models as apiModels } from '@cornie-js/api-models';
import { AppError, AppErrorKind } from '@cornie-js/frontend-common';
import { AppErrorKind } from '@cornie-js/frontend-common';
import { BaseQueryApi } from '@reduxjs/toolkit/query';

import { SerializableAppError } from '../../foundation/error/SerializableAppError';
Expand Down Expand Up @@ -68,7 +68,10 @@ export function getGamesV1GameIdSlotsSlotIdCards(
};
default:
return {
error: new AppError(AppErrorKind.unknown),
error: {
kind: AppErrorKind.unknown,
message: '',
},
};
}
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HttpClient } from '@cornie-js/api-http-client';
import { models as apiModels } from '@cornie-js/api-models';
import { AppError, AppErrorKind } from '@cornie-js/frontend-common';
import { AppErrorKind } from '@cornie-js/frontend-common';
import { BaseQueryApi } from '@reduxjs/toolkit/query';

import { SerializableAppError } from '../../foundation/error/SerializableAppError';
Expand Down Expand Up @@ -60,7 +60,10 @@ export function getGamesV1Mine(
};
default:
return {
error: new AppError(AppErrorKind.unknown),
error: {
kind: AppErrorKind.unknown,
message: '',
},
};
}
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HttpClient } from '@cornie-js/api-http-client';
import { models as apiModels } from '@cornie-js/api-models';
import { AppError, AppErrorKind } from '@cornie-js/frontend-common';
import { AppErrorKind } from '@cornie-js/frontend-common';
import { BaseQueryApi } from '@reduxjs/toolkit/query';

import { SerializableAppError } from '../../foundation/error/SerializableAppError';
Expand Down Expand Up @@ -58,7 +58,10 @@ export function updateUsersV1Me(
};
default:
return {
error: new AppError(AppErrorKind.unknown),
error: {
kind: AppErrorKind.unknown,
message: '',
},
};
}
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HttpClient } from '@cornie-js/api-http-client';
import { models as apiModels } from '@cornie-js/api-models';
import { AppError, AppErrorKind } from '@cornie-js/frontend-common';
import { AppErrorKind } from '@cornie-js/frontend-common';
import { BaseQueryApi } from '@reduxjs/toolkit/query';

import { SerializableAppError } from '../../foundation/error/SerializableAppError';
Expand Down Expand Up @@ -58,7 +58,10 @@ export function getUsersV1Me(
};
default:
return {
error: new AppError(AppErrorKind.unknown),
error: {
kind: AppErrorKind.unknown,
message: '',
},
};
}
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HttpClient } from '@cornie-js/api-http-client';
import { models as apiModels } from '@cornie-js/api-models';
import { AppError, AppErrorKind } from '@cornie-js/frontend-common';
import { AppErrorKind } from '@cornie-js/frontend-common';
import { BaseQueryApi } from '@reduxjs/toolkit/query';

import { SerializableAppError } from '../../foundation/error/SerializableAppError';
Expand Down Expand Up @@ -60,7 +60,10 @@ export function getUsersV1MeDetail(
};
default:
return {
error: new AppError(AppErrorKind.unknown),
error: {
kind: AppErrorKind.unknown,
message: '',
},
};
}
};
Expand Down
Loading

0 comments on commit 61e9c68

Please sign in to comment.