Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions components/docusign/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "@pipedream/docusign",
"version": "0.1.6",
"version": "0.2.0",
"description": "Pipedream Docusign Components",
"main": "docusign.app.js",
"main": "docusign.app.mjs",
"keywords": [
"pipedream",
"docusign"
],
"homepage": "https://pipedream.com/apps/docusign",
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
"dependencies": {
"@pipedream/platform": "^1.2.0"
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@pipedream/platform": "^3.0.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,28 @@ export default {
status: {
type: "string[]",
label: "Status",
description: "The envelope status that you are checking for",
description: "Watch for envelopes that have been updated to the selected statuses",
options: [
"sent",
"any",
"completed",
"created",
"declined",
"deleted",
"delivered",
"processing",
"sent",
"signed",
"timedout",
"voided",
],
default: [
"sent",
"any",
],
},
},
methods: {
_getLastEvent() {
return this.db.get("lastEvent");
return this.db.get("lastEvent") || this.monthAgo().toISOString();
},
_setLastEvent(lastEvent) {
this.db.set("lastEvent", lastEvent);
Expand All @@ -38,18 +47,19 @@ export default {
return monthAgo;
},
generateMeta({
envelopeId: id, emailSubject: summary, status,
}, ts) {
envelopeId, emailSubject, statusChangedDateTime,
}) {
const ts = Date.parse(statusChangedDateTime);
return {
id: `${id}${status}`,
summary,
id: `${envelopeId}-${ts}`,
summary: emailSubject,
ts,
};
},
},
async run(event) {
const { timestamp: ts } = event;
const lastEvent = this._getLastEvent() || this.monthAgo().toISOString();
const lastEvent = this._getLastEvent();
const baseUri = await this.docusign.getBaseUri({
accountId: this.account,
});
Expand All @@ -70,7 +80,7 @@ export default {
else done = true;

for (const envelope of envelopes) {
const meta = this.generateMeta(envelope, ts);
const meta = this.generateMeta(envelope);
this.$emit(envelope, meta);
}
} while (!done);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ import common from "./common.mjs";

export default {
...common,
key: "docusign-envelope-sent-or-complete",
version: "0.0.5",
name: "Envelope Sent or Complete",
description:
"Emit new event when an envelope status is set to sent or complete",
key: "docusign-new-change-in-envelope-status",
version: "0.0.1",
name: "New Change in Envelope Status",
description: "Emit new event when an envelope's status is updated",
type: "source",
props: {
docusign,
Expand Down
10 changes: 5 additions & 5 deletions components/docusign_developer/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "@pipedream/docusign_developer",
"version": "0.1.3",
"version": "0.2.0",
"description": "Pipedream Docusign_developer Components",
"main": "docusign_developer.app.js",
"main": "docusign_developer.app.mjs",
"keywords": [
"pipedream",
"docusign_developer"
],
"homepage": "https://pipedream.com/apps/docusign_developer",
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
"dependencies": {
"@pipedream/platform": "^1.1.1"
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@pipedream/platform": "^3.0.3"
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import docusign from "../../docusign_developer.app.mjs";
import common from "../../../docusign/sources/new-change-in-envelope-status/common.mjs";

export default {
...common,
key: "docusign_developer-new-change-in-envelope-status",
version: "0.0.1",
name: "New Change in Envelope Status",
description: "Emit new event when an envelope's status is updated",
type: "source",
props: {
docusign,
account: {
propDefinition: [
docusign,
"account",
],
},
...common.props,
},
};
Loading
Loading