Files
plane/web/ee/services/api_token.service.ts
M. Palanikannan 983a1b9acc feat: iframe jira importer (#778)
* 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>
2024-08-08 19:27:11 +05:30

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;
});
}
}