@spartacus/storefront
Version:
Spartacus Storefront is a package that you can include in your application, which allows you to add default storefront features.
27 lines (26 loc) • 1.07 kB
TypeScript
import { CustomerCoupon, RoutingService, TranslationService } from '@spartacus/core';
import { Observable } from 'rxjs';
import * as i0 from "@angular/core";
export declare class MyCouponsComponentService {
protected routingService: RoutingService;
protected translation: TranslationService;
sortLabels: Observable<{
byStartDateAsc: string;
byStartDateDesc: string;
byEndDateAsc: string;
byEndDateDesc: string;
}>;
protected readonly RELEVANCE = ":relevance";
protected readonly CUSTOMER_COUPON_CODE = ":customerCouponCode:";
constructor(routingService: RoutingService, translation: TranslationService);
launchSearchPage(coupon: CustomerCoupon): void;
private buildSearchParam;
getSortLabels(): Observable<{
byStartDateAsc: string;
byStartDateDesc: string;
byEndDateAsc: string;
byEndDateDesc: string;
}>;
static ɵfac: i0.ɵɵFactoryDeclaration<MyCouponsComponentService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<MyCouponsComponentService>;
}