@credal/actions 0.2.131 → 0.2.132

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.
@@ -10006,7 +10006,7 @@ export const salesforceGenerateSalesReportDefinition = {
10006
10006
  provider: "salesforce",
10007
10007
  };
10008
10008
  export const salesforceSearchAllSalesforceRecordsDefinition = {
10009
- description: "Search for Salesforce records by keyword",
10009
+ description: "Search for all Salesforce records by keyword",
10010
10010
  scopes: [],
10011
10011
  parameters: {
10012
10012
  type: "object",
@@ -21,9 +21,14 @@ const searchAllSalesforceRecords = (_a) => __awaiter(void 0, [_a], void 0, funct
21
21
  .replace(/-/g, "\\-"); // Escape dashes
22
22
  let customObject = "";
23
23
  if (params.usesLightningKnowledge) {
24
- customObject = "Knowledge__kav";
24
+ customObject = "Knowledge__kav(Article_Body__c, Title)";
25
25
  }
26
- const url = `${baseUrl}/services/data/v64.0/search/?q=${encodeURIComponent(`FIND {${escapedKeyword}} IN ALL FIELDS RETURNING Account, Contact, Lead, Opportunity, Case ${customObject ? ", " + customObject : ""} LIMIT ${params.limit && params.limit <= maxLimitValue ? params.limit : maxLimitValue}`)}`;
26
+ const url = `${baseUrl}/services/data/v64.0/search/?q=${encodeURIComponent(`FIND {${escapedKeyword}} IN ALL FIELDS RETURNING
27
+ Contact(Id, FirstName, LastName, Email, Phone, Title, Department, Account.Name, CreatedDate, LastModifiedDate),
28
+ Account(Id, Name, Type, Industry, Phone, Website, BillingCity, BillingState, Description, CreatedDate, LastModifiedDate),
29
+ Lead(Id, FirstName, LastName, Email, Company, Status, LeadSource, CreatedDate),
30
+ Opportunity(Id, Name, StageName, Amount, CloseDate, Account.Name, Description, CreatedDate),
31
+ Case(Id, Subject, Status, Priority, Origin, Account.Name, Contact.Name, Description, CreatedDate) ${customObject ? ", " + customObject : ""} LIMIT ${params.limit && params.limit <= maxLimitValue ? params.limit : maxLimitValue}`)}`;
27
32
  try {
28
33
  const response = yield axiosClient.get(url, { headers: { Authorization: `Bearer ${authToken}` } });
29
34
  for (const record of response.data.searchRecords) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credal/actions",
3
- "version": "0.2.131",
3
+ "version": "0.2.132",
4
4
  "type": "module",
5
5
  "description": "AI Actions by Credal AI",
6
6
  "sideEffects": false,