api-arreya-types 1.0.59 → 1.0.60

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.
@@ -37,7 +37,7 @@ export type Alert = z.infer<typeof Alert>;
37
37
  export declare const CreateAlert: z.ZodObject<{
38
38
  projectId: z.ZodString;
39
39
  source: z.ZodString;
40
- enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
40
+ enabled: z.ZodBoolean;
41
41
  title: z.ZodString;
42
42
  message: z.ZodString;
43
43
  textColor: z.ZodString;
@@ -54,10 +54,10 @@ export declare const CreateAlert: z.ZodObject<{
54
54
  message: string;
55
55
  projectId: string;
56
56
  source: string;
57
+ enabled: boolean;
57
58
  title: string;
58
59
  textColor: string;
59
60
  backgroundColor: string;
60
- enabled?: boolean | undefined;
61
61
  }>;
62
62
  export declare const UpdateAlert: z.ZodObject<{
63
63
  id: z.ZodString;
@@ -87,25 +87,25 @@ export declare const UpdateAlert: z.ZodObject<{
87
87
  export type CreateAlert = z.infer<typeof CreateAlert>;
88
88
  export type UpdateAlert = z.infer<typeof UpdateAlert>;
89
89
  export declare const PublishAlertRequestBody: z.ZodObject<Omit<{
90
- projectId: z.ZodString;
90
+ id: z.ZodString;
91
91
  source: z.ZodString;
92
- enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
93
- title: z.ZodString;
94
- message: z.ZodString;
95
- textColor: z.ZodString;
96
- backgroundColor: z.ZodString;
97
- }, "projectId" | "source">, "strip", z.ZodTypeAny, {
98
- message: string;
99
- enabled: boolean;
100
- title: string;
101
- textColor: string;
102
- backgroundColor: string;
92
+ enabled: z.ZodOptional<z.ZodBoolean>;
93
+ title: z.ZodOptional<z.ZodString>;
94
+ message: z.ZodOptional<z.ZodString>;
95
+ textColor: z.ZodOptional<z.ZodString>;
96
+ backgroundColor: z.ZodOptional<z.ZodString>;
97
+ }, "id" | "source">, "strip", z.ZodTypeAny, {
98
+ message?: string | undefined;
99
+ enabled?: boolean | undefined;
100
+ title?: string | undefined;
101
+ textColor?: string | undefined;
102
+ backgroundColor?: string | undefined;
103
103
  }, {
104
- message: string;
105
- title: string;
106
- textColor: string;
107
- backgroundColor: string;
104
+ message?: string | undefined;
108
105
  enabled?: boolean | undefined;
106
+ title?: string | undefined;
107
+ textColor?: string | undefined;
108
+ backgroundColor?: string | undefined;
109
109
  }>;
110
110
  export type PublishAlertRequestBody = z.infer<typeof PublishAlertRequestBody>;
111
111
  export declare const BeepAlert: z.ZodObject<{
@@ -18,7 +18,7 @@ exports.Alert = zod_1.z.object({
18
18
  exports.CreateAlert = zod_1.z.object({
19
19
  projectId: zod_1.z.string(),
20
20
  source: zod_1.z.string(),
21
- enabled: zod_1.z.boolean().optional().default(true),
21
+ enabled: zod_1.z.boolean(),
22
22
  title: zod_1.z.string(),
23
23
  message: zod_1.z.string(),
24
24
  textColor: zod_1.z.string(),
@@ -33,7 +33,7 @@ exports.UpdateAlert = zod_1.z.object({
33
33
  textColor: zod_1.z.string().optional(),
34
34
  backgroundColor: zod_1.z.string().optional(),
35
35
  });
36
- exports.PublishAlertRequestBody = exports.CreateAlert.omit({ projectId: true, source: true });
36
+ exports.PublishAlertRequestBody = exports.UpdateAlert.omit({ id: true, source: true });
37
37
  // Legacy alert request params
38
38
  var animations = [
39
39
  'bounce',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "api-arreya-types",
3
- "version": "1.0.59",
3
+ "version": "1.0.60",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "private": false,