@ysgroup/contracts 0.1.29 → 0.1.31
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/package.json +1 -1
- package/src/index.ts +42 -81
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -391,19 +391,18 @@ export interface AccountServerRef {
|
|
|
391
391
|
"port"?: number; /** 端口 */
|
|
392
392
|
}
|
|
393
393
|
|
|
394
|
-
export interface ServerRef {
|
|
395
|
-
"name"?: string; /** 名称 */
|
|
396
|
-
"type"?: ServerType | null; /** 类型 */
|
|
397
|
-
"host"?: string; /** 地址 */
|
|
398
|
-
"port"?: number; /** 端口 */
|
|
399
|
-
}
|
|
400
|
-
|
|
401
394
|
export interface NavCategory {
|
|
402
395
|
"name": string; /** 分类名 */
|
|
403
396
|
"fund_names"?: string[]; /** 基金名称 */
|
|
404
397
|
"fund_code"?: string; /** 基金代码 */
|
|
405
398
|
}
|
|
406
399
|
|
|
400
|
+
export interface TradingNodeAddress {
|
|
401
|
+
"name"?: string; /** 名称 */
|
|
402
|
+
"ip"?: string; /** IP */
|
|
403
|
+
"port"?: number; /** Port */
|
|
404
|
+
}
|
|
405
|
+
|
|
407
406
|
export interface Team {
|
|
408
407
|
"_id"?: string; /** 主键 */
|
|
409
408
|
"created_at"?: number; /** 创建时间 */
|
|
@@ -617,9 +616,6 @@ export interface TradingCounter {
|
|
|
617
616
|
"broker_id": string; /** 开户公司ID */
|
|
618
617
|
"name": string; /** 柜台名称 */
|
|
619
618
|
"counter_supplier_id"?: string; /** 柜台供应商ID */
|
|
620
|
-
"server_room_id"?: string; /** 机房ID */
|
|
621
|
-
"server_ips"?: ServerRef[]; /** 服务IP列表;sensitivity=restricted(仅风险提示,不决定应用授权) */
|
|
622
|
-
"exchanges"?: ExchangeType[]; /** 支持交易所 */
|
|
623
619
|
"memo"?: string; /** 备注 */
|
|
624
620
|
}
|
|
625
621
|
|
|
@@ -631,9 +627,9 @@ export interface TradingNode {
|
|
|
631
627
|
"broker_id": string; /** 开户公司ID */
|
|
632
628
|
"trading_counter_id": string; /** 交易柜台ID */
|
|
633
629
|
"branch_name": string; /** 营业部名称 */
|
|
634
|
-
"exchange_id": ExchangeType; /** 交易市场 */
|
|
635
630
|
"node_name": string; /** 节点名称 */
|
|
636
631
|
"server_room": string; /** 所在机房 */
|
|
632
|
+
"addresses"?: TradingNodeAddress[]; /** 节点IP */
|
|
637
633
|
"memo"?: string; /** 备注 */
|
|
638
634
|
}
|
|
639
635
|
|
|
@@ -644,6 +640,7 @@ export interface TradingSeat {
|
|
|
644
640
|
"deleted_at"?: null | number; /** 软删除时间 */
|
|
645
641
|
"trading_node_id": string; /** 交易节点ID */
|
|
646
642
|
"seat_no": string; /** 席位号 */
|
|
643
|
+
"exchange_id": ExchangeType; /** 交易市场 */
|
|
647
644
|
"memo"?: string; /** 备注 */
|
|
648
645
|
}
|
|
649
646
|
|
|
@@ -3107,36 +3104,6 @@ export const AUTHORIZATION_FIELD_CATALOG = {
|
|
|
3107
3104
|
"system_required": false,
|
|
3108
3105
|
"blocked_reason": ""
|
|
3109
3106
|
},
|
|
3110
|
-
{
|
|
3111
|
-
"key": "server_room_id",
|
|
3112
|
-
"title": "机房ID",
|
|
3113
|
-
"kind": "original",
|
|
3114
|
-
"type": "<class 'str'>",
|
|
3115
|
-
"sensitivity": "public",
|
|
3116
|
-
"selectable": true,
|
|
3117
|
-
"system_required": false,
|
|
3118
|
-
"blocked_reason": ""
|
|
3119
|
-
},
|
|
3120
|
-
{
|
|
3121
|
-
"key": "server_ips",
|
|
3122
|
-
"title": "服务IP列表",
|
|
3123
|
-
"kind": "original",
|
|
3124
|
-
"type": "list[ys_base.contracts.master.ServerRef]",
|
|
3125
|
-
"sensitivity": "restricted",
|
|
3126
|
-
"selectable": true,
|
|
3127
|
-
"system_required": false,
|
|
3128
|
-
"blocked_reason": ""
|
|
3129
|
-
},
|
|
3130
|
-
{
|
|
3131
|
-
"key": "exchanges",
|
|
3132
|
-
"title": "支持交易所",
|
|
3133
|
-
"kind": "original",
|
|
3134
|
-
"type": "list[ys_base.contracts.enums.ExchangeType]",
|
|
3135
|
-
"sensitivity": "public",
|
|
3136
|
-
"selectable": true,
|
|
3137
|
-
"system_required": false,
|
|
3138
|
-
"blocked_reason": ""
|
|
3139
|
-
},
|
|
3140
3107
|
{
|
|
3141
3108
|
"key": "memo",
|
|
3142
3109
|
"title": "备注",
|
|
@@ -3220,18 +3187,18 @@ export const AUTHORIZATION_FIELD_CATALOG = {
|
|
|
3220
3187
|
"blocked_reason": ""
|
|
3221
3188
|
},
|
|
3222
3189
|
{
|
|
3223
|
-
"key": "
|
|
3224
|
-
"title": "
|
|
3190
|
+
"key": "node_name",
|
|
3191
|
+
"title": "节点名称",
|
|
3225
3192
|
"kind": "original",
|
|
3226
|
-
"type": "<
|
|
3193
|
+
"type": "<class 'str'>",
|
|
3227
3194
|
"sensitivity": "public",
|
|
3228
3195
|
"selectable": true,
|
|
3229
3196
|
"system_required": false,
|
|
3230
3197
|
"blocked_reason": ""
|
|
3231
3198
|
},
|
|
3232
3199
|
{
|
|
3233
|
-
"key": "
|
|
3234
|
-
"title": "
|
|
3200
|
+
"key": "server_room",
|
|
3201
|
+
"title": "所在机房",
|
|
3235
3202
|
"kind": "original",
|
|
3236
3203
|
"type": "<class 'str'>",
|
|
3237
3204
|
"sensitivity": "public",
|
|
@@ -3240,10 +3207,10 @@ export const AUTHORIZATION_FIELD_CATALOG = {
|
|
|
3240
3207
|
"blocked_reason": ""
|
|
3241
3208
|
},
|
|
3242
3209
|
{
|
|
3243
|
-
"key": "
|
|
3244
|
-
"title": "
|
|
3210
|
+
"key": "addresses",
|
|
3211
|
+
"title": "节点IP",
|
|
3245
3212
|
"kind": "original",
|
|
3246
|
-
"type": "
|
|
3213
|
+
"type": "list[ys_base.contracts.master.TradingNodeAddress]",
|
|
3247
3214
|
"sensitivity": "public",
|
|
3248
3215
|
"selectable": true,
|
|
3249
3216
|
"system_required": false,
|
|
@@ -3321,6 +3288,16 @@ export const AUTHORIZATION_FIELD_CATALOG = {
|
|
|
3321
3288
|
"system_required": false,
|
|
3322
3289
|
"blocked_reason": ""
|
|
3323
3290
|
},
|
|
3291
|
+
{
|
|
3292
|
+
"key": "exchange_id",
|
|
3293
|
+
"title": "交易市场",
|
|
3294
|
+
"kind": "original",
|
|
3295
|
+
"type": "<enum 'ExchangeType'>",
|
|
3296
|
+
"sensitivity": "public",
|
|
3297
|
+
"selectable": true,
|
|
3298
|
+
"system_required": false,
|
|
3299
|
+
"blocked_reason": ""
|
|
3300
|
+
},
|
|
3324
3301
|
{
|
|
3325
3302
|
"key": "memo",
|
|
3326
3303
|
"title": "备注",
|
|
@@ -4632,30 +4609,6 @@ export const FIELD_SPECS = {
|
|
|
4632
4609
|
"required": false,
|
|
4633
4610
|
"sensitivity": "public"
|
|
4634
4611
|
},
|
|
4635
|
-
{
|
|
4636
|
-
"key": "server_room_id",
|
|
4637
|
-
"title": "机房ID",
|
|
4638
|
-
"widget": "text",
|
|
4639
|
-
"enum": null,
|
|
4640
|
-
"required": false,
|
|
4641
|
-
"sensitivity": "public"
|
|
4642
|
-
},
|
|
4643
|
-
{
|
|
4644
|
-
"key": "server_ips",
|
|
4645
|
-
"title": "服务IP列表",
|
|
4646
|
-
"widget": "tags",
|
|
4647
|
-
"enum": null,
|
|
4648
|
-
"required": false,
|
|
4649
|
-
"sensitivity": "restricted"
|
|
4650
|
-
},
|
|
4651
|
-
{
|
|
4652
|
-
"key": "exchanges",
|
|
4653
|
-
"title": "支持交易所",
|
|
4654
|
-
"widget": "enum-multi",
|
|
4655
|
-
"enum": "ExchangeType",
|
|
4656
|
-
"required": false,
|
|
4657
|
-
"sensitivity": "public"
|
|
4658
|
-
},
|
|
4659
4612
|
{
|
|
4660
4613
|
"key": "memo",
|
|
4661
4614
|
"title": "备注",
|
|
@@ -4690,14 +4643,6 @@ export const FIELD_SPECS = {
|
|
|
4690
4643
|
"required": true,
|
|
4691
4644
|
"sensitivity": "public"
|
|
4692
4645
|
},
|
|
4693
|
-
{
|
|
4694
|
-
"key": "exchange_id",
|
|
4695
|
-
"title": "交易市场",
|
|
4696
|
-
"widget": "enum",
|
|
4697
|
-
"enum": "ExchangeType",
|
|
4698
|
-
"required": true,
|
|
4699
|
-
"sensitivity": "public"
|
|
4700
|
-
},
|
|
4701
4646
|
{
|
|
4702
4647
|
"key": "node_name",
|
|
4703
4648
|
"title": "节点名称",
|
|
@@ -4714,6 +4659,14 @@ export const FIELD_SPECS = {
|
|
|
4714
4659
|
"required": true,
|
|
4715
4660
|
"sensitivity": "public"
|
|
4716
4661
|
},
|
|
4662
|
+
{
|
|
4663
|
+
"key": "addresses",
|
|
4664
|
+
"title": "节点IP",
|
|
4665
|
+
"widget": "tags",
|
|
4666
|
+
"enum": null,
|
|
4667
|
+
"required": false,
|
|
4668
|
+
"sensitivity": "public"
|
|
4669
|
+
},
|
|
4717
4670
|
{
|
|
4718
4671
|
"key": "memo",
|
|
4719
4672
|
"title": "备注",
|
|
@@ -4740,6 +4693,14 @@ export const FIELD_SPECS = {
|
|
|
4740
4693
|
"required": true,
|
|
4741
4694
|
"sensitivity": "public"
|
|
4742
4695
|
},
|
|
4696
|
+
{
|
|
4697
|
+
"key": "exchange_id",
|
|
4698
|
+
"title": "交易市场",
|
|
4699
|
+
"widget": "enum",
|
|
4700
|
+
"enum": "ExchangeType",
|
|
4701
|
+
"required": true,
|
|
4702
|
+
"sensitivity": "public"
|
|
4703
|
+
},
|
|
4743
4704
|
{
|
|
4744
4705
|
"key": "memo",
|
|
4745
4706
|
"title": "备注",
|