-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: improve iterable network handler
- Loading branch information
Sai Sankeerth
committed
Dec 6, 2024
1 parent
97d531f
commit c67c9d1
Showing
7 changed files
with
93 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 8 additions & 25 deletions
33
...nations/iterable/trackIdentifyStrategy.ts → ...ons/iterable/strategies/track-identify.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
type FailedUpdates = { | ||
invalidEmails?: string[]; | ||
invalidUserIds?: string[]; | ||
notFoundEmails?: string[]; | ||
notFoundUserIds?: string[]; | ||
invalidDataEmails?: string[]; | ||
invalidDataUserIds?: string[]; | ||
conflictEmails?: string[]; | ||
conflictUserIds?: string[]; | ||
forgottenEmails?: string[]; | ||
forgottenUserIds?: string[]; | ||
}; | ||
|
||
export type GeneralApiResponse = { | ||
msg?: string; | ||
code?: string; | ||
params?: Record<string, unknown>; | ||
successCount?: number; | ||
failCount?: number; | ||
invalidEmails?: string[]; | ||
invalidUserIds?: string[]; | ||
filteredOutFields?: string[]; | ||
createdFields?: string[]; | ||
disallowedEventNames?: string[]; | ||
failedUpdates?: FailedUpdates; | ||
}; | ||
|
||
export type DestinationResponse = { | ||
status: number; | ||
response: GeneralApiResponse; | ||
}; | ||
|
||
export type ResponseParams = { | ||
destinationResponse: DestinationResponse; | ||
rudderJobMetadata: any[]; | ||
destinationRequest?: { | ||
body: { | ||
JSON: { | ||
events?: any[]; | ||
users?: any[]; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
export type Response = { | ||
statusCode: number; | ||
metadata: any; | ||
error: string; | ||
}; | ||
|
||
export type SuccessResponse = { | ||
status: number; | ||
message: string; | ||
destinationResponse: DestinationResponse; | ||
response: Response[]; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters