makeapps-transformer 1.0.0

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.
Files changed (174) hide show
  1. package/.vscode/settings.json +3 -0
  2. package/dist/index.d.ts +7 -0
  3. package/dist/index.js +4 -0
  4. package/dist/lib-public/FA3-generator.js +50 -0
  5. package/dist/lib-public/enums/invoice.enums.js +9 -0
  6. package/dist/lib-public/generate-invoice.js +21 -0
  7. package/dist/lib-public/generators/FA2/Adnotacje.js +174 -0
  8. package/dist/lib-public/generators/FA2/Adres.js +23 -0
  9. package/dist/lib-public/generators/FA2/DodatkoweInformacje.js +69 -0
  10. package/dist/lib-public/generators/FA2/Platnosc.js +91 -0
  11. package/dist/lib-public/generators/FA2/Podmiot1.js +32 -0
  12. package/dist/lib-public/generators/FA2/Podmiot1Podmiot1K.js +63 -0
  13. package/dist/lib-public/generators/FA2/Podmiot2.js +28 -0
  14. package/dist/lib-public/generators/FA2/Podmiot2Podmiot2k.js +62 -0
  15. package/dist/lib-public/generators/FA2/Podmiot3.js +37 -0
  16. package/dist/lib-public/generators/FA2/Podmiot3Podmiot2k.js +57 -0
  17. package/dist/lib-public/generators/FA2/PodmiotAdres.js +14 -0
  18. package/dist/lib-public/generators/FA2/PodmiotDaneIdentyfikacyjneTPodmiot1Dto.js +10 -0
  19. package/dist/lib-public/generators/FA2/PodmiotDaneIdentyfikacyjneTPodmiot2Dto.js +34 -0
  20. package/dist/lib-public/generators/FA2/PodmiotDaneIdentyfikacyjneTPodmiot3Dto.js +44 -0
  21. package/dist/lib-public/generators/FA2/PodmiotDaneKontaktowe.js +13 -0
  22. package/dist/lib-public/generators/FA2/PodmiotUpowazniony.js +29 -0
  23. package/dist/lib-public/generators/FA2/PodmiotUpowaznionyDaneKontaktowe.js +28 -0
  24. package/dist/lib-public/generators/FA2/Podmioty.js +92 -0
  25. package/dist/lib-public/generators/FA2/PodsumowanieStawekPodatkuVat.js +260 -0
  26. package/dist/lib-public/generators/FA2/Przewoznik.js +17 -0
  27. package/dist/lib-public/generators/FA2/Rabat.js +57 -0
  28. package/dist/lib-public/generators/FA2/RachunekBankowy.js +54 -0
  29. package/dist/lib-public/generators/FA2/Szczegoly.js +138 -0
  30. package/dist/lib-public/generators/FA2/Transport.js +78 -0
  31. package/dist/lib-public/generators/FA2/WarunkiTransakcji.js +68 -0
  32. package/dist/lib-public/generators/FA2/Wiersze.js +140 -0
  33. package/dist/lib-public/generators/FA2/Zamowienie.js +148 -0
  34. package/dist/lib-public/generators/FA3/Adnotacje.js +185 -0
  35. package/dist/lib-public/generators/FA3/Adres.js +23 -0
  36. package/dist/lib-public/generators/FA3/DodatkoweInformacje.js +69 -0
  37. package/dist/lib-public/generators/FA3/Platnosc.js +105 -0
  38. package/dist/lib-public/generators/FA3/Podmiot1.js +32 -0
  39. package/dist/lib-public/generators/FA3/Podmiot1Podmiot1K.js +67 -0
  40. package/dist/lib-public/generators/FA3/Podmiot2.js +34 -0
  41. package/dist/lib-public/generators/FA3/Podmiot2Podmiot2k.js +49 -0
  42. package/dist/lib-public/generators/FA3/Podmiot3.js +37 -0
  43. package/dist/lib-public/generators/FA3/Podmiot3Podmiot2k.js +57 -0
  44. package/dist/lib-public/generators/FA3/PodmiotAdres.js +14 -0
  45. package/dist/lib-public/generators/FA3/PodmiotDaneIdentyfikacyjneTPodmiot1Dto.js +10 -0
  46. package/dist/lib-public/generators/FA3/PodmiotDaneIdentyfikacyjneTPodmiot2Dto.js +34 -0
  47. package/dist/lib-public/generators/FA3/PodmiotDaneIdentyfikacyjneTPodmiot3Dto.js +44 -0
  48. package/dist/lib-public/generators/FA3/PodmiotDaneKontaktowe.js +13 -0
  49. package/dist/lib-public/generators/FA3/PodmiotUpowazniony.js +29 -0
  50. package/dist/lib-public/generators/FA3/PodmiotUpowaznionyDaneKontaktowe.js +28 -0
  51. package/dist/lib-public/generators/FA3/Podmioty.js +92 -0
  52. package/dist/lib-public/generators/FA3/PodsumowanieStawekPodatkuVat.js +264 -0
  53. package/dist/lib-public/generators/FA3/Przewoznik.js +17 -0
  54. package/dist/lib-public/generators/FA3/Rabat.js +57 -0
  55. package/dist/lib-public/generators/FA3/RachunekBankowy.js +58 -0
  56. package/dist/lib-public/generators/FA3/Szczegoly.js +138 -0
  57. package/dist/lib-public/generators/FA3/Transport.js +78 -0
  58. package/dist/lib-public/generators/FA3/WarunkiTransakcji.js +68 -0
  59. package/dist/lib-public/generators/FA3/Wiersze.js +140 -0
  60. package/dist/lib-public/generators/FA3/Zamowienie.js +148 -0
  61. package/dist/lib-public/generators/common/DaneFaKorygowanej.js +74 -0
  62. package/dist/lib-public/generators/common/Naglowek.js +100 -0
  63. package/dist/lib-public/generators/common/Rozliczenie.js +120 -0
  64. package/dist/lib-public/generators/common/Stopka.js +113 -0
  65. package/dist/lib-public/generators/common/Wiersze.js +28 -0
  66. package/dist/lib-public/generators/common/Zalaczniki.js +182 -0
  67. package/dist/lib-public/index.js +5 -0
  68. package/dist/lib-public/types/common.types.js +2 -0
  69. package/dist/lib-public/types/fa1-additional-types.js +2 -0
  70. package/dist/lib-public/types/fa1.types.js +2 -0
  71. package/dist/lib-public/types/fa2-additional-types.js +2 -0
  72. package/dist/lib-public/types/fa2.types.js +2 -0
  73. package/dist/lib-public/types/fa2Podmiot3DaneIdentyfikacyjne.types.js +2 -0
  74. package/dist/lib-public/types/fa3.types.js +2 -0
  75. package/dist/lib-public/types/fa3Podmiot3DaneIdentyfikacyjne.types.js +2 -0
  76. package/dist/lib-public/types/tax-summary.types.js +2 -0
  77. package/dist/lib-public/types/upo-v4_2.types.js +2 -0
  78. package/dist/shared/PDF-functions.js +429 -0
  79. package/dist/shared/XML-parser.js +21 -0
  80. package/dist/shared/consts/const.js +390 -0
  81. package/dist/shared/enums/common.enum.js +48 -0
  82. package/dist/shared/enums/invoice.enums.js +13 -0
  83. package/dist/shared/generators/common/functions.js +95 -0
  84. package/dist/shared/types/additional-data.types.js +2 -0
  85. package/dist/shared/types/pdf-types.js +2 -0
  86. package/dist/shared/types/universal.types.js +2 -0
  87. package/package.json +21 -0
  88. package/src/index.d.ts +7 -0
  89. package/src/index.ts +2 -0
  90. package/src/lib-public/FA3-generator.ts +56 -0
  91. package/src/lib-public/enums/invoice.enums.ts +5 -0
  92. package/src/lib-public/generate-invoice.ts +32 -0
  93. package/src/lib-public/generators/FA2/Adnotacje.ts +206 -0
  94. package/src/lib-public/generators/FA2/Adres.ts +20 -0
  95. package/src/lib-public/generators/FA2/DodatkoweInformacje.ts +97 -0
  96. package/src/lib-public/generators/FA2/Platnosc.ts +131 -0
  97. package/src/lib-public/generators/FA2/Podmiot1.ts +40 -0
  98. package/src/lib-public/generators/FA2/Podmiot1Podmiot1K.ts +73 -0
  99. package/src/lib-public/generators/FA2/Podmiot2.ts +42 -0
  100. package/src/lib-public/generators/FA2/Podmiot2Podmiot2k.ts +74 -0
  101. package/src/lib-public/generators/FA2/Podmiot3.ts +50 -0
  102. package/src/lib-public/generators/FA2/Podmiot3Podmiot2k.ts +77 -0
  103. package/src/lib-public/generators/FA2/PodmiotAdres.ts +19 -0
  104. package/src/lib-public/generators/FA2/PodmiotDaneIdentyfikacyjneTPodmiot1Dto.ts +10 -0
  105. package/src/lib-public/generators/FA2/PodmiotDaneIdentyfikacyjneTPodmiot2Dto.ts +37 -0
  106. package/src/lib-public/generators/FA2/PodmiotDaneIdentyfikacyjneTPodmiot3Dto.ts +44 -0
  107. package/src/lib-public/generators/FA2/PodmiotDaneKontaktowe.ts +12 -0
  108. package/src/lib-public/generators/FA2/PodmiotUpowazniony.ts +31 -0
  109. package/src/lib-public/generators/FA2/PodmiotUpowaznionyDaneKontaktowe.ts +34 -0
  110. package/src/lib-public/generators/FA2/Podmioty.ts +96 -0
  111. package/src/lib-public/generators/FA2/PodsumowanieStawekPodatkuVat.ts +294 -0
  112. package/src/lib-public/generators/FA2/Przewoznik.ts +21 -0
  113. package/src/lib-public/generators/FA2/Rabat.ts +47 -0
  114. package/src/lib-public/generators/FA2/RachunekBankowy.ts +60 -0
  115. package/src/lib-public/generators/FA2/Szczegoly.ts +187 -0
  116. package/src/lib-public/generators/FA2/Transport.ts +108 -0
  117. package/src/lib-public/generators/FA2/WarunkiTransakcji.ts +105 -0
  118. package/src/lib-public/generators/FA2/Wiersze.ts +126 -0
  119. package/src/lib-public/generators/FA2/Zamowienie.ts +144 -0
  120. package/src/lib-public/generators/FA3/Adnotacje.ts +249 -0
  121. package/src/lib-public/generators/FA3/Adres.ts +20 -0
  122. package/src/lib-public/generators/FA3/DodatkoweInformacje.ts +92 -0
  123. package/src/lib-public/generators/FA3/Platnosc.ts +144 -0
  124. package/src/lib-public/generators/FA3/Podmiot1.ts +40 -0
  125. package/src/lib-public/generators/FA3/Podmiot1Podmiot1K.ts +78 -0
  126. package/src/lib-public/generators/FA3/Podmiot2.ts +55 -0
  127. package/src/lib-public/generators/FA3/Podmiot2Podmiot2k.ts +59 -0
  128. package/src/lib-public/generators/FA3/Podmiot3.ts +50 -0
  129. package/src/lib-public/generators/FA3/Podmiot3Podmiot2k.ts +78 -0
  130. package/src/lib-public/generators/FA3/PodmiotAdres.ts +19 -0
  131. package/src/lib-public/generators/FA3/PodmiotDaneIdentyfikacyjneTPodmiot1Dto.ts +10 -0
  132. package/src/lib-public/generators/FA3/PodmiotDaneIdentyfikacyjneTPodmiot2Dto.ts +37 -0
  133. package/src/lib-public/generators/FA3/PodmiotDaneIdentyfikacyjneTPodmiot3Dto.ts +44 -0
  134. package/src/lib-public/generators/FA3/PodmiotDaneKontaktowe.ts +12 -0
  135. package/src/lib-public/generators/FA3/PodmiotUpowazniony.ts +31 -0
  136. package/src/lib-public/generators/FA3/PodmiotUpowaznionyDaneKontaktowe.ts +34 -0
  137. package/src/lib-public/generators/FA3/Podmioty.ts +96 -0
  138. package/src/lib-public/generators/FA3/PodsumowanieStawekPodatkuVat.ts +298 -0
  139. package/src/lib-public/generators/FA3/Przewoznik.ts +24 -0
  140. package/src/lib-public/generators/FA3/Rabat.ts +45 -0
  141. package/src/lib-public/generators/FA3/RachunekBankowy.ts +60 -0
  142. package/src/lib-public/generators/FA3/Szczegoly.ts +184 -0
  143. package/src/lib-public/generators/FA3/Transport.ts +108 -0
  144. package/src/lib-public/generators/FA3/WarunkiTransakcji.ts +100 -0
  145. package/src/lib-public/generators/FA3/Wiersze.ts +126 -0
  146. package/src/lib-public/generators/FA3/Zamowienie.ts +143 -0
  147. package/src/lib-public/generators/common/DaneFaKorygowanej.ts +91 -0
  148. package/src/lib-public/generators/common/Naglowek.ts +84 -0
  149. package/src/lib-public/generators/common/Rozliczenie.ts +119 -0
  150. package/src/lib-public/generators/common/Stopka.ts +161 -0
  151. package/src/lib-public/generators/common/Wiersze.ts +32 -0
  152. package/src/lib-public/generators/common/Zalaczniki.ts +232 -0
  153. package/src/lib-public/index.ts +3 -0
  154. package/src/lib-public/types/common.types.ts +29 -0
  155. package/src/lib-public/types/fa1-additional-types.ts +26 -0
  156. package/src/lib-public/types/fa1.types.ts +299 -0
  157. package/src/lib-public/types/fa2-additional-types.ts +30 -0
  158. package/src/lib-public/types/fa2.types.ts +307 -0
  159. package/src/lib-public/types/fa2Podmiot3DaneIdentyfikacyjne.types.ts +12 -0
  160. package/src/lib-public/types/fa3.types.ts +384 -0
  161. package/src/lib-public/types/fa3Podmiot3DaneIdentyfikacyjne.types.ts +12 -0
  162. package/src/lib-public/types/tax-summary.types.ts +8 -0
  163. package/src/lib-public/types/upo-v4_2.types.ts +68 -0
  164. package/src/shared/PDF-functions.ts +466 -0
  165. package/src/shared/XML-parser.ts +42 -0
  166. package/src/shared/consts/const.ts +406 -0
  167. package/src/shared/enums/common.enum.ts +45 -0
  168. package/src/shared/enums/invoice.enums.ts +9 -0
  169. package/src/shared/generators/common/functions.ts +101 -0
  170. package/src/shared/types/additional-data.types.ts +15 -0
  171. package/src/shared/types/pdf-types.ts +58 -0
  172. package/src/shared/types/universal.types.ts +16 -0
  173. package/transformer.code-workspace +45 -0
  174. package/tsconfig.json +16 -0
@@ -0,0 +1,384 @@
1
+ import {
2
+ KodFormularza as KodFormularzaFa1,
3
+ Rozliczenie as RozliczenieFa1,
4
+ Stopka as StopkaFa1,
5
+ Umowy as UmowyFa1,
6
+ Zamowienia as ZamowieniaFa1,
7
+ Zenia as ZeniaFa1,
8
+ } from './fa1.types';
9
+
10
+ export interface Faktura {
11
+ _attributes?: FakturaAttributes;
12
+ Naglowek?: Naglowek;
13
+ Podmiot1?: Podmiot1;
14
+ Podmiot2?: Podmiot2;
15
+ Podmiot3?: Podmiot3[];
16
+ PodmiotUpowazniony?: PodmiotUpowazniony;
17
+ Fa?: Fa;
18
+ Stopka?: Stopka;
19
+ Zalacznik?: Zalacznik;
20
+ }
21
+
22
+ export interface Fa {
23
+ KodWaluty?: FP;
24
+ P_1?: FP;
25
+ P_1M?: FP;
26
+ P_2?: FP;
27
+ WZ?: FP[];
28
+ P_6?: FP;
29
+ OkresFa?: Record<string, FP>;
30
+ P_13_1?: FP;
31
+ P_14_1?: FP;
32
+ P_14_1W?: FP;
33
+ P_13_2?: FP;
34
+ P_14_2?: FP;
35
+ P_14_2W?: FP;
36
+ P_13_3?: FP;
37
+ P_14_3?: FP;
38
+ P_14_3W?: FP;
39
+ P_13_4?: FP;
40
+ P_14_4?: FP;
41
+ P_14_4W?: FP;
42
+ P_13_5?: FP;
43
+ P_14_5?: FP;
44
+ P_13_6_1?: FP;
45
+ P_13_6_2?: FP;
46
+ P_13_6_3?: FP;
47
+ P_13_7?: FP;
48
+ P_13_8?: FP;
49
+ P_13_9?: FP;
50
+ P_13_10?: FP;
51
+ P_13_11?: FP;
52
+ P_15?: FP;
53
+ KursWalutyZ?: FP;
54
+ Adnotacje?: Adnotacje;
55
+ RodzajFaktury?: FP;
56
+ PrzyczynaKorekty?: FP;
57
+ TypKorekty?: FP;
58
+ DaneFaKorygowanej?: DaneFaKorygowanej[];
59
+ OkresFaKorygowanej?: FP;
60
+ NrFaKorygowany?: FP;
61
+ Podmiot1K?: Podmiot1K;
62
+ Podmiot2K?: Podmiot2K[];
63
+ P_15ZK?: FP;
64
+ KursWalutyZK?: FP;
65
+ ZaliczkaCzesciowa?: ZaliczkaCzesciowa[];
66
+ FP?: FP;
67
+ TP?: FP;
68
+ DodatkowyOpis?: DodatkowyOpi[];
69
+ FakturaZaliczkowa?: Record<string, FP>[];
70
+ ZwrotAkcyzy?: FP;
71
+ FaWiersz?: Record<string, FP>[];
72
+ Rozliczenie?: Rozliczenie;
73
+ Platnosc?: Platnosc;
74
+ WarunkiTransakcji?: WarunkiTransakcji;
75
+ Zamowienie?: Zamowienie;
76
+ }
77
+
78
+ export interface DaneFaKorygowanej {
79
+ DataWystFaKorygowanej?: FP;
80
+ NrFaKorygowanej?: FP;
81
+ NrKSeFFaKorygowanej?: FP;
82
+ }
83
+
84
+ export interface Adnotacje {
85
+ P_16?: FP;
86
+ P_17?: FP;
87
+ P_18?: FP;
88
+ P_18A?: FP;
89
+ Zwolnienie?: Zwolnienie;
90
+ NoweSrodkiTransportu?: NoweSrodkiTransportu;
91
+ P_23?: FP;
92
+ PMarzy?: PMarzy;
93
+ }
94
+
95
+ export interface NoweSrodkiTransportu {
96
+ P_22?: FP;
97
+ P_42_5?: FP;
98
+ NowySrodekTransportu?: Record<string, FP>[];
99
+ P_22N?: FP;
100
+ }
101
+
102
+ export interface FP {
103
+ _text?: string;
104
+ }
105
+
106
+ export interface PMarzy {
107
+ P_PMarzy?: FP;
108
+ P_PMarzy_2?: FP;
109
+ P_PMarzy_3_1?: FP;
110
+ P_PMarzy_3_2?: FP;
111
+ P_PMarzy_3_3?: FP;
112
+ P_PMarzyN?: FP;
113
+ }
114
+
115
+ export interface Zwolnienie {
116
+ P_19?: FP;
117
+ P_19A?: FP;
118
+ P_19B?: FP;
119
+ P_19C?: FP;
120
+ P_19N?: FP;
121
+ }
122
+
123
+ export interface DodatkowyOpi {
124
+ NrWiersza?: FP;
125
+ Klucz?: FP;
126
+ Wartosc?: FP;
127
+ }
128
+
129
+ export interface Platnosc {
130
+ Zaplacono?: FP;
131
+ DataZaplaty?: FP;
132
+ ZnacznikZaplatyCzesciowej?: FP;
133
+ ZaplataCzesciowa?: ZaplataCzesciowa[];
134
+ TerminPlatnosci?: TerminPlatnosci[];
135
+ FormaPlatnosci?: FP;
136
+ PlatnoscInna?: FP;
137
+ OpisPlatnosci?: FP;
138
+ RachunekBankowy?: RachunekBankowy[];
139
+ RachunekBankowyFaktora?: RachunekBankowy[];
140
+ Skonto?: Skonto;
141
+ LinkDoPlatnosci?: FP;
142
+ IPKSeF?: FP;
143
+ }
144
+
145
+ export interface RachunekBankowy {
146
+ NrRB?: FP;
147
+ SWIFT?: FP;
148
+ RachunekWlasnyBanku?: FP;
149
+ NazwaBanku?: FP;
150
+ OpisRachunku?: FP;
151
+ }
152
+
153
+ export interface Skonto {
154
+ WarunkiSkonta?: FP;
155
+ WysokoscSkonta?: FP;
156
+ }
157
+
158
+ export interface TerminPlatnosci {
159
+ Termin?: FP;
160
+ TerminOpis?: TerminOpis;
161
+ }
162
+
163
+ export interface TerminOpis {
164
+ Ilosc?: FP;
165
+ Jednostka?: FP;
166
+ ZdarzeniePoczatkowe?: FP;
167
+ }
168
+
169
+ export interface ZaplataCzesciowa {
170
+ KwotaZaplatyCzesciowej?: FP;
171
+ DataZaplatyCzesciowej?: FP;
172
+ FormaPlatnosci?: FP;
173
+ PlatnoscInna?: FP;
174
+ OpisPlatnosci?: FP;
175
+ }
176
+
177
+ export interface Podmiot1K {
178
+ PrefiksPodatnika?: FP;
179
+ DaneIdentyfikacyjne?: DaneIdentyfikacyjne;
180
+ Adres?: Adres;
181
+ }
182
+
183
+ export interface Adres {
184
+ KodKraju?: FP;
185
+ AdresL1?: FP;
186
+ AdresL2?: FP;
187
+ GLN?: FP;
188
+ }
189
+
190
+ export interface DaneIdentyfikacyjne {
191
+ NIP?: FP;
192
+ Nazwa?: FP;
193
+ }
194
+
195
+ export interface Podmiot2K {
196
+ DaneIdentyfikacyjne?: Record<string, FP>;
197
+ Adres?: Adres;
198
+ IDNabywcy?: FP;
199
+ }
200
+
201
+ export interface Rozliczenie extends RozliczenieFa1 {}
202
+
203
+ export interface Zenia extends ZeniaFa1 {}
204
+
205
+ export interface Zamowienia extends ZamowieniaFa1 {}
206
+
207
+ export interface WarunkiTransakcji {
208
+ Umowy?: Umowy[];
209
+ Zamowienia?: Zamowienia[];
210
+ NrPartiiTowaru?: FP[];
211
+ WarunkiDostawy?: FP;
212
+ KursUmowny?: FP;
213
+ WalutaUmowna?: FP;
214
+ Transport?: Transport[];
215
+ PodmiotPosredniczacy?: FP;
216
+ }
217
+
218
+ export interface Transport {
219
+ RodzajTransportu?: FP;
220
+ TransportInny?: FP;
221
+ OpisInnegoTransportu?: FP;
222
+ Przewoznik?: Przewoznik;
223
+ NrZleceniaTransportu?: FP;
224
+ OpisLadunku?: FP;
225
+ LadunekInny?: FP;
226
+ OpisInnegoLadunku?: FP;
227
+ JednostkaOpakowania?: FP;
228
+ DataGodzRozpTransportu?: FP;
229
+ DataGodzZakTransportu?: FP;
230
+ WysylkaZ?: Adres;
231
+ WysylkaPrzez?: Adres[];
232
+ WysylkaDo?: Adres;
233
+ }
234
+
235
+ export interface Przewoznik {
236
+ DaneIdentyfikacyjne?: Record<string, FP>;
237
+ AdresPrzewoznika?: Adres;
238
+ }
239
+
240
+ export interface Umowy extends UmowyFa1 {}
241
+
242
+ export interface Zamowienia {
243
+ DataZamowienia?: FP;
244
+ NrZamowienia?: FP;
245
+ }
246
+
247
+ export interface ZaliczkaCzesciowa {
248
+ P_6Z?: FP;
249
+ P_15Z?: FP;
250
+ KursWalutyZW?: FP;
251
+ }
252
+
253
+ export interface Zamowienie {
254
+ WartoscZamowienia?: FP;
255
+ ZamowienieWiersz?: Record<string, FP>[];
256
+ }
257
+
258
+ export interface Naglowek {
259
+ KodFormularza?: KodFormularza;
260
+ WariantFormularza?: FP;
261
+ DataWytworzeniaFa?: FP;
262
+ SystemInfo?: FP;
263
+ }
264
+
265
+ export interface KodFormularza extends KodFormularzaFa1 {}
266
+
267
+ export interface Podmiot1 {
268
+ PrefiksPodatnika?: FP;
269
+ NrEORI?: FP;
270
+ DaneIdentyfikacyjne?: DaneIdentyfikacyjne;
271
+ Adres?: Adres;
272
+ AdresKoresp?: Adres;
273
+ DaneKontaktowe?: Podmiot1DaneKontaktowe[];
274
+ StatusInfoPodatnika?: FP;
275
+ }
276
+
277
+ export interface Podmiot1DaneKontaktowe {
278
+ Email?: FP;
279
+ Telefon?: FP;
280
+ JST?: FP;
281
+ GV?: FP;
282
+ }
283
+
284
+ export interface Podmiot2 {
285
+ NrEORI?: FP;
286
+ DaneIdentyfikacyjne?: Record<string, FP>;
287
+ Adres?: Adres;
288
+ AdresKoresp?: Adres;
289
+ DaneKontaktowe?: Podmiot1DaneKontaktowe[];
290
+ NrKlienta?: FP;
291
+ IDNabywcy?: FP;
292
+ JST?: FP;
293
+ GV?: FP;
294
+ }
295
+
296
+ export interface Podmiot3 {
297
+ IDNabywcy?: FP;
298
+ NrEORI?: FP;
299
+ DaneIdentyfikacyjne?: Record<string, FP>;
300
+ Adres?: Adres;
301
+ AdresKoresp?: Adres;
302
+ DaneKontaktowe?: Podmiot1DaneKontaktowe[];
303
+ Rola?: FP;
304
+ RolaInna?: FP;
305
+ OpisRoli?: FP;
306
+ Udzial?: FP;
307
+ NrKlienta?: FP;
308
+ }
309
+
310
+ export interface PodmiotUpowazniony {
311
+ NrEORI?: FP;
312
+ DaneIdentyfikacyjne?: DaneIdentyfikacyjne;
313
+ Adres?: Adres;
314
+ AdresKoresp?: Adres;
315
+ DaneKontaktowe?: PodmiotUpowaznionyDaneKontaktowe[];
316
+ RolaPU?: FP;
317
+ }
318
+
319
+ export interface PodmiotUpowaznionyDaneKontaktowe {
320
+ EmailPU?: FP;
321
+ TelefonPU?: FP;
322
+ }
323
+
324
+ export interface Stopka extends StopkaFa1 {}
325
+
326
+ export interface Zalacznik {
327
+ BlokDanych?: BlokDanych[];
328
+ }
329
+
330
+ export interface BlokDanych {
331
+ ZNaglowek?: FP;
332
+ MetaDane?: MetaDane[];
333
+ Tekst?: Tekst;
334
+ Tabela?: Tabela[];
335
+ }
336
+
337
+ export interface MetaDane {
338
+ ZKlucz?: FP;
339
+ ZWartosc?: FP;
340
+ }
341
+
342
+ export interface Tabela {
343
+ TMetaDane?: TMetaDane[];
344
+ Opis?: FP;
345
+ TNaglowek?: TNaglowek;
346
+ Wiersz?: Wiersz[];
347
+ Suma?: Suma;
348
+ }
349
+
350
+ export interface Suma {
351
+ SKom?: FP[];
352
+ }
353
+
354
+ export interface TMetaDane {
355
+ TKlucz?: FP;
356
+ TWartosc?: FP;
357
+ }
358
+
359
+ export interface TNaglowek {
360
+ Kol?: Kol[];
361
+ }
362
+
363
+ export interface Kol {
364
+ _attributes?: KolAttributes;
365
+ NKom?: FP;
366
+ }
367
+
368
+ export interface KolAttributes {
369
+ Typ?: string;
370
+ }
371
+
372
+ export interface Wiersz {
373
+ WKom?: FP[];
374
+ }
375
+
376
+ export interface Tekst {
377
+ Akapit?: FP[];
378
+ }
379
+
380
+ export interface FakturaAttributes {
381
+ 'xmlns:tns'?: string;
382
+ 'xmlns:xsi'?: string;
383
+ 'xsi:schemaLocation'?: string;
384
+ }
@@ -0,0 +1,12 @@
1
+ import { FP } from './fa3.types';
2
+
3
+ export interface Podmiot3DaneIdentyfikacyjne {
4
+ NIP?: FP;
5
+ IDWew?: FP;
6
+ KodUE?: FP;
7
+ NrVatUE?: FP;
8
+ KodKraju?: FP;
9
+ NrID?: FP;
10
+ BrakID?: FP;
11
+ Nazwa?: FP;
12
+ }
@@ -0,0 +1,8 @@
1
+ export interface TaxSummaryTypes {
2
+ no: number;
3
+ taxRateString: string;
4
+ net?: string | number;
5
+ tax?: string | number;
6
+ gross?: string | number;
7
+ taxPLN?: string | number;
8
+ }
@@ -0,0 +1,68 @@
1
+ export interface Upo {
2
+ _declaration?: Declaration;
3
+ _comment?: string;
4
+ Potwierdzenie?: Potwierdzenie;
5
+ }
6
+
7
+ export interface Potwierdzenie {
8
+ _attributes?: PotwierdzenieAttributes;
9
+ NazwaPodmiotuPrzyjmujacego?: KodFormularza;
10
+ NumerReferencyjnySesji?: KodFormularza;
11
+ Uwierzytelnienie?: Uwierzytelnienie;
12
+ OpisPotwierdzenia?: OpisPotwierdzenia;
13
+ NazwaStrukturyLogicznej?: KodFormularza;
14
+ KodFormularza?: KodFormularza;
15
+ Dokument?: Dokument[];
16
+ }
17
+
18
+ export interface Dokument {
19
+ lp?: number;
20
+ NipSprzedawcy?: KodFormularza;
21
+ NumerKSeFDokumentu?: KodFormularza;
22
+ NumerFaktury?: KodFormularza;
23
+ DataWystawieniaFaktury?: KodFormularza;
24
+ DataPrzeslaniaDokumentu?: KodFormularza;
25
+ DataNadaniaNumeruKSeF?: KodFormularza;
26
+ SkrotDokumentu?: KodFormularza;
27
+ }
28
+
29
+ export interface KodFormularza {
30
+ _text?: string;
31
+ }
32
+
33
+ export interface OpisPotwierdzenia {
34
+ Strona?: KodFormularza;
35
+ LiczbaStron?: KodFormularza;
36
+ ZakresDokumentowOd?: KodFormularza;
37
+ ZakresDokumentowDo?: KodFormularza;
38
+ CalkowitaLiczbaDokumentow?: KodFormularza;
39
+ }
40
+
41
+ export interface Uwierzytelnienie {
42
+ IdKontekstu?: IDKontekstu;
43
+ NumerReferencyjnyTokenaKSeF?: KodFormularza;
44
+ SkrotDokumentuUwierzytelniajacego?: KodFormularza;
45
+ }
46
+
47
+ export interface IDKontekstu {
48
+ Nip?: KodFormularza;
49
+ IdWewnetrzny?: KodFormularza;
50
+ IdZlozonyVatUE?: KodFormularza;
51
+ IdDostawcyUslugPeppol?: KodFormularza;
52
+ }
53
+
54
+ export interface PotwierdzenieAttributes {
55
+ upo?: string;
56
+ xsi?: string;
57
+ wersjaSchemy?: string;
58
+ schemaLocation?: string;
59
+ }
60
+
61
+ export interface Declaration {
62
+ _attributes?: DeclarationAttributes;
63
+ }
64
+
65
+ export interface DeclarationAttributes {
66
+ version?: string;
67
+ encoding?: string;
68
+ }