szpt-driver-api 1.0.78 → 1.0.80

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/auth.d.ts CHANGED
@@ -138,6 +138,22 @@ export declare class BaseHint {
138
138
  export declare class BindPhoneRequest {
139
139
  code?: string;
140
140
  }
141
+ export declare class CacheSimpleStats {
142
+ /** @format int64 */
143
+ evictionCount: number;
144
+ /** @format int64 */
145
+ hitCount: number;
146
+ /** @format int64 */
147
+ loadExceptionCount: number;
148
+ /** @format int64 */
149
+ loadSuccessCount: number;
150
+ /** @format int64 */
151
+ missCount: number;
152
+ /** @format int64 */
153
+ size: number;
154
+ /** @format int64 */
155
+ totalLoadTime: number;
156
+ }
141
157
  export declare class CdtRequest {
142
158
  request?: string;
143
159
  }
@@ -617,22 +633,6 @@ export declare class FileObjectMeta {
617
633
  export declare class GenDeviceIdResult {
618
634
  deviceId: string;
619
635
  }
620
- export declare class HandlerStoreStats {
621
- /** @format int64 */
622
- evictionCount: number;
623
- /** @format int64 */
624
- hitCount: number;
625
- /** @format int64 */
626
- loadExceptionCount: number;
627
- /** @format int64 */
628
- loadSuccessCount: number;
629
- /** @format int64 */
630
- missCount: number;
631
- /** @format int64 */
632
- size: number;
633
- /** @format int64 */
634
- totalLoadTime: number;
635
- }
636
636
  export declare class Health {
637
637
  description: string;
638
638
  details: any;
@@ -828,7 +828,6 @@ export declare class LedgerSimple {
828
828
  department: string;
829
829
  /** 说明 */
830
830
  description: string;
831
- digest: EntityDigest;
832
831
  /**
833
832
  * 请求完成时间
834
833
  * @format int64
@@ -896,6 +895,9 @@ export declare class LedgerWriteRequest {
896
895
  /** 请求ID */
897
896
  traceId?: string;
898
897
  }
898
+ export declare class LocationUploadHint {
899
+ from?: string;
900
+ }
899
901
  export declare class LocationUploadRequest {
900
902
  /** 坐标点(高德坐标) */
901
903
  point?: Point;
@@ -993,6 +995,106 @@ export declare class MultiUserTrackTimeRangeQuery {
993
995
  size?: number;
994
996
  userQueryList?: UserTrackQuery[];
995
997
  }
998
+ export declare class NotifyQueryBean {
999
+ /** 按照微服务名称 */
1000
+ appName?: string;
1001
+ /**
1002
+ * 结束时间
1003
+ * @format int64
1004
+ */
1005
+ endTime?: number;
1006
+ /** @format int64 */
1007
+ id?: number;
1008
+ /** 通知内容 */
1009
+ notifyContent?: string;
1010
+ /** 通知级别 */
1011
+ notifyLevel?: "HIGH" | "LOW" | "MEDIUM" | "URGENT";
1012
+ /** 通知类型 */
1013
+ notifyType?: string;
1014
+ orderBy?: string[];
1015
+ /** @format int32 */
1016
+ pageIndex?: number;
1017
+ /** @format int32 */
1018
+ pageSize?: number;
1019
+ /**
1020
+ * 开始时间
1021
+ * @format int64
1022
+ */
1023
+ startTime?: number;
1024
+ /** 按照用户名搜索 */
1025
+ username?: string;
1026
+ }
1027
+ export declare class NotifyReq {
1028
+ /** 应用名称 */
1029
+ appName?: string;
1030
+ /** @format int64 */
1031
+ id?: number;
1032
+ /** 通知内容 */
1033
+ notifyContent?: string;
1034
+ /** 通知级别 */
1035
+ notifyLevel?: "HIGH" | "LOW" | "MEDIUM" | "URGENT";
1036
+ /** 通知元数据 */
1037
+ notifyMeta?: any;
1038
+ /**
1039
+ * 通知时间
1040
+ * @format int64
1041
+ */
1042
+ notifyTime?: number;
1043
+ /** 通知类型 */
1044
+ notifyType?: string;
1045
+ /** 被通知用户列表 */
1046
+ notifyUserList?: NotifyUserReq[];
1047
+ }
1048
+ export declare class NotifyRes {
1049
+ /** 应用名称 */
1050
+ appName: string;
1051
+ /** @format int64 */
1052
+ id: number;
1053
+ /** 通知内容 */
1054
+ notifyContent: string;
1055
+ /** 通知级别 */
1056
+ notifyLevel: "HIGH" | "LOW" | "MEDIUM" | "URGENT";
1057
+ /** 通知元数据 */
1058
+ notifyMeta: any;
1059
+ /**
1060
+ * 通知时间
1061
+ * @format int64
1062
+ */
1063
+ notifyTime: number;
1064
+ /** 通知类型 */
1065
+ notifyType: string;
1066
+ /** 被通知用户列表 */
1067
+ notifyUserList: NotifyUserRes[];
1068
+ }
1069
+ export declare class NotifyUpdateStatus {
1070
+ /**
1071
+ * 通知id
1072
+ * @format int64
1073
+ */
1074
+ id?: number;
1075
+ /** 已读状态 */
1076
+ notifyStatus?: "READ" | "UNREAD";
1077
+ }
1078
+ export declare class NotifyUserReq {
1079
+ /**
1080
+ * 已读时间
1081
+ * @format int64
1082
+ */
1083
+ readTime?: number;
1084
+ /** 用户名 */
1085
+ username?: string;
1086
+ }
1087
+ export declare class NotifyUserRes {
1088
+ /** 通知状态 */
1089
+ notifyStatus: "READ" | "UNREAD";
1090
+ /**
1091
+ * 已读时间
1092
+ * @format int64
1093
+ */
1094
+ readTime: number;
1095
+ /** 用户名 */
1096
+ username: string;
1097
+ }
996
1098
  export declare class PasswordForm {
997
1099
  password?: string;
998
1100
  }
@@ -1996,6 +2098,11 @@ export declare class UserPhoneLoginForm {
1996
2098
  /** 手机号码 */
1997
2099
  phone?: string;
1998
2100
  }
2101
+ export declare class UserPoint {
2102
+ hint?: LocationUploadHint;
2103
+ point?: Point;
2104
+ username?: string;
2105
+ }
1999
2106
  export declare class UserProfile {
2000
2107
  additional: UserProfileAdditional;
2001
2108
  avatar: string;
@@ -2599,6 +2706,11 @@ export declare class PageResultLedgerSimple {
2599
2706
  /** @format int64 */
2600
2707
  total: number;
2601
2708
  }
2709
+ export declare class PageResultNotify {
2710
+ list: NotifyRes[];
2711
+ /** @format int64 */
2712
+ total: number;
2713
+ }
2602
2714
  export declare class PageResultThirdPlatformEntity {
2603
2715
  list: ThirdPlatformEntity[];
2604
2716
  /** @format int64 */
@@ -3092,6 +3204,7 @@ export declare class OnlineTimeRangeByUsernameParams {
3092
3204
  /** username */
3093
3205
  username: string;
3094
3206
  }
3207
+ export declare type PointBatchPayload = UserPoint[];
3095
3208
  export declare class TraceOfMineParams {
3096
3209
  /** 日期,格式:YYYY-MM-DD */
3097
3210
  day: string;
@@ -3404,7 +3517,7 @@ export declare class GetRoleParams {
3404
3517
  scope?: string;
3405
3518
  type?: "Auditing" | "Common" | "Security" | "System" | "Work";
3406
3519
  }
3407
- export declare class ExistParams6 {
3520
+ export declare class ExistParams9 {
3408
3521
  /** @format int64 */
3409
3522
  createUser?: number;
3410
3523
  department?: string;
@@ -3600,7 +3713,7 @@ export declare class ToOssParams {
3600
3713
  export declare class UploadPayload {
3601
3714
  file?: File;
3602
3715
  }
3603
- export declare class ByIdParams2 {
3716
+ export declare class ByIdParams7 {
3604
3717
  /** format */
3605
3718
  format?: string;
3606
3719
  /** id */
@@ -3908,7 +4021,11 @@ export declare class PutBusinessDepartmentUserDepartmentsByUsernameParams {
3908
4021
  /** user */
3909
4022
  user: string;
3910
4023
  }
3911
- export declare class ExistParams1 {
4024
+ export declare class CacheClearParams {
4025
+ /** username */
4026
+ username: string;
4027
+ }
4028
+ export declare class ExistParams7 {
3912
4029
  /** 根据可管理部门id查询。支持多选 */
3913
4030
  adminDepartmentId?: number[];
3914
4031
  /** 基于业务部门业务标识匹配 */
@@ -4150,7 +4267,7 @@ interface HttpClient {
4150
4267
  }
4151
4268
  /**
4152
4269
  * @title 授权服务
4153
- * @version 1.2.42
4270
+ * @version 1.2.49
4154
4271
  * @baseUrl //192.168.200.12:5000
4155
4272
  *
4156
4273
  * 授权服务
@@ -5169,12 +5286,12 @@ declare class Api {
5169
5286
  * @name LieyingHandlerStoreStats
5170
5287
  * @summary [猎鹰]获取上传处理状态
5171
5288
  * @request GET:/auth/location/lieying/handler-store-stats
5172
- * @response `200` `HandlerStoreStats` OK
5289
+ * @response `200` `CacheSimpleStats` OK
5173
5290
  * @response `401` `void` Unauthorized
5174
5291
  * @response `403` `void` Forbidden
5175
5292
  * @response `404` `void` Not Found
5176
5293
  */
5177
- lieyingHandlerStoreStats: (axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<HandlerStoreStats>;
5294
+ lieyingHandlerStoreStats: (axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<CacheSimpleStats>;
5178
5295
  /**
5179
5296
  * @description 所需权限:supreme:all
5180
5297
  *
@@ -5310,6 +5427,20 @@ declare class Api {
5310
5427
  * @response `404` `void` Not Found
5311
5428
  */
5312
5429
  point: (data: Point, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<void>;
5430
+ /**
5431
+ * No description
5432
+ *
5433
+ * @tags location
5434
+ * @name PointBatch
5435
+ * @summary 批量上传坐标点
5436
+ * @request POST:/auth/location/point-batch
5437
+ * @response `200` `void` OK
5438
+ * @response `201` `void` Created
5439
+ * @response `401` `void` Unauthorized
5440
+ * @response `403` `void` Forbidden
5441
+ * @response `404` `void` Not Found
5442
+ */
5443
+ pointBatch: (data: PointBatchPayload, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<void>;
5313
5444
  /**
5314
5445
  * No description
5315
5446
  *
@@ -5648,6 +5779,90 @@ declare class Api {
5648
5779
  */
5649
5780
  putUnbind: (query: PutUnbindParams, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<void>;
5650
5781
  };
5782
+ notify: {
5783
+ /**
5784
+ * @description 所需权限:auth:notify:create
5785
+ *
5786
+ * @tags notify
5787
+ * @name Notify
5788
+ * @summary 创建通知记录
5789
+ * @request POST:/auth/notify
5790
+ * @response `200` `NotifyRes` OK
5791
+ * @response `201` `void` Created
5792
+ * @response `401` `void` Unauthorized
5793
+ * @response `403` `void` Forbidden
5794
+ * @response `404` `void` Not Found
5795
+ */
5796
+ notify: (notify: NotifyReq, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<NotifyRes>;
5797
+ /**
5798
+ * @description 所需权限:auth:notify:manage
5799
+ *
5800
+ * @tags notify
5801
+ * @name List
5802
+ * @summary 分页查询通知记录
5803
+ * @request POST:/auth/notify/list
5804
+ * @response `200` `PageResultNotify` OK
5805
+ * @response `201` `void` Created
5806
+ * @response `401` `void` Unauthorized
5807
+ * @response `403` `void` Forbidden
5808
+ * @response `404` `void` Not Found
5809
+ */
5810
+ list: (queryBean: NotifyQueryBean, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<PageResultNotify>;
5811
+ /**
5812
+ * No description
5813
+ *
5814
+ * @tags notify
5815
+ * @name GetById
5816
+ * @summary 获取通知记录详情
5817
+ * @request GET:/auth/notify/{id}
5818
+ * @response `200` `NotifyRes` OK
5819
+ * @response `401` `void` Unauthorized
5820
+ * @response `403` `void` Forbidden
5821
+ * @response `404` `void` Not Found
5822
+ */
5823
+ getById: (id: number, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<NotifyRes>;
5824
+ /**
5825
+ * No description
5826
+ *
5827
+ * @tags notify
5828
+ * @name PutById
5829
+ * @summary 修改通知记录
5830
+ * @request PUT:/auth/notify/{id}
5831
+ * @response `200` `NotifyRes` OK
5832
+ * @response `201` `void` Created
5833
+ * @response `401` `void` Unauthorized
5834
+ * @response `403` `void` Forbidden
5835
+ * @response `404` `void` Not Found
5836
+ */
5837
+ putById: (id: number, notify: NotifyReq, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<NotifyRes>;
5838
+ /**
5839
+ * @description 所需权限:auth:notify:delete
5840
+ *
5841
+ * @tags notify
5842
+ * @name DeleteById
5843
+ * @summary 删除通知记录
5844
+ * @request DELETE:/auth/notify/{id}
5845
+ * @response `200` `void` OK
5846
+ * @response `204` `void` No Content
5847
+ * @response `401` `void` Unauthorized
5848
+ * @response `403` `void` Forbidden
5849
+ */
5850
+ deleteById: (id: number, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<void>;
5851
+ /**
5852
+ * No description
5853
+ *
5854
+ * @tags notify
5855
+ * @name PutStatusById
5856
+ * @summary 修改通知状态
5857
+ * @request PUT:/auth/notify/{id}/status
5858
+ * @response `200` `void` OK
5859
+ * @response `201` `void` Created
5860
+ * @response `401` `void` Unauthorized
5861
+ * @response `403` `void` Forbidden
5862
+ * @response `404` `void` Not Found
5863
+ */
5864
+ putStatusById: (id: number, notify: NotifyUpdateStatus, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<void>;
5865
+ };
5651
5866
  organization: {
5652
5867
  /**
5653
5868
  * @description 所需权限:department:list
@@ -6546,7 +6761,7 @@ declare class Api {
6546
6761
  * @response `403` `void` Forbidden
6547
6762
  * @response `404` `void` Not Found
6548
6763
  */
6549
- exist: (query: ExistParams6, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<boolean>;
6764
+ exist: (query: ExistParams9, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<boolean>;
6550
6765
  /**
6551
6766
  * @description 所需权限:role:list
6552
6767
  *
@@ -7159,7 +7374,7 @@ declare class Api {
7159
7374
  * @response `403` `void` Forbidden
7160
7375
  * @response `404` `void` Not Found
7161
7376
  */
7162
- byId: ({ id, ...query }: ByIdParams2, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<Resource>;
7377
+ byId: ({ id, ...query }: ByIdParams7, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<Resource>;
7163
7378
  /**
7164
7379
  * No description
7165
7380
  *
@@ -7848,15 +8063,28 @@ declare class Api {
7848
8063
  * No description
7849
8064
  *
7850
8065
  * @tags user
7851
- * @name ClearCacheByUsername
8066
+ * @name CacheClear
7852
8067
  * @summary 手动清除指定用户名的缓存数据
7853
- * @request GET:/auth/user/clear-cache/{username}
8068
+ * @request GET:/auth/user/cache/clear
7854
8069
  * @response `200` `void` OK
7855
8070
  * @response `401` `void` Unauthorized
7856
8071
  * @response `403` `void` Forbidden
7857
8072
  * @response `404` `void` Not Found
7858
8073
  */
7859
- clearCacheByUsername: (username: string, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<void>;
8074
+ cacheClear: (query: CacheClearParams, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<void>;
8075
+ /**
8076
+ * No description
8077
+ *
8078
+ * @tags user
8079
+ * @name CacheStats
8080
+ * @summary 查看缓存情况
8081
+ * @request GET:/auth/user/cache/stats
8082
+ * @response `200` `Record<string, CacheSimpleStats>` OK
8083
+ * @response `401` `void` Unauthorized
8084
+ * @response `403` `void` Forbidden
8085
+ * @response `404` `void` Not Found
8086
+ */
8087
+ cacheStats: (axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<Record<string, CacheSimpleStats>>;
7860
8088
  /**
7861
8089
  * @description 所需权限:user:find
7862
8090
  *
@@ -7869,7 +8097,7 @@ declare class Api {
7869
8097
  * @response `403` `void` Forbidden
7870
8098
  * @response `404` `void` Not Found
7871
8099
  */
7872
- exist: (query: ExistParams1, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<boolean>;
8100
+ exist: (query: ExistParams7, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<boolean>;
7873
8101
  /**
7874
8102
  * @description 所需权限:user:admin
7875
8103
  *