21 lines
812 B
JavaScript
21 lines
812 B
JavaScript
import { api } from "../utils/axiosClient";
|
|
|
|
export const TenantRepository = {
|
|
getTenantList: ( pageSize, pageNumber, filter,searchString) => {
|
|
const payloadJsonString = JSON.stringify(filter);
|
|
|
|
return api.get(`/api/Tenant/list?pageSize=${pageSize}&pageNumber=${pageNumber}&filter=${payloadJsonString}&searchString=${searchString}`);
|
|
},
|
|
|
|
getTenantDetails:(id)=>api.get(`/api/Tenant/details/${id}`),
|
|
|
|
getSubscriptionPlan: (freq) =>
|
|
api.get(`/api/Tenant/list/subscription-plan?frequency=${freq}`),
|
|
|
|
createTenant: (data) => api.post("/api/Tenant/create", data),
|
|
updateTenantDetails :(id,data)=> api.put(`/api/Tenant/edit/${id}`,data),
|
|
|
|
addSubscription: (data) => api.post("/api/Tenant/add-subscription", data),
|
|
upgradeSubscription :(data)=> api.put("/api/Tenant/update-subscription",data)
|
|
};
|