This file contains hidden or 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
interface SmartsheetPaged { | |
pageNumber: number; | |
pageSize: number; | |
totalPages: number; | |
totalCount: number; | |
} | |
export interface SmartsheetClientOptions { | |
accessToken?: string; | |
logLevel?: string; |
This file contains hidden or 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
// README: check the cookie from request headers in browser and replace this. | |
const cookie = "<Copy a cookie from a request that happens in your API when deployed>"; | |
const target = "https://<tenant>.sharepoint.com"; | |
const PROXY_CONFIG = { | |
"/test/_layouts/*": { | |
"target": target, | |
"secure": false, | |
"changeOrigin": true, | |
"bypass": function (req, res, proxyOptions) { | |
req.headers["origin"] = target; |