Skip to content

Commit 4e02dcd

Browse files
authored
feat: add SupportIssueInternalState, Department enums and Marketing role (#144)
Add internal support issue states (Created, Pending, Completed, Canceled, OnHold), Department enum (Support, Compliance, Marketing, Cooperation), and MARKETING value to UserRole for the support dashboard feature.
1 parent 6f5b24f commit 4e02dcd

6 files changed

Lines changed: 36 additions & 0 deletions

File tree

packages/core/src/definitions/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ export {
140140
SupportIssueType,
141141
SupportIssueReason,
142142
SupportIssueState,
143+
SupportIssueInternalState,
143144
SupportMessageStatus,
145+
Department,
144146
} from './support';
145147
export type {
146148
Reaction,

packages/core/src/definitions/jwt.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export enum UserRole {
1111
KYC_CLIENT_COMPANY = 'KycClientCompany',
1212
CUSTODY = 'Custody',
1313
REALUNIT = 'RealUnit',
14+
MARKETING = 'Marketing',
1415
}
1516

1617
export interface Jwt {

packages/core/src/definitions/support.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,21 @@ export enum SupportIssueState {
4747
CANCELED = 'Canceled',
4848
}
4949

50+
export enum SupportIssueInternalState {
51+
CREATED = 'Created',
52+
PENDING = 'Pending',
53+
COMPLETED = 'Completed',
54+
CANCELED = 'Canceled',
55+
ON_HOLD = 'OnHold',
56+
}
57+
58+
export enum Department {
59+
SUPPORT = 'Support',
60+
COMPLIANCE = 'Compliance',
61+
MARKETING = 'Marketing',
62+
COOPERATION = 'Cooperation',
63+
}
64+
5065
export enum SupportMessageStatus {
5166
SENT = 'Sent',
5267
RECEIVED = 'Received',

packages/react/src/definitions/jwt.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export enum UserRole {
1111
KYC_CLIENT_COMPANY = 'KycClientCompany',
1212
CUSTODY = 'Custody',
1313
REALUNIT = 'RealUnit',
14+
MARKETING = 'Marketing',
1415
}
1516

1617
export interface Jwt {

packages/react/src/definitions/support.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,21 @@ export enum SupportIssueState {
4747
CANCELED = 'Canceled',
4848
}
4949

50+
export enum SupportIssueInternalState {
51+
CREATED = 'Created',
52+
PENDING = 'Pending',
53+
COMPLETED = 'Completed',
54+
CANCELED = 'Canceled',
55+
ON_HOLD = 'OnHold',
56+
}
57+
58+
export enum Department {
59+
SUPPORT = 'Support',
60+
COMPLIANCE = 'Compliance',
61+
MARKETING = 'Marketing',
62+
COOPERATION = 'Cooperation',
63+
}
64+
5065
export enum SupportMessageStatus {
5166
SENT = 'Sent',
5267
RECEIVED = 'Received',

packages/react/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@ export {
205205
BlobContent,
206206
DataFile,
207207
SupportIssueState,
208+
SupportIssueInternalState,
208209
SupportMessageStatus,
210+
Department,
209211
Reaction,
210212
} from './definitions/support';
211213

0 commit comments

Comments
 (0)