con un clic
getting-started
Use when working with street addresses in apis.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Use when working with street addresses in apis.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional 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 street addresses in apis. |
Use Address as the shared type for street addresses. Use AddressCommand
in request DTOs, @AddressColumn() in TypeORM entities, and
AddressResponse in API responses.
import { ApiProperty } from '@nestjs/swagger'
import {
Address,
AddressBuilder,
AddressColumn,
AddressCommand,
AddressResponse,
IsAddress,
} from '@wisemen/address'
export class UpdateAddressDto {
@ApiProperty({ type: AddressCommand })
@IsAddress({ countryRequired: true, cityRequired: true })
address: AddressCommand
}
export class CustomerResponse {
@ApiProperty({ type: AddressResponse, nullable: true })
address: AddressResponse | null
}
@Entity()
export class Customer {
@AddressColumn({ nullable: true })
address: Address | null
}
const address = dto.address.parse()
const fallbackAddress = new AddressBuilder()
.withCountry('Belgium')
.withCity('Ghent')
.build()
return {
address: new AddressResponse(customer.address ?? fallbackAddress),
}