Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const deleteFlow = flow =>
servicePostApi(Constants.serviceRouteApi, Constants.serviceApplication, Constants.services.flow, 'flow/delete', {
subscription: flow.subscription,
name: flow.name,
displayName: flow.displayName,
userName: flow.owner,
eventhubConnectionString: flow.input.properties.inputEventhubConnection,
inputSubscriptionId: flow.input.properties.inputSubscriptionId,
inputResourceGroup: flow.input.properties.inputResourceGroup,
eventHubNames: flow.input.properties.inputEventhubName,
inputType: flow.input.type
});
export const getCodeGenQuery = queryMetadata =>
servicePostApi(Constants.serviceRouteApi, Constants.serviceApplication, Constants.services.flow, 'userqueries/codegen', {
name: queryMetadata.name,
displayName: queryMetadata.displayName,
query: queryMetadata.query,
rules: queryMetadata.rules,
outputTemplates: queryMetadata.outputTemplates
});
export const resampleInput = (queryMetadata, kernelId) =>
servicePostApi(
Constants.serviceRouteApi,
Constants.serviceApplication,
Constants.services.liveData,
'inputdata/refreshsampleandkernel',
{
name: queryMetadata.name,
displayName: queryMetadata.displayName,
userName: queryMetadata.userName,
kernelId: kernelId,
inputSchema: queryMetadata.inputSchema,
normalizationSnippet: queryMetadata.normalizationSnippet,
eventhubConnectionString: queryMetadata.eventhubConnection,
inputSubscriptionId: queryMetadata.inputSubscriptionId,
inputResourceGroup: queryMetadata.inputResourceGroup,
eventHubNames: queryMetadata.eventhubNames,
inputType: queryMetadata.inputType,
seconds: queryMetadata.seconds
}
);