@pipedream/salesforce_rest_api 1.0.3 → 1.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/salesforce_rest_api",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Pipedream Salesforce (REST API) Components",
5
5
  "main": "salesforce_rest_api.app.mjs",
6
6
  "keywords": [
@@ -4,12 +4,11 @@ import common from "../common.mjs";
4
4
 
5
5
  export default {
6
6
  ...common,
7
- dedupe: "greatest",
8
7
  type: "source",
9
8
  name: "New Record (of Selectable Type)",
10
9
  key: "salesforce_rest_api-new-record",
11
10
  description: "Emit new event (at regular intervals) when a record of arbitrary object type (selected as an input parameter by the user) is created. See [the docs](https://sforce.co/3yPSJZy) for more information.",
12
- version: "0.0.4",
11
+ version: "0.0.5",
13
12
  hooks: {
14
13
  ...common.hooks,
15
14
  async activate() {
@@ -40,7 +39,7 @@ export default {
40
39
  const summary = `New ${entityType} created: ${name}`;
41
40
  const ts = Date.parse(createdDate);
42
41
  return {
43
- id: `${id}-${ts}`,
42
+ id,
44
43
  summary,
45
44
  ts,
46
45
  };
@@ -76,7 +75,9 @@ export default {
76
75
  ] = events;
77
76
 
78
77
  if (latestEvent?.CreatedDate) {
79
- setLatestDateCovered((new Date(latestEvent.CreatedDate)).toISOString());
78
+ const latestDateCovered = new Date(latestEvent.CreatedDate);
79
+ latestDateCovered.setSeconds(0);
80
+ setLatestDateCovered(latestDateCovered.toISOString());
80
81
  }
81
82
 
82
83
  Array.from(events)
@@ -8,7 +8,7 @@ export default {
8
8
  name: "New Updated Object (of Selectable Type)",
9
9
  key: "salesforce_rest_api-object-updated",
10
10
  description: "Emit new event (at regular intervals) when an object of arbitrary type (selected as an input parameter by the user) is updated. [See the docs](https://sforce.co/3yPSJZy) for more information.",
11
- version: "0.1.9",
11
+ version: "0.1.10",
12
12
  hooks: {
13
13
  ...common.hooks,
14
14
  async activate() {
@@ -78,7 +78,9 @@ export default {
78
78
  ] = events;
79
79
 
80
80
  if (latestEvent?.LastModifiedDate) {
81
- setLatestDateCovered((new Date(latestEvent.LastModifiedDate)).toISOString());
81
+ const latestDateCovered = new Date(latestEvent.LastModifiedDate);
82
+ latestDateCovered.setSeconds(0);
83
+ setLatestDateCovered(latestDateCovered.toISOString());
82
84
  }
83
85
 
84
86
  Array.from(events)
@@ -16,7 +16,7 @@ export default {
16
16
  name: "New Updated Field on Record (of Selectable Type)",
17
17
  key: "salesforce_rest_api-updated-field-on-record",
18
18
  description: "Emit new event (at regular intervals) when a field of your choosing is updated on any record of a specified Salesforce object. Field history tracking must be enabled for the chosen field. See the docs on [field history tracking](https://sforce.co/3mtj0rF) and [history objects](https://sforce.co/3Fn4lWB) for more information.",
19
- version: "0.1.9",
19
+ version: "0.1.10",
20
20
  props: {
21
21
  ...common.props,
22
22
  objectType: {
@@ -144,7 +144,9 @@ export default {
144
144
  ] = events;
145
145
 
146
146
  if (latestEvent?.CreatedDate) {
147
- setLatestDateCovered((new Date(latestEvent.CreatedDate)).toISOString());
147
+ const latestDateCovered = new Date(latestEvent.CreatedDate);
148
+ latestDateCovered.setSeconds(0);
149
+ setLatestDateCovered(latestDateCovered.toISOString());
148
150
  }
149
151
 
150
152
  Array.from(events)