* system Information

* system Information
This commit is contained in:
Hoan Luu Huu authored and GitHub committed 2023-05-04 19:41:25 -04:00
1 parent 6712d8944b
commit dbb39db54e
4 files changed
+75 -5

No files matched your search

+1
View File
@@ -206,3 +206,4 @@ export const API_CARRIERS = `${API_BASE_URL}/VoipCarriers`;
export const API_SMPP_GATEWAY = `${API_BASE_URL}/SmppGateways`;
export const API_SIP_GATEWAY = `${API_BASE_URL}/SipGateways`;
export const API_PASSWORD_SETTINGS = `${API_BASE_URL}/PasswordSettings`;
export const API_SYSTEM_INFORMATION = `${API_BASE_URL}/SystemInformation`;
+9
View File
@@ -19,6 +19,7 @@ import {
API_PASSWORD_SETTINGS,
USER_ACCOUNT,
API_LOGOUT,
API_SYSTEM_INFORMATION,
} from "./constants";
import { ROUTE_LOGIN } from "src/router/routes";
import {
@@ -59,6 +60,7 @@ import type {
Limit,
LimitCategories,
PasswordSettings,
SystemInformation,
} from "./types";
import { StatusCodes } from "./types";
@@ -351,6 +353,13 @@ export const postPasswordSettings = (payload: Partial<PasswordSettings>) => {
payload
);
};
export const postSystemInformation = (payload: Partial<SystemInformation>) => {
return postFetch<SystemInformation, Partial<SystemInformation>>(
API_SYSTEM_INFORMATION,
payload
);
};
/** Named wrappers for `putFetch` */
export const putUser = (sid: string, payload: Partial<UserUpdatePayload>) => {
+6
View File
@@ -113,6 +113,12 @@ export interface PasswordSettings {
require_special_character: number;
}
export interface SystemInformation {
domain_name: string;
sip_domain_name: string;
monitoring_domain_name: string;
}
/** API responses/payloads */
export interface User {