I ultimately went with having a flat list of settings for the store. It wouldn't be very difficult to change it if we wish to do so, but for now this keeps the codebase simpler
24 lines
558 B
TypeScript
24 lines
558 B
TypeScript
export const defaultAdminStoreRelations = []
|
|
export const allowedAdminStoreRelations = []
|
|
export const defaultAdminStoreFields = [
|
|
"id",
|
|
"name",
|
|
"supported_currency_codes",
|
|
"default_sales_channel_id",
|
|
"default_region_id",
|
|
"default_location_id",
|
|
"metadata",
|
|
]
|
|
|
|
export const retrieveTransformQueryConfig = {
|
|
defaultFields: defaultAdminStoreFields,
|
|
defaultRelations: defaultAdminStoreRelations,
|
|
allowedRelations: allowedAdminStoreRelations,
|
|
isList: false,
|
|
}
|
|
|
|
export const listTransformQueryConfig = {
|
|
defaultLimit: 20,
|
|
isList: true,
|
|
}
|