emissions-api-sdk 1.0.12 → 1.0.14
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.
- package/README.md +65 -2
- package/dist/Constants.js +7 -1
- package/dist/api/AuditExport.js +73 -0
- package/dist/api/AuditLog.js +99 -0
- package/dist/api/EconomicActivity.js +69 -0
- package/dist/api/Factor.js +16 -0
- package/dist/api/PhysicalActivity.js +87 -0
- package/dist/api/RealEstate.js +25 -1
- package/dist/api/TypeRecommender.js +19 -2
- package/dist/coverage/clover.xml +172 -89
- package/dist/coverage/coverage-final.json +15 -8
- package/dist/coverage/lcov-report/index.html +21 -21
- package/dist/coverage/lcov-report/src/Client.ts.html +32 -32
- package/dist/coverage/lcov-report/src/Constants.ts.html +45 -27
- package/dist/coverage/lcov-report/src/api/AuditExport.ts.html +355 -0
- package/dist/coverage/lcov-report/src/api/AuditLog.ts.html +388 -0
- package/dist/coverage/lcov-report/src/api/Calculation.ts.html +1 -1
- package/dist/coverage/lcov-report/src/api/EconomicActivity.ts.html +212 -5
- package/dist/coverage/lcov-report/src/api/Factor.ts.html +54 -3
- package/dist/coverage/lcov-report/src/api/FactorSets.ts.html +1 -1
- package/dist/coverage/lcov-report/src/api/Fugitive.ts.html +1 -1
- package/dist/coverage/lcov-report/src/api/Location.ts.html +1 -1
- package/dist/coverage/lcov-report/src/api/Metadata.ts.html +1 -1
- package/dist/coverage/lcov-report/src/api/Mobile.ts.html +1 -1
- package/dist/coverage/lcov-report/src/api/PhysicalActivity.ts.html +361 -0
- package/dist/coverage/lcov-report/src/api/RealEstate.ts.html +78 -6
- package/dist/coverage/lcov-report/src/api/Stationary.ts.html +1 -1
- package/dist/coverage/lcov-report/src/api/TransportationAndDistribution.ts.html +1 -1
- package/dist/coverage/lcov-report/src/api/TypeRecommender.ts.html +55 -4
- package/dist/coverage/lcov-report/src/api/Usage.ts.html +1 -1
- package/dist/coverage/lcov-report/src/api/index.html +51 -6
- package/dist/coverage/lcov-report/src/index.html +7 -7
- package/dist/coverage/lcov-report/src/request.ts.html +8 -5
- package/dist/coverage/lcov-report/src/utils.ts.html +6 -6
- package/dist/coverage/lcov-report/test/index.html +1 -1
- package/dist/coverage/lcov-report/test/mocks/AttributionRequest.ts.html +151 -0
- package/dist/coverage/lcov-report/test/mocks/CommonRequest.ts.html +1 -1
- package/dist/coverage/lcov-report/test/mocks/EconomicActivityAttributionRequest.ts.html +148 -0
- package/dist/coverage/lcov-report/test/mocks/FactorRequest.ts.html +1 -1
- package/dist/coverage/lcov-report/test/mocks/GenericCalculationRequest.ts.html +1 -1
- package/dist/coverage/lcov-report/test/mocks/LocationRequest.ts.html +1 -1
- package/dist/coverage/lcov-report/test/mocks/PhysicalActivityEVICRequest.ts.html +148 -0
- package/dist/coverage/lcov-report/test/mocks/PhysicalActivityRequest.ts.html +151 -0
- package/dist/coverage/lcov-report/test/mocks/SearchRequest.ts.html +1 -1
- package/dist/coverage/lcov-report/test/mocks/index.html +63 -3
- package/dist/coverage/lcov-report/test/testUtils.ts.html +1 -1
- package/dist/coverage/lcov.info +284 -124
- package/dist/index.js +4 -1
- package/dist/interfaces/response/AuditExportResponse.js +2 -0
- package/dist/interfaces/response/AuditLogResponse.js +2 -0
- package/dist/request.js +1 -0
- package/dist/types/Constants.d.ts +6 -0
- package/dist/types/api/AuditExport.d.ts +42 -0
- package/dist/types/api/AuditLog.d.ts +37 -0
- package/dist/types/api/EconomicActivity.d.ts +69 -0
- package/dist/types/api/Factor.d.ts +16 -0
- package/dist/types/api/PhysicalActivity.d.ts +76 -0
- package/dist/types/api/RealEstate.d.ts +25 -1
- package/dist/types/api/TypeRecommender.d.ts +19 -2
- package/dist/types/index.d.ts +6 -0
- package/dist/types/interfaces/Api.d.ts +17 -1
- package/dist/types/interfaces/Config.d.ts +5 -1
- package/dist/types/interfaces/common.d.ts +40 -0
- package/dist/types/interfaces/response/AuditExportResponse.d.ts +66 -0
- package/dist/types/interfaces/response/AuditLogResponse.d.ts +40 -0
- package/dist/types/interfaces/response/TypeRecommenderResponse.d.ts +2 -0
- package/docs/_sources/authentication.rst.txt +26 -4
- package/docs/_sources/getting_started.rst.txt +762 -74
- package/docs/_sources/index.rst.txt +13 -0
- package/docs/_sources/reference.rst.txt +48 -0
- package/docs/_sources/troubleshooting.rst.txt +77 -12
- package/docs/_static/basic.css +8 -0
- package/docs/_static/doctools.js +5 -6
- package/docs/_static/language_data.js +186 -7
- package/docs/_static/pygments.css +146 -164
- package/docs/_static/searchtools.js +60 -121
- package/docs/_static/sphinx_highlight.js +31 -36
- package/docs/_static/styles/furo.css +1 -1
- package/docs/_static/styles/furo.css.map +1 -1
- package/docs/authentication.html +61 -26
- package/docs/client.html +33 -22
- package/docs/genindex.html +77 -24
- package/docs/getting_started.html +969 -103
- package/docs/index.html +69 -21
- package/docs/reference.html +747 -66
- package/docs/sdk.html +32 -21
- package/docs/search.html +32 -21
- package/docs/searchindex.js +1 -1
- package/docs/troubleshooting.html +105 -38
- package/package.json +8 -3
- package/sphinx-build/source/authentication.rst +26 -4
- package/sphinx-build/source/getting_started.rst +762 -74
- package/sphinx-build/source/index.rst +13 -0
- package/sphinx-build/source/reference.rst +48 -0
- package/sphinx-build/source/troubleshooting.rst +77 -12
- package/src/Constants.ts +6 -0
- package/src/api/AuditExport.ts +90 -0
- package/src/api/AuditLog.ts +102 -0
- package/src/api/EconomicActivity.ts +69 -0
- package/src/api/Factor.ts +17 -1
- package/src/api/PhysicalActivity.ts +92 -0
- package/src/api/RealEstate.ts +25 -1
- package/src/api/TypeRecommender.ts +19 -2
- package/src/index.ts +15 -1
- package/src/interfaces/Api.ts +22 -6
- package/src/interfaces/Config.ts +6 -1
- package/src/interfaces/common.ts +46 -0
- package/src/interfaces/response/AuditExportResponse.ts +88 -0
- package/src/interfaces/response/AuditLogResponse.ts +47 -0
- package/src/interfaces/response/TypeRecommenderResponse.ts +3 -0
- package/src/request.ts +1 -0
- package/test/apiTest.test.ts +59 -3
- package/test/auditExport.test.ts +68 -0
- package/test/auditLog.test.ts +216 -0
- package/test/mocks/AttributionRequest.ts +23 -0
- package/test/mocks/EconomicActivityAttributionRequest.ts +22 -0
- package/test/mocks/PhysicalActivityEVICRequest.ts +22 -0
- package/test/mocks/PhysicalActivityRequest.ts +23 -0
- package/docs/_static/base-stemmer.js +0 -476
- package/docs/_static/english-stemmer.js +0 -1066
package/dist/coverage/clover.xml
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
2
|
+
<coverage generated="1790081113117" clover="3.2.0">
|
|
3
|
+
<project timestamp="1790081113117" name="All files">
|
|
4
|
+
<metrics statements="295" coveredstatements="293" conditionals="104" coveredconditionals="95" methods="39" coveredmethods="37" elements="438" coveredelements="425" complexity="0" loc="295" ncloc="295" packages="4" files="30" classes="30"/>
|
|
5
5
|
<package name="src">
|
|
6
|
-
<metrics statements="
|
|
6
|
+
<metrics statements="107" coveredstatements="105" conditionals="70" coveredconditionals="64" methods="12" coveredmethods="10"/>
|
|
7
7
|
<file name="Client.ts" path="/Users/santhosh/Documents/GIT/open-source/ibm-envizi-emissions-api-nodejs-sdk/src/Client.ts">
|
|
8
8
|
<metrics statements="63" coveredstatements="61" conditionals="68" coveredconditionals="63" methods="10" coveredmethods="8"/>
|
|
9
|
-
<line num="1" count="
|
|
10
|
-
<line num="3" count="
|
|
11
|
-
<line num="4" count="
|
|
12
|
-
<line num="6" count="
|
|
13
|
-
<line num="7" count="
|
|
14
|
-
<line num="25" count="
|
|
15
|
-
<line num="26" count="
|
|
16
|
-
<line num="27" count="
|
|
17
|
-
<line num="28" count="
|
|
9
|
+
<line num="1" count="7" type="stmt"/>
|
|
10
|
+
<line num="3" count="7" type="stmt"/>
|
|
11
|
+
<line num="4" count="7" type="stmt"/>
|
|
12
|
+
<line num="6" count="7" type="stmt"/>
|
|
13
|
+
<line num="7" count="7" type="stmt"/>
|
|
14
|
+
<line num="25" count="50" type="cond" truecount="4" falsecount="0"/>
|
|
15
|
+
<line num="26" count="50" type="stmt"/>
|
|
16
|
+
<line num="27" count="50" type="stmt"/>
|
|
17
|
+
<line num="28" count="50" type="cond" truecount="2" falsecount="0"/>
|
|
18
18
|
<line num="29" count="1" type="stmt"/>
|
|
19
19
|
<line num="30" count="1" type="stmt"/>
|
|
20
20
|
<line num="31" count="1" type="stmt"/>
|
|
21
|
-
<line num="33" count="
|
|
22
|
-
<line num="34" count="
|
|
23
|
-
<line num="35" count="
|
|
24
|
-
<line num="38" count="
|
|
25
|
-
<line num="39" count="
|
|
26
|
-
<line num="40" count="
|
|
27
|
-
<line num="41" count="
|
|
28
|
-
<line num="42" count="
|
|
29
|
-
<line num="43" count="
|
|
30
|
-
<line num="88" count="
|
|
21
|
+
<line num="33" count="49" type="stmt"/>
|
|
22
|
+
<line num="34" count="49" type="stmt"/>
|
|
23
|
+
<line num="35" count="49" type="stmt"/>
|
|
24
|
+
<line num="38" count="50" type="stmt"/>
|
|
25
|
+
<line num="39" count="50" type="stmt"/>
|
|
26
|
+
<line num="40" count="50" type="cond" truecount="3" falsecount="1"/>
|
|
27
|
+
<line num="41" count="50" type="cond" truecount="6" falsecount="0"/>
|
|
28
|
+
<line num="42" count="50" type="stmt"/>
|
|
29
|
+
<line num="43" count="50" type="cond" truecount="1" falsecount="1"/>
|
|
30
|
+
<line num="88" count="55" type="cond" truecount="4" falsecount="0"/>
|
|
31
31
|
<line num="89" count="1" type="stmt"/>
|
|
32
|
-
<line num="93" count="
|
|
32
|
+
<line num="93" count="54" type="cond" truecount="4" falsecount="0"/>
|
|
33
33
|
<line num="94" count="1" type="stmt"/>
|
|
34
|
-
<line num="98" count="
|
|
34
|
+
<line num="98" count="53" type="cond" truecount="5" falsecount="0"/>
|
|
35
35
|
<line num="99" count="1" type="stmt"/>
|
|
36
|
-
<line num="103" count="
|
|
36
|
+
<line num="103" count="52" type="cond" truecount="4" falsecount="0"/>
|
|
37
37
|
<line num="104" count="1" type="stmt"/>
|
|
38
|
-
<line num="108" count="
|
|
38
|
+
<line num="108" count="51" type="cond" truecount="4" falsecount="0"/>
|
|
39
39
|
<line num="109" count="1" type="stmt"/>
|
|
40
|
-
<line num="114" count="
|
|
41
|
-
<line num="116" count="
|
|
40
|
+
<line num="114" count="50" type="stmt"/>
|
|
41
|
+
<line num="116" count="50" type="cond" truecount="4" falsecount="0"/>
|
|
42
42
|
<line num="117" count="1" type="stmt"/>
|
|
43
43
|
<line num="118" count="1" type="stmt"/>
|
|
44
|
-
<line num="119" count="
|
|
44
|
+
<line num="119" count="49" type="cond" truecount="4" falsecount="0"/>
|
|
45
45
|
<line num="120" count="6" type="stmt"/>
|
|
46
|
-
<line num="122" count="
|
|
47
|
-
<line num="124" count="
|
|
48
|
-
<line num="138" count="
|
|
49
|
-
<line num="160" count="
|
|
46
|
+
<line num="122" count="43" type="stmt"/>
|
|
47
|
+
<line num="124" count="50" type="stmt"/>
|
|
48
|
+
<line num="138" count="80" type="stmt"/>
|
|
49
|
+
<line num="160" count="91" type="cond" truecount="2" falsecount="0"/>
|
|
50
50
|
<line num="161" count="1" type="stmt"/>
|
|
51
|
-
<line num="165" count="
|
|
51
|
+
<line num="165" count="90" type="stmt"/>
|
|
52
52
|
<line num="181" count="6" type="cond" truecount="2" falsecount="0"/>
|
|
53
53
|
<line num="182" count="5" type="stmt"/>
|
|
54
54
|
<line num="183" count="5" type="cond" truecount="2" falsecount="0"/>
|
|
@@ -71,55 +71,108 @@
|
|
|
71
71
|
<line num="314" count="8" type="stmt"/>
|
|
72
72
|
</file>
|
|
73
73
|
<file name="Constants.ts" path="/Users/santhosh/Documents/GIT/open-source/ibm-envizi-emissions-api-nodejs-sdk/src/Constants.ts">
|
|
74
|
-
<metrics statements="
|
|
75
|
-
<line num="1" count="
|
|
76
|
-
<line num="2" count="
|
|
77
|
-
<line num="3" count="
|
|
78
|
-
<line num="4" count="
|
|
79
|
-
<line num="5" count="
|
|
80
|
-
<line num="6" count="
|
|
81
|
-
<line num="7" count="
|
|
82
|
-
<line num="8" count="
|
|
83
|
-
<line num="9" count="
|
|
84
|
-
<line num="10" count="
|
|
85
|
-
<line num="11" count="
|
|
86
|
-
<line num="12" count="
|
|
87
|
-
<line num="13" count="
|
|
88
|
-
<line num="14" count="
|
|
89
|
-
<line num="
|
|
90
|
-
<line num="
|
|
91
|
-
<line num="
|
|
92
|
-
<line num="
|
|
93
|
-
<line num="
|
|
94
|
-
<line num="
|
|
95
|
-
<line num="
|
|
96
|
-
<line num="
|
|
97
|
-
<line num="
|
|
98
|
-
<line num="
|
|
74
|
+
<metrics statements="30" coveredstatements="30" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
|
75
|
+
<line num="1" count="11" type="stmt"/>
|
|
76
|
+
<line num="2" count="11" type="stmt"/>
|
|
77
|
+
<line num="3" count="11" type="stmt"/>
|
|
78
|
+
<line num="4" count="11" type="stmt"/>
|
|
79
|
+
<line num="5" count="11" type="stmt"/>
|
|
80
|
+
<line num="6" count="11" type="stmt"/>
|
|
81
|
+
<line num="7" count="11" type="stmt"/>
|
|
82
|
+
<line num="8" count="11" type="stmt"/>
|
|
83
|
+
<line num="9" count="11" type="stmt"/>
|
|
84
|
+
<line num="10" count="11" type="stmt"/>
|
|
85
|
+
<line num="11" count="11" type="stmt"/>
|
|
86
|
+
<line num="12" count="11" type="stmt"/>
|
|
87
|
+
<line num="13" count="11" type="stmt"/>
|
|
88
|
+
<line num="14" count="11" type="stmt"/>
|
|
89
|
+
<line num="15" count="11" type="stmt"/>
|
|
90
|
+
<line num="16" count="11" type="stmt"/>
|
|
91
|
+
<line num="17" count="11" type="stmt"/>
|
|
92
|
+
<line num="18" count="11" type="stmt"/>
|
|
93
|
+
<line num="19" count="11" type="stmt"/>
|
|
94
|
+
<line num="21" count="11" type="stmt"/>
|
|
95
|
+
<line num="23" count="11" type="stmt"/>
|
|
96
|
+
<line num="25" count="11" type="stmt"/>
|
|
97
|
+
<line num="26" count="11" type="stmt"/>
|
|
98
|
+
<line num="27" count="11" type="stmt"/>
|
|
99
|
+
<line num="29" count="11" type="stmt"/>
|
|
100
|
+
<line num="30" count="11" type="stmt"/>
|
|
101
|
+
<line num="31" count="11" type="stmt"/>
|
|
102
|
+
<line num="32" count="11" type="stmt"/>
|
|
103
|
+
<line num="33" count="11" type="stmt"/>
|
|
104
|
+
<line num="34" count="11" type="stmt"/>
|
|
99
105
|
</file>
|
|
100
106
|
<file name="request.ts" path="/Users/santhosh/Documents/GIT/open-source/ibm-envizi-emissions-api-nodejs-sdk/src/request.ts">
|
|
101
107
|
<metrics statements="9" coveredstatements="9" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
|
|
102
|
-
<line num="1" count="
|
|
103
|
-
<line num="3" count="
|
|
104
|
-
<line num="4" count="
|
|
105
|
-
<line num="30" count="
|
|
108
|
+
<line num="1" count="5" type="stmt"/>
|
|
109
|
+
<line num="3" count="5" type="stmt"/>
|
|
110
|
+
<line num="4" count="5" type="stmt"/>
|
|
111
|
+
<line num="30" count="5" type="stmt"/>
|
|
106
112
|
<line num="31" count="3" type="stmt"/>
|
|
107
113
|
<line num="32" count="3" type="stmt"/>
|
|
108
114
|
<line num="34" count="3" type="stmt"/>
|
|
109
|
-
<line num="
|
|
110
|
-
<line num="
|
|
115
|
+
<line num="49" count="3" type="stmt"/>
|
|
116
|
+
<line num="50" count="2" type="stmt"/>
|
|
111
117
|
</file>
|
|
112
118
|
<file name="utils.ts" path="/Users/santhosh/Documents/GIT/open-source/ibm-envizi-emissions-api-nodejs-sdk/src/utils.ts">
|
|
113
119
|
<metrics statements="5" coveredstatements="5" conditionals="2" coveredconditionals="1" methods="1" coveredmethods="1"/>
|
|
114
|
-
<line num="14" count="
|
|
115
|
-
<line num="15" count="
|
|
116
|
-
<line num="16" count="
|
|
117
|
-
<line num="17" count="
|
|
118
|
-
<line num="18" count="
|
|
120
|
+
<line num="14" count="7" type="stmt"/>
|
|
121
|
+
<line num="15" count="45" type="stmt"/>
|
|
122
|
+
<line num="16" count="45" type="stmt"/>
|
|
123
|
+
<line num="17" count="45" type="cond" truecount="1" falsecount="1"/>
|
|
124
|
+
<line num="18" count="45" type="stmt"/>
|
|
119
125
|
</file>
|
|
120
126
|
</package>
|
|
121
127
|
<package name="src.api">
|
|
122
|
-
<metrics statements="
|
|
128
|
+
<metrics statements="163" coveredstatements="163" conditionals="34" coveredconditionals="31" methods="26" coveredmethods="26"/>
|
|
129
|
+
<file name="AuditExport.ts" path="/Users/santhosh/Documents/GIT/open-source/ibm-envizi-emissions-api-nodejs-sdk/src/api/AuditExport.ts">
|
|
130
|
+
<metrics statements="15" coveredstatements="15" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
|
|
131
|
+
<line num="2" count="1" type="stmt"/>
|
|
132
|
+
<line num="3" count="1" type="stmt"/>
|
|
133
|
+
<line num="15" count="1" type="stmt"/>
|
|
134
|
+
<line num="32" count="1" type="stmt"/>
|
|
135
|
+
<line num="35" count="1" type="stmt"/>
|
|
136
|
+
<line num="36" count="1" type="stmt"/>
|
|
137
|
+
<line num="38" count="1" type="stmt"/>
|
|
138
|
+
<line num="56" count="1" type="stmt"/>
|
|
139
|
+
<line num="59" count="1" type="stmt"/>
|
|
140
|
+
<line num="60" count="1" type="stmt"/>
|
|
141
|
+
<line num="62" count="1" type="stmt"/>
|
|
142
|
+
<line num="80" count="1" type="stmt"/>
|
|
143
|
+
<line num="81" count="1" type="stmt"/>
|
|
144
|
+
<line num="82" count="1" type="stmt"/>
|
|
145
|
+
<line num="84" count="1" type="stmt"/>
|
|
146
|
+
</file>
|
|
147
|
+
<file name="AuditLog.ts" path="/Users/santhosh/Documents/GIT/open-source/ibm-envizi-emissions-api-nodejs-sdk/src/api/AuditLog.ts">
|
|
148
|
+
<metrics statements="26" coveredstatements="26" conditionals="21" coveredconditionals="19" methods="3" coveredmethods="3"/>
|
|
149
|
+
<line num="1" count="2" type="stmt"/>
|
|
150
|
+
<line num="2" count="2" type="stmt"/>
|
|
151
|
+
<line num="3" count="2" type="stmt"/>
|
|
152
|
+
<line num="5" count="2" type="stmt"/>
|
|
153
|
+
<line num="15" count="8" type="cond" truecount="4" falsecount="0"/>
|
|
154
|
+
<line num="16" count="6" type="stmt"/>
|
|
155
|
+
<line num="17" count="6" type="stmt"/>
|
|
156
|
+
<line num="20" count="6" type="cond" truecount="4" falsecount="0"/>
|
|
157
|
+
<line num="21" count="1" type="stmt"/>
|
|
158
|
+
<line num="25" count="5" type="cond" truecount="2" falsecount="0"/>
|
|
159
|
+
<line num="26" count="1" type="cond" truecount="3" falsecount="1"/>
|
|
160
|
+
<line num="30" count="4" type="cond" truecount="2" falsecount="0"/>
|
|
161
|
+
<line num="31" count="2" type="cond" truecount="3" falsecount="1"/>
|
|
162
|
+
<line num="36" count="4" type="stmt"/>
|
|
163
|
+
<line num="53" count="2" type="stmt"/>
|
|
164
|
+
<line num="54" count="5" type="stmt"/>
|
|
165
|
+
<line num="55" count="5" type="stmt"/>
|
|
166
|
+
<line num="57" count="5" type="stmt"/>
|
|
167
|
+
<line num="58" count="5" type="stmt"/>
|
|
168
|
+
<line num="63" count="3" type="stmt"/>
|
|
169
|
+
<line num="87" count="2" type="stmt"/>
|
|
170
|
+
<line num="90" count="7" type="stmt"/>
|
|
171
|
+
<line num="91" count="7" type="stmt"/>
|
|
172
|
+
<line num="93" count="7" type="stmt"/>
|
|
173
|
+
<line num="94" count="7" type="stmt"/>
|
|
174
|
+
<line num="100" count="5" type="stmt"/>
|
|
175
|
+
</file>
|
|
123
176
|
<file name="Calculation.ts" path="/Users/santhosh/Documents/GIT/open-source/ibm-envizi-emissions-api-nodejs-sdk/src/api/Calculation.ts">
|
|
124
177
|
<metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
|
|
125
178
|
<line num="1" count="1" type="stmt"/>
|
|
@@ -135,10 +188,10 @@
|
|
|
135
188
|
<line num="1" count="1" type="stmt"/>
|
|
136
189
|
<line num="2" count="1" type="stmt"/>
|
|
137
190
|
<line num="6" count="1" type="stmt"/>
|
|
138
|
-
<line num="
|
|
139
|
-
<line num="
|
|
140
|
-
<line num="
|
|
141
|
-
<line num="
|
|
191
|
+
<line num="103" count="1" type="stmt"/>
|
|
192
|
+
<line num="106" count="2" type="stmt"/>
|
|
193
|
+
<line num="107" count="2" type="stmt"/>
|
|
194
|
+
<line num="109" count="2" type="stmt"/>
|
|
142
195
|
</file>
|
|
143
196
|
<file name="Factor.ts" path="/Users/santhosh/Documents/GIT/open-source/ibm-envizi-emissions-api-nodejs-sdk/src/api/Factor.ts">
|
|
144
197
|
<metrics statements="11" coveredstatements="11" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
|
|
@@ -149,10 +202,10 @@
|
|
|
149
202
|
<line num="44" count="1" type="stmt"/>
|
|
150
203
|
<line num="45" count="1" type="stmt"/>
|
|
151
204
|
<line num="47" count="1" type="stmt"/>
|
|
152
|
-
<line num="
|
|
153
|
-
<line num="
|
|
154
|
-
<line num="
|
|
155
|
-
<line num="
|
|
205
|
+
<line num="144" count="1" type="stmt"/>
|
|
206
|
+
<line num="147" count="1" type="stmt"/>
|
|
207
|
+
<line num="148" count="1" type="stmt"/>
|
|
208
|
+
<line num="150" count="1" type="stmt"/>
|
|
156
209
|
</file>
|
|
157
210
|
<file name="FactorSets.ts" path="/Users/santhosh/Documents/GIT/open-source/ibm-envizi-emissions-api-nodejs-sdk/src/api/FactorSets.ts">
|
|
158
211
|
<metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
|
|
@@ -224,15 +277,25 @@
|
|
|
224
277
|
<line num="40" count="1" type="stmt"/>
|
|
225
278
|
<line num="42" count="1" type="stmt"/>
|
|
226
279
|
</file>
|
|
280
|
+
<file name="PhysicalActivity.ts" path="/Users/santhosh/Documents/GIT/open-source/ibm-envizi-emissions-api-nodejs-sdk/src/api/PhysicalActivity.ts">
|
|
281
|
+
<metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
|
|
282
|
+
<line num="1" count="1" type="stmt"/>
|
|
283
|
+
<line num="2" count="1" type="stmt"/>
|
|
284
|
+
<line num="6" count="1" type="stmt"/>
|
|
285
|
+
<line num="81" count="1" type="stmt"/>
|
|
286
|
+
<line num="84" count="3" type="stmt"/>
|
|
287
|
+
<line num="85" count="3" type="stmt"/>
|
|
288
|
+
<line num="87" count="3" type="stmt"/>
|
|
289
|
+
</file>
|
|
227
290
|
<file name="RealEstate.ts" path="/Users/santhosh/Documents/GIT/open-source/ibm-envizi-emissions-api-nodejs-sdk/src/api/RealEstate.ts">
|
|
228
291
|
<metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
|
|
229
292
|
<line num="1" count="1" type="stmt"/>
|
|
230
293
|
<line num="2" count="1" type="stmt"/>
|
|
231
294
|
<line num="6" count="1" type="stmt"/>
|
|
232
|
-
<line num="
|
|
233
|
-
<line num="
|
|
234
|
-
<line num="
|
|
235
|
-
<line num="
|
|
295
|
+
<line num="58" count="1" type="stmt"/>
|
|
296
|
+
<line num="61" count="2" type="stmt"/>
|
|
297
|
+
<line num="62" count="2" type="stmt"/>
|
|
298
|
+
<line num="64" count="2" type="stmt"/>
|
|
236
299
|
</file>
|
|
237
300
|
<file name="Stationary.ts" path="/Users/santhosh/Documents/GIT/open-source/ibm-envizi-emissions-api-nodejs-sdk/src/api/Stationary.ts">
|
|
238
301
|
<metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
|
|
@@ -259,10 +322,10 @@
|
|
|
259
322
|
<line num="1" count="1" type="stmt"/>
|
|
260
323
|
<line num="2" count="1" type="stmt"/>
|
|
261
324
|
<line num="5" count="1" type="stmt"/>
|
|
262
|
-
<line num="
|
|
263
|
-
<line num="
|
|
264
|
-
<line num="
|
|
265
|
-
<line num="
|
|
325
|
+
<line num="119" count="1" type="stmt"/>
|
|
326
|
+
<line num="122" count="1" type="stmt"/>
|
|
327
|
+
<line num="123" count="1" type="stmt"/>
|
|
328
|
+
<line num="125" count="1" type="stmt"/>
|
|
266
329
|
</file>
|
|
267
330
|
<file name="Usage.ts" path="/Users/santhosh/Documents/GIT/open-source/ibm-envizi-emissions-api-nodejs-sdk/src/api/Usage.ts">
|
|
268
331
|
<metrics statements="7" coveredstatements="7" conditionals="1" coveredconditionals="0" methods="1" coveredmethods="1"/>
|
|
@@ -286,12 +349,22 @@
|
|
|
286
349
|
</file>
|
|
287
350
|
</package>
|
|
288
351
|
<package name="test.mocks">
|
|
289
|
-
<metrics statements="
|
|
352
|
+
<metrics statements="21" coveredstatements="21" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
|
353
|
+
<file name="AttributionRequest.ts" path="/Users/santhosh/Documents/GIT/open-source/ibm-envizi-emissions-api-nodejs-sdk/test/mocks/AttributionRequest.ts">
|
|
354
|
+
<metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
|
355
|
+
<line num="3" count="1" type="stmt"/>
|
|
356
|
+
<line num="23" count="1" type="stmt"/>
|
|
357
|
+
</file>
|
|
290
358
|
<file name="CommonRequest.ts" path="/Users/santhosh/Documents/GIT/open-source/ibm-envizi-emissions-api-nodejs-sdk/test/mocks/CommonRequest.ts">
|
|
291
359
|
<metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
|
292
360
|
<line num="3" count="1" type="stmt"/>
|
|
293
361
|
<line num="19" count="1" type="stmt"/>
|
|
294
362
|
</file>
|
|
363
|
+
<file name="EconomicActivityAttributionRequest.ts" path="/Users/santhosh/Documents/GIT/open-source/ibm-envizi-emissions-api-nodejs-sdk/test/mocks/EconomicActivityAttributionRequest.ts">
|
|
364
|
+
<metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
|
365
|
+
<line num="3" count="1" type="stmt"/>
|
|
366
|
+
<line num="22" count="1" type="stmt"/>
|
|
367
|
+
</file>
|
|
295
368
|
<file name="FactorRequest.ts" path="/Users/santhosh/Documents/GIT/open-source/ibm-envizi-emissions-api-nodejs-sdk/test/mocks/FactorRequest.ts">
|
|
296
369
|
<metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
|
297
370
|
<line num="3" count="1" type="stmt"/>
|
|
@@ -307,6 +380,16 @@
|
|
|
307
380
|
<line num="3" count="1" type="stmt"/>
|
|
308
381
|
<line num="19" count="1" type="stmt"/>
|
|
309
382
|
</file>
|
|
383
|
+
<file name="PhysicalActivityEVICRequest.ts" path="/Users/santhosh/Documents/GIT/open-source/ibm-envizi-emissions-api-nodejs-sdk/test/mocks/PhysicalActivityEVICRequest.ts">
|
|
384
|
+
<metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
|
385
|
+
<line num="3" count="1" type="stmt"/>
|
|
386
|
+
<line num="22" count="1" type="stmt"/>
|
|
387
|
+
</file>
|
|
388
|
+
<file name="PhysicalActivityRequest.ts" path="/Users/santhosh/Documents/GIT/open-source/ibm-envizi-emissions-api-nodejs-sdk/test/mocks/PhysicalActivityRequest.ts">
|
|
389
|
+
<metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
|
390
|
+
<line num="3" count="1" type="stmt"/>
|
|
391
|
+
<line num="23" count="1" type="stmt"/>
|
|
392
|
+
</file>
|
|
310
393
|
<file name="SearchRequest.ts" path="/Users/santhosh/Documents/GIT/open-source/ibm-envizi-emissions-api-nodejs-sdk/test/mocks/SearchRequest.ts">
|
|
311
394
|
<metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
|
312
395
|
<line num="3" count="1" type="stmt"/>
|