@tonightpass/react 0.0.48 → 0.0.50

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/react@0.0.48 build /home/runner/work/tonightpass/tonightpass/packages/react
2
+ > @tonightpass/react@0.0.50 build /home/runner/work/tonightpass/tonightpass/packages/react
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -9,13 +9,13 @@ CLI Using tsup config: /home/runner/work/tonightpass/tonightpass/packages/react/
9
9
  CLI Target: esnext
10
10
  CJS Build start
11
11
  ESM Build start
12
- ESM dist/index.mjs 258.00 B
13
- ESM dist/index.mjs.map 948.00 B
14
- ESM ⚡️ Build success in 85ms
15
12
  CJS dist/index.js 438.00 B
16
13
  CJS dist/index.js.map 948.00 B
17
- CJS ⚡️ Build success in 86ms
14
+ CJS ⚡️ Build success in 88ms
15
+ ESM dist/index.mjs 258.00 B
16
+ ESM dist/index.mjs.map 948.00 B
17
+ ESM ⚡️ Build success in 88ms
18
18
  DTS Build start
19
- DTS ⚡️ Build success in 3046ms
20
- DTS dist/index.d.ts 6.34 KB
21
- DTS dist/index.d.mts 6.34 KB
19
+ DTS ⚡️ Build success in 2782ms
20
+ DTS dist/index.d.ts 7.15 KB
21
+ DTS dist/index.d.mts 7.15 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @tonightpass/react
2
2
 
3
+ ## 0.0.50
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`3ba3d9e`](https://github.com/tonightpass/tonightpass/commit/3ba3d9e118a5f4d86cd046895669f854952aaacf), [`f02fa95`](https://github.com/tonightpass/tonightpass/commit/f02fa95dd04876389affd5027c575a7553f9dfce), [`f02fa95`](https://github.com/tonightpass/tonightpass/commit/f02fa95dd04876389affd5027c575a7553f9dfce)]:
8
+ - tonightpass@0.0.49
9
+
10
+ ## 0.0.49
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`3b35df8`](https://github.com/tonightpass/tonightpass/commit/3b35df8c6187e6010c29cfd848f3d49ae40eeec3)]:
15
+ - tonightpass@0.0.48
16
+
3
17
  ## 0.0.48
4
18
 
5
19
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import * as swr from 'swr';
2
- import * as _mikro_orm_core from '@mikro-orm/core';
3
2
  import * as stripe from 'stripe';
4
3
  import * as tonightpass from 'tonightpass';
5
4
  import { Client, PathsFor, Query, APIRequestOptions } from 'tonightpass';
@@ -48,8 +47,8 @@ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?:
48
47
  }>, {
49
48
  path: Path;
50
49
  method: "GET";
51
- }> | Extract<tonightpass.Endpoint<"GET", "/careers/jobs/:id", tonightpass.CareersJob, {
52
- id: number;
50
+ }> | Extract<tonightpass.Endpoint<"GET", "/careers/jobs/:jobId", tonightpass.CareersJob, {
51
+ jobId: number;
53
52
  }>, {
54
53
  path: Path;
55
54
  method: "GET";
@@ -73,16 +72,16 @@ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?:
73
72
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations", tonightpass.Organization[], undefined>, {
74
73
  path: Path;
75
74
  method: "GET";
76
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug", tonightpass.Organization, undefined>, {
75
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug", tonightpass.Organization, undefined>, {
77
76
  path: Path;
78
77
  method: "GET";
79
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/billing/account", stripe.Stripe.Account, undefined>, {
78
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/billing/account", stripe.Stripe.Account, undefined>, {
80
79
  path: Path;
81
80
  method: "GET";
82
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/billing/link", void, undefined>, {
81
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/billing/link", void, undefined>, {
83
82
  path: Path;
84
83
  method: "GET";
85
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/billing/dashboard", void, undefined>, {
84
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/billing/dashboard", void, undefined>, {
86
85
  path: Path;
87
86
  method: "GET";
88
87
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations/events", tonightpass.ArrayResult<tonightpass.OrganizationEvent>, tonightpass.ArrayOptions<tonightpass.OrganizationEvent>>, {
@@ -92,7 +91,7 @@ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?:
92
91
  path: Path;
93
92
  method: "GET";
94
93
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/nearby", tonightpass.ArrayResult<tonightpass.OrganizationEvent>, {
95
- populate?: _mikro_orm_core.Populate<tonightpass.OrganizationEvent> | undefined;
94
+ populate?: string[];
96
95
  } & tonightpass.ArrayPaginationOptions & {
97
96
  latitude: number;
98
97
  longitude: number;
@@ -100,28 +99,52 @@ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?:
100
99
  }>, {
101
100
  path: Path;
102
101
  method: "GET";
103
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/events", tonightpass.ArrayResult<tonightpass.OrganizationEvent>, tonightpass.ArrayOptions<tonightpass.OrganizationEvent>>, {
102
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events", tonightpass.ArrayResult<tonightpass.OrganizationEvent>, tonightpass.ArrayOptions<tonightpass.OrganizationEvent>>, {
104
103
  path: Path;
105
104
  method: "GET";
106
105
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug", tonightpass.OrganizationEvent, undefined>, {
107
106
  path: Path;
108
107
  method: "GET";
108
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/carts", tonightpass.ArrayResult<{
109
+ organizationEvent: tonightpass.OrganizationEvent;
110
+ tickets: {
111
+ ticket: tonightpass.OrganizationEventTicket;
112
+ quantity: number;
113
+ }[];
114
+ }>, tonightpass.ArrayOptions<{
115
+ organizationEvent: tonightpass.OrganizationEvent;
116
+ tickets: {
117
+ ticket: tonightpass.OrganizationEventTicket;
118
+ quantity: number;
119
+ }[];
120
+ }>>, {
121
+ path: Path;
122
+ method: "GET";
123
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/carts/:cartId", {
124
+ organizationEvent: tonightpass.OrganizationEvent;
125
+ tickets: {
126
+ ticket: tonightpass.OrganizationEventTicket;
127
+ quantity: number;
128
+ }[];
129
+ }, undefined>, {
130
+ path: Path;
131
+ method: "GET";
109
132
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/styles", tonightpass.OrganizationEventStyle[], undefined>, {
110
133
  path: Path;
111
134
  method: "GET";
112
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/styles/:slug", tonightpass.OrganizationEventStyle, undefined>, {
135
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/styles/:styleSlug", tonightpass.OrganizationEventStyle, undefined>, {
113
136
  path: Path;
114
137
  method: "GET";
115
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/events/:eventSlug/tickets", tonightpass.OrganizationEventTicket[], undefined>, {
138
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/tickets", tonightpass.OrganizationEventTicket[], undefined>, {
116
139
  path: Path;
117
140
  method: "GET";
118
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/events/:eventSlug/tickets/:ticketId", tonightpass.OrganizationEventTicket, undefined>, {
141
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId", tonightpass.OrganizationEventTicket, undefined>, {
119
142
  path: Path;
120
143
  method: "GET";
121
144
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations/members", tonightpass.ArrayResult<tonightpass.OrganizationMember>, tonightpass.ArrayOptions<tonightpass.OrganizationMember>>, {
122
145
  path: Path;
123
146
  method: "GET";
124
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/members", tonightpass.ArrayResult<tonightpass.OrganizationMember>, tonightpass.ArrayOptions<tonightpass.OrganizationMember>>, {
147
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/members", tonightpass.ArrayResult<tonightpass.OrganizationMember>, tonightpass.ArrayOptions<tonightpass.OrganizationMember>>, {
125
148
  path: Path;
126
149
  method: "GET";
127
150
  }> | Extract<tonightpass.ProfileEndpoints, {
@@ -130,7 +153,7 @@ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?:
130
153
  }> | Extract<tonightpass.Endpoint<"GET", "/users", tonightpass.User[], undefined>, {
131
154
  path: Path;
132
155
  method: "GET";
133
- }> | Extract<tonightpass.Endpoint<"GET", "/users/:id", tonightpass.User, {
156
+ }> | Extract<tonightpass.Endpoint<"GET", "/users/:userId", tonightpass.User, {
134
157
  id: string;
135
158
  }>, {
136
159
  path: Path;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import * as swr from 'swr';
2
- import * as _mikro_orm_core from '@mikro-orm/core';
3
2
  import * as stripe from 'stripe';
4
3
  import * as tonightpass from 'tonightpass';
5
4
  import { Client, PathsFor, Query, APIRequestOptions } from 'tonightpass';
@@ -48,8 +47,8 @@ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?:
48
47
  }>, {
49
48
  path: Path;
50
49
  method: "GET";
51
- }> | Extract<tonightpass.Endpoint<"GET", "/careers/jobs/:id", tonightpass.CareersJob, {
52
- id: number;
50
+ }> | Extract<tonightpass.Endpoint<"GET", "/careers/jobs/:jobId", tonightpass.CareersJob, {
51
+ jobId: number;
53
52
  }>, {
54
53
  path: Path;
55
54
  method: "GET";
@@ -73,16 +72,16 @@ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?:
73
72
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations", tonightpass.Organization[], undefined>, {
74
73
  path: Path;
75
74
  method: "GET";
76
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug", tonightpass.Organization, undefined>, {
75
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug", tonightpass.Organization, undefined>, {
77
76
  path: Path;
78
77
  method: "GET";
79
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/billing/account", stripe.Stripe.Account, undefined>, {
78
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/billing/account", stripe.Stripe.Account, undefined>, {
80
79
  path: Path;
81
80
  method: "GET";
82
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/billing/link", void, undefined>, {
81
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/billing/link", void, undefined>, {
83
82
  path: Path;
84
83
  method: "GET";
85
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/billing/dashboard", void, undefined>, {
84
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/billing/dashboard", void, undefined>, {
86
85
  path: Path;
87
86
  method: "GET";
88
87
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations/events", tonightpass.ArrayResult<tonightpass.OrganizationEvent>, tonightpass.ArrayOptions<tonightpass.OrganizationEvent>>, {
@@ -92,7 +91,7 @@ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?:
92
91
  path: Path;
93
92
  method: "GET";
94
93
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/nearby", tonightpass.ArrayResult<tonightpass.OrganizationEvent>, {
95
- populate?: _mikro_orm_core.Populate<tonightpass.OrganizationEvent> | undefined;
94
+ populate?: string[];
96
95
  } & tonightpass.ArrayPaginationOptions & {
97
96
  latitude: number;
98
97
  longitude: number;
@@ -100,28 +99,52 @@ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?:
100
99
  }>, {
101
100
  path: Path;
102
101
  method: "GET";
103
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/events", tonightpass.ArrayResult<tonightpass.OrganizationEvent>, tonightpass.ArrayOptions<tonightpass.OrganizationEvent>>, {
102
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events", tonightpass.ArrayResult<tonightpass.OrganizationEvent>, tonightpass.ArrayOptions<tonightpass.OrganizationEvent>>, {
104
103
  path: Path;
105
104
  method: "GET";
106
105
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug", tonightpass.OrganizationEvent, undefined>, {
107
106
  path: Path;
108
107
  method: "GET";
108
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/carts", tonightpass.ArrayResult<{
109
+ organizationEvent: tonightpass.OrganizationEvent;
110
+ tickets: {
111
+ ticket: tonightpass.OrganizationEventTicket;
112
+ quantity: number;
113
+ }[];
114
+ }>, tonightpass.ArrayOptions<{
115
+ organizationEvent: tonightpass.OrganizationEvent;
116
+ tickets: {
117
+ ticket: tonightpass.OrganizationEventTicket;
118
+ quantity: number;
119
+ }[];
120
+ }>>, {
121
+ path: Path;
122
+ method: "GET";
123
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/carts/:cartId", {
124
+ organizationEvent: tonightpass.OrganizationEvent;
125
+ tickets: {
126
+ ticket: tonightpass.OrganizationEventTicket;
127
+ quantity: number;
128
+ }[];
129
+ }, undefined>, {
130
+ path: Path;
131
+ method: "GET";
109
132
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/styles", tonightpass.OrganizationEventStyle[], undefined>, {
110
133
  path: Path;
111
134
  method: "GET";
112
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/styles/:slug", tonightpass.OrganizationEventStyle, undefined>, {
135
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/styles/:styleSlug", tonightpass.OrganizationEventStyle, undefined>, {
113
136
  path: Path;
114
137
  method: "GET";
115
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/events/:eventSlug/tickets", tonightpass.OrganizationEventTicket[], undefined>, {
138
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/tickets", tonightpass.OrganizationEventTicket[], undefined>, {
116
139
  path: Path;
117
140
  method: "GET";
118
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/events/:eventSlug/tickets/:ticketId", tonightpass.OrganizationEventTicket, undefined>, {
141
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId", tonightpass.OrganizationEventTicket, undefined>, {
119
142
  path: Path;
120
143
  method: "GET";
121
144
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations/members", tonightpass.ArrayResult<tonightpass.OrganizationMember>, tonightpass.ArrayOptions<tonightpass.OrganizationMember>>, {
122
145
  path: Path;
123
146
  method: "GET";
124
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/members", tonightpass.ArrayResult<tonightpass.OrganizationMember>, tonightpass.ArrayOptions<tonightpass.OrganizationMember>>, {
147
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/members", tonightpass.ArrayResult<tonightpass.OrganizationMember>, tonightpass.ArrayOptions<tonightpass.OrganizationMember>>, {
125
148
  path: Path;
126
149
  method: "GET";
127
150
  }> | Extract<tonightpass.ProfileEndpoints, {
@@ -130,7 +153,7 @@ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?:
130
153
  }> | Extract<tonightpass.Endpoint<"GET", "/users", tonightpass.User[], undefined>, {
131
154
  path: Path;
132
155
  method: "GET";
133
- }> | Extract<tonightpass.Endpoint<"GET", "/users/:id", tonightpass.User, {
156
+ }> | Extract<tonightpass.Endpoint<"GET", "/users/:userId", tonightpass.User, {
134
157
  id: string;
135
158
  }>, {
136
159
  path: Path;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonightpass/react",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
4
4
  "description": "@tonightpass react sdk.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,7 +15,7 @@
15
15
  "types": "dist/index.d.ts",
16
16
  "dependencies": {
17
17
  "swr": "^2.2.5",
18
- "tonightpass": "^0.0.47"
18
+ "tonightpass": "^0.0.49"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "react": "*"