@pipedream/salesforce_rest_api 1.10.0 → 1.10.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.
@@ -8,7 +8,7 @@ export default {
8
8
  key: "salesforce_rest_api-update-record",
9
9
  name: "Update Record",
10
10
  description: "Update fields of a record. [See the documentation](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_update_fields.htm)",
11
- version: "0.3.4",
11
+ version: "0.3.5",
12
12
  annotations: {
13
13
  destructiveHint: true,
14
14
  openWorldHint: true,
@@ -23,7 +23,7 @@ export default {
23
23
  "objectType",
24
24
  ],
25
25
  description: "The type of object to update a record of.",
26
-
26
+ reloadProps: true,
27
27
  },
28
28
  recordId: {
29
29
  propDefinition: [
@@ -44,6 +44,7 @@ export default {
44
44
  objType: c.sobjectType,
45
45
  }),
46
46
  ],
47
+ optional: true,
47
48
  reloadProps: true,
48
49
  },
49
50
  },
@@ -57,8 +58,12 @@ export default {
57
58
  } = this;
58
59
  const fields = await this.salesforce.getFieldsForObjectType(sobjectType);
59
60
 
60
- const selectedFields = fields.filter(({ name }) => fieldsToUpdate.includes(name));
61
- const selectedFieldProps = this.convertFieldsToProps(selectedFields);
61
+ // Only generate props for manually selected fields if any were selected
62
+ let selectedFieldProps = {};
63
+ if (fieldsToUpdate && fieldsToUpdate.length > 0) {
64
+ const selectedFields = fields.filter(({ name }) => fieldsToUpdate.includes(name));
65
+ selectedFieldProps = this.convertFieldsToProps(selectedFields);
66
+ }
62
67
 
63
68
  return {
64
69
  docsInfo: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/salesforce_rest_api",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "description": "Pipedream Salesforce (REST API) Components",
5
5
  "main": "salesforce_rest_api.app.mjs",
6
6
  "keywords": [
@@ -10,7 +10,7 @@
10
10
  "homepage": "https://pipedream.com/apps/salesforce_rest_api",
11
11
  "author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
12
12
  "dependencies": {
13
- "@pipedream/platform": "^3.1.0",
13
+ "@pipedream/platform": "^3.1.1",
14
14
  "fast-xml-parser": "^4.3.2",
15
15
  "handlebars": "^4.7.7",
16
16
  "lodash": "^4.17.21",