fix(admin-next,types): fix some http type names (#8836)

This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-08-28 15:43:54 +03:00
1 parent 8fbfb1445d
commit 61e7b2eb24
16 files changed
+45 -45

No files matched your search

@@ -1,7 +1,7 @@
import { ApiKeyType } from "../../../api-key"
import { PaginatedResponse } from "../../common"
interface ApiKeyResponse {
interface AdminApiKey {
id: string
token: string
redacted: string
@@ -15,9 +15,9 @@ interface ApiKeyResponse {
}
export interface AdminApiKeyResponse {
api_key: ApiKeyResponse
api_key: AdminApiKey
}
export type AdminApiKeyListResponse = PaginatedResponse<{
api_keys: ApiKeyResponse[]
api_keys: AdminApiKey[]
}>
@@ -1,7 +1,7 @@
import { CampaignBudgetTypeValues } from "../../../promotion"
import { PaginatedResponse } from "../../common"
export interface CampaignResponse {
export interface AdminCampaign {
id: string
name: string
description: string
@@ -19,9 +19,9 @@ export interface CampaignResponse {
}
export type AdminCampaignListResponse = PaginatedResponse<{
campaigns: CampaignResponse[]
campaigns: AdminCampaign[]
}>
export interface AdminCampaignResponse {
campaign: CampaignResponse
campaign: AdminCampaign
}
@@ -5,7 +5,7 @@ import {
PromotionRuleOperatorValues,
PromotionTypeValues
} from "../../promotion"
import { CampaignResponse } from "../campaign"
import { AdminCampaign } from "../campaign"
export interface BasePromotionRule {
id: string
@@ -38,7 +38,7 @@ export interface BasePromotion {
application_method?: BaseApplicationMethod
rules?: BasePromotionRule[]
campaign_id?: string
campaign?: CampaignResponse
campaign?: AdminCampaign
}
export interface BasePromotionRuleValue {
@@ -1,4 +1,4 @@
export interface ReservationResponse {
export interface AdminReservation {
id: string
line_item_id: string | null
location_id: string
@@ -1,10 +1,10 @@
import { PaginatedResponse } from "../../common"
import { ReservationResponse } from "./entities"
import { AdminReservation } from "./entities"
export interface AdminReservationResponse {
reservation: ReservationResponse
reservation: AdminReservation
}
export type AdminReservationListResponse = PaginatedResponse<{
reservations: ReservationResponse[]
reservations: AdminReservation[]
}>