* added List all FIltes endpoint to api docs generation
* List Filters for a User endpoint added to API docs generation
* Request Filter information endpoint added to API docs generation. Add schemas
* fix description
* added Delete a Filter api endpoint to API docs generation
* New schemas for filter api endpoints. Added Create a mew Filter api endpoint to API docs generation
* fix schemas. Added Update Filter information endpoint to api docs generation
* test initial design of API generation as a restify plugin. next extract it into separate npm package and add more checks/logs etc.
* remove API docs generation from the WILDDUCK specific tools.js file into a separate file. Do appropriate changes
* move api generation into separate npm package, currently local
* add restifyapigenerate package and use it, fix path
* separate API docs generation config into a separate file. Fix API docs generation package version
* add health api endpoint to check health of API
* fixes and add graylog logging
* round timestamp, cast to string. Use mongodb ping instead of topology.isConnected check
* add timeout to redis commands so that the health api endpoint will return a value
* List registered Addresses API endpoint added to API docs generation
* Create new Address API endpoint to API generation
* Create new Address API endpoint to API generation. List registered Addresses for a User api endpoint added to api generation
* Request Addresses information api endpoint added to api generation
* Update Address information api endpoint added to api endpoint generation
* Delete an Address endpoint added to api generation
* List addresses from communication register endpoint added to api docs generation. Add example to userId
* Create new forwarded Address api endpoint added to api docs generation
* Update forwarded Address information API endpoint added to API docs generation
* Delete a forwarded Address endpoint added to API docs generation
* Request forwarded Addresses information endpoint added to API docs generation
* Get Address info endpoint added to API docs generation
* Rename domain in addresses endpoint added to API docs generation
* added List Mailboxes for a User endpoint to API generation
* Request Mailbox information endpoint added to API generation
* Update Mailbox information endpoint added to API generation
* added Delete a Mailbox endpoint to API generation. Add example to Request Mailbox information API endpoint
* fix mailbox path param in Request Mailbox information
* GetMailboxesResult retention should be not required, fix accidental typo
* optimize CPU usage
* fix requestBody issues in API docs generation
* fix requestBody issues for API generation
* Revert "optimize CPU usage"
This reverts commit b4fde61884.
* /users GET endpoint added
* added /users POST to api generation
* added /users/resolve/:username GET endpoint for api generation
* fixes + request user info GET endpoint added
* Added Update User information api path to api docs generation
* added Log out User endpoint to api generation
* Added Recalculate User quota endpoint to API generation
* added Recalculate Quota for all users endpoint to api generation
* added Export data endpoint to API generation
* added Import user data endpoint to API generation
* Reset password for a User endpoint added to API generation
* Reset password for a User endpoint add param to res
* add missing response types
* added Delete a User, Return recovery info for a deleted User, Cancel user deletion task - endpoints to API generation
* fix typo in users.js
* fix: fixed string conversion to uf8 vs binary (closes#563)
@andris9 this is a core bug that needs merged/fixed
details are in #563
calling `compiled + "something"` will result in the buffer being converted to utf8 instead of binary, since the default buffer.toString is utf8
* fix: update imap composer for `compiled` types
Ref #564 and #563
* api.js added endpoint for generating openapi docs. added new info to one route in mailboxes.js and messages.js files so that the api docs generation can be done at all
* try to first generate json representation of the api docs
* add initial Joi Object parsing
* api.js make generation dynamic. messages.js add schemas from separate file. messages-schemas.js used for messages endpoint schemas
* add additions to schemas. Add new schemas to messages.js and also add response object there. Add response object parsing functionality to api.js
* add initial openapi doc yml file generation
* remove manual yaml parsing with js-yaml JSON -> YAML parsing
* fix replaceWithRefs and parseComponentsDecoupled functions, refactor, remove unnecessary comments and logs
* add support for another endpoint
* move big code from api.js to tools
* fix array type representation, fix response objects, add necessary data and changes to endpoints
* redo include logic into exclude login
* fix api generation in tools.js to accomodate new naming of objects
* fix messages.js, add structuredClone check in tools.js
* fix structured clone definition
* add one endpoint in messages.js to the api generation
* messages.js add one more endpoint to API generation
* add response to prev commit. Add new endpoint to API generation. Archive message and archive messages
* finish with post endpoints in messages.js
* added general request and response schemas. Also added req and res schemas for messages
* add multiple GET endpoints to API generation and changed them to new design. Use general schemas made earlier
* fix incorrect import of successRes
* fix mailboxes.js
* refactor general-schemas.js. Fix searchSchema in messages.js. Mailboxes.js fix response
* tools.js rename methodObj in API generation to operationObj
* tools.js api generation remove string fallbacks
* messages.js finish with GET endpoints, addition to API doc generation
* fix description on the object issue
* add descriptions to fields for the schemas in the messages-schemas.js file
* remove yarml import in tools.js
* api.js added endpoint for generating openapi docs. added new info to one route in mailboxes.js and messages.js files so that the api docs generation can be done at all
* try to first generate json representation of the api docs
* add initial Joi Object parsing
* api.js make generation dynamic. messages.js add schemas from separate file. messages-schemas.js used for messages endpoint schemas
* add additions to schemas. Add new schemas to messages.js and also add response object there. Add response object parsing functionality to api.js
* add initial openapi doc yml file generation
* remove manual yaml parsing with js-yaml JSON -> YAML parsing
* fix replaceWithRefs and parseComponentsDecoupled functions, refactor, remove unnecessary comments and logs
* add support for another endpoint
* move big code from api.js to tools
* fix array type representation, fix response objects, add necessary data and changes to endpoints
* redo include logic into exclude login
* fix api generation in tools.js to accomodate new naming of objects
* fix messages.js, add structuredClone check in tools.js
* fix structured clone definition
* add one endpoint in messages.js to the api generation
* messages.js add one more endpoint to API generation
* add response to prev commit. Add new endpoint to API generation. Archive message and archive messages
* finish with post endpoints in messages.js
* added general request and response schemas. Also added req and res schemas for messages
* add multiple GET endpoints to API generation and changed them to new design. Use general schemas made earlier
* fix incorrect import of successRes
* fix mailboxes.js
* refactor general-schemas.js. Fix searchSchema in messages.js. Mailboxes.js fix response
* tools.js rename methodObj in API generation to operationObj
* tools.js api generation remove string fallbacks
* messages.js finish with GET endpoints, addition to API doc generation
* remove yaml import