@@ -202,6 +202,8 @@ router.get('/cve',
202202 #swagger.parameters['$ref'] = [
203203 '#/components/parameters/cveRecordFilteredTimeModifiedLt',
204204 '#/components/parameters/cveRecordFilteredTimeModifiedGt',
205+ '#/components/parameters/cveRecordFilteredTimeCreatedLt',
206+ '#/components/parameters/cveRecordFilteredTimeCreatedGt',
205207 '#/components/parameters/cveState',
206208 '#/components/parameters/countOnly',
207209 '#/components/parameters/assignerShortName',
@@ -259,11 +261,13 @@ router.get('/cve',
259261 */
260262 mw . validateUser ,
261263 mw . onlySecretariatOrBulkDownload ,
262- query ( ) . custom ( ( query ) => { return mw . validateQueryParameterNames ( query , [ 'page' , 'time_modified.lt' , 'time_modified.gt' , 'state' , 'count_only' , 'assigner_short_name' , 'assigner' , 'cna_modified' , 'adp_short_name' ] ) } ) ,
263- query ( [ 'page' , 'time_modified.lt' , 'time_modified.gt' , 'state' , 'count_only' , 'assigner_short_name' , 'assigner' , 'cna_modified' , 'adp_short_name' ] ) . custom ( ( val ) => { return mw . containsNoInvalidCharacters ( val ) } ) ,
264+ query ( ) . custom ( ( query ) => { return mw . validateQueryParameterNames ( query , [ 'page' , 'time_modified.lt' , 'time_modified.gt' , 'time_created.lt' , 'time_created.gt' , ' state', 'count_only' , 'assigner_short_name' , 'assigner' , 'cna_modified' , 'adp_short_name' ] ) } ) ,
265+ query ( [ 'page' , 'time_modified.lt' , 'time_modified.gt' , 'time_created.lt' , 'time_created.gt' , ' state', 'count_only' , 'assigner_short_name' , 'assigner' , 'cna_modified' , 'adp_short_name' ] ) . custom ( ( val ) => { return mw . containsNoInvalidCharacters ( val ) } ) ,
264266 query ( [ 'page' ] ) . optional ( ) . isInt ( { min : CONSTANTS . PAGINATOR_PAGE } ) ,
265267 query ( [ 'time_modified.lt' ] ) . optional ( ) . isString ( ) . trim ( ) . customSanitizer ( val => { return toDate ( val ) } ) . not ( ) . isEmpty ( ) . withMessage ( errorMsgs . TIMESTAMP_FORMAT ) ,
266268 query ( [ 'time_modified.gt' ] ) . optional ( ) . isString ( ) . trim ( ) . customSanitizer ( val => { return toDate ( val ) } ) . not ( ) . isEmpty ( ) . withMessage ( errorMsgs . TIMESTAMP_FORMAT ) ,
269+ query ( [ 'time_created.lt' ] ) . optional ( ) . isString ( ) . trim ( ) . customSanitizer ( val => { return toDate ( val ) } ) . not ( ) . isEmpty ( ) . withMessage ( errorMsgs . TIMESTAMP_FORMAT ) ,
270+ query ( [ 'time_created.gt' ] ) . optional ( ) . isString ( ) . trim ( ) . customSanitizer ( val => { return toDate ( val ) } ) . not ( ) . isEmpty ( ) . withMessage ( errorMsgs . TIMESTAMP_FORMAT ) ,
267271 query ( [ 'state' ] ) . optional ( ) . isString ( ) . trim ( ) . customSanitizer ( val => { return val . toUpperCase ( ) } ) . isIn ( CHOICES ) . withMessage ( errorMsgs . CVE_FILTERED_STATES ) ,
268272 query ( [ 'count_only' ] ) . optional ( ) . isBoolean ( { loose : true } ) . withMessage ( errorMsgs . COUNT_ONLY ) ,
269273 query ( [ 'assigner_short_name' ] ) . optional ( ) . isString ( ) . trim ( ) . notEmpty ( ) . isLength ( { min : CONSTANTS . MIN_SHORTNAME_LENGTH , max : CONSTANTS . MAX_SHORTNAME_LENGTH } ) ,
0 commit comments