@tammsyr/admin-api-client 1.2.5 → 1.2.7
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/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 +37 -0
- package/dist/AppVersion.d.ts.map +1 -0
- package/dist/AppVersion.js +72 -0
- package/dist/AppVersion.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/Notifications.d.ts.map +1 -1
- package/dist/Transactions.d.ts +2 -2
- 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 +562 -293
- package/dist/data-contracts.d.ts.map +1 -1
- package/dist/index.d.ts +15 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -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;
|
|
1203
|
+
}
|
|
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;
|
|
1209
1213
|
}
|
|
1210
|
-
export interface
|
|
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"
|
|
@@ -1775,6 +1789,11 @@ export interface TransactionResponseDto {
|
|
|
1775
1789
|
* @example "VCH-123456789"
|
|
1776
1790
|
*/
|
|
1777
1791
|
voucherCode?: string;
|
|
1792
|
+
/**
|
|
1793
|
+
* User-facing metadata stored on the transaction (e.g. beneficiary, agent name).
|
|
1794
|
+
* @example {"beneficiaryName":"Ahmed M.","agentName":"Damascus Agent"}
|
|
1795
|
+
*/
|
|
1796
|
+
userMetadata?: object;
|
|
1778
1797
|
}
|
|
1779
1798
|
export interface PersonAddressDto {
|
|
1780
1799
|
/**
|
|
@@ -1844,8 +1863,8 @@ export interface AdminAccountDetailResponseDto {
|
|
|
1844
1863
|
*/
|
|
1845
1864
|
id: string;
|
|
1846
1865
|
/**
|
|
1847
|
-
* Human-readable
|
|
1848
|
-
* @example "
|
|
1866
|
+
* Human-readable 22-digit account number. Only set for main accounts.
|
|
1867
|
+
* @example "0017601010000001000011"
|
|
1849
1868
|
*/
|
|
1850
1869
|
accountNumber?: string;
|
|
1851
1870
|
/**
|
|
@@ -1980,10 +1999,13 @@ export interface AdminTransactionItemDto {
|
|
|
1980
1999
|
/** @example "P2P_TRANSFER" */
|
|
1981
2000
|
type: "P2P_TRANSFER" | "WITHDRAWAL" | "TOP_UP" | "MERCHANT_PAYMENT" | "REVERSAL" | "REFUND" | "MOVING";
|
|
1982
2001
|
/** @example "COMPLETED" */
|
|
1983
|
-
status: "
|
|
2002
|
+
status: "COMPLETED" | "FAILED" | "VOUCHER_PENDING" | "REVERSED";
|
|
1984
2003
|
/** @example "Payment for services" */
|
|
1985
2004
|
description?: string;
|
|
1986
|
-
/**
|
|
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
|
+
*/
|
|
1987
2009
|
amlRiskScore: number;
|
|
1988
2010
|
/** @example "LOW" */
|
|
1989
2011
|
amlRiskLevel: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
@@ -2400,6 +2422,40 @@ export interface UpsertLegalDocumentDto {
|
|
|
2400
2422
|
*/
|
|
2401
2423
|
version?: string;
|
|
2402
2424
|
}
|
|
2425
|
+
export interface AppVersionPolicyDto {
|
|
2426
|
+
platform: "ios" | "android";
|
|
2427
|
+
/**
|
|
2428
|
+
* Hard floor — versions below this are blocked
|
|
2429
|
+
* @example "1.4.0"
|
|
2430
|
+
*/
|
|
2431
|
+
minVersion: string;
|
|
2432
|
+
/**
|
|
2433
|
+
* Soft floor — versions below this still work but receive a "please update" warning
|
|
2434
|
+
* @example "1.6.0"
|
|
2435
|
+
*/
|
|
2436
|
+
deprecatedVersion?: string;
|
|
2437
|
+
/**
|
|
2438
|
+
* URL the client should open to update the app
|
|
2439
|
+
* @example "https://apps.apple.com/app/id123456789"
|
|
2440
|
+
*/
|
|
2441
|
+
updateUrl?: string;
|
|
2442
|
+
/** Admin user ID who last updated the policy */
|
|
2443
|
+
updatedBy?: string;
|
|
2444
|
+
/** Last updated timestamp (ISO 8601) */
|
|
2445
|
+
updatedAt: string;
|
|
2446
|
+
}
|
|
2447
|
+
export interface AppVersionPolicyListResponseDto {
|
|
2448
|
+
policies: AppVersionPolicyDto[];
|
|
2449
|
+
}
|
|
2450
|
+
export interface UpsertAppVersionPolicyBodyDto {
|
|
2451
|
+
platform: "ios" | "android";
|
|
2452
|
+
/** @example "1.4.0" */
|
|
2453
|
+
minVersion: string;
|
|
2454
|
+
/** @example "1.6.0" */
|
|
2455
|
+
deprecatedVersion?: string;
|
|
2456
|
+
/** @example "https://apps.apple.com/app/id123456789" */
|
|
2457
|
+
updateUrl?: string;
|
|
2458
|
+
}
|
|
2403
2459
|
export interface UserStatisticsResponseDto {
|
|
2404
2460
|
/**
|
|
2405
2461
|
* Total number of users
|
|
@@ -2588,6 +2644,21 @@ export interface DlqMessageSummaryDto {
|
|
|
2588
2644
|
sourceKey?: string;
|
|
2589
2645
|
/** Last processing error message */
|
|
2590
2646
|
errorMessage: string;
|
|
2647
|
+
/**
|
|
2648
|
+
* True when the original payload was cut to 64 KB
|
|
2649
|
+
* @example false
|
|
2650
|
+
*/
|
|
2651
|
+
truncated: boolean;
|
|
2652
|
+
/**
|
|
2653
|
+
* Byte size of the original Kafka message value
|
|
2654
|
+
* @example 4321
|
|
2655
|
+
*/
|
|
2656
|
+
originalSize: number;
|
|
2657
|
+
/**
|
|
2658
|
+
* Field paths replaced with [REDACTED] before publish
|
|
2659
|
+
* @example []
|
|
2660
|
+
*/
|
|
2661
|
+
redactedFields: string[];
|
|
2591
2662
|
/** When the consumer gave up and routed to DLQ */
|
|
2592
2663
|
failedAt: string;
|
|
2593
2664
|
/** When admin-service stored this entry */
|
|
@@ -2638,8 +2709,21 @@ export interface DlqMessageResponseDto {
|
|
|
2638
2709
|
sourcePayload: string;
|
|
2639
2710
|
/** Last processing error message */
|
|
2640
2711
|
errorMessage: string;
|
|
2641
|
-
/**
|
|
2642
|
-
|
|
2712
|
+
/**
|
|
2713
|
+
* True when the original payload was cut to 64 KB before publish. Full body is in service logs at `failedAt`.
|
|
2714
|
+
* @example false
|
|
2715
|
+
*/
|
|
2716
|
+
truncated: boolean;
|
|
2717
|
+
/**
|
|
2718
|
+
* Byte size of the original Kafka message value before redaction + truncation.
|
|
2719
|
+
* @example 4321
|
|
2720
|
+
*/
|
|
2721
|
+
originalSize: number;
|
|
2722
|
+
/**
|
|
2723
|
+
* Dotted field paths replaced with `[REDACTED]` before publish. Empty when nothing was redacted.
|
|
2724
|
+
* @example ["otpCode","user.password"]
|
|
2725
|
+
*/
|
|
2726
|
+
redactedFields: string[];
|
|
2643
2727
|
/** When the consumer gave up and routed to DLQ */
|
|
2644
2728
|
failedAt: string;
|
|
2645
2729
|
/** When admin-service stored this entry */
|
|
@@ -2657,6 +2741,95 @@ export interface ResolveDlqMessageDto {
|
|
|
2657
2741
|
*/
|
|
2658
2742
|
note?: string;
|
|
2659
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
|
+
}
|
|
2660
2833
|
export type LoginData = AdminLoginResponseDto;
|
|
2661
2834
|
export type LoginError = ErrorResponseDto;
|
|
2662
2835
|
export type RefreshData = AdminLoginResponseDto;
|
|
@@ -2859,7 +3032,7 @@ export interface FindAllParams8 {
|
|
|
2859
3032
|
*/
|
|
2860
3033
|
read?: boolean;
|
|
2861
3034
|
}
|
|
2862
|
-
export type
|
|
3035
|
+
export type FindAllResult1 = AdminNotificationListResponseDto;
|
|
2863
3036
|
export type GetUnreadCountData = any;
|
|
2864
3037
|
export interface MarkAsReadParams {
|
|
2865
3038
|
/** Notification ID */
|
|
@@ -2910,11 +3083,6 @@ export interface CreateAgentWalletParams {
|
|
|
2910
3083
|
id: string;
|
|
2911
3084
|
}
|
|
2912
3085
|
export type CreateAgentWalletData = AdminAccountResponseDto;
|
|
2913
|
-
export interface UpsertAgentBranchesParams {
|
|
2914
|
-
/** Agent ID */
|
|
2915
|
-
id: string;
|
|
2916
|
-
}
|
|
2917
|
-
export type UpsertAgentBranchesData = BranchesUpsertResponseDto;
|
|
2918
3086
|
export interface UpsertAgentLimitsParams {
|
|
2919
3087
|
/** Agent ID (UUID) */
|
|
2920
3088
|
id: string;
|
|
@@ -2925,11 +3093,6 @@ export interface UpsertAgentCommissionsParams {
|
|
|
2925
3093
|
id: string;
|
|
2926
3094
|
}
|
|
2927
3095
|
export type UpsertAgentCommissionsData = AgentCommissionsResponseDto;
|
|
2928
|
-
export interface DeleteBranchParams {
|
|
2929
|
-
/** Branch ID (UUID) */
|
|
2930
|
-
branchId: string;
|
|
2931
|
-
}
|
|
2932
|
-
export type DeleteBranchData = MessageResponseDto;
|
|
2933
3096
|
export interface DeleteLimitParams {
|
|
2934
3097
|
/** Limit ID (UUID) */
|
|
2935
3098
|
limitId: string;
|
|
@@ -2940,45 +3103,99 @@ export interface DeleteCommissionParams {
|
|
|
2940
3103
|
commissionId: string;
|
|
2941
3104
|
}
|
|
2942
3105
|
export type DeleteCommissionData = MessageResponseDto;
|
|
2943
|
-
export type
|
|
2944
|
-
export interface
|
|
3106
|
+
export type StatisticsData = SubmissionStatisticsResponseDto;
|
|
3107
|
+
export interface ListParams {
|
|
3108
|
+
status?: "PENDING_UPLOAD" | "UPLOADED" | "UNDER_REVIEW" | "APPROVED" | "REJECTED" | "EXPIRED";
|
|
3109
|
+
subject_id?: string;
|
|
3110
|
+
subject_role?: "INDIVIDUAL" | "BUSINESS" | "UBO" | "DIRECTOR";
|
|
2945
3111
|
/**
|
|
2946
|
-
* Page number (1-based)
|
|
2947
3112
|
* @min 1
|
|
2948
3113
|
* @default 1
|
|
2949
|
-
* @example 1
|
|
2950
3114
|
*/
|
|
2951
3115
|
page?: number;
|
|
2952
3116
|
/**
|
|
2953
|
-
* Number of items per page
|
|
2954
3117
|
* @min 1
|
|
2955
3118
|
* @max 200
|
|
2956
3119
|
* @default 20
|
|
2957
|
-
* @example 20
|
|
2958
3120
|
*/
|
|
2959
3121
|
limit?: number;
|
|
2960
|
-
/**
|
|
2961
|
-
* Filter by KYC status
|
|
2962
|
-
* @example "pending"
|
|
2963
|
-
*/
|
|
2964
|
-
status?: "pending" | "under_review" | "verified" | "rejected";
|
|
2965
|
-
/**
|
|
2966
|
-
* Search by KYC request ID or person ID
|
|
2967
|
-
* @example "kyc-001"
|
|
2968
|
-
*/
|
|
2969
|
-
search?: string;
|
|
2970
3122
|
}
|
|
2971
|
-
export type
|
|
2972
|
-
export interface
|
|
2973
|
-
/** KYC request ID */
|
|
3123
|
+
export type ListData = SubmissionListResponseDto;
|
|
3124
|
+
export interface GetParams {
|
|
2974
3125
|
id: string;
|
|
2975
3126
|
}
|
|
2976
|
-
export type
|
|
2977
|
-
export interface
|
|
2978
|
-
/** KYC request ID */
|
|
3127
|
+
export type GetData = SubmissionResponseDto;
|
|
3128
|
+
export interface StartReviewParams {
|
|
2979
3129
|
id: string;
|
|
2980
3130
|
}
|
|
2981
|
-
export type
|
|
3131
|
+
export type StartReviewData = any;
|
|
3132
|
+
export interface ApproveParams {
|
|
3133
|
+
id: string;
|
|
3134
|
+
}
|
|
3135
|
+
export type ApproveData = any;
|
|
3136
|
+
export interface RejectParams {
|
|
3137
|
+
id: string;
|
|
3138
|
+
}
|
|
3139
|
+
export type RejectData = any;
|
|
3140
|
+
export interface PatchFieldsParams {
|
|
3141
|
+
id: string;
|
|
3142
|
+
}
|
|
3143
|
+
export type PatchFieldsData = any;
|
|
3144
|
+
export interface List2Params {
|
|
3145
|
+
only_active: string;
|
|
3146
|
+
}
|
|
3147
|
+
export type List2Data = DocumentTypeResponseDto[];
|
|
3148
|
+
export type CreateResult1 = any;
|
|
3149
|
+
export interface ListVersionsParams {
|
|
3150
|
+
code: string;
|
|
3151
|
+
}
|
|
3152
|
+
export type ListVersionsData = any;
|
|
3153
|
+
export interface CreateVersionParams {
|
|
3154
|
+
code: string;
|
|
3155
|
+
}
|
|
3156
|
+
export type CreateVersionData = any;
|
|
3157
|
+
export interface PatchParams {
|
|
3158
|
+
id: string;
|
|
3159
|
+
}
|
|
3160
|
+
export type PatchData = any;
|
|
3161
|
+
export interface RemoveParams {
|
|
3162
|
+
id: string;
|
|
3163
|
+
}
|
|
3164
|
+
export type RemoveData = any;
|
|
3165
|
+
export interface List3Params {
|
|
3166
|
+
country_code?: string;
|
|
3167
|
+
customer_type?: "INDIVIDUAL" | "SME" | "CORPORATE";
|
|
3168
|
+
risk_level?: "LOW" | "MEDIUM" | "HIGH";
|
|
3169
|
+
subject_role?: "INDIVIDUAL" | "BUSINESS" | "UBO" | "DIRECTOR";
|
|
3170
|
+
document_type_code?: string;
|
|
3171
|
+
/** KYB business type code filter */
|
|
3172
|
+
business_type?: string;
|
|
3173
|
+
only_active?: boolean;
|
|
3174
|
+
}
|
|
3175
|
+
export type List3Data = RuleResponseDto[];
|
|
3176
|
+
export type Create2Data = any;
|
|
3177
|
+
export interface Patch2Params {
|
|
3178
|
+
id: string;
|
|
3179
|
+
}
|
|
3180
|
+
export type Patch2Data = any;
|
|
3181
|
+
export interface Remove2Params {
|
|
3182
|
+
id: string;
|
|
3183
|
+
}
|
|
3184
|
+
export type Remove2Data = any;
|
|
3185
|
+
export type PreviewData = any;
|
|
3186
|
+
export interface List4Params {
|
|
3187
|
+
only_active: string;
|
|
3188
|
+
}
|
|
3189
|
+
export type List4Data = BusinessTypeResponseDto[];
|
|
3190
|
+
export type Create3Data = any;
|
|
3191
|
+
export interface Patch3Params {
|
|
3192
|
+
id: string;
|
|
3193
|
+
}
|
|
3194
|
+
export type Patch3Data = any;
|
|
3195
|
+
export interface Remove3Params {
|
|
3196
|
+
id: string;
|
|
3197
|
+
}
|
|
3198
|
+
export type Remove3Data = any;
|
|
2982
3199
|
export interface GetAmlRulesParams {
|
|
2983
3200
|
currency?: "SYP" | "USD" | "EUR";
|
|
2984
3201
|
isActive?: boolean;
|
|
@@ -3034,7 +3251,7 @@ export interface AssignAlertParams {
|
|
|
3034
3251
|
}
|
|
3035
3252
|
export type AssignAlertData = AmlAlertDto;
|
|
3036
3253
|
export type AssignAlertError = ErrorResponseDto;
|
|
3037
|
-
export type
|
|
3254
|
+
export type GetStatisticsResult = AccountStatisticsResponseDto;
|
|
3038
3255
|
export interface ListAccountsParams {
|
|
3039
3256
|
/**
|
|
3040
3257
|
* Page number (1-based)
|
|
@@ -3108,7 +3325,7 @@ export interface UpdateAccountStatusParams {
|
|
|
3108
3325
|
id: string;
|
|
3109
3326
|
}
|
|
3110
3327
|
export type UpdateAccountStatusData = AdminAccountResponseDto;
|
|
3111
|
-
export interface
|
|
3328
|
+
export interface GetStatisticsParams2 {
|
|
3112
3329
|
/** Start date filter (ISO date, e.g. 2025-01-01) */
|
|
3113
3330
|
startDate?: string;
|
|
3114
3331
|
/** End date filter (ISO date, e.g. 2025-12-31) */
|
|
@@ -3116,7 +3333,7 @@ export interface GetStatisticsParams3 {
|
|
|
3116
3333
|
/** Filter by currency */
|
|
3117
3334
|
currency?: "SYP" | "USD" | "EUR";
|
|
3118
3335
|
}
|
|
3119
|
-
export type
|
|
3336
|
+
export type GetStatisticsOutput = TransactionStatisticsResponseDto;
|
|
3120
3337
|
export interface ListTransactionsParams {
|
|
3121
3338
|
/** Search by transaction ID or public transaction ID */
|
|
3122
3339
|
search?: string;
|
|
@@ -3151,9 +3368,9 @@ export type GetTransactionDetailData = AdminTransactionDetailResponseDto;
|
|
|
3151
3368
|
export type GetTransactionDetailError = ErrorResponseDto;
|
|
3152
3369
|
export type SendGlobalNotificationData = SendGlobalNotificationResponseDto;
|
|
3153
3370
|
export type SendGlobalNotificationError = ErrorResponseDto;
|
|
3154
|
-
export type
|
|
3371
|
+
export type CreateData1 = ScheduledNotificationResponseDto;
|
|
3155
3372
|
export type CreateErrorData = ErrorResponseDto;
|
|
3156
|
-
export interface
|
|
3373
|
+
export interface FindAllParams10 {
|
|
3157
3374
|
/** Filter by status */
|
|
3158
3375
|
status?: "pending" | "sent" | "failed" | "cancelled";
|
|
3159
3376
|
/**
|
|
@@ -3168,7 +3385,7 @@ export interface FindAllParams12 {
|
|
|
3168
3385
|
*/
|
|
3169
3386
|
limit?: number;
|
|
3170
3387
|
}
|
|
3171
|
-
export type
|
|
3388
|
+
export type FindAllResult2 = ScheduledNotificationsListResponseDto;
|
|
3172
3389
|
export interface FindOneParams {
|
|
3173
3390
|
/** MongoDB ObjectId */
|
|
3174
3391
|
id: string;
|
|
@@ -3179,13 +3396,13 @@ export interface UpdateParams6 {
|
|
|
3179
3396
|
/** MongoDB ObjectId */
|
|
3180
3397
|
id: string;
|
|
3181
3398
|
}
|
|
3182
|
-
export type
|
|
3399
|
+
export type UpdateOutput1 = ScheduledNotificationResponseDto;
|
|
3183
3400
|
export type UpdateErrorData = ErrorResponseDto;
|
|
3184
|
-
export interface
|
|
3401
|
+
export interface RemoveParams2 {
|
|
3185
3402
|
/** MongoDB ObjectId */
|
|
3186
3403
|
id: string;
|
|
3187
3404
|
}
|
|
3188
|
-
export type
|
|
3405
|
+
export type RemoveResult = any;
|
|
3189
3406
|
export type RemoveError = ErrorResponseDto;
|
|
3190
3407
|
export interface GetSystemConfigsParams {
|
|
3191
3408
|
/** Filter by config key */
|
|
@@ -3242,8 +3459,14 @@ export interface DeleteDocumentParams {
|
|
|
3242
3459
|
}
|
|
3243
3460
|
export type DeleteDocumentData = any;
|
|
3244
3461
|
export type DeleteDocumentError = ErrorResponseDto;
|
|
3245
|
-
export type
|
|
3246
|
-
export
|
|
3462
|
+
export type ListResult = AppVersionPolicyListResponseDto;
|
|
3463
|
+
export type UpsertData = AppVersionPolicyDto;
|
|
3464
|
+
export interface GetParams2 {
|
|
3465
|
+
platform: "ios" | "android";
|
|
3466
|
+
}
|
|
3467
|
+
export type GetResult = AppVersionPolicyDto;
|
|
3468
|
+
export type GetStatisticsOutput1 = UserStatisticsResponseDto;
|
|
3469
|
+
export interface FindAllParams12 {
|
|
3247
3470
|
/**
|
|
3248
3471
|
* Page number (1-based)
|
|
3249
3472
|
* @min 1
|
|
@@ -3290,7 +3513,7 @@ export interface FindAllParams14 {
|
|
|
3290
3513
|
*/
|
|
3291
3514
|
query?: string;
|
|
3292
3515
|
}
|
|
3293
|
-
export type
|
|
3516
|
+
export type FindAllResult3 = PersonListResponseDto;
|
|
3294
3517
|
export interface ExportUsersParams {
|
|
3295
3518
|
/**
|
|
3296
3519
|
* Field to sort by
|
|
@@ -3331,11 +3554,11 @@ export interface ExportUsersParams {
|
|
|
3331
3554
|
export type ExportUsersData = any;
|
|
3332
3555
|
export type GetSecurityQuestionsByPhoneData = GetSecurityQuestionsByPhoneResponseDto;
|
|
3333
3556
|
export type RegenerateRecoveryCodeData = RegenerateRecoveryCodeByPhoneResponseDto;
|
|
3334
|
-
export interface
|
|
3557
|
+
export interface FindByIdParams6 {
|
|
3335
3558
|
/** Person ID (UUID) */
|
|
3336
3559
|
id: string;
|
|
3337
3560
|
}
|
|
3338
|
-
export type
|
|
3561
|
+
export type FindByIdData1 = PersonDetailDto;
|
|
3339
3562
|
export interface UpdatePersonStatusParams {
|
|
3340
3563
|
/** Person ID (UUID) */
|
|
3341
3564
|
id: string;
|
|
@@ -3346,7 +3569,7 @@ export interface UpdateUserStatusParams {
|
|
|
3346
3569
|
id: string;
|
|
3347
3570
|
}
|
|
3348
3571
|
export type UpdateUserStatusData = any;
|
|
3349
|
-
export interface
|
|
3572
|
+
export interface FindAllParams14 {
|
|
3350
3573
|
/**
|
|
3351
3574
|
* Page number (1-based)
|
|
3352
3575
|
* @default 1
|
|
@@ -3375,14 +3598,60 @@ export interface FindAllParams16 {
|
|
|
3375
3598
|
*/
|
|
3376
3599
|
endDate?: string;
|
|
3377
3600
|
}
|
|
3378
|
-
export type
|
|
3601
|
+
export type FindAllData1 = DlqMessageListResponseDto;
|
|
3379
3602
|
export type PendingByTopicData = DlqPendingByTopicResponseDto[];
|
|
3380
|
-
export interface
|
|
3603
|
+
export interface FindByIdParams8 {
|
|
3381
3604
|
id: string;
|
|
3382
3605
|
}
|
|
3383
|
-
export type
|
|
3606
|
+
export type FindByIdResult1 = DlqMessageResponseDto;
|
|
3384
3607
|
export interface ResolveParams {
|
|
3385
3608
|
id: string;
|
|
3386
3609
|
}
|
|
3387
3610
|
export type ResolveData = DlqMessageResponseDto;
|
|
3611
|
+
export interface ListParams3 {
|
|
3612
|
+
/** Return only active branches */
|
|
3613
|
+
onlyActive?: boolean;
|
|
3614
|
+
}
|
|
3615
|
+
export type ListOutput = BankBranchesListResponseDto;
|
|
3616
|
+
export type CreateResult2 = BankBranchResponseDto;
|
|
3617
|
+
export interface GetByCodeParams {
|
|
3618
|
+
/** 3-digit branch code */
|
|
3619
|
+
code: string;
|
|
3620
|
+
}
|
|
3621
|
+
export type GetByCodeData = BankBranchResponseDto;
|
|
3622
|
+
export interface UpdateParams8 {
|
|
3623
|
+
/** 3-digit branch code */
|
|
3624
|
+
code: string;
|
|
3625
|
+
}
|
|
3626
|
+
export type UpdateResult1 = BankBranchResponseDto;
|
|
3627
|
+
export interface ListParams5 {
|
|
3628
|
+
onlyActive?: boolean;
|
|
3629
|
+
}
|
|
3630
|
+
export type ListData1 = AccountTypesListResponseDto;
|
|
3631
|
+
export interface UpdateParams10 {
|
|
3632
|
+
/** 2-digit account-type code */
|
|
3633
|
+
code: string;
|
|
3634
|
+
}
|
|
3635
|
+
export type UpdateOutput2 = AccountTypeResponseDto;
|
|
3636
|
+
export interface ListParams7 {
|
|
3637
|
+
onlyActive?: boolean;
|
|
3638
|
+
}
|
|
3639
|
+
export type ListResult1 = CurrencyConfigListResponseDto;
|
|
3640
|
+
export type CreateResult3 = CurrencyConfigResponseDto;
|
|
3641
|
+
export interface GetByCodeParams2 {
|
|
3642
|
+
/** ISO 4217 alpha-3 code (e.g. USD) */
|
|
3643
|
+
code: string;
|
|
3644
|
+
}
|
|
3645
|
+
export type GetByCodeResult = CurrencyConfigResponseDto;
|
|
3646
|
+
export interface DeleteParams6 {
|
|
3647
|
+
/** ISO 4217 alpha-3 code */
|
|
3648
|
+
code: string;
|
|
3649
|
+
}
|
|
3650
|
+
export type DeleteResult1 = any;
|
|
3651
|
+
export interface UpdateParams12 {
|
|
3652
|
+
/** ISO 4217 alpha-3 code */
|
|
3653
|
+
code: string;
|
|
3654
|
+
}
|
|
3655
|
+
export type UpdateOutput3 = CurrencyConfigResponseDto;
|
|
3656
|
+
export type IndexData = any;
|
|
3388
3657
|
//# sourceMappingURL=data-contracts.d.ts.map
|