2025-11-18 14:06:27 +09:00
|
|
|
/**
|
|
|
|
|
* Support Domain - Contract
|
|
|
|
|
*
|
|
|
|
|
* Constants for support case statuses, priorities, and categories.
|
2025-11-26 16:36:06 +09:00
|
|
|
* These are the DISPLAY values shown in the portal UI.
|
|
|
|
|
*
|
|
|
|
|
* Note: Salesforce uses Japanese API names internally (e.g., 新規, 対応中, 高, 中, 低)
|
|
|
|
|
* which are mapped to these English display values by the Salesforce mapper.
|
2025-11-18 14:06:27 +09:00
|
|
|
*/
|
|
|
|
|
|
2025-11-26 16:36:06 +09:00
|
|
|
/**
|
|
|
|
|
* Portal display status values
|
|
|
|
|
* Mapped from Salesforce Japanese API names:
|
|
|
|
|
* - 新規 → New
|
|
|
|
|
* - 対応中 → In Progress
|
|
|
|
|
* - Awaiting Approval → Awaiting Approval
|
|
|
|
|
* - VPN Pending → VPN Pending
|
|
|
|
|
* - Pending → Pending
|
|
|
|
|
* - 完了済み → Resolved
|
|
|
|
|
* - Closed → Closed
|
|
|
|
|
*/
|
2025-11-18 14:06:27 +09:00
|
|
|
export const SUPPORT_CASE_STATUS = {
|
2025-11-26 16:36:06 +09:00
|
|
|
NEW: "New",
|
2025-11-18 14:06:27 +09:00
|
|
|
IN_PROGRESS: "In Progress",
|
2025-11-26 16:36:06 +09:00
|
|
|
AWAITING_APPROVAL: "Awaiting Approval",
|
|
|
|
|
VPN_PENDING: "VPN Pending",
|
|
|
|
|
PENDING: "Pending",
|
2025-11-18 14:06:27 +09:00
|
|
|
RESOLVED: "Resolved",
|
|
|
|
|
CLOSED: "Closed",
|
|
|
|
|
} as const;
|
|
|
|
|
|
2025-11-26 16:36:06 +09:00
|
|
|
/** Statuses that indicate a case is closed */
|
|
|
|
|
export const CLOSED_STATUSES = [
|
|
|
|
|
SUPPORT_CASE_STATUS.VPN_PENDING,
|
|
|
|
|
SUPPORT_CASE_STATUS.PENDING,
|
|
|
|
|
SUPPORT_CASE_STATUS.RESOLVED,
|
|
|
|
|
SUPPORT_CASE_STATUS.CLOSED,
|
|
|
|
|
] as const;
|
|
|
|
|
|
|
|
|
|
/** Statuses that indicate a case is open */
|
|
|
|
|
export const OPEN_STATUSES = [
|
|
|
|
|
SUPPORT_CASE_STATUS.NEW,
|
|
|
|
|
SUPPORT_CASE_STATUS.IN_PROGRESS,
|
|
|
|
|
SUPPORT_CASE_STATUS.AWAITING_APPROVAL,
|
|
|
|
|
] as const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Portal display priority values
|
|
|
|
|
* Mapped from Salesforce Japanese API names:
|
|
|
|
|
* - 高 → High
|
|
|
|
|
* - 中 → Medium
|
|
|
|
|
* - 低 → Low
|
|
|
|
|
*/
|
2025-11-18 14:06:27 +09:00
|
|
|
export const SUPPORT_CASE_PRIORITY = {
|
|
|
|
|
LOW: "Low",
|
|
|
|
|
MEDIUM: "Medium",
|
|
|
|
|
HIGH: "High",
|
|
|
|
|
} as const;
|
|
|
|
|
|
2025-11-26 16:36:06 +09:00
|
|
|
/**
|
|
|
|
|
* Case categories map to Salesforce Case.Type field
|
|
|
|
|
* Note: Type picklist may not be configured in your org
|
|
|
|
|
*/
|
2025-11-18 14:06:27 +09:00
|
|
|
export const SUPPORT_CASE_CATEGORY = {
|
|
|
|
|
TECHNICAL: "Technical",
|
|
|
|
|
BILLING: "Billing",
|
|
|
|
|
GENERAL: "General",
|
|
|
|
|
FEATURE_REQUEST: "Feature Request",
|
|
|
|
|
} as const;
|
2025-11-26 16:36:06 +09:00
|
|
|
|
|
|
|
|
/**
|
2025-12-29 16:53:32 +09:00
|
|
|
* Portal support origin - used to filter and create customer-visible portal support cases
|
2025-11-26 16:36:06 +09:00
|
|
|
*/
|
2025-12-29 16:53:32 +09:00
|
|
|
export const PORTAL_CASE_ORIGIN = "Portal Support" as const;
|