All files / src/features/Notifications/NotificationsCenter types.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74                                                                                                                                                   
export type NotificationType = "underwriting" | "conversation" | "generic";
 
export type TConversationParams = {
  targetMerchantId: number;
  targetMerchantType: string;
  topicId: number;
  threadId: number;
  messageId: number;
};
 
export enum ALERT_NAMES_ENUM {
  Bulk_merchant_create = "bulk_merchant_creation",
  TRANSFER = "transfer",
  NEW_MEMBER = "new_member",
  NEW_BANK = "new_bank_account",
  OFAC_MATCH = "ofac_match",
  MID_ISSUE = "mid_issue",
  NEGATIVE_BALANCE = "negative_balance",
  MERCHANT_OWNER_UNDERWRITING_APPROVAL = "merchant_owner_underwriting_approval",
  CONVO_MENTION = "convo_mention_alert",
  NEW_DISPUTE = "new_dispute",
  DISPUTE_STATS_CHANGED = "dispute_status_changed",
  UNDERWRITING_EDD_CHALLENGE = "underwriting_edd_challenge",
  UNDERWRITING_CHALLHENGE_REJECTION = "underwriting_challenge_rejection",
  CHARGE_BACK_REVERSAL = "chargeback_reversed",
  CHARGEBACK = "chargeback",
  CHARGEBACK_DAILY = "chargeback_report",
  REFUND = "refund",
  MERCHANT_READY_FOR_APPROVAL = "merchants_ready_for_approval",
  PROVIDER_READY_FOR_APPROVAL = "enterprises_ready_for_approval",
  UNDEWRWRITER_ASSIGNMENT = "underwriter_assignement",
  NEW_MERCHANT = "new_merchant",
  NEW_PROVIDER = "new_enterprise",
  MERCHANT_UNDERWRITING_APPROVAL = "merchant_underwriting_approval",
  RISK_MONITORING = "risk_monitoring",
  PROVIDER_TRANSFER = "enterprise_transfer",
  MERCHANT_TRANSFER = "submerchant_transfer",
  LEGAL_ENTITY_LINK_REQUEST = "legal_entity_link_request",
  LEGAL_ENTITY_LINK_REQUEST_APPROVED = "legal_entity_link_request_approved",
  LEGAL_ENTITY_LINK_REQUEST_DECLINED = "legal_entity_link_request_declined",
  ERROR_BULK_SPONSOR_APPROVE = "error_bulk_sponsor_approve",
  ERROR_BULK_SPONSOR_DECLINE = "error_bulk_sponsor_decline",
  SPONSOR_APPROVAL = "sponsor_approve",
  SPONSOR_ASSIGNMENT = "sponsor_assignement",
  PAH_READY_FOR_APPROVAL = "pah_ready_for_approval",
  OWNER_CHANGED = "owner_changed",
  MOVE_FUNDS_COMPLETED = "move_funds_completed",
}
 
export type TParsedNotification = {
  id: number;
  title: string;
  description: string;
  createdAt: number;
  type: NotificationType;
  isMandatory: boolean;
  firstCheckedAt: number | null;
  challengeSlug: string;
  alertName: ALERT_NAMES_ENUM;
  label?: string;
  transactionID: string;
  targetMerchantId: number;
  conversationParams?: TConversationParams;
  threadId: number;
  disputeId: string;
  merchantName: string;
  merchantAccID: number;
};
 
type TAlign = "center" | "start" | "end";
export type TScrollToTop = (index: number, align?: TAlign) => void;
 
export type TNotificationsFilter = "unread" | "all";