@credal/actions 0.2.8 → 0.2.10
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/autogen/templates.d.ts +1 -1
- package/dist/actions/groups.d.ts +1 -1
- package/dist/actions/groups.js +1 -1
- package/dist/actions/providers/asana/commentAsanaTask.d.ts +1 -1
- package/dist/actions/providers/asana/commentAsanaTask.js +2 -2
- package/dist/actions/providers/asana/createAsanaTask.d.ts +1 -1
- package/dist/actions/providers/asana/createAsanaTask.js +2 -2
- package/dist/actions/providers/asana/getTasksDetails.d.ts +1 -1
- package/dist/actions/providers/asana/getTasksDetails.js +3 -3
- package/dist/actions/providers/asana/listAsanaTasksByProject.d.ts +1 -1
- package/dist/actions/providers/asana/listAsanaTasksByProject.js +1 -1
- package/dist/actions/providers/asana/searchAsanaTasks.d.ts +1 -1
- package/dist/actions/providers/asana/searchAsanaTasks.js +2 -2
- package/dist/actions/providers/asana/updateAsanaTask.d.ts +1 -1
- package/dist/actions/providers/asana/updateAsanaTask.js +2 -2
- package/dist/actions/providers/asana/utils.js +1 -1
- package/dist/actions/providers/ashby/addCandidateToProject.d.ts +1 -1
- package/dist/actions/providers/ashby/addCandidateToProject.js +2 -2
- package/dist/actions/providers/ashby/createCandidate.d.ts +1 -1
- package/dist/actions/providers/ashby/createCandidate.js +2 -2
- package/dist/actions/providers/ashby/createNote.d.ts +1 -1
- package/dist/actions/providers/ashby/createNote.js +2 -2
- package/dist/actions/providers/ashby/getCandidateInfo.d.ts +1 -1
- package/dist/actions/providers/ashby/getCandidateInfo.js +2 -2
- package/dist/actions/providers/ashby/listCandidateNotes.d.ts +1 -1
- package/dist/actions/providers/ashby/listCandidateNotes.js +2 -2
- package/dist/actions/providers/ashby/listCandidates.d.ts +1 -1
- package/dist/actions/providers/ashby/listCandidates.js +2 -2
- package/dist/actions/providers/ashby/searchCandidates.d.ts +1 -1
- package/dist/actions/providers/ashby/searchCandidates.js +2 -2
- package/dist/actions/providers/ashby/updateCandidate.d.ts +1 -1
- package/dist/actions/providers/ashby/updateCandidate.js +2 -2
- package/dist/actions/providers/generic/fillTemplate.d.ts +1 -1
- package/dist/actions/providers/google-oauth/addGroupMember.d.ts +1 -1
- package/dist/actions/providers/google-oauth/addGroupMember.js +2 -2
- package/dist/actions/providers/google-oauth/createNewGoogleDoc.d.ts +1 -1
- package/dist/actions/providers/google-oauth/createNewGoogleDoc.js +2 -2
- package/dist/actions/providers/google-oauth/createPresentation.d.ts +1 -1
- package/dist/actions/providers/google-oauth/createPresentation.js +2 -2
- package/dist/actions/providers/google-oauth/createSpreadsheet.d.ts +1 -1
- package/dist/actions/providers/google-oauth/createSpreadsheet.js +1 -1
- package/dist/actions/providers/google-oauth/deleteCalendarEvent.d.ts +1 -1
- package/dist/actions/providers/google-oauth/deleteCalendarEvent.js +2 -2
- package/dist/actions/providers/google-oauth/deleteGroupMember.d.ts +1 -1
- package/dist/actions/providers/google-oauth/deleteGroupMember.js +2 -2
- package/dist/actions/providers/google-oauth/getGroup.d.ts +1 -1
- package/dist/actions/providers/google-oauth/getGroup.js +2 -2
- package/dist/actions/providers/google-oauth/hasGroupMember.d.ts +1 -1
- package/dist/actions/providers/google-oauth/hasGroupMember.js +2 -2
- package/dist/actions/providers/google-oauth/listCalendarEvents.d.ts +1 -1
- package/dist/actions/providers/google-oauth/listCalendarEvents.js +2 -2
- package/dist/actions/providers/google-oauth/listCalendars.d.ts +1 -1
- package/dist/actions/providers/google-oauth/listCalendars.js +2 -2
- package/dist/actions/providers/google-oauth/listGroupMembers.d.ts +1 -1
- package/dist/actions/providers/google-oauth/listGroupMembers.js +2 -2
- package/dist/actions/providers/google-oauth/listGroups.d.ts +1 -1
- package/dist/actions/providers/google-oauth/listGroups.js +2 -2
- package/dist/actions/providers/google-oauth/scheduleCalendarMeeting.d.ts +1 -1
- package/dist/actions/providers/google-oauth/scheduleCalendarMeeting.js +2 -2
- package/dist/actions/providers/google-oauth/searchDriveByKeywords.d.ts +1 -1
- package/dist/actions/providers/google-oauth/searchDriveByKeywords.js +2 -2
- package/dist/actions/providers/google-oauth/updateCalendarEvent.d.ts +1 -1
- package/dist/actions/providers/google-oauth/updateCalendarEvent.js +2 -2
- package/dist/actions/providers/google-oauth/updateDoc.d.ts +1 -1
- package/dist/actions/providers/google-oauth/updateDoc.js +1 -1
- package/dist/actions/providers/google-oauth/updatePresentation.d.ts +1 -1
- package/dist/actions/providers/google-oauth/updatePresentation.js +2 -2
- package/dist/actions/providers/google-oauth/updateSpreadsheet.d.ts +1 -1
- package/dist/actions/providers/google-oauth/updateSpreadsheet.js +2 -2
- package/dist/actions/providers/googlemail/listGmailThreads.d.ts +1 -1
- package/dist/actions/providers/googlemail/listGmailThreads.js +2 -2
- package/dist/actions/providers/googlemail/searchGmailMessages.d.ts +1 -1
- package/dist/actions/providers/googlemail/searchGmailMessages.js +2 -2
- package/dist/actions/providers/googlemaps/nearbysearchRestaurants.d.ts +1 -1
- package/dist/actions/providers/googlemaps/nearbysearchRestaurants.js +2 -2
- package/dist/actions/providers/googlemaps/validateAddress.d.ts +1 -1
- package/dist/actions/providers/googlemaps/validateAddress.js +1 -1
- package/dist/actions/providers/jamf/getJamfComputerInventory.d.ts +1 -1
- package/dist/actions/providers/jamf/getJamfComputerInventory.js +1 -1
- package/dist/actions/providers/jamf/getJamfFileVaultRecoveryKey.d.ts +1 -1
- package/dist/actions/providers/jamf/getJamfFileVaultRecoveryKey.js +1 -1
- package/dist/actions/providers/jira/assignJiraTicket.d.ts +1 -1
- package/dist/actions/providers/jira/commentJiraTicket.d.ts +1 -1
- package/dist/actions/providers/jira/commentJiraTicket.js +1 -1
- package/dist/actions/providers/jira/createJiraTicket.d.ts +1 -1
- package/dist/actions/providers/jira/createJiraTicket.js +1 -1
- package/dist/actions/providers/jira/getJiraIssuesByQuery.d.ts +1 -1
- package/dist/actions/providers/jira/getJiraIssuesByQuery.js +1 -1
- package/dist/actions/providers/jira/getJiraTicketDetails.d.ts +1 -1
- package/dist/actions/providers/jira/getJiraTicketDetails.js +1 -1
- package/dist/actions/providers/jira/getJiraTicketHistory.d.ts +1 -1
- package/dist/actions/providers/jira/getJiraTicketHistory.js +1 -1
- package/dist/actions/providers/jira/updateJiraTicketDetails.d.ts +1 -1
- package/dist/actions/providers/jira/updateJiraTicketDetails.js +1 -1
- package/dist/actions/providers/jira/updateJiraTicketStatus.d.ts +1 -1
- package/dist/actions/providers/jira/updateJiraTicketStatus.js +1 -1
- package/dist/actions/providers/jira/utils.js +1 -1
- package/dist/actions/providers/kandji/getFVRecoveryKeyForDevice.d.ts +1 -1
- package/dist/actions/providers/kandji/getFVRecoveryKeyForDevice.js +1 -1
- package/dist/actions/providers/linkedin/createSharePostLinkedinUrl.d.ts +1 -1
- package/dist/actions/providers/looker/enableUserByEmail.d.ts +1 -1
- package/dist/actions/providers/looker/enableUserByEmail.js +1 -1
- package/dist/actions/providers/microsoft/createDocument.d.ts +1 -1
- package/dist/actions/providers/microsoft/createDocument.js +1 -1
- package/dist/actions/providers/microsoft/getDocument.d.ts +1 -1
- package/dist/actions/providers/microsoft/messageTeamsChannel.d.ts +1 -1
- package/dist/actions/providers/microsoft/messageTeamsChannel.js +1 -1
- package/dist/actions/providers/microsoft/messageTeamsChat.d.ts +1 -1
- package/dist/actions/providers/microsoft/messageTeamsChat.js +1 -1
- package/dist/actions/providers/microsoft/updateDocument.d.ts +1 -1
- package/dist/actions/providers/microsoft/updateDocument.js +1 -1
- package/dist/actions/providers/microsoft/updateSpreadsheet.d.ts +1 -1
- package/dist/actions/providers/microsoft/updateSpreadsheet.js +1 -1
- package/dist/actions/providers/microsoft/utils.d.ts +1 -1
- package/dist/actions/providers/microsoft/utils.js +1 -1
- package/dist/actions/providers/mongodb/insertMongoDoc.d.ts +1 -1
- package/dist/actions/providers/notion/searchByTitle.d.ts +1 -1
- package/dist/actions/providers/notion/searchByTitle.js +1 -1
- package/dist/actions/providers/nws/getForecastForLocation.d.ts +1 -1
- package/dist/actions/providers/nws/getForecastForLocation.js +2 -2
- package/dist/actions/providers/okta/addUserToGroup.d.ts +1 -1
- package/dist/actions/providers/okta/addUserToGroup.js +1 -1
- package/dist/actions/providers/okta/getOktaGroup.d.ts +1 -1
- package/dist/actions/providers/okta/getOktaGroup.js +1 -1
- package/dist/actions/providers/okta/getOktaUser.d.ts +1 -1
- package/dist/actions/providers/okta/getOktaUser.js +1 -1
- package/dist/actions/providers/okta/listMFA.d.ts +1 -1
- package/dist/actions/providers/okta/listMFA.js +1 -1
- package/dist/actions/providers/okta/listOktaGroupMembers.d.ts +1 -1
- package/dist/actions/providers/okta/listOktaGroupMembers.js +1 -1
- package/dist/actions/providers/okta/listOktaGroups.d.ts +1 -1
- package/dist/actions/providers/okta/listOktaGroups.js +1 -1
- package/dist/actions/providers/okta/listOktaUserGroups.d.ts +1 -1
- package/dist/actions/providers/okta/listOktaUserGroups.js +1 -1
- package/dist/actions/providers/okta/listOktaUsers.d.ts +1 -1
- package/dist/actions/providers/okta/listOktaUsers.js +1 -1
- package/dist/actions/providers/okta/removeUserFromGroup.d.ts +1 -1
- package/dist/actions/providers/okta/removeUserFromGroup.js +1 -1
- package/dist/actions/providers/okta/resetMFA.d.ts +1 -1
- package/dist/actions/providers/okta/resetMFA.js +1 -1
- package/dist/actions/providers/okta/resetPassword.d.ts +1 -1
- package/dist/actions/providers/okta/resetPassword.js +1 -1
- package/dist/actions/providers/openstreetmap/getLatitudeLongitudeFromLocation.d.ts +1 -1
- package/dist/actions/providers/openstreetmap/getLatitudeLongitudeFromLocation.js +1 -1
- package/dist/actions/providers/resend/sendEmail.d.ts +1 -1
- package/dist/actions/providers/resend/sendEmail.js +1 -1
- package/dist/actions/providers/salesforce/createCase.d.ts +1 -1
- package/dist/actions/providers/salesforce/createCase.js +1 -1
- package/dist/actions/providers/salesforce/createRecord.d.ts +1 -1
- package/dist/actions/providers/salesforce/createRecord.js +1 -1
- package/dist/actions/providers/salesforce/fetchSalesforceSchema.d.ts +1 -1
- package/dist/actions/providers/salesforce/fetchSalesforceSchema.js +1 -1
- package/dist/actions/providers/salesforce/generateSalesReport.d.ts +1 -1
- package/dist/actions/providers/salesforce/generateSalesReport.js +1 -1
- package/dist/actions/providers/salesforce/getRecord.d.ts +1 -1
- package/dist/actions/providers/salesforce/getRecord.js +1 -1
- package/dist/actions/providers/salesforce/getSalesforceRecordsByQuery.d.ts +1 -1
- package/dist/actions/providers/salesforce/getSalesforceRecordsByQuery.js +1 -1
- package/dist/actions/providers/salesforce/updateRecord.d.ts +1 -1
- package/dist/actions/providers/salesforce/updateRecord.js +1 -1
- package/dist/actions/providers/slack/getChannelMessages.d.ts +1 -1
- package/dist/actions/providers/slack/getChannelMessages.js +1 -1
- package/dist/actions/providers/slack/sendMessage.d.ts +1 -1
- package/dist/actions/providers/slack/sendMessage.js +2 -2
- package/dist/actions/providers/snowflake/auth/getSnowflakeConnection.d.ts +1 -1
- package/dist/actions/providers/snowflake/getRowByFieldValue.d.ts +1 -1
- package/dist/actions/providers/snowflake/runSnowflakeQuery.d.ts +1 -1
- package/dist/actions/providers/snowflake/runSnowflakeQuery.js +1 -1
- package/dist/actions/providers/x/createXSharePostUrl.d.ts +1 -1
- package/dist/actions/providers/zendesk/addCommentToTicket.d.ts +1 -1
- package/dist/actions/providers/zendesk/addCommentToTicket.js +2 -2
- package/dist/actions/providers/zendesk/assignTicket.d.ts +1 -1
- package/dist/actions/providers/zendesk/assignTicket.js +2 -2
- package/dist/actions/providers/zendesk/createZendeskTicket.d.ts +1 -1
- package/dist/actions/providers/zendesk/createZendeskTicket.js +2 -2
- package/dist/actions/providers/zendesk/getTicketDetails.d.ts +1 -1
- package/dist/actions/providers/zendesk/getTicketDetails.js +2 -2
- package/dist/actions/providers/zendesk/listTickets.d.ts +1 -1
- package/dist/actions/providers/zendesk/listTickets.js +2 -2
- package/dist/actions/providers/zendesk/updateTicketStatus.d.ts +1 -1
- package/dist/actions/providers/zendesk/updateTicketStatus.js +2 -2
- package/package.json +1 -1
- package/dist/actions/providers/jamf/types.d.ts +0 -8
- package/dist/actions/providers/jamf/types.js +0 -7
- package/dist/server.d.ts +0 -2
- package/dist/server.js +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { googleOauthUpdateDocFunction } from "../../autogen/types";
|
|
1
|
+
import type { googleOauthUpdateDocFunction } from "../../autogen/types.js";
|
|
2
2
|
/**
|
|
3
3
|
* Updates an existing Google Docs document using OAuth authentication with batch requests
|
|
4
4
|
* https://developers.google.com/workspace/docs/api/reference/rest/v1/documents/batchUpdate
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import axios from "axios";
|
|
11
|
-
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants";
|
|
11
|
+
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
|
|
12
12
|
/**
|
|
13
13
|
* Updates an existing Google Docs document using OAuth authentication with batch requests
|
|
14
14
|
* https://developers.google.com/workspace/docs/api/reference/rest/v1/documents/batchUpdate
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { googleOauthUpdatePresentationFunction } from "../../autogen/types";
|
|
1
|
+
import type { googleOauthUpdatePresentationFunction } from "../../autogen/types.js";
|
|
2
2
|
/**
|
|
3
3
|
* Updates an existing Google Slides presentation using OAuth authentication with batch requests
|
|
4
4
|
* https://developers.google.com/slides/api/reference/rest/v1/presentations/batchUpdate
|
|
@@ -7,8 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
11
|
-
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants";
|
|
10
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
11
|
+
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
|
|
12
12
|
/**
|
|
13
13
|
* Updates an existing Google Slides presentation using OAuth authentication with batch requests
|
|
14
14
|
* https://developers.google.com/slides/api/reference/rest/v1/presentations/batchUpdate
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { googleOauthUpdateSpreadsheetFunction } from "../../autogen/types";
|
|
1
|
+
import type { googleOauthUpdateSpreadsheetFunction } from "../../autogen/types.js";
|
|
2
2
|
/**
|
|
3
3
|
* Update a Google Spreadsheet using OAuth authentication
|
|
4
4
|
* https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/batchUpdate
|
|
@@ -7,8 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
11
|
-
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants";
|
|
10
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
11
|
+
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
|
|
12
12
|
/**
|
|
13
13
|
* Update a Google Spreadsheet using OAuth authentication
|
|
14
14
|
* https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/batchUpdate
|
|
@@ -7,8 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
11
|
-
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants";
|
|
10
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
11
|
+
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
|
|
12
12
|
import { getEmailContent } from "../google-oauth/utils/decodeMessage.js";
|
|
13
13
|
const listGmailThreads = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
14
14
|
if (!authParams.authToken) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { googlemailSearchGmailMessagesFunction } from "../../autogen/types";
|
|
1
|
+
import type { googlemailSearchGmailMessagesFunction } from "../../autogen/types.js";
|
|
2
2
|
declare const searchGmailMessages: googlemailSearchGmailMessagesFunction;
|
|
3
3
|
export default searchGmailMessages;
|
|
@@ -7,8 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
11
|
-
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants";
|
|
10
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
11
|
+
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
|
|
12
12
|
import { getEmailContent } from "../google-oauth/utils/decodeMessage.js";
|
|
13
13
|
const searchGmailMessages = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
14
14
|
if (!authParams.authToken) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { googlemapsNearbysearchRestaurantsFunction } from "../../autogen/types";
|
|
1
|
+
import type { googlemapsNearbysearchRestaurantsFunction } from "../../autogen/types.js";
|
|
2
2
|
declare const nearbysearchRestaurants: googlemapsNearbysearchRestaurantsFunction;
|
|
3
3
|
export default nearbysearchRestaurants;
|
|
@@ -7,8 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { googlemapsNearbysearchRestaurantsOutputSchema } from "../../autogen/types";
|
|
11
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
10
|
+
import { googlemapsNearbysearchRestaurantsOutputSchema } from "../../autogen/types.js";
|
|
11
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
12
12
|
const INCLUDED_TYPES = ["restaurant"];
|
|
13
13
|
const nearbysearchRestaurants = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
14
14
|
const url = `https://places.googleapis.com/v1/places:searchNearby`;
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
10
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
11
11
|
const validateAddress = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
12
12
|
const url = `https://addressvalidation.googleapis.com/v1:validateAddress?key=${authParams.apiKey}`;
|
|
13
13
|
const requestBody = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { jamfGetJamfComputerInventoryFunction } from "../../autogen/types";
|
|
1
|
+
import type { jamfGetJamfComputerInventoryFunction } from "../../autogen/types.js";
|
|
2
2
|
declare const getJamfComputerInventory: jamfGetJamfComputerInventoryFunction;
|
|
3
3
|
export default getJamfComputerInventory;
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
10
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
11
11
|
const getJamfComputerInventory = (_a) => __awaiter(void 0, [_a], void 0, function* ({ authParams, }) {
|
|
12
12
|
const { authToken, subdomain } = authParams;
|
|
13
13
|
if (!subdomain || !authToken) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { jamfGetJamfFileVaultRecoveryKeyFunction } from "../../autogen/types";
|
|
1
|
+
import type { jamfGetJamfFileVaultRecoveryKeyFunction } from "../../autogen/types.js";
|
|
2
2
|
declare const getJamfFileVaultRecoveryKey: jamfGetJamfFileVaultRecoveryKeyFunction;
|
|
3
3
|
export default getJamfFileVaultRecoveryKey;
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
10
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
11
11
|
const getJamfFileVaultRecoveryKey = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
12
12
|
const { authToken, subdomain } = authParams;
|
|
13
13
|
const { computerId } = params;
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
10
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
11
11
|
const commentJiraTicket = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
12
12
|
const { authToken, cloudId, baseUrl } = authParams;
|
|
13
13
|
if (!cloudId || !authToken) {
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
10
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
11
11
|
import { getUserAccountIdFromEmail } from "./utils.js";
|
|
12
12
|
const createJiraTicket = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
13
13
|
const { authToken, cloudId, baseUrl } = authParams;
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { ApiError, axiosClient } from "../../util/axiosClient";
|
|
10
|
+
import { ApiError, axiosClient } from "../../util/axiosClient.js";
|
|
11
11
|
const DEFAULT_LIMIT = 1000;
|
|
12
12
|
const getJiraIssuesByQuery = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
13
13
|
const { authToken, cloudId } = authParams;
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
10
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
11
11
|
const getJiraTicketDetails = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
12
12
|
const { authToken, cloudId } = authParams;
|
|
13
13
|
const { issueId } = params;
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
10
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
11
11
|
const getJiraTicketHistory = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
12
12
|
var _b;
|
|
13
13
|
const { authToken, cloudId } = authParams;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { jiraUpdateJiraTicketDetailsFunction } from "../../autogen/types";
|
|
1
|
+
import type { jiraUpdateJiraTicketDetailsFunction } from "../../autogen/types.js";
|
|
2
2
|
declare const updateJiraTicketDetails: jiraUpdateJiraTicketDetailsFunction;
|
|
3
3
|
export default updateJiraTicketDetails;
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
10
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
11
11
|
const updateJiraTicketDetails = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
12
12
|
const { authToken, cloudId, baseUrl } = authParams;
|
|
13
13
|
const { issueId, summary, description, customFields } = params;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { jiraUpdateJiraTicketStatusFunction } from "../../autogen/types";
|
|
1
|
+
import type { jiraUpdateJiraTicketStatusFunction } from "../../autogen/types.js";
|
|
2
2
|
declare const updateJiraTicketStatus: jiraUpdateJiraTicketStatusFunction;
|
|
3
3
|
export default updateJiraTicketStatus;
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
10
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
11
11
|
const updateJiraTicketStatus = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
12
12
|
const { authToken, cloudId, baseUrl } = authParams;
|
|
13
13
|
if (!cloudId || !authToken) {
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
10
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
11
11
|
export function getUserAccountIdFromEmail(email, apiUrl, authToken) {
|
|
12
12
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13
13
|
try {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type kandjiGetFVRecoveryKeyForDeviceFunction } from "../../autogen/types";
|
|
1
|
+
import { type kandjiGetFVRecoveryKeyForDeviceFunction } from "../../autogen/types.js";
|
|
2
2
|
declare const getFVRecoveryKeyForDevice: kandjiGetFVRecoveryKeyForDeviceFunction;
|
|
3
3
|
export default getFVRecoveryKeyForDevice;
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
10
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
11
11
|
const getFVRecoveryKeyForDevice = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
12
12
|
const { userEmail, subdomain } = params;
|
|
13
13
|
const { apiKey } = authParams;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { linkedinCreateShareLinkedinPostUrlFunction } from "../../autogen/types";
|
|
1
|
+
import type { linkedinCreateShareLinkedinPostUrlFunction } from "../../autogen/types.js";
|
|
2
2
|
declare const createShareLinkedinPostUrl: linkedinCreateShareLinkedinPostUrlFunction;
|
|
3
3
|
export default createShareLinkedinPostUrl;
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
10
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
11
11
|
const enableUserByEmail = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
12
12
|
const { userEmail } = params;
|
|
13
13
|
const { baseUrl, clientId, clientSecret, authToken } = authParams;
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { microsoftCreateDocumentDefinition } from "../../autogen/templates";
|
|
10
|
+
import { microsoftCreateDocumentDefinition } from "../../autogen/templates.js";
|
|
11
11
|
import { getGraphClient, validateAndSanitizeFileName } from "./utils.js";
|
|
12
12
|
const createDocument = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
13
13
|
const { folderId, name, content, siteId } = params;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { microsoftMessageTeamsChannelFunction } from "../../autogen/types";
|
|
1
|
+
import type { microsoftMessageTeamsChannelFunction } from "../../autogen/types.js";
|
|
2
2
|
declare const sendMessageToTeamsChannel: microsoftMessageTeamsChannelFunction;
|
|
3
3
|
export default sendMessageToTeamsChannel;
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { microsoftMessageTeamsChannelDefinition } from "../../autogen/templates";
|
|
10
|
+
import { microsoftMessageTeamsChannelDefinition } from "../../autogen/templates.js";
|
|
11
11
|
import { getGraphClient } from "./utils.js";
|
|
12
12
|
const sendMessageToTeamsChannel = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
13
13
|
const { channelId, teamId, message } = params;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { microsoftMessageTeamsChatFunction } from "../../autogen/types";
|
|
1
|
+
import type { microsoftMessageTeamsChatFunction } from "../../autogen/types.js";
|
|
2
2
|
declare const sendMessageToTeamsChat: microsoftMessageTeamsChatFunction;
|
|
3
3
|
export default sendMessageToTeamsChat;
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { microsoftMessageTeamsChatDefinition } from "../../autogen/templates";
|
|
10
|
+
import { microsoftMessageTeamsChatDefinition } from "../../autogen/templates.js";
|
|
11
11
|
import { getGraphClient } from "./utils.js";
|
|
12
12
|
const sendMessageToTeamsChat = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
13
13
|
const { chatId, message } = params;
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { microsoftUpdateDocumentDefinition } from "../../autogen/templates";
|
|
10
|
+
import { microsoftUpdateDocumentDefinition } from "../../autogen/templates.js";
|
|
11
11
|
import { getGraphClient } from "./utils.js";
|
|
12
12
|
const updateDocument = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
13
13
|
const { documentId, content, siteId } = params;
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { microsoftUpdateSpreadsheetDefinition } from "../../autogen/templates";
|
|
10
|
+
import { microsoftUpdateSpreadsheetDefinition } from "../../autogen/templates.js";
|
|
11
11
|
import { getGraphClient } from "./utils.js";
|
|
12
12
|
const updateSpreadsheet = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
13
13
|
const { spreadsheetId, range, values, siteId } = params; // Added siteId to destructured params
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Client } from "@microsoft/microsoft-graph-client";
|
|
2
|
-
import type { AuthParamsType } from "../../autogen/types";
|
|
2
|
+
import type { AuthParamsType } from "../../autogen/types.js";
|
|
3
3
|
export declare function getGraphClient(authParams: AuthParamsType, scope: string): Promise<Client>;
|
|
4
4
|
/**
|
|
5
5
|
* Validates and sanitizes a filename for SharePoint or OneDrive.
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { Client } from "@microsoft/microsoft-graph-client";
|
|
11
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
11
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
12
12
|
export function getGraphClient(authParams, scope) {
|
|
13
13
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14
14
|
if (!authParams.clientId ||
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants";
|
|
10
|
+
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
|
|
11
11
|
import axios from "axios";
|
|
12
12
|
// Notion response is not standard for title, title can be in different places
|
|
13
13
|
// This function checks if the title is in the properties object
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { nwsGetForecastForLocationFunction } from "../../autogen/types";
|
|
1
|
+
import type { nwsGetForecastForLocationFunction } from "../../autogen/types.js";
|
|
2
2
|
declare const getForecastForLocation: nwsGetForecastForLocationFunction;
|
|
3
3
|
export default getForecastForLocation;
|
|
@@ -7,8 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { isBetweenDatetime, isValidIsoDatestring } from "../../../utils/datetime";
|
|
11
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
10
|
+
import { isBetweenDatetime, isValidIsoDatestring } from "../../../utils/datetime.js";
|
|
11
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
12
12
|
const getForecastForLocation = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
13
13
|
const { latitude, longitude, isoDate } = params;
|
|
14
14
|
const { userAgent } = authParams;
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { AxiosError } from "axios";
|
|
11
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
11
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
12
12
|
const addUserToGroup = (_a) => __awaiter(void 0, [_a], void 0, function* ({ authParams, params, }) {
|
|
13
13
|
var _b, _c;
|
|
14
14
|
const { authToken, baseUrl } = authParams;
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { AxiosError } from "axios";
|
|
11
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
11
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
12
12
|
const getOktaGroup = (_a) => __awaiter(void 0, [_a], void 0, function* ({ authParams, params, }) {
|
|
13
13
|
var _b, _c, _d, _e, _f;
|
|
14
14
|
const { authToken, baseUrl } = authParams;
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
10
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
11
11
|
const getOktaUser = (_a) => __awaiter(void 0, [_a], void 0, function* ({ authParams, params, }) {
|
|
12
12
|
const { authToken, baseUrl } = authParams;
|
|
13
13
|
if (!authToken || !baseUrl) {
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { AxiosError } from "axios";
|
|
11
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
11
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
12
12
|
const listMFA = (_a) => __awaiter(void 0, [_a], void 0, function* ({ authParams, params, }) {
|
|
13
13
|
var _b, _c;
|
|
14
14
|
const { authToken, baseUrl } = authParams;
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { AxiosError } from "axios";
|
|
11
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
11
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
12
12
|
// page limit recommended by Okta documentation
|
|
13
13
|
// https://developer.okta.com/docs/api/openapi/okta-management/management/tag/Group/#tag/Group/operation/listGroupUsers
|
|
14
14
|
const DEFAULT_LIMIT = 200;
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { AxiosError } from "axios";
|
|
11
|
-
import { axiosClient } from "../../util/axiosClient";
|
|
11
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
12
12
|
// page limit 200 recomended by Okta documentation
|
|
13
13
|
// https://developer.okta.com/docs/api/openapi/okta-management/management/tag/Group/#tag/Group/operation/listGroups
|
|
14
14
|
const DEFAULT_LIMIT = 200;
|