Skip to content

Commit

Permalink
Disable rule in the end of the file
Browse files Browse the repository at this point in the history
  • Loading branch information
youssef-lr committed Sep 2, 2024
1 parent eedd172 commit b49d66f
Showing 1 changed file with 1 addition and 66 deletions.
67 changes: 1 addition & 66 deletions src/types/onyx/OriginalMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -519,144 +519,79 @@ type OriginalMessageExpensifyCard = {
};

/** The map type of original message */
/* eslint-disable jsdoc/require-jsdoc */
type OriginalMessageMap = {
/** */
[CONST.REPORT.ACTIONS.TYPE.ACTIONABLE_ADD_PAYMENT_CARD]: OriginalMessageAddPaymentCard;
/** */
[CONST.REPORT.ACTIONS.TYPE.ACTIONABLE_JOIN_REQUEST]: OriginalMessageJoinPolicyChangeLog;
/** */
[CONST.REPORT.ACTIONS.TYPE.ACTIONABLE_MENTION_WHISPER]: OriginalMessageActionableMentionWhisper;
/** */
[CONST.REPORT.ACTIONS.TYPE.ACTIONABLE_REPORT_MENTION_WHISPER]: OriginalMessageActionableReportMentionWhisper;
/** */
[CONST.REPORT.ACTIONS.TYPE.ACTIONABLE_TRACK_EXPENSE_WHISPER]: OriginalMessageActionableTrackedExpenseWhisper;
/** */
[CONST.REPORT.ACTIONS.TYPE.ADD_COMMENT]: OriginalMessageAddComment;
/** */
[CONST.REPORT.ACTIONS.TYPE.APPROVED]: OriginalMessageApproved;
/** */
[CONST.REPORT.ACTIONS.TYPE.CHANGE_FIELD]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.CHANGE_POLICY]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.CHANGE_TYPE]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.CHRONOS_OOO_LIST]: OriginalMessageChronosOOOList;
/** */
[CONST.REPORT.ACTIONS.TYPE.CLOSED]: OriginalMessageClosed;
/** */
[CONST.REPORT.ACTIONS.TYPE.CREATED]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.DELEGATE_SUBMIT]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.DISMISSED_VIOLATION]: OriginalMessageDismissedViolation;
/** */
[CONST.REPORT.ACTIONS.TYPE.EXPORTED_TO_CSV]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.EXPORTED_TO_INTEGRATION]: OriginalMessageExportIntegration;
/** */
[CONST.REPORT.ACTIONS.TYPE.FORWARDED]: OriginalMessageForwarded;
/** */
[CONST.REPORT.ACTIONS.TYPE.HOLD]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.HOLD_COMMENT]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.INTEGRATIONS_MESSAGE]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.IOU]: OriginalMessageIOU;
/** */
[CONST.REPORT.ACTIONS.TYPE.MANAGER_ATTACH_RECEIPT]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.MANAGER_DETACH_RECEIPT]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.MARK_REIMBURSED_FROM_INTEGRATION]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.MARKED_REIMBURSED]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.MERGED_WITH_CASH_TRANSACTION]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.MODIFIED_EXPENSE]: OriginalMessageModifiedExpense;
/** */
[CONST.REPORT.ACTIONS.TYPE.MOVED]: OriginalMessageMoved;
/** */
[CONST.REPORT.ACTIONS.TYPE.OUTDATED_BANK_ACCOUNT]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.REIMBURSEMENT_ACH_BOUNCE]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.REIMBURSEMENT_ACH_CANCELLED]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.REIMBURSEMENT_ACCOUNT_CHANGED]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.REIMBURSEMENT_DEQUEUED]: OriginalMessageReimbursementDequeued;
/** */
[CONST.REPORT.ACTIONS.TYPE.REIMBURSEMENT_DELAYED]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.REIMBURSEMENT_QUEUED]: OriginalMessageReimbursementQueued;
/** */
[CONST.REPORT.ACTIONS.TYPE.RENAMED]: OriginalMessageRenamed;
/** */
[CONST.REPORT.ACTIONS.TYPE.REJECTED]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.REPORT_PREVIEW]: OriginalMessageReportPreview;
/** */
[CONST.REPORT.ACTIONS.TYPE.SELECTED_FOR_RANDOM_AUDIT]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.SHARE]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.STRIPE_PAID]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.SUBMITTED]: OriginalMessageSubmitted;
/** */
[CONST.REPORT.ACTIONS.TYPE.TASK_CANCELLED]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.TASK_COMPLETED]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.TASK_EDITED]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.TASK_REOPENED]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.TAKE_CONTROL]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.UNAPPROVED]: OriginalMessageUnapproved;
/** */
[CONST.REPORT.ACTIONS.TYPE.UNHOLD]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.UNSHARE]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.UPDATE_GROUP_CHAT_MEMBER_ROLE]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.TRIPPREVIEW]: OriginalMessageTripRoomPreview;
/** */
[CONST.REPORT.ACTIONS.TYPE.REIMBURSEMENT_REQUESTED]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.REIMBURSEMENT_SETUP]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.EXPORTED_TO_QUICK_BOOKS]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.DONATION]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.DELETED_ACCOUNT]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.REIMBURSEMENT_REQUESTED]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.REIMBURSEMENT_SETUP]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.REIMBURSEMENT_SETUP_REQUESTED]: never;
/** */
[CONST.REPORT.ACTIONS.TYPE.CARD_ISSUED]: OriginalMessageExpensifyCard;
/** */
[CONST.REPORT.ACTIONS.TYPE.CARD_MISSING_ADDRESS]: OriginalMessageExpensifyCard;
/** */
[CONST.REPORT.ACTIONS.TYPE.CARD_ISSUED_VIRTUAL]: OriginalMessageExpensifyCard;
/** */
[CONST.REPORT.ACTIONS.TYPE.INTEGRATION_SYNC_FAILED]: OriginalMessageIntegrationSyncFailed;
} & OldDotOriginalMessageMap & {
[T in ValueOf<typeof CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG>]: OriginalMessageChangeLog;
} & {
[T in ValueOf<typeof CONST.REPORT.ACTIONS.TYPE.ROOM_CHANGE_LOG>]: OriginalMessageChangeLog;
};

/** */
type OriginalMessage<T extends ReportActionName> = OriginalMessageMap[T];

export default OriginalMessage;
Expand Down

0 comments on commit b49d66f

Please sign in to comment.