@feedmepos/mf-e-invoice 0.0.47 → 0.0.49
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-BFQloQyF.js → EInvoice-CfzndKJV.js} +24399 -20246
- package/dist/app.js +1 -1
- package/dist/{index.es-DAE6oB49.js → index.es-BjzV5n0B.js} +118 -118
- package/dist/store/index.d.ts +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/type/vietnam/e-invoice-profile.do.d.ts +1793 -0
- package/dist/type/vietnam/e-invoice.do.d.ts +572 -0
- package/dist/type/vietnam/e-invoice.dto.d.ts +197 -0
- package/dist/type/vietnam/e-invoice.enum.d.ts +3 -0
- package/dist/views/manager/malaysia/malaysia.d.ts +6 -2
- package/dist/views/manager/manager.d.ts +4 -0
- package/dist/views/manager/thailand/thailand.d.ts +6 -2
- package/dist/views/manager/vietnam/submission.d.ts +5 -0
- package/dist/views/manager/vietnam/vietnam.d.ts +10 -1
- package/package.json +7 -6
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const FdtoVnPubSubMessage: z.ZodObject<{
|
|
3
|
+
key: z.ZodString;
|
|
4
|
+
topic: z.ZodString;
|
|
5
|
+
bill_id: z.ZodString;
|
|
6
|
+
restaurantId: z.ZodString;
|
|
7
|
+
businessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
+
publishedAt: z.ZodString;
|
|
9
|
+
createdAt: z.ZodString;
|
|
10
|
+
completedAt: z.ZodString;
|
|
11
|
+
dataflowPublishedAt: z.ZodString;
|
|
12
|
+
pubsubPublishedAt: z.ZodString;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
businessId?: string | null | undefined;
|
|
15
|
+
restaurantId: string;
|
|
16
|
+
key: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
topic: string;
|
|
19
|
+
bill_id: string;
|
|
20
|
+
publishedAt: string;
|
|
21
|
+
completedAt: string;
|
|
22
|
+
dataflowPublishedAt: string;
|
|
23
|
+
pubsubPublishedAt: string;
|
|
24
|
+
}, {
|
|
25
|
+
businessId?: string | null | undefined;
|
|
26
|
+
restaurantId: string;
|
|
27
|
+
key: string;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
topic: string;
|
|
30
|
+
bill_id: string;
|
|
31
|
+
publishedAt: string;
|
|
32
|
+
completedAt: string;
|
|
33
|
+
dataflowPublishedAt: string;
|
|
34
|
+
pubsubPublishedAt: string;
|
|
35
|
+
}>;
|
|
36
|
+
export declare const FdtoVnSubmitEInvoice: z.ZodObject<{
|
|
37
|
+
billId: z.ZodString;
|
|
38
|
+
restaurantId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
39
|
+
businessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
40
|
+
type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["restaurant", "marketing"]>>>;
|
|
41
|
+
customer: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
42
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
43
|
+
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
44
|
+
address: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
45
|
+
line1: z.ZodString;
|
|
46
|
+
line2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
47
|
+
state: z.ZodString;
|
|
48
|
+
city: z.ZodString;
|
|
49
|
+
postcode: z.ZodString;
|
|
50
|
+
country: z.ZodString;
|
|
51
|
+
coordinates: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
coordinates?: number[] | null | undefined;
|
|
54
|
+
line2?: string | null | undefined;
|
|
55
|
+
state: string;
|
|
56
|
+
country: string;
|
|
57
|
+
line1: string;
|
|
58
|
+
city: string;
|
|
59
|
+
postcode: string;
|
|
60
|
+
}, {
|
|
61
|
+
coordinates?: number[] | null | undefined;
|
|
62
|
+
line2?: string | null | undefined;
|
|
63
|
+
state: string;
|
|
64
|
+
country: string;
|
|
65
|
+
line1: string;
|
|
66
|
+
city: string;
|
|
67
|
+
postcode: string;
|
|
68
|
+
}>>>;
|
|
69
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
70
|
+
legalName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
71
|
+
email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
72
|
+
taxCode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
73
|
+
phoneNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
74
|
+
identityNo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
_id?: string | null | undefined;
|
|
77
|
+
name?: string | null | undefined;
|
|
78
|
+
address?: {
|
|
79
|
+
coordinates?: number[] | null | undefined;
|
|
80
|
+
line2?: string | null | undefined;
|
|
81
|
+
state: string;
|
|
82
|
+
country: string;
|
|
83
|
+
line1: string;
|
|
84
|
+
city: string;
|
|
85
|
+
postcode: string;
|
|
86
|
+
} | null | undefined;
|
|
87
|
+
email?: string | null | undefined;
|
|
88
|
+
phoneNumber?: string | null | undefined;
|
|
89
|
+
userId?: string | null | undefined;
|
|
90
|
+
legalName?: string | null | undefined;
|
|
91
|
+
identityNo?: string | null | undefined;
|
|
92
|
+
taxCode?: string | null | undefined;
|
|
93
|
+
}, {
|
|
94
|
+
_id?: string | null | undefined;
|
|
95
|
+
name?: string | null | undefined;
|
|
96
|
+
address?: {
|
|
97
|
+
coordinates?: number[] | null | undefined;
|
|
98
|
+
line2?: string | null | undefined;
|
|
99
|
+
state: string;
|
|
100
|
+
country: string;
|
|
101
|
+
line1: string;
|
|
102
|
+
city: string;
|
|
103
|
+
postcode: string;
|
|
104
|
+
} | null | undefined;
|
|
105
|
+
email?: string | null | undefined;
|
|
106
|
+
phoneNumber?: string | null | undefined;
|
|
107
|
+
userId?: string | null | undefined;
|
|
108
|
+
legalName?: string | null | undefined;
|
|
109
|
+
identityNo?: string | null | undefined;
|
|
110
|
+
taxCode?: string | null | undefined;
|
|
111
|
+
}>>>;
|
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
|
113
|
+
type?: "restaurant" | "marketing" | null | undefined;
|
|
114
|
+
businessId?: string | null | undefined;
|
|
115
|
+
restaurantId?: string | null | undefined;
|
|
116
|
+
customer?: {
|
|
117
|
+
_id?: string | null | undefined;
|
|
118
|
+
name?: string | null | undefined;
|
|
119
|
+
address?: {
|
|
120
|
+
coordinates?: number[] | null | undefined;
|
|
121
|
+
line2?: string | null | undefined;
|
|
122
|
+
state: string;
|
|
123
|
+
country: string;
|
|
124
|
+
line1: string;
|
|
125
|
+
city: string;
|
|
126
|
+
postcode: string;
|
|
127
|
+
} | null | undefined;
|
|
128
|
+
email?: string | null | undefined;
|
|
129
|
+
phoneNumber?: string | null | undefined;
|
|
130
|
+
userId?: string | null | undefined;
|
|
131
|
+
legalName?: string | null | undefined;
|
|
132
|
+
identityNo?: string | null | undefined;
|
|
133
|
+
taxCode?: string | null | undefined;
|
|
134
|
+
} | null | undefined;
|
|
135
|
+
billId: string;
|
|
136
|
+
}, {
|
|
137
|
+
type?: "restaurant" | "marketing" | null | undefined;
|
|
138
|
+
businessId?: string | null | undefined;
|
|
139
|
+
restaurantId?: string | null | undefined;
|
|
140
|
+
customer?: {
|
|
141
|
+
_id?: string | null | undefined;
|
|
142
|
+
name?: string | null | undefined;
|
|
143
|
+
address?: {
|
|
144
|
+
coordinates?: number[] | null | undefined;
|
|
145
|
+
line2?: string | null | undefined;
|
|
146
|
+
state: string;
|
|
147
|
+
country: string;
|
|
148
|
+
line1: string;
|
|
149
|
+
city: string;
|
|
150
|
+
postcode: string;
|
|
151
|
+
} | null | undefined;
|
|
152
|
+
email?: string | null | undefined;
|
|
153
|
+
phoneNumber?: string | null | undefined;
|
|
154
|
+
userId?: string | null | undefined;
|
|
155
|
+
legalName?: string | null | undefined;
|
|
156
|
+
identityNo?: string | null | undefined;
|
|
157
|
+
taxCode?: string | null | undefined;
|
|
158
|
+
} | null | undefined;
|
|
159
|
+
billId: string;
|
|
160
|
+
}>;
|
|
161
|
+
export declare const FdtoBillCompletedEvent: z.ZodObject<{
|
|
162
|
+
key: z.ZodString;
|
|
163
|
+
topic: z.ZodString;
|
|
164
|
+
billId: z.ZodString;
|
|
165
|
+
restaurantId: z.ZodString;
|
|
166
|
+
businessId: z.ZodString;
|
|
167
|
+
publishedAt: z.ZodString;
|
|
168
|
+
createdAt: z.ZodString;
|
|
169
|
+
completedAt: z.ZodString;
|
|
170
|
+
dataflowPublishedAt: z.ZodString;
|
|
171
|
+
pubsubPublishedAt: z.ZodString;
|
|
172
|
+
}, "strip", z.ZodTypeAny, {
|
|
173
|
+
businessId: string;
|
|
174
|
+
restaurantId: string;
|
|
175
|
+
key: string;
|
|
176
|
+
createdAt: string;
|
|
177
|
+
topic: string;
|
|
178
|
+
publishedAt: string;
|
|
179
|
+
completedAt: string;
|
|
180
|
+
dataflowPublishedAt: string;
|
|
181
|
+
pubsubPublishedAt: string;
|
|
182
|
+
billId: string;
|
|
183
|
+
}, {
|
|
184
|
+
businessId: string;
|
|
185
|
+
restaurantId: string;
|
|
186
|
+
key: string;
|
|
187
|
+
createdAt: string;
|
|
188
|
+
topic: string;
|
|
189
|
+
publishedAt: string;
|
|
190
|
+
completedAt: string;
|
|
191
|
+
dataflowPublishedAt: string;
|
|
192
|
+
pubsubPublishedAt: string;
|
|
193
|
+
billId: string;
|
|
194
|
+
}>;
|
|
195
|
+
export type FdtoVnPubSubMessage = z.infer<typeof FdtoVnPubSubMessage>;
|
|
196
|
+
export type FdtoVnSubmitEInvoice = z.infer<typeof FdtoVnSubmitEInvoice>;
|
|
197
|
+
export type FdtoBillCompletedEvent = z.infer<typeof FdtoBillCompletedEvent>;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { type FdoMyEInvoiceSubmission, FdoRestaurant, FdoStoreOption, FdoMyEInvoiceRestaurantProfile, FdoMyEInvoiceMarketingProfile } from "@feedmepos/core/entity";
|
|
2
|
-
import { EInvoiceManager, type Submission } from "../manager";
|
|
3
1
|
import type { AnyEInvoiceSubmission } from "@/api";
|
|
2
|
+
import { FdoMyEInvoiceMarketingProfile, FdoMyEInvoiceRestaurantProfile, type FdoMyEInvoiceSubmission, FdoRestaurant, FdoStoreOption } from "@feedmepos/core/entity";
|
|
3
|
+
import { EInvoiceManager, type Submission } from "../manager";
|
|
4
4
|
declare class MalaysiaManager extends EInvoiceManager {
|
|
5
5
|
get settingDialogComponent(): import("vue").DefineComponent<{}, {
|
|
6
6
|
show: () => void;
|
|
7
7
|
hide: () => void;
|
|
8
8
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
getDate(): {
|
|
10
|
+
startDate: string;
|
|
11
|
+
endDate: string;
|
|
12
|
+
};
|
|
9
13
|
formatSubmission(submission: FdoMyEInvoiceSubmission): Submission;
|
|
10
14
|
sortSubmissions(submissions: AnyEInvoiceSubmission[]): AnyEInvoiceSubmission[];
|
|
11
15
|
initRestaurantProfile(restaurant: FdoRestaurant): FdoMyEInvoiceRestaurantProfile;
|
|
@@ -38,6 +38,10 @@ export declare abstract class EInvoiceManager {
|
|
|
38
38
|
abstract sortSubmissions(submissions: AnyEInvoiceSubmission[]): AnyEInvoiceSubmission[];
|
|
39
39
|
abstract initRestaurantProfile(restaurant: FdoRestaurant): any;
|
|
40
40
|
abstract initMarketingProfile(businessId: string, store?: FdoStoreOption): any;
|
|
41
|
+
abstract getDate(): {
|
|
42
|
+
startDate: string;
|
|
43
|
+
endDate: string;
|
|
44
|
+
};
|
|
41
45
|
exportSubmissions?(submissions: any[], dateRange: {
|
|
42
46
|
startDate: string;
|
|
43
47
|
endDate: string;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { type FdoThEInvoiceSubmission, FdoRestaurant, FdoStoreOption, FdoThEInvoiceRestaurantProfile, FdoThEInvoiceMarketingProfile } from "@feedmepos/core/entity";
|
|
2
|
-
import { EInvoiceManager, type Submission } from "../manager";
|
|
3
1
|
import type { AnyEInvoiceSubmission } from "@/api";
|
|
2
|
+
import { FdoRestaurant, FdoStoreOption, FdoThEInvoiceMarketingProfile, FdoThEInvoiceRestaurantProfile, type FdoThEInvoiceSubmission } from "@feedmepos/core/entity";
|
|
3
|
+
import { EInvoiceManager, type Submission } from "../manager";
|
|
4
4
|
declare class ThailandManager extends EInvoiceManager {
|
|
5
5
|
get settingDialogComponent(): import("vue").DefineComponent<{}, {
|
|
6
6
|
show: () => void;
|
|
7
7
|
hide: () => void;
|
|
8
8
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
getDate(): {
|
|
10
|
+
startDate: string;
|
|
11
|
+
endDate: string;
|
|
12
|
+
};
|
|
9
13
|
formatSubmission(submission: FdoThEInvoiceSubmission): Submission;
|
|
10
14
|
sortSubmissions(submissions: AnyEInvoiceSubmission[]): AnyEInvoiceSubmission[];
|
|
11
15
|
exportSubmissions(submissions: FdoThEInvoiceSubmission[], dateRange: {
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
import type { FdoVnEInvoiceSubmission } from "@/type/vietnam/e-invoice.do";
|
|
1
2
|
import { type Submission, type SubmissionDocument } from "../manager";
|
|
2
3
|
export declare function formatVietnamSubmission(submission: any): Submission;
|
|
3
4
|
export declare function formatDocument(submission: any): SubmissionDocument;
|
|
4
5
|
export declare function convertToCSV(submission: Submission): string;
|
|
6
|
+
export declare function exportVietnamSubmission(submissions: FdoVnEInvoiceSubmission[], dateRange: {
|
|
7
|
+
startDate: string;
|
|
8
|
+
endDate: string;
|
|
9
|
+
}): void;
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
+
import type { AnyEInvoiceSubmission } from "@/api";
|
|
2
|
+
import type { FdoVnEInvoiceSubmission } from "@/type/vietnam/e-invoice.do";
|
|
1
3
|
import { FdoMyEInvoiceMarketingProfile, FdoMyEInvoiceRestaurantProfile, type FdoMyEInvoiceSubmission, FdoRestaurant, FdoStoreOption } from "@feedmepos/core/entity";
|
|
2
4
|
import { EInvoiceManager, type Submission } from "../manager";
|
|
3
|
-
import type { AnyEInvoiceSubmission } from "@/api";
|
|
4
5
|
declare class VietnamManager extends EInvoiceManager {
|
|
5
6
|
get settingDialogComponent(): import("vue").DefineComponent<{}, {
|
|
6
7
|
show: () => void;
|
|
7
8
|
hide: () => void;
|
|
8
9
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
getDate(): {
|
|
11
|
+
startDate: string;
|
|
12
|
+
endDate: string;
|
|
13
|
+
};
|
|
9
14
|
formatSubmission(submission: FdoMyEInvoiceSubmission): Submission;
|
|
10
15
|
sortSubmissions(submissions: any[]): AnyEInvoiceSubmission[];
|
|
16
|
+
exportSubmissions(submissions: FdoVnEInvoiceSubmission[], dateRange: {
|
|
17
|
+
startDate: string;
|
|
18
|
+
endDate: string;
|
|
19
|
+
}): void;
|
|
11
20
|
initRestaurantProfile(restaurant: FdoRestaurant): FdoMyEInvoiceRestaurantProfile;
|
|
12
21
|
initMarketingProfile(businessId: string, store?: FdoStoreOption): FdoMyEInvoiceMarketingProfile;
|
|
13
22
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-e-invoice",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.49",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"./style": "./dist/style.css"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
|
-
"dev": "cross-env NODE_ENV=
|
|
18
|
+
"dev": "cross-env NODE_ENV=development vite --mode development --port 5178",
|
|
19
19
|
"start": "cross-env NODE_ENV=production vite --mode prod",
|
|
20
20
|
"build:dev:standalone": "cross-env NODE_ENV=development yarn vite build --mode development",
|
|
21
21
|
"build:prod:standalone": "cross-env NODE_ENV=production yarn vite build --mode production",
|
|
@@ -50,7 +50,8 @@
|
|
|
50
50
|
"libphonenumber-js": "^1.12.10",
|
|
51
51
|
"pinia": "^2.1.7",
|
|
52
52
|
"vue": "^3.4.21",
|
|
53
|
-
"vue-router": "^4.3.0"
|
|
53
|
+
"vue-router": "^4.3.0",
|
|
54
|
+
"xlsx": "^0.18.5"
|
|
54
55
|
},
|
|
55
56
|
"devDependencies": {
|
|
56
57
|
"@casl/ability": "^3.4.0",
|
|
@@ -62,9 +63,11 @@
|
|
|
62
63
|
"@vue/eslint-config-typescript": "^12.0.0",
|
|
63
64
|
"@vue/tsconfig": "^0.4.0",
|
|
64
65
|
"autoprefixer": "^10.4.16",
|
|
66
|
+
"cross-env": "^7.0.3",
|
|
65
67
|
"eslint": "^8.49.0",
|
|
66
68
|
"eslint-plugin-tailwindcss": "^3.14.0",
|
|
67
69
|
"eslint-plugin-vue": "^9.17.0",
|
|
70
|
+
"jsdom": "^24.0.0",
|
|
68
71
|
"npm-run-all2": "^6.0.6",
|
|
69
72
|
"postcss": "^8.4.31",
|
|
70
73
|
"prettier": "^3.0.3",
|
|
@@ -72,9 +75,7 @@
|
|
|
72
75
|
"tailwindcss": "^3.3.3",
|
|
73
76
|
"typescript": "~5.2.0",
|
|
74
77
|
"vite": "^5.1.4",
|
|
75
|
-
"vue-tsc": "^1.8.11",
|
|
76
|
-
"cross-env": "^7.0.3",
|
|
77
78
|
"vitest": "^2.0.0",
|
|
78
|
-
"
|
|
79
|
+
"vue-tsc": "^1.8.11"
|
|
79
80
|
}
|
|
80
81
|
}
|