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.
@@ -1,5 +1,5 @@
1
1
 
2
- > tonightpass@0.0.11 build /home/runner/work/tonightpass/tonightpass/packages/node
2
+ > tonightpass@0.0.13 build /home/runner/work/tonightpass/tonightpass/packages/node
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 9.30 KB
13
13
  CJS dist/index.js.map 29.79 KB
14
- CJS ⚡️ Build success in 274ms
14
+ CJS ⚡️ Build success in 283ms
15
15
  ESM dist/index.mjs 8.08 KB
16
16
  ESM dist/index.mjs.map 29.79 KB
17
- ESM ⚡️ Build success in 274ms
17
+ ESM ⚡️ Build success in 284ms
18
18
  DTS Build start
19
- DTS ⚡️ Build success in 2534ms
20
- DTS dist/index.d.ts 22.03 KB
21
- DTS dist/index.d.mts 22.03 KB
19
+ DTS ⚡️ Build success in 2452ms
20
+ DTS dist/index.d.ts 22.10 KB
21
+ DTS dist/index.d.mts 22.10 KB
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: string;
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: string;
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,6 +1,6 @@
1
1
  {
2
2
  "name": "tonightpass",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "@tonightpass sdk and tools.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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: string;
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
  >;