green_link_api 0.80.6 → 0.82.0

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 (104) hide show
  1. package/README.md +36 -8
  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 -100
  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 +1054 -0
  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 +88 -8
  17. package/dist/model/AddConsumer.js +121 -0
  18. package/dist/model/AddConsumptionSite.js +130 -0
  19. package/dist/model/AddConsumptionSiteFromEnerjisa.js +130 -0
  20. package/dist/model/AddProducer.js +121 -0
  21. package/dist/model/AddProductionSite.js +135 -0
  22. package/dist/model/BlockchainTransaction.js +1 -1
  23. package/dist/model/Consumer.js +1 -1
  24. package/dist/model/ConsumptionDataFileList.js +1 -1
  25. package/dist/model/ConsumptionDataFromRetailer.js +1 -1
  26. package/dist/model/ConsumptionDataPointCreate.js +1 -1
  27. package/dist/model/ConsumptionDataPointListOrDetail.js +1 -1
  28. package/dist/model/ConsumptionDataPointUpdate.js +1 -1
  29. package/dist/model/ConsumptionSite.js +1 -1
  30. package/dist/model/ConsumptionSiteCreate.js +1 -1
  31. package/dist/model/ConsumptionSiteFileUpload.js +1 -1
  32. package/dist/model/ConsumptionSiteFromRetailer.js +1 -1
  33. package/dist/model/ConsumptionSiteListOrDetail.js +1 -1
  34. package/dist/model/ConsumptionSiteMany.js +1 -1
  35. package/dist/model/EmissionFactor.js +1 -1
  36. package/dist/model/EnergySourcePreference.js +1 -1
  37. package/dist/model/GetFromEpias.js +1 -1
  38. package/dist/model/GridOperator.js +1 -1
  39. package/dist/model/Issuer.js +1 -1
  40. package/dist/model/Location.js +1 -1
  41. package/dist/model/Login.js +1 -1
  42. package/dist/model/MatchRequest.js +1 -1
  43. package/dist/model/MatchedEnergyDataPoint.js +1 -1
  44. package/dist/model/MatchingConsumerRequest.js +1 -1
  45. package/dist/model/MatchingSiteRequest.js +1 -1
  46. package/dist/model/PaginatedAddConsumerList.js +104 -0
  47. package/dist/model/PaginatedAddConsumptionSiteFromEnerjisaList.js +104 -0
  48. package/dist/model/PaginatedAddConsumptionSiteList.js +104 -0
  49. package/dist/model/PaginatedAddProducerList.js +104 -0
  50. package/dist/model/PaginatedAddProductionSiteList.js +104 -0
  51. package/dist/model/PaginatedConsumerList.js +1 -1
  52. package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +1 -1
  53. package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +1 -1
  54. package/dist/model/PaginatedEmissionFactorList.js +1 -1
  55. package/dist/model/PaginatedEnergySourcePreferenceList.js +1 -1
  56. package/dist/model/PaginatedGridOperatorList.js +1 -1
  57. package/dist/model/PaginatedIssuerList.js +1 -1
  58. package/dist/model/PaginatedLocationList.js +1 -1
  59. package/dist/model/PaginatedMatchRequestList.js +1 -1
  60. package/dist/model/PaginatedMatchedEnergyDataPointList.js +1 -1
  61. package/dist/model/PaginatedProducerList.js +1 -1
  62. package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +1 -1
  63. package/dist/model/PaginatedProductionDataPointListOrDetailList.js +1 -1
  64. package/dist/model/PaginatedProductionSiteListOrDetailList.js +1 -1
  65. package/dist/model/PaginatedRetailerList.js +1 -1
  66. package/dist/model/PaginatedSmartContractList.js +1 -1
  67. package/dist/model/PaginatedUnprocessedRowList.js +1 -1
  68. package/dist/model/PaginatedUploadedFileList.js +1 -1
  69. package/dist/model/PaginatedUserList.js +1 -1
  70. package/dist/model/PatchedConsumer.js +1 -1
  71. package/dist/model/PatchedConsumptionDataPointUpdate.js +1 -1
  72. package/dist/model/PatchedConsumptionSite.js +1 -1
  73. package/dist/model/PatchedEmissionFactor.js +1 -1
  74. package/dist/model/PatchedEnergySourcePreference.js +1 -1
  75. package/dist/model/PatchedGridOperator.js +1 -1
  76. package/dist/model/PatchedIssuer.js +1 -1
  77. package/dist/model/PatchedLocation.js +1 -1
  78. package/dist/model/PatchedProducer.js +1 -1
  79. package/dist/model/PatchedProductionDataPointUpdate.js +1 -1
  80. package/dist/model/PatchedProductionSiteUpdate.js +1 -1
  81. package/dist/model/PatchedRetailer.js +1 -1
  82. package/dist/model/PatchedSmartContract.js +1 -1
  83. package/dist/model/PatchedUser.js +1 -1
  84. package/dist/model/PatchedUserDetail.js +1 -1
  85. package/dist/model/Producer.js +1 -1
  86. package/dist/model/ProductionDataFileList.js +1 -1
  87. package/dist/model/ProductionDataFromEpiasRequest.js +1 -1
  88. package/dist/model/ProductionDataPointCreate.js +1 -1
  89. package/dist/model/ProductionDataPointListOrDetail.js +1 -1
  90. package/dist/model/ProductionDataPointUpdate.js +1 -1
  91. package/dist/model/ProductionSite.js +1 -1
  92. package/dist/model/ProductionSiteFileUpload.js +1 -1
  93. package/dist/model/ProductionSiteListOrDetail.js +1 -1
  94. package/dist/model/ProductionSiteUpdate.js +1 -1
  95. package/dist/model/Register.js +1 -1
  96. package/dist/model/Retailer.js +1 -1
  97. package/dist/model/SmartContract.js +1 -1
  98. package/dist/model/Token.js +1 -1
  99. package/dist/model/UnprocessedRow.js +1 -1
  100. package/dist/model/UploadedFile.js +1 -1
  101. package/dist/model/User.js +1 -1
  102. package/dist/model/UserDetail.js +1 -1
  103. package/package.json +1 -1
  104. package/dist/api/UploadedfilesApi.js +0 -224
@@ -0,0 +1,1054 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
9
+
10
+ var _AddConsumer = _interopRequireDefault(require("../model/AddConsumer"));
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"));
29
+
30
+ var _PaginatedProductionDataFromEpiasRequestList = _interopRequireDefault(require("../model/PaginatedProductionDataFromEpiasRequestList"));
31
+
32
+ var _PaginatedUnprocessedRowList = _interopRequireDefault(require("../model/PaginatedUnprocessedRowList"));
33
+
34
+ var _PaginatedUploadedFileList = _interopRequireDefault(require("../model/PaginatedUploadedFileList"));
35
+
36
+ var _ProductionDataFromEpiasRequest = _interopRequireDefault(require("../model/ProductionDataFromEpiasRequest"));
37
+
38
+ var _UnprocessedRow = _interopRequireDefault(require("../model/UnprocessedRow"));
39
+
40
+ var _UploadedFile = _interopRequireDefault(require("../model/UploadedFile"));
41
+
42
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
43
+
44
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
45
+
46
+ 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); } }
47
+
48
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
49
+
50
+ /**
51
+ * Logs service.
52
+ * @module api/LogsApi
53
+ * @version 0.82.0
54
+ */
55
+ var LogsApi = /*#__PURE__*/function () {
56
+ /**
57
+ * Constructs a new LogsApi.
58
+ * @alias module:api/LogsApi
59
+ * @class
60
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
61
+ * default to {@link module:ApiClient#instance} if unspecified.
62
+ */
63
+ function LogsApi(apiClient) {
64
+ _classCallCheck(this, LogsApi);
65
+
66
+ this.apiClient = apiClient || _ApiClient["default"].instance;
67
+ }
68
+ /**
69
+ * Callback function to receive the result of the logsConsumerDestroy operation.
70
+ * @callback module:api/LogsApi~logsConsumerDestroyCallback
71
+ * @param {String} error Error message, if any.
72
+ * @param data This operation does not return a value.
73
+ * @param {String} response The complete HTTP response.
74
+ */
75
+
76
+ /**
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
80
+ */
81
+
82
+
83
+ _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) {
206
+ var postBody = null; // verify the required parameter 'id' is set
207
+
208
+ if (id === undefined || id === null) {
209
+ throw new Error("Missing the required parameter 'id' when calling logsConsumptionEnerjisaDestroy");
210
+ }
211
+
212
+ var pathParams = {
213
+ 'id': id
214
+ };
215
+ var queryParams = {};
216
+ var headerParams = {};
217
+ var formParams = {};
218
+ var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
219
+ var contentTypes = [];
220
+ var accepts = [];
221
+ var returnType = null;
222
+ return this.apiClient.callApi('/logs/consumption-enerjisa/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
223
+ }
224
+ /**
225
+ * Callback function to receive the result of the logsConsumptionEnerjisaList operation.
226
+ * @callback module:api/LogsApi~logsConsumptionEnerjisaListCallback
227
+ * @param {String} error Error message, if any.
228
+ * @param {module:model/PaginatedAddConsumptionSiteFromEnerjisaList} data The data returned by the service call.
229
+ * @param {String} response The complete HTTP response.
230
+ */
231
+
232
+ /**
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
234
+ * @param {Object} opts Optional parameters
235
+ * @param {String} opts.consumer
236
+ * @param {Date} opts.createdAt
237
+ * @param {String} opts.id
238
+ * @param {Number} opts.limit Number of results to return per page.
239
+ * @param {String} opts.name
240
+ * @param {Number} opts.offset The initial index from which to return the results.
241
+ * @param {Array.<module:model/String>} opts.orderBy Ordering
242
+ * @param {String} opts.retailer
243
+ * @param {Date} opts.updatedAt
244
+ * @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}
247
+ */
248
+
249
+ }, {
250
+ key: "logsConsumptionEnerjisaList",
251
+ value: function logsConsumptionEnerjisaList(opts, callback) {
252
+ opts = opts || {};
253
+ var postBody = null;
254
+ var pathParams = {};
255
+ var queryParams = {
256
+ 'consumer': opts['consumer'],
257
+ 'created_at': opts['createdAt'],
258
+ 'id': opts['id'],
259
+ 'limit': opts['limit'],
260
+ 'name': opts['name'],
261
+ 'offset': opts['offset'],
262
+ 'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
263
+ 'retailer': opts['retailer'],
264
+ 'updated_at': opts['updatedAt'],
265
+ 'user': opts['user']
266
+ };
267
+ var headerParams = {};
268
+ var formParams = {};
269
+ var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
270
+ var contentTypes = [];
271
+ 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);
310
+ }
311
+ /**
312
+ * Callback function to receive the result of the logsConsumptionSiteDestroy operation.
313
+ * @callback module:api/LogsApi~logsConsumptionSiteDestroyCallback
314
+ * @param {String} error Error message, if any.
315
+ * @param data This operation does not return a value.
316
+ * @param {String} response The complete HTTP response.
317
+ */
318
+
319
+ /**
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
323
+ */
324
+
325
+ }, {
326
+ key: "logsConsumptionSiteDestroy",
327
+ value: function logsConsumptionSiteDestroy(id, callback) {
328
+ var postBody = null; // verify the required parameter 'id' is set
329
+
330
+ if (id === undefined || id === null) {
331
+ throw new Error("Missing the required parameter 'id' when calling logsConsumptionSiteDestroy");
332
+ }
333
+
334
+ var pathParams = {
335
+ 'id': id
336
+ };
337
+ var queryParams = {};
338
+ var headerParams = {};
339
+ var formParams = {};
340
+ var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
341
+ 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
+ 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);
552
+ }
553
+ /**
554
+ * Callback function to receive the result of the logsProductionEpiasDestroy operation.
555
+ * @callback module:api/LogsApi~logsProductionEpiasDestroyCallback
556
+ * @param {String} error Error message, if any.
557
+ * @param data This operation does not return a value.
558
+ * @param {String} response The complete HTTP response.
559
+ */
560
+
561
+ /**
562
+ * Enforces object-level permissions in ``rest_framework.viewsets.ViewSet``, deriving the permission type from the particular action to be performed.. As with ``rules.contrib.views.AutoPermissionRequiredMixin``, this only works when model permissions are registered using ``rules.contrib.models.RulesModelMixin``.
563
+ * @param {String} id A UUID string identifying this production data from epias request.
564
+ * @param {module:api/LogsApi~logsProductionEpiasDestroyCallback} callback The callback function, accepting three arguments: error, data, response
565
+ */
566
+
567
+ }, {
568
+ key: "logsProductionEpiasDestroy",
569
+ value: function logsProductionEpiasDestroy(id, callback) {
570
+ var postBody = null; // verify the required parameter 'id' is set
571
+
572
+ if (id === undefined || id === null) {
573
+ throw new Error("Missing the required parameter 'id' when calling logsProductionEpiasDestroy");
574
+ }
575
+
576
+ var pathParams = {
577
+ 'id': id
578
+ };
579
+ var queryParams = {};
580
+ var headerParams = {};
581
+ var formParams = {};
582
+ var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
583
+ var contentTypes = [];
584
+ var accepts = [];
585
+ var returnType = null;
586
+ return this.apiClient.callApi('/logs/production-epias/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
587
+ }
588
+ /**
589
+ * Callback function to receive the result of the logsProductionEpiasList operation.
590
+ * @callback module:api/LogsApi~logsProductionEpiasListCallback
591
+ * @param {String} error Error message, if any.
592
+ * @param {module:model/PaginatedProductionDataFromEpiasRequestList} data The data returned by the service call.
593
+ * @param {String} response The complete HTTP response.
594
+ */
595
+
596
+ /**
597
+ * **List all EPIAS 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
598
+ * @param {Object} opts Optional parameters
599
+ * @param {Date} opts.createdAt
600
+ * @param {Date} opts.endTime
601
+ * @param {String} opts.id
602
+ * @param {Number} opts.limit Number of results to return per page.
603
+ * @param {Number} opts.offset The initial index from which to return the results.
604
+ * @param {Array.<module:model/String>} opts.orderBy Ordering
605
+ * @param {String} opts.producer
606
+ * @param {String} opts.productionSite
607
+ * @param {String} opts.retailer
608
+ * @param {Date} opts.startAfter Filter start time after a given ISO 8601 formatted date (e.g: 2020-01-01T03:00:00+03:00)
609
+ * @param {Date} opts.startBefore Filter start time before a given ISO 8601 formatted date (e.g: 2020-01-02T03:00:00+03:00)
610
+ * @param {Date} opts.startTime
611
+ * @param {module:model/String} opts.status Status is set to `started` or `finished` if at least one or all consumption datapoints have been matched. Default `unstarted`.
612
+ * @param {Date} opts.updatedAt
613
+ * @param {module:api/LogsApi~logsProductionEpiasListCallback} callback The callback function, accepting three arguments: error, data, response
614
+ * data is of type: {@link module:model/PaginatedProductionDataFromEpiasRequestList}
615
+ */
616
+
617
+ }, {
618
+ key: "logsProductionEpiasList",
619
+ value: function logsProductionEpiasList(opts, callback) {
620
+ opts = opts || {};
621
+ var postBody = null;
622
+ var pathParams = {};
623
+ var queryParams = {
624
+ 'created_at': opts['createdAt'],
625
+ 'end_time': opts['endTime'],
626
+ 'id': opts['id'],
627
+ 'limit': opts['limit'],
628
+ 'offset': opts['offset'],
629
+ 'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
630
+ 'producer': opts['producer'],
631
+ 'production_site': opts['productionSite'],
632
+ 'retailer': opts['retailer'],
633
+ 'start_after': opts['startAfter'],
634
+ 'start_before': opts['startBefore'],
635
+ 'start_time': opts['startTime'],
636
+ 'status': opts['status'],
637
+ 'updated_at': opts['updatedAt']
638
+ };
639
+ var headerParams = {};
640
+ var formParams = {};
641
+ var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
642
+ var contentTypes = [];
643
+ var accepts = ['application/json'];
644
+ var returnType = _PaginatedProductionDataFromEpiasRequestList["default"];
645
+ return this.apiClient.callApi('/logs/production-epias/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
646
+ }
647
+ /**
648
+ * Callback function to receive the result of the logsProductionEpiasRetrieve operation.
649
+ * @callback module:api/LogsApi~logsProductionEpiasRetrieveCallback
650
+ * @param {String} error Error message, if any.
651
+ * @param {module:model/ProductionDataFromEpiasRequest} data The data returned by the service call.
652
+ * @param {String} response The complete HTTP response.
653
+ */
654
+
655
+ /**
656
+ * **Get a specific EPIAS request details.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
657
+ * @param {String} id A UUID string identifying this production data from epias request.
658
+ * @param {module:api/LogsApi~logsProductionEpiasRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
659
+ * data is of type: {@link module:model/ProductionDataFromEpiasRequest}
660
+ */
661
+
662
+ }, {
663
+ key: "logsProductionEpiasRetrieve",
664
+ value: function logsProductionEpiasRetrieve(id, callback) {
665
+ var postBody = null; // verify the required parameter 'id' is set
666
+
667
+ if (id === undefined || id === null) {
668
+ throw new Error("Missing the required parameter 'id' when calling logsProductionEpiasRetrieve");
669
+ }
670
+
671
+ var pathParams = {
672
+ 'id': id
673
+ };
674
+ var queryParams = {};
675
+ var headerParams = {};
676
+ var formParams = {};
677
+ var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
678
+ var contentTypes = [];
679
+ var accepts = ['application/json'];
680
+ var returnType = _ProductionDataFromEpiasRequest["default"];
681
+ return this.apiClient.callApi('/logs/production-epias/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
682
+ }
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
+ /**
806
+ * Callback function to receive the result of the logsUnprocessedRowDestroy operation.
807
+ * @callback module:api/LogsApi~logsUnprocessedRowDestroyCallback
808
+ * @param {String} error Error message, if any.
809
+ * @param data This operation does not return a value.
810
+ * @param {String} response The complete HTTP response.
811
+ */
812
+
813
+ /**
814
+ * **Delete a specific file.** 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
815
+ * @param {String} id A UUID string identifying this unprocessed row.
816
+ * @param {module:api/LogsApi~logsUnprocessedRowDestroyCallback} callback The callback function, accepting three arguments: error, data, response
817
+ */
818
+
819
+ }, {
820
+ key: "logsUnprocessedRowDestroy",
821
+ value: function logsUnprocessedRowDestroy(id, callback) {
822
+ var postBody = null; // verify the required parameter 'id' is set
823
+
824
+ if (id === undefined || id === null) {
825
+ throw new Error("Missing the required parameter 'id' when calling logsUnprocessedRowDestroy");
826
+ }
827
+
828
+ var pathParams = {
829
+ 'id': id
830
+ };
831
+ var queryParams = {};
832
+ var headerParams = {};
833
+ var formParams = {};
834
+ var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
835
+ var contentTypes = [];
836
+ var accepts = [];
837
+ var returnType = null;
838
+ return this.apiClient.callApi('/logs/unprocessed-row/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
839
+ }
840
+ /**
841
+ * Callback function to receive the result of the logsUnprocessedRowList operation.
842
+ * @callback module:api/LogsApi~logsUnprocessedRowListCallback
843
+ * @param {String} error Error message, if any.
844
+ * @param {module:model/PaginatedUnprocessedRowList} data The data returned by the service call.
845
+ * @param {String} response The complete HTTP response.
846
+ */
847
+
848
+ /**
849
+ * **List all the information of unprocessed rows of the uploaded files uploaded by the user's organization.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
850
+ * @param {Object} opts Optional parameters
851
+ * @param {Date} opts.createdAt
852
+ * @param {String} opts.errorMessage
853
+ * @param {String} opts.id
854
+ * @param {Number} opts.limit Number of results to return per page.
855
+ * @param {Number} opts.offset The initial index from which to return the results.
856
+ * @param {Array.<module:model/String>} opts.orderBy Ordering
857
+ * @param {String} opts.owner
858
+ * @param {Number} opts.rowNumber
859
+ * @param {Date} opts.updatedAt
860
+ * @param {String} opts.uploadedFile
861
+ * @param {module:api/LogsApi~logsUnprocessedRowListCallback} callback The callback function, accepting three arguments: error, data, response
862
+ * data is of type: {@link module:model/PaginatedUnprocessedRowList}
863
+ */
864
+
865
+ }, {
866
+ key: "logsUnprocessedRowList",
867
+ value: function logsUnprocessedRowList(opts, callback) {
868
+ opts = opts || {};
869
+ var postBody = null;
870
+ var pathParams = {};
871
+ var queryParams = {
872
+ 'created_at': opts['createdAt'],
873
+ 'error_message': opts['errorMessage'],
874
+ 'id': opts['id'],
875
+ 'limit': opts['limit'],
876
+ 'offset': opts['offset'],
877
+ 'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
878
+ 'owner': opts['owner'],
879
+ 'row_number': opts['rowNumber'],
880
+ 'updated_at': opts['updatedAt'],
881
+ 'uploaded_file': opts['uploadedFile']
882
+ };
883
+ var headerParams = {};
884
+ var formParams = {};
885
+ var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
886
+ var contentTypes = [];
887
+ var accepts = ['application/json'];
888
+ var returnType = _PaginatedUnprocessedRowList["default"];
889
+ return this.apiClient.callApi('/logs/unprocessed-row/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
890
+ }
891
+ /**
892
+ * Callback function to receive the result of the logsUnprocessedRowRetrieve operation.
893
+ * @callback module:api/LogsApi~logsUnprocessedRowRetrieveCallback
894
+ * @param {String} error Error message, if any.
895
+ * @param {module:model/UnprocessedRow} data The data returned by the service call.
896
+ * @param {String} response The complete HTTP response.
897
+ */
898
+
899
+ /**
900
+ * **Get a specific unprocessed row information.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
901
+ * @param {String} id A UUID string identifying this unprocessed row.
902
+ * @param {module:api/LogsApi~logsUnprocessedRowRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
903
+ * data is of type: {@link module:model/UnprocessedRow}
904
+ */
905
+
906
+ }, {
907
+ key: "logsUnprocessedRowRetrieve",
908
+ value: function logsUnprocessedRowRetrieve(id, callback) {
909
+ var postBody = null; // verify the required parameter 'id' is set
910
+
911
+ if (id === undefined || id === null) {
912
+ throw new Error("Missing the required parameter 'id' when calling logsUnprocessedRowRetrieve");
913
+ }
914
+
915
+ var pathParams = {
916
+ 'id': id
917
+ };
918
+ var queryParams = {};
919
+ var headerParams = {};
920
+ var formParams = {};
921
+ var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
922
+ var contentTypes = [];
923
+ var accepts = ['application/json'];
924
+ var returnType = _UnprocessedRow["default"];
925
+ return this.apiClient.callApi('/logs/unprocessed-row/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
926
+ }
927
+ /**
928
+ * Callback function to receive the result of the logsUploadFileDestroy operation.
929
+ * @callback module:api/LogsApi~logsUploadFileDestroyCallback
930
+ * @param {String} error Error message, if any.
931
+ * @param data This operation does not return a value.
932
+ * @param {String} response The complete HTTP response.
933
+ */
934
+
935
+ /**
936
+ * **Delete a specific file.** 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
937
+ * @param {String} id A UUID string identifying this uploaded file.
938
+ * @param {module:api/LogsApi~logsUploadFileDestroyCallback} callback The callback function, accepting three arguments: error, data, response
939
+ */
940
+
941
+ }, {
942
+ key: "logsUploadFileDestroy",
943
+ value: function logsUploadFileDestroy(id, callback) {
944
+ var postBody = null; // verify the required parameter 'id' is set
945
+
946
+ if (id === undefined || id === null) {
947
+ throw new Error("Missing the required parameter 'id' when calling logsUploadFileDestroy");
948
+ }
949
+
950
+ var pathParams = {
951
+ 'id': id
952
+ };
953
+ var queryParams = {};
954
+ var headerParams = {};
955
+ var formParams = {};
956
+ var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
957
+ var contentTypes = [];
958
+ var accepts = [];
959
+ var returnType = null;
960
+ return this.apiClient.callApi('/logs/upload-file/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
961
+ }
962
+ /**
963
+ * Callback function to receive the result of the logsUploadFileList operation.
964
+ * @callback module:api/LogsApi~logsUploadFileListCallback
965
+ * @param {String} error Error message, if any.
966
+ * @param {module:model/PaginatedUploadedFileList} data The data returned by the service call.
967
+ * @param {String} response The complete HTTP response.
968
+ */
969
+
970
+ /**
971
+ * **List all the uploadedfiles owned by the user's organization.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
972
+ * @param {Object} opts Optional parameters
973
+ * @param {module:model/String} opts.contentType Required. Select from available choices.
974
+ * @param {Date} opts.createdAt
975
+ * @param {String} opts.id
976
+ * @param {Number} opts.limit Number of results to return per page.
977
+ * @param {String} opts.name
978
+ * @param {Number} opts.offset The initial index from which to return the results.
979
+ * @param {Array.<module:model/String>} opts.orderBy Ordering
980
+ * @param {String} opts.owner
981
+ * @param {module:model/String} opts.status Status is set to `started` or `finished` if the file has been processed. Default `unstarted`.
982
+ * @param {Date} opts.updatedAt
983
+ * @param {module:api/LogsApi~logsUploadFileListCallback} callback The callback function, accepting three arguments: error, data, response
984
+ * data is of type: {@link module:model/PaginatedUploadedFileList}
985
+ */
986
+
987
+ }, {
988
+ key: "logsUploadFileList",
989
+ value: function logsUploadFileList(opts, callback) {
990
+ opts = opts || {};
991
+ var postBody = null;
992
+ var pathParams = {};
993
+ var queryParams = {
994
+ 'content_type': opts['contentType'],
995
+ 'created_at': opts['createdAt'],
996
+ 'id': opts['id'],
997
+ 'limit': opts['limit'],
998
+ 'name': opts['name'],
999
+ 'offset': opts['offset'],
1000
+ 'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
1001
+ 'owner': opts['owner'],
1002
+ 'status': opts['status'],
1003
+ 'updated_at': opts['updatedAt']
1004
+ };
1005
+ var headerParams = {};
1006
+ var formParams = {};
1007
+ var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
1008
+ var contentTypes = [];
1009
+ var accepts = ['application/json'];
1010
+ var returnType = _PaginatedUploadedFileList["default"];
1011
+ return this.apiClient.callApi('/logs/upload-file/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1012
+ }
1013
+ /**
1014
+ * Callback function to receive the result of the logsUploadFileRetrieve operation.
1015
+ * @callback module:api/LogsApi~logsUploadFileRetrieveCallback
1016
+ * @param {String} error Error message, if any.
1017
+ * @param {module:model/UploadedFile} data The data returned by the service call.
1018
+ * @param {String} response The complete HTTP response.
1019
+ */
1020
+
1021
+ /**
1022
+ * **Get a specific file.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
1023
+ * @param {String} id A UUID string identifying this uploaded file.
1024
+ * @param {module:api/LogsApi~logsUploadFileRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
1025
+ * data is of type: {@link module:model/UploadedFile}
1026
+ */
1027
+
1028
+ }, {
1029
+ key: "logsUploadFileRetrieve",
1030
+ value: function logsUploadFileRetrieve(id, callback) {
1031
+ var postBody = null; // verify the required parameter 'id' is set
1032
+
1033
+ if (id === undefined || id === null) {
1034
+ throw new Error("Missing the required parameter 'id' when calling logsUploadFileRetrieve");
1035
+ }
1036
+
1037
+ var pathParams = {
1038
+ 'id': id
1039
+ };
1040
+ var queryParams = {};
1041
+ var headerParams = {};
1042
+ var formParams = {};
1043
+ var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
1044
+ var contentTypes = [];
1045
+ var accepts = ['application/json'];
1046
+ var returnType = _UploadedFile["default"];
1047
+ return this.apiClient.callApi('/logs/upload-file/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1048
+ }
1049
+ }]);
1050
+
1051
+ return LogsApi;
1052
+ }();
1053
+
1054
+ exports["default"] = LogsApi;