بنقرة واحدة
getting-started
Use when working with geographic coordinates in apis.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when working with geographic coordinates in apis.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when creating or updating api specific packages in `packages/api/*`, especially for package structure, exports, module wiring, docs, and validation.
Use when implementing or reviewing HTTP integrations inside api specific packages, especially for transport choice, timeout placement, request shaping, and error handling.
Use when configuring a shared OSRM client in NestJS APIs.
Use when configuring transactional mail delivery in NestJS APIs with @wisemen/nestjs-mail.
Use when generating CSVs in APIs.
Use when scanning NestJS providers with DiscoveryService-backed utilities.
| name | getting-started |
| description | Use when working with geographic coordinates in apis. |
Use Coordinates as the shared type for geographic coordinates. Use
CoordinatesCommand in request DTOs, CoordinatesQuery for query parameters,
@CoordinatesColumn() in TypeORM entities, and CoordinatesResponse in API
responses.
import { ApiProperty } from '@nestjs/swagger'
import { Coordinates, CoordinatesColumn, CoordinatesCommand, CoordinatesQuery, CoordinatesResponse } from '@wisemen/coordinates'
export class UpdateLocationCommand {
@ApiProperty({ type: CoordinatesCommand })
coordinates: CoordinatesCommand
}
export class LocationResponse {
@ApiProperty({ type: CoordinatesResponse, nullable: true })
coordinates: CoordinatesResponse | null
}
@Entity()
export class Location {
@CoordinatesColumn({ nullable: true })
coordinates: Coordinates | null
}
const coordinates = dto.coordinates.parse()
const center = query.parse()
return {
coordinates: CoordinatesResponse.from(location.coordinates),
}