@xvia/mtcidadao-api
Advanced tools
Comparing version 2.81.3 to 2.82.0
@@ -11,2 +11,3 @@ import { Service } from "../Service"; | ||
removeDoc(documentNumber: string): Promise<any>; | ||
updateDocument(documentIdPortal: string, documentNumber: string, documentType: string): Promise<any>; | ||
} |
@@ -94,3 +94,16 @@ "use strict"; | ||
} | ||
updateDocument(documentIdPortal, documentNumber, documentType) { | ||
return this.request(`/v1/document/update`, { | ||
method: "POST", | ||
headers: { | ||
"content-type": "application/json", | ||
}, | ||
body: JSON.stringify({ | ||
documentIdPortal, | ||
documentNumber, | ||
documentType, | ||
}), | ||
}); | ||
} | ||
} | ||
exports.DocumentApi = DocumentApi; |
@@ -7,2 +7,3 @@ import { IDBObject } from "./IDBObject"; | ||
find(collection: string, query: Record<string, any>): Promise<any[]>; | ||
findSort(collection: string, query: Record<string, any>, sort: Record<string, any>): Promise<any[]>; | ||
findLimited(collection: string, query?: Record<string, any>, skip?: number, limit?: number): Promise<any[]>; | ||
@@ -9,0 +10,0 @@ pushItemToArray(collection: string, filter: any, item: Record<string, any>): Promise<any>; |
{ | ||
"name": "@xvia/mtcidadao-api", | ||
"version": "2.81.3", | ||
"version": "2.82.0", | ||
"description": "MTCidadão api sdk", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -133,2 +133,20 @@ // AUTO GENERATED. DO NOT EDIT IT | ||
} | ||
updateDocument( | ||
documentIdPortal: string, | ||
documentNumber: string, | ||
documentType: string, | ||
): Promise<any> { | ||
return this.request(`/v1/document/update`, { | ||
method: "POST", | ||
headers: { | ||
"content-type": "application/json", | ||
}, | ||
body: JSON.stringify({ | ||
documentIdPortal, | ||
documentNumber, | ||
documentType, | ||
}), | ||
}); | ||
} | ||
} |
313262
9267