-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(types): SyncConfig -> DBSyncConfig #3459
Conversation
@@ -37,6 +40,6 @@ export interface IntegrationWithCreds extends Integration { | |||
export interface Integration { | |||
unique_key: string; | |||
provider: string; | |||
syncs: SyncConfig[]; | |||
syncs: (Pick<DBSyncConfig, 'created_at' | 'updated_at'> & { name: string; description: string | null })[]; | |||
actions: Action[]; | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This type was completely wrong
deleted: false, | ||
active: true, | ||
type: 'sync' | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type was very wrong, thankfully it was only used once
@@ -4,4 +4,4 @@ export interface SyncResult { | |||
deleted: number; | |||
} | |||
|
|||
export type SyncType = 'INCREMENTAL' | 'FULL' | 'WEBHOOK'; | |||
export type SyncOperationType = 'INCREMENTAL' | 'FULL' | 'WEBHOOK'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice to rename this one to something that is not sync type.
Changes
Fixes https://linear.app/nango/issue/NAN-2547/fix-old-casing-of-sync-type
Initially wanted to only fix the SyncType casing but it was a good time to fix the entire type