green_link_api 1.15.2 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +22 -31
- package/dist/ApiClient.js +4 -8
- package/dist/api/BlockchainApi.js +8 -8
- package/dist/api/EnergyAssetsApi.js +22 -22
- package/dist/api/EnergyDataApi.js +82 -164
- package/dist/api/HealthCheckApi.js +3 -3
- package/dist/api/LicensedProductionSitesOnEpiasApi.js +3 -3
- package/dist/api/LocationsApi.js +10 -10
- package/dist/api/LogsApi.js +129 -60
- package/dist/api/MaintenanceCheckApi.js +3 -3
- package/dist/api/OrganizationprofilesApi.js +8 -8
- package/dist/api/OrganizationsApi.js +32 -32
- package/dist/api/SchemaApi.js +3 -3
- package/dist/api/SentryDebugApi.js +3 -3
- package/dist/api/UsersApi.js +10 -10
- package/dist/index.js +73 -73
- package/dist/model/Activities.js +79 -26
- package/dist/model/ActivitiesStatusEnum.js +60 -0
- package/dist/model/{BlockchainTransaction.js → BlockchainTransactionTask.js} +31 -33
- package/dist/model/Consumer.js +2 -2
- package/dist/model/ConsumptionDataFileList.js +2 -2
- package/dist/model/ConsumptionDataFromRetailerRequest.js +2 -2
- package/dist/model/ConsumptionDataPointCreate.js +2 -2
- package/dist/model/ConsumptionDataPointListOrDetail.js +6 -6
- package/dist/model/ConsumptionDataPointUpdate.js +2 -2
- package/dist/model/{ImportRequest.js → ConsumptionDataTask.js} +33 -33
- package/dist/model/ConsumptionSite.js +2 -2
- package/dist/model/ConsumptionSiteContract.js +2 -2
- package/dist/model/ConsumptionSiteContractImport.js +2 -2
- package/dist/model/ConsumptionSiteCreate.js +2 -2
- package/dist/model/ConsumptionSiteFileUpload.js +2 -2
- package/dist/model/ConsumptionSiteListOrDetail.js +2 -2
- package/dist/model/ContentTypeEnum.js +1 -1
- package/dist/model/EacTypeEnum.js +1 -1
- package/dist/model/EmissionFactor.js +2 -2
- package/dist/model/EnergySourceEnum.js +1 -1
- package/dist/model/EnergySourcePreference.js +2 -2
- package/dist/model/{Status619Enum.js → EventEnum.js} +21 -16
- package/dist/model/GetFromEpias.js +2 -2
- package/dist/model/GridOperator.js +2 -2
- package/dist/model/{ImportedEnergyDataPoint.js → ImportedConsumptionDataPoint.js} +26 -26
- package/dist/model/Issuer.js +2 -2
- package/dist/model/Location.js +2 -2
- package/dist/model/MatchTypeEnum.js +1 -1
- package/dist/model/{MatchedEnergyDataPoint.js → MatchedDataPoint.js} +33 -33
- package/dist/model/{MatchRequest.js → MatchedDataTask.js} +42 -42
- package/dist/model/MatchingConsumerRequest.js +2 -2
- package/dist/model/MatchingSiteRequest.js +2 -2
- package/dist/model/NullEnum.js +55 -0
- package/dist/model/OrganizationTypeEnum.js +1 -1
- package/dist/model/PaginatedActivitiesList.js +2 -2
- package/dist/model/PaginatedConsumerList.js +2 -2
- package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +2 -2
- package/dist/model/{PaginatedUploadedFileList.js → PaginatedConsumptionDataTaskList.js} +24 -24
- package/dist/model/PaginatedConsumptionSiteContractList.js +2 -2
- package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +2 -2
- package/dist/model/PaginatedEmissionFactorList.js +2 -2
- package/dist/model/PaginatedEnergySourcePreferenceList.js +2 -2
- package/dist/model/PaginatedGridOperatorList.js +2 -2
- package/dist/model/PaginatedImportedConsumptionDataPointList.js +101 -0
- package/dist/model/PaginatedIssuerList.js +2 -2
- package/dist/model/PaginatedLocationList.js +2 -2
- package/dist/model/{PaginatedImportRequestRawList.js → PaginatedMatchedDataPointList.js} +24 -24
- package/dist/model/{PaginatedImportRequestList.js → PaginatedMatchedDataTaskList.js} +24 -24
- package/dist/model/PaginatedProducerList.js +2 -2
- package/dist/model/{PaginatedImportedEnergyDataPointList.js → PaginatedProductionDataFromEpiasTaskList.js} +24 -24
- package/dist/model/PaginatedProductionDataPointListOrDetailList.js +2 -2
- package/dist/model/PaginatedProductionSiteListOrDetailList.js +2 -2
- package/dist/model/PaginatedRetailerList.js +2 -2
- package/dist/model/PaginatedSmartContractList.js +2 -2
- package/dist/model/PaginatedUnprocessedRowList.js +2 -2
- package/dist/model/PaginatedUploadedCertificateListorDetailList.js +2 -2
- package/dist/model/{PaginatedMatchRequestList.js → PaginatedUploadedFileTaskList.js} +24 -24
- package/dist/model/PaginatedUserList.js +2 -2
- package/dist/model/PatchedConsumer.js +2 -2
- package/dist/model/PatchedConsumptionDataPointUpdate.js +2 -2
- package/dist/model/PatchedConsumptionSite.js +2 -2
- package/dist/model/PatchedEmissionFactor.js +2 -2
- package/dist/model/PatchedEnergySourcePreference.js +2 -2
- package/dist/model/PatchedGridOperator.js +2 -2
- package/dist/model/PatchedIssuer.js +2 -2
- package/dist/model/PatchedLocation.js +2 -2
- package/dist/model/PatchedProducer.js +2 -2
- package/dist/model/PatchedProductionDataPointUpdate.js +2 -2
- package/dist/model/PatchedProductionSiteUpdate.js +2 -2
- package/dist/model/PatchedRetailer.js +2 -2
- package/dist/model/PatchedSmartContract.js +2 -2
- package/dist/model/PatchedUser.js +2 -2
- package/dist/model/PatchedUserDetail.js +2 -2
- package/dist/model/PriorityEnum.js +1 -1
- package/dist/model/Producer.js +2 -2
- package/dist/model/ProductionDataFileList.js +2 -2
- package/dist/model/{ProductionDataFromEpiasRequest.js → ProductionDataFromEpiasTask.js} +30 -30
- package/dist/model/ProductionDataPointCreate.js +2 -2
- package/dist/model/ProductionDataPointListOrDetail.js +6 -6
- package/dist/model/ProductionDataPointUpdate.js +2 -2
- package/dist/model/ProductionSite.js +2 -2
- package/dist/model/ProductionSiteFileUpload.js +2 -2
- package/dist/model/ProductionSiteListOrDetail.js +2 -2
- package/dist/model/ProductionSiteUpdate.js +2 -2
- package/dist/model/Register.js +2 -2
- package/dist/model/Retailer.js +2 -2
- package/dist/model/SmartContract.js +2 -2
- package/dist/model/{ImportRequestStatusEnum.js → Status90bEnum.js} +15 -10
- package/dist/model/TypeEnum.js +1 -1
- package/dist/model/UnprocessedRow.js +2 -2
- package/dist/model/UploadedCertificate.js +2 -2
- package/dist/model/UploadedCertificateListorDetail.js +2 -2
- package/dist/model/{UploadedFile.js → UploadedFileTask.js} +29 -29
- package/dist/model/User.js +2 -2
- package/dist/model/UserDetail.js +2 -2
- package/package.json +1 -1
- package/dist/model/ImportRequestRaw.js +0 -120
- package/dist/model/PaginatedMatchedEnergyDataPointList.js +0 -101
- package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +0 -101
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
15
15
|
* GreenLink API
|
16
16
|
* ⚡GreenLink API documentation with interactive tools for testing API endpoints.⚡
|
17
17
|
*
|
18
|
-
* The version of the OpenAPI document: 1.
|
18
|
+
* The version of the OpenAPI document: 1.16.0
|
19
19
|
*
|
20
20
|
*
|
21
21
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
@@ -26,7 +26,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
26
26
|
/**
|
27
27
|
* HealthCheck service.
|
28
28
|
* @module api/HealthCheckApi
|
29
|
-
* @version 1.
|
29
|
+
* @version 1.16.0
|
30
30
|
*/
|
31
31
|
var HealthCheckApi = /*#__PURE__*/function () {
|
32
32
|
/**
|
@@ -60,7 +60,7 @@ var HealthCheckApi = /*#__PURE__*/function () {
|
|
60
60
|
var queryParams = {};
|
61
61
|
var headerParams = {};
|
62
62
|
var formParams = {};
|
63
|
-
var authNames = [
|
63
|
+
var authNames = [];
|
64
64
|
var contentTypes = [];
|
65
65
|
var accepts = [];
|
66
66
|
var returnType = null;
|
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
15
15
|
* GreenLink API
|
16
16
|
* ⚡GreenLink API documentation with interactive tools for testing API endpoints.⚡
|
17
17
|
*
|
18
|
-
* The version of the OpenAPI document: 1.
|
18
|
+
* The version of the OpenAPI document: 1.16.0
|
19
19
|
*
|
20
20
|
*
|
21
21
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
@@ -26,7 +26,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
26
26
|
/**
|
27
27
|
* LicensedProductionSitesOnEpias service.
|
28
28
|
* @module api/LicensedProductionSitesOnEpiasApi
|
29
|
-
* @version 1.
|
29
|
+
* @version 1.16.0
|
30
30
|
*/
|
31
31
|
var LicensedProductionSitesOnEpiasApi = /*#__PURE__*/function () {
|
32
32
|
/**
|
@@ -61,7 +61,7 @@ var LicensedProductionSitesOnEpiasApi = /*#__PURE__*/function () {
|
|
61
61
|
var queryParams = {};
|
62
62
|
var headerParams = {};
|
63
63
|
var formParams = {};
|
64
|
-
var authNames = [
|
64
|
+
var authNames = [];
|
65
65
|
var contentTypes = [];
|
66
66
|
var accepts = [];
|
67
67
|
var returnType = null;
|
package/dist/api/LocationsApi.js
CHANGED
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
18
18
|
* GreenLink API
|
19
19
|
* ⚡GreenLink API documentation with interactive tools for testing API endpoints.⚡
|
20
20
|
*
|
21
|
-
* The version of the OpenAPI document: 1.
|
21
|
+
* The version of the OpenAPI document: 1.16.0
|
22
22
|
*
|
23
23
|
*
|
24
24
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
@@ -29,7 +29,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
29
29
|
/**
|
30
30
|
* Locations service.
|
31
31
|
* @module api/LocationsApi
|
32
|
-
* @version 1.
|
32
|
+
* @version 1.16.0
|
33
33
|
*/
|
34
34
|
var LocationsApi = /*#__PURE__*/function () {
|
35
35
|
/**
|
@@ -65,7 +65,7 @@ var LocationsApi = /*#__PURE__*/function () {
|
|
65
65
|
var queryParams = {};
|
66
66
|
var headerParams = {};
|
67
67
|
var formParams = {};
|
68
|
-
var authNames = [
|
68
|
+
var authNames = [];
|
69
69
|
var contentTypes = [];
|
70
70
|
var accepts = ['application/json'];
|
71
71
|
var returnType = _Location["default"];
|
@@ -98,7 +98,7 @@ var LocationsApi = /*#__PURE__*/function () {
|
|
98
98
|
var queryParams = {};
|
99
99
|
var headerParams = {};
|
100
100
|
var formParams = {};
|
101
|
-
var authNames = [
|
101
|
+
var authNames = [];
|
102
102
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
103
103
|
var accepts = ['application/json'];
|
104
104
|
var returnType = _Location["default"];
|
@@ -132,7 +132,7 @@ var LocationsApi = /*#__PURE__*/function () {
|
|
132
132
|
var queryParams = {};
|
133
133
|
var headerParams = {};
|
134
134
|
var formParams = {};
|
135
|
-
var authNames = [
|
135
|
+
var authNames = [];
|
136
136
|
var contentTypes = [];
|
137
137
|
var accepts = [];
|
138
138
|
var returnType = null;
|
@@ -201,7 +201,7 @@ var LocationsApi = /*#__PURE__*/function () {
|
|
201
201
|
};
|
202
202
|
var headerParams = {};
|
203
203
|
var formParams = {};
|
204
|
-
var authNames = [
|
204
|
+
var authNames = [];
|
205
205
|
var contentTypes = [];
|
206
206
|
var accepts = ['application/json'];
|
207
207
|
var returnType = _PaginatedLocationList["default"];
|
@@ -239,7 +239,7 @@ var LocationsApi = /*#__PURE__*/function () {
|
|
239
239
|
var queryParams = {};
|
240
240
|
var headerParams = {};
|
241
241
|
var formParams = {};
|
242
|
-
var authNames = [
|
242
|
+
var authNames = [];
|
243
243
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
244
244
|
var accepts = ['application/json'];
|
245
245
|
var returnType = _Location["default"];
|
@@ -267,7 +267,7 @@ var LocationsApi = /*#__PURE__*/function () {
|
|
267
267
|
var queryParams = {};
|
268
268
|
var headerParams = {};
|
269
269
|
var formParams = {};
|
270
|
-
var authNames = [
|
270
|
+
var authNames = [];
|
271
271
|
var contentTypes = [];
|
272
272
|
var accepts = ['application/json'];
|
273
273
|
var returnType = _Location["default"];
|
@@ -302,7 +302,7 @@ var LocationsApi = /*#__PURE__*/function () {
|
|
302
302
|
var queryParams = {};
|
303
303
|
var headerParams = {};
|
304
304
|
var formParams = {};
|
305
|
-
var authNames = [
|
305
|
+
var authNames = [];
|
306
306
|
var contentTypes = [];
|
307
307
|
var accepts = ['application/json'];
|
308
308
|
var returnType = _Location["default"];
|
@@ -342,7 +342,7 @@ var LocationsApi = /*#__PURE__*/function () {
|
|
342
342
|
var queryParams = {};
|
343
343
|
var headerParams = {};
|
344
344
|
var formParams = {};
|
345
|
-
var authNames = [
|
345
|
+
var authNames = [];
|
346
346
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
347
347
|
var accepts = ['application/json'];
|
348
348
|
var returnType = _Location["default"];
|
package/dist/api/LogsApi.js
CHANGED
@@ -7,15 +7,15 @@ exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
8
8
|
var _Activities = _interopRequireDefault(require("../model/Activities"));
|
9
9
|
var _PaginatedActivitiesList = _interopRequireDefault(require("../model/PaginatedActivitiesList"));
|
10
|
-
var
|
10
|
+
var _PaginatedProductionDataFromEpiasTaskList = _interopRequireDefault(require("../model/PaginatedProductionDataFromEpiasTaskList"));
|
11
11
|
var _PaginatedUnprocessedRowList = _interopRequireDefault(require("../model/PaginatedUnprocessedRowList"));
|
12
12
|
var _PaginatedUploadedCertificateListorDetailList = _interopRequireDefault(require("../model/PaginatedUploadedCertificateListorDetailList"));
|
13
|
-
var
|
14
|
-
var
|
13
|
+
var _PaginatedUploadedFileTaskList = _interopRequireDefault(require("../model/PaginatedUploadedFileTaskList"));
|
14
|
+
var _ProductionDataFromEpiasTask = _interopRequireDefault(require("../model/ProductionDataFromEpiasTask"));
|
15
15
|
var _UnprocessedRow = _interopRequireDefault(require("../model/UnprocessedRow"));
|
16
16
|
var _UploadedCertificate = _interopRequireDefault(require("../model/UploadedCertificate"));
|
17
17
|
var _UploadedCertificateListorDetail = _interopRequireDefault(require("../model/UploadedCertificateListorDetail"));
|
18
|
-
var
|
18
|
+
var _UploadedFileTask = _interopRequireDefault(require("../model/UploadedFileTask"));
|
19
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
20
20
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
21
21
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
@@ -26,7 +26,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
26
26
|
* GreenLink API
|
27
27
|
* ⚡GreenLink API documentation with interactive tools for testing API endpoints.⚡
|
28
28
|
*
|
29
|
-
* The version of the OpenAPI document: 1.
|
29
|
+
* The version of the OpenAPI document: 1.16.0
|
30
30
|
*
|
31
31
|
*
|
32
32
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
@@ -37,7 +37,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
37
37
|
/**
|
38
38
|
* Logs service.
|
39
39
|
* @module api/LogsApi
|
40
|
-
* @version 1.
|
40
|
+
* @version 1.16.0
|
41
41
|
*/
|
42
42
|
var LogsApi = /*#__PURE__*/function () {
|
43
43
|
/**
|
@@ -53,52 +53,121 @@ var LogsApi = /*#__PURE__*/function () {
|
|
53
53
|
}
|
54
54
|
|
55
55
|
/**
|
56
|
-
* Callback function to receive the result of the
|
57
|
-
* @callback module:api/LogsApi~
|
56
|
+
* Callback function to receive the result of the logsActivitiesAllRelatedLogsRetrieve operation.
|
57
|
+
* @callback module:api/LogsApi~logsActivitiesAllRelatedLogsRetrieveCallback
|
58
58
|
* @param {String} error Error message, if any.
|
59
|
-
* @param {module:model/
|
59
|
+
* @param {module:model/Activities} data The data returned by the service call.
|
60
60
|
* @param {String} response The complete HTTP response.
|
61
61
|
*/
|
62
62
|
|
63
63
|
/**
|
64
64
|
* 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``.
|
65
|
-
* @param {
|
66
|
-
*
|
67
|
-
* @param {String} opts.changedFields
|
68
|
-
* @param {Date} opts.datetime Datetime filter param.
|
69
|
-
* @param {Number} opts.limit Number of results to return per page.
|
70
|
-
* @param {String} opts.method Which method is used.
|
71
|
-
* @param {Number} opts.offset The initial index from which to return the results.
|
72
|
-
* @param {Array.<module:model/String>} opts.orderBy Ordering * `event_type` - Event type * `-event_type` - Event type (descending) * `object_id` - Object id * `-object_id` - Object id (descending) * `datetime` - Datetime * `-datetime` - Datetime (descending)
|
73
|
-
* @param {String} opts.user Activity user.
|
74
|
-
* @param {module:api/LogsApi~logsActivitiesListCallback} callback The callback function, accepting three arguments: error, data, response
|
75
|
-
* data is of type: {@link module:model/PaginatedActivitiesList}
|
65
|
+
* @param {module:api/LogsApi~logsActivitiesAllRelatedLogsRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
|
66
|
+
* data is of type: {@link module:model/Activities}
|
76
67
|
*/
|
77
68
|
_createClass(LogsApi, [{
|
69
|
+
key: "logsActivitiesAllRelatedLogsRetrieve",
|
70
|
+
value: function logsActivitiesAllRelatedLogsRetrieve(callback) {
|
71
|
+
var postBody = null;
|
72
|
+
var pathParams = {};
|
73
|
+
var queryParams = {};
|
74
|
+
var headerParams = {};
|
75
|
+
var formParams = {};
|
76
|
+
var authNames = [];
|
77
|
+
var contentTypes = [];
|
78
|
+
var accepts = ['application/json'];
|
79
|
+
var returnType = _Activities["default"];
|
80
|
+
return this.apiClient.callApi('/logs/activities/all_related_logs/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
81
|
+
}
|
82
|
+
|
83
|
+
/**
|
84
|
+
* Callback function to receive the result of the logsActivitiesList operation.
|
85
|
+
* @callback module:api/LogsApi~logsActivitiesListCallback
|
86
|
+
* @param {String} error Error message, if any.
|
87
|
+
* @param {module:model/PaginatedActivitiesList} data The data returned by the service call.
|
88
|
+
* @param {String} response The complete HTTP response.
|
89
|
+
*/
|
90
|
+
|
91
|
+
/**
|
92
|
+
* 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``.
|
93
|
+
* @param {Object} opts Optional parameters
|
94
|
+
* @param {Date} opts.dateTimeAfter
|
95
|
+
* @param {Date} opts.dateTimeBefore
|
96
|
+
* @param {module:model/String} opts.event * `Added` - Added * `Updated` - Updated * `Deleted` - Deleted
|
97
|
+
* @param {Number} opts.limit Number of results to return per page.
|
98
|
+
* @param {String} opts.modelName
|
99
|
+
* @param {String} opts.modelObjectId Model Object ID
|
100
|
+
* @param {Number} opts.offset The initial index from which to return the results.
|
101
|
+
* @param {String} opts.organization
|
102
|
+
* @param {String} opts.relatedLogId Related Log ID
|
103
|
+
* @param {module:model/String} opts.status * `success` - Success * `failure` - Failure
|
104
|
+
* @param {String} opts.user
|
105
|
+
* @param {module:api/LogsApi~logsActivitiesListCallback} callback The callback function, accepting three arguments: error, data, response
|
106
|
+
* data is of type: {@link module:model/PaginatedActivitiesList}
|
107
|
+
*/
|
108
|
+
}, {
|
78
109
|
key: "logsActivitiesList",
|
79
110
|
value: function logsActivitiesList(opts, callback) {
|
80
111
|
opts = opts || {};
|
81
112
|
var postBody = null;
|
82
113
|
var pathParams = {};
|
83
114
|
var queryParams = {
|
84
|
-
'
|
85
|
-
'
|
86
|
-
'
|
115
|
+
'date_time_after': opts['dateTimeAfter'],
|
116
|
+
'date_time_before': opts['dateTimeBefore'],
|
117
|
+
'event': opts['event'],
|
87
118
|
'limit': opts['limit'],
|
88
|
-
'
|
119
|
+
'model_name': opts['modelName'],
|
120
|
+
'model_object_id': opts['modelObjectId'],
|
89
121
|
'offset': opts['offset'],
|
90
|
-
'
|
122
|
+
'organization': opts['organization'],
|
123
|
+
'related_log_id': opts['relatedLogId'],
|
124
|
+
'status': opts['status'],
|
91
125
|
'user': opts['user']
|
92
126
|
};
|
93
127
|
var headerParams = {};
|
94
128
|
var formParams = {};
|
95
|
-
var authNames = [
|
129
|
+
var authNames = [];
|
96
130
|
var contentTypes = [];
|
97
131
|
var accepts = ['application/json'];
|
98
132
|
var returnType = _PaginatedActivitiesList["default"];
|
99
133
|
return this.apiClient.callApi('/logs/activities/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
100
134
|
}
|
101
135
|
|
136
|
+
/**
|
137
|
+
* Callback function to receive the result of the logsActivitiesRelatedLogRetrieve operation.
|
138
|
+
* @callback module:api/LogsApi~logsActivitiesRelatedLogRetrieveCallback
|
139
|
+
* @param {String} error Error message, if any.
|
140
|
+
* @param {module:model/Activities} data The data returned by the service call.
|
141
|
+
* @param {String} response The complete HTTP response.
|
142
|
+
*/
|
143
|
+
|
144
|
+
/**
|
145
|
+
* 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``.
|
146
|
+
* @param {String} relatedLogId
|
147
|
+
* @param {module:api/LogsApi~logsActivitiesRelatedLogRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
|
148
|
+
* data is of type: {@link module:model/Activities}
|
149
|
+
*/
|
150
|
+
}, {
|
151
|
+
key: "logsActivitiesRelatedLogRetrieve",
|
152
|
+
value: function logsActivitiesRelatedLogRetrieve(relatedLogId, callback) {
|
153
|
+
var postBody = null;
|
154
|
+
// verify the required parameter 'relatedLogId' is set
|
155
|
+
if (relatedLogId === undefined || relatedLogId === null) {
|
156
|
+
throw new Error("Missing the required parameter 'relatedLogId' when calling logsActivitiesRelatedLogRetrieve");
|
157
|
+
}
|
158
|
+
var pathParams = {
|
159
|
+
'related_log_id': relatedLogId
|
160
|
+
};
|
161
|
+
var queryParams = {};
|
162
|
+
var headerParams = {};
|
163
|
+
var formParams = {};
|
164
|
+
var authNames = [];
|
165
|
+
var contentTypes = [];
|
166
|
+
var accepts = ['application/json'];
|
167
|
+
var returnType = _Activities["default"];
|
168
|
+
return this.apiClient.callApi('/logs/activities/related_log/{related_log_id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
169
|
+
}
|
170
|
+
|
102
171
|
/**
|
103
172
|
* Callback function to receive the result of the logsActivitiesRetrieve operation.
|
104
173
|
* @callback module:api/LogsApi~logsActivitiesRetrieveCallback
|
@@ -109,7 +178,7 @@ var LogsApi = /*#__PURE__*/function () {
|
|
109
178
|
|
110
179
|
/**
|
111
180
|
* 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``.
|
112
|
-
* @param {
|
181
|
+
* @param {String} id A UUID string identifying this User Activity Log.
|
113
182
|
* @param {module:api/LogsApi~logsActivitiesRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
|
114
183
|
* data is of type: {@link module:model/Activities}
|
115
184
|
*/
|
@@ -127,7 +196,7 @@ var LogsApi = /*#__PURE__*/function () {
|
|
127
196
|
var queryParams = {};
|
128
197
|
var headerParams = {};
|
129
198
|
var formParams = {};
|
130
|
-
var authNames = [
|
199
|
+
var authNames = [];
|
131
200
|
var contentTypes = [];
|
132
201
|
var accepts = ['application/json'];
|
133
202
|
var returnType = _Activities["default"];
|
@@ -160,7 +229,7 @@ var LogsApi = /*#__PURE__*/function () {
|
|
160
229
|
var queryParams = {};
|
161
230
|
var headerParams = {};
|
162
231
|
var formParams = {};
|
163
|
-
var authNames = [
|
232
|
+
var authNames = [];
|
164
233
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
165
234
|
var accepts = ['application/json'];
|
166
235
|
var returnType = _UploadedCertificate["default"];
|
@@ -194,7 +263,7 @@ var LogsApi = /*#__PURE__*/function () {
|
|
194
263
|
var queryParams = {};
|
195
264
|
var headerParams = {};
|
196
265
|
var formParams = {};
|
197
|
-
var authNames = [
|
266
|
+
var authNames = [];
|
198
267
|
var contentTypes = [];
|
199
268
|
var accepts = [];
|
200
269
|
var returnType = null;
|
@@ -222,7 +291,7 @@ var LogsApi = /*#__PURE__*/function () {
|
|
222
291
|
* @param {Array.<module:model/String>} opts.orderBy Ordering * `period_start` - Period start * `-period_start` - Period start (descending) * `created_at` - Created at * `-created_at` - Created at (descending) * `eac_type` - Eac type * `-eac_type` - Eac type (descending) * `producer` - Producer * `-producer` - Producer (descending) * `owner` - Owner * `-owner` - Owner (descending)
|
223
292
|
* @param {String} opts.owner
|
224
293
|
* @param {String} opts.producer
|
225
|
-
* @param {module:model/String} opts.status Status is set to `started` or `finished` if the file has been processed. Default `unstarted`. * `
|
294
|
+
* @param {module:model/String} opts.status Status is set to `started` or `finished` if the file has been processed. Default `unstarted`. * `pending` - pending * `started` - started * `failed` - failed * `finished` - finished * `unstarted` - unstarted
|
226
295
|
* @param {module:api/LogsApi~logsCertificatesListCallback} callback The callback function, accepting three arguments: error, data, response
|
227
296
|
* data is of type: {@link module:model/PaginatedUploadedCertificateListorDetailList}
|
228
297
|
*/
|
@@ -247,7 +316,7 @@ var LogsApi = /*#__PURE__*/function () {
|
|
247
316
|
};
|
248
317
|
var headerParams = {};
|
249
318
|
var formParams = {};
|
250
|
-
var authNames = [
|
319
|
+
var authNames = [];
|
251
320
|
var contentTypes = [];
|
252
321
|
var accepts = ['application/json'];
|
253
322
|
var returnType = _PaginatedUploadedCertificateListorDetailList["default"];
|
@@ -282,7 +351,7 @@ var LogsApi = /*#__PURE__*/function () {
|
|
282
351
|
var queryParams = {};
|
283
352
|
var headerParams = {};
|
284
353
|
var formParams = {};
|
285
|
-
var authNames = [
|
354
|
+
var authNames = [];
|
286
355
|
var contentTypes = [];
|
287
356
|
var accepts = ['application/json'];
|
288
357
|
var returnType = _UploadedCertificateListorDetail["default"];
|
@@ -299,7 +368,7 @@ var LogsApi = /*#__PURE__*/function () {
|
|
299
368
|
|
300
369
|
/**
|
301
370
|
* This class manages the EPIAS requests related to the user's organization. The following operations are supported: - List all the EPIAS requests: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. - Get specific EPIAS request details: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. **Please note:** When users request for the list of EPIAS requests or for specific EPIAS request details, an event is captured using PostHog with the respective details and user's organization name.
|
302
|
-
* @param {String} id A UUID string identifying this production data from epias
|
371
|
+
* @param {String} id A UUID string identifying this production data from epias task.
|
303
372
|
* @param {module:api/LogsApi~logsProductionEpiasDestroyCallback} callback The callback function, accepting three arguments: error, data, response
|
304
373
|
*/
|
305
374
|
}, {
|
@@ -316,7 +385,7 @@ var LogsApi = /*#__PURE__*/function () {
|
|
316
385
|
var queryParams = {};
|
317
386
|
var headerParams = {};
|
318
387
|
var formParams = {};
|
319
|
-
var authNames = [
|
388
|
+
var authNames = [];
|
320
389
|
var contentTypes = [];
|
321
390
|
var accepts = [];
|
322
391
|
var returnType = null;
|
@@ -327,7 +396,7 @@ var LogsApi = /*#__PURE__*/function () {
|
|
327
396
|
* Callback function to receive the result of the logsProductionEpiasList operation.
|
328
397
|
* @callback module:api/LogsApi~logsProductionEpiasListCallback
|
329
398
|
* @param {String} error Error message, if any.
|
330
|
-
* @param {module:model/
|
399
|
+
* @param {module:model/PaginatedProductionDataFromEpiasTaskList} data The data returned by the service call.
|
331
400
|
* @param {String} response The complete HTTP response.
|
332
401
|
*/
|
333
402
|
|
@@ -346,10 +415,10 @@ var LogsApi = /*#__PURE__*/function () {
|
|
346
415
|
* @param {Date} opts.startAfter Filter start time after a given ISO 8601 formatted date (e.g: 2020-01-01T03:00:00+03:00)
|
347
416
|
* @param {Date} opts.startBefore Filter start time before a given ISO 8601 formatted date (e.g: 2020-01-02T03:00:00+03:00)
|
348
417
|
* @param {Date} opts.startTime
|
349
|
-
* @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`. * `
|
418
|
+
* @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`. * `pending` - pending * `started` - started * `failed` - failed * `finished` - finished * `unstarted` - unstarted
|
350
419
|
* @param {Date} opts.updatedAt
|
351
420
|
* @param {module:api/LogsApi~logsProductionEpiasListCallback} callback The callback function, accepting three arguments: error, data, response
|
352
|
-
* data is of type: {@link module:model/
|
421
|
+
* data is of type: {@link module:model/PaginatedProductionDataFromEpiasTaskList}
|
353
422
|
*/
|
354
423
|
}, {
|
355
424
|
key: "logsProductionEpiasList",
|
@@ -375,10 +444,10 @@ var LogsApi = /*#__PURE__*/function () {
|
|
375
444
|
};
|
376
445
|
var headerParams = {};
|
377
446
|
var formParams = {};
|
378
|
-
var authNames = [
|
447
|
+
var authNames = [];
|
379
448
|
var contentTypes = [];
|
380
449
|
var accepts = ['application/json'];
|
381
|
-
var returnType =
|
450
|
+
var returnType = _PaginatedProductionDataFromEpiasTaskList["default"];
|
382
451
|
return this.apiClient.callApi('/logs/production-epias/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
383
452
|
}
|
384
453
|
|
@@ -386,15 +455,15 @@ var LogsApi = /*#__PURE__*/function () {
|
|
386
455
|
* Callback function to receive the result of the logsProductionEpiasRetrieve operation.
|
387
456
|
* @callback module:api/LogsApi~logsProductionEpiasRetrieveCallback
|
388
457
|
* @param {String} error Error message, if any.
|
389
|
-
* @param {module:model/
|
458
|
+
* @param {module:model/ProductionDataFromEpiasTask} data The data returned by the service call.
|
390
459
|
* @param {String} response The complete HTTP response.
|
391
460
|
*/
|
392
461
|
|
393
462
|
/**
|
394
463
|
* This class manages the EPIAS requests related to the user's organization. The following operations are supported: - List all the EPIAS requests: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. - Get specific EPIAS request details: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. **Please note:** When users request for the list of EPIAS requests or for specific EPIAS request details, an event is captured using PostHog with the respective details and user's organization name.
|
395
|
-
* @param {String} id A UUID string identifying this production data from epias
|
464
|
+
* @param {String} id A UUID string identifying this production data from epias task.
|
396
465
|
* @param {module:api/LogsApi~logsProductionEpiasRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
|
397
|
-
* data is of type: {@link module:model/
|
466
|
+
* data is of type: {@link module:model/ProductionDataFromEpiasTask}
|
398
467
|
*/
|
399
468
|
}, {
|
400
469
|
key: "logsProductionEpiasRetrieve",
|
@@ -410,10 +479,10 @@ var LogsApi = /*#__PURE__*/function () {
|
|
410
479
|
var queryParams = {};
|
411
480
|
var headerParams = {};
|
412
481
|
var formParams = {};
|
413
|
-
var authNames = [
|
482
|
+
var authNames = [];
|
414
483
|
var contentTypes = [];
|
415
484
|
var accepts = ['application/json'];
|
416
|
-
var returnType =
|
485
|
+
var returnType = _ProductionDataFromEpiasTask["default"];
|
417
486
|
return this.apiClient.callApi('/logs/production-epias/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
418
487
|
}
|
419
488
|
|
@@ -444,7 +513,7 @@ var LogsApi = /*#__PURE__*/function () {
|
|
444
513
|
var queryParams = {};
|
445
514
|
var headerParams = {};
|
446
515
|
var formParams = {};
|
447
|
-
var authNames = [
|
516
|
+
var authNames = [];
|
448
517
|
var contentTypes = [];
|
449
518
|
var accepts = [];
|
450
519
|
var returnType = null;
|
@@ -495,7 +564,7 @@ var LogsApi = /*#__PURE__*/function () {
|
|
495
564
|
};
|
496
565
|
var headerParams = {};
|
497
566
|
var formParams = {};
|
498
|
-
var authNames = [
|
567
|
+
var authNames = [];
|
499
568
|
var contentTypes = [];
|
500
569
|
var accepts = ['application/json'];
|
501
570
|
var returnType = _PaginatedUnprocessedRowList["default"];
|
@@ -530,7 +599,7 @@ var LogsApi = /*#__PURE__*/function () {
|
|
530
599
|
var queryParams = {};
|
531
600
|
var headerParams = {};
|
532
601
|
var formParams = {};
|
533
|
-
var authNames = [
|
602
|
+
var authNames = [];
|
534
603
|
var contentTypes = [];
|
535
604
|
var accepts = ['application/json'];
|
536
605
|
var returnType = _UnprocessedRow["default"];
|
@@ -547,7 +616,7 @@ var LogsApi = /*#__PURE__*/function () {
|
|
547
616
|
|
548
617
|
/**
|
549
618
|
* This class manages the uploaded files owned by the user's organization. The following operations are supported: - List all the uploaded files: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. - Get a specific file: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. - Delete a specific file: Users must be authenticated and have an active (is_active=True) account. In addition, the object should be owned by the user's organization. The roles required for this operation are Admin, and the user should be employed by an active allowed organization (Consumer or Retailer). **Please note:** The `destroy` method throws a `_concurrencymetafield` error.
|
550
|
-
* @param {String} id A UUID string identifying this uploaded file.
|
619
|
+
* @param {String} id A UUID string identifying this uploaded file task.
|
551
620
|
* @param {module:api/LogsApi~logsUploadFileDestroyCallback} callback The callback function, accepting three arguments: error, data, response
|
552
621
|
*/
|
553
622
|
}, {
|
@@ -564,7 +633,7 @@ var LogsApi = /*#__PURE__*/function () {
|
|
564
633
|
var queryParams = {};
|
565
634
|
var headerParams = {};
|
566
635
|
var formParams = {};
|
567
|
-
var authNames = [
|
636
|
+
var authNames = [];
|
568
637
|
var contentTypes = [];
|
569
638
|
var accepts = [];
|
570
639
|
var returnType = null;
|
@@ -575,7 +644,7 @@ var LogsApi = /*#__PURE__*/function () {
|
|
575
644
|
* Callback function to receive the result of the logsUploadFileList operation.
|
576
645
|
* @callback module:api/LogsApi~logsUploadFileListCallback
|
577
646
|
* @param {String} error Error message, if any.
|
578
|
-
* @param {module:model/
|
647
|
+
* @param {module:model/PaginatedUploadedFileTaskList} data The data returned by the service call.
|
579
648
|
* @param {String} response The complete HTTP response.
|
580
649
|
*/
|
581
650
|
|
@@ -590,10 +659,10 @@ var LogsApi = /*#__PURE__*/function () {
|
|
590
659
|
* @param {Number} opts.offset The initial index from which to return the results.
|
591
660
|
* @param {Array.<module:model/String>} opts.orderBy Ordering * `status` - Status * `-status` - Status (descending) * `created_at` - Created at * `-created_at` - Created at (descending) * `updated_at` - Updated at * `-updated_at` - Updated at (descending) * `content_type` - Content type * `-content_type` - Content type (descending) * `owner` - Owner * `-owner` - Owner (descending)
|
592
661
|
* @param {String} opts.owner
|
593
|
-
* @param {module:model/String} opts.status Status is set to `started` or `finished` if the file has been processed. Default `unstarted`. * `
|
662
|
+
* @param {module:model/String} opts.status Status is set to `started` or `finished` if the file has been processed. Default `unstarted`. * `pending` - pending * `started` - started * `failed` - failed * `finished` - finished * `unstarted` - unstarted
|
594
663
|
* @param {Date} opts.updatedAt
|
595
664
|
* @param {module:api/LogsApi~logsUploadFileListCallback} callback The callback function, accepting three arguments: error, data, response
|
596
|
-
* data is of type: {@link module:model/
|
665
|
+
* data is of type: {@link module:model/PaginatedUploadedFileTaskList}
|
597
666
|
*/
|
598
667
|
}, {
|
599
668
|
key: "logsUploadFileList",
|
@@ -615,10 +684,10 @@ var LogsApi = /*#__PURE__*/function () {
|
|
615
684
|
};
|
616
685
|
var headerParams = {};
|
617
686
|
var formParams = {};
|
618
|
-
var authNames = [
|
687
|
+
var authNames = [];
|
619
688
|
var contentTypes = [];
|
620
689
|
var accepts = ['application/json'];
|
621
|
-
var returnType =
|
690
|
+
var returnType = _PaginatedUploadedFileTaskList["default"];
|
622
691
|
return this.apiClient.callApi('/logs/upload-file/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
623
692
|
}
|
624
693
|
|
@@ -626,15 +695,15 @@ var LogsApi = /*#__PURE__*/function () {
|
|
626
695
|
* Callback function to receive the result of the logsUploadFileRetrieve operation.
|
627
696
|
* @callback module:api/LogsApi~logsUploadFileRetrieveCallback
|
628
697
|
* @param {String} error Error message, if any.
|
629
|
-
* @param {module:model/
|
698
|
+
* @param {module:model/UploadedFileTask} data The data returned by the service call.
|
630
699
|
* @param {String} response The complete HTTP response.
|
631
700
|
*/
|
632
701
|
|
633
702
|
/**
|
634
703
|
* This class manages the uploaded files owned by the user's organization. The following operations are supported: - List all the uploaded files: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. - Get a specific file: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. - Delete a specific file: Users must be authenticated and have an active (is_active=True) account. In addition, the object should be owned by the user's organization. The roles required for this operation are Admin, and the user should be employed by an active allowed organization (Consumer or Retailer). **Please note:** The `destroy` method throws a `_concurrencymetafield` error.
|
635
|
-
* @param {String} id A UUID string identifying this uploaded file.
|
704
|
+
* @param {String} id A UUID string identifying this uploaded file task.
|
636
705
|
* @param {module:api/LogsApi~logsUploadFileRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
|
637
|
-
* data is of type: {@link module:model/
|
706
|
+
* data is of type: {@link module:model/UploadedFileTask}
|
638
707
|
*/
|
639
708
|
}, {
|
640
709
|
key: "logsUploadFileRetrieve",
|
@@ -650,10 +719,10 @@ var LogsApi = /*#__PURE__*/function () {
|
|
650
719
|
var queryParams = {};
|
651
720
|
var headerParams = {};
|
652
721
|
var formParams = {};
|
653
|
-
var authNames = [
|
722
|
+
var authNames = [];
|
654
723
|
var contentTypes = [];
|
655
724
|
var accepts = ['application/json'];
|
656
|
-
var returnType =
|
725
|
+
var returnType = _UploadedFileTask["default"];
|
657
726
|
return this.apiClient.callApi('/logs/upload-file/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
658
727
|
}
|
659
728
|
}]);
|
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
15
15
|
* GreenLink API
|
16
16
|
* ⚡GreenLink API documentation with interactive tools for testing API endpoints.⚡
|
17
17
|
*
|
18
|
-
* The version of the OpenAPI document: 1.
|
18
|
+
* The version of the OpenAPI document: 1.16.0
|
19
19
|
*
|
20
20
|
*
|
21
21
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
@@ -26,7 +26,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
26
26
|
/**
|
27
27
|
* MaintenanceCheck service.
|
28
28
|
* @module api/MaintenanceCheckApi
|
29
|
-
* @version 1.
|
29
|
+
* @version 1.16.0
|
30
30
|
*/
|
31
31
|
var MaintenanceCheckApi = /*#__PURE__*/function () {
|
32
32
|
/**
|
@@ -60,7 +60,7 @@ var MaintenanceCheckApi = /*#__PURE__*/function () {
|
|
60
60
|
var queryParams = {};
|
61
61
|
var headerParams = {};
|
62
62
|
var formParams = {};
|
63
|
-
var authNames = [
|
63
|
+
var authNames = [];
|
64
64
|
var contentTypes = [];
|
65
65
|
var accepts = [];
|
66
66
|
var returnType = null;
|