| |
|
|
| import { z } from 'zod' |
| import * as schemas from '../schemas.js' |
| import type { AcceptDateStrings } from '../../lib/wire.js' |
| import type { |
| CreateFeatureRequest as CreateFeatureRequestBody, |
| Feature, |
| FeatureCostQueryResult, |
| FeaturePagePaginatedResponse, |
| ListFeatureParamsFilter, |
| MeterQueryRequestInput, |
| SortQueryInput, |
| UpdateFeatureRequest as UpdateFeatureRequestBody, |
| } from '../types.js' |
|
|
| export interface ListFeaturesQuery { |
| |
| page?: { size?: number; number?: number } |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| sort?: SortQueryInput |
| |
| |
| |
| |
| |
| |
| filter?: ListFeatureParamsFilter |
| } |
|
|
| export type ListFeaturesRequest = AcceptDateStrings<ListFeaturesQuery> |
| export type ListFeaturesResponse = FeaturePagePaginatedResponse |
|
|
| export type CreateFeatureRequest = AcceptDateStrings<CreateFeatureRequestBody> |
| export type CreateFeatureResponse = Feature |
|
|
| export type GetFeatureRequest = { |
| featureId: string |
| } |
| export type GetFeatureResponse = Feature |
|
|
| export type UpdateFeatureRequest = AcceptDateStrings<{ |
| featureId: string |
| body: UpdateFeatureRequestBody |
| }> |
| export type UpdateFeatureResponse = Feature |
|
|
| export type DeleteFeatureRequest = { |
| featureId: string |
| } |
| export type DeleteFeatureResponse = void |
|
|
| export type QueryFeatureCostRequest = AcceptDateStrings<{ |
| featureId: string |
| body: MeterQueryRequestInput |
| }> |
| export type QueryFeatureCostResponse = FeatureCostQueryResult |
|
|