grm-shared-library 1.1.67 → 1.1.69
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/cjs/modules/auth/dtos/login-mobile-user.dto.js +27 -0
- package/dist/cjs/modules/auth/dtos/login-mobile-user.dto.js.map +1 -0
- package/dist/cjs/modules/auth/index.js +1 -0
- package/dist/cjs/modules/auth/index.js.map +1 -1
- package/dist/cjs/modules/user/dtos/create-mobile-user.dto.js +5 -0
- package/dist/cjs/modules/user/dtos/create-mobile-user.dto.js.map +1 -1
- package/dist/esm/modules/auth/dtos/login-mobile-user.dto.js +23 -0
- package/dist/esm/modules/auth/dtos/login-mobile-user.dto.js.map +1 -0
- package/dist/esm/modules/auth/index.js +1 -0
- package/dist/esm/modules/auth/index.js.map +1 -1
- package/dist/esm/modules/user/dtos/create-mobile-user.dto.js +5 -0
- package/dist/esm/modules/user/dtos/create-mobile-user.dto.js.map +1 -1
- package/dist/types/modules/auth/dtos/login-mobile-user.dto.d.ts +4 -0
- package/dist/types/modules/auth/index.d.ts +1 -0
- package/dist/types/modules/user/dtos/create-mobile-user.dto.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.LoginMobileUserDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class LoginMobileUserDto {
|
|
15
|
+
}
|
|
16
|
+
exports.LoginMobileUserDto = LoginMobileUserDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsPhoneNumber)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], LoginMobileUserDto.prototype, "phoneNumber", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], LoginMobileUserDto.prototype, "verificationToken", void 0);
|
|
27
|
+
//# sourceMappingURL=login-mobile-user.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login-mobile-user.dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/login-mobile-user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsE;AAEtE,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AALG;IAFC,IAAA,+BAAa,GAAE;IACf,IAAA,4BAAU,GAAE;;uDACQ;AAIrB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACc"}
|
|
@@ -23,6 +23,7 @@ __exportStar(require("./dtos/forgot-password.dto"), exports);
|
|
|
23
23
|
__exportStar(require("./dtos/verify-otp.dto"), exports);
|
|
24
24
|
__exportStar(require("./dtos/resend-otp.dto"), exports);
|
|
25
25
|
__exportStar(require("./dtos/refresh-token.dto"), exports);
|
|
26
|
+
__exportStar(require("./dtos/login-mobile-user.dto"), exports);
|
|
26
27
|
// Interfaces
|
|
27
28
|
__exportStar(require("./interfaces/register-response"), exports);
|
|
28
29
|
__exportStar(require("./interfaces/login-response"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAO;AACP,sDAAoC;AACpC,mDAAiC;AACjC,4DAA0C;AAC1C,6DAA2C;AAC3C,6DAA2C;AAC3C,wDAAsC;AACtC,wDAAsC;AACtC,2DAAyC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAO;AACP,sDAAoC;AACpC,mDAAiC;AACjC,4DAA0C;AAC1C,6DAA2C;AAC3C,6DAA2C;AAC3C,wDAAsC;AACtC,wDAAsC;AACtC,2DAAyC;AACzC,+DAA6C;AAE7C,aAAa;AACb,iEAA+C;AAC/C,8DAA4C;AAE5C,QAAQ;AACR,qDAAmC"}
|
|
@@ -29,6 +29,11 @@ __decorate([
|
|
|
29
29
|
(0, class_validator_1.IsNotEmpty)(),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], CreateMobileUserDto.prototype, "phoneNumber", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsNumber)(),
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], CreateMobileUserDto.prototype, "controlCentreId", void 0);
|
|
32
37
|
__decorate([
|
|
33
38
|
(0, class_validator_1.IsNumber)(),
|
|
34
39
|
(0, class_validator_1.IsNotEmpty)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-mobile-user.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/create-mobile-user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAE1E,MAAa,mBAAmB;
|
|
1
|
+
{"version":3,"file":"create-mobile-user.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/create-mobile-user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAE1E,MAAa,mBAAmB;CAoB/B;AApBD,kDAoBC;AAjBG;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACC;AAId;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;;kDACE;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACQ;AAIrB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACY;AAIzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACW"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { IsNotEmpty, IsPhoneNumber, IsString } from "class-validator";
|
|
11
|
+
export class LoginMobileUserDto {
|
|
12
|
+
}
|
|
13
|
+
__decorate([
|
|
14
|
+
IsPhoneNumber(),
|
|
15
|
+
IsNotEmpty(),
|
|
16
|
+
__metadata("design:type", String)
|
|
17
|
+
], LoginMobileUserDto.prototype, "phoneNumber", void 0);
|
|
18
|
+
__decorate([
|
|
19
|
+
IsString(),
|
|
20
|
+
IsNotEmpty(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], LoginMobileUserDto.prototype, "verificationToken", void 0);
|
|
23
|
+
//# sourceMappingURL=login-mobile-user.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login-mobile-user.dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/login-mobile-user.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEtE,MAAM,OAAO,kBAAkB;CAQ9B;AALG;IAFC,aAAa,EAAE;IACf,UAAU,EAAE;;uDACQ;AAIrB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;6DACc"}
|
|
@@ -7,6 +7,7 @@ export * from './dtos/forgot-password.dto';
|
|
|
7
7
|
export * from './dtos/verify-otp.dto';
|
|
8
8
|
export * from './dtos/resend-otp.dto';
|
|
9
9
|
export * from './dtos/refresh-token.dto';
|
|
10
|
+
export * from './dtos/login-mobile-user.dto';
|
|
10
11
|
// Interfaces
|
|
11
12
|
export * from './interfaces/register-response';
|
|
12
13
|
export * from './interfaces/login-response';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO;AACP,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO;AACP,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAE7C,aAAa;AACb,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAE5C,QAAQ;AACR,cAAc,oBAAoB,CAAC"}
|
|
@@ -25,6 +25,11 @@ __decorate([
|
|
|
25
25
|
IsNotEmpty(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], CreateMobileUserDto.prototype, "phoneNumber", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
IsNumber(),
|
|
30
|
+
IsNotEmpty(),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], CreateMobileUserDto.prototype, "controlCentreId", void 0);
|
|
28
33
|
__decorate([
|
|
29
34
|
IsNumber(),
|
|
30
35
|
IsNotEmpty(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-mobile-user.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/create-mobile-user.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE1E,MAAM,OAAO,mBAAmB;
|
|
1
|
+
{"version":3,"file":"create-mobile-user.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/create-mobile-user.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE1E,MAAM,OAAO,mBAAmB;CAoB/B;AAjBG;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;iDACC;AAId;IAFC,OAAO,EAAE;IACT,UAAU,EAAE;;kDACE;AAIf;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;wDACQ;AAIrB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;4DACY;AAIzB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;2DACW"}
|
|
@@ -6,6 +6,7 @@ export * from './dtos/forgot-password.dto';
|
|
|
6
6
|
export * from './dtos/verify-otp.dto';
|
|
7
7
|
export * from './dtos/resend-otp.dto';
|
|
8
8
|
export * from './dtos/refresh-token.dto';
|
|
9
|
+
export * from './dtos/login-mobile-user.dto';
|
|
9
10
|
export * from './interfaces/register-response';
|
|
10
11
|
export * from './interfaces/login-response';
|
|
11
12
|
export * from './enums/otp-action';
|