@loopstack/contracts 0.22.0 → 0.22.1

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.
@@ -2,10 +2,10 @@ import { z } from 'zod';
2
2
  import { EnvironmentType } from '../enums';
3
3
  export declare const EnvironmentConfigSchema: z.ZodObject<{
4
4
  id: z.ZodString;
5
- type: z.ZodEnum<{
5
+ type: z.ZodUnion<readonly [z.ZodEnum<{
6
6
  sandbox: EnvironmentType.Sandbox;
7
7
  production: EnvironmentType.Production;
8
- }>;
8
+ }>, z.ZodString]>;
9
9
  title: z.ZodOptional<z.ZodString>;
10
10
  }, z.core.$strip>;
11
11
  //# sourceMappingURL=environment-config.schema.d.ts.map
@@ -5,7 +5,7 @@ const zod_1 = require("zod");
5
5
  const enums_1 = require("../enums");
6
6
  exports.EnvironmentConfigSchema = zod_1.z.object({
7
7
  id: zod_1.z.string(),
8
- type: zod_1.z.enum([enums_1.EnvironmentType.Sandbox, enums_1.EnvironmentType.Production]),
8
+ type: zod_1.z.union([zod_1.z.enum([enums_1.EnvironmentType.Sandbox, enums_1.EnvironmentType.Production]), zod_1.z.string()]),
9
9
  title: zod_1.z.string().optional(),
10
10
  });
11
11
  //# sourceMappingURL=environment-config.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"environment-config.schema.js","sourceRoot":"","sources":["../../src/schemas/environment-config.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,oCAA2C;AAE9B,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,uBAAe,CAAC,OAAO,EAAE,uBAAe,CAAC,UAAU,CAAC,CAAC;IACnE,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC"}
1
+ {"version":3,"file":"environment-config.schema.js","sourceRoot":"","sources":["../../src/schemas/environment-config.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,oCAA2C;AAE9B,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,IAAI,CAAC,CAAC,uBAAe,CAAC,OAAO,EAAE,uBAAe,CAAC,UAAU,CAAC,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAC1F,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC"}
@@ -225,10 +225,10 @@ export declare const BlockConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
225
225
  }, z.core.$strip>>;
226
226
  environments: z.ZodOptional<z.ZodArray<z.ZodObject<{
227
227
  id: z.ZodString;
228
- type: z.ZodEnum<{
228
+ type: z.ZodUnion<readonly [z.ZodEnum<{
229
229
  sandbox: import("../enums").EnvironmentType.Sandbox;
230
230
  production: import("../enums").EnvironmentType.Production;
231
- }>;
231
+ }>, z.ZodString]>;
232
232
  title: z.ZodOptional<z.ZodString>;
233
233
  }, z.core.$strip>>>;
234
234
  }, z.core.$strip>], "type">;
@@ -31,10 +31,10 @@ export declare const WorkspaceSchema: z.ZodObject<{
31
31
  }, z.core.$strip>>;
32
32
  environments: z.ZodOptional<z.ZodArray<z.ZodObject<{
33
33
  id: z.ZodString;
34
- type: z.ZodEnum<{
34
+ type: z.ZodUnion<readonly [z.ZodEnum<{
35
35
  sandbox: import("../enums").EnvironmentType.Sandbox;
36
36
  production: import("../enums").EnvironmentType.Production;
37
- }>;
37
+ }>, z.ZodString]>;
38
38
  title: z.ZodOptional<z.ZodString>;
39
39
  }, z.core.$strip>>>;
40
40
  }, z.core.$strip>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@loopstack/contracts",
3
3
  "displayName": "Loopstack Contracts",
4
4
  "description": "A collection of types and schemas shared between projects",
5
- "version": "0.22.0",
5
+ "version": "0.22.1",
6
6
  "license": "BSL",
7
7
  "author": {
8
8
  "name": "Jakob Klippel",