@feedmepos/mf-e-invoice 0.0.53 → 0.0.55
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-DIrn-EPR.js +32270 -0
- package/dist/api/index.d.ts +7 -4
- package/dist/app.js +14 -14
- package/dist/main.d.ts +1 -1
- package/dist/store/index.d.ts +1500 -131
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/type/index.d.ts +2 -0
- package/dist/type/thailand/e-invoice-profile.do.d.ts +1449 -0
- package/dist/type/thailand/e-invoice.do.d.ts +842 -0
- package/dist/type/thailand/e-invoice.dto.d.ts +541 -0
- package/dist/type/thailand/index.d.ts +3 -0
- package/dist/type/vietnam/e-invoice-profile.do.d.ts +170 -197
- package/dist/type/vietnam/e-invoice.do.d.ts +72 -82
- package/dist/type/vietnam/e-invoice.dto.d.ts +14 -14
- package/dist/type/vietnam/index.d.ts +4 -0
- package/dist/types.d.ts +6 -4
- package/dist/views/manager/thailand/ThailandProfileDialog.vue.d.ts +1 -1
- package/dist/views/manager/thailand/data.d.ts +2 -1
- package/dist/views/manager/thailand/submission.d.ts +1 -1
- package/dist/views/manager/thailand/thailand.d.ts +2 -1
- package/dist/views/manager/vietnam/VietnamProfileDialog.vue.d.ts +2 -7
- package/dist/views/manager/vietnam/data.d.ts +4 -3
- package/dist/views/manager/vietnam/submission.d.ts +1 -1
- package/dist/views/manager/vietnam/vietnam.d.ts +6 -6
- package/package.json +6 -9
- package/dist/EInvoice-El02J1ap.js +0 -47687
- package/dist/html2canvas.esm-DgRhIRvu.js +0 -4870
- package/dist/index.es-CUExVX41.js +0 -5631
- package/dist/purify.es-Cuujoyyu.js +0 -553
|
@@ -34,8 +34,10 @@ export declare const FdoVnEInvoiceSubmissionCustomer: z.ZodObject<{
|
|
|
34
34
|
phoneNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
35
35
|
identityNo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
email?: string | null | undefined;
|
|
37
38
|
_id?: string | null | undefined;
|
|
38
39
|
name?: string | null | undefined;
|
|
40
|
+
phoneNumber?: string | null | undefined;
|
|
39
41
|
address?: {
|
|
40
42
|
coordinates?: number[] | null | undefined;
|
|
41
43
|
line2?: string | null | undefined;
|
|
@@ -45,15 +47,15 @@ export declare const FdoVnEInvoiceSubmissionCustomer: z.ZodObject<{
|
|
|
45
47
|
city: string;
|
|
46
48
|
postcode: string;
|
|
47
49
|
} | null | undefined;
|
|
48
|
-
email?: string | null | undefined;
|
|
49
|
-
phoneNumber?: string | null | undefined;
|
|
50
50
|
userId?: string | null | undefined;
|
|
51
51
|
legalName?: string | null | undefined;
|
|
52
52
|
identityNo?: string | null | undefined;
|
|
53
53
|
taxCode?: string | null | undefined;
|
|
54
54
|
}, {
|
|
55
|
+
email?: string | null | undefined;
|
|
55
56
|
_id?: string | null | undefined;
|
|
56
57
|
name?: string | null | undefined;
|
|
58
|
+
phoneNumber?: string | null | undefined;
|
|
57
59
|
address?: {
|
|
58
60
|
coordinates?: number[] | null | undefined;
|
|
59
61
|
line2?: string | null | undefined;
|
|
@@ -63,8 +65,6 @@ export declare const FdoVnEInvoiceSubmissionCustomer: z.ZodObject<{
|
|
|
63
65
|
city: string;
|
|
64
66
|
postcode: string;
|
|
65
67
|
} | null | undefined;
|
|
66
|
-
email?: string | null | undefined;
|
|
67
|
-
phoneNumber?: string | null | undefined;
|
|
68
68
|
userId?: string | null | undefined;
|
|
69
69
|
legalName?: string | null | undefined;
|
|
70
70
|
identityNo?: string | null | undefined;
|
|
@@ -113,7 +113,6 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
113
113
|
phoneNo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
114
114
|
}, {
|
|
115
115
|
active: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
116
|
-
sstRegNo: z.ZodString;
|
|
117
116
|
email: z.ZodString;
|
|
118
117
|
schedule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
119
118
|
day: z.ZodNumber;
|
|
@@ -135,23 +134,22 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
135
134
|
templateId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
136
135
|
isDev: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
137
136
|
}>, "strip", z.ZodTypeAny, {
|
|
137
|
+
queryToken?: string | null | undefined;
|
|
138
138
|
phoneNo?: string | null | undefined;
|
|
139
139
|
active?: string | null | undefined;
|
|
140
140
|
schedule?: {
|
|
141
141
|
day: number;
|
|
142
142
|
hour: number;
|
|
143
143
|
} | null | undefined;
|
|
144
|
-
queryToken?: string | null | undefined;
|
|
145
|
-
password?: string | null | undefined;
|
|
146
144
|
appid?: string | null | undefined;
|
|
147
145
|
username?: string | null | undefined;
|
|
146
|
+
password?: string | null | undefined;
|
|
148
147
|
templateId?: string | null | undefined;
|
|
149
148
|
isDev?: boolean | null | undefined;
|
|
150
|
-
|
|
151
|
-
_id: string;
|
|
152
|
-
businessId: string;
|
|
153
|
-
regNo: string;
|
|
149
|
+
email: string;
|
|
154
150
|
tinNo: string;
|
|
151
|
+
_id: string;
|
|
152
|
+
type: "restaurant";
|
|
155
153
|
name: string;
|
|
156
154
|
address: {
|
|
157
155
|
coordinates?: number[] | null | undefined;
|
|
@@ -162,27 +160,26 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
162
160
|
city: string;
|
|
163
161
|
postcode: string;
|
|
164
162
|
};
|
|
165
|
-
|
|
166
|
-
|
|
163
|
+
businessId: string;
|
|
164
|
+
regNo: string;
|
|
167
165
|
restaurantId: string;
|
|
168
166
|
}, {
|
|
167
|
+
queryToken?: string | null | undefined;
|
|
169
168
|
phoneNo?: string | null | undefined;
|
|
170
169
|
active?: string | null | undefined;
|
|
171
170
|
schedule?: {
|
|
172
171
|
day: number;
|
|
173
172
|
hour: number;
|
|
174
173
|
} | null | undefined;
|
|
175
|
-
queryToken?: string | null | undefined;
|
|
176
|
-
password?: string | null | undefined;
|
|
177
174
|
appid?: string | null | undefined;
|
|
178
175
|
username?: string | null | undefined;
|
|
176
|
+
password?: string | null | undefined;
|
|
179
177
|
templateId?: string | null | undefined;
|
|
180
178
|
isDev?: boolean | null | undefined;
|
|
181
|
-
|
|
182
|
-
_id: string;
|
|
183
|
-
businessId: string;
|
|
184
|
-
regNo: string;
|
|
179
|
+
email: string;
|
|
185
180
|
tinNo: string;
|
|
181
|
+
_id: string;
|
|
182
|
+
type: "restaurant";
|
|
186
183
|
name: string;
|
|
187
184
|
address: {
|
|
188
185
|
coordinates?: number[] | null | undefined;
|
|
@@ -193,8 +190,8 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
193
190
|
city: string;
|
|
194
191
|
postcode: string;
|
|
195
192
|
};
|
|
196
|
-
|
|
197
|
-
|
|
193
|
+
businessId: string;
|
|
194
|
+
regNo: string;
|
|
198
195
|
restaurantId: string;
|
|
199
196
|
}> | z.ZodObject<z.extendShape<z.extendShape<{
|
|
200
197
|
_id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -231,7 +228,6 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
231
228
|
phoneNo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
232
229
|
}, {
|
|
233
230
|
active: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
234
|
-
sstRegNo: z.ZodString;
|
|
235
231
|
email: z.ZodString;
|
|
236
232
|
schedule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
237
233
|
day: z.ZodNumber;
|
|
@@ -252,23 +248,22 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
252
248
|
templateId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
253
249
|
isDev: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
254
250
|
}>, "strip", z.ZodTypeAny, {
|
|
251
|
+
queryToken?: string | null | undefined;
|
|
255
252
|
phoneNo?: string | null | undefined;
|
|
256
253
|
active?: string | null | undefined;
|
|
257
254
|
schedule?: {
|
|
258
255
|
day: number;
|
|
259
256
|
hour: number;
|
|
260
257
|
} | null | undefined;
|
|
261
|
-
queryToken?: string | null | undefined;
|
|
262
|
-
password?: string | null | undefined;
|
|
263
258
|
appid?: string | null | undefined;
|
|
264
259
|
username?: string | null | undefined;
|
|
260
|
+
password?: string | null | undefined;
|
|
265
261
|
templateId?: string | null | undefined;
|
|
266
262
|
isDev?: boolean | null | undefined;
|
|
267
|
-
|
|
268
|
-
_id: string;
|
|
269
|
-
businessId: string;
|
|
270
|
-
regNo: string;
|
|
263
|
+
email: string;
|
|
271
264
|
tinNo: string;
|
|
265
|
+
_id: string;
|
|
266
|
+
type: "marketing";
|
|
272
267
|
name: string;
|
|
273
268
|
address: {
|
|
274
269
|
coordinates?: number[] | null | undefined;
|
|
@@ -279,26 +274,25 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
279
274
|
city: string;
|
|
280
275
|
postcode: string;
|
|
281
276
|
};
|
|
282
|
-
|
|
283
|
-
|
|
277
|
+
businessId: string;
|
|
278
|
+
regNo: string;
|
|
284
279
|
}, {
|
|
280
|
+
queryToken?: string | null | undefined;
|
|
285
281
|
phoneNo?: string | null | undefined;
|
|
286
282
|
active?: string | null | undefined;
|
|
287
283
|
schedule?: {
|
|
288
284
|
day: number;
|
|
289
285
|
hour: number;
|
|
290
286
|
} | null | undefined;
|
|
291
|
-
queryToken?: string | null | undefined;
|
|
292
|
-
password?: string | null | undefined;
|
|
293
287
|
appid?: string | null | undefined;
|
|
294
288
|
username?: string | null | undefined;
|
|
289
|
+
password?: string | null | undefined;
|
|
295
290
|
templateId?: string | null | undefined;
|
|
296
291
|
isDev?: boolean | null | undefined;
|
|
297
|
-
|
|
298
|
-
_id: string;
|
|
299
|
-
businessId: string;
|
|
300
|
-
regNo: string;
|
|
292
|
+
email: string;
|
|
301
293
|
tinNo: string;
|
|
294
|
+
_id: string;
|
|
295
|
+
type: "marketing";
|
|
302
296
|
name: string;
|
|
303
297
|
address: {
|
|
304
298
|
coordinates?: number[] | null | undefined;
|
|
@@ -309,8 +303,8 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
309
303
|
city: string;
|
|
310
304
|
postcode: string;
|
|
311
305
|
};
|
|
312
|
-
|
|
313
|
-
|
|
306
|
+
businessId: string;
|
|
307
|
+
regNo: string;
|
|
314
308
|
}>>;
|
|
315
309
|
customer: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
316
310
|
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -347,8 +341,10 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
347
341
|
phoneNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
348
342
|
identityNo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
349
343
|
}, "strip", z.ZodTypeAny, {
|
|
344
|
+
email?: string | null | undefined;
|
|
350
345
|
_id?: string | null | undefined;
|
|
351
346
|
name?: string | null | undefined;
|
|
347
|
+
phoneNumber?: string | null | undefined;
|
|
352
348
|
address?: {
|
|
353
349
|
coordinates?: number[] | null | undefined;
|
|
354
350
|
line2?: string | null | undefined;
|
|
@@ -358,15 +354,15 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
358
354
|
city: string;
|
|
359
355
|
postcode: string;
|
|
360
356
|
} | null | undefined;
|
|
361
|
-
email?: string | null | undefined;
|
|
362
|
-
phoneNumber?: string | null | undefined;
|
|
363
357
|
userId?: string | null | undefined;
|
|
364
358
|
legalName?: string | null | undefined;
|
|
365
359
|
identityNo?: string | null | undefined;
|
|
366
360
|
taxCode?: string | null | undefined;
|
|
367
361
|
}, {
|
|
362
|
+
email?: string | null | undefined;
|
|
368
363
|
_id?: string | null | undefined;
|
|
369
364
|
name?: string | null | undefined;
|
|
365
|
+
phoneNumber?: string | null | undefined;
|
|
370
366
|
address?: {
|
|
371
367
|
coordinates?: number[] | null | undefined;
|
|
372
368
|
line2?: string | null | undefined;
|
|
@@ -376,8 +372,6 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
376
372
|
city: string;
|
|
377
373
|
postcode: string;
|
|
378
374
|
} | null | undefined;
|
|
379
|
-
email?: string | null | undefined;
|
|
380
|
-
phoneNumber?: string | null | undefined;
|
|
381
375
|
userId?: string | null | undefined;
|
|
382
376
|
legalName?: string | null | undefined;
|
|
383
377
|
identityNo?: string | null | undefined;
|
|
@@ -387,8 +381,10 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
387
381
|
res: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
388
382
|
}, "strip", z.ZodTypeAny, {
|
|
389
383
|
customer?: {
|
|
384
|
+
email?: string | null | undefined;
|
|
390
385
|
_id?: string | null | undefined;
|
|
391
386
|
name?: string | null | undefined;
|
|
387
|
+
phoneNumber?: string | null | undefined;
|
|
392
388
|
address?: {
|
|
393
389
|
coordinates?: number[] | null | undefined;
|
|
394
390
|
line2?: string | null | undefined;
|
|
@@ -398,8 +394,6 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
398
394
|
city: string;
|
|
399
395
|
postcode: string;
|
|
400
396
|
} | null | undefined;
|
|
401
|
-
email?: string | null | undefined;
|
|
402
|
-
phoneNumber?: string | null | undefined;
|
|
403
397
|
userId?: string | null | undefined;
|
|
404
398
|
legalName?: string | null | undefined;
|
|
405
399
|
identityNo?: string | null | undefined;
|
|
@@ -409,24 +403,25 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
409
403
|
req?: any;
|
|
410
404
|
res?: any;
|
|
411
405
|
_id: string;
|
|
406
|
+
status: "InProgress" | "ReadyToSubmit" | "Valid" | "Invalid";
|
|
407
|
+
submissionDate: string;
|
|
412
408
|
merchant: {
|
|
409
|
+
queryToken?: string | null | undefined;
|
|
413
410
|
phoneNo?: string | null | undefined;
|
|
414
411
|
active?: string | null | undefined;
|
|
415
412
|
schedule?: {
|
|
416
413
|
day: number;
|
|
417
414
|
hour: number;
|
|
418
415
|
} | null | undefined;
|
|
419
|
-
queryToken?: string | null | undefined;
|
|
420
|
-
password?: string | null | undefined;
|
|
421
416
|
appid?: string | null | undefined;
|
|
422
417
|
username?: string | null | undefined;
|
|
418
|
+
password?: string | null | undefined;
|
|
423
419
|
templateId?: string | null | undefined;
|
|
424
420
|
isDev?: boolean | null | undefined;
|
|
425
|
-
|
|
426
|
-
_id: string;
|
|
427
|
-
businessId: string;
|
|
428
|
-
regNo: string;
|
|
421
|
+
email: string;
|
|
429
422
|
tinNo: string;
|
|
423
|
+
_id: string;
|
|
424
|
+
type: "restaurant";
|
|
430
425
|
name: string;
|
|
431
426
|
address: {
|
|
432
427
|
coordinates?: number[] | null | undefined;
|
|
@@ -437,27 +432,26 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
437
432
|
city: string;
|
|
438
433
|
postcode: string;
|
|
439
434
|
};
|
|
440
|
-
|
|
441
|
-
|
|
435
|
+
businessId: string;
|
|
436
|
+
regNo: string;
|
|
442
437
|
restaurantId: string;
|
|
443
438
|
} | {
|
|
439
|
+
queryToken?: string | null | undefined;
|
|
444
440
|
phoneNo?: string | null | undefined;
|
|
445
441
|
active?: string | null | undefined;
|
|
446
442
|
schedule?: {
|
|
447
443
|
day: number;
|
|
448
444
|
hour: number;
|
|
449
445
|
} | null | undefined;
|
|
450
|
-
queryToken?: string | null | undefined;
|
|
451
|
-
password?: string | null | undefined;
|
|
452
446
|
appid?: string | null | undefined;
|
|
453
447
|
username?: string | null | undefined;
|
|
448
|
+
password?: string | null | undefined;
|
|
454
449
|
templateId?: string | null | undefined;
|
|
455
450
|
isDev?: boolean | null | undefined;
|
|
456
|
-
|
|
457
|
-
_id: string;
|
|
458
|
-
businessId: string;
|
|
459
|
-
regNo: string;
|
|
451
|
+
email: string;
|
|
460
452
|
tinNo: string;
|
|
453
|
+
_id: string;
|
|
454
|
+
type: "marketing";
|
|
461
455
|
name: string;
|
|
462
456
|
address: {
|
|
463
457
|
coordinates?: number[] | null | undefined;
|
|
@@ -468,18 +462,18 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
468
462
|
city: string;
|
|
469
463
|
postcode: string;
|
|
470
464
|
};
|
|
471
|
-
|
|
472
|
-
|
|
465
|
+
businessId: string;
|
|
466
|
+
regNo: string;
|
|
473
467
|
};
|
|
474
468
|
ref: string;
|
|
475
|
-
status: "Invalid" | "InProgress" | "Valid" | "ReadyToSubmit";
|
|
476
469
|
submissionUid: string;
|
|
477
|
-
submissionDate: string;
|
|
478
470
|
readyToSubmitDate: string;
|
|
479
471
|
}, {
|
|
480
472
|
customer?: {
|
|
473
|
+
email?: string | null | undefined;
|
|
481
474
|
_id?: string | null | undefined;
|
|
482
475
|
name?: string | null | undefined;
|
|
476
|
+
phoneNumber?: string | null | undefined;
|
|
483
477
|
address?: {
|
|
484
478
|
coordinates?: number[] | null | undefined;
|
|
485
479
|
line2?: string | null | undefined;
|
|
@@ -489,8 +483,6 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
489
483
|
city: string;
|
|
490
484
|
postcode: string;
|
|
491
485
|
} | null | undefined;
|
|
492
|
-
email?: string | null | undefined;
|
|
493
|
-
phoneNumber?: string | null | undefined;
|
|
494
486
|
userId?: string | null | undefined;
|
|
495
487
|
legalName?: string | null | undefined;
|
|
496
488
|
identityNo?: string | null | undefined;
|
|
@@ -500,24 +492,25 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
500
492
|
req?: any;
|
|
501
493
|
res?: any;
|
|
502
494
|
_id: string;
|
|
495
|
+
status: "InProgress" | "ReadyToSubmit" | "Valid" | "Invalid";
|
|
496
|
+
submissionDate: string;
|
|
503
497
|
merchant: {
|
|
498
|
+
queryToken?: string | null | undefined;
|
|
504
499
|
phoneNo?: string | null | undefined;
|
|
505
500
|
active?: string | null | undefined;
|
|
506
501
|
schedule?: {
|
|
507
502
|
day: number;
|
|
508
503
|
hour: number;
|
|
509
504
|
} | null | undefined;
|
|
510
|
-
queryToken?: string | null | undefined;
|
|
511
|
-
password?: string | null | undefined;
|
|
512
505
|
appid?: string | null | undefined;
|
|
513
506
|
username?: string | null | undefined;
|
|
507
|
+
password?: string | null | undefined;
|
|
514
508
|
templateId?: string | null | undefined;
|
|
515
509
|
isDev?: boolean | null | undefined;
|
|
516
|
-
|
|
517
|
-
_id: string;
|
|
518
|
-
businessId: string;
|
|
519
|
-
regNo: string;
|
|
510
|
+
email: string;
|
|
520
511
|
tinNo: string;
|
|
512
|
+
_id: string;
|
|
513
|
+
type: "restaurant";
|
|
521
514
|
name: string;
|
|
522
515
|
address: {
|
|
523
516
|
coordinates?: number[] | null | undefined;
|
|
@@ -528,27 +521,26 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
528
521
|
city: string;
|
|
529
522
|
postcode: string;
|
|
530
523
|
};
|
|
531
|
-
|
|
532
|
-
|
|
524
|
+
businessId: string;
|
|
525
|
+
regNo: string;
|
|
533
526
|
restaurantId: string;
|
|
534
527
|
} | {
|
|
528
|
+
queryToken?: string | null | undefined;
|
|
535
529
|
phoneNo?: string | null | undefined;
|
|
536
530
|
active?: string | null | undefined;
|
|
537
531
|
schedule?: {
|
|
538
532
|
day: number;
|
|
539
533
|
hour: number;
|
|
540
534
|
} | null | undefined;
|
|
541
|
-
queryToken?: string | null | undefined;
|
|
542
|
-
password?: string | null | undefined;
|
|
543
535
|
appid?: string | null | undefined;
|
|
544
536
|
username?: string | null | undefined;
|
|
537
|
+
password?: string | null | undefined;
|
|
545
538
|
templateId?: string | null | undefined;
|
|
546
539
|
isDev?: boolean | null | undefined;
|
|
547
|
-
|
|
548
|
-
_id: string;
|
|
549
|
-
businessId: string;
|
|
550
|
-
regNo: string;
|
|
540
|
+
email: string;
|
|
551
541
|
tinNo: string;
|
|
542
|
+
_id: string;
|
|
543
|
+
type: "marketing";
|
|
552
544
|
name: string;
|
|
553
545
|
address: {
|
|
554
546
|
coordinates?: number[] | null | undefined;
|
|
@@ -559,13 +551,11 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
559
551
|
city: string;
|
|
560
552
|
postcode: string;
|
|
561
553
|
};
|
|
562
|
-
|
|
563
|
-
|
|
554
|
+
businessId: string;
|
|
555
|
+
regNo: string;
|
|
564
556
|
};
|
|
565
557
|
ref: string;
|
|
566
|
-
status: "Invalid" | "InProgress" | "Valid" | "ReadyToSubmit";
|
|
567
558
|
submissionUid: string;
|
|
568
|
-
submissionDate: string;
|
|
569
559
|
readyToSubmitDate: string;
|
|
570
560
|
}>;
|
|
571
561
|
export type FdoVnEInvoiceSubmissionCustomer = z.infer<typeof FdoVnEInvoiceSubmissionCustomer>;
|
|
@@ -14,10 +14,10 @@ export declare const FdtoVnPubSubMessage: z.ZodObject<{
|
|
|
14
14
|
businessId?: string | null | undefined;
|
|
15
15
|
restaurantId: string;
|
|
16
16
|
key: string;
|
|
17
|
-
createdAt: string;
|
|
18
17
|
topic: string;
|
|
19
18
|
bill_id: string;
|
|
20
19
|
publishedAt: string;
|
|
20
|
+
createdAt: string;
|
|
21
21
|
completedAt: string;
|
|
22
22
|
dataflowPublishedAt: string;
|
|
23
23
|
pubsubPublishedAt: string;
|
|
@@ -25,10 +25,10 @@ export declare const FdtoVnPubSubMessage: z.ZodObject<{
|
|
|
25
25
|
businessId?: string | null | undefined;
|
|
26
26
|
restaurantId: string;
|
|
27
27
|
key: string;
|
|
28
|
-
createdAt: string;
|
|
29
28
|
topic: string;
|
|
30
29
|
bill_id: string;
|
|
31
30
|
publishedAt: string;
|
|
31
|
+
createdAt: string;
|
|
32
32
|
completedAt: string;
|
|
33
33
|
dataflowPublishedAt: string;
|
|
34
34
|
pubsubPublishedAt: string;
|
|
@@ -73,8 +73,10 @@ export declare const FdtoVnSubmitEInvoice: z.ZodObject<{
|
|
|
73
73
|
phoneNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
74
74
|
identityNo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
75
75
|
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
email?: string | null | undefined;
|
|
76
77
|
_id?: string | null | undefined;
|
|
77
78
|
name?: string | null | undefined;
|
|
79
|
+
phoneNumber?: string | null | undefined;
|
|
78
80
|
address?: {
|
|
79
81
|
coordinates?: number[] | null | undefined;
|
|
80
82
|
line2?: string | null | undefined;
|
|
@@ -84,15 +86,15 @@ export declare const FdtoVnSubmitEInvoice: z.ZodObject<{
|
|
|
84
86
|
city: string;
|
|
85
87
|
postcode: string;
|
|
86
88
|
} | null | undefined;
|
|
87
|
-
email?: string | null | undefined;
|
|
88
|
-
phoneNumber?: string | null | undefined;
|
|
89
89
|
userId?: string | null | undefined;
|
|
90
90
|
legalName?: string | null | undefined;
|
|
91
91
|
identityNo?: string | null | undefined;
|
|
92
92
|
taxCode?: string | null | undefined;
|
|
93
93
|
}, {
|
|
94
|
+
email?: string | null | undefined;
|
|
94
95
|
_id?: string | null | undefined;
|
|
95
96
|
name?: string | null | undefined;
|
|
97
|
+
phoneNumber?: string | null | undefined;
|
|
96
98
|
address?: {
|
|
97
99
|
coordinates?: number[] | null | undefined;
|
|
98
100
|
line2?: string | null | undefined;
|
|
@@ -102,8 +104,6 @@ export declare const FdtoVnSubmitEInvoice: z.ZodObject<{
|
|
|
102
104
|
city: string;
|
|
103
105
|
postcode: string;
|
|
104
106
|
} | null | undefined;
|
|
105
|
-
email?: string | null | undefined;
|
|
106
|
-
phoneNumber?: string | null | undefined;
|
|
107
107
|
userId?: string | null | undefined;
|
|
108
108
|
legalName?: string | null | undefined;
|
|
109
109
|
identityNo?: string | null | undefined;
|
|
@@ -114,8 +114,10 @@ export declare const FdtoVnSubmitEInvoice: z.ZodObject<{
|
|
|
114
114
|
businessId?: string | null | undefined;
|
|
115
115
|
restaurantId?: string | null | undefined;
|
|
116
116
|
customer?: {
|
|
117
|
+
email?: string | null | undefined;
|
|
117
118
|
_id?: string | null | undefined;
|
|
118
119
|
name?: string | null | undefined;
|
|
120
|
+
phoneNumber?: string | null | undefined;
|
|
119
121
|
address?: {
|
|
120
122
|
coordinates?: number[] | null | undefined;
|
|
121
123
|
line2?: string | null | undefined;
|
|
@@ -125,8 +127,6 @@ export declare const FdtoVnSubmitEInvoice: z.ZodObject<{
|
|
|
125
127
|
city: string;
|
|
126
128
|
postcode: string;
|
|
127
129
|
} | null | undefined;
|
|
128
|
-
email?: string | null | undefined;
|
|
129
|
-
phoneNumber?: string | null | undefined;
|
|
130
130
|
userId?: string | null | undefined;
|
|
131
131
|
legalName?: string | null | undefined;
|
|
132
132
|
identityNo?: string | null | undefined;
|
|
@@ -138,8 +138,10 @@ export declare const FdtoVnSubmitEInvoice: z.ZodObject<{
|
|
|
138
138
|
businessId?: string | null | undefined;
|
|
139
139
|
restaurantId?: string | null | undefined;
|
|
140
140
|
customer?: {
|
|
141
|
+
email?: string | null | undefined;
|
|
141
142
|
_id?: string | null | undefined;
|
|
142
143
|
name?: string | null | undefined;
|
|
144
|
+
phoneNumber?: string | null | undefined;
|
|
143
145
|
address?: {
|
|
144
146
|
coordinates?: number[] | null | undefined;
|
|
145
147
|
line2?: string | null | undefined;
|
|
@@ -149,8 +151,6 @@ export declare const FdtoVnSubmitEInvoice: z.ZodObject<{
|
|
|
149
151
|
city: string;
|
|
150
152
|
postcode: string;
|
|
151
153
|
} | null | undefined;
|
|
152
|
-
email?: string | null | undefined;
|
|
153
|
-
phoneNumber?: string | null | undefined;
|
|
154
154
|
userId?: string | null | undefined;
|
|
155
155
|
legalName?: string | null | undefined;
|
|
156
156
|
identityNo?: string | null | undefined;
|
|
@@ -172,25 +172,25 @@ export declare const FdtoBillCompletedEvent: z.ZodObject<{
|
|
|
172
172
|
}, "strip", z.ZodTypeAny, {
|
|
173
173
|
businessId: string;
|
|
174
174
|
restaurantId: string;
|
|
175
|
+
billId: string;
|
|
175
176
|
key: string;
|
|
176
|
-
createdAt: string;
|
|
177
177
|
topic: string;
|
|
178
178
|
publishedAt: string;
|
|
179
|
+
createdAt: string;
|
|
179
180
|
completedAt: string;
|
|
180
181
|
dataflowPublishedAt: string;
|
|
181
182
|
pubsubPublishedAt: string;
|
|
182
|
-
billId: string;
|
|
183
183
|
}, {
|
|
184
184
|
businessId: string;
|
|
185
185
|
restaurantId: string;
|
|
186
|
+
billId: string;
|
|
186
187
|
key: string;
|
|
187
|
-
createdAt: string;
|
|
188
188
|
topic: string;
|
|
189
189
|
publishedAt: string;
|
|
190
|
+
createdAt: string;
|
|
190
191
|
completedAt: string;
|
|
191
192
|
dataflowPublishedAt: string;
|
|
192
193
|
pubsubPublishedAt: string;
|
|
193
|
-
billId: string;
|
|
194
194
|
}>;
|
|
195
195
|
export type FdtoVnPubSubMessage = z.infer<typeof FdtoVnPubSubMessage>;
|
|
196
196
|
export type FdtoVnSubmitEInvoice = z.infer<typeof FdtoVnSubmitEInvoice>;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { F_E_INVOICE_MERCHANT_TYPE, FdoMyEInvoiceMarketingProfile, FdoMyEInvoiceMerchantProfile, FdoMyEInvoiceRestaurantProfile, FdoThEInvoiceMarketingProfile } from "@feedmepos/core/entity";
|
|
2
|
+
import type { FdoThEInvoiceMerchantProfile, FdoThEInvoiceRestaurantProfile } from "./type/thailand";
|
|
3
|
+
import type { FdoVnEInvoiceMarketingProfile, FdoVnEInvoiceMerchantProfile, FdoVnEInvoiceRestaurantProfile } from "./type/vietnam";
|
|
2
4
|
type BaseMerchantEInvoice = {
|
|
3
5
|
id: string;
|
|
4
6
|
name: string;
|
|
@@ -8,16 +10,16 @@ type BaseMerchantEInvoice = {
|
|
|
8
10
|
[key: string]: string;
|
|
9
11
|
};
|
|
10
12
|
type: F_E_INVOICE_MERCHANT_TYPE;
|
|
11
|
-
profile: FdoMyEInvoiceMerchantProfile | null;
|
|
13
|
+
profile: FdoMyEInvoiceMerchantProfile | FdoVnEInvoiceMerchantProfile | FdoThEInvoiceMerchantProfile | null;
|
|
12
14
|
};
|
|
13
15
|
export type RestaurantEInvoice = BaseMerchantEInvoice & {
|
|
14
16
|
type: typeof F_E_INVOICE_MERCHANT_TYPE.enum.restaurant;
|
|
15
|
-
profile: FdoMyEInvoiceRestaurantProfile;
|
|
17
|
+
profile: FdoMyEInvoiceRestaurantProfile | FdoVnEInvoiceRestaurantProfile | FdoThEInvoiceRestaurantProfile;
|
|
16
18
|
};
|
|
17
19
|
export type MarketingEInvoice = BaseMerchantEInvoice & {
|
|
18
20
|
type: typeof F_E_INVOICE_MERCHANT_TYPE.enum.marketing;
|
|
19
21
|
businessId: string;
|
|
20
|
-
profile: FdoMyEInvoiceMarketingProfile;
|
|
22
|
+
profile: FdoMyEInvoiceMarketingProfile | FdoVnEInvoiceMarketingProfile | FdoThEInvoiceMarketingProfile;
|
|
21
23
|
};
|
|
22
24
|
export type MerchantEInvoice = RestaurantEInvoice | MarketingEInvoice;
|
|
23
25
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { FdoThEInvoiceMerchantProfile } from "@/type/thailand/e-invoice-profile.do";
|
|
2
2
|
declare function showDialog(initialValue: FdoThEInvoiceMerchantProfile): void;
|
|
3
3
|
declare function hideDialog(): void;
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type { FdoThEInvoiceMarketingProfile, FdoThEInvoiceRestaurantProfile
|
|
1
|
+
import type { FdoThEInvoiceMarketingProfile, FdoThEInvoiceRestaurantProfile } from "@/type";
|
|
2
|
+
import type { FdoRestaurant, FdoStoreOption } from "@feedmepos/core/entity";
|
|
2
3
|
export declare function initThailandRestaurantProfile(restaurant: FdoRestaurant): FdoThEInvoiceRestaurantProfile;
|
|
3
4
|
export declare function initThailandMarketingProfile(businessId: string, store?: FdoStoreOption): FdoThEInvoiceMarketingProfile;
|
|
@@ -4,5 +4,5 @@ export declare function formatThailandSubmission(submission: FdoThEInvoiceSubmis
|
|
|
4
4
|
export declare function exportThailandSubmission(submissions: FdoThEInvoiceSubmission[], dateRange: {
|
|
5
5
|
startDate: string;
|
|
6
6
|
endDate: string;
|
|
7
|
-
}): void
|
|
7
|
+
}): Promise<void>;
|
|
8
8
|
export declare function formatDocument(submission: FdoThEInvoiceSubmission): SubmissionDocument;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AnyEInvoiceSubmission } from "@/api";
|
|
2
|
-
import { FdoRestaurant, FdoStoreOption,
|
|
2
|
+
import { FdoRestaurant, FdoStoreOption, type FdoThEInvoiceSubmission } from "@feedmepos/core/entity";
|
|
3
3
|
import { EInvoiceManager, type Submission } from "../manager";
|
|
4
|
+
import type { FdoThEInvoiceMarketingProfile, FdoThEInvoiceRestaurantProfile } from "@/type";
|
|
4
5
|
declare class ThailandManager extends EInvoiceManager {
|
|
5
6
|
get settingDialogComponent(): import("vue").DefineComponent<{}, {
|
|
6
7
|
show: () => void;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare function showDialog(initialValue:
|
|
3
|
-
appid: string;
|
|
4
|
-
username: string;
|
|
5
|
-
password: string;
|
|
6
|
-
templateId: string;
|
|
7
|
-
}): void;
|
|
1
|
+
import type { FdoVnEInvoiceMerchantProfile } from "@/type";
|
|
2
|
+
declare function showDialog(initialValue: FdoVnEInvoiceMerchantProfile): void;
|
|
8
3
|
declare function hideDialog(): void;
|
|
9
4
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
10
5
|
show: typeof showDialog;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { FdoVnEInvoiceMarketingProfile, FdoVnEInvoiceRestaurantProfile } from "@/type";
|
|
2
|
+
import type { FdoRestaurant, FdoStoreOption } from "@feedmepos/core/entity";
|
|
3
|
+
export declare function initVietnamRestaurantProfile(restaurant: FdoRestaurant): FdoVnEInvoiceRestaurantProfile & {
|
|
3
4
|
appid: string;
|
|
4
5
|
username: string;
|
|
5
6
|
password: string;
|
|
6
7
|
};
|
|
7
|
-
export declare function initVietnamMarketingProfile(businessId: string, store?: FdoStoreOption):
|
|
8
|
+
export declare function initVietnamMarketingProfile(businessId: string, store?: FdoStoreOption): FdoVnEInvoiceMarketingProfile & {
|
|
8
9
|
appid: string;
|
|
9
10
|
username: string;
|
|
10
11
|
password: string;
|