green_link_api 0.51.3 → 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 (95) hide show
  1. package/README.md +29 -5
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/BlockchainApi.js +283 -0
  4. package/dist/api/EnergyAssetsApi.js +1 -1
  5. package/dist/api/EnergyDataApi.js +110 -11
  6. package/dist/api/HealthCheckApi.js +1 -1
  7. package/dist/api/LicensedProductionSitesOnEpiasApi.js +1 -1
  8. package/dist/api/LocationsApi.js +1 -1
  9. package/dist/api/MaintenanceCheckApi.js +1 -1
  10. package/dist/api/OrganizationprofilesApi.js +1 -1
  11. package/dist/api/OrganizationsApi.js +1 -1
  12. package/dist/api/SchemaApi.js +1 -1
  13. package/dist/api/SentryDebugApi.js +1 -1
  14. package/dist/api/UploadedfilesApi.js +226 -0
  15. package/dist/api/UsersApi.js +1 -1
  16. package/dist/index.js +112 -0
  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 +1 -1
  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/ConsumptionSiteFromRetailer.js +1 -1
  27. package/dist/model/ConsumptionSiteListOrDetail.js +1 -1
  28. package/dist/model/ConsumptionSiteMany.js +1 -1
  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 +1 -1
  74. package/dist/model/PatchedUserDetail.js +1 -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 +1 -1
  87. package/dist/model/Retailer.js +1 -1
  88. package/dist/model/SmartContract.js +137 -0
  89. package/dist/model/Token.js +1 -1
  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 +1 -1
  94. package/dist/model/UserDetail.js +1 -1
  95. package/package.json +1 -1
@@ -37,6 +37,8 @@ var _PaginatedMatchRequestList = _interopRequireDefault(require("../model/Pagina
37
37
 
38
38
  var _PaginatedMatchedEnergyDataPointList = _interopRequireDefault(require("../model/PaginatedMatchedEnergyDataPointList"));
39
39
 
40
+ var _PaginatedProductionDataFromEpiasRequestList = _interopRequireDefault(require("../model/PaginatedProductionDataFromEpiasRequestList"));
41
+
40
42
  var _PaginatedProductionDataPointListOrDetailList = _interopRequireDefault(require("../model/PaginatedProductionDataPointListOrDetailList"));
41
43
 
42
44
  var _PatchedConsumptionDataPointUpdate = _interopRequireDefault(require("../model/PatchedConsumptionDataPointUpdate"));
@@ -47,6 +49,8 @@ var _PatchedProductionDataPointUpdate = _interopRequireDefault(require("../model
47
49
 
48
50
  var _ProductionDataFileList = _interopRequireDefault(require("../model/ProductionDataFileList"));
49
51
 
52
+ var _ProductionDataFromEpiasRequest = _interopRequireDefault(require("../model/ProductionDataFromEpiasRequest"));
53
+
50
54
  var _ProductionDataPointCreate = _interopRequireDefault(require("../model/ProductionDataPointCreate"));
51
55
 
52
56
  var _ProductionDataPointListOrDetail = _interopRequireDefault(require("../model/ProductionDataPointListOrDetail"));
@@ -64,7 +68,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
64
68
  /**
65
69
  * EnergyData service.
66
70
  * @module api/EnergyDataApi
67
- * @version 0.51.3
71
+ * @version 0.54.4
68
72
  */
69
73
  var EnergyDataApi = /*#__PURE__*/function () {
70
74
  /**
@@ -206,17 +210,17 @@ var EnergyDataApi = /*#__PURE__*/function () {
206
210
  * @param {String} opts.consumptionSite
207
211
  * @param {Date} opts.consumptionStartAfter Filter consumption_start time after a given ISO 8601 formatted date (e.g: 2020-01-01T03:00:00+03:00)
208
212
  * @param {Date} opts.consumptionStartBefore Filter consumption_start time before a given ISO 8601 formatted date (e.g: 2020-01-02T03:00:00+03:00)
209
- * @param {String} opts.consumptionTxHash
210
213
  * @param {Date} opts.createdAt
211
214
  * @param {Number} opts.id
212
215
  * @param {Boolean} opts.isFullyMatched Filter consumption datapoints based on matched status. Returns unmatched points if set to false.
213
216
  * @param {Boolean} opts.isSettlementData
214
217
  * @param {Number} opts.limit Number of results to return per page.
218
+ * @param {String} opts.minterContract
215
219
  * @param {Number} opts.offset The initial index from which to return the results.
216
220
  * @param {Array.<module:model/String>} opts.orderBy Ordering
217
221
  * @param {Array.<String>} opts.productionSitesMatched
218
222
  * @param {String} opts.retailer
219
- * @param {String} opts.tokenContractAddress
223
+ * @param {String} opts.tx
220
224
  * @param {Date} opts.updatedAt
221
225
  * @param {module:api/EnergyDataApi~energyDataConsumptionDataListCallback} callback The callback function, accepting three arguments: error, data, response
222
226
  * data is of type: {@link module:model/PaginatedConsumptionDataPointListOrDetailList}
@@ -242,17 +246,17 @@ var EnergyDataApi = /*#__PURE__*/function () {
242
246
  'consumption_site': opts['consumptionSite'],
243
247
  'consumption_start_after': opts['consumptionStartAfter'],
244
248
  'consumption_start_before': opts['consumptionStartBefore'],
245
- 'consumption_tx_hash': opts['consumptionTxHash'],
246
249
  'created_at': opts['createdAt'],
247
250
  'id': opts['id'],
248
251
  'is_fully_matched': opts['isFullyMatched'],
249
252
  'is_settlement_data': opts['isSettlementData'],
250
253
  'limit': opts['limit'],
254
+ 'minter_contract': opts['minterContract'],
251
255
  'offset': opts['offset'],
252
256
  'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
253
257
  'production_sites_matched': this.apiClient.buildCollectionParam(opts['productionSitesMatched'], 'multi'),
254
258
  'retailer': opts['retailer'],
255
- 'token_contract_address': opts['tokenContractAddress'],
259
+ 'tx': opts['tx'],
256
260
  'updated_at': opts['updatedAt']
257
261
  };
258
262
  var headerParams = {};
@@ -648,6 +652,101 @@ var EnergyDataApi = /*#__PURE__*/function () {
648
652
  var returnType = _EmissionFactor["default"];
649
653
  return this.apiClient.callApi('/energy-data/emission-factor/{id}/', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
650
654
  }
655
+ /**
656
+ * Callback function to receive the result of the energyDataEpiasRequestList operation.
657
+ * @callback module:api/EnergyDataApi~energyDataEpiasRequestListCallback
658
+ * @param {String} error Error message, if any.
659
+ * @param {module:model/PaginatedProductionDataFromEpiasRequestList} data The data returned by the service call.
660
+ * @param {String} response The complete HTTP response.
661
+ */
662
+
663
+ /**
664
+ * **List all EPIAS requests related to the user's organization.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
665
+ * @param {Object} opts Optional parameters
666
+ * @param {Date} opts.createdAt
667
+ * @param {Date} opts.endTime
668
+ * @param {String} opts.id
669
+ * @param {Number} opts.limit Number of results to return per page.
670
+ * @param {Number} opts.offset The initial index from which to return the results.
671
+ * @param {Array.<module:model/String>} opts.orderBy Ordering
672
+ * @param {String} opts.producer
673
+ * @param {String} opts.productionSite
674
+ * @param {String} opts.retailer
675
+ * @param {Date} opts.startAfter Filter start time after a given ISO 8601 formatted date (e.g: 2020-01-01T03:00:00+03:00)
676
+ * @param {Date} opts.startBefore Filter start time before a given ISO 8601 formatted date (e.g: 2020-01-02T03:00:00+03:00)
677
+ * @param {Date} opts.startTime
678
+ * @param {module:model/String} opts.status Status is set to `started` or `finished` if at least one or all consumption datapoints have been matched. Default `unstarted`.
679
+ * @param {Date} opts.updatedAt
680
+ * @param {module:api/EnergyDataApi~energyDataEpiasRequestListCallback} callback The callback function, accepting three arguments: error, data, response
681
+ * data is of type: {@link module:model/PaginatedProductionDataFromEpiasRequestList}
682
+ */
683
+
684
+ }, {
685
+ key: "energyDataEpiasRequestList",
686
+ value: function energyDataEpiasRequestList(opts, callback) {
687
+ opts = opts || {};
688
+ var postBody = null;
689
+ var pathParams = {};
690
+ var queryParams = {
691
+ 'created_at': opts['createdAt'],
692
+ 'end_time': opts['endTime'],
693
+ 'id': opts['id'],
694
+ 'limit': opts['limit'],
695
+ 'offset': opts['offset'],
696
+ 'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
697
+ 'producer': opts['producer'],
698
+ 'production_site': opts['productionSite'],
699
+ 'retailer': opts['retailer'],
700
+ 'start_after': opts['startAfter'],
701
+ 'start_before': opts['startBefore'],
702
+ 'start_time': opts['startTime'],
703
+ 'status': opts['status'],
704
+ 'updated_at': opts['updatedAt']
705
+ };
706
+ var headerParams = {};
707
+ var formParams = {};
708
+ var authNames = ['jwtAuth', 'tokenAuth'];
709
+ var contentTypes = [];
710
+ var accepts = ['application/json'];
711
+ var returnType = _PaginatedProductionDataFromEpiasRequestList["default"];
712
+ return this.apiClient.callApi('/energy-data/epias-request/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
713
+ }
714
+ /**
715
+ * Callback function to receive the result of the energyDataEpiasRequestRetrieve operation.
716
+ * @callback module:api/EnergyDataApi~energyDataEpiasRequestRetrieveCallback
717
+ * @param {String} error Error message, if any.
718
+ * @param {module:model/ProductionDataFromEpiasRequest} data The data returned by the service call.
719
+ * @param {String} response The complete HTTP response.
720
+ */
721
+
722
+ /**
723
+ * **Get a specific EPIAS request details.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
724
+ * @param {String} id A UUID string identifying this production data from epias request.
725
+ * @param {module:api/EnergyDataApi~energyDataEpiasRequestRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
726
+ * data is of type: {@link module:model/ProductionDataFromEpiasRequest}
727
+ */
728
+
729
+ }, {
730
+ key: "energyDataEpiasRequestRetrieve",
731
+ value: function energyDataEpiasRequestRetrieve(id, callback) {
732
+ var postBody = null; // verify the required parameter 'id' is set
733
+
734
+ if (id === undefined || id === null) {
735
+ throw new Error("Missing the required parameter 'id' when calling energyDataEpiasRequestRetrieve");
736
+ }
737
+
738
+ var pathParams = {
739
+ 'id': id
740
+ };
741
+ var queryParams = {};
742
+ var headerParams = {};
743
+ var formParams = {};
744
+ var authNames = ['jwtAuth', 'tokenAuth'];
745
+ var contentTypes = [];
746
+ var accepts = ['application/json'];
747
+ var returnType = _ProductionDataFromEpiasRequest["default"];
748
+ return this.apiClient.callApi('/energy-data/epias-request/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
749
+ }
651
750
  /**
652
751
  * Callback function to receive the result of the energyDataMatchRequestList operation.
653
752
  * @callback module:api/EnergyDataApi~energyDataMatchRequestListCallback
@@ -813,7 +912,6 @@ var EnergyDataApi = /*#__PURE__*/function () {
813
912
  * @param {Date} opts.createdAt
814
913
  * @param {String} opts.id
815
914
  * @param {Number} opts.limit Number of results to return per page.
816
- * @param {String} opts.matchedTxHash
817
915
  * @param {Number} opts.offset The initial index from which to return the results.
818
916
  * @param {Array.<module:model/String>} opts.orderBy Ordering
819
917
  * @param {String} opts.producer
@@ -822,6 +920,7 @@ var EnergyDataApi = /*#__PURE__*/function () {
822
920
  * @param {String} opts.retailer
823
921
  * @param {Date} opts.startAfter Filter start time after a given ISO 8601 formatted date (e.g: 2020-01-01T03:00:00+03:00)
824
922
  * @param {Date} opts.startBefore Filter start time before a given ISO 8601 formatted date (e.g: 2020-01-02T03:00:00+03:00)
923
+ * @param {String} opts.tx
825
924
  * @param {Date} opts.updatedAt
826
925
  * @param {module:api/EnergyDataApi~energyDataMatchedEnergyDataListCallback} callback The callback function, accepting three arguments: error, data, response
827
926
  * data is of type: {@link module:model/PaginatedMatchedEnergyDataPointList}
@@ -841,7 +940,6 @@ var EnergyDataApi = /*#__PURE__*/function () {
841
940
  'created_at': opts['createdAt'],
842
941
  'id': opts['id'],
843
942
  'limit': opts['limit'],
844
- 'matched_tx_hash': opts['matchedTxHash'],
845
943
  'offset': opts['offset'],
846
944
  'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
847
945
  'producer': opts['producer'],
@@ -850,6 +948,7 @@ var EnergyDataApi = /*#__PURE__*/function () {
850
948
  'retailer': opts['retailer'],
851
949
  'start_after': opts['startAfter'],
852
950
  'start_before': opts['startBefore'],
951
+ 'tx': opts['tx'],
853
952
  'updated_at': opts['updatedAt']
854
953
  };
855
954
  var headerParams = {};
@@ -1086,15 +1185,15 @@ var EnergyDataApi = /*#__PURE__*/function () {
1086
1185
  * @param {Boolean} opts.isFullyMatched Filter production datapoints based on matched status. Returns unmatched points if set to false.
1087
1186
  * @param {Boolean} opts.isSettlementData
1088
1187
  * @param {Number} opts.limit Number of results to return per page.
1188
+ * @param {String} opts.minterContract
1089
1189
  * @param {Number} opts.offset The initial index from which to return the results.
1090
1190
  * @param {Array.<module:model/String>} opts.orderBy Ordering
1091
1191
  * @param {String} opts.producer
1092
1192
  * @param {String} opts.productionSite
1093
1193
  * @param {Date} opts.productionStartAfter Filter production_start time after a given ISO 8601 formatted date (e.g: 2020-01-01T03:00:00+03:00)
1094
1194
  * @param {Date} opts.productionStartBefore Filter production_start time before a given ISO 8601 formatted date (e.g: 2020-01-02T03:00:00+03:00)
1095
- * @param {String} opts.productionTxHash
1096
1195
  * @param {String} opts.retailer
1097
- * @param {String} opts.tokenContractAddress
1196
+ * @param {String} opts.tx
1098
1197
  * @param {Date} opts.updatedAt
1099
1198
  * @param {module:api/EnergyDataApi~energyDataProductionDataListCallback} callback The callback function, accepting three arguments: error, data, response
1100
1199
  * data is of type: {@link module:model/PaginatedProductionDataPointListOrDetailList}
@@ -1117,15 +1216,15 @@ var EnergyDataApi = /*#__PURE__*/function () {
1117
1216
  'is_fully_matched': opts['isFullyMatched'],
1118
1217
  'is_settlement_data': opts['isSettlementData'],
1119
1218
  'limit': opts['limit'],
1219
+ 'minter_contract': opts['minterContract'],
1120
1220
  'offset': opts['offset'],
1121
1221
  'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
1122
1222
  'producer': opts['producer'],
1123
1223
  'production_site': opts['productionSite'],
1124
1224
  'production_start_after': opts['productionStartAfter'],
1125
1225
  'production_start_before': opts['productionStartBefore'],
1126
- 'production_tx_hash': opts['productionTxHash'],
1127
1226
  'retailer': opts['retailer'],
1128
- 'token_contract_address': opts['tokenContractAddress'],
1227
+ 'tx': opts['tx'],
1129
1228
  'updated_at': opts['updatedAt']
1130
1229
  };
1131
1230
  var headerParams = {};
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
18
18
  /**
19
19
  * HealthCheck service.
20
20
  * @module api/HealthCheckApi
21
- * @version 0.51.3
21
+ * @version 0.54.4
22
22
  */
23
23
  var HealthCheckApi = /*#__PURE__*/function () {
24
24
  /**
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
18
18
  /**
19
19
  * LicensedProductionSitesOnEpias service.
20
20
  * @module api/LicensedProductionSitesOnEpiasApi
21
- * @version 0.51.3
21
+ * @version 0.54.4
22
22
  */
23
23
  var LicensedProductionSitesOnEpiasApi = /*#__PURE__*/function () {
24
24
  /**
@@ -24,7 +24,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
24
24
  /**
25
25
  * Locations service.
26
26
  * @module api/LocationsApi
27
- * @version 0.51.3
27
+ * @version 0.54.4
28
28
  */
29
29
  var LocationsApi = /*#__PURE__*/function () {
30
30
  /**
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
18
18
  /**
19
19
  * MaintenanceCheck service.
20
20
  * @module api/MaintenanceCheckApi
21
- * @version 0.51.3
21
+ * @version 0.54.4
22
22
  */
23
23
  var MaintenanceCheckApi = /*#__PURE__*/function () {
24
24
  /**
@@ -24,7 +24,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
24
24
  /**
25
25
  * Organizationprofiles service.
26
26
  * @module api/OrganizationprofilesApi
27
- * @version 0.51.3
27
+ * @version 0.54.4
28
28
  */
29
29
  var OrganizationprofilesApi = /*#__PURE__*/function () {
30
30
  /**
@@ -48,7 +48,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
48
48
  /**
49
49
  * Organizations service.
50
50
  * @module api/OrganizationsApi
51
- * @version 0.51.3
51
+ * @version 0.54.4
52
52
  */
53
53
  var OrganizationsApi = /*#__PURE__*/function () {
54
54
  /**
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
18
18
  /**
19
19
  * Schema service.
20
20
  * @module api/SchemaApi
21
- * @version 0.51.3
21
+ * @version 0.54.4
22
22
  */
23
23
  var SchemaApi = /*#__PURE__*/function () {
24
24
  /**
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
18
18
  /**
19
19
  * SentryDebug service.
20
20
  * @module api/SentryDebugApi
21
- * @version 0.51.3
21
+ * @version 0.54.4
22
22
  */
23
23
  var SentryDebugApi = /*#__PURE__*/function () {
24
24
  /**
@@ -0,0 +1,226 @@
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 _PaginatedUnprocessedRowList = _interopRequireDefault(require("../model/PaginatedUnprocessedRowList"));
11
+
12
+ var _PaginatedUploadedFileList = _interopRequireDefault(require("../model/PaginatedUploadedFileList"));
13
+
14
+ var _UnprocessedRow = _interopRequireDefault(require("../model/UnprocessedRow"));
15
+
16
+ var _UploadedFile = _interopRequireDefault(require("../model/UploadedFile"));
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
+
22
+ 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); } }
23
+
24
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
+
26
+ /**
27
+ * Uploadedfiles service.
28
+ * @module api/UploadedfilesApi
29
+ * @version 0.54.4
30
+ */
31
+ var UploadedfilesApi = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new UploadedfilesApi.
34
+ * @alias module:api/UploadedfilesApi
35
+ * @class
36
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
37
+ * default to {@link module:ApiClient#instance} if unspecified.
38
+ */
39
+ function UploadedfilesApi(apiClient) {
40
+ _classCallCheck(this, UploadedfilesApi);
41
+
42
+ this.apiClient = apiClient || _ApiClient["default"].instance;
43
+ }
44
+ /**
45
+ * Callback function to receive the result of the uploadedfilesList operation.
46
+ * @callback module:api/UploadedfilesApi~uploadedfilesListCallback
47
+ * @param {String} error Error message, if any.
48
+ * @param {module:model/PaginatedUploadedFileList} data The data returned by the service call.
49
+ * @param {String} response The complete HTTP response.
50
+ */
51
+
52
+ /**
53
+ * **List all the uploadedfiles owned by the user's organization.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
54
+ * @param {Object} opts Optional parameters
55
+ * @param {module:model/String} opts.contentType Required. Select from available choices.
56
+ * @param {Date} opts.createdAt
57
+ * @param {String} opts.hash
58
+ * @param {String} opts.id
59
+ * @param {Number} opts.limit Number of results to return per page.
60
+ * @param {String} opts.name
61
+ * @param {Number} opts.offset The initial index from which to return the results.
62
+ * @param {Array.<module:model/String>} opts.orderBy Ordering
63
+ * @param {String} opts.owner
64
+ * @param {module:model/String} opts.status Status is set to `started` or `finished` if the file has been processed. Default `unstarted`.
65
+ * @param {Date} opts.updatedAt
66
+ * @param {module:api/UploadedfilesApi~uploadedfilesListCallback} callback The callback function, accepting three arguments: error, data, response
67
+ * data is of type: {@link module:model/PaginatedUploadedFileList}
68
+ */
69
+
70
+
71
+ _createClass(UploadedfilesApi, [{
72
+ key: "uploadedfilesList",
73
+ value: function uploadedfilesList(opts, callback) {
74
+ opts = opts || {};
75
+ var postBody = null;
76
+ var pathParams = {};
77
+ var queryParams = {
78
+ 'content_type': opts['contentType'],
79
+ 'created_at': opts['createdAt'],
80
+ 'hash': opts['hash'],
81
+ 'id': opts['id'],
82
+ 'limit': opts['limit'],
83
+ 'name': opts['name'],
84
+ 'offset': opts['offset'],
85
+ 'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
86
+ 'owner': opts['owner'],
87
+ 'status': opts['status'],
88
+ 'updated_at': opts['updatedAt']
89
+ };
90
+ var headerParams = {};
91
+ var formParams = {};
92
+ var authNames = ['jwtAuth', 'tokenAuth'];
93
+ var contentTypes = [];
94
+ var accepts = ['application/json'];
95
+ var returnType = _PaginatedUploadedFileList["default"];
96
+ return this.apiClient.callApi('/uploadedfiles/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
97
+ }
98
+ /**
99
+ * Callback function to receive the result of the uploadedfilesRetrieve operation.
100
+ * @callback module:api/UploadedfilesApi~uploadedfilesRetrieveCallback
101
+ * @param {String} error Error message, if any.
102
+ * @param {module:model/UploadedFile} data The data returned by the service call.
103
+ * @param {String} response The complete HTTP response.
104
+ */
105
+
106
+ /**
107
+ * **Get a specific file.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
108
+ * @param {String} id A UUID string identifying this uploaded file.
109
+ * @param {module:api/UploadedfilesApi~uploadedfilesRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
110
+ * data is of type: {@link module:model/UploadedFile}
111
+ */
112
+
113
+ }, {
114
+ key: "uploadedfilesRetrieve",
115
+ value: function uploadedfilesRetrieve(id, callback) {
116
+ var postBody = null; // verify the required parameter 'id' is set
117
+
118
+ if (id === undefined || id === null) {
119
+ throw new Error("Missing the required parameter 'id' when calling uploadedfilesRetrieve");
120
+ }
121
+
122
+ var pathParams = {
123
+ 'id': id
124
+ };
125
+ var queryParams = {};
126
+ var headerParams = {};
127
+ var formParams = {};
128
+ var authNames = ['jwtAuth', 'tokenAuth'];
129
+ var contentTypes = [];
130
+ var accepts = ['application/json'];
131
+ var returnType = _UploadedFile["default"];
132
+ return this.apiClient.callApi('/uploadedfiles/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
133
+ }
134
+ /**
135
+ * Callback function to receive the result of the uploadedfilesUnprocessedRowList operation.
136
+ * @callback module:api/UploadedfilesApi~uploadedfilesUnprocessedRowListCallback
137
+ * @param {String} error Error message, if any.
138
+ * @param {module:model/PaginatedUnprocessedRowList} data The data returned by the service call.
139
+ * @param {String} response The complete HTTP response.
140
+ */
141
+
142
+ /**
143
+ * **List all the information of unprocessed rows of the uploaded files uploaded by the user's organization.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
144
+ * @param {Object} opts Optional parameters
145
+ * @param {Date} opts.createdAt
146
+ * @param {String} opts.errorMessage
147
+ * @param {String} opts.id
148
+ * @param {Number} opts.limit Number of results to return per page.
149
+ * @param {Number} opts.offset The initial index from which to return the results.
150
+ * @param {Array.<module:model/String>} opts.orderBy Ordering
151
+ * @param {String} opts.owner
152
+ * @param {Number} opts.rowNumber
153
+ * @param {Date} opts.updatedAt
154
+ * @param {String} opts.uploadedFile
155
+ * @param {module:api/UploadedfilesApi~uploadedfilesUnprocessedRowListCallback} callback The callback function, accepting three arguments: error, data, response
156
+ * data is of type: {@link module:model/PaginatedUnprocessedRowList}
157
+ */
158
+
159
+ }, {
160
+ key: "uploadedfilesUnprocessedRowList",
161
+ value: function uploadedfilesUnprocessedRowList(opts, callback) {
162
+ opts = opts || {};
163
+ var postBody = null;
164
+ var pathParams = {};
165
+ var queryParams = {
166
+ 'created_at': opts['createdAt'],
167
+ 'error_message': opts['errorMessage'],
168
+ 'id': opts['id'],
169
+ 'limit': opts['limit'],
170
+ 'offset': opts['offset'],
171
+ 'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
172
+ 'owner': opts['owner'],
173
+ 'row_number': opts['rowNumber'],
174
+ 'updated_at': opts['updatedAt'],
175
+ 'uploaded_file': opts['uploadedFile']
176
+ };
177
+ var headerParams = {};
178
+ var formParams = {};
179
+ var authNames = ['jwtAuth', 'tokenAuth'];
180
+ var contentTypes = [];
181
+ var accepts = ['application/json'];
182
+ var returnType = _PaginatedUnprocessedRowList["default"];
183
+ return this.apiClient.callApi('/uploadedfiles/unprocessed-row/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
184
+ }
185
+ /**
186
+ * Callback function to receive the result of the uploadedfilesUnprocessedRowRetrieve operation.
187
+ * @callback module:api/UploadedfilesApi~uploadedfilesUnprocessedRowRetrieveCallback
188
+ * @param {String} error Error message, if any.
189
+ * @param {module:model/UnprocessedRow} data The data returned by the service call.
190
+ * @param {String} response The complete HTTP response.
191
+ */
192
+
193
+ /**
194
+ * **Get a specific unprocessed row information.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
195
+ * @param {String} id A UUID string identifying this unprocessed row.
196
+ * @param {module:api/UploadedfilesApi~uploadedfilesUnprocessedRowRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
197
+ * data is of type: {@link module:model/UnprocessedRow}
198
+ */
199
+
200
+ }, {
201
+ key: "uploadedfilesUnprocessedRowRetrieve",
202
+ value: function uploadedfilesUnprocessedRowRetrieve(id, callback) {
203
+ var postBody = null; // verify the required parameter 'id' is set
204
+
205
+ if (id === undefined || id === null) {
206
+ throw new Error("Missing the required parameter 'id' when calling uploadedfilesUnprocessedRowRetrieve");
207
+ }
208
+
209
+ var pathParams = {
210
+ 'id': id
211
+ };
212
+ var queryParams = {};
213
+ var headerParams = {};
214
+ var formParams = {};
215
+ var authNames = ['jwtAuth', 'tokenAuth'];
216
+ var contentTypes = [];
217
+ var accepts = ['application/json'];
218
+ var returnType = _UnprocessedRow["default"];
219
+ return this.apiClient.callApi('/uploadedfiles/unprocessed-row/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
220
+ }
221
+ }]);
222
+
223
+ return UploadedfilesApi;
224
+ }();
225
+
226
+ exports["default"] = UploadedfilesApi;
@@ -34,7 +34,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
34
34
  /**
35
35
  * Users service.
36
36
  * @module api/UsersApi
37
- * @version 0.51.3
37
+ * @version 0.54.4
38
38
  */
39
39
  var UsersApi = /*#__PURE__*/function () {
40
40
  /**