@bosunski/laravel-cloud-sdk 0.1.4 → 0.1.5

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.
@@ -12,6 +12,18 @@ declare const colorSchema: z.ZodEnum<{
12
12
  cyan: "cyan";
13
13
  gray: "gray";
14
14
  }>;
15
+ declare const environmentStatusSchema: z.ZodEnum<{
16
+ deploying: "deploying";
17
+ running: "running";
18
+ hibernating: "hibernating";
19
+ stopped: "stopped";
20
+ }>;
21
+ declare const phpMajorVersionSchema: z.ZodEnum<{
22
+ 8.2: "8.2";
23
+ 8.3: "8.3";
24
+ 8.4: "8.4";
25
+ 8.5: "8.5";
26
+ }>;
15
27
  declare const phpVersionSchema: z.ZodEnum<{
16
28
  "8.2:1": "8.2:1";
17
29
  "8.3:1": "8.3:1";
@@ -23,6 +35,9 @@ declare const nodeVersionSchema: z.ZodEnum<{
23
35
  22: "22";
24
36
  24: "24";
25
37
  }>;
38
+ export type EnvironmentStatus = z.infer<typeof environmentStatusSchema>;
39
+ export type PhpMajorVersion = z.infer<typeof phpMajorVersionSchema>;
40
+ export type NodeVersion = z.infer<typeof nodeVersionSchema>;
26
41
  declare const environmentVariableSchema: z.ZodObject<{
27
42
  key: z.ZodString;
28
43
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -137,13 +152,27 @@ declare const transformedEnvironmentSchema: z.ZodPipe<z.ZodObject<{
137
152
  attributes: z.ZodObject<{
138
153
  name: z.ZodString;
139
154
  slug: z.ZodString;
140
- status: z.ZodString;
155
+ status: z.ZodEnum<{
156
+ deploying: "deploying";
157
+ running: "running";
158
+ hibernating: "hibernating";
159
+ stopped: "stopped";
160
+ }>;
141
161
  created_at: z.ZodString;
142
162
  created_from_automation: z.ZodOptional<z.ZodBoolean>;
143
163
  vanity_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
144
- php_major_version: z.ZodOptional<z.ZodString>;
164
+ php_major_version: z.ZodOptional<z.ZodEnum<{
165
+ 8.2: "8.2";
166
+ 8.3: "8.3";
167
+ 8.4: "8.4";
168
+ 8.5: "8.5";
169
+ }>>;
145
170
  build_command: z.ZodOptional<z.ZodNullable<z.ZodString>>;
146
- node_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
171
+ node_version: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
172
+ 20: "20";
173
+ 22: "22";
174
+ 24: "24";
175
+ }>>>;
147
176
  deploy_command: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
177
  uses_octane: z.ZodOptional<z.ZodBoolean>;
149
178
  uses_hibernation: z.ZodOptional<z.ZodBoolean>;
@@ -165,13 +194,13 @@ declare const transformedEnvironmentSchema: z.ZodPipe<z.ZodObject<{
165
194
  [x: string]: unknown;
166
195
  name: string;
167
196
  slug: string;
168
- status: string;
197
+ status: "deploying" | "running" | "hibernating" | "stopped";
169
198
  created_at: string;
170
199
  created_from_automation?: boolean | undefined;
171
200
  vanity_domain?: string | null | undefined;
172
- php_major_version?: string | undefined;
201
+ php_major_version?: "8.2" | "8.3" | "8.4" | "8.5" | undefined;
173
202
  build_command?: string | null | undefined;
174
- node_version?: string | null | undefined;
203
+ node_version?: "20" | "22" | "24" | null | undefined;
175
204
  deploy_command?: string | null | undefined;
176
205
  uses_octane?: boolean | undefined;
177
206
  uses_hibernation?: boolean | undefined;
@@ -234,13 +263,13 @@ declare const transformedEnvironmentSchema: z.ZodPipe<z.ZodObject<{
234
263
  };
235
264
  name: string;
236
265
  slug: string;
237
- status: string;
266
+ status: "deploying" | "running" | "hibernating" | "stopped";
238
267
  createdAt: string;
239
268
  createdFromAutomation?: boolean | undefined;
240
269
  vanityDomain?: string | null | undefined;
241
- phpMajorVersion?: string | undefined;
270
+ phpMajorVersion?: "8.2" | "8.3" | "8.4" | "8.5" | undefined;
242
271
  buildCommand?: string | null | undefined;
243
- nodeVersion?: string | null | undefined;
272
+ nodeVersion?: "20" | "22" | "24" | null | undefined;
244
273
  deployCommand?: string | null | undefined;
245
274
  usesOctane?: boolean | undefined;
246
275
  usesHibernation?: boolean | undefined;
@@ -259,13 +288,13 @@ declare const transformedEnvironmentSchema: z.ZodPipe<z.ZodObject<{
259
288
  [x: string]: unknown;
260
289
  name: string;
261
290
  slug: string;
262
- status: string;
291
+ status: "deploying" | "running" | "hibernating" | "stopped";
263
292
  created_at: string;
264
293
  created_from_automation?: boolean | undefined;
265
294
  vanity_domain?: string | null | undefined;
266
- php_major_version?: string | undefined;
295
+ php_major_version?: "8.2" | "8.3" | "8.4" | "8.5" | undefined;
267
296
  build_command?: string | null | undefined;
268
- node_version?: string | null | undefined;
297
+ node_version?: "20" | "22" | "24" | null | undefined;
269
298
  deploy_command?: string | null | undefined;
270
299
  uses_octane?: boolean | undefined;
271
300
  uses_hibernation?: boolean | undefined;
@@ -12,6 +12,13 @@ const colorSchema = z.enum([
12
12
  'cyan',
13
13
  'gray',
14
14
  ]);
15
+ const environmentStatusSchema = z.enum([
16
+ 'deploying',
17
+ 'running',
18
+ 'hibernating',
19
+ 'stopped',
20
+ ]);
21
+ const phpMajorVersionSchema = z.enum(['8.2', '8.3', '8.4', '8.5']);
15
22
  const phpVersionSchema = z.enum(['8.2:1', '8.3:1', '8.4:1', '8.5:1']);
16
23
  const nodeVersionSchema = z.enum(['20', '22', '24']);
17
24
  const environmentVariableSchema = z.object({
@@ -62,13 +69,13 @@ const environmentAttributesSchema = z
62
69
  .object({
63
70
  name: z.string(),
64
71
  slug: z.string(),
65
- status: z.string(),
72
+ status: environmentStatusSchema,
66
73
  created_at: z.string(),
67
74
  created_from_automation: z.boolean().optional(),
68
75
  vanity_domain: z.string().nullable().optional(),
69
- php_major_version: z.string().optional(),
76
+ php_major_version: phpMajorVersionSchema.optional(),
70
77
  build_command: z.string().nullable().optional(),
71
- node_version: z.string().nullable().optional(),
78
+ node_version: nodeVersionSchema.nullable().optional(),
72
79
  deploy_command: z.string().nullable().optional(),
73
80
  uses_octane: z.boolean().optional(),
74
81
  uses_hibernation: z.boolean().optional(),
@@ -56,12 +56,12 @@ declare const transformedInstanceSchema: z.ZodPipe<z.ZodObject<{
56
56
  min_replicas: z.ZodNumber;
57
57
  max_replicas: z.ZodNumber;
58
58
  uses_scheduler: z.ZodBoolean;
59
- uses_sleep_mode: z.ZodOptional<z.ZodBoolean>;
60
- sleep_timeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
61
- uses_octane: z.ZodOptional<z.ZodBoolean>;
62
- uses_inertia_ssr: z.ZodOptional<z.ZodBoolean>;
63
- scaling_cpu_threshold_percentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
64
- scaling_memory_threshold_percentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
59
+ uses_sleep_mode: z.ZodBoolean;
60
+ sleep_timeout: z.ZodNullable<z.ZodNumber>;
61
+ uses_octane: z.ZodBoolean;
62
+ uses_inertia_ssr: z.ZodBoolean;
63
+ scaling_cpu_threshold_percentage: z.ZodNullable<z.ZodNumber>;
64
+ scaling_memory_threshold_percentage: z.ZodNullable<z.ZodNumber>;
65
65
  created_at: z.ZodString;
66
66
  }, z.core.$loose>;
67
67
  }, z.core.$loose>, z.ZodTransform<{
@@ -79,13 +79,13 @@ declare const transformedInstanceSchema: z.ZodPipe<z.ZodObject<{
79
79
  min_replicas: number;
80
80
  max_replicas: number;
81
81
  uses_scheduler: boolean;
82
+ uses_sleep_mode: boolean;
83
+ sleep_timeout: number | null;
84
+ uses_octane: boolean;
85
+ uses_inertia_ssr: boolean;
86
+ scaling_cpu_threshold_percentage: number | null;
87
+ scaling_memory_threshold_percentage: number | null;
82
88
  created_at: string;
83
- uses_sleep_mode?: boolean | undefined;
84
- sleep_timeout?: number | null | undefined;
85
- uses_octane?: boolean | undefined;
86
- uses_inertia_ssr?: boolean | undefined;
87
- scaling_cpu_threshold_percentage?: number | null | undefined;
88
- scaling_memory_threshold_percentage?: number | null | undefined;
89
89
  };
90
90
  relationships?: Record<string, {
91
91
  [x: string]: unknown;
@@ -143,13 +143,13 @@ declare const transformedInstanceSchema: z.ZodPipe<z.ZodObject<{
143
143
  minReplicas: number;
144
144
  maxReplicas: number;
145
145
  usesScheduler: boolean;
146
+ usesSleepMode: boolean;
147
+ sleepTimeout: number | null;
148
+ usesOctane: boolean;
149
+ usesInertiaSsr: boolean;
150
+ scalingCpuThresholdPercentage: number | null;
151
+ scalingMemoryThresholdPercentage: number | null;
146
152
  createdAt: string;
147
- usesSleepMode?: boolean | undefined;
148
- sleepTimeout?: number | null | undefined;
149
- usesOctane?: boolean | undefined;
150
- usesInertiaSsr?: boolean | undefined;
151
- scalingCpuThresholdPercentage?: number | null | undefined;
152
- scalingMemoryThresholdPercentage?: number | null | undefined;
153
153
  }, {
154
154
  [x: string]: unknown;
155
155
  id: string;
@@ -163,13 +163,13 @@ declare const transformedInstanceSchema: z.ZodPipe<z.ZodObject<{
163
163
  min_replicas: number;
164
164
  max_replicas: number;
165
165
  uses_scheduler: boolean;
166
+ uses_sleep_mode: boolean;
167
+ sleep_timeout: number | null;
168
+ uses_octane: boolean;
169
+ uses_inertia_ssr: boolean;
170
+ scaling_cpu_threshold_percentage: number | null;
171
+ scaling_memory_threshold_percentage: number | null;
166
172
  created_at: string;
167
- uses_sleep_mode?: boolean | undefined;
168
- sleep_timeout?: number | null | undefined;
169
- uses_octane?: boolean | undefined;
170
- uses_inertia_ssr?: boolean | undefined;
171
- scaling_cpu_threshold_percentage?: number | null | undefined;
172
- scaling_memory_threshold_percentage?: number | null | undefined;
173
173
  };
174
174
  relationships?: Record<string, {
175
175
  [x: string]: unknown;
@@ -10,12 +10,12 @@ const instanceAttributesSchema = z
10
10
  min_replicas: z.number(),
11
11
  max_replicas: z.number(),
12
12
  uses_scheduler: z.boolean(),
13
- uses_sleep_mode: z.boolean().optional(),
14
- sleep_timeout: z.number().nullable().optional(),
15
- uses_octane: z.boolean().optional(),
16
- uses_inertia_ssr: z.boolean().optional(),
17
- scaling_cpu_threshold_percentage: z.number().nullable().optional(),
18
- scaling_memory_threshold_percentage: z.number().nullable().optional(),
13
+ uses_sleep_mode: z.boolean(),
14
+ sleep_timeout: z.number().nullable(),
15
+ uses_octane: z.boolean(),
16
+ uses_inertia_ssr: z.boolean(),
17
+ scaling_cpu_threshold_percentage: z.number().nullable(),
18
+ scaling_memory_threshold_percentage: z.number().nullable(),
19
19
  created_at: z.string(),
20
20
  })
21
21
  .passthrough();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bosunski/laravel-cloud-sdk",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "TypeScript client for the Laravel Cloud API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",