tering-serieuze-types 1.2.2 → 1.2.4
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/index.d.ts +2 -0
- package/interfaces/index.ts +41 -0
- package/package.json +1 -8
- package/build.js +0 -7
- package/dist/index.js +0 -62
- package/dist/index.js.map +0 -7
- package/src/dto/index.ts +0 -41
- package/src/index.ts +0 -1
- package/tsconfig.json +0 -21
package/index.d.ts
CHANGED
package/interfaces/index.ts
CHANGED
|
@@ -3,3 +3,44 @@ export interface ToggleableUserInterfaceProperties {
|
|
|
3
3
|
isBanned: boolean;
|
|
4
4
|
playJinglesLocal: boolean;
|
|
5
5
|
}
|
|
6
|
+
|
|
7
|
+
export interface PlayJingleDto {
|
|
8
|
+
folder: string;
|
|
9
|
+
|
|
10
|
+
file: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface AddUserDto {
|
|
14
|
+
email: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface RemoveUserDto {
|
|
18
|
+
id: number;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface ToggleBoolDto {
|
|
22
|
+
id: number;
|
|
23
|
+
field: keyof ToggleableUserInterfaceProperties;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface EmulateFireDepartmentDto {
|
|
27
|
+
city: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface RemoveButtonDto {
|
|
31
|
+
buttonId: string;
|
|
32
|
+
owner: number;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface SaveButtonEventDto {
|
|
36
|
+
ButtonSingleClick: string[];
|
|
37
|
+
ButtonDoubleClick: string[];
|
|
38
|
+
ButtonHold: string[];
|
|
39
|
+
|
|
40
|
+
[key: string]: string[];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface HandleClickDto {
|
|
44
|
+
bdAddr: string;
|
|
45
|
+
clickinterface: string;
|
|
46
|
+
}
|
package/package.json
CHANGED
|
@@ -1,21 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tering-serieuze-types",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
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": "node build"
|
|
12
|
-
},
|
|
13
|
-
"main": "dist/index.js",
|
|
14
10
|
"types": "index.d.ts",
|
|
15
11
|
"devDependencies": {
|
|
16
12
|
"prettier": "^2.8.0"
|
|
17
|
-
},
|
|
18
|
-
"dependencies": {
|
|
19
|
-
"esbuild": "^0.16.2"
|
|
20
13
|
}
|
|
21
14
|
}
|
package/build.js
DELETED
package/dist/index.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/index.ts
|
|
21
|
-
var src_exports = {};
|
|
22
|
-
__export(src_exports, {
|
|
23
|
-
AddUserDto: () => AddUserDto,
|
|
24
|
-
EmulateFireDepartmentDto: () => EmulateFireDepartmentDto,
|
|
25
|
-
HandleClickDto: () => HandleClickDto,
|
|
26
|
-
PlayJingleDto: () => PlayJingleDto,
|
|
27
|
-
RemoveButtonDto: () => RemoveButtonDto,
|
|
28
|
-
RemoveUserDto: () => RemoveUserDto,
|
|
29
|
-
SaveButtonEventDto: () => SaveButtonEventDto,
|
|
30
|
-
ToggleBoolDto: () => ToggleBoolDto
|
|
31
|
-
});
|
|
32
|
-
module.exports = __toCommonJS(src_exports);
|
|
33
|
-
|
|
34
|
-
// src/dto/index.ts
|
|
35
|
-
var PlayJingleDto = class {
|
|
36
|
-
};
|
|
37
|
-
var AddUserDto = class {
|
|
38
|
-
};
|
|
39
|
-
var RemoveUserDto = class {
|
|
40
|
-
};
|
|
41
|
-
var ToggleBoolDto = class {
|
|
42
|
-
};
|
|
43
|
-
var EmulateFireDepartmentDto = class {
|
|
44
|
-
};
|
|
45
|
-
var RemoveButtonDto = class {
|
|
46
|
-
};
|
|
47
|
-
var SaveButtonEventDto = class {
|
|
48
|
-
};
|
|
49
|
-
var HandleClickDto = class {
|
|
50
|
-
};
|
|
51
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
52
|
-
0 && (module.exports = {
|
|
53
|
-
AddUserDto,
|
|
54
|
-
EmulateFireDepartmentDto,
|
|
55
|
-
HandleClickDto,
|
|
56
|
-
PlayJingleDto,
|
|
57
|
-
RemoveButtonDto,
|
|
58
|
-
RemoveUserDto,
|
|
59
|
-
SaveButtonEventDto,
|
|
60
|
-
ToggleBoolDto
|
|
61
|
-
});
|
|
62
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/index.ts", "../src/dto/index.ts"],
|
|
4
|
-
"sourcesContent": ["export * from './dto';\n", "import { ToggleableUserInterfaceProperties } from '../../interfaces';\n\nexport class PlayJingleDto {\n folder: string;\n\n file: string;\n}\n\nexport class AddUserDto {\n email: string;\n}\n\nexport class RemoveUserDto {\n id: number;\n}\n\nexport class ToggleBoolDto {\n id: number;\n field: keyof ToggleableUserInterfaceProperties;\n}\n\nexport class EmulateFireDepartmentDto {\n city: string;\n}\n\nexport class RemoveButtonDto {\n buttonId: string;\n owner: number;\n}\n\nexport class SaveButtonEventDto {\n ButtonSingleClick: string[];\n ButtonDoubleClick: string[];\n ButtonHold: string[];\n [key: string]: string[];\n}\n\nexport class HandleClickDto {\n bdAddr: string;\n clickType: string;\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEO,IAAM,gBAAN,MAAoB;AAI3B;AAEO,IAAM,aAAN,MAAiB;AAExB;AAEO,IAAM,gBAAN,MAAoB;AAE3B;AAEO,IAAM,gBAAN,MAAoB;AAG3B;AAEO,IAAM,2BAAN,MAA+B;AAEtC;AAEO,IAAM,kBAAN,MAAsB;AAG7B;AAEO,IAAM,qBAAN,MAAyB;AAKhC;AAEO,IAAM,iBAAN,MAAqB;AAG5B;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/src/dto/index.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
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/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dto';
|
package/tsconfig.json
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// tsconfig.json
|
|
2
|
-
{
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "es2018",
|
|
5
|
-
"module": "ESNext",
|
|
6
|
-
"moduleResolution": "node",
|
|
7
|
-
"lib": ["esnext", "es6", "esnext.asynciterable", "dom"],
|
|
8
|
-
"esModuleInterop": true,
|
|
9
|
-
"allowJs": true,
|
|
10
|
-
"sourceMap": true,
|
|
11
|
-
"strict": true,
|
|
12
|
-
"noEmit": true,
|
|
13
|
-
"baseUrl": ".",
|
|
14
|
-
"skipLibCheck": true,
|
|
15
|
-
"types": [
|
|
16
|
-
"@types/node",
|
|
17
|
-
"@types/jest"
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
"exclude": ["node_modules"]
|
|
21
|
-
}
|