CommonTypes
Interfaces
- AddressCreatePayload
- AddressPayload
- BaseEntity
- CustomFindOptions
- DateComparisonOperator
- EmptyQueryParams
- FindConfig
- FindPaginationParams
- FindParams
- NumericalComparisonOperator
- RepositoryTransformOptions
- SoftDeletableEntity
- StringComparisonOperator
References
ConfigModule
Re-exports ConfigModule
DeleteResponse
Re-exports DeleteResponse
MedusaContainer
Re-exports MedusaContainer
PaginatedResponse
Re-exports PaginatedResponse
Type Aliases
ExtendedFindConfig
ExtendedFindConfig<TEntity
>: Omit
<FindOneOptions
<TEntity
>, "where"
| "relations"
| "select"
> | Omit
<FindManyOptions
<TEntity
>, "where"
| "relations"
| "select"
> & { order?
: FindOptionsOrder
<TEntity
> ; relations?
: FindOptionsRelations
<TEntity
> ; select?
: FindOptionsSelect
<TEntity
> ; skip?
: number
; take?
: number
; where
: FindOptionsWhere
<TEntity
> | FindOptionsWhere
<TEntity
>[] }
Type parameters
TEntity
objectRequiredHttpCompressionOptions
HttpCompressionOptions: Object
Type declaration
enabled
booleanlevel
numbermemLevel
numberthreshold
number | stringPartialPick
PartialPick<T
, K
>: { [P in K]?: T[P] }
Type parameters
T
objectRequiredK
keyof TRequiredProjectConfigOptions
ProjectConfigOptions: Object
Type declaration
admin_cors
stringcookie_secret
stringdatabase_database
stringdatabase_extra
Record<string, unknown> & { ssl: { rejectUnauthorized: false } }database_logging
LoggerOptionsRequireddatabase_schema
stringdatabase_type
stringdatabase_url
stringhttp_compression
HttpCompressionOptionsjwt_secret
stringredis_options
RedisOptionsredis_prefix
stringredis_url
stringsession_options
SessionOptionsstore_cors
stringQueryConfig
QueryConfig<TEntity
>: Object
Type parameters
Type declaration
allowedFields
string[]allowedRelations
string[]defaultFields
(keyof TEntity | string)[]defaultLimit
numberdefaultRelations
string[]isList
booleanQuerySelector
QuerySelector<TEntity
>: Selector
<TEntity
> & { q?
: string
}
Type parameters
TEntity
objectRequiredRequestQueryFields
RequestQueryFields: Object
Type declaration
expand
stringfields
stringlimit
numberoffset
numberorder
stringSelector
Selector<TEntity
>: { [key in keyof TEntity]?: TEntity[key] | TEntity[key][] | DateComparisonOperator | StringComparisonOperator | NumericalComparisonOperator | FindOperator<TEntity[key][] | string | string[]\> }
Type parameters
TEntity
objectRequiredTotalField
TotalField: "shipping_total"
| "discount_total"
| "tax_total"
| "refunded_total"
| "total"
| "subtotal"
| "refundable_amount"
| "gift_card_total"
| "gift_card_tax_total"
TreeQuerySelector
TreeQuerySelector<TEntity
>: QuerySelector
<TEntity
> & { include_descendants_tree?
: boolean
}
Type parameters
TEntity
objectRequiredWithRequiredProperty
WithRequiredProperty<T
, K
>: T
& { [Property in K]-?: T[Property] }
Utility type used to remove some optional attributes (coming from K) from a type T
Type parameters
T
objectRequiredK
keyof TRequiredWritable
Writable<T
>: { -readonly [key in keyof T]: T[key] | FindOperator<T[key]\> | FindOperator<T[key][]\> | FindOperator<string[]\> }
Type parameters
T
objectRequired