@feedmepos/mf-e-invoice 0.0.56 → 0.0.57
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-DR6nHAET.js → EInvoice-BVgYTLlt.js} +904 -908
- package/dist/app.js +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/type/vietnam/e-invoice-profile.do.d.ts +1 -1
- package/dist/type/vietnam/e-invoice.do.d.ts +289 -73
- package/dist/type/vietnam/e-invoice.dto.d.ts +172 -44
- package/dist/views/manager/manager.d.ts +2 -5
- package/dist/views/manager/vietnam/submission.d.ts +1 -1
- package/package.json +1 -1
|
@@ -38,10 +38,13 @@ export declare const FdtoVnSubmitEInvoice: z.ZodObject<{
|
|
|
38
38
|
restaurantId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
39
39
|
businessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
40
40
|
type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["restaurant", "marketing"]>>>;
|
|
41
|
-
customer: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
42
|
-
_id: z.
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
customer: z.ZodNullable<z.ZodOptional<z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<Omit<z.extendShape<z.extendShape<{
|
|
42
|
+
_id: z.ZodEffects<z.ZodString, string, string>;
|
|
43
|
+
type: z.ZodEnum<["individual", "company"]>;
|
|
44
|
+
nickname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
phoneNumber: z.ZodString;
|
|
47
|
+
address: z.ZodObject<{
|
|
45
48
|
line1: z.ZodString;
|
|
46
49
|
line2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
47
50
|
state: z.ZodString;
|
|
@@ -65,19 +68,26 @@ export declare const FdtoVnSubmitEInvoice: z.ZodObject<{
|
|
|
65
68
|
line1: string;
|
|
66
69
|
city: string;
|
|
67
70
|
postcode: string;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
email: z.
|
|
71
|
+
}>;
|
|
72
|
+
userId: z.ZodString;
|
|
73
|
+
}, {
|
|
74
|
+
email: z.ZodString;
|
|
75
|
+
legalName: z.ZodString;
|
|
76
|
+
}>, {
|
|
77
|
+
type: z.ZodLiteral<"individual">;
|
|
78
|
+
identityNo: z.ZodString;
|
|
72
79
|
taxCode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
}>, "_id" | "userId">, {
|
|
81
|
+
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
82
|
+
}>, "strip", z.ZodTypeAny, {
|
|
83
|
+
nickname?: string | null | undefined;
|
|
84
|
+
userId?: string | null | undefined;
|
|
85
|
+
taxCode?: string | null | undefined;
|
|
86
|
+
email: string;
|
|
87
|
+
type: "individual";
|
|
88
|
+
name: string;
|
|
89
|
+
phoneNumber: string;
|
|
90
|
+
address: {
|
|
81
91
|
coordinates?: number[] | null | undefined;
|
|
82
92
|
line2?: string | null | undefined;
|
|
83
93
|
state: string;
|
|
@@ -85,17 +95,78 @@ export declare const FdtoVnSubmitEInvoice: z.ZodObject<{
|
|
|
85
95
|
line1: string;
|
|
86
96
|
city: string;
|
|
87
97
|
postcode: string;
|
|
88
|
-
}
|
|
98
|
+
};
|
|
99
|
+
legalName: string;
|
|
100
|
+
identityNo: string;
|
|
101
|
+
}, {
|
|
102
|
+
nickname?: string | null | undefined;
|
|
89
103
|
userId?: string | null | undefined;
|
|
90
|
-
legalName?: string | null | undefined;
|
|
91
|
-
identityNo?: string | null | undefined;
|
|
92
104
|
taxCode?: string | null | undefined;
|
|
105
|
+
email: string;
|
|
106
|
+
type: "individual";
|
|
107
|
+
name: string;
|
|
108
|
+
phoneNumber: string;
|
|
109
|
+
address: {
|
|
110
|
+
coordinates?: number[] | null | undefined;
|
|
111
|
+
line2?: string | null | undefined;
|
|
112
|
+
state: string;
|
|
113
|
+
country: string;
|
|
114
|
+
line1: string;
|
|
115
|
+
city: string;
|
|
116
|
+
postcode: string;
|
|
117
|
+
};
|
|
118
|
+
legalName: string;
|
|
119
|
+
identityNo: string;
|
|
120
|
+
}> | z.ZodObject<z.extendShape<Omit<z.extendShape<z.extendShape<{
|
|
121
|
+
_id: z.ZodEffects<z.ZodString, string, string>;
|
|
122
|
+
type: z.ZodEnum<["individual", "company"]>;
|
|
123
|
+
nickname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
124
|
+
name: z.ZodString;
|
|
125
|
+
phoneNumber: z.ZodString;
|
|
126
|
+
address: z.ZodObject<{
|
|
127
|
+
line1: z.ZodString;
|
|
128
|
+
line2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
129
|
+
state: z.ZodString;
|
|
130
|
+
city: z.ZodString;
|
|
131
|
+
postcode: z.ZodString;
|
|
132
|
+
country: z.ZodString;
|
|
133
|
+
coordinates: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
coordinates?: number[] | null | undefined;
|
|
136
|
+
line2?: string | null | undefined;
|
|
137
|
+
state: string;
|
|
138
|
+
country: string;
|
|
139
|
+
line1: string;
|
|
140
|
+
city: string;
|
|
141
|
+
postcode: string;
|
|
142
|
+
}, {
|
|
143
|
+
coordinates?: number[] | null | undefined;
|
|
144
|
+
line2?: string | null | undefined;
|
|
145
|
+
state: string;
|
|
146
|
+
country: string;
|
|
147
|
+
line1: string;
|
|
148
|
+
city: string;
|
|
149
|
+
postcode: string;
|
|
150
|
+
}>;
|
|
151
|
+
userId: z.ZodString;
|
|
93
152
|
}, {
|
|
94
|
-
email
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
153
|
+
email: z.ZodString;
|
|
154
|
+
legalName: z.ZodString;
|
|
155
|
+
}>, {
|
|
156
|
+
type: z.ZodLiteral<"company">;
|
|
157
|
+
taxCode: z.ZodString;
|
|
158
|
+
identityNo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
159
|
+
}>, "_id" | "userId">, {
|
|
160
|
+
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
161
|
+
}>, "strip", z.ZodTypeAny, {
|
|
162
|
+
nickname?: string | null | undefined;
|
|
163
|
+
userId?: string | null | undefined;
|
|
164
|
+
identityNo?: string | null | undefined;
|
|
165
|
+
email: string;
|
|
166
|
+
type: "company";
|
|
167
|
+
name: string;
|
|
168
|
+
phoneNumber: string;
|
|
169
|
+
address: {
|
|
99
170
|
coordinates?: number[] | null | undefined;
|
|
100
171
|
line2?: string | null | undefined;
|
|
101
172
|
state: string;
|
|
@@ -103,22 +174,42 @@ export declare const FdtoVnSubmitEInvoice: z.ZodObject<{
|
|
|
103
174
|
line1: string;
|
|
104
175
|
city: string;
|
|
105
176
|
postcode: string;
|
|
106
|
-
}
|
|
177
|
+
};
|
|
178
|
+
legalName: string;
|
|
179
|
+
taxCode: string;
|
|
180
|
+
}, {
|
|
181
|
+
nickname?: string | null | undefined;
|
|
107
182
|
userId?: string | null | undefined;
|
|
108
|
-
legalName?: string | null | undefined;
|
|
109
183
|
identityNo?: string | null | undefined;
|
|
110
|
-
|
|
111
|
-
|
|
184
|
+
email: string;
|
|
185
|
+
type: "company";
|
|
186
|
+
name: string;
|
|
187
|
+
phoneNumber: string;
|
|
188
|
+
address: {
|
|
189
|
+
coordinates?: number[] | null | undefined;
|
|
190
|
+
line2?: string | null | undefined;
|
|
191
|
+
state: string;
|
|
192
|
+
country: string;
|
|
193
|
+
line1: string;
|
|
194
|
+
city: string;
|
|
195
|
+
postcode: string;
|
|
196
|
+
};
|
|
197
|
+
legalName: string;
|
|
198
|
+
taxCode: string;
|
|
199
|
+
}>>>>;
|
|
112
200
|
}, "strip", z.ZodTypeAny, {
|
|
113
201
|
type?: "restaurant" | "marketing" | null | undefined;
|
|
114
202
|
businessId?: string | null | undefined;
|
|
115
203
|
restaurantId?: string | null | undefined;
|
|
116
204
|
customer?: {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
205
|
+
nickname?: string | null | undefined;
|
|
206
|
+
userId?: string | null | undefined;
|
|
207
|
+
taxCode?: string | null | undefined;
|
|
208
|
+
email: string;
|
|
209
|
+
type: "individual";
|
|
210
|
+
name: string;
|
|
211
|
+
phoneNumber: string;
|
|
212
|
+
address: {
|
|
122
213
|
coordinates?: number[] | null | undefined;
|
|
123
214
|
line2?: string | null | undefined;
|
|
124
215
|
state: string;
|
|
@@ -126,11 +217,28 @@ export declare const FdtoVnSubmitEInvoice: z.ZodObject<{
|
|
|
126
217
|
line1: string;
|
|
127
218
|
city: string;
|
|
128
219
|
postcode: string;
|
|
129
|
-
}
|
|
220
|
+
};
|
|
221
|
+
legalName: string;
|
|
222
|
+
identityNo: string;
|
|
223
|
+
} | {
|
|
224
|
+
nickname?: string | null | undefined;
|
|
130
225
|
userId?: string | null | undefined;
|
|
131
|
-
legalName?: string | null | undefined;
|
|
132
226
|
identityNo?: string | null | undefined;
|
|
133
|
-
|
|
227
|
+
email: string;
|
|
228
|
+
type: "company";
|
|
229
|
+
name: string;
|
|
230
|
+
phoneNumber: string;
|
|
231
|
+
address: {
|
|
232
|
+
coordinates?: number[] | null | undefined;
|
|
233
|
+
line2?: string | null | undefined;
|
|
234
|
+
state: string;
|
|
235
|
+
country: string;
|
|
236
|
+
line1: string;
|
|
237
|
+
city: string;
|
|
238
|
+
postcode: string;
|
|
239
|
+
};
|
|
240
|
+
legalName: string;
|
|
241
|
+
taxCode: string;
|
|
134
242
|
} | null | undefined;
|
|
135
243
|
billId: string;
|
|
136
244
|
}, {
|
|
@@ -138,11 +246,14 @@ export declare const FdtoVnSubmitEInvoice: z.ZodObject<{
|
|
|
138
246
|
businessId?: string | null | undefined;
|
|
139
247
|
restaurantId?: string | null | undefined;
|
|
140
248
|
customer?: {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
249
|
+
nickname?: string | null | undefined;
|
|
250
|
+
userId?: string | null | undefined;
|
|
251
|
+
taxCode?: string | null | undefined;
|
|
252
|
+
email: string;
|
|
253
|
+
type: "individual";
|
|
254
|
+
name: string;
|
|
255
|
+
phoneNumber: string;
|
|
256
|
+
address: {
|
|
146
257
|
coordinates?: number[] | null | undefined;
|
|
147
258
|
line2?: string | null | undefined;
|
|
148
259
|
state: string;
|
|
@@ -150,11 +261,28 @@ export declare const FdtoVnSubmitEInvoice: z.ZodObject<{
|
|
|
150
261
|
line1: string;
|
|
151
262
|
city: string;
|
|
152
263
|
postcode: string;
|
|
153
|
-
}
|
|
264
|
+
};
|
|
265
|
+
legalName: string;
|
|
266
|
+
identityNo: string;
|
|
267
|
+
} | {
|
|
268
|
+
nickname?: string | null | undefined;
|
|
154
269
|
userId?: string | null | undefined;
|
|
155
|
-
legalName?: string | null | undefined;
|
|
156
270
|
identityNo?: string | null | undefined;
|
|
157
|
-
|
|
271
|
+
email: string;
|
|
272
|
+
type: "company";
|
|
273
|
+
name: string;
|
|
274
|
+
phoneNumber: string;
|
|
275
|
+
address: {
|
|
276
|
+
coordinates?: number[] | null | undefined;
|
|
277
|
+
line2?: string | null | undefined;
|
|
278
|
+
state: string;
|
|
279
|
+
country: string;
|
|
280
|
+
line1: string;
|
|
281
|
+
city: string;
|
|
282
|
+
postcode: string;
|
|
283
|
+
};
|
|
284
|
+
legalName: string;
|
|
285
|
+
taxCode: string;
|
|
158
286
|
} | null | undefined;
|
|
159
287
|
billId: string;
|
|
160
288
|
}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AnyEInvoiceSubmission } from "@/api";
|
|
2
|
+
import type { FdoVnEInvoiceSubmission } from "@/type";
|
|
2
3
|
import type { FdoMyEInvoiceSubmission, FdoRestaurant, FdoStoreOption, FdoThEInvoiceSubmission } from "@feedmepos/core/entity";
|
|
3
4
|
import type { RendererElement, RendererNode, VNode } from "vue";
|
|
4
5
|
export type Field = {
|
|
@@ -15,11 +16,7 @@ export type SubmissionDocument = {
|
|
|
15
16
|
bills?: Field[][];
|
|
16
17
|
};
|
|
17
18
|
export type Submission = {
|
|
18
|
-
raw: FdoMyEInvoiceSubmission | FdoThEInvoiceSubmission |
|
|
19
|
-
appid: string;
|
|
20
|
-
username: string;
|
|
21
|
-
password: string;
|
|
22
|
-
});
|
|
19
|
+
raw: FdoMyEInvoiceSubmission | FdoThEInvoiceSubmission | FdoVnEInvoiceSubmission;
|
|
23
20
|
submissionSummary: Field[];
|
|
24
21
|
submissionDetails: Field[];
|
|
25
22
|
merchant: Field[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FdoVnEInvoiceSubmission } from "@/type/vietnam/e-invoice.do";
|
|
2
2
|
import { type Submission, type SubmissionDocument } from "../manager";
|
|
3
|
-
export declare function formatVietnamSubmission(submission:
|
|
3
|
+
export declare function formatVietnamSubmission(submission: FdoVnEInvoiceSubmission): Submission;
|
|
4
4
|
export declare function formatDocument(submission: any): SubmissionDocument;
|
|
5
5
|
export declare function convertToCSV(submission: Submission): string;
|
|
6
6
|
export declare function exportVietnamSubmission(submissions: FdoVnEInvoiceSubmission[], dateRange: {
|