@feedmepos/mf-e-invoice 0.0.65 → 0.0.68

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 (39) hide show
  1. package/dist/{EInvoice-B9lJ3ijP.js → EInvoice-vYf-dUfJ.js} +2100 -2086
  2. package/dist/api/index.d.ts +1 -2
  3. package/dist/app.js +1 -1
  4. package/dist/store/index.d.ts +457 -445
  5. package/dist/tsconfig.app.tsbuildinfo +1 -1
  6. package/dist/type/index.d.ts +2 -0
  7. package/dist/type/malaysia/components/accounting-party.dto.d.ts +625 -0
  8. package/dist/type/malaysia/components/allowance.dto.d.ts +33 -0
  9. package/dist/type/malaysia/components/billing.dto.d.ts +198 -0
  10. package/dist/type/malaysia/components/invoice-line.dto.d.ts +601 -0
  11. package/dist/type/malaysia/components/payment.dto.d.ts +38 -0
  12. package/dist/type/malaysia/components/signature.dto.d.ts +8988 -0
  13. package/dist/type/malaysia/components/tax.dto.d.ts +410 -0
  14. package/dist/type/malaysia/e-invoice-profile.do.d.ts +1756 -0
  15. package/dist/type/malaysia/e-invoice.do.d.ts +4808 -0
  16. package/dist/type/malaysia/e-invoice.dto.d.ts +5146 -0
  17. package/dist/type/malaysia/e-invoice.enum.d.ts +5 -0
  18. package/dist/type/malaysia/index.d.ts +11 -0
  19. package/dist/type/profile/e-invoice-base-profile.do.d.ts +136 -0
  20. package/dist/type/profile/e-invoice-profile.enum.d.ts +7 -0
  21. package/dist/type/profile/e-invoice.enum.d.ts +9 -0
  22. package/dist/type/report-invoice.dto.d.ts +123 -0
  23. package/dist/type/thailand/e-invoice-profile.do.d.ts +155 -128
  24. package/dist/type/thailand/e-invoice.do.d.ts +120 -110
  25. package/dist/type/thailand/e-invoice.dto.d.ts +76 -76
  26. package/dist/type/vietnam/e-invoice-profile.do.d.ts +108 -108
  27. package/dist/type/vietnam/e-invoice.do.d.ts +56 -56
  28. package/dist/type/vietnam/e-invoice.dto.d.ts +13 -13
  29. package/dist/types.d.ts +2 -3
  30. package/dist/views/EInvoiceCopyDialog.vue.d.ts +3 -56
  31. package/dist/views/manager/malaysia/MalaysiaItemSettingsDialog.vue.d.ts +1 -1
  32. package/dist/views/manager/malaysia/MalaysiaProfileDialog.vue.d.ts +1 -1
  33. package/dist/views/manager/malaysia/data.d.ts +2 -1
  34. package/dist/views/manager/malaysia/malaysia.d.ts +2 -1
  35. package/dist/views/manager/manager.d.ts +2 -2
  36. package/dist/views/manager/thailand/thailand.d.ts +2 -2
  37. package/dist/views/manager/vietnam/VietnamItemSettingsDialog.vue.d.ts +2 -2
  38. package/dist/views/submission.d.ts +2 -1
  39. package/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ import { z } from 'zod';
2
+ export declare const F_EINVOICE_PARTY_ID_TYPE: z.ZodEnum<["NRIC", "PASSPORT", "BRN", "ARMY", "TIN", "SST"]>;
3
+ export declare const F_EINVOICE_BILLING_FREQUENCY: z.ZodEnum<["Daily", "Weekly", "Biweekly", "Monthly", "Bimonthly", "Quarterly", "Half-yearly", "Yearly", "Others", "NA"]>;
4
+ export type F_EINVOICE_BILLING_FREQUENCY = z.infer<typeof F_EINVOICE_BILLING_FREQUENCY>;
5
+ export type F_EINVOICE_PARTY_ID_TYPE = z.infer<typeof F_EINVOICE_PARTY_ID_TYPE>;
@@ -0,0 +1,11 @@
1
+ export * from "./components/accounting-party.dto";
2
+ export * from "./components/allowance.dto";
3
+ export * from "./components/billing.dto";
4
+ export * from "./components/invoice-line.dto";
5
+ export * from "./components/payment.dto";
6
+ export * from "./components/signature.dto";
7
+ export * from "./components/tax.dto";
8
+ export * from "./e-invoice.dto";
9
+ export * from "./e-invoice.enum";
10
+ export * from "./e-invoice-profile.do";
11
+ export * from "./e-invoice.do";
@@ -0,0 +1,136 @@
1
+ import { z } from "zod";
2
+ export declare const FdoEInvoiceCustomerBaseProfile: z.ZodObject<{
3
+ _id: z.ZodEffects<z.ZodString, string, string>;
4
+ type: z.ZodEnum<["individual", "company"]>;
5
+ nickname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6
+ name: z.ZodString;
7
+ phoneNumber: z.ZodString;
8
+ address: z.ZodObject<{
9
+ line1: z.ZodString;
10
+ line2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
11
+ state: z.ZodString;
12
+ city: z.ZodString;
13
+ postcode: z.ZodString;
14
+ country: z.ZodString;
15
+ coordinates: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ coordinates?: number[] | null | undefined;
18
+ line2?: string | null | undefined;
19
+ state: string;
20
+ country: string;
21
+ line1: string;
22
+ city: string;
23
+ postcode: string;
24
+ }, {
25
+ coordinates?: number[] | null | undefined;
26
+ line2?: string | null | undefined;
27
+ state: string;
28
+ country: string;
29
+ line1: string;
30
+ city: string;
31
+ postcode: string;
32
+ }>;
33
+ userId: z.ZodString;
34
+ }, "strip", z.ZodTypeAny, {
35
+ nickname?: string | null | undefined;
36
+ type: "individual" | "company";
37
+ name: string;
38
+ _id: string;
39
+ phoneNumber: string;
40
+ address: {
41
+ coordinates?: number[] | null | undefined;
42
+ line2?: string | null | undefined;
43
+ state: string;
44
+ country: string;
45
+ line1: string;
46
+ city: string;
47
+ postcode: string;
48
+ };
49
+ userId: string;
50
+ }, {
51
+ nickname?: string | null | undefined;
52
+ type: "individual" | "company";
53
+ name: string;
54
+ _id: string;
55
+ phoneNumber: string;
56
+ address: {
57
+ coordinates?: number[] | null | undefined;
58
+ line2?: string | null | undefined;
59
+ state: string;
60
+ country: string;
61
+ line1: string;
62
+ city: string;
63
+ postcode: string;
64
+ };
65
+ userId: string;
66
+ }>;
67
+ export declare const FdoEInvoiceMerchantBaseProfile: z.ZodObject<{
68
+ _id: z.ZodEffects<z.ZodString, string, string>;
69
+ type: z.ZodEnum<["restaurant", "marketing"]>;
70
+ businessId: z.ZodString;
71
+ regNo: z.ZodString;
72
+ tinNo: z.ZodString;
73
+ name: z.ZodString;
74
+ address: z.ZodObject<{
75
+ line1: z.ZodString;
76
+ line2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
77
+ state: z.ZodString;
78
+ city: z.ZodString;
79
+ postcode: z.ZodString;
80
+ country: z.ZodString;
81
+ coordinates: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ coordinates?: number[] | null | undefined;
84
+ line2?: string | null | undefined;
85
+ state: string;
86
+ country: string;
87
+ line1: string;
88
+ city: string;
89
+ postcode: string;
90
+ }, {
91
+ coordinates?: number[] | null | undefined;
92
+ line2?: string | null | undefined;
93
+ state: string;
94
+ country: string;
95
+ line1: string;
96
+ city: string;
97
+ postcode: string;
98
+ }>;
99
+ phoneNo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ phoneNo?: string | null | undefined;
102
+ type: "restaurant" | "marketing";
103
+ name: string;
104
+ _id: string;
105
+ address: {
106
+ coordinates?: number[] | null | undefined;
107
+ line2?: string | null | undefined;
108
+ state: string;
109
+ country: string;
110
+ line1: string;
111
+ city: string;
112
+ postcode: string;
113
+ };
114
+ businessId: string;
115
+ regNo: string;
116
+ tinNo: string;
117
+ }, {
118
+ phoneNo?: string | null | undefined;
119
+ type: "restaurant" | "marketing";
120
+ name: string;
121
+ _id: string;
122
+ address: {
123
+ coordinates?: number[] | null | undefined;
124
+ line2?: string | null | undefined;
125
+ state: string;
126
+ country: string;
127
+ line1: string;
128
+ city: string;
129
+ postcode: string;
130
+ };
131
+ businessId: string;
132
+ regNo: string;
133
+ tinNo: string;
134
+ }>;
135
+ export type FdoEInvoiceCustomerBaseProfile = z.infer<typeof FdoEInvoiceCustomerBaseProfile>;
136
+ export type FdoEInvoiceMerchantBaseProfile = z.infer<typeof FdoEInvoiceMerchantBaseProfile>;
@@ -0,0 +1,7 @@
1
+ import { z } from "zod";
2
+ export declare const F_E_INVOICE_PROFILE_TYPE: z.ZodEnum<["individual", "company"]>;
3
+ export declare const F_E_INVOICE_ID_TYPE: z.ZodEnum<["ic", "army", "passport"]>;
4
+ export declare const F_E_INVOICE_MERCHANT_TYPE: z.ZodEnum<["restaurant", "marketing"]>;
5
+ export type F_E_INVOICE_PROFILE_TYPE = z.infer<typeof F_E_INVOICE_PROFILE_TYPE>;
6
+ export type F_E_INVOICE_ID_TYPE = z.infer<typeof F_E_INVOICE_ID_TYPE>;
7
+ export type F_E_INVOICE_MERCHANT_TYPE = z.infer<typeof F_E_INVOICE_MERCHANT_TYPE>;
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ export declare const F_EINVOICE_STATUS: z.ZodEnum<["Submitted", "Valid", "Invalid", "Cancelled"]>;
3
+ export declare const F_EINVOICE_SUBMISSION_STATUS: z.ZodEnum<["InProgress", "Valid", "PartiallyValid", "Invalid"]>;
4
+ export declare const F_E_INVOICE_DOC_TYPE: z.ZodEnum<["Invoice", "Credit Note", "Debit Note", "Refund Note"]>;
5
+ export declare const F_EINVOICE_TYPE: z.ZodEnum<["Individual", "Consolidated"]>;
6
+ export type F_EINVOICE_STATUS = z.infer<typeof F_EINVOICE_STATUS>;
7
+ export type F_EINVOICE_SUBMISSION_STATUS = z.infer<typeof F_EINVOICE_SUBMISSION_STATUS>;
8
+ export type F_E_INVOICE_DOC_TYPE = z.infer<typeof F_E_INVOICE_DOC_TYPE>;
9
+ export type F_EINVOICE_TYPE = z.infer<typeof F_EINVOICE_TYPE>;
@@ -0,0 +1,123 @@
1
+ export interface IFdtoInvoice {
2
+ id: string;
3
+ no: string;
4
+ refNo: string;
5
+ type: InvoiceType;
6
+ orderType: string | null;
7
+ source: string | null;
8
+ businessId: string;
9
+ restaurantId: string;
10
+ createdAt: string;
11
+ completedAt: string;
12
+ status: BillStatus;
13
+ items: IFdtoItem[];
14
+ refundFrom: string;
15
+ isRefund: boolean;
16
+ subtotal: number;
17
+ discounts: IFdtoDiscount[];
18
+ subtotalBeforeTax: number;
19
+ fees: IFdtoFee[];
20
+ taxes: IFdtoTax[];
21
+ rounding: number;
22
+ nett: number;
23
+ payments: IFdtoPayment[];
24
+ credit: IFdtoInvoiceCredit;
25
+ }
26
+ interface IFdtoInvoiceCredit {
27
+ normal: number;
28
+ free: number;
29
+ }
30
+ export declare enum InvoiceType {
31
+ bill = "BILL",
32
+ memberStorePurcase = "MEMBER_STORE_PURCHASE"
33
+ }
34
+ export declare enum BillStatus {
35
+ draft = "DRAFT",
36
+ completed = "COMPLETED",
37
+ voided = "VOIDED",
38
+ refunded = "REFUNDED"
39
+ }
40
+ export declare enum ItemStatus {
41
+ draft = "DRAFT",
42
+ sent = "SENT",
43
+ voided = "VOIDED",
44
+ refunded = "REFUNDED"
45
+ }
46
+ export declare enum DiscountType {
47
+ bill = "BILL",
48
+ item = "ITEM",
49
+ all = "ALL"
50
+ }
51
+ export interface IFdtoDiscount {
52
+ type: DiscountType;
53
+ amount: number;
54
+ }
55
+ export interface IFdtoItem {
56
+ id: string;
57
+ itemId: string;
58
+ createdAt: string;
59
+ status: ItemStatus;
60
+ name: string;
61
+ code: string;
62
+ category: string;
63
+ variantName: string;
64
+ isRefund: boolean;
65
+ quantity: number;
66
+ unitPrice: number;
67
+ subtotal: number;
68
+ discounts: IFdtoDiscount[];
69
+ subtotalBeforeTax: number;
70
+ fees: IFdtoFee[];
71
+ taxes: IFdtoTax[];
72
+ nett: number;
73
+ customAttributes?: {
74
+ [key: string]: string;
75
+ };
76
+ }
77
+ export declare enum ChargeType {
78
+ percentage = "PERCENTAGE",
79
+ amount = "AMOUNT"
80
+ }
81
+ interface BaseCharge {
82
+ type: ChargeType;
83
+ name: string;
84
+ amount: number;
85
+ }
86
+ export interface PercentageCharge extends BaseCharge {
87
+ type: ChargeType.percentage;
88
+ chargeableAmount: number;
89
+ percentage: number;
90
+ amount: number;
91
+ }
92
+ interface AmountCharge extends BaseCharge {
93
+ type: ChargeType.amount;
94
+ amount: number;
95
+ }
96
+ /**
97
+ * taxable fee:
98
+ * in house delivery fee
99
+ *
100
+ * nontaxable fee:
101
+ * grabfood extra fee
102
+ * service fee
103
+ */
104
+ export type IFdtoFee = (PercentageCharge | AmountCharge) & {
105
+ taxable: boolean;
106
+ code: FeeCode;
107
+ };
108
+ export declare enum FeeCode {
109
+ serviceCharge = "SERVICE_CHARGE",
110
+ inHouseDeliveryFee = "IN_HOUSE_DELIVERY_FEE",
111
+ otherCharge = "OTHER_CHARGE"
112
+ }
113
+ export interface IFdtoTax extends PercentageCharge {
114
+ code: string;
115
+ }
116
+ export interface IFdtoPayment {
117
+ name: string;
118
+ createdAt: string;
119
+ amount: number;
120
+ issuer: string | null;
121
+ variant: string | null;
122
+ }
123
+ export {};