Commit graph

33 commits

Author SHA1 Message Date
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
Methapon Metanipat
a0168ee4fb feat: customer branch citizen 2024-09-17 10:57:42 +07:00
Methapon Metanipat
0699835129 refactor: middleware 2024-09-10 13:24:56 +07:00
Methapon Metanipat
d558aa3cf2 fix: wrong condition 2024-09-06 15:10:37 +07:00
Methapon Metanipat
806968e3dd feat: permission check employee 2024-09-06 11:16:09 +07:00
Methapon Metanipat
8a2b122d7f fix: code case 2024-08-29 13:09:44 +07:00
Methapon Metanipat
f4723e4335 feat: allow disable logger by .env 2024-08-28 11:08:50 +07:00
Methapon2001
ebba5cff03 refactor: only filter log api 2024-08-14 13:46:05 +07:00
Methapon2001
89b5a22b75 refactor: swap logger 2024-07-26 17:35:09 +07:00
Methapon2001
e233869efe chore: remove log 2024-07-24 13:35:36 +07:00
Methapon2001
e397f46791 fix: error on disable log 2024-07-24 13:35:36 +07:00
Methapon2001
994b9ced2a refactor: update auth setting 2024-07-18 17:22:53 +07:00
Methapon2001
df1cb471d2 feat: add user real name to log 2024-07-11 15:56:11 +07:00
Methapon2001
52305bc4e6 fix: typo 2024-07-11 10:27:51 +07:00
Methapon2001
7ab828ab50 feat: change format 2024-07-10 15:27:36 +07:00
Methapon2001
7782772e50 fix: code not return 2024-07-02 17:45:21 +07:00
Methapon2001
2450ddb7ee fix: wrong key 2024-07-02 17:29:03 +07:00
Methapon2001
8ac2527217 feat: add user name to log data 2024-06-27 09:01:20 +07:00
Methapon2001
cd47863f2a feat: inject sessionId for logging purpose 2024-06-25 13:10:42 +07:00
Methapon2001
39206a6d76 refactor: update log 2024-06-14 14:13:03 +07:00
puriphat
be46aa3cff fix: auth & role code 2024-06-14 06:30:10 +00:00
puriphat
9722fab149 fix: change dev message to code 2024-06-14 04:39:48 +00:00
Methapon2001
32127ae804 refactor: change condition order 2024-04-10 12:49:41 +07:00
Methapon2001
f89dfcad37 feat: check for permission using roles 2024-04-10 12:46:23 +07:00
Methapon2001
eda469779b refacotr: change type from object to string instead 2024-04-09 17:54:04 +07:00
Methapon2001
48c9fe1cfd fix: filter out after finish response 2024-04-04 09:15:53 +07:00
Methapon2001
cd6e2040af fix: filter out non-api 2024-04-04 09:14:12 +07:00
Methapon2001
8c898c4faa fix: error reading variable 2024-04-04 09:10:31 +07:00
Methapon2001
9c176b9878 feat: logging data structure and conditioan level 2024-04-03 16:12:33 +07:00
Methapon2001
41c4d5e8f2 feat: add log middleware 2024-04-03 15:37:19 +07:00
Methapon2001
ba65c1fe83 refactor: add devMessage field (useful in front-end) 2024-04-02 15:26:37 +07:00
Methapon2001
d6aa0385cd fix: empty user info when crud 2024-04-02 13:51:55 +07:00
Methapon2001
c5e3107e03 initial commit 2024-04-01 13:28:43 +07:00