* chore: paginated the issues in space app * chore: storing query using filters * chore: added filters for priority * chore: issue view model save function * chore: votes and reactions added in issues endpoint * chore: added filters in the public endpoint * chore: issue detail endpoint * chore: added labels, modules and assignees * refactor existing project publish in space app * fix clear all filters in space App * chore: removed the extra serialier * remove optional chaining and fallback to an empty array --------- Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
17 lines
470 B
TypeScript
17 lines
470 B
TypeScript
import { IState } from "@plane/types";
|
|
import { API_BASE_URL } from "@/helpers/common.helper";
|
|
import { APIService } from "./api.service";
|
|
|
|
export class StateService extends APIService {
|
|
constructor() {
|
|
super(API_BASE_URL);
|
|
}
|
|
|
|
async getStates(anchor: string): Promise<IState[]> {
|
|
return this.get(`api/public/anchor/${anchor}/states/`)
|
|
.then((response) => response?.data)
|
|
.catch((error) => {
|
|
throw error?.response?.data;
|
|
});
|
|
}
|
|
}
|