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
package/dist/model/Activities.js
CHANGED
|
@@ -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 Activities model module.
|
|
20
14
|
* @module model/Activities
|
|
21
|
-
* @version 1.10.
|
|
15
|
+
* @version 1.10.3
|
|
22
16
|
*/
|
|
23
17
|
var Activities = /*#__PURE__*/function () {
|
|
24
18
|
/**
|
|
@@ -27,19 +21,18 @@ var Activities = /*#__PURE__*/function () {
|
|
|
27
21
|
*/
|
|
28
22
|
function Activities() {
|
|
29
23
|
_classCallCheck(this, Activities);
|
|
30
|
-
|
|
31
24
|
Activities.initialize(this);
|
|
32
25
|
}
|
|
26
|
+
|
|
33
27
|
/**
|
|
34
28
|
* Initializes the fields of this object.
|
|
35
29
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
36
30
|
* Only for internal use.
|
|
37
31
|
*/
|
|
38
|
-
|
|
39
|
-
|
|
40
32
|
_createClass(Activities, null, [{
|
|
41
33
|
key: "initialize",
|
|
42
34
|
value: function initialize(obj) {}
|
|
35
|
+
|
|
43
36
|
/**
|
|
44
37
|
* Constructs a <code>Activities</code> from a plain JavaScript object, optionally creating a new instance.
|
|
45
38
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -47,83 +40,71 @@ var Activities = /*#__PURE__*/function () {
|
|
|
47
40
|
* @param {module:model/Activities} obj Optional instance to populate.
|
|
48
41
|
* @return {module:model/Activities} The populated <code>Activities</code> instance.
|
|
49
42
|
*/
|
|
50
|
-
|
|
51
43
|
}, {
|
|
52
44
|
key: "constructFromObject",
|
|
53
45
|
value: function constructFromObject(data, obj) {
|
|
54
46
|
if (data) {
|
|
55
47
|
obj = obj || new Activities();
|
|
56
|
-
|
|
57
48
|
if (data.hasOwnProperty('id')) {
|
|
58
49
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
|
|
59
50
|
}
|
|
60
|
-
|
|
61
51
|
if (data.hasOwnProperty('datetime')) {
|
|
62
52
|
obj['datetime'] = _ApiClient["default"].convertToType(data['datetime'], 'Date');
|
|
63
53
|
}
|
|
64
|
-
|
|
65
54
|
if (data.hasOwnProperty('method')) {
|
|
66
55
|
obj['method'] = _ApiClient["default"].convertToType(data['method'], 'String');
|
|
67
56
|
}
|
|
68
|
-
|
|
69
57
|
if (data.hasOwnProperty('user')) {
|
|
70
58
|
obj['user'] = _ApiClient["default"].convertToType(data['user'], 'String');
|
|
71
59
|
}
|
|
72
|
-
|
|
73
60
|
if (data.hasOwnProperty('category')) {
|
|
74
61
|
obj['category'] = _ApiClient["default"].convertToType(data['category'], 'String');
|
|
75
62
|
}
|
|
76
|
-
|
|
77
63
|
if (data.hasOwnProperty('object')) {
|
|
78
64
|
obj['object'] = _ApiClient["default"].convertToType(data['object'], 'String');
|
|
79
65
|
}
|
|
80
|
-
|
|
81
66
|
if (data.hasOwnProperty('details')) {
|
|
82
67
|
obj['details'] = _ApiClient["default"].convertToType(data['details'], 'String');
|
|
83
68
|
}
|
|
84
69
|
}
|
|
85
|
-
|
|
86
70
|
return obj;
|
|
87
71
|
}
|
|
88
72
|
}]);
|
|
89
|
-
|
|
90
73
|
return Activities;
|
|
91
74
|
}();
|
|
92
75
|
/**
|
|
93
76
|
* @member {Number} id
|
|
94
77
|
*/
|
|
95
|
-
|
|
96
|
-
|
|
97
78
|
Activities.prototype['id'] = undefined;
|
|
79
|
+
|
|
98
80
|
/**
|
|
99
81
|
* @member {Date} datetime
|
|
100
82
|
*/
|
|
101
|
-
|
|
102
83
|
Activities.prototype['datetime'] = undefined;
|
|
84
|
+
|
|
103
85
|
/**
|
|
104
86
|
* @member {String} method
|
|
105
87
|
*/
|
|
106
|
-
|
|
107
88
|
Activities.prototype['method'] = undefined;
|
|
89
|
+
|
|
108
90
|
/**
|
|
109
91
|
* @member {String} user
|
|
110
92
|
*/
|
|
111
|
-
|
|
112
93
|
Activities.prototype['user'] = undefined;
|
|
94
|
+
|
|
113
95
|
/**
|
|
114
96
|
* @member {String} category
|
|
115
97
|
*/
|
|
116
|
-
|
|
117
98
|
Activities.prototype['category'] = undefined;
|
|
99
|
+
|
|
118
100
|
/**
|
|
119
101
|
* @member {String} object
|
|
120
102
|
*/
|
|
121
|
-
|
|
122
103
|
Activities.prototype['object'] = undefined;
|
|
104
|
+
|
|
123
105
|
/**
|
|
124
106
|
* @member {String} details
|
|
125
107
|
*/
|
|
126
|
-
|
|
127
108
|
Activities.prototype['details'] = undefined;
|
|
128
109
|
var _default = Activities;
|
|
129
110
|
exports["default"] = _default;
|
|
@@ -4,25 +4,17 @@ 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 _Status619Enum = _interopRequireDefault(require("./Status619Enum"));
|
|
11
|
-
|
|
12
9
|
var _TypeEnum = _interopRequireDefault(require("./TypeEnum"));
|
|
13
|
-
|
|
14
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
11
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
|
-
|
|
18
12
|
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); } }
|
|
19
|
-
|
|
20
13
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
|
-
|
|
22
14
|
/**
|
|
23
15
|
* The BlockchainTransaction model module.
|
|
24
16
|
* @module model/BlockchainTransaction
|
|
25
|
-
* @version 1.10.
|
|
17
|
+
* @version 1.10.3
|
|
26
18
|
*/
|
|
27
19
|
var BlockchainTransaction = /*#__PURE__*/function () {
|
|
28
20
|
/**
|
|
@@ -35,16 +27,14 @@ var BlockchainTransaction = /*#__PURE__*/function () {
|
|
|
35
27
|
*/
|
|
36
28
|
function BlockchainTransaction(tokenIds, energyAmounts, status, type) {
|
|
37
29
|
_classCallCheck(this, BlockchainTransaction);
|
|
38
|
-
|
|
39
30
|
BlockchainTransaction.initialize(this, tokenIds, energyAmounts, status, type);
|
|
40
31
|
}
|
|
32
|
+
|
|
41
33
|
/**
|
|
42
34
|
* Initializes the fields of this object.
|
|
43
35
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
44
36
|
* Only for internal use.
|
|
45
37
|
*/
|
|
46
|
-
|
|
47
|
-
|
|
48
38
|
_createClass(BlockchainTransaction, null, [{
|
|
49
39
|
key: "initialize",
|
|
50
40
|
value: function initialize(obj, tokenIds, energyAmounts, status, type) {
|
|
@@ -53,6 +43,7 @@ var BlockchainTransaction = /*#__PURE__*/function () {
|
|
|
53
43
|
obj['status'] = status;
|
|
54
44
|
obj['type'] = type;
|
|
55
45
|
}
|
|
46
|
+
|
|
56
47
|
/**
|
|
57
48
|
* Constructs a <code>BlockchainTransaction</code> from a plain JavaScript object, optionally creating a new instance.
|
|
58
49
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -60,113 +51,98 @@ var BlockchainTransaction = /*#__PURE__*/function () {
|
|
|
60
51
|
* @param {module:model/BlockchainTransaction} obj Optional instance to populate.
|
|
61
52
|
* @return {module:model/BlockchainTransaction} The populated <code>BlockchainTransaction</code> instance.
|
|
62
53
|
*/
|
|
63
|
-
|
|
64
54
|
}, {
|
|
65
55
|
key: "constructFromObject",
|
|
66
56
|
value: function constructFromObject(data, obj) {
|
|
67
57
|
if (data) {
|
|
68
58
|
obj = obj || new BlockchainTransaction();
|
|
69
|
-
|
|
70
59
|
if (data.hasOwnProperty('id')) {
|
|
71
60
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
72
61
|
}
|
|
73
|
-
|
|
74
62
|
if (data.hasOwnProperty('production_site_blockchain_account_address')) {
|
|
75
63
|
obj['production_site_blockchain_account_address'] = _ApiClient["default"].convertToType(data['production_site_blockchain_account_address'], 'String');
|
|
76
64
|
}
|
|
77
|
-
|
|
78
65
|
if (data.hasOwnProperty('consumption_site_blockchain_account_address')) {
|
|
79
66
|
obj['consumption_site_blockchain_account_address'] = _ApiClient["default"].convertToType(data['consumption_site_blockchain_account_address'], 'String');
|
|
80
67
|
}
|
|
81
|
-
|
|
82
68
|
if (data.hasOwnProperty('token_ids')) {
|
|
83
69
|
obj['token_ids'] = _ApiClient["default"].convertToType(data['token_ids'], ['Number']);
|
|
84
70
|
}
|
|
85
|
-
|
|
86
71
|
if (data.hasOwnProperty('energy_amounts')) {
|
|
87
72
|
obj['energy_amounts'] = _ApiClient["default"].convertToType(data['energy_amounts'], ['Number']);
|
|
88
73
|
}
|
|
89
|
-
|
|
90
74
|
if (data.hasOwnProperty('status')) {
|
|
91
75
|
obj['status'] = _Status619Enum["default"].constructFromObject(data['status']);
|
|
92
76
|
}
|
|
93
|
-
|
|
94
77
|
if (data.hasOwnProperty('type')) {
|
|
95
78
|
obj['type'] = _TypeEnum["default"].constructFromObject(data['type']);
|
|
96
79
|
}
|
|
97
|
-
|
|
98
80
|
if (data.hasOwnProperty('hash')) {
|
|
99
81
|
obj['hash'] = _ApiClient["default"].convertToType(data['hash'], 'String');
|
|
100
82
|
}
|
|
101
|
-
|
|
102
83
|
if (data.hasOwnProperty('created_at')) {
|
|
103
84
|
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
104
85
|
}
|
|
105
|
-
|
|
106
86
|
if (data.hasOwnProperty('updated_at')) {
|
|
107
87
|
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
108
88
|
}
|
|
109
89
|
}
|
|
110
|
-
|
|
111
90
|
return obj;
|
|
112
91
|
}
|
|
113
92
|
}]);
|
|
114
|
-
|
|
115
93
|
return BlockchainTransaction;
|
|
116
94
|
}();
|
|
117
95
|
/**
|
|
118
96
|
* @member {String} id
|
|
119
97
|
*/
|
|
120
|
-
|
|
121
|
-
|
|
122
98
|
BlockchainTransaction.prototype['id'] = undefined;
|
|
99
|
+
|
|
123
100
|
/**
|
|
124
101
|
* Production site's blockchain account address.
|
|
125
102
|
* @member {String} production_site_blockchain_account_address
|
|
126
103
|
*/
|
|
127
|
-
|
|
128
104
|
BlockchainTransaction.prototype['production_site_blockchain_account_address'] = undefined;
|
|
105
|
+
|
|
129
106
|
/**
|
|
130
107
|
* Consuption site's blockchain account address.
|
|
131
108
|
* @member {String} consumption_site_blockchain_account_address
|
|
132
109
|
*/
|
|
133
|
-
|
|
134
110
|
BlockchainTransaction.prototype['consumption_site_blockchain_account_address'] = undefined;
|
|
111
|
+
|
|
135
112
|
/**
|
|
136
113
|
* @member {Array.<Number>} token_ids
|
|
137
114
|
*/
|
|
138
|
-
|
|
139
115
|
BlockchainTransaction.prototype['token_ids'] = undefined;
|
|
116
|
+
|
|
140
117
|
/**
|
|
141
118
|
* @member {Array.<Number>} energy_amounts
|
|
142
119
|
*/
|
|
143
|
-
|
|
144
120
|
BlockchainTransaction.prototype['energy_amounts'] = undefined;
|
|
121
|
+
|
|
145
122
|
/**
|
|
146
123
|
* @member {module:model/Status619Enum} status
|
|
147
124
|
*/
|
|
148
|
-
|
|
149
125
|
BlockchainTransaction.prototype['status'] = undefined;
|
|
126
|
+
|
|
150
127
|
/**
|
|
151
128
|
* @member {module:model/TypeEnum} type
|
|
152
129
|
*/
|
|
153
|
-
|
|
154
130
|
BlockchainTransaction.prototype['type'] = undefined;
|
|
131
|
+
|
|
155
132
|
/**
|
|
156
133
|
* Hash of blockchain transaction.
|
|
157
134
|
* @member {String} hash
|
|
158
135
|
*/
|
|
159
|
-
|
|
160
136
|
BlockchainTransaction.prototype['hash'] = undefined;
|
|
137
|
+
|
|
161
138
|
/**
|
|
162
139
|
* @member {Date} created_at
|
|
163
140
|
*/
|
|
164
|
-
|
|
165
141
|
BlockchainTransaction.prototype['created_at'] = undefined;
|
|
142
|
+
|
|
166
143
|
/**
|
|
167
144
|
* @member {Date} updated_at
|
|
168
145
|
*/
|
|
169
|
-
|
|
170
146
|
BlockchainTransaction.prototype['updated_at'] = undefined;
|
|
171
147
|
var _default = BlockchainTransaction;
|
|
172
148
|
exports["default"] = _default;
|
package/dist/model/Consumer.js
CHANGED
|
@@ -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 _Location = _interopRequireDefault(require("./Location"));
|
|
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 Consumer model module.
|
|
22
15
|
* @module model/Consumer
|
|
23
|
-
* @version 1.10.
|
|
16
|
+
* @version 1.10.3
|
|
24
17
|
*/
|
|
25
18
|
var Consumer = /*#__PURE__*/function () {
|
|
26
19
|
/**
|
|
@@ -31,22 +24,21 @@ var Consumer = /*#__PURE__*/function () {
|
|
|
31
24
|
*/
|
|
32
25
|
function Consumer(name, location) {
|
|
33
26
|
_classCallCheck(this, Consumer);
|
|
34
|
-
|
|
35
27
|
Consumer.initialize(this, name, location);
|
|
36
28
|
}
|
|
29
|
+
|
|
37
30
|
/**
|
|
38
31
|
* Initializes the fields of this object.
|
|
39
32
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
40
33
|
* Only for internal use.
|
|
41
34
|
*/
|
|
42
|
-
|
|
43
|
-
|
|
44
35
|
_createClass(Consumer, null, [{
|
|
45
36
|
key: "initialize",
|
|
46
37
|
value: function initialize(obj, name, location) {
|
|
47
38
|
obj['name'] = name;
|
|
48
39
|
obj['location'] = location;
|
|
49
40
|
}
|
|
41
|
+
|
|
50
42
|
/**
|
|
51
43
|
* Constructs a <code>Consumer</code> from a plain JavaScript object, optionally creating a new instance.
|
|
52
44
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -54,123 +46,107 @@ var Consumer = /*#__PURE__*/function () {
|
|
|
54
46
|
* @param {module:model/Consumer} obj Optional instance to populate.
|
|
55
47
|
* @return {module:model/Consumer} The populated <code>Consumer</code> instance.
|
|
56
48
|
*/
|
|
57
|
-
|
|
58
49
|
}, {
|
|
59
50
|
key: "constructFromObject",
|
|
60
51
|
value: function constructFromObject(data, obj) {
|
|
61
52
|
if (data) {
|
|
62
53
|
obj = obj || new Consumer();
|
|
63
|
-
|
|
64
54
|
if (data.hasOwnProperty('id')) {
|
|
65
55
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
66
56
|
}
|
|
67
|
-
|
|
68
57
|
if (data.hasOwnProperty('name')) {
|
|
69
58
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
70
59
|
}
|
|
71
|
-
|
|
72
60
|
if (data.hasOwnProperty('location')) {
|
|
73
61
|
obj['location'] = _Location["default"].constructFromObject(data['location']);
|
|
74
62
|
}
|
|
75
|
-
|
|
76
63
|
if (data.hasOwnProperty('blockchain_account_address')) {
|
|
77
64
|
obj['blockchain_account_address'] = _ApiClient["default"].convertToType(data['blockchain_account_address'], 'String');
|
|
78
65
|
}
|
|
79
|
-
|
|
80
66
|
if (data.hasOwnProperty('website_url')) {
|
|
81
67
|
obj['website_url'] = _ApiClient["default"].convertToType(data['website_url'], 'String');
|
|
82
68
|
}
|
|
83
|
-
|
|
84
69
|
if (data.hasOwnProperty('is_active')) {
|
|
85
70
|
obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean');
|
|
86
71
|
}
|
|
87
|
-
|
|
88
72
|
if (data.hasOwnProperty('retailer')) {
|
|
89
73
|
obj['retailer'] = _ApiClient["default"].convertToType(data['retailer'], 'String');
|
|
90
74
|
}
|
|
91
|
-
|
|
92
75
|
if (data.hasOwnProperty('energy_source_max_distance')) {
|
|
93
76
|
obj['energy_source_max_distance'] = _ApiClient["default"].convertToType(data['energy_source_max_distance'], 'Number');
|
|
94
77
|
}
|
|
95
|
-
|
|
96
78
|
if (data.hasOwnProperty('partner_id')) {
|
|
97
79
|
obj['partner_id'] = _ApiClient["default"].convertToType(data['partner_id'], 'String');
|
|
98
80
|
}
|
|
99
|
-
|
|
100
81
|
if (data.hasOwnProperty('created_at')) {
|
|
101
82
|
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
102
83
|
}
|
|
103
|
-
|
|
104
84
|
if (data.hasOwnProperty('updated_at')) {
|
|
105
85
|
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
106
86
|
}
|
|
107
87
|
}
|
|
108
|
-
|
|
109
88
|
return obj;
|
|
110
89
|
}
|
|
111
90
|
}]);
|
|
112
|
-
|
|
113
91
|
return Consumer;
|
|
114
92
|
}();
|
|
115
93
|
/**
|
|
116
94
|
* @member {String} id
|
|
117
95
|
*/
|
|
118
|
-
|
|
119
|
-
|
|
120
96
|
Consumer.prototype['id'] = undefined;
|
|
97
|
+
|
|
121
98
|
/**
|
|
122
99
|
* Required. 150 characters or fewer.
|
|
123
100
|
* @member {String} name
|
|
124
101
|
*/
|
|
125
|
-
|
|
126
102
|
Consumer.prototype['name'] = undefined;
|
|
103
|
+
|
|
127
104
|
/**
|
|
128
105
|
* @member {module:model/Location} location
|
|
129
106
|
*/
|
|
130
|
-
|
|
131
107
|
Consumer.prototype['location'] = undefined;
|
|
108
|
+
|
|
132
109
|
/**
|
|
133
110
|
* @member {String} blockchain_account_address
|
|
134
111
|
*/
|
|
135
|
-
|
|
136
112
|
Consumer.prototype['blockchain_account_address'] = undefined;
|
|
113
|
+
|
|
137
114
|
/**
|
|
138
115
|
* Not required. 200 characters or fewer.
|
|
139
116
|
* @member {String} website_url
|
|
140
117
|
*/
|
|
141
|
-
|
|
142
118
|
Consumer.prototype['website_url'] = undefined;
|
|
119
|
+
|
|
143
120
|
/**
|
|
144
121
|
* True if organization is active. Default True.
|
|
145
122
|
* @member {Boolean} is_active
|
|
146
123
|
*/
|
|
147
|
-
|
|
148
124
|
Consumer.prototype['is_active'] = undefined;
|
|
125
|
+
|
|
149
126
|
/**
|
|
150
127
|
* @member {String} retailer
|
|
151
128
|
*/
|
|
152
|
-
|
|
153
129
|
Consumer.prototype['retailer'] = undefined;
|
|
130
|
+
|
|
154
131
|
/**
|
|
155
132
|
* Distance in kilometers. If not assigned then max distance is not used to restrict matching.
|
|
156
133
|
* @member {Number} energy_source_max_distance
|
|
157
134
|
*/
|
|
158
|
-
|
|
159
135
|
Consumer.prototype['energy_source_max_distance'] = undefined;
|
|
136
|
+
|
|
160
137
|
/**
|
|
161
138
|
* @member {String} partner_id
|
|
162
139
|
*/
|
|
163
|
-
|
|
164
140
|
Consumer.prototype['partner_id'] = undefined;
|
|
141
|
+
|
|
165
142
|
/**
|
|
166
143
|
* @member {Date} created_at
|
|
167
144
|
*/
|
|
168
|
-
|
|
169
145
|
Consumer.prototype['created_at'] = undefined;
|
|
146
|
+
|
|
170
147
|
/**
|
|
171
148
|
* @member {Date} updated_at
|
|
172
149
|
*/
|
|
173
|
-
|
|
174
150
|
Consumer.prototype['updated_at'] = undefined;
|
|
175
151
|
var _default = Consumer;
|
|
176
152
|
exports["default"] = _default;
|
|
@@ -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 ConsumptionDataFileList model module.
|
|
20
14
|
* @module model/ConsumptionDataFileList
|
|
21
|
-
* @version 1.10.
|
|
15
|
+
* @version 1.10.3
|
|
22
16
|
*/
|
|
23
17
|
var ConsumptionDataFileList = /*#__PURE__*/function () {
|
|
24
18
|
/**
|
|
@@ -32,16 +26,14 @@ var ConsumptionDataFileList = /*#__PURE__*/function () {
|
|
|
32
26
|
*/
|
|
33
27
|
function ConsumptionDataFileList(fileList, consumer, eicColumnName, consumptionStartColumnName, amountConsumedColumnName) {
|
|
34
28
|
_classCallCheck(this, ConsumptionDataFileList);
|
|
35
|
-
|
|
36
29
|
ConsumptionDataFileList.initialize(this, fileList, consumer, eicColumnName, consumptionStartColumnName, amountConsumedColumnName);
|
|
37
30
|
}
|
|
31
|
+
|
|
38
32
|
/**
|
|
39
33
|
* Initializes the fields of this object.
|
|
40
34
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
41
35
|
* Only for internal use.
|
|
42
36
|
*/
|
|
43
|
-
|
|
44
|
-
|
|
45
37
|
_createClass(ConsumptionDataFileList, null, [{
|
|
46
38
|
key: "initialize",
|
|
47
39
|
value: function initialize(obj, fileList, consumer, eicColumnName, consumptionStartColumnName, amountConsumedColumnName) {
|
|
@@ -51,6 +43,7 @@ var ConsumptionDataFileList = /*#__PURE__*/function () {
|
|
|
51
43
|
obj['consumption_start_column_name'] = consumptionStartColumnName;
|
|
52
44
|
obj['amount_consumed_column_name'] = amountConsumedColumnName;
|
|
53
45
|
}
|
|
46
|
+
|
|
54
47
|
/**
|
|
55
48
|
* Constructs a <code>ConsumptionDataFileList</code> from a plain JavaScript object, optionally creating a new instance.
|
|
56
49
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -58,75 +51,64 @@ var ConsumptionDataFileList = /*#__PURE__*/function () {
|
|
|
58
51
|
* @param {module:model/ConsumptionDataFileList} obj Optional instance to populate.
|
|
59
52
|
* @return {module:model/ConsumptionDataFileList} The populated <code>ConsumptionDataFileList</code> instance.
|
|
60
53
|
*/
|
|
61
|
-
|
|
62
54
|
}, {
|
|
63
55
|
key: "constructFromObject",
|
|
64
56
|
value: function constructFromObject(data, obj) {
|
|
65
57
|
if (data) {
|
|
66
58
|
obj = obj || new ConsumptionDataFileList();
|
|
67
|
-
|
|
68
59
|
if (data.hasOwnProperty('file_list')) {
|
|
69
60
|
obj['file_list'] = _ApiClient["default"].convertToType(data['file_list'], ['String']);
|
|
70
61
|
}
|
|
71
|
-
|
|
72
62
|
if (data.hasOwnProperty('consumer')) {
|
|
73
63
|
obj['consumer'] = _ApiClient["default"].convertToType(data['consumer'], 'String');
|
|
74
64
|
}
|
|
75
|
-
|
|
76
65
|
if (data.hasOwnProperty('eic_column_name')) {
|
|
77
66
|
obj['eic_column_name'] = _ApiClient["default"].convertToType(data['eic_column_name'], 'String');
|
|
78
67
|
}
|
|
79
|
-
|
|
80
68
|
if (data.hasOwnProperty('consumption_start_column_name')) {
|
|
81
69
|
obj['consumption_start_column_name'] = _ApiClient["default"].convertToType(data['consumption_start_column_name'], 'String');
|
|
82
70
|
}
|
|
83
|
-
|
|
84
71
|
if (data.hasOwnProperty('amount_consumed_column_name')) {
|
|
85
72
|
obj['amount_consumed_column_name'] = _ApiClient["default"].convertToType(data['amount_consumed_column_name'], 'String');
|
|
86
73
|
}
|
|
87
|
-
|
|
88
74
|
if (data.hasOwnProperty('timezone')) {
|
|
89
75
|
obj['timezone'] = _ApiClient["default"].convertToType(data['timezone'], 'String');
|
|
90
76
|
}
|
|
91
77
|
}
|
|
92
|
-
|
|
93
78
|
return obj;
|
|
94
79
|
}
|
|
95
80
|
}]);
|
|
96
|
-
|
|
97
81
|
return ConsumptionDataFileList;
|
|
98
82
|
}();
|
|
99
83
|
/**
|
|
100
84
|
* @member {Array.<String>} file_list
|
|
101
85
|
*/
|
|
102
|
-
|
|
103
|
-
|
|
104
86
|
ConsumptionDataFileList.prototype['file_list'] = undefined;
|
|
87
|
+
|
|
105
88
|
/**
|
|
106
89
|
* @member {String} consumer
|
|
107
90
|
*/
|
|
108
|
-
|
|
109
91
|
ConsumptionDataFileList.prototype['consumer'] = undefined;
|
|
92
|
+
|
|
110
93
|
/**
|
|
111
94
|
* @member {String} eic_column_name
|
|
112
95
|
*/
|
|
113
|
-
|
|
114
96
|
ConsumptionDataFileList.prototype['eic_column_name'] = undefined;
|
|
97
|
+
|
|
115
98
|
/**
|
|
116
99
|
* @member {String} consumption_start_column_name
|
|
117
100
|
*/
|
|
118
|
-
|
|
119
101
|
ConsumptionDataFileList.prototype['consumption_start_column_name'] = undefined;
|
|
102
|
+
|
|
120
103
|
/**
|
|
121
104
|
* @member {String} amount_consumed_column_name
|
|
122
105
|
*/
|
|
123
|
-
|
|
124
106
|
ConsumptionDataFileList.prototype['amount_consumed_column_name'] = undefined;
|
|
107
|
+
|
|
125
108
|
/**
|
|
126
109
|
* @member {String} timezone
|
|
127
110
|
* @default 'Europe/Istanbul'
|
|
128
111
|
*/
|
|
129
|
-
|
|
130
112
|
ConsumptionDataFileList.prototype['timezone'] = 'Europe/Istanbul';
|
|
131
113
|
var _default = ConsumptionDataFileList;
|
|
132
114
|
exports["default"] = _default;
|