green_link_api 0.49.6 → 0.54.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/README.md +39 -37
  2. package/dist/ApiClient.js +3 -6
  3. package/dist/api/BlockchainApi.js +283 -0
  4. package/dist/api/EnergyAssetsApi.js +89 -19
  5. package/dist/api/EnergyDataApi.js +173 -39
  6. package/dist/api/HealthCheckApi.js +2 -2
  7. package/dist/api/LicensedProductionSitesOnEpiasApi.js +2 -2
  8. package/dist/api/LocationsApi.js +9 -9
  9. package/dist/api/MaintenanceCheckApi.js +2 -2
  10. package/dist/api/OrganizationprofilesApi.js +7 -7
  11. package/dist/api/OrganizationsApi.js +31 -31
  12. package/dist/api/SchemaApi.js +2 -2
  13. package/dist/api/SentryDebugApi.js +2 -2
  14. package/dist/api/UploadedfilesApi.js +226 -0
  15. package/dist/api/UsersApi.js +13 -230
  16. package/dist/index.js +121 -41
  17. package/dist/model/BlockchainTransaction.js +172 -0
  18. package/dist/model/Consumer.js +1 -1
  19. package/dist/model/ConsumptionDataFileList.js +1 -1
  20. package/dist/model/ConsumptionDataFromRetailer.js +101 -0
  21. package/dist/model/ConsumptionDataPointCreate.js +11 -11
  22. package/dist/model/ConsumptionDataPointListOrDetail.js +20 -13
  23. package/dist/model/ConsumptionDataPointUpdate.js +11 -11
  24. package/dist/model/ConsumptionSite.js +1 -1
  25. package/dist/model/ConsumptionSiteFileUpload.js +1 -1
  26. package/dist/model/{TokenRefresh.js → ConsumptionSiteFromRetailer.js} +24 -32
  27. package/dist/model/ConsumptionSiteListOrDetail.js +1 -1
  28. package/dist/model/ConsumptionSiteMany.js +195 -0
  29. package/dist/model/ContentTypeEnum.js +54 -0
  30. package/dist/model/EmissionFactor.js +1 -1
  31. package/dist/model/EnergySourcePreference.js +1 -1
  32. package/dist/model/GetFromEpias.js +1 -1
  33. package/dist/model/GridOperator.js +1 -1
  34. package/dist/model/Issuer.js +1 -1
  35. package/dist/model/Location.js +1 -1
  36. package/dist/model/Login.js +1 -1
  37. package/dist/model/MatchRequest.js +1 -1
  38. package/dist/model/MatchedEnergyDataPoint.js +12 -13
  39. package/dist/model/MatchingConsumerRequest.js +1 -1
  40. package/dist/model/MatchingSiteRequest.js +1 -1
  41. package/dist/model/PaginatedConsumerList.js +1 -1
  42. package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +1 -1
  43. package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +1 -1
  44. package/dist/model/PaginatedEmissionFactorList.js +1 -1
  45. package/dist/model/PaginatedEnergySourcePreferenceList.js +1 -1
  46. package/dist/model/PaginatedGridOperatorList.js +1 -1
  47. package/dist/model/PaginatedIssuerList.js +1 -1
  48. package/dist/model/PaginatedLocationList.js +1 -1
  49. package/dist/model/PaginatedMatchRequestList.js +1 -1
  50. package/dist/model/PaginatedMatchedEnergyDataPointList.js +1 -1
  51. package/dist/model/PaginatedProducerList.js +1 -1
  52. package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +104 -0
  53. package/dist/model/PaginatedProductionDataPointListOrDetailList.js +1 -1
  54. package/dist/model/PaginatedProductionSiteListOrDetailList.js +1 -1
  55. package/dist/model/PaginatedRetailerList.js +1 -1
  56. package/dist/model/PaginatedSmartContractList.js +104 -0
  57. package/dist/model/PaginatedUnprocessedRowList.js +104 -0
  58. package/dist/model/PaginatedUploadedFileList.js +104 -0
  59. package/dist/model/PaginatedUserList.js +1 -1
  60. package/dist/model/PatchedConsumer.js +1 -1
  61. package/dist/model/PatchedConsumptionDataPointUpdate.js +11 -11
  62. package/dist/model/PatchedConsumptionSite.js +1 -1
  63. package/dist/model/PatchedEmissionFactor.js +1 -1
  64. package/dist/model/PatchedEnergySourcePreference.js +1 -1
  65. package/dist/model/PatchedGridOperator.js +1 -1
  66. package/dist/model/PatchedIssuer.js +1 -1
  67. package/dist/model/PatchedLocation.js +1 -1
  68. package/dist/model/PatchedProducer.js +1 -1
  69. package/dist/model/PatchedProductionDataPointUpdate.js +12 -12
  70. package/dist/model/PatchedProductionSiteUpdate.js +2 -1
  71. package/dist/model/PatchedRetailer.js +1 -1
  72. package/dist/model/PatchedSmartContract.js +132 -0
  73. package/dist/model/PatchedUser.js +3 -1
  74. package/dist/model/PatchedUserDetail.js +3 -1
  75. package/dist/model/PriorityEnum.js +6 -0
  76. package/dist/model/Producer.js +1 -1
  77. package/dist/model/ProductionDataFileList.js +1 -1
  78. package/dist/model/ProductionDataFromEpiasRequest.js +167 -0
  79. package/dist/model/ProductionDataPointCreate.js +12 -12
  80. package/dist/model/ProductionDataPointListOrDetail.js +21 -14
  81. package/dist/model/ProductionDataPointUpdate.js +12 -12
  82. package/dist/model/ProductionSite.js +5 -6
  83. package/dist/model/ProductionSiteFileUpload.js +1 -1
  84. package/dist/model/ProductionSiteListOrDetail.js +1 -1
  85. package/dist/model/ProductionSiteUpdate.js +5 -6
  86. package/dist/model/Register.js +8 -5
  87. package/dist/model/Retailer.js +1 -1
  88. package/dist/model/SmartContract.js +137 -0
  89. package/dist/model/{VerifyEmail.js → Token.js} +18 -17
  90. package/dist/model/TypeEnum.js +52 -0
  91. package/dist/model/UnprocessedRow.js +140 -0
  92. package/dist/model/UploadedFile.js +166 -0
  93. package/dist/model/User.js +3 -1
  94. package/dist/model/UserDetail.js +3 -1
  95. package/package.json +1 -1
  96. package/dist/model/JWT.js +0 -103
  97. package/dist/model/PasswordChange.js +0 -100
  98. package/dist/model/PasswordReset.js +0 -79
  99. package/dist/model/PasswordResetConfirm.js +0 -112
  100. package/dist/model/RestAuthDetail.js +0 -75
  101. package/dist/model/TokenVerify.js +0 -78
@@ -0,0 +1,137 @@
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); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
17
+
18
+ /**
19
+ * The SmartContract model module.
20
+ * @module model/SmartContract
21
+ * @version 0.54.4
22
+ */
23
+ var SmartContract = /*#__PURE__*/function () {
24
+ /**
25
+ * Constructs a new <code>SmartContract</code>.
26
+ * @alias module:model/SmartContract
27
+ * @param name {String} Required. 150 characters or fewer.
28
+ * @param abi {String}
29
+ */
30
+ function SmartContract(name, abi) {
31
+ _classCallCheck(this, SmartContract);
32
+
33
+ SmartContract.initialize(this, name, abi);
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(SmartContract, null, [{
43
+ key: "initialize",
44
+ value: function initialize(obj, name, abi) {
45
+ obj['name'] = name;
46
+ obj['abi'] = abi;
47
+ }
48
+ /**
49
+ * Constructs a <code>SmartContract</code> from a plain JavaScript object, optionally creating a new instance.
50
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
51
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
52
+ * @param {module:model/SmartContract} obj Optional instance to populate.
53
+ * @return {module:model/SmartContract} The populated <code>SmartContract</code> instance.
54
+ */
55
+
56
+ }, {
57
+ key: "constructFromObject",
58
+ value: function constructFromObject(data, obj) {
59
+ if (data) {
60
+ obj = obj || new SmartContract();
61
+
62
+ if (data.hasOwnProperty('id')) {
63
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
64
+ }
65
+
66
+ if (data.hasOwnProperty('name')) {
67
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
68
+ }
69
+
70
+ if (data.hasOwnProperty('blockchain_account_address')) {
71
+ obj['blockchain_account_address'] = _ApiClient["default"].convertToType(data['blockchain_account_address'], 'String');
72
+ }
73
+
74
+ if (data.hasOwnProperty('abi')) {
75
+ obj['abi'] = _ApiClient["default"].convertToType(data['abi'], 'String');
76
+ }
77
+
78
+ if (data.hasOwnProperty('is_active')) {
79
+ obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean');
80
+ }
81
+
82
+ if (data.hasOwnProperty('created_at')) {
83
+ obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
84
+ }
85
+
86
+ if (data.hasOwnProperty('updated_at')) {
87
+ obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
88
+ }
89
+ }
90
+
91
+ return obj;
92
+ }
93
+ }]);
94
+
95
+ return SmartContract;
96
+ }();
97
+ /**
98
+ * @member {String} id
99
+ */
100
+
101
+
102
+ SmartContract.prototype['id'] = undefined;
103
+ /**
104
+ * Required. 150 characters or fewer.
105
+ * @member {String} name
106
+ */
107
+
108
+ SmartContract.prototype['name'] = undefined;
109
+ /**
110
+ * Production site's blockchain account address.
111
+ * @member {String} blockchain_account_address
112
+ */
113
+
114
+ SmartContract.prototype['blockchain_account_address'] = undefined;
115
+ /**
116
+ * @member {String} abi
117
+ */
118
+
119
+ SmartContract.prototype['abi'] = undefined;
120
+ /**
121
+ * True if contract is active. Default True.
122
+ * @member {Boolean} is_active
123
+ */
124
+
125
+ SmartContract.prototype['is_active'] = undefined;
126
+ /**
127
+ * @member {Date} created_at
128
+ */
129
+
130
+ SmartContract.prototype['created_at'] = undefined;
131
+ /**
132
+ * @member {Date} updated_at
133
+ */
134
+
135
+ SmartContract.prototype['updated_at'] = undefined;
136
+ var _default = SmartContract;
137
+ exports["default"] = _default;
@@ -16,20 +16,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
16
16
  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
17
 
18
18
  /**
19
- * The VerifyEmail model module.
20
- * @module model/VerifyEmail
21
- * @version 0.49.6
19
+ * The Token model module.
20
+ * @module model/Token
21
+ * @version 0.54.4
22
22
  */
23
- var VerifyEmail = /*#__PURE__*/function () {
23
+ var Token = /*#__PURE__*/function () {
24
24
  /**
25
- * Constructs a new <code>VerifyEmail</code>.
26
- * @alias module:model/VerifyEmail
25
+ * Constructs a new <code>Token</code>.
26
+ * Serializer for Token model.
27
+ * @alias module:model/Token
27
28
  * @param key {String}
28
29
  */
29
- function VerifyEmail(key) {
30
- _classCallCheck(this, VerifyEmail);
30
+ function Token(key) {
31
+ _classCallCheck(this, Token);
31
32
 
32
- VerifyEmail.initialize(this, key);
33
+ Token.initialize(this, key);
33
34
  }
34
35
  /**
35
36
  * Initializes the fields of this object.
@@ -38,24 +39,24 @@ var VerifyEmail = /*#__PURE__*/function () {
38
39
  */
39
40
 
40
41
 
41
- _createClass(VerifyEmail, null, [{
42
+ _createClass(Token, null, [{
42
43
  key: "initialize",
43
44
  value: function initialize(obj, key) {
44
45
  obj['key'] = key;
45
46
  }
46
47
  /**
47
- * Constructs a <code>VerifyEmail</code> from a plain JavaScript object, optionally creating a new instance.
48
+ * Constructs a <code>Token</code> from a plain JavaScript object, optionally creating a new instance.
48
49
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
49
50
  * @param {Object} data The plain JavaScript object bearing properties of interest.
50
- * @param {module:model/VerifyEmail} obj Optional instance to populate.
51
- * @return {module:model/VerifyEmail} The populated <code>VerifyEmail</code> instance.
51
+ * @param {module:model/Token} obj Optional instance to populate.
52
+ * @return {module:model/Token} The populated <code>Token</code> instance.
52
53
  */
53
54
 
54
55
  }, {
55
56
  key: "constructFromObject",
56
57
  value: function constructFromObject(data, obj) {
57
58
  if (data) {
58
- obj = obj || new VerifyEmail();
59
+ obj = obj || new Token();
59
60
 
60
61
  if (data.hasOwnProperty('key')) {
61
62
  obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String');
@@ -66,13 +67,13 @@ var VerifyEmail = /*#__PURE__*/function () {
66
67
  }
67
68
  }]);
68
69
 
69
- return VerifyEmail;
70
+ return Token;
70
71
  }();
71
72
  /**
72
73
  * @member {String} key
73
74
  */
74
75
 
75
76
 
76
- VerifyEmail.prototype['key'] = undefined;
77
- var _default = VerifyEmail;
77
+ Token.prototype['key'] = undefined;
78
+ var _default = Token;
78
79
  exports["default"] = _default;
@@ -0,0 +1,52 @@
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); Object.defineProperty(Constructor, "prototype", { writable: false }); 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 TypeEnum.
22
+ * @enum {}
23
+ * @readonly
24
+ */
25
+ var TypeEnum = /*#__PURE__*/function () {
26
+ function TypeEnum() {
27
+ _classCallCheck(this, TypeEnum);
28
+
29
+ _defineProperty(this, "tokenize_consumption", "tokenize_consumption");
30
+
31
+ _defineProperty(this, "tokenize_production", "tokenize_production");
32
+
33
+ _defineProperty(this, "transfer_matched_tokens", "transfer_matched_tokens");
34
+ }
35
+
36
+ _createClass(TypeEnum, null, [{
37
+ key: "constructFromObject",
38
+ value:
39
+ /**
40
+ * Returns a <code>TypeEnum</code> enum value from a Javascript object name.
41
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
42
+ * @return {module:model/TypeEnum} The enum <code>TypeEnum</code> value.
43
+ */
44
+ function constructFromObject(object) {
45
+ return object;
46
+ }
47
+ }]);
48
+
49
+ return TypeEnum;
50
+ }();
51
+
52
+ exports["default"] = TypeEnum;
@@ -0,0 +1,140 @@
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); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
17
+
18
+ /**
19
+ * The UnprocessedRow model module.
20
+ * @module model/UnprocessedRow
21
+ * @version 0.54.4
22
+ */
23
+ var UnprocessedRow = /*#__PURE__*/function () {
24
+ /**
25
+ * Constructs a new <code>UnprocessedRow</code>.
26
+ * @alias module:model/UnprocessedRow
27
+ * @param rowNumber {Number} Row number with an issue.
28
+ * @param errorMessage {String} Returns error information on unprocessed rows. Max length is 200.
29
+ * @param uploadedFile {String}
30
+ * @param owner {String}
31
+ */
32
+ function UnprocessedRow(rowNumber, errorMessage, uploadedFile, owner) {
33
+ _classCallCheck(this, UnprocessedRow);
34
+
35
+ UnprocessedRow.initialize(this, rowNumber, errorMessage, uploadedFile, owner);
36
+ }
37
+ /**
38
+ * Initializes the fields of this object.
39
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
40
+ * Only for internal use.
41
+ */
42
+
43
+
44
+ _createClass(UnprocessedRow, null, [{
45
+ key: "initialize",
46
+ value: function initialize(obj, rowNumber, errorMessage, uploadedFile, owner) {
47
+ obj['row_number'] = rowNumber;
48
+ obj['error_message'] = errorMessage;
49
+ obj['uploaded_file'] = uploadedFile;
50
+ obj['owner'] = owner;
51
+ }
52
+ /**
53
+ * Constructs a <code>UnprocessedRow</code> from a plain JavaScript object, optionally creating a new instance.
54
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
55
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
56
+ * @param {module:model/UnprocessedRow} obj Optional instance to populate.
57
+ * @return {module:model/UnprocessedRow} The populated <code>UnprocessedRow</code> instance.
58
+ */
59
+
60
+ }, {
61
+ key: "constructFromObject",
62
+ value: function constructFromObject(data, obj) {
63
+ if (data) {
64
+ obj = obj || new UnprocessedRow();
65
+
66
+ if (data.hasOwnProperty('id')) {
67
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
68
+ }
69
+
70
+ if (data.hasOwnProperty('row_number')) {
71
+ obj['row_number'] = _ApiClient["default"].convertToType(data['row_number'], 'Number');
72
+ }
73
+
74
+ if (data.hasOwnProperty('error_message')) {
75
+ obj['error_message'] = _ApiClient["default"].convertToType(data['error_message'], 'String');
76
+ }
77
+
78
+ if (data.hasOwnProperty('uploaded_file')) {
79
+ obj['uploaded_file'] = _ApiClient["default"].convertToType(data['uploaded_file'], 'String');
80
+ }
81
+
82
+ if (data.hasOwnProperty('owner')) {
83
+ obj['owner'] = _ApiClient["default"].convertToType(data['owner'], 'String');
84
+ }
85
+
86
+ if (data.hasOwnProperty('updated_at')) {
87
+ obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
88
+ }
89
+
90
+ if (data.hasOwnProperty('created_at')) {
91
+ obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
92
+ }
93
+ }
94
+
95
+ return obj;
96
+ }
97
+ }]);
98
+
99
+ return UnprocessedRow;
100
+ }();
101
+ /**
102
+ * @member {String} id
103
+ */
104
+
105
+
106
+ UnprocessedRow.prototype['id'] = undefined;
107
+ /**
108
+ * Row number with an issue.
109
+ * @member {Number} row_number
110
+ */
111
+
112
+ UnprocessedRow.prototype['row_number'] = undefined;
113
+ /**
114
+ * Returns error information on unprocessed rows. Max length is 200.
115
+ * @member {String} error_message
116
+ */
117
+
118
+ UnprocessedRow.prototype['error_message'] = undefined;
119
+ /**
120
+ * @member {String} uploaded_file
121
+ */
122
+
123
+ UnprocessedRow.prototype['uploaded_file'] = undefined;
124
+ /**
125
+ * @member {String} owner
126
+ */
127
+
128
+ UnprocessedRow.prototype['owner'] = undefined;
129
+ /**
130
+ * @member {Date} updated_at
131
+ */
132
+
133
+ UnprocessedRow.prototype['updated_at'] = undefined;
134
+ /**
135
+ * @member {Date} created_at
136
+ */
137
+
138
+ UnprocessedRow.prototype['created_at'] = undefined;
139
+ var _default = UnprocessedRow;
140
+ exports["default"] = _default;
@@ -0,0 +1,166 @@
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 _ContentTypeEnum = _interopRequireDefault(require("./ContentTypeEnum"));
11
+
12
+ var _StatusEnum = _interopRequireDefault(require("./StatusEnum"));
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+
16
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
+
18
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
19
+
20
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
21
+
22
+ /**
23
+ * The UploadedFile model module.
24
+ * @module model/UploadedFile
25
+ * @version 0.54.4
26
+ */
27
+ var UploadedFile = /*#__PURE__*/function () {
28
+ /**
29
+ * Constructs a new <code>UploadedFile</code>.
30
+ * @alias module:model/UploadedFile
31
+ * @param name {String} Required. Max length is 200.
32
+ * @param upload {String}
33
+ * @param contentType {module:model/ContentTypeEnum} Required. Select from available choices.
34
+ * @param hash {String} Required. Max length is 32 since MD5 hashes are 128bits.
35
+ * @param owner {String}
36
+ */
37
+ function UploadedFile(name, upload, contentType, hash, owner) {
38
+ _classCallCheck(this, UploadedFile);
39
+
40
+ UploadedFile.initialize(this, name, upload, contentType, hash, owner);
41
+ }
42
+ /**
43
+ * Initializes the fields of this object.
44
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
+ * Only for internal use.
46
+ */
47
+
48
+
49
+ _createClass(UploadedFile, null, [{
50
+ key: "initialize",
51
+ value: function initialize(obj, name, upload, contentType, hash, owner) {
52
+ obj['name'] = name;
53
+ obj['upload'] = upload;
54
+ obj['content_type'] = contentType;
55
+ obj['hash'] = hash;
56
+ obj['owner'] = owner;
57
+ }
58
+ /**
59
+ * Constructs a <code>UploadedFile</code> from a plain JavaScript object, optionally creating a new instance.
60
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
61
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
62
+ * @param {module:model/UploadedFile} obj Optional instance to populate.
63
+ * @return {module:model/UploadedFile} The populated <code>UploadedFile</code> instance.
64
+ */
65
+
66
+ }, {
67
+ key: "constructFromObject",
68
+ value: function constructFromObject(data, obj) {
69
+ if (data) {
70
+ obj = obj || new UploadedFile();
71
+
72
+ if (data.hasOwnProperty('id')) {
73
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
74
+ }
75
+
76
+ if (data.hasOwnProperty('name')) {
77
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
78
+ }
79
+
80
+ if (data.hasOwnProperty('upload')) {
81
+ obj['upload'] = _ApiClient["default"].convertToType(data['upload'], 'String');
82
+ }
83
+
84
+ if (data.hasOwnProperty('content_type')) {
85
+ obj['content_type'] = _ApiClient["default"].convertToType(data['content_type'], _ContentTypeEnum["default"]);
86
+ }
87
+
88
+ if (data.hasOwnProperty('hash')) {
89
+ obj['hash'] = _ApiClient["default"].convertToType(data['hash'], 'String');
90
+ }
91
+
92
+ if (data.hasOwnProperty('owner')) {
93
+ obj['owner'] = _ApiClient["default"].convertToType(data['owner'], 'String');
94
+ }
95
+
96
+ if (data.hasOwnProperty('status')) {
97
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], _StatusEnum["default"]);
98
+ }
99
+
100
+ if (data.hasOwnProperty('created_at')) {
101
+ obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
102
+ }
103
+
104
+ if (data.hasOwnProperty('updated_at')) {
105
+ obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
106
+ }
107
+ }
108
+
109
+ return obj;
110
+ }
111
+ }]);
112
+
113
+ return UploadedFile;
114
+ }();
115
+ /**
116
+ * @member {String} id
117
+ */
118
+
119
+
120
+ UploadedFile.prototype['id'] = undefined;
121
+ /**
122
+ * Required. Max length is 200.
123
+ * @member {String} name
124
+ */
125
+
126
+ UploadedFile.prototype['name'] = undefined;
127
+ /**
128
+ * @member {String} upload
129
+ */
130
+
131
+ UploadedFile.prototype['upload'] = undefined;
132
+ /**
133
+ * Required. Select from available choices.
134
+ * @member {module:model/ContentTypeEnum} content_type
135
+ */
136
+
137
+ UploadedFile.prototype['content_type'] = undefined;
138
+ /**
139
+ * Required. Max length is 32 since MD5 hashes are 128bits.
140
+ * @member {String} hash
141
+ */
142
+
143
+ UploadedFile.prototype['hash'] = undefined;
144
+ /**
145
+ * @member {String} owner
146
+ */
147
+
148
+ UploadedFile.prototype['owner'] = undefined;
149
+ /**
150
+ * Status is set to `started` or `finished` if the file has been processed. Default `unstarted`.
151
+ * @member {module:model/StatusEnum} status
152
+ */
153
+
154
+ UploadedFile.prototype['status'] = undefined;
155
+ /**
156
+ * @member {Date} created_at
157
+ */
158
+
159
+ UploadedFile.prototype['created_at'] = undefined;
160
+ /**
161
+ * @member {Date} updated_at
162
+ */
163
+
164
+ UploadedFile.prototype['updated_at'] = undefined;
165
+ var _default = UploadedFile;
166
+ exports["default"] = _default;
@@ -20,7 +20,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
20
20
  /**
21
21
  * The User model module.
22
22
  * @module model/User
23
- * @version 0.49.6
23
+ * @version 0.54.4
24
24
  */
25
25
  var User = /*#__PURE__*/function () {
26
26
  /**
@@ -152,11 +152,13 @@ User.prototype['first_name'] = undefined;
152
152
 
153
153
  User.prototype['last_name'] = undefined;
154
154
  /**
155
+ * Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. Default is the user's email.
155
156
  * @member {String} username
156
157
  */
157
158
 
158
159
  User.prototype['username'] = undefined;
159
160
  /**
161
+ * Required.
160
162
  * @member {String} email
161
163
  */
162
164
 
@@ -20,7 +20,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
20
20
  /**
21
21
  * The UserDetail model module.
22
22
  * @module model/UserDetail
23
- * @version 0.49.6
23
+ * @version 0.54.4
24
24
  */
25
25
  var UserDetail = /*#__PURE__*/function () {
26
26
  /**
@@ -152,11 +152,13 @@ UserDetail.prototype['first_name'] = undefined;
152
152
 
153
153
  UserDetail.prototype['last_name'] = undefined;
154
154
  /**
155
+ * Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. Default is the user's email.
155
156
  * @member {String} username
156
157
  */
157
158
 
158
159
  UserDetail.prototype['username'] = undefined;
159
160
  /**
161
+ * Required.
160
162
  * @member {String} email
161
163
  */
162
164
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "green_link_api",
3
- "version": "0.49.6",
3
+ "version": "0.54.4",
4
4
  "description": "GreenLink_API_documentation_with_interactive_tools_for_testing_API_endpoints_",
5
5
  "license": "Unlicense",
6
6
  "main": "dist/index.js",