Files
plane/web/ee/store/integrations/gitlab/root.store.ts
Saurabh Kumar 13cefcbc3b [SILO-28] Chore: Gitlab integration UI and backend changes (#2071)
* chore: gitlab integration add project and group APIs

* entity connection schema changes + gitlab integration UI and store changes

* gitlab integration UI + APIs for entity connections

* Merge branch 'preview' into chore-gitlab_integration_ui

* Merge branch 'preview' into chore-gitlab_integration_ui

* gitlab webhook

* sharedwithgroups key in gitlab merge request type

* chore: gitlab update issue based on project connection

* chore: gitlab integration

* merged with preview

* merged with preview

* yarn fix
2025-01-02 13:19:26 +05:30

39 lines
1014 B
TypeScript

// stores
import { makeObservable } from "mobx";
// plane web store
import {
IIntegrationBaseStore,
IntegrationBaseStore,
IGitlabAuthStore,
GitlabAuthStore,
IGitlabDataStore,
GitlabDataStore,
IGitlabEntityConnectionStore,
GitlabEntityStore,
} from "@/plane-web/store/integrations";
import { RootStore } from "@/plane-web/store/root.store";
export interface IGitlabStore extends IIntegrationBaseStore {
// store instances
auth: IGitlabAuthStore;
data: IGitlabDataStore;
entityConnection: IGitlabEntityConnectionStore;
}
export class GitlabStore extends IntegrationBaseStore implements IGitlabStore {
// store instances
auth: IGitlabAuthStore;
data: IGitlabDataStore;
entityConnection: IGitlabEntityConnectionStore;
constructor(protected store: RootStore) {
super(store);
makeObservable(this, {});
// store instances
this.auth = new GitlabAuthStore(this);
this.data = new GitlabDataStore(this);
this.entityConnection = new GitlabEntityStore(this);
}
}