21 lines
1.1 KiB
TypeScript
21 lines
1.1 KiB
TypeScript
import { AdPlacement, AdvertisementDto } from '../models/advertisement.model';
|
|
export declare function listAdvertisements(placement?: string): Promise<AdvertisementDto[]>;
|
|
export declare function listAllAdvertisementsAdmin(): Promise<AdvertisementDto[]>;
|
|
export declare function parseAdvertisementInput(body: Record<string, unknown>, partial?: boolean): {
|
|
placement: AdPlacement | undefined;
|
|
title: string | undefined;
|
|
subtitle: string | null | undefined;
|
|
ctaLabel: string | null | undefined;
|
|
linkUrl: string | null | undefined;
|
|
imageUrl: string | null | undefined;
|
|
backgroundGradient: string | null | undefined;
|
|
accentColor: string | undefined;
|
|
isActive: boolean | undefined;
|
|
sortOrder: number | undefined;
|
|
startsAt: string | null | undefined;
|
|
endsAt: string | null | undefined;
|
|
};
|
|
export declare function createAdvertisement(body: Record<string, unknown>): Promise<AdvertisementDto>;
|
|
export declare function updateAdvertisement(id: string, body: Record<string, unknown>): Promise<AdvertisementDto>;
|
|
export declare function deleteAdvertisement(id: string): Promise<void>;
|
|
//# sourceMappingURL=advertisementService.d.ts.map
|