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 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | 543x 543x 543x 543x 543x 543x 543x 543x 543x 543x 543x 543x 543x 543x 543x 543x 543x 543x 543x 543x 543x | import { TAccessControlOperations } from "@redux/slices/accessControl/types";
const RESOURCE_BASE = {
USER: "user",
ACQUIRER: "acquirer",
ENTERPRISE: "enterprise",
MERCHANT: "submerchant",
ADDRESS: "address",
PAYMENT_METHOD: "payment-method",
RECURRING_ITEM: "recurring-item",
ACCESS_CONTROL: "masquerade",
INVITE: "invite",
OWNER: "owner",
MEMBER: "member",
FILES: "file",
ACCESS_POLICIES: "access-policy",
GROUP: "group",
BACKGROUND_TASK: "background-task",
BANK_ACCOUNT: "bank/account",
PLAID: "plaid",
LEGAL_ENTITY: "legal/entity",
PRINCIPAL: "principal",
CUSTOMER: "customer",
CATEGORY_CODE: "category-code",
PRODUCT: "product",
MEDIA_ITEM: "media-item",
TRANSACTION: "transaction",
MOVE_FUNDS: "transaction/move-funds",
BANK_TRANSFER: "bank/transfer",
AMOUNT: "amount",
UNDERWRITING_CHECKLIST: "underwriting/checklist",
SNAPSHOT: "snapshot",
OFAC: "ofac",
UNDERWRITING: "underwriting",
UNDERWRITING_COMMENTS: "underwriting/comments",
TRANSACTION_STATS: "stat",
RECEIPT: "transaction/receipt",
REFUND: "transaction/refund",
CHARGEBACK: "transaction/chargeback",
CHARGEBACK_REVERSAL: "transaction/chargeback-reversal",
IPPROFILE: "ipprofiles",
IPPROFILE_TRANSACTION: "ipprofiles/transaction",
IPPROFILE_ESCALATION: "ipprofiles/escalation",
TRANSACTION_BLOCK: "transaction",
TRANSACTION_UNBLOCK: "transaction",
MSP: "msp",
PEP: "pep",
CHANGELOG: "changelog",
RISK_PROFILE_ESCALATION: "risk/profile:escalation",
RISK_PROFILE_FACTOR: "risk/profile:factor",
RISK_PROFILE: "risk/profile",
RISK_PROFILE_RISK_LEVEL: "risk/profile:risk-level",
CUSTOM_DOMAIN: "custom-domain",
CONFIGURATION: "configuration",
TASK: "task",
CONVERSATION_THREAD: "conversation/thread",
CONVERSATION_MESSAGE: "conversation/message",
MATCH_REPORT: "underwriting/match-report",
SPONSOR_STATUS: "sponsor-status",
DEVELOPER: "developer",
ASSIGNEE: "underwriting/assignee",
DISPUTE: "dispute",
SPONSOR: "sponsor",
SECURITY_CONFIG: "security-config",
};
export default RESOURCE_BASE;
export const OPERATIONS: Record<string, TAccessControlOperations> = {
READ: "read",
LIST: "list",
CREATE: "create",
UPDATE: "update",
MANAGE: "manage",
DELETE: "delete",
EXPORT: "export",
SUBMIT: "submit",
CANCEL: "cancel",
LINK: "link",
UNLINK: "unlink",
BLOCK: "block",
CHANGE: "change",
ATTACH: "attach",
};
export const CREATE_DENY_MESSAGE =
"You do not have the rights to create this resource";
export const EDIT_DENY_MESSAGE =
"You do not have the rights to edit this resource";
export const EDIT_DENY_MESSAGE_V2 =
"You don't have permissions to edit this information";
export const DELETE_DENY_MESSAGE =
"You do not have the rights to delete this resource";
export const FEATURE_DENY_MESSAGE =
"You do not have the rights to access this feature";
export const ACTION_DENY_MESSAGE =
"You do not have the right permission to perform this action";
export const UPLOAD_DENY_MESSAGE =
"You do not have the rights to upload content";
export const MANAGE_PERMISSIONS_DENY_MESSAGE =
"You don't have the right permission to manage permission section";
export const NEW_ACTION_DENY_MESSAGE =
"You do not have permission to perform this action";
export const EDIT_DENY_BY_OFAC =
"This edit is restricted due to a confirmed OFAC match";
export const OFAC_MATCH_MESSAGE =
"This edit is blocked by a confirmed match on OFAC";
export const UPDAT_DENY_BY_OFAC = "Cannot be updated due to an OFAC match";
export const Edit_DENY_BY_OFAC_V2 =
"This edit is restricted due to a confirmed OFAC match";
export const NO_PAH_MESSAGE =
"This merchant doesn't have a Primary Account Holder";
export const NEW_ACTION_DENY_MESSAGE_TOOLTIP =
"This permission is explicitly denied and cannot be changed.";
export const TEMPORARY_DISABLED_TOOLTIP = "This action is temporarly disabled";
export const CREATE_MERCHANT_DENY_MESSAGE_UNAPPROVED_PROVIDER =
"You must be approved before onboarding merchants.";
export const TRANSACTION_SETTLEMENT_MESSAGE =
"The transaction will be settled once the bank completes processing.";
export const CALCULATION_IN_PROGRESS =
"Calculation is still in progress. Please come back later.";
|