emissions-api-sdk 1.0.0 → 1.0.1
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 +33 -2
- package/dist/Constants.js +23 -1
- package/dist/api/Calculation.js +77 -14
- package/dist/api/Factor.js +97 -16
- package/dist/api/Fugitive.js +75 -12
- package/dist/api/Location.js +75 -14
- package/dist/api/Mobile.js +66 -0
- package/dist/api/Stationary.js +77 -14
- package/dist/api/TransportationAndDistribution.js +75 -12
- package/dist/types/Constants.d.ts +22 -0
- package/dist/types/api/Calculation.d.ts +52 -14
- package/dist/types/api/Factor.d.ts +64 -16
- package/dist/types/api/Fugitive.d.ts +50 -12
- package/dist/types/api/Location.d.ts +50 -14
- package/dist/types/api/Mobile.d.ts +41 -0
- package/dist/types/api/Stationary.d.ts +52 -14
- package/dist/types/api/TransportationAndDistribution.d.ts +50 -12
- package/docs/.nojekyll +0 -0
- package/docs/_sources/authentication.rst.txt +164 -0
- package/docs/_sources/client.rst.txt +137 -0
- package/docs/_sources/getting_started.rst.txt +164 -0
- package/docs/_sources/index.rst.txt +29 -0
- package/docs/_sources/reference.rst.txt +129 -0
- package/docs/_sources/sdk.rst.txt +13 -0
- package/docs/_static/basic.css +906 -0
- package/docs/_static/custom.css +16 -0
- package/docs/_static/debug.css +69 -0
- package/docs/_static/doctools.js +149 -0
- package/docs/_static/documentation_options.js +13 -0
- package/docs/_static/file.png +0 -0
- package/docs/_static/language_data.js +192 -0
- package/docs/_static/minus.png +0 -0
- package/docs/_static/plus.png +0 -0
- package/docs/_static/pygments.css +250 -0
- package/docs/_static/scripts/furo-extensions.js +0 -0
- package/docs/_static/scripts/furo.js +3 -0
- package/docs/_static/scripts/furo.js.LICENSE.txt +7 -0
- package/docs/_static/scripts/furo.js.map +1 -0
- package/docs/_static/searchtools.js +635 -0
- package/docs/_static/skeleton.css +296 -0
- package/docs/_static/sphinx_highlight.js +154 -0
- package/docs/_static/sphinx_js.css +0 -0
- package/docs/_static/styles/furo-extensions.css +2 -0
- package/docs/_static/styles/furo-extensions.css.map +1 -0
- package/docs/_static/styles/furo.css +2 -0
- package/docs/_static/styles/furo.css.map +1 -0
- package/docs/authentication.html +513 -0
- package/docs/client.html +467 -0
- package/docs/genindex.html +482 -0
- package/docs/getting_started.html +481 -0
- package/docs/index.html +334 -0
- package/docs/objects.inv +0 -0
- package/docs/reference.html +1568 -0
- package/docs/sdk.html +324 -0
- package/docs/search.html +287 -0
- package/docs/searchindex.js +1 -0
- package/package.json +1 -1
- package/sphinx-build/Makefile +49 -0
- package/sphinx-build/source/_static/custom.css +16 -0
- package/sphinx-build/source/authentication.rst +164 -0
- package/sphinx-build/source/client.rst +137 -0
- package/sphinx-build/source/conf.py +56 -0
- package/sphinx-build/source/getting_started.rst +164 -0
- package/sphinx-build/source/index.rst +29 -0
- package/sphinx-build/source/reference.rst +129 -0
- package/sphinx-build/source/sdk.rst +13 -0
- package/src/Constants.ts +26 -0
- package/src/api/Calculation.ts +84 -15
- package/src/api/Factor.ts +108 -19
- package/src/api/Fugitive.ts +83 -13
- package/src/api/Location.ts +84 -15
- package/src/api/Mobile.ts +75 -1
- package/src/api/Stationary.ts +85 -15
- package/src/api/TransportationAndDistribution.ts +84 -13
- package/test/apiTest.test.ts +172 -5
- package/dist/api/Factors.js +0 -98
- package/dist/api/FugitiveEmission.js +0 -40
- package/dist/api/GenericCalculation.js +0 -41
- package/dist/api/LocationEmission.js +0 -41
- package/dist/api/MobileEmission.js +0 -41
- package/dist/api/StationaryEmission.js +0 -41
- package/dist/api/TransportationDistributionEmission.js +0 -40
- package/dist/coverage/clover.xml +0 -225
- package/dist/coverage/coverage-final.json +0 -19
- package/dist/coverage/lcov-report/base.css +0 -224
- package/dist/coverage/lcov-report/block-navigation.js +0 -87
- package/dist/coverage/lcov-report/favicon.png +0 -0
- package/dist/coverage/lcov-report/index.html +0 -161
- package/dist/coverage/lcov-report/prettify.css +0 -1
- package/dist/coverage/lcov-report/prettify.js +0 -2
- package/dist/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/dist/coverage/lcov-report/sorter.js +0 -210
- package/dist/coverage/lcov-report/src/Client.ts.html +0 -838
- package/dist/coverage/lcov-report/src/Constants.ts.html +0 -130
- package/dist/coverage/lcov-report/src/api/Calculation.ts.html +0 -217
- package/dist/coverage/lcov-report/src/api/Factor.ts.html +0 -343
- package/dist/coverage/lcov-report/src/api/FactorSets.ts.html +0 -154
- package/dist/coverage/lcov-report/src/api/Factors.ts.html +0 -403
- package/dist/coverage/lcov-report/src/api/Fugitive.ts.html +0 -214
- package/dist/coverage/lcov-report/src/api/FugitiveEmission.ts.html +0 -214
- package/dist/coverage/lcov-report/src/api/GenericCalculation.ts.html +0 -217
- package/dist/coverage/lcov-report/src/api/Location.ts.html +0 -214
- package/dist/coverage/lcov-report/src/api/LocationEmission.ts.html +0 -214
- package/dist/coverage/lcov-report/src/api/Mobile.ts.html +0 -220
- package/dist/coverage/lcov-report/src/api/MobileEmission.ts.html +0 -220
- package/dist/coverage/lcov-report/src/api/Stationary.ts.html +0 -220
- package/dist/coverage/lcov-report/src/api/StationaryEmission.ts.html +0 -220
- package/dist/coverage/lcov-report/src/api/TransportationAndDistribution.ts.html +0 -211
- package/dist/coverage/lcov-report/src/api/TransportationDistributionEmission.ts.html +0 -211
- package/dist/coverage/lcov-report/src/api/index.html +0 -221
- package/dist/coverage/lcov-report/src/index.html +0 -161
- package/dist/coverage/lcov-report/src/request.ts.html +0 -235
- package/dist/coverage/lcov-report/src/utils.ts.html +0 -139
- package/dist/coverage/lcov-report/test/index.html +0 -116
- package/dist/coverage/lcov-report/test/mocks/CommonRequest.ts.html +0 -142
- package/dist/coverage/lcov-report/test/mocks/FactorRequest.ts.html +0 -133
- package/dist/coverage/lcov-report/test/mocks/GenericCalculationRequest.ts.html +0 -142
- package/dist/coverage/lcov-report/test/mocks/LocationRequest.ts.html +0 -139
- package/dist/coverage/lcov-report/test/mocks/SearchRequest.ts.html +0 -142
- package/dist/coverage/lcov-report/test/mocks/index.html +0 -176
- package/dist/coverage/lcov-report/test/testUtils.ts.html +0 -97
- package/dist/coverage/lcov.info +0 -404
- package/dist/types/api/Factors.d.ts +0 -68
- package/dist/types/api/FugitiveEmission.d.ts +0 -27
- package/dist/types/api/GenericCalculation.d.ts +0 -28
- package/dist/types/api/LocationEmission.d.ts +0 -28
- package/dist/types/api/MobileEmission.d.ts +0 -28
- package/dist/types/api/StationaryEmission.d.ts +0 -28
- package/dist/types/api/TransportationDistributionEmission.d.ts +0 -27
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
=========
|
|
2
|
+
Reference
|
|
3
|
+
=========
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
.. js:autoclass:: Client
|
|
7
|
+
:members:
|
|
8
|
+
|
|
9
|
+
.. js:autofunction:: request.makeApiRequest
|
|
10
|
+
|
|
11
|
+
.. js:autofunction:: utils.findExpiryTime
|
|
12
|
+
|
|
13
|
+
API
|
|
14
|
+
===
|
|
15
|
+
|
|
16
|
+
.. js:autofunction:: Factor.retrieveFactor
|
|
17
|
+
|
|
18
|
+
.. js:autofunction:: Fugitive.calculate
|
|
19
|
+
|
|
20
|
+
.. js:autofunction:: Calculation.calculate
|
|
21
|
+
|
|
22
|
+
.. js:autofunction:: Location.calculate
|
|
23
|
+
|
|
24
|
+
.. js:autofunction:: Mobile.calculate
|
|
25
|
+
|
|
26
|
+
.. js:autofunction:: Stationary.calculate
|
|
27
|
+
|
|
28
|
+
.. js:autofunction:: TransportationAndDistribution.calculate
|
|
29
|
+
|
|
30
|
+
Metadata APIs
|
|
31
|
+
===========
|
|
32
|
+
|
|
33
|
+
getTypes
|
|
34
|
+
--------
|
|
35
|
+
|
|
36
|
+
.. js:autofunction:: Factor.getTypes
|
|
37
|
+
|
|
38
|
+
.. js:autofunction:: Calculation.getTypes
|
|
39
|
+
|
|
40
|
+
.. js:autofunction:: Location.getTypes
|
|
41
|
+
|
|
42
|
+
.. js:autofunction:: Mobile.getTypes
|
|
43
|
+
|
|
44
|
+
.. js:autofunction:: Stationary.getTypes
|
|
45
|
+
|
|
46
|
+
.. js:autofunction:: TransportationAndDistribution.getTypes
|
|
47
|
+
|
|
48
|
+
.. js:autofunction:: Fugitive.getTypes
|
|
49
|
+
|
|
50
|
+
getArea
|
|
51
|
+
-------
|
|
52
|
+
|
|
53
|
+
.. js:autofunction:: Factor.getArea
|
|
54
|
+
|
|
55
|
+
.. js:autofunction:: Factor.getSearchArea
|
|
56
|
+
|
|
57
|
+
.. js:autofunction:: Calculation.getArea
|
|
58
|
+
|
|
59
|
+
.. js:autofunction:: Location.getArea
|
|
60
|
+
|
|
61
|
+
.. js:autofunction:: Mobile.getArea
|
|
62
|
+
|
|
63
|
+
.. js:autofunction:: Stationary.getArea
|
|
64
|
+
|
|
65
|
+
.. js:autofunction:: TransportationAndDistribution.getArea
|
|
66
|
+
|
|
67
|
+
.. js:autofunction:: Fugitive.getArea
|
|
68
|
+
|
|
69
|
+
getUnits
|
|
70
|
+
--------
|
|
71
|
+
|
|
72
|
+
.. js:autofunction:: Factor.getUnits
|
|
73
|
+
|
|
74
|
+
.. js:autofunction:: Calculation.getUnits
|
|
75
|
+
|
|
76
|
+
.. js:autofunction:: Location.getUnits
|
|
77
|
+
|
|
78
|
+
.. js:autofunction:: Mobile.getUnits
|
|
79
|
+
|
|
80
|
+
.. js:autofunction:: Stationary.getUnits
|
|
81
|
+
|
|
82
|
+
.. js:autofunction:: TransportationAndDistribution.getUnits
|
|
83
|
+
|
|
84
|
+
.. js:autofunction:: Fugitive.getUnits
|
|
85
|
+
|
|
86
|
+
Interfaces
|
|
87
|
+
==========
|
|
88
|
+
|
|
89
|
+
.. js:autoclass:: Api.LocationRequestWithoutFactorId
|
|
90
|
+
|
|
91
|
+
.. js:autoclass:: Api.LocationRequestWithFactorId
|
|
92
|
+
|
|
93
|
+
.. js:autoclass:: Api.CommonRequestWithoutFactorId
|
|
94
|
+
|
|
95
|
+
.. js:autoclass:: Api.CommonRequestWithFactorId
|
|
96
|
+
|
|
97
|
+
.. js:autoclass:: Api.GenericCalculationRequestWithoutFactorId
|
|
98
|
+
|
|
99
|
+
.. js:autoclass:: Api.GenericCalculationRequestWithFactorId
|
|
100
|
+
|
|
101
|
+
.. js:autoclass:: Api.FactorRequestWithoutFactorId
|
|
102
|
+
|
|
103
|
+
.. js:autoclass:: Api.FactorRequestWithFactorId
|
|
104
|
+
|
|
105
|
+
.. js:autoclass:: Api.SearchRequest
|
|
106
|
+
|
|
107
|
+
.. js:autoclass:: common.Location
|
|
108
|
+
|
|
109
|
+
.. js:autoclass:: common.Time
|
|
110
|
+
|
|
111
|
+
.. js:autoclass:: common.Activity
|
|
112
|
+
|
|
113
|
+
.. js:autoclass:: common.ActivityWithFactorId
|
|
114
|
+
|
|
115
|
+
.. js:autoclass:: common.CombinedUnitsActivity
|
|
116
|
+
|
|
117
|
+
.. js:autoclass:: common.CombinedUnitsActivityWithFactorId
|
|
118
|
+
|
|
119
|
+
.. js:autoclass:: common.FactorActivity
|
|
120
|
+
|
|
121
|
+
.. js:autoclass:: common.FactorActivityWithFactorId
|
|
122
|
+
|
|
123
|
+
.. js:autoclass:: common.SearchActivity
|
|
124
|
+
|
|
125
|
+
.. js:autoclass:: common.Pagination
|
|
126
|
+
|
|
127
|
+
.. js:autoclass:: Config.RequestConfig
|
|
128
|
+
|
|
129
|
+
.. js:autoclass:: Config.ClientConfig
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
===
|
|
2
|
+
SDK
|
|
3
|
+
===
|
|
4
|
+
|
|
5
|
+
The IBM Envizi - Emissions API Node.js SDK provides a structured approach to interact with the Emissions API. This section covers the key components and usage patterns.
|
|
6
|
+
|
|
7
|
+
.. toctree::
|
|
8
|
+
:maxdepth: 2
|
|
9
|
+
|
|
10
|
+
client
|
|
11
|
+
authentication
|
|
12
|
+
|
|
13
|
+
.. Made with Bob
|