@ripwords/myinvois-client 0.0.7 → 0.0.9

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 (55) hide show
  1. package/bun.lock +110 -27
  2. package/dist/index.cjs +42 -20
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.ts +2334 -481
  5. package/dist/index.js +42 -20
  6. package/package.json +19 -17
  7. package/rolldown.config.ts +5 -1
  8. package/src/api/platform/taxpayerLogin.ts +28 -0
  9. package/src/types/index.d.ts +12 -0
  10. package/src/types/unit/1X.d.ts +16 -0
  11. package/src/types/unit/2X.d.ts +62 -0
  12. package/src/types/unit/3X.d.ts +17 -0
  13. package/src/types/unit/4X.d.ts +44 -0
  14. package/src/types/unit/5X.d.ts +26 -0
  15. package/src/types/unit/6X.d.ts +12 -0
  16. package/src/types/unit/7X.d.ts +12 -0
  17. package/src/types/unit/8X.d.ts +15 -0
  18. package/src/types/unit/9X.d.ts +11 -0
  19. package/src/types/unit/AX.d.ts +202 -0
  20. package/src/types/unit/BX.d.ts +212 -0
  21. package/src/types/unit/CX.d.ts +238 -0
  22. package/src/types/unit/DX.d.ts +212 -0
  23. package/src/types/unit/EX.d.ts +196 -0
  24. package/src/types/unit/FX.d.ts +236 -0
  25. package/src/types/unit/GX.d.ts +254 -0
  26. package/src/types/unit/HX.d.ts +234 -0
  27. package/src/types/unit/IX.d.ts +28 -0
  28. package/src/types/unit/JX.d.ts +190 -0
  29. package/src/types/unit/KX.d.ts +284 -0
  30. package/src/types/unit/LX.d.ts +228 -0
  31. package/src/types/unit/MX.d.ts +288 -0
  32. package/src/types/unit/NX.d.ts +226 -0
  33. package/src/types/unit/OX.d.ts +34 -0
  34. package/src/types/unit/PX.d.ts +224 -0
  35. package/src/types/unit/QX.d.ts +94 -0
  36. package/src/types/unit/RX.d.ts +28 -0
  37. package/src/types/unit/SX.d.ts +56 -0
  38. package/src/types/unit/TX.d.ts +44 -0
  39. package/src/types/unit/UX.d.ts +14 -0
  40. package/src/types/unit/VX.d.ts +13 -0
  41. package/src/types/unit/WX.d.ts +34 -0
  42. package/src/types/unit/XX.d.ts +825 -0
  43. package/src/types/unit/YX.d.ts +17 -0
  44. package/src/types/unit/ZX.d.ts +19 -0
  45. package/src/types/unit-types.d.ts +71 -575
  46. package/src/utils/MyInvoisClient.ts +13 -35
  47. package/src/utils/getBaseUrl.ts +5 -0
  48. package/test/{MyInvoiClientRealData.test.ts → MyInvoiClientWithRealData.test.ts} +13 -1
  49. package/test/MyInvoisClient.test.ts +4 -7
  50. package/dist/cjs/index.cjs +0 -75
  51. package/dist/cjs/index.cjs.map +0 -1
  52. package/dist/cjs/multipart-parser-Bu3ikqFQ.cjs +0 -182
  53. package/dist/cjs/multipart-parser-Bu3ikqFQ.cjs.map +0 -1
  54. package/dist/cjs/node-qs2pnN6F.cjs +0 -4124
  55. package/dist/cjs/node-qs2pnN6F.cjs.map +0 -1
@@ -0,0 +1,234 @@
1
+ /**
2
+ * Unit type codes starting with 'H'.
3
+ */
4
+ export type UnitTypeCode_HX =
5
+ | 'H03'
6
+ | 'H04'
7
+ | 'H05'
8
+ | 'H06'
9
+ | 'H07'
10
+ | 'H08'
11
+ | 'H09'
12
+ | 'H10'
13
+ | 'H11'
14
+ | 'H12'
15
+ | 'H13'
16
+ | 'H14'
17
+ | 'H15'
18
+ | 'H16'
19
+ | 'H18'
20
+ | 'H19'
21
+ | 'H20'
22
+ | 'H21'
23
+ | 'H22'
24
+ | 'H23'
25
+ | 'H24'
26
+ | 'H25'
27
+ | 'H26'
28
+ | 'H27'
29
+ | 'H28'
30
+ | 'H29'
31
+ | 'H30'
32
+ | 'H31'
33
+ | 'H32'
34
+ | 'H33'
35
+ | 'H34'
36
+ | 'H35'
37
+ | 'H36'
38
+ | 'H37'
39
+ | 'H38'
40
+ | 'H39'
41
+ | 'H40'
42
+ | 'H41'
43
+ | 'H42'
44
+ | 'H43'
45
+ | 'H44'
46
+ | 'H45'
47
+ | 'H46'
48
+ | 'H47'
49
+ | 'H48'
50
+ | 'H49'
51
+ | 'H50'
52
+ | 'H51'
53
+ | 'H52'
54
+ | 'H53'
55
+ | 'H54'
56
+ | 'H55'
57
+ | 'H56'
58
+ | 'H57'
59
+ | 'H58'
60
+ | 'H59'
61
+ | 'H60'
62
+ | 'H61'
63
+ | 'H62'
64
+ | 'H63'
65
+ | 'H64'
66
+ | 'H65'
67
+ | 'H66'
68
+ | 'H67'
69
+ | 'H68'
70
+ | 'H69'
71
+ | 'H70'
72
+ | 'H71'
73
+ | 'H72'
74
+ | 'H73'
75
+ | 'H74'
76
+ | 'H75'
77
+ | 'H76'
78
+ | 'H77'
79
+ | 'H79'
80
+ | 'H80'
81
+ | 'H81'
82
+ | 'H82'
83
+ | 'H83'
84
+ | 'H84'
85
+ | 'H85'
86
+ | 'H87'
87
+ | 'H88'
88
+ | 'H89'
89
+ | 'H90'
90
+ | 'H91'
91
+ | 'H92'
92
+ | 'H93'
93
+ | 'H94'
94
+ | 'H95'
95
+ | 'H96'
96
+ | 'H98'
97
+ | 'H99'
98
+ | 'HA'
99
+ | 'HAD'
100
+ | 'HBA'
101
+ | 'HBX'
102
+ | 'HC'
103
+ | 'HDW'
104
+ | 'HEA'
105
+ | 'HGM'
106
+ | 'HH'
107
+ | 'HIU'
108
+ | 'HKM'
109
+ | 'HLT'
110
+ | 'HM'
111
+ | 'HMO'
112
+ | 'HMQ'
113
+ | 'HMT'
114
+ | 'HPA'
115
+ | 'HTZ'
116
+ | 'HUR'
117
+
118
+ /**
119
+ * Enum representing unit type codes starting with 'H'.
120
+ */
121
+ export enum UnitTypeCodeEnum_HX {
122
+ HenryPerKiloohm = 'H03',
123
+ HenryPerOhm = 'H04',
124
+ MillihenryPerKiloohm = 'H05',
125
+ MillihenryPerOhm = 'H06',
126
+ PascalSecondPerBar = 'H07',
127
+ Microbecquerel = 'H08',
128
+ ReciprocalYear = 'H09',
129
+ ReciprocalHour = 'H10',
130
+ ReciprocalMonth = 'H11',
131
+ DegreeCelsiusPerHour = 'H12',
132
+ DegreeCelsiusPerMinute = 'H13',
133
+ DegreeCelsiusPerSecond = 'H14',
134
+ SquareCentimetrePerGram = 'H15',
135
+ SquareDecametre = 'H16',
136
+ SquareHectometre = 'H18',
137
+ CubicHectometre = 'H19',
138
+ CubicKilometre = 'H20',
139
+ Blank = 'H21',
140
+ VoltSquareInchPerPoundForce = 'H22',
141
+ VoltPerInch = 'H23',
142
+ VoltPerMicrosecond = 'H24',
143
+ PercentPerKelvin = 'H25',
144
+ OhmPerMetre = 'H26',
145
+ DegreePerMetre = 'H27',
146
+ MicrofaradPerKilometre = 'H28',
147
+ MicrogramPerLitre = 'H29',
148
+ SquareMicrometreSquareMicron = 'H30',
149
+ AmperePerKilogram = 'H31',
150
+ AmpereSquaredSecond = 'H32',
151
+ FaradPerKilometre = 'H33',
152
+ HertzMetre = 'H34',
153
+ KelvinMetrePerWatt = 'H35',
154
+ MegaohmPerKilometre = 'H36',
155
+ MegaohmPerMetre = 'H37',
156
+ Megaampere = 'H38',
157
+ MegahertzKilometre = 'H39',
158
+ NewtonPerAmpere = 'H40',
159
+ NewtonMetreWattToThePowerMinus05 = 'H41',
160
+ PascalPerMetre = 'H42',
161
+ SiemensPerCentimetre = 'H43',
162
+ Teraohm = 'H44',
163
+ VoltSecondPerMetre = 'H45',
164
+ VoltPerSecond = 'H46',
165
+ WattPerCubicMetre = 'H47',
166
+ Attofarad = 'H48',
167
+ CentimetrePerHour = 'H49',
168
+ ReciprocalCubicCentimetre = 'H50',
169
+ DecibelPerKilometre = 'H51',
170
+ DecibelPerMetre = 'H52',
171
+ KilogramPerBar = 'H53',
172
+ KilogramPerCubicDecimetreKelvin = 'H54',
173
+ KilogramPerCubicDecimetreBar = 'H55',
174
+ KilogramPerSquareMetreSecond = 'H56',
175
+ InchPerTwoPiRadiant = 'H57',
176
+ MetrePerVoltSecond = 'H58',
177
+ SquareMetrePerNewton = 'H59',
178
+ CubicMetrePerCubicMetre = 'H60',
179
+ MillisiemensPerCentimetre = 'H61',
180
+ MillivoltPerMinute = 'H62',
181
+ MilligramPerSquareCentimetre = 'H63',
182
+ MilligramPerGram = 'H64',
183
+ MillilitrePerCubicMetre = 'H65',
184
+ MillimetrePerYear = 'H66',
185
+ MillimetrePerHour = 'H67',
186
+ MillimolePerGram = 'H68',
187
+ PicopascalPerKilometre = 'H69',
188
+ Picosecond = 'H70',
189
+ PercentPerMonth = 'H71',
190
+ PercentPerHectobar = 'H72',
191
+ PercentPerDecakelvin = 'H73',
192
+ WattPerMetre = 'H74',
193
+ Decapascal = 'H75',
194
+ GramPerMillimetre = 'H76',
195
+ ModuleWidth = 'H77',
196
+ FrenchGauge = 'H79',
197
+ RackUnit = 'H80',
198
+ MillimetrePerMinute = 'H81',
199
+ BigPoint = 'H82',
200
+ LitrePerKilogram = 'H83',
201
+ GramMillimetre = 'H84',
202
+ ReciprocalWeek = 'H85',
203
+ Piece = 'H87',
204
+ MegaohmKilometre = 'H88',
205
+ PercentPerOhm = 'H89',
206
+ PercentPerDegree = 'H90',
207
+ PercentPerTenThousand = 'H91',
208
+ PercentPerOneHundredThousand = 'H92',
209
+ PercentPerHundred = 'H93',
210
+ PercentPerThousand = 'H94',
211
+ PercentPerVolt = 'H95',
212
+ PercentPerBar = 'H96',
213
+ PercentPerInch = 'H98',
214
+ PercentPerMetre = 'H99',
215
+ Hank = 'HA',
216
+ PieceDay = 'HAD',
217
+ Hectobar = 'HBA',
218
+ HundredBoxes = 'HBX',
219
+ HundredCount = 'HC',
220
+ HundredKilogramDryWeight = 'HDW',
221
+ Head = 'HEA',
222
+ Hectogram = 'HGM',
223
+ HundredCubicFoot = 'HH',
224
+ HundredInternationalUnit = 'HIU',
225
+ HundredKilogramNetMass = 'HKM',
226
+ Hectolitre = 'HLT',
227
+ MilePerHourStatuteMile = 'HM',
228
+ PieceMonth = 'HMO',
229
+ MillionCubicMetre = 'HMQ',
230
+ Hectometre = 'HMT',
231
+ HectolitreOfPureAlcohol = 'HPA',
232
+ Hertz = 'HTZ',
233
+ Hour = 'HUR',
234
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Unit type codes starting with 'I'.
3
+ */
4
+ export type UnitTypeCode_IX =
5
+ | 'IA'
6
+ | 'IE'
7
+ | 'INH'
8
+ | 'INK'
9
+ | 'INQ'
10
+ | 'ISD'
11
+ | 'IU'
12
+ | 'IUG'
13
+ | 'IV'
14
+
15
+ /**
16
+ * Enum representing unit type codes starting with 'I'.
17
+ */
18
+ export enum UnitTypeCodeEnum_IX {
19
+ InchPoundPoundInch = 'IA',
20
+ Person = 'IE',
21
+ Inch = 'INH',
22
+ SquareInch = 'INK',
23
+ CubicInch = 'INQ',
24
+ InternationalSugarDegree = 'ISD',
25
+ InchPerSecond = 'IU',
26
+ InternationalUnitPerGram = 'IUG',
27
+ InchPerSecondSquared = 'IV',
28
+ }
@@ -0,0 +1,190 @@
1
+ /**
2
+ * Unit type codes starting with 'J'.
3
+ */
4
+ export type UnitTypeCode_JX =
5
+ | 'J10'
6
+ | 'J12'
7
+ | 'J13'
8
+ | 'J14'
9
+ | 'J15'
10
+ | 'J16'
11
+ | 'J17'
12
+ | 'J18'
13
+ | 'J19'
14
+ | 'J2'
15
+ | 'J20'
16
+ | 'J21'
17
+ | 'J22'
18
+ | 'J23'
19
+ | 'J24'
20
+ | 'J25'
21
+ | 'J26'
22
+ | 'J27'
23
+ | 'J28'
24
+ | 'J29'
25
+ | 'J30'
26
+ | 'J31'
27
+ | 'J32'
28
+ | 'J33'
29
+ | 'J34'
30
+ | 'J35'
31
+ | 'J36'
32
+ | 'J38'
33
+ | 'J39'
34
+ | 'J40'
35
+ | 'J41'
36
+ | 'J42'
37
+ | 'J43'
38
+ | 'J44'
39
+ | 'J45'
40
+ | 'J46'
41
+ | 'J47'
42
+ | 'J48'
43
+ | 'J49'
44
+ | 'J50'
45
+ | 'J51'
46
+ | 'J52'
47
+ | 'J53'
48
+ | 'J54'
49
+ | 'J55'
50
+ | 'J56'
51
+ | 'J57'
52
+ | 'J58'
53
+ | 'J59'
54
+ | 'J60'
55
+ | 'J61'
56
+ | 'J62'
57
+ | 'J63'
58
+ | 'J64'
59
+ | 'J65'
60
+ | 'J66'
61
+ | 'J67'
62
+ | 'J68'
63
+ | 'J69'
64
+ | 'J70'
65
+ | 'J71'
66
+ | 'J72'
67
+ | 'J73'
68
+ | 'J74'
69
+ | 'J75'
70
+ | 'J76'
71
+ | 'J78'
72
+ | 'J79'
73
+ | 'J81'
74
+ | 'J82'
75
+ | 'J83'
76
+ | 'J84'
77
+ | 'J85'
78
+ | 'J87'
79
+ | 'J90'
80
+ | 'J91'
81
+ | 'J92'
82
+ | 'J93'
83
+ | 'J95'
84
+ | 'J96'
85
+ | 'J97'
86
+ | 'J98'
87
+ | 'J99'
88
+ | 'JE'
89
+ | 'JK'
90
+ | 'JM'
91
+ | 'JNT'
92
+ | 'JOU'
93
+ | 'JPS'
94
+ | 'JWL'
95
+
96
+ /**
97
+ * Enum representing unit type codes starting with 'J'.
98
+ */
99
+ export enum UnitTypeCodeEnum_JX {
100
+ PercentPerMillimetre = 'J10',
101
+ PerMillePerPsi = 'J12',
102
+ DegreeAPI = 'J13',
103
+ DegreeBaumeOriginScale = 'J14',
104
+ DegreeBaumeUSHeavy = 'J15',
105
+ DegreeBaumeUSLight = 'J16',
106
+ DegreeBalling = 'J17',
107
+ DegreeBrix = 'J18',
108
+ DegreeFahrenheitHourSquareFootPerBritishThermalUnitThermochemical = 'J19',
109
+ JoulePerKilogram = 'J2',
110
+ DegreeFahrenheitPerKelvin = 'J20',
111
+ DegreeFahrenheitPerBar = 'J21',
112
+ DegreeFahrenheitHourSquareFootPerBritishThermalUnitInternationalTable = 'J22',
113
+ DegreeFahrenheitPerHour = 'J23',
114
+ DegreeFahrenheitPerMinute = 'J24',
115
+ DegreeFahrenheitPerSecond = 'J25',
116
+ ReciprocalDegreeFahrenheit = 'J26',
117
+ DegreeOechsle = 'J27',
118
+ DegreeRankinePerHour = 'J28',
119
+ DegreeRankinePerMinute = 'J29',
120
+ DegreeRankinePerSecond = 'J30',
121
+ DegreeTwaddell = 'J31',
122
+ Micropoise = 'J32',
123
+ MicrogramPerKilogram = 'J33',
124
+ MicrogramPerCubicMetreKelvin = 'J34',
125
+ MicrogramPerCubicMetreBar = 'J35',
126
+ MicrolitrePerLitre = 'J36',
127
+ Baud = 'J38',
128
+ BritishThermalUnitMean = 'J39',
129
+ BritishThermalUnitInternationalTableFootPerHourSquareFootDegreeFahrenheit = 'J40',
130
+ BritishThermalUnitInternationalTableInchPerHourSquareFootDegreeFahrenheit = 'J41',
131
+ BritishThermalUnitInternationalTableInchPerSecondSquareFootDegreeFahrenheit = 'J42',
132
+ BritishThermalUnitInternationalTablePerPoundDegreeFahrenheit = 'J43',
133
+ BritishThermalUnitInternationalTablePerMinute = 'J44',
134
+ BritishThermalUnitInternationalTablePerSecond = 'J45',
135
+ BritishThermalUnitThermochemicalFootPerHourSquareFootDegreeFahrenheit = 'J46',
136
+ BritishThermalUnitThermochemicalPerHour = 'J47',
137
+ BritishThermalUnitThermochemicalInchPerHourSquareFootDegreeFahrenheit = 'J48',
138
+ BritishThermalUnitThermochemicalInchPerSecondSquareFootDegreeFahrenheit = 'J49',
139
+ BritishThermalUnitThermochemicalPerPoundDegreeFahrenheit = 'J50',
140
+ BritishThermalUnitThermochemicalPerMinute = 'J51',
141
+ BritishThermalUnitThermochemicalPerSecond = 'J52',
142
+ CoulombSquareMetrePerKilogram = 'J53',
143
+ Megabaud = 'J54',
144
+ WattSecond = 'J55',
145
+ BarPerBar = 'J56',
146
+ BarrelUKPetroleum = 'J57',
147
+ BarrelUKPetroleumPerMinute = 'J58',
148
+ BarrelUKPetroleumPerDay = 'J59',
149
+ BarrelUKPetroleumPerHour = 'J60',
150
+ BarrelUKPetroleumPerSecond = 'J61',
151
+ BarrelUSPetroleumPerHour = 'J62',
152
+ BarrelUSPetroleumPerSecond = 'J63',
153
+ BushelUKPerDay = 'J64',
154
+ BushelUKPerHour = 'J65',
155
+ BushelUKPerMinute = 'J66',
156
+ BushelUKPerSecond = 'J67',
157
+ BushelUSDryPerDay = 'J68',
158
+ BushelUSDryPerHour = 'J69',
159
+ BushelUSDryPerMinute = 'J70',
160
+ BushelUSDryPerSecond = 'J71',
161
+ CentinewtonMetre = 'J72',
162
+ CentipoisePerKelvin = 'J73',
163
+ CentipoisePerBar = 'J74',
164
+ CalorieMean = 'J75',
165
+ CalorieInternationalTablePerGramDegreeCelsius = 'J76',
166
+ CalorieThermochemicalPerCentimetreSecondDegreeCelsius = 'J78',
167
+ CalorieThermochemicalPerGramDegreeCelsius = 'J79',
168
+ CalorieThermochemicalPerMinute = 'J81',
169
+ CalorieThermochemicalPerSecond = 'J82',
170
+ Clo = 'J83',
171
+ CentimetrePerSecondKelvin = 'J84',
172
+ CentimetrePerSecondBar = 'J85',
173
+ CubicCentimetrePerCubicMetre = 'J87',
174
+ CubicDecimetrePerDay = 'J90',
175
+ CubicDecimetrePerCubicMetre = 'J91',
176
+ CubicDecimetrePerMinute = 'J92',
177
+ CubicDecimetrePerSecond = 'J93',
178
+ OunceUKFluidPerDay = 'J95',
179
+ OunceUKFluidPerHour = 'J96',
180
+ OunceUKFluidPerMinute = 'J97',
181
+ OunceUKFluidPerSecond = 'J98',
182
+ OunceUSFluidPerDay = 'J99',
183
+ JoulePerKelvin = 'JE',
184
+ MegajoulePerKilogram = 'JK',
185
+ MegajoulePerCubicMetre = 'JM',
186
+ PipelineJoint = 'JNT',
187
+ Joule = 'JOU',
188
+ HundredMetre = 'JPS',
189
+ NumberOfJewels = 'JWL',
190
+ }