tering-serieuze-types 1.4.0 → 1.5.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.
- package/dist/index.js +9 -0
- package/interfaces/index.ts +1 -3
- package/package.json +5 -2
- package/src/index.ts +7 -0
package/dist/index.js
CHANGED
|
@@ -28,10 +28,12 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
28
28
|
// src/index.ts
|
|
29
29
|
var src_exports = {};
|
|
30
30
|
__export(src_exports, {
|
|
31
|
+
AddUserDto: () => AddUserDto,
|
|
31
32
|
PlayJingleDto: () => PlayJingleDto
|
|
32
33
|
});
|
|
33
34
|
module.exports = __toCommonJS(src_exports);
|
|
34
35
|
var import_swagger = require("@nestjs/swagger");
|
|
36
|
+
var import_class_validator = require("class-validator");
|
|
35
37
|
var PlayJingleDto = class {
|
|
36
38
|
};
|
|
37
39
|
__decorateClass([
|
|
@@ -40,7 +42,14 @@ __decorateClass([
|
|
|
40
42
|
__decorateClass([
|
|
41
43
|
(0, import_swagger.ApiProperty)({ type: String, example: "aan.mp3" })
|
|
42
44
|
], PlayJingleDto.prototype, "file", 2);
|
|
45
|
+
var AddUserDto = class {
|
|
46
|
+
};
|
|
47
|
+
__decorateClass([
|
|
48
|
+
(0, import_class_validator.IsEmail)(),
|
|
49
|
+
(0, import_swagger.ApiProperty)({ type: String, example: "info@example.com" })
|
|
50
|
+
], AddUserDto.prototype, "email", 2);
|
|
43
51
|
// Annotate the CommonJS export names for ESM import in node:
|
|
44
52
|
0 && (module.exports = {
|
|
53
|
+
AddUserDto,
|
|
45
54
|
PlayJingleDto
|
|
46
55
|
});
|
package/interfaces/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tering-serieuze-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Tering serieuze types",
|
|
5
5
|
"author": "Frank",
|
|
6
6
|
"repository": {
|
|
@@ -13,8 +13,11 @@
|
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"types": "index.d.ts",
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@nestjs/swagger": "^6.1.4",
|
|
17
16
|
"esbuild": "^0.16.10",
|
|
18
17
|
"prettier": "^2.8.0"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@nestjs/swagger": "^6.1.4",
|
|
21
|
+
"class-validator": "^0.13.2"
|
|
19
22
|
}
|
|
20
23
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
+
import { IsEmail } from 'class-validator';
|
|
2
3
|
|
|
3
4
|
export class PlayJingleDto {
|
|
4
5
|
@ApiProperty({ type: String, example: 'keeskankerkachel' })
|
|
@@ -7,3 +8,9 @@ export class PlayJingleDto {
|
|
|
7
8
|
@ApiProperty({ type: String, example: 'aan.mp3' })
|
|
8
9
|
file: string;
|
|
9
10
|
}
|
|
11
|
+
|
|
12
|
+
export class AddUserDto {
|
|
13
|
+
@IsEmail()
|
|
14
|
+
@ApiProperty({ type: String, example: 'info@example.com' })
|
|
15
|
+
email: string;
|
|
16
|
+
}
|