🔧 Renamed IMPORT_* to LIBRARY_*
This commit is contained in:
@@ -5,7 +5,7 @@ import {
|
||||
PriorityEnum,
|
||||
SearchResponse,
|
||||
} from "threetwo-ui-typings";
|
||||
import { IMPORT_SERVICE_BASE_URI } from "../constants/endpoints";
|
||||
import { LIBRARY_SERVICE_BASE_URI } from "../constants/endpoints";
|
||||
import {
|
||||
AIRDCPP_SEARCH_RESULTS_ADDED,
|
||||
AIRDCPP_SEARCH_RESULTS_UPDATED,
|
||||
@@ -147,7 +147,7 @@ export const downloadAirDCPPItem =
|
||||
if (!isNil(downloadResult)) {
|
||||
bundleDBImportResult = await axios({
|
||||
method: "POST",
|
||||
url: `${IMPORT_SERVICE_BASE_URI}/applyAirDCPPDownloadMetadata`,
|
||||
url: `${LIBRARY_SERVICE_BASE_URI}/applyAirDCPPDownloadMetadata`,
|
||||
headers: {
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
},
|
||||
@@ -214,7 +214,7 @@ export const getBundlesForComic =
|
||||
}
|
||||
const comicObject = await axios({
|
||||
method: "POST",
|
||||
url: `${IMPORT_SERVICE_BASE_URI}/getComicBookById`,
|
||||
url: `${LIBRARY_SERVICE_BASE_URI}/getComicBookById`,
|
||||
headers: {
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
},
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
} from "../constants/action-types";
|
||||
import {
|
||||
COMICBOOKINFO_SERVICE_URI,
|
||||
IMPORT_SERVICE_BASE_URI,
|
||||
LIBRARY_SERVICE_BASE_URI,
|
||||
} from "../constants/endpoints";
|
||||
|
||||
const http = rateLimiter(axios.create(), {
|
||||
@@ -75,7 +75,7 @@ export const findIssuesForSeriesInLibrary =
|
||||
});
|
||||
|
||||
await axios({
|
||||
url: `${IMPORT_SERVICE_BASE_URI}/findIssuesForSeriesInLibrary`,
|
||||
url: `${LIBRARY_SERVICE_BASE_URI}/findIssuesForSeriesInLibrary`,
|
||||
method: "POST",
|
||||
params: {
|
||||
comicObjectID,
|
||||
@@ -90,7 +90,7 @@ export const getComicBookDetailById =
|
||||
IMS_inProgress: true,
|
||||
});
|
||||
const result = await axios.request({
|
||||
url: `${IMPORT_SERVICE_BASE_URI}/getComicBookById`,
|
||||
url: `${LIBRARY_SERVICE_BASE_URI}/getComicBookById`,
|
||||
method: "POST",
|
||||
data: {
|
||||
id: comicBookObjectId,
|
||||
@@ -110,7 +110,7 @@ export const getComicBooksDetailsByIds =
|
||||
IMS_inProgress: true,
|
||||
});
|
||||
const result = await axios.request({
|
||||
url: `${IMPORT_SERVICE_BASE_URI}/getComicBooksByIds`,
|
||||
url: `${LIBRARY_SERVICE_BASE_URI}/getComicBooksByIds`,
|
||||
method: "POST",
|
||||
data: {
|
||||
ids: comicBookObjectIds,
|
||||
@@ -129,7 +129,7 @@ export const applyComicVineMatch =
|
||||
IMS_inProgress: true,
|
||||
});
|
||||
const result = await axios.request({
|
||||
url: `${IMPORT_SERVICE_BASE_URI}/applyComicVineMetadata`,
|
||||
url: `${LIBRARY_SERVICE_BASE_URI}/applyComicVineMetadata`,
|
||||
method: "POST",
|
||||
data: {
|
||||
match,
|
||||
@@ -151,7 +151,7 @@ export const extractComicArchive =
|
||||
});
|
||||
const extractedComicBookArchive = await axios({
|
||||
method: "POST",
|
||||
url: `${IMPORT_SERVICE_BASE_URI}/unrarArchive`,
|
||||
url: `${LIBRARY_SERVICE_BASE_URI}/unrarArchive`,
|
||||
headers: {
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
},
|
||||
@@ -164,7 +164,7 @@ export const extractComicArchive =
|
||||
const foo = page.path.split("/");
|
||||
const folderName = foo[foo.length - 1];
|
||||
const imagePath = encodeURI(
|
||||
`${IMPORT_SERVICE_BASE_URI}/userdata/expanded/` +
|
||||
`${LIBRARY_SERVICE_BASE_URI}/userdata/expanded/` +
|
||||
folderName +
|
||||
`/` +
|
||||
page.name +
|
||||
|
||||
@@ -2,7 +2,7 @@ import axios from "axios";
|
||||
import { IFolderData } from "threetwo-ui-typings";
|
||||
import {
|
||||
COMICBOOKINFO_SERVICE_URI,
|
||||
IMPORT_SERVICE_BASE_URI,
|
||||
LIBRARY_SERVICE_BASE_URI,
|
||||
} from "../constants/endpoints";
|
||||
import {
|
||||
IMS_COMIC_BOOK_GROUPS_FETCHED,
|
||||
@@ -23,7 +23,7 @@ import { isNil } from "lodash";
|
||||
export async function walkFolder(path: string): Promise<Array<IFolderData>> {
|
||||
return axios
|
||||
.request<Array<IFolderData>>({
|
||||
url: `${IMPORT_SERVICE_BASE_URI}/walkFolders`,
|
||||
url: `${LIBRARY_SERVICE_BASE_URI}/walkFolders`,
|
||||
method: "POST",
|
||||
data: {
|
||||
basePathToWalk: path,
|
||||
@@ -78,7 +78,7 @@ export const getComicBooks = (options) => async (dispatch) => {
|
||||
const { paginationOptions } = options;
|
||||
return axios
|
||||
.request({
|
||||
url: `${IMPORT_SERVICE_BASE_URI}/getComicBooks`,
|
||||
url: `${LIBRARY_SERVICE_BASE_URI}/getComicBooks`,
|
||||
method: "POST",
|
||||
data: {
|
||||
paginationOptions,
|
||||
@@ -109,7 +109,7 @@ export const importToDB = (payload?: any) => (dispatch) => {
|
||||
});
|
||||
return axios
|
||||
.request({
|
||||
url: `${IMPORT_SERVICE_BASE_URI}/rawImportToDb`,
|
||||
url: `${LIBRARY_SERVICE_BASE_URI}/rawImportToDb`,
|
||||
method: "POST",
|
||||
data: comicBookMetadata,
|
||||
transformResponse: (r: string) => JSON.parse(r),
|
||||
@@ -135,7 +135,7 @@ export const fetchVolumeGroups = () => (dispatch) => {
|
||||
});
|
||||
axios
|
||||
.request({
|
||||
url: `${IMPORT_SERVICE_BASE_URI}/getComicBookGroups`,
|
||||
url: `${LIBRARY_SERVICE_BASE_URI}/getComicBookGroups`,
|
||||
method: "GET",
|
||||
})
|
||||
.then((data) => {
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
SETTINGS_DB_FLUSH_SUCCESS,
|
||||
} from "../constants/action-types";
|
||||
import {
|
||||
IMPORT_SERVICE_BASE_URI,
|
||||
LIBRARY_SERVICE_BASE_URI,
|
||||
SETTINGS_SERVICE_BASE_URI,
|
||||
} from "../constants/endpoints";
|
||||
|
||||
@@ -58,7 +58,7 @@ export const flushDb = () => async (dispatch) => {
|
||||
});
|
||||
|
||||
const flushDbResult = await axios({
|
||||
url: `${IMPORT_SERVICE_BASE_URI}/flushDb`,
|
||||
url: `${LIBRARY_SERVICE_BASE_URI}/flushDb`,
|
||||
method: "POST",
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user