@nangohq/types 0.57.2 → 0.57.4
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.
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { ApiError, ApiTimestamps, Endpoint } from '../../api.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { AllAuthCredentials } from '../../auth/api.js';
|
|
3
|
+
import type { ApiEndUser } from '../../endUser/index.js';
|
|
3
4
|
import type { ActiveLog } from '../../notification/active-logs/db.js';
|
|
5
|
+
import type { ReplaceInObject } from '../../utils.js';
|
|
6
|
+
import type { DBConnection, DBConnectionDecrypted } from '../db.js';
|
|
4
7
|
import type { Merge } from 'type-fest';
|
|
5
|
-
import type { ApiEndUser } from '../../endUser/index.js';
|
|
6
|
-
import type { AllAuthCredentials } from '../../auth/api.js';
|
|
7
8
|
export type ApiConnectionSimple = Pick<Merge<DBConnection, ApiTimestamps>, 'id' | 'connection_id' | 'provider_config_key' | 'created_at' | 'updated_at'> & {
|
|
8
9
|
provider: string;
|
|
9
10
|
errors: {
|
|
@@ -64,7 +65,7 @@ export type GetPublicConnections = Endpoint<{
|
|
|
64
65
|
connections: ApiPublicConnection[];
|
|
65
66
|
};
|
|
66
67
|
}>;
|
|
67
|
-
export type ApiConnectionFull =
|
|
68
|
+
export type ApiConnectionFull = Omit<ReplaceInObject<DBConnectionDecrypted, Date, string>, 'credentials_iv' | 'end_user_id' | 'credentials_tag' | 'deleted' | 'deleted_at'>;
|
|
68
69
|
export type GetConnection = Endpoint<{
|
|
69
70
|
Method: 'GET';
|
|
70
71
|
Params: {
|
package/dist/runner/sdk.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { AxiosError, AxiosInterceptorManager, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
1
|
import type { RunnerFlags } from '.';
|
|
3
|
-
import type { DBTeam } from '../team/db';
|
|
4
2
|
import type { DBSyncConfig } from '../syncConfigs/db';
|
|
3
|
+
import type { DBTeam } from '../team/db';
|
|
4
|
+
import type { AxiosError, AxiosInterceptorManager, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
5
5
|
export interface NangoProps {
|
|
6
6
|
scriptType: 'sync' | 'action' | 'webhook' | 'on-event';
|
|
7
7
|
host?: string;
|
|
@@ -10,7 +10,7 @@ export interface NangoProps {
|
|
|
10
10
|
connectionId: string;
|
|
11
11
|
environmentId: number;
|
|
12
12
|
environmentName: string;
|
|
13
|
-
activityLogId
|
|
13
|
+
activityLogId: string;
|
|
14
14
|
providerConfigKey: string;
|
|
15
15
|
provider: string;
|
|
16
16
|
lastSyncDate?: Date;
|