@tonightpass/react 0.0.44 → 0.0.46

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.44 build /home/runner/work/tonightpass/tonightpass/packages/react
2
+ > @tonightpass/react@0.0.46 build /home/runner/work/tonightpass/tonightpass/packages/react
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -11,11 +11,11 @@ CJS Build start
11
11
  ESM Build start
12
12
  CJS dist/index.js 438.00 B
13
13
  CJS dist/index.js.map 948.00 B
14
- CJS ⚡️ Build success in 65ms
14
+ CJS ⚡️ Build success in 79ms
15
15
  ESM dist/index.mjs 258.00 B
16
16
  ESM dist/index.mjs.map 948.00 B
17
- ESM ⚡️ Build success in 65ms
17
+ ESM ⚡️ Build success in 79ms
18
18
  DTS Build start
19
- DTS ⚡️ Build success in 2781ms
20
- DTS dist/index.d.ts 6.31 KB
21
- DTS dist/index.d.mts 6.31 KB
19
+ DTS ⚡️ Build success in 3059ms
20
+ DTS dist/index.d.ts 6.22 KB
21
+ DTS dist/index.d.mts 6.22 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @tonightpass/react
2
2
 
3
+ ## 0.0.46
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`f4b07ea`](https://github.com/tonightpass/tonightpass/commit/f4b07ea8c8c47f48eda65ec7aef06e3e7e532b4b)]:
8
+ - tonightpass@0.0.45
9
+
10
+ ## 0.0.45
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`d534d9d`](https://github.com/tonightpass/tonightpass/commit/d534d9dce38aa1dba286342323f5e3822ed80802), [`d534d9d`](https://github.com/tonightpass/tonightpass/commit/d534d9dce38aa1dba286342323f5e3822ed80802)]:
15
+ - tonightpass@0.0.44
16
+
3
17
  ## 0.0.44
4
18
 
5
19
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as swr from 'swr';
2
2
  import * as stripe from 'stripe';
3
3
  import * as tonightpass from 'tonightpass';
4
- import { Client, Query, APIRequestOptions } from 'tonightpass';
4
+ import { Client, PathsFor, Query, APIRequestOptions } from 'tonightpass';
5
5
 
6
6
  declare const client: Client;
7
- declare const useAPI: <Path extends "/oauth2/google" | "/oauth2/google/callback" | "/oauth2/facebook" | "/oauth2/facebook/callback" | "/oauth2/twitter" | "/oauth2/twitter/callback" | "/careers/categories" | "/careers/employmentTypes" | "/careers/jobs" | "/careers/jobs/:id" | "/careers/offices" | "/health" | "/health/database" | "/health/http" | "/organizations" | "/organizations/:slug" | "/organizations/:slug/billing/account" | "/organizations/:slug/billing/link" | "/organizations/:slug/billing/dashboard" | "/organizations/:slug/events" | "/organizations/:organizationSlug/events/:eventSlug" | "/organizations/events/styles" | "/organizations/events/styles/:slug" | "/organizations/:slug/events/:eventSlug/tickets" | "/organizations/:slug/events/:eventSlug/tickets/:ticketId" | "/organizations/members" | "/organizations/:slug/members" | "/profiles/:username" | "/users" | "/users/:id" | "/users/me" | "/users/check/:identifier">(path?: Path | null, query?: Query<Path>, options?: APIRequestOptions) => swr.SWRResponse<(Extract<tonightpass.Endpoint<"GET", "/oauth2/google", void, undefined>, {
7
+ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?: Query<Path>, options?: APIRequestOptions) => swr.SWRResponse<(Extract<tonightpass.Endpoint<"GET", "/oauth2/google", void, undefined>, {
8
8
  path: Path;
9
9
  method: "GET";
10
10
  }> | Extract<tonightpass.Endpoint<"GET", "/oauth2/google/callback", void, undefined>, {
@@ -23,27 +23,27 @@ declare const useAPI: <Path extends "/oauth2/google" | "/oauth2/google/callback"
23
23
  path: Path;
24
24
  method: "GET";
25
25
  }> | Extract<tonightpass.Endpoint<"GET", "/careers/categories", tonightpass.CareersCategory[], {
26
- language?: string | undefined;
26
+ language?: string;
27
27
  }>, {
28
28
  path: Path;
29
29
  method: "GET";
30
30
  }> | Extract<tonightpass.Endpoint<"GET", "/careers/employmentTypes", tonightpass.CareersEmploymentType[], {
31
- language?: string | undefined;
31
+ language?: string;
32
32
  }>, {
33
33
  path: Path;
34
34
  method: "GET";
35
35
  }> | Extract<tonightpass.Endpoint<"GET", "/careers/jobs", tonightpass.CareersJob[], {
36
- page?: number | undefined;
37
- pageSize?: number | undefined;
36
+ page?: number;
37
+ pageSize?: number;
38
38
  createdAtGte: string;
39
- createdAtLt?: string | undefined;
40
- updatedAtGte?: string | undefined;
41
- updatedAtLt?: string | undefined;
42
- status?: "ALL" | "ONLINE" | "ARCHIVED" | undefined;
43
- content?: boolean | undefined;
44
- titleLike?: string | undefined;
45
- countryCode?: string | undefined;
46
- externalId?: string | undefined;
39
+ createdAtLt?: string;
40
+ updatedAtGte?: string;
41
+ updatedAtLt?: string;
42
+ status?: "ALL" | "ONLINE" | "ARCHIVED";
43
+ content?: boolean;
44
+ titleLike?: string;
45
+ countryCode?: string;
46
+ externalId?: string;
47
47
  }>, {
48
48
  path: Path;
49
49
  method: "GET";
@@ -53,10 +53,10 @@ declare const useAPI: <Path extends "/oauth2/google" | "/oauth2/google/callback"
53
53
  path: Path;
54
54
  method: "GET";
55
55
  }> | Extract<tonightpass.Endpoint<"GET", "/careers/offices", tonightpass.CareersOffice[], {
56
- page?: number | undefined;
57
- pageSize?: number | undefined;
58
- countryCode?: string | undefined;
59
- cityNameLike?: string | undefined;
56
+ page?: number;
57
+ pageSize?: number;
58
+ countryCode?: string;
59
+ cityNameLike?: string;
60
60
  }>, {
61
61
  path: Path;
62
62
  method: "GET";
@@ -84,10 +84,23 @@ declare const useAPI: <Path extends "/oauth2/google" | "/oauth2/google/callback"
84
84
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/billing/dashboard", void, undefined>, {
85
85
  path: Path;
86
86
  method: "GET";
87
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/events", Event[], undefined>, {
87
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/events", tonightpass.ArrayResult<tonightpass.OrganizationEvent>, tonightpass.ArrayOptions<tonightpass.OrganizationEvent>>, {
88
88
  path: Path;
89
89
  method: "GET";
90
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug", Event, undefined>, {
90
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/suggestions", tonightpass.ArrayResult<tonightpass.OrganizationEvent>, tonightpass.ArrayOptions<tonightpass.OrganizationEvent>>, {
91
+ path: Path;
92
+ method: "GET";
93
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/nearby", tonightpass.ArrayResult<tonightpass.OrganizationEvent>, tonightpass.ArrayOptions<tonightpass.OrganizationEvent> & {
94
+ latitude: number;
95
+ longitude: number;
96
+ radius?: number;
97
+ }>, {
98
+ path: Path;
99
+ method: "GET";
100
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/events", tonightpass.ArrayResult<tonightpass.OrganizationEvent>, tonightpass.ArrayOptions<tonightpass.OrganizationEvent>>, {
101
+ path: Path;
102
+ method: "GET";
103
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug", tonightpass.OrganizationEvent, undefined>, {
91
104
  path: Path;
92
105
  method: "GET";
93
106
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/styles", tonightpass.OrganizationEventStyle[], undefined>, {
@@ -102,10 +115,10 @@ declare const useAPI: <Path extends "/oauth2/google" | "/oauth2/google/callback"
102
115
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/events/:eventSlug/tickets/:ticketId", tonightpass.OrganizationEventTicket, undefined>, {
103
116
  path: Path;
104
117
  method: "GET";
105
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/members", tonightpass.OrganizationMember[], undefined>, {
118
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/members", tonightpass.ArrayResult<tonightpass.OrganizationMember>, tonightpass.ArrayOptions<tonightpass.OrganizationMember>>, {
106
119
  path: Path;
107
120
  method: "GET";
108
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/members", tonightpass.OrganizationMember[], undefined>, {
121
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/members", tonightpass.ArrayResult<tonightpass.OrganizationMember>, tonightpass.ArrayOptions<tonightpass.OrganizationMember>>, {
109
122
  path: Path;
110
123
  method: "GET";
111
124
  }> | Extract<tonightpass.ProfileEndpoints, {
@@ -125,10 +138,10 @@ declare const useAPI: <Path extends "/oauth2/google" | "/oauth2/google/callback"
125
138
  }> | Extract<tonightpass.Endpoint<"GET", "/users/check/:identifier", {
126
139
  exists: boolean;
127
140
  identifier: tonightpass.UserIdentifier;
128
- suggestions?: string[] | undefined;
141
+ suggestions?: string[];
129
142
  }, {
130
143
  identifier: boolean;
131
- suggestions?: boolean | undefined;
144
+ suggestions?: boolean;
132
145
  }>, {
133
146
  path: Path;
134
147
  method: "GET";
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as swr from 'swr';
2
2
  import * as stripe from 'stripe';
3
3
  import * as tonightpass from 'tonightpass';
4
- import { Client, Query, APIRequestOptions } from 'tonightpass';
4
+ import { Client, PathsFor, Query, APIRequestOptions } from 'tonightpass';
5
5
 
6
6
  declare const client: Client;
7
- declare const useAPI: <Path extends "/oauth2/google" | "/oauth2/google/callback" | "/oauth2/facebook" | "/oauth2/facebook/callback" | "/oauth2/twitter" | "/oauth2/twitter/callback" | "/careers/categories" | "/careers/employmentTypes" | "/careers/jobs" | "/careers/jobs/:id" | "/careers/offices" | "/health" | "/health/database" | "/health/http" | "/organizations" | "/organizations/:slug" | "/organizations/:slug/billing/account" | "/organizations/:slug/billing/link" | "/organizations/:slug/billing/dashboard" | "/organizations/:slug/events" | "/organizations/:organizationSlug/events/:eventSlug" | "/organizations/events/styles" | "/organizations/events/styles/:slug" | "/organizations/:slug/events/:eventSlug/tickets" | "/organizations/:slug/events/:eventSlug/tickets/:ticketId" | "/organizations/members" | "/organizations/:slug/members" | "/profiles/:username" | "/users" | "/users/:id" | "/users/me" | "/users/check/:identifier">(path?: Path | null, query?: Query<Path>, options?: APIRequestOptions) => swr.SWRResponse<(Extract<tonightpass.Endpoint<"GET", "/oauth2/google", void, undefined>, {
7
+ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?: Query<Path>, options?: APIRequestOptions) => swr.SWRResponse<(Extract<tonightpass.Endpoint<"GET", "/oauth2/google", void, undefined>, {
8
8
  path: Path;
9
9
  method: "GET";
10
10
  }> | Extract<tonightpass.Endpoint<"GET", "/oauth2/google/callback", void, undefined>, {
@@ -23,27 +23,27 @@ declare const useAPI: <Path extends "/oauth2/google" | "/oauth2/google/callback"
23
23
  path: Path;
24
24
  method: "GET";
25
25
  }> | Extract<tonightpass.Endpoint<"GET", "/careers/categories", tonightpass.CareersCategory[], {
26
- language?: string | undefined;
26
+ language?: string;
27
27
  }>, {
28
28
  path: Path;
29
29
  method: "GET";
30
30
  }> | Extract<tonightpass.Endpoint<"GET", "/careers/employmentTypes", tonightpass.CareersEmploymentType[], {
31
- language?: string | undefined;
31
+ language?: string;
32
32
  }>, {
33
33
  path: Path;
34
34
  method: "GET";
35
35
  }> | Extract<tonightpass.Endpoint<"GET", "/careers/jobs", tonightpass.CareersJob[], {
36
- page?: number | undefined;
37
- pageSize?: number | undefined;
36
+ page?: number;
37
+ pageSize?: number;
38
38
  createdAtGte: string;
39
- createdAtLt?: string | undefined;
40
- updatedAtGte?: string | undefined;
41
- updatedAtLt?: string | undefined;
42
- status?: "ALL" | "ONLINE" | "ARCHIVED" | undefined;
43
- content?: boolean | undefined;
44
- titleLike?: string | undefined;
45
- countryCode?: string | undefined;
46
- externalId?: string | undefined;
39
+ createdAtLt?: string;
40
+ updatedAtGte?: string;
41
+ updatedAtLt?: string;
42
+ status?: "ALL" | "ONLINE" | "ARCHIVED";
43
+ content?: boolean;
44
+ titleLike?: string;
45
+ countryCode?: string;
46
+ externalId?: string;
47
47
  }>, {
48
48
  path: Path;
49
49
  method: "GET";
@@ -53,10 +53,10 @@ declare const useAPI: <Path extends "/oauth2/google" | "/oauth2/google/callback"
53
53
  path: Path;
54
54
  method: "GET";
55
55
  }> | Extract<tonightpass.Endpoint<"GET", "/careers/offices", tonightpass.CareersOffice[], {
56
- page?: number | undefined;
57
- pageSize?: number | undefined;
58
- countryCode?: string | undefined;
59
- cityNameLike?: string | undefined;
56
+ page?: number;
57
+ pageSize?: number;
58
+ countryCode?: string;
59
+ cityNameLike?: string;
60
60
  }>, {
61
61
  path: Path;
62
62
  method: "GET";
@@ -84,10 +84,23 @@ declare const useAPI: <Path extends "/oauth2/google" | "/oauth2/google/callback"
84
84
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/billing/dashboard", void, undefined>, {
85
85
  path: Path;
86
86
  method: "GET";
87
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/events", Event[], undefined>, {
87
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/events", tonightpass.ArrayResult<tonightpass.OrganizationEvent>, tonightpass.ArrayOptions<tonightpass.OrganizationEvent>>, {
88
88
  path: Path;
89
89
  method: "GET";
90
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug", Event, undefined>, {
90
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/suggestions", tonightpass.ArrayResult<tonightpass.OrganizationEvent>, tonightpass.ArrayOptions<tonightpass.OrganizationEvent>>, {
91
+ path: Path;
92
+ method: "GET";
93
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/nearby", tonightpass.ArrayResult<tonightpass.OrganizationEvent>, tonightpass.ArrayOptions<tonightpass.OrganizationEvent> & {
94
+ latitude: number;
95
+ longitude: number;
96
+ radius?: number;
97
+ }>, {
98
+ path: Path;
99
+ method: "GET";
100
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/events", tonightpass.ArrayResult<tonightpass.OrganizationEvent>, tonightpass.ArrayOptions<tonightpass.OrganizationEvent>>, {
101
+ path: Path;
102
+ method: "GET";
103
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug", tonightpass.OrganizationEvent, undefined>, {
91
104
  path: Path;
92
105
  method: "GET";
93
106
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/styles", tonightpass.OrganizationEventStyle[], undefined>, {
@@ -102,10 +115,10 @@ declare const useAPI: <Path extends "/oauth2/google" | "/oauth2/google/callback"
102
115
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/events/:eventSlug/tickets/:ticketId", tonightpass.OrganizationEventTicket, undefined>, {
103
116
  path: Path;
104
117
  method: "GET";
105
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/members", tonightpass.OrganizationMember[], undefined>, {
118
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/members", tonightpass.ArrayResult<tonightpass.OrganizationMember>, tonightpass.ArrayOptions<tonightpass.OrganizationMember>>, {
106
119
  path: Path;
107
120
  method: "GET";
108
- }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/members", tonightpass.OrganizationMember[], undefined>, {
121
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:slug/members", tonightpass.ArrayResult<tonightpass.OrganizationMember>, tonightpass.ArrayOptions<tonightpass.OrganizationMember>>, {
109
122
  path: Path;
110
123
  method: "GET";
111
124
  }> | Extract<tonightpass.ProfileEndpoints, {
@@ -125,10 +138,10 @@ declare const useAPI: <Path extends "/oauth2/google" | "/oauth2/google/callback"
125
138
  }> | Extract<tonightpass.Endpoint<"GET", "/users/check/:identifier", {
126
139
  exists: boolean;
127
140
  identifier: tonightpass.UserIdentifier;
128
- suggestions?: string[] | undefined;
141
+ suggestions?: string[];
129
142
  }, {
130
143
  identifier: boolean;
131
- suggestions?: boolean | undefined;
144
+ suggestions?: boolean;
132
145
  }>, {
133
146
  path: Path;
134
147
  method: "GET";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonightpass/react",
3
- "version": "0.0.44",
3
+ "version": "0.0.46",
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.43"
18
+ "tonightpass": "^0.0.45"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "react": "*"