@atzentis/booking-sdk 0.0.0 → 0.1.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 ADDED
@@ -0,0 +1,89 @@
1
+ # @atzentis/booking-sdk
2
+
3
+ [![npm](https://img.shields.io/npm/v/@atzentis/booking-sdk)](https://www.npmjs.com/package/@atzentis/booking-sdk)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](../../LICENCE.md)
5
+
6
+ Core TypeScript client for [atzentis.io](https://atzentis.io) — the Atzentis Hospitality Platform. Framework-agnostic with zero runtime dependencies.
7
+
8
+ ## Install
9
+
10
+ ```bash
11
+ npm install @atzentis/booking-sdk
12
+ ```
13
+
14
+ ## Quick Start
15
+
16
+ ```typescript
17
+ import { BookingClient } from '@atzentis/booking-sdk';
18
+
19
+ const booking = new BookingClient({
20
+ baseUrl: 'https://api.atzentis.io',
21
+ apiKey: 'your-api-key',
22
+ });
23
+
24
+ // Properties
25
+ const properties = await booking.properties.list();
26
+
27
+ // Availability
28
+ const availability = await booking.availability.check({
29
+ propertyId: 'prop_123',
30
+ checkIn: '2026-06-01',
31
+ checkOut: '2026-06-05',
32
+ });
33
+
34
+ // Bookings
35
+ const result = await booking.bookings.create({
36
+ propertyId: 'prop_123',
37
+ spaceId: 'space_456',
38
+ guestId: 'guest_789',
39
+ checkIn: '2026-06-01',
40
+ checkOut: '2026-06-05',
41
+ });
42
+ ```
43
+
44
+ ## Services
45
+
46
+ Wraps all 205 endpoints of the atzentis.io v4.0 API across 28 services:
47
+
48
+ | Category | Services |
49
+ | --- | --- |
50
+ | Inventory | Properties, Spaces |
51
+ | Booking | Availability, Bookings, Groups |
52
+ | Guest | Profiles, Intelligence, ID Scanning |
53
+ | Finance | Folios, Payments, POS Bridge |
54
+ | Operations | Housekeeping, Night Audit, Staff, Supply, Tasks |
55
+ | Rate | Plans, Periods, Restrictions |
56
+ | Distribution | Channels, Mappings, Sync, iCal |
57
+ | AI | Concierge, Revenue |
58
+ | Compliance | Fiscal (myDATA, TSE) |
59
+ | Platform | Webhooks, Settings, Notifications, SSE |
60
+
61
+ ## Booking Verticals
62
+
63
+ | Vertical | Space Types | Granularity |
64
+ | --- | --- | --- |
65
+ | **Stays** (nights) | room, sunbed, parking | night, day, month |
66
+ | **Tables** (reservations) | table, locker | hour |
67
+ | **Services** (appointments) | service, meeting_room, desk | hour |
68
+
69
+ ## Features
70
+
71
+ - ESM and CJS dual output
72
+ - Strict TypeScript with full type coverage
73
+ - Zod validation schemas for all request/response types
74
+ - Tree-shakeable exports
75
+ - Zero runtime dependencies
76
+
77
+ ## React
78
+
79
+ For React hooks and components, see [`@atzentis/booking-react`](https://www.npmjs.com/package/@atzentis/booking-react).
80
+
81
+ ## Links
82
+
83
+ - [atzentis.io](https://atzentis.io) — Hospitality Platform
84
+ - [API Documentation](https://docs.atzentis.com)
85
+ - [GitHub](https://github.com/atzentis/atzentis-booking-sdk)
86
+
87
+ ## License
88
+
89
+ MIT
package/dist/index.cjs CHANGED
@@ -23,7 +23,7 @@ __export(index_exports, {
23
23
  VERSION: () => VERSION
24
24
  });
25
25
  module.exports = __toCommonJS(index_exports);
26
- var VERSION = "0.0.0";
26
+ var VERSION = "0.1.0";
27
27
  // Annotate the CommonJS export names for ESM import in node:
28
28
  0 && (module.exports = {
29
29
  VERSION
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @atzentis/booking-sdk\n// Placeholder — implementation starts in P01\nexport const VERSION = \"0.0.0\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,IAAM,UAAU;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @atzentis/booking-sdk\n// Placeholder — implementation starts in P01\nexport const VERSION = \"0.1.0\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,IAAM,UAAU;","names":[]}
package/dist/index.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- declare const VERSION = "0.0.0";
1
+ declare const VERSION = "0.1.0";
2
2
 
3
3
  export { VERSION };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- declare const VERSION = "0.0.0";
1
+ declare const VERSION = "0.1.0";
2
2
 
3
3
  export { VERSION };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/index.ts
2
- var VERSION = "0.0.0";
2
+ var VERSION = "0.1.0";
3
3
  export {
4
4
  VERSION
5
5
  };
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @atzentis/booking-sdk\n// Placeholder — implementation starts in P01\nexport const VERSION = \"0.0.0\";\n"],"mappings":";AAEO,IAAM,UAAU;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @atzentis/booking-sdk\n// Placeholder — implementation starts in P01\nexport const VERSION = \"0.1.0\";\n"],"mappings":";AAEO,IAAM,UAAU;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atzentis/booking-sdk",
3
- "version": "0.0.0",
3
+ "version": "0.1.0",
4
4
  "description": "Atzentis Booking SDK — Core TypeScript client",
5
5
  "keywords": [
6
6
  "atzentis",
@@ -22,7 +22,8 @@
22
22
  }
23
23
  },
24
24
  "files": [
25
- "dist"
25
+ "dist",
26
+ "README.md"
26
27
  ],
27
28
  "devDependencies": {
28
29
  "@vitest/coverage-v8": "^4.0.18",