@shophost/rest-api 2.0.68 → 2.0.70

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.
Files changed (35) hide show
  1. package/package.json +1 -1
  2. package/schema.prisma +2 -0
  3. package/src/core/db/__generated__/client/internal/class.js +19 -17
  4. package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +2 -0
  5. package/src/core/db/__generated__/client/internal/prismaNamespace.js +1 -1
  6. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +2 -0
  7. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +1 -1
  8. package/src/core/db/__generated__/client/models/OrganizationConfiguration.d.ts +41 -1
  9. package/src/core/db/__generated__/client/models/Reservation.d.ts +42 -1
  10. package/src/features/customer/customer.route.d.ts +1 -0
  11. package/src/features/customer/customer.schema.d.ts +1 -0
  12. package/src/features/customer/customer.service.d.ts +1 -0
  13. package/src/features/organization/organization-configuration.schema.d.ts +2 -0
  14. package/src/features/organization/organization-configuration.schema.js +1 -1
  15. package/src/features/organization/organization.route.d.ts +5 -0
  16. package/src/features/organization/organization.schema.d.ts +2 -0
  17. package/src/features/organization/organization.service.d.ts +4 -0
  18. package/src/features/organization/organization.service.js +1 -1
  19. package/src/features/reservation/emails/reservation-cancellation.email.js +1 -1
  20. package/src/features/reservation/emails/reservation-confirmation.email.js +1 -1
  21. package/src/features/reservation/emails/reservation-email-date.d.ts +2 -0
  22. package/src/features/reservation/emails/reservation-email-date.js +1 -0
  23. package/src/features/reservation/emails/reservation-notification.email.js +1 -1
  24. package/src/features/reservation/emails/reservation-updated.email.js +1 -1
  25. package/src/features/reservation/reservation.handler.js +1 -1
  26. package/src/features/reservation/reservation.route.d.ts +10 -1
  27. package/src/features/reservation/reservation.route.js +1 -1
  28. package/src/features/reservation/reservation.schema.d.ts +5 -0
  29. package/src/features/reservation/reservation.schema.js +1 -1
  30. package/src/features/reservation/reservation.service.d.ts +9 -2
  31. package/src/features/reservation/reservation.service.js +1 -1
  32. package/src/schemas/index.d.ts +1 -0
  33. package/src/schemas/index.js +1 -1
  34. package/src/schemas/time-zone.schema.d.ts +9 -0
  35. package/src/schemas/time-zone.schema.js +1 -0
@@ -31,6 +31,7 @@ export type ReservationMinAggregateOutputType = {
31
31
  createdAt: Date | null;
32
32
  acceptedAt: Date | null;
33
33
  cancelledAt: Date | null;
34
+ cancellationMessage: string | null;
34
35
  updatedAt: Date | null;
35
36
  };
36
37
  export type ReservationMaxAggregateOutputType = {
@@ -46,6 +47,7 @@ export type ReservationMaxAggregateOutputType = {
46
47
  createdAt: Date | null;
47
48
  acceptedAt: Date | null;
48
49
  cancelledAt: Date | null;
50
+ cancellationMessage: string | null;
49
51
  updatedAt: Date | null;
50
52
  };
51
53
  export type ReservationCountAggregateOutputType = {
@@ -61,6 +63,7 @@ export type ReservationCountAggregateOutputType = {
61
63
  createdAt: number;
62
64
  acceptedAt: number;
63
65
  cancelledAt: number;
66
+ cancellationMessage: number;
64
67
  updatedAt: number;
65
68
  _all: number;
66
69
  };
@@ -83,6 +86,7 @@ export type ReservationMinAggregateInputType = {
83
86
  createdAt?: true;
84
87
  acceptedAt?: true;
85
88
  cancelledAt?: true;
89
+ cancellationMessage?: true;
86
90
  updatedAt?: true;
87
91
  };
88
92
  export type ReservationMaxAggregateInputType = {
@@ -98,6 +102,7 @@ export type ReservationMaxAggregateInputType = {
98
102
  createdAt?: true;
99
103
  acceptedAt?: true;
100
104
  cancelledAt?: true;
105
+ cancellationMessage?: true;
101
106
  updatedAt?: true;
102
107
  };
103
108
  export type ReservationCountAggregateInputType = {
@@ -113,6 +118,7 @@ export type ReservationCountAggregateInputType = {
113
118
  createdAt?: true;
114
119
  acceptedAt?: true;
115
120
  cancelledAt?: true;
121
+ cancellationMessage?: true;
116
122
  updatedAt?: true;
117
123
  _all?: true;
118
124
  };
@@ -205,6 +211,7 @@ export type ReservationGroupByOutputType = {
205
211
  createdAt: Date;
206
212
  acceptedAt: Date | null;
207
213
  cancelledAt: Date | null;
214
+ cancellationMessage: string | null;
208
215
  updatedAt: Date;
209
216
  _count: ReservationCountAggregateOutputType | null;
210
217
  _avg: ReservationAvgAggregateOutputType | null;
@@ -231,6 +238,7 @@ export type ReservationWhereInput = {
231
238
  createdAt?: Prisma.DateTimeFilter<"Reservation"> | Date | string;
232
239
  acceptedAt?: Prisma.DateTimeNullableFilter<"Reservation"> | Date | string | null;
233
240
  cancelledAt?: Prisma.DateTimeNullableFilter<"Reservation"> | Date | string | null;
241
+ cancellationMessage?: Prisma.StringNullableFilter<"Reservation"> | string | null;
234
242
  updatedAt?: Prisma.DateTimeFilter<"Reservation"> | Date | string;
235
243
  user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
236
244
  organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
@@ -248,6 +256,7 @@ export type ReservationOrderByWithRelationInput = {
248
256
  createdAt?: Prisma.SortOrder;
249
257
  acceptedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
250
258
  cancelledAt?: Prisma.SortOrderInput | Prisma.SortOrder;
259
+ cancellationMessage?: Prisma.SortOrderInput | Prisma.SortOrder;
251
260
  updatedAt?: Prisma.SortOrder;
252
261
  user?: Prisma.UserOrderByWithRelationInput;
253
262
  organization?: Prisma.OrganizationOrderByWithRelationInput;
@@ -268,6 +277,7 @@ export type ReservationWhereUniqueInput = Prisma.AtLeast<{
268
277
  createdAt?: Prisma.DateTimeFilter<"Reservation"> | Date | string;
269
278
  acceptedAt?: Prisma.DateTimeNullableFilter<"Reservation"> | Date | string | null;
270
279
  cancelledAt?: Prisma.DateTimeNullableFilter<"Reservation"> | Date | string | null;
280
+ cancellationMessage?: Prisma.StringNullableFilter<"Reservation"> | string | null;
271
281
  updatedAt?: Prisma.DateTimeFilter<"Reservation"> | Date | string;
272
282
  user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
273
283
  organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
@@ -285,6 +295,7 @@ export type ReservationOrderByWithAggregationInput = {
285
295
  createdAt?: Prisma.SortOrder;
286
296
  acceptedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
287
297
  cancelledAt?: Prisma.SortOrderInput | Prisma.SortOrder;
298
+ cancellationMessage?: Prisma.SortOrderInput | Prisma.SortOrder;
288
299
  updatedAt?: Prisma.SortOrder;
289
300
  _count?: Prisma.ReservationCountOrderByAggregateInput;
290
301
  _avg?: Prisma.ReservationAvgOrderByAggregateInput;
@@ -308,6 +319,7 @@ export type ReservationScalarWhereWithAggregatesInput = {
308
319
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"Reservation"> | Date | string;
309
320
  acceptedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Reservation"> | Date | string | null;
310
321
  cancelledAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Reservation"> | Date | string | null;
322
+ cancellationMessage?: Prisma.StringNullableWithAggregatesFilter<"Reservation"> | string | null;
311
323
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Reservation"> | Date | string;
312
324
  };
313
325
  export type ReservationCreateInput = {
@@ -321,6 +333,7 @@ export type ReservationCreateInput = {
321
333
  createdAt?: Date | string;
322
334
  acceptedAt?: Date | string | null;
323
335
  cancelledAt?: Date | string | null;
336
+ cancellationMessage?: string | null;
324
337
  updatedAt?: Date | string;
325
338
  user?: Prisma.UserCreateNestedOneWithoutReservationsInput;
326
339
  organization: Prisma.OrganizationCreateNestedOneWithoutReservationsInput;
@@ -338,6 +351,7 @@ export type ReservationUncheckedCreateInput = {
338
351
  createdAt?: Date | string;
339
352
  acceptedAt?: Date | string | null;
340
353
  cancelledAt?: Date | string | null;
354
+ cancellationMessage?: string | null;
341
355
  updatedAt?: Date | string;
342
356
  };
343
357
  export type ReservationUpdateInput = {
@@ -351,6 +365,7 @@ export type ReservationUpdateInput = {
351
365
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
352
366
  acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
353
367
  cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
368
+ cancellationMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
354
369
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
355
370
  user?: Prisma.UserUpdateOneWithoutReservationsNestedInput;
356
371
  organization?: Prisma.OrganizationUpdateOneRequiredWithoutReservationsNestedInput;
@@ -368,6 +383,7 @@ export type ReservationUncheckedUpdateInput = {
368
383
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
369
384
  acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
370
385
  cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
386
+ cancellationMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
371
387
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
372
388
  };
373
389
  export type ReservationCreateManyInput = {
@@ -383,6 +399,7 @@ export type ReservationCreateManyInput = {
383
399
  createdAt?: Date | string;
384
400
  acceptedAt?: Date | string | null;
385
401
  cancelledAt?: Date | string | null;
402
+ cancellationMessage?: string | null;
386
403
  updatedAt?: Date | string;
387
404
  };
388
405
  export type ReservationUpdateManyMutationInput = {
@@ -396,6 +413,7 @@ export type ReservationUpdateManyMutationInput = {
396
413
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
397
414
  acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
398
415
  cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
416
+ cancellationMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
399
417
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
400
418
  };
401
419
  export type ReservationUncheckedUpdateManyInput = {
@@ -411,6 +429,7 @@ export type ReservationUncheckedUpdateManyInput = {
411
429
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
412
430
  acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
413
431
  cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
432
+ cancellationMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
414
433
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
415
434
  };
416
435
  export type ReservationListRelationFilter = {
@@ -434,6 +453,7 @@ export type ReservationCountOrderByAggregateInput = {
434
453
  createdAt?: Prisma.SortOrder;
435
454
  acceptedAt?: Prisma.SortOrder;
436
455
  cancelledAt?: Prisma.SortOrder;
456
+ cancellationMessage?: Prisma.SortOrder;
437
457
  updatedAt?: Prisma.SortOrder;
438
458
  };
439
459
  export type ReservationAvgOrderByAggregateInput = {
@@ -452,6 +472,7 @@ export type ReservationMaxOrderByAggregateInput = {
452
472
  createdAt?: Prisma.SortOrder;
453
473
  acceptedAt?: Prisma.SortOrder;
454
474
  cancelledAt?: Prisma.SortOrder;
475
+ cancellationMessage?: Prisma.SortOrder;
455
476
  updatedAt?: Prisma.SortOrder;
456
477
  };
457
478
  export type ReservationMinOrderByAggregateInput = {
@@ -467,6 +488,7 @@ export type ReservationMinOrderByAggregateInput = {
467
488
  createdAt?: Prisma.SortOrder;
468
489
  acceptedAt?: Prisma.SortOrder;
469
490
  cancelledAt?: Prisma.SortOrder;
491
+ cancellationMessage?: Prisma.SortOrder;
470
492
  updatedAt?: Prisma.SortOrder;
471
493
  };
472
494
  export type ReservationSumOrderByAggregateInput = {
@@ -559,6 +581,7 @@ export type ReservationCreateWithoutUserInput = {
559
581
  createdAt?: Date | string;
560
582
  acceptedAt?: Date | string | null;
561
583
  cancelledAt?: Date | string | null;
584
+ cancellationMessage?: string | null;
562
585
  updatedAt?: Date | string;
563
586
  organization: Prisma.OrganizationCreateNestedOneWithoutReservationsInput;
564
587
  };
@@ -574,6 +597,7 @@ export type ReservationUncheckedCreateWithoutUserInput = {
574
597
  createdAt?: Date | string;
575
598
  acceptedAt?: Date | string | null;
576
599
  cancelledAt?: Date | string | null;
600
+ cancellationMessage?: string | null;
577
601
  updatedAt?: Date | string;
578
602
  };
579
603
  export type ReservationCreateOrConnectWithoutUserInput = {
@@ -613,6 +637,7 @@ export type ReservationScalarWhereInput = {
613
637
  createdAt?: Prisma.DateTimeFilter<"Reservation"> | Date | string;
614
638
  acceptedAt?: Prisma.DateTimeNullableFilter<"Reservation"> | Date | string | null;
615
639
  cancelledAt?: Prisma.DateTimeNullableFilter<"Reservation"> | Date | string | null;
640
+ cancellationMessage?: Prisma.StringNullableFilter<"Reservation"> | string | null;
616
641
  updatedAt?: Prisma.DateTimeFilter<"Reservation"> | Date | string;
617
642
  };
618
643
  export type ReservationCreateWithoutOrganizationInput = {
@@ -626,6 +651,7 @@ export type ReservationCreateWithoutOrganizationInput = {
626
651
  createdAt?: Date | string;
627
652
  acceptedAt?: Date | string | null;
628
653
  cancelledAt?: Date | string | null;
654
+ cancellationMessage?: string | null;
629
655
  updatedAt?: Date | string;
630
656
  user?: Prisma.UserCreateNestedOneWithoutReservationsInput;
631
657
  };
@@ -641,6 +667,7 @@ export type ReservationUncheckedCreateWithoutOrganizationInput = {
641
667
  createdAt?: Date | string;
642
668
  acceptedAt?: Date | string | null;
643
669
  cancelledAt?: Date | string | null;
670
+ cancellationMessage?: string | null;
644
671
  updatedAt?: Date | string;
645
672
  };
646
673
  export type ReservationCreateOrConnectWithoutOrganizationInput = {
@@ -676,6 +703,7 @@ export type ReservationCreateManyUserInput = {
676
703
  createdAt?: Date | string;
677
704
  acceptedAt?: Date | string | null;
678
705
  cancelledAt?: Date | string | null;
706
+ cancellationMessage?: string | null;
679
707
  updatedAt?: Date | string;
680
708
  };
681
709
  export type ReservationUpdateWithoutUserInput = {
@@ -689,6 +717,7 @@ export type ReservationUpdateWithoutUserInput = {
689
717
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
690
718
  acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
691
719
  cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
720
+ cancellationMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
692
721
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
693
722
  organization?: Prisma.OrganizationUpdateOneRequiredWithoutReservationsNestedInput;
694
723
  };
@@ -704,6 +733,7 @@ export type ReservationUncheckedUpdateWithoutUserInput = {
704
733
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
705
734
  acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
706
735
  cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
736
+ cancellationMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
707
737
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
708
738
  };
709
739
  export type ReservationUncheckedUpdateManyWithoutUserInput = {
@@ -718,6 +748,7 @@ export type ReservationUncheckedUpdateManyWithoutUserInput = {
718
748
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
719
749
  acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
720
750
  cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
751
+ cancellationMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
721
752
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
722
753
  };
723
754
  export type ReservationCreateManyOrganizationInput = {
@@ -732,6 +763,7 @@ export type ReservationCreateManyOrganizationInput = {
732
763
  createdAt?: Date | string;
733
764
  acceptedAt?: Date | string | null;
734
765
  cancelledAt?: Date | string | null;
766
+ cancellationMessage?: string | null;
735
767
  updatedAt?: Date | string;
736
768
  };
737
769
  export type ReservationUpdateWithoutOrganizationInput = {
@@ -745,6 +777,7 @@ export type ReservationUpdateWithoutOrganizationInput = {
745
777
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
746
778
  acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
747
779
  cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
780
+ cancellationMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
748
781
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
749
782
  user?: Prisma.UserUpdateOneWithoutReservationsNestedInput;
750
783
  };
@@ -760,6 +793,7 @@ export type ReservationUncheckedUpdateWithoutOrganizationInput = {
760
793
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
761
794
  acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
762
795
  cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
796
+ cancellationMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
763
797
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
764
798
  };
765
799
  export type ReservationUncheckedUpdateManyWithoutOrganizationInput = {
@@ -774,6 +808,7 @@ export type ReservationUncheckedUpdateManyWithoutOrganizationInput = {
774
808
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
775
809
  acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
776
810
  cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
811
+ cancellationMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
777
812
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
778
813
  };
779
814
  export type ReservationSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
@@ -789,6 +824,7 @@ export type ReservationSelect<ExtArgs extends runtime.Types.Extensions.InternalA
789
824
  createdAt?: boolean;
790
825
  acceptedAt?: boolean;
791
826
  cancelledAt?: boolean;
827
+ cancellationMessage?: boolean;
792
828
  updatedAt?: boolean;
793
829
  user?: boolean | Prisma.Reservation$userArgs<ExtArgs>;
794
830
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
@@ -806,6 +842,7 @@ export type ReservationSelectCreateManyAndReturn<ExtArgs extends runtime.Types.E
806
842
  createdAt?: boolean;
807
843
  acceptedAt?: boolean;
808
844
  cancelledAt?: boolean;
845
+ cancellationMessage?: boolean;
809
846
  updatedAt?: boolean;
810
847
  user?: boolean | Prisma.Reservation$userArgs<ExtArgs>;
811
848
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
@@ -823,6 +860,7 @@ export type ReservationSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.E
823
860
  createdAt?: boolean;
824
861
  acceptedAt?: boolean;
825
862
  cancelledAt?: boolean;
863
+ cancellationMessage?: boolean;
826
864
  updatedAt?: boolean;
827
865
  user?: boolean | Prisma.Reservation$userArgs<ExtArgs>;
828
866
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
@@ -840,9 +878,10 @@ export type ReservationSelectScalar = {
840
878
  createdAt?: boolean;
841
879
  acceptedAt?: boolean;
842
880
  cancelledAt?: boolean;
881
+ cancellationMessage?: boolean;
843
882
  updatedAt?: boolean;
844
883
  };
845
- export type ReservationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "firstname" | "lastname" | "userId" | "guests" | "phone" | "date" | "referenceId" | "organizationId" | "createdAt" | "acceptedAt" | "cancelledAt" | "updatedAt", ExtArgs["result"]["reservation"]>;
884
+ export type ReservationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "firstname" | "lastname" | "userId" | "guests" | "phone" | "date" | "referenceId" | "organizationId" | "createdAt" | "acceptedAt" | "cancelledAt" | "cancellationMessage" | "updatedAt", ExtArgs["result"]["reservation"]>;
846
885
  export type ReservationInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
847
886
  user?: boolean | Prisma.Reservation$userArgs<ExtArgs>;
848
887
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
@@ -874,6 +913,7 @@ export type $ReservationPayload<ExtArgs extends runtime.Types.Extensions.Interna
874
913
  createdAt: Date;
875
914
  acceptedAt: Date | null;
876
915
  cancelledAt: Date | null;
916
+ cancellationMessage: string | null;
877
917
  updatedAt: Date;
878
918
  }, ExtArgs["result"]["reservation"]>;
879
919
  composites: {};
@@ -1243,6 +1283,7 @@ export interface ReservationFieldRefs {
1243
1283
  readonly createdAt: Prisma.FieldRef<"Reservation", 'DateTime'>;
1244
1284
  readonly acceptedAt: Prisma.FieldRef<"Reservation", 'DateTime'>;
1245
1285
  readonly cancelledAt: Prisma.FieldRef<"Reservation", 'DateTime'>;
1286
+ readonly cancellationMessage: Prisma.FieldRef<"Reservation", 'String'>;
1246
1287
  readonly updatedAt: Prisma.FieldRef<"Reservation", 'DateTime'>;
1247
1288
  }
1248
1289
  /**
@@ -573,6 +573,7 @@ export declare const customerRoute: {
573
573
  referenceId: z.ZodString;
574
574
  acceptedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
575
575
  cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
576
+ cancellationMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
576
577
  createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
577
578
  }, z.core.$strip>>;
578
579
  }, z.core.$strip>;
@@ -568,6 +568,7 @@ export declare const AdminCustomerDetailSchema: z.ZodObject<{
568
568
  referenceId: z.ZodString;
569
569
  acceptedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
570
570
  cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
571
+ cancellationMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
571
572
  createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
572
573
  }, z.core.$strip>>;
573
574
  }, z.core.$strip>;
@@ -159,6 +159,7 @@ declare class CustomerService {
159
159
  referenceId: string;
160
160
  acceptedAt?: Date | null | undefined;
161
161
  cancelledAt?: Date | null | undefined;
162
+ cancellationMessage?: string | null | undefined;
162
163
  createdAt?: Date | null | undefined;
163
164
  }[];
164
165
  }>;
@@ -304,6 +304,7 @@ export declare const OrganizationConfigurationSchema: z.ZodObject<{
304
304
  MYR: "MYR";
305
305
  RON: "RON";
306
306
  }>;
307
+ defaultTimeZone: z.ZodString;
307
308
  createdAt: z.ZodDate;
308
309
  }, z.core.$strip>;
309
310
  export declare const UpdateOrganizationConfigurationSchema: z.ZodObject<{
@@ -441,6 +442,7 @@ export declare const UpdateOrganizationConfigurationSchema: z.ZodObject<{
441
442
  ji: "ji";
442
443
  zu: "zu";
443
444
  }>>;
445
+ defaultTimeZone: z.ZodOptional<z.ZodString>;
444
446
  countriesShipping: z.ZodOptional<z.ZodArray<z.ZodString>>;
445
447
  stripeAccountId: z.ZodOptional<z.ZodOptional<z.ZodCoercedString<unknown>>>;
446
448
  enableHostCheckout: z.ZodOptional<z.ZodBoolean>;
@@ -1 +1 @@
1
- import{z as e}from"@hono/zod-openapi";import{currency as n}from"../../schemas/currency.schema";import{locale as i}from"../../schemas/locales.schema";export const TimeScheduleSchema=e.object({monday:e.string().nullable().openapi({example:"09:00",description:"Opening time for Monday"}),tuesday:e.string().nullable().openapi({example:"09:00",description:"Opening time for Tuesday"}),wednesday:e.string().nullable().openapi({example:"09:00",description:"Opening time for Wednesday"}),thursday:e.string().nullable().openapi({example:"09:00",description:"Opening time for Thursday"}),friday:e.string().nullable().openapi({example:"09:00",description:"Opening time for Friday"}),saturday:e.string().nullable().openapi({example:"09:00",description:"Opening time for Saturday"}),sunday:e.string().nullable().openapi({example:"09:00",description:"Opening time for Sunday"})}).openapi("TimeSchedule"),OrganizationConfigurationSchema=e.object({id:e.string().openapi({example:"clm1234567890abcdef",description:"Unique identifier for the organization configuration"}),hostname:e.coerce.string().optional().openapi({example:"store.example.com",description:"Hostname associated with the organization"}),countriesShipping:e.array(e.string()).openapi({example:["US","CA"],description:"List of countries where shipping is available"}),stripeAccountId:e.coerce.string().optional().openapi({example:"acct_123456789",description:"Stripe account ID associated with the organization"}),enableHostCheckout:e.boolean().openapi({example:!0,description:"Indicates if host checkout is enabled"}),enableHostTracking:e.boolean().openapi({example:!0,description:"Indicates if host tracking is enabled"}),isAcceptingOrders:e.boolean().openapi({example:!0,description:"Indicates if the organization is currently accepting orders"}),isAcceptingReservations:e.boolean().openapi({example:!0,description:"Indicates if the organization is currently accepting reservations"}),isOpen:e.boolean().default(!1).openapi({example:!0,description:"Indicates if the organization is currently open"}),defaultLocale:i,supportedLocales:e.array(i).openapi({description:"List of supported locales for the organization"}),openingTimes:TimeScheduleSchema.optional(),closingTimes:TimeScheduleSchema.optional(),facebookProfile:e.string().nullable().optional().openapi({example:"https://www.facebook.com/example",description:"Facebook profile URL for the organization"}),instagramProfile:e.string().nullable().optional().openapi({example:"https://www.instagram.com/example",description:"Instagram profile URL for the organization"}),xProfile:e.string().nullable().optional().openapi({example:"https://www.x.com/example",description:"X profile URL for the organization"}),defaultCurrency:n.openapi({example:"USD",description:"Default currency for the organization"}),createdAt:e.date().openapi({description:"Timestamp when the organization configuration was created"})}).openapi("OrganizationConfiguration"),UpdateOrganizationConfigurationSchema=OrganizationConfigurationSchema.pick({hostname:!0,countriesShipping:!0,stripeAccountId:!0,enableHostCheckout:!0,enableHostTracking:!0,isAcceptingOrders:!0,isAcceptingReservations:!0,defaultLocale:!0,supportedLocales:!0,defaultCurrency:!0,openingTimes:!0,closingTimes:!0,facebookProfile:!0,instagramProfile:!0,xProfile:!0}).partial().openapi("UpdateOrganizationConfiguration");
1
+ import{z as e}from"@hono/zod-openapi";import{currency as n}from"../../schemas/currency.schema";import{locale as i}from"../../schemas/locales.schema";import{defaultTimeZone as o}from"../../schemas/time-zone.schema";export const TimeScheduleSchema=e.object({monday:e.string().nullable().openapi({example:"09:00",description:"Opening time for Monday"}),tuesday:e.string().nullable().openapi({example:"09:00",description:"Opening time for Tuesday"}),wednesday:e.string().nullable().openapi({example:"09:00",description:"Opening time for Wednesday"}),thursday:e.string().nullable().openapi({example:"09:00",description:"Opening time for Thursday"}),friday:e.string().nullable().openapi({example:"09:00",description:"Opening time for Friday"}),saturday:e.string().nullable().openapi({example:"09:00",description:"Opening time for Saturday"}),sunday:e.string().nullable().openapi({example:"09:00",description:"Opening time for Sunday"})}).openapi("TimeSchedule"),OrganizationConfigurationSchema=e.object({id:e.string().openapi({example:"clm1234567890abcdef",description:"Unique identifier for the organization configuration"}),hostname:e.coerce.string().optional().openapi({example:"store.example.com",description:"Hostname associated with the organization"}),countriesShipping:e.array(e.string()).openapi({example:["US","CA"],description:"List of countries where shipping is available"}),stripeAccountId:e.coerce.string().optional().openapi({example:"acct_123456789",description:"Stripe account ID associated with the organization"}),enableHostCheckout:e.boolean().openapi({example:!0,description:"Indicates if host checkout is enabled"}),enableHostTracking:e.boolean().openapi({example:!0,description:"Indicates if host tracking is enabled"}),isAcceptingOrders:e.boolean().openapi({example:!0,description:"Indicates if the organization is currently accepting orders"}),isAcceptingReservations:e.boolean().openapi({example:!0,description:"Indicates if the organization is currently accepting reservations"}),isOpen:e.boolean().default(!1).openapi({example:!0,description:"Indicates if the organization is currently open"}),defaultLocale:i,supportedLocales:e.array(i).openapi({description:"List of supported locales for the organization"}),openingTimes:TimeScheduleSchema.optional(),closingTimes:TimeScheduleSchema.optional(),facebookProfile:e.string().nullable().optional().openapi({example:"https://www.facebook.com/example",description:"Facebook profile URL for the organization"}),instagramProfile:e.string().nullable().optional().openapi({example:"https://www.instagram.com/example",description:"Instagram profile URL for the organization"}),xProfile:e.string().nullable().optional().openapi({example:"https://www.x.com/example",description:"X profile URL for the organization"}),defaultCurrency:n.openapi({example:"USD",description:"Default currency for the organization"}),defaultTimeZone:o,createdAt:e.date().openapi({description:"Timestamp when the organization configuration was created"})}).openapi("OrganizationConfiguration"),UpdateOrganizationConfigurationSchema=OrganizationConfigurationSchema.pick({hostname:!0,countriesShipping:!0,stripeAccountId:!0,enableHostCheckout:!0,enableHostTracking:!0,isAcceptingOrders:!0,isAcceptingReservations:!0,defaultLocale:!0,supportedLocales:!0,defaultCurrency:!0,defaultTimeZone:!0,openingTimes:!0,closingTimes:!0,facebookProfile:!0,instagramProfile:!0,xProfile:!0}).partial().openapi("UpdateOrganizationConfiguration");
@@ -455,6 +455,7 @@ export declare const organizationRoute: {
455
455
  MYR: "MYR";
456
456
  RON: "RON";
457
457
  }>;
458
+ defaultTimeZone: z.ZodString;
458
459
  createdAt: z.ZodDate;
459
460
  }, z.core.$strip>;
460
461
  logo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -822,6 +823,7 @@ export declare const organizationRoute: {
822
823
  MYR: "MYR";
823
824
  RON: "RON";
824
825
  }>;
826
+ defaultTimeZone: z.ZodString;
825
827
  createdAt: z.ZodDate;
826
828
  }, z.core.$strip>;
827
829
  logo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -1216,6 +1218,7 @@ export declare const organizationRoute: {
1216
1218
  MYR: "MYR";
1217
1219
  RON: "RON";
1218
1220
  }>;
1221
+ defaultTimeZone: z.ZodString;
1219
1222
  createdAt: z.ZodDate;
1220
1223
  }, z.core.$strip>;
1221
1224
  logo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -1413,6 +1416,7 @@ export declare const organizationRoute: {
1413
1416
  ji: "ji";
1414
1417
  zu: "zu";
1415
1418
  }>>;
1419
+ defaultTimeZone: z.ZodOptional<z.ZodString>;
1416
1420
  countriesShipping: z.ZodOptional<z.ZodArray<z.ZodString>>;
1417
1421
  stripeAccountId: z.ZodOptional<z.ZodOptional<z.ZodCoercedString<unknown>>>;
1418
1422
  enableHostCheckout: z.ZodOptional<z.ZodBoolean>;
@@ -1909,6 +1913,7 @@ export declare const organizationRoute: {
1909
1913
  MYR: "MYR";
1910
1914
  RON: "RON";
1911
1915
  }>;
1916
+ defaultTimeZone: z.ZodString;
1912
1917
  createdAt: z.ZodDate;
1913
1918
  }, z.core.$strip>;
1914
1919
  logo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -316,6 +316,7 @@ export declare const OrganizationSchema: z.ZodObject<{
316
316
  MYR: "MYR";
317
317
  RON: "RON";
318
318
  }>;
319
+ defaultTimeZone: z.ZodString;
319
320
  createdAt: z.ZodDate;
320
321
  }, z.core.$strip>;
321
322
  logo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -505,6 +506,7 @@ export declare const UpdateOrganizationSchema: z.ZodObject<{
505
506
  ji: "ji";
506
507
  zu: "zu";
507
508
  }>>;
509
+ defaultTimeZone: z.ZodOptional<z.ZodString>;
508
510
  countriesShipping: z.ZodOptional<z.ZodArray<z.ZodString>>;
509
511
  stripeAccountId: z.ZodOptional<z.ZodOptional<z.ZodCoercedString<unknown>>>;
510
512
  enableHostCheckout: z.ZodOptional<z.ZodBoolean>;
@@ -54,6 +54,7 @@ declare class OrganizationService {
54
54
  defaultLocale: "hr" | "th" | "tr" | "id" | "is" | "mt" | "ml" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ms" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
55
55
  supportedLocales: ("hr" | "th" | "tr" | "id" | "is" | "mt" | "ml" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ms" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu")[];
56
56
  defaultCurrency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
57
+ defaultTimeZone: string;
57
58
  createdAt: Date;
58
59
  hostname?: string | undefined;
59
60
  stripeAccountId?: string | undefined;
@@ -126,6 +127,7 @@ declare class OrganizationService {
126
127
  defaultLocale: "hr" | "th" | "tr" | "id" | "is" | "mt" | "ml" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ms" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
127
128
  supportedLocales: ("hr" | "th" | "tr" | "id" | "is" | "mt" | "ml" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ms" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu")[];
128
129
  defaultCurrency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
130
+ defaultTimeZone: string;
129
131
  createdAt: Date;
130
132
  hostname?: string | undefined;
131
133
  stripeAccountId?: string | undefined;
@@ -195,6 +197,7 @@ declare class OrganizationService {
195
197
  defaultLocale: "hr" | "th" | "tr" | "id" | "is" | "mt" | "ml" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ms" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
196
198
  supportedLocales: ("hr" | "th" | "tr" | "id" | "is" | "mt" | "ml" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ms" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu")[];
197
199
  defaultCurrency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
200
+ defaultTimeZone: string;
198
201
  createdAt: Date;
199
202
  hostname?: string | undefined;
200
203
  stripeAccountId?: string | undefined;
@@ -264,6 +267,7 @@ declare class OrganizationService {
264
267
  defaultLocale: "hr" | "th" | "tr" | "id" | "is" | "mt" | "ml" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ms" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
265
268
  supportedLocales: ("hr" | "th" | "tr" | "id" | "is" | "mt" | "ml" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ms" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu")[];
266
269
  defaultCurrency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
270
+ defaultTimeZone: string;
267
271
  createdAt: Date;
268
272
  hostname?: string | undefined;
269
273
  stripeAccountId?: string | undefined;
@@ -1 +1 @@
1
- import{__awaiter as l}from"tslib";import{z as p}from"@hono/zod-openapi";import{HttpException as T}from"../../core/exceptions/http-exception";import{OrganizationSchema as d,PaginationMetaSchema as h}from"../../schemas";class S{constructor(t,e){this.prisma=t,this.locationService=e,this.convertToTimeString=i=>i?i.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1,timeZone:"UTC"}):""}requireLocationService(){if(!this.locationService)throw new Error("Google Maps API key is required");return this.locationService}getOrganizations(t,e){return l(this,void 0,void 0,function*(){const{page:i,limit:n}=e,[o,s]=yield this.prisma.organization.paginate({orderBy:{createdAt:"desc"},where:{members:{some:{userId:t}}},include:{address:!0,configuration:!0,logoFile:!0}}).withPages({page:i,limit:n});return{meta:h.parse(s),list:p.array(d).parse(o)}})}formatDateScheduleToTimeString(t){return t?["monday","tuesday","wednesday","thursday","friday","saturday","sunday"].reduce((i,n)=>(i[n]=this.convertToTimeString(t[n]),i),{}):null}getOrganization(t){return l(this,void 0,void 0,function*(){var e,i;const n=yield this.prisma.organization.findUnique({where:{id:t,deletedAt:null},include:{address:!0,configuration:{include:{openingTimes:!0,closingTimes:!0}},logoFile:!0}});if(!n)throw new T(404,"Organization not found");const o=(()=>{if(!n.configuration.isAcceptingOrders||!n.configuration.openingTimes||!n.configuration.closingTimes)return!1;const s=new Date(new Date().toLocaleString("en-US",{timeZone:"Europe/Warsaw"})),u=s.toLocaleDateString("en-US",{weekday:"long"}).toLowerCase(),a=s.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1,timeZone:"Europe/Warsaw"}),r=n.configuration.openingTimes[u],c=n.configuration.closingTimes[u];if(!r||!c)return!1;const m=this.convertToTimeString(r),f=this.convertToTimeString(c);return a>=m&&a<=f})();return d.parse(Object.assign(Object.assign({},n),{configuration:Object.assign(Object.assign({},n.configuration),{isOpen:o,openingTimes:(e=this.formatDateScheduleToTimeString(n.configuration.openingTimes))!==null&&e!==void 0?e:void 0,closingTimes:(i=this.formatDateScheduleToTimeString(n.configuration.closingTimes))!==null&&i!==void 0?i:void 0})}))})}createOrganization(t,e){return l(this,void 0,void 0,function*(){var i,n;const o=yield this.requireLocationService().getPlaceDetails(e.address.placeId),s=yield this.prisma.organization.create({data:Object.assign({name:e.name,phone:e.phone,email:e.email,address:{create:Object.assign(Object.assign({},e.address),{latitude:o.latitude,longitude:o.longitude,createdBy:t})},configuration:{create:{countriesShipping:["us"],createdBy:t,enableHostCheckout:!1,enableHostTracking:!1,isAcceptingReservations:!1,openingTimes:{create:{monday:null,tuesday:null,wednesday:null,thursday:null,friday:null,saturday:null,sunday:null}},closingTimes:{create:{monday:null,tuesday:null,wednesday:null,thursday:null,friday:null,saturday:null}}}},members:{create:{user:{connect:{id:t}},role:"owner"}},createdBy:t},e.logoId?{logoFile:{connect:{id:e.logoId}}}:{}),include:{address:!0,configuration:{include:{openingTimes:!0,closingTimes:!0}},logoFile:!0}});return d.parse(Object.assign(Object.assign({},s),{configuration:Object.assign(Object.assign({},s.configuration),{openingTimes:(i=this.formatDateScheduleToTimeString(s.configuration.openingTimes))!==null&&i!==void 0?i:void 0,closingTimes:(n=this.formatDateScheduleToTimeString(s.configuration.closingTimes))!==null&&n!==void 0?n:void 0})}))})}updateOrganization(t,e,i){return l(this,void 0,void 0,function*(){var n,o;if(!(yield this.prisma.organization.findUnique({where:{id:t,deletedAt:null}})))throw new T(404,"Organization not found");const u=i.address?yield this.requireLocationService().getPlaceDetails(i.address.placeId):void 0,a=c=>{if(!c)return null;const[m,f]=c.split(":").map(Number),g=new Date;return g.setUTCHours(m),g.setUTCMinutes(f),g.setUTCSeconds(0),g.setUTCMilliseconds(0),g},r=yield this.prisma.organization.update({where:{id:t},data:Object.assign(Object.assign(Object.assign(Object.assign({name:i.name,phone:i.phone,email:i.email},i.logoId?{logoFile:{connect:{id:i.logoId}}}:{}),{address:i.address?{update:Object.assign(Object.assign({},i.address),{latitude:u.latitude,longitude:u.longitude,updatedBy:e})}:void 0}),i.configuration?{configuration:{update:{countriesShipping:i.configuration.countriesShipping,enableHostCheckout:i.configuration.enableHostCheckout,enableHostTracking:i.configuration.enableHostTracking,defaultLocale:i.configuration.defaultLocale,supportedLocales:i.configuration.supportedLocales,defaultCurrency:i.configuration.defaultCurrency,updatedBy:e,isAcceptingOrders:i.configuration.isAcceptingOrders,isAcceptingReservations:i.configuration.isAcceptingReservations,openingTimes:i.configuration.openingTimes?{update:{data:{monday:i.configuration.openingTimes.monday?a(i.configuration.openingTimes.monday):null,tuesday:i.configuration.openingTimes.tuesday?a(i.configuration.openingTimes.tuesday):null,wednesday:i.configuration.openingTimes.wednesday?a(i.configuration.openingTimes.wednesday):null,thursday:i.configuration.openingTimes.thursday?a(i.configuration.openingTimes.thursday):null,friday:i.configuration.openingTimes.friday?a(i.configuration.openingTimes.friday):null,saturday:i.configuration.openingTimes.saturday?a(i.configuration.openingTimes.saturday):null,sunday:i.configuration.openingTimes.sunday?a(i.configuration.openingTimes.sunday):null}}}:void 0,closingTimes:i.configuration.closingTimes?{update:{data:{monday:i.configuration.closingTimes.monday?a(i.configuration.closingTimes.monday):null,tuesday:i.configuration.closingTimes.tuesday?a(i.configuration.closingTimes.tuesday):null,wednesday:i.configuration.closingTimes.wednesday?a(i.configuration.closingTimes.wednesday):null,thursday:i.configuration.closingTimes.thursday?a(i.configuration.closingTimes.thursday):null,friday:i.configuration.closingTimes.friday?a(i.configuration.closingTimes.friday):null,saturday:i.configuration.closingTimes.saturday?a(i.configuration.closingTimes.saturday):null,sunday:i.configuration.closingTimes.sunday?a(i.configuration.closingTimes.sunday):null}}}:void 0}}}:void 0),{updatedBy:e}),include:{address:!0,logoFile:!0,configuration:{include:{openingTimes:!0,closingTimes:!0}}}});return d.parse(Object.assign(Object.assign({},r),{configuration:Object.assign(Object.assign({},r.configuration),{openingTimes:(n=this.formatDateScheduleToTimeString(r.configuration.openingTimes))!==null&&n!==void 0?n:void 0,closingTimes:(o=this.formatDateScheduleToTimeString(r.configuration.closingTimes))!==null&&o!==void 0?o:void 0})}))})}deleteOrganization(t,e){return l(this,void 0,void 0,function*(){if(!(yield this.prisma.organization.findUnique({where:{id:t}})))throw new T(404,"Organization not found");yield this.prisma.organization.update({where:{id:t},data:{deletedAt:new Date,deletedBy:e}})})}}export{S as OrganizationService};
1
+ import{__awaiter as l}from"tslib";import{z as p}from"@hono/zod-openapi";import{HttpException as T}from"../../core/exceptions/http-exception";import{OrganizationSchema as d,PaginationMetaSchema as h}from"../../schemas";class S{constructor(t,e){this.prisma=t,this.locationService=e,this.convertToTimeString=i=>i?i.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1,timeZone:"UTC"}):""}requireLocationService(){if(!this.locationService)throw new Error("Google Maps API key is required");return this.locationService}getOrganizations(t,e){return l(this,void 0,void 0,function*(){const{page:i,limit:n}=e,[o,s]=yield this.prisma.organization.paginate({orderBy:{createdAt:"desc"},where:{members:{some:{userId:t}}},include:{address:!0,configuration:!0,logoFile:!0}}).withPages({page:i,limit:n});return{meta:h.parse(s),list:p.array(d).parse(o)}})}formatDateScheduleToTimeString(t){return t?["monday","tuesday","wednesday","thursday","friday","saturday","sunday"].reduce((i,n)=>(i[n]=this.convertToTimeString(t[n]),i),{}):null}getOrganization(t){return l(this,void 0,void 0,function*(){var e,i;const n=yield this.prisma.organization.findUnique({where:{id:t,deletedAt:null},include:{address:!0,configuration:{include:{openingTimes:!0,closingTimes:!0}},logoFile:!0}});if(!n)throw new T(404,"Organization not found");const o=(()=>{if(!n.configuration.isAcceptingOrders||!n.configuration.openingTimes||!n.configuration.closingTimes)return!1;const s=new Date(new Date().toLocaleString("en-US",{timeZone:"Europe/Warsaw"})),u=s.toLocaleDateString("en-US",{weekday:"long"}).toLowerCase(),a=s.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1,timeZone:"Europe/Warsaw"}),r=n.configuration.openingTimes[u],c=n.configuration.closingTimes[u];if(!r||!c)return!1;const m=this.convertToTimeString(r),f=this.convertToTimeString(c);return a>=m&&a<=f})();return d.parse(Object.assign(Object.assign({},n),{configuration:Object.assign(Object.assign({},n.configuration),{isOpen:o,openingTimes:(e=this.formatDateScheduleToTimeString(n.configuration.openingTimes))!==null&&e!==void 0?e:void 0,closingTimes:(i=this.formatDateScheduleToTimeString(n.configuration.closingTimes))!==null&&i!==void 0?i:void 0})}))})}createOrganization(t,e){return l(this,void 0,void 0,function*(){var i,n;const o=yield this.requireLocationService().getPlaceDetails(e.address.placeId),s=yield this.prisma.organization.create({data:Object.assign({name:e.name,phone:e.phone,email:e.email,address:{create:Object.assign(Object.assign({},e.address),{latitude:o.latitude,longitude:o.longitude,createdBy:t})},configuration:{create:{countriesShipping:["us"],createdBy:t,enableHostCheckout:!1,enableHostTracking:!1,isAcceptingReservations:!1,openingTimes:{create:{monday:null,tuesday:null,wednesday:null,thursday:null,friday:null,saturday:null,sunday:null}},closingTimes:{create:{monday:null,tuesday:null,wednesday:null,thursday:null,friday:null,saturday:null}}}},members:{create:{user:{connect:{id:t}},role:"owner"}},createdBy:t},e.logoId?{logoFile:{connect:{id:e.logoId}}}:{}),include:{address:!0,configuration:{include:{openingTimes:!0,closingTimes:!0}},logoFile:!0}});return d.parse(Object.assign(Object.assign({},s),{configuration:Object.assign(Object.assign({},s.configuration),{openingTimes:(i=this.formatDateScheduleToTimeString(s.configuration.openingTimes))!==null&&i!==void 0?i:void 0,closingTimes:(n=this.formatDateScheduleToTimeString(s.configuration.closingTimes))!==null&&n!==void 0?n:void 0})}))})}updateOrganization(t,e,i){return l(this,void 0,void 0,function*(){var n,o;if(!(yield this.prisma.organization.findUnique({where:{id:t,deletedAt:null}})))throw new T(404,"Organization not found");const u=i.address?yield this.requireLocationService().getPlaceDetails(i.address.placeId):void 0,a=c=>{if(!c)return null;const[m,f]=c.split(":").map(Number),g=new Date;return g.setUTCHours(m),g.setUTCMinutes(f),g.setUTCSeconds(0),g.setUTCMilliseconds(0),g},r=yield this.prisma.organization.update({where:{id:t},data:Object.assign(Object.assign(Object.assign(Object.assign({name:i.name,phone:i.phone,email:i.email},i.logoId?{logoFile:{connect:{id:i.logoId}}}:{}),{address:i.address?{update:Object.assign(Object.assign({},i.address),{latitude:u.latitude,longitude:u.longitude,updatedBy:e})}:void 0}),i.configuration?{configuration:{update:{countriesShipping:i.configuration.countriesShipping,enableHostCheckout:i.configuration.enableHostCheckout,enableHostTracking:i.configuration.enableHostTracking,defaultLocale:i.configuration.defaultLocale,defaultTimeZone:i.configuration.defaultTimeZone,supportedLocales:i.configuration.supportedLocales,defaultCurrency:i.configuration.defaultCurrency,updatedBy:e,isAcceptingOrders:i.configuration.isAcceptingOrders,isAcceptingReservations:i.configuration.isAcceptingReservations,openingTimes:i.configuration.openingTimes?{update:{data:{monday:i.configuration.openingTimes.monday?a(i.configuration.openingTimes.monday):null,tuesday:i.configuration.openingTimes.tuesday?a(i.configuration.openingTimes.tuesday):null,wednesday:i.configuration.openingTimes.wednesday?a(i.configuration.openingTimes.wednesday):null,thursday:i.configuration.openingTimes.thursday?a(i.configuration.openingTimes.thursday):null,friday:i.configuration.openingTimes.friday?a(i.configuration.openingTimes.friday):null,saturday:i.configuration.openingTimes.saturday?a(i.configuration.openingTimes.saturday):null,sunday:i.configuration.openingTimes.sunday?a(i.configuration.openingTimes.sunday):null}}}:void 0,closingTimes:i.configuration.closingTimes?{update:{data:{monday:i.configuration.closingTimes.monday?a(i.configuration.closingTimes.monday):null,tuesday:i.configuration.closingTimes.tuesday?a(i.configuration.closingTimes.tuesday):null,wednesday:i.configuration.closingTimes.wednesday?a(i.configuration.closingTimes.wednesday):null,thursday:i.configuration.closingTimes.thursday?a(i.configuration.closingTimes.thursday):null,friday:i.configuration.closingTimes.friday?a(i.configuration.closingTimes.friday):null,saturday:i.configuration.closingTimes.saturday?a(i.configuration.closingTimes.saturday):null,sunday:i.configuration.closingTimes.sunday?a(i.configuration.closingTimes.sunday):null}}}:void 0}}}:void 0),{updatedBy:e}),include:{address:!0,logoFile:!0,configuration:{include:{openingTimes:!0,closingTimes:!0}}}});return d.parse(Object.assign(Object.assign({},r),{configuration:Object.assign(Object.assign({},r.configuration),{openingTimes:(n=this.formatDateScheduleToTimeString(r.configuration.openingTimes))!==null&&n!==void 0?n:void 0,closingTimes:(o=this.formatDateScheduleToTimeString(r.configuration.closingTimes))!==null&&o!==void 0?o:void 0})}))})}deleteOrganization(t,e){return l(this,void 0,void 0,function*(){if(!(yield this.prisma.organization.findUnique({where:{id:t}})))throw new T(404,"Organization not found");yield this.prisma.organization.update({where:{id:t},data:{deletedAt:new Date,deletedBy:e}})})}}export{S as OrganizationService};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as a}from"react/jsx-runtime";import{format as b}from"date-fns";import{Body as N,Column as s,Container as x,Head as v,Heading as k,Hr as A,Html as T,Img as r,Link as n,Preview as C,Row as d,Section as i,Tailwind as j,Text as l}from"../../../core/email/components";const u=({user:f,organization:t,reservation:c})=>{var m,o,h,g,p;const y=`Your reservation with ${t.name} has been cancelled`,w=b(new Date(c.date),"dd.MM.yyyy 'at' HH:mm");return a(T,{children:[e(v,{}),e(C,{children:y}),e(j,{children:a(N,{className:"bg-gray-50 font-sans",children:[a(x,{className:"bg-gray-50 p-6 max-w-[600px]",children:[e(i,{className:"mb-6",children:a(d,{children:[e(s,{className:"w-[80%]",children:e(r,{alt:`${t.name} logo`,height:"100",src:(m=t.logoFile)===null||m===void 0?void 0:m.url,className:"rounded-lg"})}),e(s,{align:"right",children:a(d,{align:"right",children:[e(s,{children:e(n,{href:"https://www.instagram.com/madrasbistro/",children:e(r,{alt:"Instagram",className:"mx-[4px]",height:"36",src:"https://react.email/static/instagram-logo.png",width:"36"})})}),e(s,{children:e(n,{href:"https://www.facebook.com/madrasBistro/",children:e(r,{alt:"Facebook",className:"mx-[4px]",height:"36",src:"https://react.email/static/facebook-logo.png",width:"36"})})})]})})]})}),a(i,{children:[a(k,{className:"text-3xl font-bold text-gray-800 mb-0",children:["Hi ",f.firstname,","]}),e(l,{className:"text-gray-600 mb-2 text-lg",children:"Your reservation has been cancelled."})]})]}),a(x,{className:"mx-auto max-w-[600px] rounded-xl bg-white px-6",children:[e(i,{className:"mb-6",children:a(d,{children:[a(s,{className:"w-[60%]",children:[e(l,{className:"text-gray-500 mb-0",children:"Cancelled reservation details"}),a(l,{className:"font-semibold text-gray-800 my-0",children:[c.firstname," ",c.lastname]}),a(l,{className:"font-semibold text-gray-800 my-0",children:["Reference: ",c.referenceId]}),a(l,{className:"font-semibold text-gray-800 my-0",children:["Date and Time: ",w]}),a(l,{className:"font-semibold text-gray-800 my-0",children:["Number of Guests: ",c.guests]})]}),e(s,{className:"w-[40%] p-0 mt-0",align:"right",valign:"top",children:e(l,{className:"text-gray-500 mb-0 pt-1",children:b(new Date,"dd.MM.yyyy")})})]})}),e(A,{className:"border-gray-200 mt-4"}),a(i,{className:"mb-6",children:[a(l,{className:"text-gray-700",children:["Your reservation at ",t.name," has been cancelled. If you did not request this cancellation or wish to make a new reservation, please contact us at ",t.phone,"."]}),a(l,{className:"text-gray-700",children:["We hope to welcome you at ",t.name," another time."]})]})]}),e(i,{className:"text-center bg-gray-50 py-5",children:a("table",{className:"w-full",children:[e("tr",{className:"w-full",children:e("td",{align:"center",children:((o=t.logoFile)===null||o===void 0?void 0:o.url)&&e(r,{alt:`${t.name} logo`,height:"100",src:t.logoFile.url,className:"rounded-lg"})})}),e("tr",{className:"w-full",children:a("td",{align:"center",children:[e(l,{className:"my-[8px] text-[16px] font-semibold text-xl pt-2 text-gray-900",children:t.name}),a(l,{className:"my-[8px] text-[16px] leading-[24px] text-gray-500",children:[(h=t.address)===null||h===void 0?void 0:h.addressLineOne,","," ",(g=t.address)===null||g===void 0?void 0:g.zipCode," ",(p=t.address)===null||p===void 0?void 0:p.city]}),e(l,{className:"mb-0 mt-[4px] text-[16px] leading-[24px] text-gray-500",children:t.phone})]})}),e("tr",{children:e("td",{align:"center",children:a(d,{className:"table-cell h-[44px] w-[56px] align-bottom pt-5",children:[e(s,{className:"pr-[8px]",children:e(n,{href:"https://www.facebook.com/madrasBistro/",children:e(r,{alt:"Facebook",height:"36",src:"https://react.email/static/facebook-logo.png",width:"36"})})}),e(s,{children:e(n,{href:"https://www.instagram.com/madrasbistro/",children:e(r,{alt:"Instagram",height:"36",src:"https://react.email/static/instagram-logo.png",width:"36"})})})]})})})]})})]})})]})},F={user:{id:"VD0OJ52f0mdAnm5YePP6BAW6hdbaCjAJ",name:"Abhishek Shaji",email:"kontakt@abhishek.pl",emailVerified:!0,image:"https://lh3.googleusercontent.com/a/ACg8ocKbkCAMTNvMizjXNxcm1aYtBiWnYpCYmU-7aE2Ft_M_uiHheZ5f=s96-c",createdAt:"2025-03-22T22:54:40.260Z",updatedAt:"2025-03-22T22:54:40.260Z",firstname:"Abhishek",lastname:"Shaji"},reservation:{id:"cm94wbpbm0000itx1iv9k2mqr",referenceId:"PH6LD6",firstname:"Abhishek",lastname:"Shaji",phone:"+48570135862",guests:4,date:new Date("2025-04-07T19:30:00.000Z"),createdAt:"2025-03-22T22:54:40.260Z",acceptedAt:"2025-03-22T23:00:23.456Z",cancelledAt:"2025-03-23T10:15:45.789Z"},organization:{id:"cm8kthfdq0001lg03b59mdy7b",name:"Madras Bistro",phone:"+48570135862",email:"contact@madrasbistro.pl",createdAt:"2025-03-22T23:05:14.271Z",legalEntityId:null,address:{id:"cm8kthfdr0002lg0350ijialt",firstname:null,lastname:null,phone:null,addressLineOne:"Plac Bohater\xF3w Getta 2",doorNumber:null,addressLineTwo:"3",zipCode:"33-332",city:"Krak\xF3w",country:"PL",placeId:"ChIJf-nsRkRbFkcR21gtObFSSSA",deliveryInstructions:null},configuration:{id:"cm8kthfdr0003lg03ghgs262n",hostname:"madrasbistro.pl",countriesShipping:["us"],stripeAccountId:"null",enableHostCheckout:!1,enableHostTracking:!1,isAcceptingOrders:!1,isAcceptingReservations:!1,defaultLocale:"en",supportedLocales:["en","pl"],defaultCurrency:"PLN",createdAt:"2025-03-22T23:05:14.271Z"},logo:"https://z3liuyatqnepss3d.public.blob.vercel-storage.com/logo-zeJymFRMFCIKPlvjxYm2af3SAWvBOj.png",logoFile:{id:"cm8ktmu890005lg0356gwclfk",url:"https://z3liuyatqnepss3d.public.blob.vercel-storage.com/logo-zeJymFRMFCIKPlvjxYm2af3SAWvBOj.png",mimeType:"image/png",size:1652289,filename:"logo.png"}}};u.PreviewProps=F;export default u;export{u as ReservationCancellationEmail};
1
+ import{jsx as e,jsxs as a}from"react/jsx-runtime";import{Body as y,Column as r,Container as x,Head as N,Heading as v,Hr as k,Html as A,Img as c,Link as n,Preview as T,Row as d,Section as i,Tailwind as C,Text as t}from"../../../core/email/components";import{formatReservationEmailDate as j,formatReservationEmailDateTime as F}from"./reservation-email-date";const b=({user:u,organization:l,reservation:s})=>{var m,o,h,g,p;const f=`Your reservation with ${l.name} has been cancelled`,w=F(s.date);return a(A,{children:[e(N,{}),e(T,{children:f}),e(C,{children:a(y,{className:"bg-gray-50 font-sans",children:[a(x,{className:"bg-gray-50 p-6 max-w-[600px]",children:[e(i,{className:"mb-6",children:a(d,{children:[e(r,{className:"w-[80%]",children:e(c,{alt:`${l.name} logo`,height:"100",src:(m=l.logoFile)===null||m===void 0?void 0:m.url,className:"rounded-lg"})}),e(r,{align:"right",children:a(d,{align:"right",children:[e(r,{children:e(n,{href:"https://www.instagram.com/madrasbistro/",children:e(c,{alt:"Instagram",className:"mx-[4px]",height:"36",src:"https://react.email/static/instagram-logo.png",width:"36"})})}),e(r,{children:e(n,{href:"https://www.facebook.com/madrasBistro/",children:e(c,{alt:"Facebook",className:"mx-[4px]",height:"36",src:"https://react.email/static/facebook-logo.png",width:"36"})})})]})})]})}),a(i,{children:[a(v,{className:"text-3xl font-bold text-gray-800 mb-0",children:["Hi ",u.firstname,","]}),e(t,{className:"text-gray-600 mb-2 text-lg",children:"Your reservation has been cancelled."})]})]}),a(x,{className:"mx-auto max-w-[600px] rounded-xl bg-white px-6",children:[e(i,{className:"mb-6",children:a(d,{children:[a(r,{className:"w-[60%]",children:[e(t,{className:"text-gray-500 mb-0",children:"Cancelled reservation details"}),a(t,{className:"font-semibold text-gray-800 my-0",children:[s.firstname," ",s.lastname]}),a(t,{className:"font-semibold text-gray-800 my-0",children:["Reference: ",s.referenceId]}),a(t,{className:"font-semibold text-gray-800 my-0",children:["Date and Time: ",w]}),a(t,{className:"font-semibold text-gray-800 my-0",children:["Number of Guests: ",s.guests]})]}),e(r,{className:"w-[40%] p-0 mt-0",align:"right",valign:"top",children:e(t,{className:"text-gray-500 mb-0 pt-1",children:j(new Date)})})]})}),!s.cancellationMessage&&e(k,{className:"border-gray-200 mt-4"}),a(i,{className:"mb-6",children:[s.cancellationMessage?a(i,{className:"mb-6 rounded-xl border border-amber-200 bg-amber-50 px-4 py-3",children:[e(t,{className:"mt-0 mb-1 text-sm font-semibold text-amber-800",children:"Reason / Message"}),e(t,{className:"m-0 whitespace-pre-wrap text-gray-800",children:s.cancellationMessage})]}):null,a(t,{className:"text-gray-700",children:["If you did not request this cancellation or wish to make a new reservation, please contact us at ",l.phone,"."]}),a(t,{className:"text-gray-700",children:["We hope to welcome you at ",l.name," another time."]})]})]}),e(i,{className:"text-center bg-gray-50 py-5",children:a("table",{className:"w-full",children:[e("tr",{className:"w-full",children:e("td",{align:"center",children:((o=l.logoFile)===null||o===void 0?void 0:o.url)&&e(c,{alt:`${l.name} logo`,height:"100",src:l.logoFile.url,className:"rounded-lg"})})}),e("tr",{className:"w-full",children:a("td",{align:"center",children:[e(t,{className:"my-[8px] text-[16px] font-semibold text-xl pt-2 text-gray-900",children:l.name}),a(t,{className:"my-[8px] text-[16px] leading-[24px] text-gray-500",children:[(h=l.address)===null||h===void 0?void 0:h.addressLineOne,","," ",(g=l.address)===null||g===void 0?void 0:g.zipCode," ",(p=l.address)===null||p===void 0?void 0:p.city]}),e(t,{className:"mb-0 mt-[4px] text-[16px] leading-[24px] text-gray-500",children:l.phone})]})}),e("tr",{children:e("td",{align:"center",children:a(d,{className:"table-cell h-[44px] w-[56px] align-bottom pt-5",children:[e(r,{className:"pr-[8px]",children:e(n,{href:"https://www.facebook.com/madrasBistro/",children:e(c,{alt:"Facebook",height:"36",src:"https://react.email/static/facebook-logo.png",width:"36"})})}),e(r,{children:e(n,{href:"https://www.instagram.com/madrasbistro/",children:e(c,{alt:"Instagram",height:"36",src:"https://react.email/static/instagram-logo.png",width:"36"})})})]})})})]})})]})})]})},I={user:{id:"VD0OJ52f0mdAnm5YePP6BAW6hdbaCjAJ",name:"Abhishek Shaji",email:"kontakt@abhishek.pl",emailVerified:!0,image:"https://lh3.googleusercontent.com/a/ACg8ocKbkCAMTNvMizjXNxcm1aYtBiWnYpCYmU-7aE2Ft_M_uiHheZ5f=s96-c",createdAt:"2025-03-22T22:54:40.260Z",updatedAt:"2025-03-22T22:54:40.260Z",firstname:"Abhishek",lastname:"Shaji"},reservation:{id:"cm94wbpbm0000itx1iv9k2mqr",referenceId:"PH6LD6",firstname:"Abhishek",lastname:"Shaji",phone:"+48570135862",guests:4,date:new Date("2025-04-07T19:30:00.000Z"),createdAt:"2025-03-22T22:54:40.260Z",acceptedAt:"2025-03-22T23:00:23.456Z",cancelledAt:"2025-03-23T10:15:45.789Z",cancellationMessage:"We need to close early tonight. Please choose another reservation time."},organization:{id:"cm8kthfdq0001lg03b59mdy7b",name:"Madras Bistro",phone:"+48570135862",email:"contact@madrasbistro.pl",createdAt:"2025-03-22T23:05:14.271Z",legalEntityId:null,address:{id:"cm8kthfdr0002lg0350ijialt",firstname:null,lastname:null,phone:null,addressLineOne:"Plac Bohater\xF3w Getta 2",doorNumber:null,addressLineTwo:"3",zipCode:"33-332",city:"Krak\xF3w",country:"PL",placeId:"ChIJf-nsRkRbFkcR21gtObFSSSA",deliveryInstructions:null},configuration:{id:"cm8kthfdr0003lg03ghgs262n",hostname:"madrasbistro.pl",countriesShipping:["us"],stripeAccountId:"null",enableHostCheckout:!1,enableHostTracking:!1,isAcceptingOrders:!1,isAcceptingReservations:!1,defaultLocale:"en",supportedLocales:["en","pl"],defaultCurrency:"PLN",createdAt:"2025-03-22T23:05:14.271Z"},logo:"https://z3liuyatqnepss3d.public.blob.vercel-storage.com/logo-zeJymFRMFCIKPlvjxYm2af3SAWvBOj.png",logoFile:{id:"cm8ktmu890005lg0356gwclfk",url:"https://z3liuyatqnepss3d.public.blob.vercel-storage.com/logo-zeJymFRMFCIKPlvjxYm2af3SAWvBOj.png",mimeType:"image/png",size:1652289,filename:"logo.png"}}};b.PreviewProps=I;export default b;export{b as ReservationCancellationEmail};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as a}from"react/jsx-runtime";import{format as f}from"date-fns";import{Body as N,Column as s,Container as b,Head as v,Heading as k,Hr as A,Html as T,Img as i,Link as n,Preview as j,Row as d,Section as c,Tailwind as C,Text as t}from"../../../core/email/components";const u=({user:x,organization:l,reservation:r})=>{var m,o,h,g,p;const y=`This is your reservation confirmation from ${l.name}`,w=f(new Date(r.date),"dd.MM.yyyy 'at' HH:mm");return a(T,{children:[e(v,{}),e(j,{children:y}),e(C,{children:a(N,{className:"bg-gray-50 font-sans",children:[a(b,{className:"bg-gray-50 p-6 max-w-[600px]",children:[e(c,{className:"mb-6",children:a(d,{children:[e(s,{className:"w-[80%]",children:e(i,{alt:`${l.name} logo`,height:"100",src:(m=l.logoFile)===null||m===void 0?void 0:m.url,className:"rounded-lg"})}),e(s,{align:"right",children:a(d,{align:"right",children:[e(s,{children:e(n,{href:"https://www.instagram.com/madrasbistro/",children:e(i,{alt:"Instagram",className:"mx-[4px]",height:"36",src:"https://react.email/static/instagram-logo.png",width:"36"})})}),e(s,{children:e(n,{href:"https://www.facebook.com/madrasBistro/",children:e(i,{alt:"Facebook",className:"mx-[4px]",height:"36",src:"https://react.email/static/facebook-logo.png",width:"36"})})})]})})]})}),a(c,{children:[a(k,{className:"text-3xl font-bold text-gray-800 mb-0",children:["Hi ",x.firstname,","]}),e(t,{className:"text-gray-600 mb-2 text-lg",children:"Your reservation has been confirmed."})]})]}),a(b,{className:"mx-auto max-w-[600px] rounded-xl bg-white px-6",children:[e(c,{className:"mb-6",children:a(d,{children:[a(s,{className:"w-[60%]",children:[e(t,{className:"text-gray-500 mb-0",children:"Reservation details"}),a(t,{className:"font-semibold text-gray-800 my-0",children:[r.firstname," ",r.lastname]}),a(t,{className:"font-semibold text-gray-800 my-0",children:["Reference: ",r.referenceId]}),a(t,{className:"font-semibold text-gray-800 my-0",children:["Date and Time: ",w]}),a(t,{className:"font-semibold text-gray-800 my-0",children:["Number of Guests: ",r.guests]}),e(t,{className:"text-gray-500 mb-0",children:"Phone"}),e(t,{className:"font-semibold text-gray-800 my-0",children:r.phone})]}),e(s,{className:"w-[40%] p-0 mt-0",align:"right",valign:"top",children:e(t,{className:"text-gray-500 mb-0 pt-1",children:f(new Date,"dd.MM.yyyy")})})]})}),e(A,{className:"border-gray-200 mt-4"}),a(c,{className:"mb-6",children:[a(t,{className:"text-gray-700",children:["We're looking forward to welcoming you at ",l.name,". If you need to make any changes to your reservation, please contact us directly at ",l.phone,"."]}),e(t,{className:"text-gray-700",children:"Please note that we hold your table for 15 minutes from your reservation time."})]})]}),e(c,{className:"text-center bg-gray-50 py-5",children:a("table",{className:"w-full",children:[e("tr",{className:"w-full",children:e("td",{align:"center",children:((o=l.logoFile)===null||o===void 0?void 0:o.url)&&e(i,{alt:`${l.name} logo`,height:"100",src:l.logoFile.url,className:"rounded-lg"})})}),e("tr",{className:"w-full",children:a("td",{align:"center",children:[e(t,{className:"my-[8px] text-[16px] font-semibold text-xl pt-2 text-gray-900",children:l.name}),a(t,{className:"my-[8px] text-[16px] leading-[24px] text-gray-500",children:[(h=l.address)===null||h===void 0?void 0:h.addressLineOne,","," ",(g=l.address)===null||g===void 0?void 0:g.zipCode," ",(p=l.address)===null||p===void 0?void 0:p.city]}),e(t,{className:"mb-0 mt-[4px] text-[16px] leading-[24px] text-gray-500",children:l.phone})]})}),e("tr",{children:e("td",{align:"center",children:a(d,{className:"table-cell h-[44px] w-[56px] align-bottom pt-5",children:[e(s,{className:"pr-[8px]",children:e(n,{href:"https://www.facebook.com/madrasBistro/",children:e(i,{alt:"Facebook",height:"36",src:"https://react.email/static/facebook-logo.png",width:"36"})})}),e(s,{children:e(n,{href:"https://www.instagram.com/madrasbistro/",children:e(i,{alt:"Instagram",height:"36",src:"https://react.email/static/instagram-logo.png",width:"36"})})})]})})})]})})]})})]})},P={user:{id:"VD0OJ52f0mdAnm5YePP6BAW6hdbaCjAJ",name:"Abhishek Shaji",email:"kontakt@abhishek.pl",emailVerified:!0,image:"https://lh3.googleusercontent.com/a/ACg8ocKbkCAMTNvMizjXNxcm1aYtBiWnYpCYmU-7aE2Ft_M_uiHheZ5f=s96-c",createdAt:"2025-03-22T22:54:40.260Z",updatedAt:"2025-03-22T22:54:40.260Z",firstname:"Abhishek",lastname:"Shaji"},reservation:{id:"cm94wbpbm0000itx1iv9k2mqr",referenceId:"PH6LD6",firstname:"Abhishek",lastname:"Shaji",phone:"+48570135862",guests:4,date:new Date("2025-04-07T19:30:00.000Z"),createdAt:"2025-03-22T22:54:40.260Z",acceptedAt:"2025-03-22T23:00:23.456Z",cancelledAt:null},organization:{id:"cm8kthfdq0001lg03b59mdy7b",name:"Madras Bistro",phone:"+48570135862",email:"contact@madrasbistro.pl",createdAt:"2025-03-22T23:05:14.271Z",legalEntityId:null,address:{id:"cm8kthfdr0002lg0350ijialt",firstname:null,lastname:null,phone:null,addressLineOne:"Plac Bohater\xF3w Getta 2",doorNumber:null,addressLineTwo:"3",zipCode:"33-332",city:"Krak\xF3w",country:"PL",placeId:"ChIJf-nsRkRbFkcR21gtObFSSSA",deliveryInstructions:null},configuration:{id:"cm8kthfdr0003lg03ghgs262n",hostname:"madrasbistro.pl",countriesShipping:["us"],stripeAccountId:"null",enableHostCheckout:!1,enableHostTracking:!1,isAcceptingOrders:!1,isAcceptingReservations:!1,defaultLocale:"en",supportedLocales:["en","pl"],defaultCurrency:"PLN",createdAt:"2025-03-22T23:05:14.271Z"},logo:"https://z3liuyatqnepss3d.public.blob.vercel-storage.com/logo-zeJymFRMFCIKPlvjxYm2af3SAWvBOj.png",logoFile:{id:"cm8ktmu890005lg0356gwclfk",url:"https://z3liuyatqnepss3d.public.blob.vercel-storage.com/logo-zeJymFRMFCIKPlvjxYm2af3SAWvBOj.png",mimeType:"image/png",size:1652289,filename:"logo.png"}}};u.PreviewProps=P;export default u;export{u as ReservationConfirmationEmail};
1
+ import{jsx as e,jsxs as a}from"react/jsx-runtime";import{Body as N,Column as s,Container as b,Head as v,Heading as k,Hr as A,Html as T,Img as i,Link as n,Preview as j,Row as m,Section as c,Tailwind as C,Text as l}from"../../../core/email/components";import{formatReservationEmailDate as P,formatReservationEmailDateTime as F}from"./reservation-email-date";const u=({user:x,organization:t,reservation:r})=>{var o,d,h,g,p;const y=`This is your reservation confirmation from ${t.name}`,f=t.configuration.defaultTimeZone,w=F(r.date,f);return a(T,{children:[e(v,{}),e(j,{children:y}),e(C,{children:a(N,{className:"bg-gray-50 font-sans",children:[a(b,{className:"bg-gray-50 p-6 max-w-[600px]",children:[e(c,{className:"mb-6",children:a(m,{children:[e(s,{className:"w-[80%]",children:e(i,{alt:`${t.name} logo`,height:"100",src:(o=t.logoFile)===null||o===void 0?void 0:o.url,className:"rounded-lg"})}),e(s,{align:"right",children:a(m,{align:"right",children:[e(s,{children:e(n,{href:"https://www.instagram.com/madrasbistro/",children:e(i,{alt:"Instagram",className:"mx-[4px]",height:"36",src:"https://react.email/static/instagram-logo.png",width:"36"})})}),e(s,{children:e(n,{href:"https://www.facebook.com/madrasBistro/",children:e(i,{alt:"Facebook",className:"mx-[4px]",height:"36",src:"https://react.email/static/facebook-logo.png",width:"36"})})})]})})]})}),a(c,{children:[a(k,{className:"text-3xl font-bold text-gray-800 mb-0",children:["Hi ",x.firstname,","]}),e(l,{className:"text-gray-600 mb-2 text-lg",children:"Your reservation has been confirmed."})]})]}),a(b,{className:"mx-auto max-w-[600px] rounded-xl bg-white px-6",children:[e(c,{className:"mb-6",children:a(m,{children:[a(s,{className:"w-[60%]",children:[e(l,{className:"text-gray-500 mb-0",children:"Reservation details"}),a(l,{className:"font-semibold text-gray-800 my-0",children:[r.firstname," ",r.lastname]}),a(l,{className:"font-semibold text-gray-800 my-0",children:["Reference: ",r.referenceId]}),a(l,{className:"font-semibold text-gray-800 my-0",children:["Date and Time: ",w]}),a(l,{className:"font-semibold text-gray-800 my-0",children:["Number of Guests: ",r.guests]}),e(l,{className:"text-gray-500 mb-0",children:"Phone"}),e(l,{className:"font-semibold text-gray-800 my-0",children:r.phone})]}),e(s,{className:"w-[40%] p-0 mt-0",align:"right",valign:"top",children:e(l,{className:"text-gray-500 mb-0 pt-1",children:P(new Date,f)})})]})}),e(A,{className:"border-gray-200 mt-4"}),a(c,{className:"mb-6",children:[a(l,{className:"text-gray-700",children:["We're looking forward to welcoming you at ",t.name,". If you need to make any changes to your reservation, please contact us directly at ",t.phone,"."]}),e(l,{className:"text-gray-700",children:"Please note that we hold your table for 15 minutes from your reservation time."})]})]}),e(c,{className:"text-center bg-gray-50 py-5",children:a("table",{className:"w-full",children:[e("tr",{className:"w-full",children:e("td",{align:"center",children:((d=t.logoFile)===null||d===void 0?void 0:d.url)&&e(i,{alt:`${t.name} logo`,height:"100",src:t.logoFile.url,className:"rounded-lg"})})}),e("tr",{className:"w-full",children:a("td",{align:"center",children:[e(l,{className:"my-[8px] text-[16px] font-semibold text-xl pt-2 text-gray-900",children:t.name}),a(l,{className:"my-[8px] text-[16px] leading-[24px] text-gray-500",children:[(h=t.address)===null||h===void 0?void 0:h.addressLineOne,","," ",(g=t.address)===null||g===void 0?void 0:g.zipCode," ",(p=t.address)===null||p===void 0?void 0:p.city]}),e(l,{className:"mb-0 mt-[4px] text-[16px] leading-[24px] text-gray-500",children:t.phone})]})}),e("tr",{children:e("td",{align:"center",children:a(m,{className:"table-cell h-[44px] w-[56px] align-bottom pt-5",children:[e(s,{className:"pr-[8px]",children:e(n,{href:"https://www.facebook.com/madrasBistro/",children:e(i,{alt:"Facebook",height:"36",src:"https://react.email/static/facebook-logo.png",width:"36"})})}),e(s,{children:e(n,{href:"https://www.instagram.com/madrasbistro/",children:e(i,{alt:"Instagram",height:"36",src:"https://react.email/static/instagram-logo.png",width:"36"})})})]})})})]})})]})})]})},I={user:{id:"VD0OJ52f0mdAnm5YePP6BAW6hdbaCjAJ",name:"Abhishek Shaji",email:"kontakt@abhishek.pl",emailVerified:!0,image:"https://lh3.googleusercontent.com/a/ACg8ocKbkCAMTNvMizjXNxcm1aYtBiWnYpCYmU-7aE2Ft_M_uiHheZ5f=s96-c",createdAt:"2025-03-22T22:54:40.260Z",updatedAt:"2025-03-22T22:54:40.260Z",firstname:"Abhishek",lastname:"Shaji"},reservation:{id:"cm94wbpbm0000itx1iv9k2mqr",referenceId:"PH6LD6",firstname:"Abhishek",lastname:"Shaji",phone:"+48570135862",guests:4,date:new Date("2025-04-07T19:30:00.000Z"),createdAt:"2025-03-22T22:54:40.260Z",acceptedAt:"2025-03-22T23:00:23.456Z",cancelledAt:null},organization:{id:"cm8kthfdq0001lg03b59mdy7b",name:"Madras Bistro",phone:"+48570135862",email:"contact@madrasbistro.pl",createdAt:"2025-03-22T23:05:14.271Z",legalEntityId:null,address:{id:"cm8kthfdr0002lg0350ijialt",firstname:null,lastname:null,phone:null,addressLineOne:"Plac Bohater\xF3w Getta 2",doorNumber:null,addressLineTwo:"3",zipCode:"33-332",city:"Krak\xF3w",country:"PL",placeId:"ChIJf-nsRkRbFkcR21gtObFSSSA",deliveryInstructions:null},configuration:{id:"cm8kthfdr0003lg03ghgs262n",hostname:"madrasbistro.pl",countriesShipping:["us"],stripeAccountId:"null",enableHostCheckout:!1,enableHostTracking:!1,isAcceptingOrders:!1,isAcceptingReservations:!1,defaultLocale:"en",supportedLocales:["en","pl"],defaultCurrency:"PLN",createdAt:"2025-03-22T23:05:14.271Z"},logo:"https://z3liuyatqnepss3d.public.blob.vercel-storage.com/logo-zeJymFRMFCIKPlvjxYm2af3SAWvBOj.png",logoFile:{id:"cm8ktmu890005lg0356gwclfk",url:"https://z3liuyatqnepss3d.public.blob.vercel-storage.com/logo-zeJymFRMFCIKPlvjxYm2af3SAWvBOj.png",mimeType:"image/png",size:1652289,filename:"logo.png"}}};u.PreviewProps=I;export default u;export{u as ReservationConfirmationEmail};
@@ -0,0 +1,2 @@
1
+ export declare function formatReservationEmailDate(date: Date | string, timeZone?: string): string;
2
+ export declare function formatReservationEmailDateTime(date: Date | string, timeZone?: string): string;