@camstack/types 1.2.565 → 1.2.567
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/CHANGELOG.md +14 -0
- package/dist/automation/recipe.d.ts +156 -3
- package/dist/automation/template-link.d.ts +871 -9
- package/dist/automation/when.d.ts +98 -6
- package/dist/index.js +855 -546
- package/dist/index.mjs +844 -547
- package/dist/template/automation-template.d.ts +1230 -189
- package/package.json +1 -1
|
@@ -328,15 +328,106 @@ declare const StationaryPresentLeafSchema: z.ZodObject<{
|
|
|
328
328
|
zones: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
329
329
|
minCount: z.ZodOptional<z.ZodNumber>;
|
|
330
330
|
}, z.core.$strip>;
|
|
331
|
+
declare const TimeIsWindowObjectSchema: z.ZodObject<{
|
|
332
|
+
between: z.ZodOptional<z.ZodObject<{
|
|
333
|
+
from: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
334
|
+
kind: z.ZodLiteral<"clock">;
|
|
335
|
+
hh: z.ZodNumber;
|
|
336
|
+
mm: z.ZodNumber;
|
|
337
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
338
|
+
kind: z.ZodLiteral<"sun">;
|
|
339
|
+
event: z.ZodEnum<{
|
|
340
|
+
dawn: "dawn";
|
|
341
|
+
dusk: "dusk";
|
|
342
|
+
sunrise: "sunrise";
|
|
343
|
+
sunset: "sunset";
|
|
344
|
+
}>;
|
|
345
|
+
offsetMin: z.ZodNumber;
|
|
346
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
347
|
+
kind: z.ZodLiteral<"date">;
|
|
348
|
+
local: z.ZodString;
|
|
349
|
+
}, z.core.$strip>], "kind">;
|
|
350
|
+
to: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
351
|
+
kind: z.ZodLiteral<"clock">;
|
|
352
|
+
hh: z.ZodNumber;
|
|
353
|
+
mm: z.ZodNumber;
|
|
354
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
355
|
+
kind: z.ZodLiteral<"sun">;
|
|
356
|
+
event: z.ZodEnum<{
|
|
357
|
+
dawn: "dawn";
|
|
358
|
+
dusk: "dusk";
|
|
359
|
+
sunrise: "sunrise";
|
|
360
|
+
sunset: "sunset";
|
|
361
|
+
}>;
|
|
362
|
+
offsetMin: z.ZodNumber;
|
|
363
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
364
|
+
kind: z.ZodLiteral<"date">;
|
|
365
|
+
local: z.ZodString;
|
|
366
|
+
}, z.core.$strip>], "kind">;
|
|
367
|
+
}, z.core.$strip>>;
|
|
368
|
+
days: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
369
|
+
fri: "fri";
|
|
370
|
+
mon: "mon";
|
|
371
|
+
sat: "sat";
|
|
372
|
+
sun: "sun";
|
|
373
|
+
thu: "thu";
|
|
374
|
+
tue: "tue";
|
|
375
|
+
wed: "wed";
|
|
376
|
+
}>>>;
|
|
377
|
+
}, z.core.$strip>;
|
|
331
378
|
/**
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
-
* 22:00-06:00 on weekdays is still inside at 01:00 Saturday. A one-date spec
|
|
335
|
-
* (`kind: 'date'`) is refused: only a clock time or a sun event makes a window
|
|
336
|
-
* that repeats every day.
|
|
379
|
+
* What a `time-is` leaf holds beside its kind, judged by the leaf's own rules.
|
|
380
|
+
* A template's time-window input stores exactly this.
|
|
337
381
|
*/
|
|
382
|
+
export declare const TimeIsWindowSchema: z.ZodObject<{
|
|
383
|
+
between: z.ZodOptional<z.ZodObject<{
|
|
384
|
+
from: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
385
|
+
kind: z.ZodLiteral<"clock">;
|
|
386
|
+
hh: z.ZodNumber;
|
|
387
|
+
mm: z.ZodNumber;
|
|
388
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
389
|
+
kind: z.ZodLiteral<"sun">;
|
|
390
|
+
event: z.ZodEnum<{
|
|
391
|
+
dawn: "dawn";
|
|
392
|
+
dusk: "dusk";
|
|
393
|
+
sunrise: "sunrise";
|
|
394
|
+
sunset: "sunset";
|
|
395
|
+
}>;
|
|
396
|
+
offsetMin: z.ZodNumber;
|
|
397
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
398
|
+
kind: z.ZodLiteral<"date">;
|
|
399
|
+
local: z.ZodString;
|
|
400
|
+
}, z.core.$strip>], "kind">;
|
|
401
|
+
to: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
402
|
+
kind: z.ZodLiteral<"clock">;
|
|
403
|
+
hh: z.ZodNumber;
|
|
404
|
+
mm: z.ZodNumber;
|
|
405
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
406
|
+
kind: z.ZodLiteral<"sun">;
|
|
407
|
+
event: z.ZodEnum<{
|
|
408
|
+
dawn: "dawn";
|
|
409
|
+
dusk: "dusk";
|
|
410
|
+
sunrise: "sunrise";
|
|
411
|
+
sunset: "sunset";
|
|
412
|
+
}>;
|
|
413
|
+
offsetMin: z.ZodNumber;
|
|
414
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
415
|
+
kind: z.ZodLiteral<"date">;
|
|
416
|
+
local: z.ZodString;
|
|
417
|
+
}, z.core.$strip>], "kind">;
|
|
418
|
+
}, z.core.$strip>>;
|
|
419
|
+
days: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
420
|
+
fri: "fri";
|
|
421
|
+
mon: "mon";
|
|
422
|
+
sat: "sat";
|
|
423
|
+
sun: "sun";
|
|
424
|
+
thu: "thu";
|
|
425
|
+
tue: "tue";
|
|
426
|
+
wed: "wed";
|
|
427
|
+
}>>>;
|
|
428
|
+
}, z.core.$strip>;
|
|
429
|
+
export type TimeIsWindow = z.infer<typeof TimeIsWindowObjectSchema>;
|
|
338
430
|
declare const TimeIsLeafSchema: z.ZodObject<{
|
|
339
|
-
kind: z.ZodLiteral<"time-is">;
|
|
340
431
|
between: z.ZodOptional<z.ZodObject<{
|
|
341
432
|
from: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
342
433
|
kind: z.ZodLiteral<"clock">;
|
|
@@ -382,6 +473,7 @@ declare const TimeIsLeafSchema: z.ZodObject<{
|
|
|
382
473
|
tue: "tue";
|
|
383
474
|
wed: "wed";
|
|
384
475
|
}>>>;
|
|
476
|
+
kind: z.ZodLiteral<"time-is">;
|
|
385
477
|
}, z.core.$strip>;
|
|
386
478
|
/** How many event leaves one `triggered-by` names. */
|
|
387
479
|
export declare const TRIGGERED_BY_MAX_IDS = 20;
|