@stacksjs/types 0.58.56 → 0.58.58

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 CHANGED
@@ -399,14 +399,19 @@ var require_pluralize = __commonJS((exports, module) => {
399
399
  var Every;
400
400
  (function(Every2) {
401
401
  Every2["Minute"] = "* * * * *";
402
+ Every2["TwoMinutes"] = "*/2 * * * *";
403
+ Every2["FiveMinutes"] = "*/5 * * * *";
404
+ Every2["TenMinutes"] = "*/10 * * * *";
405
+ Every2["FifteenMinutes"] = "*/15 * * * *";
406
+ Every2["ThirtyMinutes"] = "*/30 * * * *";
402
407
  Every2["Hour"] = "0 * * * *";
403
408
  Every2["HalfHour"] = "0,30 * * * *";
404
409
  Every2["Day"] = "0 0 * * *";
405
- Every2["Month"] = "0 0 1 * *";
406
410
  Every2["Week"] = "0 0 * * 0";
411
+ Every2["Weekday"] = "0 0 * * 1-5";
412
+ Every2["Weekend"] = "0 0 * * 0,6";
413
+ Every2["Month"] = "0 0 1 * *";
407
414
  Every2["Year"] = "0 0 1 1 *";
408
- Every2["FifthMinute"] = "*/5 * * * *";
409
- Every2["TenthMinute"] = "*/10 * * * *";
410
415
  })(Every || (Every = {}));
411
416
  // src/docs.ts
412
417
  var SocialLinkIcon;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks framework types.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -51,7 +51,7 @@
51
51
  "@mdit-vue/plugin-component": "^2.0.0",
52
52
  "@mdit-vue/plugin-frontmatter": "^2.0.0",
53
53
  "@mdit-vue/types": "^2.0.0",
54
- "@novu/stateless": "^0.23.0",
54
+ "@novu/stateless": "^0.23.1",
55
55
  "@rollup/pluginutils": "^5.1.0",
56
56
  "@stacksjs/validation": "latest",
57
57
  "@types/aws4": "^1.11.6",
@@ -78,7 +78,7 @@
78
78
  "vite-plugin-pwa": "^0.17.5",
79
79
  "vite-ssg": "^0.23.6",
80
80
  "vitepress": "1.0.0-rc.42",
81
- "vue": "^3.4.15"
81
+ "vue": "^3.4.16"
82
82
  },
83
83
  "devDependencies": {
84
84
  "aws-cdk-lib": "^2.126.0",
package/src/configure.ts CHANGED
@@ -1,6 +1,13 @@
1
1
  export interface ConfigureOptions {
2
2
  aws: boolean
3
+ profile: string
4
+ project: boolean
3
5
  verbose: boolean
6
+ accessKeyId: string
7
+ secretAccessKey: string
8
+ region: string
9
+ output: string
10
+ quiet: boolean
4
11
  }
5
12
 
6
13
  export type ConfigureConfig = Partial<ConfigureOptions>
package/src/cron-jobs.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import type { IntRange } from '@stacksjs/scheduler'
2
+
1
3
  /**
2
4
  * Cron Job Options.
3
5
  */
@@ -12,7 +14,10 @@ export interface JobOptions {
12
14
  description?: string
13
15
  queue?: string
14
16
  timezone?: string
15
- tries?: number
17
+ /**
18
+ * Number of tries. Must be between 0 and 185.
19
+ */
20
+ tries?: IntRange<0, 185>
16
21
  backoff?: number | number[]
17
22
  rate?: string | Every
18
23
  enabled?: boolean
@@ -35,12 +40,17 @@ export enum Every {
35
40
  // TenSeconds = '*/10 * * * * *',
36
41
  // ThirtySeconds = '*/30 * * * * *',
37
42
  Minute = '* * * * *',
43
+ TwoMinutes = '*/2 * * * *',
44
+ FiveMinutes = '*/5 * * * *',
45
+ TenMinutes = '*/10 * * * *',
46
+ FifteenMinutes = '*/15 * * * *',
47
+ ThirtyMinutes = '*/30 * * * *',
38
48
  Hour = '0 * * * *',
39
49
  HalfHour = '0,30 * * * *',
40
50
  Day = '0 0 * * *',
41
- Month = '0 0 1 * *',
42
51
  Week = '0 0 * * 0',
52
+ Weekday = '0 0 * * 1-5',
53
+ Weekend = '0 0 * * 0,6',
54
+ Month = '0 0 1 * *',
43
55
  Year = '0 0 1 1 *',
44
- FifthMinute = '*/5 * * * *',
45
- TenthMinute = '*/10 * * * *',
46
56
  }