@nangohq/types 0.59.12 → 0.60.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.
package/dist/api.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface ValidationError {
|
|
|
11
11
|
message: string;
|
|
12
12
|
path: (string | number)[];
|
|
13
13
|
}
|
|
14
|
-
export type ResDefaultErrors = ApiError<'invalid_content_type'> | ApiError<'not_found'> | ApiError<'conflict'> | ApiError<'plan_limit'> | ApiError<'forbidden'> | ApiError<'invalid_query_params', ValidationError[]> | ApiError<'invalid_headers', ValidationError[]> | ApiError<'invalid_body', ValidationError[]> | ApiError<'invalid_uri_params', ValidationError[]> | ApiError<'feature_disabled'> | ApiError<'generic_error_support', undefined, string> | ApiError<'server_error'> | ApiError<'resource_capped'> | ApiError<'missing_auth_header'> | ApiError<'malformed_auth_header'> | ApiError<'unknown_account'> | ApiError<'unknown_connect_session_token'> | ApiError<'invalid_cli_version'> | ApiError<'invalid_permissions'> | ApiError<'invalid_connect_session_token_format'> | ApiError<'request_too_large'>;
|
|
14
|
+
export type ResDefaultErrors = ApiError<'invalid_content_type'> | ApiError<'not_found'> | ApiError<'disabled_resource'> | ApiError<'conflict'> | ApiError<'plan_limit'> | ApiError<'forbidden'> | ApiError<'invalid_query_params', ValidationError[]> | ApiError<'invalid_headers', ValidationError[]> | ApiError<'invalid_body', ValidationError[]> | ApiError<'invalid_uri_params', ValidationError[]> | ApiError<'feature_disabled'> | ApiError<'generic_error_support', undefined, string> | ApiError<'server_error'> | ApiError<'resource_capped'> | ApiError<'missing_auth_header'> | ApiError<'malformed_auth_header'> | ApiError<'unknown_account'> | ApiError<'unknown_connect_session_token'> | ApiError<'invalid_cli_version'> | ApiError<'invalid_permissions'> | ApiError<'invalid_connect_session_token_format'> | ApiError<'request_too_large'>;
|
|
15
15
|
export type EndpointMethod = 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE';
|
|
16
16
|
/**
|
|
17
17
|
* API Request/Response type
|
|
@@ -110,7 +110,7 @@ export type GetPublicConnection = Endpoint<{
|
|
|
110
110
|
force_refresh?: boolean | undefined;
|
|
111
111
|
};
|
|
112
112
|
Path: '/connection/:connectionId';
|
|
113
|
-
Error: ApiError<'unknown_provider_config'>;
|
|
113
|
+
Error: ApiError<'unknown_provider_config' | 'invalid_credentials'>;
|
|
114
114
|
Success: ApiPublicConnectionFull;
|
|
115
115
|
}>;
|
|
116
116
|
export type PostConnectionRefresh = Endpoint<{
|
package/dist/deploy/api.d.ts
CHANGED
|
@@ -72,12 +72,15 @@ export interface SlimOnEventScript {
|
|
|
72
72
|
}
|
|
73
73
|
export interface SyncAndActionDifferences {
|
|
74
74
|
newSyncs: SlimSync[];
|
|
75
|
+
updatedSyncs: SlimSync[];
|
|
75
76
|
deletedSyncs: SlimSync[];
|
|
76
77
|
newActions: SlimAction[];
|
|
78
|
+
updatedActions: SlimAction[];
|
|
77
79
|
deletedActions: SlimAction[];
|
|
78
80
|
deletedModels: string[];
|
|
79
81
|
}
|
|
80
82
|
export interface ScriptDifferences extends SyncAndActionDifferences {
|
|
81
83
|
newOnEventScripts: SlimOnEventScript[];
|
|
84
|
+
updatedOnEventScripts: SlimOnEventScript[];
|
|
82
85
|
deletedOnEventScripts: SlimOnEventScript[];
|
|
83
86
|
}
|
|
@@ -58,6 +58,7 @@ export interface BaseProvider {
|
|
|
58
58
|
};
|
|
59
59
|
authorization_url?: string;
|
|
60
60
|
authorization_url_skip_encode?: string[];
|
|
61
|
+
authorization_url_skip_empty?: boolean;
|
|
61
62
|
access_token_url?: string;
|
|
62
63
|
authorization_params?: Record<string, string>;
|
|
63
64
|
authorization_code_param_in_callback?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nangohq/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.60.0",
|
|
4
4
|
"description": "Types used in Nango applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"axios": "1.9.0",
|
|
16
16
|
"json-schema": "0.4.0",
|
|
17
|
-
"type-fest": "4.
|
|
17
|
+
"type-fest": "4.41.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/json-schema": "7.0.15"
|