@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.
@@ -0,0 +1,572 @@
1
+ import { z } from 'zod';
2
+ export declare const FdoVnEInvoiceSubmissionCustomer: z.ZodObject<{
3
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5
+ address: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6
+ line1: z.ZodString;
7
+ line2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8
+ state: z.ZodString;
9
+ city: z.ZodString;
10
+ postcode: z.ZodString;
11
+ country: z.ZodString;
12
+ coordinates: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ coordinates?: number[] | null | undefined;
15
+ line2?: string | null | undefined;
16
+ state: string;
17
+ country: string;
18
+ line1: string;
19
+ city: string;
20
+ postcode: string;
21
+ }, {
22
+ coordinates?: number[] | null | undefined;
23
+ line2?: string | null | undefined;
24
+ state: string;
25
+ country: string;
26
+ line1: string;
27
+ city: string;
28
+ postcode: string;
29
+ }>>>;
30
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
31
+ legalName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
32
+ email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
33
+ taxCode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
34
+ phoneNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
35
+ identityNo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ _id?: string | null | undefined;
38
+ name?: string | null | undefined;
39
+ address?: {
40
+ coordinates?: number[] | null | undefined;
41
+ line2?: string | null | undefined;
42
+ state: string;
43
+ country: string;
44
+ line1: string;
45
+ city: string;
46
+ postcode: string;
47
+ } | null | undefined;
48
+ email?: string | null | undefined;
49
+ phoneNumber?: string | null | undefined;
50
+ userId?: string | null | undefined;
51
+ legalName?: string | null | undefined;
52
+ identityNo?: string | null | undefined;
53
+ taxCode?: string | null | undefined;
54
+ }, {
55
+ _id?: string | null | undefined;
56
+ name?: string | null | undefined;
57
+ address?: {
58
+ coordinates?: number[] | null | undefined;
59
+ line2?: string | null | undefined;
60
+ state: string;
61
+ country: string;
62
+ line1: string;
63
+ city: string;
64
+ postcode: string;
65
+ } | null | undefined;
66
+ email?: string | null | undefined;
67
+ phoneNumber?: string | null | undefined;
68
+ userId?: string | null | undefined;
69
+ legalName?: string | null | undefined;
70
+ identityNo?: string | null | undefined;
71
+ taxCode?: string | null | undefined;
72
+ }>;
73
+ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
74
+ _id: z.ZodEffects<z.ZodString, string, string>;
75
+ ref: z.ZodString;
76
+ submissionUid: z.ZodString;
77
+ readyToSubmitDate: z.ZodEffects<z.ZodString, string, string>;
78
+ submissionDate: z.ZodEffects<z.ZodString, string, string>;
79
+ status: z.ZodEnum<["InProgress", "ReadyToSubmit", "Valid", "Invalid"]>;
80
+ invoice: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
81
+ merchant: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<z.extendShape<{
82
+ _id: z.ZodEffects<z.ZodString, string, string>;
83
+ type: z.ZodEnum<["restaurant", "marketing"]>;
84
+ businessId: z.ZodString;
85
+ regNo: z.ZodString;
86
+ tinNo: z.ZodString;
87
+ name: z.ZodString;
88
+ address: z.ZodObject<{
89
+ line1: z.ZodString;
90
+ line2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
91
+ state: z.ZodString;
92
+ city: z.ZodString;
93
+ postcode: z.ZodString;
94
+ country: z.ZodString;
95
+ coordinates: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
96
+ }, "strip", z.ZodTypeAny, {
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
+ }, {
105
+ coordinates?: number[] | null | undefined;
106
+ line2?: string | null | undefined;
107
+ state: string;
108
+ country: string;
109
+ line1: string;
110
+ city: string;
111
+ postcode: string;
112
+ }>;
113
+ phoneNo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
114
+ }, {
115
+ active: z.ZodNullable<z.ZodOptional<z.ZodString>>;
116
+ sstRegNo: z.ZodString;
117
+ email: z.ZodString;
118
+ schedule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
119
+ day: z.ZodNumber;
120
+ hour: z.ZodNumber;
121
+ }, "strip", z.ZodTypeAny, {
122
+ day: number;
123
+ hour: number;
124
+ }, {
125
+ day: number;
126
+ hour: number;
127
+ }>>>;
128
+ queryToken: z.ZodNullable<z.ZodOptional<z.ZodString>>;
129
+ }>, {
130
+ type: z.ZodLiteral<"restaurant">;
131
+ restaurantId: z.ZodString;
132
+ appid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
133
+ username: z.ZodNullable<z.ZodOptional<z.ZodString>>;
134
+ password: z.ZodNullable<z.ZodOptional<z.ZodString>>;
135
+ templateId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
136
+ isDev: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
137
+ }>, "strip", z.ZodTypeAny, {
138
+ phoneNo?: string | null | undefined;
139
+ active?: string | null | undefined;
140
+ schedule?: {
141
+ day: number;
142
+ hour: number;
143
+ } | null | undefined;
144
+ queryToken?: string | null | undefined;
145
+ password?: string | null | undefined;
146
+ appid?: string | null | undefined;
147
+ username?: string | null | undefined;
148
+ templateId?: string | null | undefined;
149
+ isDev?: boolean | null | undefined;
150
+ type: "restaurant";
151
+ _id: string;
152
+ businessId: string;
153
+ regNo: string;
154
+ tinNo: string;
155
+ name: string;
156
+ address: {
157
+ coordinates?: number[] | null | undefined;
158
+ line2?: string | null | undefined;
159
+ state: string;
160
+ country: string;
161
+ line1: string;
162
+ city: string;
163
+ postcode: string;
164
+ };
165
+ sstRegNo: string;
166
+ email: string;
167
+ restaurantId: string;
168
+ }, {
169
+ phoneNo?: string | null | undefined;
170
+ active?: string | null | undefined;
171
+ schedule?: {
172
+ day: number;
173
+ hour: number;
174
+ } | null | undefined;
175
+ queryToken?: string | null | undefined;
176
+ password?: string | null | undefined;
177
+ appid?: string | null | undefined;
178
+ username?: string | null | undefined;
179
+ templateId?: string | null | undefined;
180
+ isDev?: boolean | null | undefined;
181
+ type: "restaurant";
182
+ _id: string;
183
+ businessId: string;
184
+ regNo: string;
185
+ tinNo: string;
186
+ name: string;
187
+ address: {
188
+ coordinates?: number[] | null | undefined;
189
+ line2?: string | null | undefined;
190
+ state: string;
191
+ country: string;
192
+ line1: string;
193
+ city: string;
194
+ postcode: string;
195
+ };
196
+ sstRegNo: string;
197
+ email: string;
198
+ restaurantId: string;
199
+ }> | z.ZodObject<z.extendShape<z.extendShape<{
200
+ _id: z.ZodEffects<z.ZodString, string, string>;
201
+ type: z.ZodEnum<["restaurant", "marketing"]>;
202
+ businessId: z.ZodString;
203
+ regNo: z.ZodString;
204
+ tinNo: z.ZodString;
205
+ name: z.ZodString;
206
+ address: z.ZodObject<{
207
+ line1: z.ZodString;
208
+ line2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
209
+ state: z.ZodString;
210
+ city: z.ZodString;
211
+ postcode: z.ZodString;
212
+ country: z.ZodString;
213
+ coordinates: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
214
+ }, "strip", z.ZodTypeAny, {
215
+ coordinates?: number[] | null | undefined;
216
+ line2?: string | null | undefined;
217
+ state: string;
218
+ country: string;
219
+ line1: string;
220
+ city: string;
221
+ postcode: string;
222
+ }, {
223
+ coordinates?: number[] | null | undefined;
224
+ line2?: string | null | undefined;
225
+ state: string;
226
+ country: string;
227
+ line1: string;
228
+ city: string;
229
+ postcode: string;
230
+ }>;
231
+ phoneNo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
232
+ }, {
233
+ active: z.ZodNullable<z.ZodOptional<z.ZodString>>;
234
+ sstRegNo: z.ZodString;
235
+ email: z.ZodString;
236
+ schedule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
237
+ day: z.ZodNumber;
238
+ hour: z.ZodNumber;
239
+ }, "strip", z.ZodTypeAny, {
240
+ day: number;
241
+ hour: number;
242
+ }, {
243
+ day: number;
244
+ hour: number;
245
+ }>>>;
246
+ queryToken: z.ZodNullable<z.ZodOptional<z.ZodString>>;
247
+ }>, {
248
+ type: z.ZodLiteral<"marketing">;
249
+ appid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
250
+ username: z.ZodNullable<z.ZodOptional<z.ZodString>>;
251
+ password: z.ZodNullable<z.ZodOptional<z.ZodString>>;
252
+ templateId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
253
+ isDev: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
254
+ }>, "strip", z.ZodTypeAny, {
255
+ phoneNo?: string | null | undefined;
256
+ active?: string | null | undefined;
257
+ schedule?: {
258
+ day: number;
259
+ hour: number;
260
+ } | null | undefined;
261
+ queryToken?: string | null | undefined;
262
+ password?: string | null | undefined;
263
+ appid?: string | null | undefined;
264
+ username?: string | null | undefined;
265
+ templateId?: string | null | undefined;
266
+ isDev?: boolean | null | undefined;
267
+ type: "marketing";
268
+ _id: string;
269
+ businessId: string;
270
+ regNo: string;
271
+ tinNo: string;
272
+ name: string;
273
+ address: {
274
+ coordinates?: number[] | null | undefined;
275
+ line2?: string | null | undefined;
276
+ state: string;
277
+ country: string;
278
+ line1: string;
279
+ city: string;
280
+ postcode: string;
281
+ };
282
+ sstRegNo: string;
283
+ email: string;
284
+ }, {
285
+ phoneNo?: string | null | undefined;
286
+ active?: string | null | undefined;
287
+ schedule?: {
288
+ day: number;
289
+ hour: number;
290
+ } | null | undefined;
291
+ queryToken?: string | null | undefined;
292
+ password?: string | null | undefined;
293
+ appid?: string | null | undefined;
294
+ username?: string | null | undefined;
295
+ templateId?: string | null | undefined;
296
+ isDev?: boolean | null | undefined;
297
+ type: "marketing";
298
+ _id: string;
299
+ businessId: string;
300
+ regNo: string;
301
+ tinNo: string;
302
+ name: string;
303
+ address: {
304
+ coordinates?: number[] | null | undefined;
305
+ line2?: string | null | undefined;
306
+ state: string;
307
+ country: string;
308
+ line1: string;
309
+ city: string;
310
+ postcode: string;
311
+ };
312
+ sstRegNo: string;
313
+ email: string;
314
+ }>>;
315
+ customer: z.ZodNullable<z.ZodOptional<z.ZodObject<{
316
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
317
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
318
+ address: z.ZodNullable<z.ZodOptional<z.ZodObject<{
319
+ line1: z.ZodString;
320
+ line2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
321
+ state: z.ZodString;
322
+ city: z.ZodString;
323
+ postcode: z.ZodString;
324
+ country: z.ZodString;
325
+ coordinates: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
326
+ }, "strip", z.ZodTypeAny, {
327
+ coordinates?: number[] | null | undefined;
328
+ line2?: string | null | undefined;
329
+ state: string;
330
+ country: string;
331
+ line1: string;
332
+ city: string;
333
+ postcode: string;
334
+ }, {
335
+ coordinates?: number[] | null | undefined;
336
+ line2?: string | null | undefined;
337
+ state: string;
338
+ country: string;
339
+ line1: string;
340
+ city: string;
341
+ postcode: string;
342
+ }>>>;
343
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
344
+ legalName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
345
+ email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
346
+ taxCode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
347
+ phoneNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
348
+ identityNo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
349
+ }, "strip", z.ZodTypeAny, {
350
+ _id?: string | null | undefined;
351
+ name?: string | null | undefined;
352
+ address?: {
353
+ coordinates?: number[] | null | undefined;
354
+ line2?: string | null | undefined;
355
+ state: string;
356
+ country: string;
357
+ line1: string;
358
+ city: string;
359
+ postcode: string;
360
+ } | null | undefined;
361
+ email?: string | null | undefined;
362
+ phoneNumber?: string | null | undefined;
363
+ userId?: string | null | undefined;
364
+ legalName?: string | null | undefined;
365
+ identityNo?: string | null | undefined;
366
+ taxCode?: string | null | undefined;
367
+ }, {
368
+ _id?: string | null | undefined;
369
+ name?: string | null | undefined;
370
+ address?: {
371
+ coordinates?: number[] | null | undefined;
372
+ line2?: string | null | undefined;
373
+ state: string;
374
+ country: string;
375
+ line1: string;
376
+ city: string;
377
+ postcode: string;
378
+ } | null | undefined;
379
+ email?: string | null | undefined;
380
+ phoneNumber?: string | null | undefined;
381
+ userId?: string | null | undefined;
382
+ legalName?: string | null | undefined;
383
+ identityNo?: string | null | undefined;
384
+ taxCode?: string | null | undefined;
385
+ }>>>;
386
+ req: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
387
+ res: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
388
+ }, "strip", z.ZodTypeAny, {
389
+ customer?: {
390
+ _id?: string | null | undefined;
391
+ name?: string | null | undefined;
392
+ address?: {
393
+ coordinates?: number[] | null | undefined;
394
+ line2?: string | null | undefined;
395
+ state: string;
396
+ country: string;
397
+ line1: string;
398
+ city: string;
399
+ postcode: string;
400
+ } | null | undefined;
401
+ email?: string | null | undefined;
402
+ phoneNumber?: string | null | undefined;
403
+ userId?: string | null | undefined;
404
+ legalName?: string | null | undefined;
405
+ identityNo?: string | null | undefined;
406
+ taxCode?: string | null | undefined;
407
+ } | null | undefined;
408
+ invoice?: any;
409
+ req?: any;
410
+ res?: any;
411
+ _id: string;
412
+ merchant: {
413
+ phoneNo?: string | null | undefined;
414
+ active?: string | null | undefined;
415
+ schedule?: {
416
+ day: number;
417
+ hour: number;
418
+ } | null | undefined;
419
+ queryToken?: string | null | undefined;
420
+ password?: string | null | undefined;
421
+ appid?: string | null | undefined;
422
+ username?: string | null | undefined;
423
+ templateId?: string | null | undefined;
424
+ isDev?: boolean | null | undefined;
425
+ type: "restaurant";
426
+ _id: string;
427
+ businessId: string;
428
+ regNo: string;
429
+ tinNo: string;
430
+ name: string;
431
+ address: {
432
+ coordinates?: number[] | null | undefined;
433
+ line2?: string | null | undefined;
434
+ state: string;
435
+ country: string;
436
+ line1: string;
437
+ city: string;
438
+ postcode: string;
439
+ };
440
+ sstRegNo: string;
441
+ email: string;
442
+ restaurantId: string;
443
+ } | {
444
+ phoneNo?: string | null | undefined;
445
+ active?: string | null | undefined;
446
+ schedule?: {
447
+ day: number;
448
+ hour: number;
449
+ } | null | undefined;
450
+ queryToken?: string | null | undefined;
451
+ password?: string | null | undefined;
452
+ appid?: string | null | undefined;
453
+ username?: string | null | undefined;
454
+ templateId?: string | null | undefined;
455
+ isDev?: boolean | null | undefined;
456
+ type: "marketing";
457
+ _id: string;
458
+ businessId: string;
459
+ regNo: string;
460
+ tinNo: string;
461
+ name: string;
462
+ address: {
463
+ coordinates?: number[] | null | undefined;
464
+ line2?: string | null | undefined;
465
+ state: string;
466
+ country: string;
467
+ line1: string;
468
+ city: string;
469
+ postcode: string;
470
+ };
471
+ sstRegNo: string;
472
+ email: string;
473
+ };
474
+ ref: string;
475
+ status: "Invalid" | "InProgress" | "Valid" | "ReadyToSubmit";
476
+ submissionUid: string;
477
+ submissionDate: string;
478
+ readyToSubmitDate: string;
479
+ }, {
480
+ customer?: {
481
+ _id?: string | null | undefined;
482
+ name?: string | null | undefined;
483
+ address?: {
484
+ coordinates?: number[] | null | undefined;
485
+ line2?: string | null | undefined;
486
+ state: string;
487
+ country: string;
488
+ line1: string;
489
+ city: string;
490
+ postcode: string;
491
+ } | null | undefined;
492
+ email?: string | null | undefined;
493
+ phoneNumber?: string | null | undefined;
494
+ userId?: string | null | undefined;
495
+ legalName?: string | null | undefined;
496
+ identityNo?: string | null | undefined;
497
+ taxCode?: string | null | undefined;
498
+ } | null | undefined;
499
+ invoice?: any;
500
+ req?: any;
501
+ res?: any;
502
+ _id: string;
503
+ merchant: {
504
+ phoneNo?: string | null | undefined;
505
+ active?: string | null | undefined;
506
+ schedule?: {
507
+ day: number;
508
+ hour: number;
509
+ } | null | undefined;
510
+ queryToken?: string | null | undefined;
511
+ password?: string | null | undefined;
512
+ appid?: string | null | undefined;
513
+ username?: string | null | undefined;
514
+ templateId?: string | null | undefined;
515
+ isDev?: boolean | null | undefined;
516
+ type: "restaurant";
517
+ _id: string;
518
+ businessId: string;
519
+ regNo: string;
520
+ tinNo: string;
521
+ name: string;
522
+ address: {
523
+ coordinates?: number[] | null | undefined;
524
+ line2?: string | null | undefined;
525
+ state: string;
526
+ country: string;
527
+ line1: string;
528
+ city: string;
529
+ postcode: string;
530
+ };
531
+ sstRegNo: string;
532
+ email: string;
533
+ restaurantId: string;
534
+ } | {
535
+ phoneNo?: string | null | undefined;
536
+ active?: string | null | undefined;
537
+ schedule?: {
538
+ day: number;
539
+ hour: number;
540
+ } | null | undefined;
541
+ queryToken?: string | null | undefined;
542
+ password?: string | null | undefined;
543
+ appid?: string | null | undefined;
544
+ username?: string | null | undefined;
545
+ templateId?: string | null | undefined;
546
+ isDev?: boolean | null | undefined;
547
+ type: "marketing";
548
+ _id: string;
549
+ businessId: string;
550
+ regNo: string;
551
+ tinNo: string;
552
+ name: string;
553
+ address: {
554
+ coordinates?: number[] | null | undefined;
555
+ line2?: string | null | undefined;
556
+ state: string;
557
+ country: string;
558
+ line1: string;
559
+ city: string;
560
+ postcode: string;
561
+ };
562
+ sstRegNo: string;
563
+ email: string;
564
+ };
565
+ ref: string;
566
+ status: "Invalid" | "InProgress" | "Valid" | "ReadyToSubmit";
567
+ submissionUid: string;
568
+ submissionDate: string;
569
+ readyToSubmitDate: string;
570
+ }>;
571
+ export type FdoVnEInvoiceSubmissionCustomer = z.infer<typeof FdoVnEInvoiceSubmissionCustomer>;
572
+ export type FdoVnEInvoiceSubmission = z.infer<typeof FdoVnEInvoiceSubmission>;