fix(medusa, admin-ui, medusa-react): Gift Card update fixes and admin UI cleanup (#3676)

* fix gc domain issues

* add changeset

* update changeset

* more minor fixes, remove breadcrumb

* more cleanup

* address feedback
This commit is contained in:
Kasper Fabricius Kristensen authored and GitHub committed 2023-04-02 19:04:32 +02:00
1 parent a5ad6c0542
commit 788ddc0f43
51 files changed
+997 -709

No files matched your search

@@ -1,10 +1,10 @@
import { IsBoolean, IsDate, IsInt, IsOptional, IsString } from "class-validator"
import { defaultAdminGiftCardFields, defaultAdminGiftCardRelations } from "."
import { GiftCardService } from "../../../../services"
import { Type } from "class-transformer"
import { validator } from "../../../../utils/validator"
import { EntityManager } from "typeorm"
import { GiftCardService } from "../../../../services"
import { validator } from "../../../../utils/validator"
/**
* @oas [post] /admin/gift-cards/{id}
@@ -123,7 +123,7 @@ export class AdminPostGiftCardsGiftCardReq {
@IsOptional()
@IsDate()
@Type(() => Date)
ends_at?: Date
ends_at?: Date | null
@IsOptional()
@IsString()
+1 -1
View File
@@ -11,7 +11,7 @@ export type CreateGiftCardInput = {
export type UpdateGiftCardInput = {
balance?: number
ends_at?: Date
ends_at?: Date | null
is_disabled?: boolean
region_id?: string
metadata?: Record<string, unknown>