Skip to content

Commit 924e0ff

Browse files
committed
Update Projex Workitem API.
1 parent f941ba3 commit 924e0ff

File tree

2 files changed

+132
-1
lines changed

2 files changed

+132
-1
lines changed

devops-20210625/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/devops20210625",
3-
"version": "1.1.15",
3+
"version": "1.1.16",
44
"description": "",
55
"main": "dist/client.js",
66
"scripts": {

devops-20210625/src/client.ts

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4711,6 +4711,65 @@ export class ListWorkItemWorkFlowStatusResponse extends $tea.Model {
47114711
}
47124712
}
47134713

4714+
export class ListWorkitemTimeResponseBody extends $tea.Model {
4715+
code?: number;
4716+
errorCode?: string;
4717+
errorMsg?: string;
4718+
requestId?: string;
4719+
success?: boolean;
4720+
workitemTime?: ListWorkitemTimeResponseBodyWorkitemTime[];
4721+
static names(): { [key: string]: string } {
4722+
return {
4723+
code: 'code',
4724+
errorCode: 'errorCode',
4725+
errorMsg: 'errorMsg',
4726+
requestId: 'requestId',
4727+
success: 'success',
4728+
workitemTime: 'workitemTime',
4729+
};
4730+
}
4731+
4732+
static types(): { [key: string]: any } {
4733+
return {
4734+
code: 'number',
4735+
errorCode: 'string',
4736+
errorMsg: 'string',
4737+
requestId: 'string',
4738+
success: 'boolean',
4739+
workitemTime: { 'type': 'array', 'itemType': ListWorkitemTimeResponseBodyWorkitemTime },
4740+
};
4741+
}
4742+
4743+
constructor(map?: { [key: string]: any }) {
4744+
super(map);
4745+
}
4746+
}
4747+
4748+
export class ListWorkitemTimeResponse extends $tea.Model {
4749+
headers: { [key: string]: string };
4750+
statusCode: number;
4751+
body: ListWorkitemTimeResponseBody;
4752+
static names(): { [key: string]: string } {
4753+
return {
4754+
headers: 'headers',
4755+
statusCode: 'statusCode',
4756+
body: 'body',
4757+
};
4758+
}
4759+
4760+
static types(): { [key: string]: any } {
4761+
return {
4762+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4763+
statusCode: 'number',
4764+
body: ListWorkitemTimeResponseBody,
4765+
};
4766+
}
4767+
4768+
constructor(map?: { [key: string]: any }) {
4769+
super(map);
4770+
}
4771+
}
4772+
47144773
export class ListWorkitemsRequest extends $tea.Model {
47154774
category?: string;
47164775
conditions?: string;
@@ -9858,6 +9917,52 @@ export class ListWorkItemWorkFlowStatusResponseBodyStatuses extends $tea.Model {
98589917
}
98599918
}
98609919

9920+
export class ListWorkitemTimeResponseBodyWorkitemTime extends $tea.Model {
9921+
actualTime?: number;
9922+
description?: string;
9923+
gmtCreate?: number;
9924+
gmtEnd?: number;
9925+
gmtModified?: number;
9926+
gmtStart?: number;
9927+
identifier?: string;
9928+
recordUser?: string;
9929+
type?: string;
9930+
workitemIdentifier?: string;
9931+
static names(): { [key: string]: string } {
9932+
return {
9933+
actualTime: 'actualTime',
9934+
description: 'description',
9935+
gmtCreate: 'gmtCreate',
9936+
gmtEnd: 'gmtEnd',
9937+
gmtModified: 'gmtModified',
9938+
gmtStart: 'gmtStart',
9939+
identifier: 'identifier',
9940+
recordUser: 'recordUser',
9941+
type: 'type',
9942+
workitemIdentifier: 'workitemIdentifier',
9943+
};
9944+
}
9945+
9946+
static types(): { [key: string]: any } {
9947+
return {
9948+
actualTime: 'number',
9949+
description: 'string',
9950+
gmtCreate: 'number',
9951+
gmtEnd: 'number',
9952+
gmtModified: 'number',
9953+
gmtStart: 'number',
9954+
identifier: 'string',
9955+
recordUser: 'string',
9956+
type: 'string',
9957+
workitemIdentifier: 'string',
9958+
};
9959+
}
9960+
9961+
constructor(map?: { [key: string]: any }) {
9962+
super(map);
9963+
}
9964+
}
9965+
98619966
export class ListWorkitemsResponseBodyWorkitems extends $tea.Model {
98629967
assignedTo?: string;
98639968
categoryIdentifier?: string;
@@ -12663,6 +12768,32 @@ export default class Client extends OpenApi {
1266312768
return $tea.cast<ListWorkItemWorkFlowStatusResponse>(await this.callApi(params, req, runtime), new ListWorkItemWorkFlowStatusResponse({}));
1266412769
}
1266512770

12771+
async listWorkitemTime(organizationId: string, workitemId: string): Promise<ListWorkitemTimeResponse> {
12772+
let runtime = new $Util.RuntimeOptions({ });
12773+
let headers : {[key: string ]: string} = { };
12774+
return await this.listWorkitemTimeWithOptions(organizationId, workitemId, headers, runtime);
12775+
}
12776+
12777+
async listWorkitemTimeWithOptions(organizationId: string, workitemId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListWorkitemTimeResponse> {
12778+
organizationId = OpenApiUtil.getEncodeParam(organizationId);
12779+
workitemId = OpenApiUtil.getEncodeParam(workitemId);
12780+
let req = new $OpenApi.OpenApiRequest({
12781+
headers: headers,
12782+
});
12783+
let params = new $OpenApi.Params({
12784+
action: "ListWorkitemTime",
12785+
version: "2021-06-25",
12786+
protocol: "HTTPS",
12787+
pathname: `/organization/${organizationId}/workitems/${workitemId}/time/list`,
12788+
method: "GET",
12789+
authType: "AK",
12790+
style: "ROA",
12791+
reqBodyType: "json",
12792+
bodyType: "json",
12793+
});
12794+
return $tea.cast<ListWorkitemTimeResponse>(await this.callApi(params, req, runtime), new ListWorkitemTimeResponse({}));
12795+
}
12796+
1266612797
async listWorkitems(organizationId: string, request: ListWorkitemsRequest): Promise<ListWorkitemsResponse> {
1266712798
let runtime = new $Util.RuntimeOptions({ });
1266812799
let headers : {[key: string ]: string} = { };

0 commit comments

Comments
 (0)