@superdurable/connector-activecampaign 0.1.0 → 0.3.0
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/README.md +13 -1
- package/dex-connector.json +2915 -6
- package/dist/chunk-KJZQXWCV.js +2231 -0
- package/dist/connection-Du4VXO6B.d.ts +1532 -0
- package/dist/index.d.ts +2970 -29
- package/dist/index.js +4463 -143
- package/dist/mock.d.ts +964 -3
- package/dist/mock.js +2401 -8
- package/package.json +3 -3
- package/dist/chunk-N3WLALRE.js +0 -147
- package/dist/connection-2WCEk-xS.d.ts +0 -112
package/README.md
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
# ActiveCampaign TypeScript connector
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The package supports the listing and lookup queries for contacts, accounts, contact tags, mailing lists, and deal notes. It also reads account-contact associations, a contact’s list memberships and applied tags, and Deep Data commerce connections. It implements all 25 queries declared by the Go connector, including CRM deals and Deep Data customers, orders and line items. Each port replays its provider requests, retry decisions, branches, and projected metadata against the Go recordings. TypeScript accepts counts within the safe integer range.
|
|
4
|
+
|
|
5
|
+
The [resource update Flow](examples/contact-inspection/resource-update.ts) runs the contact email upsert and eight field-update Mutations. Each operation returns a receipt containing the confirmed ActiveCampaign ID. Omitted optional fields keep their current values.
|
|
6
|
+
|
|
7
|
+
Six deletion Mutations accept a numeric ActiveCampaign ID. They cover accounts, account-contact associations, commerce connections, deals, ecommerce customers, and tags. The runnable [resource deletion Flow](examples/contact-inspection/resource-deletion.ts) deletes one selected resource and returns its provider ID.
|
|
4
8
|
|
|
5
9
|
Sign in to [ActiveCampaign](https://www.activecampaign.com/login), open Settings > Developer, and copy the account API URL into `baseUrl` and the API Key into the Dex Web connection secret. The package sends the key only in the `Api-Token` header. The [connector README](../README.md) describes operation inputs and defaults; [contact inspection](examples/contact-inspection/README.md) is the runnable example.
|
|
6
10
|
|
|
7
11
|
Live ActiveCampaign authorization and responses have not been verified locally. Package release is independent of the Go and Python releases.
|
|
12
|
+
|
|
13
|
+
Monetary values are signed integer minor units. Order totals, product prices, counts and quantities must fit JavaScript’s safe integer range. Deal amounts support the full signed 64-bit range. Use the exported `exactIntegerJSONCodec` at Flow boundaries to preserve larger integer tokens. The connector selects `invalidResponse` when it cannot represent the provider value exactly.
|
|
14
|
+
|
|
15
|
+
The [contact membership Flow](examples/contact-inspection/contact-membership.ts) accepts `action`, `contactId`, and `targetId`. Use `applyTagToContact` or `removeTagFromContact` with a tag ID, and `subscribeContactToList` or `unsubscribeContactFromList` with a list ID. The Flow returns the mutation receipt. An existing matching subscription completes after the membership read. An absent membership also satisfies unsubscribe.
|
|
16
|
+
|
|
17
|
+
The [resource creation Flow](examples/contact-inspection/resource-creation.ts) takes one typed input for an account, account-contact association, connection, deal, deal note, ecommerce customer, or tag. It returns the confirmed provider ID in the receipt. After a lost response, the connector reads back any recorded ID and bounds possible duplicate sends with the Step’s send cap.
|
|
18
|
+
|
|
19
|
+
The [store order Flow](examples/contact-inspection/store-order.ts) upserts by connection ID and store order ID. Send amounts as decimal strings in major currency units. Omit line items to use the provider default or supply an empty collection to replace the lines with an empty list. The Flow returns the receipt after ActiveCampaign confirms the connection, store order ID, and email.
|