@pipedream/salesforce_rest_api 3.0.0 → 3.0.1

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.
Files changed (62) hide show
  1. package/actions/add-contact-to-campaign/add-contact-to-campaign.mjs +2 -2
  2. package/actions/add-lead-to-campaign/add-lead-to-campaign.mjs +2 -2
  3. package/actions/convert-soap-xml-to-json/convert-soap-xml-to-json.mjs +2 -2
  4. package/actions/create-account/create-account.mjs +2 -2
  5. package/actions/create-accounts-batch/create-accounts-batch.mjs +2 -2
  6. package/actions/create-attachment/create-attachment.mjs +2 -2
  7. package/actions/create-campaign/create-campaign.mjs +2 -2
  8. package/actions/create-case/create-case.mjs +2 -2
  9. package/actions/create-casecomment/create-casecomment.mjs +2 -2
  10. package/actions/create-contact/create-contact.mjs +2 -2
  11. package/actions/create-content-note/create-content-note.mjs +2 -2
  12. package/actions/create-crm-record/create-crm-record.mjs +2 -2
  13. package/actions/create-event/create-event.mjs +2 -2
  14. package/actions/create-lead/create-lead.mjs +2 -2
  15. package/actions/create-note/create-note.mjs +2 -2
  16. package/actions/create-opportunities-batch/create-opportunities-batch.mjs +2 -2
  17. package/actions/create-opportunity/create-opportunity.mjs +2 -2
  18. package/actions/create-record/create-record.mjs +2 -2
  19. package/actions/create-task/create-task.mjs +2 -2
  20. package/actions/create-user/create-user.mjs +2 -2
  21. package/actions/delete-crm-record/delete-crm-record.mjs +2 -2
  22. package/actions/delete-note/delete-note.mjs +2 -2
  23. package/actions/delete-opportunity/delete-opportunity.mjs +2 -2
  24. package/actions/delete-record/delete-record.mjs +2 -2
  25. package/actions/describe-object/describe-object.mjs +2 -2
  26. package/actions/find-records/find-records.mjs +2 -2
  27. package/actions/get-case/get-case.mjs +2 -2
  28. package/actions/get-current-user/get-current-user.mjs +2 -2
  29. package/actions/get-knowledge-articles/get-knowledge-articles.mjs +2 -2
  30. package/actions/get-knowledge-data-category-groups/get-knowledge-data-category-groups.mjs +2 -2
  31. package/actions/get-record-by-id/get-record-by-id.mjs +2 -2
  32. package/actions/get-related-records/get-related-records.mjs +2 -2
  33. package/actions/get-user/get-user.mjs +2 -2
  34. package/actions/get-user-info/get-user-info.mjs +2 -2
  35. package/actions/insert-blob-data/insert-blob-data.mjs +2 -2
  36. package/actions/list-case-comments/list-case-comments.mjs +2 -2
  37. package/actions/list-case-feed-items/list-case-feed-items.mjs +2 -2
  38. package/actions/list-cases/list-cases.mjs +2 -2
  39. package/actions/list-email-messages/list-email-messages.mjs +2 -2
  40. package/actions/list-email-templates/list-email-templates.mjs +2 -2
  41. package/actions/list-knowledge-articles/list-knowledge-articles.mjs +2 -2
  42. package/actions/list-object-fields/list-object-fields.mjs +2 -2
  43. package/actions/list-objects/list-objects.mjs +2 -2
  44. package/actions/post-feed-to-chatter/post-feed-to-chatter.mjs +2 -2
  45. package/actions/search-string/search-string.mjs +2 -2
  46. package/actions/send-email/send-email.mjs +2 -2
  47. package/actions/soql-query/soql-query.mjs +2 -2
  48. package/actions/soql-search/soql-search.mjs +2 -2
  49. package/actions/sosl-search/sosl-search.mjs +2 -2
  50. package/actions/text-search/text-search.mjs +2 -2
  51. package/actions/update-account/update-account.mjs +2 -2
  52. package/actions/update-accounts-batch/update-accounts-batch.mjs +2 -2
  53. package/actions/update-contact/update-contact.mjs +2 -2
  54. package/actions/update-content-note/update-content-note.mjs +2 -2
  55. package/actions/update-crm-record/update-crm-record.mjs +2 -2
  56. package/actions/update-email-template/update-email-template.mjs +2 -2
  57. package/actions/update-note/update-note.mjs +2 -2
  58. package/actions/update-opportunities-batch/update-opportunities-batch.mjs +2 -2
  59. package/actions/update-opportunity/update-opportunity.mjs +2 -2
  60. package/actions/update-record/update-record.mjs +2 -2
  61. package/actions/upsert-record/upsert-record.mjs +2 -2
  62. package/package.json +1 -1
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import salesforce from "../../salesforce_rest_api.app.mjs";
3
2
  import constants from "../../common/constants.mjs";
4
3
 
@@ -10,13 +9,14 @@ export default {
10
9
  + " The contact must already exist - use **Create Contact** if it does not."
11
10
  + " "
12
11
  + "[See the documentation](https://developer.salesforce.com/docs/atlas.en-us.228.0.object_reference.meta/object_reference/sforce_api_objects_campaignmember.htm)",
13
- version: "0.1.8",
12
+ version: "0.1.9",
14
13
  annotations: {
15
14
  destructiveHint: false,
16
15
  openWorldHint: true,
17
16
  readOnlyHint: false,
18
17
  },
19
18
  type: "action",
19
+ ai: "optimized",
20
20
  props: {
21
21
  salesforce,
22
22
  campaignId: {
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import salesforce from "../../salesforce_rest_api.app.mjs";
3
2
  import constants from "../../common/constants.mjs";
4
3
 
@@ -10,13 +9,14 @@ export default {
10
9
  + " The lead must already exist - use **Create Lead** if it does not."
11
10
  + " "
12
11
  + "[See the documentation](https://developer.salesforce.com/docs/atlas.en-us.228.0.object_reference.meta/object_reference/sforce_api_objects_campaignmember.htm)",
13
- version: "0.1.8",
12
+ version: "0.1.9",
14
13
  annotations: {
15
14
  destructiveHint: false,
16
15
  openWorldHint: true,
17
16
  readOnlyHint: false,
18
17
  },
19
18
  type: "action",
19
+ ai: "optimized",
20
20
  props: {
21
21
  salesforce,
22
22
  campaignId: {
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import salesforce_rest_api from "../../salesforce_rest_api.app.mjs";
3
2
  import converter from "../../../helper_functions/actions/xml-to-json/xml-to-json.mjs";
4
3
 
@@ -10,13 +9,14 @@ export default {
10
9
  + " Every other Salesforce action already returns JSON, so this is only needed for outbound-message workflows."
11
10
  + " "
12
11
  + "[See the documentation](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_om_outboundmessaging.htm)",
13
- version: "0.0.12",
12
+ version: "0.0.13",
14
13
  annotations: {
15
14
  destructiveHint: false,
16
15
  openWorldHint: true,
17
16
  readOnlyHint: true,
18
17
  },
19
18
  type: "action",
19
+ ai: "optimized",
20
20
  props: {
21
21
  salesforce_rest_api,
22
22
  infoBox: {
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import common, { getProps } from "../common/base-create-update.mjs";
3
2
  import account from "../../common/sobjects/account.mjs";
4
3
 
@@ -13,13 +12,14 @@ export default {
13
12
  + " For example, `Name` `Acme Corp` creates a minimal account and returns its new record ID."
14
13
  + " "
15
14
  + `[See the documentation](${docsLink})`,
16
- version: "0.4.0",
15
+ version: "0.4.1",
17
16
  annotations: {
18
17
  destructiveHint: false,
19
18
  openWorldHint: true,
20
19
  readOnlyHint: false,
21
20
  },
22
21
  type: "action",
22
+ ai: "optimized",
23
23
  methods: {
24
24
  ...common.methods,
25
25
  },
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import common from "../common/batch-operation.mjs";
3
2
 
4
3
  export default {
@@ -11,13 +10,14 @@ export default {
11
10
  + " Input is a CSV file - supply a path under `/tmp` or a URL to download it from, with a header row of Salesforce field API names."
12
11
  + " "
13
12
  + "[See the documentation](https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/datafiles_understanding_bulk2_ingest.htm)",
14
- version: "0.0.7",
13
+ version: "0.0.8",
15
14
  annotations: {
16
15
  destructiveHint: false,
17
16
  openWorldHint: true,
18
17
  readOnlyHint: false,
19
18
  },
20
19
  type: "action",
20
+ ai: "optimized",
21
21
  methods: {
22
22
  ...common.methods,
23
23
  getObject() {
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import common, { getProps } from "../common/base-create-update.mjs";
3
2
  import attachment from "../../common/sobjects/attachment.mjs";
4
3
  import { getFileStream } from "@pipedream/platform";
@@ -14,13 +13,14 @@ export default {
14
13
  + " For newer orgs prefer Salesforce Files - use **Insert Blob Data** with `ContentVersion` instead."
15
14
  + " "
16
15
  + `[See the documentation](${docsLink})`,
17
- version: "0.6.0",
16
+ version: "0.6.1",
18
17
  annotations: {
19
18
  destructiveHint: false,
20
19
  openWorldHint: true,
21
20
  readOnlyHint: false,
22
21
  },
23
22
  type: "action",
23
+ ai: "optimized",
24
24
  props: getProps({
25
25
  objType: attachment,
26
26
  docsLink,
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import common, { getProps } from "../common/base-create-update.mjs";
3
2
  import campaign from "../../common/sobjects/campaign.mjs";
4
3
 
@@ -13,13 +12,14 @@ export default {
13
12
  + " For example, `Name: \"Summer 2026 Webinar\"` creates the campaign and returns its ID."
14
13
  + " "
15
14
  + `[See the documentation](${docsLink})`,
16
- version: "0.3.8",
15
+ version: "0.3.9",
17
16
  annotations: {
18
17
  destructiveHint: false,
19
18
  openWorldHint: true,
20
19
  readOnlyHint: false,
21
20
  },
22
21
  type: "action",
22
+ ai: "optimized",
23
23
  methods: {
24
24
  ...common.methods,
25
25
  },
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import common, { getProps } from "../common/base-create-update.mjs";
3
2
  import caseObj from "../../common/sobjects/case.mjs";
4
3
 
@@ -13,13 +12,14 @@ export default {
13
12
  + " After creating, use **Create Case Comment** to add notes or **List Case Feed Items** to read its activity."
14
13
  + " "
15
14
  + `[See the documentation](${docsLink})`,
16
- version: "1.0.0",
15
+ version: "1.0.1",
17
16
  annotations: {
18
17
  destructiveHint: false,
19
18
  openWorldHint: true,
20
19
  readOnlyHint: false,
21
20
  },
22
21
  type: "action",
22
+ ai: "optimized",
23
23
  methods: {
24
24
  ...common.methods,
25
25
  },
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import common, { getProps } from "../common/base-create-update.mjs";
3
2
  import caseComment from "../../common/sobjects/caseComment.mjs";
4
3
 
@@ -13,13 +12,14 @@ export default {
13
12
  + " Comments are visible in the case feed - **List Case Feed Items** shows them as `CaseCommentPost` entries."
14
13
  + " "
15
14
  + `[See the documentation](${docsLink})`,
16
- version: "0.3.8",
15
+ version: "0.3.9",
17
16
  annotations: {
18
17
  destructiveHint: false,
19
18
  openWorldHint: true,
20
19
  readOnlyHint: false,
21
20
  },
22
21
  type: "action",
22
+ ai: "optimized",
23
23
  methods: {
24
24
  ...common.methods,
25
25
  },
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import common, { getProps } from "../common/base-create-update.mjs";
3
2
  import contact from "../../common/sobjects/contact.mjs";
4
3
 
@@ -13,13 +12,14 @@ export default {
13
12
  + " Use **Describe Object** on `Contact` to discover which fields your org requires."
14
13
  + " "
15
14
  + `[See the documentation](${docsLink})`,
16
- version: "0.3.8",
15
+ version: "0.3.9",
17
16
  annotations: {
18
17
  destructiveHint: false,
19
18
  openWorldHint: true,
20
19
  readOnlyHint: false,
21
20
  },
22
21
  type: "action",
22
+ ai: "optimized",
23
23
  methods: {
24
24
  ...common.methods,
25
25
  },
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import common from "../common/base-create-update.mjs";
3
2
  import salesforce from "../../salesforce_rest_api.app.mjs";
4
3
  import { NOTE_INFO_PROP } from "../../common/props-info.mjs";
@@ -16,13 +15,14 @@ export default {
16
15
  + "Notes must be enabled in the org first - see [Set Up Notes](https://help.salesforce.com/s/articleView?id=sales.notes_admin_setup.htm&type=5)."
17
16
  + " "
18
17
  + `[See the documentation](${docsLink})`,
19
- version: "1.0.0",
18
+ version: "1.0.1",
20
19
  annotations: {
21
20
  destructiveHint: false,
22
21
  openWorldHint: true,
23
22
  readOnlyHint: false,
24
23
  },
25
24
  type: "action",
25
+ ai: "optimized",
26
26
  props: {
27
27
  salesforce,
28
28
  noteInfo: NOTE_INFO_PROP,
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import salesforce from "../../salesforce_rest_api.app.mjs";
3
2
 
4
3
  export default {
@@ -22,8 +21,9 @@ export default {
22
21
  + " `{\"CampaignId\": \"701xxx\", \"ContactId\": \"003xxx\"}` or `{\"CampaignId\": \"701xxx\", \"LeadId\": \"00Qxxx\"}`."
23
22
  + " "
24
23
  + "[See the documentation](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_create.htm)",
25
- version: "0.0.3",
24
+ version: "0.0.4",
26
25
  type: "action",
26
+ ai: "optimized",
27
27
  annotations: {
28
28
  readOnlyHint: false,
29
29
  destructiveHint: false,
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import common, { getProps } from "../common/base-create-update.mjs";
3
2
  import event from "../../common/sobjects/event.mjs";
4
3
 
@@ -23,13 +22,14 @@ export default {
23
22
  + " Use **Find Records** to get the `WhoId` (contact or lead) and `WhatId` (related record) you want to link."
24
23
  + " "
25
24
  + `[See the documentation](${docsLink})`,
26
- version: "0.4.0",
25
+ version: "0.4.1",
27
26
  annotations: {
28
27
  destructiveHint: false,
29
28
  openWorldHint: true,
30
29
  readOnlyHint: false,
31
30
  },
32
31
  type: "action",
32
+ ai: "optimized",
33
33
  methods: {
34
34
  ...common.methods,
35
35
  },
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import common, { getProps } from "../common/base-create-update.mjs";
3
2
  import lead from "../../common/sobjects/lead.mjs";
4
3
 
@@ -13,13 +12,14 @@ export default {
13
12
  + " Use **Add Lead to Campaign** afterwards to attribute the lead to a campaign."
14
13
  + " "
15
14
  + `[See the documentation](${docsLink})`,
16
- version: "0.4.0",
15
+ version: "0.4.1",
17
16
  annotations: {
18
17
  destructiveHint: false,
19
18
  openWorldHint: true,
20
19
  readOnlyHint: false,
21
20
  },
22
21
  type: "action",
22
+ ai: "optimized",
23
23
  methods: {
24
24
  ...common.methods,
25
25
  },
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import common, { getProps } from "../common/base-create-update.mjs";
3
2
  import note from "../../common/sobjects/note.mjs";
4
3
  import { NOTE_INFO_PROP } from "../../common/props-info.mjs";
@@ -19,13 +18,14 @@ export default {
19
18
  + " Use **Find Records** to get the parent record ID first."
20
19
  + " "
21
20
  + `[See the documentation](${docsLink})`,
22
- version: "0.3.9",
21
+ version: "0.3.10",
23
22
  annotations: {
24
23
  destructiveHint: false,
25
24
  openWorldHint: true,
26
25
  readOnlyHint: false,
27
26
  },
28
27
  type: "action",
28
+ ai: "optimized",
29
29
  methods: {
30
30
  ...common.methods,
31
31
  },
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import common from "../common/batch-operation.mjs";
3
2
 
4
3
  export default {
@@ -12,13 +11,14 @@ export default {
12
11
  + " Poll the job in Salesforce to confirm completion; a successful response means the job was accepted, not that every row loaded."
13
12
  + " "
14
13
  + "[See the documentation](https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/datafiles_understanding_bulk2_ingest.htm)",
15
- version: "0.0.7",
14
+ version: "0.0.8",
16
15
  annotations: {
17
16
  destructiveHint: false,
18
17
  openWorldHint: true,
19
18
  readOnlyHint: false,
20
19
  },
21
20
  type: "action",
21
+ ai: "optimized",
22
22
  methods: {
23
23
  ...common.methods,
24
24
  getObject() {
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import common, { getProps } from "../common/base-create-update.mjs";
3
2
  import opportunity from "../../common/sobjects/opportunity.mjs";
4
3
 
@@ -13,13 +12,14 @@ export default {
13
12
  + " Use **Find Records** on `Account` to get the `AccountId` to attach the deal to."
14
13
  + " "
15
14
  + `[See the documentation](${docsLink})`,
16
- version: "0.4.0",
15
+ version: "0.4.1",
17
16
  annotations: {
18
17
  destructiveHint: false,
19
18
  openWorldHint: true,
20
19
  readOnlyHint: false,
21
20
  },
22
21
  type: "action",
22
+ ai: "optimized",
23
23
  methods: {
24
24
  ...common.methods,
25
25
  },
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import salesforce from "../../salesforce_rest_api.app.mjs";
3
2
 
4
3
  export default {
@@ -8,13 +7,14 @@ export default {
8
7
  + " Use **List Objects** to discover object types and **Describe Object** to discover fields."
9
8
  + " "
10
9
  + "[See the documentation](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_create.htm)",
11
- version: "1.0.0",
10
+ version: "1.0.1",
12
11
  annotations: {
13
12
  destructiveHint: false,
14
13
  openWorldHint: true,
15
14
  readOnlyHint: false,
16
15
  },
17
16
  type: "action",
17
+ ai: "optimized",
18
18
  props: {
19
19
  salesforce,
20
20
  objectType: {
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import common, { getProps } from "../common/base-create-update.mjs";
3
2
  import task from "../../common/sobjects/task.mjs";
4
3
 
@@ -14,13 +13,14 @@ export default {
14
13
  + " Use **Find Records** to get the `WhoId` (contact or lead) and `WhatId` (related record) to link the task to."
15
14
  + " "
16
15
  + `[See the documentation](${docsLink})`,
17
- version: "1.0.0",
16
+ version: "1.0.1",
18
17
  annotations: {
19
18
  destructiveHint: false,
20
19
  openWorldHint: true,
21
20
  readOnlyHint: false,
22
21
  },
23
22
  type: "action",
23
+ ai: "optimized",
24
24
  methods: {
25
25
  ...common.methods,
26
26
  },
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import common, { getProps } from "../common/base-create-update.mjs";
3
2
  import user from "../../common/sobjects/user.mjs";
4
3
 
@@ -14,13 +13,14 @@ export default {
14
13
  + " Use **Get User** or **Find Records** on `User` to check whether the person already has an account."
15
14
  + " "
16
15
  + `[See the documentation](${docsLink})`,
17
- version: "0.1.8",
16
+ version: "0.1.9",
18
17
  annotations: {
19
18
  destructiveHint: false,
20
19
  openWorldHint: true,
21
20
  readOnlyHint: false,
22
21
  },
23
22
  type: "action",
23
+ ai: "optimized",
24
24
  methods: {
25
25
  ...common.methods,
26
26
  },
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import salesforce from "../../salesforce_rest_api.app.mjs";
3
2
 
4
3
  export default {
@@ -9,8 +8,9 @@ export default {
9
8
  + " Use **SOQL Query** to find the record ID if you only have the record name."
10
9
  + " "
11
10
  + "[See the documentation](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_delete_record.htm)",
12
- version: "0.0.3",
11
+ version: "0.0.4",
13
12
  type: "action",
13
+ ai: "optimized",
14
14
  annotations: {
15
15
  readOnlyHint: false,
16
16
  destructiveHint: true,
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import salesforce from "../../salesforce_rest_api.app.mjs";
3
2
  import { ConfigurationError } from "@pipedream/platform";
4
3
 
@@ -10,8 +9,9 @@ export default {
10
9
  + " Use **Find Records** on `Note` or `ContentNote` to get the ID first."
11
10
  + " "
12
11
  + "[See the documentation](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_sobject_retrieve_delete.htm)",
13
- version: "0.0.4",
12
+ version: "0.0.5",
14
13
  type: "action",
14
+ ai: "optimized",
15
15
  annotations: {
16
16
  destructiveHint: true,
17
17
  openWorldHint: true,
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import salesforce from "../../salesforce_rest_api.app.mjs";
3
2
 
4
3
  export default {
@@ -9,13 +8,14 @@ export default {
9
8
  + " Use **Find Records** on `Opportunity` to get the ID first, and prefer **Update Opportunity** to set a Closed Lost stage when you want to keep the history."
10
9
  + " "
11
10
  + "[See the documentation](https://developer.salesforce.com/docs/atlas.en-us.228.0.api_rest.meta/api_rest/dome_delete_record.htm)",
12
- version: "0.3.6",
11
+ version: "0.3.7",
13
12
  annotations: {
14
13
  destructiveHint: true,
15
14
  openWorldHint: true,
16
15
  readOnlyHint: false,
17
16
  },
18
17
  type: "action",
18
+ ai: "optimized",
19
19
  props: {
20
20
  salesforce,
21
21
  recordId: {
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import salesforce from "../../salesforce_rest_api.app.mjs";
3
2
 
4
3
  export default {
@@ -10,13 +9,14 @@ export default {
10
9
  + " Use **Find Records** or **SOQL Query** to confirm you have the right record ID before deleting."
11
10
  + " "
12
11
  + "[See the documentation](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_sobject_retrieve_delete.htm)",
13
- version: "0.2.6",
12
+ version: "0.2.7",
14
13
  annotations: {
15
14
  destructiveHint: true,
16
15
  openWorldHint: true,
17
16
  readOnlyHint: false,
18
17
  },
19
18
  type: "action",
19
+ ai: "optimized",
20
20
  props: {
21
21
  salesforce,
22
22
  sobjectType: {
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import salesforce from "../../salesforce_rest_api.app.mjs";
3
2
 
4
3
  export default {
@@ -13,8 +12,9 @@ export default {
13
12
  + " Use **List Objects** if you're unsure of the object's API name."
14
13
  + " "
15
14
  + "[See the documentation](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_describe.htm)",
16
- version: "0.0.3",
15
+ version: "0.0.4",
17
16
  type: "action",
17
+ ai: "optimized",
18
18
  annotations: {
19
19
  readOnlyHint: true,
20
20
  destructiveHint: false,
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import salesforce from "../../salesforce_rest_api.app.mjs";
3
2
  import constants from "../../common/constants.mjs";
4
3
  import {
@@ -15,13 +14,14 @@ export default {
15
14
  + " Leaving `Record ID(s)` empty returns recent records, not every record - Salesforce sends one batch, so set `Limit` and use **SOQL Query** when you need everything."
16
15
  + " Newest-first ordering needs `CreatedDate`, so results are unordered on the few object types that lack it."
17
16
  + " [See the documentation](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_query.htm)",
18
- version: "0.3.2",
17
+ version: "0.3.3",
19
18
  annotations: {
20
19
  destructiveHint: false,
21
20
  openWorldHint: true,
22
21
  readOnlyHint: true,
23
22
  },
24
23
  type: "action",
24
+ ai: "optimized",
25
25
  props: {
26
26
  salesforce,
27
27
  sobjectType: {
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import salesforce from "../../salesforce_rest_api.app.mjs";
3
2
 
4
3
  export default {
@@ -9,13 +8,14 @@ export default {
9
8
  + " Use **List Case Feed Items** and **List Case Comments** to read the case's activity and comment thread."
10
9
  + " "
11
10
  + "[See the documentation](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_get_field_values.htm)",
12
- version: "0.0.7",
11
+ version: "0.0.8",
13
12
  annotations: {
14
13
  destructiveHint: false,
15
14
  openWorldHint: true,
16
15
  readOnlyHint: true,
17
16
  },
18
17
  type: "action",
18
+ ai: "optimized",
19
19
  props: {
20
20
  salesforce,
21
21
  caseId: {
@@ -1,12 +1,12 @@
1
- // x-pd-ai: optimized
2
1
  import salesforce from "../../salesforce_rest_api.app.mjs";
3
2
 
4
3
  export default {
5
4
  key: "salesforce_rest_api-get-current-user",
6
5
  name: "Get Current User",
7
6
  description: "Returns the authenticated Salesforce user's ID, name, email, and organization ID. Call this first when the user says 'my leads', 'my opportunities', 'my cases', or any first-person query. Use `user_id` as the OwnerId filter in **SOQL Search** (e.g. `WHERE OwnerId = '{user_id}'`) and `organization_id` to construct Salesforce UI URLs. [See the documentation](https://help.salesforce.com/s/articleView?id=sf.remoteaccess_using_userinfo_endpoint.htm).",
8
- version: "0.0.3",
7
+ version: "0.0.4",
9
8
  type: "action",
9
+ ai: "optimized",
10
10
  annotations: {
11
11
  destructiveHint: false,
12
12
  openWorldHint: true,
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import common from "../common/knowledge.mjs";
3
2
 
4
3
  export default {
@@ -10,13 +9,14 @@ export default {
10
9
  + " Returns published article content, so responses can be large - narrow by category or search term."
11
10
  + " "
12
11
  + "[See the documentation](https://developer.salesforce.com/docs/atlas.en-us.knowledge_dev.meta/knowledge_dev/sforce_api_rest_retrieve_article_list.htm)",
13
- version: "0.0.5",
12
+ version: "0.0.6",
14
13
  annotations: {
15
14
  destructiveHint: false,
16
15
  openWorldHint: true,
17
16
  readOnlyHint: true,
18
17
  },
19
18
  type: "action",
19
+ ai: "optimized",
20
20
  props: {
21
21
  ...common.props,
22
22
  q: {
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import common from "../common/knowledge.mjs";
3
2
 
4
3
  export default {
@@ -10,13 +9,14 @@ export default {
10
9
  + " Returns only categories the authenticated user can see, so results vary per user."
11
10
  + " "
12
11
  + "[See the documentation](https://developer.salesforce.com/docs/atlas.en-us.knowledge_dev.meta/knowledge_dev/resources_knowledge_support_dcgroups.htm)",
13
- version: "0.0.5",
12
+ version: "0.0.6",
14
13
  annotations: {
15
14
  destructiveHint: false,
16
15
  openWorldHint: true,
17
16
  readOnlyHint: true,
18
17
  },
19
18
  type: "action",
19
+ ai: "optimized",
20
20
  props: {
21
21
  ...common.props,
22
22
  topCategoriesOnly: {
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import salesforce from "../../salesforce_rest_api.app.mjs";
3
2
 
4
3
  export default {
@@ -9,8 +8,9 @@ export default {
9
8
  + " Use **List Objects** to discover object types if you are unsure of the type name."
10
9
  + " "
11
10
  + "[See the documentation](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_get_field_values.htm)",
12
- version: "0.0.4",
11
+ version: "0.0.5",
13
12
  type: "action",
13
+ ai: "optimized",
14
14
  annotations: {
15
15
  destructiveHint: false,
16
16
  openWorldHint: true,
@@ -1,4 +1,3 @@
1
- // x-pd-ai: optimized
2
1
  import salesforce from "../../salesforce_rest_api.app.mjs";
3
2
 
4
3
  export default {
@@ -14,8 +13,9 @@ export default {
14
13
  + " (look for `relationshipName` on reference fields)."
15
14
  + " "
16
15
  + "[See the documentation](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_sobject_relationships.htm)",
17
- version: "0.0.3",
16
+ version: "0.0.4",
18
17
  type: "action",
18
+ ai: "optimized",
19
19
  annotations: {
20
20
  readOnlyHint: true,
21
21
  destructiveHint: false,