emissions-api-sdk 1.0.8 → 1.0.10

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 (49) hide show
  1. package/dist/Client.js +69 -9
  2. package/dist/Constants.js +2 -1
  3. package/dist/coverage/clover.xml +72 -57
  4. package/dist/coverage/coverage-final.json +4 -4
  5. package/dist/coverage/lcov-report/index.html +18 -18
  6. package/dist/coverage/lcov-report/src/Client.ts.html +242 -50
  7. package/dist/coverage/lcov-report/src/Constants.ts.html +7 -4
  8. package/dist/coverage/lcov-report/src/api/Calculation.ts.html +1 -1
  9. package/dist/coverage/lcov-report/src/api/EconomicActivity.ts.html +1 -1
  10. package/dist/coverage/lcov-report/src/api/Factor.ts.html +1 -1
  11. package/dist/coverage/lcov-report/src/api/FactorSets.ts.html +1 -1
  12. package/dist/coverage/lcov-report/src/api/Fugitive.ts.html +1 -1
  13. package/dist/coverage/lcov-report/src/api/Location.ts.html +1 -1
  14. package/dist/coverage/lcov-report/src/api/Metadata.ts.html +1 -1
  15. package/dist/coverage/lcov-report/src/api/Mobile.ts.html +1 -1
  16. package/dist/coverage/lcov-report/src/api/RealEstate.ts.html +1 -1
  17. package/dist/coverage/lcov-report/src/api/Stationary.ts.html +1 -1
  18. package/dist/coverage/lcov-report/src/api/TransportationAndDistribution.ts.html +1 -1
  19. package/dist/coverage/lcov-report/src/api/TypeRecommender.ts.html +1 -1
  20. package/dist/coverage/lcov-report/src/api/Usage.ts.html +1 -1
  21. package/dist/coverage/lcov-report/src/api/index.html +1 -1
  22. package/dist/coverage/lcov-report/src/index.html +21 -21
  23. package/dist/coverage/lcov-report/src/request.ts.html +1 -1
  24. package/dist/coverage/lcov-report/src/utils.ts.html +5 -5
  25. package/dist/coverage/lcov-report/test/index.html +1 -1
  26. package/dist/coverage/lcov-report/test/mocks/CommonRequest.ts.html +1 -1
  27. package/dist/coverage/lcov-report/test/mocks/FactorRequest.ts.html +1 -1
  28. package/dist/coverage/lcov-report/test/mocks/GenericCalculationRequest.ts.html +1 -1
  29. package/dist/coverage/lcov-report/test/mocks/LocationRequest.ts.html +1 -1
  30. package/dist/coverage/lcov-report/test/mocks/SearchRequest.ts.html +1 -1
  31. package/dist/coverage/lcov-report/test/mocks/index.html +1 -1
  32. package/dist/coverage/lcov-report/test/testUtils.ts.html +4 -4
  33. package/dist/coverage/lcov.info +161 -121
  34. package/dist/types/Client.d.ts +26 -0
  35. package/dist/types/Constants.d.ts +1 -0
  36. package/dist/types/index.d.ts +1 -1
  37. package/dist/types/interfaces/Config.d.ts +6 -0
  38. package/dist/types/interfaces/response/EmissionResponseWithDetails.d.ts +62 -124
  39. package/docs/reference.html +8 -2
  40. package/docs/searchindex.js +1 -1
  41. package/package.json +3 -2
  42. package/src/Client.ts +79 -15
  43. package/src/Constants.ts +1 -0
  44. package/src/index.ts +3 -12
  45. package/src/interfaces/Config.ts +7 -0
  46. package/src/interfaces/response/EmissionResponseWithDetails.ts +79 -146
  47. package/test/client.test.ts +93 -1
  48. package/test/tokenRefresh.test.ts +91 -1
  49. package/.secrets.baseline +0 -314
package/.secrets.baseline DELETED
@@ -1,314 +0,0 @@
1
- {
2
- "exclude": {
3
- "files": "^.secrets.baseline$",
4
- "lines": null
5
- },
6
- "generated_at": "2026-03-05T05:02:32Z",
7
- "plugins_used": [
8
- {
9
- "name": "AWSKeyDetector"
10
- },
11
- {
12
- "name": "ArtifactoryDetector"
13
- },
14
- {
15
- "name": "AzureStorageKeyDetector"
16
- },
17
- {
18
- "base64_limit": 4.5,
19
- "name": "Base64HighEntropyString"
20
- },
21
- {
22
- "name": "BasicAuthDetector"
23
- },
24
- {
25
- "name": "BoxDetector"
26
- },
27
- {
28
- "name": "CloudantDetector"
29
- },
30
- {
31
- "ghe_instance": "github.ibm.com",
32
- "name": "GheDetector"
33
- },
34
- {
35
- "name": "GitHubTokenDetector"
36
- },
37
- {
38
- "hex_limit": 3,
39
- "name": "HexHighEntropyString"
40
- },
41
- {
42
- "name": "IbmCloudIamDetector"
43
- },
44
- {
45
- "name": "IbmCosHmacDetector"
46
- },
47
- {
48
- "name": "JwtTokenDetector"
49
- },
50
- {
51
- "keyword_exclude": null,
52
- "name": "KeywordDetector"
53
- },
54
- {
55
- "name": "MailchimpDetector"
56
- },
57
- {
58
- "name": "NpmDetector"
59
- },
60
- {
61
- "name": "PrivateKeyDetector"
62
- },
63
- {
64
- "name": "SlackDetector"
65
- },
66
- {
67
- "name": "SoftlayerDetector"
68
- },
69
- {
70
- "name": "SquareOAuthDetector"
71
- },
72
- {
73
- "name": "StripeDetector"
74
- },
75
- {
76
- "name": "TwilioKeyDetector"
77
- }
78
- ],
79
- "results": {
80
- "README.md": [
81
- {
82
- "hashed_secret": "9eddf3741c2ec20058940c3225b3e387cf6166dd",
83
- "is_verified": false,
84
- "line_number": 90,
85
- "type": "Secret Keyword",
86
- "verified_result": null
87
- }
88
- ],
89
- "docs/_sources/authentication.rst.txt": [
90
- {
91
- "hashed_secret": "d92258e9826f7923e5fa45241420653a89db10b0",
92
- "is_verified": false,
93
- "line_number": 41,
94
- "type": "Secret Keyword",
95
- "verified_result": null
96
- },
97
- {
98
- "hashed_secret": "9eddf3741c2ec20058940c3225b3e387cf6166dd",
99
- "is_verified": false,
100
- "line_number": 152,
101
- "type": "Secret Keyword",
102
- "verified_result": null
103
- }
104
- ],
105
- "docs/_sources/client.rst.txt": [
106
- {
107
- "hashed_secret": "9eddf3741c2ec20058940c3225b3e387cf6166dd",
108
- "is_verified": false,
109
- "line_number": 108,
110
- "type": "Secret Keyword",
111
- "verified_result": null
112
- }
113
- ],
114
- "docs/_sources/getting_started.rst.txt": [
115
- {
116
- "hashed_secret": "11fa7c37d697f30e6aee828b4426a10f83ab2380",
117
- "is_verified": false,
118
- "line_number": 122,
119
- "type": "Secret Keyword",
120
- "verified_result": null
121
- }
122
- ],
123
- "docs/_sources/troubleshooting.rst.txt": [
124
- {
125
- "hashed_secret": "ade7ae7ec3dcbc8e6efab2ad366fd59b4be60bda",
126
- "is_verified": false,
127
- "line_number": 129,
128
- "type": "Secret Keyword",
129
- "verified_result": null
130
- },
131
- {
132
- "hashed_secret": "24de2a83c833555a5931a357cb9a639830db7851",
133
- "is_verified": false,
134
- "line_number": 191,
135
- "type": "Secret Keyword",
136
- "verified_result": null
137
- },
138
- {
139
- "hashed_secret": "11fa7c37d697f30e6aee828b4426a10f83ab2380",
140
- "is_verified": false,
141
- "line_number": 224,
142
- "type": "Secret Keyword",
143
- "verified_result": null
144
- }
145
- ],
146
- "docs/authentication.html": [
147
- {
148
- "hashed_secret": "7460410433c137c8124a7681126863dcc0172caa",
149
- "is_verified": false,
150
- "line_number": 287,
151
- "type": "Secret Keyword",
152
- "verified_result": null
153
- },
154
- {
155
- "hashed_secret": "93f64017194ac1d984f80fc133f60bb9ec09215a",
156
- "is_verified": false,
157
- "line_number": 417,
158
- "type": "Secret Keyword",
159
- "verified_result": null
160
- }
161
- ],
162
- "docs/getting_started.html": [
163
- {
164
- "hashed_secret": "93f64017194ac1d984f80fc133f60bb9ec09215a",
165
- "is_verified": false,
166
- "line_number": 289,
167
- "type": "Secret Keyword",
168
- "verified_result": null
169
- }
170
- ],
171
- "docs/searchindex.js": [
172
- {
173
- "hashed_secret": "0c46900fa1fdf1610a99248b86d76554966d69c6",
174
- "is_verified": false,
175
- "line_number": 1,
176
- "type": "Hex High Entropy String",
177
- "verified_result": null
178
- }
179
- ],
180
- "sphinx-build/source/authentication.rst": [
181
- {
182
- "hashed_secret": "d92258e9826f7923e5fa45241420653a89db10b0",
183
- "is_verified": false,
184
- "line_number": 41,
185
- "type": "Secret Keyword",
186
- "verified_result": null
187
- },
188
- {
189
- "hashed_secret": "9eddf3741c2ec20058940c3225b3e387cf6166dd",
190
- "is_verified": false,
191
- "line_number": 152,
192
- "type": "Secret Keyword",
193
- "verified_result": null
194
- }
195
- ],
196
- "sphinx-build/source/client.rst": [
197
- {
198
- "hashed_secret": "9eddf3741c2ec20058940c3225b3e387cf6166dd",
199
- "is_verified": false,
200
- "line_number": 108,
201
- "type": "Secret Keyword",
202
- "verified_result": null
203
- }
204
- ],
205
- "sphinx-build/source/getting_started.rst": [
206
- {
207
- "hashed_secret": "11fa7c37d697f30e6aee828b4426a10f83ab2380",
208
- "is_verified": false,
209
- "line_number": 122,
210
- "type": "Secret Keyword",
211
- "verified_result": null
212
- }
213
- ],
214
- "sphinx-build/source/troubleshooting.rst": [
215
- {
216
- "hashed_secret": "ade7ae7ec3dcbc8e6efab2ad366fd59b4be60bda",
217
- "is_verified": false,
218
- "line_number": 129,
219
- "type": "Secret Keyword",
220
- "verified_result": null
221
- },
222
- {
223
- "hashed_secret": "24de2a83c833555a5931a357cb9a639830db7851",
224
- "is_verified": false,
225
- "line_number": 191,
226
- "type": "Secret Keyword",
227
- "verified_result": null
228
- },
229
- {
230
- "hashed_secret": "11fa7c37d697f30e6aee828b4426a10f83ab2380",
231
- "is_verified": false,
232
- "line_number": 224,
233
- "type": "Secret Keyword",
234
- "verified_result": null
235
- }
236
- ],
237
- "src/Client.ts": [
238
- {
239
- "hashed_secret": "1f5e25be9b575e9f5d39c82dfd1d9f4d73f1975c",
240
- "is_verified": false,
241
- "line_number": 24,
242
- "type": "Secret Keyword",
243
- "verified_result": null
244
- },
245
- {
246
- "hashed_secret": "6303c901093123ff7019188dcd12b2e18d4d9827",
247
- "is_verified": false,
248
- "line_number": 28,
249
- "type": "Secret Keyword",
250
- "verified_result": null
251
- },
252
- {
253
- "hashed_secret": "f5cbae85fb47446511da4c9974e2da448caee7e1",
254
- "is_verified": false,
255
- "line_number": 31,
256
- "type": "Secret Keyword",
257
- "verified_result": null
258
- },
259
- {
260
- "hashed_secret": "65e622227634e8876cfa733000233fb80c6f0473",
261
- "is_verified": false,
262
- "line_number": 162,
263
- "type": "Secret Keyword",
264
- "verified_result": null
265
- },
266
- {
267
- "hashed_secret": "11fa7c37d697f30e6aee828b4426a10f83ab2380",
268
- "is_verified": false,
269
- "line_number": 230,
270
- "type": "Secret Keyword",
271
- "verified_result": null
272
- },
273
- {
274
- "hashed_secret": "68672f6baf3b3e9b3a80f7baa87e7a95a0ec2afb",
275
- "is_verified": false,
276
- "line_number": 240,
277
- "type": "Secret Keyword",
278
- "verified_result": null
279
- }
280
- ],
281
- "test/apiTest.test.ts": [
282
- {
283
- "hashed_secret": "c7139c95c9298c5ca457688f5c1d2e11ffbecc91",
284
- "is_verified": false,
285
- "line_number": 163,
286
- "type": "Secret Keyword",
287
- "verified_result": null
288
- }
289
- ],
290
- "test/client.test.ts": [
291
- {
292
- "hashed_secret": "2ace62c1befa19e3ea37dd52be9f6d508c5163e6",
293
- "is_verified": false,
294
- "line_number": 19,
295
- "type": "Secret Keyword",
296
- "verified_result": null
297
- }
298
- ],
299
- "test/metadata.test.ts": [
300
- {
301
- "hashed_secret": "c7139c95c9298c5ca457688f5c1d2e11ffbecc91",
302
- "is_verified": false,
303
- "line_number": 184,
304
- "type": "Secret Keyword",
305
- "verified_result": null
306
- }
307
- ]
308
- },
309
- "version": "0.13.1+ibm.64.dss",
310
- "word_list": {
311
- "file": null,
312
- "hash": null
313
- }
314
- }