@tonightpass/react 0.0.17 → 0.0.19

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.17 build /home/runner/work/tonightpass/tonightpass/packages/react
2
+ > @tonightpass/react@0.0.19 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 @@
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 50ms
14
+ CJS ⚡️ Build success in 80ms
15
15
  ESM dist/index.mjs 258.00 B
16
16
  ESM dist/index.mjs.map 948.00 B
17
- ESM ⚡️ Build success in 51ms
17
+ ESM ⚡️ Build success in 79ms
18
18
  DTS Build start
19
- DTS ⚡️ Build success in 1295ms
20
- DTS dist/index.d.ts 3.32 KB
21
- DTS dist/index.d.mts 3.32 KB
19
+ DTS ⚡️ Build success in 2330ms
20
+ DTS dist/index.d.ts 4.23 KB
21
+ DTS dist/index.d.mts 4.23 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @tonightpass/react
2
2
 
3
+ ## 0.0.19
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`9b2d618`](https://github.com/tonightpass/tonightpass/commit/9b2d61837809607233152c69dadc7861f5eed469)]:
8
+ - tonightpass@0.0.18
9
+
10
+ ## 0.0.18
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`4f58bb8`](https://github.com/tonightpass/tonightpass/commit/4f58bb85cc530bed87ace1fb13e4afe34fb09d9e)]:
15
+ - tonightpass@0.0.17
16
+
3
17
  ## 0.0.17
4
18
 
5
19
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -3,7 +3,19 @@ import * as tonightpass from 'tonightpass';
3
3
  import { Client, Query, APIRequestOptions } from 'tonightpass';
4
4
 
5
5
  declare const client: Client;
6
- declare const useAPI: <Path extends "/careers/categories" | "/careers/employmentTypes" | "/careers/jobs" | "/careers/jobs/:id" | "/careers/offices" | "/health/database" | "/health/http" | "/organizations" | "/organizations/:id" | "/organizations/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", "/careers/categories", tonightpass.CareersCategory[], {
6
+ declare const useAPI: <Path extends "/oauth2/google" | "/oauth2/google/callback" | "/oauth2/twitter" | "/oauth2/twitter/callback" | "/careers/categories" | "/careers/employmentTypes" | "/careers/jobs" | "/careers/jobs/:id" | "/careers/offices" | "/health" | "/health/database" | "/health/http" | "/organizations" | "/organizations/:id" | "/organizations/members" | "/organizations/:id/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
+ path: Path;
8
+ method: "GET";
9
+ }> | Extract<tonightpass.Endpoint<"GET", "/oauth2/google/callback", void, undefined>, {
10
+ path: Path;
11
+ method: "GET";
12
+ }> | Extract<tonightpass.Endpoint<"GET", "/oauth2/twitter", void, undefined>, {
13
+ path: Path;
14
+ method: "GET";
15
+ }> | Extract<tonightpass.Endpoint<"GET", "/oauth2/twitter/callback", void, undefined>, {
16
+ path: Path;
17
+ method: "GET";
18
+ }> | Extract<tonightpass.Endpoint<"GET", "/careers/categories", tonightpass.CareersCategory[], {
7
19
  language?: string | undefined;
8
20
  }>, {
9
21
  path: Path;
@@ -41,6 +53,9 @@ declare const useAPI: <Path extends "/careers/categories" | "/careers/employment
41
53
  }>, {
42
54
  path: Path;
43
55
  method: "GET";
56
+ }> | Extract<tonightpass.Endpoint<"GET", "/health", [tonightpass.Health<"app">, tonightpass.Health<"database">], undefined>, {
57
+ path: Path;
58
+ method: "GET";
44
59
  }> | Extract<tonightpass.Endpoint<"GET", "/health/database", tonightpass.Health<"database">, undefined>, {
45
60
  path: Path;
46
61
  method: "GET";
@@ -56,6 +71,9 @@ declare const useAPI: <Path extends "/careers/categories" | "/careers/employment
56
71
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations/members", tonightpass.OrganizationMember[], undefined>, {
57
72
  path: Path;
58
73
  method: "GET";
74
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:id/members", tonightpass.OrganizationMember[], undefined>, {
75
+ path: Path;
76
+ method: "GET";
59
77
  }> | Extract<tonightpass.ProfileEndpoints, {
60
78
  path: Path;
61
79
  method: "GET";
package/dist/index.d.ts CHANGED
@@ -3,7 +3,19 @@ import * as tonightpass from 'tonightpass';
3
3
  import { Client, Query, APIRequestOptions } from 'tonightpass';
4
4
 
5
5
  declare const client: Client;
6
- declare const useAPI: <Path extends "/careers/categories" | "/careers/employmentTypes" | "/careers/jobs" | "/careers/jobs/:id" | "/careers/offices" | "/health/database" | "/health/http" | "/organizations" | "/organizations/:id" | "/organizations/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", "/careers/categories", tonightpass.CareersCategory[], {
6
+ declare const useAPI: <Path extends "/oauth2/google" | "/oauth2/google/callback" | "/oauth2/twitter" | "/oauth2/twitter/callback" | "/careers/categories" | "/careers/employmentTypes" | "/careers/jobs" | "/careers/jobs/:id" | "/careers/offices" | "/health" | "/health/database" | "/health/http" | "/organizations" | "/organizations/:id" | "/organizations/members" | "/organizations/:id/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
+ path: Path;
8
+ method: "GET";
9
+ }> | Extract<tonightpass.Endpoint<"GET", "/oauth2/google/callback", void, undefined>, {
10
+ path: Path;
11
+ method: "GET";
12
+ }> | Extract<tonightpass.Endpoint<"GET", "/oauth2/twitter", void, undefined>, {
13
+ path: Path;
14
+ method: "GET";
15
+ }> | Extract<tonightpass.Endpoint<"GET", "/oauth2/twitter/callback", void, undefined>, {
16
+ path: Path;
17
+ method: "GET";
18
+ }> | Extract<tonightpass.Endpoint<"GET", "/careers/categories", tonightpass.CareersCategory[], {
7
19
  language?: string | undefined;
8
20
  }>, {
9
21
  path: Path;
@@ -41,6 +53,9 @@ declare const useAPI: <Path extends "/careers/categories" | "/careers/employment
41
53
  }>, {
42
54
  path: Path;
43
55
  method: "GET";
56
+ }> | Extract<tonightpass.Endpoint<"GET", "/health", [tonightpass.Health<"app">, tonightpass.Health<"database">], undefined>, {
57
+ path: Path;
58
+ method: "GET";
44
59
  }> | Extract<tonightpass.Endpoint<"GET", "/health/database", tonightpass.Health<"database">, undefined>, {
45
60
  path: Path;
46
61
  method: "GET";
@@ -56,6 +71,9 @@ declare const useAPI: <Path extends "/careers/categories" | "/careers/employment
56
71
  }> | Extract<tonightpass.Endpoint<"GET", "/organizations/members", tonightpass.OrganizationMember[], undefined>, {
57
72
  path: Path;
58
73
  method: "GET";
74
+ }> | Extract<tonightpass.Endpoint<"GET", "/organizations/:id/members", tonightpass.OrganizationMember[], undefined>, {
75
+ path: Path;
76
+ method: "GET";
59
77
  }> | Extract<tonightpass.ProfileEndpoints, {
60
78
  path: Path;
61
79
  method: "GET";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonightpass/react",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
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.16"
18
+ "tonightpass": "^0.0.18"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "react": "*"