@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.
@@ -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
- hasMemory?: boolean;
349
- secret?: Date;
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' | 'hasMemory'>[];
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
- hasMemory?: boolean;
349
- secret?: Date;
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' | 'hasMemory'>[];
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
  })[];
@@ -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
  }
@@ -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.1",
4
4
  "type": "module",
5
5
  "description": "A api client for mx-space server@next",
6
6
  "author": "Innei",