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