@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.
@@ -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
- hasMemory?: boolean;
349
- secret?: Date;
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' | 'hasMemory'>[];
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
- hasMemory?: boolean;
349
- secret?: Date;
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' | 'hasMemory'>[];
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
  })[];
@@ -60,7 +60,7 @@ export interface TimelineData {
60
60
  | 'mood'
61
61
  | 'created'
62
62
  | 'modified'
63
- | 'hasMemory'
63
+ | 'bookmark'
64
64
  >[]
65
65
 
66
66
  posts?: (Pick<
package/models/note.ts CHANGED
@@ -10,9 +10,9 @@ export interface NoteModel extends TextBaseModel {
10
10
 
11
11
  mood?: string
12
12
  weather?: string
13
- hasMemory?: boolean
13
+ bookmark?: boolean
14
14
 
15
- secret?: Date
15
+ publicAt?: Date
16
16
  password?: string | null
17
17
  nid: number
18
18
  music?: NoteMusicRecord[]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-space/api-client",
3
- "version": "1.8.0-alpha.6",
3
+ "version": "1.8.0-beta.0",
4
4
  "type": "module",
5
5
  "description": "A api client for mx-space server@next",
6
6
  "author": "Innei",