@feedmepos/mf-order-setting 0.0.51 → 0.0.52

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.
@@ -1,7 +1,32 @@
1
1
  import { z } from 'zod';
2
2
  export declare const F_FOOD_COURT_CUSTOMER_STATUS: z.ZodEnum<["DRAFT", "COMPLETE"]>;
3
3
  export declare const FdoFoodCourtOrderPayment: z.AnyZodObject;
4
- export declare const FdoFoodCourtOrder: z.AnyZodObject;
4
+ export declare const FdoFoodCourtOrder: z.ZodObject<{
5
+ _id: z.ZodEffects<z.ZodString, string, string>;
6
+ foodCourtId: z.ZodEffects<z.ZodString, string, string>;
7
+ orderIds: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
8
+ payment: z.ZodOptional<z.AnyZodObject>;
9
+ customerStatus: z.ZodDefault<z.ZodEnum<["DRAFT", "COMPLETE"]>>;
10
+ lastUpdatedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ lastUpdatedAt?: Date | null | undefined;
13
+ payment?: {
14
+ [x: string]: any;
15
+ } | undefined;
16
+ _id: string;
17
+ foodCourtId: string;
18
+ orderIds: string[];
19
+ customerStatus: "COMPLETE" | "DRAFT";
20
+ }, {
21
+ lastUpdatedAt?: Date | null | undefined;
22
+ payment?: {
23
+ [x: string]: any;
24
+ } | undefined;
25
+ customerStatus?: "COMPLETE" | "DRAFT" | undefined;
26
+ _id: string;
27
+ foodCourtId: string;
28
+ orderIds: string[];
29
+ }>;
5
30
  export type FdoFoodCourtOrderPayment = z.infer<typeof FdoFoodCourtOrderPayment>;
6
31
  export type FdoFoodCourtOrder = z.infer<typeof FdoFoodCourtOrder>;
7
32
  export type F_FOOD_COURT_CUSTOMER_STATUS = z.infer<typeof F_FOOD_COURT_CUSTOMER_STATUS>;
@@ -7078,7 +7078,6 @@ export declare const FdtoFoodCourtOrderCreate: z.ZodObject<{
7078
7078
  })[] | null | undefined;
7079
7079
  type: "cash" | "ePayment" | "ePaymentNonPayout" | "credit" | "ePaymentSandbox";
7080
7080
  }>>;
7081
- sessionId: z.ZodString;
7082
7081
  }, "strip", z.ZodTypeAny, {
7083
7082
  payment?: {
7084
7083
  transactions?: string[] | undefined;
@@ -7554,7 +7553,6 @@ export declare const FdtoFoodCourtOrderCreate: z.ZodObject<{
7554
7553
  } | undefined;
7555
7554
  foodCourtId: string;
7556
7555
  orderIds: string[];
7557
- sessionId: string;
7558
7556
  }, {
7559
7557
  payment?: {
7560
7558
  transactions?: string[] | undefined;
@@ -7925,7 +7923,6 @@ export declare const FdtoFoodCourtOrderCreate: z.ZodObject<{
7925
7923
  } | undefined;
7926
7924
  orderIds?: string[] | undefined;
7927
7925
  foodCourtId: string;
7928
- sessionId: string;
7929
7926
  }>;
7930
7927
  export type FdtoFoodCourtOrderCreate = z.infer<typeof FdtoFoodCourtOrderCreate>;
7931
7928
  export declare const FoodCourtOrderUpdateDto: z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-order-setting",
3
- "version": "0.0.51",
3
+ "version": "0.0.52",
4
4
  "type": "module",
5
5
  "module": "./dist/app.js",
6
6
  "license": "UNLICENSED",
@@ -56,7 +56,9 @@ const emits = defineEmits<{
56
56
  const menuStore = useMenuStore()
57
57
  const CoreStore = useCoreStore()
58
58
 
59
- const canEdit = computed(() => CoreStore.sessionUser.value?.role.isAdmin ?? false)
59
+ // const canEdit = computed(() => CoreStore.sessionUser.value?.role.isAdmin ?? false)
60
+ // For now, allow all users to edit, but added detail logging in backend
61
+ const canEdit = computed(() => true)
60
62
 
61
63
  function updateManual(manual: FdoLinkedDelivery | null) {
62
64
  emits('update:model-value', {