tonightpass 0.0.11 → 0.0.13
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 +6 -6
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/package.json +1 -1
- package/src/rest/types/profiles/index.ts +3 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> tonightpass@0.0.
|
|
2
|
+
> tonightpass@0.0.13 build /home/runner/work/tonightpass/tonightpass/packages/node
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[32mCJS[39m [1mdist/index.js [22m[32m9.30 KB[39m
|
|
13
13
|
[32mCJS[39m [1mdist/index.js.map [22m[32m29.79 KB[39m
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 283ms
|
|
15
15
|
[32mESM[39m [1mdist/index.mjs [22m[32m8.08 KB[39m
|
|
16
16
|
[32mESM[39m [1mdist/index.mjs.map [22m[32m29.79 KB[39m
|
|
17
|
-
[32mESM[39m ⚡️ Build success in
|
|
17
|
+
[32mESM[39m ⚡️ Build success in 284ms
|
|
18
18
|
[34mDTS[39m Build start
|
|
19
|
-
[32mDTS[39m ⚡️ Build success in
|
|
20
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m22.
|
|
21
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m22.
|
|
19
|
+
[32mDTS[39m ⚡️ Build success in 2452ms
|
|
20
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m22.10 KB[39m
|
|
21
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m22.10 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# tonightpass
|
|
2
2
|
|
|
3
|
+
## 0.0.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`858e5f2`](https://github.com/tonightpass/tonightpass/commit/858e5f20f89db91a6d510453d8d6c089aa2792ce) Thanks [@AntoineKM](https://github.com/AntoineKM)! - Update profile type description to be optional
|
|
8
|
+
|
|
9
|
+
## 0.0.12
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`2c5b552`](https://github.com/tonightpass/tonightpass/commit/2c5b55231112404a705a1b822c67fdcd72cd467c) Thanks [@AntoineKM](https://github.com/AntoineKM)! - Update profiles types with Organization identity
|
|
14
|
+
|
|
3
15
|
## 0.0.11
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -383,7 +383,7 @@ type PromoCode = {
|
|
|
383
383
|
interface Profile {
|
|
384
384
|
type: "user" | "organization";
|
|
385
385
|
displayName: string;
|
|
386
|
-
description
|
|
386
|
+
description?: string;
|
|
387
387
|
avatarUrl?: string;
|
|
388
388
|
bannerUrl?: string;
|
|
389
389
|
metadata: ProfileMetadata;
|
|
@@ -395,7 +395,7 @@ interface ProfileMetadata {
|
|
|
395
395
|
hasBlocked: boolean;
|
|
396
396
|
canDM: boolean;
|
|
397
397
|
}
|
|
398
|
-
type ProfileEndpoints = Endpoint<"GET", "/profiles/:username", UserIdentity>;
|
|
398
|
+
type ProfileEndpoints = Endpoint<"GET", "/profiles/:username", UserIdentity | OrganizationIdentity>;
|
|
399
399
|
|
|
400
400
|
type Location = {
|
|
401
401
|
name?: string;
|
|
@@ -662,7 +662,7 @@ declare const organizations: (client: Client) => {
|
|
|
662
662
|
};
|
|
663
663
|
|
|
664
664
|
declare const profiles: (client: Client) => {
|
|
665
|
-
get: (username: string) => Promise<UserIdentity>;
|
|
665
|
+
get: (username: string) => Promise<UserIdentity | OrganizationIdentity>;
|
|
666
666
|
};
|
|
667
667
|
|
|
668
668
|
declare const users: (client: Client) => {
|
|
@@ -712,7 +712,7 @@ declare class TonightPass {
|
|
|
712
712
|
delete: (id: string) => Promise<boolean>;
|
|
713
713
|
};
|
|
714
714
|
readonly profiles: {
|
|
715
|
-
get: (username: string) => Promise<UserIdentity>;
|
|
715
|
+
get: (username: string) => Promise<UserIdentity | OrganizationIdentity>;
|
|
716
716
|
};
|
|
717
717
|
readonly users: {
|
|
718
718
|
getAll: () => Promise<User[]>;
|
package/dist/index.d.ts
CHANGED
|
@@ -383,7 +383,7 @@ type PromoCode = {
|
|
|
383
383
|
interface Profile {
|
|
384
384
|
type: "user" | "organization";
|
|
385
385
|
displayName: string;
|
|
386
|
-
description
|
|
386
|
+
description?: string;
|
|
387
387
|
avatarUrl?: string;
|
|
388
388
|
bannerUrl?: string;
|
|
389
389
|
metadata: ProfileMetadata;
|
|
@@ -395,7 +395,7 @@ interface ProfileMetadata {
|
|
|
395
395
|
hasBlocked: boolean;
|
|
396
396
|
canDM: boolean;
|
|
397
397
|
}
|
|
398
|
-
type ProfileEndpoints = Endpoint<"GET", "/profiles/:username", UserIdentity>;
|
|
398
|
+
type ProfileEndpoints = Endpoint<"GET", "/profiles/:username", UserIdentity | OrganizationIdentity>;
|
|
399
399
|
|
|
400
400
|
type Location = {
|
|
401
401
|
name?: string;
|
|
@@ -662,7 +662,7 @@ declare const organizations: (client: Client) => {
|
|
|
662
662
|
};
|
|
663
663
|
|
|
664
664
|
declare const profiles: (client: Client) => {
|
|
665
|
-
get: (username: string) => Promise<UserIdentity>;
|
|
665
|
+
get: (username: string) => Promise<UserIdentity | OrganizationIdentity>;
|
|
666
666
|
};
|
|
667
667
|
|
|
668
668
|
declare const users: (client: Client) => {
|
|
@@ -712,7 +712,7 @@ declare class TonightPass {
|
|
|
712
712
|
delete: (id: string) => Promise<boolean>;
|
|
713
713
|
};
|
|
714
714
|
readonly profiles: {
|
|
715
|
-
get: (username: string) => Promise<UserIdentity>;
|
|
715
|
+
get: (username: string) => Promise<UserIdentity | OrganizationIdentity>;
|
|
716
716
|
};
|
|
717
717
|
readonly users: {
|
|
718
718
|
getAll: () => Promise<User[]>;
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Endpoint } from "../../endpoints";
|
|
2
|
+
import { OrganizationIdentity } from "../organizations";
|
|
2
3
|
import { UserIdentity } from "../users";
|
|
3
4
|
|
|
4
5
|
export interface Profile {
|
|
5
6
|
type: "user" | "organization";
|
|
6
7
|
|
|
7
8
|
displayName: string;
|
|
8
|
-
description
|
|
9
|
+
description?: string;
|
|
9
10
|
|
|
10
11
|
avatarUrl?: string;
|
|
11
12
|
bannerUrl?: string;
|
|
@@ -26,5 +27,5 @@ export interface ProfileMetadata {
|
|
|
26
27
|
export type ProfileEndpoints = Endpoint<
|
|
27
28
|
"GET",
|
|
28
29
|
"/profiles/:username",
|
|
29
|
-
UserIdentity
|
|
30
|
+
UserIdentity | OrganizationIdentity
|
|
30
31
|
>;
|