green_link_api 0.82.5 → 0.82.9

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 (103) hide show
  1. package/README.md +7 -27
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/BlockchainApi.js +1 -1
  4. package/dist/api/EnergyAssetsApi.js +1 -1
  5. package/dist/api/EnergyDataApi.js +1 -1
  6. package/dist/api/HealthCheckApi.js +1 -1
  7. package/dist/api/LicensedProductionSitesOnEpiasApi.js +1 -1
  8. package/dist/api/LocationsApi.js +1 -1
  9. package/dist/api/LogsApi.js +44 -536
  10. package/dist/api/MaintenanceCheckApi.js +1 -1
  11. package/dist/api/OrganizationprofilesApi.js +1 -1
  12. package/dist/api/OrganizationsApi.js +1 -1
  13. package/dist/api/SchemaApi.js +1 -1
  14. package/dist/api/SentryDebugApi.js +1 -1
  15. package/dist/api/UsersApi.js +1 -1
  16. package/dist/index.js +6 -70
  17. package/dist/model/{AddConsumptionSiteFromEnerjisa.js → Activities.js} +77 -33
  18. package/dist/model/BlockchainTransaction.js +1 -1
  19. package/dist/model/Consumer.js +1 -1
  20. package/dist/model/ConsumptionDataFileList.js +1 -1
  21. package/dist/model/ConsumptionDataFromRetailer.js +1 -1
  22. package/dist/model/ConsumptionDataPointCreate.js +1 -1
  23. package/dist/model/ConsumptionDataPointListOrDetail.js +1 -1
  24. package/dist/model/ConsumptionDataPointUpdate.js +1 -1
  25. package/dist/model/ConsumptionSite.js +1 -1
  26. package/dist/model/ConsumptionSiteCreate.js +1 -1
  27. package/dist/model/ConsumptionSiteFileUpload.js +1 -1
  28. package/dist/model/ConsumptionSiteFromRetailer.js +1 -1
  29. package/dist/model/ConsumptionSiteListOrDetail.js +1 -1
  30. package/dist/model/ConsumptionSiteMany.js +1 -1
  31. package/dist/model/EmissionFactor.js +1 -1
  32. package/dist/model/EnergySourcePreference.js +1 -1
  33. package/dist/model/GetFromEpias.js +1 -1
  34. package/dist/model/GridOperator.js +1 -1
  35. package/dist/model/Issuer.js +1 -1
  36. package/dist/model/Location.js +1 -1
  37. package/dist/model/Login.js +1 -1
  38. package/dist/model/MatchRequest.js +1 -1
  39. package/dist/model/MatchedEnergyDataPoint.js +1 -1
  40. package/dist/model/MatchingConsumerRequest.js +1 -1
  41. package/dist/model/MatchingSiteRequest.js +1 -1
  42. package/dist/model/{PaginatedAddConsumerList.js → PaginatedActivitiesList.js} +23 -23
  43. package/dist/model/PaginatedConsumerList.js +1 -1
  44. package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +1 -1
  45. package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +1 -1
  46. package/dist/model/PaginatedEmissionFactorList.js +1 -1
  47. package/dist/model/PaginatedEnergySourcePreferenceList.js +1 -1
  48. package/dist/model/PaginatedGridOperatorList.js +1 -1
  49. package/dist/model/PaginatedIssuerList.js +1 -1
  50. package/dist/model/PaginatedLocationList.js +1 -1
  51. package/dist/model/PaginatedMatchRequestList.js +1 -1
  52. package/dist/model/PaginatedMatchedEnergyDataPointList.js +1 -1
  53. package/dist/model/PaginatedProducerList.js +1 -1
  54. package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +1 -1
  55. package/dist/model/PaginatedProductionDataPointListOrDetailList.js +1 -1
  56. package/dist/model/PaginatedProductionSiteListOrDetailList.js +1 -1
  57. package/dist/model/PaginatedRetailerList.js +1 -1
  58. package/dist/model/PaginatedSmartContractList.js +1 -1
  59. package/dist/model/PaginatedUnprocessedRowList.js +1 -1
  60. package/dist/model/PaginatedUploadedFileList.js +1 -1
  61. package/dist/model/PaginatedUserList.js +1 -1
  62. package/dist/model/PatchedConsumer.js +1 -1
  63. package/dist/model/PatchedConsumptionDataPointUpdate.js +1 -1
  64. package/dist/model/PatchedConsumptionSite.js +1 -1
  65. package/dist/model/PatchedEmissionFactor.js +1 -1
  66. package/dist/model/PatchedEnergySourcePreference.js +1 -1
  67. package/dist/model/PatchedGridOperator.js +1 -1
  68. package/dist/model/PatchedIssuer.js +1 -1
  69. package/dist/model/PatchedLocation.js +1 -1
  70. package/dist/model/PatchedProducer.js +1 -1
  71. package/dist/model/PatchedProductionDataPointUpdate.js +1 -1
  72. package/dist/model/PatchedProductionSiteUpdate.js +1 -1
  73. package/dist/model/PatchedRetailer.js +1 -1
  74. package/dist/model/PatchedSmartContract.js +1 -1
  75. package/dist/model/PatchedUser.js +1 -1
  76. package/dist/model/PatchedUserDetail.js +1 -1
  77. package/dist/model/Producer.js +1 -1
  78. package/dist/model/ProductionDataFileList.js +1 -1
  79. package/dist/model/ProductionDataFromEpiasRequest.js +1 -1
  80. package/dist/model/ProductionDataPointCreate.js +1 -1
  81. package/dist/model/ProductionDataPointListOrDetail.js +1 -1
  82. package/dist/model/ProductionDataPointUpdate.js +1 -1
  83. package/dist/model/ProductionSite.js +1 -1
  84. package/dist/model/ProductionSiteFileUpload.js +1 -1
  85. package/dist/model/ProductionSiteListOrDetail.js +1 -1
  86. package/dist/model/ProductionSiteUpdate.js +1 -1
  87. package/dist/model/Register.js +1 -1
  88. package/dist/model/Retailer.js +1 -1
  89. package/dist/model/SmartContract.js +1 -1
  90. package/dist/model/Token.js +1 -1
  91. package/dist/model/UnprocessedRow.js +1 -1
  92. package/dist/model/UploadedFile.js +1 -1
  93. package/dist/model/User.js +1 -1
  94. package/dist/model/UserDetail.js +1 -1
  95. package/package.json +1 -1
  96. package/dist/model/AddConsumer.js +0 -121
  97. package/dist/model/AddConsumptionSite.js +0 -130
  98. package/dist/model/AddProducer.js +0 -121
  99. package/dist/model/AddProductionSite.js +0 -135
  100. package/dist/model/PaginatedAddConsumptionSiteFromEnerjisaList.js +0 -104
  101. package/dist/model/PaginatedAddConsumptionSiteList.js +0 -104
  102. package/dist/model/PaginatedAddProducerList.js +0 -104
  103. package/dist/model/PaginatedAddProductionSiteList.js +0 -104
@@ -7,25 +7,9 @@ exports["default"] = void 0;
7
7
 
8
8
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
9
9
 
10
- var _AddConsumer = _interopRequireDefault(require("../model/AddConsumer"));
10
+ var _Activities = _interopRequireDefault(require("../model/Activities"));
11
11
 
12
- var _AddConsumptionSite = _interopRequireDefault(require("../model/AddConsumptionSite"));
13
-
14
- var _AddConsumptionSiteFromEnerjisa = _interopRequireDefault(require("../model/AddConsumptionSiteFromEnerjisa"));
15
-
16
- var _AddProducer = _interopRequireDefault(require("../model/AddProducer"));
17
-
18
- var _AddProductionSite = _interopRequireDefault(require("../model/AddProductionSite"));
19
-
20
- var _PaginatedAddConsumerList = _interopRequireDefault(require("../model/PaginatedAddConsumerList"));
21
-
22
- var _PaginatedAddConsumptionSiteFromEnerjisaList = _interopRequireDefault(require("../model/PaginatedAddConsumptionSiteFromEnerjisaList"));
23
-
24
- var _PaginatedAddConsumptionSiteList = _interopRequireDefault(require("../model/PaginatedAddConsumptionSiteList"));
25
-
26
- var _PaginatedAddProducerList = _interopRequireDefault(require("../model/PaginatedAddProducerList"));
27
-
28
- var _PaginatedAddProductionSiteList = _interopRequireDefault(require("../model/PaginatedAddProductionSiteList"));
12
+ var _PaginatedActivitiesList = _interopRequireDefault(require("../model/PaginatedActivitiesList"));
29
13
 
30
14
  var _PaginatedProductionDataFromEpiasRequestList = _interopRequireDefault(require("../model/PaginatedProductionDataFromEpiasRequestList"));
31
15
 
@@ -50,7 +34,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
50
34
  /**
51
35
  * Logs service.
52
36
  * @module api/LogsApi
53
- * @version 0.82.5
37
+ * @version 0.82.9
54
38
  */
55
39
  var LogsApi = /*#__PURE__*/function () {
56
40
  /**
@@ -66,147 +50,27 @@ var LogsApi = /*#__PURE__*/function () {
66
50
  this.apiClient = apiClient || _ApiClient["default"].instance;
67
51
  }
68
52
  /**
69
- * Callback function to receive the result of the logsConsumerDestroy operation.
70
- * @callback module:api/LogsApi~logsConsumerDestroyCallback
53
+ * Callback function to receive the result of the logsActivitiesDestroy operation.
54
+ * @callback module:api/LogsApi~logsActivitiesDestroyCallback
71
55
  * @param {String} error Error message, if any.
72
56
  * @param data This operation does not return a value.
73
57
  * @param {String} response The complete HTTP response.
74
58
  */
75
59
 
76
60
  /**
77
- * **Delete a specific consumer.** User should be *authenticated* and have an *active* (is_active=True) account. **Note:** Object should be owned by the user's organization. **Roles required**: Admin **User employed by an active allowed organization**: Consumer or Retailer
78
- * @param {String} id A UUID string identifying this add consumer.
79
- * @param {module:api/LogsApi~logsConsumerDestroyCallback} callback The callback function, accepting three arguments: error, data, response
61
+ * **Delete a specific Activitiy.** User should be *authenticated* and have an *active* (is_active=True) account. **Note:** Object should be owned by the user's organization. **Roles required**: Admin **User employed by an active allowed organization**: Consumer or Retailer
62
+ * @param {String} id A UUID string identifying this activities.
63
+ * @param {module:api/LogsApi~logsActivitiesDestroyCallback} callback The callback function, accepting three arguments: error, data, response
80
64
  */
81
65
 
82
66
 
83
67
  _createClass(LogsApi, [{
84
- key: "logsConsumerDestroy",
85
- value: function logsConsumerDestroy(id, callback) {
86
- var postBody = null; // verify the required parameter 'id' is set
87
-
88
- if (id === undefined || id === null) {
89
- throw new Error("Missing the required parameter 'id' when calling logsConsumerDestroy");
90
- }
91
-
92
- var pathParams = {
93
- 'id': id
94
- };
95
- var queryParams = {};
96
- var headerParams = {};
97
- var formParams = {};
98
- var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
99
- var contentTypes = [];
100
- var accepts = [];
101
- var returnType = null;
102
- return this.apiClient.callApi('/logs/consumer/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
103
- }
104
- /**
105
- * Callback function to receive the result of the logsConsumerList operation.
106
- * @callback module:api/LogsApi~logsConsumerListCallback
107
- * @param {String} error Error message, if any.
108
- * @param {module:model/PaginatedAddConsumerList} data The data returned by the service call.
109
- * @param {String} response The complete HTTP response.
110
- */
111
-
112
- /**
113
- * **List all Consumer requests related to the user's organization.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
114
- * @param {Object} opts Optional parameters
115
- * @param {Date} opts.createdAt
116
- * @param {String} opts.id
117
- * @param {Number} opts.limit Number of results to return per page.
118
- * @param {String} opts.name
119
- * @param {Number} opts.offset The initial index from which to return the results.
120
- * @param {Array.<module:model/String>} opts.orderBy Ordering
121
- * @param {String} opts.retailer
122
- * @param {Date} opts.updatedAt
123
- * @param {String} opts.user
124
- * @param {module:api/LogsApi~logsConsumerListCallback} callback The callback function, accepting three arguments: error, data, response
125
- * data is of type: {@link module:model/PaginatedAddConsumerList}
126
- */
127
-
128
- }, {
129
- key: "logsConsumerList",
130
- value: function logsConsumerList(opts, callback) {
131
- opts = opts || {};
132
- var postBody = null;
133
- var pathParams = {};
134
- var queryParams = {
135
- 'created_at': opts['createdAt'],
136
- 'id': opts['id'],
137
- 'limit': opts['limit'],
138
- 'name': opts['name'],
139
- 'offset': opts['offset'],
140
- 'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
141
- 'retailer': opts['retailer'],
142
- 'updated_at': opts['updatedAt'],
143
- 'user': opts['user']
144
- };
145
- var headerParams = {};
146
- var formParams = {};
147
- var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
148
- var contentTypes = [];
149
- var accepts = ['application/json'];
150
- var returnType = _PaginatedAddConsumerList["default"];
151
- return this.apiClient.callApi('/logs/consumer/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
152
- }
153
- /**
154
- * Callback function to receive the result of the logsConsumerRetrieve operation.
155
- * @callback module:api/LogsApi~logsConsumerRetrieveCallback
156
- * @param {String} error Error message, if any.
157
- * @param {module:model/AddConsumer} data The data returned by the service call.
158
- * @param {String} response The complete HTTP response.
159
- */
160
-
161
- /**
162
- * **Get a specific EPIAS request details.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
163
- * @param {String} id A UUID string identifying this add consumer.
164
- * @param {module:api/LogsApi~logsConsumerRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
165
- * data is of type: {@link module:model/AddConsumer}
166
- */
167
-
168
- }, {
169
- key: "logsConsumerRetrieve",
170
- value: function logsConsumerRetrieve(id, callback) {
171
- var postBody = null; // verify the required parameter 'id' is set
172
-
173
- if (id === undefined || id === null) {
174
- throw new Error("Missing the required parameter 'id' when calling logsConsumerRetrieve");
175
- }
176
-
177
- var pathParams = {
178
- 'id': id
179
- };
180
- var queryParams = {};
181
- var headerParams = {};
182
- var formParams = {};
183
- var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
184
- var contentTypes = [];
185
- var accepts = ['application/json'];
186
- var returnType = _AddConsumer["default"];
187
- return this.apiClient.callApi('/logs/consumer/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
188
- }
189
- /**
190
- * Callback function to receive the result of the logsConsumptionEnerjisaDestroy operation.
191
- * @callback module:api/LogsApi~logsConsumptionEnerjisaDestroyCallback
192
- * @param {String} error Error message, if any.
193
- * @param data This operation does not return a value.
194
- * @param {String} response The complete HTTP response.
195
- */
196
-
197
- /**
198
- * **Delete a specific consumption site.** User should be *authenticated* and have an *active* (is_active=True) account. **Note:** Object should be owned by the user's organization. **Roles required**: Admin **User employed by an active allowed organization**: Consumer or Retailer
199
- * @param {String} id A UUID string identifying this add consumption site from enerjisa.
200
- * @param {module:api/LogsApi~logsConsumptionEnerjisaDestroyCallback} callback The callback function, accepting three arguments: error, data, response
201
- */
202
-
203
- }, {
204
- key: "logsConsumptionEnerjisaDestroy",
205
- value: function logsConsumptionEnerjisaDestroy(id, callback) {
68
+ key: "logsActivitiesDestroy",
69
+ value: function logsActivitiesDestroy(id, callback) {
206
70
  var postBody = null; // verify the required parameter 'id' is set
207
71
 
208
72
  if (id === undefined || id === null) {
209
- throw new Error("Missing the required parameter 'id' when calling logsConsumptionEnerjisaDestroy");
73
+ throw new Error("Missing the required parameter 'id' when calling logsActivitiesDestroy");
210
74
  }
211
75
 
212
76
  var pathParams = {
@@ -219,20 +83,24 @@ var LogsApi = /*#__PURE__*/function () {
219
83
  var contentTypes = [];
220
84
  var accepts = [];
221
85
  var returnType = null;
222
- return this.apiClient.callApi('/logs/consumption-enerjisa/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
86
+ return this.apiClient.callApi('/logs/activities/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
223
87
  }
224
88
  /**
225
- * Callback function to receive the result of the logsConsumptionEnerjisaList operation.
226
- * @callback module:api/LogsApi~logsConsumptionEnerjisaListCallback
89
+ * Callback function to receive the result of the logsActivitiesList operation.
90
+ * @callback module:api/LogsApi~logsActivitiesListCallback
227
91
  * @param {String} error Error message, if any.
228
- * @param {module:model/PaginatedAddConsumptionSiteFromEnerjisaList} data The data returned by the service call.
92
+ * @param {module:model/PaginatedActivitiesList} data The data returned by the service call.
229
93
  * @param {String} response The complete HTTP response.
230
94
  */
231
95
 
232
96
  /**
233
- * **List all Consumption Site's requests related to the user's organization.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
97
+ * **List all Activities requests related to the user's organization.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
234
98
  * @param {Object} opts Optional parameters
235
- * @param {String} opts.consumer
99
+ * @param {String} opts.activityAction
100
+ * @param {String} opts.activityCategory
101
+ * @param {String} opts.activityDetail
102
+ * @param {String} opts.activityStatus
103
+ * @param {String} opts.activityType
236
104
  * @param {Date} opts.createdAt
237
105
  * @param {String} opts.id
238
106
  * @param {Number} opts.limit Number of results to return per page.
@@ -242,18 +110,22 @@ var LogsApi = /*#__PURE__*/function () {
242
110
  * @param {String} opts.retailer
243
111
  * @param {Date} opts.updatedAt
244
112
  * @param {String} opts.user
245
- * @param {module:api/LogsApi~logsConsumptionEnerjisaListCallback} callback The callback function, accepting three arguments: error, data, response
246
- * data is of type: {@link module:model/PaginatedAddConsumptionSiteFromEnerjisaList}
113
+ * @param {module:api/LogsApi~logsActivitiesListCallback} callback The callback function, accepting three arguments: error, data, response
114
+ * data is of type: {@link module:model/PaginatedActivitiesList}
247
115
  */
248
116
 
249
117
  }, {
250
- key: "logsConsumptionEnerjisaList",
251
- value: function logsConsumptionEnerjisaList(opts, callback) {
118
+ key: "logsActivitiesList",
119
+ value: function logsActivitiesList(opts, callback) {
252
120
  opts = opts || {};
253
121
  var postBody = null;
254
122
  var pathParams = {};
255
123
  var queryParams = {
256
- 'consumer': opts['consumer'],
124
+ 'activity_action': opts['activityAction'],
125
+ 'activity_category': opts['activityCategory'],
126
+ 'activity_detail': opts['activityDetail'],
127
+ 'activity_status': opts['activityStatus'],
128
+ 'activity_type': opts['activityType'],
257
129
  'created_at': opts['createdAt'],
258
130
  'id': opts['id'],
259
131
  'limit': opts['limit'],
@@ -269,66 +141,31 @@ var LogsApi = /*#__PURE__*/function () {
269
141
  var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
270
142
  var contentTypes = [];
271
143
  var accepts = ['application/json'];
272
- var returnType = _PaginatedAddConsumptionSiteFromEnerjisaList["default"];
273
- return this.apiClient.callApi('/logs/consumption-enerjisa/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
274
- }
275
- /**
276
- * Callback function to receive the result of the logsConsumptionEnerjisaRetrieve operation.
277
- * @callback module:api/LogsApi~logsConsumptionEnerjisaRetrieveCallback
278
- * @param {String} error Error message, if any.
279
- * @param {module:model/AddConsumptionSiteFromEnerjisa} data The data returned by the service call.
280
- * @param {String} response The complete HTTP response.
281
- */
282
-
283
- /**
284
- * **Get a specific Consumption Site request details.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
285
- * @param {String} id A UUID string identifying this add consumption site from enerjisa.
286
- * @param {module:api/LogsApi~logsConsumptionEnerjisaRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
287
- * data is of type: {@link module:model/AddConsumptionSiteFromEnerjisa}
288
- */
289
-
290
- }, {
291
- key: "logsConsumptionEnerjisaRetrieve",
292
- value: function logsConsumptionEnerjisaRetrieve(id, callback) {
293
- var postBody = null; // verify the required parameter 'id' is set
294
-
295
- if (id === undefined || id === null) {
296
- throw new Error("Missing the required parameter 'id' when calling logsConsumptionEnerjisaRetrieve");
297
- }
298
-
299
- var pathParams = {
300
- 'id': id
301
- };
302
- var queryParams = {};
303
- var headerParams = {};
304
- var formParams = {};
305
- var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
306
- var contentTypes = [];
307
- var accepts = ['application/json'];
308
- var returnType = _AddConsumptionSiteFromEnerjisa["default"];
309
- return this.apiClient.callApi('/logs/consumption-enerjisa/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
144
+ var returnType = _PaginatedActivitiesList["default"];
145
+ return this.apiClient.callApi('/logs/activities/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
310
146
  }
311
147
  /**
312
- * Callback function to receive the result of the logsConsumptionSiteDestroy operation.
313
- * @callback module:api/LogsApi~logsConsumptionSiteDestroyCallback
148
+ * Callback function to receive the result of the logsActivitiesRetrieve operation.
149
+ * @callback module:api/LogsApi~logsActivitiesRetrieveCallback
314
150
  * @param {String} error Error message, if any.
315
- * @param data This operation does not return a value.
151
+ * @param {module:model/Activities} data The data returned by the service call.
316
152
  * @param {String} response The complete HTTP response.
317
153
  */
318
154
 
319
155
  /**
320
- * **Delete a specific consumption site.** User should be *authenticated* and have an *active* (is_active=True) account. **Note:** Object should be owned by the user's organization. **Roles required**: Admin **User employed by an active allowed organization**: Consumer or Retailer
321
- * @param {String} id A UUID string identifying this add consumption site.
322
- * @param {module:api/LogsApi~logsConsumptionSiteDestroyCallback} callback The callback function, accepting three arguments: error, data, response
156
+ * **Get a specific Activities request details.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
157
+ * @param {String} id A UUID string identifying this activities.
158
+ * @param {module:api/LogsApi~logsActivitiesRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
159
+ * data is of type: {@link module:model/Activities}
323
160
  */
324
161
 
325
162
  }, {
326
- key: "logsConsumptionSiteDestroy",
327
- value: function logsConsumptionSiteDestroy(id, callback) {
163
+ key: "logsActivitiesRetrieve",
164
+ value: function logsActivitiesRetrieve(id, callback) {
328
165
  var postBody = null; // verify the required parameter 'id' is set
329
166
 
330
167
  if (id === undefined || id === null) {
331
- throw new Error("Missing the required parameter 'id' when calling logsConsumptionSiteDestroy");
168
+ throw new Error("Missing the required parameter 'id' when calling logsActivitiesRetrieve");
332
169
  }
333
170
 
334
171
  var pathParams = {
@@ -339,216 +176,9 @@ var LogsApi = /*#__PURE__*/function () {
339
176
  var formParams = {};
340
177
  var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
341
178
  var contentTypes = [];
342
- var accepts = [];
343
- var returnType = null;
344
- return this.apiClient.callApi('/logs/consumption-site/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
345
- }
346
- /**
347
- * Callback function to receive the result of the logsConsumptionSiteList operation.
348
- * @callback module:api/LogsApi~logsConsumptionSiteListCallback
349
- * @param {String} error Error message, if any.
350
- * @param {module:model/PaginatedAddConsumptionSiteList} data The data returned by the service call.
351
- * @param {String} response The complete HTTP response.
352
- */
353
-
354
- /**
355
- * **List all Consumption Site's requests related to the user's organization.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
356
- * @param {Object} opts Optional parameters
357
- * @param {String} opts.consumer
358
- * @param {Date} opts.createdAt
359
- * @param {String} opts.id
360
- * @param {Number} opts.limit Number of results to return per page.
361
- * @param {String} opts.name
362
- * @param {Number} opts.offset The initial index from which to return the results.
363
- * @param {Array.<module:model/String>} opts.orderBy Ordering
364
- * @param {String} opts.retailer
365
- * @param {Date} opts.updatedAt
366
- * @param {String} opts.user
367
- * @param {module:api/LogsApi~logsConsumptionSiteListCallback} callback The callback function, accepting three arguments: error, data, response
368
- * data is of type: {@link module:model/PaginatedAddConsumptionSiteList}
369
- */
370
-
371
- }, {
372
- key: "logsConsumptionSiteList",
373
- value: function logsConsumptionSiteList(opts, callback) {
374
- opts = opts || {};
375
- var postBody = null;
376
- var pathParams = {};
377
- var queryParams = {
378
- 'consumer': opts['consumer'],
379
- 'created_at': opts['createdAt'],
380
- 'id': opts['id'],
381
- 'limit': opts['limit'],
382
- 'name': opts['name'],
383
- 'offset': opts['offset'],
384
- 'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
385
- 'retailer': opts['retailer'],
386
- 'updated_at': opts['updatedAt'],
387
- 'user': opts['user']
388
- };
389
- var headerParams = {};
390
- var formParams = {};
391
- var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
392
- var contentTypes = [];
393
179
  var accepts = ['application/json'];
394
- var returnType = _PaginatedAddConsumptionSiteList["default"];
395
- return this.apiClient.callApi('/logs/consumption-site/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
396
- }
397
- /**
398
- * Callback function to receive the result of the logsConsumptionSiteRetrieve operation.
399
- * @callback module:api/LogsApi~logsConsumptionSiteRetrieveCallback
400
- * @param {String} error Error message, if any.
401
- * @param {module:model/AddConsumptionSite} data The data returned by the service call.
402
- * @param {String} response The complete HTTP response.
403
- */
404
-
405
- /**
406
- * **Get a specific Consumption Site request details.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
407
- * @param {String} id A UUID string identifying this add consumption site.
408
- * @param {module:api/LogsApi~logsConsumptionSiteRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
409
- * data is of type: {@link module:model/AddConsumptionSite}
410
- */
411
-
412
- }, {
413
- key: "logsConsumptionSiteRetrieve",
414
- value: function logsConsumptionSiteRetrieve(id, callback) {
415
- var postBody = null; // verify the required parameter 'id' is set
416
-
417
- if (id === undefined || id === null) {
418
- throw new Error("Missing the required parameter 'id' when calling logsConsumptionSiteRetrieve");
419
- }
420
-
421
- var pathParams = {
422
- 'id': id
423
- };
424
- var queryParams = {};
425
- var headerParams = {};
426
- var formParams = {};
427
- var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
428
- var contentTypes = [];
429
- var accepts = ['application/json'];
430
- var returnType = _AddConsumptionSite["default"];
431
- return this.apiClient.callApi('/logs/consumption-site/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
432
- }
433
- /**
434
- * Callback function to receive the result of the logsProducerDestroy operation.
435
- * @callback module:api/LogsApi~logsProducerDestroyCallback
436
- * @param {String} error Error message, if any.
437
- * @param data This operation does not return a value.
438
- * @param {String} response The complete HTTP response.
439
- */
440
-
441
- /**
442
- * **Delete a specific producer.** User should be *authenticated* and have an *active* (is_active=True) account. **Note:** Object should be owned by the user's organization. **Roles required**: Admin **User employed by an active allowed organization**: Consumer or Retailer
443
- * @param {String} id A UUID string identifying this add producer.
444
- * @param {module:api/LogsApi~logsProducerDestroyCallback} callback The callback function, accepting three arguments: error, data, response
445
- */
446
-
447
- }, {
448
- key: "logsProducerDestroy",
449
- value: function logsProducerDestroy(id, callback) {
450
- var postBody = null; // verify the required parameter 'id' is set
451
-
452
- if (id === undefined || id === null) {
453
- throw new Error("Missing the required parameter 'id' when calling logsProducerDestroy");
454
- }
455
-
456
- var pathParams = {
457
- 'id': id
458
- };
459
- var queryParams = {};
460
- var headerParams = {};
461
- var formParams = {};
462
- var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
463
- var contentTypes = [];
464
- var accepts = [];
465
- var returnType = null;
466
- return this.apiClient.callApi('/logs/producer/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
467
- }
468
- /**
469
- * Callback function to receive the result of the logsProducerList operation.
470
- * @callback module:api/LogsApi~logsProducerListCallback
471
- * @param {String} error Error message, if any.
472
- * @param {module:model/PaginatedAddProducerList} data The data returned by the service call.
473
- * @param {String} response The complete HTTP response.
474
- */
475
-
476
- /**
477
- * **List all Producer requests related to the user's organization.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
478
- * @param {Object} opts Optional parameters
479
- * @param {Date} opts.createdAt
480
- * @param {String} opts.id
481
- * @param {Number} opts.limit Number of results to return per page.
482
- * @param {String} opts.name
483
- * @param {Number} opts.offset The initial index from which to return the results.
484
- * @param {Array.<module:model/String>} opts.orderBy Ordering
485
- * @param {String} opts.retailer
486
- * @param {Date} opts.updatedAt
487
- * @param {String} opts.user
488
- * @param {module:api/LogsApi~logsProducerListCallback} callback The callback function, accepting three arguments: error, data, response
489
- * data is of type: {@link module:model/PaginatedAddProducerList}
490
- */
491
-
492
- }, {
493
- key: "logsProducerList",
494
- value: function logsProducerList(opts, callback) {
495
- opts = opts || {};
496
- var postBody = null;
497
- var pathParams = {};
498
- var queryParams = {
499
- 'created_at': opts['createdAt'],
500
- 'id': opts['id'],
501
- 'limit': opts['limit'],
502
- 'name': opts['name'],
503
- 'offset': opts['offset'],
504
- 'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
505
- 'retailer': opts['retailer'],
506
- 'updated_at': opts['updatedAt'],
507
- 'user': opts['user']
508
- };
509
- var headerParams = {};
510
- var formParams = {};
511
- var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
512
- var contentTypes = [];
513
- var accepts = ['application/json'];
514
- var returnType = _PaginatedAddProducerList["default"];
515
- return this.apiClient.callApi('/logs/producer/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
516
- }
517
- /**
518
- * Callback function to receive the result of the logsProducerRetrieve operation.
519
- * @callback module:api/LogsApi~logsProducerRetrieveCallback
520
- * @param {String} error Error message, if any.
521
- * @param {module:model/AddProducer} data The data returned by the service call.
522
- * @param {String} response The complete HTTP response.
523
- */
524
-
525
- /**
526
- * **Get a specific Producer request details.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
527
- * @param {String} id A UUID string identifying this add producer.
528
- * @param {module:api/LogsApi~logsProducerRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
529
- * data is of type: {@link module:model/AddProducer}
530
- */
531
-
532
- }, {
533
- key: "logsProducerRetrieve",
534
- value: function logsProducerRetrieve(id, callback) {
535
- var postBody = null; // verify the required parameter 'id' is set
536
-
537
- if (id === undefined || id === null) {
538
- throw new Error("Missing the required parameter 'id' when calling logsProducerRetrieve");
539
- }
540
-
541
- var pathParams = {
542
- 'id': id
543
- };
544
- var queryParams = {};
545
- var headerParams = {};
546
- var formParams = {};
547
- var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
548
- var contentTypes = [];
549
- var accepts = ['application/json'];
550
- var returnType = _AddProducer["default"];
551
- return this.apiClient.callApi('/logs/producer/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
180
+ var returnType = _Activities["default"];
181
+ return this.apiClient.callApi('/logs/activities/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
552
182
  }
553
183
  /**
554
184
  * Callback function to receive the result of the logsProductionEpiasDestroy operation.
@@ -680,128 +310,6 @@ var LogsApi = /*#__PURE__*/function () {
680
310
  var returnType = _ProductionDataFromEpiasRequest["default"];
681
311
  return this.apiClient.callApi('/logs/production-epias/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
682
312
  }
683
- /**
684
- * Callback function to receive the result of the logsProductionSiteDestroy operation.
685
- * @callback module:api/LogsApi~logsProductionSiteDestroyCallback
686
- * @param {String} error Error message, if any.
687
- * @param data This operation does not return a value.
688
- * @param {String} response The complete HTTP response.
689
- */
690
-
691
- /**
692
- * **Delete a specific Production Site.** User should be *authenticated* and have an *active* (is_active=True) account. **Note:** Object should be owned by the user's organization. **Roles required**: Admin **User employed by an active allowed organization**: Consumer or Retailer
693
- * @param {String} id A UUID string identifying this add production site.
694
- * @param {module:api/LogsApi~logsProductionSiteDestroyCallback} callback The callback function, accepting three arguments: error, data, response
695
- */
696
-
697
- }, {
698
- key: "logsProductionSiteDestroy",
699
- value: function logsProductionSiteDestroy(id, callback) {
700
- var postBody = null; // verify the required parameter 'id' is set
701
-
702
- if (id === undefined || id === null) {
703
- throw new Error("Missing the required parameter 'id' when calling logsProductionSiteDestroy");
704
- }
705
-
706
- var pathParams = {
707
- 'id': id
708
- };
709
- var queryParams = {};
710
- var headerParams = {};
711
- var formParams = {};
712
- var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
713
- var contentTypes = [];
714
- var accepts = [];
715
- var returnType = null;
716
- return this.apiClient.callApi('/logs/production-site/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
717
- }
718
- /**
719
- * Callback function to receive the result of the logsProductionSiteList operation.
720
- * @callback module:api/LogsApi~logsProductionSiteListCallback
721
- * @param {String} error Error message, if any.
722
- * @param {module:model/PaginatedAddProductionSiteList} data The data returned by the service call.
723
- * @param {String} response The complete HTTP response.
724
- */
725
-
726
- /**
727
- * **List all Production Site's requests related to the user's organization.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
728
- * @param {Object} opts Optional parameters
729
- * @param {Date} opts.createdAt
730
- * @param {String} opts.id
731
- * @param {Number} opts.limit Number of results to return per page.
732
- * @param {String} opts.name
733
- * @param {Number} opts.offset The initial index from which to return the results.
734
- * @param {Array.<module:model/String>} opts.orderBy Ordering
735
- * @param {String} opts.producer
736
- * @param {String} opts.retailer
737
- * @param {Date} opts.updatedAt
738
- * @param {String} opts.user
739
- * @param {module:api/LogsApi~logsProductionSiteListCallback} callback The callback function, accepting three arguments: error, data, response
740
- * data is of type: {@link module:model/PaginatedAddProductionSiteList}
741
- */
742
-
743
- }, {
744
- key: "logsProductionSiteList",
745
- value: function logsProductionSiteList(opts, callback) {
746
- opts = opts || {};
747
- var postBody = null;
748
- var pathParams = {};
749
- var queryParams = {
750
- 'created_at': opts['createdAt'],
751
- 'id': opts['id'],
752
- 'limit': opts['limit'],
753
- 'name': opts['name'],
754
- 'offset': opts['offset'],
755
- 'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
756
- 'producer': opts['producer'],
757
- 'retailer': opts['retailer'],
758
- 'updated_at': opts['updatedAt'],
759
- 'user': opts['user']
760
- };
761
- var headerParams = {};
762
- var formParams = {};
763
- var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
764
- var contentTypes = [];
765
- var accepts = ['application/json'];
766
- var returnType = _PaginatedAddProductionSiteList["default"];
767
- return this.apiClient.callApi('/logs/production-site/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
768
- }
769
- /**
770
- * Callback function to receive the result of the logsProductionSiteRetrieve operation.
771
- * @callback module:api/LogsApi~logsProductionSiteRetrieveCallback
772
- * @param {String} error Error message, if any.
773
- * @param {module:model/AddProductionSite} data The data returned by the service call.
774
- * @param {String} response The complete HTTP response.
775
- */
776
-
777
- /**
778
- * **Get a specific Production Site request details.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
779
- * @param {String} id A UUID string identifying this add production site.
780
- * @param {module:api/LogsApi~logsProductionSiteRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
781
- * data is of type: {@link module:model/AddProductionSite}
782
- */
783
-
784
- }, {
785
- key: "logsProductionSiteRetrieve",
786
- value: function logsProductionSiteRetrieve(id, callback) {
787
- var postBody = null; // verify the required parameter 'id' is set
788
-
789
- if (id === undefined || id === null) {
790
- throw new Error("Missing the required parameter 'id' when calling logsProductionSiteRetrieve");
791
- }
792
-
793
- var pathParams = {
794
- 'id': id
795
- };
796
- var queryParams = {};
797
- var headerParams = {};
798
- var formParams = {};
799
- var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
800
- var contentTypes = [];
801
- var accepts = ['application/json'];
802
- var returnType = _AddProductionSite["default"];
803
- return this.apiClient.callApi('/logs/production-site/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
804
- }
805
313
  /**
806
314
  * Callback function to receive the result of the logsUnprocessedRowDestroy operation.
807
315
  * @callback module:api/LogsApi~logsUnprocessedRowDestroyCallback