@servemate/dto 1.0.10 → 1.0.21

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.
@@ -73,7 +73,7 @@ export declare const baseItemSchema: z.ZodObject<{
73
73
  isAvailable?: boolean | undefined;
74
74
  image?: string | null | undefined;
75
75
  }>;
76
- export declare const drinkItemSchema: z.ZodObject<z.objectUtil.extendShape<{
76
+ export declare const drinkItemSchema: z.ZodObject<{
77
77
  id: z.ZodNumber;
78
78
  name: z.ZodString;
79
79
  price: z.ZodNumber;
@@ -82,7 +82,7 @@ export declare const drinkItemSchema: z.ZodObject<z.objectUtil.extendShape<{
82
82
  isAvailable: z.ZodDefault<z.ZodBoolean>;
83
83
  popularityScore: z.ZodDefault<z.ZodNumber>;
84
84
  image: z.ZodDefault<z.ZodNullable<z.ZodString>>;
85
- }, {
85
+ } & {
86
86
  category: z.ZodEffects<z.ZodNativeEnum<{
87
87
  readonly BEER: "BEER";
88
88
  readonly WINE: "WINE";
@@ -102,7 +102,7 @@ export declare const drinkItemSchema: z.ZodObject<z.objectUtil.extendShape<{
102
102
  readonly ROOM: "ROOM";
103
103
  readonly HOT: "HOT";
104
104
  }>, "HOT" | "COLD" | "ROOM", unknown>;
105
- }>, "strip", z.ZodTypeAny, {
105
+ }, "strip", z.ZodTypeAny, {
106
106
  id: number;
107
107
  name: string;
108
108
  price: number;
@@ -132,7 +132,7 @@ export declare const drinkItemSchema: z.ZodObject<z.objectUtil.extendShape<{
132
132
  image?: string | null | undefined;
133
133
  }>;
134
134
  export type DrinkItemDTO = z.infer<typeof drinkItemSchema>;
135
- export declare const foodItemSchema: z.ZodObject<z.objectUtil.extendShape<{
135
+ export declare const foodItemSchema: z.ZodObject<{
136
136
  id: z.ZodNumber;
137
137
  name: z.ZodString;
138
138
  price: z.ZodNumber;
@@ -141,7 +141,7 @@ export declare const foodItemSchema: z.ZodObject<z.objectUtil.extendShape<{
141
141
  isAvailable: z.ZodDefault<z.ZodBoolean>;
142
142
  popularityScore: z.ZodDefault<z.ZodNumber>;
143
143
  image: z.ZodDefault<z.ZodNullable<z.ZodString>>;
144
- }, {
144
+ } & {
145
145
  category: z.ZodEffects<z.ZodNativeEnum<{
146
146
  readonly SALAD: "SALAD";
147
147
  readonly MEAT: "MEAT";
@@ -188,7 +188,7 @@ export declare const foodItemSchema: z.ZodObject<z.objectUtil.extendShape<{
188
188
  readonly EXTRA_HOT: "EXTRA_HOT";
189
189
  }>>;
190
190
  calories: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
191
- }>, "strip", z.ZodTypeAny, {
191
+ }, "strip", z.ZodTypeAny, {
192
192
  type: "APPETIZER" | "MAIN_COURSE" | "DESSERT" | "SIDES" | "SAUCE" | "OTHER";
193
193
  id: number;
194
194
  name: string;
@@ -226,7 +226,7 @@ export declare const foodItemSchema: z.ZodObject<z.objectUtil.extendShape<{
226
226
  isVegetarian?: boolean | undefined;
227
227
  }>;
228
228
  export type FoodItemDTO = z.infer<typeof foodItemSchema>;
229
- export declare const createDrinkItemSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
229
+ export declare const createDrinkItemSchema: z.ZodObject<Omit<{
230
230
  id: z.ZodNumber;
231
231
  name: z.ZodString;
232
232
  price: z.ZodNumber;
@@ -235,7 +235,7 @@ export declare const createDrinkItemSchema: z.ZodObject<Omit<z.objectUtil.extend
235
235
  isAvailable: z.ZodDefault<z.ZodBoolean>;
236
236
  popularityScore: z.ZodDefault<z.ZodNumber>;
237
237
  image: z.ZodDefault<z.ZodNullable<z.ZodString>>;
238
- }, {
238
+ } & {
239
239
  category: z.ZodEffects<z.ZodNativeEnum<{
240
240
  readonly BEER: "BEER";
241
241
  readonly WINE: "WINE";
@@ -255,7 +255,7 @@ export declare const createDrinkItemSchema: z.ZodObject<Omit<z.objectUtil.extend
255
255
  readonly ROOM: "ROOM";
256
256
  readonly HOT: "HOT";
257
257
  }>, "HOT" | "COLD" | "ROOM", unknown>;
258
- }>, "id">, "strip", z.ZodTypeAny, {
258
+ }, "id">, "strip", z.ZodTypeAny, {
259
259
  name: string;
260
260
  price: number;
261
261
  popularityScore: number;
@@ -283,7 +283,7 @@ export declare const createDrinkItemSchema: z.ZodObject<Omit<z.objectUtil.extend
283
283
  image?: string | null | undefined;
284
284
  }>;
285
285
  export type CreateDrinkItemDTO = z.infer<typeof createDrinkItemSchema>;
286
- export declare const createFoodItemSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
286
+ export declare const createFoodItemSchema: z.ZodObject<Omit<{
287
287
  id: z.ZodNumber;
288
288
  name: z.ZodString;
289
289
  price: z.ZodNumber;
@@ -292,7 +292,7 @@ export declare const createFoodItemSchema: z.ZodObject<Omit<z.objectUtil.extendS
292
292
  isAvailable: z.ZodDefault<z.ZodBoolean>;
293
293
  popularityScore: z.ZodDefault<z.ZodNumber>;
294
294
  image: z.ZodDefault<z.ZodNullable<z.ZodString>>;
295
- }, {
295
+ } & {
296
296
  category: z.ZodEffects<z.ZodNativeEnum<{
297
297
  readonly SALAD: "SALAD";
298
298
  readonly MEAT: "MEAT";
@@ -339,7 +339,7 @@ export declare const createFoodItemSchema: z.ZodObject<Omit<z.objectUtil.extendS
339
339
  readonly EXTRA_HOT: "EXTRA_HOT";
340
340
  }>>;
341
341
  calories: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
342
- }>, "id">, "strip", z.ZodTypeAny, {
342
+ }, "id">, "strip", z.ZodTypeAny, {
343
343
  type: "APPETIZER" | "MAIN_COURSE" | "DESSERT" | "SIDES" | "SAUCE" | "OTHER";
344
344
  name: string;
345
345
  price: number;
@@ -520,7 +520,7 @@ export declare const updateFoodItemSchema: z.ZodObject<{
520
520
  isVegetarian?: boolean | undefined;
521
521
  }>;
522
522
  export type UpdateFoodItemDTO = z.infer<typeof updateFoodItemSchema>;
523
- export declare const searchFoodItemsSchema: z.ZodObject<z.objectUtil.extendShape<{
523
+ export declare const searchFoodItemsSchema: z.ZodObject<{
524
524
  id: z.ZodOptional<z.ZodNumber>;
525
525
  name: z.ZodOptional<z.ZodString>;
526
526
  price: z.ZodOptional<z.ZodNumber>;
@@ -575,7 +575,7 @@ export declare const searchFoodItemsSchema: z.ZodObject<z.objectUtil.extendShape
575
575
  readonly EXTRA_HOT: "EXTRA_HOT";
576
576
  }>>>;
577
577
  calories: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
578
- }, {
578
+ } & {
579
579
  sortBy: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
580
580
  readonly TYPE: "type";
581
581
  readonly CATEGORY: "category";
@@ -601,7 +601,7 @@ export declare const searchFoodItemsSchema: z.ZodObject<z.objectUtil.extendShape
601
601
  readonly ASC: "asc";
602
602
  readonly DESC: "desc";
603
603
  }>>>;
604
- }>, "strip", z.ZodTypeAny, {
604
+ }, "strip", z.ZodTypeAny, {
605
605
  page: number;
606
606
  pageSize: number;
607
607
  sortOrder: "asc" | "desc";
@@ -647,7 +647,7 @@ export declare const searchFoodItemsSchema: z.ZodObject<z.objectUtil.extendShape
647
647
  sortBy?: "type" | "id" | "name" | "price" | "popularityScore" | "ingredients" | "isAvailable" | "createdAt" | "updatedAt" | "category" | "allergies" | "preparationTime" | "spicyLevel" | "calories" | "isVegan" | "isGlutenFree" | undefined;
648
648
  }>;
649
649
  export type SearchFoodItemsDTO = z.infer<typeof searchFoodItemsSchema>;
650
- export declare const searchDrinkItemsSchema: z.ZodObject<z.objectUtil.extendShape<{
650
+ export declare const searchDrinkItemsSchema: z.ZodObject<{
651
651
  id: z.ZodOptional<z.ZodNumber>;
652
652
  name: z.ZodOptional<z.ZodString>;
653
653
  price: z.ZodOptional<z.ZodNumber>;
@@ -675,7 +675,7 @@ export declare const searchDrinkItemsSchema: z.ZodObject<z.objectUtil.extendShap
675
675
  readonly ROOM: "ROOM";
676
676
  readonly HOT: "HOT";
677
677
  }>, "HOT" | "COLD" | "ROOM", unknown>>;
678
- }, {
678
+ } & {
679
679
  sortBy: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
680
680
  readonly CATEGORY: "category";
681
681
  readonly VOLUME: "volume";
@@ -698,7 +698,7 @@ export declare const searchDrinkItemsSchema: z.ZodObject<z.objectUtil.extendShap
698
698
  readonly ASC: "asc";
699
699
  readonly DESC: "desc";
700
700
  }>>>;
701
- }>, "strip", z.ZodTypeAny, {
701
+ }, "strip", z.ZodTypeAny, {
702
702
  page: number;
703
703
  pageSize: number;
704
704
  sortOrder: "asc" | "desc";
@@ -758,13 +758,13 @@ export type SearchDrinkItemsDTO = z.infer<typeof searchDrinkItemsSchema>;
758
758
  * @see {@link listPropsSchema} for the base schema properties.
759
759
  * @see {@link foodItemSchema} for the individual food item schema.
760
760
  */
761
- export declare const foodItemsListSchema: z.ZodObject<z.objectUtil.extendShape<{
761
+ export declare const foodItemsListSchema: z.ZodObject<{
762
762
  page: z.ZodDefault<z.ZodNumber>;
763
763
  pageSize: z.ZodDefault<z.ZodNumber>;
764
764
  totalPages: z.ZodNumber;
765
765
  totalCount: z.ZodNumber;
766
- }, {
767
- items: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
766
+ } & {
767
+ items: z.ZodArray<z.ZodObject<{
768
768
  id: z.ZodNumber;
769
769
  name: z.ZodString;
770
770
  price: z.ZodNumber;
@@ -773,7 +773,7 @@ export declare const foodItemsListSchema: z.ZodObject<z.objectUtil.extendShape<{
773
773
  isAvailable: z.ZodDefault<z.ZodBoolean>;
774
774
  popularityScore: z.ZodDefault<z.ZodNumber>;
775
775
  image: z.ZodDefault<z.ZodNullable<z.ZodString>>;
776
- }, {
776
+ } & {
777
777
  category: z.ZodEffects<z.ZodNativeEnum<{
778
778
  readonly SALAD: "SALAD";
779
779
  readonly MEAT: "MEAT";
@@ -820,7 +820,7 @@ export declare const foodItemsListSchema: z.ZodObject<z.objectUtil.extendShape<{
820
820
  readonly EXTRA_HOT: "EXTRA_HOT";
821
821
  }>>;
822
822
  calories: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
823
- }>, "strip", z.ZodTypeAny, {
823
+ }, "strip", z.ZodTypeAny, {
824
824
  type: "APPETIZER" | "MAIN_COURSE" | "DESSERT" | "SIDES" | "SAUCE" | "OTHER";
825
825
  id: number;
826
826
  name: string;
@@ -857,7 +857,7 @@ export declare const foodItemsListSchema: z.ZodObject<z.objectUtil.extendShape<{
857
857
  image?: string | null | undefined;
858
858
  isVegetarian?: boolean | undefined;
859
859
  }>, "many">;
860
- }>, "strip", z.ZodTypeAny, {
860
+ }, "strip", z.ZodTypeAny, {
861
861
  page: number;
862
862
  pageSize: number;
863
863
  totalPages: number;
@@ -941,13 +941,13 @@ export type FoodItemsListDTO = z.infer<typeof foodItemsListSchema>;
941
941
  * @see {@link listPropsSchema} for the base schema properties.
942
942
  * @see {@link drinkItemSchema} for the individual drink item schema.
943
943
  */
944
- export declare const drinkItemsListSchema: z.ZodObject<z.objectUtil.extendShape<{
944
+ export declare const drinkItemsListSchema: z.ZodObject<{
945
945
  page: z.ZodDefault<z.ZodNumber>;
946
946
  pageSize: z.ZodDefault<z.ZodNumber>;
947
947
  totalPages: z.ZodNumber;
948
948
  totalCount: z.ZodNumber;
949
- }, {
950
- items: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
949
+ } & {
950
+ items: z.ZodArray<z.ZodObject<{
951
951
  id: z.ZodNumber;
952
952
  name: z.ZodString;
953
953
  price: z.ZodNumber;
@@ -956,7 +956,7 @@ export declare const drinkItemsListSchema: z.ZodObject<z.objectUtil.extendShape<
956
956
  isAvailable: z.ZodDefault<z.ZodBoolean>;
957
957
  popularityScore: z.ZodDefault<z.ZodNumber>;
958
958
  image: z.ZodDefault<z.ZodNullable<z.ZodString>>;
959
- }, {
959
+ } & {
960
960
  category: z.ZodEffects<z.ZodNativeEnum<{
961
961
  readonly BEER: "BEER";
962
962
  readonly WINE: "WINE";
@@ -976,7 +976,7 @@ export declare const drinkItemsListSchema: z.ZodObject<z.objectUtil.extendShape<
976
976
  readonly ROOM: "ROOM";
977
977
  readonly HOT: "HOT";
978
978
  }>, "HOT" | "COLD" | "ROOM", unknown>;
979
- }>, "strip", z.ZodTypeAny, {
979
+ }, "strip", z.ZodTypeAny, {
980
980
  id: number;
981
981
  name: string;
982
982
  price: number;
@@ -1005,7 +1005,7 @@ export declare const drinkItemsListSchema: z.ZodObject<z.objectUtil.extendShape<
1005
1005
  tempriture?: unknown;
1006
1006
  image?: string | null | undefined;
1007
1007
  }>, "many">;
1008
- }>, "strip", z.ZodTypeAny, {
1008
+ }, "strip", z.ZodTypeAny, {
1009
1009
  page: number;
1010
1010
  pageSize: number;
1011
1011
  totalPages: number;