fix: base url standardization

This commit is contained in:
sriram veeraghanta
2025-08-30 22:50:49 +05:30
parent 866eb5ac17
commit 14601d0f36
8 changed files with 18 additions and 16 deletions

View File

@@ -1,4 +1,3 @@
import { API_BASE_URL } from "@plane/constants";
import { TProjectPublishSettings } from "@plane/types";
import { APIService } from "../api.service";
@@ -8,9 +7,9 @@ import { APIService } from "../api.service";
* @extends {APIService}
* @remarks This service is only available for plane core
*/
export class CoreProjectPublishService extends APIService {
constructor(BASE_URL?: string) {
super(BASE_URL || API_BASE_URL);
export abstract class CoreProjectPublishService extends APIService {
constructor(BASE_URL: string) {
super(BASE_URL);
}
async retrieve(workspaceSlug: string, projectID: string): Promise<TProjectPublishSettings> {

View File

@@ -1,7 +1,7 @@
import { CoreProjectPublishService } from "./core.service";
export class ExtendedProjectPublishService extends CoreProjectPublishService {
constructor() {
super();
export abstract class ExtendedProjectPublishService extends CoreProjectPublishService {
constructor(baseUrl: string) {
super(baseUrl);
}
}

View File

@@ -1,7 +1,8 @@
import { API_BASE_URL } from "@plane/constants";
import { ExtendedProjectPublishService } from "./extended.service";
export class ProjectPublishService extends ExtendedProjectPublishService {
constructor() {
super();
super(API_BASE_URL);
}
}

View File

@@ -1,7 +1,7 @@
import { IProjectView } from "@plane/types";
import { APIService } from "../api.service";
export class ProjectViewService extends APIService {
export class CoreProjectViewService extends APIService {
constructor(baseUrl: string) {
super(baseUrl);
}

View File

@@ -1,6 +1,6 @@
import { ProjectViewService } from "./core.service";
import { CoreProjectViewService } from "./core.service";
export class ExtendedProjectViewService extends ProjectViewService {
export class ExtendedProjectViewService extends CoreProjectViewService {
constructor(baseUrl: string) {
super(baseUrl);
}

View File

@@ -1,7 +1,8 @@
import { API_BASE_URL } from "@plane/constants";
import { ExtendedProjectViewService } from "./extended.service";
export class ProjectViewService extends ExtendedProjectViewService {
constructor(baseUrl: string) {
super(baseUrl);
constructor(baseUrl?: string) {
super(baseUrl || API_BASE_URL);
}
}

View File

@@ -3,6 +3,6 @@ import { ExtendedProjectService } from "./extended.service";
export class ProjectService extends ExtendedProjectService {
constructor() {
super(API_BASE_URL || "");
super(API_BASE_URL);
}
}

View File

@@ -1,7 +1,8 @@
import { API_BASE_URL } from "@plane/constants";
import { ExtendedStateService } from "./extended.service";
export class StateService extends ExtendedStateService {
constructor(baseUrl: string) {
super(baseUrl);
constructor() {
super(API_BASE_URL);
}
}