@evergis/api
Advanced tools
Comparing version 0.1.60 to 0.1.61
@@ -17,5 +17,6 @@ import { ServiceBase } from './ServiceBase'; | ||
print(printTemplate?: TemplateModelDc): Promise<Blob>; | ||
getTemplate(name?: string): Promise<string>; | ||
uploadTemplate({ name, template }: UploadTemplateParams): Promise<void>; | ||
deleteTemplate(name?: string): Promise<void>; | ||
getTemplates(): Promise<string[]>; | ||
uploadTemplate({ name, template, rewrite }: UploadTemplateParams): Promise<void>; | ||
getTemplate(name: string): Promise<string>; | ||
deleteTemplate(name: string): Promise<void>; | ||
getProjects({ filter, offset, limit, orderByFields, isFavorite, }: GetProjectsParams): Promise<ProjectsListDc>; | ||
@@ -79,2 +80,4 @@ getTables({ filter, offset, limit, orderByFields, isFavorite, }: GetTablesParams): Promise<TableListDc>; | ||
template: FormData; | ||
/** Rewrite if exits. */ | ||
rewrite?: boolean; | ||
}; | ||
@@ -81,0 +84,0 @@ export declare type GetProjectsParams = { |
@@ -76,15 +76,16 @@ /* | ||
} | ||
getTemplate(name) { | ||
return this.http | ||
.get(`${this.name}/print/template`, { name }) | ||
.json(); | ||
getTemplates() { | ||
return this.http.get(`${this.name}/print/templates`).json(); | ||
} | ||
uploadTemplate({ name, template }) { | ||
uploadTemplate({ name, template, rewrite }) { | ||
return this.http | ||
.post(`${this.name}/print/template`, template, { name }) | ||
.post(`${this.name}/print/templates`, template, { name, rewrite }) | ||
.then(() => { }); | ||
} | ||
getTemplate(name) { | ||
return this.http.get(`${this.name}/print/templates/${name}`).json(); | ||
} | ||
deleteTemplate(name) { | ||
return this.http | ||
.delete(`${this.name}/print/template`, { name }) | ||
.delete(`${this.name}/print/templates/${name}`) | ||
.then(() => { }); | ||
@@ -91,0 +92,0 @@ } |
{ | ||
"name": "@evergis/api", | ||
"version": "0.1.60", | ||
"version": "0.1.61", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "author": "everpoint", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
319276
6708