@feedmepos/mf-order-setting 0.0.36 → 0.0.38

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 (51) hide show
  1. package/dist/{KioskDevicesView-wPKewwAS.js → KioskDevicesView-DoTQRyXe.js} +1 -1
  2. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-BCJPU2la.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-DB0dvpBG.js} +2 -2
  3. package/dist/{KioskSettingView-CV54HpY2.js → KioskSettingView-DRpVR7Ij.js} +1 -1
  4. package/dist/{KioskView-B4mggCt0.js → KioskView-4-s6RwC6.js} +7 -7
  5. package/dist/OrderSettingsView-BqgGXVhY.js +76752 -0
  6. package/dist/{app-D4exdzAx.js → app-BbOgWoeI.js} +33 -18
  7. package/dist/app.js +1 -1
  8. package/dist/{dayjs.min-C_sCJHuD.js → dayjs.min-COLd3dVw.js} +1 -1
  9. package/dist/frontend/mf-order/src/api/menu/index.d.ts +4 -0
  10. package/dist/frontend/mf-order/src/app.d.ts +15 -0
  11. package/dist/frontend/mf-order/src/helpers/order-setting.d.ts +6 -0
  12. package/dist/frontend/mf-order/src/main.d.ts +15 -0
  13. package/dist/frontend/mf-order/src/stores/menu/menu.d.ts +13 -4
  14. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +27 -0
  15. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  16. package/dist/{index-Cvhc_ltu.js → index-BewBuJGi.js} +2 -2
  17. package/dist/menu.dto-Bf0Evx6J.js +127224 -0
  18. package/dist/package/entity/food-court/order.dto.d.ts +1952 -1952
  19. package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +30 -30
  20. package/dist/package/entity/incoming-order/incoming-order.do.d.ts +24 -24
  21. package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +64 -64
  22. package/dist/package/entity/order/menu/menu.dto.d.ts +10 -0
  23. package/dist/package/entity/order/order-item/order-item.dto.d.ts +48 -48
  24. package/dist/package/entity/order/order.do.d.ts +20 -8
  25. package/dist/package/entity/order/order.dto.d.ts +3466 -3350
  26. package/dist/package/entity/order/payment/payment.dto.d.ts +1702 -1702
  27. package/dist/package/entity/order-platform/shopeefood/shopeefood-order.do.d.ts +33 -0
  28. package/dist/package/entity/order-platform/shopeefood/shopeefood-order.dto.d.ts +18 -0
  29. package/dist/package/entity/order-setting/order-setting.do.d.ts +168 -0
  30. package/dist/package/entity/order-setting/order-setting.dto.d.ts +134 -0
  31. package/dist/package/entity/order-setting/queue/queue.do.d.ts +95 -1613
  32. package/dist/package/entity/order-setting/queue/queue.dto.d.ts +62 -110
  33. package/dist/package/entity/order-setting/sequence/sequence.do.d.ts +72 -0
  34. package/dist/package/entity/order-setting/sequence/sequence.dto.d.ts +101 -0
  35. package/dist/package/entity/payment/payment.dto.d.ts +3 -3
  36. package/dist/package/entity/queue/queue.do.d.ts +18 -6
  37. package/dist/package/entity/queue/queue.dto.d.ts +922 -908
  38. package/dist/package/entity/restaurant/restaurant.dto.d.ts +363 -20
  39. package/package.json +4 -4
  40. package/src/api/menu/index.ts +4 -1
  41. package/src/helpers/order-setting.ts +20 -0
  42. package/src/locales/en-US.json +5 -0
  43. package/src/locales/th-TH.json +5 -0
  44. package/src/locales/zh-CN.json +5 -0
  45. package/src/stores/menu/menu.ts +33 -14
  46. package/src/stores/order-setting/mapper.ts +56 -56
  47. package/src/views/order-settings/OrderSettingsView.vue +30 -3
  48. package/src/views/order-settings/delivery/integrated-delivery/IntegratedDelivery.vue +0 -1
  49. package/src/views/order-settings/general/GeneralSetting.vue +159 -4
  50. package/dist/OrderSettingsView-CKGRFx_2.js +0 -50624
  51. package/dist/menu.dto-CeUdKgTW.js +0 -103445
@@ -1369,24 +1369,72 @@ export declare const RestaurantCustomerV2Dto: z.ZodObject<{
1369
1369
  }>>>>;
1370
1370
  queueSetting: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1371
1371
  enableOrder: z.ZodBoolean;
1372
- initialNumber: z.ZodNumber;
1373
- endNumber: z.ZodNumber;
1374
- currentNumber: z.ZodNumber;
1375
1372
  autoCalledLimit: z.ZodNumber;
1376
1373
  duration: z.ZodDefault<z.ZodNumber>;
1374
+ codeSettings: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
1375
+ start: z.ZodNumber;
1376
+ end: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1377
+ current: z.ZodNumber;
1378
+ prefix: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1379
+ pax: z.ZodObject<{
1380
+ min: z.ZodNumber;
1381
+ max: z.ZodNumber;
1382
+ }, "strip", z.ZodTypeAny, {
1383
+ min: number;
1384
+ max: number;
1385
+ }, {
1386
+ min: number;
1387
+ max: number;
1388
+ }>;
1389
+ }, "strip", z.ZodTypeAny, {
1390
+ prefix?: string | null | undefined;
1391
+ end?: number | null | undefined;
1392
+ pax: {
1393
+ min: number;
1394
+ max: number;
1395
+ };
1396
+ start: number;
1397
+ current: number;
1398
+ }, {
1399
+ prefix?: string | null | undefined;
1400
+ end?: number | null | undefined;
1401
+ pax: {
1402
+ min: number;
1403
+ max: number;
1404
+ };
1405
+ start: number;
1406
+ current: number;
1407
+ }>, "many">>>;
1408
+ disableRemoteQueue: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1377
1409
  }, "strip", z.ZodTypeAny, {
1378
- duration: number;
1410
+ codeSettings?: {
1411
+ prefix?: string | null | undefined;
1412
+ end?: number | null | undefined;
1413
+ pax: {
1414
+ min: number;
1415
+ max: number;
1416
+ };
1417
+ start: number;
1418
+ current: number;
1419
+ }[] | null | undefined;
1420
+ disableRemoteQueue?: boolean | null | undefined;
1379
1421
  enableOrder: boolean;
1380
- initialNumber: number;
1381
- endNumber: number;
1382
- currentNumber: number;
1383
1422
  autoCalledLimit: number;
1423
+ duration: number;
1384
1424
  }, {
1385
1425
  duration?: number | undefined;
1426
+ codeSettings?: {
1427
+ prefix?: string | null | undefined;
1428
+ end?: number | null | undefined;
1429
+ pax: {
1430
+ min: number;
1431
+ max: number;
1432
+ };
1433
+ start: number;
1434
+ current: number;
1435
+ }[] | null | undefined;
1436
+ disableRemoteQueue?: boolean | null | undefined;
1386
1437
  enableOrder: boolean;
1387
- initialNumber: number;
1388
- endNumber: number;
1389
- currentNumber: number;
1390
1438
  autoCalledLimit: number;
1391
1439
  }>>>;
1392
1440
  upsellingSetting: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodObject<{
@@ -1683,12 +1731,20 @@ export declare const RestaurantCustomerV2Dto: z.ZodObject<{
1683
1731
  grabfoodDelivery?: any;
1684
1732
  shopeefoodDelivery?: any;
1685
1733
  queueSetting?: {
1686
- duration: number;
1734
+ codeSettings?: {
1735
+ prefix?: string | null | undefined;
1736
+ end?: number | null | undefined;
1737
+ pax: {
1738
+ min: number;
1739
+ max: number;
1740
+ };
1741
+ start: number;
1742
+ current: number;
1743
+ }[] | null | undefined;
1744
+ disableRemoteQueue?: boolean | null | undefined;
1687
1745
  enableOrder: boolean;
1688
- initialNumber: number;
1689
- endNumber: number;
1690
- currentNumber: number;
1691
1746
  autoCalledLimit: number;
1747
+ duration: number;
1692
1748
  } | null | undefined;
1693
1749
  upsellingSetting?: {
1694
1750
  recommandation: boolean;
@@ -1960,10 +2016,18 @@ export declare const RestaurantCustomerV2Dto: z.ZodObject<{
1960
2016
  shopeefoodDelivery?: any;
1961
2017
  queueSetting?: {
1962
2018
  duration?: number | undefined;
2019
+ codeSettings?: {
2020
+ prefix?: string | null | undefined;
2021
+ end?: number | null | undefined;
2022
+ pax: {
2023
+ min: number;
2024
+ max: number;
2025
+ };
2026
+ start: number;
2027
+ current: number;
2028
+ }[] | null | undefined;
2029
+ disableRemoteQueue?: boolean | null | undefined;
1963
2030
  enableOrder: boolean;
1964
- initialNumber: number;
1965
- endNumber: number;
1966
- currentNumber: number;
1967
2031
  autoCalledLimit: number;
1968
2032
  } | null | undefined;
1969
2033
  upsellingSetting?: {
@@ -3891,7 +3955,7 @@ export declare const RestaurantCustomerKioskDto: z.ZodObject<{
3891
3955
  paymentGateways: z.ZodArray<z.ZodDiscriminatedUnion<"paymentGateway", z.Primitive, z.ZodObject<z.extendShape<{
3892
3956
  _id: z.ZodString;
3893
3957
  _rev: z.ZodString;
3894
- paymentGateway: z.ZodEnum<["FEEDME", "FEEDME_TERMINAL", "REVENUE_MONSTER", "E_GHL", "RAZER_MERCHANT_SERVICE", "MACAU_PASS"]>;
3958
+ paymentGateway: z.ZodEnum<["FEEDME", "FEEDME_TERMINAL", "E_GHL", "GHL", "MACAU_PASS", "REVENUE_MONSTER", "RAZER_MERCHANT_SERVICE", "MAYBANK", "MAYBANK2", "MAYBANK3", "NETS", "CASH", "SOFTSPACE", "GRAB", "DIGIO", "KBANK", "ADYEN"]>;
3895
3959
  active: z.ZodBoolean;
3896
3960
  }, {
3897
3961
  paymentGateway: z.ZodLiteral<"REVENUE_MONSTER">;
@@ -3936,7 +4000,7 @@ export declare const RestaurantCustomerKioskDto: z.ZodObject<{
3936
4000
  }> | z.ZodObject<z.extendShape<{
3937
4001
  _id: z.ZodString;
3938
4002
  _rev: z.ZodString;
3939
- paymentGateway: z.ZodEnum<["FEEDME", "FEEDME_TERMINAL", "REVENUE_MONSTER", "E_GHL", "RAZER_MERCHANT_SERVICE", "MACAU_PASS"]>;
4003
+ paymentGateway: z.ZodEnum<["FEEDME", "FEEDME_TERMINAL", "E_GHL", "GHL", "MACAU_PASS", "REVENUE_MONSTER", "RAZER_MERCHANT_SERVICE", "MAYBANK", "MAYBANK2", "MAYBANK3", "NETS", "CASH", "SOFTSPACE", "GRAB", "DIGIO", "KBANK", "ADYEN"]>;
3940
4004
  active: z.ZodBoolean;
3941
4005
  }, {
3942
4006
  paymentGateway: z.ZodLiteral<"RAZER_MERCHANT_SERVICE">;
@@ -3991,7 +4055,7 @@ export declare const RestaurantCustomerKioskDto: z.ZodObject<{
3991
4055
  }> | z.ZodObject<z.extendShape<{
3992
4056
  _id: z.ZodString;
3993
4057
  _rev: z.ZodString;
3994
- paymentGateway: z.ZodEnum<["FEEDME", "FEEDME_TERMINAL", "REVENUE_MONSTER", "E_GHL", "RAZER_MERCHANT_SERVICE", "MACAU_PASS"]>;
4058
+ paymentGateway: z.ZodEnum<["FEEDME", "FEEDME_TERMINAL", "E_GHL", "GHL", "MACAU_PASS", "REVENUE_MONSTER", "RAZER_MERCHANT_SERVICE", "MAYBANK", "MAYBANK2", "MAYBANK3", "NETS", "CASH", "SOFTSPACE", "GRAB", "DIGIO", "KBANK", "ADYEN"]>;
3995
4059
  active: z.ZodBoolean;
3996
4060
  }, {
3997
4061
  paymentGateway: z.ZodLiteral<"E_GHL">;
@@ -4028,6 +4092,191 @@ export declare const RestaurantCustomerKioskDto: z.ZodObject<{
4028
4092
  terminalId: string;
4029
4093
  privateKey: string;
4030
4094
  };
4095
+ }> | z.ZodObject<z.extendShape<{
4096
+ _id: z.ZodString;
4097
+ _rev: z.ZodString;
4098
+ paymentGateway: z.ZodEnum<["FEEDME", "FEEDME_TERMINAL", "E_GHL", "GHL", "MACAU_PASS", "REVENUE_MONSTER", "RAZER_MERCHANT_SERVICE", "MAYBANK", "MAYBANK2", "MAYBANK3", "NETS", "CASH", "SOFTSPACE", "GRAB", "DIGIO", "KBANK", "ADYEN"]>;
4099
+ active: z.ZodBoolean;
4100
+ }, {
4101
+ paymentGateway: z.ZodLiteral<"MACAU_PASS">;
4102
+ config: z.ZodObject<{
4103
+ merchantId: z.ZodString;
4104
+ merchantName: z.ZodString;
4105
+ merchantCategoryCode: z.ZodString;
4106
+ storeID: z.ZodString;
4107
+ storeName: z.ZodString;
4108
+ }, "strip", z.ZodTypeAny, {
4109
+ merchantId: string;
4110
+ merchantName: string;
4111
+ merchantCategoryCode: string;
4112
+ storeID: string;
4113
+ storeName: string;
4114
+ }, {
4115
+ merchantId: string;
4116
+ merchantName: string;
4117
+ merchantCategoryCode: string;
4118
+ storeID: string;
4119
+ storeName: string;
4120
+ }>;
4121
+ }>, "strip", z.ZodTypeAny, {
4122
+ _id: string;
4123
+ _rev: string;
4124
+ paymentGateway: "MACAU_PASS";
4125
+ active: boolean;
4126
+ config: {
4127
+ merchantId: string;
4128
+ merchantName: string;
4129
+ merchantCategoryCode: string;
4130
+ storeID: string;
4131
+ storeName: string;
4132
+ };
4133
+ }, {
4134
+ _id: string;
4135
+ _rev: string;
4136
+ paymentGateway: "MACAU_PASS";
4137
+ active: boolean;
4138
+ config: {
4139
+ merchantId: string;
4140
+ merchantName: string;
4141
+ merchantCategoryCode: string;
4142
+ storeID: string;
4143
+ storeName: string;
4144
+ };
4145
+ }> | z.ZodObject<z.extendShape<{
4146
+ _id: z.ZodString;
4147
+ _rev: z.ZodString;
4148
+ paymentGateway: z.ZodEnum<["FEEDME", "FEEDME_TERMINAL", "E_GHL", "GHL", "MACAU_PASS", "REVENUE_MONSTER", "RAZER_MERCHANT_SERVICE", "MAYBANK", "MAYBANK2", "MAYBANK3", "NETS", "CASH", "SOFTSPACE", "GRAB", "DIGIO", "KBANK", "ADYEN"]>;
4149
+ active: z.ZodBoolean;
4150
+ }, {
4151
+ paymentGateway: z.ZodLiteral<"GRAB">;
4152
+ config: z.ZodObject<{
4153
+ merchantId: z.ZodString;
4154
+ }, "strip", z.ZodTypeAny, {
4155
+ merchantId: string;
4156
+ }, {
4157
+ merchantId: string;
4158
+ }>;
4159
+ }>, "strip", z.ZodTypeAny, {
4160
+ _id: string;
4161
+ _rev: string;
4162
+ paymentGateway: "GRAB";
4163
+ active: boolean;
4164
+ config: {
4165
+ merchantId: string;
4166
+ };
4167
+ }, {
4168
+ _id: string;
4169
+ _rev: string;
4170
+ paymentGateway: "GRAB";
4171
+ active: boolean;
4172
+ config: {
4173
+ merchantId: string;
4174
+ };
4175
+ }> | z.ZodObject<z.extendShape<{
4176
+ _id: z.ZodString;
4177
+ _rev: z.ZodString;
4178
+ paymentGateway: z.ZodEnum<["FEEDME", "FEEDME_TERMINAL", "E_GHL", "GHL", "MACAU_PASS", "REVENUE_MONSTER", "RAZER_MERCHANT_SERVICE", "MAYBANK", "MAYBANK2", "MAYBANK3", "NETS", "CASH", "SOFTSPACE", "GRAB", "DIGIO", "KBANK", "ADYEN"]>;
4179
+ active: z.ZodBoolean;
4180
+ }, {
4181
+ paymentGateway: z.ZodLiteral<"SOFTSPACE">;
4182
+ config: z.ZodObject<{
4183
+ mid: z.ZodString;
4184
+ tid: z.ZodString;
4185
+ }, "strip", z.ZodTypeAny, {
4186
+ mid: string;
4187
+ tid: string;
4188
+ }, {
4189
+ mid: string;
4190
+ tid: string;
4191
+ }>;
4192
+ }>, "strip", z.ZodTypeAny, {
4193
+ _id: string;
4194
+ _rev: string;
4195
+ paymentGateway: "SOFTSPACE";
4196
+ active: boolean;
4197
+ config: {
4198
+ mid: string;
4199
+ tid: string;
4200
+ };
4201
+ }, {
4202
+ _id: string;
4203
+ _rev: string;
4204
+ paymentGateway: "SOFTSPACE";
4205
+ active: boolean;
4206
+ config: {
4207
+ mid: string;
4208
+ tid: string;
4209
+ };
4210
+ }> | z.ZodObject<z.extendShape<{
4211
+ _id: z.ZodString;
4212
+ _rev: z.ZodString;
4213
+ paymentGateway: z.ZodEnum<["FEEDME", "FEEDME_TERMINAL", "E_GHL", "GHL", "MACAU_PASS", "REVENUE_MONSTER", "RAZER_MERCHANT_SERVICE", "MAYBANK", "MAYBANK2", "MAYBANK3", "NETS", "CASH", "SOFTSPACE", "GRAB", "DIGIO", "KBANK", "ADYEN"]>;
4214
+ active: z.ZodBoolean;
4215
+ }, {
4216
+ paymentGateway: z.ZodLiteral<"DIGIO">;
4217
+ config: z.ZodObject<{
4218
+ merchantId: z.ZodString;
4219
+ }, "strip", z.ZodTypeAny, {
4220
+ merchantId: string;
4221
+ }, {
4222
+ merchantId: string;
4223
+ }>;
4224
+ }>, "strip", z.ZodTypeAny, {
4225
+ _id: string;
4226
+ _rev: string;
4227
+ paymentGateway: "DIGIO";
4228
+ active: boolean;
4229
+ config: {
4230
+ merchantId: string;
4231
+ };
4232
+ }, {
4233
+ _id: string;
4234
+ _rev: string;
4235
+ paymentGateway: "DIGIO";
4236
+ active: boolean;
4237
+ config: {
4238
+ merchantId: string;
4239
+ };
4240
+ }> | z.ZodObject<z.extendShape<{
4241
+ _id: z.ZodString;
4242
+ _rev: z.ZodString;
4243
+ paymentGateway: z.ZodEnum<["FEEDME", "FEEDME_TERMINAL", "E_GHL", "GHL", "MACAU_PASS", "REVENUE_MONSTER", "RAZER_MERCHANT_SERVICE", "MAYBANK", "MAYBANK2", "MAYBANK3", "NETS", "CASH", "SOFTSPACE", "GRAB", "DIGIO", "KBANK", "ADYEN"]>;
4244
+ active: z.ZodBoolean;
4245
+ }, {
4246
+ paymentGateway: z.ZodLiteral<"ADYEN">;
4247
+ config: z.ZodObject<{
4248
+ merchantAccount: z.ZodString;
4249
+ username: z.ZodString;
4250
+ apiKey: z.ZodString;
4251
+ }, "strip", z.ZodTypeAny, {
4252
+ merchantAccount: string;
4253
+ username: string;
4254
+ apiKey: string;
4255
+ }, {
4256
+ merchantAccount: string;
4257
+ username: string;
4258
+ apiKey: string;
4259
+ }>;
4260
+ }>, "strip", z.ZodTypeAny, {
4261
+ _id: string;
4262
+ _rev: string;
4263
+ paymentGateway: "ADYEN";
4264
+ active: boolean;
4265
+ config: {
4266
+ merchantAccount: string;
4267
+ username: string;
4268
+ apiKey: string;
4269
+ };
4270
+ }, {
4271
+ _id: string;
4272
+ _rev: string;
4273
+ paymentGateway: "ADYEN";
4274
+ active: boolean;
4275
+ config: {
4276
+ merchantAccount: string;
4277
+ username: string;
4278
+ apiKey: string;
4279
+ };
4031
4280
  }>>, "many">;
4032
4281
  posHeartbeat: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4033
4282
  }, "strip", z.ZodTypeAny, {
@@ -4224,6 +4473,53 @@ export declare const RestaurantCustomerKioskDto: z.ZodObject<{
4224
4473
  terminalId: string;
4225
4474
  privateKey: string;
4226
4475
  };
4476
+ } | {
4477
+ _id: string;
4478
+ _rev: string;
4479
+ paymentGateway: "MACAU_PASS";
4480
+ active: boolean;
4481
+ config: {
4482
+ merchantId: string;
4483
+ merchantName: string;
4484
+ merchantCategoryCode: string;
4485
+ storeID: string;
4486
+ storeName: string;
4487
+ };
4488
+ } | {
4489
+ _id: string;
4490
+ _rev: string;
4491
+ paymentGateway: "GRAB";
4492
+ active: boolean;
4493
+ config: {
4494
+ merchantId: string;
4495
+ };
4496
+ } | {
4497
+ _id: string;
4498
+ _rev: string;
4499
+ paymentGateway: "SOFTSPACE";
4500
+ active: boolean;
4501
+ config: {
4502
+ mid: string;
4503
+ tid: string;
4504
+ };
4505
+ } | {
4506
+ _id: string;
4507
+ _rev: string;
4508
+ paymentGateway: "DIGIO";
4509
+ active: boolean;
4510
+ config: {
4511
+ merchantId: string;
4512
+ };
4513
+ } | {
4514
+ _id: string;
4515
+ _rev: string;
4516
+ paymentGateway: "ADYEN";
4517
+ active: boolean;
4518
+ config: {
4519
+ merchantAccount: string;
4520
+ username: string;
4521
+ apiKey: string;
4522
+ };
4227
4523
  })[];
4228
4524
  }, {
4229
4525
  catalogId?: string | null | undefined;
@@ -4419,6 +4715,53 @@ export declare const RestaurantCustomerKioskDto: z.ZodObject<{
4419
4715
  terminalId: string;
4420
4716
  privateKey: string;
4421
4717
  };
4718
+ } | {
4719
+ _id: string;
4720
+ _rev: string;
4721
+ paymentGateway: "MACAU_PASS";
4722
+ active: boolean;
4723
+ config: {
4724
+ merchantId: string;
4725
+ merchantName: string;
4726
+ merchantCategoryCode: string;
4727
+ storeID: string;
4728
+ storeName: string;
4729
+ };
4730
+ } | {
4731
+ _id: string;
4732
+ _rev: string;
4733
+ paymentGateway: "GRAB";
4734
+ active: boolean;
4735
+ config: {
4736
+ merchantId: string;
4737
+ };
4738
+ } | {
4739
+ _id: string;
4740
+ _rev: string;
4741
+ paymentGateway: "SOFTSPACE";
4742
+ active: boolean;
4743
+ config: {
4744
+ mid: string;
4745
+ tid: string;
4746
+ };
4747
+ } | {
4748
+ _id: string;
4749
+ _rev: string;
4750
+ paymentGateway: "DIGIO";
4751
+ active: boolean;
4752
+ config: {
4753
+ merchantId: string;
4754
+ };
4755
+ } | {
4756
+ _id: string;
4757
+ _rev: string;
4758
+ paymentGateway: "ADYEN";
4759
+ active: boolean;
4760
+ config: {
4761
+ merchantAccount: string;
4762
+ username: string;
4763
+ apiKey: string;
4764
+ };
4422
4765
  })[];
4423
4766
  }>;
4424
4767
  export type RestaurantCustomerKioskDto = z.infer<typeof RestaurantCustomerKioskDto>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-order-setting",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "type": "module",
5
5
  "module": "./dist/app.js",
6
6
  "license": "UNLICENSED",
@@ -26,7 +26,7 @@
26
26
  "format": "prettier --write src/"
27
27
  },
28
28
  "dependencies": {
29
- "@feedmepos/core": "^2.14.35",
29
+ "@feedmepos/core": "^2.14.40",
30
30
  "@feedmepos/menu": "^1.7.6",
31
31
  "@feedmepos/mf-common": "1.20.0-beta.2",
32
32
  "@feedmepos/ordering": "^0.0.3",
@@ -34,7 +34,6 @@
34
34
  "@types/googlemaps": "^3.43.3",
35
35
  "axios": "^1.7.2",
36
36
  "change-case": "^5.4.4",
37
- "zod-openapi": "^4.1.0",
38
37
  "date-fns": "^3.6.0",
39
38
  "dayjs": "^1.11.12",
40
39
  "firebase": "^10.13.1",
@@ -45,7 +44,8 @@
45
44
  "pinia": "^2.1.7",
46
45
  "vue": "^3.3.8",
47
46
  "vue-i18n": "^10.0.5",
48
- "vue-router": "^4.2.5"
47
+ "vue-router": "^4.2.5",
48
+ "zod-openapi": "^4.1.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@babel/types": "^7.24.7",
@@ -10,4 +10,7 @@ export const menuApi = {
10
10
  async readMenu(): Promise<MenuV4Doc> {
11
11
  return getData(await menuClientInstance().get(''));
12
12
  },
13
- };
13
+ async readCatalogOptions(restaurantId: string): Promise<Record<string, Array<{ _id: string; name: string }>>> {
14
+ return getData(await menuClientInstance().post('/restaurant-catalog-list', {restaurantIds: [restaurantId]}));
15
+ },
16
+ };
@@ -0,0 +1,20 @@
1
+ import {type BaseOrderNumberSettings} from '@entity'
2
+ export function getSequenceStartEndLabel(sequence: BaseOrderNumberSettings) {
3
+ const digit = sequence.digit ?? 3
4
+ const start = 1
5
+ const end = Math.pow(10, digit) - 1
6
+
7
+ const s = `${sequence.prefix}${start.toString().padStart(digit, '0')}`
8
+ const e = `${sequence.prefix}${end.toString().padStart(digit, '0')}`
9
+ return { start: s, end: e }
10
+ }
11
+
12
+ export function sequenceSettingRules(errMsg: string, digit?: number| null) {
13
+ return [
14
+ () =>
15
+ (!digit && digit !== 0) ||
16
+ ((digit ?? 0) >= 1 &&
17
+ (digit ?? 0) <= 4) || errMsg
18
+ ]
19
+ }
20
+
@@ -34,6 +34,7 @@
34
34
  "asap": "ASAP",
35
35
  "auto": "Auto",
36
36
  "autoIntegration": "Auto Integration",
37
+ "autoResetOrderNumber": "Auto reset order number",
37
38
  "autoIntegrationWarning": "Auto delivery integration not available, contact our staff for more information. Reason: {reason}",
38
39
  "autoIntegrationCountryNotSupport": "Platform not support auto integration in current country.",
39
40
  "autoSendKitchen": "Auto Send Kitchen",
@@ -57,6 +58,7 @@
57
58
  "create": "Create",
58
59
  "createTestOrder": "Create Test Order",
59
60
  "credit": "Credit",
61
+ "currentNumber": "Current Number",
60
62
  "customerItemRemark": "Customer item remark",
61
63
  "customerItemRemarkSublabel": "Customer can attach remark to item",
62
64
  "customOfflinePayment": "Custom Offline Payment",
@@ -104,6 +106,7 @@
104
106
  "eWalletDescription": "Scan QR Code to make payment with phone",
105
107
  "exclusive": "Exclulsive",
106
108
  "failed": "FAILED",
109
+ "failedToLoadCatalogOptions": "Failed to load catalog options, please refresh again",
107
110
  "failedToUpdateSetting": "Failed to update setting",
108
111
  "feedMeExpress": "FeedMe express",
109
112
  "feedmeExpressNotApproved": "Your payout account is under review. Please contact our staff for further assistant.",
@@ -170,6 +173,7 @@
170
173
  "online": "Online",
171
174
  "operatingHour": "Operating hour",
172
175
  "orderFrom": "Order from",
176
+ "orderNumberSettings": "Order Number Settings",
173
177
  "orderSetting": "Order Setting",
174
178
  "orderType": "Order Type",
175
179
  "padDigit": "Pad Digit",
@@ -219,6 +223,7 @@
219
223
  "learnMore": "learn more"
220
224
  },
221
225
  "serve": "serve",
226
+ "sequenceSettingRules": "Cannot be less than 1 and more than 4",
222
227
  "serviceCharge": "Service Charge",
223
228
  "serviceChargeRule": "* Service Charge required POS version 4.0.0 or higher",
224
229
  "serviceChargeSublabel": "Make your own rules to omit change based on different conditions such as restaurant, dining option, items, slot, etc.",
@@ -34,6 +34,7 @@
34
34
  "asap": "ทันที",
35
35
  "auto": "อัตโนมัติ",
36
36
  "autoIntegration": "รวมอัตโนมัติ",
37
+ "autoResetOrderNumber": "รีเซ็ตหมายเลขคำสั่งซื้ออัตโนมัติ",
37
38
  "autoIntegrationWarning": "การรวมระบบการจัดส่งอัตโนมัติไม่พร้อมใช้งาน โปรดติดต่อเจ้าหน้าที่ของเราเพื่อขอข้อมูลเพิ่มเติม เหตุผล: {reason}",
38
39
  "autoIntegrationCountryNotSupport": "แพลตฟอร์มไม่รองรับการเชื่อมต่อการจัดส่งแบบไดนามิกในประเทศ/ภูมิภาคปัจจุบัน",
39
40
  "autoSendKitchen": "ส่งอัตโนมัติครัว",
@@ -57,6 +58,7 @@
57
58
  "create": "สร้าง",
58
59
  "createTestOrder": "สร้างคำสั่งซื้อทดสอบ",
59
60
  "credit": "เครดิต",
61
+ "currentNumber": "หมายเลขปัจจุบัน",
60
62
  "customerItemRemark": "หมายเหตุรายการลูกค้า",
61
63
  "customerItemRemarkSublabel": "ลูกค้าสามารถแนบหมายเหตุกับรายการได้",
62
64
  "customOfflinePayment": "การชำระเงินออฟไลน์แบบกำหนดเอง",
@@ -102,6 +104,7 @@
102
104
  "eWalletDescription": "สแกนรหัส QR เพื่อชำระเงินด้วยโทรศัพท์",
103
105
  "exclusive": "พิเศษ",
104
106
  "failed": "ล้มเหลว",
107
+ "failedToLoadCatalogOptions": "ไม่สามารถโหลดตัวเลือกแค็ตตาล็อกได้ กรุณารีเฟรชอีกครั้ง",
105
108
  "failedToUpdateSetting": "ไม่สามารถอัปเดตการตั้งค่า",
106
109
  "feedMeExpress": "FeedMe express",
107
110
  "feedmeExpressNotApproved": "บัญชีการจ่ายเงินของคุณอยู่ระหว่างการตรวจสอบ โปรดติดต่อเจ้าหน้าที่ของเราเพื่อรับความช่วยเหลือเพิ่มเติม",
@@ -168,6 +171,7 @@
168
171
  "online": "ออนไลน์",
169
172
  "operatingHour": "เวลาทำการ",
170
173
  "orderFrom": "คำสั่งซื้อจาก",
174
+ "orderNumberSettings": "การตั้งค่าหมายเลขคำสั่งซื้อ",
171
175
  "orderSetting": "การตั้งค่าคำสั่งซื้อ",
172
176
  "orderType": "ประเภทคำสั่งซื้อ",
173
177
  "padDigit": "ตัวเลขบนแป้น",
@@ -215,6 +219,7 @@
215
219
  "learnMore": "เรียนรู้เพิ่มเติม"
216
220
  },
217
221
  "serve": "เสิร์ฟ",
222
+ "sequenceSettingRules": "ไม่สามารถน้อยกว่า 1 และมากกว่า 4 ได้",
218
223
  "serviceCharge": "ค่าบริการ",
219
224
  "serviceChargeRule": "* ค่าบริการจำเป็นต้องใช้ POS เวอร์ชัน 4.0.0 ขึ้นไป",
220
225
  "serviceChargeSublabel": "สร้างกฎเกณฑ์ของคุณเองเพื่อหลีกเลี่ยงการเปลี่ยนแปลงตามเงื่อนไขที่แตกต่างกัน เช่น ร้านอาหาร ตัวเลือกการรับประทานอาหาร รายการ ช่อง ฯลฯ",
@@ -34,6 +34,7 @@
34
34
  "asap": "尽快配送",
35
35
  "auto": "自动",
36
36
  "autoIntegration": "自动对接",
37
+ "autoResetOrderNumber": "自动重置订单号",
37
38
  "autoIntegrationWarning": "自动配送对接不可用, 请联络我们的工作人员了解更多信息。 原因: {reason}",
38
39
  "autoIntegrationCountryNotSupport": "平台不支持当前国家/地区的自动配送对接。",
39
40
  "autoSendKitchen": "自动发送至厨房",
@@ -58,6 +59,7 @@
58
59
  "create": "创建",
59
60
  "createTestOrder": "创建测试订单",
60
61
  "credit": "可用余额",
62
+ "currentNumber": "当前号码",
61
63
  "customerItemRemark": "客户商品备注",
62
64
  "customerItemRemarkSublabel": "客户可以为商品添加备注",
63
65
  "customOfflinePayment": "自定义线下付款方式",
@@ -106,6 +108,7 @@
106
108
  "eWalletDescription": "使用手机扫描二维码进行支付",
107
109
  "exclusive": "不包括",
108
110
  "failed": "失败",
111
+ "failedToLoadCatalogOptions": "目录选项加载失败,请重新刷新",
109
112
  "failedToUpdateSetting": "设置更新失败",
110
113
  "feedMeExpress": "FeedMe 外卖快递",
111
114
  "feedmeExpressNotApproved": "您的支付账户正在审核中,请联系我们的工作人员获取进一步的帮助。",
@@ -172,6 +175,7 @@
172
175
  "online": "在线",
173
176
  "operatingHour": "营业时间",
174
177
  "orderFrom": "预订从",
178
+ "orderNumberSettings": "订单号设置",
175
179
  "orderSetting": "订单设置",
176
180
  "orderType": "订单类型",
177
181
  "padDigit": "位数",
@@ -221,6 +225,7 @@
221
225
  "learnMore": "了解更多"
222
226
  },
223
227
  "serve": "服务",
228
+ "sequenceSettingRules": "不能小于 1 且不能大于 4",
224
229
  "serviceCharge": "服务费",
225
230
  "serviceChargeRule": "* 服务费功能仅适用于POS版本4.0.0或更高版本。",
226
231
  "serviceChargeSublabel": "根据不同的情况,如餐厅,就餐选项,商品,时间段等,自定义规则。",