hububb-models 1.1.0 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,7 @@ export declare const AddressSchema: import("zod").ZodObject<{
8
8
  state: import("zod").ZodOptional<import("zod").ZodString>;
9
9
  zipcode: import("zod").ZodOptional<import("zod").ZodString>;
10
10
  unit: import("zod").ZodOptional<import("zod").ZodString>;
11
+ addressDescription: import("zod").ZodOptional<import("zod").ZodString>;
11
12
  }, "strip", import("zod").ZodTypeAny, {
12
13
  full: string;
13
14
  country: string;
@@ -18,6 +19,7 @@ export declare const AddressSchema: import("zod").ZodObject<{
18
19
  state?: string | undefined;
19
20
  unit?: string | undefined;
20
21
  zipcode?: string | undefined;
22
+ addressDescription?: string | undefined;
21
23
  }, {
22
24
  full: string;
23
25
  country: string;
@@ -28,6 +30,7 @@ export declare const AddressSchema: import("zod").ZodObject<{
28
30
  state?: string | undefined;
29
31
  unit?: string | undefined;
30
32
  zipcode?: string | undefined;
33
+ addressDescription?: string | undefined;
31
34
  }>;
32
35
  export declare const PictureSchema: import("zod").ZodObject<{
33
36
  regular: import("zod").ZodOptional<import("zod").ZodString>;
@@ -196,6 +199,7 @@ export declare const ListingSchema: import("zod").ZodObject<{
196
199
  state: import("zod").ZodOptional<import("zod").ZodString>;
197
200
  zipcode: import("zod").ZodOptional<import("zod").ZodString>;
198
201
  unit: import("zod").ZodOptional<import("zod").ZodString>;
202
+ addressDescription: import("zod").ZodOptional<import("zod").ZodString>;
199
203
  }, "strip", import("zod").ZodTypeAny, {
200
204
  full: string;
201
205
  country: string;
@@ -206,6 +210,7 @@ export declare const ListingSchema: import("zod").ZodObject<{
206
210
  state?: string | undefined;
207
211
  unit?: string | undefined;
208
212
  zipcode?: string | undefined;
213
+ addressDescription?: string | undefined;
209
214
  }, {
210
215
  full: string;
211
216
  country: string;
@@ -216,6 +221,7 @@ export declare const ListingSchema: import("zod").ZodObject<{
216
221
  state?: string | undefined;
217
222
  unit?: string | undefined;
218
223
  zipcode?: string | undefined;
224
+ addressDescription?: string | undefined;
219
225
  }>;
220
226
  publishedAddress: import("zod").ZodOptional<import("zod").ZodObject<{
221
227
  full: import("zod").ZodString;
@@ -516,6 +522,25 @@ export declare const ListingSchema: import("zod").ZodObject<{
516
522
  landlordId: import("zod").ZodOptional<import("zod").ZodString>;
517
523
  apaleoPropertyId: import("zod").ZodOptional<import("zod").ZodString>;
518
524
  apaleoUnitGroupId: import("zod").ZodOptional<import("zod").ZodString>;
525
+ metadata: import("zod").ZodOptional<import("zod").ZodObject<{
526
+ wifiName: import("zod").ZodOptional<import("zod").ZodString>;
527
+ wifiPassword: import("zod").ZodOptional<import("zod").ZodString>;
528
+ checkInInstructions: import("zod").ZodOptional<import("zod").ZodString>;
529
+ checkOutInstructions: import("zod").ZodOptional<import("zod").ZodString>;
530
+ checkInAgent: import("zod").ZodOptional<import("zod").ZodString>;
531
+ }, "strip", import("zod").ZodTypeAny, {
532
+ wifiName?: string | undefined;
533
+ wifiPassword?: string | undefined;
534
+ checkInInstructions?: string | undefined;
535
+ checkOutInstructions?: string | undefined;
536
+ checkInAgent?: string | undefined;
537
+ }, {
538
+ wifiName?: string | undefined;
539
+ wifiPassword?: string | undefined;
540
+ checkInInstructions?: string | undefined;
541
+ checkOutInstructions?: string | undefined;
542
+ checkInAgent?: string | undefined;
543
+ }>>;
519
544
  }, "strip", import("zod").ZodTypeAny, {
520
545
  address: {
521
546
  full: string;
@@ -527,6 +552,7 @@ export declare const ListingSchema: import("zod").ZodObject<{
527
552
  state?: string | undefined;
528
553
  unit?: string | undefined;
529
554
  zipcode?: string | undefined;
555
+ addressDescription?: string | undefined;
530
556
  };
531
557
  active: boolean;
532
558
  createdAt: import("@firebase/firestore-types").Timestamp;
@@ -575,6 +601,13 @@ export declare const ListingSchema: import("zod").ZodObject<{
575
601
  original?: string | undefined;
576
602
  } | undefined;
577
603
  title?: string | undefined;
604
+ metadata?: {
605
+ wifiName?: string | undefined;
606
+ wifiPassword?: string | undefined;
607
+ checkInInstructions?: string | undefined;
608
+ checkOutInstructions?: string | undefined;
609
+ checkInAgent?: string | undefined;
610
+ } | undefined;
578
611
  externalId?: string | undefined;
579
612
  city?: string | undefined;
580
613
  guestyId?: string | undefined;
@@ -655,6 +688,7 @@ export declare const ListingSchema: import("zod").ZodObject<{
655
688
  state?: string | undefined;
656
689
  unit?: string | undefined;
657
690
  zipcode?: string | undefined;
691
+ addressDescription?: string | undefined;
658
692
  };
659
693
  active: boolean;
660
694
  createdAt: import("@firebase/firestore-types").Timestamp;
@@ -703,6 +737,13 @@ export declare const ListingSchema: import("zod").ZodObject<{
703
737
  original?: string | undefined;
704
738
  } | undefined;
705
739
  title?: string | undefined;
740
+ metadata?: {
741
+ wifiName?: string | undefined;
742
+ wifiPassword?: string | undefined;
743
+ checkInInstructions?: string | undefined;
744
+ checkOutInstructions?: string | undefined;
745
+ checkInAgent?: string | undefined;
746
+ } | undefined;
706
747
  externalId?: string | undefined;
707
748
  city?: string | undefined;
708
749
  guestyId?: string | undefined;
@@ -13,6 +13,7 @@ exports.AddressSchema = (0, zod_1.object)({
13
13
  state: (0, zod_1.optional)((0, zod_1.string)()),
14
14
  zipcode: (0, zod_1.optional)((0, zod_1.string)()),
15
15
  unit: (0, zod_1.optional)((0, zod_1.string)()),
16
+ addressDescription: (0, zod_1.optional)((0, zod_1.string)()),
16
17
  });
17
18
  exports.PictureSchema = (0, zod_1.object)({
18
19
  regular: (0, zod_1.optional)((0, zod_1.string)()),
@@ -123,4 +124,11 @@ exports.ListingSchema = (0, zod_1.object)({
123
124
  landlordId: (0, zod_1.optional)((0, zod_1.string)()),
124
125
  apaleoPropertyId: (0, zod_1.optional)((0, zod_1.string)()),
125
126
  apaleoUnitGroupId: (0, zod_1.optional)((0, zod_1.string)()),
127
+ metadata: (0, zod_1.optional)((0, zod_1.object)({
128
+ wifiName: (0, zod_1.optional)((0, zod_1.string)()),
129
+ wifiPassword: (0, zod_1.optional)((0, zod_1.string)()),
130
+ checkInInstructions: (0, zod_1.optional)((0, zod_1.string)()),
131
+ checkOutInstructions: (0, zod_1.optional)((0, zod_1.string)()),
132
+ checkInAgent: (0, zod_1.optional)((0, zod_1.string)()),
133
+ })),
126
134
  });
@@ -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.2",
4
4
  "description": "Models for Hububb application",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",