@@ -1256,7 +1256,7 @@ export const mockDurationInput = (overrides?: Partial<DurationInput>, _relations
1256
1256
const relationshipsToOmit : Set < string > = new Set ( _relationshipsToOmit ) ;
1257
1257
relationshipsToOmit . add ( 'DurationInput' ) ;
1258
1258
return {
1259
- period : overrides && overrides . hasOwnProperty ( 'period' ) ? overrides . period ! : Period . Months ,
1259
+ period : overrides && overrides . hasOwnProperty ( 'period' ) ? overrides . period ! : Period . Days ,
1260
1260
units : overrides && overrides . hasOwnProperty ( 'units' ) ? overrides . units ! : faker . number . int ( { min : 0 , max : 9999 } ) ,
1261
1261
} ;
1262
1262
} ;
@@ -1733,6 +1733,7 @@ export const mockTermsInput = (overrides?: Partial<TermsInput>, _relationshipsTo
1733
1733
duration : overrides && overrides . hasOwnProperty ( 'duration' ) ? overrides . duration ! : relationshipsToOmit . has ( 'DurationInput' ) ? { } as DurationInput : mockDurationInput ( { } , relationshipsToOmit ) ,
1734
1734
incurrenceInterval : overrides && overrides . hasOwnProperty ( 'incurrenceInterval' ) ? overrides . incurrenceInterval ! : InterestInterval . EndOfDay ,
1735
1735
initialCvl : overrides && overrides . hasOwnProperty ( 'initialCvl' ) ? overrides . initialCvl ! : generateMockValue . int ( ) ,
1736
+ interestDueDuration : overrides && overrides . hasOwnProperty ( 'interestDueDuration' ) ? overrides . interestDueDuration ! : relationshipsToOmit . has ( 'DurationInput' ) ? { } as DurationInput : mockDurationInput ( { } , relationshipsToOmit ) ,
1736
1737
liquidationCvl : overrides && overrides . hasOwnProperty ( 'liquidationCvl' ) ? overrides . liquidationCvl ! : generateMockValue . int ( ) ,
1737
1738
marginCallCvl : overrides && overrides . hasOwnProperty ( 'marginCallCvl' ) ? overrides . marginCallCvl ! : generateMockValue . int ( ) ,
1738
1739
oneTimeFeeRate : overrides && overrides . hasOwnProperty ( 'oneTimeFeeRate' ) ? overrides . oneTimeFeeRate ! : faker . lorem . word ( ) ,
@@ -1762,6 +1763,7 @@ export const mockTermsTemplateCreateInput = (overrides?: Partial<TermsTemplateCr
1762
1763
duration : overrides && overrides . hasOwnProperty ( 'duration' ) ? overrides . duration ! : relationshipsToOmit . has ( 'DurationInput' ) ? { } as DurationInput : mockDurationInput ( { } , relationshipsToOmit ) ,
1763
1764
incurrenceInterval : overrides && overrides . hasOwnProperty ( 'incurrenceInterval' ) ? overrides . incurrenceInterval ! : InterestInterval . EndOfDay ,
1764
1765
initialCvl : overrides && overrides . hasOwnProperty ( 'initialCvl' ) ? overrides . initialCvl ! : generateMockValue . int ( ) ,
1766
+ interestDueDuration : overrides && overrides . hasOwnProperty ( 'interestDueDuration' ) ? overrides . interestDueDuration ! : relationshipsToOmit . has ( 'DurationInput' ) ? { } as DurationInput : mockDurationInput ( { } , relationshipsToOmit ) ,
1765
1767
liquidationCvl : overrides && overrides . hasOwnProperty ( 'liquidationCvl' ) ? overrides . liquidationCvl ! : generateMockValue . int ( ) ,
1766
1768
marginCallCvl : overrides && overrides . hasOwnProperty ( 'marginCallCvl' ) ? overrides . marginCallCvl ! : generateMockValue . int ( ) ,
1767
1769
name : overrides && overrides . hasOwnProperty ( 'name' ) ? overrides . name ! : generateMockValue . name ( ) ,
@@ -1788,6 +1790,7 @@ export const mockTermsTemplateUpdateInput = (overrides?: Partial<TermsTemplateUp
1788
1790
id : overrides && overrides . hasOwnProperty ( 'id' ) ? overrides . id ! : generateMockValue . uuid ( ) ,
1789
1791
incurrenceInterval : overrides && overrides . hasOwnProperty ( 'incurrenceInterval' ) ? overrides . incurrenceInterval ! : InterestInterval . EndOfDay ,
1790
1792
initialCvl : overrides && overrides . hasOwnProperty ( 'initialCvl' ) ? overrides . initialCvl ! : generateMockValue . int ( ) ,
1793
+ interestDueDuration : overrides && overrides . hasOwnProperty ( 'interestDueDuration' ) ? overrides . interestDueDuration ! : relationshipsToOmit . has ( 'DurationInput' ) ? { } as DurationInput : mockDurationInput ( { } , relationshipsToOmit ) ,
1791
1794
liquidationCvl : overrides && overrides . hasOwnProperty ( 'liquidationCvl' ) ? overrides . liquidationCvl ! : generateMockValue . int ( ) ,
1792
1795
marginCallCvl : overrides && overrides . hasOwnProperty ( 'marginCallCvl' ) ? overrides . marginCallCvl ! : generateMockValue . int ( ) ,
1793
1796
oneTimeFeeRate : overrides && overrides . hasOwnProperty ( 'oneTimeFeeRate' ) ? overrides . oneTimeFeeRate ! : faker . lorem . word ( ) ,
0 commit comments