tering-serieuze-types 2.10.0 → 2.12.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 +121 -90
- package/package.json +1 -1
- package/src/arduino.ts +28 -0
- package/src/index.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -48,6 +48,8 @@ __export(src_exports, {
|
|
|
48
48
|
SetWindowStateDto: () => SetWindowStateDto,
|
|
49
49
|
ToggleAbleUserPropertyEnum: () => ToggleAbleUserPropertyEnum,
|
|
50
50
|
ToggleBoolDto: () => ToggleBoolDto,
|
|
51
|
+
ToggleableHardwareDto: () => ToggleableHardwareDto,
|
|
52
|
+
ToggleableHardwareStateEnum: () => ToggleableHardwareStateEnum,
|
|
51
53
|
ToggleableUserProperties: () => ToggleableUserProperties,
|
|
52
54
|
TokenType: () => TokenType,
|
|
53
55
|
User: () => User,
|
|
@@ -56,7 +58,9 @@ __export(src_exports, {
|
|
|
56
58
|
WindowState: () => WindowState,
|
|
57
59
|
WindowStateApplication: () => WindowStateApplication,
|
|
58
60
|
WsUpdateStoreDto: () => WsUpdateStoreDto,
|
|
59
|
-
WsUpdateStoreSetAccount: () => WsUpdateStoreSetAccount
|
|
61
|
+
WsUpdateStoreSetAccount: () => WsUpdateStoreSetAccount,
|
|
62
|
+
ZwaailampStateDto: () => ZwaailampStateDto,
|
|
63
|
+
ZwaailampStateEnum: () => ZwaailampStateEnum
|
|
60
64
|
});
|
|
61
65
|
module.exports = __toCommonJS(src_exports);
|
|
62
66
|
|
|
@@ -145,14 +149,37 @@ __decorateClass([
|
|
|
145
149
|
(0, import_class_validator.IsString)()
|
|
146
150
|
], WindowState.prototype, "activeApplication", 2);
|
|
147
151
|
|
|
148
|
-
// src/
|
|
152
|
+
// src/arduino.ts
|
|
149
153
|
var import_swagger2 = require("@nestjs/swagger");
|
|
154
|
+
var import_class_validator2 = require("class-validator");
|
|
155
|
+
var ToggleableHardwareStateEnum = /* @__PURE__ */ ((ToggleableHardwareStateEnum2) => {
|
|
156
|
+
ToggleableHardwareStateEnum2["ON"] = "Aan.";
|
|
157
|
+
ToggleableHardwareStateEnum2["OFF"] = "Uit.";
|
|
158
|
+
return ToggleableHardwareStateEnum2;
|
|
159
|
+
})(ToggleableHardwareStateEnum || {});
|
|
160
|
+
var ToggleableHardwareDto = class {
|
|
161
|
+
state;
|
|
162
|
+
};
|
|
163
|
+
__decorateClass([
|
|
164
|
+
(0, import_swagger2.ApiProperty)({ enum: ToggleableHardwareStateEnum }),
|
|
165
|
+
(0, import_class_validator2.IsEnum)(ToggleableHardwareStateEnum)
|
|
166
|
+
], ToggleableHardwareDto.prototype, "state", 2);
|
|
167
|
+
var ZwaailampStateEnum = /* @__PURE__ */ ((ZwaailampStateEnum2) => {
|
|
168
|
+
ZwaailampStateEnum2["ON"] = "Aan.";
|
|
169
|
+
ZwaailampStateEnum2["OFF"] = "Uit.";
|
|
170
|
+
return ZwaailampStateEnum2;
|
|
171
|
+
})(ZwaailampStateEnum || {});
|
|
172
|
+
var ZwaailampStateDto = class extends ToggleableHardwareDto {
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
// src/authenticator.ts
|
|
176
|
+
var import_swagger3 = require("@nestjs/swagger");
|
|
150
177
|
var AuthenticationOptionsDto = class {
|
|
151
178
|
options;
|
|
152
179
|
token;
|
|
153
180
|
};
|
|
154
181
|
__decorateClass([
|
|
155
|
-
(0,
|
|
182
|
+
(0, import_swagger3.ApiProperty)({ type: String })
|
|
156
183
|
], AuthenticationOptionsDto.prototype, "token", 2);
|
|
157
184
|
var VerificationResponseDto = class {
|
|
158
185
|
verification;
|
|
@@ -160,17 +187,17 @@ var VerificationResponseDto = class {
|
|
|
160
187
|
};
|
|
161
188
|
|
|
162
189
|
// src/button.ts
|
|
163
|
-
var
|
|
190
|
+
var import_swagger6 = require("@nestjs/swagger");
|
|
164
191
|
|
|
165
192
|
// src/user.ts
|
|
166
|
-
var
|
|
193
|
+
var import_swagger5 = require("@nestjs/swagger");
|
|
167
194
|
var import_class_transformer3 = require("class-transformer");
|
|
168
|
-
var
|
|
195
|
+
var import_class_validator4 = require("class-validator");
|
|
169
196
|
|
|
170
197
|
// src/session.ts
|
|
171
|
-
var
|
|
198
|
+
var import_swagger4 = require("@nestjs/swagger");
|
|
172
199
|
var import_class_transformer2 = require("class-transformer");
|
|
173
|
-
var
|
|
200
|
+
var import_class_validator3 = require("class-validator");
|
|
174
201
|
var TokenType = /* @__PURE__ */ ((TokenType2) => {
|
|
175
202
|
TokenType2[TokenType2["Refresh"] = 0] = "Refresh";
|
|
176
203
|
TokenType2[TokenType2["Access"] = 1] = "Access";
|
|
@@ -185,30 +212,30 @@ var ApiToken = class {
|
|
|
185
212
|
lastUsed;
|
|
186
213
|
};
|
|
187
214
|
__decorateClass([
|
|
188
|
-
(0,
|
|
215
|
+
(0, import_swagger4.ApiProperty)({
|
|
189
216
|
type: String,
|
|
190
217
|
example: "fc532e57-66d6-4e92-9eb1-b08578d24b0b",
|
|
191
218
|
description: "Token ID, a random UUID"
|
|
192
219
|
})
|
|
193
220
|
], ApiToken.prototype, "id", 2);
|
|
194
221
|
__decorateClass([
|
|
195
|
-
(0,
|
|
222
|
+
(0, import_swagger4.ApiProperty)({
|
|
196
223
|
type: () => [User],
|
|
197
224
|
description: "User object"
|
|
198
225
|
})
|
|
199
226
|
], ApiToken.prototype, "user", 2);
|
|
200
227
|
__decorateClass([
|
|
201
|
-
(0,
|
|
228
|
+
(0, import_swagger4.ApiProperty)({ type: String, example: "Token name" })
|
|
202
229
|
], ApiToken.prototype, "name", 2);
|
|
203
230
|
__decorateClass([
|
|
204
|
-
(0,
|
|
231
|
+
(0, import_swagger4.ApiProperty)({
|
|
205
232
|
type: Date,
|
|
206
233
|
example: "2021-01-01T00:00:00.000Z",
|
|
207
234
|
description: "Timestamp of the creation of the api token"
|
|
208
235
|
})
|
|
209
236
|
], ApiToken.prototype, "created", 2);
|
|
210
237
|
__decorateClass([
|
|
211
|
-
(0,
|
|
238
|
+
(0, import_swagger4.ApiProperty)({
|
|
212
239
|
type: Date,
|
|
213
240
|
example: "2021-01-01T00:00:00.000Z",
|
|
214
241
|
description: "Timestamp of the last time the api token was used",
|
|
@@ -223,16 +250,16 @@ var Session = class {
|
|
|
223
250
|
name;
|
|
224
251
|
};
|
|
225
252
|
__decorateClass([
|
|
226
|
-
(0,
|
|
253
|
+
(0, import_swagger4.ApiProperty)({ type: Number, example: 123, description: "Session ID" })
|
|
227
254
|
], Session.prototype, "id", 2);
|
|
228
255
|
__decorateClass([
|
|
229
|
-
(0,
|
|
256
|
+
(0, import_swagger4.ApiProperty)({
|
|
230
257
|
type: () => [User],
|
|
231
258
|
description: "User object"
|
|
232
259
|
})
|
|
233
260
|
], Session.prototype, "user", 2);
|
|
234
261
|
__decorateClass([
|
|
235
|
-
(0,
|
|
262
|
+
(0, import_swagger4.ApiProperty)({
|
|
236
263
|
type: Number,
|
|
237
264
|
example: 5,
|
|
238
265
|
description: "Current number of the token. Updates when the refresh token is renewed.",
|
|
@@ -240,16 +267,16 @@ __decorateClass([
|
|
|
240
267
|
})
|
|
241
268
|
], Session.prototype, "lastTokenNumber", 2);
|
|
242
269
|
__decorateClass([
|
|
243
|
-
(0,
|
|
270
|
+
(0, import_swagger4.ApiProperty)({
|
|
244
271
|
type: Date,
|
|
245
272
|
example: "2021-01-01T00:00:00.000Z",
|
|
246
273
|
description: "Timestamp of the last time the session was used"
|
|
247
274
|
}),
|
|
248
|
-
(0,
|
|
275
|
+
(0, import_class_validator3.IsDate)(),
|
|
249
276
|
(0, import_class_transformer2.Type)(() => Date)
|
|
250
277
|
], Session.prototype, "lastUsed", 2);
|
|
251
278
|
__decorateClass([
|
|
252
|
-
(0,
|
|
279
|
+
(0, import_swagger4.ApiProperty)({ type: String, example: "Chrome on Windows", description: "Name of the session" })
|
|
253
280
|
], Session.prototype, "name", 2);
|
|
254
281
|
|
|
255
282
|
// src/user.ts
|
|
@@ -270,50 +297,50 @@ var User = class {
|
|
|
270
297
|
apiTokens;
|
|
271
298
|
};
|
|
272
299
|
__decorateClass([
|
|
273
|
-
(0,
|
|
274
|
-
(0,
|
|
300
|
+
(0, import_class_validator4.IsNumberString)(),
|
|
301
|
+
(0, import_swagger5.ApiProperty)({ type: Number })
|
|
275
302
|
], User.prototype, "id", 2);
|
|
276
303
|
__decorateClass([
|
|
277
|
-
(0,
|
|
304
|
+
(0, import_swagger5.ApiProperty)({ type: Number, nullable: true, default: null })
|
|
278
305
|
], User.prototype, "_id", 2);
|
|
279
306
|
__decorateClass([
|
|
280
|
-
(0,
|
|
281
|
-
(0,
|
|
307
|
+
(0, import_class_validator4.IsEmail)(),
|
|
308
|
+
(0, import_swagger5.ApiProperty)({ type: String })
|
|
282
309
|
], User.prototype, "email", 2);
|
|
283
310
|
__decorateClass([
|
|
284
|
-
(0,
|
|
311
|
+
(0, import_swagger5.ApiProperty)({ type: Boolean, default: false })
|
|
285
312
|
], User.prototype, "isAdmin", 2);
|
|
286
313
|
__decorateClass([
|
|
287
|
-
(0,
|
|
314
|
+
(0, import_swagger5.ApiProperty)({ type: Boolean, default: false })
|
|
288
315
|
], User.prototype, "isBanned", 2);
|
|
289
316
|
__decorateClass([
|
|
290
|
-
(0,
|
|
317
|
+
(0, import_swagger5.ApiProperty)({ type: Boolean, default: false })
|
|
291
318
|
], User.prototype, "playJinglesLocal", 2);
|
|
292
319
|
__decorateClass([
|
|
293
|
-
(0,
|
|
320
|
+
(0, import_swagger5.ApiProperty)({ type: [String], default: [] })
|
|
294
321
|
], User.prototype, "favoriteJingles", 2);
|
|
295
322
|
__decorateClass([
|
|
296
|
-
(0,
|
|
297
|
-
(0,
|
|
323
|
+
(0, import_swagger5.ApiProperty)({ type: Date, nullable: true, default: null }),
|
|
324
|
+
(0, import_swagger5.ApiProperty)()
|
|
298
325
|
], User.prototype, "isRegistering", 2);
|
|
299
326
|
__decorateClass([
|
|
300
|
-
(0,
|
|
301
|
-
(0,
|
|
327
|
+
(0, import_swagger5.ApiProperty)({ type: WindowState }),
|
|
328
|
+
(0, import_class_validator4.ValidateNested)(),
|
|
302
329
|
(0, import_class_transformer3.Type)(() => WindowState)
|
|
303
330
|
], User.prototype, "windowState", 2);
|
|
304
331
|
__decorateClass([
|
|
305
|
-
(0,
|
|
332
|
+
(0, import_swagger5.ApiProperty)({ type: () => [Button] })
|
|
306
333
|
], User.prototype, "buttons", 2);
|
|
307
334
|
__decorateClass([
|
|
308
|
-
(0,
|
|
335
|
+
(0, import_swagger5.ApiProperty)({ type: String, default: "" })
|
|
309
336
|
], User.prototype, "lastSeenChangelogId", 2);
|
|
310
337
|
__decorateClass([
|
|
311
|
-
(0,
|
|
312
|
-
(0,
|
|
338
|
+
(0, import_swagger5.ApiProperty)({ type: () => [Session] }),
|
|
339
|
+
(0, import_class_validator4.ValidateNested)({ each: true }),
|
|
313
340
|
(0, import_class_transformer3.Type)(() => Session)
|
|
314
341
|
], User.prototype, "sessions", 2);
|
|
315
342
|
__decorateClass([
|
|
316
|
-
(0,
|
|
343
|
+
(0, import_swagger5.ApiProperty)({ type: () => [ApiToken] })
|
|
317
344
|
], User.prototype, "apiTokens", 2);
|
|
318
345
|
var ToggleAbleUserPropertyEnum = /* @__PURE__ */ ((ToggleAbleUserPropertyEnum2) => {
|
|
319
346
|
ToggleAbleUserPropertyEnum2["isAdmin"] = "isAdmin";
|
|
@@ -321,7 +348,7 @@ var ToggleAbleUserPropertyEnum = /* @__PURE__ */ ((ToggleAbleUserPropertyEnum2)
|
|
|
321
348
|
ToggleAbleUserPropertyEnum2["playJinglesLocal"] = "playJinglesLocal";
|
|
322
349
|
return ToggleAbleUserPropertyEnum2;
|
|
323
350
|
})(ToggleAbleUserPropertyEnum || {});
|
|
324
|
-
var ToggleableUserProperties = class extends (0,
|
|
351
|
+
var ToggleableUserProperties = class extends (0, import_swagger5.PickType)(User, [
|
|
325
352
|
"isAdmin" /* isAdmin */,
|
|
326
353
|
"isBanned" /* isBanned */,
|
|
327
354
|
"playJinglesLocal" /* playJinglesLocal */
|
|
@@ -331,28 +358,28 @@ var AddUserDto = class {
|
|
|
331
358
|
email;
|
|
332
359
|
};
|
|
333
360
|
__decorateClass([
|
|
334
|
-
(0,
|
|
335
|
-
(0,
|
|
361
|
+
(0, import_class_validator4.IsEmail)(),
|
|
362
|
+
(0, import_swagger5.ApiProperty)({ type: String, example: "info@example.com" })
|
|
336
363
|
], AddUserDto.prototype, "email", 2);
|
|
337
|
-
var RemoveUserDto = class extends (0,
|
|
364
|
+
var RemoveUserDto = class extends (0, import_swagger5.PickType)(User, ["id"]) {
|
|
338
365
|
};
|
|
339
|
-
var SetWindowStateDto = class extends (0,
|
|
366
|
+
var SetWindowStateDto = class extends (0, import_swagger5.PickType)(User, ["windowState"]) {
|
|
340
367
|
};
|
|
341
|
-
var SetChangelogIdDto = class extends (0,
|
|
368
|
+
var SetChangelogIdDto = class extends (0, import_swagger5.PickType)(User, ["lastSeenChangelogId"]) {
|
|
342
369
|
};
|
|
343
370
|
var ToggleBoolDto = class {
|
|
344
371
|
id;
|
|
345
372
|
field;
|
|
346
373
|
};
|
|
347
374
|
__decorateClass([
|
|
348
|
-
(0,
|
|
375
|
+
(0, import_swagger5.ApiProperty)({
|
|
349
376
|
type: String,
|
|
350
377
|
nullable: true,
|
|
351
378
|
description: "User ID. When empty, the current user is used. Admin only param"
|
|
352
379
|
})
|
|
353
380
|
], ToggleBoolDto.prototype, "id", 2);
|
|
354
381
|
__decorateClass([
|
|
355
|
-
(0,
|
|
382
|
+
(0, import_swagger5.ApiProperty)({ enum: ToggleAbleUserPropertyEnum, description: "The property to toggle" })
|
|
356
383
|
], ToggleBoolDto.prototype, "field", 2);
|
|
357
384
|
var WsUpdateStoreDto = class {
|
|
358
385
|
mutation;
|
|
@@ -369,13 +396,13 @@ var WebsocketAction = class {
|
|
|
369
396
|
data;
|
|
370
397
|
};
|
|
371
398
|
__decorateClass([
|
|
372
|
-
(0,
|
|
399
|
+
(0, import_swagger6.ApiProperty)({ type: String })
|
|
373
400
|
], WebsocketAction.prototype, "serviceName", 2);
|
|
374
401
|
__decorateClass([
|
|
375
|
-
(0,
|
|
402
|
+
(0, import_swagger6.ApiProperty)({ type: String })
|
|
376
403
|
], WebsocketAction.prototype, "methodName", 2);
|
|
377
404
|
__decorateClass([
|
|
378
|
-
(0,
|
|
405
|
+
(0, import_swagger6.ApiProperty)({ type: Object })
|
|
379
406
|
], WebsocketAction.prototype, "data", 2);
|
|
380
407
|
var Button = class {
|
|
381
408
|
bdAddr;
|
|
@@ -387,30 +414,30 @@ var Button = class {
|
|
|
387
414
|
ButtonHold;
|
|
388
415
|
};
|
|
389
416
|
__decorateClass([
|
|
390
|
-
(0,
|
|
417
|
+
(0, import_swagger6.ApiProperty)({ type: String })
|
|
391
418
|
], Button.prototype, "bdAddr", 2);
|
|
392
419
|
__decorateClass([
|
|
393
|
-
(0,
|
|
420
|
+
(0, import_swagger6.ApiProperty)({ type: User, nullable: true })
|
|
394
421
|
], Button.prototype, "owner", 2);
|
|
395
422
|
__decorateClass([
|
|
396
|
-
(0,
|
|
423
|
+
(0, import_swagger6.ApiProperty)({ type: Number, nullable: true })
|
|
397
424
|
], Button.prototype, "batteryLevel", 2);
|
|
398
425
|
__decorateClass([
|
|
399
|
-
(0,
|
|
426
|
+
(0, import_swagger6.ApiProperty)({ type: Date, nullable: true })
|
|
400
427
|
], Button.prototype, "lastBatteryUpdate", 2);
|
|
401
428
|
__decorateClass([
|
|
402
|
-
(0,
|
|
429
|
+
(0, import_swagger6.ApiProperty)({ type: WebsocketAction, nullable: true })
|
|
403
430
|
], Button.prototype, "ButtonSingleClick", 2);
|
|
404
431
|
__decorateClass([
|
|
405
|
-
(0,
|
|
432
|
+
(0, import_swagger6.ApiProperty)({ type: WebsocketAction, nullable: true })
|
|
406
433
|
], Button.prototype, "ButtonDoubleClick", 2);
|
|
407
434
|
__decorateClass([
|
|
408
|
-
(0,
|
|
435
|
+
(0, import_swagger6.ApiProperty)({ type: WebsocketAction, nullable: true })
|
|
409
436
|
], Button.prototype, "ButtonHold", 2);
|
|
410
437
|
|
|
411
438
|
// src/emulator.ts
|
|
412
|
-
var
|
|
413
|
-
var
|
|
439
|
+
var import_class_validator5 = require("class-validator");
|
|
440
|
+
var import_swagger7 = require("@nestjs/swagger");
|
|
414
441
|
var City = /* @__PURE__ */ ((City2) => {
|
|
415
442
|
City2["Waalwijk"] = "Waalwijk";
|
|
416
443
|
City2["Sprang"] = "Sprang-Capelle";
|
|
@@ -420,13 +447,13 @@ var EmulateFireDepartmentDto = class {
|
|
|
420
447
|
city;
|
|
421
448
|
};
|
|
422
449
|
__decorateClass([
|
|
423
|
-
(0,
|
|
424
|
-
(0,
|
|
450
|
+
(0, import_swagger7.ApiProperty)({ enum: City }),
|
|
451
|
+
(0, import_class_validator5.IsEnum)(City)
|
|
425
452
|
], EmulateFireDepartmentDto.prototype, "city", 2);
|
|
426
453
|
|
|
427
454
|
// src/jingle.ts
|
|
428
|
-
var
|
|
429
|
-
var
|
|
455
|
+
var import_swagger8 = require("@nestjs/swagger");
|
|
456
|
+
var import_class_validator6 = require("class-validator");
|
|
430
457
|
var import_class_transformer4 = require("class-transformer");
|
|
431
458
|
var Jingle = class {
|
|
432
459
|
folder;
|
|
@@ -436,39 +463,39 @@ var Jingle = class {
|
|
|
436
463
|
mtime;
|
|
437
464
|
};
|
|
438
465
|
__decorateClass([
|
|
439
|
-
(0,
|
|
440
|
-
(0,
|
|
441
|
-
(0,
|
|
466
|
+
(0, import_swagger8.ApiProperty)({ type: String, example: "internet-gekkies" }),
|
|
467
|
+
(0, import_class_validator6.IsString)(),
|
|
468
|
+
(0, import_class_validator6.IsNotEmpty)()
|
|
442
469
|
], Jingle.prototype, "folder", 2);
|
|
443
470
|
__decorateClass([
|
|
444
|
-
(0,
|
|
445
|
-
(0,
|
|
446
|
-
(0,
|
|
471
|
+
(0, import_swagger8.ApiProperty)({ type: String, example: "mand.mp3" }),
|
|
472
|
+
(0, import_class_validator6.IsString)(),
|
|
473
|
+
(0, import_class_validator6.IsNotEmpty)()
|
|
447
474
|
], Jingle.prototype, "file", 2);
|
|
448
475
|
__decorateClass([
|
|
449
|
-
(0,
|
|
476
|
+
(0, import_swagger8.ApiProperty)({ type: [String], examples: ["internet", "gekkies", "mand"] })
|
|
450
477
|
], Jingle.prototype, "keywords", 2);
|
|
451
478
|
__decorateClass([
|
|
452
|
-
(0,
|
|
479
|
+
(0, import_swagger8.ApiProperty)({ type: String, example: "1475909a5bbe100" })
|
|
453
480
|
], Jingle.prototype, "hash", 2);
|
|
454
481
|
__decorateClass([
|
|
455
|
-
(0,
|
|
482
|
+
(0, import_swagger8.ApiProperty)({ type: Number, example: 1599223250, description: "Timestamp in seconds" })
|
|
456
483
|
], Jingle.prototype, "mtime", 2);
|
|
457
484
|
var JingleFolder = class {
|
|
458
485
|
folder;
|
|
459
486
|
jingles;
|
|
460
487
|
};
|
|
461
488
|
__decorateClass([
|
|
462
|
-
(0,
|
|
463
|
-
(0,
|
|
464
|
-
(0,
|
|
489
|
+
(0, import_swagger8.ApiProperty)({ type: String, example: "internet-gekkies" }),
|
|
490
|
+
(0, import_class_validator6.IsString)(),
|
|
491
|
+
(0, import_class_validator6.IsNotEmpty)()
|
|
465
492
|
], JingleFolder.prototype, "folder", 2);
|
|
466
493
|
__decorateClass([
|
|
467
|
-
(0,
|
|
468
|
-
(0,
|
|
494
|
+
(0, import_swagger8.ApiProperty)({ type: [Jingle] }),
|
|
495
|
+
(0, import_class_validator6.ValidateNested)({ each: true }),
|
|
469
496
|
(0, import_class_transformer4.Type)(() => Jingle)
|
|
470
497
|
], JingleFolder.prototype, "jingles", 2);
|
|
471
|
-
var PlayJingleDto = class extends (0,
|
|
498
|
+
var PlayJingleDto = class extends (0, import_swagger8.PickType)(Jingle, ["folder", "file"]) {
|
|
472
499
|
};
|
|
473
500
|
var BigBrotherItem = class {
|
|
474
501
|
data;
|
|
@@ -476,17 +503,17 @@ var BigBrotherItem = class {
|
|
|
476
503
|
time;
|
|
477
504
|
};
|
|
478
505
|
__decorateClass([
|
|
479
|
-
(0,
|
|
506
|
+
(0, import_swagger8.ApiProperty)({ type: String, example: "internet-gekkies/mand.mp3", description: "Path of the played jingle" })
|
|
480
507
|
], BigBrotherItem.prototype, "data", 2);
|
|
481
508
|
__decorateClass([
|
|
482
|
-
(0,
|
|
509
|
+
(0, import_swagger8.ApiProperty)({ type: String, example: "frank@maxserv.com", description: "User's email" })
|
|
483
510
|
], BigBrotherItem.prototype, "user", 2);
|
|
484
511
|
__decorateClass([
|
|
485
|
-
(0,
|
|
512
|
+
(0, import_swagger8.ApiProperty)({ type: Number, example: 1679694523189, description: "Timestamp in milliseconds" })
|
|
486
513
|
], BigBrotherItem.prototype, "time", 2);
|
|
487
514
|
|
|
488
515
|
// src/k8s.ts
|
|
489
|
-
var
|
|
516
|
+
var import_swagger9 = require("@nestjs/swagger");
|
|
490
517
|
var Pod = class {
|
|
491
518
|
app;
|
|
492
519
|
name;
|
|
@@ -498,30 +525,30 @@ var Pod = class {
|
|
|
498
525
|
node;
|
|
499
526
|
};
|
|
500
527
|
__decorateClass([
|
|
501
|
-
(0,
|
|
528
|
+
(0, import_swagger9.ApiProperty)({ type: String })
|
|
502
529
|
], Pod.prototype, "app", 2);
|
|
503
530
|
__decorateClass([
|
|
504
|
-
(0,
|
|
531
|
+
(0, import_swagger9.ApiProperty)({ type: String })
|
|
505
532
|
], Pod.prototype, "name", 2);
|
|
506
533
|
__decorateClass([
|
|
507
|
-
(0,
|
|
534
|
+
(0, import_swagger9.ApiProperty)({ type: String })
|
|
508
535
|
], Pod.prototype, "status", 2);
|
|
509
536
|
__decorateClass([
|
|
510
|
-
(0,
|
|
537
|
+
(0, import_swagger9.ApiProperty)({ type: Number })
|
|
511
538
|
], Pod.prototype, "restarts", 2);
|
|
512
539
|
__decorateClass([
|
|
513
|
-
(0,
|
|
540
|
+
(0, import_swagger9.ApiProperty)({ type: Number })
|
|
514
541
|
], Pod.prototype, "cpu", 2);
|
|
515
542
|
__decorateClass([
|
|
516
|
-
(0,
|
|
543
|
+
(0, import_swagger9.ApiProperty)({ type: Number })
|
|
517
544
|
], Pod.prototype, "memory", 2);
|
|
518
545
|
__decorateClass([
|
|
519
|
-
(0,
|
|
546
|
+
(0, import_swagger9.ApiProperty)({ type: Date, nullable: true })
|
|
520
547
|
], Pod.prototype, "createdAt", 2);
|
|
521
548
|
__decorateClass([
|
|
522
|
-
(0,
|
|
549
|
+
(0, import_swagger9.ApiProperty)({ type: String })
|
|
523
550
|
], Pod.prototype, "node", 2);
|
|
524
|
-
var DeletePodDto = class extends (0,
|
|
551
|
+
var DeletePodDto = class extends (0, import_swagger9.PickType)(Pod, ["name"]) {
|
|
525
552
|
};
|
|
526
553
|
|
|
527
554
|
// src/index.ts
|
|
@@ -551,6 +578,8 @@ var P2000Payload = class {
|
|
|
551
578
|
SetWindowStateDto,
|
|
552
579
|
ToggleAbleUserPropertyEnum,
|
|
553
580
|
ToggleBoolDto,
|
|
581
|
+
ToggleableHardwareDto,
|
|
582
|
+
ToggleableHardwareStateEnum,
|
|
554
583
|
ToggleableUserProperties,
|
|
555
584
|
TokenType,
|
|
556
585
|
User,
|
|
@@ -559,5 +588,7 @@ var P2000Payload = class {
|
|
|
559
588
|
WindowState,
|
|
560
589
|
WindowStateApplication,
|
|
561
590
|
WsUpdateStoreDto,
|
|
562
|
-
WsUpdateStoreSetAccount
|
|
591
|
+
WsUpdateStoreSetAccount,
|
|
592
|
+
ZwaailampStateDto,
|
|
593
|
+
ZwaailampStateEnum
|
|
563
594
|
});
|
package/package.json
CHANGED
package/src/arduino.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
+
import { IsEnum } from 'class-validator';
|
|
3
|
+
|
|
4
|
+
export enum ToggleableHardwareStateEnum {
|
|
5
|
+
ON = 'Aan.',
|
|
6
|
+
OFF = 'Uit.',
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export class ToggleableHardwareDto {
|
|
10
|
+
@ApiProperty({ enum: ToggleableHardwareStateEnum })
|
|
11
|
+
@IsEnum(ToggleableHardwareStateEnum)
|
|
12
|
+
state: ToggleableHardwareStateEnum;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Use ToggleableHardwareStateEnum instead.
|
|
17
|
+
* TODO remove in next version
|
|
18
|
+
*/
|
|
19
|
+
export enum ZwaailampStateEnum {
|
|
20
|
+
ON = 'Aan.',
|
|
21
|
+
OFF = 'Uit.',
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use ToggleableHardwareDto instead.
|
|
26
|
+
* TODO remove in next version
|
|
27
|
+
*/
|
|
28
|
+
export class ZwaailampStateDto extends ToggleableHardwareDto {}
|