@crvouga/mockingbird-service-customerio 0.1.0 → 1.0.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/CHANGELOG.md +16 -0
- package/README.md +1 -1
- package/dist/{chunk-UZHOLS6M.js → chunk-KS44GSGC.js} +6 -6
- package/dist/{chunk-UZHOLS6M.js.map → chunk-KS44GSGC.js.map} +2 -2
- package/dist/{chunk-NOFJ7YFL.js → chunk-Q4XUB3JI.js} +2 -2
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/server.js +2 -2
- package/package.json +7 -3
- /package/dist/{chunk-NOFJ7YFL.js.map → chunk-Q4XUB3JI.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-customerio
|
|
2
2
|
|
|
3
|
+
## 1.0.0 (2026-09-24)
|
|
4
|
+
|
|
5
|
+
### ⚠️ Breaking changes
|
|
6
|
+
|
|
7
|
+
- vendor branding for every service; purge internal mocks and consumer names ([f689534](https://github.com/crvouga/mockingbird/commit/f6895343543550dafcb7d76b426cae7635e03226))
|
|
8
|
+
|
|
9
|
+
### Dependencies
|
|
10
|
+
|
|
11
|
+
- `@crvouga/mockingbird-service-sqlite`
|
|
12
|
+
|
|
13
|
+
## 0.2.0 (2026-09-23)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
- replace self-hosted Vault and Turborepo cache with GitHub ([963ecd8](https://github.com/crvouga/mockingbird/commit/963ecd862e50f2782acf16aaef0d25c518f87afc))
|
|
18
|
+
|
|
3
19
|
## 0.1.0 (2026-09-22)
|
|
4
20
|
|
|
5
21
|
Initial release.
|
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ await cio.close()
|
|
|
76
76
|
| --- | --- |
|
|
77
77
|
| `POST /v1/identify`, `/v1/track`, `/v1/batch` | CDP, `Authorization: Basic base64(<write key>:)` (else 401 `{error}`). Segment events (`batch` of `identify` / `track`); each needs `userId` or `anonymousId` (else 400 `{error}`, which the SDK does not retry). → `{success: true}`. Identify merges traits into the profile (`email`, `unsubscribed`); a repeated `messageId` is recorded as a duplicate and not applied. |
|
|
78
78
|
| `POST /v1/send/email`, `/v1/send/sms`, `/v1/send/inbox_message` | App API, `Authorization: Bearer <app key>` (else 401 `{meta: {error}}`). `{transactional_message_id (id or trigger name), identifiers: {id \| email \| cio_id}, to?, from?, subject?, message_data?, send_to_unsubscribed?, tracked?, disable_message_retention?, headers?, attachments?}` → `{delivery_id, queued_at}`. Validation errors are 400 `{meta: {error}}`. With `strictMessages`, an id that is neither a catalog id nor a trigger name is 400 `{meta: {error: "transactional_message_id not found"}}`. A profile that unsubscribed (or switched the channel off) gets a `suppressed` delivery unless `send_to_unsubscribed`. `disable_message_retention` keeps no `message_data` in the outbox. `tracked: true` rewrites every URL in `message_data` to `<trackingBase>/click/<linkId>`. `to` defaults to the profile's email (email) or `phone` trait (SMS). |
|
|
79
|
-
| `GET /v1/transactional` | `{messages: [{id, name, trigger_name, description, send_to_unsubscribed, link_tracking, …}]}`, no pagination. Seeded with `
|
|
79
|
+
| `GET /v1/transactional` | `{messages: [{id, name, trigger_name, description, send_to_unsubscribed, link_tracking, …}]}`, no pagination. Seeded with `acme_<key>` for every legacy email key the consumer app has, plus `acme_inbox_message` and `acme_playground_notification` (ids 1–21). |
|
|
80
80
|
| `GET /v1/transactional/{id}` | `{message: {...}}` by id or trigger name, or 404. |
|
|
81
81
|
| `POST /click/{linkId}` | Our backend's click report (unauthenticated) → 200, counts the click and posts a `clicked` reporting event. Unknown link: plain-text 404. |
|
|
82
82
|
| `GET /click/{linkId}` | A browser following a tracked link → 302 to the original URL. |
|
|
@@ -1585,7 +1585,7 @@ var restoreNamespace = (sqlite, namespace, snapshot) => {
|
|
|
1585
1585
|
};
|
|
1586
1586
|
|
|
1587
1587
|
// ../core/dist/version.js
|
|
1588
|
-
var PACKAGE_VERSION = true ? "
|
|
1588
|
+
var PACKAGE_VERSION = true ? "1.0.0" : UNRELEASED_VERSION;
|
|
1589
1589
|
|
|
1590
1590
|
// ../core/dist/signing.js
|
|
1591
1591
|
var encoder = new TextEncoder();
|
|
@@ -2618,12 +2618,12 @@ var TRANSACTIONAL_EMAIL_KEYS = [
|
|
|
2618
2618
|
];
|
|
2619
2619
|
var CATALOG_EPOCH = 1735689600;
|
|
2620
2620
|
var DEFAULT_TRANSACTIONAL_MESSAGES = [
|
|
2621
|
-
...TRANSACTIONAL_EMAIL_KEYS.map((key) => `
|
|
2622
|
-
"
|
|
2623
|
-
"
|
|
2621
|
+
...TRANSACTIONAL_EMAIL_KEYS.map((key) => `acme_${key}`),
|
|
2622
|
+
"acme_inbox_message",
|
|
2623
|
+
"acme_playground_notification"
|
|
2624
2624
|
].map((trigger, index) => ({
|
|
2625
2625
|
id: index + 1,
|
|
2626
|
-
name: trigger.replace(/^
|
|
2626
|
+
name: trigger.replace(/^acme_/, "Acme ").replace(/_/g, " "),
|
|
2627
2627
|
trigger_name: trigger,
|
|
2628
2628
|
description: "",
|
|
2629
2629
|
send_to_unsubscribed: true,
|
|
@@ -3281,4 +3281,4 @@ export {
|
|
|
3281
3281
|
customerIoCredential,
|
|
3282
3282
|
CustomerIoAPI
|
|
3283
3283
|
};
|
|
3284
|
-
//# sourceMappingURL=chunk-
|
|
3284
|
+
//# sourceMappingURL=chunk-KS44GSGC.js.map
|