@nangohq/types 0.69.30 → 0.69.32
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/connect/api.d.ts +9 -2
- package/dist/plans/db.d.ts +5 -0
- package/dist/sync/api.d.ts +5 -1
- package/package.json +1 -1
package/dist/connect/api.d.ts
CHANGED
|
@@ -28,14 +28,21 @@ export interface EndUserInput {
|
|
|
28
28
|
tags?: Record<string, string> | undefined;
|
|
29
29
|
}
|
|
30
30
|
export type ConnectSessionOutput = Omit<ConnectSessionInput, 'end_user' | 'organization'> & {
|
|
31
|
-
endUser: ApiEndUser;
|
|
31
|
+
endUser: ApiEndUser | null;
|
|
32
32
|
isReconnecting?: boolean;
|
|
33
33
|
connectUISettings: ConnectUISettings;
|
|
34
34
|
};
|
|
35
|
+
export type PostConnectSessionsBody = ConnectSessionInput | (Omit<ConnectSessionInput, 'end_user' | 'tags'> & {
|
|
36
|
+
/**
|
|
37
|
+
* When top-level tags is provided, end_user becomes optional.
|
|
38
|
+
*/
|
|
39
|
+
tags: NonNullable<ConnectSessionInput['tags']>;
|
|
40
|
+
end_user?: ConnectSessionInput['end_user'] | undefined;
|
|
41
|
+
});
|
|
35
42
|
export type PostConnectSessions = Endpoint<{
|
|
36
43
|
Method: 'POST';
|
|
37
44
|
Path: '/connect/sessions';
|
|
38
|
-
Body:
|
|
45
|
+
Body: PostConnectSessionsBody;
|
|
39
46
|
Success: {
|
|
40
47
|
data: {
|
|
41
48
|
token: string;
|
package/dist/plans/db.d.ts
CHANGED
|
@@ -140,5 +140,10 @@ export interface DBPlan extends Timestamps {
|
|
|
140
140
|
* @default "runner"
|
|
141
141
|
*/
|
|
142
142
|
on_event_function_runtime: FunctionRuntime;
|
|
143
|
+
/**
|
|
144
|
+
* Enable or disable records autopruning
|
|
145
|
+
* @default true
|
|
146
|
+
*/
|
|
147
|
+
has_records_autopruning: boolean;
|
|
143
148
|
}
|
|
144
149
|
export {};
|
package/dist/sync/api.d.ts
CHANGED
|
@@ -8,10 +8,14 @@ export type PostPublicTrigger = Endpoint<{
|
|
|
8
8
|
name: string;
|
|
9
9
|
variant: string;
|
|
10
10
|
})[];
|
|
11
|
-
sync_mode?: 'incremental' | 'full_refresh' | 'full_refresh_and_clear_cache' | undefined;
|
|
12
11
|
provider_config_key?: string | undefined;
|
|
13
12
|
connection_id?: string | undefined;
|
|
13
|
+
opts?: {
|
|
14
|
+
reset?: boolean | undefined;
|
|
15
|
+
emptyCache?: boolean | undefined;
|
|
16
|
+
} | undefined;
|
|
14
17
|
full_resync?: boolean | undefined;
|
|
18
|
+
sync_mode?: 'incremental' | 'full_refresh' | 'full_refresh_and_clear_cache' | undefined;
|
|
15
19
|
};
|
|
16
20
|
Headers: {
|
|
17
21
|
'provider-config-key'?: string | undefined;
|