green_link_api 1.10.2 → 1.10.4
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 SmartContract model module.
|
|
20
14
|
* @module model/SmartContract
|
|
21
|
-
* @version 1.10.
|
|
15
|
+
* @version 1.10.4
|
|
22
16
|
*/
|
|
23
17
|
var SmartContract = /*#__PURE__*/function () {
|
|
24
18
|
/**
|
|
@@ -29,22 +23,21 @@ var SmartContract = /*#__PURE__*/function () {
|
|
|
29
23
|
*/
|
|
30
24
|
function SmartContract(name, abi) {
|
|
31
25
|
_classCallCheck(this, SmartContract);
|
|
32
|
-
|
|
33
26
|
SmartContract.initialize(this, name, abi);
|
|
34
27
|
}
|
|
28
|
+
|
|
35
29
|
/**
|
|
36
30
|
* Initializes the fields of this object.
|
|
37
31
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
38
32
|
* Only for internal use.
|
|
39
33
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
34
|
_createClass(SmartContract, null, [{
|
|
43
35
|
key: "initialize",
|
|
44
36
|
value: function initialize(obj, name, abi) {
|
|
45
37
|
obj['name'] = name;
|
|
46
38
|
obj['abi'] = abi;
|
|
47
39
|
}
|
|
40
|
+
|
|
48
41
|
/**
|
|
49
42
|
* Constructs a <code>SmartContract</code> from a plain JavaScript object, optionally creating a new instance.
|
|
50
43
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -52,88 +45,76 @@ var SmartContract = /*#__PURE__*/function () {
|
|
|
52
45
|
* @param {module:model/SmartContract} obj Optional instance to populate.
|
|
53
46
|
* @return {module:model/SmartContract} The populated <code>SmartContract</code> instance.
|
|
54
47
|
*/
|
|
55
|
-
|
|
56
48
|
}, {
|
|
57
49
|
key: "constructFromObject",
|
|
58
50
|
value: function constructFromObject(data, obj) {
|
|
59
51
|
if (data) {
|
|
60
52
|
obj = obj || new SmartContract();
|
|
61
|
-
|
|
62
53
|
if (data.hasOwnProperty('id')) {
|
|
63
54
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
64
55
|
}
|
|
65
|
-
|
|
66
56
|
if (data.hasOwnProperty('name')) {
|
|
67
57
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
68
58
|
}
|
|
69
|
-
|
|
70
59
|
if (data.hasOwnProperty('blockchain_account_address')) {
|
|
71
60
|
obj['blockchain_account_address'] = _ApiClient["default"].convertToType(data['blockchain_account_address'], 'String');
|
|
72
61
|
}
|
|
73
|
-
|
|
74
62
|
if (data.hasOwnProperty('abi')) {
|
|
75
63
|
obj['abi'] = _ApiClient["default"].convertToType(data['abi'], {
|
|
76
64
|
'String': Object
|
|
77
65
|
});
|
|
78
66
|
}
|
|
79
|
-
|
|
80
67
|
if (data.hasOwnProperty('is_active')) {
|
|
81
68
|
obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean');
|
|
82
69
|
}
|
|
83
|
-
|
|
84
70
|
if (data.hasOwnProperty('created_at')) {
|
|
85
71
|
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
86
72
|
}
|
|
87
|
-
|
|
88
73
|
if (data.hasOwnProperty('updated_at')) {
|
|
89
74
|
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
90
75
|
}
|
|
91
76
|
}
|
|
92
|
-
|
|
93
77
|
return obj;
|
|
94
78
|
}
|
|
95
79
|
}]);
|
|
96
|
-
|
|
97
80
|
return SmartContract;
|
|
98
81
|
}();
|
|
99
82
|
/**
|
|
100
83
|
* @member {String} id
|
|
101
84
|
*/
|
|
102
|
-
|
|
103
|
-
|
|
104
85
|
SmartContract.prototype['id'] = undefined;
|
|
86
|
+
|
|
105
87
|
/**
|
|
106
88
|
* Required. 150 characters or fewer.
|
|
107
89
|
* @member {String} name
|
|
108
90
|
*/
|
|
109
|
-
|
|
110
91
|
SmartContract.prototype['name'] = undefined;
|
|
92
|
+
|
|
111
93
|
/**
|
|
112
94
|
* Production site's blockchain account address.
|
|
113
95
|
* @member {String} blockchain_account_address
|
|
114
96
|
*/
|
|
115
|
-
|
|
116
97
|
SmartContract.prototype['blockchain_account_address'] = undefined;
|
|
98
|
+
|
|
117
99
|
/**
|
|
118
100
|
* @member {Object.<String, Object>} abi
|
|
119
101
|
*/
|
|
120
|
-
|
|
121
102
|
SmartContract.prototype['abi'] = undefined;
|
|
103
|
+
|
|
122
104
|
/**
|
|
123
105
|
* True if contract is active. Default True.
|
|
124
106
|
* @member {Boolean} is_active
|
|
125
107
|
*/
|
|
126
|
-
|
|
127
108
|
SmartContract.prototype['is_active'] = undefined;
|
|
109
|
+
|
|
128
110
|
/**
|
|
129
111
|
* @member {Date} created_at
|
|
130
112
|
*/
|
|
131
|
-
|
|
132
113
|
SmartContract.prototype['created_at'] = undefined;
|
|
114
|
+
|
|
133
115
|
/**
|
|
134
116
|
* @member {Date} updated_at
|
|
135
117
|
*/
|
|
136
|
-
|
|
137
118
|
SmartContract.prototype['updated_at'] = undefined;
|
|
138
119
|
var _default = SmartContract;
|
|
139
120
|
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 Status619Enum.
|
|
22
15
|
* @enum {}
|
|
@@ -25,14 +18,10 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
25
18
|
var Status619Enum = /*#__PURE__*/function () {
|
|
26
19
|
function Status619Enum() {
|
|
27
20
|
_classCallCheck(this, Status619Enum);
|
|
28
|
-
|
|
29
21
|
_defineProperty(this, "unstarted", "unstarted");
|
|
30
|
-
|
|
31
22
|
_defineProperty(this, "started", "started");
|
|
32
|
-
|
|
33
23
|
_defineProperty(this, "finished", "finished");
|
|
34
24
|
}
|
|
35
|
-
|
|
36
25
|
_createClass(Status619Enum, null, [{
|
|
37
26
|
key: "constructFromObject",
|
|
38
27
|
value:
|
|
@@ -45,8 +34,6 @@ var Status619Enum = /*#__PURE__*/function () {
|
|
|
45
34
|
return object;
|
|
46
35
|
}
|
|
47
36
|
}]);
|
|
48
|
-
|
|
49
37
|
return Status619Enum;
|
|
50
38
|
}();
|
|
51
|
-
|
|
52
39
|
exports["default"] = Status619Enum;
|
package/dist/model/Token.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 Token model module.
|
|
20
14
|
* @module model/Token
|
|
21
|
-
* @version 1.10.
|
|
15
|
+
* @version 1.10.4
|
|
22
16
|
*/
|
|
23
17
|
var Token = /*#__PURE__*/function () {
|
|
24
18
|
/**
|
|
@@ -29,21 +23,20 @@ var Token = /*#__PURE__*/function () {
|
|
|
29
23
|
*/
|
|
30
24
|
function Token(key) {
|
|
31
25
|
_classCallCheck(this, Token);
|
|
32
|
-
|
|
33
26
|
Token.initialize(this, key);
|
|
34
27
|
}
|
|
28
|
+
|
|
35
29
|
/**
|
|
36
30
|
* Initializes the fields of this object.
|
|
37
31
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
38
32
|
* Only for internal use.
|
|
39
33
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
34
|
_createClass(Token, null, [{
|
|
43
35
|
key: "initialize",
|
|
44
36
|
value: function initialize(obj, key) {
|
|
45
37
|
obj['key'] = key;
|
|
46
38
|
}
|
|
39
|
+
|
|
47
40
|
/**
|
|
48
41
|
* Constructs a <code>Token</code> from a plain JavaScript object, optionally creating a new instance.
|
|
49
42
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -51,29 +44,23 @@ var Token = /*#__PURE__*/function () {
|
|
|
51
44
|
* @param {module:model/Token} obj Optional instance to populate.
|
|
52
45
|
* @return {module:model/Token} The populated <code>Token</code> instance.
|
|
53
46
|
*/
|
|
54
|
-
|
|
55
47
|
}, {
|
|
56
48
|
key: "constructFromObject",
|
|
57
49
|
value: function constructFromObject(data, obj) {
|
|
58
50
|
if (data) {
|
|
59
51
|
obj = obj || new Token();
|
|
60
|
-
|
|
61
52
|
if (data.hasOwnProperty('key')) {
|
|
62
53
|
obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String');
|
|
63
54
|
}
|
|
64
55
|
}
|
|
65
|
-
|
|
66
56
|
return obj;
|
|
67
57
|
}
|
|
68
58
|
}]);
|
|
69
|
-
|
|
70
59
|
return Token;
|
|
71
60
|
}();
|
|
72
61
|
/**
|
|
73
62
|
* @member {String} key
|
|
74
63
|
*/
|
|
75
|
-
|
|
76
|
-
|
|
77
64
|
Token.prototype['key'] = undefined;
|
|
78
65
|
var _default = Token;
|
|
79
66
|
exports["default"] = _default;
|
package/dist/model/TypeEnum.js
CHANGED
|
@@ -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 TypeEnum.
|
|
22
15
|
* @enum {}
|
|
@@ -25,14 +18,10 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
25
18
|
var TypeEnum = /*#__PURE__*/function () {
|
|
26
19
|
function TypeEnum() {
|
|
27
20
|
_classCallCheck(this, TypeEnum);
|
|
28
|
-
|
|
29
21
|
_defineProperty(this, "tokenize_consumption", "tokenize_consumption");
|
|
30
|
-
|
|
31
22
|
_defineProperty(this, "tokenize_production", "tokenize_production");
|
|
32
|
-
|
|
33
23
|
_defineProperty(this, "transfer_matched_tokens", "transfer_matched_tokens");
|
|
34
24
|
}
|
|
35
|
-
|
|
36
25
|
_createClass(TypeEnum, null, [{
|
|
37
26
|
key: "constructFromObject",
|
|
38
27
|
value:
|
|
@@ -45,8 +34,6 @@ var TypeEnum = /*#__PURE__*/function () {
|
|
|
45
34
|
return object;
|
|
46
35
|
}
|
|
47
36
|
}]);
|
|
48
|
-
|
|
49
37
|
return TypeEnum;
|
|
50
38
|
}();
|
|
51
|
-
|
|
52
39
|
exports["default"] = TypeEnum;
|
|
@@ -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 UnprocessedRow model module.
|
|
20
14
|
* @module model/UnprocessedRow
|
|
21
|
-
* @version 1.10.
|
|
15
|
+
* @version 1.10.4
|
|
22
16
|
*/
|
|
23
17
|
var UnprocessedRow = /*#__PURE__*/function () {
|
|
24
18
|
/**
|
|
@@ -31,16 +25,14 @@ var UnprocessedRow = /*#__PURE__*/function () {
|
|
|
31
25
|
*/
|
|
32
26
|
function UnprocessedRow(rowNumber, errorMessage, uploadedFile, owner) {
|
|
33
27
|
_classCallCheck(this, UnprocessedRow);
|
|
34
|
-
|
|
35
28
|
UnprocessedRow.initialize(this, rowNumber, errorMessage, uploadedFile, owner);
|
|
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(UnprocessedRow, null, [{
|
|
45
37
|
key: "initialize",
|
|
46
38
|
value: function initialize(obj, rowNumber, errorMessage, uploadedFile, owner) {
|
|
@@ -49,6 +41,7 @@ var UnprocessedRow = /*#__PURE__*/function () {
|
|
|
49
41
|
obj['uploaded_file'] = uploadedFile;
|
|
50
42
|
obj['owner'] = owner;
|
|
51
43
|
}
|
|
44
|
+
|
|
52
45
|
/**
|
|
53
46
|
* Constructs a <code>UnprocessedRow</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,85 +49,73 @@ var UnprocessedRow = /*#__PURE__*/function () {
|
|
|
56
49
|
* @param {module:model/UnprocessedRow} obj Optional instance to populate.
|
|
57
50
|
* @return {module:model/UnprocessedRow} The populated <code>UnprocessedRow</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 UnprocessedRow();
|
|
65
|
-
|
|
66
57
|
if (data.hasOwnProperty('id')) {
|
|
67
58
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
68
59
|
}
|
|
69
|
-
|
|
70
60
|
if (data.hasOwnProperty('row_number')) {
|
|
71
61
|
obj['row_number'] = _ApiClient["default"].convertToType(data['row_number'], 'Number');
|
|
72
62
|
}
|
|
73
|
-
|
|
74
63
|
if (data.hasOwnProperty('error_message')) {
|
|
75
64
|
obj['error_message'] = _ApiClient["default"].convertToType(data['error_message'], 'String');
|
|
76
65
|
}
|
|
77
|
-
|
|
78
66
|
if (data.hasOwnProperty('uploaded_file')) {
|
|
79
67
|
obj['uploaded_file'] = _ApiClient["default"].convertToType(data['uploaded_file'], 'String');
|
|
80
68
|
}
|
|
81
|
-
|
|
82
69
|
if (data.hasOwnProperty('owner')) {
|
|
83
70
|
obj['owner'] = _ApiClient["default"].convertToType(data['owner'], 'String');
|
|
84
71
|
}
|
|
85
|
-
|
|
86
72
|
if (data.hasOwnProperty('updated_at')) {
|
|
87
73
|
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
88
74
|
}
|
|
89
|
-
|
|
90
75
|
if (data.hasOwnProperty('created_at')) {
|
|
91
76
|
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
92
77
|
}
|
|
93
78
|
}
|
|
94
|
-
|
|
95
79
|
return obj;
|
|
96
80
|
}
|
|
97
81
|
}]);
|
|
98
|
-
|
|
99
82
|
return UnprocessedRow;
|
|
100
83
|
}();
|
|
101
84
|
/**
|
|
102
85
|
* @member {String} id
|
|
103
86
|
*/
|
|
104
|
-
|
|
105
|
-
|
|
106
87
|
UnprocessedRow.prototype['id'] = undefined;
|
|
88
|
+
|
|
107
89
|
/**
|
|
108
90
|
* Row number with an issue.
|
|
109
91
|
* @member {Number} row_number
|
|
110
92
|
*/
|
|
111
|
-
|
|
112
93
|
UnprocessedRow.prototype['row_number'] = undefined;
|
|
94
|
+
|
|
113
95
|
/**
|
|
114
96
|
* Returns error information on unprocessed rows. Max length is 200.
|
|
115
97
|
* @member {String} error_message
|
|
116
98
|
*/
|
|
117
|
-
|
|
118
99
|
UnprocessedRow.prototype['error_message'] = undefined;
|
|
100
|
+
|
|
119
101
|
/**
|
|
120
102
|
* @member {String} uploaded_file
|
|
121
103
|
*/
|
|
122
|
-
|
|
123
104
|
UnprocessedRow.prototype['uploaded_file'] = undefined;
|
|
105
|
+
|
|
124
106
|
/**
|
|
125
107
|
* @member {String} owner
|
|
126
108
|
*/
|
|
127
|
-
|
|
128
109
|
UnprocessedRow.prototype['owner'] = undefined;
|
|
110
|
+
|
|
129
111
|
/**
|
|
130
112
|
* @member {Date} updated_at
|
|
131
113
|
*/
|
|
132
|
-
|
|
133
114
|
UnprocessedRow.prototype['updated_at'] = undefined;
|
|
115
|
+
|
|
134
116
|
/**
|
|
135
117
|
* @member {Date} created_at
|
|
136
118
|
*/
|
|
137
|
-
|
|
138
119
|
UnprocessedRow.prototype['created_at'] = undefined;
|
|
139
120
|
var _default = UnprocessedRow;
|
|
140
121
|
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 _EacTypeEnum = _interopRequireDefault(require("./EacTypeEnum"));
|
|
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 UploadedCertificate model module.
|
|
22
15
|
* @module model/UploadedCertificate
|
|
23
|
-
* @version 1.10.
|
|
16
|
+
* @version 1.10.4
|
|
24
17
|
*/
|
|
25
18
|
var UploadedCertificate = /*#__PURE__*/function () {
|
|
26
19
|
/**
|
|
@@ -36,16 +29,14 @@ var UploadedCertificate = /*#__PURE__*/function () {
|
|
|
36
29
|
*/
|
|
37
30
|
function UploadedCertificate(name, upload, eacType, consumer, producer, periodStart, periodEnd) {
|
|
38
31
|
_classCallCheck(this, UploadedCertificate);
|
|
39
|
-
|
|
40
32
|
UploadedCertificate.initialize(this, name, upload, eacType, consumer, producer, periodStart, periodEnd);
|
|
41
33
|
}
|
|
34
|
+
|
|
42
35
|
/**
|
|
43
36
|
* Initializes the fields of this object.
|
|
44
37
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
45
38
|
* Only for internal use.
|
|
46
39
|
*/
|
|
47
|
-
|
|
48
|
-
|
|
49
40
|
_createClass(UploadedCertificate, null, [{
|
|
50
41
|
key: "initialize",
|
|
51
42
|
value: function initialize(obj, name, upload, eacType, consumer, producer, periodStart, periodEnd) {
|
|
@@ -57,6 +48,7 @@ var UploadedCertificate = /*#__PURE__*/function () {
|
|
|
57
48
|
obj['period_start'] = periodStart;
|
|
58
49
|
obj['period_end'] = periodEnd;
|
|
59
50
|
}
|
|
51
|
+
|
|
60
52
|
/**
|
|
61
53
|
* Constructs a <code>UploadedCertificate</code> from a plain JavaScript object, optionally creating a new instance.
|
|
62
54
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -64,113 +56,98 @@ var UploadedCertificate = /*#__PURE__*/function () {
|
|
|
64
56
|
* @param {module:model/UploadedCertificate} obj Optional instance to populate.
|
|
65
57
|
* @return {module:model/UploadedCertificate} The populated <code>UploadedCertificate</code> instance.
|
|
66
58
|
*/
|
|
67
|
-
|
|
68
59
|
}, {
|
|
69
60
|
key: "constructFromObject",
|
|
70
61
|
value: function constructFromObject(data, obj) {
|
|
71
62
|
if (data) {
|
|
72
63
|
obj = obj || new UploadedCertificate();
|
|
73
|
-
|
|
74
64
|
if (data.hasOwnProperty('id')) {
|
|
75
65
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
76
66
|
}
|
|
77
|
-
|
|
78
67
|
if (data.hasOwnProperty('name')) {
|
|
79
68
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
80
69
|
}
|
|
81
|
-
|
|
82
70
|
if (data.hasOwnProperty('upload')) {
|
|
83
71
|
obj['upload'] = _ApiClient["default"].convertToType(data['upload'], 'String');
|
|
84
72
|
}
|
|
85
|
-
|
|
86
73
|
if (data.hasOwnProperty('content_type')) {
|
|
87
74
|
obj['content_type'] = _ApiClient["default"].convertToType(data['content_type'], 'String');
|
|
88
75
|
}
|
|
89
|
-
|
|
90
76
|
if (data.hasOwnProperty('eac_type')) {
|
|
91
77
|
obj['eac_type'] = _ApiClient["default"].convertToType(data['eac_type'], _EacTypeEnum["default"]);
|
|
92
78
|
}
|
|
93
|
-
|
|
94
79
|
if (data.hasOwnProperty('consumer')) {
|
|
95
80
|
obj['consumer'] = _ApiClient["default"].convertToType(data['consumer'], 'String');
|
|
96
81
|
}
|
|
97
|
-
|
|
98
82
|
if (data.hasOwnProperty('producer')) {
|
|
99
83
|
obj['producer'] = _ApiClient["default"].convertToType(data['producer'], 'String');
|
|
100
84
|
}
|
|
101
|
-
|
|
102
85
|
if (data.hasOwnProperty('period_start')) {
|
|
103
86
|
obj['period_start'] = _ApiClient["default"].convertToType(data['period_start'], 'Date');
|
|
104
87
|
}
|
|
105
|
-
|
|
106
88
|
if (data.hasOwnProperty('period_end')) {
|
|
107
89
|
obj['period_end'] = _ApiClient["default"].convertToType(data['period_end'], 'Date');
|
|
108
90
|
}
|
|
109
|
-
|
|
110
91
|
if (data.hasOwnProperty('created_at')) {
|
|
111
92
|
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
112
93
|
}
|
|
113
94
|
}
|
|
114
|
-
|
|
115
95
|
return obj;
|
|
116
96
|
}
|
|
117
97
|
}]);
|
|
118
|
-
|
|
119
98
|
return UploadedCertificate;
|
|
120
99
|
}();
|
|
121
100
|
/**
|
|
122
101
|
* @member {String} id
|
|
123
102
|
*/
|
|
124
|
-
|
|
125
|
-
|
|
126
103
|
UploadedCertificate.prototype['id'] = undefined;
|
|
104
|
+
|
|
127
105
|
/**
|
|
128
106
|
* Required. Max length is 200.
|
|
129
107
|
* @member {String} name
|
|
130
108
|
*/
|
|
131
|
-
|
|
132
109
|
UploadedCertificate.prototype['name'] = undefined;
|
|
110
|
+
|
|
133
111
|
/**
|
|
134
112
|
* @member {String} upload
|
|
135
113
|
*/
|
|
136
|
-
|
|
137
114
|
UploadedCertificate.prototype['upload'] = undefined;
|
|
115
|
+
|
|
138
116
|
/**
|
|
139
117
|
* @member {String} content_type
|
|
140
118
|
* @default 'Energy attribute certificates'
|
|
141
119
|
*/
|
|
142
|
-
|
|
143
120
|
UploadedCertificate.prototype['content_type'] = 'Energy attribute certificates';
|
|
121
|
+
|
|
144
122
|
/**
|
|
145
123
|
* Required. Select from available choices.
|
|
146
124
|
* @member {module:model/EacTypeEnum} eac_type
|
|
147
125
|
*/
|
|
148
|
-
|
|
149
126
|
UploadedCertificate.prototype['eac_type'] = undefined;
|
|
127
|
+
|
|
150
128
|
/**
|
|
151
129
|
* @member {String} consumer
|
|
152
130
|
*/
|
|
153
|
-
|
|
154
131
|
UploadedCertificate.prototype['consumer'] = undefined;
|
|
132
|
+
|
|
155
133
|
/**
|
|
156
134
|
* @member {String} producer
|
|
157
135
|
*/
|
|
158
|
-
|
|
159
136
|
UploadedCertificate.prototype['producer'] = undefined;
|
|
137
|
+
|
|
160
138
|
/**
|
|
161
139
|
* @member {Date} period_start
|
|
162
140
|
*/
|
|
163
|
-
|
|
164
141
|
UploadedCertificate.prototype['period_start'] = undefined;
|
|
142
|
+
|
|
165
143
|
/**
|
|
166
144
|
* @member {Date} period_end
|
|
167
145
|
*/
|
|
168
|
-
|
|
169
146
|
UploadedCertificate.prototype['period_end'] = undefined;
|
|
147
|
+
|
|
170
148
|
/**
|
|
171
149
|
* @member {Date} created_at
|
|
172
150
|
*/
|
|
173
|
-
|
|
174
151
|
UploadedCertificate.prototype['created_at'] = undefined;
|
|
175
152
|
var _default = UploadedCertificate;
|
|
176
153
|
exports["default"] = _default;
|