@bygnet/types 1.4.2 → 1.5.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.
@@ -1,4 +1,4 @@
1
- import { BygSubscription } from '../unions/subscription';
1
+ import { BygSubscription } from '@/index';
2
2
  export type BygNotificationType = 'follow' | 'post_comment' | 'image_comment';
3
3
  export interface BygNotification {
4
4
  id: string;
package/dist/index.d.ts CHANGED
@@ -7,5 +7,6 @@ export * from './people/profile';
7
7
  export * from './people/user';
8
8
  export * from './unions/create';
9
9
  export * from './unions/subscription';
10
+ export * from './unions/verification';
10
11
  export * from './web/page';
11
12
  export * from './web/push';
@@ -1,4 +1,4 @@
1
- import { BygUser } from './user';
1
+ import { BygUser } from '@/index';
2
2
  export interface BygProfile {
3
3
  user: BygUser;
4
4
  followerCount: number;
@@ -1,4 +1,4 @@
1
- import { BygSubscription } from '../unions/subscription';
1
+ import { BygSubscription, BygVerification } from '@/index';
2
2
  export interface BygUser {
3
3
  id: number;
4
4
  email: string;
@@ -8,4 +8,5 @@ export interface BygUser {
8
8
  avatarUrl: string | null;
9
9
  bannerUrl: string | null;
10
10
  subscriptionState: BygSubscription;
11
+ verification: BygVerification;
11
12
  }
@@ -0,0 +1 @@
1
+ export type BygVerification = 'notable' | 'organization' | 'government' | 'identity';
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
+ "alert": "THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY. Instead, edit package.ts and run 'ts-pkg' to regenerate.",
2
3
  "name": "@bygnet/types",
3
- "version": "1.4.2",
4
+ "version": "1.5.0",
4
5
  "description": "Byg Platform's types for posts, images, and more, for Byg devs and the community.",
5
6
  "keywords": [
6
7
  "social-network",
@@ -20,15 +21,15 @@
20
21
  },
21
22
  "type": "module",
22
23
  "main": "src/index.ts",
24
+ "files": [
25
+ "dist"
26
+ ],
23
27
  "types": "dist/index.d.ts",
24
28
  "exports": {
25
29
  ".": {
26
30
  "types": "./dist/index.d.ts"
27
31
  }
28
32
  },
29
- "files": [
30
- "dist"
31
- ],
32
33
  "scripts": {
33
34
  "build": "tsc",
34
35
  "build:watch": "tsc --watch",
package/src/index.ts CHANGED
@@ -12,6 +12,7 @@ export * from './people/user'
12
12
  // unions
13
13
  export * from './unions/create'
14
14
  export * from './unions/subscription'
15
+ export * from './unions/verification'
15
16
 
16
17
  // web
17
18
  export * from './web/page'