import { Observable } from "rxjs"; import { IContract, IContractData, IData, IService, ISubscription, ISubscriptionRequest, TServiceStatus, TServiceType } from "@retail-data-factory/rdf-angular-types-api"; import { IServiceResponse } from "../../../../services/external-api/response-interfaces"; import { DataService } from "../../../../services/external-api/data.service"; import { IParty, IPlatformConnectionRequestServiceConnecting, IResource, IResourceGroup } from "@retail-data-factory/rdf-angular-types-api"; import { ConfigurationManager } from "../../../../store/configuration-manager/configuration-manager"; import { AssistTranslationService } from "@retail-data-factory/rdf-angular-translation-service"; import { Presenter } from "../../../internal/presenter/presenter"; import * as i0 from "@angular/core"; export declare class ApiMarketplaceService { private dataService; private presenter; private atService; private configurationManager; constructor(dataService: DataService, presenter: Presenter, atService: AssistTranslationService, configurationManager: ConfigurationManager); getMarketplaceApplications(): Observable>; /** * Получить список ресурсов модуля маркетплейс, которые может видеть пользователь */ getMarketplaceResources(): Observable>; /** * Список доступных сервисов * @param resourceId - показывать только сервисы с присутствующим в них ресурсом */ getServices(resourceId?: string): Observable>; getService(serviceId: string): Observable; createService(service: IService): Observable; updateService(service: IService): Observable; saveService(service: IService): Observable; publishService(serviceId: string): Observable; unpublishService(serviceId: string): Observable; deleteService(serviceId: string): Observable; getSubscribedServices(partyId: string): Observable>; /** * Получить список сервисов которые связаны с определенным типом проекта * @param typeCode */ getServicesForProjectType(typeCode: string): Observable>; setServiceAvailable(serviceId: string, partiId: string): Observable; getSubscribedSubscriptions(partyId: string): Observable>; createSubscriptionRequest(serviceId: string, profile?: object): Observable; createUnsubscriptionRequest(subscription: ISubscription): Observable; approveRequest(requestId: any): Observable; getSubscriptionRequests(partyId?: string): Observable>; getSubscriptionRequest(requestId: string): Observable; getSubscriptions(): Observable>; getSubscriptionsDS(service: DataService, offset: number, limit: number, searchStr: string, param: object, configurationManager: ConfigurationManager): Observable; getSubscription(subscriptionId: string): Observable; createSubscription(subscription: ISubscription): Observable; updateSubscription(subscription: ISubscription): Observable; saveSubscription(subscription: ISubscription): Observable; deleteSubscriptionsForProject(projectId: any): Observable; createSubscriptions(party: IParty, services: Array, attributes: Array): Observable; createSubscriber(party: IParty, services: Array, attributes: Array): Observable; prolongSubscription(subscription: ISubscription): Observable; deleteSubscription(subscriptionId: string): Observable; removeAllSubscriptionsFromParty(partyId: string): Observable; getSubscriptionContracts(): Observable>; getContracts(): Observable>; getContract(contractId: string): Observable; saveContract(contract: IContract): Observable; createContract(contract: IContract): Observable; updateContract(contract: IContract): Observable; deleteContract(contractId: string): Observable; getContractDatas(contractId: string): Observable>; getContractData(contractId: string, contractDataId: string): Observable; createContractData(contractId: string, contractData: IContractData): Observable; updateContractData(contractId: string, contractData: IContractData): Observable; deleteContractData(contractId: string, contractDataId: string): Observable; getServiceContracts(serviceId: string): Observable>; createServiceContract(serviceId: string, contractId: string): Observable; deleteServiceContract(serviceId: string, contractId: string): Observable; prepareSubscriptionFromService(subscriberParty: IParty, service: IService, attributes: Array): ISubscription; mapMarketplaceServiceFromService(item: object): IService; mapMarketplaceServiceToService(service: IService): object; mapRequestFromService(item: object): ISubscriptionRequest; mapSubscriptionFromService(item: object): ISubscription; mapSubscriptionToService(subscription: ISubscription): object; mapMarketplaceResourceFromService(item: object): IResource; decodeServiceIcon(typeType: TServiceType): string; decodeServiceTypeName(typeType: TServiceType): string; mapContractFromService(item: object): IContract; mapContractDataFromService(item: object): IContractData; decodeContractDataStatusColor(statusCode: string): string; decodeServicePrice(service: IService): string; decodeSubscriptionStatusName(subscription: ISubscription): string; decodeSubscriptionStatusColor(subscription: ISubscription): string; canEditService(service: IService): boolean; mapConnectingServiceToSubscription(item: IPlatformConnectionRequestServiceConnecting): ISubscription; decodeServiceType(type: TServiceType): string; decodeServiceStatus(status: TServiceStatus): string; decodeServiceStatusColor(status: TServiceStatus): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }