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,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 ProductionSiteUpdate model module.
|
|
22
15
|
* @module model/ProductionSiteUpdate
|
|
23
|
-
* @version 1.10.
|
|
16
|
+
* @version 1.10.3
|
|
24
17
|
*/
|
|
25
18
|
var ProductionSiteUpdate = /*#__PURE__*/function () {
|
|
26
19
|
/**
|
|
@@ -33,16 +26,14 @@ var ProductionSiteUpdate = /*#__PURE__*/function () {
|
|
|
33
26
|
*/
|
|
34
27
|
function ProductionSiteUpdate(location, name, energySource, technologyOrFuelType) {
|
|
35
28
|
_classCallCheck(this, ProductionSiteUpdate);
|
|
36
|
-
|
|
37
29
|
ProductionSiteUpdate.initialize(this, location, name, energySource, technologyOrFuelType);
|
|
38
30
|
}
|
|
31
|
+
|
|
39
32
|
/**
|
|
40
33
|
* Initializes the fields of this object.
|
|
41
34
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
42
35
|
* Only for internal use.
|
|
43
36
|
*/
|
|
44
|
-
|
|
45
|
-
|
|
46
37
|
_createClass(ProductionSiteUpdate, null, [{
|
|
47
38
|
key: "initialize",
|
|
48
39
|
value: function initialize(obj, location, name, energySource, technologyOrFuelType) {
|
|
@@ -51,6 +42,7 @@ var ProductionSiteUpdate = /*#__PURE__*/function () {
|
|
|
51
42
|
obj['energy_source'] = energySource;
|
|
52
43
|
obj['technology_or_fuel_type'] = technologyOrFuelType;
|
|
53
44
|
}
|
|
45
|
+
|
|
54
46
|
/**
|
|
55
47
|
* Constructs a <code>ProductionSiteUpdate</code> from a plain JavaScript object, optionally creating a new instance.
|
|
56
48
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -58,188 +50,165 @@ var ProductionSiteUpdate = /*#__PURE__*/function () {
|
|
|
58
50
|
* @param {module:model/ProductionSiteUpdate} obj Optional instance to populate.
|
|
59
51
|
* @return {module:model/ProductionSiteUpdate} The populated <code>ProductionSiteUpdate</code> instance.
|
|
60
52
|
*/
|
|
61
|
-
|
|
62
53
|
}, {
|
|
63
54
|
key: "constructFromObject",
|
|
64
55
|
value: function constructFromObject(data, obj) {
|
|
65
56
|
if (data) {
|
|
66
57
|
obj = obj || new ProductionSiteUpdate();
|
|
67
|
-
|
|
68
58
|
if (data.hasOwnProperty('id')) {
|
|
69
59
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
70
60
|
}
|
|
71
|
-
|
|
72
61
|
if (data.hasOwnProperty('producer')) {
|
|
73
62
|
obj['producer'] = _ApiClient["default"].convertToType(data['producer'], 'String');
|
|
74
63
|
}
|
|
75
|
-
|
|
76
64
|
if (data.hasOwnProperty('grid_operator')) {
|
|
77
65
|
obj['grid_operator'] = _ApiClient["default"].convertToType(data['grid_operator'], 'String');
|
|
78
66
|
}
|
|
79
|
-
|
|
80
67
|
if (data.hasOwnProperty('issuer')) {
|
|
81
68
|
obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String');
|
|
82
69
|
}
|
|
83
|
-
|
|
84
70
|
if (data.hasOwnProperty('retailer')) {
|
|
85
71
|
obj['retailer'] = _ApiClient["default"].convertToType(data['retailer'], 'String');
|
|
86
72
|
}
|
|
87
|
-
|
|
88
73
|
if (data.hasOwnProperty('location')) {
|
|
89
74
|
obj['location'] = _Location["default"].constructFromObject(data['location']);
|
|
90
75
|
}
|
|
91
|
-
|
|
92
76
|
if (data.hasOwnProperty('name')) {
|
|
93
77
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
94
78
|
}
|
|
95
|
-
|
|
96
79
|
if (data.hasOwnProperty('site_logo')) {
|
|
97
80
|
obj['site_logo'] = _ApiClient["default"].convertToType(data['site_logo'], 'String');
|
|
98
81
|
}
|
|
99
|
-
|
|
100
82
|
if (data.hasOwnProperty('capacity')) {
|
|
101
83
|
obj['capacity'] = _ApiClient["default"].convertToType(data['capacity'], 'Number');
|
|
102
84
|
}
|
|
103
|
-
|
|
104
85
|
if (data.hasOwnProperty('energy_source')) {
|
|
105
86
|
obj['energy_source'] = _ApiClient["default"].convertToType(data['energy_source'], 'String');
|
|
106
87
|
}
|
|
107
|
-
|
|
108
88
|
if (data.hasOwnProperty('technology_or_fuel_type')) {
|
|
109
89
|
obj['technology_or_fuel_type'] = _ApiClient["default"].convertToType(data['technology_or_fuel_type'], 'String');
|
|
110
90
|
}
|
|
111
|
-
|
|
112
91
|
if (data.hasOwnProperty('eic')) {
|
|
113
92
|
obj['eic'] = _ApiClient["default"].convertToType(data['eic'], 'String');
|
|
114
93
|
}
|
|
115
|
-
|
|
116
94
|
if (data.hasOwnProperty('power_plant_id')) {
|
|
117
95
|
obj['power_plant_id'] = _ApiClient["default"].convertToType(data['power_plant_id'], 'Number');
|
|
118
96
|
}
|
|
119
|
-
|
|
120
97
|
if (data.hasOwnProperty('blockchain_account_address')) {
|
|
121
98
|
obj['blockchain_account_address'] = _ApiClient["default"].convertToType(data['blockchain_account_address'], 'String');
|
|
122
99
|
}
|
|
123
|
-
|
|
124
100
|
if (data.hasOwnProperty('is_active')) {
|
|
125
101
|
obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean');
|
|
126
102
|
}
|
|
127
|
-
|
|
128
103
|
if (data.hasOwnProperty('is_licensed')) {
|
|
129
104
|
obj['is_licensed'] = _ApiClient["default"].convertToType(data['is_licensed'], 'Boolean');
|
|
130
105
|
}
|
|
131
|
-
|
|
132
106
|
if (data.hasOwnProperty('created_at')) {
|
|
133
107
|
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
134
108
|
}
|
|
135
|
-
|
|
136
109
|
if (data.hasOwnProperty('updated_at')) {
|
|
137
110
|
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
138
111
|
}
|
|
139
112
|
}
|
|
140
|
-
|
|
141
113
|
return obj;
|
|
142
114
|
}
|
|
143
115
|
}]);
|
|
144
|
-
|
|
145
116
|
return ProductionSiteUpdate;
|
|
146
117
|
}();
|
|
147
118
|
/**
|
|
148
119
|
* @member {String} id
|
|
149
120
|
*/
|
|
150
|
-
|
|
151
|
-
|
|
152
121
|
ProductionSiteUpdate.prototype['id'] = undefined;
|
|
122
|
+
|
|
153
123
|
/**
|
|
154
124
|
* @member {String} producer
|
|
155
125
|
*/
|
|
156
|
-
|
|
157
126
|
ProductionSiteUpdate.prototype['producer'] = undefined;
|
|
127
|
+
|
|
158
128
|
/**
|
|
159
129
|
* @member {String} grid_operator
|
|
160
130
|
*/
|
|
161
|
-
|
|
162
131
|
ProductionSiteUpdate.prototype['grid_operator'] = undefined;
|
|
132
|
+
|
|
163
133
|
/**
|
|
164
134
|
* @member {String} issuer
|
|
165
135
|
*/
|
|
166
|
-
|
|
167
136
|
ProductionSiteUpdate.prototype['issuer'] = undefined;
|
|
137
|
+
|
|
168
138
|
/**
|
|
169
139
|
* @member {String} retailer
|
|
170
140
|
*/
|
|
171
|
-
|
|
172
141
|
ProductionSiteUpdate.prototype['retailer'] = undefined;
|
|
142
|
+
|
|
173
143
|
/**
|
|
174
144
|
* @member {module:model/Location} location
|
|
175
145
|
*/
|
|
176
|
-
|
|
177
146
|
ProductionSiteUpdate.prototype['location'] = undefined;
|
|
147
|
+
|
|
178
148
|
/**
|
|
179
149
|
* Required. 150 characters or fewer.
|
|
180
150
|
* @member {String} name
|
|
181
151
|
*/
|
|
182
|
-
|
|
183
152
|
ProductionSiteUpdate.prototype['name'] = undefined;
|
|
153
|
+
|
|
184
154
|
/**
|
|
185
155
|
* @member {String} site_logo
|
|
186
156
|
*/
|
|
187
|
-
|
|
188
157
|
ProductionSiteUpdate.prototype['site_logo'] = undefined;
|
|
158
|
+
|
|
189
159
|
/**
|
|
190
160
|
* (Optional) Value should be in KWh.
|
|
191
161
|
* @member {Number} capacity
|
|
192
162
|
*/
|
|
193
|
-
|
|
194
163
|
ProductionSiteUpdate.prototype['capacity'] = undefined;
|
|
164
|
+
|
|
195
165
|
/**
|
|
196
166
|
* @member {String} energy_source
|
|
197
167
|
*/
|
|
198
|
-
|
|
199
168
|
ProductionSiteUpdate.prototype['energy_source'] = undefined;
|
|
169
|
+
|
|
200
170
|
/**
|
|
201
171
|
* @member {String} technology_or_fuel_type
|
|
202
172
|
*/
|
|
203
|
-
|
|
204
173
|
ProductionSiteUpdate.prototype['technology_or_fuel_type'] = undefined;
|
|
174
|
+
|
|
205
175
|
/**
|
|
206
176
|
* Required. 30 characters or fewer.
|
|
207
177
|
* @member {String} eic
|
|
208
178
|
*/
|
|
209
|
-
|
|
210
179
|
ProductionSiteUpdate.prototype['eic'] = undefined;
|
|
180
|
+
|
|
211
181
|
/**
|
|
212
182
|
* Power plant ID of the site. Used for querying EPIAS Transparency Platform.
|
|
213
183
|
* @member {Number} power_plant_id
|
|
214
184
|
*/
|
|
215
|
-
|
|
216
185
|
ProductionSiteUpdate.prototype['power_plant_id'] = undefined;
|
|
186
|
+
|
|
217
187
|
/**
|
|
218
188
|
* @member {String} blockchain_account_address
|
|
219
189
|
*/
|
|
220
|
-
|
|
221
190
|
ProductionSiteUpdate.prototype['blockchain_account_address'] = undefined;
|
|
191
|
+
|
|
222
192
|
/**
|
|
223
193
|
* True if organization is active. Default True.
|
|
224
194
|
* @member {Boolean} is_active
|
|
225
195
|
*/
|
|
226
|
-
|
|
227
196
|
ProductionSiteUpdate.prototype['is_active'] = undefined;
|
|
197
|
+
|
|
228
198
|
/**
|
|
229
199
|
* True if site is licensed. Default True.
|
|
230
200
|
* @member {Boolean} is_licensed
|
|
231
201
|
*/
|
|
232
|
-
|
|
233
202
|
ProductionSiteUpdate.prototype['is_licensed'] = undefined;
|
|
203
|
+
|
|
234
204
|
/**
|
|
235
205
|
* @member {Date} created_at
|
|
236
206
|
*/
|
|
237
|
-
|
|
238
207
|
ProductionSiteUpdate.prototype['created_at'] = undefined;
|
|
208
|
+
|
|
239
209
|
/**
|
|
240
210
|
* @member {Date} updated_at
|
|
241
211
|
*/
|
|
242
|
-
|
|
243
212
|
ProductionSiteUpdate.prototype['updated_at'] = undefined;
|
|
244
213
|
var _default = ProductionSiteUpdate;
|
|
245
214
|
exports["default"] = _default;
|
package/dist/model/Register.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 Register model module.
|
|
20
14
|
* @module model/Register
|
|
21
|
-
* @version 1.10.
|
|
15
|
+
* @version 1.10.3
|
|
22
16
|
*/
|
|
23
17
|
var Register = /*#__PURE__*/function () {
|
|
24
18
|
/**
|
|
@@ -32,16 +26,14 @@ var Register = /*#__PURE__*/function () {
|
|
|
32
26
|
*/
|
|
33
27
|
function Register(firstName, lastName, email, password1, password2) {
|
|
34
28
|
_classCallCheck(this, Register);
|
|
35
|
-
|
|
36
29
|
Register.initialize(this, firstName, lastName, email, password1, password2);
|
|
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(Register, null, [{
|
|
46
38
|
key: "initialize",
|
|
47
39
|
value: function initialize(obj, firstName, lastName, email, password1, password2) {
|
|
@@ -51,6 +43,7 @@ var Register = /*#__PURE__*/function () {
|
|
|
51
43
|
obj['password1'] = password1;
|
|
52
44
|
obj['password2'] = password2;
|
|
53
45
|
}
|
|
46
|
+
|
|
54
47
|
/**
|
|
55
48
|
* Constructs a <code>Register</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,132 +51,115 @@ var Register = /*#__PURE__*/function () {
|
|
|
58
51
|
* @param {module:model/Register} obj Optional instance to populate.
|
|
59
52
|
* @return {module:model/Register} The populated <code>Register</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 Register();
|
|
67
|
-
|
|
68
59
|
if (data.hasOwnProperty('first_name')) {
|
|
69
60
|
obj['first_name'] = _ApiClient["default"].convertToType(data['first_name'], 'String');
|
|
70
61
|
}
|
|
71
|
-
|
|
72
62
|
if (data.hasOwnProperty('last_name')) {
|
|
73
63
|
obj['last_name'] = _ApiClient["default"].convertToType(data['last_name'], 'String');
|
|
74
64
|
}
|
|
75
|
-
|
|
76
65
|
if (data.hasOwnProperty('username')) {
|
|
77
66
|
obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String');
|
|
78
67
|
}
|
|
79
|
-
|
|
80
68
|
if (data.hasOwnProperty('email')) {
|
|
81
69
|
obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
|
|
82
70
|
}
|
|
83
|
-
|
|
84
71
|
if (data.hasOwnProperty('password1')) {
|
|
85
72
|
obj['password1'] = _ApiClient["default"].convertToType(data['password1'], 'String');
|
|
86
73
|
}
|
|
87
|
-
|
|
88
74
|
if (data.hasOwnProperty('password2')) {
|
|
89
75
|
obj['password2'] = _ApiClient["default"].convertToType(data['password2'], 'String');
|
|
90
76
|
}
|
|
91
|
-
|
|
92
77
|
if (data.hasOwnProperty('phone_number')) {
|
|
93
78
|
obj['phone_number'] = _ApiClient["default"].convertToType(data['phone_number'], 'String');
|
|
94
79
|
}
|
|
95
|
-
|
|
96
80
|
if (data.hasOwnProperty('profile_logo')) {
|
|
97
81
|
obj['profile_logo'] = _ApiClient["default"].convertToType(data['profile_logo'], 'String');
|
|
98
82
|
}
|
|
99
|
-
|
|
100
83
|
if (data.hasOwnProperty('organization')) {
|
|
101
84
|
obj['organization'] = _ApiClient["default"].convertToType(data['organization'], 'String');
|
|
102
85
|
}
|
|
103
|
-
|
|
104
86
|
if (data.hasOwnProperty('is_staff')) {
|
|
105
87
|
obj['is_staff'] = _ApiClient["default"].convertToType(data['is_staff'], 'Boolean');
|
|
106
88
|
}
|
|
107
|
-
|
|
108
89
|
if (data.hasOwnProperty('is_organization_admin')) {
|
|
109
90
|
obj['is_organization_admin'] = _ApiClient["default"].convertToType(data['is_organization_admin'], 'Boolean');
|
|
110
91
|
}
|
|
111
|
-
|
|
112
92
|
if (data.hasOwnProperty('is_active')) {
|
|
113
93
|
obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean');
|
|
114
94
|
}
|
|
115
95
|
}
|
|
116
|
-
|
|
117
96
|
return obj;
|
|
118
97
|
}
|
|
119
98
|
}]);
|
|
120
|
-
|
|
121
99
|
return Register;
|
|
122
100
|
}();
|
|
123
101
|
/**
|
|
124
102
|
* Required. 150 characters or fewer.
|
|
125
103
|
* @member {String} first_name
|
|
126
104
|
*/
|
|
127
|
-
|
|
128
|
-
|
|
129
105
|
Register.prototype['first_name'] = undefined;
|
|
106
|
+
|
|
130
107
|
/**
|
|
131
108
|
* Required. 150 characters or fewer.
|
|
132
109
|
* @member {String} last_name
|
|
133
110
|
*/
|
|
134
|
-
|
|
135
111
|
Register.prototype['last_name'] = undefined;
|
|
112
|
+
|
|
136
113
|
/**
|
|
137
114
|
* Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. Default is the user's email.
|
|
138
115
|
* @member {String} username
|
|
139
116
|
*/
|
|
140
|
-
|
|
141
117
|
Register.prototype['username'] = undefined;
|
|
118
|
+
|
|
142
119
|
/**
|
|
143
120
|
* Required.
|
|
144
121
|
* @member {String} email
|
|
145
122
|
*/
|
|
146
|
-
|
|
147
123
|
Register.prototype['email'] = undefined;
|
|
124
|
+
|
|
148
125
|
/**
|
|
149
126
|
* @member {String} password1
|
|
150
127
|
*/
|
|
151
|
-
|
|
152
128
|
Register.prototype['password1'] = undefined;
|
|
129
|
+
|
|
153
130
|
/**
|
|
154
131
|
* @member {String} password2
|
|
155
132
|
*/
|
|
156
|
-
|
|
157
133
|
Register.prototype['password2'] = undefined;
|
|
134
|
+
|
|
158
135
|
/**
|
|
159
136
|
* @member {String} phone_number
|
|
160
137
|
*/
|
|
161
|
-
|
|
162
138
|
Register.prototype['phone_number'] = undefined;
|
|
139
|
+
|
|
163
140
|
/**
|
|
164
141
|
* @member {String} profile_logo
|
|
165
142
|
*/
|
|
166
|
-
|
|
167
143
|
Register.prototype['profile_logo'] = undefined;
|
|
144
|
+
|
|
168
145
|
/**
|
|
169
146
|
* @member {String} organization
|
|
170
147
|
*/
|
|
171
|
-
|
|
172
148
|
Register.prototype['organization'] = undefined;
|
|
149
|
+
|
|
173
150
|
/**
|
|
174
151
|
* @member {Boolean} is_staff
|
|
175
152
|
*/
|
|
176
|
-
|
|
177
153
|
Register.prototype['is_staff'] = undefined;
|
|
154
|
+
|
|
178
155
|
/**
|
|
179
156
|
* @member {Boolean} is_organization_admin
|
|
180
157
|
*/
|
|
181
|
-
|
|
182
158
|
Register.prototype['is_organization_admin'] = undefined;
|
|
159
|
+
|
|
183
160
|
/**
|
|
184
161
|
* @member {Boolean} is_active
|
|
185
162
|
*/
|
|
186
|
-
|
|
187
163
|
Register.prototype['is_active'] = undefined;
|
|
188
164
|
var _default = Register;
|
|
189
165
|
exports["default"] = _default;
|
package/dist/model/Retailer.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 Retailer model module.
|
|
22
15
|
* @module model/Retailer
|
|
23
|
-
* @version 1.10.
|
|
16
|
+
* @version 1.10.3
|
|
24
17
|
*/
|
|
25
18
|
var Retailer = /*#__PURE__*/function () {
|
|
26
19
|
/**
|
|
@@ -31,22 +24,21 @@ var Retailer = /*#__PURE__*/function () {
|
|
|
31
24
|
*/
|
|
32
25
|
function Retailer(name, location) {
|
|
33
26
|
_classCallCheck(this, Retailer);
|
|
34
|
-
|
|
35
27
|
Retailer.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(Retailer, 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>Retailer</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,115 +46,100 @@ var Retailer = /*#__PURE__*/function () {
|
|
|
54
46
|
* @param {module:model/Retailer} obj Optional instance to populate.
|
|
55
47
|
* @return {module:model/Retailer} The populated <code>Retailer</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 Retailer();
|
|
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('api_provider_name')) {
|
|
73
61
|
obj['api_provider_name'] = _ApiClient["default"].convertToType(data['api_provider_name'], 'String');
|
|
74
62
|
}
|
|
75
|
-
|
|
76
63
|
if (data.hasOwnProperty('location')) {
|
|
77
64
|
obj['location'] = _Location["default"].constructFromObject(data['location']);
|
|
78
65
|
}
|
|
79
|
-
|
|
80
66
|
if (data.hasOwnProperty('blockchain_account_address')) {
|
|
81
67
|
obj['blockchain_account_address'] = _ApiClient["default"].convertToType(data['blockchain_account_address'], 'String');
|
|
82
68
|
}
|
|
83
|
-
|
|
84
69
|
if (data.hasOwnProperty('website_url')) {
|
|
85
70
|
obj['website_url'] = _ApiClient["default"].convertToType(data['website_url'], 'String');
|
|
86
71
|
}
|
|
87
|
-
|
|
88
72
|
if (data.hasOwnProperty('is_active')) {
|
|
89
73
|
obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean');
|
|
90
74
|
}
|
|
91
|
-
|
|
92
75
|
if (data.hasOwnProperty('is_registrant')) {
|
|
93
76
|
obj['is_registrant'] = _ApiClient["default"].convertToType(data['is_registrant'], 'Boolean');
|
|
94
77
|
}
|
|
95
|
-
|
|
96
78
|
if (data.hasOwnProperty('created_at')) {
|
|
97
79
|
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
98
80
|
}
|
|
99
|
-
|
|
100
81
|
if (data.hasOwnProperty('updated_at')) {
|
|
101
82
|
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
102
83
|
}
|
|
103
84
|
}
|
|
104
|
-
|
|
105
85
|
return obj;
|
|
106
86
|
}
|
|
107
87
|
}]);
|
|
108
|
-
|
|
109
88
|
return Retailer;
|
|
110
89
|
}();
|
|
111
90
|
/**
|
|
112
91
|
* @member {String} id
|
|
113
92
|
*/
|
|
114
|
-
|
|
115
|
-
|
|
116
93
|
Retailer.prototype['id'] = undefined;
|
|
94
|
+
|
|
117
95
|
/**
|
|
118
96
|
* Required. 150 characters or fewer.
|
|
119
97
|
* @member {String} name
|
|
120
98
|
*/
|
|
121
|
-
|
|
122
99
|
Retailer.prototype['name'] = undefined;
|
|
100
|
+
|
|
123
101
|
/**
|
|
124
102
|
* Not required. 150 characters or fewer.
|
|
125
103
|
* @member {String} api_provider_name
|
|
126
104
|
*/
|
|
127
|
-
|
|
128
105
|
Retailer.prototype['api_provider_name'] = undefined;
|
|
106
|
+
|
|
129
107
|
/**
|
|
130
108
|
* @member {module:model/Location} location
|
|
131
109
|
*/
|
|
132
|
-
|
|
133
110
|
Retailer.prototype['location'] = undefined;
|
|
111
|
+
|
|
134
112
|
/**
|
|
135
113
|
* @member {String} blockchain_account_address
|
|
136
114
|
*/
|
|
137
|
-
|
|
138
115
|
Retailer.prototype['blockchain_account_address'] = undefined;
|
|
116
|
+
|
|
139
117
|
/**
|
|
140
118
|
* Not required. 200 characters or fewer.
|
|
141
119
|
* @member {String} website_url
|
|
142
120
|
*/
|
|
143
|
-
|
|
144
121
|
Retailer.prototype['website_url'] = undefined;
|
|
122
|
+
|
|
145
123
|
/**
|
|
146
124
|
* True if organization is active. Default True.
|
|
147
125
|
* @member {Boolean} is_active
|
|
148
126
|
*/
|
|
149
|
-
|
|
150
127
|
Retailer.prototype['is_active'] = undefined;
|
|
128
|
+
|
|
151
129
|
/**
|
|
152
130
|
* True if retailer is a registrant. Default True.
|
|
153
131
|
* @member {Boolean} is_registrant
|
|
154
132
|
*/
|
|
155
|
-
|
|
156
133
|
Retailer.prototype['is_registrant'] = undefined;
|
|
134
|
+
|
|
157
135
|
/**
|
|
158
136
|
* @member {Date} created_at
|
|
159
137
|
*/
|
|
160
|
-
|
|
161
138
|
Retailer.prototype['created_at'] = undefined;
|
|
139
|
+
|
|
162
140
|
/**
|
|
163
141
|
* @member {Date} updated_at
|
|
164
142
|
*/
|
|
165
|
-
|
|
166
143
|
Retailer.prototype['updated_at'] = undefined;
|
|
167
144
|
var _default = Retailer;
|
|
168
145
|
exports["default"] = _default;
|