@feedmepos/mf-mdm 1.7.2-beta.279 → 1.7.2

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.
@@ -17,7 +17,7 @@ export declare const deviceApi: {
17
17
  getDevices(restaurantId: string): Promise<FdoDevice[]>;
18
18
  getRemoteSupport(restaurantId: string): Promise<FdtoRemoteSupport[]>;
19
19
  updateRemoteSupport(restaurantId: string, dto: FdtoRemoteSupport[]): Promise<FdtoRemoteSupport[]>;
20
- getDevicesFromRestaurants(forceRefresh?: boolean): Promise<FdoDevice[]>;
20
+ getDevicesFromRestaurants(forceRefresh?: boolean, includeVersionStatus?: boolean): Promise<FdoDevice[]>;
21
21
  forceSync(): Promise<any>;
22
22
  getPrinters(restaurantId: string): Promise<FdoPrinterInfo[]>;
23
23
  createSubDevice(dto: CreateSubDeviceDto): Promise<FdoDevice>;
package/dist/app.d.ts CHANGED
@@ -296,6 +296,7 @@ export declare const i18nMessages: {
296
296
  success: string;
297
297
  error: string;
298
298
  empty: string;
299
+ inProgress: string;
299
300
  };
300
301
  version: {
301
302
  latest: string;
@@ -627,6 +628,7 @@ export declare const i18nMessages: {
627
628
  success: string;
628
629
  error: string;
629
630
  empty: string;
631
+ inProgress: string;
630
632
  };
631
633
  version: {
632
634
  latest: string;
@@ -956,6 +958,7 @@ export declare const i18nMessages: {
956
958
  success: string;
957
959
  error: string;
958
960
  empty: string;
961
+ inProgress: string;
959
962
  };
960
963
  version: {
961
964
  latest: string;
@@ -1287,6 +1290,7 @@ export declare const i18nMessages: {
1287
1290
  success: string;
1288
1291
  error: string;
1289
1292
  empty: string;
1293
+ inProgress: string;
1290
1294
  };
1291
1295
  version: {
1292
1296
  latest: string;
package/dist/app.js CHANGED
@@ -293,7 +293,8 @@ const r = {
293
293
  export: {
294
294
  success: "Devices exported successfully! ",
295
295
  error: "Failed to export devices: {error} ",
296
- empty: "No devices to export. Please adjust your filters."
296
+ empty: "No devices to export. Please adjust your filters.",
297
+ inProgress: "Export in progress"
297
298
  },
298
299
  version: {
299
300
  latest: "Latest",
@@ -621,7 +622,8 @@ const r = {
621
622
  export: {
622
623
  success: "ส่งออกอุปกรณ์สำเร็จแล้ว! ",
623
624
  error: "ไม่สามารถส่งออกอุปกรณ์: {error} ",
624
- empty: "ไม่มีอุปกรณ์ให้ส่งออก โปรดปรับตัวกรองของคุณ"
625
+ empty: "ไม่มีอุปกรณ์ให้ส่งออก โปรดปรับตัวกรองของคุณ",
626
+ inProgress: "กำลังส่งออกอุปกรณ์..."
625
627
  },
626
628
  version: {
627
629
  latest: "เวอร์ชันล่าสุด",
@@ -951,7 +953,8 @@ const r = {
951
953
  export: {
952
954
  success: "设备导出成功!",
953
955
  error: "导出设备失败:{error}",
954
- empty: "没有设备可导出。请调整您的筛选条件。"
956
+ empty: "没有设备可导出。请调整您的筛选条件。",
957
+ inProgress: "正在导出设备..."
955
958
  },
956
959
  version: {
957
960
  latest: "最新版本",
@@ -1281,7 +1284,8 @@ const r = {
1281
1284
  export: {
1282
1285
  success: "設備導出成功!",
1283
1286
  error: "導出設備失敗:{error}",
1284
- empty: "沒有設備可導出。請調整您的篩選條件。"
1287
+ empty: "沒有設備可導出。請調整您的篩選條件。",
1288
+ inProgress: "正在導出設備..."
1285
1289
  },
1286
1290
  version: {
1287
1291
  latest: "最新版本",
@@ -1320,14 +1324,14 @@ const r = {
1320
1324
  {
1321
1325
  path: "/",
1322
1326
  name: "$devices",
1323
- component: e(() => import("./DeviceList-981909fc.js"))
1327
+ component: e(() => import("./DeviceList-859438f3.js"))
1324
1328
  }
1325
1329
  ], u = {
1326
1330
  "en-US": t,
1327
1331
  "zh-CN": n,
1328
1332
  "th-TH": a,
1329
1333
  "zh-Hant": d
1330
- }, p = e(() => import("./App-d2caad7c.js"));
1334
+ }, p = e(() => import("./App-f948fe62.js"));
1331
1335
  export {
1332
1336
  p as FmApp,
1333
1337
  u as i18nMessages,
@@ -13276,19 +13276,20 @@ const Ce = () => $i("mdm"), N_ = () => {
13276
13276
  async updateRemoteSupport(e, n) {
13277
13277
  return Fe(await Ce().put(`restaurant/${e}/remote-connection`, n));
13278
13278
  },
13279
- async getDevicesFromRestaurants(e = !1) {
13280
- const n = Ji().restaurants.value, t = n.map((o) => o._id), i = new Map(n.filter((o) => o.machineId).map((o) => [o._id, o.machineId])), r = await Fe(
13279
+ async getDevicesFromRestaurants(e = !1, n = !1) {
13280
+ const t = Ji().restaurants.value, i = t.map((a) => a._id), r = new Map(t.filter((a) => a.machineId).map((a) => [a._id, a.machineId])), o = await Fe(
13281
13281
  await Ce().post("restaurant/devices", {
13282
- restaurantIds: t,
13283
- forceRefresh: e
13282
+ restaurantIds: i,
13283
+ forceRefresh: e,
13284
+ includeVersionStatus: n
13284
13285
  })
13285
13286
  );
13286
- for (const o of r)
13287
- if (o.type === ya.Enum.MAIN && o.restaurantId && !o.machineId) {
13288
- const a = i.get(o.restaurantId);
13289
- a && (o.machineId = a);
13287
+ for (const a of o)
13288
+ if (a.type === ya.Enum.MAIN && a.restaurantId && !a.machineId) {
13289
+ const s = r.get(a.restaurantId);
13290
+ s && (a.machineId = s);
13290
13291
  }
13291
- return r;
13292
+ return o;
13292
13293
  },
13293
13294
  async forceSync() {
13294
13295
  const n = Ji().restaurants.value.map((t) => t._id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-mdm",
3
- "version": "1.7.2-beta.279",
3
+ "version": "1.7.2",
4
4
  "files": [
5
5
  "dist"
6
6
  ],