@byted-apaas/server-sdk-node 1.1.13-beta.4 → 1.1.13-beta.6
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/request/openapi.js +3 -2
- package/request/structs.d.ts +4 -2
package/package.json
CHANGED
package/request/openapi.js
CHANGED
|
@@ -956,8 +956,8 @@ class RequestHttp {
|
|
|
956
956
|
if (params && params.endTime && params.endTime > 0) {
|
|
957
957
|
searchParams.end_time = params.endTime;
|
|
958
958
|
}
|
|
959
|
-
if (params && params.
|
|
960
|
-
searchParams.
|
|
959
|
+
if (params && params.pageSize && params.pageSize > 0) {
|
|
960
|
+
searchParams.page_size = params.pageSize;
|
|
961
961
|
}
|
|
962
962
|
if (params && params.pageToken) {
|
|
963
963
|
searchParams.page_token = params.pageToken;
|
|
@@ -1009,6 +1009,7 @@ class RequestHttp {
|
|
|
1009
1009
|
for (let task of approvalInstance.tasks) {
|
|
1010
1010
|
result.tasks.push({
|
|
1011
1011
|
id: task.id,
|
|
1012
|
+
taskType: task.task_type,
|
|
1012
1013
|
taskStatus: task.task_status,
|
|
1013
1014
|
taskStartTime: task.task_start_time,
|
|
1014
1015
|
taskEndTime: task.task_end_time,
|
package/request/structs.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface IApprovalInstanceListReq {
|
|
2
2
|
start_time?: number;
|
|
3
3
|
end_time?: number;
|
|
4
|
-
|
|
4
|
+
page_size?: number;
|
|
5
5
|
page_token?: string;
|
|
6
6
|
}
|
|
7
7
|
export interface IGetApprovalInstanceListResp {
|
|
@@ -19,6 +19,7 @@ export interface IGetApprovalInstanceResp {
|
|
|
19
19
|
status: string;
|
|
20
20
|
tasks: {
|
|
21
21
|
id: number;
|
|
22
|
+
task_type: string;
|
|
22
23
|
task_status: string;
|
|
23
24
|
task_start_time: number;
|
|
24
25
|
task_end_time: number;
|
|
@@ -43,7 +44,7 @@ export interface IApprovalInstanceReq {
|
|
|
43
44
|
export interface IApprovalInstanceListOptions {
|
|
44
45
|
startTime?: number;
|
|
45
46
|
endTime?: number;
|
|
46
|
-
|
|
47
|
+
pageSize?: number;
|
|
47
48
|
pageToken?: string;
|
|
48
49
|
}
|
|
49
50
|
export interface IApprovalInstanceList {
|
|
@@ -81,6 +82,7 @@ export interface IApprovalComment {
|
|
|
81
82
|
}
|
|
82
83
|
export interface IApprovalTask {
|
|
83
84
|
id: number;
|
|
85
|
+
taskType: string;
|
|
84
86
|
taskStatus: string;
|
|
85
87
|
taskStartTime: number;
|
|
86
88
|
taskEndTime: number;
|