@feedmepos/mf-settings 0.0.57 → 0.0.59-beta.1

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 (30) hide show
  1. package/dist/{App-5ff3656e.js → App-adfff27f.js} +3 -3
  2. package/dist/{Business-3c38b9d5.js → Business-24c55416.js} +158 -150
  3. package/dist/{CreateBusiness-fa4096f9.js → CreateBusiness-fbcba71f.js} +12 -11
  4. package/dist/{FoodCourt-0a28a67f.js → FoodCourt-677797ed.js} +13 -11
  5. package/dist/ReasonTemplate-0e99fb52.js +2234 -0
  6. package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-08a69f88.js +88 -0
  7. package/dist/{Tagging-14ec1f75.js → Tagging-78440d2f.js} +8 -7
  8. package/dist/_plugin-vue_export-helper-dad06003.js +9 -0
  9. package/dist/{app-c20e051f.js → app-14f51ab7.js} +320 -66
  10. package/dist/app.js +4 -3
  11. package/dist/apps/mf-settings/src/View/ReasonTemplate.vue.d.ts +2 -0
  12. package/dist/apps/mf-settings/src/api/index.d.ts +2 -0
  13. package/dist/apps/mf-settings/src/api/restaurant.d.ts +1 -0
  14. package/dist/apps/mf-settings/src/app.d.ts +123 -0
  15. package/dist/apps/mf-settings/src/components/reason/ReasonTemplateForm.vue.d.ts +28 -0
  16. package/dist/apps/mf-settings/src/types/reasonTemplate.d.ts +9 -0
  17. package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
  18. package/dist/{business-ad1b9825.js → business-a1966413.js} +1 -1
  19. package/dist/createForm-d3b97d2e.js +50 -0
  20. package/dist/dayjs.min-2edeb0fb.js +310 -0
  21. package/dist/index-33f7f731.js +17967 -0
  22. package/dist/{index-759f69a1.js → index-cc4114ab.js} +1721 -1731
  23. package/dist/{index-71e4b8aa.js → index-d43d45c9.js} +796 -781
  24. package/dist/object-27ce045b.js +16 -0
  25. package/dist/rules-2bee6632.js +6 -0
  26. package/package.json +3 -3
  27. package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-030a97dd.js +0 -395
  28. package/dist/index-e68421c3.js +0 -18030
  29. package/dist/object-8ac0c0d8.js +0 -63
  30. package/dist/rules-c9fa22f8.js +0 -13
@@ -12,4 +12,5 @@ export declare const restaurantApi: {
12
12
  createRestaurant(data: Partial<FdoRestaurant>): Promise<ExtendedRestaurant>;
13
13
  updateRestaurantProfile(restaurantId: string, profile: FdoProfile): Promise<ExtendedRestaurant>;
14
14
  updateRestaurantAttributes(restaurantId: string, attributes: any): Promise<FdoRestaurant>;
15
+ createRestaurantFeature(restaurantId: string): Promise<boolean>;
15
16
  };
@@ -587,6 +587,67 @@ export declare const i18nMessages: {
587
587
  title: string;
588
588
  subtitle: string;
589
589
  };
590
+ reasonTemplate: {
591
+ title: string;
592
+ addTemplate: string;
593
+ actions: {
594
+ void: string;
595
+ refund: string;
596
+ rejectOrder: string;
597
+ };
598
+ table: {
599
+ action: string;
600
+ reasons: string;
601
+ compulsory: string;
602
+ allowOther: string;
603
+ };
604
+ emptyState: {
605
+ title: string;
606
+ description: string;
607
+ };
608
+ form: {
609
+ title: {
610
+ add: string;
611
+ edit: string;
612
+ };
613
+ message: {
614
+ created: string;
615
+ updated: string;
616
+ };
617
+ sections: {
618
+ basic: {
619
+ title: string;
620
+ action: {
621
+ label: string;
622
+ };
623
+ newReason: {
624
+ label: string;
625
+ placeholder: string;
626
+ };
627
+ reasons: {
628
+ label: string;
629
+ min_required: string;
630
+ name_required: string;
631
+ };
632
+ };
633
+ options: {
634
+ title: string;
635
+ compulsory: {
636
+ label: string;
637
+ sublabel: string;
638
+ };
639
+ allowOther: {
640
+ label: string;
641
+ sublabel: string;
642
+ };
643
+ };
644
+ };
645
+ };
646
+ delete: {
647
+ title: string;
648
+ message: string;
649
+ };
650
+ };
590
651
  };
591
652
  };
592
653
  "zh-CN": {
@@ -1178,8 +1239,70 @@ export declare const i18nMessages: {
1178
1239
  title: string;
1179
1240
  subtitle: string;
1180
1241
  };
1242
+ reasonTemplate: {
1243
+ title: string;
1244
+ addTemplate: string;
1245
+ actions: {
1246
+ void: string;
1247
+ refund: string;
1248
+ rejectOrder: string;
1249
+ };
1250
+ table: {
1251
+ action: string;
1252
+ reasons: string;
1253
+ compulsory: string;
1254
+ allowOther: string;
1255
+ };
1256
+ emptyState: {
1257
+ title: string;
1258
+ description: string;
1259
+ };
1260
+ form: {
1261
+ title: {
1262
+ add: string;
1263
+ edit: string;
1264
+ };
1265
+ message: {
1266
+ created: string;
1267
+ updated: string;
1268
+ };
1269
+ sections: {
1270
+ basic: {
1271
+ title: string;
1272
+ action: {
1273
+ label: string;
1274
+ };
1275
+ newReason: {
1276
+ label: string;
1277
+ placeholder: string;
1278
+ };
1279
+ reasons: {
1280
+ label: string;
1281
+ min_required: string;
1282
+ name_required: string;
1283
+ };
1284
+ };
1285
+ options: {
1286
+ title: string;
1287
+ compulsory: {
1288
+ label: string;
1289
+ sublabel: string;
1290
+ };
1291
+ allowOther: {
1292
+ label: string;
1293
+ sublabel: string;
1294
+ };
1295
+ };
1296
+ };
1297
+ };
1298
+ delete: {
1299
+ title: string;
1300
+ message: string;
1301
+ };
1302
+ };
1181
1303
  };
1182
1304
  };
1183
1305
  "th-TH": any;
1184
1306
  "zh-Hant": any;
1185
1307
  };
1308
+ export declare const ReasonTemplateView: any;
@@ -0,0 +1,28 @@
1
+ import { type FdoReasonTemplate } from "@feedmepos/core/entity";
2
+ interface Props {
3
+ initialValue?: FdoReasonTemplate;
4
+ onSave: (template: FdoReasonTemplate) => Promise<void>;
5
+ }
6
+ declare function trigger(): void;
7
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {
8
+ trigger: typeof trigger;
9
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
10
+ trigger?(_: {
11
+ trigger: typeof trigger;
12
+ }): any;
13
+ }>;
14
+ export default _default;
15
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
+ type __VLS_TypePropsToRuntimeProps<T> = {
17
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
18
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
+ } : {
20
+ type: import('vue').PropType<T[K]>;
21
+ required: true;
22
+ };
23
+ };
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,9 @@
1
+ import { FdoReasonTemplate } from "@feedmepos/core/entity";
2
+ export declare enum F_REASON_TEMPLATE_ACTION {
3
+ VOID = "VOID",
4
+ REFUND = "REFUND",
5
+ REJECT_ORDER = "REJECT_ORDER"
6
+ }
7
+ export interface FEReasonTemplate extends FdoReasonTemplate {
8
+ id: string;
9
+ }