mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 03:50:30 +00:00
cd60d4d859
P6: insert_tour_stop and remove_tour_stop take a place into a saved hike or city walk as one stop and out again, each the other's undo, with change cards in the chat. The planner's insertion rule (poiInsertion) moved to shared so the planner and the server place a stop the same way. "+ Tour" on a found place holds it as a stop of the saved tour open in the planner. P7: GPX, KML and KMZ files attached in the chat are read into their tracks and each is held as a change that takes it in as a hike through import_tour_gpx, undoable per track; the GPX text stays on the held call.
31 lines
1.5 KiB
TypeScript
31 lines
1.5 KiB
TypeScript
/**
|
|
* createZodDto wrappers over the @trek/shared assistant contracts, so the
|
|
* global ZodValidationPipe validates the bodies by metatype and the shared
|
|
* schemas stay the one source of truth.
|
|
*/
|
|
import {
|
|
assistantAddFoundPlaceRequestSchema,
|
|
assistantAttachmentRequestSchema,
|
|
assistantChatRequestSchema,
|
|
assistantDecisionsRequestSchema,
|
|
assistantInsertFoundPlaceRequestSchema,
|
|
assistantRenderUploadRequestSchema,
|
|
assistantShareRequestSchema,
|
|
assistantStopRequestSchema,
|
|
assistantTakeProposalRequestSchema,
|
|
assistantUndoRequestSchema,
|
|
} from '@trek/shared';
|
|
|
|
import { createZodDto } from 'nestjs-zod';
|
|
|
|
export class AssistantAddFoundPlaceDto extends createZodDto(assistantAddFoundPlaceRequestSchema) {}
|
|
export class AssistantAttachmentDto extends createZodDto(assistantAttachmentRequestSchema) {}
|
|
export class AssistantChatDto extends createZodDto(assistantChatRequestSchema) {}
|
|
export class AssistantDecisionsDto extends createZodDto(assistantDecisionsRequestSchema) {}
|
|
export class AssistantInsertFoundPlaceDto extends createZodDto(assistantInsertFoundPlaceRequestSchema) {}
|
|
export class AssistantRenderUploadDto extends createZodDto(assistantRenderUploadRequestSchema) {}
|
|
export class AssistantShareDto extends createZodDto(assistantShareRequestSchema) {}
|
|
export class AssistantStopDto extends createZodDto(assistantStopRequestSchema) {}
|
|
export class AssistantTakeProposalDto extends createZodDto(assistantTakeProposalRequestSchema) {}
|
|
export class AssistantUndoDto extends createZodDto(assistantUndoRequestSchema) {}
|