@merkaly/api 0.28.6 → 0.29.0

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.
@@ -14,9 +14,12 @@ export interface AccountAuthConnection {
14
14
  strategy: string;
15
15
  }
16
16
  export interface AccountAuthProfile {
17
- avatar?: string;
17
+ customAvatar: boolean;
18
18
  email?: string;
19
+ emailVerified?: boolean;
20
+ locale?: string;
19
21
  name?: string;
22
+ phone?: string;
20
23
  picture?: string;
21
24
  }
22
25
  export interface AccountAuthPasswordTicket {
@@ -5,6 +5,7 @@ export declare class UpdateUserRequestValidator extends AbstractRequestValidator
5
5
  picture: string;
6
6
  email: string;
7
7
  phone?: string;
8
+ locale?: string;
8
9
  active: boolean;
9
10
  constructor(user?: AccountUserEntity);
10
11
  }
@@ -15,6 +15,7 @@ export class UpdateUserRequestValidator extends abstract_validator_1.AbstractReq
15
15
  picture;
16
16
  email;
17
17
  phone;
18
+ locale;
18
19
  active;
19
20
  constructor(user) {
20
21
  super();
@@ -52,6 +53,11 @@ __decorate([
52
53
  (0, class_validator_1.Length)(0, 20),
53
54
  __metadata("design:type", String)
54
55
  ], UpdateUserRequestValidator.prototype, "phone", void 0);
56
+ __decorate([
57
+ (0, class_validator_1.IsIn)(['en-US', 'pt-BR']),
58
+ (0, class_validator_1.IsOptional)(),
59
+ __metadata("design:type", String)
60
+ ], UpdateUserRequestValidator.prototype, "locale", void 0);
55
61
  __decorate([
56
62
  (0, class_validator_1.IsBoolean)(),
57
63
  (0, class_validator_1.IsOptional)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@merkaly/api",
3
- "version": "0.28.6",
3
+ "version": "0.29.0",
4
4
  "type": "module",
5
5
  "description": "Shared TypeScript interfaces and enums for Merkaly API",
6
6
  "repository": {