@@ -111,14 +111,25 @@ export const useCreateStandardChangeRequest = () => {
111111 ) ;
112112} ;
113113
114- export interface ChangeRequestPayload {
114+ export interface CreateActivationChangeRequestPayload {
115115 submitterId : number ;
116116 wbsNum : WbsNumber ;
117117 projectLeadId : number ;
118118 projectManagerId : number ;
119119 startDate : string ;
120120 confirmDetails : boolean ;
121+ type : string ;
122+ }
123+
124+ export interface CreateStageGateChangeRequestPayload {
125+ submitterId : number ;
126+ wbsNum : WbsNumber ;
121127 confirmDone : boolean ;
128+ type : string ;
129+ }
130+
131+ export interface CreateProposeSolutionPayload {
132+ submitterId : number ;
122133 crId : number ;
123134 description : string ;
124135 scopeImpact : string ;
@@ -131,9 +142,9 @@ export interface ChangeRequestPayload {
131142 * Custom React Hook to create an activation change request.
132143 */
133144export const useCreateActivationChangeRequest = ( ) => {
134- return useMutation < { message : string } , Error , ChangeRequestPayload > (
145+ return useMutation < { message : string } , Error , CreateActivationChangeRequestPayload > (
135146 [ 'change requests' , 'create' , 'activation' ] ,
136- async ( payload : ChangeRequestPayload ) => {
147+ async ( payload : CreateActivationChangeRequestPayload ) => {
137148 const { data } = await createActivationChangeRequest (
138149 payload . submitterId ,
139150 payload . wbsNum ,
@@ -151,9 +162,9 @@ export const useCreateActivationChangeRequest = () => {
151162 * Custom React Hook to create a stage gate change request.
152163 */
153164export const useCreateStageGateChangeRequest = ( ) => {
154- return useMutation < { message : string } , Error , ChangeRequestPayload > (
165+ return useMutation < { message : string } , Error , CreateStageGateChangeRequestPayload > (
155166 [ 'change requests' , 'create' , 'stage gate' ] ,
156- async ( payload : ChangeRequestPayload ) => {
167+ async ( payload : CreateStageGateChangeRequestPayload ) => {
157168 const { data } = await createStageGateChangeRequest ( payload . submitterId , payload . wbsNum , payload . confirmDone ) ;
158169 return data ;
159170 }
@@ -165,9 +176,9 @@ export const useCreateStageGateChangeRequest = () => {
165176 */
166177export const useCreateProposeSolution = ( ) => {
167178 const queryClient = useQueryClient ( ) ;
168- return useMutation < { message : string } , Error , ChangeRequestPayload > (
179+ return useMutation < { message : string } , Error , CreateProposeSolutionPayload > (
169180 [ 'change requests' , 'create' , 'propose solution' ] ,
170- async ( payload : ChangeRequestPayload ) => {
181+ async ( payload : CreateProposeSolutionPayload ) => {
171182 const { data } = await addProposedSolution (
172183 payload . submitterId ,
173184 payload . crId ,
0 commit comments