green_link_api 1.11.19 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. package/README.md +2 -2
  2. package/dist/ApiClient.js +14 -3
  3. package/dist/api/BlockchainApi.js +20 -9
  4. package/dist/api/EnergyAssetsApi.js +18 -7
  5. package/dist/api/EnergyDataApi.js +50 -39
  6. package/dist/api/HealthCheckApi.js +13 -2
  7. package/dist/api/LicensedProductionSitesOnEpiasApi.js +13 -2
  8. package/dist/api/LocationsApi.js +20 -9
  9. package/dist/api/LogsApi.js +32 -21
  10. package/dist/api/MaintenanceCheckApi.js +13 -2
  11. package/dist/api/OrganizationprofilesApi.js +21 -10
  12. package/dist/api/OrganizationsApi.js +47 -32
  13. package/dist/api/SchemaApi.js +13 -2
  14. package/dist/api/SentryDebugApi.js +13 -2
  15. package/dist/api/UsersApi.js +14 -3
  16. package/dist/model/Activities.js +13 -2
  17. package/dist/model/BlockchainTransaction.js +13 -2
  18. package/dist/model/Consumer.js +13 -2
  19. package/dist/model/ConsumptionDataFileList.js +13 -2
  20. package/dist/model/ConsumptionDataFromRetailerRequest.js +13 -2
  21. package/dist/model/ConsumptionDataPointCreate.js +13 -2
  22. package/dist/model/ConsumptionDataPointListOrDetail.js +13 -2
  23. package/dist/model/ConsumptionDataPointUpdate.js +13 -2
  24. package/dist/model/ConsumptionSite.js +13 -2
  25. package/dist/model/ConsumptionSiteContract.js +13 -2
  26. package/dist/model/ConsumptionSiteContractImport.js +13 -2
  27. package/dist/model/ConsumptionSiteCreate.js +13 -2
  28. package/dist/model/ConsumptionSiteFileUpload.js +13 -2
  29. package/dist/model/ConsumptionSiteListOrDetail.js +13 -2
  30. package/dist/model/ContentTypeEnum.js +32 -1
  31. package/dist/model/EacTypeEnum.js +16 -1
  32. package/dist/model/EmissionFactor.js +13 -2
  33. package/dist/model/EnergySourceEnum.js +44 -1
  34. package/dist/model/EnergySourcePreference.js +49 -29
  35. package/dist/model/GetFromEpias.js +13 -2
  36. package/dist/model/GridOperator.js +13 -2
  37. package/dist/model/ImportRequest.js +13 -2
  38. package/dist/model/ImportRequestRaw.js +13 -2
  39. package/dist/model/ImportRequestStatusEnum.js +28 -1
  40. package/dist/model/ImportedEnergyDataPoint.js +13 -2
  41. package/dist/model/Issuer.js +13 -2
  42. package/dist/model/Location.js +44 -16
  43. package/dist/model/Login.js +13 -2
  44. package/dist/model/MatchRequest.js +15 -4
  45. package/dist/model/MatchTypeEnum.js +20 -1
  46. package/dist/model/MatchedEnergyDataPoint.js +13 -2
  47. package/dist/model/MatchingConsumerRequest.js +13 -2
  48. package/dist/model/MatchingSiteRequest.js +13 -2
  49. package/dist/model/OrganizationTypeEnum.js +36 -1
  50. package/dist/model/PaginatedActivitiesList.js +13 -2
  51. package/dist/model/PaginatedConsumerList.js +13 -2
  52. package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +13 -2
  53. package/dist/model/PaginatedConsumptionSiteContractList.js +13 -2
  54. package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +13 -2
  55. package/dist/model/PaginatedEmissionFactorList.js +13 -2
  56. package/dist/model/PaginatedEnergySourcePreferenceList.js +13 -2
  57. package/dist/model/PaginatedGridOperatorList.js +13 -2
  58. package/dist/model/PaginatedImportRequestList.js +13 -2
  59. package/dist/model/PaginatedImportRequestRawList.js +13 -2
  60. package/dist/model/PaginatedImportedEnergyDataPointList.js +13 -2
  61. package/dist/model/PaginatedIssuerList.js +13 -2
  62. package/dist/model/PaginatedLocationList.js +13 -2
  63. package/dist/model/PaginatedMatchRequestList.js +13 -2
  64. package/dist/model/PaginatedMatchedEnergyDataPointList.js +13 -2
  65. package/dist/model/PaginatedProducerList.js +13 -2
  66. package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +13 -2
  67. package/dist/model/PaginatedProductionDataPointListOrDetailList.js +13 -2
  68. package/dist/model/PaginatedProductionSiteListOrDetailList.js +13 -2
  69. package/dist/model/PaginatedRetailerList.js +13 -2
  70. package/dist/model/PaginatedSmartContractList.js +13 -2
  71. package/dist/model/PaginatedUnprocessedRowList.js +13 -2
  72. package/dist/model/PaginatedUploadedCertificateListorDetailList.js +13 -2
  73. package/dist/model/PaginatedUploadedFileList.js +13 -2
  74. package/dist/model/PaginatedUserList.js +13 -2
  75. package/dist/model/PatchedConsumer.js +13 -2
  76. package/dist/model/PatchedConsumptionDataPointUpdate.js +13 -2
  77. package/dist/model/PatchedConsumptionSite.js +13 -2
  78. package/dist/model/PatchedEmissionFactor.js +13 -2
  79. package/dist/model/PatchedEnergySourcePreference.js +44 -24
  80. package/dist/model/PatchedGridOperator.js +13 -2
  81. package/dist/model/PatchedIssuer.js +13 -2
  82. package/dist/model/PatchedLocation.js +39 -11
  83. package/dist/model/PatchedProducer.js +13 -2
  84. package/dist/model/PatchedProductionDataPointUpdate.js +13 -2
  85. package/dist/model/PatchedProductionSiteUpdate.js +13 -2
  86. package/dist/model/PatchedRetailer.js +13 -2
  87. package/dist/model/PatchedSmartContract.js +13 -2
  88. package/dist/model/PatchedUser.js +14 -3
  89. package/dist/model/PatchedUserDetail.js +14 -3
  90. package/dist/model/PriorityEnum.js +44 -1
  91. package/dist/model/Producer.js +13 -2
  92. package/dist/model/ProductionDataFileList.js +13 -2
  93. package/dist/model/ProductionDataFromEpiasRequest.js +14 -3
  94. package/dist/model/ProductionDataPointCreate.js +13 -2
  95. package/dist/model/ProductionDataPointListOrDetail.js +13 -2
  96. package/dist/model/ProductionDataPointUpdate.js +13 -2
  97. package/dist/model/ProductionSite.js +13 -2
  98. package/dist/model/ProductionSiteFileUpload.js +13 -2
  99. package/dist/model/ProductionSiteListOrDetail.js +13 -2
  100. package/dist/model/ProductionSiteUpdate.js +13 -2
  101. package/dist/model/Register.js +13 -2
  102. package/dist/model/Retailer.js +13 -2
  103. package/dist/model/SmartContract.js +13 -2
  104. package/dist/model/Status619Enum.js +24 -1
  105. package/dist/model/Token.js +13 -2
  106. package/dist/model/TypeEnum.js +24 -1
  107. package/dist/model/UnprocessedRow.js +13 -2
  108. package/dist/model/UploadedCertificate.js +15 -4
  109. package/dist/model/UploadedCertificateListorDetail.js +15 -4
  110. package/dist/model/UploadedFile.js +16 -5
  111. package/dist/model/User.js +14 -3
  112. package/dist/model/UserDetail.js +14 -3
  113. package/package.json +1 -1
@@ -22,11 +22,22 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
22
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, _toPropertyKey(descriptor.key), descriptor); } }
23
23
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
24
24
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
25
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
26
+ * GreenLink API
27
+ * ⚡GreenLink API documentation with interactive tools for testing API endpoints.⚡
28
+ *
29
+ * The version of the OpenAPI document: 1.13.0
30
+ *
31
+ *
32
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
33
+ * https://openapi-generator.tech
34
+ * Do not edit the class manually.
35
+ *
36
+ */
26
37
  /**
27
38
  * Logs service.
28
39
  * @module api/LogsApi
29
- * @version 1.11.19
40
+ * @version 1.13.0
30
41
  */
31
42
  var LogsApi = /*#__PURE__*/function () {
32
43
  /**
@@ -58,7 +69,7 @@ var LogsApi = /*#__PURE__*/function () {
58
69
  * @param {Number} opts.limit Number of results to return per page.
59
70
  * @param {String} opts.method Which method is used.
60
71
  * @param {Number} opts.offset The initial index from which to return the results.
61
- * @param {Array.<module:model/String>} opts.orderBy Ordering
72
+ * @param {Array.<module:model/String>} opts.orderBy Ordering * `event_type` - Event type * `-event_type` - Event type (descending) * `object_id` - Object id * `-object_id` - Object id (descending) * `datetime` - Datetime * `-datetime` - Datetime (descending)
62
73
  * @param {String} opts.user Activity user.
63
74
  * @param {module:api/LogsApi~logsActivitiesListCallback} callback The callback function, accepting three arguments: error, data, response
64
75
  * data is of type: {@link module:model/PaginatedActivitiesList}
@@ -203,15 +214,15 @@ var LogsApi = /*#__PURE__*/function () {
203
214
  * @param {Object} opts Optional parameters
204
215
  * @param {String} opts.consumer
205
216
  * @param {Date} opts.createdAt
206
- * @param {module:model/String} opts.eacType Required. Select from available choices.
217
+ * @param {module:model/String} opts.eacType Required. Select from available choices. * `I-REC` - I-REC
207
218
  * @param {String} opts.id
208
219
  * @param {Number} opts.limit Number of results to return per page.
209
220
  * @param {String} opts.name
210
221
  * @param {Number} opts.offset The initial index from which to return the results.
211
- * @param {Array.<module:model/String>} opts.orderBy Ordering
222
+ * @param {Array.<module:model/String>} opts.orderBy Ordering * `period_start` - Period start * `-period_start` - Period start (descending) * `created_at` - Created at * `-created_at` - Created at (descending) * `eac_type` - Eac type * `-eac_type` - Eac type (descending) * `producer` - Producer * `-producer` - Producer (descending) * `owner` - Owner * `-owner` - Owner (descending)
212
223
  * @param {String} opts.owner
213
224
  * @param {String} opts.producer
214
- * @param {module:model/String} opts.status Status is set to `started` or `finished` if the file has been processed. Default `unstarted`.
225
+ * @param {module:model/String} opts.status Status is set to `started` or `finished` if the file has been processed. Default `unstarted`. * `unstarted` - unstarted * `started` - started * `finished` - finished
215
226
  * @param {module:api/LogsApi~logsCertificatesListCallback} callback The callback function, accepting three arguments: error, data, response
216
227
  * data is of type: {@link module:model/PaginatedUploadedCertificateListorDetailList}
217
228
  */
@@ -287,7 +298,7 @@ var LogsApi = /*#__PURE__*/function () {
287
298
  */
288
299
 
289
300
  /**
290
- * Enforces object-level permissions in ``rest_framework.viewsets.ViewSet``, deriving the permission type from the particular action to be performed.. As with ``rules.contrib.views.AutoPermissionRequiredMixin``, this only works when model permissions are registered using ``rules.contrib.models.RulesModelMixin``.
301
+ * This class manages the EPIAS requests related to the user's organization. The following operations are supported: - List all the EPIAS requests: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. - Get specific EPIAS request details: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. **Please note:** When users request for the list of EPIAS requests or for specific EPIAS request details, an event is captured using PostHog with the respective details and user's organization name.
291
302
  * @param {String} id A UUID string identifying this production data from epias request.
292
303
  * @param {module:api/LogsApi~logsProductionEpiasDestroyCallback} callback The callback function, accepting three arguments: error, data, response
293
304
  */
@@ -321,21 +332,21 @@ var LogsApi = /*#__PURE__*/function () {
321
332
  */
322
333
 
323
334
  /**
324
- * **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
335
+ * This class manages the EPIAS requests related to the user's organization. The following operations are supported: - List all the EPIAS requests: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. - Get specific EPIAS request details: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. **Please note:** When users request for the list of EPIAS requests or for specific EPIAS request details, an event is captured using PostHog with the respective details and user's organization name.
325
336
  * @param {Object} opts Optional parameters
326
337
  * @param {Date} opts.createdAt
327
338
  * @param {Date} opts.endTime
328
339
  * @param {String} opts.id
329
340
  * @param {Number} opts.limit Number of results to return per page.
330
341
  * @param {Number} opts.offset The initial index from which to return the results.
331
- * @param {Array.<module:model/String>} opts.orderBy Ordering
342
+ * @param {Array.<module:model/String>} opts.orderBy Ordering * `time` - Time * `-time` - Time (descending) * `status` - Status * `-status` - Status (descending) * `created_at` - Created at * `-created_at` - Created at (descending) * `retailer` - Retailer * `-retailer` - Retailer (descending) * `production_site` - Production site * `-production_site` - Production site (descending)
332
343
  * @param {String} opts.producer
333
344
  * @param {String} opts.productionSite
334
345
  * @param {String} opts.retailer
335
346
  * @param {Date} opts.startAfter Filter start time after a given ISO 8601 formatted date (e.g: 2020-01-01T03:00:00+03:00)
336
347
  * @param {Date} opts.startBefore Filter start time before a given ISO 8601 formatted date (e.g: 2020-01-02T03:00:00+03:00)
337
348
  * @param {Date} opts.startTime
338
- * @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`.
349
+ * @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`. * `unstarted` - unstarted * `started` - started * `finished` - finished
339
350
  * @param {Date} opts.updatedAt
340
351
  * @param {module:api/LogsApi~logsProductionEpiasListCallback} callback The callback function, accepting three arguments: error, data, response
341
352
  * data is of type: {@link module:model/PaginatedProductionDataFromEpiasRequestList}
@@ -380,7 +391,7 @@ var LogsApi = /*#__PURE__*/function () {
380
391
  */
381
392
 
382
393
  /**
383
- * **Get a specific EPIAS request details.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
394
+ * This class manages the EPIAS requests related to the user's organization. The following operations are supported: - List all the EPIAS requests: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. - Get specific EPIAS request details: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. **Please note:** When users request for the list of EPIAS requests or for specific EPIAS request details, an event is captured using PostHog with the respective details and user's organization name.
384
395
  * @param {String} id A UUID string identifying this production data from epias request.
385
396
  * @param {module:api/LogsApi~logsProductionEpiasRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
386
397
  * data is of type: {@link module:model/ProductionDataFromEpiasRequest}
@@ -415,7 +426,7 @@ var LogsApi = /*#__PURE__*/function () {
415
426
  */
416
427
 
417
428
  /**
418
- * **Delete a specific file.** User should be *authenticated* and have an *active* (is_active=True) account. **Note:** Object should be owned by the user's organization. **Roles required**: Admin **User employed by an active allowed organization**: Consumer or Retailer
429
+ * This class manages the unprocessed rows of the uploaded files by the user's organization. The following operations are supported: - List all the information of unprocessed rows: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. - Get specific unprocessed row information: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. - Delete a specific file: Users must be authenticated and have an active (is_active=True) account. In addition, the object should be owned by the user's organization. The roles required for this operation are Admin, and the user should be employed by an active allowed organization (Consumer or Retailer). **Please note:** When users request for the list of unprocessed rows or for specific unprocessed row details, an event is captured using PostHog with the respective details and user's organization ID.
419
430
  * @param {String} id A UUID string identifying this unprocessed row.
420
431
  * @param {module:api/LogsApi~logsUnprocessedRowDestroyCallback} callback The callback function, accepting three arguments: error, data, response
421
432
  */
@@ -449,14 +460,14 @@ var LogsApi = /*#__PURE__*/function () {
449
460
  */
450
461
 
451
462
  /**
452
- * **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
463
+ * This class manages the unprocessed rows of the uploaded files by the user's organization. The following operations are supported: - List all the information of unprocessed rows: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. - Get specific unprocessed row information: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. - Delete a specific file: Users must be authenticated and have an active (is_active=True) account. In addition, the object should be owned by the user's organization. The roles required for this operation are Admin, and the user should be employed by an active allowed organization (Consumer or Retailer). **Please note:** When users request for the list of unprocessed rows or for specific unprocessed row details, an event is captured using PostHog with the respective details and user's organization ID.
453
464
  * @param {Object} opts Optional parameters
454
465
  * @param {Date} opts.createdAt
455
466
  * @param {String} opts.errorMessage
456
467
  * @param {String} opts.id
457
468
  * @param {Number} opts.limit Number of results to return per page.
458
469
  * @param {Number} opts.offset The initial index from which to return the results.
459
- * @param {Array.<module:model/String>} opts.orderBy Ordering
470
+ * @param {Array.<module:model/String>} opts.orderBy Ordering * `row_number` - Row number * `-row_number` - Row number (descending) * `error_message` - Error message * `-error_message` - Error message (descending) * `uploaded_file` - Uploaded file * `-uploaded_file` - Uploaded file (descending)
460
471
  * @param {String} opts.owner
461
472
  * @param {Number} opts.rowNumber
462
473
  * @param {Date} opts.updatedAt
@@ -500,7 +511,7 @@ var LogsApi = /*#__PURE__*/function () {
500
511
  */
501
512
 
502
513
  /**
503
- * **Get a specific unprocessed row information.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
514
+ * This class manages the unprocessed rows of the uploaded files by the user's organization. The following operations are supported: - List all the information of unprocessed rows: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. - Get specific unprocessed row information: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. - Delete a specific file: Users must be authenticated and have an active (is_active=True) account. In addition, the object should be owned by the user's organization. The roles required for this operation are Admin, and the user should be employed by an active allowed organization (Consumer or Retailer). **Please note:** When users request for the list of unprocessed rows or for specific unprocessed row details, an event is captured using PostHog with the respective details and user's organization ID.
504
515
  * @param {String} id A UUID string identifying this unprocessed row.
505
516
  * @param {module:api/LogsApi~logsUnprocessedRowRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
506
517
  * data is of type: {@link module:model/UnprocessedRow}
@@ -535,7 +546,7 @@ var LogsApi = /*#__PURE__*/function () {
535
546
  */
536
547
 
537
548
  /**
538
- * **Delete a specific file.** User should be *authenticated* and have an *active* (is_active=True) account. **Note:** Object should be owned by the user's organization. **Roles required**: Admin **User employed by an active allowed organization**: Consumer or Retailer
549
+ * This class manages the uploaded files owned by the user's organization. The following operations are supported: - List all the uploaded files: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. - Get a specific file: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. - Delete a specific file: Users must be authenticated and have an active (is_active=True) account. In addition, the object should be owned by the user's organization. The roles required for this operation are Admin, and the user should be employed by an active allowed organization (Consumer or Retailer). **Please note:** The `destroy` method throws a `_concurrencymetafield` error.
539
550
  * @param {String} id A UUID string identifying this uploaded file.
540
551
  * @param {module:api/LogsApi~logsUploadFileDestroyCallback} callback The callback function, accepting three arguments: error, data, response
541
552
  */
@@ -569,17 +580,17 @@ var LogsApi = /*#__PURE__*/function () {
569
580
  */
570
581
 
571
582
  /**
572
- * **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
583
+ * This class manages the uploaded files owned by the user's organization. The following operations are supported: - List all the uploaded files: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. - Get a specific file: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. - Delete a specific file: Users must be authenticated and have an active (is_active=True) account. In addition, the object should be owned by the user's organization. The roles required for this operation are Admin, and the user should be employed by an active allowed organization (Consumer or Retailer). **Please note:** The `destroy` method throws a `_concurrencymetafield` error.
573
584
  * @param {Object} opts Optional parameters
574
- * @param {module:model/String} opts.contentType Required. Select from available choices.
585
+ * @param {module:model/String} opts.contentType Required. Select from available choices. * `Consumption sites` - Consumption sites * `Consumption data points` - Consumption data points * `Production sites` - Production sites * `Production data points` - Production data points * `Energy attribute certificates` - Energy attribute certificates
575
586
  * @param {Date} opts.createdAt
576
587
  * @param {String} opts.id
577
588
  * @param {Number} opts.limit Number of results to return per page.
578
589
  * @param {String} opts.name
579
590
  * @param {Number} opts.offset The initial index from which to return the results.
580
- * @param {Array.<module:model/String>} opts.orderBy Ordering
591
+ * @param {Array.<module:model/String>} opts.orderBy Ordering * `status` - Status * `-status` - Status (descending) * `created_at` - Created at * `-created_at` - Created at (descending) * `updated_at` - Updated at * `-updated_at` - Updated at (descending) * `content_type` - Content type * `-content_type` - Content type (descending) * `owner` - Owner * `-owner` - Owner (descending)
581
592
  * @param {String} opts.owner
582
- * @param {module:model/String} opts.status Status is set to `started` or `finished` if the file has been processed. Default `unstarted`.
593
+ * @param {module:model/String} opts.status Status is set to `started` or `finished` if the file has been processed. Default `unstarted`. * `unstarted` - unstarted * `started` - started * `finished` - finished
583
594
  * @param {Date} opts.updatedAt
584
595
  * @param {module:api/LogsApi~logsUploadFileListCallback} callback The callback function, accepting three arguments: error, data, response
585
596
  * data is of type: {@link module:model/PaginatedUploadedFileList}
@@ -620,7 +631,7 @@ var LogsApi = /*#__PURE__*/function () {
620
631
  */
621
632
 
622
633
  /**
623
- * **Get a specific file.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
634
+ * This class manages the uploaded files owned by the user's organization. The following operations are supported: - List all the uploaded files: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. - Get a specific file: Users must be authenticated and have an active (is_active=True) account. The roles required for this operation are Staff and/or Admin. - Delete a specific file: Users must be authenticated and have an active (is_active=True) account. In addition, the object should be owned by the user's organization. The roles required for this operation are Admin, and the user should be employed by an active allowed organization (Consumer or Retailer). **Please note:** The `destroy` method throws a `_concurrencymetafield` error.
624
635
  * @param {String} id A UUID string identifying this uploaded file.
625
636
  * @param {module:api/LogsApi~logsUploadFileRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
626
637
  * data is of type: {@link module:model/UploadedFile}
@@ -11,11 +11,22 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
11
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, _toPropertyKey(descriptor.key), descriptor); } }
12
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; }
13
13
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
14
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
14
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
15
+ * GreenLink API
16
+ * ⚡GreenLink API documentation with interactive tools for testing API endpoints.⚡
17
+ *
18
+ * The version of the OpenAPI document: 1.13.0
19
+ *
20
+ *
21
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
22
+ * https://openapi-generator.tech
23
+ * Do not edit the class manually.
24
+ *
25
+ */
15
26
  /**
16
27
  * MaintenanceCheck service.
17
28
  * @module api/MaintenanceCheckApi
18
- * @version 1.11.19
29
+ * @version 1.13.0
19
30
  */
20
31
  var MaintenanceCheckApi = /*#__PURE__*/function () {
21
32
  /**
@@ -14,11 +14,22 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
14
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, _toPropertyKey(descriptor.key), descriptor); } }
15
15
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
16
16
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
17
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
18
+ * GreenLink API
19
+ * ⚡GreenLink API documentation with interactive tools for testing API endpoints.⚡
20
+ *
21
+ * The version of the OpenAPI document: 1.13.0
22
+ *
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
18
29
  /**
19
30
  * Organizationprofiles service.
20
31
  * @module api/OrganizationprofilesApi
21
- * @version 1.11.19
32
+ * @version 1.13.0
22
33
  */
23
34
  var OrganizationprofilesApi = /*#__PURE__*/function () {
24
35
  /**
@@ -42,7 +53,7 @@ var OrganizationprofilesApi = /*#__PURE__*/function () {
42
53
  */
43
54
 
44
55
  /**
45
- * **Create a specific consumer energy source preference.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin **User employed by an active allowed organization**: Consumer or Retailer
56
+ * Manages consumer energy source preferences for an active organization. All methods require an active, authenticated Staff or Admin user from a Consumer or Retailer organization. - `list(self, request)`: Lists all preferences. - `retrieve(self, request, *args, **kwargs)`: Retrieves a specific preference. - `create(self, request)`: Creates a new preference. - `update(self, request, pk=None, *args, **kwargs)`: Updates a specific preference (object must be owned by user's organization). - `partial_update(self, request, *args, **kwargs)`: Partially updates a specific preference (object must be owned by user's organization). - `destroy(self, request, *args, **kwargs)`: Deletes a specific preference (Admin role and object ownership required).
46
57
  * @param {module:model/EnergySourcePreference} energySourcePreference
47
58
  * @param {module:api/OrganizationprofilesApi~organizationprofilesEnergySourcePreferenceCreateCallback} callback The callback function, accepting three arguments: error, data, response
48
59
  * data is of type: {@link module:model/EnergySourcePreference}
@@ -75,7 +86,7 @@ var OrganizationprofilesApi = /*#__PURE__*/function () {
75
86
  */
76
87
 
77
88
  /**
78
- * **Delete a specific consumer energy source preference.** User should be *authenticated* and have an *active* (is_active=True) account. **Note:** Object should be owned by the user's organization. **Roles required**: Admin **User employed by an active allowed organization**: Consumer or Retailer
89
+ * Manages consumer energy source preferences for an active organization. All methods require an active, authenticated Staff or Admin user from a Consumer or Retailer organization. - `list(self, request)`: Lists all preferences. - `retrieve(self, request, *args, **kwargs)`: Retrieves a specific preference. - `create(self, request)`: Creates a new preference. - `update(self, request, pk=None, *args, **kwargs)`: Updates a specific preference (object must be owned by user's organization). - `partial_update(self, request, *args, **kwargs)`: Partially updates a specific preference (object must be owned by user's organization). - `destroy(self, request, *args, **kwargs)`: Deletes a specific preference (Admin role and object ownership required).
79
90
  * @param {String} id A UUID string identifying this energy source preference.
80
91
  * @param {module:api/OrganizationprofilesApi~organizationprofilesEnergySourcePreferenceDestroyCallback} callback The callback function, accepting three arguments: error, data, response
81
92
  */
@@ -109,16 +120,16 @@ var OrganizationprofilesApi = /*#__PURE__*/function () {
109
120
  */
110
121
 
111
122
  /**
112
- * **List all consumer energy source preferences related to the user's organization.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin **User employed by an active allowed organization**: Consumer or Retailer
123
+ * Manages consumer energy source preferences for an active organization. All methods require an active, authenticated Staff or Admin user from a Consumer or Retailer organization. - `list(self, request)`: Lists all preferences. - `retrieve(self, request, *args, **kwargs)`: Retrieves a specific preference. - `create(self, request)`: Creates a new preference. - `update(self, request, pk=None, *args, **kwargs)`: Updates a specific preference (object must be owned by user's organization). - `partial_update(self, request, *args, **kwargs)`: Partially updates a specific preference (object must be owned by user's organization). - `destroy(self, request, *args, **kwargs)`: Deletes a specific preference (Admin role and object ownership required).
113
124
  * @param {Object} opts Optional parameters
114
125
  * @param {String} opts.consumer
115
126
  * @param {Date} opts.createdAt
116
- * @param {module:model/String} opts.energySource
127
+ * @param {module:model/String} opts.energySource * `Wind` - Wind * `Solar` - Solar * `Hydro-electric Head` - Hydro-electric Head * `Marine` - Marine * `Thermal` - Thermal * `Solid` - Solid * `Liquid` - Liquid * `Gaseous` - Gaseous
117
128
  * @param {String} opts.id
118
129
  * @param {Number} opts.limit Number of results to return per page.
119
130
  * @param {Number} opts.offset The initial index from which to return the results.
120
131
  * @param {String} opts.owner
121
- * @param {module:model/Number} opts.priority Highest priority is 1. Default is 1.
132
+ * @param {module:model/Number} opts.priority Highest priority is 1. Default is 1. * `1` - 1 * `2` - 2 * `3` - 3 * `4` - 4 * `5` - 5 * `6` - 6 * `7` - 7 * `8` - 8
122
133
  * @param {String} opts.retailer
123
134
  * @param {Date} opts.updatedAt
124
135
  * @param {module:api/OrganizationprofilesApi~organizationprofilesEnergySourcePreferenceListCallback} callback The callback function, accepting three arguments: error, data, response
@@ -160,7 +171,7 @@ var OrganizationprofilesApi = /*#__PURE__*/function () {
160
171
  */
161
172
 
162
173
  /**
163
- * **Update a specific consumer energy source preference.** User should be *authenticated* and have an *active* (is_active=True) account. **Note:** Object should be owned by the user's organization. **Roles required**: Staff and/or Admin **User employed by an active allowed organization**: Consumer or Retailer
174
+ * Manages consumer energy source preferences for an active organization. All methods require an active, authenticated Staff or Admin user from a Consumer or Retailer organization. - `list(self, request)`: Lists all preferences. - `retrieve(self, request, *args, **kwargs)`: Retrieves a specific preference. - `create(self, request)`: Creates a new preference. - `update(self, request, pk=None, *args, **kwargs)`: Updates a specific preference (object must be owned by user's organization). - `partial_update(self, request, *args, **kwargs)`: Partially updates a specific preference (object must be owned by user's organization). - `destroy(self, request, *args, **kwargs)`: Deletes a specific preference (Admin role and object ownership required).
164
175
  * @param {String} id A UUID string identifying this energy source preference.
165
176
  * @param {Object} opts Optional parameters
166
177
  * @param {module:model/PatchedEnergySourcePreference} opts.patchedEnergySourcePreference
@@ -198,7 +209,7 @@ var OrganizationprofilesApi = /*#__PURE__*/function () {
198
209
  */
199
210
 
200
211
  /**
201
- * **Get a specific consumer energy source preference.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin **User employed by an active allowed organization**: Consumer or Retailer
212
+ * Manages consumer energy source preferences for an active organization. All methods require an active, authenticated Staff or Admin user from a Consumer or Retailer organization. - `list(self, request)`: Lists all preferences. - `retrieve(self, request, *args, **kwargs)`: Retrieves a specific preference. - `create(self, request)`: Creates a new preference. - `update(self, request, pk=None, *args, **kwargs)`: Updates a specific preference (object must be owned by user's organization). - `partial_update(self, request, *args, **kwargs)`: Partially updates a specific preference (object must be owned by user's organization). - `destroy(self, request, *args, **kwargs)`: Deletes a specific preference (Admin role and object ownership required).
202
213
  * @param {String} id A UUID string identifying this energy source preference.
203
214
  * @param {module:api/OrganizationprofilesApi~organizationprofilesEnergySourcePreferenceRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
204
215
  * data is of type: {@link module:model/EnergySourcePreference}
@@ -233,7 +244,7 @@ var OrganizationprofilesApi = /*#__PURE__*/function () {
233
244
  */
234
245
 
235
246
  /**
236
- * **Upsert a specific consumer energy source preference.** User should be *authenticated* and have an *active* (is_active=True) account. **Note:** Object should be owned by the user's organization. **Roles required**: Staff and/or Admin **User employed by an active allowed organization**: Consumer or Retailer
247
+ * Manages consumer energy source preferences for an active organization. All methods require an active, authenticated Staff or Admin user from a Consumer or Retailer organization. - `list(self, request)`: Lists all preferences. - `retrieve(self, request, *args, **kwargs)`: Retrieves a specific preference. - `create(self, request)`: Creates a new preference. - `update(self, request, pk=None, *args, **kwargs)`: Updates a specific preference (object must be owned by user's organization). - `partial_update(self, request, *args, **kwargs)`: Partially updates a specific preference (object must be owned by user's organization). - `destroy(self, request, *args, **kwargs)`: Deletes a specific preference (Admin role and object ownership required).
237
248
  * @param {String} id A UUID string identifying this energy source preference.
238
249
  * @param {module:model/EnergySourcePreference} energySourcePreference
239
250
  * @param {module:api/OrganizationprofilesApi~organizationprofilesEnergySourcePreferenceUpdateCallback} callback The callback function, accepting three arguments: error, data, response