tering-serieuze-types 1.0.0 → 1.2.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/.prettierrc ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "singleQuote": true,
3
+ "trailingComma": "all",
4
+ "tabWidth": 4,
5
+ "printWidth": 120,
6
+ }
package/dto/index.ts ADDED
@@ -0,0 +1,41 @@
1
+ import { ToggleableUserInterfaceProperties } from '../interfaces';
2
+
3
+ export class PlayJingleDto {
4
+ folder: string;
5
+
6
+ file: string;
7
+ }
8
+
9
+ export class AddUserDto {
10
+ email: string;
11
+ }
12
+
13
+ export class RemoveUserDto {
14
+ id: number;
15
+ }
16
+
17
+ export class ToggleBoolDto {
18
+ id: number;
19
+ field: keyof ToggleableUserInterfaceProperties;
20
+ }
21
+
22
+ export class EmulateFireDepartmentDto {
23
+ city: string;
24
+ }
25
+
26
+ export class RemoveButtonDto {
27
+ buttonId: string;
28
+ owner: number;
29
+ }
30
+
31
+ export class SaveButtonEventDto {
32
+ ButtonSingleClick: string[];
33
+ ButtonDoubleClick: string[];
34
+ ButtonHold: string[];
35
+ [key: string]: string[];
36
+ }
37
+
38
+ export class HandleClickDto {
39
+ bdAddr: string;
40
+ clickType: string;
41
+ }
package/index.d.ts CHANGED
@@ -11,6 +11,7 @@ export type FlicButtonBatteryPayload = FlicButtonPayload & {
11
11
  }
12
12
 
13
13
  export type BrandweerPayload = {
14
+ city: string,
14
15
  title: string,
15
16
  description: string,
16
17
  pubDate: Date
@@ -0,0 +1,5 @@
1
+ export interface ToggleableUserInterfaceProperties {
2
+ isAdmin: boolean;
3
+ isBanned: boolean;
4
+ playJinglesLocal: boolean;
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tering-serieuze-types",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "Tering serieuze types",
5
5
  "main": "",
6
6
  "author": "Frank",
@@ -8,5 +8,8 @@
8
8
  "type": "git",
9
9
  "url": "https://gitlab.com/tering-serieuze-shit/tering-serieuze-types.git"
10
10
  },
11
- "types": "index.d.ts"
11
+ "types": "index.d.ts",
12
+ "devDependencies": {
13
+ "prettier": "^2.8.0"
14
+ }
12
15
  }