@crvouga/mockingbird-service-intercom 2.0.0 → 2.2.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 +24 -4
- package/README.md +2 -0
- package/SUPPORT.md +5 -3
- package/dist/{chunk-DN7TMKH7.js → chunk-IIDVOJRZ.js} +2 -2
- package/dist/chunk-KJJGLX2U.js +5032 -0
- package/dist/chunk-KJJGLX2U.js.map +7 -0
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +6 -4
- package/dist/index.js +1 -1
- package/dist/server.d.ts +2 -0
- package/dist/server.js +2 -2
- package/openapi.yaml +63 -0
- package/package.json +2 -2
- package/dist/chunk-DHV6Y6ZE.js +0 -7128
- package/dist/chunk-DHV6Y6ZE.js.map +0 -7
- /package/dist/{chunk-DN7TMKH7.js.map → chunk-IIDVOJRZ.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-intercom
|
|
2
2
|
|
|
3
|
+
## 2.2.0 (2026-10-05)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- add scripted local API mock ([4a76a11](https://github.com/crvouga/mockingbird/commit/4a76a114e2efad45934e0a93cf29576fd418e15c))
|
|
8
|
+
- add collection GET pagination ([46d6f3d](https://github.com/crvouga/mockingbird/commit/46d6f3d0ca6b9d18abb49a432986bbab50e35c1f))
|
|
9
|
+
|
|
10
|
+
### Fixes and improvements
|
|
11
|
+
|
|
12
|
+
- support embedded route parameters ([127cad9](https://github.com/crvouga/mockingbird/commit/127cad997ef106950c1b866070eea191ba54403f))
|
|
13
|
+
- preserve namespace URLs after main sync ([62a15ce](https://github.com/crvouga/mockingbird/commit/62a15ce9bd453069bde69e3a30c91efc01f8871b))
|
|
14
|
+
|
|
15
|
+
## 2.1.0 (2026-10-04)
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
- use shared forms for service actions ([af19eb9](https://github.com/crvouga/mockingbird/commit/af19eb9d4896d8418f5db850f20808a89291b949))
|
|
20
|
+
- replace UI with Ant Design ([6547b4e](https://github.com/crvouga/mockingbird/commit/6547b4ef1663fb597ab515cce06245c82010407a))
|
|
21
|
+
|
|
22
|
+
### Fixes and improvements
|
|
23
|
+
|
|
24
|
+
- fill the embedded viewport ([c1a35a4](https://github.com/crvouga/mockingbird/commit/c1a35a4789389ee9cd06c286d09bd47c4d06c71e))
|
|
25
|
+
- make dialog cleanup immediate ([0c1a3c5](https://github.com/crvouga/mockingbird/commit/0c1a3c5b12584d50c19dcae595b951b8e5417b9c))
|
|
26
|
+
|
|
3
27
|
## 2.0.0 (2026-10-04)
|
|
4
28
|
|
|
5
29
|
### ⚠️ Breaking changes
|
|
@@ -18,10 +42,6 @@
|
|
|
18
42
|
- parse ISO journal timestamps ([20b39a2](https://github.com/crvouga/mockingbird/commit/20b39a2c738e278533d610dfc91f1cb3ae9b3f1e))
|
|
19
43
|
- harden shared controls ([7822614](https://github.com/crvouga/mockingbird/commit/7822614f6cba0387aeb60ba7320b0379aa1ef690))
|
|
20
44
|
|
|
21
|
-
### Dependencies
|
|
22
|
-
|
|
23
|
-
- `@crvouga/mockingbird-service-sqlite`
|
|
24
|
-
|
|
25
45
|
## 1.9.0 (2026-10-01)
|
|
26
46
|
|
|
27
47
|
### Features
|
package/README.md
CHANGED
|
@@ -79,6 +79,8 @@ Every route needs `Authorization: Bearer <token>`. Any non-empty token is accept
|
|
|
79
79
|
|
|
80
80
|
| Route | Behaviour |
|
|
81
81
|
| --- | --- |
|
|
82
|
+
| `GET /contacts` | Contact collection; `per_page` (default 10, max 150), `starting_after` cursor and `page`. Current state from the existing contact API. |
|
|
83
|
+
| `GET /conversations` | Conversation collection; `per_page` (default 20, max 150) and `starting_after` cursor. Lists omit conversation parts; fetch a single conversation for parts. |
|
|
82
84
|
| `POST /contacts/search` | `{query, pagination?}` → `{type: "list", data, total_count, pages}`. See "Search" below. |
|
|
83
85
|
| `POST /contacts` | `{role, external_id?, email?, name?, phone?, signed_up_at?, custom_attributes?}` → the contact, whose `id` is 24 hex characters. A `user` needs an email or external_id. A second `user` with the same `external_id`, or the same email (case-insensitive), answers **409** `conflict`: "A contact matching those details already exists with id=…". The sync adapter then searches and PUTs. Leads never conflict. |
|
|
84
86
|
| `PUT /contacts/{id}` | Partial update. `custom_attributes` are merged. 404 `User Not Found`; 409 if the new identifiers collide. |
|
package/SUPPORT.md
CHANGED
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Generated from `openapi.yaml`; do not edit by hand.
|
|
4
4
|
|
|
5
|
-
- operations in spec: **
|
|
6
|
-
- supported by the mock: **
|
|
7
|
-
- parity enabled: **
|
|
5
|
+
- operations in spec: **14**
|
|
6
|
+
- supported by the mock: **14**
|
|
7
|
+
- parity enabled: **14**
|
|
8
8
|
|
|
9
9
|
| operationId | route | mock | parity | notes |
|
|
10
10
|
| --- | --- | --- | --- | --- |
|
|
11
11
|
| `SearchContacts` | `POST /contacts/search` | ✅ supported | ✅ | |
|
|
12
|
+
| `ListContacts` | `GET /contacts` | ✅ supported | ✅ | |
|
|
12
13
|
| `CreateContact` | `POST /contacts` | ✅ supported | ⚠️ unsafe (opt-in) | |
|
|
13
14
|
| `GetContact` | `GET /contacts/{contact_id}` | ✅ supported | ✅ | |
|
|
14
15
|
| `UpdateContact` | `PUT /contacts/{contact_id}` | ✅ supported | ⚠️ unsafe (opt-in) | |
|
|
16
|
+
| `ListConversations` | `GET /conversations` | ✅ supported | ✅ | |
|
|
15
17
|
| `CreateConversation` | `POST /conversations` | ✅ supported | ⚠️ unsafe (opt-in) | |
|
|
16
18
|
| `SearchConversations` | `POST /conversations/search` | ✅ supported | ✅ | |
|
|
17
19
|
| `GetConversation` | `GET /conversations/{conversation_id}` | ✅ supported | ✅ | |
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
createRuntime,
|
|
4
4
|
parseDuration,
|
|
5
5
|
resolveAdminPrefix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KJJGLX2U.js";
|
|
7
7
|
|
|
8
8
|
// ../../adapters/node/dist/cli.js
|
|
9
9
|
import { readFile as readFile2 } from "node:fs/promises";
|
|
@@ -864,4 +864,4 @@ export {
|
|
|
864
864
|
createServer2 as createServer,
|
|
865
865
|
serveTarget
|
|
866
866
|
};
|
|
867
|
-
//# sourceMappingURL=chunk-
|
|
867
|
+
//# sourceMappingURL=chunk-IIDVOJRZ.js.map
|