@zimmerstack/connect 0.4.1 → 0.5.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.
@@ -27,8 +27,10 @@ export function findOperation(input) {
27
27
  if (!wanted)
28
28
  return undefined;
29
29
  if (/^zs\./.test(wanted)) {
30
+ // A method has one first name and may have others (zs.ratePlans.delete, zs.catalog.deleteRatePlan): either finds it.
30
31
  const call = wanted.split("(")[0];
31
- return REFERENCE.operations.find((op) => op.call.split("(")[0] === call);
32
+ const named = (text) => text.split("(")[0] === call;
33
+ return REFERENCE.operations.find((op) => named(op.call)) ?? REFERENCE.operations.find((op) => op.also.some(named));
32
34
  }
33
35
  const [first = "", second] = wanted.split(" ");
34
36
  if (second !== undefined)
@@ -41,6 +43,7 @@ export function describeOperation(op) {
41
43
  `${op.key}: ${op.summary}`,
42
44
  "",
43
45
  `With the package: ${op.call}`,
46
+ ...(op.also.length ? [`Also: ${op.also.join(", ")}`] : []),
44
47
  `Scope: ${op.scope ?? "none (every key may call it)"}`,
45
48
  op.key.startsWith("GET ")
46
49
  ? "A read: safe to repeat."
@@ -106,7 +109,7 @@ export function searchReference(query) {
106
109
  if (words.length === 0)
107
110
  return referenceIndex();
108
111
  const entries = [
109
- ...REFERENCE.operations.map((op) => ({ label: `${op.key}: ${op.summary}`, open: `operation: "${op.key}"`, text: [op.key, op.summary, op.description, op.call, op.scope ?? "", REFERENCE.types[op.body ?? ""] ?? op.body ?? "", ...op.refusals.map((r) => r.description), ...op.query.map((q) => `${q.name} ${q.description}`)].join(" ") })),
112
+ ...REFERENCE.operations.map((op) => ({ label: `${op.key}: ${op.summary}`, open: `operation: "${op.key}"`, text: [op.key, op.summary, op.description, op.call, ...op.also, op.scope ?? "", REFERENCE.types[op.body ?? ""] ?? op.body ?? "", ...op.refusals.map((r) => r.description), ...op.query.map((q) => `${q.name} ${q.description}`)].join(" ") })),
110
113
  ...Object.entries(REFERENCE.topics).map(([name, text]) => ({ label: `topic ${name}`, open: `topic: "${name}"`, text: `${name} ${text}` })),
111
114
  ...Object.entries(REFERENCE.types).map(([name, text]) => ({ label: `type ${name}`, open: `type: "${name}"`, text: `${name} ${text}` })),
112
115
  ];
package/package.json CHANGED
@@ -1,20 +1,32 @@
1
1
  {
2
2
  "name": "@zimmerstack/connect",
3
- "version": "0.4.1",
4
- "description": "Official Node.js client for the ZimmerStack Connect API: rates, availability, stay rules, prices per channel and bookings, with pacing, safe retries and idempotency built in. Ships an MCP server for coding agents.",
3
+ "version": "0.5.0",
4
+ "description": "Add a channel manager to your hotel software: send rooms and prices to Booking.com, Airbnb, Expedia and other booking sites, and receive their bookings. The official ZimmerStack Connect API client for Node.js, with safe retries and pacing built in and an MCP server for AI coding agents.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://docs.zimmerstack.com/sdk",
7
+ "bugs": {
8
+ "email": "support@zimmerstack.com"
9
+ },
7
10
  "keywords": [
8
11
  "zimmerstack",
9
12
  "channel-manager",
13
+ "channel-manager-api",
10
14
  "hotel",
15
+ "vacation-rental",
11
16
  "pms",
17
+ "property-management",
12
18
  "ota",
19
+ "booking.com",
20
+ "airbnb",
21
+ "expedia",
13
22
  "rates",
14
23
  "availability",
24
+ "webhooks",
15
25
  "sdk",
26
+ "typescript",
16
27
  "mcp",
17
- "model-context-protocol"
28
+ "model-context-protocol",
29
+ "ai-agents"
18
30
  ],
19
31
  "type": "module",
20
32
  "sideEffects": false,