@nangohq/types 0.42.11 → 0.42.12

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.
@@ -7,11 +7,11 @@ import type { DeleteTeamUser, GetTeam, PutTeam } from './team/api';
7
7
  import type { PostForgotPassword, PutResetPassword, PostSignin, PostSignup } from './account/api';
8
8
  import type { DeleteInvite, PostInvite } from './invitations/api';
9
9
  import type { GetUser, PatchUser } from './user/api';
10
- import type { GetListIntegrations } from './integration/api';
10
+ import type { DeletePublicIntegration, GetPublicIntegration, GetPublicListIntegrations, GetPublicListIntegrationsLegacy } from './integration/api';
11
11
  import type { PostPublicTableauAuthorization, PostPublicTbaAuthorization, PostPublicUnauthenticatedAuthorization } from './auth/http.api';
12
12
  import type { GetPublicProvider, GetPublicProviders } from './providers/api';
13
- export type PublicApiEndpoints = SetMetadata | UpdateMetadata | PostDeploy | PostDeployConfirmation | PostPublicTbaAuthorization | PostPublicTableauAuthorization | PostPublicUnauthenticatedAuthorization | GetPublicProviders | GetPublicProvider;
14
- export type PrivateApiEndpoints = PostSignup | PostSignin | GetTeam | PutTeam | GetUser | PatchUser | PostInvite | DeleteInvite | DeleteTeamUser | PostInsights | PostForgotPassword | PutResetPassword | SearchOperations | GetOperation | SearchMessages | SearchFilters | GetOnboardingStatus | GetListIntegrations;
13
+ export type PublicApiEndpoints = SetMetadata | UpdateMetadata | PostDeploy | PostDeployConfirmation | PostPublicTbaAuthorization | PostPublicTableauAuthorization | PostPublicUnauthenticatedAuthorization | GetPublicProviders | GetPublicProvider | GetPublicListIntegrationsLegacy | GetPublicListIntegrations | GetPublicIntegration | DeletePublicIntegration;
14
+ export type PrivateApiEndpoints = PostSignup | PostSignin | GetTeam | PutTeam | GetUser | PatchUser | PostInvite | DeleteInvite | DeleteTeamUser | PostInsights | PostForgotPassword | PutResetPassword | SearchOperations | GetOperation | SearchMessages | SearchFilters | GetOnboardingStatus;
15
15
  export type APIEndpoints = PrivateApiEndpoints | PublicApiEndpoints;
16
16
  /**
17
17
  * Automatically narrow endpoints type with Method + Path
@@ -8,7 +8,7 @@ export type PostPublicTbaAuthorization = Endpoint<{
8
8
  oauth_client_secret_override?: string | undefined;
9
9
  };
10
10
  Querystring: {
11
- connection_id: string;
11
+ connection_id?: string | undefined;
12
12
  public_key: string;
13
13
  params?: Record<string, any> | undefined;
14
14
  hmac?: string | undefined;
@@ -31,7 +31,7 @@ export type PostPublicTableauAuthorization = Endpoint<{
31
31
  content_url?: string | undefined;
32
32
  };
33
33
  Querystring: {
34
- connection_id: string;
34
+ connection_id?: string | undefined;
35
35
  public_key: string;
36
36
  params?: Record<string, any> | undefined;
37
37
  hmac?: string | undefined;
@@ -49,7 +49,7 @@ export type PostPublicTableauAuthorization = Endpoint<{
49
49
  export type PostPublicUnauthenticatedAuthorization = Endpoint<{
50
50
  Method: 'POST';
51
51
  Querystring: {
52
- connection_id: string;
52
+ connection_id?: string | undefined;
53
53
  hmac?: string | undefined;
54
54
  };
55
55
  Params: {
@@ -7,17 +7,40 @@ import type { NangoModel, NangoSyncEndpoint, ScriptTypeLiteral } from '../nangoY
7
7
  import type { LegacySyncModelSchema, NangoConfigMetadata } from '../deploy/incomingFlow';
8
8
  import type { JSONSchema7 } from 'json-schema';
9
9
  import type { SyncType } from '../scripts/syncs/api';
10
- export type GetListIntegrations = Endpoint<{
10
+ export type ApiPublicIntegration = Merge<Pick<IntegrationConfig, 'created_at' | 'updated_at' | 'unique_key' | 'provider'>, ApiTimestamps> & {
11
+ logo: string;
12
+ } & ApiPublicIntegrationInclude;
13
+ export interface ApiPublicIntegrationInclude {
14
+ webhook_url?: string | null;
15
+ }
16
+ export type GetPublicListIntegrationsLegacy = Endpoint<{
11
17
  Method: 'GET';
12
18
  Path: '/config';
13
19
  Success: {
14
- configs: {
15
- provider: string;
16
- unique_key: string;
17
- }[];
20
+ configs: ApiPublicIntegration[];
21
+ };
22
+ }>;
23
+ export type GetPublicListIntegrations = Endpoint<{
24
+ Method: 'GET';
25
+ Path: '/integrations';
26
+ Success: {
27
+ data: ApiPublicIntegration[];
28
+ };
29
+ }>;
30
+ export type GetPublicIntegration = Endpoint<{
31
+ Method: 'GET';
32
+ Path: '/integrations/:uniqueKey';
33
+ Params: {
34
+ uniqueKey: string;
35
+ };
36
+ Querystring: {
37
+ include?: 'webhook'[] | undefined;
38
+ };
39
+ Success: {
40
+ data: ApiPublicIntegration;
18
41
  };
19
42
  }>;
20
- export type DeleteIntegrationPublic = Endpoint<{
43
+ export type DeletePublicIntegration = Endpoint<{
21
44
  Method: 'DELETE';
22
45
  Path: '/config/:providerConfigKey';
23
46
  Params: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nangohq/types",
3
- "version": "0.42.11",
3
+ "version": "0.42.12",
4
4
  "description": "Types used in Nango applications",
5
5
  "type": "module",
6
6
  "typings": "dist/index.d.ts",