hububb-models 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -867,14 +867,14 @@ export declare const MessageAutomationTemplateSchema: import("zod").ZodObject<{
867
867
  name: import("zod").ZodString;
868
868
  createdAt: import("zod").ZodType<import("@firebase/firestore-types").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore-types").Timestamp>;
869
869
  message: import("zod").ZodString;
870
- action: import("zod").ZodString;
870
+ action: import("zod").ZodUnion<[import("zod").ZodLiteral<"booking-confirmed">, import("zod").ZodLiteral<"check-in">, import("zod").ZodLiteral<"check-out">]>;
871
871
  minutesAfterBookingConfirmed: import("zod").ZodOptional<import("zod").ZodNumber>;
872
872
  daysAfterAction: import("zod").ZodOptional<import("zod").ZodNumber>;
873
873
  timeForDayAfterAction: import("zod").ZodOptional<import("zod").ZodNumber>;
874
874
  }, "strip", import("zod").ZodTypeAny, {
875
875
  message: string;
876
876
  name: string;
877
- action: string;
877
+ action: "booking-confirmed" | "check-in" | "check-out";
878
878
  createdAt: import("@firebase/firestore-types").Timestamp;
879
879
  id?: string | undefined;
880
880
  minutesAfterBookingConfirmed?: number | undefined;
@@ -883,7 +883,7 @@ export declare const MessageAutomationTemplateSchema: import("zod").ZodObject<{
883
883
  }, {
884
884
  message: string;
885
885
  name: string;
886
- action: string;
886
+ action: "booking-confirmed" | "check-in" | "check-out";
887
887
  createdAt: import("@firebase/firestore-types").Timestamp;
888
888
  id?: string | undefined;
889
889
  minutesAfterBookingConfirmed?: number | undefined;
@@ -42,7 +42,11 @@ exports.MessageAutomationTemplateSchema = (0, zod_1.object)({
42
42
  name: (0, zod_1.string)(),
43
43
  createdAt: helpers_1.firestoreTimestampSchema,
44
44
  message: (0, zod_1.string)(),
45
- action: (0, zod_1.string)(),
45
+ action: (0, zod_1.union)([
46
+ (0, zod_1.literal)("booking-confirmed"),
47
+ (0, zod_1.literal)("check-in"),
48
+ (0, zod_1.literal)("check-out"),
49
+ ]),
46
50
  minutesAfterBookingConfirmed: (0, zod_1.optional)((0, zod_1.number)()),
47
51
  daysAfterAction: (0, zod_1.optional)((0, zod_1.number)()),
48
52
  timeForDayAfterAction: (0, zod_1.optional)((0, zod_1.number)()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Models for Hububb application",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",