import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http'; import { Observable } from 'rxjs'; import { BlockCreatedModel } from '../model/blockCreatedModel'; import { BlockListModel } from '../model/blockListModel'; import { BlockModel } from '../model/blockModel'; import { BlockOffersModel } from '../model/blockOffersModel'; import { CountModel } from '../model/countModel'; import { CreateBlockModel } from '../model/createBlockModel'; import { Operation } from '../model/operation'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare namespace bookingBlocksByIdDelete { interface Params { /** * The id of the block. */ id: string; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; } } export declare namespace bookingBlocksByIdGet { interface Params { /** * Id of the block to be retrieved. */ id: string; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; /** * List of all embedded resources that should be expanded in the response. Possible values are: actions, timeSlices. All other values will be silently ignored. */ expand?: Array; } type ExpandEnum = 'actions' | 'timeSlices'; const ExpandEnumValues: readonly ExpandEnum[]; } export declare namespace bookingBlocksByIdHead { interface Params { /** * The id of the block. */ id: string; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; } } export declare namespace bookingBlocksByIdOffersGet { interface Params { /** * Id of the block to be amended. */ id: string; /** * Date and optional time of arrival
Specify either a pure date or a date and time (without fractional second part) in UTC or with UTC offset as defined in ISO8601:2004 */ arrival: string; /** * Date and optional time of departure. Cannot be more than 5 years after arrival.
Specify either a pure date or a date and time (without fractional second part) in UTC or with UTC offset as defined in ISO8601:2004 */ departure: string; /** * Return also offers that are currently not publicly bookable as restrictions are violated. By default only available offers are returned */ includeUnavailable?: boolean; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; } } export declare namespace bookingBlocksByIdPatch { interface Params { /** * Id of the block to be modified. */ id: string; /** * Define the list of operations to be applied to the resource. Learn more about JSON Patch here: http://jsonpatch.com/. */ body: Array; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; } } export declare namespace bookingBlocksGet { interface Params { /** * Return blocks for the specific group */ groupId?: string; /** * Return blocks filtered by properties */ propertyIds?: Array; /** * Return blocks filtered by statuses */ status?: Array; /** * Return blocks with any of the specified unit groups */ unitGroupIds?: Array; /** * Return blocks with any of the specified rate plans */ ratePlanIds?: Array; /** * Return blocks with any of the specified time slice definitions */ timeSliceDefinitionIds?: Array; /** * Return blocks with any of the specified unit group types */ unitGroupTypes?: Array; /** * The time slice template, defaults to 'over night' */ timeSliceTemplate?: TimeSliceTemplateEnum; /** * The start of the time range. All blocks that are overlapping with the interval specified by from and to will be returned
A date and time (without fractional second part) in UTC or with UTC offset as defined in ISO8601:2004 */ from?: Date; /** * The end of the time range. All blocks that are overlapping with the interval specified by from and to will be returned
A date and time (without fractional second part) in UTC or with UTC offset as defined in ISO8601:2004 */ to?: Date; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; /** * Page number, 1-based. Default value is 1 (if this is not set or not positive). Results in 204 if there are no items on that page. */ pageNumber?: number; /** * Page size. If this is not set or not positive, the pageNumber is ignored and all items are returned. */ pageSize?: number; /** * List of all embedded resources that should be expanded in the response. Possible values are: actions, timeSlices. All other values will be silently ignored. */ expand?: Array; } type StatusEnum = 'Tentative' | 'Definite' | 'Canceled'; const StatusEnumValues: readonly StatusEnum[]; type UnitGroupTypesEnum = 'BedRoom' | 'MeetingRoom' | 'EventSpace' | 'ParkingLot' | 'Other'; const UnitGroupTypesEnumValues: readonly UnitGroupTypesEnum[]; type TimeSliceTemplateEnum = 'DayUse' | 'OverNight'; const TimeSliceTemplateEnumValues: readonly TimeSliceTemplateEnum[]; type ExpandEnum = 'actions' | 'timeSlices'; const ExpandEnumValues: readonly ExpandEnum[]; } export declare namespace bookingBlocksPost { interface Params { /** * The details for the block you want to create. */ body: CreateBlockModel; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; /** * Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours. */ idempotencyKey?: string; } } export declare namespace bookingBlockscountGet { interface Params { /** * Return blocks for the specific group */ groupId?: string; /** * Return blocks filtered by properties */ propertyIds?: Array; /** * Return blocks filtered by statuses */ status?: Array; /** * Return blocks with any of the specified unit groups */ unitGroupIds?: Array; /** * Return blocks with any of the specified rate plans */ ratePlanIds?: Array; /** * Return blocks with any of the specified time slice definitions */ timeSliceDefinitionIds?: Array; /** * Return blocks with any of the specified unit group types */ unitGroupTypes?: Array; /** * The time slice template, defaults to 'over night' */ timeSliceTemplate?: TimeSliceTemplateEnum; /** * The start of the time range. All blocks that are overlapping with the interval specified by from and to will be returned
A date and time (without fractional second part) in UTC or with UTC offset as defined in ISO8601:2004 */ from?: Date; /** * The end of the time range. All blocks that are overlapping with the interval specified by from and to will be returned
A date and time (without fractional second part) in UTC or with UTC offset as defined in ISO8601:2004 */ to?: Date; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; } type StatusEnum = 'Tentative' | 'Definite' | 'Canceled'; const StatusEnumValues: readonly StatusEnum[]; type UnitGroupTypesEnum = 'BedRoom' | 'MeetingRoom' | 'EventSpace' | 'ParkingLot' | 'Other'; const UnitGroupTypesEnumValues: readonly UnitGroupTypesEnum[]; type TimeSliceTemplateEnum = 'DayUse' | 'OverNight'; const TimeSliceTemplateEnumValues: readonly TimeSliceTemplateEnum[]; } export declare class BlockService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); /** * @param consumes string[] mime-types * @return true: consumes contains 'multipart/form-data', false: otherwise */ private canConsumeForm; /** * Delete a specific block * Use this call to delete a block. This is only possible as long as no reservation was picked up yet even if all of them are canceled<br>You must have at least one of these scopes: 'blocks.manage, reservations.manage'. * @param $params.id The id of the block. * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @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. */ bookingBlocksByIdDelete($params: bookingBlocksByIdDelete.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingBlocksByIdDelete($params: bookingBlocksByIdDelete.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingBlocksByIdDelete($params: bookingBlocksByIdDelete.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Returns a specific block. * Retrieves a block, specified by its ID.<br>You must have at least one of these scopes: 'blocks.read, reservations.read, reservations.manage'. * @param $params.id Id of the block to be retrieved. * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @param $params.expand List of all embedded resources that should be expanded in the response. Possible values are: actions, timeSlices. All other values will be silently ignored. * @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. */ bookingBlocksByIdGet($params: bookingBlocksByIdGet.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingBlocksByIdGet($params: bookingBlocksByIdGet.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingBlocksByIdGet($params: bookingBlocksByIdGet.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Check if a block exists * Check if a block exists by id<br>You must have at least one of these scopes: 'blocks.read, reservations.read, reservations.manage'. * @param $params.id The id of the block. * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @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. */ bookingBlocksByIdHead($params: bookingBlocksByIdHead.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingBlocksByIdHead($params: bookingBlocksByIdHead.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingBlocksByIdHead($params: bookingBlocksByIdHead.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Returns offers for one specific block. * Calculates and returns offers for amending a specific block.<br>You must have at least one of these scopes: 'offers.read, blocks.manage, reservations.manage'. * @param $params.id Id of the block to be amended. * @param $params.arrival Date and optional time of arrival<br />Specify either a pure date or a date and time (without fractional second part) in UTC or with UTC offset as defined in <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a> * @param $params.departure Date and optional time of departure. Cannot be more than 5 years after arrival.<br />Specify either a pure date or a date and time (without fractional second part) in UTC or with UTC offset as defined in <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a> * @param $params.includeUnavailable Return also offers that are currently not publicly bookable as restrictions are violated. By default only available offers are returned * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @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. */ bookingBlocksByIdOffersGet($params: bookingBlocksByIdOffersGet.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingBlocksByIdOffersGet($params: bookingBlocksByIdOffersGet.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingBlocksByIdOffersGet($params: bookingBlocksByIdOffersGet.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Allows to modify certain block properties * Here is the list of operations that are currently allowed: - Add, replace and remove MarketSegment<br>You must have at least one of these scopes: 'blocks.manage, reservations.manage'. * @param $params.id Id of the block to be modified. * @param $params.body Define the list of operations to be applied to the resource. Learn more about JSON Patch here: http://jsonpatch.com/. * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @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. */ bookingBlocksByIdPatch($params: bookingBlocksByIdPatch.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingBlocksByIdPatch($params: bookingBlocksByIdPatch.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingBlocksByIdPatch($params: bookingBlocksByIdPatch.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Returns a list of blocks * Returns a list of all blocks, filtered by the specified parameters. If no parameters are set, returns the entire list.<br>You must have at least one of these scopes: 'blocks.read, reservations.read, reservations.manage'. * @param $params.groupId Return blocks for the specific group * @param $params.propertyIds Return blocks filtered by properties * @param $params.status Return blocks filtered by statuses * @param $params.unitGroupIds Return blocks with any of the specified unit groups * @param $params.ratePlanIds Return blocks with any of the specified rate plans * @param $params.timeSliceDefinitionIds Return blocks with any of the specified time slice definitions * @param $params.unitGroupTypes Return blocks with any of the specified unit group types * @param $params.timeSliceTemplate The time slice template, defaults to 'over night' * @param $params.from The start of the time range. All blocks that are overlapping with the interval specified by from and to will be returned<br />A date and time (without fractional second part) in UTC or with UTC offset as defined in <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a> * @param $params.to The end of the time range. All blocks that are overlapping with the interval specified by from and to will be returned<br />A date and time (without fractional second part) in UTC or with UTC offset as defined in <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a> * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @param $params.pageNumber Page number, 1-based. Default value is 1 (if this is not set or not positive). Results in 204 if there are no items on that page. * @param $params.pageSize Page size. If this is not set or not positive, the pageNumber is ignored and all items are returned. * @param $params.expand List of all embedded resources that should be expanded in the response. Possible values are: actions, timeSlices. All other values will be silently ignored. * @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. */ bookingBlocksGet($params: bookingBlocksGet.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingBlocksGet($params: bookingBlocksGet.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingBlocksGet($params: bookingBlocksGet.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Creates a block * <br>You must have at least one of these scopes: 'blocks.create, reservations.manage'. * @param $params.body The details for the block you want to create. * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @param $params.idempotencyKey Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours. * @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. */ bookingBlocksPost($params: bookingBlocksPost.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingBlocksPost($params: bookingBlocksPost.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingBlocksPost($params: bookingBlocksPost.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Returns number of blocks * Returns number of blocks matching the filter criteria<br>You must have at least one of these scopes: 'blocks.read, reservations.read, reservations.manage'. * @param $params.groupId Return blocks for the specific group * @param $params.propertyIds Return blocks filtered by properties * @param $params.status Return blocks filtered by statuses * @param $params.unitGroupIds Return blocks with any of the specified unit groups * @param $params.ratePlanIds Return blocks with any of the specified rate plans * @param $params.timeSliceDefinitionIds Return blocks with any of the specified time slice definitions * @param $params.unitGroupTypes Return blocks with any of the specified unit group types * @param $params.timeSliceTemplate The time slice template, defaults to 'over night' * @param $params.from The start of the time range. All blocks that are overlapping with the interval specified by from and to will be returned<br />A date and time (without fractional second part) in UTC or with UTC offset as defined in <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a> * @param $params.to The end of the time range. All blocks that are overlapping with the interval specified by from and to will be returned<br />A date and time (without fractional second part) in UTC or with UTC offset as defined in <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a> * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @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. */ bookingBlockscountGet($params: bookingBlockscountGet.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingBlockscountGet($params: bookingBlockscountGet.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingBlockscountGet($params: bookingBlockscountGet.Params, observe?: 'events', reportProgress?: boolean): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }