green_link_api 1.10.2 → 1.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/ApiClient.js +51 -133
- package/dist/api/BlockchainApi.js +19 -38
- package/dist/api/EnergyAssetsApi.js +61 -106
- package/dist/api/EnergyDataApi.js +88 -152
- package/dist/api/HealthCheckApi.js +2 -12
- package/dist/api/LicensedProductionSitesOnEpiasApi.js +2 -12
- package/dist/api/LocationsApi.js +21 -40
- package/dist/api/LogsApi.js +36 -67
- package/dist/api/MaintenanceCheckApi.js +2 -12
- package/dist/api/OrganizationprofilesApi.js +19 -38
- package/dist/api/OrganizationsApi.js +91 -146
- package/dist/api/SchemaApi.js +2 -12
- package/dist/api/SentryDebugApi.js +2 -12
- package/dist/api/UsersApi.js +23 -47
- package/dist/index.js +0 -110
- package/dist/model/Activities.js +9 -28
- package/dist/model/BlockchainTransaction.js +12 -36
- package/dist/model/Consumer.js +13 -37
- package/dist/model/ConsumptionDataFileList.js +8 -26
- package/dist/model/ConsumptionDataFromRetailerRequest.js +5 -20
- package/dist/model/ConsumptionDataPointCreate.js +24 -59
- package/dist/model/ConsumptionDataPointListOrDetail.js +24 -64
- package/dist/model/ConsumptionDataPointUpdate.js +24 -59
- package/dist/model/ConsumptionSite.js +15 -41
- package/dist/model/ConsumptionSiteContract.js +9 -29
- package/dist/model/ConsumptionSiteContractImport.js +5 -20
- package/dist/model/ConsumptionSiteCreate.js +15 -41
- package/dist/model/ConsumptionSiteFileUpload.js +8 -26
- package/dist/model/ConsumptionSiteListOrDetail.js +14 -41
- package/dist/model/ContentTypeEnum.js +0 -15
- package/dist/model/EacTypeEnum.js +0 -11
- package/dist/model/EmissionFactor.js +9 -28
- package/dist/model/EnergySourceEnum.js +0 -18
- package/dist/model/EnergySourcePreference.js +10 -32
- package/dist/model/GetFromEpias.js +5 -20
- package/dist/model/GridOperator.js +11 -33
- package/dist/model/ImportRequest.js +14 -40
- package/dist/model/ImportRequestStatusEnum.js +0 -14
- package/dist/model/ImportedEnergyDataPoint.js +11 -32
- package/dist/model/Issuer.js +11 -33
- package/dist/model/Location.js +19 -48
- package/dist/model/Login.js +5 -20
- package/dist/model/MatchRequest.js +23 -63
- package/dist/model/MatchTypeEnum.js +0 -12
- package/dist/model/MatchedEnergyDataPoint.js +14 -39
- package/dist/model/MatchingConsumerRequest.js +7 -24
- package/dist/model/MatchingSiteRequest.js +7 -24
- package/dist/model/OrganizationTypeEnum.js +0 -16
- package/dist/model/PaginatedActivitiesList.js +6 -23
- package/dist/model/PaginatedConsumerList.js +6 -23
- package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +6 -23
- package/dist/model/PaginatedConsumptionSiteContractList.js +6 -23
- package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +6 -23
- package/dist/model/PaginatedEmissionFactorList.js +6 -23
- package/dist/model/PaginatedEnergySourcePreferenceList.js +6 -23
- package/dist/model/PaginatedGridOperatorList.js +6 -23
- package/dist/model/PaginatedImportRequestList.js +6 -23
- package/dist/model/PaginatedImportedEnergyDataPointList.js +6 -23
- package/dist/model/PaginatedIssuerList.js +6 -23
- package/dist/model/PaginatedLocationList.js +6 -23
- package/dist/model/PaginatedMatchRequestList.js +6 -23
- package/dist/model/PaginatedMatchedEnergyDataPointList.js +6 -23
- package/dist/model/PaginatedProducerList.js +6 -23
- package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +6 -23
- package/dist/model/PaginatedProductionDataPointListOrDetailList.js +6 -23
- package/dist/model/PaginatedProductionSiteListOrDetailList.js +6 -23
- package/dist/model/PaginatedRetailerList.js +6 -23
- package/dist/model/PaginatedSmartContractList.js +6 -23
- package/dist/model/PaginatedUnprocessedRowList.js +6 -23
- package/dist/model/PaginatedUploadedCertificateListorDetailList.js +6 -23
- package/dist/model/PaginatedUploadedFileList.js +6 -23
- package/dist/model/PaginatedUserList.js +6 -23
- package/dist/model/PatchedConsumer.js +13 -37
- package/dist/model/PatchedConsumptionDataPointUpdate.js +24 -59
- package/dist/model/PatchedConsumptionSite.js +15 -41
- package/dist/model/PatchedEmissionFactor.js +9 -28
- package/dist/model/PatchedEnergySourcePreference.js +10 -32
- package/dist/model/PatchedGridOperator.js +11 -33
- package/dist/model/PatchedIssuer.js +11 -33
- package/dist/model/PatchedLocation.js +19 -48
- package/dist/model/PatchedProducer.js +11 -33
- package/dist/model/PatchedProductionDataPointUpdate.js +18 -47
- package/dist/model/PatchedProductionSiteUpdate.js +20 -51
- package/dist/model/PatchedRetailer.js +12 -35
- package/dist/model/PatchedSmartContract.js +9 -28
- package/dist/model/PatchedUser.js +18 -47
- package/dist/model/PatchedUserDetail.js +18 -47
- package/dist/model/PriorityEnum.js +0 -18
- package/dist/model/Producer.js +11 -33
- package/dist/model/ProductionDataFileList.js +8 -26
- package/dist/model/ProductionDataFromEpiasRequest.js +11 -36
- package/dist/model/ProductionDataPointCreate.js +18 -47
- package/dist/model/ProductionDataPointListOrDetail.js +19 -53
- package/dist/model/ProductionDataPointUpdate.js +18 -47
- package/dist/model/ProductionSite.js +20 -51
- package/dist/model/ProductionSiteFileUpload.js +12 -34
- package/dist/model/ProductionSiteListOrDetail.js +18 -48
- package/dist/model/ProductionSiteUpdate.js +20 -51
- package/dist/model/Register.js +14 -38
- package/dist/model/Retailer.js +12 -35
- package/dist/model/SmartContract.js +9 -28
- package/dist/model/Status619Enum.js +0 -13
- package/dist/model/Token.js +3 -16
- package/dist/model/TypeEnum.js +0 -13
- package/dist/model/UnprocessedRow.js +9 -28
- package/dist/model/UploadedCertificate.js +12 -35
- package/dist/model/UploadedCertificateListorDetail.js +12 -36
- package/dist/model/UploadedFile.js +10 -32
- package/dist/model/User.js +18 -47
- package/dist/model/UserDetail.js +18 -47
- package/package.json +1 -1
|
@@ -4,21 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
-
|
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
|
|
12
9
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
-
|
|
14
10
|
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); } }
|
|
15
|
-
|
|
16
11
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
-
|
|
18
12
|
/**
|
|
19
13
|
* The MatchingSiteRequest model module.
|
|
20
14
|
* @module model/MatchingSiteRequest
|
|
21
|
-
* @version 1.10.
|
|
15
|
+
* @version 1.10.3
|
|
22
16
|
*/
|
|
23
17
|
var MatchingSiteRequest = /*#__PURE__*/function () {
|
|
24
18
|
/**
|
|
@@ -31,16 +25,14 @@ var MatchingSiteRequest = /*#__PURE__*/function () {
|
|
|
31
25
|
*/
|
|
32
26
|
function MatchingSiteRequest(startTime, endTime, consumptionSite, productionSite) {
|
|
33
27
|
_classCallCheck(this, MatchingSiteRequest);
|
|
34
|
-
|
|
35
28
|
MatchingSiteRequest.initialize(this, startTime, endTime, consumptionSite, productionSite);
|
|
36
29
|
}
|
|
30
|
+
|
|
37
31
|
/**
|
|
38
32
|
* Initializes the fields of this object.
|
|
39
33
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
40
34
|
* Only for internal use.
|
|
41
35
|
*/
|
|
42
|
-
|
|
43
|
-
|
|
44
36
|
_createClass(MatchingSiteRequest, null, [{
|
|
45
37
|
key: "initialize",
|
|
46
38
|
value: function initialize(obj, startTime, endTime, consumptionSite, productionSite) {
|
|
@@ -49,6 +41,7 @@ var MatchingSiteRequest = /*#__PURE__*/function () {
|
|
|
49
41
|
obj['consumption_site'] = consumptionSite;
|
|
50
42
|
obj['production_site'] = productionSite;
|
|
51
43
|
}
|
|
44
|
+
|
|
52
45
|
/**
|
|
53
46
|
* Constructs a <code>MatchingSiteRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
54
47
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -56,67 +49,57 @@ var MatchingSiteRequest = /*#__PURE__*/function () {
|
|
|
56
49
|
* @param {module:model/MatchingSiteRequest} obj Optional instance to populate.
|
|
57
50
|
* @return {module:model/MatchingSiteRequest} The populated <code>MatchingSiteRequest</code> instance.
|
|
58
51
|
*/
|
|
59
|
-
|
|
60
52
|
}, {
|
|
61
53
|
key: "constructFromObject",
|
|
62
54
|
value: function constructFromObject(data, obj) {
|
|
63
55
|
if (data) {
|
|
64
56
|
obj = obj || new MatchingSiteRequest();
|
|
65
|
-
|
|
66
57
|
if (data.hasOwnProperty('start_time')) {
|
|
67
58
|
obj['start_time'] = _ApiClient["default"].convertToType(data['start_time'], 'Date');
|
|
68
59
|
}
|
|
69
|
-
|
|
70
60
|
if (data.hasOwnProperty('end_time')) {
|
|
71
61
|
obj['end_time'] = _ApiClient["default"].convertToType(data['end_time'], 'Date');
|
|
72
62
|
}
|
|
73
|
-
|
|
74
63
|
if (data.hasOwnProperty('consumption_site')) {
|
|
75
64
|
obj['consumption_site'] = _ApiClient["default"].convertToType(data['consumption_site'], 'String');
|
|
76
65
|
}
|
|
77
|
-
|
|
78
66
|
if (data.hasOwnProperty('production_site')) {
|
|
79
67
|
obj['production_site'] = _ApiClient["default"].convertToType(data['production_site'], 'String');
|
|
80
68
|
}
|
|
81
|
-
|
|
82
69
|
if (data.hasOwnProperty('target_percentage_matched')) {
|
|
83
70
|
obj['target_percentage_matched'] = _ApiClient["default"].convertToType(data['target_percentage_matched'], 'Number');
|
|
84
71
|
}
|
|
85
72
|
}
|
|
86
|
-
|
|
87
73
|
return obj;
|
|
88
74
|
}
|
|
89
75
|
}]);
|
|
90
|
-
|
|
91
76
|
return MatchingSiteRequest;
|
|
92
77
|
}();
|
|
93
78
|
/**
|
|
94
79
|
* @member {Date} start_time
|
|
95
80
|
*/
|
|
96
|
-
|
|
97
|
-
|
|
98
81
|
MatchingSiteRequest.prototype['start_time'] = undefined;
|
|
82
|
+
|
|
99
83
|
/**
|
|
100
84
|
* @member {Date} end_time
|
|
101
85
|
*/
|
|
102
|
-
|
|
103
86
|
MatchingSiteRequest.prototype['end_time'] = undefined;
|
|
87
|
+
|
|
104
88
|
/**
|
|
105
89
|
* @member {String} consumption_site
|
|
106
90
|
*/
|
|
107
|
-
|
|
108
91
|
MatchingSiteRequest.prototype['consumption_site'] = undefined;
|
|
92
|
+
|
|
109
93
|
/**
|
|
110
94
|
* @member {String} production_site
|
|
111
95
|
*/
|
|
112
|
-
|
|
113
96
|
MatchingSiteRequest.prototype['production_site'] = undefined;
|
|
97
|
+
|
|
114
98
|
/**
|
|
115
99
|
* Not required. Set target percentage of consumption to match between 1-100. Default 100.
|
|
116
100
|
* @member {Number} target_percentage_matched
|
|
117
101
|
* @default 100
|
|
118
102
|
*/
|
|
119
|
-
|
|
120
103
|
MatchingSiteRequest.prototype['target_percentage_matched'] = 100;
|
|
121
104
|
var _default = MatchingSiteRequest;
|
|
122
105
|
exports["default"] = _default;
|
|
@@ -4,19 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
-
|
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
|
|
12
9
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
-
|
|
14
10
|
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); } }
|
|
15
|
-
|
|
16
11
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
-
|
|
18
12
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
-
|
|
20
13
|
/**
|
|
21
14
|
* Enum class OrganizationTypeEnum.
|
|
22
15
|
* @enum {}
|
|
@@ -25,20 +18,13 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
25
18
|
var OrganizationTypeEnum = /*#__PURE__*/function () {
|
|
26
19
|
function OrganizationTypeEnum() {
|
|
27
20
|
_classCallCheck(this, OrganizationTypeEnum);
|
|
28
|
-
|
|
29
21
|
_defineProperty(this, "Retailer", "Retailer");
|
|
30
|
-
|
|
31
22
|
_defineProperty(this, "Producer", "Producer");
|
|
32
|
-
|
|
33
23
|
_defineProperty(this, "GridOperator", "GridOperator");
|
|
34
|
-
|
|
35
24
|
_defineProperty(this, "Consumer", "Consumer");
|
|
36
|
-
|
|
37
25
|
_defineProperty(this, "Issuer", "Issuer");
|
|
38
|
-
|
|
39
26
|
_defineProperty(this, "N/A", "N/A");
|
|
40
27
|
}
|
|
41
|
-
|
|
42
28
|
_createClass(OrganizationTypeEnum, null, [{
|
|
43
29
|
key: "constructFromObject",
|
|
44
30
|
value:
|
|
@@ -51,8 +37,6 @@ var OrganizationTypeEnum = /*#__PURE__*/function () {
|
|
|
51
37
|
return object;
|
|
52
38
|
}
|
|
53
39
|
}]);
|
|
54
|
-
|
|
55
40
|
return OrganizationTypeEnum;
|
|
56
41
|
}();
|
|
57
|
-
|
|
58
42
|
exports["default"] = OrganizationTypeEnum;
|
|
@@ -4,23 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
-
|
|
10
8
|
var _Activities = _interopRequireDefault(require("./Activities"));
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
-
|
|
16
11
|
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); } }
|
|
17
|
-
|
|
18
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
-
|
|
20
13
|
/**
|
|
21
14
|
* The PaginatedActivitiesList model module.
|
|
22
15
|
* @module model/PaginatedActivitiesList
|
|
23
|
-
* @version 1.10.
|
|
16
|
+
* @version 1.10.3
|
|
24
17
|
*/
|
|
25
18
|
var PaginatedActivitiesList = /*#__PURE__*/function () {
|
|
26
19
|
/**
|
|
@@ -29,19 +22,18 @@ var PaginatedActivitiesList = /*#__PURE__*/function () {
|
|
|
29
22
|
*/
|
|
30
23
|
function PaginatedActivitiesList() {
|
|
31
24
|
_classCallCheck(this, PaginatedActivitiesList);
|
|
32
|
-
|
|
33
25
|
PaginatedActivitiesList.initialize(this);
|
|
34
26
|
}
|
|
27
|
+
|
|
35
28
|
/**
|
|
36
29
|
* Initializes the fields of this object.
|
|
37
30
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
38
31
|
* Only for internal use.
|
|
39
32
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
33
|
_createClass(PaginatedActivitiesList, null, [{
|
|
43
34
|
key: "initialize",
|
|
44
35
|
value: function initialize(obj) {}
|
|
36
|
+
|
|
45
37
|
/**
|
|
46
38
|
* Constructs a <code>PaginatedActivitiesList</code> from a plain JavaScript object, optionally creating a new instance.
|
|
47
39
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -49,56 +41,47 @@ var PaginatedActivitiesList = /*#__PURE__*/function () {
|
|
|
49
41
|
* @param {module:model/PaginatedActivitiesList} obj Optional instance to populate.
|
|
50
42
|
* @return {module:model/PaginatedActivitiesList} The populated <code>PaginatedActivitiesList</code> instance.
|
|
51
43
|
*/
|
|
52
|
-
|
|
53
44
|
}, {
|
|
54
45
|
key: "constructFromObject",
|
|
55
46
|
value: function constructFromObject(data, obj) {
|
|
56
47
|
if (data) {
|
|
57
48
|
obj = obj || new PaginatedActivitiesList();
|
|
58
|
-
|
|
59
49
|
if (data.hasOwnProperty('count')) {
|
|
60
50
|
obj['count'] = _ApiClient["default"].convertToType(data['count'], 'Number');
|
|
61
51
|
}
|
|
62
|
-
|
|
63
52
|
if (data.hasOwnProperty('next')) {
|
|
64
53
|
obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String');
|
|
65
54
|
}
|
|
66
|
-
|
|
67
55
|
if (data.hasOwnProperty('previous')) {
|
|
68
56
|
obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String');
|
|
69
57
|
}
|
|
70
|
-
|
|
71
58
|
if (data.hasOwnProperty('results')) {
|
|
72
59
|
obj['results'] = _ApiClient["default"].convertToType(data['results'], [_Activities["default"]]);
|
|
73
60
|
}
|
|
74
61
|
}
|
|
75
|
-
|
|
76
62
|
return obj;
|
|
77
63
|
}
|
|
78
64
|
}]);
|
|
79
|
-
|
|
80
65
|
return PaginatedActivitiesList;
|
|
81
66
|
}();
|
|
82
67
|
/**
|
|
83
68
|
* @member {Number} count
|
|
84
69
|
*/
|
|
85
|
-
|
|
86
|
-
|
|
87
70
|
PaginatedActivitiesList.prototype['count'] = undefined;
|
|
71
|
+
|
|
88
72
|
/**
|
|
89
73
|
* @member {String} next
|
|
90
74
|
*/
|
|
91
|
-
|
|
92
75
|
PaginatedActivitiesList.prototype['next'] = undefined;
|
|
76
|
+
|
|
93
77
|
/**
|
|
94
78
|
* @member {String} previous
|
|
95
79
|
*/
|
|
96
|
-
|
|
97
80
|
PaginatedActivitiesList.prototype['previous'] = undefined;
|
|
81
|
+
|
|
98
82
|
/**
|
|
99
83
|
* @member {Array.<module:model/Activities>} results
|
|
100
84
|
*/
|
|
101
|
-
|
|
102
85
|
PaginatedActivitiesList.prototype['results'] = undefined;
|
|
103
86
|
var _default = PaginatedActivitiesList;
|
|
104
87
|
exports["default"] = _default;
|
|
@@ -4,23 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
-
|
|
10
8
|
var _Consumer = _interopRequireDefault(require("./Consumer"));
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
-
|
|
16
11
|
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); } }
|
|
17
|
-
|
|
18
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
-
|
|
20
13
|
/**
|
|
21
14
|
* The PaginatedConsumerList model module.
|
|
22
15
|
* @module model/PaginatedConsumerList
|
|
23
|
-
* @version 1.10.
|
|
16
|
+
* @version 1.10.3
|
|
24
17
|
*/
|
|
25
18
|
var PaginatedConsumerList = /*#__PURE__*/function () {
|
|
26
19
|
/**
|
|
@@ -29,19 +22,18 @@ var PaginatedConsumerList = /*#__PURE__*/function () {
|
|
|
29
22
|
*/
|
|
30
23
|
function PaginatedConsumerList() {
|
|
31
24
|
_classCallCheck(this, PaginatedConsumerList);
|
|
32
|
-
|
|
33
25
|
PaginatedConsumerList.initialize(this);
|
|
34
26
|
}
|
|
27
|
+
|
|
35
28
|
/**
|
|
36
29
|
* Initializes the fields of this object.
|
|
37
30
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
38
31
|
* Only for internal use.
|
|
39
32
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
33
|
_createClass(PaginatedConsumerList, null, [{
|
|
43
34
|
key: "initialize",
|
|
44
35
|
value: function initialize(obj) {}
|
|
36
|
+
|
|
45
37
|
/**
|
|
46
38
|
* Constructs a <code>PaginatedConsumerList</code> from a plain JavaScript object, optionally creating a new instance.
|
|
47
39
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -49,56 +41,47 @@ var PaginatedConsumerList = /*#__PURE__*/function () {
|
|
|
49
41
|
* @param {module:model/PaginatedConsumerList} obj Optional instance to populate.
|
|
50
42
|
* @return {module:model/PaginatedConsumerList} The populated <code>PaginatedConsumerList</code> instance.
|
|
51
43
|
*/
|
|
52
|
-
|
|
53
44
|
}, {
|
|
54
45
|
key: "constructFromObject",
|
|
55
46
|
value: function constructFromObject(data, obj) {
|
|
56
47
|
if (data) {
|
|
57
48
|
obj = obj || new PaginatedConsumerList();
|
|
58
|
-
|
|
59
49
|
if (data.hasOwnProperty('count')) {
|
|
60
50
|
obj['count'] = _ApiClient["default"].convertToType(data['count'], 'Number');
|
|
61
51
|
}
|
|
62
|
-
|
|
63
52
|
if (data.hasOwnProperty('next')) {
|
|
64
53
|
obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String');
|
|
65
54
|
}
|
|
66
|
-
|
|
67
55
|
if (data.hasOwnProperty('previous')) {
|
|
68
56
|
obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String');
|
|
69
57
|
}
|
|
70
|
-
|
|
71
58
|
if (data.hasOwnProperty('results')) {
|
|
72
59
|
obj['results'] = _ApiClient["default"].convertToType(data['results'], [_Consumer["default"]]);
|
|
73
60
|
}
|
|
74
61
|
}
|
|
75
|
-
|
|
76
62
|
return obj;
|
|
77
63
|
}
|
|
78
64
|
}]);
|
|
79
|
-
|
|
80
65
|
return PaginatedConsumerList;
|
|
81
66
|
}();
|
|
82
67
|
/**
|
|
83
68
|
* @member {Number} count
|
|
84
69
|
*/
|
|
85
|
-
|
|
86
|
-
|
|
87
70
|
PaginatedConsumerList.prototype['count'] = undefined;
|
|
71
|
+
|
|
88
72
|
/**
|
|
89
73
|
* @member {String} next
|
|
90
74
|
*/
|
|
91
|
-
|
|
92
75
|
PaginatedConsumerList.prototype['next'] = undefined;
|
|
76
|
+
|
|
93
77
|
/**
|
|
94
78
|
* @member {String} previous
|
|
95
79
|
*/
|
|
96
|
-
|
|
97
80
|
PaginatedConsumerList.prototype['previous'] = undefined;
|
|
81
|
+
|
|
98
82
|
/**
|
|
99
83
|
* @member {Array.<module:model/Consumer>} results
|
|
100
84
|
*/
|
|
101
|
-
|
|
102
85
|
PaginatedConsumerList.prototype['results'] = undefined;
|
|
103
86
|
var _default = PaginatedConsumerList;
|
|
104
87
|
exports["default"] = _default;
|
|
@@ -4,23 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
-
|
|
10
8
|
var _ConsumptionDataPointListOrDetail = _interopRequireDefault(require("./ConsumptionDataPointListOrDetail"));
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
-
|
|
16
11
|
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); } }
|
|
17
|
-
|
|
18
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
-
|
|
20
13
|
/**
|
|
21
14
|
* The PaginatedConsumptionDataPointListOrDetailList model module.
|
|
22
15
|
* @module model/PaginatedConsumptionDataPointListOrDetailList
|
|
23
|
-
* @version 1.10.
|
|
16
|
+
* @version 1.10.3
|
|
24
17
|
*/
|
|
25
18
|
var PaginatedConsumptionDataPointListOrDetailList = /*#__PURE__*/function () {
|
|
26
19
|
/**
|
|
@@ -29,19 +22,18 @@ var PaginatedConsumptionDataPointListOrDetailList = /*#__PURE__*/function () {
|
|
|
29
22
|
*/
|
|
30
23
|
function PaginatedConsumptionDataPointListOrDetailList() {
|
|
31
24
|
_classCallCheck(this, PaginatedConsumptionDataPointListOrDetailList);
|
|
32
|
-
|
|
33
25
|
PaginatedConsumptionDataPointListOrDetailList.initialize(this);
|
|
34
26
|
}
|
|
27
|
+
|
|
35
28
|
/**
|
|
36
29
|
* Initializes the fields of this object.
|
|
37
30
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
38
31
|
* Only for internal use.
|
|
39
32
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
33
|
_createClass(PaginatedConsumptionDataPointListOrDetailList, null, [{
|
|
43
34
|
key: "initialize",
|
|
44
35
|
value: function initialize(obj) {}
|
|
36
|
+
|
|
45
37
|
/**
|
|
46
38
|
* Constructs a <code>PaginatedConsumptionDataPointListOrDetailList</code> from a plain JavaScript object, optionally creating a new instance.
|
|
47
39
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -49,56 +41,47 @@ var PaginatedConsumptionDataPointListOrDetailList = /*#__PURE__*/function () {
|
|
|
49
41
|
* @param {module:model/PaginatedConsumptionDataPointListOrDetailList} obj Optional instance to populate.
|
|
50
42
|
* @return {module:model/PaginatedConsumptionDataPointListOrDetailList} The populated <code>PaginatedConsumptionDataPointListOrDetailList</code> instance.
|
|
51
43
|
*/
|
|
52
|
-
|
|
53
44
|
}, {
|
|
54
45
|
key: "constructFromObject",
|
|
55
46
|
value: function constructFromObject(data, obj) {
|
|
56
47
|
if (data) {
|
|
57
48
|
obj = obj || new PaginatedConsumptionDataPointListOrDetailList();
|
|
58
|
-
|
|
59
49
|
if (data.hasOwnProperty('count')) {
|
|
60
50
|
obj['count'] = _ApiClient["default"].convertToType(data['count'], 'Number');
|
|
61
51
|
}
|
|
62
|
-
|
|
63
52
|
if (data.hasOwnProperty('next')) {
|
|
64
53
|
obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String');
|
|
65
54
|
}
|
|
66
|
-
|
|
67
55
|
if (data.hasOwnProperty('previous')) {
|
|
68
56
|
obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String');
|
|
69
57
|
}
|
|
70
|
-
|
|
71
58
|
if (data.hasOwnProperty('results')) {
|
|
72
59
|
obj['results'] = _ApiClient["default"].convertToType(data['results'], [_ConsumptionDataPointListOrDetail["default"]]);
|
|
73
60
|
}
|
|
74
61
|
}
|
|
75
|
-
|
|
76
62
|
return obj;
|
|
77
63
|
}
|
|
78
64
|
}]);
|
|
79
|
-
|
|
80
65
|
return PaginatedConsumptionDataPointListOrDetailList;
|
|
81
66
|
}();
|
|
82
67
|
/**
|
|
83
68
|
* @member {Number} count
|
|
84
69
|
*/
|
|
85
|
-
|
|
86
|
-
|
|
87
70
|
PaginatedConsumptionDataPointListOrDetailList.prototype['count'] = undefined;
|
|
71
|
+
|
|
88
72
|
/**
|
|
89
73
|
* @member {String} next
|
|
90
74
|
*/
|
|
91
|
-
|
|
92
75
|
PaginatedConsumptionDataPointListOrDetailList.prototype['next'] = undefined;
|
|
76
|
+
|
|
93
77
|
/**
|
|
94
78
|
* @member {String} previous
|
|
95
79
|
*/
|
|
96
|
-
|
|
97
80
|
PaginatedConsumptionDataPointListOrDetailList.prototype['previous'] = undefined;
|
|
81
|
+
|
|
98
82
|
/**
|
|
99
83
|
* @member {Array.<module:model/ConsumptionDataPointListOrDetail>} results
|
|
100
84
|
*/
|
|
101
|
-
|
|
102
85
|
PaginatedConsumptionDataPointListOrDetailList.prototype['results'] = undefined;
|
|
103
86
|
var _default = PaginatedConsumptionDataPointListOrDetailList;
|
|
104
87
|
exports["default"] = _default;
|
|
@@ -4,23 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
-
|
|
10
8
|
var _ConsumptionSiteContract = _interopRequireDefault(require("./ConsumptionSiteContract"));
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
-
|
|
16
11
|
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); } }
|
|
17
|
-
|
|
18
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
-
|
|
20
13
|
/**
|
|
21
14
|
* The PaginatedConsumptionSiteContractList model module.
|
|
22
15
|
* @module model/PaginatedConsumptionSiteContractList
|
|
23
|
-
* @version 1.10.
|
|
16
|
+
* @version 1.10.3
|
|
24
17
|
*/
|
|
25
18
|
var PaginatedConsumptionSiteContractList = /*#__PURE__*/function () {
|
|
26
19
|
/**
|
|
@@ -29,19 +22,18 @@ var PaginatedConsumptionSiteContractList = /*#__PURE__*/function () {
|
|
|
29
22
|
*/
|
|
30
23
|
function PaginatedConsumptionSiteContractList() {
|
|
31
24
|
_classCallCheck(this, PaginatedConsumptionSiteContractList);
|
|
32
|
-
|
|
33
25
|
PaginatedConsumptionSiteContractList.initialize(this);
|
|
34
26
|
}
|
|
27
|
+
|
|
35
28
|
/**
|
|
36
29
|
* Initializes the fields of this object.
|
|
37
30
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
38
31
|
* Only for internal use.
|
|
39
32
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
33
|
_createClass(PaginatedConsumptionSiteContractList, null, [{
|
|
43
34
|
key: "initialize",
|
|
44
35
|
value: function initialize(obj) {}
|
|
36
|
+
|
|
45
37
|
/**
|
|
46
38
|
* Constructs a <code>PaginatedConsumptionSiteContractList</code> from a plain JavaScript object, optionally creating a new instance.
|
|
47
39
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -49,56 +41,47 @@ var PaginatedConsumptionSiteContractList = /*#__PURE__*/function () {
|
|
|
49
41
|
* @param {module:model/PaginatedConsumptionSiteContractList} obj Optional instance to populate.
|
|
50
42
|
* @return {module:model/PaginatedConsumptionSiteContractList} The populated <code>PaginatedConsumptionSiteContractList</code> instance.
|
|
51
43
|
*/
|
|
52
|
-
|
|
53
44
|
}, {
|
|
54
45
|
key: "constructFromObject",
|
|
55
46
|
value: function constructFromObject(data, obj) {
|
|
56
47
|
if (data) {
|
|
57
48
|
obj = obj || new PaginatedConsumptionSiteContractList();
|
|
58
|
-
|
|
59
49
|
if (data.hasOwnProperty('count')) {
|
|
60
50
|
obj['count'] = _ApiClient["default"].convertToType(data['count'], 'Number');
|
|
61
51
|
}
|
|
62
|
-
|
|
63
52
|
if (data.hasOwnProperty('next')) {
|
|
64
53
|
obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String');
|
|
65
54
|
}
|
|
66
|
-
|
|
67
55
|
if (data.hasOwnProperty('previous')) {
|
|
68
56
|
obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String');
|
|
69
57
|
}
|
|
70
|
-
|
|
71
58
|
if (data.hasOwnProperty('results')) {
|
|
72
59
|
obj['results'] = _ApiClient["default"].convertToType(data['results'], [_ConsumptionSiteContract["default"]]);
|
|
73
60
|
}
|
|
74
61
|
}
|
|
75
|
-
|
|
76
62
|
return obj;
|
|
77
63
|
}
|
|
78
64
|
}]);
|
|
79
|
-
|
|
80
65
|
return PaginatedConsumptionSiteContractList;
|
|
81
66
|
}();
|
|
82
67
|
/**
|
|
83
68
|
* @member {Number} count
|
|
84
69
|
*/
|
|
85
|
-
|
|
86
|
-
|
|
87
70
|
PaginatedConsumptionSiteContractList.prototype['count'] = undefined;
|
|
71
|
+
|
|
88
72
|
/**
|
|
89
73
|
* @member {String} next
|
|
90
74
|
*/
|
|
91
|
-
|
|
92
75
|
PaginatedConsumptionSiteContractList.prototype['next'] = undefined;
|
|
76
|
+
|
|
93
77
|
/**
|
|
94
78
|
* @member {String} previous
|
|
95
79
|
*/
|
|
96
|
-
|
|
97
80
|
PaginatedConsumptionSiteContractList.prototype['previous'] = undefined;
|
|
81
|
+
|
|
98
82
|
/**
|
|
99
83
|
* @member {Array.<module:model/ConsumptionSiteContract>} results
|
|
100
84
|
*/
|
|
101
|
-
|
|
102
85
|
PaginatedConsumptionSiteContractList.prototype['results'] = undefined;
|
|
103
86
|
var _default = PaginatedConsumptionSiteContractList;
|
|
104
87
|
exports["default"] = _default;
|