green_link_api 1.0.0 → 1.0.1

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.
Files changed (107) hide show
  1. package/README.md +72 -33
  2. package/dist/ApiClient.js +70 -24
  3. package/dist/api/BlockchainApi.js +283 -0
  4. package/dist/api/EnergyAssetsApi.js +196 -44
  5. package/dist/api/EnergyDataApi.js +354 -46
  6. package/dist/api/HealthCheckApi.js +68 -0
  7. package/dist/api/LicensedProductionSitesOnEpiasApi.js +69 -0
  8. package/dist/api/LocationsApi.js +10 -10
  9. package/dist/api/LogsApi.js +428 -0
  10. package/dist/api/MaintenanceCheckApi.js +68 -0
  11. package/dist/api/OrganizationprofilesApi.js +8 -8
  12. package/dist/api/OrganizationsApi.js +47 -47
  13. package/dist/api/SchemaApi.js +6 -6
  14. package/dist/api/SentryDebugApi.js +68 -0
  15. package/dist/api/UsersApi.js +74 -256
  16. package/dist/index.js +267 -67
  17. package/dist/model/BlockchainTransaction.js +172 -0
  18. package/dist/model/Consumer.js +7 -7
  19. package/dist/model/ConsumptionDataFileList.js +132 -0
  20. package/dist/model/ConsumptionDataFromRetailerRequest.js +110 -0
  21. package/dist/model/{RestAuthDetail.js → ConsumptionDataFromRetailerResponse.js} +26 -21
  22. package/dist/model/ConsumptionDataPointCreate.js +12 -12
  23. package/dist/model/ConsumptionDataPointListOrDetail.js +21 -14
  24. package/dist/model/ConsumptionDataPointUpdate.js +12 -12
  25. package/dist/model/ConsumptionSite.js +20 -21
  26. package/dist/model/ConsumptionSiteCreate.js +195 -0
  27. package/dist/model/ConsumptionSiteFileUpload.js +133 -0
  28. package/dist/model/{TokenRefresh.js → ConsumptionSiteFromRetailer.js} +25 -33
  29. package/dist/model/ConsumptionSiteListOrDetail.js +15 -33
  30. package/dist/model/ConsumptionSiteMany.js +195 -0
  31. package/dist/model/ContentTypeEnum.js +54 -0
  32. package/dist/model/EmissionFactor.js +6 -8
  33. package/dist/model/EnergySourceEnum.js +1 -1
  34. package/dist/model/EnergySourcePreference.js +2 -2
  35. package/dist/model/GetFromEpias.js +98 -0
  36. package/dist/model/GridOperator.js +6 -6
  37. package/dist/model/Issuer.js +6 -6
  38. package/dist/model/Location.js +6 -8
  39. package/dist/model/Login.js +2 -2
  40. package/dist/model/MatchRequest.js +299 -0
  41. package/dist/model/{CountryEnum.js → MatchTypeEnum.js} +12 -12
  42. package/dist/model/MatchedEnergyDataPoint.js +13 -14
  43. package/dist/model/MatchingConsumerRequest.js +122 -0
  44. package/dist/model/{MatchingRequest.js → MatchingSiteRequest.js} +32 -21
  45. package/dist/model/OrganizationTypeEnum.js +1 -1
  46. package/dist/model/PaginatedConsumerList.js +2 -2
  47. package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +2 -2
  48. package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +2 -2
  49. package/dist/model/PaginatedEmissionFactorList.js +2 -2
  50. package/dist/model/PaginatedEnergySourcePreferenceList.js +2 -2
  51. package/dist/model/PaginatedGridOperatorList.js +2 -2
  52. package/dist/model/PaginatedIssuerList.js +2 -2
  53. package/dist/model/PaginatedLocationList.js +2 -2
  54. package/dist/model/PaginatedMatchRequestList.js +104 -0
  55. package/dist/model/PaginatedMatchedEnergyDataPointList.js +2 -2
  56. package/dist/model/PaginatedProducerList.js +2 -2
  57. package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +104 -0
  58. package/dist/model/PaginatedProductionDataPointListOrDetailList.js +2 -2
  59. package/dist/model/PaginatedProductionSiteListOrDetailList.js +2 -2
  60. package/dist/model/PaginatedRetailerList.js +2 -2
  61. package/dist/model/PaginatedSmartContractList.js +104 -0
  62. package/dist/model/PaginatedUnprocessedRowList.js +104 -0
  63. package/dist/model/PaginatedUploadedFileList.js +104 -0
  64. package/dist/model/PaginatedUserList.js +2 -2
  65. package/dist/model/PatchedConsumer.js +7 -7
  66. package/dist/model/PatchedConsumptionDataPointUpdate.js +12 -12
  67. package/dist/model/PatchedConsumptionSite.js +15 -16
  68. package/dist/model/PatchedEmissionFactor.js +5 -7
  69. package/dist/model/PatchedEnergySourcePreference.js +2 -2
  70. package/dist/model/PatchedGridOperator.js +6 -6
  71. package/dist/model/PatchedIssuer.js +6 -6
  72. package/dist/model/PatchedLocation.js +5 -7
  73. package/dist/model/PatchedProducer.js +6 -6
  74. package/dist/model/PatchedProductionDataPointUpdate.js +13 -13
  75. package/dist/model/{PatchedProductionSite.js → PatchedProductionSiteUpdate.js} +60 -45
  76. package/dist/model/PatchedRetailer.js +16 -6
  77. package/dist/model/PatchedSmartContract.js +134 -0
  78. package/dist/model/PatchedUser.js +13 -2
  79. package/dist/model/PatchedUserDetail.js +13 -2
  80. package/dist/model/PriorityEnum.js +7 -1
  81. package/dist/model/Producer.js +6 -6
  82. package/dist/model/ProductionDataFileList.js +132 -0
  83. package/dist/model/ProductionDataFromEpiasRequest.js +167 -0
  84. package/dist/model/ProductionDataPointCreate.js +13 -13
  85. package/dist/model/ProductionDataPointListOrDetail.js +24 -21
  86. package/dist/model/ProductionDataPointUpdate.js +13 -13
  87. package/dist/model/ProductionSite.js +37 -24
  88. package/dist/model/ProductionSiteFileUpload.js +177 -0
  89. package/dist/model/ProductionSiteListOrDetail.js +30 -43
  90. package/dist/model/ProductionSiteUpdate.js +245 -0
  91. package/dist/model/Register.js +18 -6
  92. package/dist/model/Retailer.js +16 -6
  93. package/dist/model/SmartContract.js +139 -0
  94. package/dist/model/StatusEnum.js +52 -0
  95. package/dist/model/{VerifyEmail.js → Token.js} +19 -18
  96. package/dist/model/TypeEnum.js +52 -0
  97. package/dist/model/UnprocessedRow.js +140 -0
  98. package/dist/model/UploadedFile.js +154 -0
  99. package/dist/model/User.js +13 -2
  100. package/dist/model/UserDetail.js +13 -2
  101. package/package.json +4 -4
  102. package/dist/model/JWT.js +0 -103
  103. package/dist/model/PasswordChange.js +0 -100
  104. package/dist/model/PasswordReset.js +0 -79
  105. package/dist/model/PasswordResetConfirm.js +0 -112
  106. package/dist/model/TechnologyOrFuelTypeEnum.js +0 -170
  107. package/dist/model/TokenVerify.js +0 -78
@@ -15,12 +15,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
15
15
 
16
16
  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
17
 
18
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
18
+ 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
19
 
20
20
  /**
21
21
  * The UserDetail model module.
22
22
  * @module model/UserDetail
23
- * @version 1.0.0
23
+ * @version 1.0.1
24
24
  */
25
25
  var UserDetail = /*#__PURE__*/function () {
26
26
  /**
@@ -86,6 +86,10 @@ var UserDetail = /*#__PURE__*/function () {
86
86
  obj['phone_number'] = _ApiClient["default"].convertToType(data['phone_number'], 'String');
87
87
  }
88
88
 
89
+ if (data.hasOwnProperty('profile_logo')) {
90
+ obj['profile_logo'] = _ApiClient["default"].convertToType(data['profile_logo'], 'String');
91
+ }
92
+
89
93
  if (data.hasOwnProperty('organization')) {
90
94
  obj['organization'] = _ApiClient["default"].convertToType(data['organization'], 'String');
91
95
  }
@@ -148,11 +152,13 @@ UserDetail.prototype['first_name'] = undefined;
148
152
 
149
153
  UserDetail.prototype['last_name'] = undefined;
150
154
  /**
155
+ * Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. Default is the user's email.
151
156
  * @member {String} username
152
157
  */
153
158
 
154
159
  UserDetail.prototype['username'] = undefined;
155
160
  /**
161
+ * Required.
156
162
  * @member {String} email
157
163
  */
158
164
 
@@ -162,6 +168,11 @@ UserDetail.prototype['email'] = undefined;
162
168
  */
163
169
 
164
170
  UserDetail.prototype['phone_number'] = undefined;
171
+ /**
172
+ * @member {String} profile_logo
173
+ */
174
+
175
+ UserDetail.prototype['profile_logo'] = undefined;
165
176
  /**
166
177
  * @member {String} organization
167
178
  */
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "green_link_api",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "GreenLink_API_documentation_with_interactive_tools_for_testing_API_endpoints_",
5
5
  "license": "Unlicense",
6
6
  "main": "dist/index.js",
7
7
  "scripts": {
8
8
  "build": "babel src -d dist",
9
- "prepack": "npm run build",
9
+ "prepare": "npm run build",
10
10
  "test": "mocha --require @babel/register --recursive"
11
11
  },
12
12
  "browser": {
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@babel/cli": "^7.0.0",
17
- "superagent": "3.7.0"
17
+ "superagent": "^5.3.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@babel/core": "^7.0.0",
@@ -37,7 +37,7 @@
37
37
  "@babel/preset-env": "^7.0.0",
38
38
  "@babel/register": "^7.0.0",
39
39
  "expect.js": "^0.3.1",
40
- "mocha": "^5.2.0",
40
+ "mocha": "^8.0.1",
41
41
  "sinon": "^7.2.0"
42
42
  },
43
43
  "files": [
package/dist/model/JWT.js DELETED
@@ -1,103 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
9
-
10
- var _User = _interopRequireDefault(require("./User"));
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
-
14
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
-
16
- 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
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
19
-
20
- /**
21
- * The JWT model module.
22
- * @module model/JWT
23
- * @version 1.0.0
24
- */
25
- var JWT = /*#__PURE__*/function () {
26
- /**
27
- * Constructs a new <code>JWT</code>.
28
- * Serializer for JWT authentication.
29
- * @alias module:model/JWT
30
- * @param accessToken {String}
31
- * @param refreshToken {String}
32
- * @param user {module:model/User}
33
- */
34
- function JWT(accessToken, refreshToken, user) {
35
- _classCallCheck(this, JWT);
36
-
37
- JWT.initialize(this, accessToken, refreshToken, user);
38
- }
39
- /**
40
- * Initializes the fields of this object.
41
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
42
- * Only for internal use.
43
- */
44
-
45
-
46
- _createClass(JWT, null, [{
47
- key: "initialize",
48
- value: function initialize(obj, accessToken, refreshToken, user) {
49
- obj['access_token'] = accessToken;
50
- obj['refresh_token'] = refreshToken;
51
- obj['user'] = user;
52
- }
53
- /**
54
- * Constructs a <code>JWT</code> from a plain JavaScript object, optionally creating a new instance.
55
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
56
- * @param {Object} data The plain JavaScript object bearing properties of interest.
57
- * @param {module:model/JWT} obj Optional instance to populate.
58
- * @return {module:model/JWT} The populated <code>JWT</code> instance.
59
- */
60
-
61
- }, {
62
- key: "constructFromObject",
63
- value: function constructFromObject(data, obj) {
64
- if (data) {
65
- obj = obj || new JWT();
66
-
67
- if (data.hasOwnProperty('access_token')) {
68
- obj['access_token'] = _ApiClient["default"].convertToType(data['access_token'], 'String');
69
- }
70
-
71
- if (data.hasOwnProperty('refresh_token')) {
72
- obj['refresh_token'] = _ApiClient["default"].convertToType(data['refresh_token'], 'String');
73
- }
74
-
75
- if (data.hasOwnProperty('user')) {
76
- obj['user'] = _User["default"].constructFromObject(data['user']);
77
- }
78
- }
79
-
80
- return obj;
81
- }
82
- }]);
83
-
84
- return JWT;
85
- }();
86
- /**
87
- * @member {String} access_token
88
- */
89
-
90
-
91
- JWT.prototype['access_token'] = undefined;
92
- /**
93
- * @member {String} refresh_token
94
- */
95
-
96
- JWT.prototype['refresh_token'] = undefined;
97
- /**
98
- * @member {module:model/User} user
99
- */
100
-
101
- JWT.prototype['user'] = undefined;
102
- var _default = JWT;
103
- exports["default"] = _default;
@@ -1,100 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
-
12
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13
-
14
- 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
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
17
-
18
- /**
19
- * The PasswordChange model module.
20
- * @module model/PasswordChange
21
- * @version 1.0.0
22
- */
23
- var PasswordChange = /*#__PURE__*/function () {
24
- /**
25
- * Constructs a new <code>PasswordChange</code>.
26
- * @alias module:model/PasswordChange
27
- * @param oldPassword {String}
28
- * @param newPassword1 {String}
29
- * @param newPassword2 {String}
30
- */
31
- function PasswordChange(oldPassword, newPassword1, newPassword2) {
32
- _classCallCheck(this, PasswordChange);
33
-
34
- PasswordChange.initialize(this, oldPassword, newPassword1, newPassword2);
35
- }
36
- /**
37
- * Initializes the fields of this object.
38
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
39
- * Only for internal use.
40
- */
41
-
42
-
43
- _createClass(PasswordChange, null, [{
44
- key: "initialize",
45
- value: function initialize(obj, oldPassword, newPassword1, newPassword2) {
46
- obj['old_password'] = oldPassword;
47
- obj['new_password1'] = newPassword1;
48
- obj['new_password2'] = newPassword2;
49
- }
50
- /**
51
- * Constructs a <code>PasswordChange</code> from a plain JavaScript object, optionally creating a new instance.
52
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
53
- * @param {Object} data The plain JavaScript object bearing properties of interest.
54
- * @param {module:model/PasswordChange} obj Optional instance to populate.
55
- * @return {module:model/PasswordChange} The populated <code>PasswordChange</code> instance.
56
- */
57
-
58
- }, {
59
- key: "constructFromObject",
60
- value: function constructFromObject(data, obj) {
61
- if (data) {
62
- obj = obj || new PasswordChange();
63
-
64
- if (data.hasOwnProperty('old_password')) {
65
- obj['old_password'] = _ApiClient["default"].convertToType(data['old_password'], 'String');
66
- }
67
-
68
- if (data.hasOwnProperty('new_password1')) {
69
- obj['new_password1'] = _ApiClient["default"].convertToType(data['new_password1'], 'String');
70
- }
71
-
72
- if (data.hasOwnProperty('new_password2')) {
73
- obj['new_password2'] = _ApiClient["default"].convertToType(data['new_password2'], 'String');
74
- }
75
- }
76
-
77
- return obj;
78
- }
79
- }]);
80
-
81
- return PasswordChange;
82
- }();
83
- /**
84
- * @member {String} old_password
85
- */
86
-
87
-
88
- PasswordChange.prototype['old_password'] = undefined;
89
- /**
90
- * @member {String} new_password1
91
- */
92
-
93
- PasswordChange.prototype['new_password1'] = undefined;
94
- /**
95
- * @member {String} new_password2
96
- */
97
-
98
- PasswordChange.prototype['new_password2'] = undefined;
99
- var _default = PasswordChange;
100
- exports["default"] = _default;
@@ -1,79 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
-
12
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13
-
14
- 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
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
17
-
18
- /**
19
- * The PasswordReset model module.
20
- * @module model/PasswordReset
21
- * @version 1.0.0
22
- */
23
- var PasswordReset = /*#__PURE__*/function () {
24
- /**
25
- * Constructs a new <code>PasswordReset</code>.
26
- * Serializer for requesting a password reset e-mail.
27
- * @alias module:model/PasswordReset
28
- * @param email {String}
29
- */
30
- function PasswordReset(email) {
31
- _classCallCheck(this, PasswordReset);
32
-
33
- PasswordReset.initialize(this, email);
34
- }
35
- /**
36
- * Initializes the fields of this object.
37
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
38
- * Only for internal use.
39
- */
40
-
41
-
42
- _createClass(PasswordReset, null, [{
43
- key: "initialize",
44
- value: function initialize(obj, email) {
45
- obj['email'] = email;
46
- }
47
- /**
48
- * Constructs a <code>PasswordReset</code> from a plain JavaScript object, optionally creating a new instance.
49
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
50
- * @param {Object} data The plain JavaScript object bearing properties of interest.
51
- * @param {module:model/PasswordReset} obj Optional instance to populate.
52
- * @return {module:model/PasswordReset} The populated <code>PasswordReset</code> instance.
53
- */
54
-
55
- }, {
56
- key: "constructFromObject",
57
- value: function constructFromObject(data, obj) {
58
- if (data) {
59
- obj = obj || new PasswordReset();
60
-
61
- if (data.hasOwnProperty('email')) {
62
- obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
63
- }
64
- }
65
-
66
- return obj;
67
- }
68
- }]);
69
-
70
- return PasswordReset;
71
- }();
72
- /**
73
- * @member {String} email
74
- */
75
-
76
-
77
- PasswordReset.prototype['email'] = undefined;
78
- var _default = PasswordReset;
79
- exports["default"] = _default;
@@ -1,112 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
-
12
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13
-
14
- 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
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
17
-
18
- /**
19
- * The PasswordResetConfirm model module.
20
- * @module model/PasswordResetConfirm
21
- * @version 1.0.0
22
- */
23
- var PasswordResetConfirm = /*#__PURE__*/function () {
24
- /**
25
- * Constructs a new <code>PasswordResetConfirm</code>.
26
- * Serializer for confirming a password reset attempt.
27
- * @alias module:model/PasswordResetConfirm
28
- * @param newPassword1 {String}
29
- * @param newPassword2 {String}
30
- * @param uid {String}
31
- * @param token {String}
32
- */
33
- function PasswordResetConfirm(newPassword1, newPassword2, uid, token) {
34
- _classCallCheck(this, PasswordResetConfirm);
35
-
36
- PasswordResetConfirm.initialize(this, newPassword1, newPassword2, uid, token);
37
- }
38
- /**
39
- * Initializes the fields of this object.
40
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
41
- * Only for internal use.
42
- */
43
-
44
-
45
- _createClass(PasswordResetConfirm, null, [{
46
- key: "initialize",
47
- value: function initialize(obj, newPassword1, newPassword2, uid, token) {
48
- obj['new_password1'] = newPassword1;
49
- obj['new_password2'] = newPassword2;
50
- obj['uid'] = uid;
51
- obj['token'] = token;
52
- }
53
- /**
54
- * Constructs a <code>PasswordResetConfirm</code> from a plain JavaScript object, optionally creating a new instance.
55
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
56
- * @param {Object} data The plain JavaScript object bearing properties of interest.
57
- * @param {module:model/PasswordResetConfirm} obj Optional instance to populate.
58
- * @return {module:model/PasswordResetConfirm} The populated <code>PasswordResetConfirm</code> instance.
59
- */
60
-
61
- }, {
62
- key: "constructFromObject",
63
- value: function constructFromObject(data, obj) {
64
- if (data) {
65
- obj = obj || new PasswordResetConfirm();
66
-
67
- if (data.hasOwnProperty('new_password1')) {
68
- obj['new_password1'] = _ApiClient["default"].convertToType(data['new_password1'], 'String');
69
- }
70
-
71
- if (data.hasOwnProperty('new_password2')) {
72
- obj['new_password2'] = _ApiClient["default"].convertToType(data['new_password2'], 'String');
73
- }
74
-
75
- if (data.hasOwnProperty('uid')) {
76
- obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
77
- }
78
-
79
- if (data.hasOwnProperty('token')) {
80
- obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String');
81
- }
82
- }
83
-
84
- return obj;
85
- }
86
- }]);
87
-
88
- return PasswordResetConfirm;
89
- }();
90
- /**
91
- * @member {String} new_password1
92
- */
93
-
94
-
95
- PasswordResetConfirm.prototype['new_password1'] = undefined;
96
- /**
97
- * @member {String} new_password2
98
- */
99
-
100
- PasswordResetConfirm.prototype['new_password2'] = undefined;
101
- /**
102
- * @member {String} uid
103
- */
104
-
105
- PasswordResetConfirm.prototype['uid'] = undefined;
106
- /**
107
- * @member {String} token
108
- */
109
-
110
- PasswordResetConfirm.prototype['token'] = undefined;
111
- var _default = PasswordResetConfirm;
112
- exports["default"] = _default;
@@ -1,170 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
-
12
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13
-
14
- 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
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
17
-
18
- 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
- /**
21
- * Enum class TechnologyOrFuelTypeEnum.
22
- * @enum {}
23
- * @readonly
24
- */
25
- var TechnologyOrFuelTypeEnum = /*#__PURE__*/function () {
26
- function TechnologyOrFuelTypeEnum() {
27
- _classCallCheck(this, TechnologyOrFuelTypeEnum);
28
-
29
- _defineProperty(this, "Unspecified", "Unspecified");
30
-
31
- _defineProperty(this, "Onshore", "Onshore");
32
-
33
- _defineProperty(this, "Offshore", "Offshore");
34
-
35
- _defineProperty(this, "Photovoltaic", "Photovoltaic");
36
-
37
- _defineProperty(this, "Photovoltaic - roof mounted", "Photovoltaic - roof mounted");
38
-
39
- _defineProperty(this, "Photovoltaic - ground mounted", "Photovoltaic - ground mounted");
40
-
41
- _defineProperty(this, "Photovoltaic - classic silicon", "Photovoltaic - classic silicon");
42
-
43
- _defineProperty(this, "Photovoltaic - Aggregated Group", "Photovoltaic - Aggregated Group");
44
-
45
- _defineProperty(this, "Concentration", "Concentration");
46
-
47
- _defineProperty(this, "Run-of-river head installation", "Run-of-river head installation");
48
-
49
- _defineProperty(this, "Storage head installation", "Storage head installation");
50
-
51
- _defineProperty(this, "Pure pumped storage head installation", "Pure pumped storage head installation");
52
-
53
- _defineProperty(this, "Mixed pumped storage head", "Mixed pumped storage head");
54
-
55
- _defineProperty(this, "Tidal", "Tidal");
56
-
57
- _defineProperty(this, "Tidal - inshore", "Tidal - inshore");
58
-
59
- _defineProperty(this, "Tidal - offshore", "Tidal - offshore");
60
-
61
- _defineProperty(this, "Wave", "Wave");
62
-
63
- _defineProperty(this, "Wave - onshore", "Wave - onshore");
64
-
65
- _defineProperty(this, "Wave - offshore", "Wave - offshore");
66
-
67
- _defineProperty(this, "Currents", "Currents");
68
-
69
- _defineProperty(this, "Pressure", "Pressure");
70
-
71
- _defineProperty(this, "Thermal", "Thermal");
72
-
73
- _defineProperty(this, "Steam Turbine Open Cycle with CHP", "Steam Turbine Open Cycle with CHP");
74
-
75
- _defineProperty(this, "Steam Turbine Open Cycle without CHP", "Steam Turbine Open Cycle without CHP");
76
-
77
- _defineProperty(this, "Steam Turbine Closed Cycle with CHP", "Steam Turbine Closed Cycle with CHP");
78
-
79
- _defineProperty(this, "Steam Turbine Closed Cycle without CHP", "Steam Turbine Closed Cycle without CHP");
80
-
81
- _defineProperty(this, "Internal Combustion Engine", "Internal Combustion Engine");
82
-
83
- _defineProperty(this, "Organic Rankine Cycle", "Organic Rankine Cycle");
84
-
85
- _defineProperty(this, "Sterling Engine", "Sterling Engine");
86
-
87
- _defineProperty(this, "Municipal waste", "Municipal waste");
88
-
89
- _defineProperty(this, "Municipal waste - biogenic only", "Municipal waste - biogenic only");
90
-
91
- _defineProperty(this, "Industrial and commercial waste - biogenic only", "Industrial and commercial waste - biogenic only");
92
-
93
- _defineProperty(this, "Wood", "Wood");
94
-
95
- _defineProperty(this, "Wood - forestry products", "Wood - forestry products");
96
-
97
- _defineProperty(this, "Wood - forestry by-products &amp; waste", "Wood - forestry by-products & waste");
98
-
99
- _defineProperty(this, "Animal fats", "Animal fats");
100
-
101
- _defineProperty(this, "Biomass from agriculture", "Biomass from agriculture");
102
-
103
- _defineProperty(this, "Biomass from agriculture - agricultural products", "Biomass from agriculture - agricultural products");
104
-
105
- _defineProperty(this, "Biomass from agriculture - agricultural by-products &amp; waste", "Biomass from agriculture - agricultural by-products & waste");
106
-
107
- _defineProperty(this, "Co-fired with fossil fuel - wood", "Co-fired with fossil fuel - wood");
108
-
109
- _defineProperty(this, "Co-fired with fossil fuel - wood (forestry products)", "Co-fired with fossil fuel - wood (forestry products)");
110
-
111
- _defineProperty(this, "Co-fired with fossil fuel - wood (forestry by-products &amp; waste)", "Co-fired with fossil fuel - wood (forestry by-products & waste)");
112
-
113
- _defineProperty(this, "Co-fired with fossil fuel - animal fats", "Co-fired with fossil fuel - animal fats");
114
-
115
- _defineProperty(this, "Co-fired with fossil fuel - biomass from agriculture", "Co-fired with fossil fuel - biomass from agriculture");
116
-
117
- _defineProperty(this, "Co-fired with fossil fuel - biomass from agriculture (agricultural products)", "Co-fired with fossil fuel - biomass from agriculture (agricultural products)");
118
-
119
- _defineProperty(this, "Co-fired with fossil fuel - biomass from agriculture (agricultural by-products and waste)", "Co-fired with fossil fuel - biomass from agriculture (agricultural by-products and waste)");
120
-
121
- _defineProperty(this, "Municipal biodegradable waste", "Municipal biodegradable waste");
122
-
123
- _defineProperty(this, "Black liquor", "Black liquor");
124
-
125
- _defineProperty(this, "Pure plant oil", "Pure plant oil");
126
-
127
- _defineProperty(this, "Waste plant oil ", "Waste plant oil ");
128
-
129
- _defineProperty(this, "Refined vegetable oil", "Refined vegetable oil");
130
-
131
- _defineProperty(this, "Refined vegetable oil - biodiesel (mono-alkyl ester)", "Refined vegetable oil - biodiesel (mono-alkyl ester)");
132
-
133
- _defineProperty(this, "Refined vegetable oil - biogasoline (C6-C12 hydrocarbon)", "Refined vegetable oil - biogasoline (C6-C12 hydrocarbon)");
134
-
135
- _defineProperty(this, "Landfill gas", "Landfill gas");
136
-
137
- _defineProperty(this, "Sewage gas", "Sewage gas");
138
-
139
- _defineProperty(this, "Agricultural gas", "Agricultural gas");
140
-
141
- _defineProperty(this, "Agricultural gas - animal manure", "Agricultural gas - animal manure");
142
-
143
- _defineProperty(this, "Agricultural gas - energy crops", "Agricultural gas - energy crops");
144
-
145
- _defineProperty(this, "Gas from organic waste digestion", "Gas from organic waste digestion");
146
-
147
- _defineProperty(this, "Process gas - biogenic", "Process gas - biogenic");
148
-
149
- _defineProperty(this, "Geothermal", "Geothermal");
150
-
151
- _defineProperty(this, "Co-fired with fossil fuel - solar thermal", "Co-fired with fossil fuel - solar thermal");
152
- }
153
-
154
- _createClass(TechnologyOrFuelTypeEnum, null, [{
155
- key: "constructFromObject",
156
- value:
157
- /**
158
- * Returns a <code>TechnologyOrFuelTypeEnum</code> enum value from a Javascript object name.
159
- * @param {Object} data The plain JavaScript object containing the name of the enum value.
160
- * @return {module:model/TechnologyOrFuelTypeEnum} The enum <code>TechnologyOrFuelTypeEnum</code> value.
161
- */
162
- function constructFromObject(object) {
163
- return object;
164
- }
165
- }]);
166
-
167
- return TechnologyOrFuelTypeEnum;
168
- }();
169
-
170
- exports["default"] = TechnologyOrFuelTypeEnum;