mirror of
https://github.com/makeplane/plane.git
synced 2026-07-12 13:29:56 +02:00
* feat: iframe added for jira * feat: added iframe * fix: not modal * feat: add dashboard screen * feat: added theme support to match that of our apps * chore: import ui improvement * fix: removed unnecessary code from old importer * feat: added silo base url for config * feat: silo iframe with theme changes and service token createion * fix: iframe fixed while switching themes * feat: silo base url from config * fix: dev server port * fix: loading states for iframe * fix: make ui usable * chore: remove commented code * fix: added correct query params * fix: redundant id * fix: added iframe to ee * fix: constants moved to ee * fix: seperated more changes into ee * fix: base api path fixed for jira import * fix: desc --------- Co-authored-by: Anmol Singh Bhatia <anmolsinghbhatia@plane.so> Co-authored-by: Henit Chobisa <chobisa.henit@gmail.com>
17 lines
561 B
TypeScript
17 lines
561 B
TypeScript
import { IApiToken } from "@plane/types";
|
|
import { API_BASE_URL } from "@/helpers/common.helper";
|
|
import { APIService } from "@/services/api.service";
|
|
|
|
export class ServiceAPITokenService extends APIService {
|
|
constructor() {
|
|
super(API_BASE_URL);
|
|
}
|
|
async createServiceApiToken(workspaceSlug: string, data: Partial<IApiToken>): Promise<IApiToken> {
|
|
return this.post(`/api/workspaces/${workspaceSlug}/service-api-tokens/`, data)
|
|
.then((response) => response?.data)
|
|
.catch((error) => {
|
|
throw error?.response?.data;
|
|
});
|
|
}
|
|
}
|