@nangohq/types 0.56.4 → 0.57.0
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.
|
@@ -4,6 +4,7 @@ export interface ConnectSession {
|
|
|
4
4
|
readonly accountId: number;
|
|
5
5
|
readonly environmentId: number;
|
|
6
6
|
readonly connectionId: number | null;
|
|
7
|
+
readonly operationId: string | null;
|
|
7
8
|
readonly allowedIntegrations: string[] | null;
|
|
8
9
|
readonly integrationsConfigDefaults: Record<string, {
|
|
9
10
|
/** Only used by Slack */
|
package/dist/logs/api.d.ts
CHANGED
|
@@ -102,7 +102,7 @@ export type PostInsights = Endpoint<{
|
|
|
102
102
|
env: string;
|
|
103
103
|
};
|
|
104
104
|
Body: {
|
|
105
|
-
type: PickFromUnion<ConcatOperationListWithGroup, 'action' | 'sync:run' | 'proxy' | 'webhook:incoming'>;
|
|
105
|
+
type: PickFromUnion<ConcatOperationListWithGroup, 'action' | 'sync:run' | 'proxy' | 'webhook:incoming' | 'auth:create_connection'>;
|
|
106
106
|
};
|
|
107
107
|
Success: {
|
|
108
108
|
data: {
|
|
@@ -115,5 +115,8 @@ export interface InsightsHistogramEntry {
|
|
|
115
115
|
total: number;
|
|
116
116
|
success: number;
|
|
117
117
|
failure: number;
|
|
118
|
+
cancelled: number;
|
|
119
|
+
expired: number;
|
|
120
|
+
running: number;
|
|
118
121
|
}
|
|
119
122
|
export {};
|
package/dist/logs/messages.d.ts
CHANGED
|
@@ -87,6 +87,7 @@ export interface MessageRow {
|
|
|
87
87
|
level: LogLevel;
|
|
88
88
|
type: MessageType;
|
|
89
89
|
message: string;
|
|
90
|
+
context?: 'script' | 'proxy' | 'webhook';
|
|
90
91
|
parentId: string;
|
|
91
92
|
error?: MessageError | undefined;
|
|
92
93
|
request?: MessageHTTPRequest | undefined;
|
|
@@ -95,6 +96,7 @@ export interface MessageRow {
|
|
|
95
96
|
retry?: MessageHTTPRetry | undefined;
|
|
96
97
|
createdAt: string;
|
|
97
98
|
endedAt?: string | undefined;
|
|
99
|
+
durationMs?: number | undefined;
|
|
98
100
|
}
|
|
99
101
|
export interface OperationRow {
|
|
100
102
|
id: string;
|
|
@@ -122,6 +124,8 @@ export interface OperationRow {
|
|
|
122
124
|
integrationName?: string | undefined;
|
|
123
125
|
connectionId?: number | undefined;
|
|
124
126
|
connectionName?: string | undefined;
|
|
127
|
+
endUserId?: string | undefined;
|
|
128
|
+
endUserName?: string | undefined;
|
|
125
129
|
syncConfigId?: number | undefined;
|
|
126
130
|
syncConfigName?: string | undefined;
|
|
127
131
|
jobId?: string | undefined;
|
|
@@ -135,6 +139,7 @@ export interface OperationRow {
|
|
|
135
139
|
startedAt: string | null;
|
|
136
140
|
endedAt: string | null;
|
|
137
141
|
expiresAt: string | null;
|
|
142
|
+
durationMs?: number | undefined;
|
|
138
143
|
}
|
|
139
144
|
/**
|
|
140
145
|
* What is required to insert an Operation
|
package/dist/runner/sdk.d.ts
CHANGED
|
@@ -6,23 +6,26 @@ export interface NangoProps {
|
|
|
6
6
|
scriptType: 'sync' | 'action' | 'webhook' | 'on-event';
|
|
7
7
|
host?: string;
|
|
8
8
|
secretKey: string;
|
|
9
|
-
team
|
|
9
|
+
team: Pick<DBTeam, 'id' | 'name'>;
|
|
10
10
|
connectionId: string;
|
|
11
11
|
environmentId: number;
|
|
12
|
-
environmentName
|
|
12
|
+
environmentName: string;
|
|
13
13
|
activityLogId?: string | undefined;
|
|
14
14
|
providerConfigKey: string;
|
|
15
15
|
provider: string;
|
|
16
16
|
lastSyncDate?: Date;
|
|
17
17
|
syncId?: string | undefined;
|
|
18
18
|
syncVariant?: string | undefined;
|
|
19
|
-
nangoConnectionId
|
|
19
|
+
nangoConnectionId: number;
|
|
20
20
|
syncJobId?: number | undefined;
|
|
21
21
|
track_deletes?: boolean;
|
|
22
22
|
attributes?: object | undefined;
|
|
23
23
|
abortSignal?: AbortSignal;
|
|
24
24
|
syncConfig: DBSyncConfig;
|
|
25
25
|
runnerFlags: RunnerFlags;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated not used
|
|
28
|
+
*/
|
|
26
29
|
debug: boolean;
|
|
27
30
|
startedAt: Date;
|
|
28
31
|
endUser: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nangohq/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.0",
|
|
4
4
|
"description": "Types used in Nango applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"directory": "packages/utils"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"axios": "^1.
|
|
15
|
+
"axios": "^1.8.2",
|
|
16
16
|
"json-schema": "0.4.0",
|
|
17
17
|
"type-fest": "4.32.0"
|
|
18
18
|
},
|