mirror of
https://github.com/chatwoot/chatwoot.git
synced 2026-06-22 21:04:08 +08:00
Some checks failed
Frontend Lint & Test / test (push) Has been cancelled
Publish Chatwoot EE docker images / build (linux/amd64, ubuntu-latest) (push) Has been cancelled
Publish Chatwoot EE docker images / build (linux/arm64, ubuntu-22.04-arm) (push) Has been cancelled
Publish Chatwoot CE docker images / build (linux/amd64, ubuntu-latest) (push) Has been cancelled
Publish Chatwoot CE docker images / build (linux/arm64, ubuntu-22.04-arm) (push) Has been cancelled
Run Chatwoot CE spec / test (push) Has been cancelled
Publish Chatwoot EE docker images / merge (push) Has been cancelled
Publish Chatwoot CE docker images / merge (push) Has been cancelled
## Description Add account delete option in the user account settings. Fixes #1555 ## Type of change - [ ] New feature (non-breaking change which adds functionality)   ## Checklist: - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my own code - [ ] I have commented on my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules --------- Co-authored-by: Sojan Jose <[email protected]> Co-authored-by: Sojan Jose <[email protected]> Co-authored-by: Muhsin Keloth <[email protected]>
29 lines
556 B
JavaScript
29 lines
556 B
JavaScript
/* global axios */
|
|
import ApiClient from '../ApiClient';
|
|
|
|
class EnterpriseAccountAPI extends ApiClient {
|
|
constructor() {
|
|
super('', { accountScoped: true, enterprise: true });
|
|
}
|
|
|
|
checkout() {
|
|
return axios.post(`${this.url}checkout`);
|
|
}
|
|
|
|
subscription() {
|
|
return axios.post(`${this.url}subscription`);
|
|
}
|
|
|
|
getLimits() {
|
|
return axios.get(`${this.url}limits`);
|
|
}
|
|
|
|
toggleDeletion(action) {
|
|
return axios.post(`${this.url}toggle_deletion`, {
|
|
action_type: action,
|
|
});
|
|
}
|
|
}
|
|
|
|
export default new EnterpriseAccountAPI();
|