@tonightpass/react 0.0.44 → 0.0.45

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.45 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 2797ms
20
+ DTS dist/index.d.ts 5.29 KB
21
+ DTS dist/index.d.mts 5.29 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @tonightpass/react
2
2
 
3
+ ## 0.0.45
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`d534d9d`](https://github.com/tonightpass/tonightpass/commit/d534d9dce38aa1dba286342323f5e3822ed80802), [`d534d9d`](https://github.com/tonightpass/tonightpass/commit/d534d9dce38aa1dba286342323f5e3822ed80802)]:
8
+ - tonightpass@0.0.44
9
+
3
10
  ## 0.0.44
4
11
 
5
12
  ### 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,10 @@ 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/:slug/events", tonightpass.OrganizationEvent[], undefined>, {
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/:organizationSlug/events/:eventSlug", tonightpass.OrganizationEvent, undefined>, {
91
91
  path: Path;
92
92
  method: "GET";
93
93
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/styles", tonightpass.OrganizationEventStyle[], undefined>, {
@@ -125,10 +125,10 @@ declare const useAPI: <Path extends "/oauth2/google" | "/oauth2/google/callback"
125
125
  }> | Extract<tonightpass.Endpoint<"GET", "/users/check/:identifier", {
126
126
  exists: boolean;
127
127
  identifier: tonightpass.UserIdentifier;
128
- suggestions?: string[] | undefined;
128
+ suggestions?: string[];
129
129
  }, {
130
130
  identifier: boolean;
131
- suggestions?: boolean | undefined;
131
+ suggestions?: boolean;
132
132
  }>, {
133
133
  path: Path;
134
134
  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,10 @@ 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/:slug/events", tonightpass.OrganizationEvent[], undefined>, {
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/:organizationSlug/events/:eventSlug", tonightpass.OrganizationEvent, undefined>, {
91
91
  path: Path;
92
92
  method: "GET";
93
93
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/styles", tonightpass.OrganizationEventStyle[], undefined>, {
@@ -125,10 +125,10 @@ declare const useAPI: <Path extends "/oauth2/google" | "/oauth2/google/callback"
125
125
  }> | Extract<tonightpass.Endpoint<"GET", "/users/check/:identifier", {
126
126
  exists: boolean;
127
127
  identifier: tonightpass.UserIdentifier;
128
- suggestions?: string[] | undefined;
128
+ suggestions?: string[];
129
129
  }, {
130
130
  identifier: boolean;
131
- suggestions?: boolean | undefined;
131
+ suggestions?: boolean;
132
132
  }>, {
133
133
  path: Path;
134
134
  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.45",
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.44"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "react": "*"