@wenex/sdk 1.1.13 → 1.1.15

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.
@@ -1,4 +1,4 @@
1
- export type MetaKey = 'user-agent' | 'authorization' | 'x-at' | 'x-by' | 'x-in' | 'x-zone' | 'x-token' | 'x-user-ip' | 'x-api-key' | 'x-saga-ttl' | 'x-api-token' | 'x-request-id' | 'x-user-agent' | 'x-nested-keys' | 'x-saga-session' | 'x-authorization' | 'x-payment-amount' | 'x-no-api-response' | 'x-can-with-policies' | 'x-naming-convention' | 'x-stat-learning-rate' | 'x-stat-delay-datetime';
1
+ export type MetaKey = 'user-agent' | 'authorization' | 'x-at' | 'x-by' | 'x-in' | 'x-zone' | 'x-token' | 'x-user-ip' | 'x-api-key' | 'x-saga-ttl' | 'x-api-token' | 'x-request-id' | 'x-user-agent' | 'x-nested-keys' | 'x-saga-session' | 'x-authorization' | 'x-payment-amount' | 'x-no-api-response' | 'x-can-with-policies' | 'x-naming-convention' | 'x-stat-learning-rate' | 'x-stat-delay-datetime' | 'x-can-with-id-policies';
2
2
  export type Metadata = {
3
3
  [key in MetaKey]?: any;
4
4
  };
@@ -6,6 +6,7 @@ export interface Activity<T = any, M = any, Properties extends object = object>
6
6
  type: ActivityType;
7
7
  state?: State;
8
8
  source?: string;
9
+ message: string;
9
10
  details?: T;
10
11
  metadata?: M;
11
12
  }
@@ -1,7 +1,10 @@
1
1
  import type { Document } from 'mongoose';
2
+ import { State } from '../../../core/enums';
2
3
  import { Core, Dto } from '../../../core/interfaces';
3
4
  export interface File<Properties extends object = object> extends Core<Properties> {
4
5
  field?: string;
6
+ title?: string;
7
+ state?: State;
5
8
  original: string;
6
9
  encoding?: string;
7
10
  mimetype: string;
@@ -8,6 +8,7 @@ export interface Notice<Properties extends object = object> extends Core<Propert
8
8
  subtile?: string;
9
9
  content: string;
10
10
  category?: string;
11
+ visited?: boolean;
11
12
  visited_at?: Date;
12
13
  visited_by?: string;
13
14
  visited_in?: string;
@@ -17,6 +18,5 @@ export interface Notice<Properties extends object = object> extends Core<Propert
17
18
  }
18
19
  export type NoticeDoc<Properties extends object = object> = Notice<Properties> & Document;
19
20
  export type NoticeDto<Properties extends object = object> = NesteDto<Dto<Notice<Properties>>, {
20
- visited?: boolean;
21
21
  actions?: NoticeActionDto[];
22
22
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenex/sdk",
3
- "version": "1.1.13",
3
+ "version": "1.1.15",
4
4
  "description": "Wenex SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",