green_link_api 1.10.2 → 1.10.4
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 +2 -2
- package/dist/ApiClient.js +51 -133
- package/dist/api/BlockchainApi.js +19 -38
- package/dist/api/EnergyAssetsApi.js +61 -106
- package/dist/api/EnergyDataApi.js +88 -152
- package/dist/api/HealthCheckApi.js +2 -12
- package/dist/api/LicensedProductionSitesOnEpiasApi.js +2 -12
- package/dist/api/LocationsApi.js +21 -40
- package/dist/api/LogsApi.js +36 -67
- package/dist/api/MaintenanceCheckApi.js +2 -12
- package/dist/api/OrganizationprofilesApi.js +19 -38
- package/dist/api/OrganizationsApi.js +91 -146
- package/dist/api/SchemaApi.js +2 -12
- package/dist/api/SentryDebugApi.js +2 -12
- package/dist/api/UsersApi.js +23 -47
- package/dist/index.js +0 -110
- package/dist/model/Activities.js +9 -28
- package/dist/model/BlockchainTransaction.js +12 -36
- package/dist/model/Consumer.js +13 -37
- package/dist/model/ConsumptionDataFileList.js +8 -26
- package/dist/model/ConsumptionDataFromRetailerRequest.js +5 -20
- package/dist/model/ConsumptionDataPointCreate.js +24 -59
- package/dist/model/ConsumptionDataPointListOrDetail.js +24 -64
- package/dist/model/ConsumptionDataPointUpdate.js +24 -59
- package/dist/model/ConsumptionSite.js +15 -41
- package/dist/model/ConsumptionSiteContract.js +9 -29
- package/dist/model/ConsumptionSiteContractImport.js +5 -20
- package/dist/model/ConsumptionSiteCreate.js +15 -41
- package/dist/model/ConsumptionSiteFileUpload.js +8 -26
- package/dist/model/ConsumptionSiteListOrDetail.js +14 -41
- package/dist/model/ContentTypeEnum.js +0 -15
- package/dist/model/EacTypeEnum.js +0 -11
- package/dist/model/EmissionFactor.js +9 -28
- package/dist/model/EnergySourceEnum.js +0 -18
- package/dist/model/EnergySourcePreference.js +10 -32
- package/dist/model/GetFromEpias.js +5 -20
- package/dist/model/GridOperator.js +11 -33
- package/dist/model/ImportRequest.js +14 -40
- package/dist/model/ImportRequestStatusEnum.js +0 -14
- package/dist/model/ImportedEnergyDataPoint.js +11 -32
- package/dist/model/Issuer.js +11 -33
- package/dist/model/Location.js +19 -48
- package/dist/model/Login.js +5 -20
- package/dist/model/MatchRequest.js +23 -63
- package/dist/model/MatchTypeEnum.js +0 -12
- package/dist/model/MatchedEnergyDataPoint.js +14 -39
- package/dist/model/MatchingConsumerRequest.js +7 -24
- package/dist/model/MatchingSiteRequest.js +7 -24
- package/dist/model/OrganizationTypeEnum.js +0 -16
- package/dist/model/PaginatedActivitiesList.js +6 -23
- package/dist/model/PaginatedConsumerList.js +6 -23
- package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +6 -23
- package/dist/model/PaginatedConsumptionSiteContractList.js +6 -23
- package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +6 -23
- package/dist/model/PaginatedEmissionFactorList.js +6 -23
- package/dist/model/PaginatedEnergySourcePreferenceList.js +6 -23
- package/dist/model/PaginatedGridOperatorList.js +6 -23
- package/dist/model/PaginatedImportRequestList.js +6 -23
- package/dist/model/PaginatedImportedEnergyDataPointList.js +6 -23
- package/dist/model/PaginatedIssuerList.js +6 -23
- package/dist/model/PaginatedLocationList.js +6 -23
- package/dist/model/PaginatedMatchRequestList.js +6 -23
- package/dist/model/PaginatedMatchedEnergyDataPointList.js +6 -23
- package/dist/model/PaginatedProducerList.js +6 -23
- package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +6 -23
- package/dist/model/PaginatedProductionDataPointListOrDetailList.js +6 -23
- package/dist/model/PaginatedProductionSiteListOrDetailList.js +6 -23
- package/dist/model/PaginatedRetailerList.js +6 -23
- package/dist/model/PaginatedSmartContractList.js +6 -23
- package/dist/model/PaginatedUnprocessedRowList.js +6 -23
- package/dist/model/PaginatedUploadedCertificateListorDetailList.js +6 -23
- package/dist/model/PaginatedUploadedFileList.js +6 -23
- package/dist/model/PaginatedUserList.js +6 -23
- package/dist/model/PatchedConsumer.js +13 -37
- package/dist/model/PatchedConsumptionDataPointUpdate.js +24 -59
- package/dist/model/PatchedConsumptionSite.js +15 -41
- package/dist/model/PatchedEmissionFactor.js +9 -28
- package/dist/model/PatchedEnergySourcePreference.js +10 -32
- package/dist/model/PatchedGridOperator.js +11 -33
- package/dist/model/PatchedIssuer.js +11 -33
- package/dist/model/PatchedLocation.js +19 -48
- package/dist/model/PatchedProducer.js +11 -33
- package/dist/model/PatchedProductionDataPointUpdate.js +18 -47
- package/dist/model/PatchedProductionSiteUpdate.js +20 -51
- package/dist/model/PatchedRetailer.js +12 -35
- package/dist/model/PatchedSmartContract.js +9 -28
- package/dist/model/PatchedUser.js +18 -47
- package/dist/model/PatchedUserDetail.js +18 -47
- package/dist/model/PriorityEnum.js +0 -18
- package/dist/model/Producer.js +11 -33
- package/dist/model/ProductionDataFileList.js +8 -26
- package/dist/model/ProductionDataFromEpiasRequest.js +11 -36
- package/dist/model/ProductionDataPointCreate.js +18 -47
- package/dist/model/ProductionDataPointListOrDetail.js +19 -53
- package/dist/model/ProductionDataPointUpdate.js +18 -47
- package/dist/model/ProductionSite.js +20 -51
- package/dist/model/ProductionSiteFileUpload.js +12 -34
- package/dist/model/ProductionSiteListOrDetail.js +18 -48
- package/dist/model/ProductionSiteUpdate.js +20 -51
- package/dist/model/Register.js +14 -38
- package/dist/model/Retailer.js +12 -35
- package/dist/model/SmartContract.js +9 -28
- package/dist/model/Status619Enum.js +0 -13
- package/dist/model/Token.js +3 -16
- package/dist/model/TypeEnum.js +0 -13
- package/dist/model/UnprocessedRow.js +9 -28
- package/dist/model/UploadedCertificate.js +12 -35
- package/dist/model/UploadedCertificateListorDetail.js +12 -36
- package/dist/model/UploadedFile.js +10 -32
- package/dist/model/User.js +18 -47
- package/dist/model/UserDetail.js +18 -47
- package/package.json +1 -1
|
@@ -4,51 +4,30 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
-
|
|
10
8
|
var _ConsumptionSite = _interopRequireDefault(require("../model/ConsumptionSite"));
|
|
11
|
-
|
|
12
9
|
var _ConsumptionSiteContract = _interopRequireDefault(require("../model/ConsumptionSiteContract"));
|
|
13
|
-
|
|
14
10
|
var _ConsumptionSiteContractImport = _interopRequireDefault(require("../model/ConsumptionSiteContractImport"));
|
|
15
|
-
|
|
16
11
|
var _ConsumptionSiteCreate = _interopRequireDefault(require("../model/ConsumptionSiteCreate"));
|
|
17
|
-
|
|
18
12
|
var _ConsumptionSiteFileUpload = _interopRequireDefault(require("../model/ConsumptionSiteFileUpload"));
|
|
19
|
-
|
|
20
13
|
var _ConsumptionSiteListOrDetail = _interopRequireDefault(require("../model/ConsumptionSiteListOrDetail"));
|
|
21
|
-
|
|
22
14
|
var _PaginatedConsumptionSiteContractList = _interopRequireDefault(require("../model/PaginatedConsumptionSiteContractList"));
|
|
23
|
-
|
|
24
15
|
var _PaginatedConsumptionSiteListOrDetailList = _interopRequireDefault(require("../model/PaginatedConsumptionSiteListOrDetailList"));
|
|
25
|
-
|
|
26
16
|
var _PaginatedProductionSiteListOrDetailList = _interopRequireDefault(require("../model/PaginatedProductionSiteListOrDetailList"));
|
|
27
|
-
|
|
28
17
|
var _PatchedConsumptionSite = _interopRequireDefault(require("../model/PatchedConsumptionSite"));
|
|
29
|
-
|
|
30
18
|
var _PatchedProductionSiteUpdate = _interopRequireDefault(require("../model/PatchedProductionSiteUpdate"));
|
|
31
|
-
|
|
32
19
|
var _ProductionSite = _interopRequireDefault(require("../model/ProductionSite"));
|
|
33
|
-
|
|
34
20
|
var _ProductionSiteFileUpload = _interopRequireDefault(require("../model/ProductionSiteFileUpload"));
|
|
35
|
-
|
|
36
21
|
var _ProductionSiteListOrDetail = _interopRequireDefault(require("../model/ProductionSiteListOrDetail"));
|
|
37
|
-
|
|
38
22
|
var _ProductionSiteUpdate = _interopRequireDefault(require("../model/ProductionSiteUpdate"));
|
|
39
|
-
|
|
40
23
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
41
|
-
|
|
42
24
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
43
|
-
|
|
44
25
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
45
|
-
|
|
46
26
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
47
|
-
|
|
48
27
|
/**
|
|
49
28
|
* EnergyAssets service.
|
|
50
29
|
* @module api/EnergyAssetsApi
|
|
51
|
-
* @version 1.10.
|
|
30
|
+
* @version 1.10.4
|
|
52
31
|
*/
|
|
53
32
|
var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
54
33
|
/**
|
|
@@ -60,9 +39,9 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
60
39
|
*/
|
|
61
40
|
function EnergyAssetsApi(apiClient) {
|
|
62
41
|
_classCallCheck(this, EnergyAssetsApi);
|
|
63
|
-
|
|
64
42
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
65
43
|
}
|
|
44
|
+
|
|
66
45
|
/**
|
|
67
46
|
* Callback function to receive the result of the energyAssetsConsumptionSiteContractsCreate operation.
|
|
68
47
|
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsCreateCallback
|
|
@@ -77,17 +56,14 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
77
56
|
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
78
57
|
* data is of type: {@link module:model/ConsumptionSiteContract}
|
|
79
58
|
*/
|
|
80
|
-
|
|
81
|
-
|
|
82
59
|
_createClass(EnergyAssetsApi, [{
|
|
83
60
|
key: "energyAssetsConsumptionSiteContractsCreate",
|
|
84
61
|
value: function energyAssetsConsumptionSiteContractsCreate(consumptionSiteContract, callback) {
|
|
85
|
-
var postBody = consumptionSiteContract;
|
|
86
|
-
|
|
62
|
+
var postBody = consumptionSiteContract;
|
|
63
|
+
// verify the required parameter 'consumptionSiteContract' is set
|
|
87
64
|
if (consumptionSiteContract === undefined || consumptionSiteContract === null) {
|
|
88
65
|
throw new Error("Missing the required parameter 'consumptionSiteContract' when calling energyAssetsConsumptionSiteContractsCreate");
|
|
89
66
|
}
|
|
90
|
-
|
|
91
67
|
var pathParams = {};
|
|
92
68
|
var queryParams = {};
|
|
93
69
|
var headerParams = {};
|
|
@@ -98,6 +74,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
98
74
|
var returnType = _ConsumptionSiteContract["default"];
|
|
99
75
|
return this.apiClient.callApi('/energy-assets/consumption-site-contracts/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
100
76
|
}
|
|
77
|
+
|
|
101
78
|
/**
|
|
102
79
|
* Callback function to receive the result of the energyAssetsConsumptionSiteContractsDestroy operation.
|
|
103
80
|
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsDestroyCallback
|
|
@@ -111,16 +88,14 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
111
88
|
* @param {String} id A UUID string identifying this consumption site contract.
|
|
112
89
|
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsDestroyCallback} callback The callback function, accepting three arguments: error, data, response
|
|
113
90
|
*/
|
|
114
|
-
|
|
115
91
|
}, {
|
|
116
92
|
key: "energyAssetsConsumptionSiteContractsDestroy",
|
|
117
93
|
value: function energyAssetsConsumptionSiteContractsDestroy(id, callback) {
|
|
118
|
-
var postBody = null;
|
|
119
|
-
|
|
94
|
+
var postBody = null;
|
|
95
|
+
// verify the required parameter 'id' is set
|
|
120
96
|
if (id === undefined || id === null) {
|
|
121
97
|
throw new Error("Missing the required parameter 'id' when calling energyAssetsConsumptionSiteContractsDestroy");
|
|
122
98
|
}
|
|
123
|
-
|
|
124
99
|
var pathParams = {
|
|
125
100
|
'id': id
|
|
126
101
|
};
|
|
@@ -133,6 +108,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
133
108
|
var returnType = null;
|
|
134
109
|
return this.apiClient.callApi('/energy-assets/consumption-site-contracts/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
135
110
|
}
|
|
111
|
+
|
|
136
112
|
/**
|
|
137
113
|
* Callback function to receive the result of the energyAssetsConsumptionSiteContractsImportsCreate operation.
|
|
138
114
|
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsImportsCreateCallback
|
|
@@ -147,16 +123,14 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
147
123
|
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsImportsCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
148
124
|
* data is of type: {@link module:model/ConsumptionSiteContract}
|
|
149
125
|
*/
|
|
150
|
-
|
|
151
126
|
}, {
|
|
152
127
|
key: "energyAssetsConsumptionSiteContractsImportsCreate",
|
|
153
128
|
value: function energyAssetsConsumptionSiteContractsImportsCreate(consumptionSiteContractImport, callback) {
|
|
154
|
-
var postBody = consumptionSiteContractImport;
|
|
155
|
-
|
|
129
|
+
var postBody = consumptionSiteContractImport;
|
|
130
|
+
// verify the required parameter 'consumptionSiteContractImport' is set
|
|
156
131
|
if (consumptionSiteContractImport === undefined || consumptionSiteContractImport === null) {
|
|
157
132
|
throw new Error("Missing the required parameter 'consumptionSiteContractImport' when calling energyAssetsConsumptionSiteContractsImportsCreate");
|
|
158
133
|
}
|
|
159
|
-
|
|
160
134
|
var pathParams = {};
|
|
161
135
|
var queryParams = {};
|
|
162
136
|
var headerParams = {};
|
|
@@ -167,6 +141,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
167
141
|
var returnType = _ConsumptionSiteContract["default"];
|
|
168
142
|
return this.apiClient.callApi('/energy-assets/consumption-site-contracts/imports/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
169
143
|
}
|
|
144
|
+
|
|
170
145
|
/**
|
|
171
146
|
* Callback function to receive the result of the energyAssetsConsumptionSiteContractsList operation.
|
|
172
147
|
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsListCallback
|
|
@@ -192,7 +167,6 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
192
167
|
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsListCallback} callback The callback function, accepting three arguments: error, data, response
|
|
193
168
|
* data is of type: {@link module:model/PaginatedConsumptionSiteContractList}
|
|
194
169
|
*/
|
|
195
|
-
|
|
196
170
|
}, {
|
|
197
171
|
key: "energyAssetsConsumptionSiteContractsList",
|
|
198
172
|
value: function energyAssetsConsumptionSiteContractsList(opts, callback) {
|
|
@@ -220,6 +194,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
220
194
|
var returnType = _PaginatedConsumptionSiteContractList["default"];
|
|
221
195
|
return this.apiClient.callApi('/energy-assets/consumption-site-contracts/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
222
196
|
}
|
|
197
|
+
|
|
223
198
|
/**
|
|
224
199
|
* Callback function to receive the result of the energyAssetsConsumptionSiteContractsRetrieve operation.
|
|
225
200
|
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsRetrieveCallback
|
|
@@ -234,16 +209,14 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
234
209
|
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
|
|
235
210
|
* data is of type: {@link module:model/ConsumptionSiteContract}
|
|
236
211
|
*/
|
|
237
|
-
|
|
238
212
|
}, {
|
|
239
213
|
key: "energyAssetsConsumptionSiteContractsRetrieve",
|
|
240
214
|
value: function energyAssetsConsumptionSiteContractsRetrieve(id, callback) {
|
|
241
|
-
var postBody = null;
|
|
242
|
-
|
|
215
|
+
var postBody = null;
|
|
216
|
+
// verify the required parameter 'id' is set
|
|
243
217
|
if (id === undefined || id === null) {
|
|
244
218
|
throw new Error("Missing the required parameter 'id' when calling energyAssetsConsumptionSiteContractsRetrieve");
|
|
245
219
|
}
|
|
246
|
-
|
|
247
220
|
var pathParams = {
|
|
248
221
|
'id': id
|
|
249
222
|
};
|
|
@@ -256,6 +229,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
256
229
|
var returnType = _ConsumptionSiteContract["default"];
|
|
257
230
|
return this.apiClient.callApi('/energy-assets/consumption-site-contracts/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
258
231
|
}
|
|
232
|
+
|
|
259
233
|
/**
|
|
260
234
|
* Callback function to receive the result of the energyAssetsConsumptionSiteContractsUpdate operation.
|
|
261
235
|
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsUpdateCallback
|
|
@@ -271,21 +245,18 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
271
245
|
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsUpdateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
272
246
|
* data is of type: {@link module:model/ConsumptionSiteContract}
|
|
273
247
|
*/
|
|
274
|
-
|
|
275
248
|
}, {
|
|
276
249
|
key: "energyAssetsConsumptionSiteContractsUpdate",
|
|
277
250
|
value: function energyAssetsConsumptionSiteContractsUpdate(id, consumptionSiteContract, callback) {
|
|
278
|
-
var postBody = consumptionSiteContract;
|
|
279
|
-
|
|
251
|
+
var postBody = consumptionSiteContract;
|
|
252
|
+
// verify the required parameter 'id' is set
|
|
280
253
|
if (id === undefined || id === null) {
|
|
281
254
|
throw new Error("Missing the required parameter 'id' when calling energyAssetsConsumptionSiteContractsUpdate");
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
|
|
255
|
+
}
|
|
256
|
+
// verify the required parameter 'consumptionSiteContract' is set
|
|
285
257
|
if (consumptionSiteContract === undefined || consumptionSiteContract === null) {
|
|
286
258
|
throw new Error("Missing the required parameter 'consumptionSiteContract' when calling energyAssetsConsumptionSiteContractsUpdate");
|
|
287
259
|
}
|
|
288
|
-
|
|
289
260
|
var pathParams = {
|
|
290
261
|
'id': id
|
|
291
262
|
};
|
|
@@ -298,6 +269,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
298
269
|
var returnType = _ConsumptionSiteContract["default"];
|
|
299
270
|
return this.apiClient.callApi('/energy-assets/consumption-site-contracts/{id}/', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
300
271
|
}
|
|
272
|
+
|
|
301
273
|
/**
|
|
302
274
|
* Callback function to receive the result of the energyAssetsConsumptionSitesCreate operation.
|
|
303
275
|
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSitesCreateCallback
|
|
@@ -312,16 +284,14 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
312
284
|
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSitesCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
313
285
|
* data is of type: {@link module:model/ConsumptionSiteCreate}
|
|
314
286
|
*/
|
|
315
|
-
|
|
316
287
|
}, {
|
|
317
288
|
key: "energyAssetsConsumptionSitesCreate",
|
|
318
289
|
value: function energyAssetsConsumptionSitesCreate(consumptionSiteCreate, callback) {
|
|
319
|
-
var postBody = consumptionSiteCreate;
|
|
320
|
-
|
|
290
|
+
var postBody = consumptionSiteCreate;
|
|
291
|
+
// verify the required parameter 'consumptionSiteCreate' is set
|
|
321
292
|
if (consumptionSiteCreate === undefined || consumptionSiteCreate === null) {
|
|
322
293
|
throw new Error("Missing the required parameter 'consumptionSiteCreate' when calling energyAssetsConsumptionSitesCreate");
|
|
323
294
|
}
|
|
324
|
-
|
|
325
295
|
var pathParams = {};
|
|
326
296
|
var queryParams = {};
|
|
327
297
|
var headerParams = {};
|
|
@@ -332,6 +302,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
332
302
|
var returnType = _ConsumptionSiteCreate["default"];
|
|
333
303
|
return this.apiClient.callApi('/energy-assets/consumption-sites/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
334
304
|
}
|
|
305
|
+
|
|
335
306
|
/**
|
|
336
307
|
* Callback function to receive the result of the energyAssetsConsumptionSitesDestroy operation.
|
|
337
308
|
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSitesDestroyCallback
|
|
@@ -345,16 +316,14 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
345
316
|
* @param {String} id A UUID string identifying this consumption site.
|
|
346
317
|
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSitesDestroyCallback} callback The callback function, accepting three arguments: error, data, response
|
|
347
318
|
*/
|
|
348
|
-
|
|
349
319
|
}, {
|
|
350
320
|
key: "energyAssetsConsumptionSitesDestroy",
|
|
351
321
|
value: function energyAssetsConsumptionSitesDestroy(id, callback) {
|
|
352
|
-
var postBody = null;
|
|
353
|
-
|
|
322
|
+
var postBody = null;
|
|
323
|
+
// verify the required parameter 'id' is set
|
|
354
324
|
if (id === undefined || id === null) {
|
|
355
325
|
throw new Error("Missing the required parameter 'id' when calling energyAssetsConsumptionSitesDestroy");
|
|
356
326
|
}
|
|
357
|
-
|
|
358
327
|
var pathParams = {
|
|
359
328
|
'id': id
|
|
360
329
|
};
|
|
@@ -367,6 +336,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
367
336
|
var returnType = null;
|
|
368
337
|
return this.apiClient.callApi('/energy-assets/consumption-sites/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
369
338
|
}
|
|
339
|
+
|
|
370
340
|
/**
|
|
371
341
|
* Callback function to receive the result of the energyAssetsConsumptionSitesList operation.
|
|
372
342
|
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSitesListCallback
|
|
@@ -396,7 +366,6 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
396
366
|
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSitesListCallback} callback The callback function, accepting three arguments: error, data, response
|
|
397
367
|
* data is of type: {@link module:model/PaginatedConsumptionSiteListOrDetailList}
|
|
398
368
|
*/
|
|
399
|
-
|
|
400
369
|
}, {
|
|
401
370
|
key: "energyAssetsConsumptionSitesList",
|
|
402
371
|
value: function energyAssetsConsumptionSitesList(opts, callback) {
|
|
@@ -428,6 +397,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
428
397
|
var returnType = _PaginatedConsumptionSiteListOrDetailList["default"];
|
|
429
398
|
return this.apiClient.callApi('/energy-assets/consumption-sites/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
430
399
|
}
|
|
400
|
+
|
|
431
401
|
/**
|
|
432
402
|
* Callback function to receive the result of the energyAssetsConsumptionSitesPartialUpdate operation.
|
|
433
403
|
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSitesPartialUpdateCallback
|
|
@@ -444,17 +414,15 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
444
414
|
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSitesPartialUpdateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
445
415
|
* data is of type: {@link module:model/ConsumptionSite}
|
|
446
416
|
*/
|
|
447
|
-
|
|
448
417
|
}, {
|
|
449
418
|
key: "energyAssetsConsumptionSitesPartialUpdate",
|
|
450
419
|
value: function energyAssetsConsumptionSitesPartialUpdate(id, opts, callback) {
|
|
451
420
|
opts = opts || {};
|
|
452
|
-
var postBody = opts['patchedConsumptionSite'];
|
|
453
|
-
|
|
421
|
+
var postBody = opts['patchedConsumptionSite'];
|
|
422
|
+
// verify the required parameter 'id' is set
|
|
454
423
|
if (id === undefined || id === null) {
|
|
455
424
|
throw new Error("Missing the required parameter 'id' when calling energyAssetsConsumptionSitesPartialUpdate");
|
|
456
425
|
}
|
|
457
|
-
|
|
458
426
|
var pathParams = {
|
|
459
427
|
'id': id
|
|
460
428
|
};
|
|
@@ -467,6 +435,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
467
435
|
var returnType = _ConsumptionSite["default"];
|
|
468
436
|
return this.apiClient.callApi('/energy-assets/consumption-sites/{id}/', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
469
437
|
}
|
|
438
|
+
|
|
470
439
|
/**
|
|
471
440
|
* Callback function to receive the result of the energyAssetsConsumptionSitesRetrieve operation.
|
|
472
441
|
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSitesRetrieveCallback
|
|
@@ -481,16 +450,14 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
481
450
|
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSitesRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
|
|
482
451
|
* data is of type: {@link module:model/ConsumptionSiteListOrDetail}
|
|
483
452
|
*/
|
|
484
|
-
|
|
485
453
|
}, {
|
|
486
454
|
key: "energyAssetsConsumptionSitesRetrieve",
|
|
487
455
|
value: function energyAssetsConsumptionSitesRetrieve(id, callback) {
|
|
488
|
-
var postBody = null;
|
|
489
|
-
|
|
456
|
+
var postBody = null;
|
|
457
|
+
// verify the required parameter 'id' is set
|
|
490
458
|
if (id === undefined || id === null) {
|
|
491
459
|
throw new Error("Missing the required parameter 'id' when calling energyAssetsConsumptionSitesRetrieve");
|
|
492
460
|
}
|
|
493
|
-
|
|
494
461
|
var pathParams = {
|
|
495
462
|
'id': id
|
|
496
463
|
};
|
|
@@ -503,6 +470,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
503
470
|
var returnType = _ConsumptionSiteListOrDetail["default"];
|
|
504
471
|
return this.apiClient.callApi('/energy-assets/consumption-sites/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
505
472
|
}
|
|
473
|
+
|
|
506
474
|
/**
|
|
507
475
|
* Callback function to receive the result of the energyAssetsConsumptionSitesUpdate operation.
|
|
508
476
|
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSitesUpdateCallback
|
|
@@ -518,21 +486,18 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
518
486
|
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSitesUpdateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
519
487
|
* data is of type: {@link module:model/ConsumptionSite}
|
|
520
488
|
*/
|
|
521
|
-
|
|
522
489
|
}, {
|
|
523
490
|
key: "energyAssetsConsumptionSitesUpdate",
|
|
524
491
|
value: function energyAssetsConsumptionSitesUpdate(id, consumptionSite, callback) {
|
|
525
|
-
var postBody = consumptionSite;
|
|
526
|
-
|
|
492
|
+
var postBody = consumptionSite;
|
|
493
|
+
// verify the required parameter 'id' is set
|
|
527
494
|
if (id === undefined || id === null) {
|
|
528
495
|
throw new Error("Missing the required parameter 'id' when calling energyAssetsConsumptionSitesUpdate");
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
|
|
496
|
+
}
|
|
497
|
+
// verify the required parameter 'consumptionSite' is set
|
|
532
498
|
if (consumptionSite === undefined || consumptionSite === null) {
|
|
533
499
|
throw new Error("Missing the required parameter 'consumptionSite' when calling energyAssetsConsumptionSitesUpdate");
|
|
534
500
|
}
|
|
535
|
-
|
|
536
501
|
var pathParams = {
|
|
537
502
|
'id': id
|
|
538
503
|
};
|
|
@@ -545,6 +510,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
545
510
|
var returnType = _ConsumptionSite["default"];
|
|
546
511
|
return this.apiClient.callApi('/energy-assets/consumption-sites/{id}/', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
547
512
|
}
|
|
513
|
+
|
|
548
514
|
/**
|
|
549
515
|
* Callback function to receive the result of the energyAssetsConsumptionSitesUploadFileCreate operation.
|
|
550
516
|
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSitesUploadFileCreateCallback
|
|
@@ -559,16 +525,14 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
559
525
|
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSitesUploadFileCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
560
526
|
* data is of type: {@link module:model/ConsumptionSite}
|
|
561
527
|
*/
|
|
562
|
-
|
|
563
528
|
}, {
|
|
564
529
|
key: "energyAssetsConsumptionSitesUploadFileCreate",
|
|
565
530
|
value: function energyAssetsConsumptionSitesUploadFileCreate(consumptionSiteFileUpload, callback) {
|
|
566
|
-
var postBody = consumptionSiteFileUpload;
|
|
567
|
-
|
|
531
|
+
var postBody = consumptionSiteFileUpload;
|
|
532
|
+
// verify the required parameter 'consumptionSiteFileUpload' is set
|
|
568
533
|
if (consumptionSiteFileUpload === undefined || consumptionSiteFileUpload === null) {
|
|
569
534
|
throw new Error("Missing the required parameter 'consumptionSiteFileUpload' when calling energyAssetsConsumptionSitesUploadFileCreate");
|
|
570
535
|
}
|
|
571
|
-
|
|
572
536
|
var pathParams = {};
|
|
573
537
|
var queryParams = {};
|
|
574
538
|
var headerParams = {};
|
|
@@ -579,6 +543,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
579
543
|
var returnType = _ConsumptionSite["default"];
|
|
580
544
|
return this.apiClient.callApi('/energy-assets/consumption-sites/upload-file/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
581
545
|
}
|
|
546
|
+
|
|
582
547
|
/**
|
|
583
548
|
* Callback function to receive the result of the energyAssetsProductionSitesCreate operation.
|
|
584
549
|
* @callback module:api/EnergyAssetsApi~energyAssetsProductionSitesCreateCallback
|
|
@@ -593,16 +558,14 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
593
558
|
* @param {module:api/EnergyAssetsApi~energyAssetsProductionSitesCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
594
559
|
* data is of type: {@link module:model/ProductionSite}
|
|
595
560
|
*/
|
|
596
|
-
|
|
597
561
|
}, {
|
|
598
562
|
key: "energyAssetsProductionSitesCreate",
|
|
599
563
|
value: function energyAssetsProductionSitesCreate(productionSite, callback) {
|
|
600
|
-
var postBody = productionSite;
|
|
601
|
-
|
|
564
|
+
var postBody = productionSite;
|
|
565
|
+
// verify the required parameter 'productionSite' is set
|
|
602
566
|
if (productionSite === undefined || productionSite === null) {
|
|
603
567
|
throw new Error("Missing the required parameter 'productionSite' when calling energyAssetsProductionSitesCreate");
|
|
604
568
|
}
|
|
605
|
-
|
|
606
569
|
var pathParams = {};
|
|
607
570
|
var queryParams = {};
|
|
608
571
|
var headerParams = {};
|
|
@@ -613,6 +576,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
613
576
|
var returnType = _ProductionSite["default"];
|
|
614
577
|
return this.apiClient.callApi('/energy-assets/production-sites/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
615
578
|
}
|
|
579
|
+
|
|
616
580
|
/**
|
|
617
581
|
* Callback function to receive the result of the energyAssetsProductionSitesDestroy operation.
|
|
618
582
|
* @callback module:api/EnergyAssetsApi~energyAssetsProductionSitesDestroyCallback
|
|
@@ -626,16 +590,14 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
626
590
|
* @param {String} id A UUID string identifying this production site.
|
|
627
591
|
* @param {module:api/EnergyAssetsApi~energyAssetsProductionSitesDestroyCallback} callback The callback function, accepting three arguments: error, data, response
|
|
628
592
|
*/
|
|
629
|
-
|
|
630
593
|
}, {
|
|
631
594
|
key: "energyAssetsProductionSitesDestroy",
|
|
632
595
|
value: function energyAssetsProductionSitesDestroy(id, callback) {
|
|
633
|
-
var postBody = null;
|
|
634
|
-
|
|
596
|
+
var postBody = null;
|
|
597
|
+
// verify the required parameter 'id' is set
|
|
635
598
|
if (id === undefined || id === null) {
|
|
636
599
|
throw new Error("Missing the required parameter 'id' when calling energyAssetsProductionSitesDestroy");
|
|
637
600
|
}
|
|
638
|
-
|
|
639
601
|
var pathParams = {
|
|
640
602
|
'id': id
|
|
641
603
|
};
|
|
@@ -648,6 +610,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
648
610
|
var returnType = null;
|
|
649
611
|
return this.apiClient.callApi('/energy-assets/production-sites/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
650
612
|
}
|
|
613
|
+
|
|
651
614
|
/**
|
|
652
615
|
* Callback function to receive the result of the energyAssetsProductionSitesList operation.
|
|
653
616
|
* @callback module:api/EnergyAssetsApi~energyAssetsProductionSitesListCallback
|
|
@@ -681,7 +644,6 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
681
644
|
* @param {module:api/EnergyAssetsApi~energyAssetsProductionSitesListCallback} callback The callback function, accepting three arguments: error, data, response
|
|
682
645
|
* data is of type: {@link module:model/PaginatedProductionSiteListOrDetailList}
|
|
683
646
|
*/
|
|
684
|
-
|
|
685
647
|
}, {
|
|
686
648
|
key: "energyAssetsProductionSitesList",
|
|
687
649
|
value: function energyAssetsProductionSitesList(opts, callback) {
|
|
@@ -717,6 +679,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
717
679
|
var returnType = _PaginatedProductionSiteListOrDetailList["default"];
|
|
718
680
|
return this.apiClient.callApi('/energy-assets/production-sites/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
719
681
|
}
|
|
682
|
+
|
|
720
683
|
/**
|
|
721
684
|
* Callback function to receive the result of the energyAssetsProductionSitesPartialUpdate operation.
|
|
722
685
|
* @callback module:api/EnergyAssetsApi~energyAssetsProductionSitesPartialUpdateCallback
|
|
@@ -733,17 +696,15 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
733
696
|
* @param {module:api/EnergyAssetsApi~energyAssetsProductionSitesPartialUpdateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
734
697
|
* data is of type: {@link module:model/ProductionSiteUpdate}
|
|
735
698
|
*/
|
|
736
|
-
|
|
737
699
|
}, {
|
|
738
700
|
key: "energyAssetsProductionSitesPartialUpdate",
|
|
739
701
|
value: function energyAssetsProductionSitesPartialUpdate(id, opts, callback) {
|
|
740
702
|
opts = opts || {};
|
|
741
|
-
var postBody = opts['patchedProductionSiteUpdate'];
|
|
742
|
-
|
|
703
|
+
var postBody = opts['patchedProductionSiteUpdate'];
|
|
704
|
+
// verify the required parameter 'id' is set
|
|
743
705
|
if (id === undefined || id === null) {
|
|
744
706
|
throw new Error("Missing the required parameter 'id' when calling energyAssetsProductionSitesPartialUpdate");
|
|
745
707
|
}
|
|
746
|
-
|
|
747
708
|
var pathParams = {
|
|
748
709
|
'id': id
|
|
749
710
|
};
|
|
@@ -756,6 +717,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
756
717
|
var returnType = _ProductionSiteUpdate["default"];
|
|
757
718
|
return this.apiClient.callApi('/energy-assets/production-sites/{id}/', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
758
719
|
}
|
|
720
|
+
|
|
759
721
|
/**
|
|
760
722
|
* Callback function to receive the result of the energyAssetsProductionSitesRetrieve operation.
|
|
761
723
|
* @callback module:api/EnergyAssetsApi~energyAssetsProductionSitesRetrieveCallback
|
|
@@ -770,16 +732,14 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
770
732
|
* @param {module:api/EnergyAssetsApi~energyAssetsProductionSitesRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
|
|
771
733
|
* data is of type: {@link module:model/ProductionSiteListOrDetail}
|
|
772
734
|
*/
|
|
773
|
-
|
|
774
735
|
}, {
|
|
775
736
|
key: "energyAssetsProductionSitesRetrieve",
|
|
776
737
|
value: function energyAssetsProductionSitesRetrieve(id, callback) {
|
|
777
|
-
var postBody = null;
|
|
778
|
-
|
|
738
|
+
var postBody = null;
|
|
739
|
+
// verify the required parameter 'id' is set
|
|
779
740
|
if (id === undefined || id === null) {
|
|
780
741
|
throw new Error("Missing the required parameter 'id' when calling energyAssetsProductionSitesRetrieve");
|
|
781
742
|
}
|
|
782
|
-
|
|
783
743
|
var pathParams = {
|
|
784
744
|
'id': id
|
|
785
745
|
};
|
|
@@ -792,6 +752,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
792
752
|
var returnType = _ProductionSiteListOrDetail["default"];
|
|
793
753
|
return this.apiClient.callApi('/energy-assets/production-sites/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
794
754
|
}
|
|
755
|
+
|
|
795
756
|
/**
|
|
796
757
|
* Callback function to receive the result of the energyAssetsProductionSitesUpdate operation.
|
|
797
758
|
* @callback module:api/EnergyAssetsApi~energyAssetsProductionSitesUpdateCallback
|
|
@@ -807,21 +768,18 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
807
768
|
* @param {module:api/EnergyAssetsApi~energyAssetsProductionSitesUpdateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
808
769
|
* data is of type: {@link module:model/ProductionSiteUpdate}
|
|
809
770
|
*/
|
|
810
|
-
|
|
811
771
|
}, {
|
|
812
772
|
key: "energyAssetsProductionSitesUpdate",
|
|
813
773
|
value: function energyAssetsProductionSitesUpdate(id, productionSiteUpdate, callback) {
|
|
814
|
-
var postBody = productionSiteUpdate;
|
|
815
|
-
|
|
774
|
+
var postBody = productionSiteUpdate;
|
|
775
|
+
// verify the required parameter 'id' is set
|
|
816
776
|
if (id === undefined || id === null) {
|
|
817
777
|
throw new Error("Missing the required parameter 'id' when calling energyAssetsProductionSitesUpdate");
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
|
|
778
|
+
}
|
|
779
|
+
// verify the required parameter 'productionSiteUpdate' is set
|
|
821
780
|
if (productionSiteUpdate === undefined || productionSiteUpdate === null) {
|
|
822
781
|
throw new Error("Missing the required parameter 'productionSiteUpdate' when calling energyAssetsProductionSitesUpdate");
|
|
823
782
|
}
|
|
824
|
-
|
|
825
783
|
var pathParams = {
|
|
826
784
|
'id': id
|
|
827
785
|
};
|
|
@@ -834,6 +792,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
834
792
|
var returnType = _ProductionSiteUpdate["default"];
|
|
835
793
|
return this.apiClient.callApi('/energy-assets/production-sites/{id}/', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
836
794
|
}
|
|
795
|
+
|
|
837
796
|
/**
|
|
838
797
|
* Callback function to receive the result of the energyAssetsProductionSitesUploadFileCreate operation.
|
|
839
798
|
* @callback module:api/EnergyAssetsApi~energyAssetsProductionSitesUploadFileCreateCallback
|
|
@@ -848,16 +807,14 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
848
807
|
* @param {module:api/EnergyAssetsApi~energyAssetsProductionSitesUploadFileCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
849
808
|
* data is of type: {@link module:model/ProductionSite}
|
|
850
809
|
*/
|
|
851
|
-
|
|
852
810
|
}, {
|
|
853
811
|
key: "energyAssetsProductionSitesUploadFileCreate",
|
|
854
812
|
value: function energyAssetsProductionSitesUploadFileCreate(productionSiteFileUpload, callback) {
|
|
855
|
-
var postBody = productionSiteFileUpload;
|
|
856
|
-
|
|
813
|
+
var postBody = productionSiteFileUpload;
|
|
814
|
+
// verify the required parameter 'productionSiteFileUpload' is set
|
|
857
815
|
if (productionSiteFileUpload === undefined || productionSiteFileUpload === null) {
|
|
858
816
|
throw new Error("Missing the required parameter 'productionSiteFileUpload' when calling energyAssetsProductionSitesUploadFileCreate");
|
|
859
817
|
}
|
|
860
|
-
|
|
861
818
|
var pathParams = {};
|
|
862
819
|
var queryParams = {};
|
|
863
820
|
var headerParams = {};
|
|
@@ -869,8 +826,6 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
869
826
|
return this.apiClient.callApi('/energy-assets/production-sites/upload-file/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
870
827
|
}
|
|
871
828
|
}]);
|
|
872
|
-
|
|
873
829
|
return EnergyAssetsApi;
|
|
874
830
|
}();
|
|
875
|
-
|
|
876
831
|
exports["default"] = EnergyAssetsApi;
|