@stacksjs/types 0.58.65 → 0.58.66

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.58.65",
4
+ "version": "0.58.66",
5
5
  "description": "The Stacks framework types.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
package/src/cloud.ts CHANGED
@@ -28,6 +28,8 @@ export type CountryCode =
28
28
  | 'YE' | 'YT'
29
29
  | 'ZA' | 'ZM' | 'ZW'
30
30
 
31
+ type Environment = 'development' | 'staging' | 'production'
32
+
31
33
  export interface CloudOptions {
32
34
  driver: 'aws'
33
35
 
@@ -57,6 +59,18 @@ export interface CloudOptions {
57
59
  */
58
60
  firewall: FirewallConfig
59
61
 
62
+ /**
63
+ * **Environments**
64
+ *
65
+ * These are the environments that your cloud will deploy.
66
+ *
67
+ * @example
68
+ * ```ts
69
+ * environments: ['production', 'staging', 'development']
70
+ * ```
71
+ */
72
+ environments: Environment[]
73
+
60
74
  cdn: {
61
75
  allowedMethods: 'GET_HEAD' | 'GET_HEAD_OPTIONS' | 'ALL'
62
76
  cachedMethods: 'GET_HEAD' | 'GET_HEAD_OPTIONS'
@@ -67,11 +81,13 @@ export interface CloudOptions {
67
81
  priceClass?: 'PriceClass_100' | 'PriceClass_200' | 'PriceClass_All'
68
82
  originShieldRegion: string
69
83
  cookieBehavior: 'none' | 'allowList' | 'all'
84
+
70
85
  allowList: {
71
86
  cookies: string[]
72
87
  headers: string[]
73
88
  queryStrings: string[]
74
89
  }
90
+
75
91
  realtimeLogs: {
76
92
  enabled: boolean
77
93
  samplingRate: number
package/src/index.ts CHANGED
@@ -42,6 +42,7 @@ export * from './pwa'
42
42
  export * from './push'
43
43
  export * from './queue'
44
44
  export * from './reactivity'
45
+ export * from './request'
45
46
  export * from './router'
46
47
  export * from './scheduler'
47
48
  export * from './search-engine'
package/src/request.ts ADDED
@@ -0,0 +1,3 @@
1
+ export interface Request {
2
+ [key: string]: any
3
+ }