@xoxno/types 1.0.126 → 1.0.127

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.
@@ -21,6 +21,6 @@ export declare class UserProfileDoc {
21
21
  chain: ActivityChain;
22
22
  _ts: number;
23
23
  id: string;
24
- isBoberBattleUser: boolean;
24
+ isBoberBattleUser?: boolean;
25
25
  constructor(props?: Partial<UserProfileDoc>);
26
26
  }
@@ -33,7 +33,6 @@ class UserProfileDoc {
33
33
  this.chain = common_enum_1.ActivityChain.MVX;
34
34
  this._ts = 0;
35
35
  this.id = '';
36
- this.isBoberBattleUser = false;
37
36
  Object.assign(this, props);
38
37
  this.id = `${this.address}-${this.dataType}`;
39
38
  }
@@ -1,3 +1,4 @@
1
+ import { LoginRequestService } from '../../enums/login-request-service.enum';
1
2
  export declare class LoginRequestDto {
2
3
  address?: string;
3
4
  loginToken: string;
@@ -5,4 +6,5 @@ export declare class LoginRequestDto {
5
6
  data?: {
6
7
  [key: string]: any;
7
8
  };
9
+ service?: LoginRequestService;
8
10
  }
@@ -12,7 +12,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.LoginRequestDto = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const class_validator_1 = require("class-validator");
15
+ const login_request_service_enum_1 = require("../../enums/login-request-service.enum");
15
16
  class LoginRequestDto {
17
+ constructor() {
18
+ this.service = login_request_service_enum_1.LoginRequestService.XOXNO;
19
+ }
16
20
  }
17
21
  exports.LoginRequestDto = LoginRequestDto;
18
22
  __decorate([
@@ -50,3 +54,9 @@ __decorate([
50
54
  ,
51
55
  __metadata("design:type", Object)
52
56
  ], LoginRequestDto.prototype, "data", void 0);
57
+ __decorate([
58
+ (0, class_validator_1.IsEnum)(login_request_service_enum_1.LoginRequestService),
59
+ (0, class_validator_1.IsNotEmpty)(),
60
+ (0, class_validator_1.IsOptional)(),
61
+ __metadata("design:type", String)
62
+ ], LoginRequestDto.prototype, "service", void 0);
@@ -25,6 +25,7 @@ export * from "./lending-data-type.enum";
25
25
  export * from "./lending-position-type.enum";
26
26
  export * from "./lending.enum";
27
27
  export * from "./linked-account-type.enum";
28
+ export * from "./login-request-service.enum";
28
29
  export * from "./marketplace-activity.enum";
29
30
  export * from "./mobile-device.enum";
30
31
  export * from "./nft-activity-type.enum";
@@ -41,6 +41,7 @@ __exportStar(require("./lending-data-type.enum"), exports);
41
41
  __exportStar(require("./lending-position-type.enum"), exports);
42
42
  __exportStar(require("./lending.enum"), exports);
43
43
  __exportStar(require("./linked-account-type.enum"), exports);
44
+ __exportStar(require("./login-request-service.enum"), exports);
44
45
  __exportStar(require("./marketplace-activity.enum"), exports);
45
46
  __exportStar(require("./mobile-device.enum"), exports);
46
47
  __exportStar(require("./nft-activity-type.enum"), exports);
@@ -0,0 +1,4 @@
1
+ export declare enum LoginRequestService {
2
+ BOBER_BATTLE = "boberBattle",
3
+ XOXNO = "xoxno"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LoginRequestService = void 0;
4
+ var LoginRequestService;
5
+ (function (LoginRequestService) {
6
+ LoginRequestService["BOBER_BATTLE"] = "boberBattle";
7
+ LoginRequestService["XOXNO"] = "xoxno";
8
+ })(LoginRequestService || (exports.LoginRequestService = LoginRequestService = {}));
package/dist/index.js CHANGED
@@ -197,6 +197,7 @@ __exportStar(require("./enums/lending-data-type.enum"), exports);
197
197
  __exportStar(require("./enums/lending-position-type.enum"), exports);
198
198
  __exportStar(require("./enums/lending.enum"), exports);
199
199
  __exportStar(require("./enums/linked-account-type.enum"), exports);
200
+ __exportStar(require("./enums/login-request-service.enum"), exports);
200
201
  __exportStar(require("./enums/marketplace-activity.enum"), exports);
201
202
  __exportStar(require("./enums/mobile-device.enum"), exports);
202
203
  __exportStar(require("./enums/nft-activity-type.enum"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.126",
3
+ "version": "1.0.127",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {