-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
show example of how to override an sdk method
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Records as FernRecords } from "../api/resources/records/client/Client"; | ||
import { Flatfile } from ".."; | ||
import * as environments from "../environments"; | ||
import * as core from "../core"; | ||
import * as serializers from "../serialization"; | ||
import urlJoin from "url-join"; | ||
import * as errors from "../errors"; | ||
|
||
export class Records extends FernRecords { | ||
/** | ||
* Adds records to a workbook sheet | ||
* @throws {@link Flatfile.BadRequestError} | ||
* @throws {@link Flatfile.NotFoundError} | ||
*/ | ||
public async insert( | ||
sheetId: Flatfile.SheetId, | ||
request: Flatfile.RecordData[], | ||
requestOptions?: FernRecords.RequestOptions | ||
): Promise<Flatfile.RecordsResponse> { | ||
/* add your own implementation of addRecords */ | ||
throw new Error("Unimplemnted"); | ||
} | ||
} |