@aranzatech/aranza-auth 0.2.2 → 0.2.4

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/dist/index.js CHANGED
@@ -50,21 +50,21 @@ var AuthErrorCode = {
50
50
  var AuthTokensDto = class {
51
51
  };
52
52
  __decorateClass([
53
- ApiProperty({ example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." })
53
+ ApiProperty({ type: String, example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." })
54
54
  ], AuthTokensDto.prototype, "accessToken", 2);
55
55
  __decorateClass([
56
- ApiProperty({ example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." })
56
+ ApiProperty({ type: String, example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." })
57
57
  ], AuthTokensDto.prototype, "refreshToken", 2);
58
58
  var ChangePasswordDto = class {
59
59
  };
60
60
  __decorateClass([
61
- ApiProperty({ example: "CurrentPassword1", minLength: 1, maxLength: 128 }),
61
+ ApiProperty({ type: String, example: "CurrentPassword1", minLength: 1, maxLength: 128 }),
62
62
  IsString(),
63
63
  IsNotEmpty(),
64
64
  Length(1, 128)
65
65
  ], ChangePasswordDto.prototype, "currentPassword", 2);
66
66
  __decorateClass([
67
- ApiProperty({ example: "NewPassword1", minLength: 8, maxLength: 128 }),
67
+ ApiProperty({ type: String, example: "NewPassword1", minLength: 8, maxLength: 128 }),
68
68
  IsString(),
69
69
  IsNotEmpty(),
70
70
  Length(8, 128)
@@ -72,26 +72,26 @@ __decorateClass([
72
72
  var ForgotPasswordDto = class {
73
73
  };
74
74
  __decorateClass([
75
- ApiProperty({ example: "user@example.com" }),
75
+ ApiProperty({ type: String, example: "user@example.com" }),
76
76
  IsEmail()
77
77
  ], ForgotPasswordDto.prototype, "email", 2);
78
78
  var LoginDto = class {
79
79
  };
80
80
  __decorateClass([
81
- ApiPropertyOptional({ example: "user@example.com" }),
81
+ ApiPropertyOptional({ type: String, example: "user@example.com" }),
82
82
  IsOptional(),
83
83
  ValidateIf((dto) => dto.email != null && dto.email.trim() !== ""),
84
84
  IsEmail(),
85
85
  Length(3, 255)
86
86
  ], LoginDto.prototype, "email", 2);
87
87
  __decorateClass([
88
- ApiPropertyOptional({ example: "johndoe" }),
88
+ ApiPropertyOptional({ type: String, example: "johndoe" }),
89
89
  IsOptional(),
90
90
  IsString(),
91
91
  Length(3, 50)
92
92
  ], LoginDto.prototype, "username", 2);
93
93
  __decorateClass([
94
- ApiProperty({ example: "Password1", minLength: 8, maxLength: 128 }),
94
+ ApiProperty({ type: String, example: "Password1", minLength: 8, maxLength: 128 }),
95
95
  IsString(),
96
96
  IsNotEmpty(),
97
97
  Length(8, 128)
@@ -99,19 +99,19 @@ __decorateClass([
99
99
  var MeResponseDto = class {
100
100
  };
101
101
  __decorateClass([
102
- ApiProperty({ example: "507f1f77bcf86cd799439011" })
102
+ ApiProperty({ type: String, example: "507f1f77bcf86cd799439011" })
103
103
  ], MeResponseDto.prototype, "id", 2);
104
104
  __decorateClass([
105
- ApiPropertyOptional({ example: "user@example.com" })
105
+ ApiPropertyOptional({ type: String, example: "user@example.com" })
106
106
  ], MeResponseDto.prototype, "email", 2);
107
107
  __decorateClass([
108
- ApiPropertyOptional({ example: "johndoe" })
108
+ ApiPropertyOptional({ type: String, example: "johndoe" })
109
109
  ], MeResponseDto.prototype, "username", 2);
110
110
  __decorateClass([
111
- ApiProperty({ example: true })
111
+ ApiProperty({ type: Boolean, example: true })
112
112
  ], MeResponseDto.prototype, "emailVerified", 2);
113
113
  __decorateClass([
114
- ApiProperty({ example: false })
114
+ ApiProperty({ type: Boolean, example: false })
115
115
  ], MeResponseDto.prototype, "disabled", 2);
116
116
  __decorateClass([
117
117
  ApiPropertyOptional({ type: String, format: "date-time" })
@@ -122,33 +122,33 @@ __decorateClass([
122
122
  var RefreshTokenDto = class {
123
123
  };
124
124
  __decorateClass([
125
- ApiProperty({ example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." }),
125
+ ApiProperty({ type: String, example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." }),
126
126
  IsString(),
127
127
  IsNotEmpty()
128
128
  ], RefreshTokenDto.prototype, "refreshToken", 2);
129
129
  var RegisterAckDto = class {
130
130
  };
131
131
  __decorateClass([
132
- ApiProperty({ example: true, enum: [true] })
132
+ ApiProperty({ type: Boolean, example: true, enum: [true] })
133
133
  ], RegisterAckDto.prototype, "registered", 2);
134
134
  var RegisterDto = class {
135
135
  };
136
136
  __decorateClass([
137
- ApiPropertyOptional({ example: "user@example.com" }),
137
+ ApiPropertyOptional({ type: String, example: "user@example.com" }),
138
138
  IsOptional(),
139
139
  ValidateIf((dto) => dto.email != null && dto.email.trim() !== ""),
140
140
  IsEmail(),
141
141
  Length(3, 255)
142
142
  ], RegisterDto.prototype, "email", 2);
143
143
  __decorateClass([
144
- ApiPropertyOptional({ example: "johndoe" }),
144
+ ApiPropertyOptional({ type: String, example: "johndoe" }),
145
145
  IsOptional(),
146
146
  IsString(),
147
147
  Length(3, 50),
148
148
  Matches(/^[a-zA-Z0-9._-]+$/)
149
149
  ], RegisterDto.prototype, "username", 2);
150
150
  __decorateClass([
151
- ApiProperty({ example: "Password1", minLength: 8, maxLength: 128 }),
151
+ ApiProperty({ type: String, example: "Password1", minLength: 8, maxLength: 128 }),
152
152
  IsString(),
153
153
  IsNotEmpty(),
154
154
  Length(8, 128)
@@ -156,18 +156,18 @@ __decorateClass([
156
156
  var ResendVerificationDto = class {
157
157
  };
158
158
  __decorateClass([
159
- ApiProperty({ example: "user@example.com" }),
159
+ ApiProperty({ type: String, example: "user@example.com" }),
160
160
  IsEmail()
161
161
  ], ResendVerificationDto.prototype, "email", 2);
162
162
  var ResetPasswordDto = class {
163
163
  };
164
164
  __decorateClass([
165
- ApiProperty({ example: "reset-token-from-email" }),
165
+ ApiProperty({ type: String, example: "reset-token-from-email" }),
166
166
  IsString(),
167
167
  IsNotEmpty()
168
168
  ], ResetPasswordDto.prototype, "token", 2);
169
169
  __decorateClass([
170
- ApiProperty({ example: "NewPassword1", minLength: 8, maxLength: 128 }),
170
+ ApiProperty({ type: String, example: "NewPassword1", minLength: 8, maxLength: 128 }),
171
171
  IsString(),
172
172
  IsNotEmpty(),
173
173
  Length(8, 128)
@@ -175,7 +175,7 @@ __decorateClass([
175
175
  var VerifyEmailDto = class {
176
176
  };
177
177
  __decorateClass([
178
- ApiProperty({ example: "verification-token-from-email" }),
178
+ ApiProperty({ type: String, example: "verification-token-from-email" }),
179
179
  IsString(),
180
180
  IsNotEmpty()
181
181
  ], VerifyEmailDto.prototype, "token", 2);