mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-07-23 20:42:19 +00:00
Update some API type interface names
This commit is contained in:
+4
-4
@@ -265,11 +265,11 @@ export interface Carrier {
|
||||
smpp_enquire_link_interval: number;
|
||||
}
|
||||
|
||||
export interface PredefinedCarriers extends Carrier {
|
||||
export interface PredefinedCarrier extends Carrier {
|
||||
requires_static_ip: boolean;
|
||||
}
|
||||
|
||||
export interface ProtocolGateway {
|
||||
export interface Gateway {
|
||||
voip_carrier_sid: string;
|
||||
ipv4: string;
|
||||
port: number;
|
||||
@@ -278,12 +278,12 @@ export interface ProtocolGateway {
|
||||
outbound: number;
|
||||
}
|
||||
|
||||
export interface SipGateway extends ProtocolGateway {
|
||||
export interface SipGateway extends Gateway {
|
||||
sip_gateway_sid?: null | string;
|
||||
is_active: boolean;
|
||||
}
|
||||
|
||||
export interface SmppGateway extends ProtocolGateway {
|
||||
export interface SmppGateway extends Gateway {
|
||||
smpp_gateway_sid?: null | string;
|
||||
is_primary: boolean;
|
||||
use_tls: boolean;
|
||||
|
||||
@@ -44,7 +44,7 @@ import type {
|
||||
Carrier,
|
||||
SipGateway,
|
||||
SmppGateway,
|
||||
PredefinedCarriers,
|
||||
PredefinedCarrier,
|
||||
Sbc,
|
||||
Smpp,
|
||||
Application,
|
||||
@@ -74,7 +74,7 @@ export const CarrierForm = ({
|
||||
const [applications] = useServiceProviderData<Application[]>("Applications");
|
||||
const [accounts] = useServiceProviderData<Account[]>("Accounts");
|
||||
const [predefinedCarriers] =
|
||||
useApiData<PredefinedCarriers[]>("PredefinedCarriers");
|
||||
useApiData<PredefinedCarrier[]>("PredefinedCarrier");
|
||||
|
||||
const [activeTab, setActiveTab] = useState("");
|
||||
const [predefinedName, setPredefinedName] = useState("");
|
||||
@@ -589,7 +589,7 @@ export const CarrierForm = ({
|
||||
].concat(
|
||||
predefinedCarriers
|
||||
? predefinedCarriers.map(
|
||||
(carrier: PredefinedCarriers) => ({
|
||||
(carrier: PredefinedCarrier) => ({
|
||||
name: carrier.name,
|
||||
value: carrier.name,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user