@tammsyr/admin-api-client 1.2.6 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/dist/AccountTypes.d.ts +27 -0
- package/dist/AccountTypes.d.ts.map +1 -0
- package/dist/AccountTypes.js +57 -0
- package/dist/AccountTypes.js.map +1 -0
- package/dist/Accounts.d.ts +1 -1
- package/dist/Accounts.js +1 -1
- package/dist/Admins.d.ts +4 -4
- package/dist/Admins.js +4 -4
- package/dist/Agents.d.ts +1 -21
- package/dist/Agents.d.ts.map +1 -1
- package/dist/Agents.js +0 -34
- package/dist/Agents.js.map +1 -1
- package/dist/AppVersion.d.ts +2 -2
- package/dist/AppVersion.d.ts.map +1 -1
- package/dist/AppVersion.js.map +1 -1
- package/dist/ApprovalPolicies.d.ts +27 -0
- package/dist/ApprovalPolicies.d.ts.map +1 -0
- package/dist/ApprovalPolicies.js +56 -0
- package/dist/ApprovalPolicies.js.map +1 -0
- package/dist/Approvals.d.ts +47 -0
- package/dist/Approvals.d.ts.map +1 -0
- package/dist/Approvals.js +89 -0
- package/dist/Approvals.js.map +1 -0
- package/dist/BankBranches.d.ts +47 -0
- package/dist/BankBranches.d.ts.map +1 -0
- package/dist/BankBranches.js +91 -0
- package/dist/BankBranches.js.map +1 -0
- package/dist/Currencies.d.ts +57 -0
- package/dist/Currencies.d.ts.map +1 -0
- package/dist/Currencies.js +106 -0
- package/dist/Currencies.js.map +1 -0
- package/dist/Dlq.d.ts +3 -3
- package/dist/Dlq.d.ts.map +1 -1
- package/dist/Dlq.js.map +1 -1
- package/dist/GlobalNotifications.d.ts +3 -3
- package/dist/GlobalNotifications.d.ts.map +1 -1
- package/dist/GlobalNotifications.js.map +1 -1
- package/dist/Kyc.d.ts +223 -25
- package/dist/Kyc.d.ts.map +1 -1
- package/dist/Kyc.js +341 -28
- package/dist/Kyc.js.map +1 -1
- package/dist/Metrics.d.ts +14 -0
- package/dist/Metrics.d.ts.map +1 -0
- package/dist/Metrics.js +33 -0
- package/dist/Metrics.js.map +1 -0
- package/dist/Roles.d.ts +1 -1
- package/dist/Roles.js +1 -1
- package/dist/SystemConfigs.d.ts +2 -2
- package/dist/SystemConfigs.js +2 -2
- package/dist/Transactions.d.ts +2 -2
- package/dist/Transactions.d.ts.map +1 -1
- package/dist/Transactions.js.map +1 -1
- package/dist/Users.d.ts +3 -3
- package/dist/Users.d.ts.map +1 -1
- package/dist/Users.js.map +1 -1
- package/dist/data-contracts.d.ts +603 -291
- package/dist/data-contracts.d.ts.map +1 -1
- package/dist/index.d.ts +18 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/data-contracts.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export interface AdminLoginRequestDto {
|
|
2
2
|
/**
|
|
3
3
|
* Admin email address
|
|
4
|
-
* @example "
|
|
4
|
+
* @example "superadmin@tamm.com"
|
|
5
5
|
*/
|
|
6
6
|
email: string;
|
|
7
7
|
/**
|
|
8
8
|
* Admin password
|
|
9
9
|
* @minLength 6
|
|
10
|
-
* @example "
|
|
10
|
+
* @example "Test@1234"
|
|
11
11
|
*/
|
|
12
12
|
password: string;
|
|
13
13
|
/**
|
|
@@ -582,16 +582,31 @@ export interface AgentStatisticsDto {
|
|
|
582
582
|
activeAgents: number;
|
|
583
583
|
/** Number of suspended agents */
|
|
584
584
|
suspendedAgents: number;
|
|
585
|
-
|
|
586
|
-
|
|
585
|
+
}
|
|
586
|
+
export interface LocalizedNameDto {
|
|
587
|
+
/**
|
|
588
|
+
* English name
|
|
589
|
+
* @example "Head Office"
|
|
590
|
+
*/
|
|
591
|
+
en: string;
|
|
592
|
+
/**
|
|
593
|
+
* Arabic name
|
|
594
|
+
* @example "المركز الرئيسي"
|
|
595
|
+
*/
|
|
596
|
+
ar: string;
|
|
587
597
|
}
|
|
588
598
|
export interface AgentListItemDto {
|
|
589
599
|
/** @format uuid */
|
|
590
600
|
id: string;
|
|
591
601
|
type: "MONEY_TRANSFER" | "EXCHANGE_BUREAU" | "BANK";
|
|
592
602
|
status: "PENDING" | "ACTIVE" | "SUSPENDED" | "TERMINATED";
|
|
593
|
-
name:
|
|
603
|
+
name: LocalizedNameDto;
|
|
594
604
|
licenseNumber: string;
|
|
605
|
+
/**
|
|
606
|
+
* 8-digit Customer Information File identifier
|
|
607
|
+
* @example "00074521"
|
|
608
|
+
*/
|
|
609
|
+
cif: string;
|
|
595
610
|
contactPerson: string;
|
|
596
611
|
contactEmail: string;
|
|
597
612
|
contactPhone: string;
|
|
@@ -604,8 +619,6 @@ export interface AgentListItemDto {
|
|
|
604
619
|
createdAt: string;
|
|
605
620
|
/** @format date-time */
|
|
606
621
|
updatedAt: string;
|
|
607
|
-
/** @example 3 */
|
|
608
|
-
branchCount: number;
|
|
609
622
|
}
|
|
610
623
|
export interface AgentListResponseDto {
|
|
611
624
|
/** List of agents */
|
|
@@ -685,48 +698,6 @@ export interface AgentCommissionResponseDto {
|
|
|
685
698
|
*/
|
|
686
699
|
updatedAt: string;
|
|
687
700
|
}
|
|
688
|
-
export interface BranchResponseDto {
|
|
689
|
-
/**
|
|
690
|
-
* Branch ID
|
|
691
|
-
* @format uuid
|
|
692
|
-
*/
|
|
693
|
-
id: string;
|
|
694
|
-
/**
|
|
695
|
-
* Agent ID
|
|
696
|
-
* @format uuid
|
|
697
|
-
*/
|
|
698
|
-
agentId: string;
|
|
699
|
-
/** Branch name */
|
|
700
|
-
name: string;
|
|
701
|
-
/** Branch code */
|
|
702
|
-
code: string;
|
|
703
|
-
/** Branch status */
|
|
704
|
-
status: "ACTIVE" | "INACTIVE" | "SUSPENDED";
|
|
705
|
-
/** Address */
|
|
706
|
-
address: string;
|
|
707
|
-
/** City */
|
|
708
|
-
city: string;
|
|
709
|
-
/** Latitude */
|
|
710
|
-
latitude: number;
|
|
711
|
-
/** Longitude */
|
|
712
|
-
longitude: number;
|
|
713
|
-
/** Contact phone */
|
|
714
|
-
contactPhone: string;
|
|
715
|
-
/** Contact email */
|
|
716
|
-
contactEmail?: string;
|
|
717
|
-
/** Whether the branch is active */
|
|
718
|
-
isActive: boolean;
|
|
719
|
-
/**
|
|
720
|
-
* Created at
|
|
721
|
-
* @format date-time
|
|
722
|
-
*/
|
|
723
|
-
createdAt: string;
|
|
724
|
-
/**
|
|
725
|
-
* Updated at
|
|
726
|
-
* @format date-time
|
|
727
|
-
*/
|
|
728
|
-
updatedAt: string;
|
|
729
|
-
}
|
|
730
701
|
export interface AdminAccountResponseDto {
|
|
731
702
|
/**
|
|
732
703
|
* Account ID (UUID)
|
|
@@ -734,8 +705,8 @@ export interface AdminAccountResponseDto {
|
|
|
734
705
|
*/
|
|
735
706
|
id: string;
|
|
736
707
|
/**
|
|
737
|
-
* Human-readable
|
|
738
|
-
* @example "
|
|
708
|
+
* Human-readable 22-digit account number. Only set for main accounts.
|
|
709
|
+
* @example "0017601010000001000011"
|
|
739
710
|
*/
|
|
740
711
|
accountNumber?: string;
|
|
741
712
|
/**
|
|
@@ -796,8 +767,13 @@ export interface AgentResponseDto {
|
|
|
796
767
|
id: string;
|
|
797
768
|
type: "MONEY_TRANSFER" | "EXCHANGE_BUREAU" | "BANK";
|
|
798
769
|
status: "PENDING" | "ACTIVE" | "SUSPENDED" | "TERMINATED";
|
|
799
|
-
name:
|
|
770
|
+
name: LocalizedNameDto;
|
|
800
771
|
licenseNumber: string;
|
|
772
|
+
/**
|
|
773
|
+
* 8-digit Customer Information File identifier
|
|
774
|
+
* @example "00074521"
|
|
775
|
+
*/
|
|
776
|
+
cif: string;
|
|
801
777
|
contactPerson: string;
|
|
802
778
|
contactEmail: string;
|
|
803
779
|
contactPhone: string;
|
|
@@ -810,11 +786,8 @@ export interface AgentResponseDto {
|
|
|
810
786
|
createdAt: string;
|
|
811
787
|
/** @format date-time */
|
|
812
788
|
updatedAt: string;
|
|
813
|
-
/** @example 3 */
|
|
814
|
-
branchCount: number;
|
|
815
789
|
limits?: AgentLimitResponseDto[];
|
|
816
790
|
commissions?: AgentCommissionResponseDto[];
|
|
817
|
-
branches?: BranchResponseDto[];
|
|
818
791
|
/** Agent main wallets (admin GET only; unified ownerId + type per account) */
|
|
819
792
|
accounts?: AdminAccountResponseDto[];
|
|
820
793
|
}
|
|
@@ -832,11 +805,8 @@ export interface CreateAgentWalletDto {
|
|
|
832
805
|
name?: string;
|
|
833
806
|
}
|
|
834
807
|
export interface CreateAgentDto {
|
|
835
|
-
/**
|
|
836
|
-
|
|
837
|
-
* @example "Acme Agent"
|
|
838
|
-
*/
|
|
839
|
-
name: string;
|
|
808
|
+
/** Translatable display name */
|
|
809
|
+
name: LocalizedNameDto;
|
|
840
810
|
/** @example "MONEY_TRANSFER" */
|
|
841
811
|
type: "MONEY_TRANSFER" | "EXCHANGE_BUREAU" | "BANK";
|
|
842
812
|
/**
|
|
@@ -887,15 +857,12 @@ export interface CreateAgentResponseDto {
|
|
|
887
857
|
* @format uuid
|
|
888
858
|
*/
|
|
889
859
|
id: string;
|
|
890
|
-
/**
|
|
891
|
-
name:
|
|
860
|
+
/** Translatable agent name */
|
|
861
|
+
name: LocalizedNameDto;
|
|
892
862
|
}
|
|
893
863
|
export interface UpdateAgentDto {
|
|
894
|
-
/**
|
|
895
|
-
|
|
896
|
-
* @example "Acme Agent"
|
|
897
|
-
*/
|
|
898
|
-
name?: string;
|
|
864
|
+
/** Translatable display name */
|
|
865
|
+
name?: LocalizedNameDto;
|
|
899
866
|
/** @example "MONEY_TRANSFER" */
|
|
900
867
|
type?: "MONEY_TRANSFER" | "EXCHANGE_BUREAU" | "BANK";
|
|
901
868
|
/**
|
|
@@ -946,68 +913,8 @@ export interface UpdateAgentResponseDto {
|
|
|
946
913
|
* @format uuid
|
|
947
914
|
*/
|
|
948
915
|
id: string;
|
|
949
|
-
/**
|
|
950
|
-
name:
|
|
951
|
-
}
|
|
952
|
-
export interface UpsertBranchItemDto {
|
|
953
|
-
/**
|
|
954
|
-
* Branch name
|
|
955
|
-
* @example "Downtown Branch"
|
|
956
|
-
*/
|
|
957
|
-
name: string;
|
|
958
|
-
/**
|
|
959
|
-
* Unique branch code
|
|
960
|
-
* @example "BR-001"
|
|
961
|
-
*/
|
|
962
|
-
code: string;
|
|
963
|
-
/**
|
|
964
|
-
* Address
|
|
965
|
-
* @example "123 Main St"
|
|
966
|
-
*/
|
|
967
|
-
address: string;
|
|
968
|
-
/**
|
|
969
|
-
* City
|
|
970
|
-
* @example "Dubai"
|
|
971
|
-
*/
|
|
972
|
-
city: string;
|
|
973
|
-
/**
|
|
974
|
-
* Latitude
|
|
975
|
-
* @example 25.276987
|
|
976
|
-
*/
|
|
977
|
-
latitude?: number;
|
|
978
|
-
/**
|
|
979
|
-
* Longitude
|
|
980
|
-
* @example 55.296249
|
|
981
|
-
*/
|
|
982
|
-
longitude?: number;
|
|
983
|
-
/**
|
|
984
|
-
* Contact phone
|
|
985
|
-
* @example "+971501234567"
|
|
986
|
-
*/
|
|
987
|
-
contactPhone: string;
|
|
988
|
-
/**
|
|
989
|
-
* Contact email
|
|
990
|
-
* @example "branch@acme.com"
|
|
991
|
-
*/
|
|
992
|
-
contactEmail?: string;
|
|
993
|
-
/**
|
|
994
|
-
* Whether the branch is active
|
|
995
|
-
* @default true
|
|
996
|
-
*/
|
|
997
|
-
isActive?: boolean;
|
|
998
|
-
/** Branch status */
|
|
999
|
-
status?: "ACTIVE" | "SUSPENDED" | "INACTIVE";
|
|
1000
|
-
/**
|
|
1001
|
-
* Branch ID — if provided, updates; if omitted, creates
|
|
1002
|
-
* @format uuid
|
|
1003
|
-
*/
|
|
1004
|
-
branchId?: string;
|
|
1005
|
-
}
|
|
1006
|
-
export interface UpsertBranchesDto {
|
|
1007
|
-
branches: UpsertBranchItemDto[];
|
|
1008
|
-
}
|
|
1009
|
-
export interface BranchesUpsertResponseDto {
|
|
1010
|
-
branches: BranchResponseDto[];
|
|
916
|
+
/** Translatable agent name */
|
|
917
|
+
name: LocalizedNameDto;
|
|
1011
918
|
}
|
|
1012
919
|
export interface SetLimitDto {
|
|
1013
920
|
/**
|
|
@@ -1088,136 +995,243 @@ export interface AgentCommissionsResponseDto {
|
|
|
1088
995
|
/** List of agent commissions */
|
|
1089
996
|
commissions: AgentCommissionResponseDto[];
|
|
1090
997
|
}
|
|
1091
|
-
export interface
|
|
998
|
+
export interface SubmissionStatisticsResponseDto {
|
|
1092
999
|
/**
|
|
1093
|
-
*
|
|
1094
|
-
* @example
|
|
1000
|
+
* Submissions still waiting on storage to confirm uploads
|
|
1001
|
+
* @example 3
|
|
1095
1002
|
*/
|
|
1096
|
-
|
|
1003
|
+
pending_upload: number;
|
|
1097
1004
|
/**
|
|
1098
|
-
*
|
|
1099
|
-
* @example
|
|
1005
|
+
* Submissions whose files are confirmed; awaiting reviewer
|
|
1006
|
+
* @example 17
|
|
1100
1007
|
*/
|
|
1101
|
-
|
|
1008
|
+
uploaded: number;
|
|
1102
1009
|
/**
|
|
1103
|
-
*
|
|
1104
|
-
* @example
|
|
1010
|
+
* Submissions currently being reviewed
|
|
1011
|
+
* @example 5
|
|
1105
1012
|
*/
|
|
1106
|
-
|
|
1013
|
+
under_review: number;
|
|
1107
1014
|
/**
|
|
1108
|
-
*
|
|
1109
|
-
* @example
|
|
1015
|
+
* Approved submissions (post-saga for INDIVIDUAL)
|
|
1016
|
+
* @example 102
|
|
1110
1017
|
*/
|
|
1111
|
-
|
|
1018
|
+
approved: number;
|
|
1112
1019
|
/**
|
|
1113
|
-
*
|
|
1114
|
-
* @example
|
|
1020
|
+
* Rejected submissions (customer may re-submit)
|
|
1021
|
+
* @example 11
|
|
1115
1022
|
*/
|
|
1116
1023
|
rejected: number;
|
|
1117
|
-
}
|
|
1118
|
-
export interface ListKycResponseRow {
|
|
1119
|
-
id: string;
|
|
1120
|
-
fullName: string;
|
|
1121
1024
|
/**
|
|
1122
|
-
*
|
|
1123
|
-
* @example
|
|
1124
|
-
*/
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1025
|
+
* Submissions whose expiry_date has passed (background cron)
|
|
1026
|
+
* @example 4
|
|
1027
|
+
*/
|
|
1028
|
+
expired: number;
|
|
1029
|
+
}
|
|
1030
|
+
export interface SubjectInputDto {
|
|
1031
|
+
role: "INDIVIDUAL" | "BUSINESS" | "UBO" | "DIRECTOR";
|
|
1032
|
+
subject_id: string;
|
|
1033
|
+
display_name: string;
|
|
1034
|
+
}
|
|
1035
|
+
export interface SubmissionFileResponseDto {
|
|
1036
|
+
file_id: string;
|
|
1037
|
+
slot_key: string;
|
|
1038
|
+
storage_reference?: string;
|
|
1039
|
+
original_name: string;
|
|
1040
|
+
mime_type: string;
|
|
1041
|
+
size_bytes: number;
|
|
1042
|
+
sha256?: object;
|
|
1043
|
+
uploaded_at: string;
|
|
1044
|
+
uploaded_by?: string;
|
|
1045
|
+
}
|
|
1046
|
+
export interface SubmissionReviewResponseDto {
|
|
1047
|
+
reviewer_id?: object;
|
|
1048
|
+
reviewed_at?: object;
|
|
1049
|
+
decision?: object;
|
|
1050
|
+
rejection_reason_code?: object;
|
|
1051
|
+
rejection_notes?: object;
|
|
1052
|
+
previous_attempts: number;
|
|
1053
|
+
}
|
|
1054
|
+
export interface SubmissionResponseDto {
|
|
1055
|
+
submission_id: string;
|
|
1056
|
+
customer_id: string;
|
|
1057
|
+
subject: SubjectInputDto;
|
|
1058
|
+
document_type_code: string;
|
|
1059
|
+
document_type_version: number;
|
|
1060
|
+
document_type_category: string;
|
|
1061
|
+
files: SubmissionFileResponseDto[];
|
|
1062
|
+
extracted_fields: object;
|
|
1063
|
+
status: "PENDING_UPLOAD" | "UPLOADED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "EXPIRED";
|
|
1064
|
+
review: SubmissionReviewResponseDto;
|
|
1065
|
+
previous_submission_id?: object;
|
|
1066
|
+
created_at: string;
|
|
1067
|
+
updated_at: string;
|
|
1068
|
+
expires_at?: object;
|
|
1069
|
+
}
|
|
1070
|
+
export interface SubmissionListResponseDto {
|
|
1071
|
+
data: SubmissionResponseDto[];
|
|
1132
1072
|
meta: PaginationMetaDto;
|
|
1133
1073
|
}
|
|
1134
|
-
export interface
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
/**
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1074
|
+
export interface ApproveSubmissionRequestDto {
|
|
1075
|
+
notes?: string;
|
|
1076
|
+
}
|
|
1077
|
+
export interface RejectSubmissionRequestDto {
|
|
1078
|
+
reason_code: "EXPIRED" | "ILLEGIBLE" | "WRONG_DOCUMENT" | "OTHER";
|
|
1079
|
+
notes: string;
|
|
1080
|
+
}
|
|
1081
|
+
export interface SubmitFieldsRequestDto {
|
|
1082
|
+
/** Map of field key → value, validated against pinned schema */
|
|
1083
|
+
extracted_fields: object;
|
|
1084
|
+
}
|
|
1085
|
+
export interface FileSlotDto {
|
|
1086
|
+
key: string;
|
|
1087
|
+
/** i18n map (e.g. { en: "Front", ar: "الأمامي" }) */
|
|
1088
|
+
label_i18n: object;
|
|
1089
|
+
/** Optional i18n helper text shown under the label (e.g. capture hints) */
|
|
1090
|
+
description_i18n?: object;
|
|
1091
|
+
required: boolean;
|
|
1092
|
+
accepted_mime: string[];
|
|
1093
|
+
max_size_mb: number;
|
|
1094
|
+
capture_hint: "document" | "selfie" | "any";
|
|
1095
|
+
}
|
|
1096
|
+
export interface FieldValidationDto {
|
|
1097
|
+
pattern?: string;
|
|
1098
|
+
min_length?: number;
|
|
1099
|
+
max_length?: number;
|
|
1100
|
+
min?: number;
|
|
1101
|
+
max?: number;
|
|
1102
|
+
min_offset_days?: number;
|
|
1103
|
+
max_offset_days?: number;
|
|
1104
|
+
options?: string[];
|
|
1105
|
+
options_source?: string;
|
|
1106
|
+
}
|
|
1107
|
+
export interface FieldDto {
|
|
1108
|
+
key: string;
|
|
1109
|
+
label_i18n: object;
|
|
1110
|
+
/** Optional i18n helper text shown under the label (e.g. "As printed on the document") */
|
|
1111
|
+
description_i18n?: object;
|
|
1112
|
+
type: "string" | "number" | "date" | "boolean" | "enum";
|
|
1113
|
+
required: boolean;
|
|
1114
|
+
pii?: boolean;
|
|
1115
|
+
validation: FieldValidationDto;
|
|
1116
|
+
}
|
|
1117
|
+
export interface DocumentTypeResponseDto {
|
|
1151
1118
|
id: string;
|
|
1119
|
+
code: string;
|
|
1120
|
+
version: number;
|
|
1121
|
+
name_i18n: object;
|
|
1122
|
+
description_i18n?: object;
|
|
1123
|
+
category: "IDENTITY" | "ADDRESS" | "INCORPORATION" | "OWNERSHIP" | "FINANCIAL" | "OTHER";
|
|
1124
|
+
applies_to: "INDIVIDUAL" | "BUSINESS" | "UBO" | "DIRECTOR";
|
|
1125
|
+
file_slots: FileSlotDto[];
|
|
1126
|
+
fields: FieldDto[];
|
|
1127
|
+
is_active: boolean;
|
|
1128
|
+
created_by: string;
|
|
1129
|
+
created_at: string;
|
|
1130
|
+
}
|
|
1131
|
+
export interface CreateDocumentTypeRequestDto {
|
|
1132
|
+
code: string;
|
|
1133
|
+
name_i18n: object;
|
|
1134
|
+
description_i18n?: object;
|
|
1135
|
+
category: "IDENTITY" | "ADDRESS" | "INCORPORATION" | "OWNERSHIP" | "FINANCIAL" | "OTHER";
|
|
1136
|
+
applies_to: "INDIVIDUAL" | "BUSINESS" | "UBO" | "DIRECTOR";
|
|
1137
|
+
file_slots: FileSlotDto[];
|
|
1138
|
+
fields: FieldDto[];
|
|
1139
|
+
}
|
|
1140
|
+
export interface PatchDocumentTypeRequestDto {
|
|
1141
|
+
is_active?: boolean;
|
|
1142
|
+
name_i18n?: object;
|
|
1143
|
+
}
|
|
1144
|
+
export interface RuleResponseDto {
|
|
1145
|
+
id: string;
|
|
1146
|
+
country_code?: object;
|
|
1147
|
+
customer_type?: "INDIVIDUAL" | "SME" | "CORPORATE";
|
|
1148
|
+
risk_level?: "LOW" | "MEDIUM" | "HIGH";
|
|
1149
|
+
business_type?: object;
|
|
1150
|
+
subject_role: "INDIVIDUAL" | "BUSINESS" | "UBO" | "DIRECTOR";
|
|
1151
|
+
document_type_code: string;
|
|
1152
|
+
is_mandatory: boolean;
|
|
1153
|
+
alternative_group?: object;
|
|
1154
|
+
min_count?: object | null;
|
|
1155
|
+
priority: number;
|
|
1156
|
+
is_active: boolean;
|
|
1157
|
+
}
|
|
1158
|
+
export interface CreateRuleRequestDto {
|
|
1159
|
+
/** ISO 3166-1 alpha-2; null = wildcard */
|
|
1160
|
+
country_code?: string;
|
|
1161
|
+
customer_type?: "INDIVIDUAL" | "SME" | "CORPORATE";
|
|
1162
|
+
risk_level?: "LOW" | "MEDIUM" | "HIGH";
|
|
1163
|
+
subject_role: "INDIVIDUAL" | "BUSINESS" | "UBO" | "DIRECTOR";
|
|
1164
|
+
document_type_code: string;
|
|
1165
|
+
is_mandatory: boolean;
|
|
1166
|
+
alternative_group?: string;
|
|
1152
1167
|
/**
|
|
1153
|
-
*
|
|
1154
|
-
* @example "
|
|
1155
|
-
*/
|
|
1156
|
-
personId: string;
|
|
1157
|
-
firstName: string;
|
|
1158
|
-
lastName: string;
|
|
1159
|
-
fatherName: string;
|
|
1160
|
-
motherName: string;
|
|
1161
|
-
/**
|
|
1162
|
-
* Full national ID number (decrypted)
|
|
1163
|
-
* @example "12345678901234"
|
|
1164
|
-
*/
|
|
1165
|
-
nationalIdNumber: string;
|
|
1166
|
-
nationality: string;
|
|
1167
|
-
dateOfBirth: string;
|
|
1168
|
-
address: string;
|
|
1169
|
-
documentType: "passport" | "national_id";
|
|
1170
|
-
/**
|
|
1171
|
-
* KYC provider (MANUAL, AUTOMATED, etc.)
|
|
1172
|
-
* @example "MANUAL"
|
|
1173
|
-
*/
|
|
1174
|
-
provider: string;
|
|
1175
|
-
/**
|
|
1176
|
-
* KYC request status
|
|
1177
|
-
* @example "pending"
|
|
1178
|
-
*/
|
|
1179
|
-
status: "pending" | "under_review" | "verified" | "rejected";
|
|
1180
|
-
/** Uploaded documents for this request */
|
|
1181
|
-
documents: KycDocumentResponseDto[];
|
|
1182
|
-
/**
|
|
1183
|
-
* Timestamp when the request entered review
|
|
1184
|
-
* @example "2025-01-01T12:00:00.000Z"
|
|
1185
|
-
*/
|
|
1186
|
-
reviewAt: string | null;
|
|
1187
|
-
/**
|
|
1188
|
-
* Rejection reason if status is rejected
|
|
1189
|
-
* @example "DOCUMENT_BLURRY"
|
|
1168
|
+
* KYB scope — business type code; null/omit = any business type
|
|
1169
|
+
* @example "LLC"
|
|
1190
1170
|
*/
|
|
1191
|
-
|
|
1171
|
+
business_type?: string;
|
|
1192
1172
|
/**
|
|
1193
|
-
*
|
|
1194
|
-
* @
|
|
1173
|
+
* Minimum subjects required for this rule's subject_role (e.g. 2 UBOs). Omit to use the resolver default.
|
|
1174
|
+
* @min 1
|
|
1195
1175
|
*/
|
|
1196
|
-
|
|
1176
|
+
min_count?: number;
|
|
1177
|
+
/** @default 100 */
|
|
1178
|
+
priority: number;
|
|
1179
|
+
}
|
|
1180
|
+
export interface PatchRuleRequestDto {
|
|
1181
|
+
is_mandatory?: boolean;
|
|
1182
|
+
alternative_group?: string;
|
|
1183
|
+
priority?: number;
|
|
1184
|
+
is_active?: boolean;
|
|
1185
|
+
/** @min 1 */
|
|
1186
|
+
min_count?: number;
|
|
1187
|
+
}
|
|
1188
|
+
export interface PreviewRequirementsRequestDto {
|
|
1197
1189
|
/**
|
|
1198
|
-
*
|
|
1199
|
-
* @example "
|
|
1190
|
+
* ISO 3166-1 alpha-2 country code
|
|
1191
|
+
* @example "EG"
|
|
1200
1192
|
*/
|
|
1201
|
-
|
|
1193
|
+
country: string;
|
|
1194
|
+
customer_type: "INDIVIDUAL" | "SME" | "CORPORATE";
|
|
1195
|
+
risk_level: "LOW" | "MEDIUM" | "HIGH";
|
|
1202
1196
|
/**
|
|
1203
|
-
*
|
|
1204
|
-
* @example "
|
|
1197
|
+
* KYB only — business type code to preview
|
|
1198
|
+
* @example "LLC"
|
|
1205
1199
|
*/
|
|
1206
|
-
|
|
1207
|
-
/**
|
|
1208
|
-
|
|
1200
|
+
business_type?: string;
|
|
1201
|
+
/** Language override for labels */
|
|
1202
|
+
lang?: string;
|
|
1209
1203
|
}
|
|
1210
|
-
export interface
|
|
1204
|
+
export interface BusinessTypeResponseDto {
|
|
1205
|
+
id: string;
|
|
1206
|
+
code: string;
|
|
1207
|
+
name_i18n: object;
|
|
1208
|
+
description_i18n?: object;
|
|
1209
|
+
customer_type?: object | null;
|
|
1210
|
+
is_active: boolean;
|
|
1211
|
+
created_by: string;
|
|
1212
|
+
created_at: string;
|
|
1213
|
+
}
|
|
1214
|
+
export interface CreateBusinessTypeRequestDto {
|
|
1211
1215
|
/**
|
|
1212
|
-
*
|
|
1213
|
-
* @example "
|
|
1216
|
+
* Unique code, e.g. "LLC"
|
|
1217
|
+
* @example "LLC"
|
|
1214
1218
|
*/
|
|
1215
|
-
|
|
1219
|
+
code: string;
|
|
1216
1220
|
/**
|
|
1217
|
-
*
|
|
1218
|
-
* @example "
|
|
1221
|
+
* i18n name map
|
|
1222
|
+
* @example {"en":"LLC","ar":"ش.ذ.م.م"}
|
|
1219
1223
|
*/
|
|
1220
|
-
|
|
1224
|
+
name_i18n: object;
|
|
1225
|
+
/** i18n description map */
|
|
1226
|
+
description_i18n?: object;
|
|
1227
|
+
/** Which customer_type this business type belongs to (null = any) */
|
|
1228
|
+
customer_type?: "INDIVIDUAL" | "SME" | "CORPORATE";
|
|
1229
|
+
}
|
|
1230
|
+
export interface PatchBusinessTypeRequestDto {
|
|
1231
|
+
is_active?: boolean;
|
|
1232
|
+
name_i18n?: object;
|
|
1233
|
+
description_i18n?: object;
|
|
1234
|
+
customer_type?: "INDIVIDUAL" | "SME" | "CORPORATE";
|
|
1221
1235
|
}
|
|
1222
1236
|
export interface AmlRuleDto {
|
|
1223
1237
|
/**
|
|
@@ -1729,7 +1743,7 @@ export interface TransactionResponseDto {
|
|
|
1729
1743
|
* Transaction status
|
|
1730
1744
|
* @example "COMPLETED"
|
|
1731
1745
|
*/
|
|
1732
|
-
status: "
|
|
1746
|
+
status: "COMPLETED" | "FAILED" | "VOUCHER_PENDING" | "REVERSED";
|
|
1733
1747
|
/**
|
|
1734
1748
|
* Transaction description
|
|
1735
1749
|
* @example "Payment for services"
|
|
@@ -1741,10 +1755,10 @@ export interface TransactionResponseDto {
|
|
|
1741
1755
|
*/
|
|
1742
1756
|
correlationId: string;
|
|
1743
1757
|
/**
|
|
1744
|
-
*
|
|
1745
|
-
* @example "
|
|
1758
|
+
* Deprecated — kept for wire compatibility. Failure reasons now ride the transaction.failed event payload; AML reasons live in transaction_summaries.
|
|
1759
|
+
* @example ""
|
|
1746
1760
|
*/
|
|
1747
|
-
statusReason
|
|
1761
|
+
statusReason?: string;
|
|
1748
1762
|
/**
|
|
1749
1763
|
* Transaction creation timestamp (ISO format)
|
|
1750
1764
|
* @example "2024-01-15T12:00:00Z"
|
|
@@ -1849,8 +1863,8 @@ export interface AdminAccountDetailResponseDto {
|
|
|
1849
1863
|
*/
|
|
1850
1864
|
id: string;
|
|
1851
1865
|
/**
|
|
1852
|
-
* Human-readable
|
|
1853
|
-
* @example "
|
|
1866
|
+
* Human-readable 22-digit account number. Only set for main accounts.
|
|
1867
|
+
* @example "0017601010000001000011"
|
|
1854
1868
|
*/
|
|
1855
1869
|
accountNumber?: string;
|
|
1856
1870
|
/**
|
|
@@ -1985,10 +1999,13 @@ export interface AdminTransactionItemDto {
|
|
|
1985
1999
|
/** @example "P2P_TRANSFER" */
|
|
1986
2000
|
type: "P2P_TRANSFER" | "WITHDRAWAL" | "TOP_UP" | "MERCHANT_PAYMENT" | "REVERSAL" | "REFUND" | "MOVING";
|
|
1987
2001
|
/** @example "COMPLETED" */
|
|
1988
|
-
status: "
|
|
2002
|
+
status: "COMPLETED" | "FAILED" | "VOUCHER_PENDING" | "REVERSED";
|
|
1989
2003
|
/** @example "Payment for services" */
|
|
1990
2004
|
description?: string;
|
|
1991
|
-
/**
|
|
2005
|
+
/**
|
|
2006
|
+
* AML risk score (0-100). Computed asynchronously after the transaction is posted; admin views fetch this from aml-service.transaction_summaries via gRPC and merge it in.
|
|
2007
|
+
* @example 0
|
|
2008
|
+
*/
|
|
1992
2009
|
amlRiskScore: number;
|
|
1993
2010
|
/** @example "LOW" */
|
|
1994
2011
|
amlRiskLevel: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
@@ -2724,6 +2741,172 @@ export interface ResolveDlqMessageDto {
|
|
|
2724
2741
|
*/
|
|
2725
2742
|
note?: string;
|
|
2726
2743
|
}
|
|
2744
|
+
export interface BankBranchResponseDto {
|
|
2745
|
+
/** @example "001" */
|
|
2746
|
+
code: string;
|
|
2747
|
+
name: LocalizedNameDto;
|
|
2748
|
+
/** @example true */
|
|
2749
|
+
isActive: boolean;
|
|
2750
|
+
/** @format date-time */
|
|
2751
|
+
createdAt: string;
|
|
2752
|
+
/** @format date-time */
|
|
2753
|
+
updatedAt: string;
|
|
2754
|
+
}
|
|
2755
|
+
export interface BankBranchesListResponseDto {
|
|
2756
|
+
branches: BankBranchResponseDto[];
|
|
2757
|
+
}
|
|
2758
|
+
export interface CreateBankBranchDto {
|
|
2759
|
+
/**
|
|
2760
|
+
* 3-digit branch code (immutable once issued)
|
|
2761
|
+
* @example "002"
|
|
2762
|
+
*/
|
|
2763
|
+
code: string;
|
|
2764
|
+
/** Translatable display name */
|
|
2765
|
+
name: LocalizedNameDto;
|
|
2766
|
+
}
|
|
2767
|
+
export interface UpdateBankBranchDto {
|
|
2768
|
+
name?: LocalizedNameDto;
|
|
2769
|
+
/** Toggle whether this branch can issue new account numbers */
|
|
2770
|
+
isActive?: boolean;
|
|
2771
|
+
}
|
|
2772
|
+
export interface AccountTypeResponseDto {
|
|
2773
|
+
/** @example "10" */
|
|
2774
|
+
code: string;
|
|
2775
|
+
/**
|
|
2776
|
+
* Matches accountTypeEnum value
|
|
2777
|
+
* @example "personal"
|
|
2778
|
+
*/
|
|
2779
|
+
key: string;
|
|
2780
|
+
name: LocalizedNameDto;
|
|
2781
|
+
/** @example true */
|
|
2782
|
+
isActive: boolean;
|
|
2783
|
+
/** @format date-time */
|
|
2784
|
+
createdAt: string;
|
|
2785
|
+
/** @format date-time */
|
|
2786
|
+
updatedAt: string;
|
|
2787
|
+
}
|
|
2788
|
+
export interface AccountTypesListResponseDto {
|
|
2789
|
+
accountTypes: AccountTypeResponseDto[];
|
|
2790
|
+
}
|
|
2791
|
+
export interface UpdateAccountTypeDto {
|
|
2792
|
+
name?: LocalizedNameDto;
|
|
2793
|
+
/** Toggle whether the generator may issue new account numbers of this type */
|
|
2794
|
+
isActive?: boolean;
|
|
2795
|
+
}
|
|
2796
|
+
export interface CurrencyConfigResponseDto {
|
|
2797
|
+
/** @example "USD" */
|
|
2798
|
+
code: string;
|
|
2799
|
+
/** @example "840" */
|
|
2800
|
+
numericCode: string;
|
|
2801
|
+
name: LocalizedNameDto;
|
|
2802
|
+
/** @example true */
|
|
2803
|
+
isActive: boolean;
|
|
2804
|
+
/** @format date-time */
|
|
2805
|
+
createdAt: string;
|
|
2806
|
+
}
|
|
2807
|
+
export interface CurrencyConfigListResponseDto {
|
|
2808
|
+
currencies: CurrencyConfigResponseDto[];
|
|
2809
|
+
}
|
|
2810
|
+
export interface CreateCurrencyConfigDto {
|
|
2811
|
+
/**
|
|
2812
|
+
* ISO 4217 alpha-3 code
|
|
2813
|
+
* @example "EUR"
|
|
2814
|
+
*/
|
|
2815
|
+
code: string;
|
|
2816
|
+
/**
|
|
2817
|
+
* ISO 4217 numeric code (3 digits)
|
|
2818
|
+
* @example "978"
|
|
2819
|
+
*/
|
|
2820
|
+
numericCode: string;
|
|
2821
|
+
name: LocalizedNameDto;
|
|
2822
|
+
}
|
|
2823
|
+
export interface UpdateCurrencyConfigDto {
|
|
2824
|
+
/**
|
|
2825
|
+
* ISO 4217 numeric code (3 digits)
|
|
2826
|
+
* @example "978"
|
|
2827
|
+
*/
|
|
2828
|
+
numericCode?: string;
|
|
2829
|
+
name?: LocalizedNameDto;
|
|
2830
|
+
/** Toggle whether the generator may issue new account numbers in this currency */
|
|
2831
|
+
isActive?: boolean;
|
|
2832
|
+
}
|
|
2833
|
+
export interface ApprovalDecisionResponseDto {
|
|
2834
|
+
id: string;
|
|
2835
|
+
adminId: string;
|
|
2836
|
+
adminEmail: string;
|
|
2837
|
+
decision: "APPROVED" | "REJECTED";
|
|
2838
|
+
comment?: object;
|
|
2839
|
+
/** @format date-time */
|
|
2840
|
+
createdAt: string;
|
|
2841
|
+
}
|
|
2842
|
+
export interface ApprovalRequestResponseDto {
|
|
2843
|
+
id: string;
|
|
2844
|
+
actionType: "admin.create" | "admin.update" | "admin.delete" | "admin.status_update" | "system_config.upsert" | "system_config.delete" | "account.fund" | "role.assign_permissions" | "reconciliation.run";
|
|
2845
|
+
resource: string;
|
|
2846
|
+
resourceId?: object;
|
|
2847
|
+
title: string;
|
|
2848
|
+
status: "PENDING" | "APPROVED" | "EXECUTED" | "FAILED" | "REJECTED" | "EXPIRED" | "CANCELLED";
|
|
2849
|
+
/** Distinct approvers required (maker excluded) */
|
|
2850
|
+
requiredApprovals: number;
|
|
2851
|
+
/** Distinct approvals recorded so far */
|
|
2852
|
+
approvalsCount: number;
|
|
2853
|
+
requestedBy: string;
|
|
2854
|
+
requestedByEmail: string;
|
|
2855
|
+
reason?: object;
|
|
2856
|
+
/** Present once executed */
|
|
2857
|
+
executionError?: object;
|
|
2858
|
+
/** @format date-time */
|
|
2859
|
+
createdAt: string;
|
|
2860
|
+
/** @format date-time */
|
|
2861
|
+
expiresAt: string;
|
|
2862
|
+
executedAt?: object;
|
|
2863
|
+
decisions?: ApprovalDecisionResponseDto[];
|
|
2864
|
+
}
|
|
2865
|
+
export interface ApprovalRequestListResponseDto {
|
|
2866
|
+
data: ApprovalRequestResponseDto[];
|
|
2867
|
+
total: number;
|
|
2868
|
+
page: number;
|
|
2869
|
+
limit: number;
|
|
2870
|
+
totalPages: number;
|
|
2871
|
+
}
|
|
2872
|
+
export interface CreateApprovalDecisionDto {
|
|
2873
|
+
/** The checker verdict on the approval request */
|
|
2874
|
+
decision: "APPROVED" | "REJECTED";
|
|
2875
|
+
/**
|
|
2876
|
+
* Optional note explaining the decision (stored for audit)
|
|
2877
|
+
* @maxLength 1000
|
|
2878
|
+
*/
|
|
2879
|
+
comment?: string;
|
|
2880
|
+
}
|
|
2881
|
+
export interface ApprovalPolicyResponseDto {
|
|
2882
|
+
actionType: "admin.create" | "admin.update" | "admin.delete" | "admin.status_update" | "system_config.upsert" | "system_config.delete" | "account.fund" | "role.assign_permissions" | "reconciliation.run";
|
|
2883
|
+
enabled: boolean;
|
|
2884
|
+
requiredApprovals: number;
|
|
2885
|
+
allowSelfApprove: boolean;
|
|
2886
|
+
bypassSuperAdmin: boolean;
|
|
2887
|
+
expiresInHours: number;
|
|
2888
|
+
/** @format date-time */
|
|
2889
|
+
updatedAt: string;
|
|
2890
|
+
}
|
|
2891
|
+
export interface UpdateApprovalPolicyDto {
|
|
2892
|
+
/** Whether four-eyes is enforced for this action */
|
|
2893
|
+
enabled?: boolean;
|
|
2894
|
+
/**
|
|
2895
|
+
* Distinct approvers required (maker excluded). Minimum 1.
|
|
2896
|
+
* @min 1
|
|
2897
|
+
* @max 10
|
|
2898
|
+
*/
|
|
2899
|
+
requiredApprovals?: number;
|
|
2900
|
+
/** Allow the maker to approve their own request (break-glass) */
|
|
2901
|
+
allowSelfApprove?: boolean;
|
|
2902
|
+
/** Exempt super admins from four-eyes for this action */
|
|
2903
|
+
bypassSuperAdmin?: boolean;
|
|
2904
|
+
/**
|
|
2905
|
+
* Hours before a pending request expires
|
|
2906
|
+
* @min 1
|
|
2907
|
+
*/
|
|
2908
|
+
expiresInHours?: number;
|
|
2909
|
+
}
|
|
2727
2910
|
export type LoginData = AdminLoginResponseDto;
|
|
2728
2911
|
export type LoginError = ErrorResponseDto;
|
|
2729
2912
|
export type RefreshData = AdminLoginResponseDto;
|
|
@@ -2977,11 +3160,6 @@ export interface CreateAgentWalletParams {
|
|
|
2977
3160
|
id: string;
|
|
2978
3161
|
}
|
|
2979
3162
|
export type CreateAgentWalletData = AdminAccountResponseDto;
|
|
2980
|
-
export interface UpsertAgentBranchesParams {
|
|
2981
|
-
/** Agent ID */
|
|
2982
|
-
id: string;
|
|
2983
|
-
}
|
|
2984
|
-
export type UpsertAgentBranchesData = BranchesUpsertResponseDto;
|
|
2985
3163
|
export interface UpsertAgentLimitsParams {
|
|
2986
3164
|
/** Agent ID (UUID) */
|
|
2987
3165
|
id: string;
|
|
@@ -2992,11 +3170,6 @@ export interface UpsertAgentCommissionsParams {
|
|
|
2992
3170
|
id: string;
|
|
2993
3171
|
}
|
|
2994
3172
|
export type UpsertAgentCommissionsData = AgentCommissionsResponseDto;
|
|
2995
|
-
export interface DeleteBranchParams {
|
|
2996
|
-
/** Branch ID (UUID) */
|
|
2997
|
-
branchId: string;
|
|
2998
|
-
}
|
|
2999
|
-
export type DeleteBranchData = MessageResponseDto;
|
|
3000
3173
|
export interface DeleteLimitParams {
|
|
3001
3174
|
/** Limit ID (UUID) */
|
|
3002
3175
|
limitId: string;
|
|
@@ -3007,45 +3180,99 @@ export interface DeleteCommissionParams {
|
|
|
3007
3180
|
commissionId: string;
|
|
3008
3181
|
}
|
|
3009
3182
|
export type DeleteCommissionData = MessageResponseDto;
|
|
3010
|
-
export type
|
|
3011
|
-
export interface
|
|
3183
|
+
export type StatisticsData = SubmissionStatisticsResponseDto;
|
|
3184
|
+
export interface ListParams {
|
|
3185
|
+
status?: "PENDING_UPLOAD" | "UPLOADED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "EXPIRED";
|
|
3186
|
+
subject_id?: string;
|
|
3187
|
+
subject_role?: "INDIVIDUAL" | "BUSINESS" | "UBO" | "DIRECTOR";
|
|
3012
3188
|
/**
|
|
3013
|
-
* Page number (1-based)
|
|
3014
3189
|
* @min 1
|
|
3015
3190
|
* @default 1
|
|
3016
|
-
* @example 1
|
|
3017
3191
|
*/
|
|
3018
3192
|
page?: number;
|
|
3019
3193
|
/**
|
|
3020
|
-
* Number of items per page
|
|
3021
3194
|
* @min 1
|
|
3022
3195
|
* @max 200
|
|
3023
3196
|
* @default 20
|
|
3024
|
-
* @example 20
|
|
3025
3197
|
*/
|
|
3026
3198
|
limit?: number;
|
|
3027
|
-
/**
|
|
3028
|
-
* Filter by KYC status
|
|
3029
|
-
* @example "pending"
|
|
3030
|
-
*/
|
|
3031
|
-
status?: "pending" | "under_review" | "verified" | "rejected";
|
|
3032
|
-
/**
|
|
3033
|
-
* Search by KYC request ID or person ID
|
|
3034
|
-
* @example "kyc-001"
|
|
3035
|
-
*/
|
|
3036
|
-
search?: string;
|
|
3037
3199
|
}
|
|
3038
|
-
export type
|
|
3039
|
-
export interface
|
|
3040
|
-
|
|
3200
|
+
export type ListData = SubmissionListResponseDto;
|
|
3201
|
+
export interface GetParams {
|
|
3202
|
+
id: string;
|
|
3203
|
+
}
|
|
3204
|
+
export type GetData = SubmissionResponseDto;
|
|
3205
|
+
export interface StartReviewParams {
|
|
3206
|
+
id: string;
|
|
3207
|
+
}
|
|
3208
|
+
export type StartReviewData = any;
|
|
3209
|
+
export interface ApproveParams {
|
|
3210
|
+
id: string;
|
|
3211
|
+
}
|
|
3212
|
+
export type ApproveData = any;
|
|
3213
|
+
export interface RejectParams {
|
|
3214
|
+
id: string;
|
|
3215
|
+
}
|
|
3216
|
+
export type RejectData = any;
|
|
3217
|
+
export interface PatchFieldsParams {
|
|
3218
|
+
id: string;
|
|
3219
|
+
}
|
|
3220
|
+
export type PatchFieldsData = any;
|
|
3221
|
+
export interface List2Params {
|
|
3222
|
+
only_active: string;
|
|
3223
|
+
}
|
|
3224
|
+
export type List2Data = DocumentTypeResponseDto[];
|
|
3225
|
+
export type CreateResult1 = any;
|
|
3226
|
+
export interface ListVersionsParams {
|
|
3227
|
+
code: string;
|
|
3228
|
+
}
|
|
3229
|
+
export type ListVersionsData = any;
|
|
3230
|
+
export interface CreateVersionParams {
|
|
3231
|
+
code: string;
|
|
3232
|
+
}
|
|
3233
|
+
export type CreateVersionData = any;
|
|
3234
|
+
export interface PatchParams {
|
|
3235
|
+
id: string;
|
|
3236
|
+
}
|
|
3237
|
+
export type PatchData = any;
|
|
3238
|
+
export interface RemoveParams {
|
|
3239
|
+
id: string;
|
|
3240
|
+
}
|
|
3241
|
+
export type RemoveData = any;
|
|
3242
|
+
export interface List3Params {
|
|
3243
|
+
country_code?: string;
|
|
3244
|
+
customer_type?: "INDIVIDUAL" | "SME" | "CORPORATE";
|
|
3245
|
+
risk_level?: "LOW" | "MEDIUM" | "HIGH";
|
|
3246
|
+
subject_role?: "INDIVIDUAL" | "BUSINESS" | "UBO" | "DIRECTOR";
|
|
3247
|
+
document_type_code?: string;
|
|
3248
|
+
/** KYB business type code filter */
|
|
3249
|
+
business_type?: string;
|
|
3250
|
+
only_active?: boolean;
|
|
3251
|
+
}
|
|
3252
|
+
export type List3Data = RuleResponseDto[];
|
|
3253
|
+
export type Create2Data = any;
|
|
3254
|
+
export interface Patch2Params {
|
|
3041
3255
|
id: string;
|
|
3042
3256
|
}
|
|
3043
|
-
export type
|
|
3044
|
-
export interface
|
|
3045
|
-
|
|
3257
|
+
export type Patch2Data = any;
|
|
3258
|
+
export interface Remove2Params {
|
|
3259
|
+
id: string;
|
|
3260
|
+
}
|
|
3261
|
+
export type Remove2Data = any;
|
|
3262
|
+
export type PreviewData = any;
|
|
3263
|
+
export interface List4Params {
|
|
3264
|
+
only_active: string;
|
|
3265
|
+
}
|
|
3266
|
+
export type List4Data = BusinessTypeResponseDto[];
|
|
3267
|
+
export type Create3Data = any;
|
|
3268
|
+
export interface Patch3Params {
|
|
3046
3269
|
id: string;
|
|
3047
3270
|
}
|
|
3048
|
-
export type
|
|
3271
|
+
export type Patch3Data = any;
|
|
3272
|
+
export interface Remove3Params {
|
|
3273
|
+
id: string;
|
|
3274
|
+
}
|
|
3275
|
+
export type Remove3Data = any;
|
|
3049
3276
|
export interface GetAmlRulesParams {
|
|
3050
3277
|
currency?: "SYP" | "USD" | "EUR";
|
|
3051
3278
|
isActive?: boolean;
|
|
@@ -3101,7 +3328,7 @@ export interface AssignAlertParams {
|
|
|
3101
3328
|
}
|
|
3102
3329
|
export type AssignAlertData = AmlAlertDto;
|
|
3103
3330
|
export type AssignAlertError = ErrorResponseDto;
|
|
3104
|
-
export type
|
|
3331
|
+
export type GetStatisticsResult = AccountStatisticsResponseDto;
|
|
3105
3332
|
export interface ListAccountsParams {
|
|
3106
3333
|
/**
|
|
3107
3334
|
* Page number (1-based)
|
|
@@ -3175,7 +3402,7 @@ export interface UpdateAccountStatusParams {
|
|
|
3175
3402
|
id: string;
|
|
3176
3403
|
}
|
|
3177
3404
|
export type UpdateAccountStatusData = AdminAccountResponseDto;
|
|
3178
|
-
export interface
|
|
3405
|
+
export interface GetStatisticsParams2 {
|
|
3179
3406
|
/** Start date filter (ISO date, e.g. 2025-01-01) */
|
|
3180
3407
|
startDate?: string;
|
|
3181
3408
|
/** End date filter (ISO date, e.g. 2025-12-31) */
|
|
@@ -3183,7 +3410,7 @@ export interface GetStatisticsParams3 {
|
|
|
3183
3410
|
/** Filter by currency */
|
|
3184
3411
|
currency?: "SYP" | "USD" | "EUR";
|
|
3185
3412
|
}
|
|
3186
|
-
export type
|
|
3413
|
+
export type GetStatisticsOutput = TransactionStatisticsResponseDto;
|
|
3187
3414
|
export interface ListTransactionsParams {
|
|
3188
3415
|
/** Search by transaction ID or public transaction ID */
|
|
3189
3416
|
search?: string;
|
|
@@ -3218,9 +3445,9 @@ export type GetTransactionDetailData = AdminTransactionDetailResponseDto;
|
|
|
3218
3445
|
export type GetTransactionDetailError = ErrorResponseDto;
|
|
3219
3446
|
export type SendGlobalNotificationData = SendGlobalNotificationResponseDto;
|
|
3220
3447
|
export type SendGlobalNotificationError = ErrorResponseDto;
|
|
3221
|
-
export type
|
|
3448
|
+
export type CreateResult2 = ScheduledNotificationResponseDto;
|
|
3222
3449
|
export type CreateErrorData = ErrorResponseDto;
|
|
3223
|
-
export interface
|
|
3450
|
+
export interface FindAllParams10 {
|
|
3224
3451
|
/** Filter by status */
|
|
3225
3452
|
status?: "pending" | "sent" | "failed" | "cancelled";
|
|
3226
3453
|
/**
|
|
@@ -3248,11 +3475,11 @@ export interface UpdateParams6 {
|
|
|
3248
3475
|
}
|
|
3249
3476
|
export type UpdateResult1 = ScheduledNotificationResponseDto;
|
|
3250
3477
|
export type UpdateErrorData = ErrorResponseDto;
|
|
3251
|
-
export interface
|
|
3478
|
+
export interface RemoveParams2 {
|
|
3252
3479
|
/** MongoDB ObjectId */
|
|
3253
3480
|
id: string;
|
|
3254
3481
|
}
|
|
3255
|
-
export type
|
|
3482
|
+
export type RemoveResult = any;
|
|
3256
3483
|
export type RemoveError = ErrorResponseDto;
|
|
3257
3484
|
export interface GetSystemConfigsParams {
|
|
3258
3485
|
/** Filter by config key */
|
|
@@ -3309,14 +3536,14 @@ export interface DeleteDocumentParams {
|
|
|
3309
3536
|
}
|
|
3310
3537
|
export type DeleteDocumentData = any;
|
|
3311
3538
|
export type DeleteDocumentError = ErrorResponseDto;
|
|
3312
|
-
export type
|
|
3539
|
+
export type ListResult = AppVersionPolicyListResponseDto;
|
|
3313
3540
|
export type UpsertData = AppVersionPolicyDto;
|
|
3314
|
-
export interface
|
|
3541
|
+
export interface GetParams2 {
|
|
3315
3542
|
platform: "ios" | "android";
|
|
3316
3543
|
}
|
|
3317
|
-
export type
|
|
3318
|
-
export type
|
|
3319
|
-
export interface
|
|
3544
|
+
export type GetResult = AppVersionPolicyDto;
|
|
3545
|
+
export type GetStatisticsResult1 = UserStatisticsResponseDto;
|
|
3546
|
+
export interface FindAllParams12 {
|
|
3320
3547
|
/**
|
|
3321
3548
|
* Page number (1-based)
|
|
3322
3549
|
* @min 1
|
|
@@ -3363,7 +3590,7 @@ export interface FindAllParams14 {
|
|
|
3363
3590
|
*/
|
|
3364
3591
|
query?: string;
|
|
3365
3592
|
}
|
|
3366
|
-
export type
|
|
3593
|
+
export type FindAllData2 = PersonListResponseDto;
|
|
3367
3594
|
export interface ExportUsersParams {
|
|
3368
3595
|
/**
|
|
3369
3596
|
* Field to sort by
|
|
@@ -3404,11 +3631,11 @@ export interface ExportUsersParams {
|
|
|
3404
3631
|
export type ExportUsersData = any;
|
|
3405
3632
|
export type GetSecurityQuestionsByPhoneData = GetSecurityQuestionsByPhoneResponseDto;
|
|
3406
3633
|
export type RegenerateRecoveryCodeData = RegenerateRecoveryCodeByPhoneResponseDto;
|
|
3407
|
-
export interface
|
|
3634
|
+
export interface FindByIdParams6 {
|
|
3408
3635
|
/** Person ID (UUID) */
|
|
3409
3636
|
id: string;
|
|
3410
3637
|
}
|
|
3411
|
-
export type
|
|
3638
|
+
export type FindByIdData1 = PersonDetailDto;
|
|
3412
3639
|
export interface UpdatePersonStatusParams {
|
|
3413
3640
|
/** Person ID (UUID) */
|
|
3414
3641
|
id: string;
|
|
@@ -3419,7 +3646,7 @@ export interface UpdateUserStatusParams {
|
|
|
3419
3646
|
id: string;
|
|
3420
3647
|
}
|
|
3421
3648
|
export type UpdateUserStatusData = any;
|
|
3422
|
-
export interface
|
|
3649
|
+
export interface FindAllParams14 {
|
|
3423
3650
|
/**
|
|
3424
3651
|
* Page number (1-based)
|
|
3425
3652
|
* @default 1
|
|
@@ -3448,14 +3675,99 @@ export interface FindAllParams16 {
|
|
|
3448
3675
|
*/
|
|
3449
3676
|
endDate?: string;
|
|
3450
3677
|
}
|
|
3451
|
-
export type
|
|
3678
|
+
export type FindAllResult2 = DlqMessageListResponseDto;
|
|
3452
3679
|
export type PendingByTopicData = DlqPendingByTopicResponseDto[];
|
|
3453
|
-
export interface
|
|
3680
|
+
export interface FindByIdParams8 {
|
|
3454
3681
|
id: string;
|
|
3455
3682
|
}
|
|
3456
|
-
export type
|
|
3683
|
+
export type FindByIdResult1 = DlqMessageResponseDto;
|
|
3457
3684
|
export interface ResolveParams {
|
|
3458
3685
|
id: string;
|
|
3459
3686
|
}
|
|
3460
3687
|
export type ResolveData = DlqMessageResponseDto;
|
|
3688
|
+
export interface ListParams3 {
|
|
3689
|
+
/** Return only active branches */
|
|
3690
|
+
onlyActive?: boolean;
|
|
3691
|
+
}
|
|
3692
|
+
export type ListOutput = BankBranchesListResponseDto;
|
|
3693
|
+
export type CreateData1 = BankBranchResponseDto;
|
|
3694
|
+
export interface GetByCodeParams {
|
|
3695
|
+
/** 3-digit branch code */
|
|
3696
|
+
code: string;
|
|
3697
|
+
}
|
|
3698
|
+
export type GetByCodeData = BankBranchResponseDto;
|
|
3699
|
+
export interface UpdateParams8 {
|
|
3700
|
+
/** 3-digit branch code */
|
|
3701
|
+
code: string;
|
|
3702
|
+
}
|
|
3703
|
+
export type UpdateResult2 = BankBranchResponseDto;
|
|
3704
|
+
export interface ListParams5 {
|
|
3705
|
+
onlyActive?: boolean;
|
|
3706
|
+
}
|
|
3707
|
+
export type ListResult1 = AccountTypesListResponseDto;
|
|
3708
|
+
export interface UpdateParams10 {
|
|
3709
|
+
/** 2-digit account-type code */
|
|
3710
|
+
code: string;
|
|
3711
|
+
}
|
|
3712
|
+
export type UpdateResult3 = AccountTypeResponseDto;
|
|
3713
|
+
export interface ListParams7 {
|
|
3714
|
+
onlyActive?: boolean;
|
|
3715
|
+
}
|
|
3716
|
+
export type ListOutput1 = CurrencyConfigListResponseDto;
|
|
3717
|
+
export type CreateResult3 = CurrencyConfigResponseDto;
|
|
3718
|
+
export interface GetByCodeParams2 {
|
|
3719
|
+
/** ISO 4217 alpha-3 code (e.g. USD) */
|
|
3720
|
+
code: string;
|
|
3721
|
+
}
|
|
3722
|
+
export type GetByCodeResult = CurrencyConfigResponseDto;
|
|
3723
|
+
export interface DeleteParams6 {
|
|
3724
|
+
/** ISO 4217 alpha-3 code */
|
|
3725
|
+
code: string;
|
|
3726
|
+
}
|
|
3727
|
+
export type DeleteOutput1 = any;
|
|
3728
|
+
export interface UpdateParams12 {
|
|
3729
|
+
/** ISO 4217 alpha-3 code */
|
|
3730
|
+
code: string;
|
|
3731
|
+
}
|
|
3732
|
+
export type UpdateResult4 = CurrencyConfigResponseDto;
|
|
3733
|
+
export interface ListRequestsParams {
|
|
3734
|
+
/** Filter by status */
|
|
3735
|
+
status?: "PENDING" | "APPROVED" | "EXECUTED" | "FAILED" | "REJECTED" | "EXPIRED" | "CANCELLED";
|
|
3736
|
+
/** Filter by action type */
|
|
3737
|
+
actionType?: "admin.create" | "admin.update" | "admin.delete" | "admin.status_update" | "system_config.upsert" | "system_config.delete" | "account.fund" | "role.assign_permissions" | "reconciliation.run";
|
|
3738
|
+
/** Filter by maker (admin UUID) */
|
|
3739
|
+
requestedBy?: string;
|
|
3740
|
+
/**
|
|
3741
|
+
* Page number (1-based)
|
|
3742
|
+
* @default 1
|
|
3743
|
+
*/
|
|
3744
|
+
page?: number;
|
|
3745
|
+
/**
|
|
3746
|
+
* Items per page (max 200)
|
|
3747
|
+
* @default 20
|
|
3748
|
+
*/
|
|
3749
|
+
limit?: number;
|
|
3750
|
+
}
|
|
3751
|
+
export type ListRequestsData = ApprovalRequestListResponseDto;
|
|
3752
|
+
export interface GetRequestParams {
|
|
3753
|
+
/** Approval request UUID */
|
|
3754
|
+
id: string;
|
|
3755
|
+
}
|
|
3756
|
+
export type GetRequestData = ApprovalRequestResponseDto;
|
|
3757
|
+
export interface DecideParams {
|
|
3758
|
+
/** Approval request UUID */
|
|
3759
|
+
id: string;
|
|
3760
|
+
}
|
|
3761
|
+
export type DecideData = ApprovalRequestResponseDto;
|
|
3762
|
+
export interface CancelParams {
|
|
3763
|
+
/** Approval request UUID */
|
|
3764
|
+
id: string;
|
|
3765
|
+
}
|
|
3766
|
+
export type CancelData = ApprovalRequestResponseDto;
|
|
3767
|
+
export type ListData1 = ApprovalPolicyResponseDto[];
|
|
3768
|
+
export interface UpdateParams14 {
|
|
3769
|
+
actionType: "admin.create" | "admin.update" | "admin.delete" | "admin.status_update" | "system_config.upsert" | "system_config.delete" | "account.fund" | "role.assign_permissions" | "reconciliation.run";
|
|
3770
|
+
}
|
|
3771
|
+
export type UpdateOutput1 = ApprovalPolicyResponseDto;
|
|
3772
|
+
export type IndexData = any;
|
|
3461
3773
|
//# sourceMappingURL=data-contracts.d.ts.map
|