tering-serieuze-types 1.3.2 → 1.4.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 ADDED
@@ -0,0 +1,46 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var __decorateClass = (decorators, target, key, kind) => {
19
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
20
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
21
+ if (decorator = decorators[i])
22
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
23
+ if (kind && result)
24
+ __defProp(target, key, result);
25
+ return result;
26
+ };
27
+
28
+ // src/index.ts
29
+ var src_exports = {};
30
+ __export(src_exports, {
31
+ PlayJingleDto: () => PlayJingleDto
32
+ });
33
+ module.exports = __toCommonJS(src_exports);
34
+ var import_swagger = require("@nestjs/swagger");
35
+ var PlayJingleDto = class {
36
+ };
37
+ __decorateClass([
38
+ (0, import_swagger.ApiProperty)({ type: String, example: "keeskankerkachel" })
39
+ ], PlayJingleDto.prototype, "folder", 2);
40
+ __decorateClass([
41
+ (0, import_swagger.ApiProperty)({ type: String, example: "aan.mp3" })
42
+ ], PlayJingleDto.prototype, "file", 2);
43
+ // Annotate the CommonJS export names for ESM import in node:
44
+ 0 && (module.exports = {
45
+ PlayJingleDto
46
+ });
package/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './interfaces';
2
+ export * from './src';
2
3
 
3
4
  export type FlicButtonPayload = {
4
5
  bdAddr: string;
@@ -18,3 +19,4 @@ export type BrandweerPayload = {
18
19
  description: string;
19
20
  pubDate: Date;
20
21
  };
22
+
@@ -26,7 +26,7 @@ export interface ButtonInterface {
26
26
  [key: string]: any;
27
27
  }
28
28
 
29
- export interface Jingle {
29
+ export interface JingleInterface {
30
30
  folder: string;
31
31
  file: string;
32
32
  keywords: string[];
@@ -39,12 +39,6 @@ export interface WebsocketAction {
39
39
  data: any;
40
40
  }
41
41
 
42
- export interface PlayJingleDto {
43
- folder: string;
44
-
45
- file: string;
46
- }
47
-
48
42
  export interface AddUserDto {
49
43
  email: string;
50
44
  }
package/package.json CHANGED
@@ -1,14 +1,20 @@
1
1
  {
2
2
  "name": "tering-serieuze-types",
3
- "version": "1.3.2",
3
+ "version": "1.4.0",
4
4
  "description": "Tering serieuze types",
5
5
  "author": "Frank",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://gitlab.com/tering-serieuze-shit/tering-serieuze-types.git"
9
9
  },
10
+ "scripts": {
11
+ "build": "esbuild src/index.ts --bundle --platform=node --outfile=dist/index.js --packages=external"
12
+ },
13
+ "main": "dist/index.js",
10
14
  "types": "index.d.ts",
11
15
  "devDependencies": {
16
+ "@nestjs/swagger": "^6.1.4",
17
+ "esbuild": "^0.16.10",
12
18
  "prettier": "^2.8.0"
13
19
  }
14
20
  }
package/src/index.ts ADDED
@@ -0,0 +1,9 @@
1
+ import { ApiProperty } from '@nestjs/swagger';
2
+
3
+ export class PlayJingleDto {
4
+ @ApiProperty({ type: String, example: 'keeskankerkachel' })
5
+ folder: string;
6
+
7
+ @ApiProperty({ type: String, example: 'aan.mp3' })
8
+ file: string;
9
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,6 @@
1
+ // tsconfig.json
2
+ {
3
+ "compilerOptions": {
4
+ "experimentalDecorators": true
5
+ }
6
+ }