jws-backend/tsoa.json
Methapon Metanipat f673f2c953
feat: credit note (#8)
* feat: add db table and structure

* chore: migration

* createCreditNote

* add check conditions quotationId before create credit note and add fn delete data

* feat: add query list of credit note

* feat: add get stats of credit ntoe

* update

* feat: add get by id

* add permission

* delete console log

* chore: cleanup

---------

Co-authored-by: Methapon2001 <61303214+Methapon2001@users.noreply.github.com>
Co-authored-by: Kanjana <taii.kanjana@gmail.com>
2024-12-20 14:22:55 +07:00

64 lines
2 KiB
JSON

{
"entryFile": "src/app.ts",
"noImplicitAdditionalProperties": "throw-on-extras",
"controllerPathGlobs": ["src/controllers/**/*-controller.ts"],
"spec": {
"outputDirectory": "src/",
"specVersion": 3,
"securityDefinitions": {
"keycloak": {
"type": "apiKey",
"name": "Authorization",
"description": "Keycloak Bearer Token",
"scheme": "bearer"
}
},
"spec": {
"tags": [
{ "name": "OpenAPI" },
{ "name": "Config" },
{ "name": "Single-Sign On" },
{ "name": "Notification" },
{ "name": "Permission" },
{ "name": "Address" },
{ "name": "Employment Office" },
{ "name": "Branch" },
{ "name": "User" },
{ "name": "Branch User" },
{ "name": "Customer" },
{ "name": "Customer Branch" },
{ "name": "Customer Branch Citizen" },
{ "name": "Customer Branch House Registration" },
{ "name": "Customer Branch Vat Registration" },
{ "name": "Customer Branch Commercial Registration" },
{ "name": "Customer Branch Power of Attorney" },
{ "name": "Employee" },
{ "name": "Employee Checkup" },
{ "name": "Employee Passport" },
{ "name": "Employee Visa" },
{ "name": "Employee In Country Notice" },
{ "name": "Employee Work" },
{ "name": "Employee Other Info" },
{ "name": "Institution" },
{ "name": "Workflow" },
{ "name": "Product Group" },
{ "name": "Product" },
{ "name": "Work" },
{ "name": "Service" },
{ "name": "Quotation" },
{ "name": "Invoice" },
{ "name": "Payment" },
{ "name": "Receipt" },
{ "name": "Request List" },
{ "name": "Task Order" },
{ "name": "User Task Order" },
{ "name": "Credit Note" },
{ "name": "Debit Note" }
]
}
},
"routes": {
"routesDir": "src/",
"authenticationModule": "src/middlewares/auth.ts"
}
}