Add user notifications
This commit is contained in:
parent
9ecc015d2d
commit
cdf5ff2ce3
|
|
@ -233,9 +233,12 @@ const String kNotificationsAll = 'all_notifications';
|
||||||
const String kNotificationsAllUser = 'all_user_notifications';
|
const String kNotificationsAllUser = 'all_user_notifications';
|
||||||
const String kNotificationsPaymentSuccess = 'payment_success';
|
const String kNotificationsPaymentSuccess = 'payment_success';
|
||||||
const String kNotificationsPaymentFailure = 'payment_failure';
|
const String kNotificationsPaymentFailure = 'payment_failure';
|
||||||
|
const String kNotificationsInvoiceCreated = 'invoice_created';
|
||||||
const String kNotificationsInvoiceSent = 'invoice_sent';
|
const String kNotificationsInvoiceSent = 'invoice_sent';
|
||||||
const String kNotificationsInvoiceLate = 'invoice_late';
|
const String kNotificationsInvoiceLate = 'invoice_late';
|
||||||
|
const String kNotificationsQuoteCreated = 'quote_created';
|
||||||
const String kNotificationsQuoteSent = 'quote_sent';
|
const String kNotificationsQuoteSent = 'quote_sent';
|
||||||
|
const String kNotificationsCreditCreated = 'credit_created';
|
||||||
const String kNotificationsCreditSent = 'credit_sent';
|
const String kNotificationsCreditSent = 'credit_sent';
|
||||||
const String kNotificationsQuoteViewed = 'quote_viewed';
|
const String kNotificationsQuoteViewed = 'quote_viewed';
|
||||||
const String kNotificationsQuoteExpired = 'quote_expired';
|
const String kNotificationsQuoteExpired = 'quote_expired';
|
||||||
|
|
@ -244,15 +247,18 @@ const String kNotificationsCreditViewed = 'credit_viewed';
|
||||||
const String kNotificationsQuoteApproved = 'quote_approved';
|
const String kNotificationsQuoteApproved = 'quote_approved';
|
||||||
|
|
||||||
const kNotificationEvents = [
|
const kNotificationEvents = [
|
||||||
|
kNotificationsInvoiceCreated,
|
||||||
kNotificationsInvoiceSent,
|
kNotificationsInvoiceSent,
|
||||||
kNotificationsInvoiceViewed,
|
kNotificationsInvoiceViewed,
|
||||||
kNotificationsInvoiceLate,
|
kNotificationsInvoiceLate,
|
||||||
kNotificationsPaymentSuccess,
|
kNotificationsPaymentSuccess,
|
||||||
kNotificationsPaymentFailure,
|
kNotificationsPaymentFailure,
|
||||||
|
kNotificationsQuoteCreated,
|
||||||
kNotificationsQuoteSent,
|
kNotificationsQuoteSent,
|
||||||
kNotificationsQuoteViewed,
|
kNotificationsQuoteViewed,
|
||||||
kNotificationsQuoteApproved,
|
kNotificationsQuoteApproved,
|
||||||
kNotificationsQuoteExpired,
|
kNotificationsQuoteExpired,
|
||||||
|
kNotificationsCreditCreated,
|
||||||
kNotificationsCreditSent,
|
kNotificationsCreditSent,
|
||||||
kNotificationsCreditViewed,
|
kNotificationsCreditViewed,
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,9 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
||||||
static final Map<String, Map<String, String>> _localizedValues = {
|
static final Map<String, Map<String, String>> _localizedValues = {
|
||||||
'en': {
|
'en': {
|
||||||
// STARTER: lang key - do not remove comment
|
// STARTER: lang key - do not remove comment
|
||||||
|
'invoice_created': 'Invoice Created',
|
||||||
|
'quote_created': 'Quote Created',
|
||||||
|
'credit_created': 'Credit Created',
|
||||||
'pro': 'Pro',
|
'pro': 'Pro',
|
||||||
'enterprise': 'Enterprise',
|
'enterprise': 'Enterprise',
|
||||||
'last_updated': 'Last Updated',
|
'last_updated': 'Last Updated',
|
||||||
|
|
@ -60291,6 +60294,18 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
||||||
_localizedValues[localeCode]['enterprise'] ??
|
_localizedValues[localeCode]['enterprise'] ??
|
||||||
_localizedValues['en']['enterprise'];
|
_localizedValues['en']['enterprise'];
|
||||||
|
|
||||||
|
String get invoiceCreated =>
|
||||||
|
_localizedValues[localeCode]['invoice_created'] ??
|
||||||
|
_localizedValues['en']['invoice_created'];
|
||||||
|
|
||||||
|
String get quoteCreated =>
|
||||||
|
_localizedValues[localeCode]['quote_created'] ??
|
||||||
|
_localizedValues['en']['quote_created'];
|
||||||
|
|
||||||
|
String get creditCreated =>
|
||||||
|
_localizedValues[localeCode]['credit_created'] ??
|
||||||
|
_localizedValues['en']['credit_created'];
|
||||||
|
|
||||||
String lookup(String key) {
|
String lookup(String key) {
|
||||||
final lookupKey = toSnakeCase(key);
|
final lookupKey = toSnakeCase(key);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue