@mx-space/api-client 1.8.0-alpha.6 → 1.8.0-beta.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/controllers/note.ts +1 -2
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- 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
|
@@ -345,8 +345,8 @@ interface NoteModel extends TextBaseModel {
|
|
|
345
345
|
};
|
|
346
346
|
mood?: string;
|
|
347
347
|
weather?: string;
|
|
348
|
-
|
|
349
|
-
|
|
348
|
+
bookmark?: boolean;
|
|
349
|
+
publicAt?: Date;
|
|
350
350
|
password?: string | null;
|
|
351
351
|
nid: number;
|
|
352
352
|
music?: NoteMusicRecord[];
|
|
@@ -517,7 +517,7 @@ declare enum TimelineType {
|
|
|
517
517
|
Note = 1
|
|
518
518
|
}
|
|
519
519
|
interface TimelineData {
|
|
520
|
-
notes?: Pick<NoteModel, 'id' | 'nid' | 'title' | 'weather' | 'mood' | 'created' | 'modified' | '
|
|
520
|
+
notes?: Pick<NoteModel, 'id' | 'nid' | 'title' | 'weather' | 'mood' | 'created' | 'modified' | 'bookmark'>[];
|
|
521
521
|
posts?: (Pick<PostModel, 'id' | 'title' | 'slug' | 'created' | 'modified' | 'category'> & {
|
|
522
522
|
url: string;
|
|
523
523
|
})[];
|
package/dist/index.d.ts
CHANGED
|
@@ -345,8 +345,8 @@ interface NoteModel extends TextBaseModel {
|
|
|
345
345
|
};
|
|
346
346
|
mood?: string;
|
|
347
347
|
weather?: string;
|
|
348
|
-
|
|
349
|
-
|
|
348
|
+
bookmark?: boolean;
|
|
349
|
+
publicAt?: Date;
|
|
350
350
|
password?: string | null;
|
|
351
351
|
nid: number;
|
|
352
352
|
music?: NoteMusicRecord[];
|
|
@@ -517,7 +517,7 @@ declare enum TimelineType {
|
|
|
517
517
|
Note = 1
|
|
518
518
|
}
|
|
519
519
|
interface TimelineData {
|
|
520
|
-
notes?: Pick<NoteModel, 'id' | 'nid' | 'title' | 'weather' | 'mood' | 'created' | 'modified' | '
|
|
520
|
+
notes?: Pick<NoteModel, 'id' | 'nid' | 'title' | 'weather' | 'mood' | 'created' | 'modified' | 'bookmark'>[];
|
|
521
521
|
posts?: (Pick<PostModel, 'id' | 'title' | 'slug' | 'created' | 'modified' | 'category'> & {
|
|
522
522
|
url: string;
|
|
523
523
|
})[];
|
package/models/aggregate.ts
CHANGED
package/models/note.ts
CHANGED