@servemate/dto 1.0.9 → 1.0.20
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.
- package/README.md +170 -209
- package/dist/dto/global.d.ts +3 -3
- package/dist/dto/global.d.ts.map +1 -1
- package/dist/dto/items.dto.d.ts +30 -30
- package/dist/dto/orders.dto.d.ts +34 -34
- package/dist/dto/orders.dto.d.ts.map +1 -1
- package/dist/dto/orders.dto.js +3 -1
- package/dist/dto/orders.dto.js.map +1 -1
- package/dist/dto/payment.dto.d.ts +3 -3
- package/dist/dto/reservation.dto.d.ts +16 -58
- package/dist/dto/reservation.dto.d.ts.map +1 -1
- package/dist/dto/tables.dto.d.ts +6 -6
- package/package.json +3 -3
package/dist/dto/items.dto.d.ts
CHANGED
|
@@ -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<
|
|
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
|
-
}
|
|
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<
|
|
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
|
-
}
|
|
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<
|
|
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
|
-
}
|
|
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<
|
|
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
|
-
}
|
|
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<
|
|
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
|
-
}
|
|
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<
|
|
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
|
-
}
|
|
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<
|
|
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<
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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<
|
|
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<
|
|
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
|
-
}
|
|
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
|
-
}
|
|
1008
|
+
}, "strip", z.ZodTypeAny, {
|
|
1009
1009
|
page: number;
|
|
1010
1010
|
pageSize: number;
|
|
1011
1011
|
totalPages: number;
|
package/dist/dto/orders.dto.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ declare const baseItemSchema: z.ZodObject<{
|
|
|
98
98
|
fired?: boolean | undefined;
|
|
99
99
|
paymentStatus?: "PENDING" | "CANCELLED" | "NONE" | "PAID" | "REFUNDED" | undefined;
|
|
100
100
|
}>;
|
|
101
|
-
export declare const orderItemSchema: z.ZodObject<
|
|
101
|
+
export declare const orderItemSchema: z.ZodObject<{
|
|
102
102
|
id: z.ZodNumber;
|
|
103
103
|
price: z.ZodNumber;
|
|
104
104
|
discount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -132,7 +132,7 @@ export declare const orderItemSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
132
132
|
readonly CANCELED: "CANCELLED";
|
|
133
133
|
readonly PENDING: "PENDING";
|
|
134
134
|
}>>;
|
|
135
|
-
}
|
|
135
|
+
} & {
|
|
136
136
|
foodItem: z.ZodOptional<z.ZodObject<{
|
|
137
137
|
name: z.ZodString;
|
|
138
138
|
id: z.ZodNumber;
|
|
@@ -153,7 +153,7 @@ export declare const orderItemSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
153
153
|
id: number;
|
|
154
154
|
name: string;
|
|
155
155
|
}>>;
|
|
156
|
-
}
|
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
|
157
157
|
id: number;
|
|
158
158
|
price: number;
|
|
159
159
|
allergies: ("NONE" | "GLUTEN" | "DAIRY" | "EGG" | "PEANUT" | "TREENUT" | "FISH" | "SHELLFISH" | "SOY" | "SESAME" | "CELERY" | "MUSTARD" | "LUPIN" | "SULPHITES" | "MOLLUSCS")[];
|
|
@@ -196,8 +196,7 @@ export declare const orderItemSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
196
196
|
}>;
|
|
197
197
|
declare const guestItemsBaseSchema: z.ZodObject<{
|
|
198
198
|
guestNumber: z.ZodNumber;
|
|
199
|
-
items: z.ZodArray<z.ZodObject<
|
|
200
|
-
id: z.ZodNumber;
|
|
199
|
+
items: z.ZodArray<z.ZodObject<{
|
|
201
200
|
price: z.ZodNumber;
|
|
202
201
|
discount: z.ZodDefault<z.ZodNumber>;
|
|
203
202
|
itemId: z.ZodNumber;
|
|
@@ -222,7 +221,6 @@ declare const guestItemsBaseSchema: z.ZodObject<{
|
|
|
222
221
|
}>, "many">>;
|
|
223
222
|
printed: z.ZodDefault<z.ZodBoolean>;
|
|
224
223
|
fired: z.ZodDefault<z.ZodBoolean>;
|
|
225
|
-
guestNumber: z.ZodNumber;
|
|
226
224
|
paymentStatus: z.ZodDefault<z.ZodNativeEnum<{
|
|
227
225
|
readonly NONE: "NONE";
|
|
228
226
|
readonly PAID: "PAID";
|
|
@@ -230,10 +228,10 @@ declare const guestItemsBaseSchema: z.ZodObject<{
|
|
|
230
228
|
readonly CANCELED: "CANCELLED";
|
|
231
229
|
readonly PENDING: "PENDING";
|
|
232
230
|
}>>;
|
|
233
|
-
}
|
|
231
|
+
} & {
|
|
234
232
|
id: z.ZodOptional<z.ZodNumber>;
|
|
235
233
|
guestNumber: z.ZodOptional<z.ZodNumber>;
|
|
236
|
-
}
|
|
234
|
+
}, "strip", z.ZodTypeAny, {
|
|
237
235
|
price: number;
|
|
238
236
|
allergies: ("NONE" | "GLUTEN" | "DAIRY" | "EGG" | "PEANUT" | "TREENUT" | "FISH" | "SHELLFISH" | "SOY" | "SESAME" | "CELERY" | "MUSTARD" | "LUPIN" | "SULPHITES" | "MOLLUSCS")[];
|
|
239
237
|
discount: number;
|
|
@@ -411,6 +409,8 @@ export declare const OrderSearchSchema: z.ZodObject<{
|
|
|
411
409
|
readonly READY_TO_PAY: "READY_TO_PAY";
|
|
412
410
|
readonly COMPLETED: "COMPLETED";
|
|
413
411
|
}>>>;
|
|
412
|
+
minAmount: z.ZodOptional<z.ZodNumber>;
|
|
413
|
+
maxAmount: z.ZodOptional<z.ZodNumber>;
|
|
414
414
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
415
415
|
pageSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
416
416
|
sortBy: z.ZodDefault<z.ZodEnum<[string, ...string[]]>>;
|
|
@@ -428,6 +428,8 @@ export declare const OrderSearchSchema: z.ZodObject<{
|
|
|
428
428
|
serverId?: number | undefined;
|
|
429
429
|
test?: string | undefined;
|
|
430
430
|
serverName?: string | undefined;
|
|
431
|
+
minAmount?: number | undefined;
|
|
432
|
+
maxAmount?: number | undefined;
|
|
431
433
|
}, {
|
|
432
434
|
status?: string | undefined;
|
|
433
435
|
page?: number | undefined;
|
|
@@ -441,6 +443,8 @@ export declare const OrderSearchSchema: z.ZodObject<{
|
|
|
441
443
|
serverId?: string | undefined;
|
|
442
444
|
test?: string | undefined;
|
|
443
445
|
serverName?: string | undefined;
|
|
446
|
+
minAmount?: number | undefined;
|
|
447
|
+
maxAmount?: number | undefined;
|
|
444
448
|
}>;
|
|
445
449
|
export declare const foodAndDrinkSchema: z.ZodObject<{
|
|
446
450
|
foodItemId: z.ZodNumber;
|
|
@@ -458,7 +462,7 @@ export declare const foodAndDrinkSchema: z.ZodObject<{
|
|
|
458
462
|
foodItemId: number;
|
|
459
463
|
quantity: number;
|
|
460
464
|
}>;
|
|
461
|
-
export declare const OrderCreateSchema: z.ZodEffects<z.ZodObject<
|
|
465
|
+
export declare const OrderCreateSchema: z.ZodEffects<z.ZodObject<Omit<{
|
|
462
466
|
id: z.ZodNumber;
|
|
463
467
|
tableNumber: z.ZodNumber;
|
|
464
468
|
orderNumber: z.ZodNumber;
|
|
@@ -498,11 +502,10 @@ export declare const OrderCreateSchema: z.ZodEffects<z.ZodObject<z.objectUtil.ex
|
|
|
498
502
|
discount: z.ZodDefault<z.ZodNumber>;
|
|
499
503
|
tip: z.ZodDefault<z.ZodNumber>;
|
|
500
504
|
shiftId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
501
|
-
}, "id" | "updatedAt" | "orderTime" | "orderNumber" | "tip" | "shiftId"
|
|
505
|
+
}, "id" | "updatedAt" | "orderTime" | "orderNumber" | "tip" | "shiftId"> & {
|
|
502
506
|
foodItems: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
503
507
|
guestNumber: z.ZodNumber;
|
|
504
|
-
items: z.ZodArray<z.ZodObject<
|
|
505
|
-
id: z.ZodNumber;
|
|
508
|
+
items: z.ZodArray<z.ZodObject<{
|
|
506
509
|
price: z.ZodNumber;
|
|
507
510
|
discount: z.ZodDefault<z.ZodNumber>;
|
|
508
511
|
itemId: z.ZodNumber;
|
|
@@ -527,7 +530,6 @@ export declare const OrderCreateSchema: z.ZodEffects<z.ZodObject<z.objectUtil.ex
|
|
|
527
530
|
}>, "many">>;
|
|
528
531
|
printed: z.ZodDefault<z.ZodBoolean>;
|
|
529
532
|
fired: z.ZodDefault<z.ZodBoolean>;
|
|
530
|
-
guestNumber: z.ZodNumber;
|
|
531
533
|
paymentStatus: z.ZodDefault<z.ZodNativeEnum<{
|
|
532
534
|
readonly NONE: "NONE";
|
|
533
535
|
readonly PAID: "PAID";
|
|
@@ -535,10 +537,10 @@ export declare const OrderCreateSchema: z.ZodEffects<z.ZodObject<z.objectUtil.ex
|
|
|
535
537
|
readonly CANCELED: "CANCELLED";
|
|
536
538
|
readonly PENDING: "PENDING";
|
|
537
539
|
}>>;
|
|
538
|
-
}
|
|
540
|
+
} & {
|
|
539
541
|
id: z.ZodOptional<z.ZodNumber>;
|
|
540
542
|
guestNumber: z.ZodOptional<z.ZodNumber>;
|
|
541
|
-
}
|
|
543
|
+
}, "strip", z.ZodTypeAny, {
|
|
542
544
|
price: number;
|
|
543
545
|
allergies: ("NONE" | "GLUTEN" | "DAIRY" | "EGG" | "PEANUT" | "TREENUT" | "FISH" | "SHELLFISH" | "SOY" | "SESAME" | "CELERY" | "MUSTARD" | "LUPIN" | "SULPHITES" | "MOLLUSCS")[];
|
|
544
546
|
discount: number;
|
|
@@ -596,8 +598,7 @@ export declare const OrderCreateSchema: z.ZodEffects<z.ZodObject<z.objectUtil.ex
|
|
|
596
598
|
}>, "many">>;
|
|
597
599
|
drinkItems: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
598
600
|
guestNumber: z.ZodNumber;
|
|
599
|
-
items: z.ZodArray<z.ZodObject<
|
|
600
|
-
id: z.ZodNumber;
|
|
601
|
+
items: z.ZodArray<z.ZodObject<{
|
|
601
602
|
price: z.ZodNumber;
|
|
602
603
|
discount: z.ZodDefault<z.ZodNumber>;
|
|
603
604
|
itemId: z.ZodNumber;
|
|
@@ -622,7 +623,6 @@ export declare const OrderCreateSchema: z.ZodEffects<z.ZodObject<z.objectUtil.ex
|
|
|
622
623
|
}>, "many">>;
|
|
623
624
|
printed: z.ZodDefault<z.ZodBoolean>;
|
|
624
625
|
fired: z.ZodDefault<z.ZodBoolean>;
|
|
625
|
-
guestNumber: z.ZodNumber;
|
|
626
626
|
paymentStatus: z.ZodDefault<z.ZodNativeEnum<{
|
|
627
627
|
readonly NONE: "NONE";
|
|
628
628
|
readonly PAID: "PAID";
|
|
@@ -630,10 +630,10 @@ export declare const OrderCreateSchema: z.ZodEffects<z.ZodObject<z.objectUtil.ex
|
|
|
630
630
|
readonly CANCELED: "CANCELLED";
|
|
631
631
|
readonly PENDING: "PENDING";
|
|
632
632
|
}>>;
|
|
633
|
-
}
|
|
633
|
+
} & {
|
|
634
634
|
id: z.ZodOptional<z.ZodNumber>;
|
|
635
635
|
guestNumber: z.ZodOptional<z.ZodNumber>;
|
|
636
|
-
}
|
|
636
|
+
}, "strip", z.ZodTypeAny, {
|
|
637
637
|
price: number;
|
|
638
638
|
allergies: ("NONE" | "GLUTEN" | "DAIRY" | "EGG" | "PEANUT" | "TREENUT" | "FISH" | "SHELLFISH" | "SOY" | "SESAME" | "CELERY" | "MUSTARD" | "LUPIN" | "SULPHITES" | "MOLLUSCS")[];
|
|
639
639
|
discount: number;
|
|
@@ -689,7 +689,7 @@ export declare const OrderCreateSchema: z.ZodEffects<z.ZodObject<z.objectUtil.ex
|
|
|
689
689
|
}[];
|
|
690
690
|
guestNumber: number;
|
|
691
691
|
}>, "many">>;
|
|
692
|
-
}
|
|
692
|
+
}, "strip", z.ZodTypeAny, {
|
|
693
693
|
status: "COMPLETED" | "AWAITING" | "RECEIVED" | "SERVED" | "CANCELED" | "DISPUTED" | "READY_TO_PAY";
|
|
694
694
|
tableNumber: number;
|
|
695
695
|
guestsCount: number;
|
|
@@ -858,7 +858,7 @@ export declare const OrderCreateSchema: z.ZodEffects<z.ZodObject<z.objectUtil.ex
|
|
|
858
858
|
guestNumber: number;
|
|
859
859
|
}[] | undefined;
|
|
860
860
|
}>;
|
|
861
|
-
export declare const OrderFullSingleSchema: z.ZodObject<
|
|
861
|
+
export declare const OrderFullSingleSchema: z.ZodObject<Omit<{
|
|
862
862
|
id: z.ZodNumber;
|
|
863
863
|
tableNumber: z.ZodNumber;
|
|
864
864
|
orderNumber: z.ZodNumber;
|
|
@@ -898,7 +898,7 @@ export declare const OrderFullSingleSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
898
898
|
discount: z.ZodDefault<z.ZodNumber>;
|
|
899
899
|
tip: z.ZodDefault<z.ZodNumber>;
|
|
900
900
|
shiftId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
901
|
-
}, "orderNumber"
|
|
901
|
+
}, "orderNumber"> & {
|
|
902
902
|
server: z.ZodObject<{
|
|
903
903
|
name: z.ZodString;
|
|
904
904
|
id: z.ZodNumber;
|
|
@@ -911,8 +911,7 @@ export declare const OrderFullSingleSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
911
911
|
}>;
|
|
912
912
|
foodItems: z.ZodArray<z.ZodObject<{
|
|
913
913
|
guestNumber: z.ZodNumber;
|
|
914
|
-
items: z.ZodArray<z.ZodObject<
|
|
915
|
-
id: z.ZodNumber;
|
|
914
|
+
items: z.ZodArray<z.ZodObject<{
|
|
916
915
|
price: z.ZodNumber;
|
|
917
916
|
discount: z.ZodDefault<z.ZodNumber>;
|
|
918
917
|
itemId: z.ZodNumber;
|
|
@@ -937,7 +936,6 @@ export declare const OrderFullSingleSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
937
936
|
}>, "many">>;
|
|
938
937
|
printed: z.ZodDefault<z.ZodBoolean>;
|
|
939
938
|
fired: z.ZodDefault<z.ZodBoolean>;
|
|
940
|
-
guestNumber: z.ZodNumber;
|
|
941
939
|
paymentStatus: z.ZodDefault<z.ZodNativeEnum<{
|
|
942
940
|
readonly NONE: "NONE";
|
|
943
941
|
readonly PAID: "PAID";
|
|
@@ -945,10 +943,10 @@ export declare const OrderFullSingleSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
945
943
|
readonly CANCELED: "CANCELLED";
|
|
946
944
|
readonly PENDING: "PENDING";
|
|
947
945
|
}>>;
|
|
948
|
-
}
|
|
946
|
+
} & {
|
|
949
947
|
id: z.ZodOptional<z.ZodNumber>;
|
|
950
948
|
guestNumber: z.ZodOptional<z.ZodNumber>;
|
|
951
|
-
}
|
|
949
|
+
}, "strip", z.ZodTypeAny, {
|
|
952
950
|
price: number;
|
|
953
951
|
allergies: ("NONE" | "GLUTEN" | "DAIRY" | "EGG" | "PEANUT" | "TREENUT" | "FISH" | "SHELLFISH" | "SOY" | "SESAME" | "CELERY" | "MUSTARD" | "LUPIN" | "SULPHITES" | "MOLLUSCS")[];
|
|
954
952
|
discount: number;
|
|
@@ -1006,8 +1004,7 @@ export declare const OrderFullSingleSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
1006
1004
|
}>, "many">;
|
|
1007
1005
|
drinkItems: z.ZodArray<z.ZodObject<{
|
|
1008
1006
|
guestNumber: z.ZodNumber;
|
|
1009
|
-
items: z.ZodArray<z.ZodObject<
|
|
1010
|
-
id: z.ZodNumber;
|
|
1007
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1011
1008
|
price: z.ZodNumber;
|
|
1012
1009
|
discount: z.ZodDefault<z.ZodNumber>;
|
|
1013
1010
|
itemId: z.ZodNumber;
|
|
@@ -1032,7 +1029,6 @@ export declare const OrderFullSingleSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
1032
1029
|
}>, "many">>;
|
|
1033
1030
|
printed: z.ZodDefault<z.ZodBoolean>;
|
|
1034
1031
|
fired: z.ZodDefault<z.ZodBoolean>;
|
|
1035
|
-
guestNumber: z.ZodNumber;
|
|
1036
1032
|
paymentStatus: z.ZodDefault<z.ZodNativeEnum<{
|
|
1037
1033
|
readonly NONE: "NONE";
|
|
1038
1034
|
readonly PAID: "PAID";
|
|
@@ -1040,10 +1036,10 @@ export declare const OrderFullSingleSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
1040
1036
|
readonly CANCELED: "CANCELLED";
|
|
1041
1037
|
readonly PENDING: "PENDING";
|
|
1042
1038
|
}>>;
|
|
1043
|
-
}
|
|
1039
|
+
} & {
|
|
1044
1040
|
id: z.ZodOptional<z.ZodNumber>;
|
|
1045
1041
|
guestNumber: z.ZodOptional<z.ZodNumber>;
|
|
1046
|
-
}
|
|
1042
|
+
}, "strip", z.ZodTypeAny, {
|
|
1047
1043
|
price: number;
|
|
1048
1044
|
allergies: ("NONE" | "GLUTEN" | "DAIRY" | "EGG" | "PEANUT" | "TREENUT" | "FISH" | "SHELLFISH" | "SOY" | "SESAME" | "CELERY" | "MUSTARD" | "LUPIN" | "SULPHITES" | "MOLLUSCS")[];
|
|
1049
1045
|
discount: number;
|
|
@@ -1099,7 +1095,7 @@ export declare const OrderFullSingleSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
1099
1095
|
}[];
|
|
1100
1096
|
guestNumber: number;
|
|
1101
1097
|
}>, "many">;
|
|
1102
|
-
}
|
|
1098
|
+
}, "strip", z.ZodTypeAny, {
|
|
1103
1099
|
status: "COMPLETED" | "AWAITING" | "RECEIVED" | "SERVED" | "CANCELED" | "DISPUTED" | "READY_TO_PAY";
|
|
1104
1100
|
id: number;
|
|
1105
1101
|
updatedAt: Date;
|
|
@@ -1813,6 +1809,10 @@ export type OrderItemExt = z.infer<typeof orderItemSchema>;
|
|
|
1813
1809
|
export type OrderUpdateItems = z.infer<typeof OrderUpdateItemsSchema>;
|
|
1814
1810
|
export type OrderSearchListResult = {
|
|
1815
1811
|
orders: Pick<OrderFullSingleDTO, 'id' | 'status' | 'server' | 'tableNumber' | 'guestsCount' | 'orderTime' | 'updatedAt' | 'completionTime' | 'allergies' | 'comments' | 'totalAmount' | 'discount' | 'tip'>[];
|
|
1812
|
+
priceRange: {
|
|
1813
|
+
min: number;
|
|
1814
|
+
max: number;
|
|
1815
|
+
};
|
|
1816
1816
|
totalCount: number;
|
|
1817
1817
|
page: number;
|
|
1818
1818
|
pageSize: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orders.dto.d.ts","sourceRoot":"","sources":["../../src/dto/orders.dto.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K,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,MAAM,MAAM,qBAAqB,GAAG;IACnC,MAAM,EAAE,IAAI,CACX,kBAAkB,EAChB,IAAI,GACJ,QAAQ,GACR,QAAQ,GACR,aAAa,GACb,aAAa,GACb,WAAW,GACX,WAAW,GACX,gBAAgB,GAChB,WAAW,GACX,UAAU,GACV,aAAa,GACb,UAAU,GACV,KAAK,CACP,EAAE,CAAC;IACJ,UAAU,EAAE;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
package/dist/dto/orders.dto.js
CHANGED
|
@@ -97,7 +97,7 @@ exports.OrderSchema = zod_1.z.object({
|
|
|
97
97
|
updatedAt: zod_1.z.date(),
|
|
98
98
|
allergies: zod_1.z.array(zod_1.z.nativeEnum(exports.Allergies)).optional(),
|
|
99
99
|
serverId: zod_1.z.coerce.number().int().positive(),
|
|
100
|
-
totalAmount: zod_1.z.coerce.number().int().
|
|
100
|
+
totalAmount: zod_1.z.coerce.number().int().nonnegative().default(0),
|
|
101
101
|
status: zod_1.z.nativeEnum(enums_1.OrderState).default(enums_1.OrderState.RECEIVED),
|
|
102
102
|
comments: zod_1.z.string().optional().nullable(),
|
|
103
103
|
completionTime: zod_1.z.date().optional().nullable(),
|
|
@@ -152,6 +152,8 @@ exports.OrderSearchSchema = zod_1.z.object({
|
|
|
152
152
|
.transform((status) => status === null || status === void 0 ? void 0 : status.toUpperCase())
|
|
153
153
|
.pipe(zod_1.z.nativeEnum(enums_1.OrderState))
|
|
154
154
|
.optional(),
|
|
155
|
+
minAmount: zod_1.z.coerce.number().int().positive().optional(),
|
|
156
|
+
maxAmount: zod_1.z.coerce.number().int().positive().optional(),
|
|
155
157
|
page: zod_1.z.coerce.number().int().positive().optional().default(1),
|
|
156
158
|
pageSize: zod_1.z.coerce.number().int().positive().max(100).optional().default(10),
|
|
157
159
|
sortBy: zod_1.z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orders.dto.js","sourceRoot":"","sources":["../../src/dto/orders.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAAqC;AAErC;;GAEG;AAEU,QAAA,SAAS,GAAG;IACxB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,WAAW;IACtB,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;CACX,CAAC;AAIE,QAAA,aAAa,GAAG;IAC5B,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,WAAW;IACrB,OAAO,EAAE,SAAS;CACT,CAAC;AAIE,QAAA,gBAAgB,GAAG;IAC/B,EAAE,EAAE,IAAI;IACR,YAAY,EAAE,aAAa;IAC3B,YAAY,EAAE,aAAa;IAC3B,UAAU,EAAE,WAAW;IACvB,UAAU,EAAE,WAAW;IACvB,MAAM,EAAE,QAAQ;CACP,CAAC;AAEX;;GAEG;AAEH,MAAM,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC/B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IAC/B,QAAQ,EAAE,OAAC,CAAC,MAAM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,EAAE,CAAC;CACvD,CAAC;KACD,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;IAC1E,OAAO,EAAE,0DAA0D;CACnE,CAAC,CAAC;AAES,QAAA,QAAQ,GAAG,OAAC,CAAC,MAAM,CAAC;IAChC,GAAG,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,wCAAwC,CAAC;CACjG,CAAC,CAAC;AAEU,QAAA,YAAY,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACxD,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CAC1D,CAAC,CAAC"}
|
|
@@ -96,7 +96,7 @@ export declare const PartialPaymentSchema: z.ZodObject<{
|
|
|
96
96
|
tax?: number | undefined;
|
|
97
97
|
serviceCharge?: number | undefined;
|
|
98
98
|
}>;
|
|
99
|
-
export declare const PaymentSearchSchema: z.ZodObject<
|
|
99
|
+
export declare const PaymentSearchSchema: z.ZodObject<{
|
|
100
100
|
id: z.ZodOptional<z.ZodNumber>;
|
|
101
101
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
102
102
|
tax: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
@@ -117,12 +117,12 @@ export declare const PaymentSearchSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
117
117
|
readonly CANCELLED: "CANCELLED";
|
|
118
118
|
readonly PENDING: "PENDING";
|
|
119
119
|
}>, "PENDING" | "CANCELLED" | "NONE" | "PAID" | "REFUNDED", unknown>>;
|
|
120
|
-
}
|
|
120
|
+
} & {
|
|
121
121
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
122
122
|
pageSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
123
123
|
sortBy: z.ZodDefault<z.ZodEnum<[string, ...string[]]>>;
|
|
124
124
|
sortOrder: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
125
|
-
}
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
126
|
page: number;
|
|
127
127
|
pageSize: number;
|
|
128
128
|
sortOrder: "asc" | "desc";
|