ad2app-lib 1.7.0 → 1.7.1
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/types/I_User.d.ts +5 -0
- package/dist/types/I_User.js +19 -1
- package/package.json +1 -1
- package/src/types/I_User.ts +15 -1
package/dist/types/I_User.d.ts
CHANGED
package/dist/types/I_User.js
CHANGED
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.I_UserAuthenticateDTO = exports.I_UserFindOneDTO = exports.I_UserSignUpDTO = exports.I_UserSignInDTO = exports.I_UserCreateDTO = exports.UserRoles = exports.I_SignedUser = exports.I_User = void 0;
|
|
12
|
+
exports.I_WebSocialSignInDTO = exports.I_UserAuthenticateDTO = exports.I_UserFindOneDTO = exports.I_UserSignUpDTO = exports.I_UserSignInDTO = exports.I_UserCreateDTO = exports.UserRoles = exports.I_SignedUser = exports.I_User = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
class I_User {
|
|
15
15
|
}
|
|
@@ -90,3 +90,21 @@ __decorate([
|
|
|
90
90
|
(0, class_validator_1.IsNotEmpty)(),
|
|
91
91
|
__metadata("design:type", String)
|
|
92
92
|
], I_UserAuthenticateDTO.prototype, "accessToken", void 0);
|
|
93
|
+
class I_WebSocialSignInDTO {
|
|
94
|
+
}
|
|
95
|
+
exports.I_WebSocialSignInDTO = I_WebSocialSignInDTO;
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
98
|
+
(0, class_validator_1.IsString)(),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], I_WebSocialSignInDTO.prototype, "idToken", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, class_validator_1.IsOptional)(),
|
|
103
|
+
(0, class_validator_1.IsBoolean)(),
|
|
104
|
+
__metadata("design:type", Boolean)
|
|
105
|
+
], I_WebSocialSignInDTO.prototype, "termsAccepted", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, class_validator_1.IsOptional)(),
|
|
108
|
+
(0, class_validator_1.IsBoolean)(),
|
|
109
|
+
__metadata("design:type", Boolean)
|
|
110
|
+
], I_WebSocialSignInDTO.prototype, "privacyPolicyAccepted", void 0);
|
package/package.json
CHANGED
package/src/types/I_User.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsBoolean, IsNotEmpty } from 'class-validator';
|
|
1
|
+
import { IsBoolean, IsNotEmpty, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { I_Influencer } from './I_Influencer';
|
|
3
3
|
|
|
4
4
|
export class I_User {
|
|
@@ -75,3 +75,17 @@ export class I_UserAuthenticateDTO {
|
|
|
75
75
|
@IsNotEmpty()
|
|
76
76
|
accessToken: string;
|
|
77
77
|
}
|
|
78
|
+
|
|
79
|
+
export class I_WebSocialSignInDTO {
|
|
80
|
+
@IsNotEmpty()
|
|
81
|
+
@IsString()
|
|
82
|
+
idToken: string;
|
|
83
|
+
|
|
84
|
+
@IsOptional()
|
|
85
|
+
@IsBoolean()
|
|
86
|
+
termsAccepted?: boolean;
|
|
87
|
+
|
|
88
|
+
@IsOptional()
|
|
89
|
+
@IsBoolean()
|
|
90
|
+
privacyPolicyAccepted?: boolean;
|
|
91
|
+
}
|