UNPKG

@prefecthq/prefect-ui-library

Version:

This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.

20 lines (17 loc) 547 B
import { ConcurrencyV2CreateRequest } from '@/models/api/ConcurrencyV2CreateRequest' import { ConcurrencyV2Create } from '@/models/ConcurrencyV2Create' import { MapFunction } from '@/services/Mapper' export const mapConcurrencyV2CreateToConcurrencyV2CreateRequest: MapFunction<ConcurrencyV2Create, ConcurrencyV2CreateRequest> = function(source) { const { active, name, limit, } = source return { active, name, limit, denied_slots: source.deniedSlots, slot_decay_per_second: source.slotDecayPerSecond, } }