@orsetra/shared-types 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/common.ts +12 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orsetra/shared-types",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Shared TypeScript types for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",
package/types/common.ts CHANGED
@@ -27,3 +27,15 @@ export interface AuthContext {
27
27
  signIn: () => Promise<void>
28
28
  signOut: () => Promise<void>
29
29
  }
30
+
31
+ export interface ResourceConfig {
32
+ cpu: string
33
+ memory: string
34
+ }
35
+
36
+ export interface ScalabilityConfig {
37
+ replicas: number
38
+ minReplicas: number
39
+ maxReplicas: number
40
+ scalingStrategy: "manual" | "auto"
41
+ }