@feedmepos/mf-transaction 0.0.6-beta → 0.0.8-beta

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 (35) hide show
  1. package/dist/{app-DvTXMdAl.js → app-CFcSf1rQ.js} +49825 -44990
  2. package/dist/app.js +1 -1
  3. package/dist/apps/mf-transaction/src/api/transaction/index.d.ts +5 -3
  4. package/dist/apps/mf-transaction/src/router/shared.d.ts +0 -1
  5. package/dist/apps/mf-transaction/src/views/receipt/receipt.d.ts +5 -5
  6. package/dist/apps/mf-transaction/tsconfig.app.tsbuildinfo +1 -1
  7. package/dist/{index.es-Yqc0W6vL.js → index.es-BtLt3lQ5.js} +651 -651
  8. package/dist/packages/shared/src/components/dialog/ConfirmActionDialog.vue.d.ts +30 -0
  9. package/dist/packages/shared/src/components/info/TextChip.vue.d.ts +15 -0
  10. package/dist/packages/shared/src/components/layout/FormColumn.vue.d.ts +21 -0
  11. package/dist/packages/shared/src/components/layout/FormItem.vue.d.ts +21 -0
  12. package/dist/packages/shared/src/components/layout/FormRow.vue.d.ts +9 -0
  13. package/dist/packages/shared/src/components/layout/FormSection.vue.d.ts +24 -0
  14. package/dist/packages/shared/src/components/layout/FullScreenForm.vue.d.ts +16 -1
  15. package/dist/packages/shared/src/components/layout/FullWrapper.vue.d.ts +9 -0
  16. package/dist/packages/shared/src/components/layout/Indent.vue.d.ts +9 -0
  17. package/dist/packages/shared/src/components/menu/BottomSheetMenuItem.vue.d.ts +1 -0
  18. package/dist/packages/shared/src/components/menu/ResponsiveContextMenu.vue.d.ts +22 -0
  19. package/dist/packages/shared/src/composable/elementPosition.d.ts +17 -0
  20. package/dist/packages/shared/src/composable/filterSelector.d.ts +1 -1
  21. package/dist/packages/shared/src/helpers/iteration.d.ts +1 -0
  22. package/dist/packages/shared/src/helpers/object.d.ts +1 -1
  23. package/dist/packages/shared/src/types/types.d.ts +5 -0
  24. package/package.json +4 -4
  25. package/dist/apps/mf-transaction/src/components/AppForm.vue.d.ts +0 -41
  26. package/dist/apps/mf-transaction/src/components/CheckboxInput.vue.d.ts +0 -140
  27. package/dist/apps/mf-transaction/src/components/FilterDialog.vue.d.ts +0 -13
  28. package/dist/apps/mf-transaction/src/views/online/OnlineTransaction.vue.d.ts +0 -2
  29. package/dist/apps/mf-transaction/src/views/online/PaymentTable.vue.d.ts +0 -121
  30. package/dist/apps/mf-transaction/src/views/online/SettlementTable.vue.d.ts +0 -66
  31. package/dist/apps/mf-transaction/src/views/online/detail/FmSettlement.vue.d.ts +0 -32
  32. package/dist/apps/mf-transaction/src/views/online/detail/RmsSettlement.vue.d.ts +0 -22
  33. package/dist/apps/mf-transaction/src/views/online/detail/SettlementDetail.vue.d.ts +0 -5
  34. package/dist/apps/mf-transaction/src/views/online/settlement.d.ts +0 -52
  35. package/dist/style.css +0 -1
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as o, r as p } from "./app-DvTXMdAl.js";
1
+ import { a as o, r as p } from "./app-CFcSf1rQ.js";
2
2
  export {
3
3
  o as FmApp,
4
4
  p as routers
@@ -1,15 +1,17 @@
1
- import type { FdoBill } from "@feedmepos/core-dart";
1
+ import { FdtoBill } from '@feedmepos/core/entity';
2
2
  import { type PaymentTransactionWithoutChildrenDtoOutput, RMSSettlementDto, type SettlementDtoOutput } from '@feedmepos/payment-model';
3
3
  import { TransactionStatus } from "@/types/transaction";
4
+ import { type EntityDocument } from "~shared/types/types";
4
5
  export type PaymentTransactionWithoutChildrenWithSeqNumberDtoOutput = PaymentTransactionWithoutChildrenDtoOutput & {
5
6
  seqNumber?: string;
6
7
  };
8
+ export type Bill = FdtoBill & EntityDocument;
7
9
  export declare const transactionApi: {
8
10
  readReceipts(restaurantId: string, { start, end }: {
9
11
  start: string;
10
12
  end: string;
11
- }): Promise<FdoBill[]>;
12
- readReceipt(restaurantId: string, receiptId: string): Promise<FdoBill | undefined>;
13
+ }): Promise<Bill[]>;
14
+ readReceipt(restaurantId: string, receiptId: string): Promise<Bill | undefined>;
13
15
  readRestaurantOnlinePayments(restaurantId: string, dateRange: {
14
16
  start: string;
15
17
  end: string;
@@ -1,4 +1,3 @@
1
1
  import type { RouteRecordRaw } from "vue-router";
2
2
  export declare const RECEIPT = "$transaction-receipt";
3
- export declare const ONLINE_TRANSACTION = "$transaction-online-transaction";
4
3
  export declare const routers: Array<RouteRecordRaw>;
@@ -1,9 +1,9 @@
1
1
  import { Dayjs } from "dayjs";
2
2
  import { type BillVariable, type OrderReceiptTemplateVariable } from "@feedmepos/print/dist/core/src/modules/printer/templateVariable";
3
- import { type FdoBill } from "@feedmepos/core-dart";
4
3
  import type { ExtendedRestaurant } from "@/types/restaurant";
5
4
  import type { ReceiptDetailViewer } from "@/views/receipt/form";
6
- export interface Receipt extends FdoBill {
5
+ import { type Bill } from "@/api/transaction";
6
+ export interface Receipt extends Bill {
7
7
  createdAt: string;
8
8
  createdBy: string;
9
9
  _completedAt: string;
@@ -52,9 +52,9 @@ interface ReceiptInfo {
52
52
  name: string;
53
53
  value: string;
54
54
  }
55
- export declare function billToReceipt(bill: FdoBill, restaurant: ExtendedRestaurant, refundedFromBill?: FdoBill): Receipt;
56
- export declare function transformTemplateVariable(bill: FdoBill, restaurant: ExtendedRestaurant): OrderReceiptTemplateVariable;
57
- export declare function receiptStatus(bill: FdoBill, refundedFromBill?: FdoBill): {
55
+ export declare function billToReceipt(bill: Bill, restaurant: ExtendedRestaurant, refundedFromBill?: Bill): Receipt;
56
+ export declare function transformTemplateVariable(bill: Bill, restaurant: ExtendedRestaurant): OrderReceiptTemplateVariable;
57
+ export declare function receiptStatus(bill: Bill, refundedFromBill?: Bill): {
58
58
  label: string;
59
59
  icon: {
60
60
  name: string;