@bygnet/types 1.4.1 → 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.
- package/dist/content/notification.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/people/profile.d.ts +1 -1
- package/dist/people/user.d.ts +2 -7
- package/dist/unions/verification.d.ts +1 -0
- package/dist/web/page.d.ts +1 -0
- package/dist/web/push.d.ts +1 -1
- package/package.json +5 -4
- package/src/index.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BygSubscription } from '
|
|
2
|
-
export type BygNotificationType = 'follow' | 'post_comment' | 'image_comment'
|
|
1
|
+
import { BygSubscription } from '@/index';
|
|
2
|
+
export type BygNotificationType = 'follow' | 'post_comment' | 'image_comment';
|
|
3
3
|
export interface BygNotification {
|
|
4
4
|
id: string;
|
|
5
5
|
type: BygNotificationType;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export * from './content/ad';
|
|
2
2
|
export * from './content/comment';
|
|
3
3
|
export * from './content/image';
|
|
4
|
-
export * from './content/message';
|
|
5
4
|
export * from './content/notification';
|
|
6
5
|
export * from './content/post';
|
|
7
6
|
export * from './people/profile';
|
|
8
7
|
export * from './people/user';
|
|
9
8
|
export * from './unions/create';
|
|
10
9
|
export * from './unions/subscription';
|
|
10
|
+
export * from './unions/verification';
|
|
11
11
|
export * from './web/page';
|
|
12
12
|
export * from './web/push';
|
package/dist/people/profile.d.ts
CHANGED
package/dist/people/user.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BygSubscription } from '
|
|
1
|
+
import { BygSubscription, BygVerification } from '@/index';
|
|
2
2
|
export interface BygUser {
|
|
3
3
|
id: number;
|
|
4
4
|
email: string;
|
|
@@ -8,10 +8,5 @@ export interface BygUser {
|
|
|
8
8
|
avatarUrl: string | null;
|
|
9
9
|
bannerUrl: string | null;
|
|
10
10
|
subscriptionState: BygSubscription;
|
|
11
|
-
|
|
12
|
-
export interface BygUserSuggestion {
|
|
13
|
-
id: number;
|
|
14
|
-
username: string;
|
|
15
|
-
avatarUrl: string | null;
|
|
16
|
-
subscriptionState: BygSubscription;
|
|
11
|
+
verification: BygVerification;
|
|
17
12
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type BygVerification = 'notable' | 'organization' | 'government' | 'identity';
|
package/dist/web/page.d.ts
CHANGED
package/dist/web/push.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface BygPushPublicKeyResponse {
|
|
|
14
14
|
publicKey: string;
|
|
15
15
|
}
|
|
16
16
|
export interface BygPushAlertPayload {
|
|
17
|
-
type: 'follow' | 'post_comment' | 'image_comment'
|
|
17
|
+
type: 'follow' | 'post_comment' | 'image_comment';
|
|
18
18
|
title: string;
|
|
19
19
|
body: string;
|
|
20
20
|
path: string;
|
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
|
+
"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",
|