| |
|
|
| import { z } from 'zod' |
| import * as schemas from '../schemas.js' |
| import type { AcceptDateStrings } from '../../lib/wire.js' |
| import type { |
| CreatePlanRequestInput, |
| ListPlansParamsFilter, |
| Plan, |
| PlanPagePaginatedResponse, |
| SortQueryInput, |
| UpsertPlanRequestInput, |
| } from '../types.js' |
|
|
| export interface ListPlansQuery { |
| |
| page?: { size?: number; number?: number } |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| sort?: SortQueryInput |
| |
| filter?: ListPlansParamsFilter |
| } |
|
|
| export type ListPlansRequest = AcceptDateStrings<ListPlansQuery> |
| export type ListPlansResponse = PlanPagePaginatedResponse |
|
|
| export type CreatePlanRequest = AcceptDateStrings<CreatePlanRequestInput> |
| export type CreatePlanResponse = Plan |
|
|
| export type UpdatePlanRequest = AcceptDateStrings<{ |
| planId: string |
| body: UpsertPlanRequestInput |
| }> |
| export type UpdatePlanResponse = Plan |
|
|
| export type GetPlanRequest = { |
| planId: string |
| } |
| export type GetPlanResponse = Plan |
|
|
| export type DeletePlanRequest = { |
| planId: string |
| } |
| export type DeletePlanResponse = void |
|
|
| export type ArchivePlanRequest = { |
| planId: string |
| } |
| export type ArchivePlanResponse = Plan |
|
|
| export type PublishPlanRequest = { |
| planId: string |
| } |
| export type PublishPlanResponse = Plan |
|
|