Skip to content

Commit

Permalink
Merge pull request #49 from heseya/SK-922
Browse files Browse the repository at this point in the history
feat: update product types
  • Loading branch information
KrystianEscolaSoft authored Dec 4, 2024
2 parents 5a08db7 + eb6aa43 commit d65f51b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@heseya/store-core",
"version": "7.1.0-beta.3",
"version": "7.1.0-beta.4",
"author": {
"name": "Heseya"
},
Expand Down
11 changes: 7 additions & 4 deletions src/interfaces/Product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
import { Price, PriceDto } from './Price'
import { StrNumber } from './Number'
import { BannerMedia, BannerMediaCreateDto } from './Banner'
import { Manufacturer } from './Manufactures'

interface ProductListedTranslatable {
name: string
Expand Down Expand Up @@ -105,8 +106,9 @@ export interface Product
quantity: number | null
descriptions: PageListed[]
banner: Omit<BannerMedia, 'published'> | null
manufacturer_id?: UUID
safety_information?: string
manufacturer_id?: UUID | null
safety_information?: string | null
manufacturer?: Manufacturer | null
}

export interface ProductCreateDto
Expand Down Expand Up @@ -155,8 +157,9 @@ export interface ProductCreateDto
*/
purchase_limit_per_user?: null | number
banner?: Omit<BannerMediaCreateDto, 'published'> | null
manufacturer_id?: UUID
safety_information?: string
manufacturer_id?: UUID | null
safety_information?: string | null
manufacturer?: Manufacturer | null
}

export type ProductUpdateDto = Partial<Omit<ProductCreateDto, keyof CreateMetadataFields | 'id'>> &
Expand Down

0 comments on commit d65f51b

Please sign in to comment.