@ysgroup/contracts 0.1.10 → 0.1.12
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 +22 -56
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -624,24 +624,6 @@ export interface UserApp {
|
|
|
624
624
|
"admin"?: boolean; /** 应用管理员 */
|
|
625
625
|
}
|
|
626
626
|
|
|
627
|
-
export interface AccountApp {
|
|
628
|
-
"_id"?: string; /** 主键 */
|
|
629
|
-
"created_at"?: number; /** 创建时间 */
|
|
630
|
-
"updated_at"?: number; /** 更新时间 */
|
|
631
|
-
"deleted_at"?: null | number; /** 软删除时间 */
|
|
632
|
-
"account_id": string; /** 账户ID */
|
|
633
|
-
"app_id": string; /** 应用ID */
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
export interface OwnerApp {
|
|
637
|
-
"_id"?: string; /** 主键 */
|
|
638
|
-
"created_at"?: number; /** 创建时间 */
|
|
639
|
-
"updated_at"?: number; /** 更新时间 */
|
|
640
|
-
"deleted_at"?: null | number; /** 软删除时间 */
|
|
641
|
-
"owner_id": string; /** 主体ID */
|
|
642
|
-
"app_id": string; /** 应用ID */
|
|
643
|
-
}
|
|
644
|
-
|
|
645
627
|
export interface AccountStrategy {
|
|
646
628
|
"_id"?: string; /** 主键 */
|
|
647
629
|
"created_at"?: number; /** 创建时间 */
|
|
@@ -783,8 +765,6 @@ export const TABLES = {
|
|
|
783
765
|
"counter_suppliers": "CounterSupplier",
|
|
784
766
|
"server_rooms": "ServerRoom",
|
|
785
767
|
"user_app": "UserApp",
|
|
786
|
-
"account_app": "AccountApp",
|
|
787
|
-
"owner_app": "OwnerApp",
|
|
788
768
|
"account_strategy": "AccountStrategy",
|
|
789
769
|
"owner_strategy": "OwnerStrategy",
|
|
790
770
|
"project_owner": "ProjectOwner",
|
|
@@ -937,6 +917,15 @@ export const AUTHORIZATION_TABLE_META = {
|
|
|
937
917
|
}
|
|
938
918
|
} as const;
|
|
939
919
|
export const DERIVED_FIELD_SPECS = {
|
|
920
|
+
"owners": [
|
|
921
|
+
{
|
|
922
|
+
"key": "team_name",
|
|
923
|
+
"title": "团队名称",
|
|
924
|
+
"source_table": "teams",
|
|
925
|
+
"source_field": "name",
|
|
926
|
+
"dependency_policy": "same_record"
|
|
927
|
+
}
|
|
928
|
+
],
|
|
940
929
|
"users": [
|
|
941
930
|
{
|
|
942
931
|
"key": "owner_name",
|
|
@@ -1441,6 +1430,19 @@ export const AUTHORIZATION_FIELD_CATALOG = {
|
|
|
1441
1430
|
"selectable": true,
|
|
1442
1431
|
"system_required": false,
|
|
1443
1432
|
"blocked_reason": ""
|
|
1433
|
+
},
|
|
1434
|
+
{
|
|
1435
|
+
"key": "team_name",
|
|
1436
|
+
"title": "团队名称",
|
|
1437
|
+
"source_table": "teams",
|
|
1438
|
+
"source_field": "name",
|
|
1439
|
+
"dependency_policy": "same_record",
|
|
1440
|
+
"kind": "derived",
|
|
1441
|
+
"type": "derived",
|
|
1442
|
+
"sensitivity": "public",
|
|
1443
|
+
"selectable": true,
|
|
1444
|
+
"system_required": false,
|
|
1445
|
+
"blocked_reason": ""
|
|
1444
1446
|
}
|
|
1445
1447
|
],
|
|
1446
1448
|
"accounts": [
|
|
@@ -4324,42 +4326,6 @@ export const FIELD_SPECS = {
|
|
|
4324
4326
|
"sensitivity": "public"
|
|
4325
4327
|
}
|
|
4326
4328
|
],
|
|
4327
|
-
"account_app": [
|
|
4328
|
-
{
|
|
4329
|
-
"key": "account_id",
|
|
4330
|
-
"title": "账户ID",
|
|
4331
|
-
"widget": "text",
|
|
4332
|
-
"enum": null,
|
|
4333
|
-
"required": true,
|
|
4334
|
-
"sensitivity": "public"
|
|
4335
|
-
},
|
|
4336
|
-
{
|
|
4337
|
-
"key": "app_id",
|
|
4338
|
-
"title": "应用ID",
|
|
4339
|
-
"widget": "text",
|
|
4340
|
-
"enum": null,
|
|
4341
|
-
"required": true,
|
|
4342
|
-
"sensitivity": "public"
|
|
4343
|
-
}
|
|
4344
|
-
],
|
|
4345
|
-
"owner_app": [
|
|
4346
|
-
{
|
|
4347
|
-
"key": "owner_id",
|
|
4348
|
-
"title": "主体ID",
|
|
4349
|
-
"widget": "text",
|
|
4350
|
-
"enum": null,
|
|
4351
|
-
"required": true,
|
|
4352
|
-
"sensitivity": "public"
|
|
4353
|
-
},
|
|
4354
|
-
{
|
|
4355
|
-
"key": "app_id",
|
|
4356
|
-
"title": "应用ID",
|
|
4357
|
-
"widget": "text",
|
|
4358
|
-
"enum": null,
|
|
4359
|
-
"required": true,
|
|
4360
|
-
"sensitivity": "public"
|
|
4361
|
-
}
|
|
4362
|
-
],
|
|
4363
4329
|
"account_strategy": [
|
|
4364
4330
|
{
|
|
4365
4331
|
"key": "account_id",
|