@masa-dev/gas-line 0.0.1 → 0.0.2
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.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/types.follows.d.ts +15 -0
- package/dist/types.follows.js +1 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/types.follows.ts +17 -0
package/dist/index.d.ts
CHANGED
@@ -2,6 +2,7 @@ import { GasDoPostEvent, WebhookData } from './types';
|
|
2
2
|
export * from './types';
|
3
3
|
export * from './types.base';
|
4
4
|
export * from './types.message';
|
5
|
+
export * from './types.follows';
|
5
6
|
export * from './types.others';
|
6
7
|
export * from './LineClient';
|
7
8
|
export declare function parsePostEvent(e: GasDoPostEvent): WebhookData;
|
package/dist/index.js
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
import { Event } from './types.base';
|
2
|
+
export interface FollowEvent extends Event {
|
3
|
+
type: 'follow';
|
4
|
+
follow: {
|
5
|
+
/**
|
6
|
+
* true: User unblocked.
|
7
|
+
* false: User added friend.
|
8
|
+
*
|
9
|
+
* This is not guaranteed to be accurate for "friend addition" and "unblock". */
|
10
|
+
isUnblocked: boolean;
|
11
|
+
};
|
12
|
+
}
|
13
|
+
export interface UnfollowEvent extends Event {
|
14
|
+
type: 'unfollow';
|
15
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
import { Event } from './types.base';
|
2
|
+
|
3
|
+
export interface FollowEvent extends Event {
|
4
|
+
type: 'follow';
|
5
|
+
follow: {
|
6
|
+
/**
|
7
|
+
* true: User unblocked.
|
8
|
+
* false: User added friend.
|
9
|
+
*
|
10
|
+
* This is not guaranteed to be accurate for "friend addition" and "unblock". */
|
11
|
+
isUnblocked: boolean;
|
12
|
+
};
|
13
|
+
}
|
14
|
+
|
15
|
+
export interface UnfollowEvent extends Event {
|
16
|
+
type: 'unfollow';
|
17
|
+
}
|