@credal/actions 0.2.203 → 0.2.206
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.
- package/dist/actions/actionMapper.js +8 -1
- package/dist/actions/autogen/templates.d.ts +3 -0
- package/dist/actions/autogen/templates.js +151 -1
- package/dist/actions/autogen/types.d.ts +97 -0
- package/dist/actions/autogen/types.js +54 -4
- package/dist/actions/providers/ashby/addCandidateToProject.d.ts +3 -0
- package/dist/actions/providers/ashby/addCandidateToProject.js +31 -0
- package/dist/actions/providers/ashby/createCandidate.d.ts +3 -0
- package/dist/actions/providers/ashby/createCandidate.js +38 -0
- package/dist/actions/providers/ashby/createNote.d.ts +3 -0
- package/dist/actions/providers/ashby/createNote.js +31 -0
- package/dist/actions/providers/ashby/getCandidateInfo.d.ts +3 -0
- package/dist/actions/providers/ashby/getCandidateInfo.js +33 -0
- package/dist/actions/providers/ashby/listCandidateNotes.d.ts +3 -0
- package/dist/actions/providers/ashby/listCandidateNotes.js +33 -0
- package/dist/actions/providers/ashby/listCandidates.d.ts +3 -0
- package/dist/actions/providers/ashby/listCandidates.js +30 -0
- package/dist/actions/providers/ashby/searchCandidates.d.ts +3 -0
- package/dist/actions/providers/ashby/searchCandidates.js +34 -0
- package/dist/actions/providers/ashby/updateCandidate.d.ts +3 -0
- package/dist/actions/providers/ashby/updateCandidate.js +56 -0
- package/dist/actions/providers/github/searchRepository.js +7 -7
- package/dist/actions/providers/gong/getGongTranscripts.d.ts +3 -0
- package/dist/actions/providers/gong/getGongTranscripts.js +315 -0
- package/dist/actions/providers/google-oauth/addTextToTopOfDoc.js +5 -13
- package/dist/actions/providers/google-oauth/createNewGoogleDoc.js +10 -123
- package/dist/actions/providers/google-oauth/utils/googleDocsMarkdown.d.ts +88 -0
- package/dist/actions/providers/google-oauth/utils/googleDocsMarkdown.js +350 -0
- package/dist/actions/providers/jamf/getJamfComputerInventory.d.ts +3 -0
- package/dist/actions/providers/jamf/getJamfComputerInventory.js +37 -0
- package/dist/actions/providers/jamf/getJamfFileVaultRecoveryKey.d.ts +3 -0
- package/dist/actions/providers/jamf/getJamfFileVaultRecoveryKey.js +39 -0
- package/dist/actions/providers/jamf/getJamfUserComputerId.d.ts +3 -0
- package/dist/actions/providers/jamf/getJamfUserComputerId.js +45 -0
- package/dist/actions/providers/jamf/lockJamfComputerById.d.ts +3 -0
- package/dist/actions/providers/jamf/lockJamfComputerById.js +39 -0
- package/dist/actions/providers/jira/commentJiraTicketWithMentions.d.ts +3 -0
- package/dist/actions/providers/jira/commentJiraTicketWithMentions.js +39 -0
- package/dist/actions/providers/jira/convertMentionsInAdf.d.ts +21 -0
- package/dist/actions/providers/jira/convertMentionsInAdf.js +125 -0
- package/dist/actions/providers/jira/updateServiceDeskRequest.d.ts +3 -0
- package/dist/actions/providers/jira/updateServiceDeskRequest.js +72 -0
- package/dist/actions/providers/jira/utils.d.ts +1 -1
- package/dist/actions/providers/jira/utils.js +1 -0
- package/dist/actions/providers/kandji/getFVRecoveryKeyForDevice.d.ts +3 -0
- package/dist/actions/providers/kandji/getFVRecoveryKeyForDevice.js +85 -0
- package/dist/actions/providers/microsoft/sendOutlookEmail.d.ts +3 -0
- package/dist/actions/providers/microsoft/sendOutlookEmail.js +48 -0
- package/dist/actions/providers/okta/addUserToGroup.d.ts +3 -0
- package/dist/actions/providers/okta/addUserToGroup.js +56 -0
- package/dist/actions/providers/okta/getOktaGroup.d.ts +3 -0
- package/dist/actions/providers/okta/getOktaGroup.js +73 -0
- package/dist/actions/providers/okta/getOktaUser.d.ts +3 -0
- package/dist/actions/providers/okta/getOktaUser.js +40 -0
- package/dist/actions/providers/okta/listMFA.d.ts +3 -0
- package/dist/actions/providers/okta/listMFA.js +52 -0
- package/dist/actions/providers/okta/listOktaGroupMembers.d.ts +3 -0
- package/dist/actions/providers/okta/listOktaGroupMembers.js +99 -0
- package/dist/actions/providers/okta/listOktaGroups.d.ts +3 -0
- package/dist/actions/providers/okta/listOktaGroups.js +92 -0
- package/dist/actions/providers/okta/listOktaUserGroups.d.ts +3 -0
- package/dist/actions/providers/okta/listOktaUserGroups.js +83 -0
- package/dist/actions/providers/okta/listOktaUsers.d.ts +3 -0
- package/dist/actions/providers/okta/listOktaUsers.js +100 -0
- package/dist/actions/providers/okta/removeUserFromGroup.d.ts +3 -0
- package/dist/actions/providers/okta/removeUserFromGroup.js +56 -0
- package/dist/actions/providers/okta/resetMFA.d.ts +3 -0
- package/dist/actions/providers/okta/resetMFA.js +62 -0
- package/dist/actions/providers/okta/resetPassword.d.ts +3 -0
- package/dist/actions/providers/okta/resetPassword.js +57 -0
- package/dist/actions/providers/okta/triggerOktaWorkflow.d.ts +3 -0
- package/dist/actions/providers/okta/triggerOktaWorkflow.js +44 -0
- package/dist/actions/providers/salesforce/executeReport.js +2 -1
- package/dist/actions/providers/salesforce/fetchSalesforceSchema.d.ts +3 -0
- package/dist/actions/providers/salesforce/fetchSalesforceSchema.js +40 -0
- package/package.json +4 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { genericFillTemplateParamsSchema, genericFillTemplateOutputSchema, confluenceOverwritePageParamsSchema, confluenceOverwritePageOutputSchema, googlemapsValidateAddressOutputSchema, googlemapsValidateAddressParamsSchema, googleOauthCreateNewGoogleDocParamsSchema, googleOauthCreateNewGoogleDocOutputSchema, mathAddOutputSchema, mathAddParamsSchema, mongoInsertMongoDocOutputSchema, mongoInsertMongoDocParamsSchema, slackSendMessageOutputSchema, slackSendMessageParamsSchema, slackGetChannelMessagesOutputSchema, slackGetChannelMessagesParamsSchema, slackCreateChannelParamsSchema, slackCreateChannelOutputSchema, snowflakeGetRowByFieldValueOutputSchema, snowflakeGetRowByFieldValueParamsSchema, zendeskCreateZendeskTicketOutputSchema, zendeskCreateZendeskTicketParamsSchema, zendeskGetTicketDetailsOutputSchema, zendeskGetTicketDetailsParamsSchema, zendeskUpdateTicketStatusOutputSchema, zendeskUpdateTicketStatusParamsSchema, zendeskAddCommentToTicketOutputSchema, zendeskAddCommentToTicketParamsSchema, zendeskAssignTicketOutputSchema, zendeskAssignTicketParamsSchema, zendeskListZendeskTicketsOutputSchema, zendeskListZendeskTicketsParamsSchema, zendeskSearchZendeskByQueryOutputSchema, zendeskSearchZendeskByQueryParamsSchema, jiraAssignJiraTicketParamsSchema, jiraAssignJiraTicketOutputSchema, jiraCommentJiraTicketParamsSchema, jiraCommentJiraTicketOutputSchema, jiraCreateJiraTicketParamsSchema, jiraCreateJiraTicketOutputSchema, jiraGetJiraTicketDetailsParamsSchema, jiraGetJiraTicketDetailsOutputSchema, jiraGetJiraTicketHistoryParamsSchema, jiraGetJiraTicketHistoryOutputSchema, jiraMoveJiraTicketToProjectParamsSchema, jiraMoveJiraTicketToProjectOutputSchema, jiraUpdateJiraTicketDetailsParamsSchema, jiraUpdateJiraTicketDetailsOutputSchema, jiraUpdateJiraTicketStatusParamsSchema, jiraUpdateJiraTicketStatusOutputSchema, jiraCreateServiceDeskRequestParamsSchema, jiraCreateServiceDeskRequestOutputSchema, jiraLinkJiraIssuesParamsSchema, jiraLinkJiraIssuesOutputSchema, jiraLinkAndAssignJiraIssuesParamsSchema, jiraLinkAndAssignJiraIssuesOutputSchema, openstreetmapGetLatitudeLongitudeFromLocationParamsSchema, openstreetmapGetLatitudeLongitudeFromLocationOutputSchema, nwsGetForecastForLocationParamsSchema, nwsGetForecastForLocationOutputSchema, googlemapsNearbysearchRestaurantsOutputSchema, googlemapsNearbysearchRestaurantsParamsSchema, firecrawlScrapeUrlOutputSchema, firecrawlScrapeUrlParamsSchema, resendSendEmailOutputSchema, resendSendEmailHtmlParamsSchema, resendSendEmailHtmlOutputSchema, firecrawlScrapeTweetDataWithNitterParamsSchema, firecrawlScrapeTweetDataWithNitterOutputSchema, resendSendEmailParamsSchema, linkedinCreateShareLinkedinPostUrlParamsSchema, linkedinCreateShareLinkedinPostUrlOutputSchema, xCreateShareXPostUrlParamsSchema, xCreateShareXPostUrlOutputSchema, finnhubSymbolLookupParamsSchema, finnhubSymbolLookupOutputSchema, finnhubGetBasicFinancialsParamsSchema, finnhubGetBasicFinancialsOutputSchema, confluenceFetchPageContentParamsSchema, confluenceFetchPageContentOutputSchema, snowflakeRunSnowflakeQueryParamsSchema, snowflakeRunSnowflakeQueryOutputSchema, lookerEnableUserByEmailParamsSchema, lookerEnableUserByEmailOutputSchema, googleOauthUpdateDocParamsSchema, googleOauthUpdateDocOutputSchema, googleOauthAddTextToTopOfDocParamsSchema, googleOauthAddTextToTopOfDocOutputSchema, googleOauthCreateSpreadsheetParamsSchema, googleOauthCreateSpreadsheetOutputSchema, googleOauthUpdateSpreadsheetParamsSchema, googleOauthUpdateSpreadsheetOutputSchema, googleOauthAppendRowsToSpreadsheetParamsSchema, googleOauthAppendRowsToSpreadsheetOutputSchema, googleOauthDeleteRowFromSpreadsheetParamsSchema, googleOauthDeleteRowFromSpreadsheetOutputSchema, googleOauthScheduleCalendarMeetingParamsSchema, googleOauthScheduleCalendarMeetingOutputSchema, googleOauthListCalendarsParamsSchema, googleOauthListCalendarsOutputSchema, googleOauthListCalendarEventsParamsSchema, googleOauthListCalendarEventsOutputSchema, googleOauthUpdateCalendarEventParamsSchema, googleOauthUpdateCalendarEventOutputSchema, googleOauthDeleteCalendarEventParamsSchema, googleOauthDeleteCalendarEventOutputSchema, googleOauthEditAGoogleCalendarEventParamsSchema, googleOauthEditAGoogleCalendarEventOutputSchema, googleOauthCreatePresentationParamsSchema, googleOauthCreatePresentationOutputSchema, googleOauthUpdatePresentationParamsSchema, googleOauthUpdatePresentationOutputSchema, googleOauthGetPresentationParamsSchema, googleOauthGetPresentationOutputSchema, googleOauthSearchDriveByKeywordsParamsSchema, googleOauthSearchDriveByKeywordsOutputSchema, googleOauthListGroupsOutputSchema, googleOauthListGroupsParamsSchema, googleOauthGetGroupOutputSchema, googleOauthGetGroupParamsSchema, googleOauthListGroupMembersOutputSchema, googleOauthListGroupMembersParamsSchema, googleOauthHasGroupMemberOutputSchema, googleOauthHasGroupMemberParamsSchema, googleOauthAddGroupMemberOutputSchema, googleOauthAddGroupMemberParamsSchema, googleOauthDeleteGroupMemberOutputSchema, googleOauthDeleteGroupMemberParamsSchema, salesforceUpdateRecordParamsSchema, salesforceUpdateRecordOutputSchema, salesforceCreateCaseParamsSchema, salesforceCreateCaseOutputSchema, salesforceGenerateSalesReportParamsSchema, salesforceGenerateSalesReportOutputSchema, salesforceGetRecordParamsSchema, salesforceGetRecordOutputSchema, microsoftMessageTeamsChatParamsSchema, microsoftMessageTeamsChatOutputSchema, microsoftMessageTeamsChannelParamsSchema, microsoftMessageTeamsChannelOutputSchema, salesforceGetSalesforceRecordsByQueryParamsSchema, salesforceGetSalesforceRecordsByQueryOutputSchema, asanaCommentTaskParamsSchema, asanaCommentTaskOutputSchema, asanaCreateTaskParamsSchema, asanaCreateTaskOutputSchema, asanaUpdateTaskParamsSchema, asanaUpdateTaskOutputSchema, githubCreateOrUpdateFileParamsSchema, githubCreateOrUpdateFileOutputSchema, githubCreateBranchParamsSchema, githubCreateBranchOutputSchema, githubCreatePullRequestParamsSchema, githubCreatePullRequestOutputSchema, microsoftUpdateSpreadsheetParamsSchema, microsoftUpdateSpreadsheetOutputSchema, microsoftUpdateDocumentParamsSchema, microsoftUpdateDocumentOutputSchema, microsoftGetDocumentParamsSchema, microsoftGetDocumentOutputSchema, githubListPullRequestsParamsSchema, githubListPullRequestsOutputSchema, jiraGetJiraIssuesByQueryOutputSchema, jiraGetJiraIssuesByQueryParamsSchema, salesforceCreateRecordParamsSchema, salesforceCreateRecordOutputSchema, firecrawlDeepResearchParamsSchema, firecrawlDeepResearchOutputSchema, bingGetTopNSearchResultUrlsParamsSchema, bingGetTopNSearchResultUrlsOutputSchema, microsoftCreateDocumentParamsSchema, microsoftCreateDocumentOutputSchema, asanaListAsanaTasksByProjectParamsSchema, asanaListAsanaTasksByProjectOutputSchema, asanaSearchTasksParamsSchema, asanaSearchTasksOutputSchema, asanaGetTasksDetailsParamsSchema, asanaGetTasksDetailsOutputSchema, notionSearchByTitleParamsSchema, notionSearchByTitleOutputSchema, googlemailSearchGmailMessagesOutputSchema, googlemailSearchGmailMessagesParamsSchema, googlemailListGmailThreadsOutputSchema, googlemailListGmailThreadsParamsSchema, gitlabSearchGroupOutputSchema, gitlabSearchGroupParamsSchema, githubSearchOrganizationOutputSchema, githubSearchOrganizationParamsSchema, salesforceSearchSalesforceRecordsParamsSchema, salesforceSearchSalesforceRecordsOutputSchema, googleOauthGetDriveFileContentByIdOutputSchema, googleOauthGetDriveFileContentByIdParamsSchema, googleOauthSearchDriveByQueryOutputSchema, googleOauthSearchDriveByQueryParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentOutputSchema, googleOauthQueryGoogleBigQueryParamsSchema, googleOauthQueryGoogleBigQueryOutputSchema, githubGetFileContentParamsSchema, githubGetFileContentOutputSchema, githubListDirectoryOutputSchema, githubListDirectoryParamsSchema, githubGetBranchParamsSchema, githubGetBranchOutputSchema, githubListCommitsParamsSchema, githubListCommitsOutputSchema, githubGetPullRequestDetailsParamsSchema, githubGetPullRequestDetailsOutputSchema, linearGetIssuesParamsSchema, linearGetIssuesOutputSchema, linearGetIssueDetailsParamsSchema, linearGetIssueDetailsOutputSchema, linearGetProjectDetailsParamsSchema, linearGetProjectDetailsOutputSchema, linearGetTeamDetailsParamsSchema, linearGetTeamDetailsOutputSchema, linearGetProjectsParamsSchema, linearGetProjectsOutputSchema, linearGetTeamsParamsSchema, linearGetTeamsOutputSchema, linearCreateIssueParamsSchema, linearCreateIssueOutputSchema, hubspotGetContactsParamsSchema, hubspotGetContactsOutputSchema, hubspotGetContactDetailsParamsSchema, hubspotGetContactDetailsOutputSchema, hubspotGetCompaniesParamsSchema, hubspotGetCompaniesOutputSchema, hubspotGetCompanyDetailsParamsSchema, hubspotGetCompanyDetailsOutputSchema, hubspotGetDealsParamsSchema, hubspotGetDealsOutputSchema, hubspotGetDealDetailsParamsSchema, hubspotGetDealDetailsOutputSchema, hubspotGetTicketsParamsSchema, hubspotGetTicketsOutputSchema, hubspotGetTicketDetailsParamsSchema, hubspotGetTicketDetailsOutputSchema, gitlabGetFileContentParamsSchema, gitlabGetFileContentOutputSchema, gitlabGetMergeRequestParamsSchema, gitlabGetMergeRequestOutputSchema, jiraPublicCommentOnServiceDeskRequestParamsSchema, jiraPublicCommentOnServiceDeskRequestOutputSchema, googlemailSendGmailParamsSchema, googlemailSendGmailOutputSchema, googlemailReplyToGmailParamsSchema, googlemailReplyToGmailOutputSchema, gitlabListDirectoryParamsSchema, gitlabListDirectoryOutputSchema, firecrawlSearchAndScrapeOutputSchema, firecrawlSearchAndScrapeParamsSchema, firecrawlGetTopNSearchResultUrlsParamsSchema, firecrawlGetTopNSearchResultUrlsOutputSchema, googleOauthSearchDriveByKeywordsAndGetFileContentParamsSchema, googleOauthSearchDriveByKeywordsAndGetFileContentOutputSchema, perplexityPerplexityDeepResearchParamsSchema, perplexityPerplexityDeepResearchOutputSchema, slackUserSearchSlackParamsSchema, slackUserSearchSlackOutputSchema, slackUserSearchSlackRTSParamsSchema, slackUserSearchSlackRTSOutputSchema, oktaOrgGetOktaUserByNameParamsSchema, oktaOrgGetOktaUserByNameOutputSchema, googleSearchCustomSearchParamsSchema, googleSearchCustomSearchOutputSchema, salesforceSearchAllSalesforceRecordsParamsSchema, salesforceSearchAllSalesforceRecordsOutputSchema, salesforceListReportsParamsSchema, salesforceListReportsOutputSchema, salesforceExecuteReportParamsSchema, salesforceExecuteReportOutputSchema, slackSendDmFromBotParamsSchema, slackSendDmFromBotOutputSchema, slackGetChannelMembersParamsSchema, slackGetChannelMembersOutputSchema, salesforceGetReportMetadataParamsSchema, salesforceGetReportMetadataOutputSchema, googleOauthUpdateRowsInSpreadsheetParamsSchema, googleOauthUpdateRowsInSpreadsheetOutputSchema, } from "./autogen/types.js";
|
|
1
|
+
import { genericFillTemplateParamsSchema, genericFillTemplateOutputSchema, confluenceOverwritePageParamsSchema, confluenceOverwritePageOutputSchema, googlemapsValidateAddressOutputSchema, googlemapsValidateAddressParamsSchema, googleOauthCreateNewGoogleDocParamsSchema, googleOauthCreateNewGoogleDocOutputSchema, mathAddOutputSchema, mathAddParamsSchema, mongoInsertMongoDocOutputSchema, mongoInsertMongoDocParamsSchema, slackSendMessageOutputSchema, slackSendMessageParamsSchema, slackGetChannelMessagesOutputSchema, slackGetChannelMessagesParamsSchema, slackCreateChannelParamsSchema, slackCreateChannelOutputSchema, snowflakeGetRowByFieldValueOutputSchema, snowflakeGetRowByFieldValueParamsSchema, zendeskCreateZendeskTicketOutputSchema, zendeskCreateZendeskTicketParamsSchema, zendeskGetTicketDetailsOutputSchema, zendeskGetTicketDetailsParamsSchema, zendeskUpdateTicketStatusOutputSchema, zendeskUpdateTicketStatusParamsSchema, zendeskAddCommentToTicketOutputSchema, zendeskAddCommentToTicketParamsSchema, zendeskAssignTicketOutputSchema, zendeskAssignTicketParamsSchema, zendeskListZendeskTicketsOutputSchema, zendeskListZendeskTicketsParamsSchema, zendeskSearchZendeskByQueryOutputSchema, zendeskSearchZendeskByQueryParamsSchema, jiraAssignJiraTicketParamsSchema, jiraAssignJiraTicketOutputSchema, jiraCommentJiraTicketParamsSchema, jiraCommentJiraTicketOutputSchema, jiraCommentJiraTicketWithMentionsParamsSchema, jiraCommentJiraTicketWithMentionsOutputSchema, jiraCreateJiraTicketParamsSchema, jiraCreateJiraTicketOutputSchema, jiraGetJiraTicketDetailsParamsSchema, jiraGetJiraTicketDetailsOutputSchema, jiraGetJiraTicketHistoryParamsSchema, jiraGetJiraTicketHistoryOutputSchema, jiraMoveJiraTicketToProjectParamsSchema, jiraMoveJiraTicketToProjectOutputSchema, jiraUpdateJiraTicketDetailsParamsSchema, jiraUpdateJiraTicketDetailsOutputSchema, jiraUpdateJiraTicketStatusParamsSchema, jiraUpdateJiraTicketStatusOutputSchema, jiraCreateServiceDeskRequestParamsSchema, jiraCreateServiceDeskRequestOutputSchema, jiraLinkJiraIssuesParamsSchema, jiraLinkJiraIssuesOutputSchema, jiraLinkAndAssignJiraIssuesParamsSchema, jiraLinkAndAssignJiraIssuesOutputSchema, openstreetmapGetLatitudeLongitudeFromLocationParamsSchema, openstreetmapGetLatitudeLongitudeFromLocationOutputSchema, nwsGetForecastForLocationParamsSchema, nwsGetForecastForLocationOutputSchema, googlemapsNearbysearchRestaurantsOutputSchema, googlemapsNearbysearchRestaurantsParamsSchema, firecrawlScrapeUrlOutputSchema, firecrawlScrapeUrlParamsSchema, resendSendEmailOutputSchema, resendSendEmailHtmlParamsSchema, resendSendEmailHtmlOutputSchema, firecrawlScrapeTweetDataWithNitterParamsSchema, firecrawlScrapeTweetDataWithNitterOutputSchema, resendSendEmailParamsSchema, linkedinCreateShareLinkedinPostUrlParamsSchema, linkedinCreateShareLinkedinPostUrlOutputSchema, xCreateShareXPostUrlParamsSchema, xCreateShareXPostUrlOutputSchema, finnhubSymbolLookupParamsSchema, finnhubSymbolLookupOutputSchema, finnhubGetBasicFinancialsParamsSchema, finnhubGetBasicFinancialsOutputSchema, confluenceFetchPageContentParamsSchema, confluenceFetchPageContentOutputSchema, snowflakeRunSnowflakeQueryParamsSchema, snowflakeRunSnowflakeQueryOutputSchema, lookerEnableUserByEmailParamsSchema, lookerEnableUserByEmailOutputSchema, googleOauthUpdateDocParamsSchema, googleOauthUpdateDocOutputSchema, googleOauthAddTextToTopOfDocParamsSchema, googleOauthAddTextToTopOfDocOutputSchema, googleOauthCreateSpreadsheetParamsSchema, googleOauthCreateSpreadsheetOutputSchema, googleOauthUpdateSpreadsheetParamsSchema, googleOauthUpdateSpreadsheetOutputSchema, googleOauthAppendRowsToSpreadsheetParamsSchema, googleOauthAppendRowsToSpreadsheetOutputSchema, googleOauthDeleteRowFromSpreadsheetParamsSchema, googleOauthDeleteRowFromSpreadsheetOutputSchema, googleOauthScheduleCalendarMeetingParamsSchema, googleOauthScheduleCalendarMeetingOutputSchema, googleOauthListCalendarsParamsSchema, googleOauthListCalendarsOutputSchema, googleOauthListCalendarEventsParamsSchema, googleOauthListCalendarEventsOutputSchema, googleOauthUpdateCalendarEventParamsSchema, googleOauthUpdateCalendarEventOutputSchema, googleOauthDeleteCalendarEventParamsSchema, googleOauthDeleteCalendarEventOutputSchema, googleOauthEditAGoogleCalendarEventParamsSchema, googleOauthEditAGoogleCalendarEventOutputSchema, googleOauthCreatePresentationParamsSchema, googleOauthCreatePresentationOutputSchema, googleOauthUpdatePresentationParamsSchema, googleOauthUpdatePresentationOutputSchema, googleOauthGetPresentationParamsSchema, googleOauthGetPresentationOutputSchema, googleOauthSearchDriveByKeywordsParamsSchema, googleOauthSearchDriveByKeywordsOutputSchema, googleOauthListGroupsOutputSchema, googleOauthListGroupsParamsSchema, googleOauthGetGroupOutputSchema, googleOauthGetGroupParamsSchema, googleOauthListGroupMembersOutputSchema, googleOauthListGroupMembersParamsSchema, googleOauthHasGroupMemberOutputSchema, googleOauthHasGroupMemberParamsSchema, googleOauthAddGroupMemberOutputSchema, googleOauthAddGroupMemberParamsSchema, googleOauthDeleteGroupMemberOutputSchema, googleOauthDeleteGroupMemberParamsSchema, salesforceUpdateRecordParamsSchema, salesforceUpdateRecordOutputSchema, salesforceCreateCaseParamsSchema, salesforceCreateCaseOutputSchema, salesforceGenerateSalesReportParamsSchema, salesforceGenerateSalesReportOutputSchema, salesforceGetRecordParamsSchema, salesforceGetRecordOutputSchema, microsoftMessageTeamsChatParamsSchema, microsoftMessageTeamsChatOutputSchema, microsoftMessageTeamsChannelParamsSchema, microsoftMessageTeamsChannelOutputSchema, salesforceGetSalesforceRecordsByQueryParamsSchema, salesforceGetSalesforceRecordsByQueryOutputSchema, asanaCommentTaskParamsSchema, asanaCommentTaskOutputSchema, asanaCreateTaskParamsSchema, asanaCreateTaskOutputSchema, asanaUpdateTaskParamsSchema, asanaUpdateTaskOutputSchema, githubCreateOrUpdateFileParamsSchema, githubCreateOrUpdateFileOutputSchema, githubCreateBranchParamsSchema, githubCreateBranchOutputSchema, githubCreatePullRequestParamsSchema, githubCreatePullRequestOutputSchema, microsoftUpdateSpreadsheetParamsSchema, microsoftUpdateSpreadsheetOutputSchema, microsoftUpdateDocumentParamsSchema, microsoftUpdateDocumentOutputSchema, microsoftGetDocumentParamsSchema, microsoftGetDocumentOutputSchema, githubListPullRequestsParamsSchema, githubListPullRequestsOutputSchema, jiraGetJiraIssuesByQueryOutputSchema, jiraGetJiraIssuesByQueryParamsSchema, salesforceCreateRecordParamsSchema, salesforceCreateRecordOutputSchema, firecrawlDeepResearchParamsSchema, firecrawlDeepResearchOutputSchema, bingGetTopNSearchResultUrlsParamsSchema, bingGetTopNSearchResultUrlsOutputSchema, microsoftCreateDocumentParamsSchema, microsoftCreateDocumentOutputSchema, asanaListAsanaTasksByProjectParamsSchema, asanaListAsanaTasksByProjectOutputSchema, asanaSearchTasksParamsSchema, asanaSearchTasksOutputSchema, asanaGetTasksDetailsParamsSchema, asanaGetTasksDetailsOutputSchema, notionSearchByTitleParamsSchema, notionSearchByTitleOutputSchema, googlemailSearchGmailMessagesOutputSchema, googlemailSearchGmailMessagesParamsSchema, googlemailListGmailThreadsOutputSchema, googlemailListGmailThreadsParamsSchema, gitlabSearchGroupOutputSchema, gitlabSearchGroupParamsSchema, githubSearchOrganizationOutputSchema, githubSearchOrganizationParamsSchema, salesforceSearchSalesforceRecordsParamsSchema, salesforceSearchSalesforceRecordsOutputSchema, googleOauthGetDriveFileContentByIdOutputSchema, googleOauthGetDriveFileContentByIdParamsSchema, googleOauthSearchDriveByQueryOutputSchema, googleOauthSearchDriveByQueryParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentOutputSchema, googleOauthQueryGoogleBigQueryParamsSchema, googleOauthQueryGoogleBigQueryOutputSchema, githubGetFileContentParamsSchema, githubGetFileContentOutputSchema, githubListDirectoryOutputSchema, githubListDirectoryParamsSchema, githubGetBranchParamsSchema, githubGetBranchOutputSchema, githubListCommitsParamsSchema, githubListCommitsOutputSchema, githubGetPullRequestDetailsParamsSchema, githubGetPullRequestDetailsOutputSchema, linearGetIssuesParamsSchema, linearGetIssuesOutputSchema, linearGetIssueDetailsParamsSchema, linearGetIssueDetailsOutputSchema, linearGetProjectDetailsParamsSchema, linearGetProjectDetailsOutputSchema, linearGetTeamDetailsParamsSchema, linearGetTeamDetailsOutputSchema, linearGetProjectsParamsSchema, linearGetProjectsOutputSchema, linearGetTeamsParamsSchema, linearGetTeamsOutputSchema, linearCreateIssueParamsSchema, linearCreateIssueOutputSchema, hubspotGetContactsParamsSchema, hubspotGetContactsOutputSchema, hubspotGetContactDetailsParamsSchema, hubspotGetContactDetailsOutputSchema, hubspotGetCompaniesParamsSchema, hubspotGetCompaniesOutputSchema, hubspotGetCompanyDetailsParamsSchema, hubspotGetCompanyDetailsOutputSchema, hubspotGetDealsParamsSchema, hubspotGetDealsOutputSchema, hubspotGetDealDetailsParamsSchema, hubspotGetDealDetailsOutputSchema, hubspotGetTicketsParamsSchema, hubspotGetTicketsOutputSchema, hubspotGetTicketDetailsParamsSchema, hubspotGetTicketDetailsOutputSchema, gitlabGetFileContentParamsSchema, gitlabGetFileContentOutputSchema, gitlabGetMergeRequestParamsSchema, gitlabGetMergeRequestOutputSchema, jiraPublicCommentOnServiceDeskRequestParamsSchema, jiraPublicCommentOnServiceDeskRequestOutputSchema, googlemailSendGmailParamsSchema, googlemailSendGmailOutputSchema, googlemailReplyToGmailParamsSchema, googlemailReplyToGmailOutputSchema, gitlabListDirectoryParamsSchema, gitlabListDirectoryOutputSchema, firecrawlSearchAndScrapeOutputSchema, firecrawlSearchAndScrapeParamsSchema, firecrawlGetTopNSearchResultUrlsParamsSchema, firecrawlGetTopNSearchResultUrlsOutputSchema, googleOauthSearchDriveByKeywordsAndGetFileContentParamsSchema, googleOauthSearchDriveByKeywordsAndGetFileContentOutputSchema, perplexityPerplexityDeepResearchParamsSchema, perplexityPerplexityDeepResearchOutputSchema, slackUserSearchSlackParamsSchema, slackUserSearchSlackOutputSchema, slackUserSearchSlackRTSParamsSchema, slackUserSearchSlackRTSOutputSchema, oktaOrgGetOktaUserByNameParamsSchema, oktaOrgGetOktaUserByNameOutputSchema, googleSearchCustomSearchParamsSchema, googleSearchCustomSearchOutputSchema, salesforceSearchAllSalesforceRecordsParamsSchema, salesforceSearchAllSalesforceRecordsOutputSchema, salesforceListReportsParamsSchema, salesforceListReportsOutputSchema, salesforceExecuteReportParamsSchema, salesforceExecuteReportOutputSchema, slackSendDmFromBotParamsSchema, slackSendDmFromBotOutputSchema, slackGetChannelMembersParamsSchema, slackGetChannelMembersOutputSchema, salesforceGetReportMetadataParamsSchema, salesforceGetReportMetadataOutputSchema, googleOauthUpdateRowsInSpreadsheetParamsSchema, googleOauthUpdateRowsInSpreadsheetOutputSchema, } from "./autogen/types.js";
|
|
2
2
|
import validateAddress from "./providers/googlemaps/validateAddress.js";
|
|
3
3
|
import add from "./providers/math/add.js";
|
|
4
4
|
import fillTemplate from "./providers/generic/fillTemplate.js";
|
|
@@ -16,6 +16,7 @@ import listZendeskTickets from "./providers/zendesk/listTickets.js";
|
|
|
16
16
|
import searchZendeskByQuery from "./providers/zendesk/searchZendeskByQuery.js";
|
|
17
17
|
import assignJiraTicket from "./providers/jira/assignJiraTicket.js";
|
|
18
18
|
import commentJiraTicket from "./providers/jira/commentJiraTicket.js";
|
|
19
|
+
import commentJiraTicketWithMentions from "./providers/jira/commentJiraTicketWithMentions.js";
|
|
19
20
|
import createJiraTicket from "./providers/jira/createJiraTicket.js";
|
|
20
21
|
import getJiraTicketDetails from "./providers/jira/getJiraTicketDetails.js";
|
|
21
22
|
import getJiraTicketHistory from "./providers/jira/getJiraTicketHistory.js";
|
|
@@ -159,6 +160,12 @@ const jiraActions = {
|
|
|
159
160
|
outputSchema: jiraCommentJiraTicketOutputSchema,
|
|
160
161
|
actionType: "write",
|
|
161
162
|
},
|
|
163
|
+
commentJiraTicketWithMentions: {
|
|
164
|
+
fn: commentJiraTicketWithMentions,
|
|
165
|
+
paramsSchema: jiraCommentJiraTicketWithMentionsParamsSchema,
|
|
166
|
+
outputSchema: jiraCommentJiraTicketWithMentionsOutputSchema,
|
|
167
|
+
actionType: "write",
|
|
168
|
+
},
|
|
162
169
|
publicCommentOnServiceDeskRequest: {
|
|
163
170
|
fn: publicCommentOnServiceDeskRequest,
|
|
164
171
|
paramsSchema: jiraPublicCommentOnServiceDeskRequestParamsSchema,
|
|
@@ -20,6 +20,7 @@ export declare const confluenceFetchPageContentDefinition: ActionTemplate;
|
|
|
20
20
|
export declare const jiraAssignJiraTicketDefinition: ActionTemplate;
|
|
21
21
|
export declare const jiraPublicCommentOnServiceDeskRequestDefinition: ActionTemplate;
|
|
22
22
|
export declare const jiraCommentJiraTicketDefinition: ActionTemplate;
|
|
23
|
+
export declare const jiraCommentJiraTicketWithMentionsDefinition: ActionTemplate;
|
|
23
24
|
export declare const jiraCreateJiraTicketDefinition: ActionTemplate;
|
|
24
25
|
export declare const jiraCreateServiceDeskRequestDefinition: ActionTemplate;
|
|
25
26
|
export declare const jiraGetJiraTicketDetailsDefinition: ActionTemplate;
|
|
@@ -33,6 +34,7 @@ export declare const jiraLinkAndAssignJiraIssuesDefinition: ActionTemplate;
|
|
|
33
34
|
export declare const jiraOrgAssignJiraTicketDefinition: ActionTemplate;
|
|
34
35
|
export declare const jiraOrgPublicCommentOnServiceDeskRequestDefinition: ActionTemplate;
|
|
35
36
|
export declare const jiraOrgCommentJiraTicketDefinition: ActionTemplate;
|
|
37
|
+
export declare const jiraOrgCommentJiraTicketWithMentionsDefinition: ActionTemplate;
|
|
36
38
|
export declare const jiraOrgCreateJiraTicketDefinition: ActionTemplate;
|
|
37
39
|
export declare const jiraOrgCreateServiceDeskRequestDefinition: ActionTemplate;
|
|
38
40
|
export declare const jiraOrgGetJiraTicketDetailsDefinition: ActionTemplate;
|
|
@@ -46,6 +48,7 @@ export declare const jiraOrgLinkAndAssignJiraIssuesDefinition: ActionTemplate;
|
|
|
46
48
|
export declare const jiraDataCenterAssignJiraTicketDefinition: ActionTemplate;
|
|
47
49
|
export declare const jiraDataCenterPublicCommentOnServiceDeskRequestDefinition: ActionTemplate;
|
|
48
50
|
export declare const jiraDataCenterCommentJiraTicketDefinition: ActionTemplate;
|
|
51
|
+
export declare const jiraDataCenterCommentJiraTicketWithMentionsDefinition: ActionTemplate;
|
|
49
52
|
export declare const jiraDataCenterCreateJiraTicketDefinition: ActionTemplate;
|
|
50
53
|
export declare const jiraDataCenterCreateServiceDeskRequestDefinition: ActionTemplate;
|
|
51
54
|
export declare const jiraDataCenterGetJiraTicketDetailsDefinition: ActionTemplate;
|
|
@@ -1464,6 +1464,51 @@ export const jiraCommentJiraTicketDefinition = {
|
|
|
1464
1464
|
name: "commentJiraTicket",
|
|
1465
1465
|
provider: "jira",
|
|
1466
1466
|
};
|
|
1467
|
+
export const jiraCommentJiraTicketWithMentionsDefinition = {
|
|
1468
|
+
displayName: "Comment on a Jira ticket with @mention support",
|
|
1469
|
+
description: "Comments on a Jira ticket, converting [~accountid:ID] patterns into clickable @mentions (Jira Cloud only).",
|
|
1470
|
+
scopes: ["write:comment:jira"],
|
|
1471
|
+
tags: [],
|
|
1472
|
+
parameters: {
|
|
1473
|
+
type: "object",
|
|
1474
|
+
required: ["projectKey", "issueId", "comment"],
|
|
1475
|
+
properties: {
|
|
1476
|
+
projectKey: {
|
|
1477
|
+
type: "string",
|
|
1478
|
+
description: "The key for the project to which the ticket you want to comment on belongs.",
|
|
1479
|
+
tags: ["recommend-predefined"],
|
|
1480
|
+
},
|
|
1481
|
+
issueId: {
|
|
1482
|
+
type: "string",
|
|
1483
|
+
description: "The issue ID associated with the ticket to be commented on.",
|
|
1484
|
+
},
|
|
1485
|
+
comment: {
|
|
1486
|
+
type: "string",
|
|
1487
|
+
description: "The text to be commented on the ticket. Use [~accountid:ATLASSIAN_ACCOUNT_ID] to @mention users (Jira Cloud only).",
|
|
1488
|
+
},
|
|
1489
|
+
},
|
|
1490
|
+
},
|
|
1491
|
+
output: {
|
|
1492
|
+
type: "object",
|
|
1493
|
+
required: ["success"],
|
|
1494
|
+
properties: {
|
|
1495
|
+
success: {
|
|
1496
|
+
type: "boolean",
|
|
1497
|
+
description: "Whether the comment was sent successfully",
|
|
1498
|
+
},
|
|
1499
|
+
error: {
|
|
1500
|
+
type: "string",
|
|
1501
|
+
description: "The error that occurred if the comment was not sent successfully",
|
|
1502
|
+
},
|
|
1503
|
+
commentUrl: {
|
|
1504
|
+
type: "string",
|
|
1505
|
+
description: "The url to the created Jira comment",
|
|
1506
|
+
},
|
|
1507
|
+
},
|
|
1508
|
+
},
|
|
1509
|
+
name: "commentJiraTicketWithMentions",
|
|
1510
|
+
provider: "jira",
|
|
1511
|
+
};
|
|
1467
1512
|
export const jiraCreateJiraTicketDefinition = {
|
|
1468
1513
|
displayName: "Create a Jira ticket",
|
|
1469
1514
|
description: "Create a jira ticket with new content specified",
|
|
@@ -2275,6 +2320,51 @@ export const jiraOrgCommentJiraTicketDefinition = {
|
|
|
2275
2320
|
name: "commentJiraTicket",
|
|
2276
2321
|
provider: "jiraOrg",
|
|
2277
2322
|
};
|
|
2323
|
+
export const jiraOrgCommentJiraTicketWithMentionsDefinition = {
|
|
2324
|
+
displayName: "Comment on a Jira ticket with @mention support",
|
|
2325
|
+
description: "Comments on a Jira ticket, converting [~accountid:ID] patterns into clickable @mentions (Jira Cloud only).",
|
|
2326
|
+
scopes: ["write:comment:jira"],
|
|
2327
|
+
tags: [],
|
|
2328
|
+
parameters: {
|
|
2329
|
+
type: "object",
|
|
2330
|
+
required: ["projectKey", "issueId", "comment"],
|
|
2331
|
+
properties: {
|
|
2332
|
+
projectKey: {
|
|
2333
|
+
type: "string",
|
|
2334
|
+
description: "The key for the project to which the ticket you want to comment on belongs.",
|
|
2335
|
+
tags: ["recommend-predefined"],
|
|
2336
|
+
},
|
|
2337
|
+
issueId: {
|
|
2338
|
+
type: "string",
|
|
2339
|
+
description: "The issue ID associated with the ticket to be commented on.",
|
|
2340
|
+
},
|
|
2341
|
+
comment: {
|
|
2342
|
+
type: "string",
|
|
2343
|
+
description: "The text to be commented on the ticket. Use [~accountid:ATLASSIAN_ACCOUNT_ID] to @mention users (Jira Cloud only).",
|
|
2344
|
+
},
|
|
2345
|
+
},
|
|
2346
|
+
},
|
|
2347
|
+
output: {
|
|
2348
|
+
type: "object",
|
|
2349
|
+
required: ["success"],
|
|
2350
|
+
properties: {
|
|
2351
|
+
success: {
|
|
2352
|
+
type: "boolean",
|
|
2353
|
+
description: "Whether the comment was sent successfully",
|
|
2354
|
+
},
|
|
2355
|
+
error: {
|
|
2356
|
+
type: "string",
|
|
2357
|
+
description: "The error that occurred if the comment was not sent successfully",
|
|
2358
|
+
},
|
|
2359
|
+
commentUrl: {
|
|
2360
|
+
type: "string",
|
|
2361
|
+
description: "The url to the created Jira comment",
|
|
2362
|
+
},
|
|
2363
|
+
},
|
|
2364
|
+
},
|
|
2365
|
+
name: "commentJiraTicketWithMentions",
|
|
2366
|
+
provider: "jiraOrg",
|
|
2367
|
+
};
|
|
2278
2368
|
export const jiraOrgCreateJiraTicketDefinition = {
|
|
2279
2369
|
displayName: "Create a Jira ticket",
|
|
2280
2370
|
description: "Create a jira ticket with new content specified",
|
|
@@ -3086,6 +3176,51 @@ export const jiraDataCenterCommentJiraTicketDefinition = {
|
|
|
3086
3176
|
name: "commentJiraTicket",
|
|
3087
3177
|
provider: "jiraDataCenter",
|
|
3088
3178
|
};
|
|
3179
|
+
export const jiraDataCenterCommentJiraTicketWithMentionsDefinition = {
|
|
3180
|
+
displayName: "Comment on a Jira ticket with @mention support",
|
|
3181
|
+
description: "Comments on a Jira ticket, converting [~accountid:ID] patterns into clickable @mentions (Jira Cloud only).",
|
|
3182
|
+
scopes: ["write:comment:jira"],
|
|
3183
|
+
tags: [],
|
|
3184
|
+
parameters: {
|
|
3185
|
+
type: "object",
|
|
3186
|
+
required: ["projectKey", "issueId", "comment"],
|
|
3187
|
+
properties: {
|
|
3188
|
+
projectKey: {
|
|
3189
|
+
type: "string",
|
|
3190
|
+
description: "The key for the project to which the ticket you want to comment on belongs.",
|
|
3191
|
+
tags: ["recommend-predefined"],
|
|
3192
|
+
},
|
|
3193
|
+
issueId: {
|
|
3194
|
+
type: "string",
|
|
3195
|
+
description: "The issue ID associated with the ticket to be commented on.",
|
|
3196
|
+
},
|
|
3197
|
+
comment: {
|
|
3198
|
+
type: "string",
|
|
3199
|
+
description: "The text to be commented on the ticket. Use [~accountid:ATLASSIAN_ACCOUNT_ID] to @mention users (Jira Cloud only).",
|
|
3200
|
+
},
|
|
3201
|
+
},
|
|
3202
|
+
},
|
|
3203
|
+
output: {
|
|
3204
|
+
type: "object",
|
|
3205
|
+
required: ["success"],
|
|
3206
|
+
properties: {
|
|
3207
|
+
success: {
|
|
3208
|
+
type: "boolean",
|
|
3209
|
+
description: "Whether the comment was sent successfully",
|
|
3210
|
+
},
|
|
3211
|
+
error: {
|
|
3212
|
+
type: "string",
|
|
3213
|
+
description: "The error that occurred if the comment was not sent successfully",
|
|
3214
|
+
},
|
|
3215
|
+
commentUrl: {
|
|
3216
|
+
type: "string",
|
|
3217
|
+
description: "The url to the created Jira comment",
|
|
3218
|
+
},
|
|
3219
|
+
},
|
|
3220
|
+
},
|
|
3221
|
+
name: "commentJiraTicketWithMentions",
|
|
3222
|
+
provider: "jiraDataCenter",
|
|
3223
|
+
};
|
|
3089
3224
|
export const jiraDataCenterCreateJiraTicketDefinition = {
|
|
3090
3225
|
displayName: "Create a Jira ticket",
|
|
3091
3226
|
description: "Create a jira ticket with new content specified",
|
|
@@ -5036,7 +5171,12 @@ export const googleOauthCreateNewGoogleDocDefinition = {
|
|
|
5036
5171
|
},
|
|
5037
5172
|
usesHtml: {
|
|
5038
5173
|
type: "boolean",
|
|
5039
|
-
description: "Whether to interpret the content as HTML",
|
|
5174
|
+
description: "Whether to interpret the content as HTML. Deprecated in favor of contentFormat.",
|
|
5175
|
+
},
|
|
5176
|
+
contentFormat: {
|
|
5177
|
+
type: "string",
|
|
5178
|
+
enum: ["plain", "markdown", "html"],
|
|
5179
|
+
description: "How to interpret the content param. Defaults to plain. When set, takes precedence over usesHtml.",
|
|
5040
5180
|
},
|
|
5041
5181
|
},
|
|
5042
5182
|
},
|
|
@@ -5075,6 +5215,11 @@ export const googleOauthAddTextToTopOfDocDefinition = {
|
|
|
5075
5215
|
type: "string",
|
|
5076
5216
|
description: "The text to insert at the beginning of the document",
|
|
5077
5217
|
},
|
|
5218
|
+
contentFormat: {
|
|
5219
|
+
type: "string",
|
|
5220
|
+
enum: ["plain", "markdown", "html"],
|
|
5221
|
+
description: "How to interpret the text param. Defaults to plain.",
|
|
5222
|
+
},
|
|
5078
5223
|
},
|
|
5079
5224
|
},
|
|
5080
5225
|
output: {
|
|
@@ -10738,6 +10883,11 @@ export const salesforceExecuteReportDefinition = {
|
|
|
10738
10883
|
type: "boolean",
|
|
10739
10884
|
description: "Whether the report was successfully executed",
|
|
10740
10885
|
},
|
|
10886
|
+
reportData: {
|
|
10887
|
+
type: "object",
|
|
10888
|
+
description: "The report data returned by Salesforce, including factMap with aggregates and row-level details",
|
|
10889
|
+
additionalProperties: true,
|
|
10890
|
+
},
|
|
10741
10891
|
error: {
|
|
10742
10892
|
type: "string",
|
|
10743
10893
|
description: "The error that occurred if the report was not successfully executed",
|
|
@@ -58,6 +58,7 @@ export declare enum ActionName {
|
|
|
58
58
|
ASSIGNJIRATICKET = "assignJiraTicket",
|
|
59
59
|
PUBLICCOMMENTONSERVICEDESKREQUEST = "publicCommentOnServiceDeskRequest",
|
|
60
60
|
COMMENTJIRATICKET = "commentJiraTicket",
|
|
61
|
+
COMMENTJIRATICKETWITHMENTIONS = "commentJiraTicketWithMentions",
|
|
61
62
|
CREATEJIRATICKET = "createJiraTicket",
|
|
62
63
|
CREATESERVICEDESKREQUEST = "createServiceDeskRequest",
|
|
63
64
|
GETJIRATICKETDETAILS = "getJiraTicketDetails",
|
|
@@ -1640,6 +1641,35 @@ export declare const jiraCommentJiraTicketOutputSchema: z.ZodObject<{
|
|
|
1640
1641
|
}>;
|
|
1641
1642
|
export type jiraCommentJiraTicketOutputType = z.infer<typeof jiraCommentJiraTicketOutputSchema>;
|
|
1642
1643
|
export type jiraCommentJiraTicketFunction = ActionFunction<jiraCommentJiraTicketParamsType, AuthParamsType, jiraCommentJiraTicketOutputType>;
|
|
1644
|
+
export declare const jiraCommentJiraTicketWithMentionsParamsSchema: z.ZodObject<{
|
|
1645
|
+
projectKey: z.ZodString;
|
|
1646
|
+
issueId: z.ZodString;
|
|
1647
|
+
comment: z.ZodString;
|
|
1648
|
+
}, "strip", z.ZodTypeAny, {
|
|
1649
|
+
projectKey: string;
|
|
1650
|
+
issueId: string;
|
|
1651
|
+
comment: string;
|
|
1652
|
+
}, {
|
|
1653
|
+
projectKey: string;
|
|
1654
|
+
issueId: string;
|
|
1655
|
+
comment: string;
|
|
1656
|
+
}>;
|
|
1657
|
+
export type jiraCommentJiraTicketWithMentionsParamsType = z.infer<typeof jiraCommentJiraTicketWithMentionsParamsSchema>;
|
|
1658
|
+
export declare const jiraCommentJiraTicketWithMentionsOutputSchema: z.ZodObject<{
|
|
1659
|
+
success: z.ZodBoolean;
|
|
1660
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1661
|
+
commentUrl: z.ZodOptional<z.ZodString>;
|
|
1662
|
+
}, "strip", z.ZodTypeAny, {
|
|
1663
|
+
success: boolean;
|
|
1664
|
+
error?: string | undefined;
|
|
1665
|
+
commentUrl?: string | undefined;
|
|
1666
|
+
}, {
|
|
1667
|
+
success: boolean;
|
|
1668
|
+
error?: string | undefined;
|
|
1669
|
+
commentUrl?: string | undefined;
|
|
1670
|
+
}>;
|
|
1671
|
+
export type jiraCommentJiraTicketWithMentionsOutputType = z.infer<typeof jiraCommentJiraTicketWithMentionsOutputSchema>;
|
|
1672
|
+
export type jiraCommentJiraTicketWithMentionsFunction = ActionFunction<jiraCommentJiraTicketWithMentionsParamsType, AuthParamsType, jiraCommentJiraTicketWithMentionsOutputType>;
|
|
1643
1673
|
export declare const jiraCreateJiraTicketParamsSchema: z.ZodObject<{
|
|
1644
1674
|
projectKey: z.ZodString;
|
|
1645
1675
|
summary: z.ZodString;
|
|
@@ -2420,6 +2450,35 @@ export declare const jiraOrgCommentJiraTicketOutputSchema: z.ZodObject<{
|
|
|
2420
2450
|
}>;
|
|
2421
2451
|
export type jiraOrgCommentJiraTicketOutputType = z.infer<typeof jiraOrgCommentJiraTicketOutputSchema>;
|
|
2422
2452
|
export type jiraOrgCommentJiraTicketFunction = ActionFunction<jiraOrgCommentJiraTicketParamsType, AuthParamsType, jiraOrgCommentJiraTicketOutputType>;
|
|
2453
|
+
export declare const jiraOrgCommentJiraTicketWithMentionsParamsSchema: z.ZodObject<{
|
|
2454
|
+
projectKey: z.ZodString;
|
|
2455
|
+
issueId: z.ZodString;
|
|
2456
|
+
comment: z.ZodString;
|
|
2457
|
+
}, "strip", z.ZodTypeAny, {
|
|
2458
|
+
projectKey: string;
|
|
2459
|
+
issueId: string;
|
|
2460
|
+
comment: string;
|
|
2461
|
+
}, {
|
|
2462
|
+
projectKey: string;
|
|
2463
|
+
issueId: string;
|
|
2464
|
+
comment: string;
|
|
2465
|
+
}>;
|
|
2466
|
+
export type jiraOrgCommentJiraTicketWithMentionsParamsType = z.infer<typeof jiraOrgCommentJiraTicketWithMentionsParamsSchema>;
|
|
2467
|
+
export declare const jiraOrgCommentJiraTicketWithMentionsOutputSchema: z.ZodObject<{
|
|
2468
|
+
success: z.ZodBoolean;
|
|
2469
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2470
|
+
commentUrl: z.ZodOptional<z.ZodString>;
|
|
2471
|
+
}, "strip", z.ZodTypeAny, {
|
|
2472
|
+
success: boolean;
|
|
2473
|
+
error?: string | undefined;
|
|
2474
|
+
commentUrl?: string | undefined;
|
|
2475
|
+
}, {
|
|
2476
|
+
success: boolean;
|
|
2477
|
+
error?: string | undefined;
|
|
2478
|
+
commentUrl?: string | undefined;
|
|
2479
|
+
}>;
|
|
2480
|
+
export type jiraOrgCommentJiraTicketWithMentionsOutputType = z.infer<typeof jiraOrgCommentJiraTicketWithMentionsOutputSchema>;
|
|
2481
|
+
export type jiraOrgCommentJiraTicketWithMentionsFunction = ActionFunction<jiraOrgCommentJiraTicketWithMentionsParamsType, AuthParamsType, jiraOrgCommentJiraTicketWithMentionsOutputType>;
|
|
2423
2482
|
export declare const jiraOrgCreateJiraTicketParamsSchema: z.ZodObject<{
|
|
2424
2483
|
projectKey: z.ZodString;
|
|
2425
2484
|
summary: z.ZodString;
|
|
@@ -3200,6 +3259,35 @@ export declare const jiraDataCenterCommentJiraTicketOutputSchema: z.ZodObject<{
|
|
|
3200
3259
|
}>;
|
|
3201
3260
|
export type jiraDataCenterCommentJiraTicketOutputType = z.infer<typeof jiraDataCenterCommentJiraTicketOutputSchema>;
|
|
3202
3261
|
export type jiraDataCenterCommentJiraTicketFunction = ActionFunction<jiraDataCenterCommentJiraTicketParamsType, AuthParamsType, jiraDataCenterCommentJiraTicketOutputType>;
|
|
3262
|
+
export declare const jiraDataCenterCommentJiraTicketWithMentionsParamsSchema: z.ZodObject<{
|
|
3263
|
+
projectKey: z.ZodString;
|
|
3264
|
+
issueId: z.ZodString;
|
|
3265
|
+
comment: z.ZodString;
|
|
3266
|
+
}, "strip", z.ZodTypeAny, {
|
|
3267
|
+
projectKey: string;
|
|
3268
|
+
issueId: string;
|
|
3269
|
+
comment: string;
|
|
3270
|
+
}, {
|
|
3271
|
+
projectKey: string;
|
|
3272
|
+
issueId: string;
|
|
3273
|
+
comment: string;
|
|
3274
|
+
}>;
|
|
3275
|
+
export type jiraDataCenterCommentJiraTicketWithMentionsParamsType = z.infer<typeof jiraDataCenterCommentJiraTicketWithMentionsParamsSchema>;
|
|
3276
|
+
export declare const jiraDataCenterCommentJiraTicketWithMentionsOutputSchema: z.ZodObject<{
|
|
3277
|
+
success: z.ZodBoolean;
|
|
3278
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3279
|
+
commentUrl: z.ZodOptional<z.ZodString>;
|
|
3280
|
+
}, "strip", z.ZodTypeAny, {
|
|
3281
|
+
success: boolean;
|
|
3282
|
+
error?: string | undefined;
|
|
3283
|
+
commentUrl?: string | undefined;
|
|
3284
|
+
}, {
|
|
3285
|
+
success: boolean;
|
|
3286
|
+
error?: string | undefined;
|
|
3287
|
+
commentUrl?: string | undefined;
|
|
3288
|
+
}>;
|
|
3289
|
+
export type jiraDataCenterCommentJiraTicketWithMentionsOutputType = z.infer<typeof jiraDataCenterCommentJiraTicketWithMentionsOutputSchema>;
|
|
3290
|
+
export type jiraDataCenterCommentJiraTicketWithMentionsFunction = ActionFunction<jiraDataCenterCommentJiraTicketWithMentionsParamsType, AuthParamsType, jiraDataCenterCommentJiraTicketWithMentionsOutputType>;
|
|
3203
3291
|
export declare const jiraDataCenterCreateJiraTicketParamsSchema: z.ZodObject<{
|
|
3204
3292
|
projectKey: z.ZodString;
|
|
3205
3293
|
summary: z.ZodString;
|
|
@@ -4900,14 +4988,17 @@ export declare const googleOauthCreateNewGoogleDocParamsSchema: z.ZodObject<{
|
|
|
4900
4988
|
title: z.ZodString;
|
|
4901
4989
|
content: z.ZodOptional<z.ZodString>;
|
|
4902
4990
|
usesHtml: z.ZodOptional<z.ZodBoolean>;
|
|
4991
|
+
contentFormat: z.ZodOptional<z.ZodEnum<["plain", "markdown", "html"]>>;
|
|
4903
4992
|
}, "strip", z.ZodTypeAny, {
|
|
4904
4993
|
title: string;
|
|
4905
4994
|
content?: string | undefined;
|
|
4906
4995
|
usesHtml?: boolean | undefined;
|
|
4996
|
+
contentFormat?: "html" | "markdown" | "plain" | undefined;
|
|
4907
4997
|
}, {
|
|
4908
4998
|
title: string;
|
|
4909
4999
|
content?: string | undefined;
|
|
4910
5000
|
usesHtml?: boolean | undefined;
|
|
5001
|
+
contentFormat?: "html" | "markdown" | "plain" | undefined;
|
|
4911
5002
|
}>;
|
|
4912
5003
|
export type googleOauthCreateNewGoogleDocParamsType = z.infer<typeof googleOauthCreateNewGoogleDocParamsSchema>;
|
|
4913
5004
|
export declare const googleOauthCreateNewGoogleDocOutputSchema: z.ZodObject<{
|
|
@@ -4925,12 +5016,15 @@ export type googleOauthCreateNewGoogleDocFunction = ActionFunction<googleOauthCr
|
|
|
4925
5016
|
export declare const googleOauthAddTextToTopOfDocParamsSchema: z.ZodObject<{
|
|
4926
5017
|
documentId: z.ZodString;
|
|
4927
5018
|
text: z.ZodString;
|
|
5019
|
+
contentFormat: z.ZodOptional<z.ZodEnum<["plain", "markdown", "html"]>>;
|
|
4928
5020
|
}, "strip", z.ZodTypeAny, {
|
|
4929
5021
|
text: string;
|
|
4930
5022
|
documentId: string;
|
|
5023
|
+
contentFormat?: "html" | "markdown" | "plain" | undefined;
|
|
4931
5024
|
}, {
|
|
4932
5025
|
text: string;
|
|
4933
5026
|
documentId: string;
|
|
5027
|
+
contentFormat?: "html" | "markdown" | "plain" | undefined;
|
|
4934
5028
|
}>;
|
|
4935
5029
|
export type googleOauthAddTextToTopOfDocParamsType = z.infer<typeof googleOauthAddTextToTopOfDocParamsSchema>;
|
|
4936
5030
|
export declare const googleOauthAddTextToTopOfDocOutputSchema: z.ZodObject<{
|
|
@@ -7601,13 +7695,16 @@ export declare const salesforceExecuteReportParamsSchema: z.ZodObject<{
|
|
|
7601
7695
|
export type salesforceExecuteReportParamsType = z.infer<typeof salesforceExecuteReportParamsSchema>;
|
|
7602
7696
|
export declare const salesforceExecuteReportOutputSchema: z.ZodObject<{
|
|
7603
7697
|
success: z.ZodBoolean;
|
|
7698
|
+
reportData: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodAny, z.objectOutputType<{}, z.ZodAny, "strip">, z.objectInputType<{}, z.ZodAny, "strip">>>;
|
|
7604
7699
|
error: z.ZodOptional<z.ZodString>;
|
|
7605
7700
|
}, "strip", z.ZodTypeAny, {
|
|
7606
7701
|
success: boolean;
|
|
7607
7702
|
error?: string | undefined;
|
|
7703
|
+
reportData?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
|
|
7608
7704
|
}, {
|
|
7609
7705
|
success: boolean;
|
|
7610
7706
|
error?: string | undefined;
|
|
7707
|
+
reportData?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
|
|
7611
7708
|
}>;
|
|
7612
7709
|
export type salesforceExecuteReportOutputType = z.infer<typeof salesforceExecuteReportOutputSchema>;
|
|
7613
7710
|
export type salesforceExecuteReportFunction = ActionFunction<salesforceExecuteReportParamsType, AuthParamsType, salesforceExecuteReportOutputType>;
|
|
@@ -60,6 +60,7 @@ export var ActionName;
|
|
|
60
60
|
ActionName["ASSIGNJIRATICKET"] = "assignJiraTicket";
|
|
61
61
|
ActionName["PUBLICCOMMENTONSERVICEDESKREQUEST"] = "publicCommentOnServiceDeskRequest";
|
|
62
62
|
ActionName["COMMENTJIRATICKET"] = "commentJiraTicket";
|
|
63
|
+
ActionName["COMMENTJIRATICKETWITHMENTIONS"] = "commentJiraTicketWithMentions";
|
|
63
64
|
ActionName["CREATEJIRATICKET"] = "createJiraTicket";
|
|
64
65
|
ActionName["CREATESERVICEDESKREQUEST"] = "createServiceDeskRequest";
|
|
65
66
|
ActionName["GETJIRATICKETDETAILS"] = "getJiraTicketDetails";
|
|
@@ -654,6 +655,18 @@ export const jiraCommentJiraTicketOutputSchema = z.object({
|
|
|
654
655
|
error: z.string().describe("The error that occurred if the comment was not sent successfully").optional(),
|
|
655
656
|
commentUrl: z.string().describe("The url to the created Jira comment").optional(),
|
|
656
657
|
});
|
|
658
|
+
export const jiraCommentJiraTicketWithMentionsParamsSchema = z.object({
|
|
659
|
+
projectKey: z.string().describe("The key for the project to which the ticket you want to comment on belongs."),
|
|
660
|
+
issueId: z.string().describe("The issue ID associated with the ticket to be commented on."),
|
|
661
|
+
comment: z
|
|
662
|
+
.string()
|
|
663
|
+
.describe("The text to be commented on the ticket. Use [~accountid:ATLASSIAN_ACCOUNT_ID] to @mention users (Jira Cloud only)."),
|
|
664
|
+
});
|
|
665
|
+
export const jiraCommentJiraTicketWithMentionsOutputSchema = z.object({
|
|
666
|
+
success: z.boolean().describe("Whether the comment was sent successfully"),
|
|
667
|
+
error: z.string().describe("The error that occurred if the comment was not sent successfully").optional(),
|
|
668
|
+
commentUrl: z.string().describe("The url to the created Jira comment").optional(),
|
|
669
|
+
});
|
|
657
670
|
export const jiraCreateJiraTicketParamsSchema = z.object({
|
|
658
671
|
projectKey: z.string().describe("The key for the project you want to add the ticket to."),
|
|
659
672
|
summary: z.string().describe("The summary of the new ticket"),
|
|
@@ -894,6 +907,18 @@ export const jiraOrgCommentJiraTicketOutputSchema = z.object({
|
|
|
894
907
|
error: z.string().describe("The error that occurred if the comment was not sent successfully").optional(),
|
|
895
908
|
commentUrl: z.string().describe("The url to the created Jira comment").optional(),
|
|
896
909
|
});
|
|
910
|
+
export const jiraOrgCommentJiraTicketWithMentionsParamsSchema = z.object({
|
|
911
|
+
projectKey: z.string().describe("The key for the project to which the ticket you want to comment on belongs."),
|
|
912
|
+
issueId: z.string().describe("The issue ID associated with the ticket to be commented on."),
|
|
913
|
+
comment: z
|
|
914
|
+
.string()
|
|
915
|
+
.describe("The text to be commented on the ticket. Use [~accountid:ATLASSIAN_ACCOUNT_ID] to @mention users (Jira Cloud only)."),
|
|
916
|
+
});
|
|
917
|
+
export const jiraOrgCommentJiraTicketWithMentionsOutputSchema = z.object({
|
|
918
|
+
success: z.boolean().describe("Whether the comment was sent successfully"),
|
|
919
|
+
error: z.string().describe("The error that occurred if the comment was not sent successfully").optional(),
|
|
920
|
+
commentUrl: z.string().describe("The url to the created Jira comment").optional(),
|
|
921
|
+
});
|
|
897
922
|
export const jiraOrgCreateJiraTicketParamsSchema = z.object({
|
|
898
923
|
projectKey: z.string().describe("The key for the project you want to add the ticket to."),
|
|
899
924
|
summary: z.string().describe("The summary of the new ticket"),
|
|
@@ -1134,6 +1159,18 @@ export const jiraDataCenterCommentJiraTicketOutputSchema = z.object({
|
|
|
1134
1159
|
error: z.string().describe("The error that occurred if the comment was not sent successfully").optional(),
|
|
1135
1160
|
commentUrl: z.string().describe("The url to the created Jira comment").optional(),
|
|
1136
1161
|
});
|
|
1162
|
+
export const jiraDataCenterCommentJiraTicketWithMentionsParamsSchema = z.object({
|
|
1163
|
+
projectKey: z.string().describe("The key for the project to which the ticket you want to comment on belongs."),
|
|
1164
|
+
issueId: z.string().describe("The issue ID associated with the ticket to be commented on."),
|
|
1165
|
+
comment: z
|
|
1166
|
+
.string()
|
|
1167
|
+
.describe("The text to be commented on the ticket. Use [~accountid:ATLASSIAN_ACCOUNT_ID] to @mention users (Jira Cloud only)."),
|
|
1168
|
+
});
|
|
1169
|
+
export const jiraDataCenterCommentJiraTicketWithMentionsOutputSchema = z.object({
|
|
1170
|
+
success: z.boolean().describe("Whether the comment was sent successfully"),
|
|
1171
|
+
error: z.string().describe("The error that occurred if the comment was not sent successfully").optional(),
|
|
1172
|
+
commentUrl: z.string().describe("The url to the created Jira comment").optional(),
|
|
1173
|
+
});
|
|
1137
1174
|
export const jiraDataCenterCreateJiraTicketParamsSchema = z.object({
|
|
1138
1175
|
projectKey: z.string().describe("The key for the project you want to add the ticket to."),
|
|
1139
1176
|
summary: z.string().describe("The summary of the new ticket"),
|
|
@@ -1694,7 +1731,14 @@ export const resendSendEmailHtmlOutputSchema = z.object({
|
|
|
1694
1731
|
export const googleOauthCreateNewGoogleDocParamsSchema = z.object({
|
|
1695
1732
|
title: z.string().describe("The title of the new Google Doc"),
|
|
1696
1733
|
content: z.string().describe("The content to add to the new Google Doc").optional(),
|
|
1697
|
-
usesHtml: z
|
|
1734
|
+
usesHtml: z
|
|
1735
|
+
.boolean()
|
|
1736
|
+
.describe("Whether to interpret the content as HTML. Deprecated in favor of contentFormat.")
|
|
1737
|
+
.optional(),
|
|
1738
|
+
contentFormat: z
|
|
1739
|
+
.enum(["plain", "markdown", "html"])
|
|
1740
|
+
.describe("How to interpret the content param. Defaults to plain. When set, takes precedence over usesHtml.")
|
|
1741
|
+
.optional(),
|
|
1698
1742
|
});
|
|
1699
1743
|
export const googleOauthCreateNewGoogleDocOutputSchema = z.object({
|
|
1700
1744
|
documentId: z.string().describe("The ID of the created Google Doc"),
|
|
@@ -1703,6 +1747,10 @@ export const googleOauthCreateNewGoogleDocOutputSchema = z.object({
|
|
|
1703
1747
|
export const googleOauthAddTextToTopOfDocParamsSchema = z.object({
|
|
1704
1748
|
documentId: z.string().describe("The ID of the Google Doc to update"),
|
|
1705
1749
|
text: z.string().describe("The text to insert at the beginning of the document"),
|
|
1750
|
+
contentFormat: z
|
|
1751
|
+
.enum(["plain", "markdown", "html"])
|
|
1752
|
+
.describe("How to interpret the text param. Defaults to plain.")
|
|
1753
|
+
.optional(),
|
|
1706
1754
|
});
|
|
1707
1755
|
export const googleOauthAddTextToTopOfDocOutputSchema = z.object({
|
|
1708
1756
|
success: z.boolean().describe("Whether the document was updated successfully"),
|
|
@@ -3951,6 +3999,11 @@ export const salesforceExecuteReportParamsSchema = z.object({
|
|
|
3951
3999
|
});
|
|
3952
4000
|
export const salesforceExecuteReportOutputSchema = z.object({
|
|
3953
4001
|
success: z.boolean().describe("Whether the report was successfully executed"),
|
|
4002
|
+
reportData: z
|
|
4003
|
+
.object({})
|
|
4004
|
+
.catchall(z.any())
|
|
4005
|
+
.describe("The report data returned by Salesforce, including factMap with aggregates and row-level details")
|
|
4006
|
+
.optional(),
|
|
3954
4007
|
error: z.string().describe("The error that occurred if the report was not successfully executed").optional(),
|
|
3955
4008
|
});
|
|
3956
4009
|
export const salesforceSearchSalesforceRecordsParamsSchema = z.object({
|
|
@@ -5042,9 +5095,6 @@ export const linearCreateIssueParamsSchema = z.object({
|
|
|
5042
5095
|
assigneeId: z.string().describe("The ID of the user to assign the issue to").optional(),
|
|
5043
5096
|
priority: z
|
|
5044
5097
|
.number()
|
|
5045
|
-
.int()
|
|
5046
|
-
.min(0)
|
|
5047
|
-
.max(4)
|
|
5048
5098
|
.describe("The priority of the issue: 0 = No priority, 1 = Urgent, 2 = High, 3 = Medium, 4 = Low")
|
|
5049
5099
|
.optional(),
|
|
5050
5100
|
projectId: z.string().describe("The ID of the project to associate the issue with").optional(),
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
11
|
+
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
|
|
12
|
+
const addCandidateToProject = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
13
|
+
const { candidateId, projectId } = params;
|
|
14
|
+
const { authToken } = authParams;
|
|
15
|
+
if (!authToken) {
|
|
16
|
+
throw new Error(MISSING_AUTH_TOKEN);
|
|
17
|
+
}
|
|
18
|
+
const response = yield axiosClient.post(`https://api.ashbyhq.com/candidate.addProject`, {
|
|
19
|
+
candidateId,
|
|
20
|
+
projectId,
|
|
21
|
+
}, {
|
|
22
|
+
auth: {
|
|
23
|
+
username: authToken,
|
|
24
|
+
password: "",
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
if (!response.data.success) {
|
|
28
|
+
throw new Error(response.data.errors.join("; "));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export default addCandidateToProject;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
11
|
+
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
|
|
12
|
+
const createCandidate = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
13
|
+
const { authToken } = authParams;
|
|
14
|
+
if (!authToken) {
|
|
15
|
+
throw new Error(MISSING_AUTH_TOKEN);
|
|
16
|
+
}
|
|
17
|
+
const response = yield axiosClient.post(`https://api.ashbyhq.com/candidate.create`, {
|
|
18
|
+
name: params.name,
|
|
19
|
+
email: params.email,
|
|
20
|
+
phoneNumber: params.phoneNumber,
|
|
21
|
+
linkedInUrl: params.linkedInUrl,
|
|
22
|
+
githubUrl: params.githubUrl,
|
|
23
|
+
website: params.website,
|
|
24
|
+
alternateEmailAddresses: params.alternateEmailAddresses,
|
|
25
|
+
sourceId: params.sourceId,
|
|
26
|
+
creditedToUserId: params.creditedToUserId,
|
|
27
|
+
location: params.location,
|
|
28
|
+
}, {
|
|
29
|
+
auth: {
|
|
30
|
+
username: authToken,
|
|
31
|
+
password: "",
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
if (!response.data.success) {
|
|
35
|
+
throw new Error(response.data.errors.join("; "));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export default createCandidate;
|