mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
add server to monorepo.
This commit is contained in:
51
packages/server/src/interfaces/SmsNotifications.ts
Normal file
51
packages/server/src/interfaces/SmsNotifications.ts
Normal file
@@ -0,0 +1,51 @@
|
||||
export interface ISmsNotificationAllowedVariable {
|
||||
variable: string;
|
||||
description: string;
|
||||
}
|
||||
export interface ISmsNotificationDefined {
|
||||
notificationLabel: string;
|
||||
notificationDescription: string;
|
||||
key: string;
|
||||
module: string;
|
||||
moduleFormatted: string;
|
||||
allowedVariables: ISmsNotificationAllowedVariable[];
|
||||
|
||||
defaultSmsMessage: string;
|
||||
defaultIsNotificationEnabled: boolean;
|
||||
}
|
||||
|
||||
export interface ISmsNotificationMeta {
|
||||
notificationLabel: string;
|
||||
notificationDescription: string;
|
||||
key: string;
|
||||
module: string;
|
||||
moduleFormatted: string;
|
||||
allowedVariables: ISmsNotificationAllowedVariable[];
|
||||
smsMessage: string;
|
||||
isNotificationEnabled: boolean;
|
||||
}
|
||||
|
||||
export interface IEditSmsNotificationDTO {
|
||||
notificationKey: string;
|
||||
messageText: string;
|
||||
isNotificationEnabled: boolean;
|
||||
}
|
||||
|
||||
export interface ISaleInvoiceSmsDetailsDTO {
|
||||
notificationKey: 'details' | 'reminder';
|
||||
}
|
||||
|
||||
export interface ISaleInvoiceSmsDetails {
|
||||
customerName: string;
|
||||
customerPhoneNumber: string;
|
||||
smsMessage: string;
|
||||
}
|
||||
|
||||
export enum SMS_NOTIFICATION_KEY {
|
||||
SALE_INVOICE_DETAILS = 'sale-invoice-details',
|
||||
SALE_INVOICE_REMINDER = 'sale-invoice-reminder',
|
||||
SALE_ESTIMATE_DETAILS = 'sale-estimate-details',
|
||||
SALE_RECEIPT_DETAILS = 'sale-receipt-details',
|
||||
PAYMENT_RECEIVE_DETAILS = 'payment-receive-details',
|
||||
CUSTOMER_BALANCE = 'customer-balance',
|
||||
}
|
||||
Reference in New Issue
Block a user