1 export const queryDomains = (params?: { Page: number; PageSize: number }) => ({
7 export const getDomain = (domainID: string) => ({
8 url: `domains/${domainID}`,
12 export const queryDomainAddresses = (domainID: string, params?: { Page: number; PageSize: number }) => ({
13 url: `domains/${domainID}/addresses`,
18 export const queryAvailableDomains = (Type?: string) => ({
19 url: 'domains/available',
24 export const queryPremiumDomains = () => ({
25 url: 'domains/premium',
29 export const addDomain = (data: { Name: string; AllowedForSSO?: boolean; AllowedForMail?: boolean }) => ({
35 export const updateCatchAll = (domainID: string, AddressID: string | null) => ({
36 url: `domains/${domainID}/catchall`,
41 export const deleteDomain = (domainID: string) => ({
42 url: `domains/${domainID}`,