@harnessio/react-rmg-service-client 0.2.0 → 0.4.0
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/dist/rmg-service/src/services/hooks/useGetReleaseReleaseIdApprovalsQuery.d.ts +29 -0
- package/dist/rmg-service/src/services/hooks/useGetReleaseReleaseIdApprovalsQuery.js +14 -0
- package/dist/rmg-service/src/services/index.d.ts +12 -0
- package/dist/rmg-service/src/services/index.js +1 -0
- package/dist/rmg-service/src/services/responses/ReleaseApprovalsResponseResponse.d.ts +16 -0
- package/dist/rmg-service/src/services/responses/ReleaseApprovalsResponseResponse.js +1 -0
- package/dist/rmg-service/src/services/schemas/ApprovalInfoDto.d.ts +13 -0
- package/dist/rmg-service/src/services/schemas/ApprovalInfoDto.js +1 -0
- package/dist/rmg-service/src/services/schemas/ApprovedByDto.d.ts +10 -0
- package/dist/rmg-service/src/services/schemas/ApprovedByDto.js +4 -0
- package/dist/rmg-service/src/services/schemas/ReleaseActivity.d.ts +6 -131
- package/dist/rmg-service/src/services/schemas/ReleaseApprovalDto.d.ts +14 -0
- package/dist/rmg-service/src/services/schemas/ReleaseApprovalDto.js +1 -0
- package/dist/rmg-service/src/services/schemas/ReleaseApprovalType.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/ReleaseApprovalType.js +4 -0
- package/dist/rmg-service/src/services/schemas/StageInfoDetailsDto.d.ts +25 -0
- package/dist/rmg-service/src/services/schemas/StageInfoDetailsDto.js +4 -0
- package/dist/rmg-service/src/services/schemas/StageInfoDto.d.ts +27 -0
- package/dist/rmg-service/src/services/schemas/StageInfoDto.js +1 -0
- package/dist/rmg-service/src/services/schemas/StepInfoDetailsDto.d.ts +38 -0
- package/dist/rmg-service/src/services/schemas/StepInfoDetailsDto.js +4 -0
- package/dist/rmg-service/src/services/schemas/StepInfoDto.d.ts +27 -0
- package/dist/rmg-service/src/services/schemas/StepInfoDto.js +1 -0
- package/dist/rmg-service/src/services/schemas/StepInfoType.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/TriggeredByDto.d.ts +19 -0
- package/dist/rmg-service/src/services/schemas/TriggeredByDto.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ReleaseApprovalsResponseResponse } from '../responses/ReleaseApprovalsResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetReleaseReleaseIdApprovalsQueryPathParams {
|
|
7
|
+
releaseId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetReleaseReleaseIdApprovalsQueryQueryParams {
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
searchTerm?: string;
|
|
12
|
+
status?: string[];
|
|
13
|
+
page?: number;
|
|
14
|
+
size?: number;
|
|
15
|
+
sort?: string[];
|
|
16
|
+
}
|
|
17
|
+
export interface GetReleaseReleaseIdApprovalsQueryHeaderParams {
|
|
18
|
+
'Harness-Account': string;
|
|
19
|
+
}
|
|
20
|
+
export type GetReleaseReleaseIdApprovalsOkResponse = ResponseWithPagination<ReleaseApprovalsResponseResponse>;
|
|
21
|
+
export type GetReleaseReleaseIdApprovalsErrorResponse = ErrorResponseResponse;
|
|
22
|
+
export interface GetReleaseReleaseIdApprovalsProps extends GetReleaseReleaseIdApprovalsQueryPathParams, Omit<FetcherOptions<GetReleaseReleaseIdApprovalsQueryQueryParams, unknown, GetReleaseReleaseIdApprovalsQueryHeaderParams>, 'url'> {
|
|
23
|
+
queryParams: GetReleaseReleaseIdApprovalsQueryQueryParams;
|
|
24
|
+
}
|
|
25
|
+
export declare function getReleaseReleaseIdApprovals(props: GetReleaseReleaseIdApprovalsProps): Promise<GetReleaseReleaseIdApprovalsOkResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Fetch approvals activity for a release
|
|
28
|
+
*/
|
|
29
|
+
export declare function useGetReleaseReleaseIdApprovalsQuery(props: GetReleaseReleaseIdApprovalsProps, options?: Omit<UseQueryOptions<GetReleaseReleaseIdApprovalsOkResponse, GetReleaseReleaseIdApprovalsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetReleaseReleaseIdApprovalsOkResponse, import("..").Error>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getReleaseReleaseIdApprovals(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/release/${props.releaseId}/approvals`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Fetch approvals activity for a release
|
|
11
|
+
*/
|
|
12
|
+
export function useGetReleaseReleaseIdApprovalsQuery(props, options) {
|
|
13
|
+
return useQuery(['get-release-releaseId-approvals', props.releaseId, props.queryParams], ({ signal }) => getReleaseReleaseIdApprovals(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -9,6 +9,8 @@ export type { GetReleaseGroupSummaryErrorResponse, GetReleaseGroupSummaryOkRespo
|
|
|
9
9
|
export { getReleaseGroupSummary, useGetReleaseGroupSummaryQuery, } from './hooks/useGetReleaseGroupSummaryQuery';
|
|
10
10
|
export type { GetReleaseErrorResponse, GetReleaseOkResponse, GetReleaseProps, GetReleaseQueryPathParams, } from './hooks/useGetReleaseQuery';
|
|
11
11
|
export { getRelease, useGetReleaseQuery } from './hooks/useGetReleaseQuery';
|
|
12
|
+
export type { GetReleaseReleaseIdApprovalsErrorResponse, GetReleaseReleaseIdApprovalsOkResponse, GetReleaseReleaseIdApprovalsProps, GetReleaseReleaseIdApprovalsQueryPathParams, GetReleaseReleaseIdApprovalsQueryQueryParams, } from './hooks/useGetReleaseReleaseIdApprovalsQuery';
|
|
13
|
+
export { getReleaseReleaseIdApprovals, useGetReleaseReleaseIdApprovalsQuery, } from './hooks/useGetReleaseReleaseIdApprovalsQuery';
|
|
12
14
|
export type { GetReleaseReleaseIdEnvironmentDashboardErrorResponse, GetReleaseReleaseIdEnvironmentDashboardOkResponse, GetReleaseReleaseIdEnvironmentDashboardProps, GetReleaseReleaseIdEnvironmentDashboardQueryPathParams, GetReleaseReleaseIdEnvironmentDashboardQueryQueryParams, } from './hooks/useGetReleaseReleaseIdEnvironmentDashboardQuery';
|
|
13
15
|
export { getReleaseReleaseIdEnvironmentDashboard, useGetReleaseReleaseIdEnvironmentDashboardQuery, } from './hooks/useGetReleaseReleaseIdEnvironmentDashboardQuery';
|
|
14
16
|
export type { PostReleaseGroupErrorResponse, PostReleaseGroupMutationQueryParams, PostReleaseGroupOkResponse, PostReleaseGroupProps, PostReleaseGroupRequestBody, } from './hooks/usePostReleaseGroupMutation';
|
|
@@ -26,11 +28,14 @@ export type { EnvironmentDashboardResponseResponse } from './responses/Environme
|
|
|
26
28
|
export type { ErrorResponseResponse } from './responses/ErrorResponseResponse';
|
|
27
29
|
export type { GetReleaseGroupResponseResponse } from './responses/GetReleaseGroupResponseResponse';
|
|
28
30
|
export type { ReleaseActivitiesResponseResponse } from './responses/ReleaseActivitiesResponseResponse';
|
|
31
|
+
export type { ReleaseApprovalsResponseResponse } from './responses/ReleaseApprovalsResponseResponse';
|
|
29
32
|
export type { ReleaseDetailsResponseResponse } from './responses/ReleaseDetailsResponseResponse';
|
|
30
33
|
export type { ReleaseGroupSummaryResponseResponse } from './responses/ReleaseGroupSummaryResponseResponse';
|
|
31
34
|
export type { ReleaseSummaryResponseResponse } from './responses/ReleaseSummaryResponseResponse';
|
|
32
35
|
export type { UpdateReleaseGroupResponseResponse } from './responses/UpdateReleaseGroupResponseResponse';
|
|
33
36
|
export type { ActivityType } from './schemas/ActivityType';
|
|
37
|
+
export type { ApprovalInfoDto } from './schemas/ApprovalInfoDto';
|
|
38
|
+
export type { ApprovedByDto } from './schemas/ApprovedByDto';
|
|
34
39
|
export type { EnvironmentDashboardDto } from './schemas/EnvironmentDashboardDto';
|
|
35
40
|
export type { EnvironmentType } from './schemas/EnvironmentType';
|
|
36
41
|
export type { Error } from './schemas/Error';
|
|
@@ -39,6 +44,8 @@ export type { GetReleaseGroupResponse } from './schemas/GetReleaseGroupResponse'
|
|
|
39
44
|
export type { Pageable } from './schemas/Pageable';
|
|
40
45
|
export type { PageableSort } from './schemas/PageableSort';
|
|
41
46
|
export type { ReleaseActivity } from './schemas/ReleaseActivity';
|
|
47
|
+
export type { ReleaseApprovalDto } from './schemas/ReleaseApprovalDto';
|
|
48
|
+
export type { ReleaseApprovalType } from './schemas/ReleaseApprovalType';
|
|
42
49
|
export type { ReleaseCadence } from './schemas/ReleaseCadence';
|
|
43
50
|
export type { ReleaseComponent } from './schemas/ReleaseComponent';
|
|
44
51
|
export type { ReleaseEntity } from './schemas/ReleaseEntity';
|
|
@@ -48,7 +55,12 @@ export type { ReleaseGroupYaml } from './schemas/ReleaseGroupYaml';
|
|
|
48
55
|
export type { ReleaseType } from './schemas/ReleaseType';
|
|
49
56
|
export type { RepeatUnit } from './schemas/RepeatUnit';
|
|
50
57
|
export type { ServiceInfoDto } from './schemas/ServiceInfoDto';
|
|
58
|
+
export type { StageInfoDetailsDto } from './schemas/StageInfoDetailsDto';
|
|
59
|
+
export type { StageInfoDto } from './schemas/StageInfoDto';
|
|
51
60
|
export type { StageInfoType } from './schemas/StageInfoType';
|
|
52
61
|
export type { Status } from './schemas/Status';
|
|
62
|
+
export type { StepInfoDetailsDto } from './schemas/StepInfoDetailsDto';
|
|
63
|
+
export type { StepInfoDto } from './schemas/StepInfoDto';
|
|
53
64
|
export type { StepInfoType } from './schemas/StepInfoType';
|
|
54
65
|
export type { TriggerType } from './schemas/TriggerType';
|
|
66
|
+
export type { TriggeredByDto } from './schemas/TriggeredByDto';
|
|
@@ -3,6 +3,7 @@ export { getReleaseActivities, useGetReleaseActivitiesQuery, } from './hooks/use
|
|
|
3
3
|
export { getReleaseGroup, useGetReleaseGroupQuery } from './hooks/useGetReleaseGroupQuery';
|
|
4
4
|
export { getReleaseGroupSummary, useGetReleaseGroupSummaryQuery, } from './hooks/useGetReleaseGroupSummaryQuery';
|
|
5
5
|
export { getRelease, useGetReleaseQuery } from './hooks/useGetReleaseQuery';
|
|
6
|
+
export { getReleaseReleaseIdApprovals, useGetReleaseReleaseIdApprovalsQuery, } from './hooks/useGetReleaseReleaseIdApprovalsQuery';
|
|
6
7
|
export { getReleaseReleaseIdEnvironmentDashboard, useGetReleaseReleaseIdEnvironmentDashboardQuery, } from './hooks/useGetReleaseReleaseIdEnvironmentDashboardQuery';
|
|
7
8
|
export { postReleaseGroup, usePostReleaseGroupMutation } from './hooks/usePostReleaseGroupMutation';
|
|
8
9
|
export { postReleaseSummary, usePostReleaseSummaryMutation, } from './hooks/usePostReleaseSummaryMutation';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReleaseApprovalDto } from '../schemas/ReleaseApprovalDto';
|
|
2
|
+
import type { Pageable } from '../schemas/Pageable';
|
|
3
|
+
import type { PageableSort } from '../schemas/PageableSort';
|
|
4
|
+
export interface ReleaseApprovalsResponseResponse {
|
|
5
|
+
content: ReleaseApprovalDto[];
|
|
6
|
+
empty: boolean;
|
|
7
|
+
first: boolean;
|
|
8
|
+
last: boolean;
|
|
9
|
+
number: number;
|
|
10
|
+
numberOfElements: number;
|
|
11
|
+
pageable: Pageable;
|
|
12
|
+
size: number;
|
|
13
|
+
sort: PageableSort;
|
|
14
|
+
totalElements: number;
|
|
15
|
+
totalPages: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ApprovedByDto } from '../schemas/ApprovedByDto';
|
|
2
|
+
export interface ApprovalInfoDto {
|
|
3
|
+
/**
|
|
4
|
+
* Timestamp of the approval.
|
|
5
|
+
* @format int64
|
|
6
|
+
*/
|
|
7
|
+
approvedAt: number;
|
|
8
|
+
approvedBy: ApprovedByDto;
|
|
9
|
+
/**
|
|
10
|
+
* Comments provided during the approval.
|
|
11
|
+
*/
|
|
12
|
+
comments?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type { TriggerType } from '../schemas/TriggerType';
|
|
1
|
+
import type { StageInfoDto } from '../schemas/StageInfoDto';
|
|
2
|
+
import type { StepInfoDto } from '../schemas/StepInfoDto';
|
|
3
|
+
import type { TriggeredByDto } from '../schemas/TriggeredByDto';
|
|
5
4
|
import type { ActivityType } from '../schemas/ActivityType';
|
|
6
5
|
export interface ReleaseActivity {
|
|
7
6
|
/**
|
|
@@ -32,132 +31,8 @@ export interface ReleaseActivity {
|
|
|
32
31
|
* Project identifier.
|
|
33
32
|
*/
|
|
34
33
|
projectIdentifier: string;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
stageInfo?: {
|
|
39
|
-
/**
|
|
40
|
-
* End timestamp of the stage.
|
|
41
|
-
*/
|
|
42
|
-
endTs?: number;
|
|
43
|
-
/**
|
|
44
|
-
* Identifier of the stage.
|
|
45
|
-
*/
|
|
46
|
-
identifier: string;
|
|
47
|
-
/**
|
|
48
|
-
* Info related to stage
|
|
49
|
-
*/
|
|
50
|
-
info?: {
|
|
51
|
-
/**
|
|
52
|
-
* Display name of the artifact.
|
|
53
|
-
*/
|
|
54
|
-
artifactDisplayName?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Identifier of the environment.
|
|
57
|
-
*/
|
|
58
|
-
envId?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Name of the environment.
|
|
61
|
-
*/
|
|
62
|
-
envName?: string;
|
|
63
|
-
/**
|
|
64
|
-
* Identifier of the service.
|
|
65
|
-
*/
|
|
66
|
-
serviceId?: string;
|
|
67
|
-
/**
|
|
68
|
-
* Name of the service.
|
|
69
|
-
*/
|
|
70
|
-
serviceName?: string;
|
|
71
|
-
} | null;
|
|
72
|
-
/**
|
|
73
|
-
* Name of the stage.
|
|
74
|
-
*/
|
|
75
|
-
name: string;
|
|
76
|
-
/**
|
|
77
|
-
* Start timestamp of the stage.
|
|
78
|
-
*/
|
|
79
|
-
startTs?: number;
|
|
80
|
-
status: Status;
|
|
81
|
-
type: StageInfoType;
|
|
82
|
-
} | null;
|
|
83
|
-
/**
|
|
84
|
-
* Details about the step activity (provided if type is step).
|
|
85
|
-
*/
|
|
86
|
-
stepInfo?: {
|
|
87
|
-
/**
|
|
88
|
-
* End timestamp of the step.
|
|
89
|
-
*/
|
|
90
|
-
endTs?: number;
|
|
91
|
-
/**
|
|
92
|
-
* Identifier of the step.
|
|
93
|
-
*/
|
|
94
|
-
identifier: string;
|
|
95
|
-
/**
|
|
96
|
-
* Provided if `type` is Approval.
|
|
97
|
-
*/
|
|
98
|
-
info?: {
|
|
99
|
-
/**
|
|
100
|
-
* Action taken for the approval.
|
|
101
|
-
*/
|
|
102
|
-
approvalAction?: string;
|
|
103
|
-
/**
|
|
104
|
-
* Timestamp of the approval.
|
|
105
|
-
* @format int64
|
|
106
|
-
*/
|
|
107
|
-
approvedAt?: number;
|
|
108
|
-
/**
|
|
109
|
-
* Email of the person who approved the step.
|
|
110
|
-
*/
|
|
111
|
-
approvedByEmail?: string;
|
|
112
|
-
/**
|
|
113
|
-
* Name of the person who approved the step.
|
|
114
|
-
*/
|
|
115
|
-
approvedByName?: string;
|
|
116
|
-
/**
|
|
117
|
-
* Comments provided during the approval.
|
|
118
|
-
*/
|
|
119
|
-
comments?: string;
|
|
120
|
-
/**
|
|
121
|
-
* Type of the Jira issue.
|
|
122
|
-
*/
|
|
123
|
-
issueType?: string;
|
|
124
|
-
/**
|
|
125
|
-
* URL of the Jira ticket.
|
|
126
|
-
*/
|
|
127
|
-
jiraUrl?: string;
|
|
128
|
-
/**
|
|
129
|
-
* Status of the Jira ticket.
|
|
130
|
-
*/
|
|
131
|
-
ticketStatus?: string;
|
|
132
|
-
} | null;
|
|
133
|
-
/**
|
|
134
|
-
* Name of the step.
|
|
135
|
-
*/
|
|
136
|
-
name: string;
|
|
137
|
-
/**
|
|
138
|
-
* Start timestamp of the step.
|
|
139
|
-
*/
|
|
140
|
-
startTs?: number;
|
|
141
|
-
status: Status;
|
|
142
|
-
type: StepInfoType;
|
|
143
|
-
} | null;
|
|
144
|
-
/**
|
|
145
|
-
* Details of the user who triggered the activity.
|
|
146
|
-
*/
|
|
147
|
-
triggeredBy: {
|
|
148
|
-
/**
|
|
149
|
-
* Avatar URL of the person.
|
|
150
|
-
*/
|
|
151
|
-
avatar?: string;
|
|
152
|
-
/**
|
|
153
|
-
* Identifier of the person who triggered the activity.
|
|
154
|
-
*/
|
|
155
|
-
id?: string;
|
|
156
|
-
/**
|
|
157
|
-
* Name of the person who triggered the activity.
|
|
158
|
-
*/
|
|
159
|
-
name?: string;
|
|
160
|
-
triggerType?: TriggerType;
|
|
161
|
-
};
|
|
34
|
+
stageInfo?: StageInfoDto;
|
|
35
|
+
stepInfo?: StepInfoDto;
|
|
36
|
+
triggeredBy: TriggeredByDto;
|
|
162
37
|
type: ActivityType;
|
|
163
38
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ApprovalInfoDto } from '../schemas/ApprovalInfoDto';
|
|
2
|
+
import type { Status } from '../schemas/Status';
|
|
3
|
+
import type { ReleaseApprovalType } from '../schemas/ReleaseApprovalType';
|
|
4
|
+
export interface ReleaseApprovalDto {
|
|
5
|
+
approvalInfo?: ApprovalInfoDto;
|
|
6
|
+
name: string;
|
|
7
|
+
orgIdentifier: string;
|
|
8
|
+
pipelineIdentifier: string;
|
|
9
|
+
planExecutionId: string;
|
|
10
|
+
projectIdentifier: string;
|
|
11
|
+
runSequenceId: number;
|
|
12
|
+
status: Status;
|
|
13
|
+
type: ReleaseApprovalType;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Info related to stage
|
|
3
|
+
*/
|
|
4
|
+
export interface StageInfoDetailsDto {
|
|
5
|
+
/**
|
|
6
|
+
* Display name of the artifact.
|
|
7
|
+
*/
|
|
8
|
+
artifactDisplayName?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Identifier of the environment.
|
|
11
|
+
*/
|
|
12
|
+
envId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Name of the environment.
|
|
15
|
+
*/
|
|
16
|
+
envName?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Identifier of the service.
|
|
19
|
+
*/
|
|
20
|
+
serviceId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Name of the service.
|
|
23
|
+
*/
|
|
24
|
+
serviceName?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { StageInfoDetailsDto } from '../schemas/StageInfoDetailsDto';
|
|
2
|
+
import type { Status } from '../schemas/Status';
|
|
3
|
+
import type { StageInfoType } from '../schemas/StageInfoType';
|
|
4
|
+
/**
|
|
5
|
+
* Details about the stage activity (provided if type is stage).
|
|
6
|
+
*/
|
|
7
|
+
export interface StageInfoDto {
|
|
8
|
+
/**
|
|
9
|
+
* End timestamp of the stage.
|
|
10
|
+
*/
|
|
11
|
+
endTs?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Identifier of the stage.
|
|
14
|
+
*/
|
|
15
|
+
identifier: string;
|
|
16
|
+
info: StageInfoDetailsDto;
|
|
17
|
+
/**
|
|
18
|
+
* Name of the stage.
|
|
19
|
+
*/
|
|
20
|
+
name: string;
|
|
21
|
+
/**
|
|
22
|
+
* Start timestamp of the stage.
|
|
23
|
+
*/
|
|
24
|
+
startTs: number;
|
|
25
|
+
status: Status;
|
|
26
|
+
type: StageInfoType;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provided if `type` is Approval.
|
|
3
|
+
*/
|
|
4
|
+
export interface StepInfoDetailsDto {
|
|
5
|
+
/**
|
|
6
|
+
* Action taken for the approval.
|
|
7
|
+
*/
|
|
8
|
+
approvalAction?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Timestamp of the approval.
|
|
11
|
+
* @format integer
|
|
12
|
+
*/
|
|
13
|
+
approvedAt?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Email of the person who approved the step.
|
|
16
|
+
*/
|
|
17
|
+
approvedByEmail?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Name of the person who approved the step.
|
|
20
|
+
*/
|
|
21
|
+
approvedByName?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Comments provided during the approval.
|
|
24
|
+
*/
|
|
25
|
+
comments?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Type of the Jira issue.
|
|
28
|
+
*/
|
|
29
|
+
issueType?: string;
|
|
30
|
+
/**
|
|
31
|
+
* URL of the Jira ticket.
|
|
32
|
+
*/
|
|
33
|
+
jiraUrl?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Status of the Jira ticket.
|
|
36
|
+
*/
|
|
37
|
+
ticketStatus?: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { StepInfoDetailsDto } from '../schemas/StepInfoDetailsDto';
|
|
2
|
+
import type { Status } from '../schemas/Status';
|
|
3
|
+
import type { StepInfoType } from '../schemas/StepInfoType';
|
|
4
|
+
/**
|
|
5
|
+
* Details about the step activity (provided if type is step).
|
|
6
|
+
*/
|
|
7
|
+
export interface StepInfoDto {
|
|
8
|
+
/**
|
|
9
|
+
* End timestamp of the step.
|
|
10
|
+
*/
|
|
11
|
+
endTs?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Identifier of the step.
|
|
14
|
+
*/
|
|
15
|
+
identifier: string;
|
|
16
|
+
info: StepInfoDetailsDto;
|
|
17
|
+
/**
|
|
18
|
+
* Name of the step.
|
|
19
|
+
*/
|
|
20
|
+
name: string;
|
|
21
|
+
/**
|
|
22
|
+
* Start timestamp of the step.
|
|
23
|
+
*/
|
|
24
|
+
startTs: number;
|
|
25
|
+
status: Status;
|
|
26
|
+
type: StepInfoType;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { TriggerType } from '../schemas/TriggerType';
|
|
2
|
+
/**
|
|
3
|
+
* Details of the user who triggered the activity.
|
|
4
|
+
*/
|
|
5
|
+
export interface TriggeredByDto {
|
|
6
|
+
/**
|
|
7
|
+
* Avatar URL of the person.
|
|
8
|
+
*/
|
|
9
|
+
avatar?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Identifier of the person who triggered the activity.
|
|
12
|
+
*/
|
|
13
|
+
id?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Name of the person who triggered the activity.
|
|
16
|
+
*/
|
|
17
|
+
name?: string;
|
|
18
|
+
triggerType?: TriggerType;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|