@bygnet/types 1.6.0 → 1.7.0

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/dist/index.d.mts CHANGED
@@ -49,6 +49,19 @@ interface BygPost {
49
49
  commentCount: number;
50
50
  }
51
51
  //#endregion
52
+ //#region src/people/auth-user.d.ts
53
+ interface BygAuthUser {
54
+ id: number;
55
+ email: string;
56
+ username: string;
57
+ avatarUrl: string | null;
58
+ bannerUrl: string | null;
59
+ bio: string | null;
60
+ subscriptionState: BygSubscription | null;
61
+ emailVerificationCode: string | null;
62
+ twoFactorEnabled: boolean;
63
+ }
64
+ //#endregion
52
65
  //#region src/people/profile.d.ts
53
66
  interface BygProfile {
54
67
  user: BygUser;
@@ -114,4 +127,4 @@ interface BygPushAlertPayload {
114
127
  createdDate: string;
115
128
  }
116
129
  //#endregion
117
- export { BygAd, BygComment, BygImage, BygNotification, BygNotificationType, BygPage, BygPost, BygProfile, BygPushAlertPayload, BygPushPublicKeyResponse, BygPushSubscription, BygPushSubscriptionKeys, BygPushUnsubscribeRequest, BygSubscription, BygUser, BygVerification, CreateType };
130
+ export { BygAd, BygAuthUser, BygComment, BygImage, BygNotification, BygNotificationType, BygPage, BygPost, BygProfile, BygPushAlertPayload, BygPushPublicKeyResponse, BygPushSubscription, BygPushSubscriptionKeys, BygPushUnsubscribeRequest, BygSubscription, BygUser, BygVerification, CreateType };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "alert": "THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY. Instead, edit package.ts and run 'ts-pkg' to regenerate.",
3
3
  "name": "@bygnet/types",
4
- "version": "1.6.0",
4
+ "version": "1.7.0",
5
5
  "description": "Byg Platform's types for posts, images, and more, for Byg devs and the community.",
6
6
  "keywords": [
7
7
  "social-network",
@@ -24,10 +24,10 @@
24
24
  "files": [
25
25
  "dist"
26
26
  ],
27
- "types": "dist/index.d.ts",
27
+ "types": "dist/index.d.mts",
28
28
  "exports": {
29
29
  ".": {
30
- "types": "./dist/index.d.ts"
30
+ "types": "./dist/index.d.mts"
31
31
  }
32
32
  },
33
33
  "scripts": {
package/src/index.ts CHANGED
@@ -6,6 +6,7 @@ export * from './content/notification'
6
6
  export * from './content/post'
7
7
 
8
8
  // people
9
+ export * from './people/auth-user'
9
10
  export * from './people/profile'
10
11
  export * from './people/user'
11
12