@feedmepos/mf-order-setting 0.0.93 → 0.0.94

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 (32) hide show
  1. package/dist/{DisplaySystemView-BMRCs7o8.js → DisplaySystemView-Doh1JUoe.js} +3 -3
  2. package/dist/{KioskDevicesView-BCZOqou3.js → KioskDevicesView-DvUq9eFa.js} +1 -1
  3. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-4wFO9co5.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-Ce-CHsOK.js} +3 -3
  4. package/dist/{KioskSettingView-DIvpRwFV.js → KioskSettingView-Ba1sLolg.js} +3 -3
  5. package/dist/{KioskView-w4txC9m2.js → KioskView-CeKSWYbI.js} +5 -5
  6. package/dist/{OrderSettingsView-BPuBA2QC.js → OrderSettingsView-CdxkPS_V.js} +17715 -17601
  7. package/dist/{app-xZAaURng.js → app-BQ0W0_dt.js} +289 -241
  8. package/dist/app.js +1 -1
  9. package/dist/{featureFlag-Cbj0uMaM.js → featureFlag-C4gAe_F4.js} +1 -1
  10. package/dist/frontend/mf-order/src/api/native-app/index.d.ts +2 -0
  11. package/dist/frontend/mf-order/src/app.d.ts +48 -0
  12. package/dist/frontend/mf-order/src/main.d.ts +48 -0
  13. package/dist/frontend/mf-order/src/views/order-settings/components/push-availability.d.ts +13 -0
  14. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  15. package/dist/{index-BAFwfvqv.js → index-BFJ4YEfL.js} +2 -2
  16. package/dist/{index-BxQKdXyN.js → index-CGiJXVU3.js} +1 -1
  17. package/dist/{index-Cipbdi6i.js → index-DSB009Br.js} +1 -1
  18. package/dist/{order.dto-yLICIGDQ.js → order.dto-CUp8zhQC.js} +18 -18
  19. package/dist/package/entity/order-platform/tng/tng-menu.do.d.ts +74 -74
  20. package/package.json +1 -1
  21. package/src/api/native-app/index.ts +26 -0
  22. package/src/api/native-app/native-app.spec.ts +42 -0
  23. package/src/locales/en-US.json +12 -0
  24. package/src/locales/ja-JP.json +12 -0
  25. package/src/locales/th-TH.json +12 -0
  26. package/src/locales/zh-CN.json +12 -0
  27. package/src/views/order-settings/components/NotifyChannelEditor.spec.ts +184 -0
  28. package/src/views/order-settings/components/NotifyChannelEditor.vue +84 -5
  29. package/src/views/order-settings/components/push-availability.spec.ts +59 -0
  30. package/src/views/order-settings/components/push-availability.ts +78 -0
  31. package/src/views/order-settings/queue/QueueSetting.vue +7 -0
  32. package/src/views/order-settings/sms/SmsSetting.vue +11 -0
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as e, x as r, y as o } from "./app-xZAaURng.js";
1
+ import { _ as e, x as r, y as o } from "./app-BQ0W0_dt.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -2,7 +2,7 @@ var le = Object.defineProperty;
2
2
  var ue = (S, c, v) => c in S ? le(S, c, { enumerable: !0, configurable: !0, writable: !0, value: v }) : S[c] = v;
3
3
  var ot = (S, c, v) => ue(S, typeof c != "symbol" ? c + "" : c, v);
4
4
  import { readonly as Pt, ref as Ut } from "vue";
5
- import { c as st } from "./app-xZAaURng.js";
5
+ import { c as st } from "./app-BQ0W0_dt.js";
6
6
  const _e = (S, c) => {
7
7
  const v = S.__vccOpts || S;
8
8
  for (const [d, s] of c)
@@ -0,0 +1,2 @@
1
+ export declare function nativeAppUrl(businessId: string, isDev: boolean): string;
2
+ export declare function getNativeApp(businessId: string, isDev: boolean): Promise<boolean>;
@@ -506,6 +506,18 @@ export declare const i18nMessages: {
506
506
  hint: string;
507
507
  add: string;
508
508
  pushNote: string;
509
+ pushInRoute: string;
510
+ pushAvailability: {
511
+ checking: string;
512
+ requiresNativeApp: string;
513
+ unavailable: string;
514
+ contactSales: string;
515
+ dialogMessage: string;
516
+ retry: string;
517
+ removePush: string;
518
+ removeBeforeSave: string;
519
+ close: string;
520
+ };
509
521
  alongside: string;
510
522
  everyone: string;
511
523
  member: string;
@@ -1669,6 +1681,18 @@ export declare const i18nMessages: {
1669
1681
  hint: string;
1670
1682
  add: string;
1671
1683
  pushNote: string;
1684
+ pushInRoute: string;
1685
+ pushAvailability: {
1686
+ checking: string;
1687
+ requiresNativeApp: string;
1688
+ unavailable: string;
1689
+ contactSales: string;
1690
+ dialogMessage: string;
1691
+ retry: string;
1692
+ removePush: string;
1693
+ removeBeforeSave: string;
1694
+ close: string;
1695
+ };
1672
1696
  alongside: string;
1673
1697
  everyone: string;
1674
1698
  member: string;
@@ -2810,6 +2834,18 @@ export declare const i18nMessages: {
2810
2834
  hint: string;
2811
2835
  add: string;
2812
2836
  pushNote: string;
2837
+ pushInRoute: string;
2838
+ pushAvailability: {
2839
+ checking: string;
2840
+ requiresNativeApp: string;
2841
+ unavailable: string;
2842
+ contactSales: string;
2843
+ dialogMessage: string;
2844
+ retry: string;
2845
+ removePush: string;
2846
+ removeBeforeSave: string;
2847
+ close: string;
2848
+ };
2813
2849
  alongside: string;
2814
2850
  everyone: string;
2815
2851
  member: string;
@@ -3694,6 +3730,18 @@ export declare const i18nMessages: {
3694
3730
  hint: string;
3695
3731
  add: string;
3696
3732
  pushNote: string;
3733
+ pushInRoute: string;
3734
+ pushAvailability: {
3735
+ checking: string;
3736
+ requiresNativeApp: string;
3737
+ unavailable: string;
3738
+ contactSales: string;
3739
+ dialogMessage: string;
3740
+ retry: string;
3741
+ removePush: string;
3742
+ removeBeforeSave: string;
3743
+ close: string;
3744
+ };
3697
3745
  alongside: string;
3698
3746
  everyone: string;
3699
3747
  member: string;
@@ -505,6 +505,18 @@ export declare const i18nMessages: {
505
505
  hint: string;
506
506
  add: string;
507
507
  pushNote: string;
508
+ pushInRoute: string;
509
+ pushAvailability: {
510
+ checking: string;
511
+ requiresNativeApp: string;
512
+ unavailable: string;
513
+ contactSales: string;
514
+ dialogMessage: string;
515
+ retry: string;
516
+ removePush: string;
517
+ removeBeforeSave: string;
518
+ close: string;
519
+ };
508
520
  alongside: string;
509
521
  everyone: string;
510
522
  member: string;
@@ -1668,6 +1680,18 @@ export declare const i18nMessages: {
1668
1680
  hint: string;
1669
1681
  add: string;
1670
1682
  pushNote: string;
1683
+ pushInRoute: string;
1684
+ pushAvailability: {
1685
+ checking: string;
1686
+ requiresNativeApp: string;
1687
+ unavailable: string;
1688
+ contactSales: string;
1689
+ dialogMessage: string;
1690
+ retry: string;
1691
+ removePush: string;
1692
+ removeBeforeSave: string;
1693
+ close: string;
1694
+ };
1671
1695
  alongside: string;
1672
1696
  everyone: string;
1673
1697
  member: string;
@@ -2809,6 +2833,18 @@ export declare const i18nMessages: {
2809
2833
  hint: string;
2810
2834
  add: string;
2811
2835
  pushNote: string;
2836
+ pushInRoute: string;
2837
+ pushAvailability: {
2838
+ checking: string;
2839
+ requiresNativeApp: string;
2840
+ unavailable: string;
2841
+ contactSales: string;
2842
+ dialogMessage: string;
2843
+ retry: string;
2844
+ removePush: string;
2845
+ removeBeforeSave: string;
2846
+ close: string;
2847
+ };
2812
2848
  alongside: string;
2813
2849
  everyone: string;
2814
2850
  member: string;
@@ -3693,6 +3729,18 @@ export declare const i18nMessages: {
3693
3729
  hint: string;
3694
3730
  add: string;
3695
3731
  pushNote: string;
3732
+ pushInRoute: string;
3733
+ pushAvailability: {
3734
+ checking: string;
3735
+ requiresNativeApp: string;
3736
+ unavailable: string;
3737
+ contactSales: string;
3738
+ dialogMessage: string;
3739
+ retry: string;
3740
+ removePush: string;
3741
+ removeBeforeSave: string;
3742
+ close: string;
3743
+ };
3696
3744
  alongside: string;
3697
3745
  everyone: string;
3698
3746
  member: string;
@@ -0,0 +1,13 @@
1
+ import { F_ORDER_NOTIFY_CHANNEL } from '@entity';
2
+ export type PushAvailability = 'checking' | 'native' | 'non-native' | 'failed';
3
+ /**
4
+ * A stored push may not be saved again until the business is known to have a
5
+ * native app. Like Connect, "still checking" and "check failed" block too.
6
+ */
7
+ export declare function pushBlocked(channels: F_ORDER_NOTIFY_CHANNEL[] | null | undefined, availability: PushAvailability): boolean;
8
+ export declare function usePushAvailability(): {
9
+ availability: import("vue").ComputedRef<PushAvailability>;
10
+ retry: () => void;
11
+ };
12
+ /** Tests only: forget every answer. */
13
+ export declare function resetPushAvailability(): void;