Created
February 22, 2020 05:06
-
-
Save arminyahya/7c2f32ea1b227c6639243aa1963e080f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import getApiResult from 'ProjectGlobals/getApiResult'; | |
type MultiIdentifierPrintModel = Yeganeh.EDMS.WebApi.Models.Document.MultiIdentifierPrintModel<number>; | |
type ExceptionListPrintModel = Yeganeh.EDMS.WebApi.Models.Document.ExceptionListPrintModel<number>; | |
type ExceptionAdvancedSearchPrintModel = Yeganeh.EDMS.WebApi.Models.Document.ExceptionAdvancedSearchPrintModel; | |
export const downloadDocumentAttachments = (dataSent: MultiIdentifierPrintModel) => { | |
return getApiResult.delete<string>(['Document', 'PrintDocuments'], dataSent); | |
}; | |
export const downloadAllDocumentAttachments = (dataSent: ExceptionListPrintModel) => { | |
return getApiResult.delete<string>(['Document', 'PrintAllDocuments'], dataSent); | |
}; | |
export const downloadAllAdvancedSearchDocumentAttachments = (dataSent: ExceptionAdvancedSearchPrintModel) => { | |
return getApiResult.post<string>(['Document', 'PrintAllAdvancedSearchResult'], dataSent); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment