@openworkers/api-types 1.0.5 → 1.0.6
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 +1 -1
- package/types.d.ts +13 -11
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auto-generated TypeScript types from Zod schemas
|
|
3
3
|
* DO NOT EDIT THIS FILE MANUALLY
|
|
4
|
-
* Generated on: 2025-11-29T13:
|
|
4
|
+
* Generated on: 2025-11-29T13:34:35.990Z
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
// Global types
|
|
@@ -10,6 +10,14 @@ export type uuid = string;
|
|
|
10
10
|
export type timestamp = number;
|
|
11
11
|
export type Dictionary<T> = Record<string, T>;
|
|
12
12
|
|
|
13
|
+
export type IResource = {
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
desc?: (string | null) | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
13
21
|
export type ITimestamps = { createdAt: Date; updatedAt: Date };
|
|
14
22
|
|
|
15
23
|
export type ILoginResponse = { accessToken: string; refreshToken: string };
|
|
@@ -35,7 +43,7 @@ export type IEnvironment = {
|
|
|
35
43
|
name: string;
|
|
36
44
|
desc?: (string | null) | undefined;
|
|
37
45
|
values?: (IEnvironmentValue[] | null) | undefined;
|
|
38
|
-
workers?: (
|
|
46
|
+
workers?: (IResource[] | null) | undefined;
|
|
39
47
|
};
|
|
40
48
|
|
|
41
49
|
export type IEnvironmentCreateInput = {
|
|
@@ -104,7 +112,7 @@ export type IWorker = {
|
|
|
104
112
|
desc?: (string | null) | undefined;
|
|
105
113
|
language: IWorkerLanguage;
|
|
106
114
|
script: string;
|
|
107
|
-
environment?: (
|
|
115
|
+
environment?: (IResource | undefined) | null;
|
|
108
116
|
crons?: ICron[] | undefined;
|
|
109
117
|
domains?: { name: string }[] | undefined;
|
|
110
118
|
};
|
|
@@ -126,16 +134,10 @@ export type IWorkerUpdateInput = {
|
|
|
126
134
|
|
|
127
135
|
export type IWorkerLanguage = 'javascript' | 'typescript';
|
|
128
136
|
|
|
129
|
-
export type IDatabase =
|
|
130
|
-
createdAt: Date;
|
|
131
|
-
updatedAt: Date;
|
|
132
|
-
id: string;
|
|
133
|
-
name: string;
|
|
134
|
-
desc?: (string | null) | undefined;
|
|
135
|
-
};
|
|
137
|
+
export type IDatabase = IResource;
|
|
136
138
|
|
|
137
139
|
export type IDatabaseCreateInput = {
|
|
138
140
|
name: string;
|
|
139
141
|
desc?: (string | null) | undefined;
|
|
140
|
-
|
|
142
|
+
maxRows?: number | undefined;
|
|
141
143
|
};
|