import { ListPackagesResponse, ListAppDistributionStatusResponse, CopyPackageResponse } from './_internal/objects/api'; import { Package, Pricing, LineItem, MarketAction } from './_internal/objects/package'; import { StatusesStatus as Status, LmiCategories as Categories, PricingDisplayOption, LineItemDisplayOption } from './_internal/enums'; import { MarketplacePackagesApiService } from './_internal/marketplace-packages.api.service'; import { Observable } from 'rxjs'; import { StatusString } from './status'; import { HttpResponse } from '@angular/common/http'; import { RetailPrice } from './_internal/objects/retail-price'; import * as i0 from "@angular/core"; export declare class PackageService { private apiService; constructor(apiService: MarketplacePackagesApiService); copyPackage(packageId: string, partnerId: string, marketIds: string[], contactSales: boolean, name: string, status: StatusString, currency?: string, price?: number, additionalPrice?: number, frequency?: string, additionalFrequency?: string, isStartingPrice?: boolean, isAdditionalStartingPrice?: boolean): Observable; loadAllPackages(partnerId: string, statuses: Status[], marketId?: string, sort?: boolean, pageSize?: number, cursor?: string, lmiCategory?: Categories): Observable; list(partnerId: string, statuses: Status[], marketId?: string, pageSize?: number, cursor?: string, lmiCategory?: Categories, includeTotalResults?: boolean, filterTerm?: string): Observable; getMulti(packageIds: string[]): Observable; /** * DEPRECATED * @deprecated please use the getAllAppDistributionStatuses method in the apps.service.ts file */ listAppDistributionStatus(pageSize?: number, cursor?: string): Observable; /** * @params packageId is the id of the package that the status will be set for. Status is the status the package * will be mutated to have. * @returns the mutated package * @throws httpErrorResponse */ setStatus(packageId: string, status: Status): Observable; /** * @params fields that make up a package including name, tagline and lineItems * @returns the created package * @throws httpErrorResponse */ create(partnerId: string, marketId: string, name: string, tagline: string, iconUrl: string, headerImageUrl: string, content: string, lineItems: LineItem[], pricing: Pricing, hideProductIconsAndNames: boolean, hideProductDetails: boolean, publishImmediately: boolean, marketAction: MarketAction, usesBillingPricing: boolean, pricingDisplayOption?: PricingDisplayOption, lineItemDisplayOption?: LineItemDisplayOption): Observable; /** * @params fields that make up a package including name, tagline and lineItems * @returns the created package * @throws httpErrorResponse if the api fails */ update(packageId: string, name: string, tagline: string, iconUrl: string, headerImageUrl: string, content: string, lineItems: LineItem[], pricing: Pricing, hideProductIconsAndNames: boolean, hideProductDetails: boolean, marketAction: MarketAction, usesBillingPricing: boolean, pricingDisplayOption: PricingDisplayOption, lineItemDisplayOption?: LineItemDisplayOption): Observable; hideArchivedPackage(packageId: string): Observable>; /** * @params the id of the package to be fetched * @returns the package corresponding to the id passed * @throws httpErrorResponse containing a 412 if the packageID isn't passed, * 404 if the package isn't found, or 500 if there is some other api error */ get(packageId: string): Observable; listPackageIDsForProduct(partnerId: string, marketId: string, appId: string, editionId: string): Observable; /** * @params fields containing information about the product to be made into a package and the retail price to be set * @returns empty response * @throws httpErrorResponse */ addProductToStore(partnerId: string, marketId: string, appId: string, editionId: string, retailPrice: RetailPrice, publishImmediately: boolean): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }