@nangohq/types 0.69.33 → 0.69.35

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.
@@ -27,6 +27,7 @@ export type ValidateEmailAndLogin = Endpoint<{
27
27
  Error: ApiError<'error_logging_in'> | ApiError<'error_validating_user'> | ApiError<'invalid_token'> | ApiError<'token_expired'> | ApiError<'error_refreshing_token'>;
28
28
  Success: {
29
29
  user: ApiUser;
30
+ showHearAboutUs?: boolean;
30
31
  };
31
32
  }>;
32
33
  export type ResendVerificationEmailByUuid = Endpoint<{
@@ -143,3 +144,26 @@ export type GetManagedCallback = Endpoint<{
143
144
  };
144
145
  };
145
146
  }>;
147
+ export type GetOnboardingHearAboutUs = Endpoint<{
148
+ Method: 'GET';
149
+ Path: '/api/v1/account/onboarding/hear-about-us';
150
+ Error: ApiError<'unauthorized'>;
151
+ Success: {
152
+ data: {
153
+ showHearAboutUs: boolean;
154
+ };
155
+ };
156
+ }>;
157
+ export type PostOnboardingHearAboutUs = Endpoint<{
158
+ Method: 'POST';
159
+ Path: '/api/v1/account/onboarding/hear-about-us';
160
+ Body: {
161
+ source: 'my_team_already_using' | 'recommended' | 'search_engine' | 'llm_search' | 'social_media' | 'dont_remember' | 'other' | 'skipped';
162
+ };
163
+ Error: ApiError<'unauthorized'> | ApiError<'forbidden'>;
164
+ Success: {
165
+ data: {
166
+ success: boolean;
167
+ };
168
+ };
169
+ }>;
@@ -77,6 +77,7 @@ export interface CLIDeployFlowConfig {
77
77
  syncName: string;
78
78
  fileBody: IncomingScriptFiles;
79
79
  version?: string | undefined;
80
+ /** @deprecated **/
80
81
  sync_type?: SyncTypeLiteral | undefined;
81
82
  webhookSubscriptions?: string[] | undefined;
82
83
  }
@@ -19,6 +19,7 @@ export interface NangoSyncConfig {
19
19
  last_deployed?: string | null;
20
20
  id?: number;
21
21
  input?: string | undefined;
22
+ /** @deprecated **/
22
23
  sync_type?: SyncTypeLiteral;
23
24
  webhookSubscriptions?: string[];
24
25
  enabled?: boolean;
@@ -1,6 +1,7 @@
1
1
  import type { OnEventType } from '../scripts/on-events/api.js';
2
2
  import type { JSONSchema7 } from 'json-schema';
3
3
  export type HTTP_METHOD = 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE';
4
+ /** @deprecated **/
4
5
  export type SyncTypeLiteral = 'incremental' | 'full';
5
6
  export type ScriptFileType = 'actions' | 'syncs' | 'on-events' | 'post-connection-scripts';
6
7
  export type ScriptTypeLiteral = 'action' | 'sync' | 'on-event';
@@ -85,6 +86,7 @@ export interface ParsedNangoSync {
85
86
  type: 'sync';
86
87
  endpoints: NangoSyncEndpointV2[];
87
88
  description: string;
89
+ /** @deprecated **/
88
90
  sync_type: SyncTypeLiteral;
89
91
  track_deletes: boolean;
90
92
  auto_start: boolean;
@@ -1,5 +1,6 @@
1
1
  import type { Checkpoint } from '../checkpoint/types.js';
2
2
  export type SyncStatus = 'RUNNING' | 'PAUSED' | 'STOPPED' | 'SUCCESS' | 'ERROR';
3
+ /** @deprecated **/
3
4
  export type SyncJobsType = 'INCREMENTAL' | 'FULL' | 'WEBHOOK' | 'ON_EVENT_SCRIPT' | 'ACTION';
4
5
  export interface SyncResult {
5
6
  added: number;
@@ -9,6 +10,7 @@ export interface SyncResult {
9
10
  export type SyncResultByModel = Record<string, SyncResult>;
10
11
  export interface ReportedSyncJobStatus {
11
12
  id?: string;
13
+ /** @deprecated **/
12
14
  type: SyncJobsType | 'INITIAL';
13
15
  name?: string;
14
16
  variant?: string;
@@ -21,6 +21,7 @@ export interface DBSyncConfig extends TimestampsAndDeleted {
21
21
  is_public: boolean;
22
22
  metadata: NangoConfigMetadata;
23
23
  input: string | null;
24
+ /** @deprecated **/
24
25
  sync_type: SyncTypeLiteral | null;
25
26
  webhook_subscriptions: string[] | null;
26
27
  enabled: boolean;
@@ -15,6 +15,7 @@ export interface NangoSyncWebhookBodyBase extends NangoWebhookBase {
15
15
  syncName: string;
16
16
  syncVariant: string;
17
17
  model: string;
18
+ /** @deprecated **/
18
19
  syncType: 'INCREMENTAL' | 'INITIAL' | 'WEBHOOK';
19
20
  }
20
21
  export interface NangoSyncWebhookBodySuccess extends NangoSyncWebhookBodyBase {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nangohq/types",
3
- "version": "0.69.33",
3
+ "version": "0.69.35",
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.12.0",
15
+ "axios": "1.13.5",
16
16
  "json-schema": "0.4.0",
17
17
  "type-fest": "4.41.0"
18
18
  },