-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* fix(delete-query): make filter by optional * fix(delete-query): pass query params to api call * test(delete-query): test that it passes query params to api call * build(delete-query): add build files
- Loading branch information
1 parent
f7ba556
commit d6b2487
Showing
11 changed files
with
45 additions
and
17 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import ApiCall from "./ApiCall"; | ||
import { DocumentSchema, DocumentWriteParameters } from "./Documents"; | ||
import { DeleteQuery, DocumentSchema, DocumentWriteParameters } from "./Documents"; | ||
export declare class Document<T extends DocumentSchema = object> { | ||
private collectionName; | ||
private documentId; | ||
private apiCall; | ||
constructor(collectionName: string, documentId: string, apiCall: ApiCall); | ||
retrieve(): Promise<T>; | ||
delete(): Promise<T>; | ||
delete(options?: DeleteQuery): Promise<T>; | ||
update(partialDocument: Partial<T>, options?: DocumentWriteParameters): Promise<T>; | ||
private endpointPath; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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