-
Notifications
You must be signed in to change notification settings - Fork 70
/
error-keys.enum.ts
18 lines (18 loc) · 1.23 KB
/
error-keys.enum.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) 2023 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
export const enum ErrorKeys {
ReceiverNotFound = 'ReceiverNotFound',
BodyNotFound = 'Body Not Found',
GroupKeyMandatory = 'For draft notification group key is mandatory.',
GroupedDraftError = 'For drafting notification with group key subject, receiver and fromEmail in options does not need to be in request.',
GroupedDraftSubjectError = 'For drafting notification with group key subject should not be in the request.',
GroupedDraftReceiverError = 'For drafting notification with group key receiver should not be in the request.',
GroupedDraftFromEmailError = 'For drafting notification with group key fromEmail should not be in the options key of request.',
DraftError = 'For drafting notification with out group key, subject, receiver and fromEmail in options are mandatory.',
MandatoryGroupKey = 'Group key is mandatory.',
NoDraftFound = 'There is no draft notification found to send.',
StartEndTimeBothMandatoryTogether = 'In case start time is given end time is mandatory and vice-versa.',
NoUserFoundToSendNotification = 'No user is found with given criteria to send notifications.',
}