@feedmepos/mf-transaction 0.0.6-beta → 0.0.7-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 (23) hide show
  1. package/dist/{app-DvTXMdAl.js → app-qQeAwVLL.js} +88016 -64671
  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/views/receipt/receipt.d.ts +5 -5
  5. package/dist/apps/mf-transaction/tsconfig.app.tsbuildinfo +1 -1
  6. package/dist/{index.es-Yqc0W6vL.js → index.es-Dh44S0bc.js} +686 -686
  7. package/dist/packages/shared/src/components/dialog/ConfirmActionDialog.vue.d.ts +30 -0
  8. package/dist/packages/shared/src/components/info/TextChip.vue.d.ts +15 -0
  9. package/dist/packages/shared/src/components/layout/FormColumn.vue.d.ts +21 -0
  10. package/dist/packages/shared/src/components/layout/FormItem.vue.d.ts +21 -0
  11. package/dist/packages/shared/src/components/layout/FormRow.vue.d.ts +9 -0
  12. package/dist/packages/shared/src/components/layout/FormSection.vue.d.ts +24 -0
  13. package/dist/packages/shared/src/components/layout/FullScreenForm.vue.d.ts +16 -1
  14. package/dist/packages/shared/src/components/layout/FullWrapper.vue.d.ts +9 -0
  15. package/dist/packages/shared/src/components/layout/Indent.vue.d.ts +9 -0
  16. package/dist/packages/shared/src/components/menu/BottomSheetMenuItem.vue.d.ts +1 -0
  17. package/dist/packages/shared/src/components/menu/ResponsiveContextMenu.vue.d.ts +22 -0
  18. package/dist/packages/shared/src/composable/elementPosition.d.ts +17 -0
  19. package/dist/packages/shared/src/composable/filterSelector.d.ts +1 -1
  20. package/dist/packages/shared/src/helpers/iteration.d.ts +1 -0
  21. package/dist/packages/shared/src/helpers/object.d.ts +1 -1
  22. package/dist/packages/shared/src/types/types.d.ts +5 -0
  23. package/package.json +4 -4
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-qQeAwVLL.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,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;