-
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.
- Loading branch information
1 parent
6ff1761
commit cb5114d
Showing
3 changed files
with
61 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import * as V0MarketoBulkUploadFileUpload from '../v0/destinations/marketo_bulk_upload/fileUpload'; | ||
import * as V0MarketoBulkUploadPollStatus from '../v0/destinations/marketo_bulk_upload/poll'; | ||
import * as V0MarketoBulkUploadJobStatus from '../v0/destinations/marketo_bulk_upload/fetchJobStatus'; | ||
|
||
const fileUploadHandlers = { | ||
v0: { | ||
marketo_bulk_upload: V0MarketoBulkUploadFileUpload, | ||
}, | ||
}; | ||
|
||
const pollStatusHandlers = { | ||
v0: { | ||
marketo_bulk_upload: V0MarketoBulkUploadPollStatus, | ||
}, | ||
}; | ||
|
||
const jobStatusHandlers = { | ||
v0: { | ||
marketo_bulk_upload: V0MarketoBulkUploadJobStatus, | ||
}, | ||
}; | ||
|
||
export const getDestFileUploadHandler = (version, dest) => { | ||
if (fileUploadHandlers[version] && fileUploadHandlers[version][dest]) { | ||
return fileUploadHandlers[version][dest]; | ||
} | ||
return undefined; | ||
}; | ||
|
||
export const getPollStatusHandler = (version, dest) => { | ||
if (pollStatusHandlers[version] && pollStatusHandlers[version][dest]) { | ||
return pollStatusHandlers[version][dest]; | ||
} | ||
return undefined; | ||
}; | ||
|
||
export const getJobStatusHandler = (version, dest) => { | ||
if (jobStatusHandlers[version] && jobStatusHandlers[version][dest]) { | ||
return jobStatusHandlers[version][dest]; | ||
} | ||
return undefined; | ||
}; |
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