@feedmepos/mf-e-invoice 0.0.63 → 0.0.65-prod
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.
- package/dist/{EInvoice-B00MzsLV.js → EInvoice-DTvyTdKg.js} +3139 -3049
- package/dist/api/index.d.ts +5 -2
- package/dist/app.js +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/type/export.d.ts +22 -0
- package/dist/type/index.d.ts +3 -2
- package/dist/views/manager/malaysia/malaysia.d.ts +4 -0
- package/dist/views/manager/malaysia/submission.d.ts +1 -0
- package/dist/views/manager/manager.d.ts +2 -2
- package/dist/views/manager/thailand/submission.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type Prev = [never, 0, 1, 2, 3, 4];
|
|
2
|
+
type DeepKeyOf<T, D extends number = 4> = [D] extends [never] ? never : T extends object ? {
|
|
3
|
+
[K in keyof T & string]: K | (NonNullable<T[K]> extends object ? `${K}.${DeepKeyOf<NonNullable<T[K]>, Prev[D]>}` : never);
|
|
4
|
+
}[keyof T & string] : never;
|
|
5
|
+
type AccessorColumn<T> = {
|
|
6
|
+
type: "accessor";
|
|
7
|
+
accessorKey: DeepKeyOf<T>;
|
|
8
|
+
header: string;
|
|
9
|
+
dateFormat?: string;
|
|
10
|
+
fallbackValue?: string;
|
|
11
|
+
};
|
|
12
|
+
export type ExportColumn<T> = AccessorColumn<T>;
|
|
13
|
+
export interface IFdtoInvoiceExportBody<T> {
|
|
14
|
+
data: T[];
|
|
15
|
+
type: "pdf" | "excel";
|
|
16
|
+
columns: ExportColumn<T>[];
|
|
17
|
+
title?: string;
|
|
18
|
+
subTitle?: string;
|
|
19
|
+
metaData?: string[];
|
|
20
|
+
orientation: "portrait" | "landscape";
|
|
21
|
+
}
|
|
22
|
+
export {};
|
package/dist/type/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./thailand";
|
|
2
|
+
export * from "./vietnam";
|
|
3
|
+
export * from "./export";
|
|
@@ -12,6 +12,10 @@ declare class MalaysiaManager extends EInvoiceManager {
|
|
|
12
12
|
};
|
|
13
13
|
formatSubmission(submission: FdoMyEInvoiceSubmission): Submission;
|
|
14
14
|
sortSubmissions(submissions: AnyEInvoiceSubmission[]): AnyEInvoiceSubmission[];
|
|
15
|
+
exportSubmissions(submissions: FdoMyEInvoiceSubmission[], dateRange: {
|
|
16
|
+
startDate: string;
|
|
17
|
+
endDate: string;
|
|
18
|
+
}): void;
|
|
15
19
|
initRestaurantProfile(restaurant: FdoRestaurant): FdoMyEInvoiceRestaurantProfile;
|
|
16
20
|
initMarketingProfile(businessId: string, store?: FdoStoreOption): FdoMyEInvoiceMarketingProfile;
|
|
17
21
|
}
|
|
@@ -2,4 +2,5 @@ import { FdoMyEInvoiceSubmissionDoc, type FdoMyEInvoiceSubmission } from "@feedm
|
|
|
2
2
|
import { type Submission, type SubmissionDocument } from "../manager";
|
|
3
3
|
export declare function formatMalaysiaSubmission(submission: FdoMyEInvoiceSubmission): Submission;
|
|
4
4
|
export declare function formatDocument(doc: FdoMyEInvoiceSubmissionDoc): SubmissionDocument;
|
|
5
|
+
export declare function convertAllToCSV(submissions: Submission[]): string;
|
|
5
6
|
export declare function convertToCSV(submission: Submission): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AnyEInvoiceSubmission } from "@/api";
|
|
2
|
-
import type { FdoVnEInvoiceSubmission } from "@/type";
|
|
3
|
-
import type { FdoMyEInvoiceSubmission, FdoRestaurant, FdoStoreOption
|
|
2
|
+
import type { FdoThEInvoiceSubmission, FdoVnEInvoiceSubmission } from "@/type";
|
|
3
|
+
import type { FdoMyEInvoiceSubmission, FdoRestaurant, FdoStoreOption } from "@feedmepos/core/entity";
|
|
4
4
|
import type { RendererElement, RendererNode, VNode } from "vue";
|
|
5
5
|
export type Field = {
|
|
6
6
|
title: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type FdoThEInvoiceSubmission } from "@feedmepos/core/entity";
|
|
2
1
|
import { type Submission, type SubmissionDocument } from "../manager";
|
|
2
|
+
import type { FdoThEInvoiceSubmission } from "@/type";
|
|
3
3
|
export declare function formatThailandSubmission(submission: FdoThEInvoiceSubmission): Submission;
|
|
4
4
|
export declare function exportThailandSubmission(submissions: FdoThEInvoiceSubmission[], dateRange: {
|
|
5
5
|
startDate: string;
|