Skip to content

Commit 9aace2c

Browse files
committed
Major fix
1 parent dd9dcbd commit 9aace2c

File tree

23 files changed

+1159
-82
lines changed

23 files changed

+1159
-82
lines changed

components/drift/actions/create-contact/create-contact.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { removeNullEntries } from "../../common/utils.mjs";
44
export default {
55
key: "drift-create-contact",
66
name: "Create Contact",
7-
description: "Creates a contact in Drift. [See the docs](https://devdocs.drift.com/docs/creating-a-contact).",
7+
description: "Creates a contact in Drift. [See the documentation](https://devdocs.drift.com/docs/creating-a-contact).",
88
version: "0.0.1",
99
type: "action",
1010
props: {

components/drift/actions/delete-contact/delete-contact.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import drift from "../../drift.app.mjs";
33
export default {
44
key: "drift-delete-contact",
55
name: "Delete Contact",
6-
description: "Deletes a contact in Drift by ID or email. [See the docs](https://devdocs.drift.com/docs/removing-a-contact).",
6+
description: "Deletes a contact in Drift by ID or email. [See the documentation](https://devdocs.drift.com/docs/removing-a-contact).",
77
version: "0.0.1",
88
type: "action",
99
props: {

components/drift/actions/get-contact/get-contact.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import drift from "../../drift.app.mjs";
33
export default {
44
key: "drift-get-contact",
55
name: "Get Contact",
6-
description: "Retrieves a contact in Drift by ID or email. [See the docs](https://devdocs.drift.com/docs/retrieving-contact)",
6+
description: "Retrieves a contact in Drift by ID or email. [See the documentation](https://devdocs.drift.com/docs/retrieving-contact)",
77
version: "0.0.1",
88
type: "action",
99
props: {

components/drift/actions/update-contact/update-contact.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { removeNullEntries } from "../../common/utils.mjs";
44
export default {
55
key: "drift-update-contact",
66
name: "Update Contact",
7-
description: "Updates a contact in Drift using ID or email. Only changed attributes will be updated. [See Drift API docs](https://devdocs.drift.com/docs/updating-a-contact)",
7+
description: "Updates a contact in Drift using ID or email. Only changed attributes will be updated. [See Drift API documentation](https://devdocs.drift.com/docs/updating-a-contact)",
88
version: "0.0.1",
99
type: "action",
1010
props: {

components/drift/sources/new-contact-update/new-contact-update.mjs

Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import drift from "../../drift.app.mjs";
22
import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";
33

44
export default {
5-
key: "drift-new-conversation-instant",
5+
key: "drift-new-conversation",
66
name: "New Conversation",
7-
description: "Emit new when a new conversation is started in Drift. [See the docs](https://devdocs.drift.com/docs/retrieve-a-conversation)",
7+
description: "Emit new when a new conversation is started in Drift. [See the documentations](https://devdocs.drift.com/docs/retrieve-a-conversation)",
88
version: "0.0.1",
99
type: "source",
1010
dedupe: "unique",

components/drift/sources/new-lead-instance/new-lead-instance.mjs

Lines changed: 0 additions & 38 deletions
This file was deleted.

components/drift/tests/README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Local Tests Directory
2+
3+
This folder contains **non-production test scripts** used for developing and validating Pipedream components locally.
4+
**You can safely delete the entire folder** — it does not affect runtime or deployment.
5+
6+
---
7+
8+
## Folder Structure
9+
10+
### `action-tests/`
11+
Component-level test runners that simulate a real Pipedream `$` context using `mockery-dollar.mjs`.
12+
13+
- `test-retrieve-site-performance-data.mjs` – Tests the Search Analytics action
14+
- `test-submit-url-for-indexing.mjs` – Tests the Indexing API action
15+
16+
---
17+
18+
### `methods/`
19+
Unit tests for reusable validation and utility methods found in `.app.mjs`.
20+
21+
- `test-checkIfUrlValid.mjs` – Tests URL validation helper
22+
- `test-throwIfNotYMDDashDate.mjs` – Tests strict date validation
23+
24+
#### `bogus-data/`
25+
Mocked data used to simulate edge-case user inputs and trigger validations:
26+
- `bogus-data-url.mjs` – Invalid or suspicious URLs
27+
- `bogus-data-google-date.mjs` – Date values to test against expected format
28+
29+
---
30+
31+
### Root-level Utilities
32+
33+
- `mockery-dollar.mjs` – Mocks the `$` object Pipedream injects into actions
34+
- `get-token.mjs` – Script for manually supplying a Google OAuth token during local testing
35+
36+
---
37+
38+
## ⚠️ Notes
39+
40+
- Some files may contain **hardcoded tokens** — be sure to exclude them from commits.
41+
- All files here are meant for **local testing only**.
42+
- Delete this folder any time before publishing — it's safe and has no impact on your app.
43+
44+
---
18.7 KB
Loading

0 commit comments

Comments
 (0)