chore: make apis nullable (#7763)

what:

- makes top level attributes of each object an optional field in the http layer where possible

RESOLVES CORE-2229
This commit is contained in:
Riqwan Thamir
2024-06-20 10:10:59 +00:00
committed by GitHub
parent 33c4cd34cc
commit f61557712c
64 changed files with 431 additions and 416 deletions
@@ -13,6 +13,7 @@ export interface CreatePriceListDTO {
export interface UpdatePriceListDTO {
id: string
title?: string
description?: string | null
starts_at?: string | null
ends_at?: string | null
status?: PriceListStatus
@@ -3,19 +3,19 @@ import { Promotion } from "@models"
export interface CreateCampaignDTO {
name: string
description?: string
description?: string | null
campaign_identifier: string
starts_at?: Date
ends_at?: Date
starts_at?: Date | null
ends_at?: Date | null
promotions?: (PromotionDTO | Promotion)[]
}
export interface UpdateCampaignDTO {
id: string
name?: string
description?: string
description?: string | null
campaign_identifier?: string
starts_at?: Date
ends_at?: Date
starts_at?: Date | null
ends_at?: Date | null
promotions?: (PromotionDTO | Promotion)[]
}