nango 0.37.17 → 0.37.19
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/nango-sync.d.ts +13 -5
- package/package.json +2 -2
package/dist/nango-sync.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
type LogLevel = 'info' | 'debug' | 'error' | 'warn' | 'http' | 'verbose' | 'silly';
|
|
2
1
|
interface ParamEncoder {
|
|
3
2
|
(value: any, defaultEncoder: (value: any) => any): any;
|
|
4
3
|
}
|
|
@@ -155,9 +154,6 @@ export interface NangoProps {
|
|
|
155
154
|
stubbedMetadata?: Metadata | undefined;
|
|
156
155
|
usePersistAPI?: boolean;
|
|
157
156
|
}
|
|
158
|
-
interface UserLogParameters {
|
|
159
|
-
level?: LogLevel;
|
|
160
|
-
}
|
|
161
157
|
interface EnvironmentVariable {
|
|
162
158
|
name: string;
|
|
163
159
|
value: string;
|
|
@@ -190,7 +186,19 @@ export declare class NangoAction {
|
|
|
190
186
|
getMetadata<T = Metadata>(): Promise<T>;
|
|
191
187
|
getWebhookURL(): Promise<string>;
|
|
192
188
|
getFieldMapping(): Promise<Metadata>;
|
|
193
|
-
|
|
189
|
+
/**
|
|
190
|
+
* Log
|
|
191
|
+
* @desc Log a message to the activity log which shows up in the Nango Dashboard
|
|
192
|
+
* note that the last argument can be an object with a level property to specify the log level
|
|
193
|
+
* example: await nango.log('This is a log message', { level: 'error' })
|
|
194
|
+
* error = red
|
|
195
|
+
* warn = orange
|
|
196
|
+
* info = white
|
|
197
|
+
* debug = grey
|
|
198
|
+
* http = green
|
|
199
|
+
* silly = light green
|
|
200
|
+
*/
|
|
201
|
+
log(...args: any[]): Promise<void>;
|
|
194
202
|
getEnvironmentVariables(): Promise<EnvironmentVariable[] | null>;
|
|
195
203
|
getFlowAttributes<A = object>(): A | null;
|
|
196
204
|
paginate<T = any>(config: ProxyConfiguration): AsyncGenerator<T[], undefined, void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nango",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.19",
|
|
4
4
|
"description": "Nango's CLI tool.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/traverse": "^7.22.5",
|
|
28
28
|
"@inquirer/prompts": "^2.3.0",
|
|
29
|
-
"@nangohq/shared": "^0.37.
|
|
29
|
+
"@nangohq/shared": "^0.37.19",
|
|
30
30
|
"@vercel/ncc": "^0.36.1",
|
|
31
31
|
"ajv": "^8.12.0",
|
|
32
32
|
"ajv-errors": "^3.0.0",
|