File tree Expand file tree Collapse file tree 4 files changed +13
-14
lines changed Expand file tree Collapse file tree 4 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 1
1
import { HTTPError } from 'ky'
2
- import { EventEmitter } from 'eventemitter3'
2
+ import EventEmitter from 'eventemitter3'
3
3
import { resolveApiConfig } from '../request'
4
4
import { ApiClient } from '../api-client'
5
5
import { objectPick } from '../utils/objects'
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import type {
7
7
PostDetail ,
8
8
Profile as ProfileEntity ,
9
9
RecommendPost ,
10
- StoryDetails ,
10
+ Story ,
11
11
TabIcons ,
12
12
User ,
13
13
} from './entity'
@@ -187,6 +187,6 @@ export namespace Stories {
187
187
}
188
188
189
189
export interface ListUserStoriesResponse {
190
- data : StoryDetails [ ]
190
+ data : Story [ ]
191
191
}
192
192
}
Original file line number Diff line number Diff line change
1
+ import type { CommonImage } from './common'
1
2
import type { Topic } from './topic'
2
3
import type {
3
4
Picture ,
@@ -162,18 +163,14 @@ export interface RecommendPost {
162
163
type : string
163
164
}
164
165
165
- export interface StoryPic {
166
+ export interface StoryPicture extends CommonImage {
166
167
key : string
167
- thumbnailUrl : string
168
- smallPicUrl : string
169
- middlePicUrl : string
170
- picUrl : string
171
- format : string
172
168
cropperPosX : number
173
169
cropperPosY : number
174
170
width : number
175
171
height : number
176
172
}
173
+
177
174
export interface StoryVideo {
178
175
duration : number
179
176
height : number
@@ -186,22 +183,22 @@ export interface StoryVideo {
186
183
}
187
184
}
188
185
189
- export interface StoryDetails {
190
- id : string
186
+ export interface Story {
191
187
type : 'STORY'
188
+ id : string
192
189
storyType : LiteralUnion < 'PICTURE' | 'VIDEO' >
190
+ status : LiteralUnion < 'PUBLIC' >
193
191
user : User
194
192
emoji ?: string
195
193
video ?: StoryVideo
196
194
thumbnailVideo ?: StoryVideo
197
- status : string
198
- picture : StoryPic
195
+ picture ?: StoryPicture
199
196
liked : boolean
200
197
likeCount : number
201
198
commentCount : number
202
199
viewerCount : number
203
200
createdAt : string
204
- likedUsers : [ ]
201
+ likedUsers : User [ ]
205
202
enablePictureComments : boolean
206
203
isFeatured : boolean
207
204
}
Original file line number Diff line number Diff line change
1
+ import type { StoryStatus } from './post'
1
2
import type { CommonImage } from './common'
2
3
3
4
/**
@@ -80,6 +81,7 @@ export interface User {
80
81
/** 尾部图标 */
81
82
trailingIcons ?: TrailingIcon [ ]
82
83
following ?: boolean
84
+ storyStatus ?: StoryStatus
83
85
}
84
86
85
87
export interface RefRemark {
You can’t perform that action at this time.
0 commit comments