@brimble/contracts 0.1.0 → 0.1.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.
@@ -72,6 +72,12 @@ export declare const deployStatusEvent: z.ZodEnum<{
72
72
  "deploy-error": "deploy-error";
73
73
  }>;
74
74
  export type DeployStatusEvent = z.infer<typeof deployStatusEvent>;
75
+ /** The project status the runner reports on a `deploy:status` message; the dashboard shows it as is. */
76
+ export declare const deployStatusValue: z.ZodEnum<{
77
+ ACTIVE: "ACTIVE";
78
+ FAILED: "FAILED";
79
+ }>;
80
+ export type DeployStatusValue = z.infer<typeof deployStatusValue>;
75
81
  /** Outcome tag on a `deploy:notify` message. */
76
82
  export declare const deployNotifyType: z.ZodEnum<{
77
83
  success: "success";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deployNotifyType = exports.deployStatusEvent = exports.serviceRuntime = exports.serviceStateAction = exports.privateDependencyReason = exports.staleTempMode = exports.dockerCommand = exports.serviceType = exports.planType = exports.gitType = void 0;
3
+ exports.deployNotifyType = exports.deployStatusValue = exports.deployStatusEvent = exports.serviceRuntime = exports.serviceStateAction = exports.privateDependencyReason = exports.staleTempMode = exports.dockerCommand = exports.serviceType = exports.planType = exports.gitType = void 0;
4
4
  const zod_1 = require("zod");
5
5
  /** Mirrors @brimble/models GIT_TYPE. */
6
6
  exports.gitType = zod_1.z.enum(['GITHUB', 'GITLAB', 'BITBUCKET', 'DOCKER', 'HUGGINGFACE', 'ORIGIN']);
@@ -20,5 +20,7 @@ exports.serviceStateAction = zod_1.z.enum(['stopped', 'resumed']);
20
20
  exports.serviceRuntime = zod_1.z.enum(['nomad', 'temp']);
21
21
  /** The `event` discriminator the runner puts on a `deploy:status` message. */
22
22
  exports.deployStatusEvent = zod_1.z.enum(['deploy', 'deploy-error']);
23
+ /** The project status the runner reports on a `deploy:status` message; the dashboard shows it as is. */
24
+ exports.deployStatusValue = zod_1.z.enum(['ACTIVE', 'FAILED']);
23
25
  /** Outcome tag on a `deploy:notify` message. */
24
26
  exports.deployNotifyType = zod_1.z.enum(['success', 'failure']);
@@ -294,7 +294,10 @@ export declare const deployStatusSchema: z.ZodObject<{
294
294
  }>;
295
295
  data: z.ZodObject<{
296
296
  id: z.ZodString;
297
- status: z.ZodBoolean;
297
+ status: z.ZodEnum<{
298
+ ACTIVE: "ACTIVE";
299
+ FAILED: "FAILED";
300
+ }>;
298
301
  url: z.ZodOptional<z.ZodURL>;
299
302
  message: z.ZodString;
300
303
  teamId: z.ZodOptional<z.ZodString>;
@@ -233,7 +233,7 @@ exports.deployStatusSchema = zod_1.z.object({
233
233
  event: enums_1.deployStatusEvent,
234
234
  data: zod_1.z.object({
235
235
  id: common_1.objectId,
236
- status: zod_1.z.boolean(),
236
+ status: enums_1.deployStatusValue,
237
237
  url: common_1.httpUrl.optional(),
238
238
  message: zod_1.z.string(),
239
239
  teamId: common_1.objectId.optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/contracts",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Brimble cross-service message contracts (zod schemas) shared between services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",