@feedmepos/mf-order-setting 0.0.15-alpha.1 → 0.0.16-alpha
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/dist/KioskSettingView-CLLklQtJ.js +4 -0
- package/dist/{app-Cu7GdqUm.js → app-DHq9VPij.js} +11872 -11816
- package/dist/app.js +5 -4
- package/dist/frontend/mf-order/src/api/restaurant-setting/index.d.ts +1 -1
- package/dist/frontend/mf-order/src/app.d.ts +1 -0
- package/dist/frontend/mf-order/src/helpers/map.d.ts +3 -2
- package/dist/frontend/mf-order/src/stores/kiosk/index.d.ts +6 -6
- package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +403 -8
- package/dist/frontend/mf-order/src/views/all-orders/FilterRestaurant.vue.d.ts +4 -4
- package/dist/frontend/mf-order/src/views/all-orders/ReflowOrder.vue.d.ts +2 -2
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/package/entity/delivery/delivery.dto.d.ts +6 -6
- package/dist/package/entity/delivery/gateway/pandago.dto.d.ts +10 -10
- package/dist/package/entity/food-court/order.dto.d.ts +42 -36273
- package/dist/package/entity/kiosk/kiosk.do.d.ts +20 -20
- package/dist/package/entity/kiosk/kiosk.dto.d.ts +24 -24
- package/dist/package/entity/order/order-item/order-item.dto.d.ts +52 -0
- package/dist/package/entity/order/order.dto.d.ts +734 -278
- package/dist/package/entity/order/payment/payment.dto.d.ts +152 -152
- package/dist/package/entity/order-platform/foodpanda/foodpanda-order.do.d.ts +24 -24
- package/dist/package/entity/order-platform/foodpanda/foodpanda-order.dto.d.ts +6 -6
- package/dist/package/entity/order-platform/grabfood/grabfood-menu.do.d.ts +74 -74
- package/dist/package/entity/order-platform/grabfood/grabfood-order.do.d.ts +106 -106
- package/dist/package/entity/order-platform/grabfood/grabfood.dto.d.ts +32 -32
- package/dist/package/entity/order-platform/menu.dto.d.ts +54 -54
- package/dist/package/entity/order-platform/shopeefood/shopeefood-order.do.d.ts +238 -238
- package/dist/package/entity/order-platform/shopeefood/shopeefood-order.dto.d.ts +64 -64
- package/dist/package/entity/payment/payment.dto.d.ts +2 -2
- package/dist/package/entity/printer/printer.do.d.ts +2 -2
- package/dist/package/entity/websocket/websocket.dto.d.ts +2 -2
- package/package.json +1 -1
- package/src/Entry.vue +3 -9
- package/src/api/restaurant-setting/index.ts +3 -2
- package/src/app.ts +17 -0
- package/src/components/GoogleMap.vue +102 -104
- package/src/helpers/map.ts +23 -15
- package/src/stores/restaurant/index.ts +3 -3
- package/src/views/order-settings/delivery/DeliverySetting.vue +11 -12
- package/src/views/order-settings/delivery/inhouse/DeliveryOrder.vue +3 -2
- package/src/views/order-settings/pickup/AddressInput.vue +3 -2
- package/src/views/order-settings/pickup/PickUpSetting.vue +34 -25
- package/src/views/order-settings/servicecharge/ServiceChargeSetting.vue +4 -1
- package/vite.config.ts +3 -3
- package/dist/KioskSettingView-ChG0eNUq.js +0 -4
|
@@ -155,14 +155,14 @@ export declare const FdtoShopeefoodGetOrderRes: z.ZodObject<{
|
|
|
155
155
|
unit_list_price: z.ZodNumber;
|
|
156
156
|
unit_price: z.ZodNumber;
|
|
157
157
|
}, "strip", z.ZodTypeAny, {
|
|
158
|
-
name: string;
|
|
159
158
|
id: string;
|
|
159
|
+
name: string;
|
|
160
160
|
external_id: string;
|
|
161
161
|
unit_list_price: number;
|
|
162
162
|
unit_price: number;
|
|
163
163
|
}, {
|
|
164
|
-
name: string;
|
|
165
164
|
id: string;
|
|
165
|
+
name: string;
|
|
166
166
|
external_id: string;
|
|
167
167
|
unit_list_price: number;
|
|
168
168
|
unit_price: number;
|
|
@@ -177,32 +177,32 @@ export declare const FdtoShopeefoodGetOrderRes: z.ZodObject<{
|
|
|
177
177
|
name: z.ZodString;
|
|
178
178
|
price: z.ZodNumber;
|
|
179
179
|
}, "strip", z.ZodTypeAny, {
|
|
180
|
-
name: string;
|
|
181
180
|
id: string;
|
|
181
|
+
name: string;
|
|
182
182
|
price: number;
|
|
183
183
|
external_id: string;
|
|
184
184
|
}, {
|
|
185
|
-
name: string;
|
|
186
185
|
id: string;
|
|
186
|
+
name: string;
|
|
187
187
|
price: number;
|
|
188
188
|
external_id: string;
|
|
189
189
|
}>, "many">;
|
|
190
190
|
}, "strip", z.ZodTypeAny, {
|
|
191
|
-
name: string;
|
|
192
191
|
id: string;
|
|
192
|
+
name: string;
|
|
193
193
|
options: {
|
|
194
|
-
name: string;
|
|
195
194
|
id: string;
|
|
195
|
+
name: string;
|
|
196
196
|
price: number;
|
|
197
197
|
external_id: string;
|
|
198
198
|
}[];
|
|
199
199
|
external_id: string;
|
|
200
200
|
}, {
|
|
201
|
-
name: string;
|
|
202
201
|
id: string;
|
|
202
|
+
name: string;
|
|
203
203
|
options: {
|
|
204
|
-
name: string;
|
|
205
204
|
id: string;
|
|
205
|
+
name: string;
|
|
206
206
|
price: number;
|
|
207
207
|
external_id: string;
|
|
208
208
|
}[];
|
|
@@ -210,38 +210,38 @@ export declare const FdtoShopeefoodGetOrderRes: z.ZodObject<{
|
|
|
210
210
|
}>, "many">>>;
|
|
211
211
|
}, "strip", z.ZodTypeAny, {
|
|
212
212
|
option_groups?: {
|
|
213
|
-
name: string;
|
|
214
213
|
id: string;
|
|
214
|
+
name: string;
|
|
215
215
|
options: {
|
|
216
|
-
name: string;
|
|
217
216
|
id: string;
|
|
217
|
+
name: string;
|
|
218
218
|
price: number;
|
|
219
219
|
external_id: string;
|
|
220
220
|
}[];
|
|
221
221
|
external_id: string;
|
|
222
222
|
}[] | null | undefined;
|
|
223
223
|
dish: {
|
|
224
|
-
name: string;
|
|
225
224
|
id: string;
|
|
225
|
+
name: string;
|
|
226
226
|
external_id: string;
|
|
227
227
|
unit_list_price: number;
|
|
228
228
|
unit_price: number;
|
|
229
229
|
};
|
|
230
230
|
}, {
|
|
231
231
|
option_groups?: {
|
|
232
|
-
name: string;
|
|
233
232
|
id: string;
|
|
233
|
+
name: string;
|
|
234
234
|
options: {
|
|
235
|
-
name: string;
|
|
236
235
|
id: string;
|
|
236
|
+
name: string;
|
|
237
237
|
price: number;
|
|
238
238
|
external_id: string;
|
|
239
239
|
}[];
|
|
240
240
|
external_id: string;
|
|
241
241
|
}[] | null | undefined;
|
|
242
242
|
dish: {
|
|
243
|
-
name: string;
|
|
244
243
|
id: string;
|
|
244
|
+
name: string;
|
|
245
245
|
external_id: string;
|
|
246
246
|
unit_list_price: number;
|
|
247
247
|
unit_price: number;
|
|
@@ -260,19 +260,19 @@ export declare const FdtoShopeefoodGetOrderRes: z.ZodObject<{
|
|
|
260
260
|
unit_price: number;
|
|
261
261
|
detail: {
|
|
262
262
|
option_groups?: {
|
|
263
|
-
name: string;
|
|
264
263
|
id: string;
|
|
264
|
+
name: string;
|
|
265
265
|
options: {
|
|
266
|
-
name: string;
|
|
267
266
|
id: string;
|
|
267
|
+
name: string;
|
|
268
268
|
price: number;
|
|
269
269
|
external_id: string;
|
|
270
270
|
}[];
|
|
271
271
|
external_id: string;
|
|
272
272
|
}[] | null | undefined;
|
|
273
273
|
dish: {
|
|
274
|
-
name: string;
|
|
275
274
|
id: string;
|
|
275
|
+
name: string;
|
|
276
276
|
external_id: string;
|
|
277
277
|
unit_list_price: number;
|
|
278
278
|
unit_price: number;
|
|
@@ -286,19 +286,19 @@ export declare const FdtoShopeefoodGetOrderRes: z.ZodObject<{
|
|
|
286
286
|
unit_price: number;
|
|
287
287
|
detail: {
|
|
288
288
|
option_groups?: {
|
|
289
|
-
name: string;
|
|
290
289
|
id: string;
|
|
290
|
+
name: string;
|
|
291
291
|
options: {
|
|
292
|
-
name: string;
|
|
293
292
|
id: string;
|
|
293
|
+
name: string;
|
|
294
294
|
price: number;
|
|
295
295
|
external_id: string;
|
|
296
296
|
}[];
|
|
297
297
|
external_id: string;
|
|
298
298
|
}[] | null | undefined;
|
|
299
299
|
dish: {
|
|
300
|
-
name: string;
|
|
301
300
|
id: string;
|
|
301
|
+
name: string;
|
|
302
302
|
external_id: string;
|
|
303
303
|
unit_list_price: number;
|
|
304
304
|
unit_price: number;
|
|
@@ -393,19 +393,19 @@ export declare const FdtoShopeefoodGetOrderRes: z.ZodObject<{
|
|
|
393
393
|
unit_price: number;
|
|
394
394
|
detail: {
|
|
395
395
|
option_groups?: {
|
|
396
|
-
name: string;
|
|
397
396
|
id: string;
|
|
397
|
+
name: string;
|
|
398
398
|
options: {
|
|
399
|
-
name: string;
|
|
400
399
|
id: string;
|
|
400
|
+
name: string;
|
|
401
401
|
price: number;
|
|
402
402
|
external_id: string;
|
|
403
403
|
}[];
|
|
404
404
|
external_id: string;
|
|
405
405
|
}[] | null | undefined;
|
|
406
406
|
dish: {
|
|
407
|
-
name: string;
|
|
408
407
|
id: string;
|
|
408
|
+
name: string;
|
|
409
409
|
external_id: string;
|
|
410
410
|
unit_list_price: number;
|
|
411
411
|
unit_price: number;
|
|
@@ -465,19 +465,19 @@ export declare const FdtoShopeefoodGetOrderRes: z.ZodObject<{
|
|
|
465
465
|
unit_price: number;
|
|
466
466
|
detail: {
|
|
467
467
|
option_groups?: {
|
|
468
|
-
name: string;
|
|
469
468
|
id: string;
|
|
469
|
+
name: string;
|
|
470
470
|
options: {
|
|
471
|
-
name: string;
|
|
472
471
|
id: string;
|
|
472
|
+
name: string;
|
|
473
473
|
price: number;
|
|
474
474
|
external_id: string;
|
|
475
475
|
}[];
|
|
476
476
|
external_id: string;
|
|
477
477
|
}[] | null | undefined;
|
|
478
478
|
dish: {
|
|
479
|
-
name: string;
|
|
480
479
|
id: string;
|
|
480
|
+
name: string;
|
|
481
481
|
external_id: string;
|
|
482
482
|
unit_list_price: number;
|
|
483
483
|
unit_price: number;
|
|
@@ -540,19 +540,19 @@ export declare const FdtoShopeefoodGetOrderRes: z.ZodObject<{
|
|
|
540
540
|
unit_price: number;
|
|
541
541
|
detail: {
|
|
542
542
|
option_groups?: {
|
|
543
|
-
name: string;
|
|
544
543
|
id: string;
|
|
544
|
+
name: string;
|
|
545
545
|
options: {
|
|
546
|
-
name: string;
|
|
547
546
|
id: string;
|
|
547
|
+
name: string;
|
|
548
548
|
price: number;
|
|
549
549
|
external_id: string;
|
|
550
550
|
}[];
|
|
551
551
|
external_id: string;
|
|
552
552
|
}[] | null | undefined;
|
|
553
553
|
dish: {
|
|
554
|
-
name: string;
|
|
555
554
|
id: string;
|
|
555
|
+
name: string;
|
|
556
556
|
external_id: string;
|
|
557
557
|
unit_list_price: number;
|
|
558
558
|
unit_price: number;
|
|
@@ -616,19 +616,19 @@ export declare const FdtoShopeefoodGetOrderRes: z.ZodObject<{
|
|
|
616
616
|
unit_price: number;
|
|
617
617
|
detail: {
|
|
618
618
|
option_groups?: {
|
|
619
|
-
name: string;
|
|
620
619
|
id: string;
|
|
620
|
+
name: string;
|
|
621
621
|
options: {
|
|
622
|
-
name: string;
|
|
623
622
|
id: string;
|
|
623
|
+
name: string;
|
|
624
624
|
price: number;
|
|
625
625
|
external_id: string;
|
|
626
626
|
}[];
|
|
627
627
|
external_id: string;
|
|
628
628
|
}[] | null | undefined;
|
|
629
629
|
dish: {
|
|
630
|
-
name: string;
|
|
631
630
|
id: string;
|
|
631
|
+
name: string;
|
|
632
632
|
external_id: string;
|
|
633
633
|
unit_list_price: number;
|
|
634
634
|
unit_price: number;
|
|
@@ -755,14 +755,14 @@ export declare const SFGetOrderRes: z.ZodObject<{
|
|
|
755
755
|
unit_list_price: z.ZodNumber;
|
|
756
756
|
unit_price: z.ZodNumber;
|
|
757
757
|
}, "strip", z.ZodTypeAny, {
|
|
758
|
-
name: string;
|
|
759
758
|
id: string;
|
|
759
|
+
name: string;
|
|
760
760
|
external_id: string;
|
|
761
761
|
unit_list_price: number;
|
|
762
762
|
unit_price: number;
|
|
763
763
|
}, {
|
|
764
|
-
name: string;
|
|
765
764
|
id: string;
|
|
765
|
+
name: string;
|
|
766
766
|
external_id: string;
|
|
767
767
|
unit_list_price: number;
|
|
768
768
|
unit_price: number;
|
|
@@ -777,32 +777,32 @@ export declare const SFGetOrderRes: z.ZodObject<{
|
|
|
777
777
|
name: z.ZodString;
|
|
778
778
|
price: z.ZodNumber;
|
|
779
779
|
}, "strip", z.ZodTypeAny, {
|
|
780
|
-
name: string;
|
|
781
780
|
id: string;
|
|
781
|
+
name: string;
|
|
782
782
|
price: number;
|
|
783
783
|
external_id: string;
|
|
784
784
|
}, {
|
|
785
|
-
name: string;
|
|
786
785
|
id: string;
|
|
786
|
+
name: string;
|
|
787
787
|
price: number;
|
|
788
788
|
external_id: string;
|
|
789
789
|
}>, "many">;
|
|
790
790
|
}, "strip", z.ZodTypeAny, {
|
|
791
|
-
name: string;
|
|
792
791
|
id: string;
|
|
792
|
+
name: string;
|
|
793
793
|
options: {
|
|
794
|
-
name: string;
|
|
795
794
|
id: string;
|
|
795
|
+
name: string;
|
|
796
796
|
price: number;
|
|
797
797
|
external_id: string;
|
|
798
798
|
}[];
|
|
799
799
|
external_id: string;
|
|
800
800
|
}, {
|
|
801
|
-
name: string;
|
|
802
801
|
id: string;
|
|
802
|
+
name: string;
|
|
803
803
|
options: {
|
|
804
|
-
name: string;
|
|
805
804
|
id: string;
|
|
805
|
+
name: string;
|
|
806
806
|
price: number;
|
|
807
807
|
external_id: string;
|
|
808
808
|
}[];
|
|
@@ -810,38 +810,38 @@ export declare const SFGetOrderRes: z.ZodObject<{
|
|
|
810
810
|
}>, "many">>>;
|
|
811
811
|
}, "strip", z.ZodTypeAny, {
|
|
812
812
|
option_groups?: {
|
|
813
|
-
name: string;
|
|
814
813
|
id: string;
|
|
814
|
+
name: string;
|
|
815
815
|
options: {
|
|
816
|
-
name: string;
|
|
817
816
|
id: string;
|
|
817
|
+
name: string;
|
|
818
818
|
price: number;
|
|
819
819
|
external_id: string;
|
|
820
820
|
}[];
|
|
821
821
|
external_id: string;
|
|
822
822
|
}[] | null | undefined;
|
|
823
823
|
dish: {
|
|
824
|
-
name: string;
|
|
825
824
|
id: string;
|
|
825
|
+
name: string;
|
|
826
826
|
external_id: string;
|
|
827
827
|
unit_list_price: number;
|
|
828
828
|
unit_price: number;
|
|
829
829
|
};
|
|
830
830
|
}, {
|
|
831
831
|
option_groups?: {
|
|
832
|
-
name: string;
|
|
833
832
|
id: string;
|
|
833
|
+
name: string;
|
|
834
834
|
options: {
|
|
835
|
-
name: string;
|
|
836
835
|
id: string;
|
|
836
|
+
name: string;
|
|
837
837
|
price: number;
|
|
838
838
|
external_id: string;
|
|
839
839
|
}[];
|
|
840
840
|
external_id: string;
|
|
841
841
|
}[] | null | undefined;
|
|
842
842
|
dish: {
|
|
843
|
-
name: string;
|
|
844
843
|
id: string;
|
|
844
|
+
name: string;
|
|
845
845
|
external_id: string;
|
|
846
846
|
unit_list_price: number;
|
|
847
847
|
unit_price: number;
|
|
@@ -860,19 +860,19 @@ export declare const SFGetOrderRes: z.ZodObject<{
|
|
|
860
860
|
unit_price: number;
|
|
861
861
|
detail: {
|
|
862
862
|
option_groups?: {
|
|
863
|
-
name: string;
|
|
864
863
|
id: string;
|
|
864
|
+
name: string;
|
|
865
865
|
options: {
|
|
866
|
-
name: string;
|
|
867
866
|
id: string;
|
|
867
|
+
name: string;
|
|
868
868
|
price: number;
|
|
869
869
|
external_id: string;
|
|
870
870
|
}[];
|
|
871
871
|
external_id: string;
|
|
872
872
|
}[] | null | undefined;
|
|
873
873
|
dish: {
|
|
874
|
-
name: string;
|
|
875
874
|
id: string;
|
|
875
|
+
name: string;
|
|
876
876
|
external_id: string;
|
|
877
877
|
unit_list_price: number;
|
|
878
878
|
unit_price: number;
|
|
@@ -886,19 +886,19 @@ export declare const SFGetOrderRes: z.ZodObject<{
|
|
|
886
886
|
unit_price: number;
|
|
887
887
|
detail: {
|
|
888
888
|
option_groups?: {
|
|
889
|
-
name: string;
|
|
890
889
|
id: string;
|
|
890
|
+
name: string;
|
|
891
891
|
options: {
|
|
892
|
-
name: string;
|
|
893
892
|
id: string;
|
|
893
|
+
name: string;
|
|
894
894
|
price: number;
|
|
895
895
|
external_id: string;
|
|
896
896
|
}[];
|
|
897
897
|
external_id: string;
|
|
898
898
|
}[] | null | undefined;
|
|
899
899
|
dish: {
|
|
900
|
-
name: string;
|
|
901
900
|
id: string;
|
|
901
|
+
name: string;
|
|
902
902
|
external_id: string;
|
|
903
903
|
unit_list_price: number;
|
|
904
904
|
unit_price: number;
|
|
@@ -993,19 +993,19 @@ export declare const SFGetOrderRes: z.ZodObject<{
|
|
|
993
993
|
unit_price: number;
|
|
994
994
|
detail: {
|
|
995
995
|
option_groups?: {
|
|
996
|
-
name: string;
|
|
997
996
|
id: string;
|
|
997
|
+
name: string;
|
|
998
998
|
options: {
|
|
999
|
-
name: string;
|
|
1000
999
|
id: string;
|
|
1000
|
+
name: string;
|
|
1001
1001
|
price: number;
|
|
1002
1002
|
external_id: string;
|
|
1003
1003
|
}[];
|
|
1004
1004
|
external_id: string;
|
|
1005
1005
|
}[] | null | undefined;
|
|
1006
1006
|
dish: {
|
|
1007
|
-
name: string;
|
|
1008
1007
|
id: string;
|
|
1008
|
+
name: string;
|
|
1009
1009
|
external_id: string;
|
|
1010
1010
|
unit_list_price: number;
|
|
1011
1011
|
unit_price: number;
|
|
@@ -1065,19 +1065,19 @@ export declare const SFGetOrderRes: z.ZodObject<{
|
|
|
1065
1065
|
unit_price: number;
|
|
1066
1066
|
detail: {
|
|
1067
1067
|
option_groups?: {
|
|
1068
|
-
name: string;
|
|
1069
1068
|
id: string;
|
|
1069
|
+
name: string;
|
|
1070
1070
|
options: {
|
|
1071
|
-
name: string;
|
|
1072
1071
|
id: string;
|
|
1072
|
+
name: string;
|
|
1073
1073
|
price: number;
|
|
1074
1074
|
external_id: string;
|
|
1075
1075
|
}[];
|
|
1076
1076
|
external_id: string;
|
|
1077
1077
|
}[] | null | undefined;
|
|
1078
1078
|
dish: {
|
|
1079
|
-
name: string;
|
|
1080
1079
|
id: string;
|
|
1080
|
+
name: string;
|
|
1081
1081
|
external_id: string;
|
|
1082
1082
|
unit_list_price: number;
|
|
1083
1083
|
unit_price: number;
|
|
@@ -1140,19 +1140,19 @@ export declare const SFGetOrderRes: z.ZodObject<{
|
|
|
1140
1140
|
unit_price: number;
|
|
1141
1141
|
detail: {
|
|
1142
1142
|
option_groups?: {
|
|
1143
|
-
name: string;
|
|
1144
1143
|
id: string;
|
|
1144
|
+
name: string;
|
|
1145
1145
|
options: {
|
|
1146
|
-
name: string;
|
|
1147
1146
|
id: string;
|
|
1147
|
+
name: string;
|
|
1148
1148
|
price: number;
|
|
1149
1149
|
external_id: string;
|
|
1150
1150
|
}[];
|
|
1151
1151
|
external_id: string;
|
|
1152
1152
|
}[] | null | undefined;
|
|
1153
1153
|
dish: {
|
|
1154
|
-
name: string;
|
|
1155
1154
|
id: string;
|
|
1155
|
+
name: string;
|
|
1156
1156
|
external_id: string;
|
|
1157
1157
|
unit_list_price: number;
|
|
1158
1158
|
unit_price: number;
|
|
@@ -1216,19 +1216,19 @@ export declare const SFGetOrderRes: z.ZodObject<{
|
|
|
1216
1216
|
unit_price: number;
|
|
1217
1217
|
detail: {
|
|
1218
1218
|
option_groups?: {
|
|
1219
|
-
name: string;
|
|
1220
1219
|
id: string;
|
|
1220
|
+
name: string;
|
|
1221
1221
|
options: {
|
|
1222
|
-
name: string;
|
|
1223
1222
|
id: string;
|
|
1223
|
+
name: string;
|
|
1224
1224
|
price: number;
|
|
1225
1225
|
external_id: string;
|
|
1226
1226
|
}[];
|
|
1227
1227
|
external_id: string;
|
|
1228
1228
|
}[] | null | undefined;
|
|
1229
1229
|
dish: {
|
|
1230
|
-
name: string;
|
|
1231
1230
|
id: string;
|
|
1231
|
+
name: string;
|
|
1232
1232
|
external_id: string;
|
|
1233
1233
|
unit_list_price: number;
|
|
1234
1234
|
unit_price: number;
|
|
@@ -33,7 +33,7 @@ export declare const IdentifierDto: z.ZodObject<z.extendShape<Omit<z.extendShape
|
|
|
33
33
|
} | null | undefined;
|
|
34
34
|
tPlus?: number | null | undefined;
|
|
35
35
|
variant: string;
|
|
36
|
-
issuer: "
|
|
36
|
+
issuer: "OTHER" | "FEEDME" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "VISA" | "MASTER" | "MYDEBIT";
|
|
37
37
|
}, {
|
|
38
38
|
rate?: {
|
|
39
39
|
amount: number;
|
|
@@ -41,6 +41,6 @@ export declare const IdentifierDto: z.ZodObject<z.extendShape<Omit<z.extendShape
|
|
|
41
41
|
} | null | undefined;
|
|
42
42
|
tPlus?: number | null | undefined;
|
|
43
43
|
variant: string;
|
|
44
|
-
issuer: "
|
|
44
|
+
issuer: "OTHER" | "FEEDME" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "VISA" | "MASTER" | "MYDEBIT";
|
|
45
45
|
}>;
|
|
46
46
|
export type IdentifierDto = z.infer<typeof IdentifierDto>;
|
|
@@ -803,8 +803,8 @@ export declare const Printer: z.ZodObject<{
|
|
|
803
803
|
type: "PRINTER_ID";
|
|
804
804
|
printerId: string;
|
|
805
805
|
} | null | undefined;
|
|
806
|
-
name: string;
|
|
807
806
|
id: string;
|
|
807
|
+
name: string;
|
|
808
808
|
hardware: {
|
|
809
809
|
machineId?: string | null | undefined;
|
|
810
810
|
chunkSize?: number | null | undefined;
|
|
@@ -859,8 +859,8 @@ export declare const Printer: z.ZodObject<{
|
|
|
859
859
|
type: "PRINTER_ID";
|
|
860
860
|
printerId: string;
|
|
861
861
|
} | null | undefined;
|
|
862
|
-
name: string;
|
|
863
862
|
id: string;
|
|
863
|
+
name: string;
|
|
864
864
|
hardware: {
|
|
865
865
|
machineId?: string | null | undefined;
|
|
866
866
|
chunkSize?: number | null | undefined;
|
|
@@ -705,7 +705,6 @@ export declare const WebSocketReqDto: z.ZodObject<{
|
|
|
705
705
|
type: "KIOSK:UPDATE_SETTING";
|
|
706
706
|
}>>;
|
|
707
707
|
}, "strip", z.ZodTypeAny, {
|
|
708
|
-
topicIds: string[];
|
|
709
708
|
event: {
|
|
710
709
|
data: {
|
|
711
710
|
color?: string | null | undefined;
|
|
@@ -773,8 +772,8 @@ export declare const WebSocketReqDto: z.ZodObject<{
|
|
|
773
772
|
};
|
|
774
773
|
type: "KIOSK:UPDATE_SETTING";
|
|
775
774
|
};
|
|
776
|
-
}, {
|
|
777
775
|
topicIds: string[];
|
|
776
|
+
}, {
|
|
778
777
|
event: {
|
|
779
778
|
data: {
|
|
780
779
|
color?: string | null | undefined;
|
|
@@ -842,6 +841,7 @@ export declare const WebSocketReqDto: z.ZodObject<{
|
|
|
842
841
|
} | undefined;
|
|
843
842
|
type: "KIOSK:UPDATE_SETTING";
|
|
844
843
|
};
|
|
844
|
+
topicIds: string[];
|
|
845
845
|
}>;
|
|
846
846
|
export type WebSocketCustomerNewMessageData = z.infer<typeof WebSocketCustomerNewMessageData>;
|
|
847
847
|
export type WebSocketCustomerNewMessageEvent = z.infer<typeof WebSocketCustomerNewMessageEvent>;
|
package/package.json
CHANGED
package/src/Entry.vue
CHANGED
|
@@ -3,10 +3,9 @@ import { FmNavBar } from '@feedmepos/mf-common'
|
|
|
3
3
|
import { computed } from 'vue'
|
|
4
4
|
import { useRoute } from 'vue-router'
|
|
5
5
|
import { onMounted } from 'vue'
|
|
6
|
-
import { setGoogleMap } from './helpers/map'
|
|
7
|
-
import { Loader } from 'google-maps'
|
|
8
6
|
import { useIframeStore } from '@/stores/iframe'
|
|
9
7
|
import App from './App.vue'
|
|
8
|
+
import { initSettings } from './app'
|
|
10
9
|
|
|
11
10
|
const route = useRoute()
|
|
12
11
|
const showHeader = computed(() => route.query.showHeader !== 'false')
|
|
@@ -17,12 +16,7 @@ onMounted(async () => {
|
|
|
17
16
|
parent.postMessage({ event: 'ready' }, '*')
|
|
18
17
|
}
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
libraries: ['places']
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
const map = await loader.load()
|
|
25
|
-
setGoogleMap(map)
|
|
19
|
+
initSettings()
|
|
26
20
|
})
|
|
27
21
|
</script>
|
|
28
22
|
|
|
@@ -31,7 +25,7 @@ onMounted(async () => {
|
|
|
31
25
|
<div v-if="!state.isIframe" style="height: 64px">
|
|
32
26
|
<FmNavBar />
|
|
33
27
|
</div>
|
|
34
|
-
<App/>
|
|
28
|
+
<App />
|
|
35
29
|
</div>
|
|
36
30
|
</template>
|
|
37
31
|
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
FdoRestaurantSetting,
|
|
10
10
|
FdoServiceChargeSetting
|
|
11
11
|
} from '@feedmepos/core/entity'
|
|
12
|
+
import { baseClientInstance } from '../index'
|
|
12
13
|
|
|
13
14
|
interface EntityDocument {
|
|
14
15
|
_rev: string
|
|
@@ -18,8 +19,8 @@ interface EntityDocument {
|
|
|
18
19
|
export type RestaurantSettingDoc = EntityDocument & FdoRestaurantSetting
|
|
19
20
|
|
|
20
21
|
export const restaurantApi = {
|
|
21
|
-
async readRestaurantSetting(): Promise<RestaurantSettingDoc> {
|
|
22
|
-
const result = await
|
|
22
|
+
async readRestaurantSetting(restaurantId: string): Promise<RestaurantSettingDoc> {
|
|
23
|
+
const result = await baseClientInstance().get(`/restaurants/${restaurantId}/restaurant-setting`)
|
|
23
24
|
return getData<RestaurantSettingDoc>(result)
|
|
24
25
|
},
|
|
25
26
|
async updateDineInSetting(setting: FdoRestaurantDineIn) {
|
package/src/app.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { googleMap, setGoogleMap } from "./helpers/map"
|
|
1
2
|
import enUS from "./locales/en-US.json"
|
|
2
3
|
import zhCN from "./locales/zh-CN.json"
|
|
3
4
|
export type AppMessagesSchema = typeof enUS
|
|
5
|
+
import { Loader } from 'google-maps'
|
|
6
|
+
|
|
4
7
|
|
|
5
8
|
export const i18nMessages = {
|
|
6
9
|
"en-US": enUS,
|
|
@@ -9,3 +12,17 @@ export const i18nMessages = {
|
|
|
9
12
|
|
|
10
13
|
export { default as FmApp } from './App.vue'
|
|
11
14
|
export { routes as routers } from '../src/router/routes'
|
|
15
|
+
|
|
16
|
+
async function initGoogleMap() {
|
|
17
|
+
if (googleMap()) return
|
|
18
|
+
|
|
19
|
+
const loader = new Loader(appApi.googleMap, {
|
|
20
|
+
libraries: ["places"]
|
|
21
|
+
})
|
|
22
|
+
const map = await loader.load()
|
|
23
|
+
setGoogleMap(map)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export async function initSettings() {
|
|
27
|
+
await initGoogleMap()
|
|
28
|
+
}
|