@wenex/sdk 0.5.9 → 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.
Files changed (51) hide show
  1. package/common/classes/graphql.service.js +1 -1
  2. package/common/classes/graphql.service.js.map +1 -1
  3. package/common/classes/restful.service.js +1 -1
  4. package/common/classes/restful.service.js.map +1 -1
  5. package/common/enums/financial/coins/index.d.ts +1 -4
  6. package/common/enums/financial/coins/index.js +1 -4
  7. package/common/enums/financial/coins/index.js.map +1 -1
  8. package/common/enums/financial/coins/lib.enum.d.ts +8 -0
  9. package/common/enums/financial/coins/lib.enum.js +13 -0
  10. package/common/enums/financial/coins/lib.enum.js.map +1 -0
  11. package/common/interfaces/auth/authentication/jwt.interface.d.ts +1 -1
  12. package/common/interfaces/auth/authentication/request.interface.d.ts +1 -1
  13. package/common/interfaces/auth/authentication/response.interface.d.ts +1 -1
  14. package/common/interfaces/auth/grant/grant.interface.d.ts +1 -0
  15. package/common/interfaces/common/filter.interface.d.ts +1 -0
  16. package/common/interfaces/config/config.interface.d.ts +1 -0
  17. package/common/interfaces/config/setting.interface.d.ts +1 -0
  18. package/common/interfaces/domain/app/app.interface.d.ts +1 -0
  19. package/common/interfaces/domain/client/client.interface.d.ts +1 -0
  20. package/common/interfaces/financial/account.interface.d.ts +1 -0
  21. package/common/interfaces/financial/coin/coin.interface.d.ts +16 -11
  22. package/common/interfaces/financial/transaction.interface.d.ts +1 -0
  23. package/common/interfaces/financial/wallet.interface.d.ts +1 -0
  24. package/common/interfaces/identity/profile.interface.d.ts +1 -0
  25. package/common/interfaces/identity/session.interface.d.ts +1 -0
  26. package/common/interfaces/identity/user.interface.d.ts +3 -2
  27. package/common/interfaces/special/file.interface.d.ts +1 -0
  28. package/common/interfaces/special/stat.interface.d.ts +1 -0
  29. package/common/interfaces/touch/mail/mail.interface.d.ts +1 -0
  30. package/common/interfaces/touch/push/history/history.interface.d.ts +1 -0
  31. package/common/interfaces/touch/push/push.interface.d.ts +1 -0
  32. package/common/utils/object-id.util.d.ts +1 -0
  33. package/common/utils/repository.util.d.ts +4 -4
  34. package/package.json +12 -13
  35. package/services/special/files.service.js +4 -4
  36. package/services/special/files.service.js.map +1 -1
  37. package/common/enums/financial/coins/iso.enum.d.ts +0 -3
  38. package/common/enums/financial/coins/iso.enum.js +0 -8
  39. package/common/enums/financial/coins/iso.enum.js.map +0 -1
  40. package/common/enums/financial/coins/name.enum.d.ts +0 -7
  41. package/common/enums/financial/coins/name.enum.js +0 -12
  42. package/common/enums/financial/coins/name.enum.js.map +0 -1
  43. package/common/enums/financial/coins/network.enum.d.ts +0 -4
  44. package/common/enums/financial/coins/network.enum.js +0 -9
  45. package/common/enums/financial/coins/network.enum.js.map +0 -1
  46. package/common/enums/financial/coins/token.enum.d.ts +0 -3
  47. package/common/enums/financial/coins/token.enum.js +0 -8
  48. package/common/enums/financial/coins/token.enum.js.map +0 -1
  49. package/common/interfaces/financial/coin.interface.d.ts +0 -43
  50. package/common/interfaces/financial/coin.interface.js +0 -3
  51. package/common/interfaces/financial/coin.interface.js.map +0 -1
@@ -15,8 +15,8 @@ class GraphqlService {
15
15
  this.axios = axios;
16
16
  }
17
17
  request(data, config) {
18
- var _a;
19
18
  return __awaiter(this, void 0, void 0, function* () {
19
+ var _a;
20
20
  const { data: res } = yield this.axios.post('/graphql', data, config);
21
21
  if ((_a = res.errors) === null || _a === void 0 ? void 0 : _a.length)
22
22
  throw res.errors;
@@ -1 +1 @@
1
- {"version":3,"file":"graphql.service.js","sourceRoot":"","sources":["../../src/common/classes/graphql.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAQA,MAAa,cAAc;IACzB,YAA+B,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAEjD,OAAO,CAAI,IAAoB,EAAE,MAA2B;;;YAChE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CACzC,UAAU,EACV,IAAI,EACJ,MAAM,CACP,CAAC;YAEF,IAAI,MAAA,GAAG,CAAC,MAAM,0CAAE,MAAM;gBAAE,MAAM,GAAG,CAAC,MAAM,CAAC;;gBACpC,OAAO,GAAG,CAAC,IAAK,CAAC;;KACvB;CACF;AAbD,wCAaC"}
1
+ {"version":3,"file":"graphql.service.js","sourceRoot":"","sources":["../../src/common/classes/graphql.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAQA,MAAa,cAAc;IACzB,YAA+B,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAEjD,OAAO,CAAI,IAAoB,EAAE,MAA2B;;;YAChE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CACzC,UAAU,EACV,IAAI,EACJ,MAAM,CACP,CAAC;YAEF,IAAI,MAAA,GAAG,CAAC,MAAM,0CAAE,MAAM;gBAAE,MAAM,GAAG,CAAC,MAAM,CAAC;;gBACpC,OAAO,GAAG,CAAC,IAAK,CAAC;QACxB,CAAC;KAAA;CACF;AAbD,wCAaC"}
@@ -42,8 +42,8 @@ class RestfulService extends providers_1.RequestService {
42
42
  });
43
43
  }
44
44
  cursor(filter, options, config) {
45
- var _a;
46
45
  return __awaiter(this, void 0, void 0, function* () {
46
+ var _a;
47
47
  options.method = 'GET';
48
48
  options.headers = (_a = options.headers) !== null && _a !== void 0 ? _a : {};
49
49
  const authorization = this.axios.defaults.headers['Authorization'] ||
@@ -1 +1 @@
1
- {"version":3,"file":"restful.service.js","sourceRoot":"","sources":["../../src/common/classes/restful.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uDAAuD;AACvD,sEAAuF;AAEvF,4CAAoB;AAgBpB,4CAA8C;AAW9C,MAAa,cAGX,SAAQ,0BAAc;IAGtB,YACqB,IAAY,EACZ,KAAoB;QAEvC,KAAK,CAAC,KAAK,CAAC,CAAC;QAHM,SAAI,GAAJ,IAAI,CAAQ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MAAM,IAAI,CAAC,GAAG,CACZ,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,UAAU,EACzB,SAAS,EACT,MAAM,CACP,CACF,CAAC,IAAI,CAAC;QACT,CAAC;KAAA;IAEK,WAAW,CACf,EAAU,EACV,MAAyB;;YAEzB,OAAO,CACL,MAAM,IAAI,CAAC,MAAM,CAAgC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC,CACpF,CAAC,IAAI,CAAC;QACT,CAAC;KAAA;IAEK,UAAU,CACd,EAAU,EACV,IAAmB,EACnB,MAAyB;;YAEzB,OAAO,CACL,MAAM,IAAI,CAAC,KAAK,CACd,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,EACZ,IAAI,EACJ,MAAM,CACP,CACF,CAAC,IAAI,CAAC;QACT,CAAC;KAAA;IAEK,UAAU,CACd,IAAmB,EACnB,MAAsB,EACtB,MAAyB;;YAEzB,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,mBAAM,MAAM,qBAAS,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,EAAG,CAAC;YACnE,OAAO,CACL,MAAM,IAAI,CAAC,KAAK,CAAuB,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,kCACxD,MAAM,KACT,MAAM,IACN,CACH,CAAC,KAAK,CAAC;QACV,CAAC;KAAA;CACF;AAxHD,wCAwHC"}
1
+ {"version":3,"file":"restful.service.js","sourceRoot":"","sources":["../../src/common/classes/restful.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uDAAuD;AACvD,sEAAuF;AAEvF,4CAAoB;AAgBpB,4CAA8C;AAW9C,MAAa,cAGX,SAAQ,0BAAc;IAGtB,YACqB,IAAY,EACZ,KAAoB;QAEvC,KAAK,CAAC,KAAK,CAAC,CAAC;QAHM,SAAI,GAAJ,IAAI,CAAQ;QACZ,UAAK,GAAL,KAAK,CAAe;QAJtB,QAAG,G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,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,UAAU,EACzB,SAAS,EACT,MAAM,CACP,CACF,CAAC,IAAI,CAAC;QACT,CAAC;KAAA;IAEK,WAAW,CACf,EAAU,EACV,MAAyB;;YAEzB,OAAO,CACL,MAAM,IAAI,CAAC,MAAM,CAAgC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC,CACpF,CAAC,IAAI,CAAC;QACT,CAAC;KAAA;IAEK,UAAU,CACd,EAAU,EACV,IAAmB,EACnB,MAAyB;;YAEzB,OAAO,CACL,MAAM,IAAI,CAAC,KAAK,CACd,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,EACZ,IAAI,EACJ,MAAM,CACP,CACF,CAAC,IAAI,CAAC;QACT,CAAC;KAAA;IAEK,UAAU,CACd,IAAmB,EACnB,MAAsB,EACtB,MAAyB;;YAEzB,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,mBAAM,MAAM,qBAAS,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,EAAG,CAAC;YACnE,OAAO,CACL,MAAM,IAAI,CAAC,KAAK,CAAuB,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,kCACxD,MAAM,KACT,MAAM,IACN,CACH,CAAC,KAAK,CAAC;QACV,CAAC;KAAA;CACF;AAxHD,wCAwHC"}
@@ -1,7 +1,4 @@
1
- export * from './iso.enum';
2
- export * from './name.enum';
1
+ export * from './lib.enum';
3
2
  export * from './type.enum';
4
- export * from './token.enum';
5
- export * from './network.enum';
6
3
  export * from './category.enum';
7
4
  export * from './provider.enum';
@@ -14,11 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./iso.enum"), exports);
18
- __exportStar(require("./name.enum"), exports);
17
+ __exportStar(require("./lib.enum"), exports);
19
18
  __exportStar(require("./type.enum"), exports);
20
- __exportStar(require("./token.enum"), exports);
21
- __exportStar(require("./network.enum"), exports);
22
19
  __exportStar(require("./category.enum"), exports);
23
20
  __exportStar(require("./provider.enum"), exports);
24
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/coins/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B;AAC5B,8CAA4B;AAC5B,+CAA6B;AAC7B,iDAA+B;AAC/B,kDAAgC;AAChC,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/coins/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B;AAC5B,kDAAgC;AAChC,kDAAgC"}
@@ -0,0 +1,8 @@
1
+ export declare enum CoinLib {
2
+ Web3 = "web3",
3
+ Ethers = "ethers",
4
+ TronWeb = "tronweb",
5
+ BitcoinJS = "bitcoinjs-lib",
6
+ TonConnect = "@tonconnect/sdk",
7
+ SolanaWeb3JS = "@solana/web3.js"
8
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CoinLib = void 0;
4
+ var CoinLib;
5
+ (function (CoinLib) {
6
+ CoinLib["Web3"] = "web3";
7
+ CoinLib["Ethers"] = "ethers";
8
+ CoinLib["TronWeb"] = "tronweb";
9
+ CoinLib["BitcoinJS"] = "bitcoinjs-lib";
10
+ CoinLib["TonConnect"] = "@tonconnect/sdk";
11
+ CoinLib["SolanaWeb3JS"] = "@solana/web3.js";
12
+ })(CoinLib || (exports.CoinLib = CoinLib = {}));
13
+ //# sourceMappingURL=lib.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lib.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/coins/lib.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAOX;AAPD,WAAY,OAAO;IACjB,wBAAa,CAAA;IACb,4BAAiB,CAAA;IACjB,8BAAmB,CAAA;IACnB,sCAA2B,CAAA;IAC3B,yCAA8B,CAAA;IAC9B,2CAAgC,CAAA;AAClC,CAAC,EAPW,OAAO,uBAAP,OAAO,QAOlB"}
@@ -7,7 +7,7 @@ export interface JwtToken {
7
7
  domain: string;
8
8
  session: string;
9
9
  tz: string;
10
- i18n: string;
10
+ lang: string;
11
11
  subject: string;
12
12
  client_id: string;
13
13
  aid?: string;
@@ -18,7 +18,7 @@ export interface AuthenticationRequest {
18
18
  response_type?: ResponseType;
19
19
  tz?: string;
20
20
  mfa?: UserMFA;
21
- i18n?: string;
21
+ lang?: string;
22
22
  oauth?: UserOAuth;
23
23
  refresh_token?: string;
24
24
  confirmation_code?: string;
@@ -5,7 +5,7 @@ export interface AuthenticationResponse {
5
5
  domain?: string;
6
6
  subject?: string;
7
7
  tz?: string;
8
- i18n?: string;
8
+ lang?: string;
9
9
  session?: string;
10
10
  access_token?: string;
11
11
  refresh_token?: string;
@@ -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,26 +22,31 @@
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
- import { CoinCategory, CoinIso, CoinName, CoinNetwork, CoinProvider, CoinToken, CoinType } from '../../../enums';
27
27
  import { Core, Dto, MakeOptional } from '../../common';
28
28
  import { CoinUnit, CoinUnitDto } from './unit.interface';
29
+ import { CoinCategory, CoinLib, CoinProvider, CoinType } from '../../../enums';
29
30
  export interface Coin extends Core {
30
31
  type: CoinType;
31
- iso?: CoinIso;
32
- sign?: string;
33
- name?: CoinName;
34
- token?: CoinToken;
35
- symbol?: string;
36
- network?: CoinNetwork;
37
- contract?: string;
32
+ code?: string;
33
+ symbol: string;
38
34
  precision: number;
39
- subunit?: CoinUnit;
40
35
  countries?: string[];
41
- provider: CoinProvider;
36
+ name?: string;
37
+ token?: string;
38
+ explore?: string;
39
+ network?: string;
40
+ contract?: string;
41
+ subunit?: CoinUnit;
42
+ supunit?: CoinUnit;
42
43
  category?: CoinCategory;
44
+ lib?: CoinLib;
45
+ nodes?: string[];
46
+ provider?: CoinProvider;
43
47
  }
44
48
  export type CoinDoc = Coin & Document;
45
- export type CoinDto = Dto<MakeOptional<Omit<Coin, 'subunit'>, 'provider'>> & {
49
+ export type CoinDto = Dto<MakeOptional<Omit<Coin, 'subunit' | 'supunit'>, 'precision'>> & {
46
50
  subunit?: CoinUnitDto;
51
+ supunit?: CoinUnitDto;
47
52
  };
@@ -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
- i18n: string;
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' | 'i18n'>>;
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;
@@ -1,9 +1,9 @@
1
1
  import { State, Status } from '../enums';
2
2
  export declare const isAvailable: ({ deleted_at, restored_at, }: {
3
- deleted_at?: string | Date | undefined;
4
- restored_at?: string | Date | undefined;
3
+ deleted_at?: Date | string;
4
+ restored_at?: Date | string;
5
5
  }) => boolean;
6
6
  export declare const isApplicable: ({ state, status, }: {
7
- state?: State | undefined;
8
- status?: Status | undefined;
7
+ state?: State;
8
+ status?: Status;
9
9
  }) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenex/sdk",
3
- "version": "0.5.9",
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",
@@ -36,29 +35,29 @@
36
35
  },
37
36
  "dependencies": {
38
37
  "@microsoft/fetch-event-source": "^2.0.1",
39
- "qs": "^6.11.2"
38
+ "qs": "^6.12.1"
40
39
  },
41
40
  "devDependencies": {
42
41
  "@types/debug": "^4.1.12",
43
42
  "@types/jest": "^29.5.12",
44
- "@types/node": "^20.11.19",
45
- "@types/qs": "^6.9.11",
46
- "@typescript-eslint/eslint-plugin": "^7.0.2",
47
- "@typescript-eslint/parser": "^7.0.2",
43
+ "@types/node": "^20.14.2",
44
+ "@types/qs": "^6.9.15",
45
+ "@typescript-eslint/eslint-plugin": "^7.12.0",
46
+ "@typescript-eslint/parser": "^7.12.0",
48
47
  "dotenv": "^16.4.5",
49
- "eslint": "^8.56.0",
48
+ "eslint": "^8.57.0",
50
49
  "eslint-config-prettier": "^9.1.0",
51
50
  "eslint-plugin-prettier": "^5.1.3",
52
51
  "jest": "^29.7.0",
53
52
  "jshint": "^2.13.6",
54
53
  "make-coverage-badge": "^1.2.0",
55
- "prettier": "^3.2.5",
56
- "rimraf": "^5.0.5",
57
- "ts-jest": "^29.1.2",
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
- "typedoc": "^0.25.8",
61
- "typescript": "^5.3.3"
59
+ "typedoc": "^0.25.13",
60
+ "typescript": "^5.4.5"
62
61
  },
63
62
  "files": [
64
63
  "/common",
@@ -16,15 +16,15 @@ class FilesService extends classes_1.RestfulService {
16
16
  super('files', axios);
17
17
  this.axios = axios;
18
18
  }
19
- download(id, config = {}, responseType = 'blob') {
20
- return __awaiter(this, void 0, void 0, function* () {
19
+ download(id_1) {
20
+ return __awaiter(this, arguments, void 0, function* (id, config = {}, responseType = 'blob') {
21
21
  config.responseType = responseType;
22
22
  const url = this.url(`download/${id}`);
23
23
  return yield this.get(url, config);
24
24
  });
25
25
  }
26
- upload(items, scope, config = {}) {
27
- return __awaiter(this, void 0, void 0, function* () {
26
+ upload(items_1, scope_1) {
27
+ return __awaiter(this, arguments, void 0, function* (items, scope, config = {}) {
28
28
  const form = new FormData();
29
29
  items.forEach((item) => form.append('file', item.value, item.filename));
30
30
  Object.assign(config, {
@@ -1 +1 @@
1
- {"version":3,"file":"files.service.js","sourceRoot":"","sources":["../../src/services/special/files.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,kDAAqE;AAErE,MAAa,YAAa,SAAQ,wBAA6B;IAC7D,YAAsB,KAAoB;QACxC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QADF,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAEK,QAAQ,CACZ,EAAU,EACV,SAA8B,EAAE,EAChC,eAA6B,MAAM;;YAEnC,MAAM,CAAC,YAAY,GAAG,YAAY,CAAC;YACnC,MAAM,GAAG,GAA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AAC;QACxC,CAAC;KAAA;IAEK,MAAM;6DACV,KAA2C,EAC3C,KAA2B,EAC3B,SAA8B,EAAE;YAEhC,MAAM,IAAI,GAAG,IAAI,QAAQ,EAAE,CAAC;YAC5B,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YAExE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;gBACpB,OAAO,EAAE;oBACP,cAAc,EAAE,qBAAqB;iBACtC;aACF,CAAC,CAAC;YAEH,MAAM,GAAG,GAAW,IAAI,CAAC,GAAG,CAAC,UAAU,KAAK,EAAE,CAAC,CAAC;YAChD,OAAO,MAAM,IAAI,CAAC,IAAI,CAA+B,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;QAC1E,CAAC;KAAA;CACF;AAhCD,oCAgCC"}
@@ -1,3 +0,0 @@
1
- export declare enum CoinIso {
2
- IRT = "IRT"
3
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CoinIso = void 0;
4
- var CoinIso;
5
- (function (CoinIso) {
6
- CoinIso["IRT"] = "IRT";
7
- })(CoinIso || (exports.CoinIso = CoinIso = {}));
8
- //# sourceMappingURL=iso.enum.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"iso.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/coins/iso.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAEX;AAFD,WAAY,OAAO;IACjB,sBAAW,CAAA;AACb,CAAC,EAFW,OAAO,uBAAP,OAAO,QAElB"}
@@ -1,7 +0,0 @@
1
- export declare enum CoinName {
2
- Tronix = "Tronix",
3
- Solana = "Solana",
4
- Bitcoin = "Bitcoin",
5
- Ethereum = "Ethereum",
6
- BinanceSmartChain = "Binance Smart Chain (BSC)"
7
- }
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CoinName = void 0;
4
- var CoinName;
5
- (function (CoinName) {
6
- CoinName["Tronix"] = "Tronix";
7
- CoinName["Solana"] = "Solana";
8
- CoinName["Bitcoin"] = "Bitcoin";
9
- CoinName["Ethereum"] = "Ethereum";
10
- CoinName["BinanceSmartChain"] = "Binance Smart Chain (BSC)";
11
- })(CoinName || (exports.CoinName = CoinName = {}));
12
- //# sourceMappingURL=name.enum.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"name.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/coins/name.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;IACjB,+BAAmB,CAAA;IACnB,iCAAqB,CAAA;IACrB,2DAA+C,CAAA;AACjD,CAAC,EANW,QAAQ,wBAAR,QAAQ,QAMnB"}
@@ -1,4 +0,0 @@
1
- export declare enum CoinNetwork {
2
- Mainnet = "mainnet",
3
- Testnet = "testnet"
4
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CoinNetwork = void 0;
4
- var CoinNetwork;
5
- (function (CoinNetwork) {
6
- CoinNetwork["Mainnet"] = "mainnet";
7
- CoinNetwork["Testnet"] = "testnet";
8
- })(CoinNetwork || (exports.CoinNetwork = CoinNetwork = {}));
9
- //# sourceMappingURL=network.enum.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"network.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/coins/network.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;AACrB,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB"}
@@ -1,3 +0,0 @@
1
- export declare enum CoinToken {
2
- Tether = "Tether"
3
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CoinToken = void 0;
4
- var CoinToken;
5
- (function (CoinToken) {
6
- CoinToken["Tether"] = "Tether";
7
- })(CoinToken || (exports.CoinToken = CoinToken = {}));
8
- //# sourceMappingURL=token.enum.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"token.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/financial/coins/token.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAEX;AAFD,WAAY,SAAS;IACnB,8BAAiB,CAAA;AACnB,CAAC,EAFW,SAAS,yBAAT,SAAS,QAEpB"}
@@ -1,43 +0,0 @@
1
- /// <reference types="mongoose/types/aggregate" />
2
- /// <reference types="mongoose/types/callback" />
3
- /// <reference types="mongoose/types/collection" />
4
- /// <reference types="mongoose/types/connection" />
5
- /// <reference types="mongoose/types/cursor" />
6
- /// <reference types="mongoose/types/document" />
7
- /// <reference types="mongoose/types/error" />
8
- /// <reference types="mongoose/types/expressions" />
9
- /// <reference types="mongoose/types/helpers" />
10
- /// <reference types="mongoose/types/middlewares" />
11
- /// <reference types="mongoose/types/indexes" />
12
- /// <reference types="mongoose/types/models" />
13
- /// <reference types="mongoose/types/mongooseoptions" />
14
- /// <reference types="mongoose/types/pipelinestage" />
15
- /// <reference types="mongoose/types/populate" />
16
- /// <reference types="mongoose/types/query" />
17
- /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
- /// <reference types="mongoose/types/session" />
20
- /// <reference types="mongoose/types/types" />
21
- /// <reference types="mongoose/types/utility" />
22
- /// <reference types="mongoose/types/validation" />
23
- /// <reference types="mongoose/types/virtuals" />
24
- /// <reference types="mongoose/types/inferschematype" />
25
- import type { Document } from 'mongoose';
26
- import { Core, Dto, MakeOptional } from '../common';
27
- import { CoinProvider, CoinType } from '../../enums';
28
- export interface Coin extends Core {
29
- type: CoinType;
30
- iso?: string;
31
- sign?: string;
32
- code?: string;
33
- name?: string;
34
- alias?: string;
35
- symbol?: string;
36
- network?: string;
37
- contract?: string;
38
- precision: number;
39
- countries?: string[];
40
- provider: CoinProvider;
41
- }
42
- export type CoinDoc = Coin & Document;
43
- export type CoinDto = Dto<MakeOptional<Coin, 'provider'>>;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=coin.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"coin.interface.js","sourceRoot":"","sources":["../../../src/common/interfaces/financial/coin.interface.ts"],"names":[],"mappings":""}