jws-backend/src/middlewares
Methapon Metanipat 12bf2182dc
feat: line (#13)
* add wedhook line

* text message

* add router get employee, request, quotation

* move code

* do not crash application when not set line token

This feature is opt-in

* dot not crash when not set line client id

Main auth method is keycloak

* change dotenv

* fix: wrong env

* refactor: change to get instead of post

* refactor: remove body for employee get endpoint

* feat: add work relation include

* feat: include customer relation in employee

* feat: add line file controller

* add detail flex message and get date requestWork

* chore: update deps lock

* fix: error line token

* fix: redirect head instead if response with body

* feat: add response relation

* fix: route casing

* add userId in customerBranch verifyOTP

* delete consile log

* add is registered endpoint placeholder

* feat: quotation list

* fix: wrong endpoint name

* feat: include relation in get by id request data

* add where userId line

* refactor: adjust parameter for liff app

* delete code

* refactor: remove post quotation endpoint

* refactor: add where userId line for quotation

* feat: add pending only parameter

* refactor: more condition for inProgressOnly

* refactor: update condition

* feat: add line quotation attachment endpoint

* feat: include product in request work line endpoint

* refactor: pending only now cover more condition

* feat: include invoice with payment relation

* chore: update api docs tag

* chore: clean

* feat: check for registered user

* fix: wrong file location

* feat: add email client for sending an otp

* chore: move some deps to dev deps

* add otpCode otpExpires

* add send-otp and verify-otp

---------

Co-authored-by: Kanjana <kanjana@chamomind.com>
Co-authored-by: chamomind <chamomind@localhost>
Co-authored-by: Methapon2001 <61303214+Methapon2001@users.noreply.github.com>
2025-02-20 16:07:16 +07:00
..
auth-provider feat: line (#13) 2025-02-20 16:07:16 +07:00
auth.ts feat: line (#13) 2025-02-20 16:07:16 +07:00
customer-branch.ts feat: customer branch citizen 2024-09-17 10:57:42 +07:00
employee.ts refactor: middleware 2024-09-10 13:24:56 +07:00
error.ts fix: code case 2024-08-29 13:09:44 +07:00
logger.ts feat: allow disable logger by .env 2024-08-28 11:08:50 +07:00
morgan.ts refactor: only filter log api 2024-08-14 13:46:05 +07:00
role.ts fix: wrong key 2024-07-02 17:29:03 +07:00