@spinajs/rbac-http 2.0.131 → 2.0.133
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/lib/cjs/index.d.ts +0 -4
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +0 -4
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/middlewares.js +3 -3
- package/lib/cjs/middlewares.js.map +1 -1
- package/lib/mjs/index.d.ts +0 -4
- package/lib/mjs/index.d.ts.map +1 -1
- package/lib/mjs/index.js +0 -4
- package/lib/mjs/index.js.map +1 -1
- package/lib/mjs/middlewares.js +5 -5
- package/lib/mjs/middlewares.js.map +1 -1
- package/lib/tsconfig.cjs.tsbuildinfo +1 -1
- package/lib/tsconfig.mjs.tsbuildinfo +1 -1
- package/package.json +16 -24
- package/lib/cjs/2fa/SpeakEasy2FaToken.d.ts +0 -14
- package/lib/cjs/2fa/SpeakEasy2FaToken.d.ts.map +0 -1
- package/lib/cjs/2fa/SpeakEasy2FaToken.js +0 -91
- package/lib/cjs/2fa/SpeakEasy2FaToken.js.map +0 -1
- package/lib/cjs/config/rbac-http.d.ts +0 -30
- package/lib/cjs/config/rbac-http.d.ts.map +0 -1
- package/lib/cjs/config/rbac-http.js +0 -43
- package/lib/cjs/config/rbac-http.js.map +0 -1
- package/lib/cjs/controllers/LoginController.d.ts +0 -35
- package/lib/cjs/controllers/LoginController.d.ts.map +0 -1
- package/lib/cjs/controllers/LoginController.js +0 -307
- package/lib/cjs/controllers/LoginController.js.map +0 -1
- package/lib/cjs/controllers/TwoFactorAuthController.d.ts +0 -12
- package/lib/cjs/controllers/TwoFactorAuthController.d.ts.map +0 -1
- package/lib/cjs/controllers/TwoFactorAuthController.js +0 -71
- package/lib/cjs/controllers/TwoFactorAuthController.js.map +0 -1
- package/lib/cjs/controllers/UserAdminController.d.ts +0 -4
- package/lib/cjs/controllers/UserAdminController.d.ts.map +0 -1
- package/lib/cjs/controllers/UserAdminController.js +0 -19
- package/lib/cjs/controllers/UserAdminController.js.map +0 -1
- package/lib/cjs/controllers/UserController.d.ts +0 -11
- package/lib/cjs/controllers/UserController.d.ts.map +0 -1
- package/lib/cjs/controllers/UserController.js +0 -110
- package/lib/cjs/controllers/UserController.js.map +0 -1
- package/lib/cjs/controllers/UserMetadata.d.ts +0 -7
- package/lib/cjs/controllers/UserMetadata.d.ts.map +0 -1
- package/lib/cjs/controllers/UserMetadata.js +0 -69
- package/lib/cjs/controllers/UserMetadata.js.map +0 -1
- package/lib/cjs/dto/login-dto.d.ts +0 -17
- package/lib/cjs/dto/login-dto.d.ts.map +0 -1
- package/lib/cjs/dto/login-dto.js +0 -33
- package/lib/cjs/dto/login-dto.js.map +0 -1
- package/lib/cjs/dto/password-dto.d.ts +0 -30
- package/lib/cjs/dto/password-dto.d.ts.map +0 -1
- package/lib/cjs/dto/password-dto.js +0 -35
- package/lib/cjs/dto/password-dto.js.map +0 -1
- package/lib/cjs/dto/restore-password-dto.d.ts +0 -24
- package/lib/cjs/dto/restore-password-dto.d.ts.map +0 -1
- package/lib/cjs/dto/restore-password-dto.js +0 -34
- package/lib/cjs/dto/restore-password-dto.js.map +0 -1
- package/lib/cjs/dto/token-dto.d.ts +0 -16
- package/lib/cjs/dto/token-dto.d.ts.map +0 -1
- package/lib/cjs/dto/token-dto.js +0 -32
- package/lib/cjs/dto/token-dto.js.map +0 -1
- package/lib/cjs/dto/user-dto.d.ts +0 -22
- package/lib/cjs/dto/user-dto.d.ts.map +0 -1
- package/lib/cjs/dto/user-dto.js +0 -33
- package/lib/cjs/dto/user-dto.js.map +0 -1
- package/lib/cjs/dto/userLogin-dto.d.ts +0 -22
- package/lib/cjs/dto/userLogin-dto.d.ts.map +0 -1
- package/lib/cjs/dto/userLogin-dto.js +0 -34
- package/lib/cjs/dto/userLogin-dto.js.map +0 -1
- package/lib/cjs/events/UserLoginFailed.d.ts +0 -6
- package/lib/cjs/events/UserLoginFailed.d.ts.map +0 -1
- package/lib/cjs/events/UserLoginFailed.js +0 -25
- package/lib/cjs/events/UserLoginFailed.js.map +0 -1
- package/lib/cjs/events/UserLoginSuccess.d.ts +0 -6
- package/lib/cjs/events/UserLoginSuccess.d.ts.map +0 -1
- package/lib/cjs/events/UserLoginSuccess.js +0 -25
- package/lib/cjs/events/UserLoginSuccess.js.map +0 -1
- package/lib/cjs/events/UserPassordRestore.d.ts +0 -7
- package/lib/cjs/events/UserPassordRestore.d.ts.map +0 -1
- package/lib/cjs/events/UserPassordRestore.js +0 -26
- package/lib/cjs/events/UserPassordRestore.js.map +0 -1
- package/lib/cjs/fingerprint/FingerprintJs.d.ts +0 -4
- package/lib/cjs/fingerprint/FingerprintJs.d.ts.map +0 -1
- package/lib/cjs/fingerprint/FingerprintJs.js +0 -18
- package/lib/cjs/fingerprint/FingerprintJs.js.map +0 -1
- package/lib/cjs/policies/2FaPolicy.d.ts +0 -8
- package/lib/cjs/policies/2FaPolicy.d.ts.map +0 -1
- package/lib/cjs/policies/2FaPolicy.js +0 -32
- package/lib/cjs/policies/2FaPolicy.js.map +0 -1
- package/lib/cjs/policies/captchaPolicy.d.ts +0 -1
- package/lib/cjs/policies/captchaPolicy.d.ts.map +0 -1
- package/lib/cjs/policies/captchaPolicy.js +0 -1
- package/lib/cjs/policies/captchaPolicy.js.map +0 -1
- package/lib/mjs/2fa/SpeakEasy2FaToken.d.ts +0 -14
- package/lib/mjs/2fa/SpeakEasy2FaToken.d.ts.map +0 -1
- package/lib/mjs/2fa/SpeakEasy2FaToken.js +0 -65
- package/lib/mjs/2fa/SpeakEasy2FaToken.js.map +0 -1
- package/lib/mjs/config/rbac-http.d.ts +0 -30
- package/lib/mjs/config/rbac-http.d.ts.map +0 -1
- package/lib/mjs/config/rbac-http.js +0 -41
- package/lib/mjs/config/rbac-http.js.map +0 -1
- package/lib/mjs/controllers/LoginController.d.ts +0 -35
- package/lib/mjs/controllers/LoginController.d.ts.map +0 -1
- package/lib/mjs/controllers/LoginController.js +0 -304
- package/lib/mjs/controllers/LoginController.js.map +0 -1
- package/lib/mjs/controllers/TwoFactorAuthController.d.ts +0 -12
- package/lib/mjs/controllers/TwoFactorAuthController.d.ts.map +0 -1
- package/lib/mjs/controllers/TwoFactorAuthController.js +0 -68
- package/lib/mjs/controllers/TwoFactorAuthController.js.map +0 -1
- package/lib/mjs/controllers/UserAdminController.d.ts +0 -4
- package/lib/mjs/controllers/UserAdminController.d.ts.map +0 -1
- package/lib/mjs/controllers/UserAdminController.js +0 -16
- package/lib/mjs/controllers/UserAdminController.js.map +0 -1
- package/lib/mjs/controllers/UserController.d.ts +0 -11
- package/lib/mjs/controllers/UserController.d.ts.map +0 -1
- package/lib/mjs/controllers/UserController.js +0 -84
- package/lib/mjs/controllers/UserController.js.map +0 -1
- package/lib/mjs/controllers/UserMetadata.d.ts +0 -7
- package/lib/mjs/controllers/UserMetadata.d.ts.map +0 -1
- package/lib/mjs/controllers/UserMetadata.js +0 -66
- package/lib/mjs/controllers/UserMetadata.js.map +0 -1
- package/lib/mjs/dto/login-dto.d.ts +0 -17
- package/lib/mjs/dto/login-dto.d.ts.map +0 -1
- package/lib/mjs/dto/login-dto.js +0 -30
- package/lib/mjs/dto/login-dto.js.map +0 -1
- package/lib/mjs/dto/password-dto.d.ts +0 -30
- package/lib/mjs/dto/password-dto.d.ts.map +0 -1
- package/lib/mjs/dto/password-dto.js +0 -32
- package/lib/mjs/dto/password-dto.js.map +0 -1
- package/lib/mjs/dto/restore-password-dto.d.ts +0 -24
- package/lib/mjs/dto/restore-password-dto.d.ts.map +0 -1
- package/lib/mjs/dto/restore-password-dto.js +0 -31
- package/lib/mjs/dto/restore-password-dto.js.map +0 -1
- package/lib/mjs/dto/token-dto.d.ts +0 -16
- package/lib/mjs/dto/token-dto.d.ts.map +0 -1
- package/lib/mjs/dto/token-dto.js +0 -29
- package/lib/mjs/dto/token-dto.js.map +0 -1
- package/lib/mjs/dto/user-dto.d.ts +0 -22
- package/lib/mjs/dto/user-dto.d.ts.map +0 -1
- package/lib/mjs/dto/user-dto.js +0 -30
- package/lib/mjs/dto/user-dto.js.map +0 -1
- package/lib/mjs/dto/userLogin-dto.d.ts +0 -22
- package/lib/mjs/dto/userLogin-dto.d.ts.map +0 -1
- package/lib/mjs/dto/userLogin-dto.js +0 -31
- package/lib/mjs/dto/userLogin-dto.js.map +0 -1
- package/lib/mjs/events/UserLoginFailed.d.ts +0 -6
- package/lib/mjs/events/UserLoginFailed.d.ts.map +0 -1
- package/lib/mjs/events/UserLoginFailed.js +0 -22
- package/lib/mjs/events/UserLoginFailed.js.map +0 -1
- package/lib/mjs/events/UserLoginSuccess.d.ts +0 -6
- package/lib/mjs/events/UserLoginSuccess.d.ts.map +0 -1
- package/lib/mjs/events/UserLoginSuccess.js +0 -22
- package/lib/mjs/events/UserLoginSuccess.js.map +0 -1
- package/lib/mjs/events/UserPassordRestore.d.ts +0 -7
- package/lib/mjs/events/UserPassordRestore.d.ts.map +0 -1
- package/lib/mjs/events/UserPassordRestore.js +0 -23
- package/lib/mjs/events/UserPassordRestore.js.map +0 -1
- package/lib/mjs/fingerprint/FingerprintJs.d.ts +0 -4
- package/lib/mjs/fingerprint/FingerprintJs.d.ts.map +0 -1
- package/lib/mjs/fingerprint/FingerprintJs.js +0 -15
- package/lib/mjs/fingerprint/FingerprintJs.js.map +0 -1
- package/lib/mjs/policies/2FaPolicy.d.ts +0 -8
- package/lib/mjs/policies/2FaPolicy.d.ts.map +0 -1
- package/lib/mjs/policies/2FaPolicy.js +0 -28
- package/lib/mjs/policies/2FaPolicy.js.map +0 -1
- package/lib/mjs/policies/captchaPolicy.d.ts +0 -2
- package/lib/mjs/policies/captchaPolicy.d.ts.map +0 -1
- package/lib/mjs/policies/captchaPolicy.js +0 -2
- package/lib/mjs/policies/captchaPolicy.js.map +0 -1
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const LoginDtoSchema: {
|
|
2
|
-
$schema: string;
|
|
3
|
-
title: string;
|
|
4
|
-
type: string;
|
|
5
|
-
properties: {
|
|
6
|
-
Login: {
|
|
7
|
-
type: string;
|
|
8
|
-
format: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
required: string[];
|
|
12
|
-
};
|
|
13
|
-
export declare class UserLoginDto {
|
|
14
|
-
Email: string;
|
|
15
|
-
constructor(data: any);
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=login-dto.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"login-dto.d.ts","sourceRoot":"","sources":["../../../src/dto/login-dto.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;;;;;;;;;CAQ1B,CAAC;AAEF,qBACa,YAAY;IAChB,KAAK,EAAE,MAAM,CAAC;gBAET,IAAI,EAAE,GAAG;CAGtB"}
|
package/lib/mjs/dto/login-dto.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Schema } from '@spinajs/validation';
|
|
11
|
-
export const LoginDtoSchema = {
|
|
12
|
-
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
13
|
-
title: 'login DTO',
|
|
14
|
-
type: 'object',
|
|
15
|
-
properties: {
|
|
16
|
-
Login: { type: 'string', format: 'email' },
|
|
17
|
-
},
|
|
18
|
-
required: ['Email'],
|
|
19
|
-
};
|
|
20
|
-
let UserLoginDto = class UserLoginDto {
|
|
21
|
-
constructor(data) {
|
|
22
|
-
Object.assign(this, data);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
UserLoginDto = __decorate([
|
|
26
|
-
Schema(LoginDtoSchema),
|
|
27
|
-
__metadata("design:paramtypes", [Object])
|
|
28
|
-
], UserLoginDto);
|
|
29
|
-
export { UserLoginDto };
|
|
30
|
-
//# sourceMappingURL=login-dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"login-dto.js","sourceRoot":"","sources":["../../../src/dto/login-dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,OAAO,EAAE,yCAAyC;IAClD,KAAK,EAAE,WAAW;IAClB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE;KAC3C;IACD,QAAQ,EAAE,CAAC,OAAO,CAAC;CACpB,CAAC;AAGK,IAAM,YAAY,GAAlB,MAAM,YAAY;IAGvB,YAAY,IAAS;QACnB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5B,CAAC;CACF,CAAA;AANY,YAAY;IADxB,MAAM,CAAC,cAAc,CAAC;;GACV,YAAY,CAMxB;SANY,YAAY"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare const PasswordDtoSchema: {
|
|
2
|
-
$schema: string;
|
|
3
|
-
title: string;
|
|
4
|
-
type: string;
|
|
5
|
-
properties: {
|
|
6
|
-
OldPassword: {
|
|
7
|
-
type: string;
|
|
8
|
-
maxLength: number;
|
|
9
|
-
minLength: number;
|
|
10
|
-
};
|
|
11
|
-
Password: {
|
|
12
|
-
type: string;
|
|
13
|
-
maxLength: number;
|
|
14
|
-
minLength: number;
|
|
15
|
-
};
|
|
16
|
-
ConfirmPassword: {
|
|
17
|
-
type: string;
|
|
18
|
-
maxLength: number;
|
|
19
|
-
minLength: number;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
required: string[];
|
|
23
|
-
};
|
|
24
|
-
export declare class PasswordDto {
|
|
25
|
-
OldPassword: string;
|
|
26
|
-
Password: string;
|
|
27
|
-
ConfirmPassword: string;
|
|
28
|
-
constructor(data: any);
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=password-dto.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"password-dto.d.ts","sourceRoot":"","sources":["../../../src/dto/password-dto.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;CAU7B,CAAC;AAEF,qBACa,WAAW;IACf,WAAW,EAAE,MAAM,CAAC;IAEpB,QAAQ,EAAE,MAAM,CAAC;IAEjB,eAAe,EAAE,MAAM,CAAC;gBAEnB,IAAI,EAAE,GAAG;CAGtB"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Schema } from '@spinajs/validation';
|
|
11
|
-
export const PasswordDtoSchema = {
|
|
12
|
-
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
13
|
-
title: 'User password DTO',
|
|
14
|
-
type: 'object',
|
|
15
|
-
properties: {
|
|
16
|
-
OldPassword: { type: 'string', maxLength: 32, minLength: 6 },
|
|
17
|
-
Password: { type: 'string', maxLength: 32, minLength: 6 },
|
|
18
|
-
ConfirmPassword: { type: 'string', maxLength: 32, minLength: 6 },
|
|
19
|
-
},
|
|
20
|
-
required: ['OldPassword', 'Password', 'ConfirmPassword'],
|
|
21
|
-
};
|
|
22
|
-
let PasswordDto = class PasswordDto {
|
|
23
|
-
constructor(data) {
|
|
24
|
-
Object.assign(this, data);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
PasswordDto = __decorate([
|
|
28
|
-
Schema(PasswordDtoSchema),
|
|
29
|
-
__metadata("design:paramtypes", [Object])
|
|
30
|
-
], PasswordDto);
|
|
31
|
-
export { PasswordDto };
|
|
32
|
-
//# sourceMappingURL=password-dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"password-dto.js","sourceRoot":"","sources":["../../../src/dto/password-dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,OAAO,EAAE,yCAAyC;IAClD,KAAK,EAAE,mBAAmB;IAC1B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE;QAC5D,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE;QACzD,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE;KACjE;IACD,QAAQ,EAAE,CAAC,aAAa,EAAE,UAAU,EAAE,iBAAiB,CAAC;CACzD,CAAC;AAGK,IAAM,WAAW,GAAjB,MAAM,WAAW;IAOtB,YAAY,IAAS;QACnB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5B,CAAC;CACF,CAAA;AAVY,WAAW;IADvB,MAAM,CAAC,iBAAiB,CAAC;;GACb,WAAW,CAUvB;SAVY,WAAW"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare const RestorePasswordDtoSchema: {
|
|
2
|
-
$schema: string;
|
|
3
|
-
title: string;
|
|
4
|
-
type: string;
|
|
5
|
-
properties: {
|
|
6
|
-
Password: {
|
|
7
|
-
type: string;
|
|
8
|
-
maxLength: number;
|
|
9
|
-
minLength: number;
|
|
10
|
-
};
|
|
11
|
-
ConfirmPassword: {
|
|
12
|
-
type: string;
|
|
13
|
-
maxLength: number;
|
|
14
|
-
minLength: number;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
required: string[];
|
|
18
|
-
};
|
|
19
|
-
export declare class RestorePasswordDto {
|
|
20
|
-
Password: string;
|
|
21
|
-
ConfirmPassword: string;
|
|
22
|
-
constructor(data: any);
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=restore-password-dto.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"restore-password-dto.d.ts","sourceRoot":"","sources":["../../../src/dto/restore-password-dto.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;CASpC,CAAC;AAEF,qBACa,kBAAkB;IACtB,QAAQ,EAAE,MAAM,CAAC;IAEjB,eAAe,EAAE,MAAM,CAAC;gBAEnB,IAAI,EAAE,GAAG;CAGtB"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Schema } from '@spinajs/validation';
|
|
11
|
-
export const RestorePasswordDtoSchema = {
|
|
12
|
-
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
13
|
-
title: 'User password DTO',
|
|
14
|
-
type: 'object',
|
|
15
|
-
properties: {
|
|
16
|
-
Password: { type: 'string', maxLength: 32, minLength: 6 },
|
|
17
|
-
ConfirmPassword: { type: 'string', maxLength: 32, minLength: 6 },
|
|
18
|
-
},
|
|
19
|
-
required: ['Password', 'ConfirmPassword'],
|
|
20
|
-
};
|
|
21
|
-
let RestorePasswordDto = class RestorePasswordDto {
|
|
22
|
-
constructor(data) {
|
|
23
|
-
Object.assign(this, data);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
RestorePasswordDto = __decorate([
|
|
27
|
-
Schema(RestorePasswordDtoSchema),
|
|
28
|
-
__metadata("design:paramtypes", [Object])
|
|
29
|
-
], RestorePasswordDto);
|
|
30
|
-
export { RestorePasswordDto };
|
|
31
|
-
//# sourceMappingURL=restore-password-dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"restore-password-dto.js","sourceRoot":"","sources":["../../../src/dto/restore-password-dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,OAAO,EAAE,yCAAyC;IAClD,KAAK,EAAE,mBAAmB;IAC1B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE;QACzD,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE;KACjE;IACD,QAAQ,EAAE,CAAC,UAAU,EAAE,iBAAiB,CAAC;CAC1C,CAAC;AAGK,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAK7B,YAAY,IAAS;QACnB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5B,CAAC;CACF,CAAA;AARY,kBAAkB;IAD9B,MAAM,CAAC,wBAAwB,CAAC;;GACpB,kBAAkB,CAQ9B;SARY,kBAAkB"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const TokenDtoSchema: {
|
|
2
|
-
$schema: string;
|
|
3
|
-
title: string;
|
|
4
|
-
type: string;
|
|
5
|
-
properties: {
|
|
6
|
-
Token: {
|
|
7
|
-
type: string;
|
|
8
|
-
maxLength: number;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export declare class TokenDto {
|
|
13
|
-
Token: string;
|
|
14
|
-
constructor(data: any);
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=token-dto.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"token-dto.d.ts","sourceRoot":"","sources":["../../../src/dto/token-dto.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc;;;;;;;;;;CAO1B,CAAC;AAEF,qBACa,QAAQ;IACZ,KAAK,EAAE,MAAM,CAAC;gBAET,IAAI,EAAE,GAAG;CAGtB"}
|
package/lib/mjs/dto/token-dto.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Schema } from '@spinajs/validation';
|
|
11
|
-
export const TokenDtoSchema = {
|
|
12
|
-
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
13
|
-
title: 'Token DTO',
|
|
14
|
-
type: 'object',
|
|
15
|
-
properties: {
|
|
16
|
-
Token: { type: 'string', maxLength: 64 },
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
let TokenDto = class TokenDto {
|
|
20
|
-
constructor(data) {
|
|
21
|
-
Object.assign(this, data);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
TokenDto = __decorate([
|
|
25
|
-
Schema(TokenDtoSchema),
|
|
26
|
-
__metadata("design:paramtypes", [Object])
|
|
27
|
-
], TokenDto);
|
|
28
|
-
export { TokenDto };
|
|
29
|
-
//# sourceMappingURL=token-dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"token-dto.js","sourceRoot":"","sources":["../../../src/dto/token-dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,OAAO,EAAE,yCAAyC;IAClD,KAAK,EAAE,WAAW;IAClB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE;KACzC;CACF,CAAC;AAGK,IAAM,QAAQ,GAAd,MAAM,QAAQ;IAGnB,YAAY,IAAS;QACnB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5B,CAAC;CACF,CAAA;AANY,QAAQ;IADpB,MAAM,CAAC,cAAc,CAAC;;GACV,QAAQ,CAMpB;SANY,QAAQ"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare const UserDtoSchema: {
|
|
2
|
-
$schema: string;
|
|
3
|
-
title: string;
|
|
4
|
-
type: string;
|
|
5
|
-
properties: {
|
|
6
|
-
Email: {
|
|
7
|
-
type: string;
|
|
8
|
-
format: string;
|
|
9
|
-
maxLength: number;
|
|
10
|
-
};
|
|
11
|
-
Login: {
|
|
12
|
-
type: string;
|
|
13
|
-
maxLength: number;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export declare class UserDto {
|
|
18
|
-
Email: string;
|
|
19
|
-
Login: string;
|
|
20
|
-
constructor(data: any);
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=user-dto.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user-dto.d.ts","sourceRoot":"","sources":["../../../src/dto/user-dto.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;CAQzB,CAAC;AAEF,qBACa,OAAO;IACX,KAAK,EAAE,MAAM,CAAC;IAEd,KAAK,EAAE,MAAM,CAAC;gBAET,IAAI,EAAE,GAAG;CAGtB"}
|
package/lib/mjs/dto/user-dto.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Schema } from '@spinajs/validation';
|
|
11
|
-
export const UserDtoSchema = {
|
|
12
|
-
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
13
|
-
title: 'User DTO',
|
|
14
|
-
type: 'object',
|
|
15
|
-
properties: {
|
|
16
|
-
Email: { type: 'string', format: 'email', maxLength: 64 },
|
|
17
|
-
Login: { type: 'string', maxLength: 64 },
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
let UserDto = class UserDto {
|
|
21
|
-
constructor(data) {
|
|
22
|
-
Object.assign(this, data);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
UserDto = __decorate([
|
|
26
|
-
Schema(UserDtoSchema),
|
|
27
|
-
__metadata("design:paramtypes", [Object])
|
|
28
|
-
], UserDto);
|
|
29
|
-
export { UserDto };
|
|
30
|
-
//# sourceMappingURL=user-dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user-dto.js","sourceRoot":"","sources":["../../../src/dto/user-dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,yCAAyC;IAClD,KAAK,EAAE,UAAU;IACjB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE;QACzD,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE;KACzC;CACF,CAAC;AAGK,IAAM,OAAO,GAAb,MAAM,OAAO;IAKlB,YAAY,IAAS;QACnB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5B,CAAC;CACF,CAAA;AARY,OAAO;IADnB,MAAM,CAAC,aAAa,CAAC;;GACT,OAAO,CAQnB;SARY,OAAO"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare const UserLoginDtoSchema: {
|
|
2
|
-
$schema: string;
|
|
3
|
-
title: string;
|
|
4
|
-
type: string;
|
|
5
|
-
properties: {
|
|
6
|
-
Login: {
|
|
7
|
-
type: string;
|
|
8
|
-
format: string;
|
|
9
|
-
};
|
|
10
|
-
Password: {
|
|
11
|
-
type: string;
|
|
12
|
-
maxLength: number;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
required: string[];
|
|
16
|
-
};
|
|
17
|
-
export declare class UserLoginDto {
|
|
18
|
-
Email: string;
|
|
19
|
-
Password: string;
|
|
20
|
-
constructor(data: any);
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=userLogin-dto.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userLogin-dto.d.ts","sourceRoot":"","sources":["../../../src/dto/userLogin-dto.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;CAS9B,CAAC;AAEF,qBACa,YAAY;IAChB,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,EAAE,MAAM,CAAC;gBAEZ,IAAI,EAAE,GAAG;CAGtB"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Schema } from '@spinajs/validation';
|
|
11
|
-
export const UserLoginDtoSchema = {
|
|
12
|
-
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
13
|
-
title: 'User login DTO',
|
|
14
|
-
type: 'object',
|
|
15
|
-
properties: {
|
|
16
|
-
Login: { type: 'string', format: 'email' },
|
|
17
|
-
Password: { type: 'string', maxLength: 32 },
|
|
18
|
-
},
|
|
19
|
-
required: ['Email', 'Password'],
|
|
20
|
-
};
|
|
21
|
-
let UserLoginDto = class UserLoginDto {
|
|
22
|
-
constructor(data) {
|
|
23
|
-
Object.assign(this, data);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
UserLoginDto = __decorate([
|
|
27
|
-
Schema(UserLoginDtoSchema),
|
|
28
|
-
__metadata("design:paramtypes", [Object])
|
|
29
|
-
], UserLoginDto);
|
|
30
|
-
export { UserLoginDto };
|
|
31
|
-
//# sourceMappingURL=userLogin-dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userLogin-dto.js","sourceRoot":"","sources":["../../../src/dto/userLogin-dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,OAAO,EAAE,yCAAyC;IAClD,KAAK,EAAE,gBAAgB;IACvB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE;QAC1C,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE;KAC5C;IACD,QAAQ,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC;CAChC,CAAC;AAGK,IAAM,YAAY,GAAlB,MAAM,YAAY;IAKvB,YAAY,IAAS;QACnB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5B,CAAC;CACF,CAAA;AARY,YAAY;IADxB,MAAM,CAAC,kBAAkB,CAAC;;GACd,YAAY,CAQxB;SARY,YAAY"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserLoginFailed.d.ts","sourceRoot":"","sources":["../../../src/events/UserLoginFailed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAS,MAAM,gBAAgB,CAAC;AAEnD,qBACa,eAAgB,SAAQ,UAAU;IAC1B,QAAQ,EAAE,MAAM;gBAAhB,QAAQ,EAAE,MAAM;CAGpC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { QueueEvent, Event } from '@spinajs/queue';
|
|
11
|
-
let UserLoginFailed = class UserLoginFailed extends QueueEvent {
|
|
12
|
-
constructor(UserUUID) {
|
|
13
|
-
super();
|
|
14
|
-
this.UserUUID = UserUUID;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
UserLoginFailed = __decorate([
|
|
18
|
-
Event(),
|
|
19
|
-
__metadata("design:paramtypes", [String])
|
|
20
|
-
], UserLoginFailed);
|
|
21
|
-
export { UserLoginFailed };
|
|
22
|
-
//# sourceMappingURL=UserLoginFailed.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserLoginFailed.js","sourceRoot":"","sources":["../../../src/events/UserLoginFailed.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAG5C,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,UAAU;IAC7C,YAAmB,QAAgB;QACjC,KAAK,EAAE,CAAC;QADS,aAAQ,GAAR,QAAQ,CAAQ;IAEnC,CAAC;CACF,CAAA;AAJY,eAAe;IAD3B,KAAK,EAAE;;GACK,eAAe,CAI3B;SAJY,eAAe"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserLoginSuccess.d.ts","sourceRoot":"","sources":["../../../src/events/UserLoginSuccess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAS,MAAM,gBAAgB,CAAC;AAEnD,qBACa,gBAAiB,SAAQ,UAAU;IAC3B,QAAQ,EAAE,MAAM;gBAAhB,QAAQ,EAAE,MAAM;CAGpC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { QueueEvent, Event } from '@spinajs/queue';
|
|
11
|
-
let UserLoginSuccess = class UserLoginSuccess extends QueueEvent {
|
|
12
|
-
constructor(UserUUID) {
|
|
13
|
-
super();
|
|
14
|
-
this.UserUUID = UserUUID;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
UserLoginSuccess = __decorate([
|
|
18
|
-
Event(),
|
|
19
|
-
__metadata("design:paramtypes", [String])
|
|
20
|
-
], UserLoginSuccess);
|
|
21
|
-
export { UserLoginSuccess };
|
|
22
|
-
//# sourceMappingURL=UserLoginSuccess.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserLoginSuccess.js","sourceRoot":"","sources":["../../../src/events/UserLoginSuccess.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAG5C,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,UAAU;IAC9C,YAAmB,QAAgB;QACjC,KAAK,EAAE,CAAC;QADS,aAAQ,GAAR,QAAQ,CAAQ;IAEnC,CAAC;CACF,CAAA;AAJY,gBAAgB;IAD5B,KAAK,EAAE;;GACK,gBAAgB,CAI5B;SAJY,gBAAgB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserPassordRestore.d.ts","sourceRoot":"","sources":["../../../src/events/UserPassordRestore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAS,MAAM,gBAAgB,CAAC;AAEnD,qBACa,mBAAoB,SAAQ,UAAU;IAC9B,QAAQ,EAAE,MAAM;IAAS,UAAU,EAAE,MAAM;gBAA3C,QAAQ,EAAE,MAAM,EAAS,UAAU,EAAE,MAAM;CAG/D"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { QueueEvent, Event } from '@spinajs/queue';
|
|
11
|
-
let UserPasswordRestore = class UserPasswordRestore extends QueueEvent {
|
|
12
|
-
constructor(UserUUID, resetToken) {
|
|
13
|
-
super();
|
|
14
|
-
this.UserUUID = UserUUID;
|
|
15
|
-
this.resetToken = resetToken;
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
UserPasswordRestore = __decorate([
|
|
19
|
-
Event(),
|
|
20
|
-
__metadata("design:paramtypes", [String, String])
|
|
21
|
-
], UserPasswordRestore);
|
|
22
|
-
export { UserPasswordRestore };
|
|
23
|
-
//# sourceMappingURL=UserPassordRestore.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserPassordRestore.js","sourceRoot":"","sources":["../../../src/events/UserPassordRestore.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAG5C,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,UAAU;IACjD,YAAmB,QAAgB,EAAS,UAAkB;QAC5D,KAAK,EAAE,CAAC;QADS,aAAQ,GAAR,QAAQ,CAAQ;QAAS,eAAU,GAAV,UAAU,CAAQ;IAE9D,CAAC;CACF,CAAA;AAJY,mBAAmB;IAD/B,KAAK,EAAE;;GACK,mBAAmB,CAI/B;SAJY,mBAAmB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FingerprintJs.d.ts","sourceRoot":"","sources":["../../../src/fingerprint/FingerprintJs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,qBACa,aAAc,SAAQ,mBAAmB;CAAG"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { Injectable } from '@spinajs/di';
|
|
8
|
-
import { FingerprintProvider } from '../interfaces.js';
|
|
9
|
-
let FingerprintJs = class FingerprintJs extends FingerprintProvider {
|
|
10
|
-
};
|
|
11
|
-
FingerprintJs = __decorate([
|
|
12
|
-
Injectable(FingerprintProvider)
|
|
13
|
-
], FingerprintJs);
|
|
14
|
-
export { FingerprintJs };
|
|
15
|
-
//# sourceMappingURL=FingerprintJs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FingerprintJs.js","sourceRoot":"","sources":["../../../src/fingerprint/FingerprintJs.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAGhD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,mBAAmB;CAAG,CAAA;AAA5C,aAAa;IADzB,UAAU,CAAC,mBAAmB,CAAC;GACnB,aAAa,CAA+B;SAA5C,aAAa"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BasePolicy } from '@spinajs/http';
|
|
2
|
-
import { TwoFactorAuthConfig } from '../interfaces.js';
|
|
3
|
-
export declare class TwoFacRouteEnabled extends BasePolicy {
|
|
4
|
-
protected TwoFactorConfig: TwoFactorAuthConfig;
|
|
5
|
-
isEnabled(): boolean;
|
|
6
|
-
execute(): Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=2FaPolicy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"2FaPolicy.d.ts","sourceRoot":"","sources":["../../../src/policies/2FaPolicy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,qBAAa,kBAAmB,SAAQ,UAAU;IAEhD,SAAS,CAAC,eAAe,EAAE,mBAAmB,CAAC;IAExC,SAAS,IAAI,OAAO;IAGpB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAOhC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { InvalidOperation } from '@spinajs/exceptions';
|
|
11
|
-
import { Config } from '@spinajs/configuration';
|
|
12
|
-
import { BasePolicy } from '@spinajs/http';
|
|
13
|
-
export class TwoFacRouteEnabled extends BasePolicy {
|
|
14
|
-
isEnabled() {
|
|
15
|
-
return true;
|
|
16
|
-
}
|
|
17
|
-
execute() {
|
|
18
|
-
if (this.TwoFactorConfig.enabled === false) {
|
|
19
|
-
throw new InvalidOperation('2 factor auth is not enabled');
|
|
20
|
-
}
|
|
21
|
-
return Promise.resolve();
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
__decorate([
|
|
25
|
-
Config('rbac.twoFactorAuth'),
|
|
26
|
-
__metadata("design:type", Object)
|
|
27
|
-
], TwoFacRouteEnabled.prototype, "TwoFactorConfig", void 0);
|
|
28
|
-
//# sourceMappingURL=2FaPolicy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"2FaPolicy.js","sourceRoot":"","sources":["../../../src/policies/2FaPolicy.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,MAAM,OAAO,kBAAmB,SAAQ,UAAU;IAIzC,SAAS;QACd,OAAO,IAAI,CAAC;IACd,CAAC;IACM,OAAO;QACZ,IAAI,IAAI,CAAC,eAAe,CAAC,OAAO,KAAK,KAAK,EAAE;YAC1C,MAAM,IAAI,gBAAgB,CAAC,8BAA8B,CAAC,CAAC;SAC5D;QAED,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;CACF;AAbC;IAAC,MAAM,CAAC,oBAAoB,CAAC;;2DACkB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"captchaPolicy.d.ts","sourceRoot":"","sources":["../../../src/policies/captchaPolicy.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"captchaPolicy.js","sourceRoot":"","sources":["../../../src/policies/captchaPolicy.ts"],"names":[],"mappings":""}
|