Skip to content

backends-web-backend


Class: PosDocumentsController

Defined in: backends/web-backend/src/pos-workbooks/pos-documents.controller.ts:23

Constructors

Constructor

new PosDocumentsController(posDocumentsService): PosDocumentsController

Defined in: backends/web-backend/src/pos-workbooks/pos-documents.controller.ts:24

Parameters

posDocumentsService

PosDocumentsService

Returns

PosDocumentsController

Methods

download()

download(id, documentId, req): Promise<{ filename: string; url: string; }>

Defined in: backends/web-backend/src/pos-workbooks/pos-documents.controller.ts:62

Parameters

id

string

documentId

string

req

AuthenticatedRequest

Returns

Promise<{ filename: string; url: string; }>


list()

list(id, req): Promise<PosDocumentEntry[]>

Defined in: backends/web-backend/src/pos-workbooks/pos-documents.controller.ts:28

Parameters

id

string

req

AuthenticatedRequest

Returns

Promise<PosDocumentEntry[]>


remove()

remove(id, documentId, req): Promise<void>

Defined in: backends/web-backend/src/pos-workbooks/pos-documents.controller.ts:56

Parameters

id

string

documentId

string

req

AuthenticatedRequest

Returns

Promise<void>


update()

update(id, documentId, body, req): Promise<PosDocumentEntry>

Defined in: backends/web-backend/src/pos-workbooks/pos-documents.controller.ts:50

Parameters

id

string

documentId

string

body

UpdateDocumentBody

req

AuthenticatedRequest

Returns

Promise<PosDocumentEntry>


upload()

upload(id, file, req): Promise<PosDocumentEntry>

Defined in: backends/web-backend/src/pos-workbooks/pos-documents.controller.ts:35

Parameters

id

string

file

UploadedFilePayload | undefined

req

AuthenticatedRequest

Returns

Promise<PosDocumentEntry>