@wenex/sdk 0.6.0 → 0.6.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/common/interfaces/auth/authentication/jwt.interface.d.ts +1 -1
- package/common/interfaces/auth/authentication/request.interface.d.ts +1 -1
- package/common/interfaces/auth/authentication/response.interface.d.ts +1 -1
- package/common/interfaces/auth/grant/grant.interface.d.ts +1 -0
- package/common/interfaces/common/filter.interface.d.ts +1 -0
- package/common/interfaces/config/config.interface.d.ts +1 -0
- package/common/interfaces/config/setting.interface.d.ts +1 -0
- package/common/interfaces/domain/app/app.interface.d.ts +1 -0
- package/common/interfaces/domain/client/client.interface.d.ts +1 -0
- package/common/interfaces/financial/account.interface.d.ts +1 -0
- package/common/interfaces/financial/coin/coin.interface.d.ts +1 -0
- package/common/interfaces/financial/transaction.interface.d.ts +1 -0
- package/common/interfaces/financial/wallet.interface.d.ts +1 -0
- package/common/interfaces/identity/profile.interface.d.ts +1 -0
- package/common/interfaces/identity/session.interface.d.ts +1 -0
- package/common/interfaces/identity/user.interface.d.ts +3 -2
- package/common/interfaces/special/file.interface.d.ts +1 -0
- package/common/interfaces/special/stat.interface.d.ts +1 -0
- package/common/interfaces/touch/mail/mail.interface.d.ts +1 -0
- package/common/interfaces/touch/push/history/history.interface.d.ts +1 -0
- package/common/interfaces/touch/push/push.interface.d.ts +1 -0
- package/common/utils/object-id.util.d.ts +1 -0
- package/package.json +7 -8
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import type { Document } from 'mongoose';
|
|
26
27
|
import { GrantTime } from './time.interface';
|
|
27
28
|
import { Core, Dto } from '../../../interfaces';
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import type { FilterQuery, PopulateOptions, ProjectionType, SortOrder } from 'mongoose';
|
|
26
27
|
import { Core } from './core.interface';
|
|
27
28
|
export type QueryID = {
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { Document } from 'mongoose';
|
|
26
27
|
import { Core, Dto } from '../common';
|
|
27
28
|
import { ValueType } from '../../enums';
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { Document } from 'mongoose';
|
|
26
27
|
import { Core, Dto } from '../common';
|
|
27
28
|
import { ValueType } from '../../enums';
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import type { Document } from 'mongoose';
|
|
26
27
|
import { Core, Dto } from '../../common';
|
|
27
28
|
import { AppChangeLog } from './change-log.interface';
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import type { Document } from 'mongoose';
|
|
26
27
|
import { Core, Dto, MakeOptional } from '../../common';
|
|
27
28
|
import { ClientDomain, ClientDomainDto } from './domain.interface';
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import type { Document } from 'mongoose';
|
|
26
27
|
import { AccountBroker, AccountOwnership, AccountProvider, AccountType } from '../../enums';
|
|
27
28
|
import { Core, Dto, MakeOptional } from '../common';
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import type { Document } from 'mongoose';
|
|
26
27
|
import { Core, Dto, MakeOptional } from '../../common';
|
|
27
28
|
import { CoinUnit, CoinUnitDto } from './unit.interface';
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import type { Document } from 'mongoose';
|
|
26
27
|
import { Core, Dto } from '../common';
|
|
27
28
|
import { Pay, PayDto } from './common';
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import type { Document } from 'mongoose';
|
|
26
27
|
import { WalletProvider } from '../../enums';
|
|
27
28
|
import { Core, Dto, MakeOptional } from '../common';
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import type { Document } from 'mongoose';
|
|
26
27
|
import { Core, Dto, MakeOptional } from '../common';
|
|
27
28
|
import { Gender, ProfileType, State } from '../../enums';
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import type { Document } from 'mongoose';
|
|
26
27
|
import { Core, Dto } from '../common';
|
|
27
28
|
export interface Session extends Core {
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import type { Document } from 'mongoose';
|
|
26
27
|
import { Core, Dto, MakeOptional } from '../common';
|
|
27
28
|
import { Status, UserMFA, UserOAuth } from '../../enums';
|
|
@@ -29,7 +30,7 @@ export interface User extends Core {
|
|
|
29
30
|
status: Status;
|
|
30
31
|
tz: string;
|
|
31
32
|
mfa?: UserMFA;
|
|
32
|
-
|
|
33
|
+
lang: string;
|
|
33
34
|
oauth?: UserOAuth[];
|
|
34
35
|
secret?: string;
|
|
35
36
|
email?: string;
|
|
@@ -39,4 +40,4 @@ export interface User extends Core {
|
|
|
39
40
|
subjects: string[];
|
|
40
41
|
}
|
|
41
42
|
export type UserDoc = User & Document;
|
|
42
|
-
export type UserDto = Dto<MakeOptional<User, 'tz' | '
|
|
43
|
+
export type UserDto = Dto<MakeOptional<User, 'tz' | 'lang'>>;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import type { Document } from 'mongoose';
|
|
26
27
|
import { Core, Dto } from '../common';
|
|
27
28
|
export interface File extends Core {
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import type { Document } from 'mongoose';
|
|
26
27
|
import { StatType } from '../../enums';
|
|
27
28
|
import { Core, Dto, Flags, MakeOptional } from '../common';
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import type { Document } from 'mongoose';
|
|
26
27
|
import { MailSmtp } from './smtp.interface';
|
|
27
28
|
import { Core, Dto, MakeOptional } from '../../common';
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import type { Document } from 'mongoose';
|
|
26
27
|
import { PushUrgency } from '../../../../enums';
|
|
27
28
|
import { Core, Dto, MakeOptional, Payload } from '../../../common';
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import type { Document } from 'mongoose';
|
|
26
27
|
import { PushKeys } from './keys.interface';
|
|
27
28
|
import { Core, Dto, MakeOptional } from '../../common';
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { Types } from 'mongoose';
|
|
26
27
|
export declare const MongoId: () => string;
|
|
27
28
|
export declare const ObjectId: (id?: string) => Types.ObjectId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wenex/sdk",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Wenex SDK",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"homepage": "https://github.com/wenex-org/platform-sdk#readme",
|
|
17
17
|
"scripts": {
|
|
18
18
|
"debug": "jest --watch",
|
|
19
|
-
"prebuild": "rimraf dist",
|
|
20
19
|
"build": "tsc -p ./tsconfig.json",
|
|
21
20
|
"clean": "rm -rf ./dist && rm -rf ./coverage",
|
|
22
21
|
"lint": "eslint . '*/**/*.{js,ts}' --quiet --fix",
|
|
@@ -41,10 +40,10 @@
|
|
|
41
40
|
"devDependencies": {
|
|
42
41
|
"@types/debug": "^4.1.12",
|
|
43
42
|
"@types/jest": "^29.5.12",
|
|
44
|
-
"@types/node": "^20.
|
|
43
|
+
"@types/node": "^20.14.2",
|
|
45
44
|
"@types/qs": "^6.9.15",
|
|
46
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
47
|
-
"@typescript-eslint/parser": "^7.
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^7.12.0",
|
|
46
|
+
"@typescript-eslint/parser": "^7.12.0",
|
|
48
47
|
"dotenv": "^16.4.5",
|
|
49
48
|
"eslint": "^8.57.0",
|
|
50
49
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -52,9 +51,9 @@
|
|
|
52
51
|
"jest": "^29.7.0",
|
|
53
52
|
"jshint": "^2.13.6",
|
|
54
53
|
"make-coverage-badge": "^1.2.0",
|
|
55
|
-
"prettier": "^3.
|
|
56
|
-
"rimraf": "^5.0.
|
|
57
|
-
"ts-jest": "^29.1.
|
|
54
|
+
"prettier": "^3.3.1",
|
|
55
|
+
"rimraf": "^5.0.7",
|
|
56
|
+
"ts-jest": "^29.1.4",
|
|
58
57
|
"ts-node": "^10.9.2",
|
|
59
58
|
"tsconfig-paths": "^4.2.0",
|
|
60
59
|
"typedoc": "^0.25.13",
|