@kelvininc/js-client-sdk 7.9.1 → 7.12.0
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.
- package/CHANGELOG.md +45 -0
- package/dist/cjs/core/http.d.ts +11 -1
- package/dist/cjs/core/http.js +16 -1
- package/dist/cjs/core/http.js.map +1 -1
- package/dist/cjs/models/generated/alarm.d.ts +2 -0
- package/dist/cjs/models/generated/alarm.js +1 -0
- package/dist/cjs/models/generated/alarm.js.map +1 -1
- package/dist/cjs/models/generated/alarmClustering.d.ts +21 -0
- package/dist/cjs/models/generated/alarmClustering.js +21 -0
- package/dist/cjs/models/generated/alarmClustering.js.map +1 -0
- package/dist/cjs/models/generated/alarmItem.d.ts +2 -0
- package/dist/cjs/models/generated/alarmItem.js +1 -0
- package/dist/cjs/models/generated/alarmItem.js.map +1 -1
- package/dist/cjs/models/generated/alarmTag.d.ts +23 -0
- package/dist/cjs/models/generated/alarmTag.js +22 -0
- package/dist/cjs/models/generated/alarmTag.js.map +1 -0
- package/dist/cjs/models/generated/alarmTagItem.d.ts +23 -0
- package/dist/cjs/models/generated/alarmTagItem.js +22 -0
- package/dist/cjs/models/generated/alarmTagItem.js.map +1 -0
- package/dist/cjs/models/generated/alarmTagListPaginated.d.ts +21 -0
- package/dist/cjs/models/generated/alarmTagListPaginated.js +22 -0
- package/dist/cjs/models/generated/alarmTagListPaginated.js.map +1 -0
- package/dist/cjs/models/generated/bridge.d.ts +24 -0
- package/dist/cjs/models/generated/bridge.js.map +1 -1
- package/dist/cjs/models/generated/bridgeDataStreamItem.d.ts +9 -0
- package/dist/cjs/models/generated/bridgeDataStreamItem.js.map +1 -1
- package/dist/cjs/models/generated/bridgeDataStreamListPaginated.d.ts +3 -0
- package/dist/cjs/models/generated/bridgeDataStreamListPaginated.js.map +1 -1
- package/dist/cjs/models/generated/bridgeItem.d.ts +21 -0
- package/dist/cjs/models/generated/bridgeItem.js.map +1 -1
- package/dist/cjs/models/generated/bridgeListPaginated.d.ts +3 -0
- package/dist/cjs/models/generated/bridgeListPaginated.js.map +1 -1
- package/dist/cjs/models/generated/carbonEmissionsInstanceSettingItem.d.ts +25 -0
- package/dist/cjs/models/generated/carbonEmissionsInstanceSettingItem.js +23 -0
- package/dist/cjs/models/generated/carbonEmissionsInstanceSettingItem.js.map +1 -0
- package/dist/cjs/models/generated/controlChangeClustering.d.ts +21 -0
- package/dist/cjs/models/generated/controlChangeClustering.js +21 -0
- package/dist/cjs/models/generated/controlChangeClustering.js.map +1 -0
- package/dist/cjs/models/generated/emissionsDashboard.d.ts +2 -2
- package/dist/cjs/models/generated/emissionsDashboard.js +1 -1
- package/dist/cjs/models/generated/emissionsDashboard.js.map +1 -1
- package/dist/cjs/models/generated/fullMap.d.ts +49 -0
- package/dist/cjs/models/generated/fullMap.js +38 -0
- package/dist/cjs/models/generated/fullMap.js.map +1 -0
- package/dist/cjs/models/generated/fullMapListPaginated.d.ts +21 -0
- package/dist/cjs/models/generated/fullMapListPaginated.js +22 -0
- package/dist/cjs/models/generated/fullMapListPaginated.js.map +1 -0
- package/dist/cjs/models/generated/index.d.ts +9 -0
- package/dist/cjs/models/generated/index.js +9 -0
- package/dist/cjs/models/generated/index.js.map +1 -1
- package/dist/cjs/models/generated/mQTTTopicItem.d.ts +18 -0
- package/dist/cjs/models/generated/mQTTTopicItem.js.map +1 -1
- package/dist/cjs/models/generated/mQTTTopicList.d.ts +3 -0
- package/dist/cjs/models/generated/mQTTTopicList.js.map +1 -1
- package/dist/cjs/models/generated/mapItem.d.ts +8 -4
- package/dist/cjs/models/generated/mapItem.js +4 -2
- package/dist/cjs/models/generated/mapItem.js.map +1 -1
- package/dist/cjs/models/generated/mapModel.d.ts +4 -0
- package/dist/cjs/models/generated/mapModel.js +2 -0
- package/dist/cjs/models/generated/mapModel.js.map +1 -1
- package/dist/cjs/models/generated/mapVersionItem.d.ts +4 -2
- package/dist/cjs/models/generated/mapVersionItem.js +2 -1
- package/dist/cjs/models/generated/mapVersionItem.js.map +1 -1
- package/dist/cjs/models/generated/metricListPaginated.d.ts +1 -1
- package/dist/cjs/models/generated/metricListPaginated.js.map +1 -1
- package/dist/cjs/models/generated/page.d.ts +21 -0
- package/dist/cjs/models/generated/page.js +21 -0
- package/dist/cjs/models/generated/page.js.map +1 -0
- package/dist/cjs/models/generated/rulePayload.d.ts +2 -0
- package/dist/cjs/models/generated/rulePayload.js +1 -0
- package/dist/cjs/models/generated/rulePayload.js.map +1 -1
- package/dist/cjs/models/generated/storageData.d.ts +15 -0
- package/dist/cjs/models/generated/storageData.js.map +1 -1
- package/dist/cjs/models/generated/storageMetric.d.ts +18 -0
- package/dist/cjs/models/generated/storageMetric.js.map +1 -1
- package/dist/cjs/models/generated/storageMetricListPaginated.d.ts +3 -0
- package/dist/cjs/models/generated/storageMetricListPaginated.js.map +1 -1
- package/dist/cjs/models/generated/workload.d.ts +4 -2
- package/dist/cjs/models/generated/workload.js +2 -1
- package/dist/cjs/models/generated/workload.js.map +1 -1
- package/dist/cjs/models/generated/workloadItem.d.ts +4 -2
- package/dist/cjs/models/generated/workloadItem.js +2 -1
- package/dist/cjs/models/generated/workloadItem.js.map +1 -1
- package/dist/cjs/services/generated/api/alarm.service.d.ts +50 -2
- package/dist/cjs/services/generated/api/alarm.service.js +113 -0
- package/dist/cjs/services/generated/api/alarm.service.js.map +1 -1
- package/dist/cjs/services/generated/api/asset.service.d.ts +1 -1
- package/dist/cjs/services/generated/api/asset.service.js +1 -1
- package/dist/cjs/services/generated/api/asset.service.js.map +1 -1
- package/dist/cjs/services/generated/api/bridge.service.d.ts +50 -50
- package/dist/cjs/services/generated/api/bridge.service.js +50 -50
- package/dist/cjs/services/generated/api/bridge.service.js.map +1 -1
- package/dist/cjs/services/generated/api/controlChange.service.d.ts +9 -2
- package/dist/cjs/services/generated/api/controlChange.service.js +15 -0
- package/dist/cjs/services/generated/api/controlChange.service.js.map +1 -1
- package/dist/cjs/services/generated/api/instance.service.d.ts +16 -2
- package/dist/cjs/services/generated/api/instance.service.js +34 -0
- package/dist/cjs/services/generated/api/instance.service.js.map +1 -1
- package/dist/cjs/services/generated/api/map.service.d.ts +4 -2
- package/dist/cjs/services/generated/api/map.service.js +10 -2
- package/dist/cjs/services/generated/api/map.service.js.map +1 -1
- package/dist/cjs/services/generated/api/rule.service.d.ts +1 -1
- package/dist/cjs/services/generated/api/rule.service.js +1 -1
- package/dist/cjs/services/generated/api/rule.service.js.map +1 -1
- package/dist/cjs/services/generated/api/storage.service.d.ts +31 -31
- package/dist/cjs/services/generated/api/storage.service.js +31 -31
- package/dist/cjs/services/generated/api/storage.service.js.map +1 -1
- package/dist/cjs/services/generated/api/uI.service.d.ts +16 -4
- package/dist/cjs/services/generated/api/uI.service.js +41 -4
- package/dist/cjs/services/generated/api/uI.service.js.map +1 -1
- package/dist/cjs/services/generated/api/workload.service.d.ts +8 -1
- package/dist/cjs/services/generated/api/workload.service.js +14 -0
- package/dist/cjs/services/generated/api/workload.service.js.map +1 -1
- package/dist/cjs/services/generated/models/aCPStatusUpdateData.d.ts +1 -0
- package/dist/cjs/services/generated/models/aCPStatusUpdateData.js.map +1 -1
- package/dist/cjs/services/generated/models/alarmClusteringData.d.ts +11 -0
- package/dist/cjs/services/generated/models/alarmClusteringData.js +3 -0
- package/dist/cjs/services/generated/models/alarmClusteringData.js.map +1 -0
- package/dist/cjs/services/generated/models/alarmCreateData.d.ts +1 -0
- package/dist/cjs/services/generated/models/alarmCreateData.js.map +1 -1
- package/dist/cjs/services/generated/models/alarmListData.d.ts +1 -0
- package/dist/cjs/services/generated/models/alarmListData.js.map +1 -1
- package/dist/cjs/services/generated/models/alarmTagCreateData.d.ts +7 -0
- package/dist/cjs/services/generated/models/alarmTagCreateData.js +3 -0
- package/dist/cjs/services/generated/models/alarmTagCreateData.js.map +1 -0
- package/dist/cjs/services/generated/models/alarmTagUpdateData.d.ts +6 -0
- package/dist/cjs/services/generated/models/alarmTagUpdateData.js +3 -0
- package/dist/cjs/services/generated/models/alarmTagUpdateData.js.map +1 -0
- package/dist/cjs/services/generated/models/alarmUpdateData.d.ts +1 -0
- package/dist/cjs/services/generated/models/alarmUpdateData.js.map +1 -1
- package/dist/cjs/services/generated/models/bridgeDeployData.d.ts +5 -5
- package/dist/cjs/services/generated/models/bridgeDeployData.js.map +1 -1
- package/dist/cjs/services/generated/models/carbonEmissionsSettingData.d.ts +15 -0
- package/dist/cjs/services/generated/models/carbonEmissionsSettingData.js +3 -0
- package/dist/cjs/services/generated/models/carbonEmissionsSettingData.js.map +1 -0
- package/dist/cjs/services/generated/models/controlChangeClusteringData.d.ts +12 -0
- package/dist/cjs/services/generated/models/controlChangeClusteringData.js +3 -0
- package/dist/cjs/services/generated/models/controlChangeClusteringData.js.map +1 -0
- package/dist/cjs/services/generated/models/controlChangeListData.d.ts +2 -1
- package/dist/cjs/services/generated/models/controlChangeListData.js.map +1 -1
- package/dist/cjs/services/generated/models/failureOverviewData.d.ts +1 -0
- package/dist/cjs/services/generated/models/failureOverviewData.js.map +1 -1
- package/dist/cjs/services/generated/models/index.d.ts +7 -0
- package/dist/cjs/services/generated/models/index.js +7 -0
- package/dist/cjs/services/generated/models/index.js.map +1 -1
- package/dist/cjs/services/generated/models/kelvinCarbonEmissionsInstanceSettingUpdateData.d.ts +7 -0
- package/dist/cjs/services/generated/models/kelvinCarbonEmissionsInstanceSettingUpdateData.js +3 -0
- package/dist/cjs/services/generated/models/kelvinCarbonEmissionsInstanceSettingUpdateData.js.map +1 -0
- package/dist/cjs/services/generated/models/mapCreateData.d.ts +3 -1
- package/dist/cjs/services/generated/models/mapCreateData.js.map +1 -1
- package/dist/cjs/services/generated/models/mapUpdateData.d.ts +3 -1
- package/dist/cjs/services/generated/models/mapUpdateData.js.map +1 -1
- package/dist/cjs/services/generated/models/processesListData.d.ts +8 -0
- package/dist/cjs/services/generated/models/processesListData.js +3 -0
- package/dist/cjs/services/generated/models/processesListData.js.map +1 -0
- package/dist/cjs/services/generated/models/rulePayloadData.d.ts +1 -0
- package/dist/cjs/services/generated/models/rulePayloadData.js.map +1 -1
- package/dist/cjs/services/generated/types/alarm.service.types.d.ts +43 -1
- package/dist/cjs/services/generated/types/alarm.service.types.js.map +1 -1
- package/dist/cjs/services/generated/types/controlChange.service.types.d.ts +7 -1
- package/dist/cjs/services/generated/types/controlChange.service.types.js.map +1 -1
- package/dist/cjs/services/generated/types/instance.service.types.d.ts +11 -1
- package/dist/cjs/services/generated/types/instance.service.types.js.map +1 -1
- package/dist/cjs/services/generated/types/map.service.types.d.ts +2 -0
- package/dist/cjs/services/generated/types/map.service.types.js.map +1 -1
- package/dist/cjs/services/generated/types/uI.service.types.d.ts +13 -1
- package/dist/cjs/services/generated/types/uI.service.types.js.map +1 -1
- package/dist/cjs/services/generated/types/workload.service.types.d.ts +6 -0
- package/dist/cjs/services/generated/types/workload.service.types.js.map +1 -1
- package/dist/esm/core/http.d.ts +11 -1
- package/dist/esm/core/http.js +15 -0
- package/dist/esm/core/http.js.map +1 -1
- package/dist/esm/models/generated/alarm.d.ts +2 -0
- package/dist/esm/models/generated/alarm.js +1 -0
- package/dist/esm/models/generated/alarm.js.map +1 -1
- package/dist/esm/models/generated/alarmClustering.d.ts +21 -0
- package/dist/esm/models/generated/alarmClustering.js +17 -0
- package/dist/esm/models/generated/alarmClustering.js.map +1 -0
- package/dist/esm/models/generated/alarmItem.d.ts +2 -0
- package/dist/esm/models/generated/alarmItem.js +1 -0
- package/dist/esm/models/generated/alarmItem.js.map +1 -1
- package/dist/esm/models/generated/alarmTag.d.ts +23 -0
- package/dist/esm/models/generated/alarmTag.js +18 -0
- package/dist/esm/models/generated/alarmTag.js.map +1 -0
- package/dist/esm/models/generated/alarmTagItem.d.ts +23 -0
- package/dist/esm/models/generated/alarmTagItem.js +18 -0
- package/dist/esm/models/generated/alarmTagItem.js.map +1 -0
- package/dist/esm/models/generated/alarmTagListPaginated.d.ts +21 -0
- package/dist/esm/models/generated/alarmTagListPaginated.js +18 -0
- package/dist/esm/models/generated/alarmTagListPaginated.js.map +1 -0
- package/dist/esm/models/generated/bridge.d.ts +24 -0
- package/dist/esm/models/generated/bridge.js.map +1 -1
- package/dist/esm/models/generated/bridgeDataStreamItem.d.ts +9 -0
- package/dist/esm/models/generated/bridgeDataStreamItem.js.map +1 -1
- package/dist/esm/models/generated/bridgeDataStreamListPaginated.d.ts +3 -0
- package/dist/esm/models/generated/bridgeDataStreamListPaginated.js.map +1 -1
- package/dist/esm/models/generated/bridgeItem.d.ts +21 -0
- package/dist/esm/models/generated/bridgeItem.js.map +1 -1
- package/dist/esm/models/generated/bridgeListPaginated.d.ts +3 -0
- package/dist/esm/models/generated/bridgeListPaginated.js.map +1 -1
- package/dist/esm/models/generated/carbonEmissionsInstanceSettingItem.d.ts +25 -0
- package/dist/esm/models/generated/carbonEmissionsInstanceSettingItem.js +19 -0
- package/dist/esm/models/generated/carbonEmissionsInstanceSettingItem.js.map +1 -0
- package/dist/esm/models/generated/controlChangeClustering.d.ts +21 -0
- package/dist/esm/models/generated/controlChangeClustering.js +17 -0
- package/dist/esm/models/generated/controlChangeClustering.js.map +1 -0
- package/dist/esm/models/generated/emissionsDashboard.d.ts +2 -2
- package/dist/esm/models/generated/emissionsDashboard.js +1 -1
- package/dist/esm/models/generated/emissionsDashboard.js.map +1 -1
- package/dist/esm/models/generated/fullMap.d.ts +49 -0
- package/dist/esm/models/generated/fullMap.js +34 -0
- package/dist/esm/models/generated/fullMap.js.map +1 -0
- package/dist/esm/models/generated/fullMapListPaginated.d.ts +21 -0
- package/dist/esm/models/generated/fullMapListPaginated.js +18 -0
- package/dist/esm/models/generated/fullMapListPaginated.js.map +1 -0
- package/dist/esm/models/generated/index.d.ts +9 -0
- package/dist/esm/models/generated/index.js +9 -0
- package/dist/esm/models/generated/index.js.map +1 -1
- package/dist/esm/models/generated/mQTTTopicItem.d.ts +18 -0
- package/dist/esm/models/generated/mQTTTopicItem.js.map +1 -1
- package/dist/esm/models/generated/mQTTTopicList.d.ts +3 -0
- package/dist/esm/models/generated/mQTTTopicList.js.map +1 -1
- package/dist/esm/models/generated/mapItem.d.ts +8 -4
- package/dist/esm/models/generated/mapItem.js +4 -2
- package/dist/esm/models/generated/mapItem.js.map +1 -1
- package/dist/esm/models/generated/mapModel.d.ts +4 -0
- package/dist/esm/models/generated/mapModel.js +2 -0
- package/dist/esm/models/generated/mapModel.js.map +1 -1
- package/dist/esm/models/generated/mapVersionItem.d.ts +4 -2
- package/dist/esm/models/generated/mapVersionItem.js +2 -1
- package/dist/esm/models/generated/mapVersionItem.js.map +1 -1
- package/dist/esm/models/generated/metricListPaginated.d.ts +1 -1
- package/dist/esm/models/generated/metricListPaginated.js.map +1 -1
- package/dist/esm/models/generated/page.d.ts +21 -0
- package/dist/esm/models/generated/page.js +17 -0
- package/dist/esm/models/generated/page.js.map +1 -0
- package/dist/esm/models/generated/rulePayload.d.ts +2 -0
- package/dist/esm/models/generated/rulePayload.js +1 -0
- package/dist/esm/models/generated/rulePayload.js.map +1 -1
- package/dist/esm/models/generated/storageData.d.ts +15 -0
- package/dist/esm/models/generated/storageData.js.map +1 -1
- package/dist/esm/models/generated/storageMetric.d.ts +18 -0
- package/dist/esm/models/generated/storageMetric.js.map +1 -1
- package/dist/esm/models/generated/storageMetricListPaginated.d.ts +3 -0
- package/dist/esm/models/generated/storageMetricListPaginated.js.map +1 -1
- package/dist/esm/models/generated/workload.d.ts +4 -2
- package/dist/esm/models/generated/workload.js +2 -1
- package/dist/esm/models/generated/workload.js.map +1 -1
- package/dist/esm/models/generated/workloadItem.d.ts +4 -2
- package/dist/esm/models/generated/workloadItem.js +2 -1
- package/dist/esm/models/generated/workloadItem.js.map +1 -1
- package/dist/esm/services/generated/api/alarm.service.d.ts +50 -2
- package/dist/esm/services/generated/api/alarm.service.js +114 -1
- package/dist/esm/services/generated/api/alarm.service.js.map +1 -1
- package/dist/esm/services/generated/api/asset.service.d.ts +1 -1
- package/dist/esm/services/generated/api/asset.service.js +1 -1
- package/dist/esm/services/generated/api/asset.service.js.map +1 -1
- package/dist/esm/services/generated/api/bridge.service.d.ts +50 -50
- package/dist/esm/services/generated/api/bridge.service.js +50 -50
- package/dist/esm/services/generated/api/bridge.service.js.map +1 -1
- package/dist/esm/services/generated/api/controlChange.service.d.ts +9 -2
- package/dist/esm/services/generated/api/controlChange.service.js +16 -1
- package/dist/esm/services/generated/api/controlChange.service.js.map +1 -1
- package/dist/esm/services/generated/api/instance.service.d.ts +16 -2
- package/dist/esm/services/generated/api/instance.service.js +35 -1
- package/dist/esm/services/generated/api/instance.service.js.map +1 -1
- package/dist/esm/services/generated/api/map.service.d.ts +4 -2
- package/dist/esm/services/generated/api/map.service.js +10 -2
- package/dist/esm/services/generated/api/map.service.js.map +1 -1
- package/dist/esm/services/generated/api/rule.service.d.ts +1 -1
- package/dist/esm/services/generated/api/rule.service.js +1 -1
- package/dist/esm/services/generated/api/rule.service.js.map +1 -1
- package/dist/esm/services/generated/api/storage.service.d.ts +31 -31
- package/dist/esm/services/generated/api/storage.service.js +31 -31
- package/dist/esm/services/generated/api/storage.service.js.map +1 -1
- package/dist/esm/services/generated/api/uI.service.d.ts +16 -4
- package/dist/esm/services/generated/api/uI.service.js +42 -5
- package/dist/esm/services/generated/api/uI.service.js.map +1 -1
- package/dist/esm/services/generated/api/workload.service.d.ts +8 -1
- package/dist/esm/services/generated/api/workload.service.js +14 -0
- package/dist/esm/services/generated/api/workload.service.js.map +1 -1
- package/dist/esm/services/generated/models/aCPStatusUpdateData.d.ts +1 -0
- package/dist/esm/services/generated/models/aCPStatusUpdateData.js.map +1 -1
- package/dist/esm/services/generated/models/alarmClusteringData.d.ts +11 -0
- package/dist/esm/services/generated/models/alarmClusteringData.js +1 -0
- package/dist/esm/services/generated/models/alarmClusteringData.js.map +1 -0
- package/dist/esm/services/generated/models/alarmCreateData.d.ts +1 -0
- package/dist/esm/services/generated/models/alarmCreateData.js.map +1 -1
- package/dist/esm/services/generated/models/alarmListData.d.ts +1 -0
- package/dist/esm/services/generated/models/alarmListData.js.map +1 -1
- package/dist/esm/services/generated/models/alarmTagCreateData.d.ts +7 -0
- package/dist/esm/services/generated/models/alarmTagCreateData.js +1 -0
- package/dist/esm/services/generated/models/alarmTagCreateData.js.map +1 -0
- package/dist/esm/services/generated/models/alarmTagUpdateData.d.ts +6 -0
- package/dist/esm/services/generated/models/alarmTagUpdateData.js +1 -0
- package/dist/esm/services/generated/models/alarmTagUpdateData.js.map +1 -0
- package/dist/esm/services/generated/models/alarmUpdateData.d.ts +1 -0
- package/dist/esm/services/generated/models/alarmUpdateData.js.map +1 -1
- package/dist/esm/services/generated/models/bridgeDeployData.d.ts +5 -5
- package/dist/esm/services/generated/models/bridgeDeployData.js.map +1 -1
- package/dist/esm/services/generated/models/carbonEmissionsSettingData.d.ts +15 -0
- package/dist/esm/services/generated/models/carbonEmissionsSettingData.js +1 -0
- package/dist/esm/services/generated/models/carbonEmissionsSettingData.js.map +1 -0
- package/dist/esm/services/generated/models/controlChangeClusteringData.d.ts +12 -0
- package/dist/esm/services/generated/models/controlChangeClusteringData.js +1 -0
- package/dist/esm/services/generated/models/controlChangeClusteringData.js.map +1 -0
- package/dist/esm/services/generated/models/controlChangeListData.d.ts +2 -1
- package/dist/esm/services/generated/models/controlChangeListData.js.map +1 -1
- package/dist/esm/services/generated/models/failureOverviewData.d.ts +1 -0
- package/dist/esm/services/generated/models/failureOverviewData.js.map +1 -1
- package/dist/esm/services/generated/models/index.d.ts +7 -0
- package/dist/esm/services/generated/models/index.js +7 -0
- package/dist/esm/services/generated/models/index.js.map +1 -1
- package/dist/esm/services/generated/models/kelvinCarbonEmissionsInstanceSettingUpdateData.d.ts +7 -0
- package/dist/esm/services/generated/models/kelvinCarbonEmissionsInstanceSettingUpdateData.js +1 -0
- package/dist/esm/services/generated/models/kelvinCarbonEmissionsInstanceSettingUpdateData.js.map +1 -0
- package/dist/esm/services/generated/models/mapCreateData.d.ts +3 -1
- package/dist/esm/services/generated/models/mapCreateData.js.map +1 -1
- package/dist/esm/services/generated/models/mapUpdateData.d.ts +3 -1
- package/dist/esm/services/generated/models/mapUpdateData.js.map +1 -1
- package/dist/esm/services/generated/models/processesListData.d.ts +8 -0
- package/dist/esm/services/generated/models/processesListData.js +1 -0
- package/dist/esm/services/generated/models/processesListData.js.map +1 -0
- package/dist/esm/services/generated/models/rulePayloadData.d.ts +1 -0
- package/dist/esm/services/generated/models/rulePayloadData.js.map +1 -1
- package/dist/esm/services/generated/types/alarm.service.types.d.ts +43 -1
- package/dist/esm/services/generated/types/alarm.service.types.js.map +1 -1
- package/dist/esm/services/generated/types/controlChange.service.types.d.ts +7 -1
- package/dist/esm/services/generated/types/controlChange.service.types.js.map +1 -1
- package/dist/esm/services/generated/types/instance.service.types.d.ts +11 -1
- package/dist/esm/services/generated/types/instance.service.types.js.map +1 -1
- package/dist/esm/services/generated/types/map.service.types.d.ts +2 -0
- package/dist/esm/services/generated/types/map.service.types.js.map +1 -1
- package/dist/esm/services/generated/types/uI.service.types.d.ts +13 -1
- package/dist/esm/services/generated/types/uI.service.types.js.map +1 -1
- package/dist/esm/services/generated/types/workload.service.types.d.ts +6 -0
- package/dist/esm/services/generated/types/workload.service.types.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge.service.js","sourceRoot":"","sources":["../../../../../src/services/generated/api/bridge.service.ts"],"names":[],"mappings":";;;AAEA,4CAAqJ;AACrJ,qDAAiD;AAWjD;;GAEG;AAEH,MAAa,aAAc,SAAQ,0BAAW;IAE7C;;;;;OAKG;IAEH,MAAM,CAAC,YAAY,CAAC,EAAE,UAAU,EAAuB,EAAE,OAA+B;QAEvF,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QAEF,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAkB,YAAY,kBAAkB,CAAC,MAAM,CAAC,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AC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAgB,4CAA4C,EAAE,aAAa,EAAE,sBAAa,CAAC,CAAC;IAChH,CAAC;IAED;;;;;OAKG;IAEH,MAAM,CAAC,WAAW,CAAC,EAAE,UAAU,EAAsB,EAAE,OAA+B;QAErF,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,KAAsB;SAC9B,CAAC;QAEF,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAkB,YAAY,kBAAkB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IACjH,CAAC;IAED;;;;;OAKG;IAEH,MAAM,CAAC,UAAU,CAAC,EAAE,UAAU,EAAqB,EAAE,OAA+B;QAEnF,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,KAAsB;SAC9B,CAAC;QAEF,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAkB,YAAY,kBAAkB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;IAChH,CAAC;CACD;AA7WD,sCA6WC","sourcesContent":["import { Observable } from 'rxjs';\nimport { EKvHttpMethod, IKvHttpRequest, IKvHttpRequestOptions, IKvHttpResponse } from '../../../core/http';\nimport { AssetListPaginated, Bridge, BridgeDataStreamListPaginated, BridgeListPaginated, MetricListPaginated, MQTTTopicList } from '../../../models';\nimport { BaseService } from '../../base.service';\nimport {\n\tIDeleteBridgeParams,\n\tIDeployBridgeParams,\n\tIGetBridgeParams, IListBridgeAssetsParams,\n\tIListBridgeDataStreamsParams,\n\tIListBridgeMetricsParams, IListBridgeParams, IListMQTTTopicsParams,\n\tIStartBridgeParams,\n\tIStopBridgeParams\n} from '../types';\n\n/**\n * @category Service\n */\n\nexport class BridgeService extends BaseService {\n\n\t/**\n\t * Delete Bridge\n\t * Delete Bridge application **Permission Required:** `kelvin.permission.bridge.delete`\n\t * @param bridgeName Bridge name\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic deleteBridge({ bridgeName }: IDeleteBridgeParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/bridges/${encodeURIComponent(String(bridgeName))}/delete`, requestConfig);\n\t}\n\n\t/**\n\t * Deploy Bridge\n\t * Deploy Bridge App **Permission Required:** `kelvin.permission.bridge.create`\n\t * @param bridge Bridge create schema. Supported protocols [`modbus`, `opc-ua`, `mqtt`, `roc`]\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic deployBridge({ bridge }: IDeployBridgeParams, options?: IKvHttpRequestOptions): Observable<Bridge> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = bridge;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<Bridge>(`/bridges/deploy`, requestConfig, Bridge);\n\t}\n\n\t/**\n\t * Get Bridge\n\t * Get Bridge **Permission Required:** `kelvin.permission.bridge.read`\n\t * @param bridgeName Bridge name\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getBridge({ bridgeName }: IGetBridgeParams, options?: IKvHttpRequestOptions): Observable<Bridge> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<Bridge>(`/bridges/${encodeURIComponent(String(bridgeName))}/get`, requestConfig, Bridge);\n\t}\n\n\t/**\n\t * List Bridge\n\t * List Bridge **Pagination Sortable Columns:** `bridge.name`, `bridge.title`, `bridge.protocol`, `bridge.acp_name`, `bridge.workload_name`, `bridge.created`, `bridge.updated`, `status_state`, `status_last_seen` **Permission Required:** `kelvin.permission.bridge.read`\n\t * @param names Filter bridges by name\n\t * @param search Search bridges by name or title\n\t * @param acpName Filter bridges by acp_name\n\t * @param protocol Filter bridges by protocol. Supported protocols [`modbus`, `opc-ua`, `mqtt`, `roc`]\n\t * @param workloadName Filter bridges by workload_name\n\t * @param statusState Filter bridges by status state\n\t * @param pageSize Number of objects to be returned, between 1 and 1000. Default: 20\n\t * @param startingAfter Lower bound cursor for use in pagination\n\t * @param endingBefore Upper bound cursor for use in pagination\n\t * @param sortBy Parameter to sort by. Must be one of the sortable columns\n\t * @param sortAsc Order of sorting is Ascending. Possible Values: true/false. Default: true\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic listBridge({ names, search, acpName, protocol, workloadName, statusState, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IListBridgeParams = {}, options?: IKvHttpRequestOptions): Observable<BridgeListPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (names != null) {\n\t\t\tqueryParameters['names'] = names;\n\t\t}\n\n\t\tif (search != null) {\n\t\t\tqueryParameters['search'] = search;\n\t\t}\n\n\t\tif (acpName != null) {\n\t\t\tqueryParameters['acp_name'] = acpName;\n\t\t}\n\n\t\tif (protocol != null) {\n\t\t\tqueryParameters['protocol'] = protocol;\n\t\t}\n\n\t\tif (workloadName != null) {\n\t\t\tqueryParameters['workload_name'] = workloadName;\n\t\t}\n\n\t\tif (statusState != null) {\n\t\t\tqueryParameters['status_state'] = statusState;\n\t\t}\n\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<BridgeListPaginated>(`/bridges/list`, requestConfig, BridgeListPaginated);\n\t}\n\n\t/**\n\t * List Bridge Assets\n\t * List Bridge Assets **Pagination Sortable Columns:** `asset.name`, `asset.title`, `asset.created`, `asset.updated`, `asset_type.title` **Permission Required:** `kelvin.permission.bridge.read`\n\t * @param bridgeName Bridge name\n\t * @param pageSize Number of objects to be returned, between 1 and 1000. Default: 20\n\t * @param startingAfter Lower bound cursor for use in pagination\n\t * @param endingBefore Upper bound cursor for use in pagination\n\t * @param sortBy Parameter to sort by. Must be one of the sortable columns\n\t * @param sortAsc Order of sorting is Ascending. Possible Values: true/false. Default: true\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic listBridgeAssets({ bridgeName, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IListBridgeAssetsParams, options?: IKvHttpRequestOptions): Observable<AssetListPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<AssetListPaginated>(`/bridges/${encodeURIComponent(String(bridgeName))}/assets/list`, requestConfig, AssetListPaginated);\n\t}\n\n\t/**\n\t * List Bridge Data Streams\n\t * List Bridge Data Streams **Pagination Sortable Columns:** `bridge_metric_asset.asset_name`, `bridge_metric_asset.metric_name` **Permission Required:** `kelvin.permission.bridge.read`\n\t * @param bridgeName Bridge name\n\t * @param assetName Filter data stream by asset name\n\t * @param metricName Filter data stream by metric name\n\t * @param pageSize Number of objects to be returned, between 1 and 1000. Default: 20\n\t * @param startingAfter Lower bound cursor for use in pagination\n\t * @param endingBefore Upper bound cursor for use in pagination\n\t * @param sortBy Parameter to sort by. Must be one of the sortable columns\n\t * @param sortAsc Order of sorting is Ascending. Possible Values: true/false. Default: true\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic listBridgeDataStreams({ bridgeName, assetName, metricName, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IListBridgeDataStreamsParams, options?: IKvHttpRequestOptions): Observable<BridgeDataStreamListPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (assetName != null) {\n\t\t\tqueryParameters['asset_name'] = assetName;\n\t\t}\n\n\t\tif (metricName != null) {\n\t\t\tqueryParameters['metric_name'] = metricName;\n\t\t}\n\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<BridgeDataStreamListPaginated>(`/bridges/${encodeURIComponent(String(bridgeName))}/datastreams/list`, requestConfig, BridgeDataStreamListPaginated);\n\t}\n\n\t/**\n\t * List Bridge Metrics\n\t * List Bridge Metrics **Pagination Sortable Columns:** `metric.name`, `metric.title`, `metric.created`, `metric.updated`, `metric.data_type_name` **Permission Required:** `kelvin.permission.bridge.read`\n\t * @param bridgeName Bridge name\n\t * @param pageSize Number of objects to be returned, between 1 and 1000. Default: 20\n\t * @param startingAfter Lower bound cursor for use in pagination\n\t * @param endingBefore Upper bound cursor for use in pagination\n\t * @param sortBy Parameter to sort by. Must be one of the sortable columns\n\t * @param sortAsc Order of sorting is Ascending. Possible Values: true/false. Default: true\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic listBridgeMetrics({ bridgeName, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IListBridgeMetricsParams, options?: IKvHttpRequestOptions): Observable<MetricListPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<MetricListPaginated>(`/bridges/${encodeURIComponent(String(bridgeName))}/metrics/list`, requestConfig, MetricListPaginated);\n\t}\n\n\t/**\n\t * List MQTT Topics\n\t * List MQTT Topics **Sortable Columns:** `bridge_mqtt_topic.name`, `bridge_mqtt_topic.title`, `bridge_mqtt_topic.topic`, `bridge_mqtt_topic.created`, `bridge_mqtt_topic.updated` **Permission Required:** `kelvin.permission.bridge.read`\n\t * @param names Filter MQTT topics by name\n\t * @param search Search MQTT topics by name, title or topic\n\t * @param sortBy Parameter to sort by. Must be one of the sortable columns\n\t * @param sortAsc Order of sorting is Ascending. Possible Values: true/false. Default: true\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic listMQTTTopics({ names, search, sortBy, sortAsc }: IListMQTTTopicsParams = {}, options?: IKvHttpRequestOptions): Observable<MQTTTopicList> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (names != null) {\n\t\t\tqueryParameters['names'] = names;\n\t\t}\n\n\t\tif (search != null) {\n\t\t\tqueryParameters['search'] = search;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<MQTTTopicList>(`/bridges/protocols/mqtt/configuration/list`, requestConfig, MQTTTopicList);\n\t}\n\n\t/**\n\t * Start Bridge\n\t * Start Bridge application **Permission Required:** `kelvin.permission.bridge.update`\n\t * @param bridgeName Bridge name\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic startBridge({ bridgeName }: IStartBridgeParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/bridges/${encodeURIComponent(String(bridgeName))}/start`, requestConfig);\n\t}\n\n\t/**\n\t * Stop Bridge\n\t * Stop Bridge application **Permission Required:** `kelvin.permission.bridge.update`\n\t * @param bridgeName Bridge name\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic stopBridge({ bridgeName }: IStopBridgeParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/bridges/${encodeURIComponent(String(bridgeName))}/stop`, requestConfig);\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"bridge.service.js","sourceRoot":"","sources":["../../../../../src/services/generated/api/bridge.service.ts"],"names":[],"mappings":";;;AAEA,4CAAqJ;AACrJ,qDAAiD;AAWjD;;GAEG;AAEH,MAAa,aAAc,SAAQ,0BAAW;IAE7C;;;;;OAKG;IAEH,MAAM,CAAC,YAAY,CAAC,EAAE,UAAU,EAAuB,EAAE,OAA+B;QAEvF,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QAEF,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAkB,YAAY,kBAAkB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,E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AAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAgB,4CAA4C,EAAE,aAAa,EAAE,sBAAa,CAAC,CAAC;IAChH,CAAC;IAED;;;;;OAKG;IAEH,MAAM,CAAC,WAAW,CAAC,EAAE,UAAU,EAAsB,EAAE,OAA+B;QAErF,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,KAAsB;SAC9B,CAAC;QAEF,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAkB,YAAY,kBAAkB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IACjH,CAAC;IAED;;;;;OAKG;IAEH,MAAM,CAAC,UAAU,CAAC,EAAE,UAAU,EAAqB,EAAE,OAA+B;QAEnF,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,KAAsB;SAC9B,CAAC;QAEF,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAkB,YAAY,kBAAkB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;IAChH,CAAC;CACD;AA7WD,sCA6WC","sourcesContent":["import { Observable } from 'rxjs';\nimport { EKvHttpMethod, IKvHttpRequest, IKvHttpRequestOptions, IKvHttpResponse } from '../../../core/http';\nimport { AssetListPaginated, Bridge, BridgeDataStreamListPaginated, BridgeListPaginated, MetricListPaginated, MQTTTopicList } from '../../../models';\nimport { BaseService } from '../../base.service';\nimport {\n\tIDeleteBridgeParams,\n\tIDeployBridgeParams,\n\tIGetBridgeParams, IListBridgeAssetsParams,\n\tIListBridgeDataStreamsParams,\n\tIListBridgeMetricsParams, IListBridgeParams, IListMQTTTopicsParams,\n\tIStartBridgeParams,\n\tIStopBridgeParams\n} from '../types';\n\n/**\n * @category Service\n */\n\nexport class BridgeService extends BaseService {\n\n\t/**\n\t * Delete Bridge\n\t * Delete Bridge application Permanently delete an existing <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a>. This cannot be undone once the API request has been submitted. <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridges</a> can be deleted even if the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-nodes/' target='_blank'>Kelvin Node</a> is offline. In this case, the information will be immediately deleted on the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a> and the commands to delete on the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-nodes/' target='_blank'>Kelvin Node</a> will be sent when it next comes online. **Permission Required:** `kelvin.permission.bridge.delete`\n\t * @param bridgeName Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a>.</p> This must contain only lowercase alphanumeric characters. The `.`, `_` and `-` characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic deleteBridge({ bridgeName }: IDeleteBridgeParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/bridges/${encodeURIComponent(String(bridgeName))}/delete`, requestConfig);\n\t}\n\n\t/**\n\t * Deploy Bridge\n\t * Deploy Bridge App Deploy a <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> to a selected <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-nodes/' target='_blank'>Kelvin Node</a>. The Kelvin Bridge will handle all the communications and data transfer between external equipment and the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a> using one of four communication protocols; OPC UA, MQTT, Modbus TCP / RTU or Emerson ROC. Each protocol will require a different type of payload structure that defines the exact address specifications for each <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> // <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pairs. **Permission Required:** `kelvin.permission.bridge.create`\n\t * @param bridge Bridge create schema. Supported protocols [`opc-ua`, `mqtt`, `modbus`, `roc`]\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic deployBridge({ bridge }: IDeployBridgeParams, options?: IKvHttpRequestOptions): Observable<Bridge> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = bridge;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<Bridge>(`/bridges/deploy`, requestConfig, Bridge);\n\t}\n\n\t/**\n\t * Get Bridge\n\t * Get Bridge Retrieve the properties of a <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a>. **Permission Required:** `kelvin.permission.bridge.read`\n\t * @param bridgeName Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a>.</p> This must contain only lowercase alphanumeric characters. The `.`, `_` and `-` characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getBridge({ bridgeName }: IGetBridgeParams, options?: IKvHttpRequestOptions): Observable<Bridge> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<Bridge>(`/bridges/${encodeURIComponent(String(bridgeName))}/get`, requestConfig, Bridge);\n\t}\n\n\t/**\n\t * List Bridge\n\t * List Bridge Returns a dictionary with a data property containing a list of all <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridges</a> on the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a>. **Pagination Sortable Columns:** `bridge.name`, `bridge.title`, `bridge.protocol`, `bridge.acp_name`, `bridge.workload_name`, `bridge.created`, `bridge.updated`, `status_state`, `status_last_seen` **Permission Required:** `kelvin.permission.bridge.read`\n\t * @param names Filter on the parameter <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> by its name. This is given as an array, for example `[extruder-bridge,tank-bridge]`.</p> The filter is done on the full name only according to unique identifier name rules (Must contain only lowercase alphanumeric characters. The `.`, `_` and `-` characters are also allowed to separate words instead of a space but not at the beginning or end).</p> For example a filter with `[extruder-bridge,tank-bridge]` will return <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> with the name `extruder-bridge` but not with the names `demo-extruder-bridge` or `tank-bridge-one`.\n\t * @param search Search and filter the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> list. Both the Display Name and the Name will be included in the search field criteria. This is given as an array, for example `[demo,bridge]`.</p> The search is case insensitive and will find partial matches as well. For example if a <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> name or display name is `extruder-bridge`, then a match will be made if the search string is `ext` or `rIDge`.\n\t * @param acpName Filter on the parameter <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a>'s acp_name (This is a <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-nodes/' target='_blank'>Kelvin Node</a>). This is given as an array, for example `[demo-node-1,extruder-node]`.</p> The filter is done on the full name only according to unique identifier name rules (Must contain only lowercase alphanumeric characters. The `.`, `_` and `-` characters are also allowed to separate words instead of a space but not at the beginning or end).</p> For example a filter with `[demo-node-1,extruder-node]` will return <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> with the parameter acp_name `extruder-node` but not with the names `demo-extruder-node` or `extruder-node-one`.\n\t * @param protocol Filter on the parameter <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> `protocol`. This is the communication protocol used by the bridge. This is given as an array, for example `[modbus,mqtt]`.</p> There are four options available; `modbus`, `opc-ua`, `mqtt`, `roc`.\n\t * @param workloadName Filter on the parameter <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> `workload_name`. This is given as an array, for example `[extruder,tank]`.</p> The filter is done on the full workload_name only according to unique identifier name rules (Must contain only lowercase alphanumeric characters. The `.`, `_` and `-` characters are also allowed to separate words instead of a space but not at the beginning or end).</p> For example a filter with `[extruder,tank]` will return <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> with the parameter workload_name `extruder` but not with the workload_name `demo-extruder-bridge` or `bridge-tank`.\n\t * @param statusState Filter on the parameter <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> `status_state`. This is the communication protocol used by the bridge. This is given as an array, for example `[failed,stopped]`.</p> There are five options available; `running`, `stopped`, `failed`, `deploying`, `offline`.\n\t * @param pageSize Number of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> objects to be returned. Page size can be between 1 and 1000 objects.</p> The default is 20 <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> objects.\n\t * @param startingAfter An alphanumeric string to move to the next page of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> in the list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> next_page alphanumeric string should be used here to show a list of the next page of results.\n\t * @param endingBefore An alphanumeric string to move to the previous page of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> in the list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> previous_page alphanumeric string should be used here to show a list of the previous page of results.\n\t * @param sortBy Sort the results by one of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> parameters. Only one parameter can be selected.</p> There are ten parameter options; `bridge.name`, `bridge.title`, `bridge.protocol`, `bridge.acp_name`, `bridge.workload_name`, `bridge.created`, `bridge.updated`, `status_state` and `status_last_seen`.</p> The default is `bridge.name`\n\t * @param sortAsc Sorting order for the results according to the `sort_by` parameter.</p> There are two options; `true` (ascending order) and `false` (descending order).</p> The default is `true` (ascending).\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic listBridge({ names, search, acpName, protocol, workloadName, statusState, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IListBridgeParams = {}, options?: IKvHttpRequestOptions): Observable<BridgeListPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (names != null) {\n\t\t\tqueryParameters['names'] = names;\n\t\t}\n\n\t\tif (search != null) {\n\t\t\tqueryParameters['search'] = search;\n\t\t}\n\n\t\tif (acpName != null) {\n\t\t\tqueryParameters['acp_name'] = acpName;\n\t\t}\n\n\t\tif (protocol != null) {\n\t\t\tqueryParameters['protocol'] = protocol;\n\t\t}\n\n\t\tif (workloadName != null) {\n\t\t\tqueryParameters['workload_name'] = workloadName;\n\t\t}\n\n\t\tif (statusState != null) {\n\t\t\tqueryParameters['status_state'] = statusState;\n\t\t}\n\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<BridgeListPaginated>(`/bridges/list`, requestConfig, BridgeListPaginated);\n\t}\n\n\t/**\n\t * List Bridge Assets\n\t * List Bridge Assets Returns a dictionary with a data property containing a list of all <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> on the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a>. **Pagination Sortable Columns:** `asset.name`, `asset.title`, `asset.created`, `asset.updated`, `asset_type.title` **Permission Required:** `kelvin.permission.bridge.read`\n\t * @param bridgeName Filter on the parameter <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> by its name.</p> The filter is done on the full name only according to unique identifier name rules (Must contain only lowercase alphanumeric characters. The `.`, `_` and `-` characters are also allowed to separate words instead of a space but not at the beginning or end).</p> For example a filter with `demo-bridge-one` will return <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> linked to the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> with the name `demo-bridge-one` but not with the names `demo-bridge` or `bridge-one`.\n\t * @param pageSize Number of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> objects to be returned. Page size can be between 1 and 1000 objects.</p> The default is 20 <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> objects.\n\t * @param startingAfter An alphanumeric string to move to the next page of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> in the list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> next_page alphanumeric string should be used here to show a list of the next page of results.\n\t * @param endingBefore An alphanumeric string to move to the previous page of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> in the list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> previous_page alphanumeric string should be used here to show a list of the previous page of results.\n\t * @param sortBy Sort the results by one of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> parameters. Only one parameter can be selected.</p> There are ten parameter options; `asset.name`, `asset.title`, `asset.created`, `asset.updated` and `asset_type.title`.</p> The default is `asset.name`\n\t * @param sortAsc Sorting order for the results according to the `sort_by` parameter.</p> There are two options; `true` (ascending order) and `false` (descending order).</p> The default is `true` (ascending).\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic listBridgeAssets({ bridgeName, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IListBridgeAssetsParams, options?: IKvHttpRequestOptions): Observable<AssetListPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<AssetListPaginated>(`/bridges/${encodeURIComponent(String(bridgeName))}/assets/list`, requestConfig, AssetListPaginated);\n\t}\n\n\t/**\n\t * List Bridge Data Streams\n\t * List Bridge Data Streams Returns a list of all the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> // <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pairs that have been deployed with the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a>. The specific connection details for each Kelvin Asset / Kelvin Metric pair are also returned in a payload. The payload structure will depend on the type of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a>. There are four types; OPC UA, MQTT, Modbus and ROC. You can apply a number of filters to the return list. **Pagination Sortable Columns:** `bridge_metric_asset.asset_name`, `bridge_metric_asset.metric_name` **Permission Required:** `kelvin.permission.bridge.read`\n\t * @param bridgeName <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> name to retrieve the data stream objects.</p> This is the unique identifier name and not the display name (title) of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a>.</p> This must contain only lowercase alphanumeric characters. The `.`, `_` and `-` characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.\n\t * @param assetName Filter the data stream objects of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridges</a> which contain specific <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> names.\n\t * @param metricName Filter the data stream objects of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridges</a> which contain specific <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> names.\n\t * @param pageSize Number of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> objects to be returned. Page size can be between 1 and 1000 objects.</p> The default is 20 <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> objects.\n\t * @param startingAfter An alphanumeric string to move to the next page of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> in the list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response parameter under pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> next_page alphanumeric string should be used here to show a list of the next page of results.\n\t * @param endingBefore An alphanumeric string to move to the previous page of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> in the list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response parameter under pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> previous_page alphanumeric string should be used here to show a list of the previous page of results.\n\t * @param sortBy Sort the results by one of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> parameters. Only one parameter can be selected.</p> There are two parameter options; `bridge_metric_asset.asset_name`, `bridge_metric_asset.metric_name`.</p> The default is `bridge_metric_asset.asset_name`\n\t * @param sortAsc Sorting order for the results according to the `sort_by` parameter.</p> There are two options; `true` (ascending order) and `false` (descending order).</p> The default is `true` (ascending).\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic listBridgeDataStreams({ bridgeName, assetName, metricName, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IListBridgeDataStreamsParams, options?: IKvHttpRequestOptions): Observable<BridgeDataStreamListPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (assetName != null) {\n\t\t\tqueryParameters['asset_name'] = assetName;\n\t\t}\n\n\t\tif (metricName != null) {\n\t\t\tqueryParameters['metric_name'] = metricName;\n\t\t}\n\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<BridgeDataStreamListPaginated>(`/bridges/${encodeURIComponent(String(bridgeName))}/datastreams/list`, requestConfig, BridgeDataStreamListPaginated);\n\t}\n\n\t/**\n\t * List Bridge Metrics\n\t * List Bridge Metrics Returns a dictionary with a data property containing a list of all <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metrics</a> on the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a>. **Pagination Sortable Columns:** `metric.name`, `metric.title`, `metric.created`, `metric.updated`, `metric.data_type_name` **Permission Required:** `kelvin.permission.bridge.read`\n\t * @param bridgeName Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a>.</p> This must contain only lowercase alphanumeric characters. The `.`, `_` and `-` characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.\n\t * @param pageSize Number of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> objects to be returned. Page size can be between 1 and 1000 objects.</p> The default is 20 <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> objects.\n\t * @param startingAfter An alphanumeric string to move to the next page of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metrics</a> in the list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> next_page alphanumeric string should be used here to show a list of the next page of results.\n\t * @param endingBefore An alphanumeric string to move to the previous page of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metrics</a> in the list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> previous_page alphanumeric string should be used here to show a list of the previous page of results.\n\t * @param sortBy Sort the results by one of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> parameters. Only one parameter can be selected.</p> There are ten parameter options; `metric.name`, `metric.title`, `metric.created`, `metric.updated` and `metric.data_type_name`.</p> The default is `metric.name`\n\t * @param sortAsc Sorting order for the results according to the `sort_by` parameter.</p> There are two options; `true` (ascending order) and `false` (descending order).</p> The default is `true` (ascending).\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic listBridgeMetrics({ bridgeName, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IListBridgeMetricsParams, options?: IKvHttpRequestOptions): Observable<MetricListPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<MetricListPaginated>(`/bridges/${encodeURIComponent(String(bridgeName))}/metrics/list`, requestConfig, MetricListPaginated);\n\t}\n\n\t/**\n\t * List MQTT Topics\n\t * List MQTT Topics Returns a dictionary with a data property containing a list of the MQTT topic payload options available on the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a>. The MQTT topic payload definitions defines how <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridges</a> which are using the `mqtt` protocol will interpret incoming messages on a topic. **Sortable Columns:** `bridge_mqtt_topic.name`, `bridge_mqtt_topic.title`, `bridge_mqtt_topic.topic`, `bridge_mqtt_topic.created`, `bridge_mqtt_topic.updated` **Permission Required:** `kelvin.permission.bridge.read`\n\t * @param names Filter on the MQTT Topics by its name.</p> The filter is done on the full name only according to unique identifier name rules (Must contain only lowercase alphanumeric characters. The `.`, `_` and `-` characters are also allowed to separate words instead of a space but not at the beginning or end).</p> For example a filter with `topic-one` will return MQTT topics with the name `topic-one` but not with the names `topic-one-extended` or `topic`.\n\t * @param search Search and filter the MQTT Topic list. The Display Name, the Name and the Topic will be included in the search field criteria. This is given as an array, for example `[one,two]`.</p> The search is case insensitive and will find partial matches as well. For example if a MQTT TOpic name, display name or topic is `topic-one`, then a match will be made if the search string is `one` or `oPic`.\n\t * @param sortBy Sort the results by one of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> parameters. Only one parameter can be selected.</p> There are five parameter options; `bridge_mqtt_topic.name`, `bridge_mqtt_topic.title`, `bridge_mqtt_topic.topic`, `bridge_mqtt_topic.created`, `bridge_mqtt_topic.updated`.</p> The default is `bridge_mqtt_topic.name`\n\t * @param sortAsc Sorting order for the results according to the `sort_by` parameter.</p> There are two options; `true` (ascending order) and `false` (descending order).</p> The default is `true` (ascending).\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic listMQTTTopics({ names, search, sortBy, sortAsc }: IListMQTTTopicsParams = {}, options?: IKvHttpRequestOptions): Observable<MQTTTopicList> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (names != null) {\n\t\t\tqueryParameters['names'] = names;\n\t\t}\n\n\t\tif (search != null) {\n\t\t\tqueryParameters['search'] = search;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<MQTTTopicList>(`/bridges/protocols/mqtt/configuration/list`, requestConfig, MQTTTopicList);\n\t}\n\n\t/**\n\t * Start Bridge\n\t * Start Bridge application Start a <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a>. The <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> must already be deployed to a <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-nodes/' target='_blank'>Kelvin Node</a>. **Permission Required:** `kelvin.permission.bridge.update`\n\t * @param bridgeName Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a>.</p> This must contain only lowercase alphanumeric characters. The `.`, `_` and `-` characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic startBridge({ bridgeName }: IStartBridgeParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/bridges/${encodeURIComponent(String(bridgeName))}/start`, requestConfig);\n\t}\n\n\t/**\n\t * Stop Bridge\n\t * Stop Bridge application Stop a <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a>. The <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> must already be deployed to a <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-nodes/' target='_blank'>Kelvin Node</a>. **Permission Required:** `kelvin.permission.bridge.update`\n\t * @param bridgeName Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a>.</p> This must contain only lowercase alphanumeric characters. The `.`, `_` and `-` characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic stopBridge({ bridgeName }: IStopBridgeParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/bridges/${encodeURIComponent(String(bridgeName))}/stop`, requestConfig);\n\t}\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { IKvHttpRequestOptions, IKvHttpResponse } from '../../../core/http';
|
|
3
|
-
import { ControlChange, ControlChangeGet, ControlChangeGetPaginated, ControlChangePaginated } from '../../../models';
|
|
3
|
+
import { ControlChange, ControlChangeClustering, ControlChangeGet, ControlChangeGetPaginated, ControlChangePaginated } from '../../../models';
|
|
4
4
|
import { BaseService } from '../../base.service';
|
|
5
|
-
import { ICreateControlChangeParams, IDownloadControlChangeParams, IGetControlChangeParams, IGetLastControlChangeParams, IGetRangeControlChangeParams, IListControlChangeParams, IUploadControlChangeParams } from '../types';
|
|
5
|
+
import { ICreateControlChangeParams, IDownloadControlChangeParams, IGetControlChangeClusteringParams, IGetControlChangeParams, IGetLastControlChangeParams, IGetRangeControlChangeParams, IListControlChangeParams, IUploadControlChangeParams } from '../types';
|
|
6
6
|
/**
|
|
7
7
|
* @category Service
|
|
8
8
|
*/
|
|
@@ -33,6 +33,13 @@ export declare class ControlChangeService extends BaseService {
|
|
|
33
33
|
* @param {IKvHttpRequestOptions} options Request optional parameters
|
|
34
34
|
*/
|
|
35
35
|
static getControlChange({ controlChangeId }: IGetControlChangeParams, options?: IKvHttpRequestOptions): Observable<ControlChangeGet>;
|
|
36
|
+
/**
|
|
37
|
+
* Get Control Change Clustering
|
|
38
|
+
* Get Control Change Clustering **Permission Required:** `kelvin.permission.control_change.read`
|
|
39
|
+
* @param controlChangeClustering Control Change Clustering schema
|
|
40
|
+
* @param {IKvHttpRequestOptions} options Request optional parameters
|
|
41
|
+
*/
|
|
42
|
+
static getControlChangeClustering({ controlChangeClustering }: IGetControlChangeClusteringParams, options?: IKvHttpRequestOptions): Observable<ControlChangeClustering[]>;
|
|
36
43
|
/**
|
|
37
44
|
* Get Last Control Change
|
|
38
45
|
* Get Last Control Change Returns a list of the last <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> for each <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Asset</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics' target='_blank'>Kelvin Metric</a> pairs for each of the body parameters in the array `asset_names`. The list will include <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Changes</a> that succeeded, failed or are pending. Each object will not only give the `status` and `payload` of the last <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> but also the `status_log` containing the information of when the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> was created, sent to bridge and confirmed with a read. **Pagination Sortable Columns:** `control_change.id`, `control_change.asset_name`, `control_change.metric_name`, `control_change.last_state`, `control_change.created`, `control_change.updated`, `control_change.timestamp` **Permission Required:** `kelvin.permission.control_change.read`
|
|
@@ -72,6 +72,21 @@ class ControlChangeService extends base_service_1.BaseService {
|
|
|
72
72
|
requestConfig.options = options;
|
|
73
73
|
return this.request(`/control-changes/${encodeURIComponent(String(controlChangeId))}/get`, requestConfig, models_1.ControlChangeGet);
|
|
74
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Get Control Change Clustering
|
|
77
|
+
* Get Control Change Clustering **Permission Required:** `kelvin.permission.control_change.read`
|
|
78
|
+
* @param controlChangeClustering Control Change Clustering schema
|
|
79
|
+
* @param {IKvHttpRequestOptions} options Request optional parameters
|
|
80
|
+
*/
|
|
81
|
+
static getControlChangeClustering({ controlChangeClustering }, options) {
|
|
82
|
+
const requestConfig = {
|
|
83
|
+
method: 'post'
|
|
84
|
+
};
|
|
85
|
+
requestConfig.data = controlChangeClustering;
|
|
86
|
+
requestConfig.mediaType = 'application/json';
|
|
87
|
+
requestConfig.options = options;
|
|
88
|
+
return this.request(`/control-changes/clustering/get`, requestConfig, models_1.ControlChangeClustering);
|
|
89
|
+
}
|
|
75
90
|
/**
|
|
76
91
|
* Get Last Control Change
|
|
77
92
|
* Get Last Control Change Returns a list of the last <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> for each <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Asset</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics' target='_blank'>Kelvin Metric</a> pairs for each of the body parameters in the array `asset_names`. The list will include <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Changes</a> that succeeded, failed or are pending. Each object will not only give the `status` and `payload` of the last <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> but also the `status_log` containing the information of when the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> was created, sent to bridge and confirmed with a read. **Pagination Sortable Columns:** `control_change.id`, `control_change.asset_name`, `control_change.metric_name`, `control_change.last_state`, `control_change.created`, `control_change.updated`, `control_change.timestamp` **Permission Required:** `kelvin.permission.control_change.read`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controlChange.service.js","sourceRoot":"","sources":["../../../../../src/services/generated/api/controlChange.service.ts"],"names":[],"mappings":";;;AAEA,4CAAqH;AACrH,qDAAiD;AAWjD;;GAEG;AAEH,MAAa,oBAAqB,SAAQ,0BAAW;IAEpD;;;;;OAKG;IAEH,MAAM,CAAC,mBAAmB,CAAC,EAAE,aAAa,EAA8B,EAAE,OAA+B;QAExG,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QACF,aAAa,CAAC,IAAI,GAAG,aAAa,CAAC;QAEnC,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAgB,yBAAyB,EAAE,aAAa,EAAE,sBAAa,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;OAUG;IAEH,MAAM,CAAC,qBAAqB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,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e,CAAC,eAAe,CAAC,GAAG,YAAY,CAAC;SAChD;QAED,IAAI,MAAM,IAAI,IAAI,EAAE;YACnB,eAAe,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC;SACpC;QAED,IAAI,OAAO,IAAI,IAAI,EAAE;YACpB,eAAe,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC;SACtC;QAED,aAAa,CAAC,MAAM,GAAG,eAAe,CAAC;QACvC,aAAa,CAAC,IAAI,GAAG,iBAAiB,CAAC;QAEvC,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAA4B,uBAAuB,EAAE,aAAa,EAAE,kCAAyB,CAAC,CAAC;IACnH,CAAC;IAED;;;;;;OAMG;IAEH,MAAM,CAAC,mBAAmB,CAAC,EAAE,IAAI,EAAE,aAAa,EAA8B,EAAE,OAA+B;QAE9G,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QACF,aAAa,CAAC,IAAI,GAAG,aAAa,CAAC;QAEnC,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAkB,yBAAyB,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IACzH,CAAC;CACD;AA5PD,oDA4PC","sourcesContent":["import { Observable } from 'rxjs';\nimport { EKvHttpMethod, IKvHttpRequest, IKvHttpRequestOptions, IKvHttpResponse } from '../../../core/http';\nimport { ControlChange, ControlChangeGet, ControlChangeGetPaginated, ControlChangePaginated } from '../../../models';\nimport { BaseService } from '../../base.service';\nimport {\n\tICreateControlChangeParams,\n\tIDownloadControlChangeParams,\n\tIGetControlChangeParams,\n\tIGetLastControlChangeParams,\n\tIGetRangeControlChangeParams,\n\tIListControlChangeParams,\n\tIUploadControlChangeParams\n} from '../types';\n\n/**\n * @category Service\n */\n\nexport class ControlChangeService extends BaseService {\n\n\t/**\n\t * Create Control Change\n\t * Create Control Change Send a new value to be written to a <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Asset</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics' target='_blank'>Kelvin Metric</a> pair. The <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> Manager will automatically find which <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-nodes/' target='_blank'>Kelvin Node</a> hosts the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> with the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Asset</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics' target='_blank'>Kelvin Metric</a> pair. **Permission Required:** `kelvin.permission.control_change.create`\n\t * @param controlChange Control change create schema\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic createControlChange({ controlChange }: ICreateControlChangeParams, options?: IKvHttpRequestOptions): Observable<ControlChange> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = controlChange;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<ControlChange>(`/control-changes/create`, requestConfig, ControlChange);\n\t}\n\n\t/**\n\t * Download Control Change\n\t * Download Control Change This is required only for internal <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> management. It will download all control changes on the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a> tagged as `pending` to the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-nodes/' target='_blank'>Kelvin Node</a>. **Pagination Sortable Columns:** `control_change.id`, `control_change.asset_name`, `control_change.metric_name`, `control_change.last_state`, `control_change.created`, `control_change.updated`, `control_change.timestamp` **Permission Required:** `kelvin.permission.control_change.read`\n\t * @param node Name of an existing <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-nodes/' target='_blank'>Kelvin Node</a> to check for <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> objects tagged as `pending` on the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a> and initiate download to this <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-nodes/' target='_blank'>Kelvin Node</a>.</p> This must contain only lowercase alphanumeric characters. The `.`, `_` and `-` characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.\n\t * @param pageSize Number of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> request objects to be returned. Page size can be between 1 and 1000 objects.</p> The default is 20 Kelvin Asset Statistic objects.\n\t * @param startingAfter An alphanumeric string to move to the next page of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> requests in the list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> next_page alphanumeric string should be used here to show a list of the next page of results.\n\t * @param endingBefore An alphanumeric string to move to the previous page of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> requests in the list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> previous_page alphanumeric string should be used here to show a list of the previous page of results.\n\t * @param sortBy Sort the results by one of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Asset</a> parameters. Only one parameter can be selected.</p> There are sevens parameter options; `control_change.id`, `control_change.asset_name`, `control_change.metric_name`, `control_change.last_state`, `control_change.created`, `control_change.updated`, `control_change.timestamp`.</p> The default is `control_change.id`\n\t * @param sortAsc Sorting order for the results according to the `sort_by` parameter.</p> There are two options; `true` (ascending order) and `false` (descending order).</p> The default is `true` (ascending).\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic downloadControlChange({ node, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IDownloadControlChangeParams, options?: IKvHttpRequestOptions): Observable<ControlChangePaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<ControlChangePaginated>(`/control-changes/sync/${encodeURIComponent(String(node))}/download`, requestConfig, ControlChangePaginated);\n\t}\n\n\t/**\n\t * Get Control Change\n\t * Get Control Change Returns the properties of a single <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> request via its unique ID. Returned object will not only give the `status` and `payload` of the last <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> but also the `status_log` containing the information of when the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> was created, sent to bridge and confirmed with a read. **Permission Required:** `kelvin.permission.control_change.read`\n\t * @param controlChangeId Unique identifier id for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a>.</p> This must contain only lowercase alphanumeric characters and the `-` character only. For example `764168a8-0e1e-33aa-adc7-14dfbb78dfad`\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getControlChange({ controlChangeId }: IGetControlChangeParams, options?: IKvHttpRequestOptions): Observable<ControlChangeGet> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<ControlChangeGet>(`/control-changes/${encodeURIComponent(String(controlChangeId))}/get`, requestConfig, ControlChangeGet);\n\t}\n\n\t/**\n\t * Get Last Control Change\n\t * Get Last Control Change Returns a list of the last <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> for each <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Asset</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics' target='_blank'>Kelvin Metric</a> pairs for each of the body parameters in the array `asset_names`. The list will include <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Changes</a> that succeeded, failed or are pending. Each object will not only give the `status` and `payload` of the last <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> but also the `status_log` containing the information of when the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> was created, sent to bridge and confirmed with a read. **Pagination Sortable Columns:** `control_change.id`, `control_change.asset_name`, `control_change.metric_name`, `control_change.last_state`, `control_change.created`, `control_change.updated`, `control_change.timestamp` **Permission Required:** `kelvin.permission.control_change.read`\n\t * @param controlChangeLast Last control change schema\n\t * @param pageSize Number of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> objects to be returned. Page size can be between 1 and 1000 objects.</p> The default is 20 Kelvin Asset Statistic objects.\n\t * @param startingAfter An alphanumeric string to move to the next page of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> next_page alphanumeric string should be used here to show a list of the next page of results.\n\t * @param endingBefore An alphanumeric string to move to the previous page of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> previous_page alphanumeric string should be used here to show a list of the previous page of results.\n\t * @param sortBy Sort the results by one of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> parameters. Only one parameter can be selected.</p> There are seven parameter options; `control_change.id`, `control_change.asset_name`, `control_change.metric_name`, `control_change.last_state`, `control_change.created`, `control_change.updated` and `control_change.timestamp`.</p> The default is `control_change.id`\n\t * @param sortAsc Sorting order for the results according to the `sort_by` parameter.</p> There are two options; `true` (ascending order) and `false` (descending order).</p> The default is `true` (ascending).\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getLastControlChange({ controlChangeLast, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IGetLastControlChangeParams, options?: IKvHttpRequestOptions): Observable<ControlChangeGetPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\t\trequestConfig.data = controlChangeLast;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<ControlChangeGetPaginated>(`/control-changes/last/get`, requestConfig, ControlChangeGetPaginated);\n\t}\n\n\t/**\n\t * Get Range Control Change\n\t * Get Range Control Change. Returns a list of the history of all <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> status changes that have happened within a date range for each <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Asset</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics' target='_blank'>Kelvin Metric</a> pairs for each of the body parameters in the array `asset_names`. **Pagination Sortable Columns:** `control_change.id`, `control_change.asset_name`, `control_change.metric_name`, `control_change.last_state`, `control_change.created`, `control_change.updated`, `control_change.timestamp` **Permission Required:** `kelvin.permission.control_change.read`\n\t * @param controlChangeRange Control change range schema\n\t * @param pageSize Number of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> objects to be returned. Page size can be between 1 and 1000 objects.</p> The default is 20 Kelvin Asset Statistic objects.\n\t * @param startingAfter An alphanumeric string to move to the next page of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> next_page alphanumeric string should be used here to show a list of the next page of results.\n\t * @param endingBefore An alphanumeric string to move to the previous page of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> previous_page alphanumeric string should be used here to show a list of the previous page of results.\n\t * @param sortBy Sort the results by one of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> parameters. Only one parameter can be selected.</p> There are seven parameter options; `control_change.id`, `control_change.asset_name`, `control_change.metric_name`, `control_change.last_state`, `control_change.created`, `control_change.updated` and `control_change.timestamp`.</p> The default is `control_change.id`.\n\t * @param sortAsc Sorting order for the results according to the `sort_by` parameter.</p> There are two options; `true` (ascending order) and `false` (descending order).</p> The default is `true` (ascending).\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getRangeControlChange({ controlChangeRange, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IGetRangeControlChangeParams, options?: IKvHttpRequestOptions): Observable<ControlChangeGetPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\t\trequestConfig.data = controlChangeRange;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<ControlChangeGetPaginated>(`/control-changes/range/get`, requestConfig, ControlChangeGetPaginated);\n\t}\n\n\t/**\n\t * List Control Change\n\t * List Control Change lists the Control Changes for each asset metric. Returns a list of the history of all <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> requests for each <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Asset</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics' target='_blank'>Kelvin Metric</a> pairs for each of the body parameters in the array `asset_names`. **Pagination Sortable Columns:** `control_change.id`, `control_change.asset_name`, `control_change.metric_name`, `control_change.last_state`, `control_change.created`, `control_change.updated`, `control_change.timestamp` **Permission Required:** `kelvin.permission.control_change.read`\n\t * @param controlChangeList Control change list schema\n\t * @param pageSize Number of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> objects to be returned. Page size can be between 1 and 1000 objects.</p> The default is 20 Kelvin Asset Statistic objects.\n\t * @param startingAfter An alphanumeric string to move to the next page of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> next_page alphanumeric string should be used here to show a list of the next page of results.\n\t * @param endingBefore An alphanumeric string to move to the previous page of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> previous_page alphanumeric string should be used here to show a list of the previous page of results.\n\t * @param sortBy Sort the results by one of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> parameters. Only one parameter can be selected.</p> There are seven parameter options; `control_change.id`, `control_change.asset_name`, `control_change.metric_name`, `control_change.last_state`, `control_change.created`, `control_change.updated` and `control_change.timestamp`.</p> The default is `control_change.id`.\n\t * @param sortAsc Sorting order for the results according to the `sort_by` parameter.</p> There are two options; `true` (ascending order) and `false` (descending order).</p> The default is `true` (ascending).\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic listControlChange({ controlChangeList, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IListControlChangeParams, options?: IKvHttpRequestOptions): Observable<ControlChangeGetPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\t\trequestConfig.data = controlChangeList;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<ControlChangeGetPaginated>(`/control-changes/list`, requestConfig, ControlChangeGetPaginated);\n\t}\n\n\t/**\n\t * Upload Control Change\n\t * Upload Control Change This is required only for internal <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> management. It will update the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a> with the current status of all <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> requests on a <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-nodes/' target='_blank'>Kelvin Node</a>. **Permission Required:** `kelvin.permission.control_change.create`\n\t * @param node Name of an existing <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-nodes/' target='_blank'>Kelvin Node</a> to check <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> statuses and initiate upload (synchronize) to the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a>.</p> This must contain only lowercase alphanumeric characters. The `.`, `_` and `-` characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.\n\t * @param controlChange Control change upload schema\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic uploadControlChange({ node, controlChange }: IUploadControlChangeParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = controlChange;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/control-changes/sync/${encodeURIComponent(String(node))}/upload`, requestConfig);\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"controlChange.service.js","sourceRoot":"","sources":["../../../../../src/services/generated/api/controlChange.service.ts"],"names":[],"mappings":";;;AAEA,4CAA8I;AAC9I,qDAAiD;AASjD;;GAEG;AAEH,MAAa,oBAAqB,SAAQ,0BAAW;IAEpD;;;;;OAKG;IAEH,MAAM,CAAC,mBAAmB,CAAC,EAAE,aAAa,EAA8B,EAAE,OAA+B;QAExG,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QACF,aAAa,CAAC,IAAI,GAAG,aAAa,CAAC;QAEnC,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAgB,yBAAyB,EAAE,aAAa,EAAE,sBAAa,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;OAUG;IAEH,MAAM,CAAC,qBAAqB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,OAAO,EAAgC,EAAE,OAA+B;QAE3J,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,KAAsB;SAC9B,CAAC;QAEF,MAAM,eAAe,GAAG,EAAE,CAAC;QAC3B,IAAI,QAAQ,IAAI,IAAI,EAAE;YACrB,eAAe,CAAC,WAAW,CAAC,GAAG,QAAQ,CAAC;SACxC;QAED,IAAI,aAAa,IAAI,IAAI,EAAE;YAC1B,eAAe,CAAC,gBAAgB,CAAC,GAAG,aAAa,CAAC;SAClD;QAED,IAAI,YAAY,IAAI,IAAI,EAAE;YACzB,eAAe,CAAC,eAAe,CAAC,GAAG,YAAY,CAAC;SAChD;QAED,IAAI,MAAM,IAAI,IAAI,EAAE;YACnB,eAAe,CAAC,SAAS,CAAC,GAA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AAG,MAAM,CAAC;SACpC;QAED,IAAI,OAAO,IAAI,IAAI,EAAE;YACpB,eAAe,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC;SACtC;QAED,aAAa,CAAC,MAAM,GAAG,eAAe,CAAC;QACvC,aAAa,CAAC,IAAI,GAAG,iBAAiB,CAAC;QAEvC,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAA4B,uBAAuB,EAAE,aAAa,EAAE,kCAAyB,CAAC,CAAC;IACnH,CAAC;IAED;;;;;;OAMG;IAEH,MAAM,CAAC,mBAAmB,CAAC,EAAE,IAAI,EAAE,aAAa,EAA8B,EAAE,OAA+B;QAE9G,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QACF,aAAa,CAAC,IAAI,GAAG,aAAa,CAAC;QAEnC,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAkB,yBAAyB,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IACzH,CAAC;CACD;AAhRD,oDAgRC","sourcesContent":["import { Observable } from 'rxjs';\nimport { EKvHttpMethod, IKvHttpRequest, IKvHttpRequestOptions, IKvHttpResponse } from '../../../core/http';\nimport { ControlChange, ControlChangeClustering, ControlChangeGet, ControlChangeGetPaginated, ControlChangePaginated } from '../../../models';\nimport { BaseService } from '../../base.service';\nimport {\n\tICreateControlChangeParams,\n\tIDownloadControlChangeParams, IGetControlChangeClusteringParams, IGetControlChangeParams, IGetLastControlChangeParams,\n\tIGetRangeControlChangeParams,\n\tIListControlChangeParams,\n\tIUploadControlChangeParams\n} from '../types';\n\n/**\n * @category Service\n */\n\nexport class ControlChangeService extends BaseService {\n\n\t/**\n\t * Create Control Change\n\t * Create Control Change Send a new value to be written to a <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Asset</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics' target='_blank'>Kelvin Metric</a> pair. The <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> Manager will automatically find which <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-nodes/' target='_blank'>Kelvin Node</a> hosts the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> with the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Asset</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics' target='_blank'>Kelvin Metric</a> pair. **Permission Required:** `kelvin.permission.control_change.create`\n\t * @param controlChange Control change create schema\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic createControlChange({ controlChange }: ICreateControlChangeParams, options?: IKvHttpRequestOptions): Observable<ControlChange> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = controlChange;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<ControlChange>(`/control-changes/create`, requestConfig, ControlChange);\n\t}\n\n\t/**\n\t * Download Control Change\n\t * Download Control Change This is required only for internal <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> management. It will download all control changes on the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a> tagged as `pending` to the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-nodes/' target='_blank'>Kelvin Node</a>. **Pagination Sortable Columns:** `control_change.id`, `control_change.asset_name`, `control_change.metric_name`, `control_change.last_state`, `control_change.created`, `control_change.updated`, `control_change.timestamp` **Permission Required:** `kelvin.permission.control_change.read`\n\t * @param node Name of an existing <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-nodes/' target='_blank'>Kelvin Node</a> to check for <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> objects tagged as `pending` on the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a> and initiate download to this <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-nodes/' target='_blank'>Kelvin Node</a>.</p> This must contain only lowercase alphanumeric characters. The `.`, `_` and `-` characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.\n\t * @param pageSize Number of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> request objects to be returned. Page size can be between 1 and 1000 objects.</p> The default is 20 Kelvin Asset Statistic objects.\n\t * @param startingAfter An alphanumeric string to move to the next page of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> requests in the list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> next_page alphanumeric string should be used here to show a list of the next page of results.\n\t * @param endingBefore An alphanumeric string to move to the previous page of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> requests in the list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> previous_page alphanumeric string should be used here to show a list of the previous page of results.\n\t * @param sortBy Sort the results by one of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Asset</a> parameters. Only one parameter can be selected.</p> There are sevens parameter options; `control_change.id`, `control_change.asset_name`, `control_change.metric_name`, `control_change.last_state`, `control_change.created`, `control_change.updated`, `control_change.timestamp`.</p> The default is `control_change.id`\n\t * @param sortAsc Sorting order for the results according to the `sort_by` parameter.</p> There are two options; `true` (ascending order) and `false` (descending order).</p> The default is `true` (ascending).\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic downloadControlChange({ node, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IDownloadControlChangeParams, options?: IKvHttpRequestOptions): Observable<ControlChangePaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<ControlChangePaginated>(`/control-changes/sync/${encodeURIComponent(String(node))}/download`, requestConfig, ControlChangePaginated);\n\t}\n\n\t/**\n\t * Get Control Change\n\t * Get Control Change Returns the properties of a single <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> request via its unique ID. Returned object will not only give the `status` and `payload` of the last <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> but also the `status_log` containing the information of when the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> was created, sent to bridge and confirmed with a read. **Permission Required:** `kelvin.permission.control_change.read`\n\t * @param controlChangeId Unique identifier id for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a>.</p> This must contain only lowercase alphanumeric characters and the `-` character only. For example `764168a8-0e1e-33aa-adc7-14dfbb78dfad`\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getControlChange({ controlChangeId }: IGetControlChangeParams, options?: IKvHttpRequestOptions): Observable<ControlChangeGet> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<ControlChangeGet>(`/control-changes/${encodeURIComponent(String(controlChangeId))}/get`, requestConfig, ControlChangeGet);\n\t}\n\n\t/**\n\t * Get Control Change Clustering\n\t * Get Control Change Clustering **Permission Required:** `kelvin.permission.control_change.read`\n\t * @param controlChangeClustering Control Change Clustering schema\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getControlChangeClustering({ controlChangeClustering }: IGetControlChangeClusteringParams, options?: IKvHttpRequestOptions): Observable<ControlChangeClustering[]> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = controlChangeClustering;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<ControlChangeClustering[]>(`/control-changes/clustering/get`, requestConfig, ControlChangeClustering);\n\t}\n\n\t/**\n\t * Get Last Control Change\n\t * Get Last Control Change Returns a list of the last <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> for each <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Asset</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics' target='_blank'>Kelvin Metric</a> pairs for each of the body parameters in the array `asset_names`. The list will include <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Changes</a> that succeeded, failed or are pending. Each object will not only give the `status` and `payload` of the last <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> but also the `status_log` containing the information of when the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> was created, sent to bridge and confirmed with a read. **Pagination Sortable Columns:** `control_change.id`, `control_change.asset_name`, `control_change.metric_name`, `control_change.last_state`, `control_change.created`, `control_change.updated`, `control_change.timestamp` **Permission Required:** `kelvin.permission.control_change.read`\n\t * @param controlChangeLast Last control change schema\n\t * @param pageSize Number of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> objects to be returned. Page size can be between 1 and 1000 objects.</p> The default is 20 Kelvin Asset Statistic objects.\n\t * @param startingAfter An alphanumeric string to move to the next page of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> next_page alphanumeric string should be used here to show a list of the next page of results.\n\t * @param endingBefore An alphanumeric string to move to the previous page of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> previous_page alphanumeric string should be used here to show a list of the previous page of results.\n\t * @param sortBy Sort the results by one of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> parameters. Only one parameter can be selected.</p> There are seven parameter options; `control_change.id`, `control_change.asset_name`, `control_change.metric_name`, `control_change.last_state`, `control_change.created`, `control_change.updated` and `control_change.timestamp`.</p> The default is `control_change.id`\n\t * @param sortAsc Sorting order for the results according to the `sort_by` parameter.</p> There are two options; `true` (ascending order) and `false` (descending order).</p> The default is `true` (ascending).\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getLastControlChange({ controlChangeLast, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IGetLastControlChangeParams, options?: IKvHttpRequestOptions): Observable<ControlChangeGetPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\t\trequestConfig.data = controlChangeLast;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<ControlChangeGetPaginated>(`/control-changes/last/get`, requestConfig, ControlChangeGetPaginated);\n\t}\n\n\t/**\n\t * Get Range Control Change\n\t * Get Range Control Change. Returns a list of the history of all <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> status changes that have happened within a date range for each <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Asset</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics' target='_blank'>Kelvin Metric</a> pairs for each of the body parameters in the array `asset_names`. **Pagination Sortable Columns:** `control_change.id`, `control_change.asset_name`, `control_change.metric_name`, `control_change.last_state`, `control_change.created`, `control_change.updated`, `control_change.timestamp` **Permission Required:** `kelvin.permission.control_change.read`\n\t * @param controlChangeRange Control change range schema\n\t * @param pageSize Number of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> objects to be returned. Page size can be between 1 and 1000 objects.</p> The default is 20 Kelvin Asset Statistic objects.\n\t * @param startingAfter An alphanumeric string to move to the next page of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> next_page alphanumeric string should be used here to show a list of the next page of results.\n\t * @param endingBefore An alphanumeric string to move to the previous page of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> previous_page alphanumeric string should be used here to show a list of the previous page of results.\n\t * @param sortBy Sort the results by one of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> parameters. Only one parameter can be selected.</p> There are seven parameter options; `control_change.id`, `control_change.asset_name`, `control_change.metric_name`, `control_change.last_state`, `control_change.created`, `control_change.updated` and `control_change.timestamp`.</p> The default is `control_change.id`.\n\t * @param sortAsc Sorting order for the results according to the `sort_by` parameter.</p> There are two options; `true` (ascending order) and `false` (descending order).</p> The default is `true` (ascending).\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getRangeControlChange({ controlChangeRange, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IGetRangeControlChangeParams, options?: IKvHttpRequestOptions): Observable<ControlChangeGetPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\t\trequestConfig.data = controlChangeRange;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<ControlChangeGetPaginated>(`/control-changes/range/get`, requestConfig, ControlChangeGetPaginated);\n\t}\n\n\t/**\n\t * List Control Change\n\t * List Control Change lists the Control Changes for each asset metric. Returns a list of the history of all <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> requests for each <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Asset</a> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics' target='_blank'>Kelvin Metric</a> pairs for each of the body parameters in the array `asset_names`. **Pagination Sortable Columns:** `control_change.id`, `control_change.asset_name`, `control_change.metric_name`, `control_change.last_state`, `control_change.created`, `control_change.updated`, `control_change.timestamp` **Permission Required:** `kelvin.permission.control_change.read`\n\t * @param controlChangeList Control change list schema\n\t * @param pageSize Number of <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> objects to be returned. Page size can be between 1 and 1000 objects.</p> The default is 20 Kelvin Asset Statistic objects.\n\t * @param startingAfter An alphanumeric string to move to the next page of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> next_page alphanumeric string should be used here to show a list of the next page of results.\n\t * @param endingBefore An alphanumeric string to move to the previous page of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> list.</p> The alphanumeric string which are the bookmarks for the beginning and end of the current list is given in the previous JSON response value under the key pagination -> previous_page and pagination -> next_page respectively.</p> The pagination -> previous_page alphanumeric string should be used here to show a list of the previous page of results.\n\t * @param sortBy Sort the results by one of the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> parameters. Only one parameter can be selected.</p> There are seven parameter options; `control_change.id`, `control_change.asset_name`, `control_change.metric_name`, `control_change.last_state`, `control_change.created`, `control_change.updated` and `control_change.timestamp`.</p> The default is `control_change.id`.\n\t * @param sortAsc Sorting order for the results according to the `sort_by` parameter.</p> There are two options; `true` (ascending order) and `false` (descending order).</p> The default is `true` (ascending).\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic listControlChange({ controlChangeList, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IListControlChangeParams, options?: IKvHttpRequestOptions): Observable<ControlChangeGetPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\t\trequestConfig.data = controlChangeList;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<ControlChangeGetPaginated>(`/control-changes/list`, requestConfig, ControlChangeGetPaginated);\n\t}\n\n\t/**\n\t * Upload Control Change\n\t * Upload Control Change This is required only for internal <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> management. It will update the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a> with the current status of all <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> requests on a <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-nodes/' target='_blank'>Kelvin Node</a>. **Permission Required:** `kelvin.permission.control_change.create`\n\t * @param node Name of an existing <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-nodes/' target='_blank'>Kelvin Node</a> to check <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-control-change/' target='_blank'>Kelvin Control Change</a> statuses and initiate upload (synchronize) to the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a>.</p> This must contain only lowercase alphanumeric characters. The `.`, `_` and `-` characters are also allowed to separate words instead of a space BUT can not be at the beginning or end of the name.\n\t * @param controlChange Control change upload schema\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic uploadControlChange({ node, controlChange }: IUploadControlChangeParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = controlChange;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/control-changes/sync/${encodeURIComponent(String(node))}/upload`, requestConfig);\n\t}\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { IKvHttpRequestOptions, IKvHttpResponse } from '../../../core/http';
|
|
3
|
-
import { AuditLogger, AuditLoggerListPaginated, InstanceHealthStatus, InstanceSettingItem, InstanceSettingListPaginated } from '../../../models';
|
|
3
|
+
import { AuditLogger, AuditLoggerListPaginated, CarbonEmissionsInstanceSettingItem, InstanceHealthStatus, InstanceSettingItem, InstanceSettingListPaginated } from '../../../models';
|
|
4
4
|
import { BaseService } from '../../base.service';
|
|
5
|
-
import { IDeleteInstanceSettingParams, IGetAuditLogParams, IGetInstanceSettingParams, IListAuditLogParams, IListInstanceSettingsParams, IUpdateInstanceSettingParams, IUpdateKelvinACPInstanceSettingParams } from '../types';
|
|
5
|
+
import { IDeleteInstanceSettingParams, IGetAuditLogParams, IGetInstanceSettingParams, IListAuditLogParams, IListInstanceSettingsParams, IUpdateInstanceSettingParams, IUpdateKelvinACPInstanceSettingParams, IUpdateKelvinCarbonEmissionsInstanceSettingParams } from '../types';
|
|
6
6
|
/**
|
|
7
7
|
* @category Service
|
|
8
8
|
*/
|
|
@@ -40,6 +40,12 @@ export declare class InstanceService extends BaseService {
|
|
|
40
40
|
* @param {IKvHttpRequestOptions} options Request optional parameters
|
|
41
41
|
*/
|
|
42
42
|
static getKelvinACPInstanceSetting(options?: IKvHttpRequestOptions): Observable<InstanceSettingItem>;
|
|
43
|
+
/**
|
|
44
|
+
* Get Kelvin Carbon Emissions Instance Setting
|
|
45
|
+
* Get Kelvin Carbon Emissions Instance Setting **Permission Required:** `kelvin.permission.instance.read`
|
|
46
|
+
* @param {IKvHttpRequestOptions} options Request optional parameters
|
|
47
|
+
*/
|
|
48
|
+
static getKelvinCarbonEmissionsInstanceSetting(options?: IKvHttpRequestOptions): Observable<CarbonEmissionsInstanceSettingItem>;
|
|
43
49
|
/**
|
|
44
50
|
* List Audit Log
|
|
45
51
|
* List Audit Log **Pagination Sortable Columns:** `audit_log.id`, `audit_log.action`, `audit_log.username`, `audit_log.created`, `request_uri` **Note:** Both `from_date_time` and `to_date_time` support RFC3339 format with microseconds **Permission Required:** `kelvin.permission.audit_log.read`
|
|
@@ -87,4 +93,12 @@ export declare class InstanceService extends BaseService {
|
|
|
87
93
|
* @param {IKvHttpRequestOptions} options Request optional parameters
|
|
88
94
|
*/
|
|
89
95
|
static updateKelvinACPInstanceSetting({ setting }: IUpdateKelvinACPInstanceSettingParams, options?: IKvHttpRequestOptions): Observable<InstanceSettingItem>;
|
|
96
|
+
/**
|
|
97
|
+
* Update Kelvin Carbon Emissions Instance Setting
|
|
98
|
+
* Update Kelvin Carbon Emissions Instance Setting **Permission Required:** `kelvin.permission.instance.update`
|
|
99
|
+
* @param setting Kelvin Carbon Emissions Instance Setting update schema
|
|
100
|
+
* @param reset Reset settings to the defaults. Default: false
|
|
101
|
+
* @param {IKvHttpRequestOptions} options Request optional parameters
|
|
102
|
+
*/
|
|
103
|
+
static updateKelvinCarbonEmissionsInstanceSetting({ setting, reset }: IUpdateKelvinCarbonEmissionsInstanceSettingParams, options?: IKvHttpRequestOptions): Observable<InstanceSettingItem>;
|
|
90
104
|
}
|
|
@@ -75,6 +75,19 @@ class InstanceService extends base_service_1.BaseService {
|
|
|
75
75
|
requestConfig.options = options;
|
|
76
76
|
return this.request(`/instance/settings/kelvin-acp/get`, requestConfig, models_1.InstanceSettingItem);
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Get Kelvin Carbon Emissions Instance Setting
|
|
80
|
+
* Get Kelvin Carbon Emissions Instance Setting **Permission Required:** `kelvin.permission.instance.read`
|
|
81
|
+
* @param {IKvHttpRequestOptions} options Request optional parameters
|
|
82
|
+
*/
|
|
83
|
+
static getKelvinCarbonEmissionsInstanceSetting(options) {
|
|
84
|
+
const requestConfig = {
|
|
85
|
+
method: 'get'
|
|
86
|
+
};
|
|
87
|
+
requestConfig.mediaType = 'application/json';
|
|
88
|
+
requestConfig.options = options;
|
|
89
|
+
return this.request(`/instance/settings/kelvin-carbon-emissions/get`, requestConfig, models_1.CarbonEmissionsInstanceSettingItem);
|
|
90
|
+
}
|
|
78
91
|
/**
|
|
79
92
|
* List Audit Log
|
|
80
93
|
* List Audit Log **Pagination Sortable Columns:** `audit_log.id`, `audit_log.action`, `audit_log.username`, `audit_log.created`, `request_uri` **Note:** Both `from_date_time` and `to_date_time` support RFC3339 format with microseconds **Permission Required:** `kelvin.permission.audit_log.read`
|
|
@@ -216,6 +229,27 @@ class InstanceService extends base_service_1.BaseService {
|
|
|
216
229
|
requestConfig.options = options;
|
|
217
230
|
return this.request(`/instance/settings/kelvin-acp/update`, requestConfig, models_1.InstanceSettingItem);
|
|
218
231
|
}
|
|
232
|
+
/**
|
|
233
|
+
* Update Kelvin Carbon Emissions Instance Setting
|
|
234
|
+
* Update Kelvin Carbon Emissions Instance Setting **Permission Required:** `kelvin.permission.instance.update`
|
|
235
|
+
* @param setting Kelvin Carbon Emissions Instance Setting update schema
|
|
236
|
+
* @param reset Reset settings to the defaults. Default: false
|
|
237
|
+
* @param {IKvHttpRequestOptions} options Request optional parameters
|
|
238
|
+
*/
|
|
239
|
+
static updateKelvinCarbonEmissionsInstanceSetting({ setting, reset }, options) {
|
|
240
|
+
const requestConfig = {
|
|
241
|
+
method: 'post'
|
|
242
|
+
};
|
|
243
|
+
const queryParameters = {};
|
|
244
|
+
if (reset != null) {
|
|
245
|
+
queryParameters['reset'] = reset;
|
|
246
|
+
}
|
|
247
|
+
requestConfig.params = queryParameters;
|
|
248
|
+
requestConfig.data = setting;
|
|
249
|
+
requestConfig.mediaType = 'application/json';
|
|
250
|
+
requestConfig.options = options;
|
|
251
|
+
return this.request(`/instance/settings/kelvin-carbon-emissions/update`, requestConfig, models_1.InstanceSettingItem);
|
|
252
|
+
}
|
|
219
253
|
}
|
|
220
254
|
exports.InstanceService = InstanceService;
|
|
221
255
|
//# sourceMappingURL=instance.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instance.service.js","sourceRoot":"","sources":["../../../../../src/services/generated/api/instance.service.ts"],"names":[],"mappings":";;;AAEA,4CAAiJ;AACjJ,qDAAiD;AAWjD;;GAEG;AAEH,MAAa,eAAgB,SAAQ,0BAAW;IAE/C;;;;;OAKG;IAEH,MAAM,CAAC,qBAAqB,CAAC,EAAE,WAAW,EAAgC,EAAE,OAA+B;QAE1G,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QAEF,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAkB,sBAAsB,kBAAkB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IAC7H,CAAC;IAED;;;;;OAKG;IAEH,MAAM,CAAC,WAAW,CAAC,EAAE,aAAa,EAAsB,EAAE,OAA+B;QAExF,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,KAAsB;SAC9B,CAAC;QAEF,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,I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KvHttpRequestOptions, IKvHttpResponse } from '../../../core/http';\nimport { AuditLogger, AuditLoggerListPaginated, InstanceHealthStatus, InstanceSettingItem, InstanceSettingListPaginated } from '../../../models';\nimport { BaseService } from '../../base.service';\nimport {\n\tIDeleteInstanceSettingParams,\n\tIGetAuditLogParams,\n\tIGetInstanceSettingParams,\n\tIListAuditLogParams,\n\tIListInstanceSettingsParams,\n\tIUpdateInstanceSettingParams,\n\tIUpdateKelvinACPInstanceSettingParams\n} from '../types';\n\n/**\n * @category Service\n */\n\nexport class InstanceService extends BaseService {\n\n\t/**\n\t * Delete Instance Setting\n\t * Delete Instance Setting **Permission Required:** `kelvin.permission.instance.delete`\n\t * @param settingName Setting Name\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic deleteInstanceSetting({ settingName }: IDeleteInstanceSettingParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/instance/settings/${encodeURIComponent(String(settingName))}/delete`, requestConfig);\n\t}\n\n\t/**\n\t * Get Audit Log\n\t * Get Audit Log **Permission Required:** `kelvin.permission.audit_log.read`\n\t * @param auditLoggerId Audit Logger ID\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getAuditLog({ auditLoggerId }: IGetAuditLogParams, options?: IKvHttpRequestOptions): Observable<AuditLogger> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<AuditLogger>(`/instance/auditlog/${encodeURIComponent(String(auditLoggerId))}/get`, requestConfig, AuditLogger);\n\t}\n\n\t/**\n\t * Get Instance Health Status\n\t * Get Instance Health Status **Permission Required:** `n/a`\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getInstanceHealthStatus(options?: IKvHttpRequestOptions): Observable<InstanceHealthStatus> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<InstanceHealthStatus>(`/instance/status/get`, requestConfig, InstanceHealthStatus);\n\t}\n\n\t/**\n\t * Get Instance Setting\n\t * Get Instance Setting **Permission Required:** `kelvin.permission.instance.read`\n\t * @param settingName Setting Name\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getInstanceSetting({ settingName }: IGetInstanceSettingParams, options?: IKvHttpRequestOptions): Observable<InstanceSettingItem> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<InstanceSettingItem>(`/instance/settings/${encodeURIComponent(String(settingName))}/get`, requestConfig, InstanceSettingItem);\n\t}\n\n\t/**\n\t * Get Kelvin ACP Instance Setting\n\t * Get Kelvin ACP Instance Setting **Permission Required:** `kelvin.permission.instance.read`\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getKelvinACPInstanceSetting(options?: IKvHttpRequestOptions): Observable<InstanceSettingItem> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<InstanceSettingItem>(`/instance/settings/kelvin-acp/get`, requestConfig, InstanceSettingItem);\n\t}\n\n\t/**\n\t * List Audit Log\n\t * List Audit Log **Pagination Sortable Columns:** `audit_log.id`, `audit_log.action`, `audit_log.username`, `audit_log.created`, `request_uri` **Note:** Both `from_date_time` and `to_date_time` support RFC3339 format with microseconds **Permission Required:** `kelvin.permission.audit_log.read`\n\t * @param action Filter by action\n\t * @param userId Filter by user_id\n\t * @param namespace Filter by namespace\n\t * @param identifier Filter by identifier\n\t * @param username Filter by username\n\t * @param requestId Filter by request_id\n\t * @param search Search Audit Log by action, username or namespace\n\t * @param fromDateTime Filter actions occurred at or after this date-time\n\t * @param toDateTime Filter actions occurred until or at this date-time\n\t * @param pageSize Number of objects to be returned, between 1 and 1000. Default: 20\n\t * @param startingAfter Lower bound cursor for use in pagination\n\t * @param endingBefore Upper bound cursor for use in pagination\n\t * @param sortBy Parameter to sort by. Must be one of the sortable columns\n\t * @param sortAsc Order of sorting is Ascending. Possible Values: true/false. Default: false\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic listAuditLog({ action, userId, namespace, identifier, username, requestId, search, fromDateTime, toDateTime, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IListAuditLogParams = {}, options?: IKvHttpRequestOptions): Observable<AuditLoggerListPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (action != null) {\n\t\t\tqueryParameters['action'] = action;\n\t\t}\n\n\t\tif (userId != null) {\n\t\t\tqueryParameters['user_id'] = userId;\n\t\t}\n\n\t\tif (namespace != null) {\n\t\t\tqueryParameters['namespace'] = namespace;\n\t\t}\n\n\t\tif (identifier != null) {\n\t\t\tqueryParameters['identifier'] = identifier;\n\t\t}\n\n\t\tif (username != null) {\n\t\t\tqueryParameters['username'] = username;\n\t\t}\n\n\t\tif (requestId != null) {\n\t\t\tqueryParameters['request_id'] = requestId;\n\t\t}\n\n\t\tif (search != null) {\n\t\t\tqueryParameters['search'] = search;\n\t\t}\n\n\t\tif (fromDateTime != null) {\n\t\t\tqueryParameters['from_date_time'] = fromDateTime.toISOString();\n\t\t}\n\n\t\tif (toDateTime != null) {\n\t\t\tqueryParameters['to_date_time'] = toDateTime.toISOString();\n\t\t}\n\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<AuditLoggerListPaginated>(`/instance/auditlog/list`, requestConfig, AuditLoggerListPaginated);\n\t}\n\n\t/**\n\t * List Instance Settings\n\t * List Instance Settings **Pagination Sortable Columns:** `instance_setting.name, instance_setting.created, instance_setting.updated` **Permission Required:** `kelvin.permission.instance.read`\n\t * @param search Search Instance Setting by name\n\t * @param pageSize Number of objects to be returned, between 1 and 1000. Default: 20\n\t * @param startingAfter Lower bound cursor for use in pagination\n\t * @param endingBefore Upper bound cursor for use in pagination\n\t * @param sortBy Parameter to sort by. Must be one of the sortable columns\n\t * @param sortAsc Order of sorting is Ascending. Possible Values: true/false. Default: true\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic listInstanceSettings({ search, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IListInstanceSettingsParams = {}, options?: IKvHttpRequestOptions): Observable<InstanceSettingListPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (search != null) {\n\t\t\tqueryParameters['search'] = search;\n\t\t}\n\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<InstanceSettingListPaginated>(`/instance/settings/list`, requestConfig, InstanceSettingListPaginated);\n\t}\n\n\t/**\n\t * Update Instance Setting\n\t * Update Instance Setting **Permission Required:** `kelvin.permission.instance.update`\n\t * @param setting Instance Setting update schema\n\t * @param settingName Setting Name\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic updateInstanceSetting({ setting, settingName }: IUpdateInstanceSettingParams, options?: IKvHttpRequestOptions): Observable<InstanceSettingItem> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = setting;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<InstanceSettingItem>(`/instance/settings/${encodeURIComponent(String(settingName))}/update`, requestConfig, InstanceSettingItem);\n\t}\n\n\t/**\n\t * Update Kelvin ACP Instance Setting\n\t * Update Kelvin ACP Instance Setting **Permission Required:** `kelvin.permission.instance.update`\n\t * @param setting Kelvin ACP Instance Setting update schema\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic updateKelvinACPInstanceSetting({ setting }: IUpdateKelvinACPInstanceSettingParams, options?: IKvHttpRequestOptions): Observable<InstanceSettingItem> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = setting;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<InstanceSettingItem>(`/instance/settings/kelvin-acp/update`, requestConfig, InstanceSettingItem);\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"instance.service.js","sourceRoot":"","sources":["../../../../../src/services/generated/api/instance.service.ts"],"names":[],"mappings":";;;AAEA,4CAAqL;AACrL,qDAAiD;AAYjD;;GAEG;AAEH,MAAa,eAAgB,SAAQ,0BAAW;IAE/C;;;;;OAKG;IAEH,MAAM,CAAC,qBAAqB,CAAC,EAAE,WAAW,EAAgC,EAAE,OAA+B;QAE1G,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QAEF,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAkB,sBAAsB,kBAAkB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IAC7H,CAAC;IAED;;;;;OAKG;IAEH,MAAM,CAAC,WAAW,CAAC,EAAE,aAAa,EAAsB,EAAE,OAA+B;QAExF,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,KAAsB;SAC9B,CAAC;QAEF,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAc,sBAAsB,kBAAkB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,MAAM,EAAE,aAAa,EAAE,oBAAW,CAAC,CAAC;IACrI,CAAC;IAED;;;;OAIG;IAEH,MAAM,CAAC,uBAAuB,CAAC,OAA+B;QAE7D,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,KAAsB;SAC9B,CAAC;QAEF,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,C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AM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QAEF,MAAM,eAAe,GAAG,EAAE,CAAC;QAC3B,IAAI,KAAK,IAAI,IAAI,EAAE;YAClB,eAAe,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;SACjC;QAED,aAAa,CAAC,MAAM,GAAG,eAAe,CAAC;QACvC,aAAa,CAAC,IAAI,GAAG,OAAO,CAAC;QAE7B,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAsB,mDAAmD,EAAE,aAAa,EAAE,4BAAmB,CAAC,CAAC;IACnI,CAAC;CACD;AAnUD,0CAmUC","sourcesContent":["import { Observable } from 'rxjs';\nimport { EKvHttpMethod, IKvHttpRequest, IKvHttpRequestOptions, IKvHttpResponse } from '../../../core/http';\nimport { AuditLogger, AuditLoggerListPaginated, CarbonEmissionsInstanceSettingItem, InstanceHealthStatus, InstanceSettingItem, InstanceSettingListPaginated } from '../../../models';\nimport { BaseService } from '../../base.service';\nimport {\n\tIDeleteInstanceSettingParams,\n\tIGetAuditLogParams,\n\tIGetInstanceSettingParams,\n\tIListAuditLogParams,\n\tIListInstanceSettingsParams,\n\tIUpdateInstanceSettingParams,\n\tIUpdateKelvinACPInstanceSettingParams,\n\tIUpdateKelvinCarbonEmissionsInstanceSettingParams\n} from '../types';\n\n/**\n * @category Service\n */\n\nexport class InstanceService extends BaseService {\n\n\t/**\n\t * Delete Instance Setting\n\t * Delete Instance Setting **Permission Required:** `kelvin.permission.instance.delete`\n\t * @param settingName Setting Name\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic deleteInstanceSetting({ settingName }: IDeleteInstanceSettingParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/instance/settings/${encodeURIComponent(String(settingName))}/delete`, requestConfig);\n\t}\n\n\t/**\n\t * Get Audit Log\n\t * Get Audit Log **Permission Required:** `kelvin.permission.audit_log.read`\n\t * @param auditLoggerId Audit Logger ID\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getAuditLog({ auditLoggerId }: IGetAuditLogParams, options?: IKvHttpRequestOptions): Observable<AuditLogger> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<AuditLogger>(`/instance/auditlog/${encodeURIComponent(String(auditLoggerId))}/get`, requestConfig, AuditLogger);\n\t}\n\n\t/**\n\t * Get Instance Health Status\n\t * Get Instance Health Status **Permission Required:** `n/a`\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getInstanceHealthStatus(options?: IKvHttpRequestOptions): Observable<InstanceHealthStatus> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<InstanceHealthStatus>(`/instance/status/get`, requestConfig, InstanceHealthStatus);\n\t}\n\n\t/**\n\t * Get Instance Setting\n\t * Get Instance Setting **Permission Required:** `kelvin.permission.instance.read`\n\t * @param settingName Setting Name\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getInstanceSetting({ settingName }: IGetInstanceSettingParams, options?: IKvHttpRequestOptions): Observable<InstanceSettingItem> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<InstanceSettingItem>(`/instance/settings/${encodeURIComponent(String(settingName))}/get`, requestConfig, InstanceSettingItem);\n\t}\n\n\t/**\n\t * Get Kelvin ACP Instance Setting\n\t * Get Kelvin ACP Instance Setting **Permission Required:** `kelvin.permission.instance.read`\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getKelvinACPInstanceSetting(options?: IKvHttpRequestOptions): Observable<InstanceSettingItem> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<InstanceSettingItem>(`/instance/settings/kelvin-acp/get`, requestConfig, InstanceSettingItem);\n\t}\n\n\t/**\n\t * Get Kelvin Carbon Emissions Instance Setting\n\t * Get Kelvin Carbon Emissions Instance Setting **Permission Required:** `kelvin.permission.instance.read`\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getKelvinCarbonEmissionsInstanceSetting(options?: IKvHttpRequestOptions): Observable<CarbonEmissionsInstanceSettingItem> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<CarbonEmissionsInstanceSettingItem>(`/instance/settings/kelvin-carbon-emissions/get`, requestConfig, CarbonEmissionsInstanceSettingItem);\n\t}\n\n\t/**\n\t * List Audit Log\n\t * List Audit Log **Pagination Sortable Columns:** `audit_log.id`, `audit_log.action`, `audit_log.username`, `audit_log.created`, `request_uri` **Note:** Both `from_date_time` and `to_date_time` support RFC3339 format with microseconds **Permission Required:** `kelvin.permission.audit_log.read`\n\t * @param action Filter by action\n\t * @param userId Filter by user_id\n\t * @param namespace Filter by namespace\n\t * @param identifier Filter by identifier\n\t * @param username Filter by username\n\t * @param requestId Filter by request_id\n\t * @param search Search Audit Log by action, username or namespace\n\t * @param fromDateTime Filter actions occurred at or after this date-time\n\t * @param toDateTime Filter actions occurred until or at this date-time\n\t * @param pageSize Number of objects to be returned, between 1 and 1000. Default: 20\n\t * @param startingAfter Lower bound cursor for use in pagination\n\t * @param endingBefore Upper bound cursor for use in pagination\n\t * @param sortBy Parameter to sort by. Must be one of the sortable columns\n\t * @param sortAsc Order of sorting is Ascending. Possible Values: true/false. Default: false\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic listAuditLog({ action, userId, namespace, identifier, username, requestId, search, fromDateTime, toDateTime, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IListAuditLogParams = {}, options?: IKvHttpRequestOptions): Observable<AuditLoggerListPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (action != null) {\n\t\t\tqueryParameters['action'] = action;\n\t\t}\n\n\t\tif (userId != null) {\n\t\t\tqueryParameters['user_id'] = userId;\n\t\t}\n\n\t\tif (namespace != null) {\n\t\t\tqueryParameters['namespace'] = namespace;\n\t\t}\n\n\t\tif (identifier != null) {\n\t\t\tqueryParameters['identifier'] = identifier;\n\t\t}\n\n\t\tif (username != null) {\n\t\t\tqueryParameters['username'] = username;\n\t\t}\n\n\t\tif (requestId != null) {\n\t\t\tqueryParameters['request_id'] = requestId;\n\t\t}\n\n\t\tif (search != null) {\n\t\t\tqueryParameters['search'] = search;\n\t\t}\n\n\t\tif (fromDateTime != null) {\n\t\t\tqueryParameters['from_date_time'] = fromDateTime.toISOString();\n\t\t}\n\n\t\tif (toDateTime != null) {\n\t\t\tqueryParameters['to_date_time'] = toDateTime.toISOString();\n\t\t}\n\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<AuditLoggerListPaginated>(`/instance/auditlog/list`, requestConfig, AuditLoggerListPaginated);\n\t}\n\n\t/**\n\t * List Instance Settings\n\t * List Instance Settings **Pagination Sortable Columns:** `instance_setting.name, instance_setting.created, instance_setting.updated` **Permission Required:** `kelvin.permission.instance.read`\n\t * @param search Search Instance Setting by name\n\t * @param pageSize Number of objects to be returned, between 1 and 1000. Default: 20\n\t * @param startingAfter Lower bound cursor for use in pagination\n\t * @param endingBefore Upper bound cursor for use in pagination\n\t * @param sortBy Parameter to sort by. Must be one of the sortable columns\n\t * @param sortAsc Order of sorting is Ascending. Possible Values: true/false. Default: true\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic listInstanceSettings({ search, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IListInstanceSettingsParams = {}, options?: IKvHttpRequestOptions): Observable<InstanceSettingListPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (search != null) {\n\t\t\tqueryParameters['search'] = search;\n\t\t}\n\n\t\tif (pageSize != null) {\n\t\t\tqueryParameters['page_size'] = pageSize;\n\t\t}\n\n\t\tif (startingAfter != null) {\n\t\t\tqueryParameters['starting_after'] = startingAfter;\n\t\t}\n\n\t\tif (endingBefore != null) {\n\t\t\tqueryParameters['ending_before'] = endingBefore;\n\t\t}\n\n\t\tif (sortBy != null) {\n\t\t\tqueryParameters['sort_by'] = sortBy;\n\t\t}\n\n\t\tif (sortAsc != null) {\n\t\t\tqueryParameters['sort_asc'] = sortAsc;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<InstanceSettingListPaginated>(`/instance/settings/list`, requestConfig, InstanceSettingListPaginated);\n\t}\n\n\t/**\n\t * Update Instance Setting\n\t * Update Instance Setting **Permission Required:** `kelvin.permission.instance.update`\n\t * @param setting Instance Setting update schema\n\t * @param settingName Setting Name\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic updateInstanceSetting({ setting, settingName }: IUpdateInstanceSettingParams, options?: IKvHttpRequestOptions): Observable<InstanceSettingItem> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = setting;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<InstanceSettingItem>(`/instance/settings/${encodeURIComponent(String(settingName))}/update`, requestConfig, InstanceSettingItem);\n\t}\n\n\t/**\n\t * Update Kelvin ACP Instance Setting\n\t * Update Kelvin ACP Instance Setting **Permission Required:** `kelvin.permission.instance.update`\n\t * @param setting Kelvin ACP Instance Setting update schema\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic updateKelvinACPInstanceSetting({ setting }: IUpdateKelvinACPInstanceSettingParams, options?: IKvHttpRequestOptions): Observable<InstanceSettingItem> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = setting;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<InstanceSettingItem>(`/instance/settings/kelvin-acp/update`, requestConfig, InstanceSettingItem);\n\t}\n\n\t/**\n\t * Update Kelvin Carbon Emissions Instance Setting\n\t * Update Kelvin Carbon Emissions Instance Setting **Permission Required:** `kelvin.permission.instance.update`\n\t * @param setting Kelvin Carbon Emissions Instance Setting update schema\n\t * @param reset Reset settings to the defaults. Default: false\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic updateKelvinCarbonEmissionsInstanceSetting({ setting, reset }: IUpdateKelvinCarbonEmissionsInstanceSettingParams, options?: IKvHttpRequestOptions): Observable<InstanceSettingItem> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (reset != null) {\n\t\t\tqueryParameters['reset'] = reset;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\t\trequestConfig.data = setting;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<InstanceSettingItem>(`/instance/settings/kelvin-carbon-emissions/update`, requestConfig, InstanceSettingItem);\n\t}\n}\n"]}
|