@daocloud-proto/zestu 0.2.0-rc2-dev-5286736d → 0.2.0-rc2-dev-6c5c56c4

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,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/zestu",
3
- "version":"v0.2.0-rc2-dev-5286736d",
3
+ "version":"v0.2.0-rc2-dev-6c5c56c4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -16,6 +16,7 @@ type OneOf<T> =
16
16
  export enum EventType {
17
17
  EVENT_TYPE_UNSPECIFIED = "EVENT_TYPE_UNSPECIFIED",
18
18
  EVENT_CONTAINER_INSTANCE = "EVENT_CONTAINER_INSTANCE",
19
+ EVENT_FILE_STORAGE = "EVENT_FILE_STORAGE",
19
20
  }
20
21
 
21
22
  export enum PowerType {
@@ -25,6 +26,25 @@ export enum PowerType {
25
26
  }
26
27
 
27
28
 
29
+ type BaseContainerInstanceEvent = {
30
+ }
31
+
32
+ export type ContainerInstanceEvent = BaseContainerInstanceEvent
33
+ & OneOf<{ powerType: PowerType }>
34
+
35
+ export type ScaleStorage = {
36
+ scaleFrom?: string
37
+ scaleTo?: string
38
+ }
39
+
40
+
41
+ type BaseFileStorageEvent = {
42
+ }
43
+
44
+ export type FileStorageEvent = BaseFileStorageEvent
45
+ & OneOf<{ scaleStorage: ScaleStorage }>
46
+
47
+
28
48
  type BasePushEventRequest = {
29
49
  type?: EventType
30
50
  resourceId?: string
@@ -32,4 +52,4 @@ type BasePushEventRequest = {
32
52
  }
33
53
 
34
54
  export type PushEventRequest = BasePushEventRequest
35
- & OneOf<{ powerType: PowerType }>
55
+ & OneOf<{ containerInstanceEvent: ContainerInstanceEvent; fileStorageEvent: FileStorageEvent }>