updates on the design and the onboarding things
This commit is contained in:
@@ -179,6 +179,25 @@ export const onboardClient = async (data) => {
|
||||
return response.data;
|
||||
};
|
||||
|
||||
/**
|
||||
* Edit an onboarded client and its login (owner login only). `authid` is the
|
||||
* login's id from GET /admin/clients/onboarded. Only fields sent change;
|
||||
* `password` resets the login's password when non-empty.
|
||||
*/
|
||||
export const updateOnboardedClient = async (authid, data) => {
|
||||
const response = await doormileAxios.put(`/admin/clients/${encodeURIComponent(authid)}`, data);
|
||||
return response.data;
|
||||
};
|
||||
|
||||
/**
|
||||
* Remove a client's console login (owner login only). The company and its
|
||||
* order history are kept; the client is marked Inactive if no login remains.
|
||||
*/
|
||||
export const deleteOnboardedClient = async (authid) => {
|
||||
const response = await doormileAxios.delete(`/admin/clients/${encodeURIComponent(authid)}`);
|
||||
return response.data;
|
||||
};
|
||||
|
||||
/** Operating cities a new client can be placed in (applocations; owner login only). */
|
||||
export const getOnboardingCities = async () => {
|
||||
const response = await doormileAxios.get('/admin/clients/cities');
|
||||
|
||||
Reference in New Issue
Block a user