Skip to content

Instantly share code, notes, and snippets.

@arminyahya
Created February 22, 2020 05:06
Show Gist options
  • Save arminyahya/7c2f32ea1b227c6639243aa1963e080f to your computer and use it in GitHub Desktop.
Save arminyahya/7c2f32ea1b227c6639243aa1963e080f to your computer and use it in GitHub Desktop.
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