@tonightpass/react 0.0.49 → 0.0.51
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/.turbo/turbo-build.log +18 -18
- package/CHANGELOG.md +14 -0
- package/dist/index.d.mts +18 -12
- package/dist/index.d.ts +18 -12
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
> @tonightpass/react@0.0.
|
|
2
|
+
> @tonightpass/react@0.0.51 build /home/runner/work/tonightpass/tonightpass/packages/react
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
5
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
6
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
+
[34mCLI[39m tsup v8.2.4
|
|
8
|
+
[34mCLI[39m Using tsup config: /home/runner/work/tonightpass/tonightpass/packages/react/tsup.config.ts
|
|
9
|
+
[34mCLI[39m Target: esnext
|
|
10
|
+
[34mCJS[39m Build start
|
|
11
|
+
[34mESM[39m Build start
|
|
12
|
+
[32mCJS[39m [1mdist/index.js [22m[32m440.00 B[39m
|
|
13
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m1014.00 B[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 85ms
|
|
15
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m261.00 B[39m
|
|
16
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m1006.00 B[39m
|
|
17
|
+
[32mESM[39m ⚡️ Build success in 85ms
|
|
18
|
+
[34mDTS[39m Build start
|
|
19
|
+
[32mDTS[39m ⚡️ Build success in 2855ms
|
|
20
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m6.78 KB[39m
|
|
21
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m6.78 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @tonightpass/react
|
|
2
2
|
|
|
3
|
+
## 0.0.51
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`f873bef`](https://github.com/tonightpass/tonightpass/commit/f873befebed537f3982d63d0436bc4eaaa186aa1)]:
|
|
8
|
+
- tonightpass@0.0.50
|
|
9
|
+
|
|
10
|
+
## 0.0.50
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 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)]:
|
|
15
|
+
- tonightpass@0.0.49
|
|
16
|
+
|
|
3
17
|
## 0.0.49
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -47,8 +47,8 @@ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?:
|
|
|
47
47
|
}>, {
|
|
48
48
|
path: Path;
|
|
49
49
|
method: "GET";
|
|
50
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/careers/jobs/:
|
|
51
|
-
|
|
50
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/careers/jobs/:jobId", tonightpass.CareersJob, {
|
|
51
|
+
jobId: number;
|
|
52
52
|
}>, {
|
|
53
53
|
path: Path;
|
|
54
54
|
method: "GET";
|
|
@@ -72,16 +72,16 @@ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?:
|
|
|
72
72
|
}> | Extract<tonightpass.Endpoint<"GET", "/organizations", tonightpass.Organization[], undefined>, {
|
|
73
73
|
path: Path;
|
|
74
74
|
method: "GET";
|
|
75
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:
|
|
75
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug", tonightpass.Organization, undefined>, {
|
|
76
76
|
path: Path;
|
|
77
77
|
method: "GET";
|
|
78
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:
|
|
78
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/billing/account", stripe.Stripe.Account, undefined>, {
|
|
79
79
|
path: Path;
|
|
80
80
|
method: "GET";
|
|
81
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:
|
|
81
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/billing/link", void, undefined>, {
|
|
82
82
|
path: Path;
|
|
83
83
|
method: "GET";
|
|
84
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:
|
|
84
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/billing/dashboard", void, undefined>, {
|
|
85
85
|
path: Path;
|
|
86
86
|
method: "GET";
|
|
87
87
|
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/events", tonightpass.ArrayResult<tonightpass.OrganizationEvent>, tonightpass.ArrayOptions<tonightpass.OrganizationEvent>>, {
|
|
@@ -99,28 +99,34 @@ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?:
|
|
|
99
99
|
}>, {
|
|
100
100
|
path: Path;
|
|
101
101
|
method: "GET";
|
|
102
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:
|
|
102
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events", tonightpass.ArrayResult<tonightpass.OrganizationEvent>, tonightpass.ArrayOptions<tonightpass.OrganizationEvent>>, {
|
|
103
103
|
path: Path;
|
|
104
104
|
method: "GET";
|
|
105
105
|
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug", tonightpass.OrganizationEvent, undefined>, {
|
|
106
106
|
path: Path;
|
|
107
107
|
method: "GET";
|
|
108
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/carts", tonightpass.ArrayResult<tonightpass.OrganizationEventCart>, tonightpass.ArrayOptions<tonightpass.OrganizationEventCart>>, {
|
|
109
|
+
path: Path;
|
|
110
|
+
method: "GET";
|
|
111
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/carts/:cartId", tonightpass.OrganizationEventCart, undefined>, {
|
|
112
|
+
path: Path;
|
|
113
|
+
method: "GET";
|
|
108
114
|
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/styles", tonightpass.OrganizationEventStyle[], undefined>, {
|
|
109
115
|
path: Path;
|
|
110
116
|
method: "GET";
|
|
111
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/styles/:
|
|
117
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/styles/:styleSlug", tonightpass.OrganizationEventStyle, undefined>, {
|
|
112
118
|
path: Path;
|
|
113
119
|
method: "GET";
|
|
114
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:
|
|
120
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/tickets", tonightpass.OrganizationEventTicket[], undefined>, {
|
|
115
121
|
path: Path;
|
|
116
122
|
method: "GET";
|
|
117
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:
|
|
123
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId", tonightpass.OrganizationEventTicket, undefined>, {
|
|
118
124
|
path: Path;
|
|
119
125
|
method: "GET";
|
|
120
126
|
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/members", tonightpass.ArrayResult<tonightpass.OrganizationMember>, tonightpass.ArrayOptions<tonightpass.OrganizationMember>>, {
|
|
121
127
|
path: Path;
|
|
122
128
|
method: "GET";
|
|
123
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:
|
|
129
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/members", tonightpass.ArrayResult<tonightpass.OrganizationMember>, tonightpass.ArrayOptions<tonightpass.OrganizationMember>>, {
|
|
124
130
|
path: Path;
|
|
125
131
|
method: "GET";
|
|
126
132
|
}> | Extract<tonightpass.ProfileEndpoints, {
|
|
@@ -129,7 +135,7 @@ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?:
|
|
|
129
135
|
}> | Extract<tonightpass.Endpoint<"GET", "/users", tonightpass.User[], undefined>, {
|
|
130
136
|
path: Path;
|
|
131
137
|
method: "GET";
|
|
132
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/users/:
|
|
138
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/users/:userId", tonightpass.User, {
|
|
133
139
|
id: string;
|
|
134
140
|
}>, {
|
|
135
141
|
path: Path;
|
package/dist/index.d.ts
CHANGED
|
@@ -47,8 +47,8 @@ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?:
|
|
|
47
47
|
}>, {
|
|
48
48
|
path: Path;
|
|
49
49
|
method: "GET";
|
|
50
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/careers/jobs/:
|
|
51
|
-
|
|
50
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/careers/jobs/:jobId", tonightpass.CareersJob, {
|
|
51
|
+
jobId: number;
|
|
52
52
|
}>, {
|
|
53
53
|
path: Path;
|
|
54
54
|
method: "GET";
|
|
@@ -72,16 +72,16 @@ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?:
|
|
|
72
72
|
}> | Extract<tonightpass.Endpoint<"GET", "/organizations", tonightpass.Organization[], undefined>, {
|
|
73
73
|
path: Path;
|
|
74
74
|
method: "GET";
|
|
75
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:
|
|
75
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug", tonightpass.Organization, undefined>, {
|
|
76
76
|
path: Path;
|
|
77
77
|
method: "GET";
|
|
78
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:
|
|
78
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/billing/account", stripe.Stripe.Account, undefined>, {
|
|
79
79
|
path: Path;
|
|
80
80
|
method: "GET";
|
|
81
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:
|
|
81
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/billing/link", void, undefined>, {
|
|
82
82
|
path: Path;
|
|
83
83
|
method: "GET";
|
|
84
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:
|
|
84
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/billing/dashboard", void, undefined>, {
|
|
85
85
|
path: Path;
|
|
86
86
|
method: "GET";
|
|
87
87
|
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/events", tonightpass.ArrayResult<tonightpass.OrganizationEvent>, tonightpass.ArrayOptions<tonightpass.OrganizationEvent>>, {
|
|
@@ -99,28 +99,34 @@ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?:
|
|
|
99
99
|
}>, {
|
|
100
100
|
path: Path;
|
|
101
101
|
method: "GET";
|
|
102
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:
|
|
102
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events", tonightpass.ArrayResult<tonightpass.OrganizationEvent>, tonightpass.ArrayOptions<tonightpass.OrganizationEvent>>, {
|
|
103
103
|
path: Path;
|
|
104
104
|
method: "GET";
|
|
105
105
|
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug", tonightpass.OrganizationEvent, undefined>, {
|
|
106
106
|
path: Path;
|
|
107
107
|
method: "GET";
|
|
108
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/carts", tonightpass.ArrayResult<tonightpass.OrganizationEventCart>, tonightpass.ArrayOptions<tonightpass.OrganizationEventCart>>, {
|
|
109
|
+
path: Path;
|
|
110
|
+
method: "GET";
|
|
111
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/carts/:cartId", tonightpass.OrganizationEventCart, undefined>, {
|
|
112
|
+
path: Path;
|
|
113
|
+
method: "GET";
|
|
108
114
|
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/styles", tonightpass.OrganizationEventStyle[], undefined>, {
|
|
109
115
|
path: Path;
|
|
110
116
|
method: "GET";
|
|
111
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/styles/:
|
|
117
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/styles/:styleSlug", tonightpass.OrganizationEventStyle, undefined>, {
|
|
112
118
|
path: Path;
|
|
113
119
|
method: "GET";
|
|
114
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:
|
|
120
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/tickets", tonightpass.OrganizationEventTicket[], undefined>, {
|
|
115
121
|
path: Path;
|
|
116
122
|
method: "GET";
|
|
117
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:
|
|
123
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/tickets/:ticketId", tonightpass.OrganizationEventTicket, undefined>, {
|
|
118
124
|
path: Path;
|
|
119
125
|
method: "GET";
|
|
120
126
|
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/members", tonightpass.ArrayResult<tonightpass.OrganizationMember>, tonightpass.ArrayOptions<tonightpass.OrganizationMember>>, {
|
|
121
127
|
path: Path;
|
|
122
128
|
method: "GET";
|
|
123
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:
|
|
129
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/members", tonightpass.ArrayResult<tonightpass.OrganizationMember>, tonightpass.ArrayOptions<tonightpass.OrganizationMember>>, {
|
|
124
130
|
path: Path;
|
|
125
131
|
method: "GET";
|
|
126
132
|
}> | Extract<tonightpass.ProfileEndpoints, {
|
|
@@ -129,7 +135,7 @@ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?:
|
|
|
129
135
|
}> | Extract<tonightpass.Endpoint<"GET", "/users", tonightpass.User[], undefined>, {
|
|
130
136
|
path: Path;
|
|
131
137
|
method: "GET";
|
|
132
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/users/:
|
|
138
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/users/:userId", tonightpass.User, {
|
|
133
139
|
id: string;
|
|
134
140
|
}>, {
|
|
135
141
|
path: Path;
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/hooks/useAPI.ts"],"names":["
|
|
1
|
+
{"version":3,"sources":["../src/hooks/useAPI.ts"],"names":["client","Client","DEFAULT_API_URL","useAPI","path","query","options","useSWR","key"],"mappings":";;;;;;;;;AAUaA,IAAAA,CAAAA,CAAS,IAAIC,kBAAAA,CAAO,CAAE,OAASC,CAAAA,2BAAgB,CAAC,CAAA,CAEhDC,CAAS,CAAA,CACpBC,CACAC,CAAAA,CAAAA,CACAC,CAIOC,GAAAA,kBAAAA,CACLH,CAH6BI,CAAAA,CAAAA,EAAcR,CAAO,CAAA,GAAA,CAAIQ,CAAKH,CAAAA,CAAAA,CAAOC,CAAO,CAK3E","file":"index.js","sourcesContent":["import useSWR, { Fetcher } from \"swr\";\nimport {\n Endpoints,\n APIRequestOptions,\n Client,\n PathsFor,\n Query,\n DEFAULT_API_URL,\n} from \"tonightpass\";\n\nexport const client = new Client({ baseURL: DEFAULT_API_URL });\n\nexport const useAPI = <Path extends PathsFor<\"GET\">>(\n path?: Path | null,\n query?: Query<Path>,\n options?: APIRequestOptions,\n) => {\n const fetcher: Fetcher<any> = (key: Path) => client.get(key, query, options);\n\n return useSWR<Extract<Endpoints, { path: Path; method: \"GET\" }>[\"res\"]>(\n path,\n fetcher,\n );\n};\n"]}
|
package/dist/index.mjs
CHANGED
|
@@ -4,5 +4,5 @@ import { Client, DEFAULT_API_URL } from 'tonightpass';
|
|
|
4
4
|
var a=new Client({baseURL:DEFAULT_API_URL}),E=(t,e,r)=>n(t,o=>a.get(o,e,r));
|
|
5
5
|
|
|
6
6
|
export { a as client, E as useAPI };
|
|
7
|
-
//# sourceMappingURL=
|
|
7
|
+
//# sourceMappingURL=index.mjs.map
|
|
8
8
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/hooks/useAPI.ts"],"names":["
|
|
1
|
+
{"version":3,"sources":["../src/hooks/useAPI.ts"],"names":["client","Client","DEFAULT_API_URL","useAPI","path","query","options","useSWR","key"],"mappings":";;;AAUaA,IAAAA,CAAAA,CAAS,IAAIC,MAAAA,CAAO,CAAE,OAASC,CAAAA,eAAgB,CAAC,CAAA,CAEhDC,CAAS,CAAA,CACpBC,CACAC,CAAAA,CAAAA,CACAC,CAIOC,GAAAA,CAAAA,CACLH,CAH6BI,CAAAA,CAAAA,EAAcR,CAAO,CAAA,GAAA,CAAIQ,CAAKH,CAAAA,CAAAA,CAAOC,CAAO,CAK3E","file":"index.mjs","sourcesContent":["import useSWR, { Fetcher } from \"swr\";\nimport {\n Endpoints,\n APIRequestOptions,\n Client,\n PathsFor,\n Query,\n DEFAULT_API_URL,\n} from \"tonightpass\";\n\nexport const client = new Client({ baseURL: DEFAULT_API_URL });\n\nexport const useAPI = <Path extends PathsFor<\"GET\">>(\n path?: Path | null,\n query?: Query<Path>,\n options?: APIRequestOptions,\n) => {\n const fetcher: Fetcher<any> = (key: Path) => client.get(key, query, options);\n\n return useSWR<Extract<Endpoints, { path: Path; method: \"GET\" }>[\"res\"]>(\n path,\n fetcher,\n );\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tonightpass/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.51",
|
|
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.
|
|
18
|
+
"tonightpass": "^0.0.50"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": "*"
|