@kelvininc/js-client-sdk 7.12.0 → 7.13.2
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 +33 -0
- package/dist/cjs/models/generated/aCP.d.ts +0 -2
- package/dist/cjs/models/generated/aCP.js +0 -1
- package/dist/cjs/models/generated/aCP.js.map +1 -1
- package/dist/cjs/models/generated/assetClassFailureList.d.ts +22 -0
- package/dist/cjs/models/generated/assetClassFailureList.js +19 -0
- package/dist/cjs/models/generated/assetClassFailureList.js.map +1 -0
- package/dist/cjs/models/generated/dataLabel.d.ts +36 -0
- package/dist/cjs/models/generated/dataLabel.js.map +1 -1
- package/dist/cjs/models/generated/dataLabelCluster.d.ts +12 -0
- package/dist/cjs/models/generated/dataLabelCluster.js.map +1 -1
- package/dist/cjs/models/generated/dataLabelItem.d.ts +36 -0
- package/dist/cjs/models/generated/dataLabelItem.js.map +1 -1
- package/dist/cjs/models/generated/dataLabelListPaginated.d.ts +3 -0
- package/dist/cjs/models/generated/dataLabelListPaginated.js.map +1 -1
- package/dist/cjs/models/generated/dataLabelMetricItem.d.ts +6 -0
- package/dist/cjs/models/generated/dataLabelMetricItem.js.map +1 -1
- package/dist/cjs/models/generated/dataLabelSource.d.ts +6 -0
- package/dist/cjs/models/generated/dataLabelSource.js.map +1 -1
- package/dist/cjs/models/generated/emissionsAssetLists.d.ts +3 -2
- package/dist/cjs/models/generated/emissionsAssetLists.js +2 -1
- package/dist/cjs/models/generated/emissionsAssetLists.js.map +1 -1
- package/dist/cjs/models/generated/emissionsInefficientAsset.d.ts +25 -0
- package/dist/cjs/models/generated/emissionsInefficientAsset.js +24 -0
- package/dist/cjs/models/generated/emissionsInefficientAsset.js.map +1 -0
- package/dist/cjs/models/generated/emissionsInefficientAssetAlarm.d.ts +19 -0
- package/dist/cjs/models/generated/emissionsInefficientAssetAlarm.js +20 -0
- package/dist/cjs/models/generated/emissionsInefficientAssetAlarm.js.map +1 -0
- package/dist/cjs/models/generated/emissionsInefficientAssetAnalytics.d.ts +23 -0
- package/dist/cjs/models/generated/emissionsInefficientAssetAnalytics.js +22 -0
- package/dist/cjs/models/generated/emissionsInefficientAssetAnalytics.js.map +1 -0
- package/dist/cjs/models/generated/failure.d.ts +25 -0
- package/dist/cjs/models/generated/failure.js +23 -0
- package/dist/cjs/models/generated/failure.js.map +1 -0
- package/dist/cjs/models/generated/failureAnalysis.d.ts +25 -0
- package/dist/cjs/models/generated/failureAnalysis.js +24 -0
- package/dist/cjs/models/generated/failureAnalysis.js.map +1 -0
- package/dist/cjs/models/generated/failureAnalysisList.d.ts +18 -0
- package/dist/cjs/models/generated/failureAnalysisList.js +20 -0
- package/dist/cjs/models/generated/failureAnalysisList.js.map +1 -0
- package/dist/cjs/models/generated/failureAnalysisSpectralBand.d.ts +23 -0
- package/dist/cjs/models/generated/failureAnalysisSpectralBand.js +22 -0
- package/dist/cjs/models/generated/failureAnalysisSpectralBand.js.map +1 -0
- package/dist/cjs/models/generated/failureAnalysisThreshold.d.ts +25 -0
- package/dist/cjs/models/generated/failureAnalysisThreshold.js +23 -0
- package/dist/cjs/models/generated/failureAnalysisThreshold.js.map +1 -0
- package/dist/cjs/models/generated/failureAnalysisThresholdsList.d.ts +22 -0
- package/dist/cjs/models/generated/failureAnalysisThresholdsList.js +19 -0
- package/dist/cjs/models/generated/failureAnalysisThresholdsList.js.map +1 -0
- package/dist/cjs/models/generated/failureAnalysisThresholdsUpdate.d.ts +17 -0
- package/dist/cjs/models/generated/failureAnalysisThresholdsUpdate.js +19 -0
- package/dist/cjs/models/generated/failureAnalysisThresholdsUpdate.js.map +1 -0
- package/dist/cjs/models/generated/failureOverviewItem.d.ts +6 -3
- package/dist/cjs/models/generated/failureOverviewItem.js +1 -2
- package/dist/cjs/models/generated/failureOverviewItem.js.map +1 -1
- package/dist/cjs/models/generated/failureOverviewPaginated.d.ts +3 -6
- package/dist/cjs/models/generated/failureOverviewPaginated.js +2 -2
- package/dist/cjs/models/generated/failureOverviewPaginated.js.map +1 -1
- package/dist/cjs/models/generated/index.d.ts +14 -1
- package/dist/cjs/models/generated/index.js +14 -1
- package/dist/cjs/models/generated/index.js.map +1 -1
- package/dist/cjs/models/generated/label.d.ts +15 -0
- package/dist/cjs/models/generated/label.js.map +1 -1
- package/dist/cjs/models/generated/labelItem.d.ts +15 -0
- package/dist/cjs/models/generated/labelItem.js.map +1 -1
- package/dist/cjs/models/generated/labelListPaginated.d.ts +3 -0
- package/dist/cjs/models/generated/labelListPaginated.js.map +1 -1
- package/dist/cjs/models/generated/labelMetadata.d.ts +15 -0
- package/dist/cjs/models/generated/labelMetadata.js.map +1 -1
- package/dist/cjs/models/generated/labelMetadataItem.d.ts +15 -0
- package/dist/cjs/models/generated/labelMetadataItem.js.map +1 -1
- package/dist/cjs/models/generated/loopConfig.d.ts +17 -0
- package/dist/cjs/models/generated/loopConfig.js +19 -0
- package/dist/cjs/models/generated/loopConfig.js.map +1 -0
- package/dist/cjs/models/generated/paginationInfo.d.ts +27 -0
- package/dist/cjs/models/generated/paginationInfo.js +24 -0
- package/dist/cjs/models/generated/paginationInfo.js.map +1 -0
- package/dist/cjs/models/generated/ruleAction.d.ts +2 -0
- package/dist/cjs/models/generated/ruleAction.js +2 -1
- package/dist/cjs/models/generated/ruleAction.js.map +1 -1
- package/dist/cjs/models/generated/ruleExecutionConfig.d.ts +20 -0
- package/dist/cjs/models/generated/ruleExecutionConfig.js +21 -0
- package/dist/cjs/models/generated/ruleExecutionConfig.js.map +1 -0
- package/dist/cjs/models/generated/rulePayload.d.ts +3 -0
- package/dist/cjs/models/generated/rulePayload.js +2 -0
- package/dist/cjs/models/generated/rulePayload.js.map +1 -1
- package/dist/cjs/services/generated/api/aCP.service.js +17 -17
- package/dist/cjs/services/generated/api/aCP.service.js.map +1 -1
- package/dist/cjs/services/generated/api/alarm.service.js +31 -31
- package/dist/cjs/services/generated/api/alarm.service.js.map +1 -1
- package/dist/cjs/services/generated/api/appRegistry.service.js +7 -7
- package/dist/cjs/services/generated/api/appRegistry.service.js.map +1 -1
- package/dist/cjs/services/generated/api/asset.service.d.ts +9 -7
- package/dist/cjs/services/generated/api/asset.service.js +63 -49
- package/dist/cjs/services/generated/api/asset.service.js.map +1 -1
- package/dist/cjs/services/generated/api/bridge.service.js +10 -10
- package/dist/cjs/services/generated/api/bridge.service.js.map +1 -1
- package/dist/cjs/services/generated/api/controlChange.service.js +8 -8
- package/dist/cjs/services/generated/api/controlChange.service.js.map +1 -1
- package/dist/cjs/services/generated/api/dataLabel.service.d.ts +62 -62
- package/dist/cjs/services/generated/api/dataLabel.service.js +83 -83
- package/dist/cjs/services/generated/api/dataLabel.service.js.map +1 -1
- package/dist/cjs/services/generated/api/dataType.service.js +6 -6
- package/dist/cjs/services/generated/api/dataType.service.js.map +1 -1
- package/dist/cjs/services/generated/api/failureDetection.service.d.ts +32 -2
- package/dist/cjs/services/generated/api/failureDetection.service.js +82 -5
- package/dist/cjs/services/generated/api/failureDetection.service.js.map +1 -1
- package/dist/cjs/services/generated/api/instance.service.js +11 -11
- package/dist/cjs/services/generated/api/instance.service.js.map +1 -1
- package/dist/cjs/services/generated/api/integration.service.js +10 -10
- package/dist/cjs/services/generated/api/integration.service.js.map +1 -1
- package/dist/cjs/services/generated/api/map.service.js +14 -14
- package/dist/cjs/services/generated/api/map.service.js.map +1 -1
- package/dist/cjs/services/generated/api/metric.service.js +7 -7
- package/dist/cjs/services/generated/api/metric.service.js.map +1 -1
- package/dist/cjs/services/generated/api/orchestration.service.js +9 -9
- package/dist/cjs/services/generated/api/orchestration.service.js.map +1 -1
- package/dist/cjs/services/generated/api/parameters.service.js +3 -3
- package/dist/cjs/services/generated/api/parameters.service.js.map +1 -1
- package/dist/cjs/services/generated/api/rule.service.js +6 -6
- package/dist/cjs/services/generated/api/rule.service.js.map +1 -1
- package/dist/cjs/services/generated/api/secret.service.js +3 -3
- package/dist/cjs/services/generated/api/secret.service.js.map +1 -1
- package/dist/cjs/services/generated/api/storage.service.js +10 -10
- package/dist/cjs/services/generated/api/storage.service.js.map +1 -1
- package/dist/cjs/services/generated/api/thread.service.js +10 -10
- package/dist/cjs/services/generated/api/thread.service.js.map +1 -1
- package/dist/cjs/services/generated/api/uI.service.js +2 -2
- package/dist/cjs/services/generated/api/uI.service.js.map +1 -1
- package/dist/cjs/services/generated/api/user.service.js +11 -11
- package/dist/cjs/services/generated/api/user.service.js.map +1 -1
- package/dist/cjs/services/generated/api/wireguard.service.js +9 -9
- package/dist/cjs/services/generated/api/wireguard.service.js.map +1 -1
- package/dist/cjs/services/generated/api/workload.service.js +9 -9
- package/dist/cjs/services/generated/api/workload.service.js.map +1 -1
- package/dist/cjs/services/generated/models/aCPUpdateData.d.ts +3 -7
- package/dist/cjs/services/generated/models/aCPUpdateData.js.map +1 -1
- package/dist/cjs/services/generated/models/dataLabelCreateData.d.ts +5 -5
- package/dist/cjs/services/generated/models/dataLabelCreateData.js.map +1 -1
- package/dist/cjs/services/generated/models/dataLabelRangeData.d.ts +2 -2
- package/dist/cjs/services/generated/models/dataLabelRangeData.js.map +1 -1
- package/dist/cjs/services/generated/models/failureAnalysisThresholdData.d.ts +10 -0
- package/dist/cjs/services/generated/models/failureAnalysisThresholdData.js +3 -0
- package/dist/cjs/services/generated/models/failureAnalysisThresholdData.js.map +1 -0
- package/dist/cjs/services/generated/models/failureAnalysisThresholdsUpdateData.d.ts +7 -0
- package/dist/cjs/services/generated/models/failureAnalysisThresholdsUpdateData.js +3 -0
- package/dist/cjs/services/generated/models/failureAnalysisThresholdsUpdateData.js.map +1 -0
- package/dist/cjs/services/generated/models/index.d.ts +4 -0
- package/dist/cjs/services/generated/models/index.js +4 -0
- package/dist/cjs/services/generated/models/index.js.map +1 -1
- package/dist/cjs/services/generated/models/labelCreateData.d.ts +2 -2
- package/dist/cjs/services/generated/models/labelCreateData.js.map +1 -1
- package/dist/cjs/services/generated/models/loopConfigData.d.ts +6 -0
- package/dist/cjs/services/generated/models/loopConfigData.js +3 -0
- package/dist/cjs/services/generated/models/loopConfigData.js.map +1 -0
- package/dist/cjs/services/generated/models/ruleActionData.d.ts +1 -0
- package/dist/cjs/services/generated/models/ruleActionData.js.map +1 -1
- package/dist/cjs/services/generated/models/ruleExecutionConfigData.d.ts +8 -0
- package/dist/cjs/services/generated/models/ruleExecutionConfigData.js +3 -0
- package/dist/cjs/services/generated/models/ruleExecutionConfigData.js.map +1 -0
- package/dist/cjs/services/generated/models/rulePayloadData.d.ts +2 -0
- package/dist/cjs/services/generated/models/rulePayloadData.js.map +1 -1
- package/dist/cjs/services/generated/types/asset.service.types.d.ts +6 -4
- package/dist/cjs/services/generated/types/asset.service.types.js.map +1 -1
- package/dist/cjs/services/generated/types/failureDetection.service.types.d.ts +27 -0
- package/dist/cjs/services/generated/types/failureDetection.service.types.js.map +1 -1
- package/dist/cjs/services/index.d.ts +1 -1
- package/dist/cjs/services/index.js +1 -1
- package/dist/cjs/services/index.js.map +1 -1
- package/dist/cjs/services/pagination/index.d.ts +5 -0
- package/dist/cjs/services/pagination/index.js +9 -0
- package/dist/cjs/services/pagination/index.js.map +1 -0
- package/dist/cjs/services/pagination/pagination-handler.d.ts +24 -0
- package/dist/cjs/services/pagination/pagination-handler.js +45 -0
- package/dist/cjs/services/pagination/pagination-handler.js.map +1 -0
- package/dist/cjs/services/pagination/paginator-base.d.ts +29 -0
- package/dist/cjs/services/pagination/paginator-base.js +70 -0
- package/dist/cjs/services/pagination/paginator-base.js.map +1 -0
- package/dist/cjs/services/pagination/paginator-cursor.d.ts +18 -0
- package/dist/cjs/services/pagination/paginator-cursor.js +38 -0
- package/dist/cjs/services/pagination/paginator-cursor.js.map +1 -0
- package/dist/cjs/services/pagination/paginator-limits.d.ts +20 -0
- package/dist/cjs/services/pagination/paginator-limits.js +54 -0
- package/dist/cjs/services/pagination/paginator-limits.js.map +1 -0
- package/dist/cjs/services/pagination/paginator.types.d.ts +44 -0
- package/dist/cjs/services/pagination/paginator.types.js +11 -0
- package/dist/cjs/services/pagination/paginator.types.js.map +1 -0
- package/dist/esm/models/generated/aCP.d.ts +0 -2
- package/dist/esm/models/generated/aCP.js +0 -1
- package/dist/esm/models/generated/aCP.js.map +1 -1
- package/dist/esm/models/generated/assetClassFailureList.d.ts +22 -0
- package/dist/esm/models/generated/assetClassFailureList.js +15 -0
- package/dist/esm/models/generated/assetClassFailureList.js.map +1 -0
- package/dist/esm/models/generated/dataLabel.d.ts +36 -0
- package/dist/esm/models/generated/dataLabel.js.map +1 -1
- package/dist/esm/models/generated/dataLabelCluster.d.ts +12 -0
- package/dist/esm/models/generated/dataLabelCluster.js.map +1 -1
- package/dist/esm/models/generated/dataLabelItem.d.ts +36 -0
- package/dist/esm/models/generated/dataLabelItem.js.map +1 -1
- package/dist/esm/models/generated/dataLabelListPaginated.d.ts +3 -0
- package/dist/esm/models/generated/dataLabelListPaginated.js.map +1 -1
- package/dist/esm/models/generated/dataLabelMetricItem.d.ts +6 -0
- package/dist/esm/models/generated/dataLabelMetricItem.js.map +1 -1
- package/dist/esm/models/generated/dataLabelSource.d.ts +6 -0
- package/dist/esm/models/generated/dataLabelSource.js.map +1 -1
- package/dist/esm/models/generated/emissionsAssetLists.d.ts +3 -2
- package/dist/esm/models/generated/emissionsAssetLists.js +2 -1
- package/dist/esm/models/generated/emissionsAssetLists.js.map +1 -1
- package/dist/esm/models/generated/emissionsInefficientAsset.d.ts +25 -0
- package/dist/esm/models/generated/emissionsInefficientAsset.js +20 -0
- package/dist/esm/models/generated/emissionsInefficientAsset.js.map +1 -0
- package/dist/esm/models/generated/emissionsInefficientAssetAlarm.d.ts +19 -0
- package/dist/esm/models/generated/emissionsInefficientAssetAlarm.js +16 -0
- package/dist/esm/models/generated/emissionsInefficientAssetAlarm.js.map +1 -0
- package/dist/esm/models/generated/emissionsInefficientAssetAnalytics.d.ts +23 -0
- package/dist/esm/models/generated/emissionsInefficientAssetAnalytics.js +18 -0
- package/dist/esm/models/generated/emissionsInefficientAssetAnalytics.js.map +1 -0
- package/dist/esm/models/generated/failure.d.ts +25 -0
- package/dist/esm/models/generated/failure.js +19 -0
- package/dist/esm/models/generated/failure.js.map +1 -0
- package/dist/esm/models/generated/failureAnalysis.d.ts +25 -0
- package/dist/esm/models/generated/failureAnalysis.js +20 -0
- package/dist/esm/models/generated/failureAnalysis.js.map +1 -0
- package/dist/esm/models/generated/failureAnalysisList.d.ts +18 -0
- package/dist/esm/models/generated/failureAnalysisList.js +16 -0
- package/dist/esm/models/generated/failureAnalysisList.js.map +1 -0
- package/dist/esm/models/generated/failureAnalysisSpectralBand.d.ts +23 -0
- package/dist/esm/models/generated/failureAnalysisSpectralBand.js +18 -0
- package/dist/esm/models/generated/failureAnalysisSpectralBand.js.map +1 -0
- package/dist/esm/models/generated/failureAnalysisThreshold.d.ts +25 -0
- package/dist/esm/models/generated/failureAnalysisThreshold.js +19 -0
- package/dist/esm/models/generated/failureAnalysisThreshold.js.map +1 -0
- package/dist/esm/models/generated/failureAnalysisThresholdsList.d.ts +22 -0
- package/dist/esm/models/generated/failureAnalysisThresholdsList.js +15 -0
- package/dist/esm/models/generated/failureAnalysisThresholdsList.js.map +1 -0
- package/dist/esm/models/generated/failureAnalysisThresholdsUpdate.d.ts +17 -0
- package/dist/esm/models/generated/failureAnalysisThresholdsUpdate.js +15 -0
- package/dist/esm/models/generated/failureAnalysisThresholdsUpdate.js.map +1 -0
- package/dist/esm/models/generated/failureOverviewItem.d.ts +6 -3
- package/dist/esm/models/generated/failureOverviewItem.js +1 -2
- package/dist/esm/models/generated/failureOverviewItem.js.map +1 -1
- package/dist/esm/models/generated/failureOverviewPaginated.d.ts +3 -6
- package/dist/esm/models/generated/failureOverviewPaginated.js +2 -2
- package/dist/esm/models/generated/failureOverviewPaginated.js.map +1 -1
- package/dist/esm/models/generated/index.d.ts +14 -1
- package/dist/esm/models/generated/index.js +14 -1
- package/dist/esm/models/generated/index.js.map +1 -1
- package/dist/esm/models/generated/label.d.ts +15 -0
- package/dist/esm/models/generated/label.js.map +1 -1
- package/dist/esm/models/generated/labelItem.d.ts +15 -0
- package/dist/esm/models/generated/labelItem.js.map +1 -1
- package/dist/esm/models/generated/labelListPaginated.d.ts +3 -0
- package/dist/esm/models/generated/labelListPaginated.js.map +1 -1
- package/dist/esm/models/generated/labelMetadata.d.ts +15 -0
- package/dist/esm/models/generated/labelMetadata.js.map +1 -1
- package/dist/esm/models/generated/labelMetadataItem.d.ts +15 -0
- package/dist/esm/models/generated/labelMetadataItem.js.map +1 -1
- package/dist/esm/models/generated/loopConfig.d.ts +17 -0
- package/dist/esm/models/generated/loopConfig.js +15 -0
- package/dist/esm/models/generated/loopConfig.js.map +1 -0
- package/dist/esm/models/generated/paginationInfo.d.ts +27 -0
- package/dist/esm/models/generated/paginationInfo.js +20 -0
- package/dist/esm/models/generated/paginationInfo.js.map +1 -0
- package/dist/esm/models/generated/ruleAction.d.ts +2 -0
- package/dist/esm/models/generated/ruleAction.js +2 -1
- package/dist/esm/models/generated/ruleAction.js.map +1 -1
- package/dist/esm/models/generated/ruleExecutionConfig.d.ts +20 -0
- package/dist/esm/models/generated/ruleExecutionConfig.js +17 -0
- package/dist/esm/models/generated/ruleExecutionConfig.js.map +1 -0
- package/dist/esm/models/generated/rulePayload.d.ts +3 -0
- package/dist/esm/models/generated/rulePayload.js +2 -0
- package/dist/esm/models/generated/rulePayload.js.map +1 -1
- package/dist/esm/services/generated/api/aCP.service.js +17 -17
- package/dist/esm/services/generated/api/aCP.service.js.map +1 -1
- package/dist/esm/services/generated/api/alarm.service.js +31 -31
- package/dist/esm/services/generated/api/alarm.service.js.map +1 -1
- package/dist/esm/services/generated/api/appRegistry.service.js +7 -7
- package/dist/esm/services/generated/api/appRegistry.service.js.map +1 -1
- package/dist/esm/services/generated/api/asset.service.d.ts +9 -7
- package/dist/esm/services/generated/api/asset.service.js +63 -49
- package/dist/esm/services/generated/api/asset.service.js.map +1 -1
- package/dist/esm/services/generated/api/bridge.service.js +10 -10
- package/dist/esm/services/generated/api/bridge.service.js.map +1 -1
- package/dist/esm/services/generated/api/controlChange.service.js +8 -8
- package/dist/esm/services/generated/api/controlChange.service.js.map +1 -1
- package/dist/esm/services/generated/api/dataLabel.service.d.ts +62 -62
- package/dist/esm/services/generated/api/dataLabel.service.js +83 -83
- package/dist/esm/services/generated/api/dataLabel.service.js.map +1 -1
- package/dist/esm/services/generated/api/dataType.service.js +6 -6
- package/dist/esm/services/generated/api/dataType.service.js.map +1 -1
- package/dist/esm/services/generated/api/failureDetection.service.d.ts +32 -2
- package/dist/esm/services/generated/api/failureDetection.service.js +83 -6
- package/dist/esm/services/generated/api/failureDetection.service.js.map +1 -1
- package/dist/esm/services/generated/api/instance.service.js +11 -11
- package/dist/esm/services/generated/api/instance.service.js.map +1 -1
- package/dist/esm/services/generated/api/integration.service.js +10 -10
- package/dist/esm/services/generated/api/integration.service.js.map +1 -1
- package/dist/esm/services/generated/api/map.service.js +14 -14
- package/dist/esm/services/generated/api/map.service.js.map +1 -1
- package/dist/esm/services/generated/api/metric.service.js +7 -7
- package/dist/esm/services/generated/api/metric.service.js.map +1 -1
- package/dist/esm/services/generated/api/orchestration.service.js +9 -9
- package/dist/esm/services/generated/api/orchestration.service.js.map +1 -1
- package/dist/esm/services/generated/api/parameters.service.js +3 -3
- package/dist/esm/services/generated/api/parameters.service.js.map +1 -1
- package/dist/esm/services/generated/api/rule.service.js +6 -6
- package/dist/esm/services/generated/api/rule.service.js.map +1 -1
- package/dist/esm/services/generated/api/secret.service.js +3 -3
- package/dist/esm/services/generated/api/secret.service.js.map +1 -1
- package/dist/esm/services/generated/api/storage.service.js +10 -10
- package/dist/esm/services/generated/api/storage.service.js.map +1 -1
- package/dist/esm/services/generated/api/thread.service.js +10 -10
- package/dist/esm/services/generated/api/thread.service.js.map +1 -1
- package/dist/esm/services/generated/api/uI.service.js +2 -2
- package/dist/esm/services/generated/api/uI.service.js.map +1 -1
- package/dist/esm/services/generated/api/user.service.js +11 -11
- package/dist/esm/services/generated/api/user.service.js.map +1 -1
- package/dist/esm/services/generated/api/wireguard.service.js +9 -9
- package/dist/esm/services/generated/api/wireguard.service.js.map +1 -1
- package/dist/esm/services/generated/api/workload.service.js +9 -9
- package/dist/esm/services/generated/api/workload.service.js.map +1 -1
- package/dist/esm/services/generated/models/aCPUpdateData.d.ts +3 -7
- package/dist/esm/services/generated/models/aCPUpdateData.js.map +1 -1
- package/dist/esm/services/generated/models/dataLabelCreateData.d.ts +5 -5
- package/dist/esm/services/generated/models/dataLabelCreateData.js.map +1 -1
- package/dist/esm/services/generated/models/dataLabelRangeData.d.ts +2 -2
- package/dist/esm/services/generated/models/dataLabelRangeData.js.map +1 -1
- package/dist/esm/services/generated/models/failureAnalysisThresholdData.d.ts +10 -0
- package/dist/esm/services/generated/models/failureAnalysisThresholdData.js +1 -0
- package/dist/esm/services/generated/models/failureAnalysisThresholdData.js.map +1 -0
- package/dist/esm/services/generated/models/failureAnalysisThresholdsUpdateData.d.ts +7 -0
- package/dist/esm/services/generated/models/failureAnalysisThresholdsUpdateData.js +1 -0
- package/dist/esm/services/generated/models/failureAnalysisThresholdsUpdateData.js.map +1 -0
- package/dist/esm/services/generated/models/index.d.ts +4 -0
- package/dist/esm/services/generated/models/index.js +4 -0
- package/dist/esm/services/generated/models/index.js.map +1 -1
- package/dist/esm/services/generated/models/labelCreateData.d.ts +2 -2
- package/dist/esm/services/generated/models/labelCreateData.js.map +1 -1
- package/dist/esm/services/generated/models/loopConfigData.d.ts +6 -0
- package/dist/esm/services/generated/models/loopConfigData.js +1 -0
- package/dist/esm/services/generated/models/loopConfigData.js.map +1 -0
- package/dist/esm/services/generated/models/ruleActionData.d.ts +1 -0
- package/dist/esm/services/generated/models/ruleActionData.js.map +1 -1
- package/dist/esm/services/generated/models/ruleExecutionConfigData.d.ts +8 -0
- package/dist/esm/services/generated/models/ruleExecutionConfigData.js +1 -0
- package/dist/esm/services/generated/models/ruleExecutionConfigData.js.map +1 -0
- package/dist/esm/services/generated/models/rulePayloadData.d.ts +2 -0
- package/dist/esm/services/generated/models/rulePayloadData.js.map +1 -1
- package/dist/esm/services/generated/types/asset.service.types.d.ts +6 -4
- package/dist/esm/services/generated/types/asset.service.types.js.map +1 -1
- package/dist/esm/services/generated/types/failureDetection.service.types.d.ts +27 -0
- package/dist/esm/services/generated/types/failureDetection.service.types.js.map +1 -1
- package/dist/esm/services/index.d.ts +1 -1
- package/dist/esm/services/index.js +1 -1
- package/dist/esm/services/index.js.map +1 -1
- package/dist/esm/services/pagination/index.d.ts +5 -0
- package/dist/esm/services/pagination/index.js +6 -0
- package/dist/esm/services/pagination/index.js.map +1 -0
- package/dist/esm/services/pagination/pagination-handler.d.ts +24 -0
- package/dist/esm/services/pagination/pagination-handler.js +40 -0
- package/dist/esm/services/pagination/pagination-handler.js.map +1 -0
- package/dist/esm/services/pagination/paginator-base.d.ts +29 -0
- package/dist/esm/services/{pagination-handler.js → pagination/paginator-base.js} +28 -48
- package/dist/esm/services/pagination/paginator-base.js.map +1 -0
- package/dist/esm/services/pagination/paginator-cursor.d.ts +18 -0
- package/dist/esm/services/pagination/paginator-cursor.js +34 -0
- package/dist/esm/services/pagination/paginator-cursor.js.map +1 -0
- package/dist/esm/services/pagination/paginator-limits.d.ts +20 -0
- package/dist/esm/services/pagination/paginator-limits.js +50 -0
- package/dist/esm/services/pagination/paginator-limits.js.map +1 -0
- package/dist/esm/services/pagination/paginator.types.d.ts +44 -0
- package/dist/esm/services/pagination/paginator.types.js +8 -0
- package/dist/esm/services/pagination/paginator.types.js.map +1 -0
- package/package.json +3 -3
- package/dist/cjs/models/generated/failureOverviewStatistics.d.ts +0 -24
- package/dist/cjs/models/generated/failureOverviewStatistics.js +0 -22
- package/dist/cjs/models/generated/failureOverviewStatistics.js.map +0 -1
- package/dist/cjs/services/pagination-handler.d.ts +0 -40
- package/dist/cjs/services/pagination-handler.js +0 -91
- package/dist/cjs/services/pagination-handler.js.map +0 -1
- package/dist/esm/models/generated/failureOverviewStatistics.d.ts +0 -24
- package/dist/esm/models/generated/failureOverviewStatistics.js +0 -18
- package/dist/esm/models/generated/failureOverviewStatistics.js.map +0 -1
- package/dist/esm/services/pagination-handler.d.ts +0 -40
- package/dist/esm/services/pagination-handler.js.map +0 -1
|
@@ -15,8 +15,8 @@ export class StorageService extends BaseService {
|
|
|
15
15
|
method: 'post'
|
|
16
16
|
};
|
|
17
17
|
requestConfig.data = storage;
|
|
18
|
-
requestConfig.mediaType = 'application/json';
|
|
19
18
|
requestConfig.options = options;
|
|
19
|
+
requestConfig.mediaType = 'application/json';
|
|
20
20
|
return this.request(`/storage/historian/create`, requestConfig);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
@@ -30,8 +30,8 @@ export class StorageService extends BaseService {
|
|
|
30
30
|
method: 'post'
|
|
31
31
|
};
|
|
32
32
|
requestConfig.data = storage;
|
|
33
|
-
requestConfig.mediaType = 'application/json';
|
|
34
33
|
requestConfig.options = options;
|
|
34
|
+
requestConfig.mediaType = 'application/json';
|
|
35
35
|
return this.request(`/storage/historian/range/delete`, requestConfig);
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
@@ -45,8 +45,8 @@ export class StorageService extends BaseService {
|
|
|
45
45
|
method: 'post'
|
|
46
46
|
};
|
|
47
47
|
requestConfig.data = query;
|
|
48
|
-
requestConfig.mediaType = 'text/csv';
|
|
49
48
|
requestConfig.options = options;
|
|
49
|
+
requestConfig.mediaType = 'text/csv';
|
|
50
50
|
return this.request(`/storage/historian/range/download`, requestConfig);
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
@@ -60,8 +60,8 @@ export class StorageService extends BaseService {
|
|
|
60
60
|
method: 'post'
|
|
61
61
|
};
|
|
62
62
|
requestConfig.data = body;
|
|
63
|
-
requestConfig.mediaType = 'application/x-json-stream';
|
|
64
63
|
requestConfig.options = options;
|
|
64
|
+
requestConfig.mediaType = 'application/x-json-stream';
|
|
65
65
|
return this.request(`/storage/historian/range/get`, requestConfig, StorageData);
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
@@ -87,8 +87,8 @@ export class StorageService extends BaseService {
|
|
|
87
87
|
queryParameters['fields'] = fields;
|
|
88
88
|
}
|
|
89
89
|
requestConfig.params = queryParameters;
|
|
90
|
-
requestConfig.mediaType = 'application/json';
|
|
91
90
|
requestConfig.options = options;
|
|
91
|
+
requestConfig.mediaType = 'application/json';
|
|
92
92
|
return this.request(`/storage/historian/last/get`, requestConfig, StorageData);
|
|
93
93
|
}
|
|
94
94
|
/**
|
|
@@ -102,8 +102,8 @@ export class StorageService extends BaseService {
|
|
|
102
102
|
method: 'post'
|
|
103
103
|
};
|
|
104
104
|
requestConfig.data = query;
|
|
105
|
-
requestConfig.mediaType = 'application/x-json-stream';
|
|
106
105
|
requestConfig.options = options;
|
|
106
|
+
requestConfig.mediaType = 'application/x-json-stream';
|
|
107
107
|
return this.request(`/storage/historian/last/get`, requestConfig, StorageData);
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
@@ -157,8 +157,8 @@ export class StorageService extends BaseService {
|
|
|
157
157
|
queryParameters['fields'] = fields;
|
|
158
158
|
}
|
|
159
159
|
requestConfig.params = queryParameters;
|
|
160
|
-
requestConfig.mediaType = 'application/x-json-stream';
|
|
161
160
|
requestConfig.options = options;
|
|
161
|
+
requestConfig.mediaType = 'application/x-json-stream';
|
|
162
162
|
return this.request(`/storage/historian/range/get`, requestConfig, StorageData);
|
|
163
163
|
}
|
|
164
164
|
/**
|
|
@@ -204,8 +204,8 @@ export class StorageService extends BaseService {
|
|
|
204
204
|
queryParameters['sort_asc'] = sortAsc;
|
|
205
205
|
}
|
|
206
206
|
requestConfig.params = queryParameters;
|
|
207
|
-
requestConfig.mediaType = 'application/json';
|
|
208
207
|
requestConfig.options = options;
|
|
208
|
+
requestConfig.mediaType = 'application/json';
|
|
209
209
|
return this.request(`/storage/historian/list`, requestConfig, StorageMetricListPaginated);
|
|
210
210
|
}
|
|
211
211
|
/**
|
|
@@ -219,8 +219,8 @@ export class StorageService extends BaseService {
|
|
|
219
219
|
method: 'post'
|
|
220
220
|
};
|
|
221
221
|
requestConfig.data = storage;
|
|
222
|
-
requestConfig.mediaType = 'application/json';
|
|
223
222
|
requestConfig.options = options;
|
|
223
|
+
requestConfig.mediaType = 'application/json';
|
|
224
224
|
return this.request(`/storage/historian/update`, requestConfig);
|
|
225
225
|
}
|
|
226
226
|
/**
|
|
@@ -238,8 +238,8 @@ export class StorageService extends BaseService {
|
|
|
238
238
|
formParams.append('file', file);
|
|
239
239
|
}
|
|
240
240
|
requestConfig.data = formParams;
|
|
241
|
-
requestConfig.mediaType = 'application/json';
|
|
242
241
|
requestConfig.options = options;
|
|
242
|
+
requestConfig.mediaType = 'application/json';
|
|
243
243
|
return this.request(`/storage/historian/upload`, requestConfig);
|
|
244
244
|
}
|
|
245
245
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.service.js","sourceRoot":"","sources":["../../../../../src/services/generated/api/storage.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAWjD;;GAEG;AAEH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAE9C;;;;;OAKG;IAEH,MAAM,CAAC,qBAAqB,CAAC,EAAE,OAAO,EAAgC,EAAE,OAA+B;QAEtG,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QACF,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,CAAkB,2BAA2B,EAAE,aAAa,CAAC,CAAC;IAClF,CAAC;IAED;;;;;OAKG;IAEH,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAA+B,EAAE,OAA+B;QAEpG,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,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,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAkB,2BAA2B,EAAE,aAAa,CAAC,CAAC;IAClF,CAAC;IAED;;;;;OAKG;IAEH,MAAM,CAAC,sBAAsB,CAAC,EAAE,IAAI,EAAiC,EAAE,OAA+B;QAErG,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;QAClC,IAAI,IAAI,IAAI,IAAI,EAAE;YACjB,UAAU,CAAC,MAAM,CAAC,MAAM,EAAO,IAAI,CAAC,CAAC;SACrC;QACD,aAAa,CAAC,IAAI,GAAG,UAAU,CAAC;QAEhC,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAkB,2BAA2B,EAAE,aAAa,CAAC,CAAC;IAClF,CAAC;CACD","sourcesContent":["import { Observable } from 'rxjs';\nimport { EKvHttpMethod, IKvHttpRequest, IKvHttpRequestOptions, IKvHttpResponse } from '../../../core/http';\nimport { StorageData, StorageMetricListPaginated } from '../../../models';\nimport { BaseService } from '../../base.service';\nimport {\n\tICreateHistorianMetricParams,\n\tIDeleteHistorianRangeParams,\n\tIDownloadHistorianMetricsParams,\n\tIGetHistorianMetricAdvancedRangeParams, IGetHistorianMetricLastAdvancedParams, IGetHistorianMetricLastParams, IGetHistorianMetricRangeParams,\n\tIListHistorianMetricParams,\n\tIUpdateHistorianMetricParams,\n\tIUploadHistorianMetricsParams\n} from '../types';\n\n/**\n * @category Service\n */\n\nexport class StorageService extends BaseService {\n\n\t/**\n\t * Create Historian Metric\n\t * Create Historian Metric Create one or more data values for defined times for one or more specific <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 on the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a>. <span style=\\"color: #ff0000;font-weight: bold;\\">WARNING</span> : If a value already exists at the defined time, then it will be overwriten with the new payload value. The old value will be lost and is not recoverable ! **Permission Required:** `kelvin.permission.storage.create`\n\t * @param storage Storage create schema\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic createHistorianMetric({ storage }: ICreateHistorianMetricParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = storage;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/storage/historian/create`, requestConfig);\n\t}\n\n\t/**\n\t * Delete Historian Range\n\t * Delete Historian Range will delete all associated time series values for selected <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 between a given time range. **Permission Required:** `kelvin.permission.storage.delete`\n\t * @param storage Body of the request\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic deleteHistorianRange({ storage }: IDeleteHistorianRangeParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = storage;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/storage/historian/range/delete`, requestConfig);\n\t}\n\n\t/**\n\t * Download Historian Metrics\n\t * Download Historian Metrics Returns a **CSV file** with time series data within a for a given time range and given list of <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 in the parameter `selectors`. The downloaded csv file will contain six columns; `name` ( <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> ), `time` ( Timestamp when the data was recorded from source ), `asset_name` ( <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> ), `source` ( <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/' target='_blank'>Kelvin App</a> or <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> that has recorded the data ), `target` ( Custom parameter set by user ), `value` ( value recorded ). **Permission Required:** `kelvin.permission.storage.read`\n\t * @param query Request Schema\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic downloadHistorianMetrics({ query }: IDownloadHistorianMetricsParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = query;\n\n\t\trequestConfig.mediaType = 'text/csv';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/storage/historian/range/download`, requestConfig);\n\t}\n\n\t/**\n\t * Get Historian Metric Advanced Range\n\t * Get Historian Metric Advanced Range Returns a list of recorded values or calculated statistics from the database for one or multiple <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 based on a time range. This does not rely on the workload (<a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> or <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/' target='_blank'>Kelvin App</a>) that records the data to be online. **Permission Required:** `kelvin.permission.storage.read`\n\t * @param body Advanced range schema\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getHistorianMetricAdvancedRange({ body }: IGetHistorianMetricAdvancedRangeParams, options?: IKvHttpRequestOptions): Observable<StorageData[]> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = body;\n\n\t\trequestConfig.mediaType = 'application/x-json-stream';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<StorageData[]>(`/storage/historian/range/get`, requestConfig, StorageData);\n\t}\n\n\t/**\n\t * Get Historian Metric Last\n\t * Get Historian Metric Last Returns the last recorded value in the database for 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> pair. This does not rely on the workload (<a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> or <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/' target='_blank'>Kelvin App</a>) that records the data to be online. **Permission Required:** `kelvin.permission.storage.read`\n\t * @param name Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</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 Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</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 fields List of wanted field keys that are recorded in the payload. Normally this will be value.</p> If there are other unique keys/value pairs in the payload, then you can create a list of all keys to retrieve the values. e.g. 'value, key2'. If the key does not exist in the stored payload, that key will return with a value `null`.\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getHistorianMetricLast({ name, assetName, fields }: IGetHistorianMetricLastParams, options?: IKvHttpRequestOptions): Observable<StorageData> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (name != null) {\n\t\t\tqueryParameters['name'] = name;\n\t\t}\n\n\t\tif (assetName != null) {\n\t\t\tqueryParameters['asset_name'] = assetName;\n\t\t}\n\n\t\tif (fields != null) {\n\t\t\tqueryParameters['fields'] = fields;\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<StorageData>(`/storage/historian/last/get`, requestConfig, StorageData);\n\t}\n\n\t/**\n\t * Get Historian Metric Last Advanced\n\t * Get Historian Metric Last Advanced Returns an array of last recorded values in the database for each of 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 in the POST. This does not rely on the workload (<a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> or <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/' target='_blank'>Kelvin App</a>) that records the data to be online. **Permission Required:** `kelvin.permission.storage.read`\n\t * @param query Request for multiple Metric selectors\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getHistorianMetricLastAdvanced({ query }: IGetHistorianMetricLastAdvancedParams, options?: IKvHttpRequestOptions): Observable<StorageData[]> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = query;\n\n\t\trequestConfig.mediaType = 'application/x-json-stream';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<StorageData[]>(`/storage/historian/last/get`, requestConfig, StorageData);\n\t}\n\n\t/**\n\t * Get Historian Metric Range\n\t * Get Historian Metric Range Returns a list of recorded values or calculated statistics from the database for 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> pair based on a time range. This does not rely on the workload (<a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> or <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/' target='_blank'>Kelvin App</a>) that records the data to be online. **Permission Required:** `kelvin.permission.storage.read`\n\t * @param name Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</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 Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</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 startTime Start time of the recorded time to collect the payload data from the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a> in ISO 8601 UTC date/time format. Example; '2022-07-08T08:41:01.657916Z'.\n\t * @param endTime End time of the recorded time to collect the payload data from the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a> in ISO 8601 UTC date/time format. Example; '2022-07-08T08:41:01.657916Z'.\n\t * @param agg Perform mathematical calculations on a group of data.</p> For numerical data there are twelve mathematical options available; `none` , `count`,`distinct`, `integral`, `mean`, `median`, `mode`, `spread`, `stddev`, `sum`, `max`, `min`.</p> For text based data there are three types of mathematical options available; `count`, `distinct`, `mode`. The default is `none`.</p> When using this parameter, you must also use the parameters `time_bucket` which defines how to group the data and `fields` which defines which payload data to use.\n\t * @param timeBucket Group the data by time frame for the `agg` parameter calculations.</p> The time can be adjusted with these time units `ns`, `ms`, `s`, `m`, `h`. e.g. `8765h` equates to is 8,765 hours which is approximately one year.\n\t * @param timeShift Shift the time buckets from the epoch. Every time bucket starts from epoch so, if you want to calculate the time bucket starting on a different date and time, you'll need to set this. Example: `5m`, `1h`, `1w`.\n\t * @param fill Fills any group of data, which is defined by the `time_bucket` parameter, with a calculated value when there is no data in the database.</p> There are five options available; `none`, `null`, `linear`, `previous`, fixed integer value.</p> `none` will ignore the group. `null`, `previous` and fixed integer value will be added as the value for the empty group. `linear` will perform a linear regression to calculated the groups' value.</p> The default is `none`.\n\t * @param order Order of the results for the timestamp parameter.</p> There are two options available (capital letters is required); `ASC` for ascending and `DESC` for descending. The default is `ASC`.\n\t * @param fields Array of strings which each string representing one key inside the payload. Normally there will be only one key labeled `value`.\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getHistorianMetricRange({ name, assetName, startTime, endTime, agg, timeBucket, timeShift, fill, order, fields }: IGetHistorianMetricRangeParams, options?: IKvHttpRequestOptions): Observable<StorageData[]> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (name != null) {\n\t\t\tqueryParameters['name'] = name;\n\t\t}\n\n\t\tif (assetName != null) {\n\t\t\tqueryParameters['asset_name'] = assetName;\n\t\t}\n\n\t\tif (startTime != null) {\n\t\t\tqueryParameters['start_time'] = startTime.toISOString();\n\t\t}\n\n\t\tif (endTime != null) {\n\t\t\tqueryParameters['end_time'] = endTime.toISOString();\n\t\t}\n\n\t\tif (agg != null) {\n\t\t\tqueryParameters['agg'] = agg;\n\t\t}\n\n\t\tif (timeBucket != null) {\n\t\t\tqueryParameters['time_bucket'] = timeBucket;\n\t\t}\n\n\t\tif (timeShift != null) {\n\t\t\tqueryParameters['time_shift'] = timeShift;\n\t\t}\n\n\t\tif (fill != null) {\n\t\t\tqueryParameters['fill'] = fill;\n\t\t}\n\n\t\tif (order != null) {\n\t\t\tqueryParameters['order'] = order;\n\t\t}\n\n\t\tif (fields != null) {\n\t\t\tqueryParameters['fields'] = fields;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\n\t\trequestConfig.mediaType = 'application/x-json-stream';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<StorageData[]>(`/storage/historian/range/get`, requestConfig, StorageData);\n\t}\n\n\t/**\n\t * List Historian Metric\n\t * List Historian Metric Returns a dictionary with a data property containing a filtered array of <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> pair objects on the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a>. **Pagination Sortable Columns:** `storage_metric.name`, `storage_metric.asset_name` **Permission Required:** `kelvin.permission.storage.read`\n\t * @param name Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</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 Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</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 search Search and filter the return list. Both the Display Name and the Name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> and <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metrics</a> will be included in the search field criteria. This is given as an array, for example `[pump,fan]`.</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-assets/#asset' target='_blank'>Kelvin Asset</a> name or display name is `centrifugal_pump`, then a match will be made if the search string is `pum` or `FUGaL`.\n\t * @param pageSize Number of <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> pair 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> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pair 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> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pairs 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> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pairs 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 two parameter options; `name` and `asset.name`.</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 listHistorianMetric({ name, assetName, search, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IListHistorianMetricParams = {}, options?: IKvHttpRequestOptions): Observable<StorageMetricListPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (name != null) {\n\t\t\tqueryParameters['name'] = name;\n\t\t}\n\n\t\tif (assetName != null) {\n\t\t\tqueryParameters['asset_name'] = assetName;\n\t\t}\n\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<StorageMetricListPaginated>(`/storage/historian/list`, requestConfig, StorageMetricListPaginated);\n\t}\n\n\t/**\n\t * Update Historian Metric\n\t * Update Historian Metric Updates the `title` parameter of a <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> pair. **Permission Required:** `kelvin.permission.storage.update`\n\t * @param storage Body of the request\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic updateHistorianMetric({ storage }: IUpdateHistorianMetricParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = storage;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/storage/historian/update`, requestConfig);\n\t}\n\n\t/**\n\t * Upload Historian Metrics\n\t * Upload Historian Metrics Accepts a **CSV file** with time series data within a for a given time range and given list of <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 in the parameter `selectors`. The csv file should contain six columns in a comma delimited csv file; `name` ( <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> ), `time` ( Timestamp when the data was recorded from source ), `asset_name` ( <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> ), `source` ( <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/' target='_blank'>Kelvin App</a> or <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> that has recorded the data - this value is optional ), `target` ( Custom parameter set by user - this value is optional ), `value` ( value recorded ). The first row must contain the column headers; `name,time,asset_name,source,target,value`. **Permission Required:** `kelvin.permission.storage.create`\n\t * @param file CSV File\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic uploadHistorianMetrics({ file }: IUploadHistorianMetricsParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\tconst formParams = new FormData();\n\t\tif (file != null) {\n\t\t\tformParams.append('file', <any>file);\n\t\t}\n\t\trequestConfig.data = formParams;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<IKvHttpResponse>(`/storage/historian/upload`, requestConfig);\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"storage.service.js","sourceRoot":"","sources":["../../../../../src/services/generated/api/storage.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAWjD;;GAEG;AAEH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAE9C;;;;;OAKG;IAEH,MAAM,CAAC,qBAAqB,CAAC,EAAE,OAAO,EAAgC,EAAE,OAA+B;QAEtG,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SA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AChC,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAE7C,OAAO,IAAI,CAAC,OAAO,CAA6B,yBAAyB,EAAE,aAAa,EAAE,0BAA0B,CAAC,CAAC;IACvH,CAAC;IAED;;;;;OAKG;IAEH,MAAM,CAAC,qBAAqB,CAAC,EAAE,OAAO,EAAgC,EAAE,OAA+B;QAEtG,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QACF,aAAa,CAAC,IAAI,GAAG,OAAO,CAAC;QAC7B,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAChC,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAE7C,OAAO,IAAI,CAAC,OAAO,CAAkB,2BAA2B,EAAE,aAAa,CAAC,CAAC;IAClF,CAAC;IAED;;;;;OAKG;IAEH,MAAM,CAAC,sBAAsB,CAAC,EAAE,IAAI,EAAiC,EAAE,OAA+B;QAErG,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;QAClC,IAAI,IAAI,IAAI,IAAI,EAAE;YACjB,UAAU,CAAC,MAAM,CAAC,MAAM,EAAO,IAAI,CAAC,CAAC;SACrC;QACD,aAAa,CAAC,IAAI,GAAG,UAAU,CAAC;QAChC,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAChC,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAE7C,OAAO,IAAI,CAAC,OAAO,CAAkB,2BAA2B,EAAE,aAAa,CAAC,CAAC;IAClF,CAAC;CACD","sourcesContent":["import { Observable } from 'rxjs';\nimport { EKvHttpMethod, IKvHttpRequest, IKvHttpRequestOptions, IKvHttpResponse } from '../../../core/http';\nimport { StorageData, StorageMetricListPaginated } from '../../../models';\nimport { BaseService } from '../../base.service';\nimport {\n\tICreateHistorianMetricParams,\n\tIDeleteHistorianRangeParams,\n\tIDownloadHistorianMetricsParams,\n\tIGetHistorianMetricAdvancedRangeParams, IGetHistorianMetricLastAdvancedParams, IGetHistorianMetricLastParams, IGetHistorianMetricRangeParams,\n\tIListHistorianMetricParams,\n\tIUpdateHistorianMetricParams,\n\tIUploadHistorianMetricsParams\n} from '../types';\n\n/**\n * @category Service\n */\n\nexport class StorageService extends BaseService {\n\n\t/**\n\t * Create Historian Metric\n\t * Create Historian Metric Create one or more data values for defined times for one or more specific <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 on the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a>. <span style=\\"color: #ff0000;font-weight: bold;\\">WARNING</span> : If a value already exists at the defined time, then it will be overwriten with the new payload value. The old value will be lost and is not recoverable ! **Permission Required:** `kelvin.permission.storage.create`\n\t * @param storage Storage create schema\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic createHistorianMetric({ storage }: ICreateHistorianMetricParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = storage;\n\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'application/json';\n\n\t\treturn this.request<IKvHttpResponse>(`/storage/historian/create`, requestConfig);\n\t}\n\n\t/**\n\t * Delete Historian Range\n\t * Delete Historian Range will delete all associated time series values for selected <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 between a given time range. **Permission Required:** `kelvin.permission.storage.delete`\n\t * @param storage Body of the request\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic deleteHistorianRange({ storage }: IDeleteHistorianRangeParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = storage;\n\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'application/json';\n\n\t\treturn this.request<IKvHttpResponse>(`/storage/historian/range/delete`, requestConfig);\n\t}\n\n\t/**\n\t * Download Historian Metrics\n\t * Download Historian Metrics Returns a **CSV file** with time series data within a for a given time range and given list of <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 in the parameter `selectors`. The downloaded csv file will contain six columns; `name` ( <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> ), `time` ( Timestamp when the data was recorded from source ), `asset_name` ( <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> ), `source` ( <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/' target='_blank'>Kelvin App</a> or <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> that has recorded the data ), `target` ( Custom parameter set by user ), `value` ( value recorded ). **Permission Required:** `kelvin.permission.storage.read`\n\t * @param query Request Schema\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic downloadHistorianMetrics({ query }: IDownloadHistorianMetricsParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = query;\n\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'text/csv';\n\n\t\treturn this.request<IKvHttpResponse>(`/storage/historian/range/download`, requestConfig);\n\t}\n\n\t/**\n\t * Get Historian Metric Advanced Range\n\t * Get Historian Metric Advanced Range Returns a list of recorded values or calculated statistics from the database for one or multiple <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 based on a time range. This does not rely on the workload (<a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> or <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/' target='_blank'>Kelvin App</a>) that records the data to be online. **Permission Required:** `kelvin.permission.storage.read`\n\t * @param body Advanced range schema\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getHistorianMetricAdvancedRange({ body }: IGetHistorianMetricAdvancedRangeParams, options?: IKvHttpRequestOptions): Observable<StorageData[]> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = body;\n\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'application/x-json-stream';\n\n\t\treturn this.request<StorageData[]>(`/storage/historian/range/get`, requestConfig, StorageData);\n\t}\n\n\t/**\n\t * Get Historian Metric Last\n\t * Get Historian Metric Last Returns the last recorded value in the database for 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> pair. This does not rely on the workload (<a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> or <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/' target='_blank'>Kelvin App</a>) that records the data to be online. **Permission Required:** `kelvin.permission.storage.read`\n\t * @param name Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</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 Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</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 fields List of wanted field keys that are recorded in the payload. Normally this will be value.</p> If there are other unique keys/value pairs in the payload, then you can create a list of all keys to retrieve the values. e.g. 'value, key2'. If the key does not exist in the stored payload, that key will return with a value `null`.\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getHistorianMetricLast({ name, assetName, fields }: IGetHistorianMetricLastParams, options?: IKvHttpRequestOptions): Observable<StorageData> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (name != null) {\n\t\t\tqueryParameters['name'] = name;\n\t\t}\n\n\t\tif (assetName != null) {\n\t\t\tqueryParameters['asset_name'] = assetName;\n\t\t}\n\n\t\tif (fields != null) {\n\t\t\tqueryParameters['fields'] = fields;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'application/json';\n\n\t\treturn this.request<StorageData>(`/storage/historian/last/get`, requestConfig, StorageData);\n\t}\n\n\t/**\n\t * Get Historian Metric Last Advanced\n\t * Get Historian Metric Last Advanced Returns an array of last recorded values in the database for each of 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 in the POST. This does not rely on the workload (<a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> or <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/' target='_blank'>Kelvin App</a>) that records the data to be online. **Permission Required:** `kelvin.permission.storage.read`\n\t * @param query Request for multiple Metric selectors\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getHistorianMetricLastAdvanced({ query }: IGetHistorianMetricLastAdvancedParams, options?: IKvHttpRequestOptions): Observable<StorageData[]> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = query;\n\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'application/x-json-stream';\n\n\t\treturn this.request<StorageData[]>(`/storage/historian/last/get`, requestConfig, StorageData);\n\t}\n\n\t/**\n\t * Get Historian Metric Range\n\t * Get Historian Metric Range Returns a list of recorded values or calculated statistics from the database for 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> pair based on a time range. This does not rely on the workload (<a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> or <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/' target='_blank'>Kelvin App</a>) that records the data to be online. **Permission Required:** `kelvin.permission.storage.read`\n\t * @param name Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</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 Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</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 startTime Start time of the recorded time to collect the payload data from the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a> in ISO 8601 UTC date/time format. Example; '2022-07-08T08:41:01.657916Z'.\n\t * @param endTime End time of the recorded time to collect the payload data from the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a> in ISO 8601 UTC date/time format. Example; '2022-07-08T08:41:01.657916Z'.\n\t * @param agg Perform mathematical calculations on a group of data.</p> For numerical data there are twelve mathematical options available; `none` , `count`,`distinct`, `integral`, `mean`, `median`, `mode`, `spread`, `stddev`, `sum`, `max`, `min`.</p> For text based data there are three types of mathematical options available; `count`, `distinct`, `mode`. The default is `none`.</p> When using this parameter, you must also use the parameters `time_bucket` which defines how to group the data and `fields` which defines which payload data to use.\n\t * @param timeBucket Group the data by time frame for the `agg` parameter calculations.</p> The time can be adjusted with these time units `ns`, `ms`, `s`, `m`, `h`. e.g. `8765h` equates to is 8,765 hours which is approximately one year.\n\t * @param timeShift Shift the time buckets from the epoch. Every time bucket starts from epoch so, if you want to calculate the time bucket starting on a different date and time, you'll need to set this. Example: `5m`, `1h`, `1w`.\n\t * @param fill Fills any group of data, which is defined by the `time_bucket` parameter, with a calculated value when there is no data in the database.</p> There are five options available; `none`, `null`, `linear`, `previous`, fixed integer value.</p> `none` will ignore the group. `null`, `previous` and fixed integer value will be added as the value for the empty group. `linear` will perform a linear regression to calculated the groups' value.</p> The default is `none`.\n\t * @param order Order of the results for the timestamp parameter.</p> There are two options available (capital letters is required); `ASC` for ascending and `DESC` for descending. The default is `ASC`.\n\t * @param fields Array of strings which each string representing one key inside the payload. Normally there will be only one key labeled `value`.\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getHistorianMetricRange({ name, assetName, startTime, endTime, agg, timeBucket, timeShift, fill, order, fields }: IGetHistorianMetricRangeParams, options?: IKvHttpRequestOptions): Observable<StorageData[]> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (name != null) {\n\t\t\tqueryParameters['name'] = name;\n\t\t}\n\n\t\tif (assetName != null) {\n\t\t\tqueryParameters['asset_name'] = assetName;\n\t\t}\n\n\t\tif (startTime != null) {\n\t\t\tqueryParameters['start_time'] = startTime.toISOString();\n\t\t}\n\n\t\tif (endTime != null) {\n\t\t\tqueryParameters['end_time'] = endTime.toISOString();\n\t\t}\n\n\t\tif (agg != null) {\n\t\t\tqueryParameters['agg'] = agg;\n\t\t}\n\n\t\tif (timeBucket != null) {\n\t\t\tqueryParameters['time_bucket'] = timeBucket;\n\t\t}\n\n\t\tif (timeShift != null) {\n\t\t\tqueryParameters['time_shift'] = timeShift;\n\t\t}\n\n\t\tif (fill != null) {\n\t\t\tqueryParameters['fill'] = fill;\n\t\t}\n\n\t\tif (order != null) {\n\t\t\tqueryParameters['order'] = order;\n\t\t}\n\n\t\tif (fields != null) {\n\t\t\tqueryParameters['fields'] = fields;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'application/x-json-stream';\n\n\t\treturn this.request<StorageData[]>(`/storage/historian/range/get`, requestConfig, StorageData);\n\t}\n\n\t/**\n\t * List Historian Metric\n\t * List Historian Metric Returns a dictionary with a data property containing a filtered array of <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> pair objects on the <a href='https://docs.kelvininc.com/latest/kelvin-overview/overview/#kelvin-platform' target='_blank'>Kelvin Platform</a>. **Pagination Sortable Columns:** `storage_metric.name`, `storage_metric.asset_name` **Permission Required:** `kelvin.permission.storage.read`\n\t * @param name Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</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 Unique identifier name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</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 search Search and filter the return list. Both the Display Name and the Name for the <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> and <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metrics</a> will be included in the search field criteria. This is given as an array, for example `[pump,fan]`.</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-assets/#asset' target='_blank'>Kelvin Asset</a> name or display name is `centrifugal_pump`, then a match will be made if the search string is `pum` or `FUGaL`.\n\t * @param pageSize Number of <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> pair 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> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pair 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> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pairs 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> / <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> pairs 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 two parameter options; `name` and `asset.name`.</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 listHistorianMetric({ name, assetName, search, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IListHistorianMetricParams = {}, options?: IKvHttpRequestOptions): Observable<StorageMetricListPaginated> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (name != null) {\n\t\t\tqueryParameters['name'] = name;\n\t\t}\n\n\t\tif (assetName != null) {\n\t\t\tqueryParameters['asset_name'] = assetName;\n\t\t}\n\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\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'application/json';\n\n\t\treturn this.request<StorageMetricListPaginated>(`/storage/historian/list`, requestConfig, StorageMetricListPaginated);\n\t}\n\n\t/**\n\t * Update Historian Metric\n\t * Update Historian Metric Updates the `title` parameter of a <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> pair. **Permission Required:** `kelvin.permission.storage.update`\n\t * @param storage Body of the request\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic updateHistorianMetric({ storage }: IUpdateHistorianMetricParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.data = storage;\n\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'application/json';\n\n\t\treturn this.request<IKvHttpResponse>(`/storage/historian/update`, requestConfig);\n\t}\n\n\t/**\n\t * Upload Historian Metrics\n\t * Upload Historian Metrics Accepts a **CSV file** with time series data within a for a given time range and given list of <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 in the parameter `selectors`. The csv file should contain six columns in a comma delimited csv file; `name` ( <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-metrics/' target='_blank'>Kelvin Metric</a> ), `time` ( Timestamp when the data was recorded from source ), `asset_name` ( <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-assets/' target='_blank'>Kelvin Assets</a> ), `source` ( <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-apps/' target='_blank'>Kelvin App</a> or <a href='https://docs.kelvininc.com/latest/kelvin-overview/kelvin-platform/kelvin-bridges/' target='_blank'>Kelvin Bridge</a> that has recorded the data - this value is optional ), `target` ( Custom parameter set by user - this value is optional ), `value` ( value recorded ). The first row must contain the column headers; `name,time,asset_name,source,target,value`. **Permission Required:** `kelvin.permission.storage.create`\n\t * @param file CSV File\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic uploadHistorianMetrics({ file }: IUploadHistorianMetricsParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\tconst formParams = new FormData();\n\t\tif (file != null) {\n\t\t\tformParams.append('file', <any>file);\n\t\t}\n\t\trequestConfig.data = formParams;\n\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'application/json';\n\n\t\treturn this.request<IKvHttpResponse>(`/storage/historian/upload`, requestConfig);\n\t}\n}\n"]}
|
|
@@ -23,8 +23,8 @@ export class ThreadService extends BaseService {
|
|
|
23
23
|
formParams.append('file', file);
|
|
24
24
|
}
|
|
25
25
|
requestConfig.data = formParams;
|
|
26
|
-
requestConfig.mediaType = 'application/json';
|
|
27
26
|
requestConfig.options = options;
|
|
27
|
+
requestConfig.mediaType = 'application/json';
|
|
28
28
|
return this.request(`/threads/create`, requestConfig, Thread);
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
@@ -53,8 +53,8 @@ export class ThreadService extends BaseService {
|
|
|
53
53
|
formParams.append('file', file);
|
|
54
54
|
}
|
|
55
55
|
requestConfig.data = formParams;
|
|
56
|
-
requestConfig.mediaType = 'application/json';
|
|
57
56
|
requestConfig.options = options;
|
|
57
|
+
requestConfig.mediaType = 'application/json';
|
|
58
58
|
return this.request(`/threads/${encodeURIComponent(String(threadId))}/replies/create`, requestConfig, Thread);
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
@@ -67,8 +67,8 @@ export class ThreadService extends BaseService {
|
|
|
67
67
|
const requestConfig = {
|
|
68
68
|
method: 'post'
|
|
69
69
|
};
|
|
70
|
-
requestConfig.mediaType = 'application/json';
|
|
71
70
|
requestConfig.options = options;
|
|
71
|
+
requestConfig.mediaType = 'application/json';
|
|
72
72
|
return this.request(`/threads/${encodeURIComponent(String(threadId))}/delete`, requestConfig);
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
@@ -82,8 +82,8 @@ export class ThreadService extends BaseService {
|
|
|
82
82
|
const requestConfig = {
|
|
83
83
|
method: 'post'
|
|
84
84
|
};
|
|
85
|
-
requestConfig.mediaType = 'application/json';
|
|
86
85
|
requestConfig.options = options;
|
|
86
|
+
requestConfig.mediaType = 'application/json';
|
|
87
87
|
return this.request(`/threads/${encodeURIComponent(String(threadId))}/replies/${encodeURIComponent(String(replyId))}/delete`, requestConfig, Thread);
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
@@ -96,8 +96,8 @@ export class ThreadService extends BaseService {
|
|
|
96
96
|
const requestConfig = {
|
|
97
97
|
method: 'get'
|
|
98
98
|
};
|
|
99
|
-
requestConfig.mediaType = 'application/json';
|
|
100
99
|
requestConfig.options = options;
|
|
100
|
+
requestConfig.mediaType = 'application/json';
|
|
101
101
|
return this.request(`/threads/${encodeURIComponent(String(threadId))}/get`, requestConfig, Thread);
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
@@ -123,8 +123,8 @@ export class ThreadService extends BaseService {
|
|
|
123
123
|
queryParameters['user_id'] = userId;
|
|
124
124
|
}
|
|
125
125
|
requestConfig.params = queryParameters;
|
|
126
|
-
requestConfig.mediaType = 'application/json';
|
|
127
126
|
requestConfig.options = options;
|
|
127
|
+
requestConfig.mediaType = 'application/json';
|
|
128
128
|
return this.request(`/threads/list`, requestConfig, Thread);
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
@@ -147,8 +147,8 @@ export class ThreadService extends BaseService {
|
|
|
147
147
|
formParams.append('file', file);
|
|
148
148
|
}
|
|
149
149
|
requestConfig.data = formParams;
|
|
150
|
-
requestConfig.mediaType = 'application/json';
|
|
151
150
|
requestConfig.options = options;
|
|
151
|
+
requestConfig.mediaType = 'application/json';
|
|
152
152
|
return this.request(`/threads/${encodeURIComponent(String(threadId))}/update`, requestConfig, Thread);
|
|
153
153
|
}
|
|
154
154
|
/**
|
|
@@ -167,8 +167,8 @@ export class ThreadService extends BaseService {
|
|
|
167
167
|
queryParameters['follow'] = follow;
|
|
168
168
|
}
|
|
169
169
|
requestConfig.params = queryParameters;
|
|
170
|
-
requestConfig.mediaType = 'application/json';
|
|
171
170
|
requestConfig.options = options;
|
|
171
|
+
requestConfig.mediaType = 'application/json';
|
|
172
172
|
return this.request(`/threads/${encodeURIComponent(String(threadId))}/follow/update`, requestConfig, Thread);
|
|
173
173
|
}
|
|
174
174
|
/**
|
|
@@ -192,8 +192,8 @@ export class ThreadService extends BaseService {
|
|
|
192
192
|
formParams.append('file', file);
|
|
193
193
|
}
|
|
194
194
|
requestConfig.data = formParams;
|
|
195
|
-
requestConfig.mediaType = 'application/json';
|
|
196
195
|
requestConfig.options = options;
|
|
196
|
+
requestConfig.mediaType = 'application/json';
|
|
197
197
|
return this.request(`/threads/${encodeURIComponent(String(threadId))}/replies/${encodeURIComponent(String(replyId))}/update`, requestConfig, Thread);
|
|
198
198
|
}
|
|
199
199
|
/**
|
|
@@ -212,8 +212,8 @@ export class ThreadService extends BaseService {
|
|
|
212
212
|
queryParameters['seen'] = seen;
|
|
213
213
|
}
|
|
214
214
|
requestConfig.params = queryParameters;
|
|
215
|
-
requestConfig.mediaType = 'application/json';
|
|
216
215
|
requestConfig.options = options;
|
|
216
|
+
requestConfig.mediaType = 'application/json';
|
|
217
217
|
return this.request(`/threads/${encodeURIComponent(String(threadId))}/seen/update`, requestConfig, Thread);
|
|
218
218
|
}
|
|
219
219
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread.service.js","sourceRoot":"","sources":["../../../../../src/services/generated/api/thread.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAWjD;;GAEG;AAEH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAE7C;;;;;;OAMG;IAEH,MAAM,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,IAAI,EAAuB,EAAE,OAA+B;QAEvF,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;QAClC,IAAI,IAAI,IAAI,IAAI,EAAE;YACjB,UAAU,CAAC,MAAM,CAAC,MAAM,EAAO,IAAI,CAAC,CAAC;SACrC;QACD,IAAI,IAAI,IAAI,IAAI,EAAE;YACjB,UAAU,CAAC,MAAM,CAAC,MAAM,EAAO,IAAI,CAAC,CAAC;SACrC;QACD,aAAa,CAAC,IAAI,GAAG,UAAU,CAAC;QAEhC,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,C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BAAgB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAA2B,EAAE,OAA+B;QAEnG,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QAEF,MAAM,eAAe,GAAG,EAAE,CAAC;QAC3B,IAAI,IAAI,IAAI,IAAI,EAAE;YACjB,eAAe,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;SAC/B;QAED,aAAa,CAAC,MAAM,GAAG,eAAe,CAAC;QAEvC,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAC7C,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAEhC,OAAO,IAAI,CAAC,OAAO,CAAS,YAAY,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,cAAc,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC;IACpH,CAAC;CACD","sourcesContent":["import { Observable } from 'rxjs';\nimport { EKvHttpMethod, IKvHttpRequest, IKvHttpRequestOptions, IKvHttpResponse } from '../../../core/http';\nimport { Thread } from '../../../models';\nimport { BaseService } from '../../base.service';\nimport {\n\tICreateThreadParams,\n\tICreateThreadReplyParams,\n\tIDeleteThreadParams,\n\tIDeleteThreadReplyParams,\n\tIGetThreadParams,\n\tIListThreadsParams, IUpdateThreadFollowParams, IUpdateThreadParams, IUpdateThreadReplyParams,\n\tIUpdateThreadSeenParams\n} from '../types';\n\n/**\n * @category Service\n */\n\nexport class ThreadService extends BaseService {\n\n\t/**\n\t * Create Thread\n\t * Create Thread **Permission Required:** `kelvin.permission.thread.create`\n\t * @param body requests.ThreadCreate schema\n\t * @param file Attachment\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic createThread({ body, file }: ICreateThreadParams, options?: IKvHttpRequestOptions): Observable<Thread> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\tconst formParams = new FormData();\n\t\tif (body != null) {\n\t\t\tformParams.append('body', <any>body);\n\t\t}\n\t\tif (file != null) {\n\t\t\tformParams.append('file', <any>file);\n\t\t}\n\t\trequestConfig.data = formParams;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<Thread>(`/threads/create`, requestConfig, Thread);\n\t}\n\n\t/**\n\t * Create Thread Reply\n\t * Create Thread Reply **Permission Required:** `kelvin.permission.thread.create`\n\t * @param body requests.ThreadReplyCreate schema\n\t * @param threadId Thread ID\n\t * @param file Attachment\n\t * @param replyId Reply ID\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic createThreadReply({ body, threadId, file, replyId }: ICreateThreadReplyParams, options?: IKvHttpRequestOptions): Observable<Thread> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (replyId != null) {\n\t\t\tqueryParameters['reply_id'] = replyId;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\t\tconst formParams = new FormData();\n\t\tif (body != null) {\n\t\t\tformParams.append('body', <any>body);\n\t\t}\n\t\tif (file != null) {\n\t\t\tformParams.append('file', <any>file);\n\t\t}\n\t\trequestConfig.data = formParams;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<Thread>(`/threads/${encodeURIComponent(String(threadId))}/replies/create`, requestConfig, Thread);\n\t}\n\n\t/**\n\t * Delete Thread\n\t * Delete Thread **Permission Required:** `kelvin.permission.thread.delete`\n\t * @param threadId Thread ID\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic deleteThread({ threadId }: IDeleteThreadParams, 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>(`/threads/${encodeURIComponent(String(threadId))}/delete`, requestConfig);\n\t}\n\n\t/**\n\t * Delete Thread Reply\n\t * Delete Thread Reply **Permission Required:** `kelvin.permission.thread.delete`\n\t * @param threadId Thread ID\n\t * @param replyId Reply ID\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic deleteThreadReply({ threadId, replyId }: IDeleteThreadReplyParams, options?: IKvHttpRequestOptions): Observable<Thread> {\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<Thread>(`/threads/${encodeURIComponent(String(threadId))}/replies/${encodeURIComponent(String(replyId))}/delete`, requestConfig, Thread);\n\t}\n\n\t/**\n\t * Get Thread\n\t * Get Thread **Permission Required:** `kelvin.permission.thread.read`\n\t * @param threadId Thread ID\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getThread({ threadId }: IGetThreadParams, options?: IKvHttpRequestOptions): Observable<Thread> {\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<Thread>(`/threads/${encodeURIComponent(String(threadId))}/get`, requestConfig, Thread);\n\t}\n\n\t/**\n\t * List Threads\n\t * List Threads **Pagination Sortable Columns:** `thread.id` **Permission Required:** `kelvin.permission.thread.read`\n\t * @param type Filter threads by type\n\t * @param relatedTo Filter threads by related_to\n\t * @param userId Filter threads by user_id\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic listThreads({ type, relatedTo, userId }: IListThreadsParams = {}, options?: IKvHttpRequestOptions): Observable<Thread[]> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (type != null) {\n\t\t\tqueryParameters['type'] = type;\n\t\t}\n\n\t\tif (relatedTo != null) {\n\t\t\tqueryParameters['related_to'] = relatedTo;\n\t\t}\n\n\t\tif (userId != null) {\n\t\t\tqueryParameters['user_id'] = userId;\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<Thread[]>(`/threads/list`, requestConfig, Thread);\n\t}\n\n\t/**\n\t * Update Thread\n\t * Update Thread **Permission Required:** `kelvin.permission.thread.update`\n\t * @param body requests.ThreadUpdate schema\n\t * @param threadId Thread ID\n\t * @param file Attachment\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic updateThread({ body, threadId, file }: IUpdateThreadParams, options?: IKvHttpRequestOptions): Observable<Thread> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\tconst formParams = new FormData();\n\t\tif (body != null) {\n\t\t\tformParams.append('body', <any>body);\n\t\t}\n\t\tif (file != null) {\n\t\t\tformParams.append('file', <any>file);\n\t\t}\n\t\trequestConfig.data = formParams;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<Thread>(`/threads/${encodeURIComponent(String(threadId))}/update`, requestConfig, Thread);\n\t}\n\n\t/**\n\t * Update Thread Follow\n\t * Update Thread Follow **Permission Required:** `kelvin.permission.thread.read`\n\t * @param threadId Thread ID\n\t * @param follow Set user follow value to true or false\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic updateThreadFollow({ threadId, follow }: IUpdateThreadFollowParams, options?: IKvHttpRequestOptions): Observable<Thread> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (follow != null) {\n\t\t\tqueryParameters['follow'] = follow;\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<Thread>(`/threads/${encodeURIComponent(String(threadId))}/follow/update`, requestConfig, Thread);\n\t}\n\n\t/**\n\t * Update Thread Reply\n\t * Update Thread Reply **Permission Required:** `kelvin.permission.thread.update`\n\t * @param body requests.ThreadReplyUpdate schema\n\t * @param threadId Thread ID\n\t * @param replyId Reply ID\n\t * @param file Attachment\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic updateThreadReply({ body, threadId, replyId, file }: IUpdateThreadReplyParams, options?: IKvHttpRequestOptions): Observable<Thread> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\tconst formParams = new FormData();\n\t\tif (body != null) {\n\t\t\tformParams.append('body', <any>body);\n\t\t}\n\t\tif (file != null) {\n\t\t\tformParams.append('file', <any>file);\n\t\t}\n\t\trequestConfig.data = formParams;\n\n\t\trequestConfig.mediaType = 'application/json';\n\t\trequestConfig.options = options;\n\n\t\treturn this.request<Thread>(`/threads/${encodeURIComponent(String(threadId))}/replies/${encodeURIComponent(String(replyId))}/update`, requestConfig, Thread);\n\t}\n\n\t/**\n\t * Update Thread Seen\n\t * Update Thread Seen **Permission Required:** `kelvin.permission.thread.read`\n\t * @param threadId Thread ID\n\t * @param seen Set user seen value to true or false\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic updateThreadSeen({ threadId, seen }: IUpdateThreadSeenParams, options?: IKvHttpRequestOptions): Observable<Thread> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (seen != null) {\n\t\t\tqueryParameters['seen'] = seen;\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<Thread>(`/threads/${encodeURIComponent(String(threadId))}/seen/update`, requestConfig, Thread);\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"thread.service.js","sourceRoot":"","sources":["../../../../../src/services/generated/api/thread.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAWjD;;GAEG;AAEH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAE7C;;;;;;OAMG;IAEH,MAAM,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,IAAI,EAAuB,EAAE,OAA+B;QAEvF,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;QAClC,IAAI,IAAI,IAAI,IAAI,EAAE;YACjB,UAAU,CAAC,MAAM,CAAC,MAAM,EAAO,IAAI,CAAC,CAAC;SACrC;QACD,IAAI,IAAI,IAAI,IAAI,EAAE;YACjB,UAAU,CAAC,MAAM,CAAC,MAAM,EAAO,IAAI,CAAC,CAAC;SACrC;QACD,aAAa,CAAC,IAAI,GAAG,UAAU,CAAC;QAChC,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;QAChC,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAE7C,OAAO,IAAI,CAAC,OAAO,CAAS,iBAAiB,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;OAQG;IAEH,MAAM,CAAC,iBAAiB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAA4B,EAAE,OAA+B;QAEpH,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,MAAuB;SAC/B,CAAC;QAEF,MAAM,eAAe,GAAG,EAAE,CAAC;QAC3B,IAAI,OAAO,IAAI,I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BAAkB,CAAC;QAE7C,OAAO,IAAI,CAAC,OAAO,CAAS,YAAY,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,cAAc,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC;IACpH,CAAC;CACD","sourcesContent":["import { Observable } from 'rxjs';\nimport { EKvHttpMethod, IKvHttpRequest, IKvHttpRequestOptions, IKvHttpResponse } from '../../../core/http';\nimport { Thread } from '../../../models';\nimport { BaseService } from '../../base.service';\nimport {\n\tICreateThreadParams,\n\tICreateThreadReplyParams,\n\tIDeleteThreadParams,\n\tIDeleteThreadReplyParams,\n\tIGetThreadParams,\n\tIListThreadsParams, IUpdateThreadFollowParams, IUpdateThreadParams, IUpdateThreadReplyParams,\n\tIUpdateThreadSeenParams\n} from '../types';\n\n/**\n * @category Service\n */\n\nexport class ThreadService extends BaseService {\n\n\t/**\n\t * Create Thread\n\t * Create Thread **Permission Required:** `kelvin.permission.thread.create`\n\t * @param body requests.ThreadCreate schema\n\t * @param file Attachment\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic createThread({ body, file }: ICreateThreadParams, options?: IKvHttpRequestOptions): Observable<Thread> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\tconst formParams = new FormData();\n\t\tif (body != null) {\n\t\t\tformParams.append('body', <any>body);\n\t\t}\n\t\tif (file != null) {\n\t\t\tformParams.append('file', <any>file);\n\t\t}\n\t\trequestConfig.data = formParams;\n\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'application/json';\n\n\t\treturn this.request<Thread>(`/threads/create`, requestConfig, Thread);\n\t}\n\n\t/**\n\t * Create Thread Reply\n\t * Create Thread Reply **Permission Required:** `kelvin.permission.thread.create`\n\t * @param body requests.ThreadReplyCreate schema\n\t * @param threadId Thread ID\n\t * @param file Attachment\n\t * @param replyId Reply ID\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic createThreadReply({ body, threadId, file, replyId }: ICreateThreadReplyParams, options?: IKvHttpRequestOptions): Observable<Thread> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (replyId != null) {\n\t\t\tqueryParameters['reply_id'] = replyId;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\t\tconst formParams = new FormData();\n\t\tif (body != null) {\n\t\t\tformParams.append('body', <any>body);\n\t\t}\n\t\tif (file != null) {\n\t\t\tformParams.append('file', <any>file);\n\t\t}\n\t\trequestConfig.data = formParams;\n\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'application/json';\n\n\t\treturn this.request<Thread>(`/threads/${encodeURIComponent(String(threadId))}/replies/create`, requestConfig, Thread);\n\t}\n\n\t/**\n\t * Delete Thread\n\t * Delete Thread **Permission Required:** `kelvin.permission.thread.delete`\n\t * @param threadId Thread ID\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic deleteThread({ threadId }: IDeleteThreadParams, options?: IKvHttpRequestOptions): Observable<IKvHttpResponse> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'application/json';\n\n\t\treturn this.request<IKvHttpResponse>(`/threads/${encodeURIComponent(String(threadId))}/delete`, requestConfig);\n\t}\n\n\t/**\n\t * Delete Thread Reply\n\t * Delete Thread Reply **Permission Required:** `kelvin.permission.thread.delete`\n\t * @param threadId Thread ID\n\t * @param replyId Reply ID\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic deleteThreadReply({ threadId, replyId }: IDeleteThreadReplyParams, options?: IKvHttpRequestOptions): Observable<Thread> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'application/json';\n\n\t\treturn this.request<Thread>(`/threads/${encodeURIComponent(String(threadId))}/replies/${encodeURIComponent(String(replyId))}/delete`, requestConfig, Thread);\n\t}\n\n\t/**\n\t * Get Thread\n\t * Get Thread **Permission Required:** `kelvin.permission.thread.read`\n\t * @param threadId Thread ID\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getThread({ threadId }: IGetThreadParams, options?: IKvHttpRequestOptions): Observable<Thread> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'application/json';\n\n\t\treturn this.request<Thread>(`/threads/${encodeURIComponent(String(threadId))}/get`, requestConfig, Thread);\n\t}\n\n\t/**\n\t * List Threads\n\t * List Threads **Pagination Sortable Columns:** `thread.id` **Permission Required:** `kelvin.permission.thread.read`\n\t * @param type Filter threads by type\n\t * @param relatedTo Filter threads by related_to\n\t * @param userId Filter threads by user_id\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic listThreads({ type, relatedTo, userId }: IListThreadsParams = {}, options?: IKvHttpRequestOptions): Observable<Thread[]> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (type != null) {\n\t\t\tqueryParameters['type'] = type;\n\t\t}\n\n\t\tif (relatedTo != null) {\n\t\t\tqueryParameters['related_to'] = relatedTo;\n\t\t}\n\n\t\tif (userId != null) {\n\t\t\tqueryParameters['user_id'] = userId;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'application/json';\n\n\t\treturn this.request<Thread[]>(`/threads/list`, requestConfig, Thread);\n\t}\n\n\t/**\n\t * Update Thread\n\t * Update Thread **Permission Required:** `kelvin.permission.thread.update`\n\t * @param body requests.ThreadUpdate schema\n\t * @param threadId Thread ID\n\t * @param file Attachment\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic updateThread({ body, threadId, file }: IUpdateThreadParams, options?: IKvHttpRequestOptions): Observable<Thread> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\tconst formParams = new FormData();\n\t\tif (body != null) {\n\t\t\tformParams.append('body', <any>body);\n\t\t}\n\t\tif (file != null) {\n\t\t\tformParams.append('file', <any>file);\n\t\t}\n\t\trequestConfig.data = formParams;\n\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'application/json';\n\n\t\treturn this.request<Thread>(`/threads/${encodeURIComponent(String(threadId))}/update`, requestConfig, Thread);\n\t}\n\n\t/**\n\t * Update Thread Follow\n\t * Update Thread Follow **Permission Required:** `kelvin.permission.thread.read`\n\t * @param threadId Thread ID\n\t * @param follow Set user follow value to true or false\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic updateThreadFollow({ threadId, follow }: IUpdateThreadFollowParams, options?: IKvHttpRequestOptions): Observable<Thread> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (follow != null) {\n\t\t\tqueryParameters['follow'] = follow;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'application/json';\n\n\t\treturn this.request<Thread>(`/threads/${encodeURIComponent(String(threadId))}/follow/update`, requestConfig, Thread);\n\t}\n\n\t/**\n\t * Update Thread Reply\n\t * Update Thread Reply **Permission Required:** `kelvin.permission.thread.update`\n\t * @param body requests.ThreadReplyUpdate schema\n\t * @param threadId Thread ID\n\t * @param replyId Reply ID\n\t * @param file Attachment\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic updateThreadReply({ body, threadId, replyId, file }: IUpdateThreadReplyParams, options?: IKvHttpRequestOptions): Observable<Thread> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\t\tconst formParams = new FormData();\n\t\tif (body != null) {\n\t\t\tformParams.append('body', <any>body);\n\t\t}\n\t\tif (file != null) {\n\t\t\tformParams.append('file', <any>file);\n\t\t}\n\t\trequestConfig.data = formParams;\n\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'application/json';\n\n\t\treturn this.request<Thread>(`/threads/${encodeURIComponent(String(threadId))}/replies/${encodeURIComponent(String(replyId))}/update`, requestConfig, Thread);\n\t}\n\n\t/**\n\t * Update Thread Seen\n\t * Update Thread Seen **Permission Required:** `kelvin.permission.thread.read`\n\t * @param threadId Thread ID\n\t * @param seen Set user seen value to true or false\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic updateThreadSeen({ threadId, seen }: IUpdateThreadSeenParams, options?: IKvHttpRequestOptions): Observable<Thread> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'post' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (seen != null) {\n\t\t\tqueryParameters['seen'] = seen;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'application/json';\n\n\t\treturn this.request<Thread>(`/threads/${encodeURIComponent(String(threadId))}/seen/update`, requestConfig, Thread);\n\t}\n}\n"]}
|
|
@@ -19,8 +19,8 @@ export class UIService extends BaseService {
|
|
|
19
19
|
queryParameters['group_name'] = groupName;
|
|
20
20
|
}
|
|
21
21
|
requestConfig.params = queryParameters;
|
|
22
|
-
requestConfig.mediaType = 'application/json';
|
|
23
22
|
requestConfig.options = options;
|
|
23
|
+
requestConfig.mediaType = 'application/json';
|
|
24
24
|
return this.request(`/ui/emissions/dashboard/get`, requestConfig, EmissionsDashboard);
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
@@ -56,8 +56,8 @@ export class UIService extends BaseService {
|
|
|
56
56
|
}
|
|
57
57
|
requestConfig.params = queryParameters;
|
|
58
58
|
requestConfig.data = processes;
|
|
59
|
-
requestConfig.mediaType = 'application/json';
|
|
60
59
|
requestConfig.options = options;
|
|
60
|
+
requestConfig.mediaType = 'application/json';
|
|
61
61
|
return this.request(`/ui/processes/list`, requestConfig, FullMapListPaginated);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uI.service.js","sourceRoot":"","sources":["../../../../../src/services/generated/api/uI.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAMjD;;GAEG;AAEH,MAAM,OAAO,SAAU,SAAQ,WAAW;IAEzC;;;;;OAKG;IAEH,MAAM,CAAC,qBAAqB,CAAC,EAAE,SAAS,EAAgC,EAAE,OAA+B;QAExG,MAAM,aAAa,GAAmB;YACrC,MAAM,EAAE,KAAsB;SAC9B,CAAC;QAEF,MAAM,eAAe,GAAG,EAAE,CAAC;QAC3B,IAAI,SAAS,IAAI,IAAI,EAAE;YACtB,eAAe,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;SAC1C;QAED,aAAa,CAAC,MAAM,GAAG,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"uI.service.js","sourceRoot":"","sources":["../../../../../src/services/generated/api/uI.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAMjD;;GAEG;AAEH,MAAM,OAAO,SAAU,SAAQ,WAAW;IAEzC;;;;;OAKG;IAEH,MAAM,CAAC,qBAAqB,CAAC,EAAE,SAAS,EAAgC,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AC,OAAO,GAAG,OAAO,CAAC;QAChC,aAAa,CAAC,SAAS,GAAG,kBAAkB,CAAC;QAE7C,OAAO,IAAI,CAAC,OAAO,CAAuB,oBAAoB,EAAE,aAAa,EAAE,oBAAoB,CAAC,CAAC;IACtG,CAAC;CACD","sourcesContent":["import { Observable } from 'rxjs';\nimport { EKvHttpMethod, IKvHttpRequest, IKvHttpRequestOptions } from '../../../core/http';\nimport { EmissionsDashboard, FullMapListPaginated } from '../../../models';\nimport { BaseService } from '../../base.service';\nimport {\n\tIGetEmissionsDashboardParams,\n\tIListProcessesParams\n} from '../types';\n\n/**\n * @category Service\n */\n\nexport class UIService extends BaseService {\n\n\t/**\n\t * Get Emissions Dashboard\n\t * Get Emissions Dashboard endpoint that will provide the data to be presented in the maps/emissions dashboard **Permission Required:** `kelvin.permission.ui.read`\n\t * @param groupName The assets group name filter\n\t * @param {IKvHttpRequestOptions} options Request optional parameters\n\t */\n\n\tstatic getEmissionsDashboard({ groupName }: IGetEmissionsDashboardParams, options?: IKvHttpRequestOptions): Observable<EmissionsDashboard> {\n\n\t\tconst requestConfig: IKvHttpRequest = {\n\t\t\tmethod: 'get' as EKvHttpMethod\n\t\t};\n\n\t\tconst queryParameters = {};\n\t\tif (groupName != null) {\n\t\t\tqueryParameters['group_name'] = groupName;\n\t\t}\n\n\t\trequestConfig.params = queryParameters;\n\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'application/json';\n\n\t\treturn this.request<EmissionsDashboard>(`/ui/emissions/dashboard/get`, requestConfig, EmissionsDashboard);\n\t}\n\n\t/**\n\t * List Processes\n\t * List Processes **Pagination Sortable Columns:** `map.name`, `map.title`, `start_date`, `mode`, `map.asset_name` **Permission Required:** `kelvin.permission.ui.read`\n\t * @param processes Processes list schema\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 listProcesses({ processes, pageSize, startingAfter, endingBefore, sortBy, sortAsc }: IListProcessesParams, options?: IKvHttpRequestOptions): Observable<FullMapListPaginated> {\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 = processes;\n\t\trequestConfig.options = options;\n\t\trequestConfig.mediaType = 'application/json';\n\n\t\treturn this.request<FullMapListPaginated>(`/ui/processes/list`, requestConfig, FullMapListPaginated);\n\t}\n}\n"]}
|
|
@@ -14,8 +14,8 @@ export class UserService extends BaseService {
|
|
|
14
14
|
const requestConfig = {
|
|
15
15
|
method: 'post'
|
|
16
16
|
};
|
|
17
|
-
requestConfig.mediaType = 'application/json';
|
|
18
17
|
requestConfig.options = options;
|
|
18
|
+
requestConfig.mediaType = 'application/json';
|
|
19
19
|
return this.request(`/users/settings/${encodeURIComponent(String(settingName))}/delete`, requestConfig);
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
@@ -27,8 +27,8 @@ export class UserService extends BaseService {
|
|
|
27
27
|
const requestConfig = {
|
|
28
28
|
method: 'get'
|
|
29
29
|
};
|
|
30
|
-
requestConfig.mediaType = 'application/json';
|
|
31
30
|
requestConfig.options = options;
|
|
31
|
+
requestConfig.mediaType = 'application/json';
|
|
32
32
|
return this.request(`/users/me`, requestConfig, UserWithPermissions);
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
@@ -40,8 +40,8 @@ export class UserService extends BaseService {
|
|
|
40
40
|
const requestConfig = {
|
|
41
41
|
method: 'get'
|
|
42
42
|
};
|
|
43
|
-
requestConfig.mediaType = 'application/json';
|
|
44
43
|
requestConfig.options = options;
|
|
44
|
+
requestConfig.mediaType = 'application/json';
|
|
45
45
|
return this.request(`/users/settings/kelvin-contact-info/get`, requestConfig, UserSettingItem);
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
@@ -53,8 +53,8 @@ export class UserService extends BaseService {
|
|
|
53
53
|
const requestConfig = {
|
|
54
54
|
method: 'get'
|
|
55
55
|
};
|
|
56
|
-
requestConfig.mediaType = 'application/json';
|
|
57
56
|
requestConfig.options = options;
|
|
57
|
+
requestConfig.mediaType = 'application/json';
|
|
58
58
|
return this.request(`/users/settings/kelvin-notifications/get`, requestConfig, UserSettingItem);
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
@@ -67,8 +67,8 @@ export class UserService extends BaseService {
|
|
|
67
67
|
const requestConfig = {
|
|
68
68
|
method: 'get'
|
|
69
69
|
};
|
|
70
|
-
requestConfig.mediaType = 'application/json';
|
|
71
70
|
requestConfig.options = options;
|
|
71
|
+
requestConfig.mediaType = 'application/json';
|
|
72
72
|
return this.request(`/users/${encodeURIComponent(String(userId))}/get`, requestConfig, User);
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
@@ -81,8 +81,8 @@ export class UserService extends BaseService {
|
|
|
81
81
|
const requestConfig = {
|
|
82
82
|
method: 'get'
|
|
83
83
|
};
|
|
84
|
-
requestConfig.mediaType = 'application/json';
|
|
85
84
|
requestConfig.options = options;
|
|
85
|
+
requestConfig.mediaType = 'application/json';
|
|
86
86
|
return this.request(`/users/settings/${encodeURIComponent(String(settingName))}/get`, requestConfig, UserSettingItem);
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
@@ -132,8 +132,8 @@ export class UserService extends BaseService {
|
|
|
132
132
|
queryParameters['sort_asc'] = sortAsc;
|
|
133
133
|
}
|
|
134
134
|
requestConfig.params = queryParameters;
|
|
135
|
-
requestConfig.mediaType = 'application/json';
|
|
136
135
|
requestConfig.options = options;
|
|
136
|
+
requestConfig.mediaType = 'application/json';
|
|
137
137
|
return this.request(`/users/list`, requestConfig, UserListPaginated);
|
|
138
138
|
}
|
|
139
139
|
/**
|
|
@@ -171,8 +171,8 @@ export class UserService extends BaseService {
|
|
|
171
171
|
queryParameters['sort_asc'] = sortAsc;
|
|
172
172
|
}
|
|
173
173
|
requestConfig.params = queryParameters;
|
|
174
|
-
requestConfig.mediaType = 'application/json';
|
|
175
174
|
requestConfig.options = options;
|
|
175
|
+
requestConfig.mediaType = 'application/json';
|
|
176
176
|
return this.request(`/users/settings/list`, requestConfig, UserSettingsListPaginated);
|
|
177
177
|
}
|
|
178
178
|
/**
|
|
@@ -186,8 +186,8 @@ export class UserService extends BaseService {
|
|
|
186
186
|
method: 'post'
|
|
187
187
|
};
|
|
188
188
|
requestConfig.data = setting;
|
|
189
|
-
requestConfig.mediaType = 'application/json';
|
|
190
189
|
requestConfig.options = options;
|
|
190
|
+
requestConfig.mediaType = 'application/json';
|
|
191
191
|
return this.request(`/users/settings/kelvin-contact-info/update`, requestConfig, UserSettingItem);
|
|
192
192
|
}
|
|
193
193
|
/**
|
|
@@ -201,8 +201,8 @@ export class UserService extends BaseService {
|
|
|
201
201
|
method: 'post'
|
|
202
202
|
};
|
|
203
203
|
requestConfig.data = setting;
|
|
204
|
-
requestConfig.mediaType = 'application/json';
|
|
205
204
|
requestConfig.options = options;
|
|
205
|
+
requestConfig.mediaType = 'application/json';
|
|
206
206
|
return this.request(`/users/settings/kelvin-notifications/update`, requestConfig, UserSettingItem);
|
|
207
207
|
}
|
|
208
208
|
/**
|
|
@@ -217,8 +217,8 @@ export class UserService extends BaseService {
|
|
|
217
217
|
method: 'post'
|
|
218
218
|
};
|
|
219
219
|
requestConfig.data = setting;
|
|
220
|
-
requestConfig.mediaType = 'application/json';
|
|
221
220
|
requestConfig.options = options;
|
|
221
|
+
requestConfig.mediaType = 'application/json';
|
|
222
222
|
return this.request(`/users/settings/${encodeURIComponent(String(settingName))}/update`, requestConfig, UserSettingItem);
|
|
223
223
|
}
|
|
224
224
|
}
|