@@ -19,39 +19,42 @@ export const endpoints = {
1919 deleteInvite : ( id : string ) : string => `/users/${ id } ` ,
2020 } ,
2121
22+ projects : {
23+ my : '/projects' ,
24+ } ,
25+
2226 pipelines : {
23- my : '/pipelines?hydrated=true' ,
24- get : ( pipelineId : TId ) : string =>
25- `/pipelines/${ pipelineId } ?unlisted=false&hydrated=true` ,
27+ my : ( project : string ) : string => `/projects/${ project } /pipelines` ,
28+ get : ( pipelineId : TId ) : string => `/pipelines/${ pipelineId } ` ,
2629 } ,
2730 Stacks : {
28- my : '/stacks?hydrated=true' ,
29- get : ( stackId : TId ) : string =>
30- `/stacks/${ stackId } ?unlisted=false&hydrated=true` ,
31+ my : ( project : string ) : string => `/projects/${ project } /stacks` ,
32+ get : ( stackId : TId ) : string => `/stacks/${ stackId } ` ,
3133 } ,
3234 StackComponents : {
3335 types : '/component-types' ,
34- my : ( type : string ) : string => `/components?type= ${ type } &hydrated=true` ,
35- get : ( stackComponentId : TId ) : string =>
36- `/components/${ stackComponentId } ?hydrated=true ` ,
36+ my : ( type : string , project : string ) : string =>
37+ `/projects/ ${ project } /components?type= ${ type } ` ,
38+ get : ( stackComponentId : TId ) : string => `/components/${ stackComponentId } ` ,
3739 } ,
3840 runs : {
3941 pipeline : {
40- get : ( pipelineId : TId ) : string =>
41- `/runs?pipeline_id=${ pipelineId } &unlisted=false&hydrated=true` ,
42+ get : ( pipelineId : TId ) : string => `/runs?pipeline_id=${ pipelineId } ` ,
4243 } ,
4344 stack : {
44- get : ( stackId : TId ) : string =>
45- `/runs?stack_id=${ stackId } &unlisted=false&hydrated=true` ,
45+ get : ( stackId : TId ) : string => `/runs?stack_id=${ stackId } ` ,
4646 } ,
4747 stackComponent : {
4848 get : ( stackComponentId : TId ) : string =>
49- `/runs?component_id=${ stackComponentId } &unlisted=false&hydrated=true ` ,
49+ `/runs?component_id=${ stackComponentId } ` ,
5050 } ,
5151 graphById : {
5252 get : ( runId : TId ) : string => `/runs/${ runId } /graph` ,
5353 } ,
54- all : `/runs?unlisted=false&hydrated=true` ,
55- get : ( runId : TId ) : string => `/runs/${ runId } ?unlisted=false&hydrated=true` ,
54+ all : ( project : string ) : string => `/projects/${ project } /runs` ,
55+ get : ( runId : TId ) : string => `/runs/${ runId } ` ,
56+ } ,
57+ roles : {
58+ all : `/roles` ,
5659 } ,
5760} ;
0 commit comments