feat(dashboard,types): Translate all OrderBy filters (#9691)

Resolves CC-616

**Note**
- I have added some missing fields to a couple of types, to resolve TS errors in the dashboard.
- For the ApiKey types I have left the created_at, updated_at, etc. as type Date, as changing them to string, caused @medusajs/medusa to fail building. We need to clean up the types at a later time.
This commit is contained in:
Kasper Fabricius Kristensen authored and GitHub committed 2024-10-21 18:09:55 +00:00
1 parent e81dbc754c
commit 9f53683508
66 files changed
+474 -188

No files matched your search

@@ -50,6 +50,16 @@ export interface ApiKeyDTO {
*/
created_at: Date
/**
* The date the API key was updated.
*/
updated_at: Date
/**
* The date the API key was deleted.
*/
deleted_at: Date | null
/**
* Who revoked the API key. For example,
* the ID of the user that revoked it.
@@ -10,8 +10,10 @@ interface AdminApiKey {
last_used_at: Date | null
created_by: string
created_at: Date
updated_at: Date
revoked_by: string | null
revoked_at: Date | null
deleted_at: Date | null
}
export interface AdminApiKeyResponse {
@@ -16,6 +16,9 @@ export interface AdminCampaign {
limit: number
used: number
}
created_at: string
updated_at: string
deleted_at: string | null
}
export type AdminCampaignListResponse = PaginatedResponse<{
@@ -39,6 +39,9 @@ export interface BasePromotion {
rules?: BasePromotionRule[]
campaign_id?: string
campaign?: AdminCampaign
created_at: string
updated_at: string
deleted_at: string | null
}
export interface BasePromotionRuleValue {