ワンクリックで
getting-started
Use when working with street addresses in apis.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when working with street addresses 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 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),
}