nango 0.25.6 → 0.25.8-beta
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 +10 -21
- package/docker/docker-compose.yaml +2 -2
- package/package.json +3 -3
package/dist/nango-sync.d.ts
CHANGED
|
@@ -48,22 +48,11 @@ interface ProxyConfiguration {
|
|
|
48
48
|
}
|
|
49
49
|
declare enum AuthModes {
|
|
50
50
|
OAuth1 = "OAUTH1",
|
|
51
|
-
OAuth2 = "OAUTH2"
|
|
52
|
-
Basic = "BASIC",
|
|
53
|
-
ApiKey = "API_KEY"
|
|
51
|
+
OAuth2 = "OAUTH2"
|
|
54
52
|
}
|
|
55
|
-
interface
|
|
56
|
-
type?: AuthModes.Basic;
|
|
57
|
-
username: string;
|
|
58
|
-
password: string;
|
|
59
|
-
}
|
|
60
|
-
interface ApiKeyCredentials {
|
|
61
|
-
type?: AuthModes.ApiKey;
|
|
62
|
-
apiKey: string;
|
|
63
|
-
}
|
|
64
|
-
interface CredentialsCommon<T = Record<string, any>> {
|
|
53
|
+
interface CredentialsCommon {
|
|
65
54
|
type: AuthModes;
|
|
66
|
-
raw:
|
|
55
|
+
raw: Record<string, string>;
|
|
67
56
|
}
|
|
68
57
|
interface OAuth2Credentials extends CredentialsCommon {
|
|
69
58
|
type: AuthModes.OAuth2;
|
|
@@ -76,16 +65,16 @@ interface OAuth1Credentials extends CredentialsCommon {
|
|
|
76
65
|
oauth_token: string;
|
|
77
66
|
oauth_token_secret: string;
|
|
78
67
|
}
|
|
79
|
-
type AuthCredentials = OAuth2Credentials | OAuth1Credentials
|
|
68
|
+
type AuthCredentials = OAuth2Credentials | OAuth1Credentials;
|
|
80
69
|
interface Connection {
|
|
81
70
|
id?: number;
|
|
82
|
-
created_at?:
|
|
83
|
-
updated_at?:
|
|
71
|
+
created_at?: Date;
|
|
72
|
+
updated_at?: Date;
|
|
84
73
|
provider_config_key: string;
|
|
85
74
|
connection_id: string;
|
|
86
75
|
connection_config: Record<string, string>;
|
|
87
|
-
|
|
88
|
-
metadata: Record<string, string
|
|
76
|
+
account_id: number;
|
|
77
|
+
metadata: Record<string, string>;
|
|
89
78
|
credentials_iv?: string | null;
|
|
90
79
|
credentials_tag?: string | null;
|
|
91
80
|
field_mappings?: Record<string, string>;
|
|
@@ -93,7 +82,7 @@ interface Connection {
|
|
|
93
82
|
}
|
|
94
83
|
interface NangoProps {
|
|
95
84
|
host?: string;
|
|
96
|
-
secretKey
|
|
85
|
+
secretKey?: string;
|
|
97
86
|
connectionId?: string;
|
|
98
87
|
activityLogId?: number;
|
|
99
88
|
providerConfigKey?: string;
|
|
@@ -116,7 +105,7 @@ export declare class NangoSync {
|
|
|
116
105
|
dryRun?: boolean;
|
|
117
106
|
connectionId?: string;
|
|
118
107
|
providerConfigKey?: string;
|
|
119
|
-
constructor(config
|
|
108
|
+
constructor(config?: NangoProps);
|
|
120
109
|
setLastSyncDate(date: Date): void;
|
|
121
110
|
proxy(config: ProxyConfiguration): Promise<AxiosResponse<any, any>>;
|
|
122
111
|
getConnection(): Promise<Connection>;
|
|
@@ -15,7 +15,7 @@ services:
|
|
|
15
15
|
- nango
|
|
16
16
|
|
|
17
17
|
nango-server:
|
|
18
|
-
image: nangohq/nango-server:0.25.
|
|
18
|
+
image: nangohq/nango-server:0.25.8
|
|
19
19
|
container_name: nango-server
|
|
20
20
|
environment:
|
|
21
21
|
- TEMPORAL_ADDRESS=temporal:7233
|
|
@@ -47,7 +47,7 @@ services:
|
|
|
47
47
|
- nango
|
|
48
48
|
|
|
49
49
|
nango-worker:
|
|
50
|
-
image: nangohq/nango-worker:0.25.
|
|
50
|
+
image: nangohq/nango-worker:0.25.8
|
|
51
51
|
container_name: nango-worker
|
|
52
52
|
restart: always
|
|
53
53
|
ports:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nango",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.8-beta",
|
|
4
4
|
"description": "Nango's CLI tool.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@babel/traverse": "^7.22.5",
|
|
25
25
|
"@inquirer/prompts": "^2.3.0",
|
|
26
|
-
"@nangohq/shared": "0.25.
|
|
26
|
+
"@nangohq/shared": "0.25.8",
|
|
27
27
|
"@vercel/ncc": "^0.36.1",
|
|
28
28
|
"axios": "^1.2.0",
|
|
29
29
|
"byots": "^5.0.0-dev.20221103.1.34",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
},
|
|
67
67
|
"files": [
|
|
68
68
|
"dist/**/*",
|
|
69
|
-
"docker
|
|
69
|
+
"docker/docker-compose.yaml",
|
|
70
70
|
"tsconfig.dev.json",
|
|
71
71
|
"!**/*.json",
|
|
72
72
|
"README.md"
|