@mx-space/api-client 1.8.0-alpha.6 → 1.8.0-beta.1
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/controllers/note.ts +1 -2
- package/dist/index.d.cts +6 -5
- package/dist/index.d.ts +6 -5
- package/models/activity.ts +3 -2
- package/models/aggregate.ts +1 -1
- package/models/note.ts +2 -2
- package/package.json +1 -1
package/controllers/note.ts
CHANGED
|
@@ -8,12 +8,11 @@ import type {
|
|
|
8
8
|
NoteWrappedPayload,
|
|
9
9
|
NoteWrappedWithLikedPayload,
|
|
10
10
|
} from '~/models/note'
|
|
11
|
+
import type { HTTPClient } from '../core/client'
|
|
11
12
|
import type { SortOptions } from './base'
|
|
12
13
|
|
|
13
14
|
import { autoBind } from '~/utils/auto-bind'
|
|
14
15
|
|
|
15
|
-
import { HTTPClient } from '../core/client'
|
|
16
|
-
|
|
17
16
|
declare module '../core/client' {
|
|
18
17
|
interface HTTPClient<
|
|
19
18
|
T extends IRequestAdapter = IRequestAdapter,
|
package/dist/index.d.cts
CHANGED
|
@@ -196,11 +196,12 @@ interface TagModel {
|
|
|
196
196
|
|
|
197
197
|
interface ActivityPresence {
|
|
198
198
|
operationTime: number;
|
|
199
|
-
updatedAt: number;
|
|
200
|
-
connectedAt: number;
|
|
201
199
|
identity: string;
|
|
202
200
|
roomName: string;
|
|
203
201
|
position: number;
|
|
202
|
+
joinedAt: number;
|
|
203
|
+
connectedAt: number;
|
|
204
|
+
updatedAt: number;
|
|
204
205
|
displayName?: string;
|
|
205
206
|
}
|
|
206
207
|
interface RoomOmittedNote {
|
|
@@ -345,8 +346,8 @@ interface NoteModel extends TextBaseModel {
|
|
|
345
346
|
};
|
|
346
347
|
mood?: string;
|
|
347
348
|
weather?: string;
|
|
348
|
-
|
|
349
|
-
|
|
349
|
+
bookmark?: boolean;
|
|
350
|
+
publicAt?: Date;
|
|
350
351
|
password?: string | null;
|
|
351
352
|
nid: number;
|
|
352
353
|
music?: NoteMusicRecord[];
|
|
@@ -517,7 +518,7 @@ declare enum TimelineType {
|
|
|
517
518
|
Note = 1
|
|
518
519
|
}
|
|
519
520
|
interface TimelineData {
|
|
520
|
-
notes?: Pick<NoteModel, 'id' | 'nid' | 'title' | 'weather' | 'mood' | 'created' | 'modified' | '
|
|
521
|
+
notes?: Pick<NoteModel, 'id' | 'nid' | 'title' | 'weather' | 'mood' | 'created' | 'modified' | 'bookmark'>[];
|
|
521
522
|
posts?: (Pick<PostModel, 'id' | 'title' | 'slug' | 'created' | 'modified' | 'category'> & {
|
|
522
523
|
url: string;
|
|
523
524
|
})[];
|
package/dist/index.d.ts
CHANGED
|
@@ -196,11 +196,12 @@ interface TagModel {
|
|
|
196
196
|
|
|
197
197
|
interface ActivityPresence {
|
|
198
198
|
operationTime: number;
|
|
199
|
-
updatedAt: number;
|
|
200
|
-
connectedAt: number;
|
|
201
199
|
identity: string;
|
|
202
200
|
roomName: string;
|
|
203
201
|
position: number;
|
|
202
|
+
joinedAt: number;
|
|
203
|
+
connectedAt: number;
|
|
204
|
+
updatedAt: number;
|
|
204
205
|
displayName?: string;
|
|
205
206
|
}
|
|
206
207
|
interface RoomOmittedNote {
|
|
@@ -345,8 +346,8 @@ interface NoteModel extends TextBaseModel {
|
|
|
345
346
|
};
|
|
346
347
|
mood?: string;
|
|
347
348
|
weather?: string;
|
|
348
|
-
|
|
349
|
-
|
|
349
|
+
bookmark?: boolean;
|
|
350
|
+
publicAt?: Date;
|
|
350
351
|
password?: string | null;
|
|
351
352
|
nid: number;
|
|
352
353
|
music?: NoteMusicRecord[];
|
|
@@ -517,7 +518,7 @@ declare enum TimelineType {
|
|
|
517
518
|
Note = 1
|
|
518
519
|
}
|
|
519
520
|
interface TimelineData {
|
|
520
|
-
notes?: Pick<NoteModel, 'id' | 'nid' | 'title' | 'weather' | 'mood' | 'created' | 'modified' | '
|
|
521
|
+
notes?: Pick<NoteModel, 'id' | 'nid' | 'title' | 'weather' | 'mood' | 'created' | 'modified' | 'bookmark'>[];
|
|
521
522
|
posts?: (Pick<PostModel, 'id' | 'title' | 'slug' | 'created' | 'modified' | 'category'> & {
|
|
522
523
|
url: string;
|
|
523
524
|
})[];
|
package/models/activity.ts
CHANGED
|
@@ -2,11 +2,12 @@ import type { CategoryModel } from './category'
|
|
|
2
2
|
|
|
3
3
|
export interface ActivityPresence {
|
|
4
4
|
operationTime: number
|
|
5
|
-
updatedAt: number
|
|
6
|
-
connectedAt: number
|
|
7
5
|
identity: string
|
|
8
6
|
roomName: string
|
|
9
7
|
position: number
|
|
8
|
+
joinedAt: number
|
|
9
|
+
connectedAt: number
|
|
10
|
+
updatedAt: number
|
|
10
11
|
|
|
11
12
|
displayName?: string
|
|
12
13
|
}
|
package/models/aggregate.ts
CHANGED
package/models/note.ts
CHANGED