fx-spec-hub 0.0.31 → 0.0.33

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.
@@ -191,6 +191,9 @@
191
191
  },
192
192
  {
193
193
  "name": "ComplianceDashboard"
194
+ },
195
+ {
196
+ "name": "TicketDashboard"
194
197
  }
195
198
  ],
196
199
  "paths": {
@@ -859,6 +862,50 @@
859
862
  "security": []
860
863
  }
861
864
  },
865
+ "/api/v1/common/getDefaultFees": {
866
+ "post": {
867
+ "summary": "获取默认手续费配置",
868
+ "deprecated": false,
869
+ "description": "获取默认 MakerFee 和 CheckerFee",
870
+ "tags": [
871
+ "通用接口"
872
+ ],
873
+ "parameters": [],
874
+ "responses": {
875
+ "200": {
876
+ "description": "OK",
877
+ "content": {
878
+ "*/*": {
879
+ "schema": {
880
+ "allOf": [
881
+ {
882
+ "$ref": "#/components/schemas/response.Response"
883
+ },
884
+ {
885
+ "type": "object",
886
+ "properties": {
887
+ "data": {
888
+ "type": "object",
889
+ "additionalProperties": {
890
+ "type": "string"
891
+ },
892
+ "properties": {}
893
+ }
894
+ }
895
+ }
896
+ ]
897
+ }
898
+ }
899
+ },
900
+ "headers": {}
901
+ }
902
+ },
903
+ "security": [],
904
+ "X-Type": {
905
+ "type": "BUS"
906
+ }
907
+ }
908
+ },
862
909
  "/api/v1/dashboard/alarm": {
863
910
  "post": {
864
911
  "summary": "Dashboard 业务通知",
@@ -25244,6 +25291,41 @@
25244
25291
  "security": []
25245
25292
  }
25246
25293
  },
25294
+ "/api/v1/ticket/reset": {
25295
+ "post": {
25296
+ "summary": "重置工单(取消工单并回退业务状态到初始)",
25297
+ "deprecated": false,
25298
+ "description": "取消运行中的工单并触发业务回调将上游状态重置到初始状态,适用于 STR 等需要重新审核的场景",
25299
+ "tags": [
25300
+ "Ticket"
25301
+ ],
25302
+ "parameters": [],
25303
+ "requestBody": {
25304
+ "content": {
25305
+ "application/json": {
25306
+ "schema": {
25307
+ "$ref": "#/components/schemas/models.ResetTicketReq"
25308
+ }
25309
+ }
25310
+ },
25311
+ "required": true
25312
+ },
25313
+ "responses": {
25314
+ "200": {
25315
+ "description": "OK",
25316
+ "content": {
25317
+ "application/json": {
25318
+ "schema": {
25319
+ "$ref": "#/components/schemas/response.Response"
25320
+ }
25321
+ }
25322
+ },
25323
+ "headers": {}
25324
+ }
25325
+ },
25326
+ "security": []
25327
+ }
25328
+ },
25247
25329
  "/api/v1/cms": {
25248
25330
  "get": {
25249
25331
  "summary": "获取数据",
@@ -25561,15 +25643,205 @@
25561
25643
  }
25562
25644
  }
25563
25645
  },
25564
- "/api/v1/compliance/ticket/overview": {
25646
+ "/api/v1/compliance/data/refresh-time": {
25565
25647
  "post": {
25566
- "summary": "工单看板",
25648
+ "summary": "看板更新时间",
25567
25649
  "deprecated": false,
25568
- "description": "获取工单看板全量数据(今日汇总 + 6 个模块统计)",
25650
+ "description": "获取合规数据看板和工单看板的最近刷新时间",
25569
25651
  "tags": [
25570
25652
  "ComplianceDashboard"
25571
25653
  ],
25572
25654
  "parameters": [],
25655
+ "responses": {
25656
+ "200": {
25657
+ "description": "OK",
25658
+ "content": {
25659
+ "*/*": {
25660
+ "schema": {
25661
+ "allOf": [
25662
+ {
25663
+ "$ref": "#/components/schemas/response.Response"
25664
+ },
25665
+ {
25666
+ "type": "object",
25667
+ "properties": {
25668
+ "data": {
25669
+ "$ref": "#/components/schemas/models.DashboardRefreshTimeResp"
25670
+ }
25671
+ }
25672
+ }
25673
+ ]
25674
+ }
25675
+ }
25676
+ },
25677
+ "headers": {}
25678
+ }
25679
+ },
25680
+ "security": [],
25681
+ "X-Type": {
25682
+ "type": "BUS"
25683
+ }
25684
+ }
25685
+ },
25686
+ "/api/v1/compliance/ticket/module/cdd-edd": {
25687
+ "post": {
25688
+ "summary": "CDD&EDD 模块统计",
25689
+ "deprecated": false,
25690
+ "description": "获取 CDD&EDD 模块工单统计(总数、审核中、审核通过、审核拒绝、通过率)",
25691
+ "tags": [
25692
+ "TicketDashboard"
25693
+ ],
25694
+ "parameters": [],
25695
+ "requestBody": {
25696
+ "content": {
25697
+ "application/json": {
25698
+ "schema": {
25699
+ "$ref": "#/components/schemas/models.TicketDashboardReq"
25700
+ }
25701
+ }
25702
+ },
25703
+ "required": true
25704
+ },
25705
+ "responses": {
25706
+ "200": {
25707
+ "description": "OK",
25708
+ "content": {
25709
+ "*/*": {
25710
+ "schema": {
25711
+ "allOf": [
25712
+ {
25713
+ "$ref": "#/components/schemas/response.Response"
25714
+ },
25715
+ {
25716
+ "type": "object",
25717
+ "properties": {
25718
+ "data": {
25719
+ "$ref": "#/components/schemas/models.TicketModuleItem"
25720
+ }
25721
+ }
25722
+ }
25723
+ ]
25724
+ }
25725
+ }
25726
+ },
25727
+ "headers": {}
25728
+ }
25729
+ },
25730
+ "security": [],
25731
+ "X-Type": {
25732
+ "type": "BUS"
25733
+ }
25734
+ }
25735
+ },
25736
+ "/api/v1/compliance/ticket/module/name-screening": {
25737
+ "post": {
25738
+ "summary": "Name Screening 模块统计",
25739
+ "deprecated": false,
25740
+ "description": "获取 Name Screening 模块工单统计(总数、审核中、审核通过、审核拒绝、通过率)",
25741
+ "tags": [
25742
+ "TicketDashboard"
25743
+ ],
25744
+ "parameters": [],
25745
+ "requestBody": {
25746
+ "content": {
25747
+ "application/json": {
25748
+ "schema": {
25749
+ "$ref": "#/components/schemas/models.TicketDashboardReq"
25750
+ }
25751
+ }
25752
+ },
25753
+ "required": true
25754
+ },
25755
+ "responses": {
25756
+ "200": {
25757
+ "description": "OK",
25758
+ "content": {
25759
+ "*/*": {
25760
+ "schema": {
25761
+ "allOf": [
25762
+ {
25763
+ "$ref": "#/components/schemas/response.Response"
25764
+ },
25765
+ {
25766
+ "type": "object",
25767
+ "properties": {
25768
+ "data": {
25769
+ "$ref": "#/components/schemas/models.TicketModuleItem"
25770
+ }
25771
+ }
25772
+ }
25773
+ ]
25774
+ }
25775
+ }
25776
+ },
25777
+ "headers": {}
25778
+ }
25779
+ },
25780
+ "security": [],
25781
+ "X-Type": {
25782
+ "type": "BUS"
25783
+ }
25784
+ }
25785
+ },
25786
+ "/api/v1/compliance/ticket/module/others": {
25787
+ "post": {
25788
+ "summary": "其他模块统计",
25789
+ "deprecated": false,
25790
+ "description": "获取 STR Rule Alert、VA Screening、Access Control 三个模块的工单统计",
25791
+ "tags": [
25792
+ "TicketDashboard"
25793
+ ],
25794
+ "parameters": [],
25795
+ "requestBody": {
25796
+ "content": {
25797
+ "application/json": {
25798
+ "schema": {
25799
+ "$ref": "#/components/schemas/models.TicketDashboardReq"
25800
+ }
25801
+ }
25802
+ },
25803
+ "required": true
25804
+ },
25805
+ "responses": {
25806
+ "200": {
25807
+ "description": "OK",
25808
+ "content": {
25809
+ "*/*": {
25810
+ "schema": {
25811
+ "allOf": [
25812
+ {
25813
+ "$ref": "#/components/schemas/response.Response"
25814
+ },
25815
+ {
25816
+ "type": "object",
25817
+ "properties": {
25818
+ "data": {
25819
+ "$ref": "#/components/schemas/models.TicketModuleListResp"
25820
+ }
25821
+ }
25822
+ }
25823
+ ]
25824
+ }
25825
+ }
25826
+ },
25827
+ "headers": {}
25828
+ }
25829
+ },
25830
+ "security": [],
25831
+ "X-Type": {
25832
+ "type": "BUS"
25833
+ }
25834
+ }
25835
+ },
25836
+ "/api/v1/compliance/ticket/module/pi": {
25837
+ "post": {
25838
+ "summary": "PI 模块统计",
25839
+ "deprecated": false,
25840
+ "description": "获取 PI 模块工单统计(总数、审核中、审核通过、审核拒绝、通过率)",
25841
+ "tags": [
25842
+ "TicketDashboard"
25843
+ ],
25844
+ "parameters": [],
25573
25845
  "requestBody": {
25574
25846
  "content": {
25575
25847
  "application/json": {
@@ -25594,7 +25866,57 @@
25594
25866
  "type": "object",
25595
25867
  "properties": {
25596
25868
  "data": {
25597
- "$ref": "#/components/schemas/models.TicketDashboardModulesResp"
25869
+ "$ref": "#/components/schemas/models.TicketModuleItem"
25870
+ }
25871
+ }
25872
+ }
25873
+ ]
25874
+ }
25875
+ }
25876
+ },
25877
+ "headers": {}
25878
+ }
25879
+ },
25880
+ "security": [],
25881
+ "X-Type": {
25882
+ "type": "BUS"
25883
+ }
25884
+ }
25885
+ },
25886
+ "/api/v1/compliance/ticket/summary": {
25887
+ "post": {
25888
+ "summary": "工单汇总",
25889
+ "deprecated": false,
25890
+ "description": "获取今日待处理总数、今日已处理总数、整体处理比例",
25891
+ "tags": [
25892
+ "TicketDashboard"
25893
+ ],
25894
+ "parameters": [],
25895
+ "requestBody": {
25896
+ "content": {
25897
+ "application/json": {
25898
+ "schema": {
25899
+ "$ref": "#/components/schemas/models.TicketDashboardReq"
25900
+ }
25901
+ }
25902
+ },
25903
+ "required": true
25904
+ },
25905
+ "responses": {
25906
+ "200": {
25907
+ "description": "OK",
25908
+ "content": {
25909
+ "*/*": {
25910
+ "schema": {
25911
+ "allOf": [
25912
+ {
25913
+ "$ref": "#/components/schemas/response.Response"
25914
+ },
25915
+ {
25916
+ "type": "object",
25917
+ "properties": {
25918
+ "data": {
25919
+ "$ref": "#/components/schemas/models.TicketDashboardSummaryResp"
25598
25920
  }
25599
25921
  }
25600
25922
  }
@@ -25637,6 +25959,47 @@
25637
25959
  },
25638
25960
  "components": {
25639
25961
  "schemas": {
25962
+ "models.ResetTicketReq": {
25963
+ "type": "object",
25964
+ "required": [
25965
+ "ticketNo"
25966
+ ],
25967
+ "properties": {
25968
+ "remark": {
25969
+ "description": "重置原因",
25970
+ "type": "string"
25971
+ },
25972
+ "ticketNo": {
25973
+ "description": "工单编号",
25974
+ "type": "string"
25975
+ }
25976
+ }
25977
+ },
25978
+ "models.DashboardRefreshTimeResp": {
25979
+ "type": "object",
25980
+ "properties": {
25981
+ "dataRefreshedAt": {
25982
+ "description": "合规数据看板最近刷新时间(UTC),前端按需转 HKT 展示",
25983
+ "type": "string"
25984
+ },
25985
+ "ticketRefreshedAt": {
25986
+ "description": "工单看板最近刷新时间(UTC),前端按需转 HKT 展示",
25987
+ "type": "string"
25988
+ }
25989
+ }
25990
+ },
25991
+ "models.TicketModuleListResp": {
25992
+ "type": "object",
25993
+ "properties": {
25994
+ "modules": {
25995
+ "description": "模块列表",
25996
+ "type": "array",
25997
+ "items": {
25998
+ "$ref": "#/components/schemas/models.TicketModuleItem"
25999
+ }
26000
+ }
26001
+ }
26002
+ },
25640
26003
  "models.TicketModuleItem": {
25641
26004
  "type": "object",
25642
26005
  "properties": {
@@ -25690,6 +26053,10 @@
25690
26053
  "models.TicketDashboardReq": {
25691
26054
  "type": "object",
25692
26055
  "properties": {
26056
+ "customerType": {
26057
+ "description": "客户类型: ALL / PERSONAL / CORPORATE,默认 ALL",
26058
+ "type": "string"
26059
+ },
25693
26060
  "datePreset": {
25694
26061
  "description": "today / last_7_days / last_30_days / custom",
25695
26062
  "type": "string"
@@ -26846,6 +27213,9 @@
26846
27213
  "instanceId": {
26847
27214
  "type": "string"
26848
27215
  },
27216
+ "level": {
27217
+ "type": "integer"
27218
+ },
26849
27219
  "reason": {
26850
27220
  "type": "string"
26851
27221
  },
@@ -26854,6 +27224,14 @@
26854
27224
  },
26855
27225
  "role": {
26856
27226
  "type": "string"
27227
+ },
27228
+ "variables": {
27229
+ "description": "审批时工作流变量快照",
27230
+ "type": "object",
27231
+ "additionalProperties": {
27232
+ "type": "string"
27233
+ },
27234
+ "properties": {}
26857
27235
  }
26858
27236
  }
26859
27237
  },
@@ -26999,6 +27377,9 @@
26999
27377
  "instanceId": {
27000
27378
  "type": "string"
27001
27379
  },
27380
+ "level": {
27381
+ "type": "integer"
27382
+ },
27002
27383
  "reason": {
27003
27384
  "type": "string"
27004
27385
  },
@@ -27720,6 +28101,9 @@
27720
28101
  },
27721
28102
  "role": {
27722
28103
  "type": "string"
28104
+ },
28105
+ "variables": {
28106
+ "$ref": "#/components/schemas/types.JSONMap"
27723
28107
  }
27724
28108
  }
27725
28109
  },
@@ -30044,6 +30428,10 @@
30044
30428
  "userId"
30045
30429
  ],
30046
30430
  "properties": {
30431
+ "accountId": {
30432
+ "description": "accountId",
30433
+ "type": "string"
30434
+ },
30047
30435
  "attachments": {
30048
30436
  "description": "附件",
30049
30437
  "type": "array",
@@ -30073,6 +30461,10 @@
30073
30461
  "userId"
30074
30462
  ],
30075
30463
  "properties": {
30464
+ "accountId": {
30465
+ "description": "accountId",
30466
+ "type": "string"
30467
+ },
30076
30468
  "attachments": {
30077
30469
  "description": "附件",
30078
30470
  "type": "array",
@@ -32143,6 +32535,14 @@
32143
32535
  "$ref": "#/components/schemas/models.AttachmentItem"
32144
32536
  }
32145
32537
  },
32538
+ "before": {
32539
+ "description": "before",
32540
+ "type": "object",
32541
+ "additionalProperties": {
32542
+ "type": "string"
32543
+ },
32544
+ "properties": {}
32545
+ },
32146
32546
  "remark": {
32147
32547
  "description": "备注",
32148
32548
  "type": "string"
@@ -33526,6 +33926,13 @@
33526
33926
  "models.WalletFuseReq": {
33527
33927
  "type": "object",
33528
33928
  "properties": {
33929
+ "attachments": {
33930
+ "description": "附件",
33931
+ "type": "array",
33932
+ "items": {
33933
+ "$ref": "#/components/schemas/models.AttachmentItem"
33934
+ }
33935
+ },
33529
33936
  "network": {
33530
33937
  "description": "网络 全部传递ALL",
33531
33938
  "type": "string"
@@ -33535,7 +33942,7 @@
33535
33942
  "type": "string"
33536
33943
  },
33537
33944
  "state": {
33538
- "description": "当前状态‘",
33945
+ "description": "当前状态'",
33539
33946
  "type": "boolean"
33540
33947
  }
33541
33948
  }
@@ -41050,6 +41457,18 @@
41050
41457
  "avatar": {
41051
41458
  "type": "string"
41052
41459
  },
41460
+ "before": {
41461
+ "description": "修改前的值",
41462
+ "type": "object",
41463
+ "additionalProperties": {
41464
+ "type": "string"
41465
+ },
41466
+ "properties": {}
41467
+ },
41468
+ "comment": {
41469
+ "type": "string",
41470
+ "maxLength": 100
41471
+ },
41053
41472
  "createBy": {
41054
41473
  "type": "integer"
41055
41474
  },
@@ -41069,7 +41488,8 @@
41069
41488
  "type": "integer"
41070
41489
  },
41071
41490
  "remark": {
41072
- "type": "string"
41491
+ "type": "string",
41492
+ "maxLength": 100
41073
41493
  },
41074
41494
  "roleId": {
41075
41495
  "type": "integer"
@@ -41106,6 +41526,10 @@
41106
41526
  "avatar": {
41107
41527
  "type": "string"
41108
41528
  },
41529
+ "comment": {
41530
+ "type": "string",
41531
+ "maxLength": 100
41532
+ },
41109
41533
  "createBy": {
41110
41534
  "type": "integer"
41111
41535
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fx-spec-hub",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "description": "API 规范中心/控制台",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/index.js",