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.
Files changed (112) hide show
  1. package/README.md +2 -2
  2. package/dist/ApiClient.js +51 -133
  3. package/dist/api/BlockchainApi.js +19 -38
  4. package/dist/api/EnergyAssetsApi.js +61 -106
  5. package/dist/api/EnergyDataApi.js +88 -152
  6. package/dist/api/HealthCheckApi.js +2 -12
  7. package/dist/api/LicensedProductionSitesOnEpiasApi.js +2 -12
  8. package/dist/api/LocationsApi.js +21 -40
  9. package/dist/api/LogsApi.js +36 -67
  10. package/dist/api/MaintenanceCheckApi.js +2 -12
  11. package/dist/api/OrganizationprofilesApi.js +19 -38
  12. package/dist/api/OrganizationsApi.js +91 -146
  13. package/dist/api/SchemaApi.js +2 -12
  14. package/dist/api/SentryDebugApi.js +2 -12
  15. package/dist/api/UsersApi.js +23 -47
  16. package/dist/index.js +0 -110
  17. package/dist/model/Activities.js +9 -28
  18. package/dist/model/BlockchainTransaction.js +12 -36
  19. package/dist/model/Consumer.js +13 -37
  20. package/dist/model/ConsumptionDataFileList.js +8 -26
  21. package/dist/model/ConsumptionDataFromRetailerRequest.js +5 -20
  22. package/dist/model/ConsumptionDataPointCreate.js +24 -59
  23. package/dist/model/ConsumptionDataPointListOrDetail.js +24 -64
  24. package/dist/model/ConsumptionDataPointUpdate.js +24 -59
  25. package/dist/model/ConsumptionSite.js +15 -41
  26. package/dist/model/ConsumptionSiteContract.js +9 -29
  27. package/dist/model/ConsumptionSiteContractImport.js +5 -20
  28. package/dist/model/ConsumptionSiteCreate.js +15 -41
  29. package/dist/model/ConsumptionSiteFileUpload.js +8 -26
  30. package/dist/model/ConsumptionSiteListOrDetail.js +14 -41
  31. package/dist/model/ContentTypeEnum.js +0 -15
  32. package/dist/model/EacTypeEnum.js +0 -11
  33. package/dist/model/EmissionFactor.js +9 -28
  34. package/dist/model/EnergySourceEnum.js +0 -18
  35. package/dist/model/EnergySourcePreference.js +10 -32
  36. package/dist/model/GetFromEpias.js +5 -20
  37. package/dist/model/GridOperator.js +11 -33
  38. package/dist/model/ImportRequest.js +14 -40
  39. package/dist/model/ImportRequestStatusEnum.js +0 -14
  40. package/dist/model/ImportedEnergyDataPoint.js +11 -32
  41. package/dist/model/Issuer.js +11 -33
  42. package/dist/model/Location.js +19 -48
  43. package/dist/model/Login.js +5 -20
  44. package/dist/model/MatchRequest.js +23 -63
  45. package/dist/model/MatchTypeEnum.js +0 -12
  46. package/dist/model/MatchedEnergyDataPoint.js +14 -39
  47. package/dist/model/MatchingConsumerRequest.js +7 -24
  48. package/dist/model/MatchingSiteRequest.js +7 -24
  49. package/dist/model/OrganizationTypeEnum.js +0 -16
  50. package/dist/model/PaginatedActivitiesList.js +6 -23
  51. package/dist/model/PaginatedConsumerList.js +6 -23
  52. package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +6 -23
  53. package/dist/model/PaginatedConsumptionSiteContractList.js +6 -23
  54. package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +6 -23
  55. package/dist/model/PaginatedEmissionFactorList.js +6 -23
  56. package/dist/model/PaginatedEnergySourcePreferenceList.js +6 -23
  57. package/dist/model/PaginatedGridOperatorList.js +6 -23
  58. package/dist/model/PaginatedImportRequestList.js +6 -23
  59. package/dist/model/PaginatedImportedEnergyDataPointList.js +6 -23
  60. package/dist/model/PaginatedIssuerList.js +6 -23
  61. package/dist/model/PaginatedLocationList.js +6 -23
  62. package/dist/model/PaginatedMatchRequestList.js +6 -23
  63. package/dist/model/PaginatedMatchedEnergyDataPointList.js +6 -23
  64. package/dist/model/PaginatedProducerList.js +6 -23
  65. package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +6 -23
  66. package/dist/model/PaginatedProductionDataPointListOrDetailList.js +6 -23
  67. package/dist/model/PaginatedProductionSiteListOrDetailList.js +6 -23
  68. package/dist/model/PaginatedRetailerList.js +6 -23
  69. package/dist/model/PaginatedSmartContractList.js +6 -23
  70. package/dist/model/PaginatedUnprocessedRowList.js +6 -23
  71. package/dist/model/PaginatedUploadedCertificateListorDetailList.js +6 -23
  72. package/dist/model/PaginatedUploadedFileList.js +6 -23
  73. package/dist/model/PaginatedUserList.js +6 -23
  74. package/dist/model/PatchedConsumer.js +13 -37
  75. package/dist/model/PatchedConsumptionDataPointUpdate.js +24 -59
  76. package/dist/model/PatchedConsumptionSite.js +15 -41
  77. package/dist/model/PatchedEmissionFactor.js +9 -28
  78. package/dist/model/PatchedEnergySourcePreference.js +10 -32
  79. package/dist/model/PatchedGridOperator.js +11 -33
  80. package/dist/model/PatchedIssuer.js +11 -33
  81. package/dist/model/PatchedLocation.js +19 -48
  82. package/dist/model/PatchedProducer.js +11 -33
  83. package/dist/model/PatchedProductionDataPointUpdate.js +18 -47
  84. package/dist/model/PatchedProductionSiteUpdate.js +20 -51
  85. package/dist/model/PatchedRetailer.js +12 -35
  86. package/dist/model/PatchedSmartContract.js +9 -28
  87. package/dist/model/PatchedUser.js +18 -47
  88. package/dist/model/PatchedUserDetail.js +18 -47
  89. package/dist/model/PriorityEnum.js +0 -18
  90. package/dist/model/Producer.js +11 -33
  91. package/dist/model/ProductionDataFileList.js +8 -26
  92. package/dist/model/ProductionDataFromEpiasRequest.js +11 -36
  93. package/dist/model/ProductionDataPointCreate.js +18 -47
  94. package/dist/model/ProductionDataPointListOrDetail.js +19 -53
  95. package/dist/model/ProductionDataPointUpdate.js +18 -47
  96. package/dist/model/ProductionSite.js +20 -51
  97. package/dist/model/ProductionSiteFileUpload.js +12 -34
  98. package/dist/model/ProductionSiteListOrDetail.js +18 -48
  99. package/dist/model/ProductionSiteUpdate.js +20 -51
  100. package/dist/model/Register.js +14 -38
  101. package/dist/model/Retailer.js +12 -35
  102. package/dist/model/SmartContract.js +9 -28
  103. package/dist/model/Status619Enum.js +0 -13
  104. package/dist/model/Token.js +3 -16
  105. package/dist/model/TypeEnum.js +0 -13
  106. package/dist/model/UnprocessedRow.js +9 -28
  107. package/dist/model/UploadedCertificate.js +12 -35
  108. package/dist/model/UploadedCertificateListorDetail.js +12 -36
  109. package/dist/model/UploadedFile.js +10 -32
  110. package/dist/model/User.js +18 -47
  111. package/dist/model/UserDetail.js +18 -47
  112. 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 _UploadedFile = _interopRequireDefault(require("./UploadedFile"));
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 PaginatedUploadedFileList model module.
22
15
  * @module model/PaginatedUploadedFileList
23
- * @version 1.10.2
16
+ * @version 1.10.3
24
17
  */
25
18
  var PaginatedUploadedFileList = /*#__PURE__*/function () {
26
19
  /**
@@ -29,19 +22,18 @@ var PaginatedUploadedFileList = /*#__PURE__*/function () {
29
22
  */
30
23
  function PaginatedUploadedFileList() {
31
24
  _classCallCheck(this, PaginatedUploadedFileList);
32
-
33
25
  PaginatedUploadedFileList.initialize(this);
34
26
  }
27
+
35
28
  /**
36
29
  * Initializes the fields of this object.
37
30
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
38
31
  * Only for internal use.
39
32
  */
40
-
41
-
42
33
  _createClass(PaginatedUploadedFileList, null, [{
43
34
  key: "initialize",
44
35
  value: function initialize(obj) {}
36
+
45
37
  /**
46
38
  * Constructs a <code>PaginatedUploadedFileList</code> from a plain JavaScript object, optionally creating a new instance.
47
39
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
@@ -49,56 +41,47 @@ var PaginatedUploadedFileList = /*#__PURE__*/function () {
49
41
  * @param {module:model/PaginatedUploadedFileList} obj Optional instance to populate.
50
42
  * @return {module:model/PaginatedUploadedFileList} The populated <code>PaginatedUploadedFileList</code> instance.
51
43
  */
52
-
53
44
  }, {
54
45
  key: "constructFromObject",
55
46
  value: function constructFromObject(data, obj) {
56
47
  if (data) {
57
48
  obj = obj || new PaginatedUploadedFileList();
58
-
59
49
  if (data.hasOwnProperty('count')) {
60
50
  obj['count'] = _ApiClient["default"].convertToType(data['count'], 'Number');
61
51
  }
62
-
63
52
  if (data.hasOwnProperty('next')) {
64
53
  obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String');
65
54
  }
66
-
67
55
  if (data.hasOwnProperty('previous')) {
68
56
  obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String');
69
57
  }
70
-
71
58
  if (data.hasOwnProperty('results')) {
72
59
  obj['results'] = _ApiClient["default"].convertToType(data['results'], [_UploadedFile["default"]]);
73
60
  }
74
61
  }
75
-
76
62
  return obj;
77
63
  }
78
64
  }]);
79
-
80
65
  return PaginatedUploadedFileList;
81
66
  }();
82
67
  /**
83
68
  * @member {Number} count
84
69
  */
85
-
86
-
87
70
  PaginatedUploadedFileList.prototype['count'] = undefined;
71
+
88
72
  /**
89
73
  * @member {String} next
90
74
  */
91
-
92
75
  PaginatedUploadedFileList.prototype['next'] = undefined;
76
+
93
77
  /**
94
78
  * @member {String} previous
95
79
  */
96
-
97
80
  PaginatedUploadedFileList.prototype['previous'] = undefined;
81
+
98
82
  /**
99
83
  * @member {Array.<module:model/UploadedFile>} results
100
84
  */
101
-
102
85
  PaginatedUploadedFileList.prototype['results'] = undefined;
103
86
  var _default = PaginatedUploadedFileList;
104
87
  exports["default"] = _default;
@@ -4,23 +4,16 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
-
8
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
9
-
10
8
  var _User = _interopRequireDefault(require("./User"));
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 PaginatedUserList model module.
22
15
  * @module model/PaginatedUserList
23
- * @version 1.10.2
16
+ * @version 1.10.3
24
17
  */
25
18
  var PaginatedUserList = /*#__PURE__*/function () {
26
19
  /**
@@ -29,19 +22,18 @@ var PaginatedUserList = /*#__PURE__*/function () {
29
22
  */
30
23
  function PaginatedUserList() {
31
24
  _classCallCheck(this, PaginatedUserList);
32
-
33
25
  PaginatedUserList.initialize(this);
34
26
  }
27
+
35
28
  /**
36
29
  * Initializes the fields of this object.
37
30
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
38
31
  * Only for internal use.
39
32
  */
40
-
41
-
42
33
  _createClass(PaginatedUserList, null, [{
43
34
  key: "initialize",
44
35
  value: function initialize(obj) {}
36
+
45
37
  /**
46
38
  * Constructs a <code>PaginatedUserList</code> from a plain JavaScript object, optionally creating a new instance.
47
39
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
@@ -49,56 +41,47 @@ var PaginatedUserList = /*#__PURE__*/function () {
49
41
  * @param {module:model/PaginatedUserList} obj Optional instance to populate.
50
42
  * @return {module:model/PaginatedUserList} The populated <code>PaginatedUserList</code> instance.
51
43
  */
52
-
53
44
  }, {
54
45
  key: "constructFromObject",
55
46
  value: function constructFromObject(data, obj) {
56
47
  if (data) {
57
48
  obj = obj || new PaginatedUserList();
58
-
59
49
  if (data.hasOwnProperty('count')) {
60
50
  obj['count'] = _ApiClient["default"].convertToType(data['count'], 'Number');
61
51
  }
62
-
63
52
  if (data.hasOwnProperty('next')) {
64
53
  obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String');
65
54
  }
66
-
67
55
  if (data.hasOwnProperty('previous')) {
68
56
  obj['previous'] = _ApiClient["default"].convertToType(data['previous'], 'String');
69
57
  }
70
-
71
58
  if (data.hasOwnProperty('results')) {
72
59
  obj['results'] = _ApiClient["default"].convertToType(data['results'], [_User["default"]]);
73
60
  }
74
61
  }
75
-
76
62
  return obj;
77
63
  }
78
64
  }]);
79
-
80
65
  return PaginatedUserList;
81
66
  }();
82
67
  /**
83
68
  * @member {Number} count
84
69
  */
85
-
86
-
87
70
  PaginatedUserList.prototype['count'] = undefined;
71
+
88
72
  /**
89
73
  * @member {String} next
90
74
  */
91
-
92
75
  PaginatedUserList.prototype['next'] = undefined;
76
+
93
77
  /**
94
78
  * @member {String} previous
95
79
  */
96
-
97
80
  PaginatedUserList.prototype['previous'] = undefined;
81
+
98
82
  /**
99
83
  * @member {Array.<module:model/User>} results
100
84
  */
101
-
102
85
  PaginatedUserList.prototype['results'] = undefined;
103
86
  var _default = PaginatedUserList;
104
87
  exports["default"] = _default;
@@ -4,23 +4,16 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
-
8
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
9
-
10
8
  var _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 PatchedConsumer model module.
22
15
  * @module model/PatchedConsumer
23
- * @version 1.10.2
16
+ * @version 1.10.3
24
17
  */
25
18
  var PatchedConsumer = /*#__PURE__*/function () {
26
19
  /**
@@ -29,19 +22,18 @@ var PatchedConsumer = /*#__PURE__*/function () {
29
22
  */
30
23
  function PatchedConsumer() {
31
24
  _classCallCheck(this, PatchedConsumer);
32
-
33
25
  PatchedConsumer.initialize(this);
34
26
  }
27
+
35
28
  /**
36
29
  * Initializes the fields of this object.
37
30
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
38
31
  * Only for internal use.
39
32
  */
40
-
41
-
42
33
  _createClass(PatchedConsumer, null, [{
43
34
  key: "initialize",
44
35
  value: function initialize(obj) {}
36
+
45
37
  /**
46
38
  * Constructs a <code>PatchedConsumer</code> from a plain JavaScript object, optionally creating a new instance.
47
39
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
@@ -49,123 +41,107 @@ var PatchedConsumer = /*#__PURE__*/function () {
49
41
  * @param {module:model/PatchedConsumer} obj Optional instance to populate.
50
42
  * @return {module:model/PatchedConsumer} The populated <code>PatchedConsumer</code> instance.
51
43
  */
52
-
53
44
  }, {
54
45
  key: "constructFromObject",
55
46
  value: function constructFromObject(data, obj) {
56
47
  if (data) {
57
48
  obj = obj || new PatchedConsumer();
58
-
59
49
  if (data.hasOwnProperty('id')) {
60
50
  obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
61
51
  }
62
-
63
52
  if (data.hasOwnProperty('name')) {
64
53
  obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
65
54
  }
66
-
67
55
  if (data.hasOwnProperty('location')) {
68
56
  obj['location'] = _Location["default"].constructFromObject(data['location']);
69
57
  }
70
-
71
58
  if (data.hasOwnProperty('blockchain_account_address')) {
72
59
  obj['blockchain_account_address'] = _ApiClient["default"].convertToType(data['blockchain_account_address'], 'String');
73
60
  }
74
-
75
61
  if (data.hasOwnProperty('website_url')) {
76
62
  obj['website_url'] = _ApiClient["default"].convertToType(data['website_url'], 'String');
77
63
  }
78
-
79
64
  if (data.hasOwnProperty('is_active')) {
80
65
  obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean');
81
66
  }
82
-
83
67
  if (data.hasOwnProperty('retailer')) {
84
68
  obj['retailer'] = _ApiClient["default"].convertToType(data['retailer'], 'String');
85
69
  }
86
-
87
70
  if (data.hasOwnProperty('energy_source_max_distance')) {
88
71
  obj['energy_source_max_distance'] = _ApiClient["default"].convertToType(data['energy_source_max_distance'], 'Number');
89
72
  }
90
-
91
73
  if (data.hasOwnProperty('partner_id')) {
92
74
  obj['partner_id'] = _ApiClient["default"].convertToType(data['partner_id'], 'String');
93
75
  }
94
-
95
76
  if (data.hasOwnProperty('created_at')) {
96
77
  obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
97
78
  }
98
-
99
79
  if (data.hasOwnProperty('updated_at')) {
100
80
  obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
101
81
  }
102
82
  }
103
-
104
83
  return obj;
105
84
  }
106
85
  }]);
107
-
108
86
  return PatchedConsumer;
109
87
  }();
110
88
  /**
111
89
  * @member {String} id
112
90
  */
113
-
114
-
115
91
  PatchedConsumer.prototype['id'] = undefined;
92
+
116
93
  /**
117
94
  * Required. 150 characters or fewer.
118
95
  * @member {String} name
119
96
  */
120
-
121
97
  PatchedConsumer.prototype['name'] = undefined;
98
+
122
99
  /**
123
100
  * @member {module:model/Location} location
124
101
  */
125
-
126
102
  PatchedConsumer.prototype['location'] = undefined;
103
+
127
104
  /**
128
105
  * @member {String} blockchain_account_address
129
106
  */
130
-
131
107
  PatchedConsumer.prototype['blockchain_account_address'] = undefined;
108
+
132
109
  /**
133
110
  * Not required. 200 characters or fewer.
134
111
  * @member {String} website_url
135
112
  */
136
-
137
113
  PatchedConsumer.prototype['website_url'] = undefined;
114
+
138
115
  /**
139
116
  * True if organization is active. Default True.
140
117
  * @member {Boolean} is_active
141
118
  */
142
-
143
119
  PatchedConsumer.prototype['is_active'] = undefined;
120
+
144
121
  /**
145
122
  * @member {String} retailer
146
123
  */
147
-
148
124
  PatchedConsumer.prototype['retailer'] = undefined;
125
+
149
126
  /**
150
127
  * Distance in kilometers. If not assigned then max distance is not used to restrict matching.
151
128
  * @member {Number} energy_source_max_distance
152
129
  */
153
-
154
130
  PatchedConsumer.prototype['energy_source_max_distance'] = undefined;
131
+
155
132
  /**
156
133
  * @member {String} partner_id
157
134
  */
158
-
159
135
  PatchedConsumer.prototype['partner_id'] = undefined;
136
+
160
137
  /**
161
138
  * @member {Date} created_at
162
139
  */
163
-
164
140
  PatchedConsumer.prototype['created_at'] = undefined;
141
+
165
142
  /**
166
143
  * @member {Date} updated_at
167
144
  */
168
-
169
145
  PatchedConsumer.prototype['updated_at'] = undefined;
170
146
  var _default = PatchedConsumer;
171
147
  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 _SmartContract = _interopRequireDefault(require("./SmartContract"));
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 PatchedConsumptionDataPointUpdate model module.
22
15
  * @module model/PatchedConsumptionDataPointUpdate
23
- * @version 1.10.2
16
+ * @version 1.10.3
24
17
  */
25
18
  var PatchedConsumptionDataPointUpdate = /*#__PURE__*/function () {
26
19
  /**
@@ -29,19 +22,18 @@ var PatchedConsumptionDataPointUpdate = /*#__PURE__*/function () {
29
22
  */
30
23
  function PatchedConsumptionDataPointUpdate() {
31
24
  _classCallCheck(this, PatchedConsumptionDataPointUpdate);
32
-
33
25
  PatchedConsumptionDataPointUpdate.initialize(this);
34
26
  }
27
+
35
28
  /**
36
29
  * Initializes the fields of this object.
37
30
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
38
31
  * Only for internal use.
39
32
  */
40
-
41
-
42
33
  _createClass(PatchedConsumptionDataPointUpdate, null, [{
43
34
  key: "initialize",
44
35
  value: function initialize(obj) {}
36
+
45
37
  /**
46
38
  * Constructs a <code>PatchedConsumptionDataPointUpdate</code> from a plain JavaScript object, optionally creating a new instance.
47
39
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
@@ -49,230 +41,203 @@ var PatchedConsumptionDataPointUpdate = /*#__PURE__*/function () {
49
41
  * @param {module:model/PatchedConsumptionDataPointUpdate} obj Optional instance to populate.
50
42
  * @return {module:model/PatchedConsumptionDataPointUpdate} The populated <code>PatchedConsumptionDataPointUpdate</code> instance.
51
43
  */
52
-
53
44
  }, {
54
45
  key: "constructFromObject",
55
46
  value: function constructFromObject(data, obj) {
56
47
  if (data) {
57
48
  obj = obj || new PatchedConsumptionDataPointUpdate();
58
-
59
49
  if (data.hasOwnProperty('id')) {
60
50
  obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
61
51
  }
62
-
63
52
  if (data.hasOwnProperty('consumption_site')) {
64
53
  obj['consumption_site'] = _ApiClient["default"].convertToType(data['consumption_site'], 'String');
65
54
  }
66
-
67
55
  if (data.hasOwnProperty('consumer')) {
68
56
  obj['consumer'] = _ApiClient["default"].convertToType(data['consumer'], 'String');
69
57
  }
70
-
71
58
  if (data.hasOwnProperty('retailer')) {
72
59
  obj['retailer'] = _ApiClient["default"].convertToType(data['retailer'], 'String');
73
60
  }
74
-
75
61
  if (data.hasOwnProperty('amount_matched_solar')) {
76
62
  obj['amount_matched_solar'] = _ApiClient["default"].convertToType(data['amount_matched_solar'], 'Number');
77
63
  }
78
-
79
64
  if (data.hasOwnProperty('amount_matched_wind')) {
80
65
  obj['amount_matched_wind'] = _ApiClient["default"].convertToType(data['amount_matched_wind'], 'Number');
81
66
  }
82
-
83
67
  if (data.hasOwnProperty('amount_matched_hydro')) {
84
68
  obj['amount_matched_hydro'] = _ApiClient["default"].convertToType(data['amount_matched_hydro'], 'Number');
85
69
  }
86
-
87
70
  if (data.hasOwnProperty('amount_matched_marine')) {
88
71
  obj['amount_matched_marine'] = _ApiClient["default"].convertToType(data['amount_matched_marine'], 'Number');
89
72
  }
90
-
91
73
  if (data.hasOwnProperty('amount_matched_thermal')) {
92
74
  obj['amount_matched_thermal'] = _ApiClient["default"].convertToType(data['amount_matched_thermal'], 'Number');
93
75
  }
94
-
95
76
  if (data.hasOwnProperty('amount_matched_solid')) {
96
77
  obj['amount_matched_solid'] = _ApiClient["default"].convertToType(data['amount_matched_solid'], 'Number');
97
78
  }
98
-
99
79
  if (data.hasOwnProperty('amount_matched_liquid')) {
100
80
  obj['amount_matched_liquid'] = _ApiClient["default"].convertToType(data['amount_matched_liquid'], 'Number');
101
81
  }
102
-
103
82
  if (data.hasOwnProperty('amount_matched_gaseous')) {
104
83
  obj['amount_matched_gaseous'] = _ApiClient["default"].convertToType(data['amount_matched_gaseous'], 'Number');
105
84
  }
106
-
107
85
  if (data.hasOwnProperty('is_fully_matched')) {
108
86
  obj['is_fully_matched'] = _ApiClient["default"].convertToType(data['is_fully_matched'], 'Boolean');
109
87
  }
110
-
111
88
  if (data.hasOwnProperty('production_sites_matched')) {
112
89
  obj['production_sites_matched'] = _ApiClient["default"].convertToType(data['production_sites_matched'], ['String']);
113
90
  }
114
-
115
91
  if (data.hasOwnProperty('consumption_start')) {
116
92
  obj['consumption_start'] = _ApiClient["default"].convertToType(data['consumption_start'], 'Date');
117
93
  }
118
-
119
94
  if (data.hasOwnProperty('consumption_end')) {
120
95
  obj['consumption_end'] = _ApiClient["default"].convertToType(data['consumption_end'], 'Date');
121
96
  }
122
-
123
97
  if (data.hasOwnProperty('amount_consumed')) {
124
98
  obj['amount_consumed'] = _ApiClient["default"].convertToType(data['amount_consumed'], 'Number');
125
99
  }
126
-
127
100
  if (data.hasOwnProperty('tx')) {
128
101
  obj['tx'] = _ApiClient["default"].convertToType(data['tx'], 'String');
129
102
  }
130
-
131
103
  if (data.hasOwnProperty('is_settlement_data')) {
132
104
  obj['is_settlement_data'] = _ApiClient["default"].convertToType(data['is_settlement_data'], 'Boolean');
133
105
  }
134
-
135
106
  if (data.hasOwnProperty('minter_contract')) {
136
107
  obj['minter_contract'] = _ApiClient["default"].convertToType(data['minter_contract'], _SmartContract["default"]);
137
108
  }
138
-
139
109
  if (data.hasOwnProperty('created_at')) {
140
110
  obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
141
111
  }
142
-
143
112
  if (data.hasOwnProperty('updated_at')) {
144
113
  obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
145
114
  }
146
115
  }
147
-
148
116
  return obj;
149
117
  }
150
118
  }]);
151
-
152
119
  return PatchedConsumptionDataPointUpdate;
153
120
  }();
154
121
  /**
155
122
  * This ID is also the token ID in the smart contract.
156
123
  * @member {Number} id
157
124
  */
158
-
159
-
160
125
  PatchedConsumptionDataPointUpdate.prototype['id'] = undefined;
126
+
161
127
  /**
162
128
  * @member {String} consumption_site
163
129
  */
164
-
165
130
  PatchedConsumptionDataPointUpdate.prototype['consumption_site'] = undefined;
131
+
166
132
  /**
167
133
  * @member {String} consumer
168
134
  */
169
-
170
135
  PatchedConsumptionDataPointUpdate.prototype['consumer'] = undefined;
136
+
171
137
  /**
172
138
  * @member {String} retailer
173
139
  */
174
-
175
140
  PatchedConsumptionDataPointUpdate.prototype['retailer'] = undefined;
141
+
176
142
  /**
177
143
  * Required. Value should be in KWh. Default 0.
178
144
  * @member {Number} amount_matched_solar
179
145
  */
180
-
181
146
  PatchedConsumptionDataPointUpdate.prototype['amount_matched_solar'] = undefined;
147
+
182
148
  /**
183
149
  * Required. Value should be in KWh. Default 0.
184
150
  * @member {Number} amount_matched_wind
185
151
  */
186
-
187
152
  PatchedConsumptionDataPointUpdate.prototype['amount_matched_wind'] = undefined;
153
+
188
154
  /**
189
155
  * Required. Value should be in KWh. Default 0.
190
156
  * @member {Number} amount_matched_hydro
191
157
  */
192
-
193
158
  PatchedConsumptionDataPointUpdate.prototype['amount_matched_hydro'] = undefined;
159
+
194
160
  /**
195
161
  * Required. Value should be in KWh. Default 0.
196
162
  * @member {Number} amount_matched_marine
197
163
  */
198
-
199
164
  PatchedConsumptionDataPointUpdate.prototype['amount_matched_marine'] = undefined;
165
+
200
166
  /**
201
167
  * Required. Value should be in KWh. Default 0.
202
168
  * @member {Number} amount_matched_thermal
203
169
  */
204
-
205
170
  PatchedConsumptionDataPointUpdate.prototype['amount_matched_thermal'] = undefined;
171
+
206
172
  /**
207
173
  * Required. Value should be in KWh. Default 0.
208
174
  * @member {Number} amount_matched_solid
209
175
  */
210
-
211
176
  PatchedConsumptionDataPointUpdate.prototype['amount_matched_solid'] = undefined;
177
+
212
178
  /**
213
179
  * Required. Value should be in KWh. Default 0.
214
180
  * @member {Number} amount_matched_liquid
215
181
  */
216
-
217
182
  PatchedConsumptionDataPointUpdate.prototype['amount_matched_liquid'] = undefined;
183
+
218
184
  /**
219
185
  * Required. Value should be in KWh. Default 0.
220
186
  * @member {Number} amount_matched_gaseous
221
187
  */
222
-
223
188
  PatchedConsumptionDataPointUpdate.prototype['amount_matched_gaseous'] = undefined;
189
+
224
190
  /**
225
191
  * True if consumption is fully matched. Default False.
226
192
  * @member {Boolean} is_fully_matched
227
193
  */
228
-
229
194
  PatchedConsumptionDataPointUpdate.prototype['is_fully_matched'] = undefined;
195
+
230
196
  /**
231
197
  * @member {Array.<String>} production_sites_matched
232
198
  */
233
-
234
199
  PatchedConsumptionDataPointUpdate.prototype['production_sites_matched'] = undefined;
200
+
235
201
  /**
236
202
  * @member {Date} consumption_start
237
203
  */
238
-
239
204
  PatchedConsumptionDataPointUpdate.prototype['consumption_start'] = undefined;
205
+
240
206
  /**
241
207
  * @member {Date} consumption_end
242
208
  */
243
-
244
209
  PatchedConsumptionDataPointUpdate.prototype['consumption_end'] = undefined;
210
+
245
211
  /**
246
212
  * Required. Value should be in KWh. Default 0.
247
213
  * @member {Number} amount_consumed
248
214
  */
249
-
250
215
  PatchedConsumptionDataPointUpdate.prototype['amount_consumed'] = undefined;
216
+
251
217
  /**
252
218
  * @member {String} tx
253
219
  */
254
-
255
220
  PatchedConsumptionDataPointUpdate.prototype['tx'] = undefined;
221
+
256
222
  /**
257
223
  * True if settlement data. Default False.
258
224
  * @member {Boolean} is_settlement_data
259
225
  */
260
-
261
226
  PatchedConsumptionDataPointUpdate.prototype['is_settlement_data'] = undefined;
227
+
262
228
  /**
263
229
  * @member {module:model/SmartContract} minter_contract
264
230
  */
265
-
266
231
  PatchedConsumptionDataPointUpdate.prototype['minter_contract'] = undefined;
232
+
267
233
  /**
268
234
  * @member {Date} created_at
269
235
  */
270
-
271
236
  PatchedConsumptionDataPointUpdate.prototype['created_at'] = undefined;
237
+
272
238
  /**
273
239
  * @member {Date} updated_at
274
240
  */
275
-
276
241
  PatchedConsumptionDataPointUpdate.prototype['updated_at'] = undefined;
277
242
  var _default = PatchedConsumptionDataPointUpdate;
278
243
  exports["default"] = _default;