import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http'; import { Observable } from 'rxjs'; import { PostSubscriptionDeliveryOrganizationModel } from '../model/postSubscriptionDelivery'; import { SubscriptionDeliveryListOrganizationModel } from '../model/subscriptionDeliveryList'; import { SubscriptionDeliveryOrganizationModel } from '../model/subscriptionDelivery'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare class SubscriptionDeliveriesService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; encoder: HttpParameterCodec; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); private addToHttpParams; private addToHttpParamsRecursive; /** * Create SubscriptionDelivery * Creates a SubscriptionDelivery. ## Subscription Delivery Create a SubscriptionDelivery to retry the delivery of a SubscriptionEvent to a Subscription. ## State | State | Description | |-------|-------------| | storing | The Platform is storing the SubscriptionDelivery details in our private store | | completed | The Platform has successfully delivered the SubscriptionEvent to specified Subscription | | failing | The Platform is failing to deliver the SubscriptionDelivery, a new attempt will be made (see `next_attempt_at`) | | failed | The Platform has failed to deliver the SubscriptionDelivery, no more attempts will be made | Required scope: **subscription_events:execute** * @param postSubscriptionDeliveryOrganizationModel * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ createSubscriptionDelivery(postSubscriptionDeliveryOrganizationModel: PostSubscriptionDeliveryOrganizationModel, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; createSubscriptionDelivery(postSubscriptionDeliveryOrganizationModel: PostSubscriptionDeliveryOrganizationModel, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; createSubscriptionDelivery(postSubscriptionDeliveryOrganizationModel: PostSubscriptionDeliveryOrganizationModel, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; /** * Get Subscription Delivery * Retrieves a subscription delivery. Required scope: **subscription_events:read** * @param subscriptionDeliveryGuid Identifier for the subscription delivery. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ getSubscriptionDelivery(subscriptionDeliveryGuid: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; getSubscriptionDelivery(subscriptionDeliveryGuid: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; getSubscriptionDelivery(subscriptionDeliveryGuid: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; /** * Get subscription deliveries list * Retrieves a listing of subscription deliveries s. Required scope: **subscription_events:read** * @param page The page index to retrieve. * @param perPage The number of entities per page to return. * @param guid Comma separated subscription_delivery_guids to list subscription deliveries for. * @param subscriptionEventGuid Comma separated subscription_event_guids to list subscription deliveries for. * @param subscriptionGuid Comma separated subscription_guids to list subscription deliveries for. * @param state Comma separated states to list subscription deliveries for. * @param eventType Comma separated event types to list subscription deliveries for. * @param completedAtGte ISO8601 datetime; only deliveries completed at or after this time are returned. * @param completedAtLt ISO8601 datetime; only deliveries completed before this time are returned. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ listSubscriptionDeliveries(page?: string, perPage?: string, guid?: string, subscriptionEventGuid?: string, subscriptionGuid?: string, state?: string, eventType?: string, completedAtGte?: string, completedAtLt?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; listSubscriptionDeliveries(page?: string, perPage?: string, guid?: string, subscriptionEventGuid?: string, subscriptionGuid?: string, state?: string, eventType?: string, completedAtGte?: string, completedAtLt?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; listSubscriptionDeliveries(page?: string, perPage?: string, guid?: string, subscriptionEventGuid?: string, subscriptionGuid?: string, state?: string, eventType?: string, completedAtGte?: string, completedAtLt?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }