@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
|
@@ -18,8 +18,8 @@ class StorageService extends base_service_1.BaseService {
|
|
|
18
18
|
method: 'post'
|
|
19
19
|
};
|
|
20
20
|
requestConfig.data = storage;
|
|
21
|
-
requestConfig.mediaType = 'application/json';
|
|
22
21
|
requestConfig.options = options;
|
|
22
|
+
requestConfig.mediaType = 'application/json';
|
|
23
23
|
return this.request(`/storage/historian/create`, requestConfig);
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
@@ -33,8 +33,8 @@ class StorageService extends base_service_1.BaseService {
|
|
|
33
33
|
method: 'post'
|
|
34
34
|
};
|
|
35
35
|
requestConfig.data = storage;
|
|
36
|
-
requestConfig.mediaType = 'application/json';
|
|
37
36
|
requestConfig.options = options;
|
|
37
|
+
requestConfig.mediaType = 'application/json';
|
|
38
38
|
return this.request(`/storage/historian/range/delete`, requestConfig);
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
@@ -48,8 +48,8 @@ class StorageService extends base_service_1.BaseService {
|
|
|
48
48
|
method: 'post'
|
|
49
49
|
};
|
|
50
50
|
requestConfig.data = query;
|
|
51
|
-
requestConfig.mediaType = 'text/csv';
|
|
52
51
|
requestConfig.options = options;
|
|
52
|
+
requestConfig.mediaType = 'text/csv';
|
|
53
53
|
return this.request(`/storage/historian/range/download`, requestConfig);
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
@@ -63,8 +63,8 @@ class StorageService extends base_service_1.BaseService {
|
|
|
63
63
|
method: 'post'
|
|
64
64
|
};
|
|
65
65
|
requestConfig.data = body;
|
|
66
|
-
requestConfig.mediaType = 'application/x-json-stream';
|
|
67
66
|
requestConfig.options = options;
|
|
67
|
+
requestConfig.mediaType = 'application/x-json-stream';
|
|
68
68
|
return this.request(`/storage/historian/range/get`, requestConfig, models_1.StorageData);
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
@@ -90,8 +90,8 @@ class StorageService extends base_service_1.BaseService {
|
|
|
90
90
|
queryParameters['fields'] = fields;
|
|
91
91
|
}
|
|
92
92
|
requestConfig.params = queryParameters;
|
|
93
|
-
requestConfig.mediaType = 'application/json';
|
|
94
93
|
requestConfig.options = options;
|
|
94
|
+
requestConfig.mediaType = 'application/json';
|
|
95
95
|
return this.request(`/storage/historian/last/get`, requestConfig, models_1.StorageData);
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
@@ -105,8 +105,8 @@ class StorageService extends base_service_1.BaseService {
|
|
|
105
105
|
method: 'post'
|
|
106
106
|
};
|
|
107
107
|
requestConfig.data = query;
|
|
108
|
-
requestConfig.mediaType = 'application/x-json-stream';
|
|
109
108
|
requestConfig.options = options;
|
|
109
|
+
requestConfig.mediaType = 'application/x-json-stream';
|
|
110
110
|
return this.request(`/storage/historian/last/get`, requestConfig, models_1.StorageData);
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
@@ -160,8 +160,8 @@ class StorageService extends base_service_1.BaseService {
|
|
|
160
160
|
queryParameters['fields'] = fields;
|
|
161
161
|
}
|
|
162
162
|
requestConfig.params = queryParameters;
|
|
163
|
-
requestConfig.mediaType = 'application/x-json-stream';
|
|
164
163
|
requestConfig.options = options;
|
|
164
|
+
requestConfig.mediaType = 'application/x-json-stream';
|
|
165
165
|
return this.request(`/storage/historian/range/get`, requestConfig, models_1.StorageData);
|
|
166
166
|
}
|
|
167
167
|
/**
|
|
@@ -207,8 +207,8 @@ class StorageService extends base_service_1.BaseService {
|
|
|
207
207
|
queryParameters['sort_asc'] = sortAsc;
|
|
208
208
|
}
|
|
209
209
|
requestConfig.params = queryParameters;
|
|
210
|
-
requestConfig.mediaType = 'application/json';
|
|
211
210
|
requestConfig.options = options;
|
|
211
|
+
requestConfig.mediaType = 'application/json';
|
|
212
212
|
return this.request(`/storage/historian/list`, requestConfig, models_1.StorageMetricListPaginated);
|
|
213
213
|
}
|
|
214
214
|
/**
|
|
@@ -222,8 +222,8 @@ class StorageService extends base_service_1.BaseService {
|
|
|
222
222
|
method: 'post'
|
|
223
223
|
};
|
|
224
224
|
requestConfig.data = storage;
|
|
225
|
-
requestConfig.mediaType = 'application/json';
|
|
226
225
|
requestConfig.options = options;
|
|
226
|
+
requestConfig.mediaType = 'application/json';
|
|
227
227
|
return this.request(`/storage/historian/update`, requestConfig);
|
|
228
228
|
}
|
|
229
229
|
/**
|
|
@@ -241,8 +241,8 @@ class StorageService extends base_service_1.BaseService {
|
|
|
241
241
|
formParams.append('file', file);
|
|
242
242
|
}
|
|
243
243
|
requestConfig.data = formParams;
|
|
244
|
-
requestConfig.mediaType = 'application/json';
|
|
245
244
|
requestConfig.options = options;
|
|
245
|
+
requestConfig.mediaType = 'application/json';
|
|
246
246
|
return this.request(`/storage/historian/upload`, requestConfig);
|
|
247
247
|
}
|
|
248
248
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.service.js","sourceRoot":"","sources":["../../../../../src/services/generated/api/storage.service.ts"],"names":[],"mappings":";;;AAEA,4CAA0E;AAC1E,qDAAiD;AAWjD;;GAEG;AAEH,MAAa,cAAe,SAAQ,0BAAW;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,MAAu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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;AAzTD,wCAyTC","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,4CAA0E;AAC1E,qDAAiD;AAWjD;;GAEG;AAEH,MAAa,cAAe,SAAQ,0BAAW;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;QAC7B,aAAa,CAAC,OA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OAAO,CAA6B,yBAAyB,EAAE,aAAa,EAAE,mCAA0B,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;AA/SD,wCA+SC","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"]}
|
|
@@ -26,8 +26,8 @@ class ThreadService extends base_service_1.BaseService {
|
|
|
26
26
|
formParams.append('file', file);
|
|
27
27
|
}
|
|
28
28
|
requestConfig.data = formParams;
|
|
29
|
-
requestConfig.mediaType = 'application/json';
|
|
30
29
|
requestConfig.options = options;
|
|
30
|
+
requestConfig.mediaType = 'application/json';
|
|
31
31
|
return this.request(`/threads/create`, requestConfig, models_1.Thread);
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
@@ -56,8 +56,8 @@ class ThreadService extends base_service_1.BaseService {
|
|
|
56
56
|
formParams.append('file', file);
|
|
57
57
|
}
|
|
58
58
|
requestConfig.data = formParams;
|
|
59
|
-
requestConfig.mediaType = 'application/json';
|
|
60
59
|
requestConfig.options = options;
|
|
60
|
+
requestConfig.mediaType = 'application/json';
|
|
61
61
|
return this.request(`/threads/${encodeURIComponent(String(threadId))}/replies/create`, requestConfig, models_1.Thread);
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
@@ -70,8 +70,8 @@ class ThreadService extends base_service_1.BaseService {
|
|
|
70
70
|
const requestConfig = {
|
|
71
71
|
method: 'post'
|
|
72
72
|
};
|
|
73
|
-
requestConfig.mediaType = 'application/json';
|
|
74
73
|
requestConfig.options = options;
|
|
74
|
+
requestConfig.mediaType = 'application/json';
|
|
75
75
|
return this.request(`/threads/${encodeURIComponent(String(threadId))}/delete`, requestConfig);
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
@@ -85,8 +85,8 @@ class ThreadService extends base_service_1.BaseService {
|
|
|
85
85
|
const requestConfig = {
|
|
86
86
|
method: 'post'
|
|
87
87
|
};
|
|
88
|
-
requestConfig.mediaType = 'application/json';
|
|
89
88
|
requestConfig.options = options;
|
|
89
|
+
requestConfig.mediaType = 'application/json';
|
|
90
90
|
return this.request(`/threads/${encodeURIComponent(String(threadId))}/replies/${encodeURIComponent(String(replyId))}/delete`, requestConfig, models_1.Thread);
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
@@ -99,8 +99,8 @@ class ThreadService extends base_service_1.BaseService {
|
|
|
99
99
|
const requestConfig = {
|
|
100
100
|
method: 'get'
|
|
101
101
|
};
|
|
102
|
-
requestConfig.mediaType = 'application/json';
|
|
103
102
|
requestConfig.options = options;
|
|
103
|
+
requestConfig.mediaType = 'application/json';
|
|
104
104
|
return this.request(`/threads/${encodeURIComponent(String(threadId))}/get`, requestConfig, models_1.Thread);
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
@@ -126,8 +126,8 @@ class ThreadService extends base_service_1.BaseService {
|
|
|
126
126
|
queryParameters['user_id'] = userId;
|
|
127
127
|
}
|
|
128
128
|
requestConfig.params = queryParameters;
|
|
129
|
-
requestConfig.mediaType = 'application/json';
|
|
130
129
|
requestConfig.options = options;
|
|
130
|
+
requestConfig.mediaType = 'application/json';
|
|
131
131
|
return this.request(`/threads/list`, requestConfig, models_1.Thread);
|
|
132
132
|
}
|
|
133
133
|
/**
|
|
@@ -150,8 +150,8 @@ class ThreadService extends base_service_1.BaseService {
|
|
|
150
150
|
formParams.append('file', file);
|
|
151
151
|
}
|
|
152
152
|
requestConfig.data = formParams;
|
|
153
|
-
requestConfig.mediaType = 'application/json';
|
|
154
153
|
requestConfig.options = options;
|
|
154
|
+
requestConfig.mediaType = 'application/json';
|
|
155
155
|
return this.request(`/threads/${encodeURIComponent(String(threadId))}/update`, requestConfig, models_1.Thread);
|
|
156
156
|
}
|
|
157
157
|
/**
|
|
@@ -170,8 +170,8 @@ class ThreadService extends base_service_1.BaseService {
|
|
|
170
170
|
queryParameters['follow'] = follow;
|
|
171
171
|
}
|
|
172
172
|
requestConfig.params = queryParameters;
|
|
173
|
-
requestConfig.mediaType = 'application/json';
|
|
174
173
|
requestConfig.options = options;
|
|
174
|
+
requestConfig.mediaType = 'application/json';
|
|
175
175
|
return this.request(`/threads/${encodeURIComponent(String(threadId))}/follow/update`, requestConfig, models_1.Thread);
|
|
176
176
|
}
|
|
177
177
|
/**
|
|
@@ -195,8 +195,8 @@ class ThreadService extends base_service_1.BaseService {
|
|
|
195
195
|
formParams.append('file', file);
|
|
196
196
|
}
|
|
197
197
|
requestConfig.data = formParams;
|
|
198
|
-
requestConfig.mediaType = 'application/json';
|
|
199
198
|
requestConfig.options = options;
|
|
199
|
+
requestConfig.mediaType = 'application/json';
|
|
200
200
|
return this.request(`/threads/${encodeURIComponent(String(threadId))}/replies/${encodeURIComponent(String(replyId))}/update`, requestConfig, models_1.Thread);
|
|
201
201
|
}
|
|
202
202
|
/**
|
|
@@ -215,8 +215,8 @@ class ThreadService extends base_service_1.BaseService {
|
|
|
215
215
|
queryParameters['seen'] = seen;
|
|
216
216
|
}
|
|
217
217
|
requestConfig.params = queryParameters;
|
|
218
|
-
requestConfig.mediaType = 'application/json';
|
|
219
218
|
requestConfig.options = options;
|
|
219
|
+
requestConfig.mediaType = 'application/json';
|
|
220
220
|
return this.request(`/threads/${encodeURIComponent(String(threadId))}/seen/update`, requestConfig, models_1.Thread);
|
|
221
221
|
}
|
|
222
222
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread.service.js","sourceRoot":"","sources":["../../../../../src/services/generated/api/thread.service.ts"],"names":[],"mappings":";;;AAEA,4CAAyC;AACzC,qDAAiD;AAWjD;;GAEG;AAEH,MAAa,aAAc,SAAQ,0BAAW;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,CAAC;QAEhC,OAAO,IAAI,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,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,eAAM,CAAC,CAAC;IACpH,CAAC;CACD;AAjRD,sCAiRC","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,4CAAyC;AACzC,qDAAiD;AAWjD;;GAEG;AAEH,MAAa,aAAc,SAAQ,0BAAW;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,eAAM,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,IAAI,EAAE;YACpB,eAAe,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC;SACtC;QAED,aAAa,CAAC,M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QAAQ,CAAC,CAAC,cAAc,EAAE,aAAa,EAAE,eAAM,CAAC,CAAC;IACpH,CAAC;CACD;AAvQD,sCAuQC","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"]}
|
|
@@ -22,8 +22,8 @@ class UIService extends base_service_1.BaseService {
|
|
|
22
22
|
queryParameters['group_name'] = groupName;
|
|
23
23
|
}
|
|
24
24
|
requestConfig.params = queryParameters;
|
|
25
|
-
requestConfig.mediaType = 'application/json';
|
|
26
25
|
requestConfig.options = options;
|
|
26
|
+
requestConfig.mediaType = 'application/json';
|
|
27
27
|
return this.request(`/ui/emissions/dashboard/get`, requestConfig, models_1.EmissionsDashboard);
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
@@ -59,8 +59,8 @@ class UIService extends base_service_1.BaseService {
|
|
|
59
59
|
}
|
|
60
60
|
requestConfig.params = queryParameters;
|
|
61
61
|
requestConfig.data = processes;
|
|
62
|
-
requestConfig.mediaType = 'application/json';
|
|
63
62
|
requestConfig.options = options;
|
|
63
|
+
requestConfig.mediaType = 'application/json';
|
|
64
64
|
return this.request(`/ui/processes/list`, requestConfig, models_1.FullMapListPaginated);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uI.service.js","sourceRoot":"","sources":["../../../../../src/services/generated/api/uI.service.ts"],"names":[],"mappings":";;;AAEA,4CAA2E;AAC3E,qDAAiD;AAMjD;;GAEG;AAEH,MAAa,SAAU,SAAQ,0BAAW;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,4CAA2E;AAC3E,qDAAiD;AAMjD;;GAEG;AAEH,MAAa,SAAU,SAAQ,0BAAW;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,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Method, 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"]}
|
|
@@ -17,8 +17,8 @@ class UserService extends base_service_1.BaseService {
|
|
|
17
17
|
const requestConfig = {
|
|
18
18
|
method: 'post'
|
|
19
19
|
};
|
|
20
|
-
requestConfig.mediaType = 'application/json';
|
|
21
20
|
requestConfig.options = options;
|
|
21
|
+
requestConfig.mediaType = 'application/json';
|
|
22
22
|
return this.request(`/users/settings/${encodeURIComponent(String(settingName))}/delete`, requestConfig);
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
@@ -30,8 +30,8 @@ class UserService extends base_service_1.BaseService {
|
|
|
30
30
|
const requestConfig = {
|
|
31
31
|
method: 'get'
|
|
32
32
|
};
|
|
33
|
-
requestConfig.mediaType = 'application/json';
|
|
34
33
|
requestConfig.options = options;
|
|
34
|
+
requestConfig.mediaType = 'application/json';
|
|
35
35
|
return this.request(`/users/me`, requestConfig, models_1.UserWithPermissions);
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
@@ -43,8 +43,8 @@ class UserService extends base_service_1.BaseService {
|
|
|
43
43
|
const requestConfig = {
|
|
44
44
|
method: 'get'
|
|
45
45
|
};
|
|
46
|
-
requestConfig.mediaType = 'application/json';
|
|
47
46
|
requestConfig.options = options;
|
|
47
|
+
requestConfig.mediaType = 'application/json';
|
|
48
48
|
return this.request(`/users/settings/kelvin-contact-info/get`, requestConfig, models_1.UserSettingItem);
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
@@ -56,8 +56,8 @@ class UserService extends base_service_1.BaseService {
|
|
|
56
56
|
const requestConfig = {
|
|
57
57
|
method: 'get'
|
|
58
58
|
};
|
|
59
|
-
requestConfig.mediaType = 'application/json';
|
|
60
59
|
requestConfig.options = options;
|
|
60
|
+
requestConfig.mediaType = 'application/json';
|
|
61
61
|
return this.request(`/users/settings/kelvin-notifications/get`, requestConfig, models_1.UserSettingItem);
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
@@ -70,8 +70,8 @@ class UserService extends base_service_1.BaseService {
|
|
|
70
70
|
const requestConfig = {
|
|
71
71
|
method: 'get'
|
|
72
72
|
};
|
|
73
|
-
requestConfig.mediaType = 'application/json';
|
|
74
73
|
requestConfig.options = options;
|
|
74
|
+
requestConfig.mediaType = 'application/json';
|
|
75
75
|
return this.request(`/users/${encodeURIComponent(String(userId))}/get`, requestConfig, models_1.User);
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
@@ -84,8 +84,8 @@ class UserService extends base_service_1.BaseService {
|
|
|
84
84
|
const requestConfig = {
|
|
85
85
|
method: 'get'
|
|
86
86
|
};
|
|
87
|
-
requestConfig.mediaType = 'application/json';
|
|
88
87
|
requestConfig.options = options;
|
|
88
|
+
requestConfig.mediaType = 'application/json';
|
|
89
89
|
return this.request(`/users/settings/${encodeURIComponent(String(settingName))}/get`, requestConfig, models_1.UserSettingItem);
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
@@ -135,8 +135,8 @@ class UserService extends base_service_1.BaseService {
|
|
|
135
135
|
queryParameters['sort_asc'] = sortAsc;
|
|
136
136
|
}
|
|
137
137
|
requestConfig.params = queryParameters;
|
|
138
|
-
requestConfig.mediaType = 'application/json';
|
|
139
138
|
requestConfig.options = options;
|
|
139
|
+
requestConfig.mediaType = 'application/json';
|
|
140
140
|
return this.request(`/users/list`, requestConfig, models_1.UserListPaginated);
|
|
141
141
|
}
|
|
142
142
|
/**
|
|
@@ -174,8 +174,8 @@ class UserService extends base_service_1.BaseService {
|
|
|
174
174
|
queryParameters['sort_asc'] = sortAsc;
|
|
175
175
|
}
|
|
176
176
|
requestConfig.params = queryParameters;
|
|
177
|
-
requestConfig.mediaType = 'application/json';
|
|
178
177
|
requestConfig.options = options;
|
|
178
|
+
requestConfig.mediaType = 'application/json';
|
|
179
179
|
return this.request(`/users/settings/list`, requestConfig, models_1.UserSettingsListPaginated);
|
|
180
180
|
}
|
|
181
181
|
/**
|
|
@@ -189,8 +189,8 @@ class UserService extends base_service_1.BaseService {
|
|
|
189
189
|
method: 'post'
|
|
190
190
|
};
|
|
191
191
|
requestConfig.data = setting;
|
|
192
|
-
requestConfig.mediaType = 'application/json';
|
|
193
192
|
requestConfig.options = options;
|
|
193
|
+
requestConfig.mediaType = 'application/json';
|
|
194
194
|
return this.request(`/users/settings/kelvin-contact-info/update`, requestConfig, models_1.UserSettingItem);
|
|
195
195
|
}
|
|
196
196
|
/**
|
|
@@ -204,8 +204,8 @@ class UserService extends base_service_1.BaseService {
|
|
|
204
204
|
method: 'post'
|
|
205
205
|
};
|
|
206
206
|
requestConfig.data = setting;
|
|
207
|
-
requestConfig.mediaType = 'application/json';
|
|
208
207
|
requestConfig.options = options;
|
|
208
|
+
requestConfig.mediaType = 'application/json';
|
|
209
209
|
return this.request(`/users/settings/kelvin-notifications/update`, requestConfig, models_1.UserSettingItem);
|
|
210
210
|
}
|
|
211
211
|
/**
|
|
@@ -220,8 +220,8 @@ class UserService extends base_service_1.BaseService {
|
|
|
220
220
|
method: 'post'
|
|
221
221
|
};
|
|
222
222
|
requestConfig.data = setting;
|
|
223
|
-
requestConfig.mediaType = 'application/json';
|
|
224
223
|
requestConfig.options = options;
|
|
224
|
+
requestConfig.mediaType = 'application/json';
|
|
225
225
|
return this.request(`/users/settings/${encodeURIComponent(String(settingName))}/update`, requestConfig, models_1.UserSettingItem);
|
|
226
226
|
}
|
|
227
227
|
}
|