docpouch-client 0.8.13 → 0.8.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export default class docPouchClient {
|
|
|
62
62
|
removeUser(userID: string): Promise<void>;
|
|
63
63
|
createDocument(document: I_DocumentEntry): Promise<I_DocumentEntry>;
|
|
64
64
|
listDocuments(): Promise<I_DocumentEntry[]>;
|
|
65
|
-
|
|
65
|
+
fetchDocuments(queryObject: I_DocumentQuery): Promise<I_DocumentEntry[]>;
|
|
66
66
|
updateDocument(documentID: string, documentData: I_DocumentEntry): Promise<void>;
|
|
67
67
|
removeDocument(documentID: string): Promise<void>;
|
|
68
68
|
createStructure(structure: I_StructureCreation): Promise<I_DataStructure>;
|
package/dist/index.js
CHANGED
|
@@ -117,7 +117,7 @@ export default class docPouchClient {
|
|
|
117
117
|
async listDocuments() {
|
|
118
118
|
return await this.request('/docs/list', 'GET');
|
|
119
119
|
}
|
|
120
|
-
async
|
|
120
|
+
async fetchDocuments(queryObject) {
|
|
121
121
|
return await this.request(`/docs/fetch/`, 'POST', queryObject);
|
|
122
122
|
}
|
|
123
123
|
async updateDocument(documentID, documentData) {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -154,7 +154,7 @@ export default class docPouchClient {
|
|
|
154
154
|
return await this.request<I_DocumentEntry[]>('/docs/list', 'GET');
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
async
|
|
157
|
+
async fetchDocuments(queryObject: I_DocumentQuery): Promise<I_DocumentEntry[]> {
|
|
158
158
|
return await this.request<I_DocumentEntry[]>(`/docs/fetch/`, 'POST', queryObject);
|
|
159
159
|
}
|
|
160
160
|
|