tonightpass 0.0.90 → 0.0.91

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > tonightpass@0.0.90 build /home/runner/work/tonightpass/tonightpass/packages/node
2
+ > tonightpass@0.0.91 build /home/runner/work/tonightpass/tonightpass/packages/node
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -12,10 +12,10 @@
12
12
  DTS Build start
13
13
  CJS dist/index.js 25.51 KB
14
14
  CJS dist/index.js.map 85.17 KB
15
- CJS ⚡️ Build success in 746ms
15
+ CJS ⚡️ Build success in 602ms
16
16
  ESM dist/index.mjs 22.99 KB
17
17
  ESM dist/index.mjs.map 85.02 KB
18
- ESM ⚡️ Build success in 746ms
19
- DTS ⚡️ Build success in 4076ms
20
- DTS dist/index.d.ts 35.55 KB
21
- DTS dist/index.d.mts 35.55 KB
18
+ ESM ⚡️ Build success in 602ms
19
+ DTS ⚡️ Build success in 4026ms
20
+ DTS dist/index.d.ts 35.71 KB
21
+ DTS dist/index.d.mts 35.71 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # tonightpass
2
2
 
3
+ ## 0.0.91
4
+
5
+ ### Patch Changes
6
+
7
+ - [`fdadaae`](https://github.com/tonightpass/tonightpass/commit/fdadaae14650f9b81477b33fdfd1fb06ed5ecfa9) Thanks [@AntoineKM](https://github.com/AntoineKM)! - Update user booking endpoint types
8
+
3
9
  ## 0.0.90
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -48,7 +48,7 @@ type UserBooking = Base & {
48
48
  user: User;
49
49
  event: OrganizationEvent;
50
50
  };
51
- type UserBookingEndpoints = Endpoint<"GET", "/users/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/@me/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/bookings/:bookingId", UserBooking>;
51
+ type UserBookingEndpoints = Endpoint<"GET", "/users/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/@me/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/:userId/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/bookings/:bookingId", UserBooking> | Endpoint<"GET", "/users/@me/bookings/:bookingId", UserBooking>;
52
52
 
53
53
  type UserToken = {
54
54
  type: UserTokenType;
package/dist/index.d.ts CHANGED
@@ -48,7 +48,7 @@ type UserBooking = Base & {
48
48
  user: User;
49
49
  event: OrganizationEvent;
50
50
  };
51
- type UserBookingEndpoints = Endpoint<"GET", "/users/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/@me/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/bookings/:bookingId", UserBooking>;
51
+ type UserBookingEndpoints = Endpoint<"GET", "/users/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/@me/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/:userId/bookings", ArrayResult<UserBooking>, ArrayOptions<UserBooking>> | Endpoint<"GET", "/users/bookings/:bookingId", UserBooking> | Endpoint<"GET", "/users/@me/bookings/:bookingId", UserBooking>;
52
52
 
53
53
  type UserToken = {
54
54
  type: UserTokenType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tonightpass",
3
- "version": "0.0.90",
3
+ "version": "0.0.91",
4
4
  "description": "@tonightpass sdk and tools.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,4 +37,11 @@ export type UserBookingEndpoints =
37
37
  ArrayResult<UserBooking>,
38
38
  ArrayOptions<UserBooking>
39
39
  >
40
- | Endpoint<"GET", "/users/bookings/:bookingId", UserBooking>;
40
+ | Endpoint<
41
+ "GET",
42
+ "/users/:userId/bookings",
43
+ ArrayResult<UserBooking>,
44
+ ArrayOptions<UserBooking>
45
+ >
46
+ | Endpoint<"GET", "/users/bookings/:bookingId", UserBooking>
47
+ | Endpoint<"GET", "/users/@me/bookings/:bookingId", UserBooking>;