emissions-api-sdk 1.0.1 → 1.0.3

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 (115) hide show
  1. package/README.md +9 -0
  2. package/dist/Constants.js +2 -1
  3. package/dist/api/Calculation.js +4 -4
  4. package/dist/api/Factor.js +7 -7
  5. package/dist/api/FactorSets.js +1 -1
  6. package/dist/api/Fugitive.js +4 -4
  7. package/dist/api/Location.js +4 -4
  8. package/dist/api/Mobile.js +4 -6
  9. package/dist/api/Stationary.js +4 -4
  10. package/dist/api/TransportationAndDistribution.js +5 -5
  11. package/dist/api/Usage.js +26 -0
  12. package/dist/coverage/clover.xml +346 -0
  13. package/dist/coverage/coverage-final.json +20 -0
  14. package/dist/coverage/lcov-report/base.css +224 -0
  15. package/dist/coverage/lcov-report/block-navigation.js +87 -0
  16. package/dist/coverage/lcov-report/favicon.png +0 -0
  17. package/dist/coverage/lcov-report/index.html +161 -0
  18. package/dist/coverage/lcov-report/prettify.css +1 -0
  19. package/dist/coverage/lcov-report/prettify.js +2 -0
  20. package/dist/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  21. package/dist/coverage/lcov-report/sorter.js +210 -0
  22. package/dist/coverage/lcov-report/src/Client.ts.html +838 -0
  23. package/dist/coverage/lcov-report/src/Constants.ts.html +214 -0
  24. package/dist/coverage/lcov-report/src/api/Calculation.ts.html +436 -0
  25. package/dist/coverage/lcov-report/src/api/Factor.ts.html +622 -0
  26. package/dist/coverage/lcov-report/src/api/FactorSets.ts.html +157 -0
  27. package/dist/coverage/lcov-report/src/api/Fugitive.ts.html +436 -0
  28. package/dist/coverage/lcov-report/src/api/Location.ts.html +433 -0
  29. package/dist/coverage/lcov-report/src/api/Mobile.ts.html +448 -0
  30. package/dist/coverage/lcov-report/src/api/Stationary.ts.html +442 -0
  31. package/dist/coverage/lcov-report/src/api/TransportationAndDistribution.ts.html +436 -0
  32. package/dist/coverage/lcov-report/src/api/Usage.ts.html +160 -0
  33. package/dist/coverage/lcov-report/src/api/index.html +236 -0
  34. package/dist/coverage/lcov-report/src/index.html +161 -0
  35. package/dist/coverage/lcov-report/src/request.ts.html +235 -0
  36. package/dist/coverage/lcov-report/src/utils.ts.html +139 -0
  37. package/dist/coverage/lcov-report/test/index.html +116 -0
  38. package/dist/coverage/lcov-report/test/mocks/CommonRequest.ts.html +142 -0
  39. package/dist/coverage/lcov-report/test/mocks/FactorRequest.ts.html +133 -0
  40. package/dist/coverage/lcov-report/test/mocks/GenericCalculationRequest.ts.html +142 -0
  41. package/dist/coverage/lcov-report/test/mocks/LocationRequest.ts.html +139 -0
  42. package/dist/coverage/lcov-report/test/mocks/SearchRequest.ts.html +142 -0
  43. package/dist/coverage/lcov-report/test/mocks/index.html +176 -0
  44. package/dist/coverage/lcov-report/test/testUtils.ts.html +97 -0
  45. package/dist/coverage/lcov.info +578 -0
  46. package/dist/index.js +2 -1
  47. package/dist/interfaces/response/AreaResponse.js +2 -0
  48. package/dist/interfaces/response/EmissionResponse.js +2 -0
  49. package/dist/interfaces/response/EmissionResponseWithDetails.js +2 -0
  50. package/dist/interfaces/response/FactorResponse.js +2 -0
  51. package/dist/interfaces/response/FactorSetResponse.js +2 -0
  52. package/dist/interfaces/response/SearchResponse.js +2 -0
  53. package/dist/interfaces/response/TypeResponse.js +2 -0
  54. package/dist/interfaces/response/UnitResponse.js +2 -0
  55. package/dist/interfaces/response/UsageResponse.js +5 -0
  56. package/dist/types/Constants.d.ts +1 -0
  57. package/dist/types/api/Calculation.d.ts +13 -8
  58. package/dist/types/api/Factor.d.ts +18 -13
  59. package/dist/types/api/FactorSets.d.ts +3 -2
  60. package/dist/types/api/Fugitive.d.ts +13 -8
  61. package/dist/types/api/Location.d.ts +13 -8
  62. package/dist/types/api/Mobile.d.ts +13 -10
  63. package/dist/types/api/Stationary.d.ts +13 -8
  64. package/dist/types/api/TransportationAndDistribution.d.ts +14 -9
  65. package/dist/types/api/Usage.d.ts +13 -0
  66. package/dist/types/index.d.ts +10 -0
  67. package/dist/types/interfaces/response/AreaResponse.d.ts +20 -0
  68. package/dist/types/interfaces/response/EmissionResponse.d.ts +31 -0
  69. package/dist/types/interfaces/response/EmissionResponseWithDetails.d.ts +144 -0
  70. package/dist/types/interfaces/response/FactorResponse.d.ts +53 -0
  71. package/dist/types/interfaces/response/FactorSetResponse.d.ts +38 -0
  72. package/dist/types/interfaces/response/SearchResponse.d.ts +41 -0
  73. package/dist/types/interfaces/response/TypeResponse.d.ts +7 -0
  74. package/dist/types/interfaces/response/UnitResponse.d.ts +16 -0
  75. package/dist/types/interfaces/response/UsageResponse.d.ts +17 -0
  76. package/docs/_sources/index.rst.txt +1 -0
  77. package/docs/_sources/reference.rst.txt +6 -0
  78. package/docs/_sources/troubleshooting.rst.txt +486 -0
  79. package/docs/authentication.html +1 -0
  80. package/docs/client.html +1 -0
  81. package/docs/genindex.html +5 -0
  82. package/docs/getting_started.html +1 -0
  83. package/docs/index.html +15 -0
  84. package/docs/objects.inv +0 -0
  85. package/docs/reference.html +71 -35
  86. package/docs/sdk.html +1 -0
  87. package/docs/search.html +1 -0
  88. package/docs/searchindex.js +1 -1
  89. package/docs/troubleshooting.html +777 -0
  90. package/package.json +1 -1
  91. package/sphinx-build/requirements.txt +5 -0
  92. package/sphinx-build/source/index.rst +1 -0
  93. package/sphinx-build/source/reference.rst +6 -0
  94. package/sphinx-build/source/troubleshooting.rst +486 -0
  95. package/src/Constants.ts +2 -0
  96. package/src/api/Calculation.ts +19 -14
  97. package/src/api/Factor.ts +27 -22
  98. package/src/api/FactorSets.ts +4 -3
  99. package/src/api/Fugitive.ts +19 -14
  100. package/src/api/Location.ts +20 -15
  101. package/src/api/Mobile.ts +19 -16
  102. package/src/api/Stationary.ts +19 -14
  103. package/src/api/TransportationAndDistribution.ts +21 -16
  104. package/src/api/Usage.ts +26 -0
  105. package/src/index.ts +35 -1
  106. package/src/interfaces/response/AreaResponse.ts +25 -0
  107. package/src/interfaces/response/EmissionResponse.ts +44 -0
  108. package/src/interfaces/response/EmissionResponseWithDetails.ts +183 -0
  109. package/src/interfaces/response/FactorResponse.ts +78 -0
  110. package/src/interfaces/response/FactorSetResponse.ts +52 -0
  111. package/src/interfaces/response/SearchResponse.ts +52 -0
  112. package/src/interfaces/response/TypeResponse.ts +7 -0
  113. package/src/interfaces/response/UnitResponse.ts +17 -0
  114. package/src/interfaces/response/UsageResponse.ts +23 -0
  115. package/test/apiTest.test.ts +35 -4
@@ -0,0 +1,97 @@
1
+
2
+ <!doctype html>
3
+ <html lang="en">
4
+
5
+ <head>
6
+ <title>Code coverage report for test/testUtils.ts</title>
7
+ <meta charset="utf-8" />
8
+ <link rel="stylesheet" href="../prettify.css" />
9
+ <link rel="stylesheet" href="../base.css" />
10
+ <link rel="shortcut icon" type="image/x-icon" href="../favicon.png" />
11
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
12
+ <style type='text/css'>
13
+ .coverage-summary .sorter {
14
+ background-image: url(../sort-arrow-sprite.png);
15
+ }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <div class='wrapper'>
21
+ <div class='pad1'>
22
+ <h1><a href="../index.html">All files</a> / <a href="index.html">test</a> testUtils.ts</h1>
23
+ <div class='clearfix'>
24
+
25
+ <div class='fl pad1y space-right2'>
26
+ <span class="strong">100% </span>
27
+ <span class="quiet">Statements</span>
28
+ <span class='fraction'>4/4</span>
29
+ </div>
30
+
31
+
32
+ <div class='fl pad1y space-right2'>
33
+ <span class="strong">100% </span>
34
+ <span class="quiet">Branches</span>
35
+ <span class='fraction'>0/0</span>
36
+ </div>
37
+
38
+
39
+ <div class='fl pad1y space-right2'>
40
+ <span class="strong">100% </span>
41
+ <span class="quiet">Functions</span>
42
+ <span class='fraction'>1/1</span>
43
+ </div>
44
+
45
+
46
+ <div class='fl pad1y space-right2'>
47
+ <span class="strong">100% </span>
48
+ <span class="quiet">Lines</span>
49
+ <span class='fraction'>4/4</span>
50
+ </div>
51
+
52
+
53
+ </div>
54
+ <p class="quiet">
55
+ Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
56
+ </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input type="search" id="fileSearch">
61
+ </div>
62
+ </template>
63
+ </div>
64
+ <div class='status-line high'></div>
65
+ <pre><table class="coverage">
66
+ <tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
67
+ <a name='L2'></a><a href='#L2'>2</a>
68
+ <a name='L3'></a><a href='#L3'>3</a>
69
+ <a name='L4'></a><a href='#L4'>4</a>
70
+ <a name='L5'></a><a href='#L5'>5</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
71
+ <span class="cline-any cline-yes">3x</span>
72
+ <span class="cline-any cline-yes">3x</span>
73
+ <span class="cline-any cline-yes">3x</span>
74
+ <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">export function generateMockjwt(expiryInSecsFromNow : number): string {
75
+ const header = Buffer.from(JSON.stringify({alg: 'HS256', typ: 'JWT'})).toString('base64url');
76
+ const payload = Buffer.from(JSON.stringify({exp: Math.floor(Date.now()/1000) + expiryInSecsFromNow})).toString('base64url');
77
+ return `${header}.${payload}.signature`;
78
+ }</pre></td></tr></table></pre>
79
+
80
+ <div class='push'></div><!-- for sticky footer -->
81
+ </div><!-- /wrapper -->
82
+ <div class='footer quiet pad2 space-top1 center small'>
83
+ Code coverage generated by
84
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
85
+ at 2025-12-23T04:53:24.226Z
86
+ </div>
87
+ <script src="../prettify.js"></script>
88
+ <script>
89
+ window.onload = function () {
90
+ prettyPrint();
91
+ };
92
+ </script>
93
+ <script src="../sorter.js"></script>
94
+ <script src="../block-navigation.js"></script>
95
+ </body>
96
+ </html>
97
+
@@ -0,0 +1,578 @@
1
+ TN:
2
+ SF:src/Client.ts
3
+ FN:19,(anonymous_1)
4
+ FN:77,(anonymous_2)
5
+ FN:113,(anonymous_3)
6
+ FN:135,(anonymous_4)
7
+ FN:156,(anonymous_5)
8
+ FN:186,(anonymous_6)
9
+ FN:200,(anonymous_7)
10
+ FN:214,(anonymous_8)
11
+ FN:236,(anonymous_9)
12
+ FNF:9
13
+ FNH:7
14
+ FNDA:38,(anonymous_1)
15
+ FNDA:41,(anonymous_2)
16
+ FNDA:68,(anonymous_3)
17
+ FNDA:73,(anonymous_4)
18
+ FNDA:3,(anonymous_5)
19
+ FNDA:2,(anonymous_6)
20
+ FNDA:0,(anonymous_7)
21
+ FNDA:0,(anonymous_8)
22
+ FNDA:4,(anonymous_9)
23
+ DA:1,4
24
+ DA:3,4
25
+ DA:4,4
26
+ DA:6,4
27
+ DA:7,4
28
+ DA:24,38
29
+ DA:25,38
30
+ DA:26,38
31
+ DA:27,38
32
+ DA:28,1
33
+ DA:29,1
34
+ DA:31,37
35
+ DA:32,37
36
+ DA:35,38
37
+ DA:36,38
38
+ DA:37,38
39
+ DA:38,38
40
+ DA:39,38
41
+ DA:40,38
42
+ DA:78,41
43
+ DA:79,1
44
+ DA:83,40
45
+ DA:84,1
46
+ DA:88,39
47
+ DA:89,1
48
+ DA:94,38
49
+ DA:96,38
50
+ DA:97,1
51
+ DA:98,1
52
+ DA:99,37
53
+ DA:100,38
54
+ DA:114,68
55
+ DA:136,73
56
+ DA:137,1
57
+ DA:141,72
58
+ DA:157,3
59
+ DA:158,2
60
+ DA:159,2
61
+ DA:160,1
62
+ DA:161,1
63
+ DA:167,1
64
+ DA:168,1
65
+ DA:187,2
66
+ DA:201,0
67
+ DA:215,0
68
+ DA:237,4
69
+ DA:238,4
70
+ DA:249,4
71
+ DA:250,4
72
+ LF:49
73
+ LH:47
74
+ BRDA:22,0,0,0
75
+ BRDA:24,1,0,1
76
+ BRDA:24,2,0,1
77
+ BRDA:24,3,0,38
78
+ BRDA:27,4,0,1
79
+ BRDA:27,4,1,37
80
+ BRDA:37,5,0,0
81
+ BRDA:37,5,1,38
82
+ BRDA:37,6,0,38
83
+ BRDA:37,6,1,38
84
+ BRDA:38,7,0,0
85
+ BRDA:38,7,1,38
86
+ BRDA:38,8,0,38
87
+ BRDA:38,8,1,38
88
+ BRDA:40,9,0,0
89
+ BRDA:40,9,1,38
90
+ BRDA:78,10,0,1
91
+ BRDA:78,10,1,40
92
+ BRDA:78,11,0,41
93
+ BRDA:78,11,1,1
94
+ BRDA:83,12,0,1
95
+ BRDA:83,12,1,39
96
+ BRDA:83,13,0,40
97
+ BRDA:83,13,1,2
98
+ BRDA:88,14,0,1
99
+ BRDA:88,14,1,38
100
+ BRDA:88,15,0,39
101
+ BRDA:88,15,1,38
102
+ BRDA:88,15,2,37
103
+ BRDA:96,16,0,1
104
+ BRDA:96,16,1,37
105
+ BRDA:96,17,0,38
106
+ BRDA:96,17,1,1
107
+ BRDA:136,18,0,1
108
+ BRDA:136,18,1,72
109
+ BRDA:157,19,0,2
110
+ BRDA:157,19,1,1
111
+ BRDA:159,20,0,1
112
+ BRDA:159,20,1,1
113
+ BRDA:237,21,0,1
114
+ BRDA:237,21,1,3
115
+ BRDA:237,22,0,4
116
+ BRDA:237,22,1,4
117
+ BRDA:249,23,0,0
118
+ BRDA:249,23,1,4
119
+ BRF:45
120
+ BRH:40
121
+ end_of_record
122
+ TN:
123
+ SF:src/Constants.ts
124
+ FNF:0
125
+ FNH:0
126
+ DA:1,4
127
+ DA:2,4
128
+ DA:3,4
129
+ DA:4,4
130
+ DA:5,4
131
+ DA:6,4
132
+ DA:7,4
133
+ DA:8,4
134
+ DA:9,4
135
+ DA:10,4
136
+ DA:11,4
137
+ DA:13,4
138
+ DA:14,4
139
+ DA:15,4
140
+ DA:16,4
141
+ DA:17,4
142
+ DA:18,4
143
+ DA:19,4
144
+ DA:21,4
145
+ DA:22,4
146
+ DA:23,4
147
+ DA:24,4
148
+ DA:25,4
149
+ DA:26,4
150
+ DA:27,4
151
+ DA:28,4
152
+ DA:30,4
153
+ DA:31,4
154
+ DA:32,4
155
+ DA:33,4
156
+ DA:34,4
157
+ DA:35,4
158
+ DA:36,4
159
+ DA:38,4
160
+ DA:40,4
161
+ DA:41,4
162
+ DA:42,4
163
+ DA:43,4
164
+ DA:44,4
165
+ LF:39
166
+ LH:39
167
+ BRF:0
168
+ BRH:0
169
+ end_of_record
170
+ TN:
171
+ SF:src/request.ts
172
+ FN:30,makeApiRequest
173
+ FNF:1
174
+ FNH:1
175
+ FNDA:3,makeApiRequest
176
+ DA:1,2
177
+ DA:3,2
178
+ DA:4,2
179
+ DA:30,2
180
+ DA:31,3
181
+ DA:32,3
182
+ DA:34,3
183
+ DA:48,3
184
+ DA:49,2
185
+ LF:9
186
+ LH:9
187
+ BRF:0
188
+ BRH:0
189
+ end_of_record
190
+ TN:
191
+ SF:src/utils.ts
192
+ FN:14,findExpiryTime
193
+ FNF:1
194
+ FNH:1
195
+ FNDA:36,findExpiryTime
196
+ DA:14,4
197
+ DA:15,36
198
+ DA:16,36
199
+ DA:17,36
200
+ DA:18,36
201
+ LF:5
202
+ LH:5
203
+ BRDA:17,0,0,0
204
+ BRDA:17,0,1,36
205
+ BRF:2
206
+ BRH:1
207
+ end_of_record
208
+ TN:
209
+ SF:src/api/Calculation.ts
210
+ FN:38,calculate
211
+ FN:62,getTypes
212
+ FN:82,getArea
213
+ FN:107,getUnits
214
+ FNF:4
215
+ FNH:4
216
+ FNDA:1,calculate
217
+ FNDA:1,getTypes
218
+ FNDA:1,getArea
219
+ FNDA:1,getUnits
220
+ DA:1,1
221
+ DA:2,1
222
+ DA:9,1
223
+ DA:38,1
224
+ DA:41,1
225
+ DA:42,1
226
+ DA:44,1
227
+ DA:62,1
228
+ DA:63,1
229
+ DA:64,1
230
+ DA:66,1
231
+ DA:82,1
232
+ DA:83,1
233
+ DA:84,1
234
+ DA:86,1
235
+ DA:107,1
236
+ DA:110,1
237
+ DA:111,1
238
+ DA:113,1
239
+ LF:19
240
+ LH:19
241
+ BRF:0
242
+ BRH:0
243
+ end_of_record
244
+ TN:
245
+ SF:src/api/Factor.ts
246
+ FN:44,retrieveFactor
247
+ FN:79,search
248
+ FN:102,getTypes
249
+ FN:123,getSearchArea
250
+ FN:144,getArea
251
+ FN:169,getUnits
252
+ FNF:6
253
+ FNH:6
254
+ FNDA:1,retrieveFactor
255
+ FNDA:1,search
256
+ FNDA:1,getTypes
257
+ FNDA:1,getSearchArea
258
+ FNDA:1,getArea
259
+ FNDA:1,getUnits
260
+ DA:1,1
261
+ DA:2,1
262
+ DA:9,1
263
+ DA:44,1
264
+ DA:47,1
265
+ DA:48,1
266
+ DA:50,1
267
+ DA:79,1
268
+ DA:82,1
269
+ DA:83,1
270
+ DA:85,1
271
+ DA:102,1
272
+ DA:104,1
273
+ DA:105,1
274
+ DA:107,1
275
+ DA:123,1
276
+ DA:125,1
277
+ DA:126,1
278
+ DA:128,1
279
+ DA:144,1
280
+ DA:145,1
281
+ DA:146,1
282
+ DA:148,1
283
+ DA:169,1
284
+ DA:172,1
285
+ DA:173,1
286
+ DA:175,1
287
+ LF:27
288
+ LH:27
289
+ BRF:0
290
+ BRH:0
291
+ end_of_record
292
+ TN:
293
+ SF:src/api/FactorSets.ts
294
+ FN:16,get
295
+ FNF:1
296
+ FNH:1
297
+ FNDA:1,get
298
+ DA:1,1
299
+ DA:2,1
300
+ DA:4,1
301
+ DA:16,1
302
+ DA:18,1
303
+ DA:19,1
304
+ DA:21,1
305
+ LF:7
306
+ LH:7
307
+ BRF:0
308
+ BRH:0
309
+ end_of_record
310
+ TN:
311
+ SF:src/api/Fugitive.ts
312
+ FN:37,calculate
313
+ FN:60,getTypes
314
+ FN:81,getArea
315
+ FN:107,getUnits
316
+ FNF:4
317
+ FNH:4
318
+ FNDA:1,calculate
319
+ FNDA:1,getTypes
320
+ FNDA:1,getArea
321
+ FNDA:1,getUnits
322
+ DA:1,1
323
+ DA:2,1
324
+ DA:9,1
325
+ DA:37,1
326
+ DA:40,1
327
+ DA:41,1
328
+ DA:43,1
329
+ DA:60,1
330
+ DA:62,1
331
+ DA:63,1
332
+ DA:65,1
333
+ DA:81,1
334
+ DA:83,1
335
+ DA:84,1
336
+ DA:86,1
337
+ DA:107,1
338
+ DA:110,1
339
+ DA:111,1
340
+ DA:113,1
341
+ LF:19
342
+ LH:19
343
+ BRF:0
344
+ BRH:0
345
+ end_of_record
346
+ TN:
347
+ SF:src/api/Location.ts
348
+ FN:37,calculate
349
+ FN:62,getTypes
350
+ FN:83,getArea
351
+ FN:106,getUnits
352
+ FNF:4
353
+ FNH:4
354
+ FNDA:1,calculate
355
+ FNDA:1,getTypes
356
+ FNDA:1,getArea
357
+ FNDA:1,getUnits
358
+ DA:1,1
359
+ DA:2,1
360
+ DA:9,1
361
+ DA:37,1
362
+ DA:40,1
363
+ DA:41,1
364
+ DA:43,1
365
+ DA:62,1
366
+ DA:64,1
367
+ DA:65,1
368
+ DA:67,1
369
+ DA:83,1
370
+ DA:85,1
371
+ DA:86,1
372
+ DA:88,1
373
+ DA:106,1
374
+ DA:109,1
375
+ DA:110,1
376
+ DA:112,1
377
+ LF:19
378
+ LH:19
379
+ BRF:0
380
+ BRH:0
381
+ end_of_record
382
+ TN:
383
+ SF:src/api/Mobile.ts
384
+ FN:39,calculate
385
+ FN:64,getTypes
386
+ FN:85,getArea
387
+ FN:111,getUnits
388
+ FNF:4
389
+ FNH:4
390
+ FNDA:1,calculate
391
+ FNDA:1,getTypes
392
+ FNDA:1,getArea
393
+ FNDA:1,getUnits
394
+ DA:1,1
395
+ DA:2,1
396
+ DA:9,1
397
+ DA:39,1
398
+ DA:42,1
399
+ DA:43,1
400
+ DA:45,1
401
+ DA:64,1
402
+ DA:66,1
403
+ DA:67,1
404
+ DA:69,1
405
+ DA:85,1
406
+ DA:87,1
407
+ DA:88,1
408
+ DA:90,1
409
+ DA:111,1
410
+ DA:114,1
411
+ DA:115,1
412
+ DA:117,1
413
+ LF:19
414
+ LH:19
415
+ BRF:0
416
+ BRH:0
417
+ end_of_record
418
+ TN:
419
+ SF:src/api/Stationary.ts
420
+ FN:39,calculate
421
+ FN:62,getTypes
422
+ FN:83,getArea
423
+ FN:109,getUnits
424
+ FNF:4
425
+ FNH:4
426
+ FNDA:1,calculate
427
+ FNDA:1,getTypes
428
+ FNDA:1,getArea
429
+ FNDA:1,getUnits
430
+ DA:1,1
431
+ DA:2,1
432
+ DA:9,1
433
+ DA:39,1
434
+ DA:42,1
435
+ DA:43,1
436
+ DA:45,1
437
+ DA:62,1
438
+ DA:64,1
439
+ DA:65,1
440
+ DA:67,1
441
+ DA:83,1
442
+ DA:85,1
443
+ DA:86,1
444
+ DA:88,1
445
+ DA:109,1
446
+ DA:112,1
447
+ DA:113,1
448
+ DA:115,1
449
+ LF:19
450
+ LH:19
451
+ BRF:0
452
+ BRH:0
453
+ end_of_record
454
+ TN:
455
+ SF:src/api/TransportationAndDistribution.ts
456
+ FN:36,calculate
457
+ FN:60,getTypes
458
+ FN:81,getArea
459
+ FN:107,getUnits
460
+ FNF:4
461
+ FNH:4
462
+ FNDA:1,calculate
463
+ FNDA:1,getTypes
464
+ FNDA:1,getArea
465
+ FNDA:1,getUnits
466
+ DA:1,1
467
+ DA:2,1
468
+ DA:9,1
469
+ DA:36,1
470
+ DA:39,1
471
+ DA:40,1
472
+ DA:42,1
473
+ DA:60,1
474
+ DA:62,1
475
+ DA:63,1
476
+ DA:65,1
477
+ DA:81,1
478
+ DA:83,1
479
+ DA:84,1
480
+ DA:86,1
481
+ DA:107,1
482
+ DA:110,1
483
+ DA:111,1
484
+ DA:113,1
485
+ LF:19
486
+ LH:19
487
+ BRF:0
488
+ BRH:0
489
+ end_of_record
490
+ TN:
491
+ SF:src/api/Usage.ts
492
+ FN:17,getUsage
493
+ FNF:1
494
+ FNH:1
495
+ FNDA:3,getUsage
496
+ DA:1,1
497
+ DA:2,1
498
+ DA:4,1
499
+ DA:17,1
500
+ DA:18,3
501
+ DA:19,3
502
+ DA:21,3
503
+ LF:7
504
+ LH:7
505
+ BRDA:17,0,0,0
506
+ BRF:1
507
+ BRH:0
508
+ end_of_record
509
+ TN:
510
+ SF:test/testUtils.ts
511
+ FN:1,generateMockjwt
512
+ FNF:1
513
+ FNH:1
514
+ FNDA:3,generateMockjwt
515
+ DA:1,1
516
+ DA:2,3
517
+ DA:3,3
518
+ DA:4,3
519
+ LF:4
520
+ LH:4
521
+ BRF:0
522
+ BRH:0
523
+ end_of_record
524
+ TN:
525
+ SF:test/mocks/CommonRequest.ts
526
+ FNF:0
527
+ FNH:0
528
+ DA:3,1
529
+ DA:19,1
530
+ LF:2
531
+ LH:2
532
+ BRF:0
533
+ BRH:0
534
+ end_of_record
535
+ TN:
536
+ SF:test/mocks/FactorRequest.ts
537
+ FNF:0
538
+ FNH:0
539
+ DA:3,1
540
+ DA:16,1
541
+ LF:2
542
+ LH:2
543
+ BRF:0
544
+ BRH:0
545
+ end_of_record
546
+ TN:
547
+ SF:test/mocks/GenericCalculationRequest.ts
548
+ FNF:0
549
+ FNH:0
550
+ DA:3,1
551
+ DA:19,1
552
+ LF:2
553
+ LH:2
554
+ BRF:0
555
+ BRH:0
556
+ end_of_record
557
+ TN:
558
+ SF:test/mocks/LocationRequest.ts
559
+ FNF:0
560
+ FNH:0
561
+ DA:3,1
562
+ DA:19,1
563
+ LF:2
564
+ LH:2
565
+ BRF:0
566
+ BRH:0
567
+ end_of_record
568
+ TN:
569
+ SF:test/mocks/SearchRequest.ts
570
+ FNF:0
571
+ FNH:0
572
+ DA:3,1
573
+ DA:19,1
574
+ LF:2
575
+ LH:2
576
+ BRF:0
577
+ BRH:0
578
+ end_of_record
package/dist/index.js CHANGED
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.FactorSets = exports.Factor = exports.TransportationAndDistribution = exports.Calculation = exports.Stationary = exports.Mobile = exports.Fugitive = exports.Location = exports.Client = void 0;
36
+ exports.FactorSets = exports.Factor = exports.Usage = exports.TransportationAndDistribution = exports.Calculation = exports.Stationary = exports.Mobile = exports.Fugitive = exports.Location = exports.Client = void 0;
37
37
  var Client_1 = require("./Client");
38
38
  Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return Client_1.Client; } });
39
39
  exports.Location = __importStar(require("./api/Location"));
@@ -42,5 +42,6 @@ exports.Mobile = __importStar(require("./api/Mobile"));
42
42
  exports.Stationary = __importStar(require("./api/Stationary"));
43
43
  exports.Calculation = __importStar(require("./api/Calculation"));
44
44
  exports.TransportationAndDistribution = __importStar(require("./api/TransportationAndDistribution"));
45
+ exports.Usage = __importStar(require("./api/Usage"));
45
46
  exports.Factor = __importStar(require("./api/Factor"));
46
47
  exports.FactorSets = __importStar(require("./api/FactorSets"));
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * Interface representing the GHG Metrics Usage Response
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });