@harnessio/react-rmg-service-client 0.0.2 → 0.1.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.
Files changed (45) hide show
  1. package/dist/rmg-service/src/services/hooks/useDeleteReleaseGroupMutation.d.ts +2 -2
  2. package/dist/rmg-service/src/services/hooks/useGetReleaseActivitiesQuery.d.ts +26 -0
  3. package/dist/rmg-service/src/services/hooks/useGetReleaseActivitiesQuery.js +14 -0
  4. package/dist/rmg-service/src/services/hooks/useGetReleaseGroupQuery.d.ts +2 -2
  5. package/dist/rmg-service/src/services/hooks/usePostReleaseGroupMutation.d.ts +2 -2
  6. package/dist/rmg-service/src/services/hooks/usePostReleaseSummaryMutation.d.ts +25 -0
  7. package/dist/rmg-service/src/services/hooks/usePostReleaseSummaryMutation.js +14 -0
  8. package/dist/rmg-service/src/services/hooks/usePutReleaseGroupMutation.d.ts +2 -2
  9. package/dist/rmg-service/src/services/index.d.ts +21 -0
  10. package/dist/rmg-service/src/services/index.js +2 -0
  11. package/dist/rmg-service/src/services/requestBodies/ReleaseSummaryRequestRequestBody.d.ts +6 -0
  12. package/dist/rmg-service/src/services/requestBodies/ReleaseSummaryRequestRequestBody.js +4 -0
  13. package/dist/rmg-service/src/services/responses/ReleaseActivitiesResponseResponse.d.ts +7 -0
  14. package/dist/rmg-service/src/services/responses/ReleaseActivitiesResponseResponse.js +1 -0
  15. package/dist/rmg-service/src/services/responses/ReleaseSummaryResponseResponse.d.ts +4 -0
  16. package/dist/rmg-service/src/services/responses/ReleaseSummaryResponseResponse.js +1 -0
  17. package/dist/rmg-service/src/services/schemas/ActivityType.d.ts +4 -0
  18. package/dist/rmg-service/src/services/schemas/ActivityType.js +4 -0
  19. package/dist/rmg-service/src/services/schemas/Freq.d.ts +4 -0
  20. package/dist/rmg-service/src/services/schemas/Freq.js +4 -0
  21. package/dist/rmg-service/src/services/schemas/ReleaseActivity.d.ts +163 -0
  22. package/dist/rmg-service/src/services/schemas/ReleaseActivity.js +1 -0
  23. package/dist/rmg-service/src/services/schemas/ReleaseCadence.d.ts +34 -0
  24. package/dist/rmg-service/src/services/schemas/ReleaseCadence.js +1 -0
  25. package/dist/rmg-service/src/services/schemas/ReleaseComponent.d.ts +49 -0
  26. package/dist/rmg-service/src/services/schemas/ReleaseComponent.js +4 -0
  27. package/dist/rmg-service/src/services/schemas/ReleaseEntity.d.ts +46 -0
  28. package/dist/rmg-service/src/services/schemas/ReleaseEntity.js +4 -0
  29. package/dist/rmg-service/src/services/schemas/ReleaseFrequency.d.ts +4 -0
  30. package/dist/rmg-service/src/services/schemas/ReleaseFrequency.js +4 -0
  31. package/dist/rmg-service/src/services/schemas/ReleaseGroupYaml.d.ts +34 -0
  32. package/dist/rmg-service/src/services/schemas/ReleaseGroupYaml.js +1 -0
  33. package/dist/rmg-service/src/services/schemas/ReleaseType.d.ts +4 -0
  34. package/dist/rmg-service/src/services/schemas/ReleaseType.js +4 -0
  35. package/dist/rmg-service/src/services/schemas/RepeatUnit.d.ts +4 -0
  36. package/dist/rmg-service/src/services/schemas/RepeatUnit.js +4 -0
  37. package/dist/rmg-service/src/services/schemas/StageInfoType.d.ts +4 -0
  38. package/dist/rmg-service/src/services/schemas/StageInfoType.js +4 -0
  39. package/dist/rmg-service/src/services/schemas/Status.d.ts +4 -0
  40. package/dist/rmg-service/src/services/schemas/Status.js +4 -0
  41. package/dist/rmg-service/src/services/schemas/StepInfoType.d.ts +4 -0
  42. package/dist/rmg-service/src/services/schemas/StepInfoType.js +4 -0
  43. package/dist/rmg-service/src/services/schemas/TriggerType.d.ts +4 -0
  44. package/dist/rmg-service/src/services/schemas/TriggerType.js +4 -0
  45. package/package.json +1 -1
@@ -7,10 +7,10 @@ export interface DeleteReleaseGroupMutationPathParams {
7
7
  releaseGroupId: string;
8
8
  }
9
9
  export interface DeleteReleaseGroupMutationQueryParams {
10
- OrgParam?: string;
10
+ orgIdentifier?: string;
11
11
  }
12
12
  export interface DeleteReleaseGroupMutationHeaderParams {
13
- AccountParam: string;
13
+ 'Harness-Account': string;
14
14
  }
15
15
  export type DeleteReleaseGroupOkResponse = ResponseWithPagination<DeleteReleaseGroupResponseResponse>;
16
16
  export type DeleteReleaseGroupErrorResponse = ErrorResponseResponse;
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ReleaseActivitiesResponseResponse } from '../responses/ReleaseActivitiesResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetReleaseActivitiesQueryPathParams {
7
+ releaseId: string;
8
+ }
9
+ export interface GetReleaseActivitiesQueryQueryParams {
10
+ orgIdentifier?: string;
11
+ startTs: number;
12
+ endTs: number;
13
+ }
14
+ export interface GetReleaseActivitiesQueryHeaderParams {
15
+ 'Harness-Account': string;
16
+ }
17
+ export type GetReleaseActivitiesOkResponse = ResponseWithPagination<ReleaseActivitiesResponseResponse>;
18
+ export type GetReleaseActivitiesErrorResponse = ErrorResponseResponse;
19
+ export interface GetReleaseActivitiesProps extends GetReleaseActivitiesQueryPathParams, Omit<FetcherOptions<GetReleaseActivitiesQueryQueryParams, unknown, GetReleaseActivitiesQueryHeaderParams>, 'url'> {
20
+ queryParams: GetReleaseActivitiesQueryQueryParams;
21
+ }
22
+ export declare function getReleaseActivities(props: GetReleaseActivitiesProps): Promise<GetReleaseActivitiesOkResponse>;
23
+ /**
24
+ * Fetch a list of activities based on the startTime, endTime and release Id.
25
+ */
26
+ export declare function useGetReleaseActivitiesQuery(props: GetReleaseActivitiesProps, options?: Omit<UseQueryOptions<GetReleaseActivitiesOkResponse, GetReleaseActivitiesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetReleaseActivitiesOkResponse, 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 getReleaseActivities(props) {
7
+ return fetcher(Object.assign({ url: `/release/${props.releaseId}/activities`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Fetch a list of activities based on the startTime, endTime and release Id.
11
+ */
12
+ export function useGetReleaseActivitiesQuery(props, options) {
13
+ return useQuery(['getReleaseActivities', props.releaseId, props.queryParams], ({ signal }) => getReleaseActivities(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -7,10 +7,10 @@ export interface GetReleaseGroupQueryPathParams {
7
7
  releaseGroupId: string;
8
8
  }
9
9
  export interface GetReleaseGroupQueryQueryParams {
10
- OrgParam?: string;
10
+ orgIdentifier?: string;
11
11
  }
12
12
  export interface GetReleaseGroupQueryHeaderParams {
13
- AccountParam: string;
13
+ 'Harness-Account': string;
14
14
  }
15
15
  export type GetReleaseGroupOkResponse = ResponseWithPagination<GetReleaseGroupResponseResponse>;
16
16
  export type GetReleaseGroupErrorResponse = ErrorResponseResponse;
@@ -5,10 +5,10 @@ import type { CreateReleaseGroupRequestRequestBody } from '../requestBodies/Crea
5
5
  import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
7
7
  export interface PostReleaseGroupMutationQueryParams {
8
- OrgParam?: string;
8
+ orgIdentifier?: string;
9
9
  }
10
10
  export interface PostReleaseGroupMutationHeaderParams {
11
- AccountParam: string;
11
+ 'Harness-Account': string;
12
12
  }
13
13
  export type PostReleaseGroupRequestBody = CreateReleaseGroupRequestRequestBody;
14
14
  export type PostReleaseGroupOkResponse = ResponseWithPagination<CreateReleaseGroupResponseResponse>;
@@ -0,0 +1,25 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ReleaseSummaryResponseResponse } from '../responses/ReleaseSummaryResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ReleaseSummaryRequestRequestBody } from '../requestBodies/ReleaseSummaryRequestRequestBody';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface PostReleaseSummaryMutationQueryParams {
8
+ orgIdentifier?: string;
9
+ searchTerm?: string;
10
+ }
11
+ export interface PostReleaseSummaryMutationHeaderParams {
12
+ 'Harness-Account': string;
13
+ }
14
+ export type PostReleaseSummaryRequestBody = ReleaseSummaryRequestRequestBody;
15
+ export type PostReleaseSummaryOkResponse = ResponseWithPagination<ReleaseSummaryResponseResponse>;
16
+ export type PostReleaseSummaryErrorResponse = ErrorResponseResponse;
17
+ export interface PostReleaseSummaryProps extends Omit<FetcherOptions<PostReleaseSummaryMutationQueryParams, PostReleaseSummaryRequestBody, PostReleaseSummaryMutationHeaderParams>, 'url'> {
18
+ queryParams: PostReleaseSummaryMutationQueryParams;
19
+ body: PostReleaseSummaryRequestBody;
20
+ }
21
+ export declare function postReleaseSummary(props: PostReleaseSummaryProps): Promise<PostReleaseSummaryOkResponse>;
22
+ /**
23
+ * Fetch a list of releases based on the specified time ranges, optional filters, and search query.
24
+ */
25
+ export declare function usePostReleaseSummaryMutation(options?: Omit<UseMutationOptions<PostReleaseSummaryOkResponse, PostReleaseSummaryErrorResponse, PostReleaseSummaryProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostReleaseSummaryOkResponse, import("..").Error, PostReleaseSummaryProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function postReleaseSummary(props) {
7
+ return fetcher(Object.assign({ url: `/release/summary`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Fetch a list of releases based on the specified time ranges, optional filters, and search query.
11
+ */
12
+ export function usePostReleaseSummaryMutation(options) {
13
+ return useMutation((mutateProps) => postReleaseSummary(mutateProps), options);
14
+ }
@@ -8,10 +8,10 @@ export interface PutReleaseGroupMutationPathParams {
8
8
  releaseGroupId: string;
9
9
  }
10
10
  export interface PutReleaseGroupMutationQueryParams {
11
- OrgParam?: string;
11
+ orgIdentifier?: string;
12
12
  }
13
13
  export interface PutReleaseGroupMutationHeaderParams {
14
- AccountParam: string;
14
+ 'Harness-Account': string;
15
15
  }
16
16
  export type PutReleaseGroupRequestBody = UpdateReleaseGroupRequestRequestBody;
17
17
  export type PutReleaseGroupOkResponse = ResponseWithPagination<UpdateReleaseGroupResponseResponse>;
@@ -1,18 +1,39 @@
1
1
  export type { GetPathParamsType, ResponseWithPagination } from './helpers';
2
2
  export type { DeleteReleaseGroupErrorResponse, DeleteReleaseGroupMutationPathParams, DeleteReleaseGroupMutationQueryParams, DeleteReleaseGroupOkResponse, DeleteReleaseGroupProps, } from './hooks/useDeleteReleaseGroupMutation';
3
3
  export { deleteReleaseGroup, useDeleteReleaseGroupMutation, } from './hooks/useDeleteReleaseGroupMutation';
4
+ export type { GetReleaseActivitiesErrorResponse, GetReleaseActivitiesOkResponse, GetReleaseActivitiesProps, GetReleaseActivitiesQueryPathParams, GetReleaseActivitiesQueryQueryParams, } from './hooks/useGetReleaseActivitiesQuery';
5
+ export { getReleaseActivities, useGetReleaseActivitiesQuery, } from './hooks/useGetReleaseActivitiesQuery';
4
6
  export type { GetReleaseGroupErrorResponse, GetReleaseGroupOkResponse, GetReleaseGroupProps, GetReleaseGroupQueryPathParams, GetReleaseGroupQueryQueryParams, } from './hooks/useGetReleaseGroupQuery';
5
7
  export { getReleaseGroup, useGetReleaseGroupQuery } from './hooks/useGetReleaseGroupQuery';
6
8
  export type { PostReleaseGroupErrorResponse, PostReleaseGroupMutationQueryParams, PostReleaseGroupOkResponse, PostReleaseGroupProps, PostReleaseGroupRequestBody, } from './hooks/usePostReleaseGroupMutation';
7
9
  export { postReleaseGroup, usePostReleaseGroupMutation } from './hooks/usePostReleaseGroupMutation';
10
+ export type { PostReleaseSummaryErrorResponse, PostReleaseSummaryMutationQueryParams, PostReleaseSummaryOkResponse, PostReleaseSummaryProps, PostReleaseSummaryRequestBody, } from './hooks/usePostReleaseSummaryMutation';
11
+ export { postReleaseSummary, usePostReleaseSummaryMutation, } from './hooks/usePostReleaseSummaryMutation';
8
12
  export type { PutReleaseGroupErrorResponse, PutReleaseGroupMutationPathParams, PutReleaseGroupMutationQueryParams, PutReleaseGroupOkResponse, PutReleaseGroupProps, PutReleaseGroupRequestBody, } from './hooks/usePutReleaseGroupMutation';
9
13
  export { putReleaseGroup, usePutReleaseGroupMutation } from './hooks/usePutReleaseGroupMutation';
10
14
  export type { CreateReleaseGroupRequestRequestBody } from './requestBodies/CreateReleaseGroupRequestRequestBody';
15
+ export type { ReleaseSummaryRequestRequestBody } from './requestBodies/ReleaseSummaryRequestRequestBody';
11
16
  export type { UpdateReleaseGroupRequestRequestBody } from './requestBodies/UpdateReleaseGroupRequestRequestBody';
12
17
  export type { CreateReleaseGroupResponseResponse } from './responses/CreateReleaseGroupResponseResponse';
13
18
  export type { DeleteReleaseGroupResponseResponse } from './responses/DeleteReleaseGroupResponseResponse';
14
19
  export type { ErrorResponseResponse } from './responses/ErrorResponseResponse';
15
20
  export type { GetReleaseGroupResponseResponse } from './responses/GetReleaseGroupResponseResponse';
21
+ export type { ReleaseActivitiesResponseResponse } from './responses/ReleaseActivitiesResponseResponse';
22
+ export type { ReleaseSummaryResponseResponse } from './responses/ReleaseSummaryResponseResponse';
16
23
  export type { UpdateReleaseGroupResponseResponse } from './responses/UpdateReleaseGroupResponseResponse';
24
+ export type { ActivityType } from './schemas/ActivityType';
17
25
  export type { Error } from './schemas/Error';
26
+ export type { Freq } from './schemas/Freq';
18
27
  export type { GetReleaseGroupResponse } from './schemas/GetReleaseGroupResponse';
28
+ export type { ReleaseActivity } from './schemas/ReleaseActivity';
29
+ export type { ReleaseCadence } from './schemas/ReleaseCadence';
30
+ export type { ReleaseComponent } from './schemas/ReleaseComponent';
31
+ export type { ReleaseEntity } from './schemas/ReleaseEntity';
32
+ export type { ReleaseFrequency } from './schemas/ReleaseFrequency';
33
+ export type { ReleaseGroupYaml } from './schemas/ReleaseGroupYaml';
34
+ export type { ReleaseType } from './schemas/ReleaseType';
35
+ export type { RepeatUnit } from './schemas/RepeatUnit';
36
+ export type { StageInfoType } from './schemas/StageInfoType';
37
+ export type { Status } from './schemas/Status';
38
+ export type { StepInfoType } from './schemas/StepInfoType';
39
+ export type { TriggerType } from './schemas/TriggerType';
@@ -1,4 +1,6 @@
1
1
  export { deleteReleaseGroup, useDeleteReleaseGroupMutation, } from './hooks/useDeleteReleaseGroupMutation';
2
+ export { getReleaseActivities, useGetReleaseActivitiesQuery, } from './hooks/useGetReleaseActivitiesQuery';
2
3
  export { getReleaseGroup, useGetReleaseGroupQuery } from './hooks/useGetReleaseGroupQuery';
3
4
  export { postReleaseGroup, usePostReleaseGroupMutation } from './hooks/usePostReleaseGroupMutation';
5
+ export { postReleaseSummary, usePostReleaseSummaryMutation, } from './hooks/usePostReleaseSummaryMutation';
4
6
  export { putReleaseGroup, usePutReleaseGroupMutation } from './hooks/usePutReleaseGroupMutation';
@@ -0,0 +1,6 @@
1
+ export interface ReleaseSummaryRequestRequestBody {
2
+ timeRanges?: Array<{
3
+ endTime: number;
4
+ startTime: number;
5
+ }>;
6
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { ReleaseActivity } from '../schemas/ReleaseActivity';
2
+ export interface ReleaseActivitiesResponseResponse {
3
+ /**
4
+ * List of activities.
5
+ */
6
+ activities?: ReleaseActivity[];
7
+ }
@@ -0,0 +1,4 @@
1
+ import type { ReleaseEntity } from '../schemas/ReleaseEntity';
2
+ export interface ReleaseSummaryResponseResponse {
3
+ releases?: ReleaseEntity[];
4
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Type of the activity (e.g., stage, step).
3
+ */
4
+ export type ActivityType = 'stage' | 'step';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Unit of time used for repeating releases.
3
+ */
4
+ export type Freq = 'Daily' | 'Monthly' | 'Weekly';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,163 @@
1
+ import type { Status } from '../schemas/Status';
2
+ import type { StageInfoType } from '../schemas/StageInfoType';
3
+ import type { StepInfoType } from '../schemas/StepInfoType';
4
+ import type { TriggerType } from '../schemas/TriggerType';
5
+ import type { ActivityType } from '../schemas/ActivityType';
6
+ export interface ReleaseActivity {
7
+ /**
8
+ * Account identifier.
9
+ */
10
+ accountId: string;
11
+ /**
12
+ * Unique identifier for the activity.
13
+ */
14
+ id: string;
15
+ /**
16
+ * Organization identifier.
17
+ */
18
+ orgIdentifier: string;
19
+ /**
20
+ * Pipeline identifier.
21
+ */
22
+ pipelineIdentifier: string;
23
+ /**
24
+ * Name of the pipeline.
25
+ */
26
+ pipelineName: string;
27
+ /**
28
+ * Plan execution identifier.
29
+ */
30
+ planExecutionId: string;
31
+ /**
32
+ * Project identifier.
33
+ */
34
+ projectIdentifier: string;
35
+ /**
36
+ * Details about the stage activity (provided if type is stage).
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
+ };
162
+ type: ActivityType;
163
+ }
@@ -0,0 +1,34 @@
1
+ import type { ReleaseFrequency } from '../schemas/ReleaseFrequency';
2
+ import type { Freq } from '../schemas/Freq';
3
+ export interface ReleaseCadence {
4
+ /**
5
+ * duration for the release cadence.
6
+ */
7
+ duration: string;
8
+ /**
9
+ * End date of the release cadence (YYYY-MM-DD).
10
+ * @format date
11
+ */
12
+ endDate: string;
13
+ frequency: ReleaseFrequency;
14
+ spec?: {
15
+ freq: Freq;
16
+ /**
17
+ * Number of units between releases.
18
+ */
19
+ interval: number;
20
+ /**
21
+ * weekday
22
+ */
23
+ weekday?: string;
24
+ };
25
+ /**
26
+ * Start date of the release cadence (YYYY-MM-DD).
27
+ * @format date
28
+ */
29
+ startDate: string;
30
+ /**
31
+ * Timezone for the release cadence.
32
+ */
33
+ timezone: string;
34
+ }
@@ -0,0 +1,49 @@
1
+ export interface ReleaseComponent {
2
+ /**
3
+ * Details about environments with filterType and refs.
4
+ */
5
+ environments?: {
6
+ /**
7
+ * Type of filter applied for environments.
8
+ */
9
+ filterType?: 'All' | 'Equals';
10
+ /**
11
+ * List of environment identifiers.
12
+ */
13
+ refs?: string[];
14
+ };
15
+ /**
16
+ * Identifier for the organization.
17
+ */
18
+ orgIdentifier: string;
19
+ /**
20
+ * Details about pipelines with filterType and refs.
21
+ */
22
+ pipelines?: {
23
+ /**
24
+ * Type of filter applied for pipelines.
25
+ */
26
+ filterType?: 'All' | 'Equals';
27
+ /**
28
+ * List of pipeline identifiers.
29
+ */
30
+ refs?: string[];
31
+ };
32
+ /**
33
+ * Identifier for the project.
34
+ */
35
+ projectIdentifier: string;
36
+ /**
37
+ * Details about services with filterType and refs.
38
+ */
39
+ services?: {
40
+ /**
41
+ * Type of filter applied for services.
42
+ */
43
+ filterType?: 'All' | 'Equals';
44
+ /**
45
+ * List of service identifiers.
46
+ */
47
+ refs?: string[];
48
+ };
49
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,46 @@
1
+ export interface ReleaseEntity {
2
+ /**
3
+ * Actual end timestamp in milliseconds
4
+ */
5
+ actualEndTs?: number;
6
+ /**
7
+ * Actual start timestamp in milliseconds
8
+ */
9
+ actualStartTs?: number;
10
+ /**
11
+ * Hex color code representing the release
12
+ */
13
+ color: string;
14
+ /**
15
+ * Expected end timestamp in milliseconds
16
+ */
17
+ expectedEndTs: number;
18
+ /**
19
+ * Expected start timestamp in milliseconds
20
+ */
21
+ expectedStartTs: number;
22
+ /**
23
+ * Unique identifier for the release
24
+ */
25
+ id: string;
26
+ /**
27
+ * Identifier for the release
28
+ */
29
+ identifier: string;
30
+ /**
31
+ * Name of the release
32
+ */
33
+ name: string;
34
+ /**
35
+ * Identifier for the release group
36
+ */
37
+ releaseGroupId: string;
38
+ /**
39
+ * Current status of the release
40
+ */
41
+ status: 'Failed' | 'Paused' | 'Running' | 'Scheduled' | 'Success';
42
+ /**
43
+ * Version of the release
44
+ */
45
+ version: string;
46
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Frequency of the release cadence.
3
+ */
4
+ export type ReleaseFrequency = 'BiWeekly' | 'Custom' | 'Daily' | 'Monthly' | 'Weekly';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,34 @@
1
+ import type { ReleaseCadence } from '../schemas/ReleaseCadence';
2
+ import type { ReleaseComponent } from '../schemas/ReleaseComponent';
3
+ import type { ReleaseType } from '../schemas/ReleaseType';
4
+ export interface ReleaseGroupYaml {
5
+ cadence: ReleaseCadence;
6
+ /**
7
+ * Colour code for the release group (e.g.,
8
+ */
9
+ colour?: string;
10
+ components: ReleaseComponent[];
11
+ /**
12
+ * Description of the release group.
13
+ */
14
+ description?: string;
15
+ /**
16
+ * Unique identifier for the release group.
17
+ */
18
+ identifier: string;
19
+ /**
20
+ * Name of the release group.
21
+ */
22
+ name: string;
23
+ releaseType: ReleaseType;
24
+ /**
25
+ * Release version for the group.
26
+ */
27
+ releaseVersion: string;
28
+ /**
29
+ * Key-value pairs associated with the release group.
30
+ */
31
+ tags?: {
32
+ [key: string]: string;
33
+ };
34
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Type of release.
3
+ */
4
+ export type ReleaseType = 'Beta' | 'Hotfix' | 'System';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Unit of time used for repeating releases.
3
+ */
4
+ export type RepeatUnit = 'Days' | 'Months' | 'Weeks';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Type of the stage (e.g., CD, custom)
3
+ */
4
+ export type StageInfoType = 'CD' | 'Custom';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Status of the stage.
3
+ */
4
+ export type Status = 'ABORTED' | 'ABORTEDBYFREEZE' | 'APPROVALREJECTED' | 'APPROVALWAITING' | 'DISCONTINUING' | 'ERRORED' | 'EXPIRED' | 'FAILED' | 'IGNOREFAILED' | 'INPUTWAITING' | 'INTERVENTIONWAITING' | 'NOTSTARTED' | 'PAUSED' | 'PAUSING' | 'QUEUED' | 'QUEUED_EXECUTION_CONCURRENCY_REACHED' | 'QUEUED_LICENSE_LIMIT_REACHED' | 'RESOURCEWAITING' | 'SKIPPED' | 'SUCCESS' | 'SUSPENDED' | 'TIMEDWAITING' | 'UPLOADWAITING' | 'WAITSTEPRUNNING';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Type of the step (e.g., Approval, JiraUpdate, JiraCreate, JiraApproval).
3
+ */
4
+ export type StepInfoType = 'Approval' | 'JiraApproval' | 'JiraCreate' | 'JiraUpdate';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Unit of time used for repeating releases.
3
+ */
4
+ export type TriggerType = 'ARTIFACT' | 'MANIFEST' | 'MANUAL' | 'SCHEDULER_CRON' | 'WEBHOOK' | 'WEBHOOK_CUSTOM';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.0.2",
3
+ "version": "0.1.0",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",