import { HttpParameterCodec, HttpParams, HttpHeaders, HttpClient, HttpContext, HttpResponse, HttpEvent } from '@angular/common/http'; import { Observable } from 'rxjs'; import * as i0 from '@angular/core'; import { InjectionToken, ModuleWithProviders, EnvironmentProviders } from '@angular/core'; /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ declare const ItemType: { readonly Anime: "anime"; readonly Game: "game"; readonly Music: "music"; readonly Book: "book"; readonly Individual: "individual"; readonly Character: "character"; readonly RealWorld: "real"; readonly Association: "association"; readonly Corporation: "corporation"; readonly Organization: "organization"; readonly Ship: "ship"; readonly Mechanic: "mechanic"; }; type ItemType = typeof ItemType[keyof typeof ItemType]; /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * @type PropertyValueValue * @export */ type PropertyValueValue = Array | Array<{ [key: string]: string; }> | string; /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ declare const PropertyType: { readonly Staff: "Staff"; readonly Item: "Item"; readonly Character: "Character"; readonly Info: "Info"; readonly Cast: "Cast"; }; type PropertyType = typeof PropertyType[keyof typeof PropertyType]; /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface PropertyValue { anidbKey?: string; bgmKey?: string; propertyType?: PropertyType; locked: boolean; value: PropertyValueValue; } declare namespace PropertyValue { } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface SubItem { id: string; bgmId: number; /** * Not used for ItemType.Individual and ItemType.Character */ publicTime?: string; name?: string; nameCn?: string; properties: { [key: string]: PropertyValue; }; type: SubItem.TypeEnum; episodeType: SubItem.EpisodeTypeEnum | null; ep?: number | null; disc?: number | null; desc?: string; sort: number; mainItemId: string; mainItem?: MainItem; } declare namespace SubItem { const TypeEnum: { readonly Episode: 0; readonly Song: 1; }; type TypeEnum = typeof TypeEnum[keyof typeof TypeEnum]; const EpisodeTypeEnum: { readonly Episode: 0; readonly Special: 1; }; type EpisodeTypeEnum = typeof EpisodeTypeEnum[keyof typeof EpisodeTypeEnum]; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ declare const MainType: { readonly Item: 0; readonly Person: 1; readonly Character: 2; }; type MainType = typeof MainType[keyof typeof MainType]; /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * image information */ interface ImageInfo { id: string; url: string; width: number; height: number; dormantColor: string; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface MainItem { id: string; bgmId: number; /** * Not used for ItemType.Individual and ItemType.Character */ publicTime?: string; name?: string; nameCn?: string; properties: { [key: string]: PropertyValue; }; mainType: MainType; type: ItemType; subType?: string; /** * determine if the MainItem is collection item */ isCollection: boolean; coverImage?: ImageInfo; squareImage?: ImageInfo; subItems?: Array; summary?: string; } declare namespace MainItem { } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface BatchGetMainItemByIdListResult { data: Array; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface BatchGetSubItemByIdListResult { data: Array; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ declare const ItemSubType: { readonly Other: "other"; readonly TV: "TV"; readonly Web: "web"; readonly OVA: "OVA"; readonly Movie: "movie"; readonly Novel: "Novel"; readonly Comic: "Comic"; readonly Illustration: "Illustration"; readonly DramaJp: "jp"; readonly DramaEn: "en"; readonly DramaCn: "cn"; readonly PC: "PC"; readonly NDS: "NDS"; readonly PSP: "PSP"; readonly PS2: "PS2"; readonly PS3: "PS3"; readonly Xbox360: "Xbox360"; readonly Mac: "Mac OS"; readonly PS5: "PS5"; readonly XboxSeriesXS: "Xbox Series X/S"; readonly PS4: "PS4"; readonly XboxOne: "Xbox One"; readonly NintendoSwitch: "Nintendo Switch"; readonly WiiU: "Wii U"; readonly Wii: "Wii"; readonly PSVita: "PS Vita"; readonly N3DS: "3DS"; readonly IOS: "iOS"; readonly Android: "Android"; readonly ARC: "ARC"; readonly XBOX: "XBOX"; readonly GameCube: "GameCube"; readonly Dreamcast: "Dreamcast"; readonly Nintendo64: "Nitendo 64"; readonly PlayStation: "PlayStation"; readonly SFC: "SFC"; readonly FC: "FC"; readonly NEOGEOPocketColor: "NEOGEO Pocket Color"; readonly GBA: "GBA"; readonly GB: "GB"; readonly VirtualBoy: "Virtual Boy"; readonly WonderSwanColor: "WonderSwan Color"; readonly WonderSwan: "WonderSwan"; }; type ItemSubType = typeof ItemSubType[keyof typeof ItemSubType]; /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface MainItemBasic { id: string; bgmId: string; mainType: MainType; type: ItemType; subType: ItemSubType; publicTime?: string; /** * determine if the MainItem is collection item */ isCollection: boolean; coverImage?: ImageInfo; squareImage?: ImageInfo; name?: string; nameCn?: string; } declare namespace MainItemBasic { } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * represent the relation among the Item type, Person type and Character type MainItems, it can also only be Item and Character type relation. */ interface ItemCastCharacterRelation { id: string; mainItemId: string; mainItemBgmId: number; relatedCastId?: string | null; relatedCastBgmId: number | null; relatedCharacterId?: string | null; relatedCharacterBgmId: number; characterType: string; isLocked: boolean; relationType?: string; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface CharacterRelationsWithMainItems { mainItems: Array; relatedItems: Array; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface ClientMapping { id: string; clientId: string; item: MainItem; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface SubItemFavorite { id: string; subItem?: SubItem; userId: string; itemId: string; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface CreateSubItemFavoriteResponse { data: Array; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface CreateSubItemFavoritesRequestBody { subItemIdList: Array; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface DeleteClientMappingByMainItemResponse { /** * how many entries are deleted, 1 is successful, 0 is unsuccessful. */ data: number; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ declare const FavoriteStatus: { readonly Planned: "Planned"; readonly Watched: "Watched"; readonly Watching: "Watching"; readonly OnHold: "OnHold"; readonly Dropped: "Dropped"; }; type FavoriteStatus = typeof FavoriteStatus[keyof typeof FavoriteStatus]; /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface Favorite { readonly id?: string; status: FavoriteStatus; reviewComment?: string; rating?: number; item: MainItem; userId: string; } declare namespace Favorite { } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface FavoriteProgress { progress: number; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface GetFavoriteResponse { data?: Favorite; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface OnAirItem { id: string; bgmId: number; /** * RFC3339 Datetime */ publicTime?: string; type: ItemType; subType?: ItemSubType; name?: string; nameCn?: string; coverImage?: ImageInfo; } declare namespace OnAirItem { } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface GetOnAirItemListResponse { /** * a list of OnAirItems */ data: Array; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface IdListRequestBody { ids: Array; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * represent the relation between the Item type MainItem and Person type MainItem */ interface ItemPersonRelation { id: string; mainItemId: string; mainItemBgmId: number; personItemId?: string | null; personItemBgmId: number; relationType: string; isLocked: boolean; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * represent the relation of the Item type MainItems */ interface ItemRelation { id: string; mainItemId: string; mainItemBgmId: number; relatedItemId?: string | null; relatedBgmId: number; relationType: string; isLocked: boolean; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface ItemRelationsWithMainItems { mainItems: Array; relatedItems: Array; relatedPersons: Array; relatedCharacters: Array; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface ListFavoritesResponse { /** * a list of Favorite */ data: Array; /** * total number of the result */ total: number; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface ListMainItemResponse { /** * a list of MainItems */ data: Array; /** * total number of the result */ total: number; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface ListSubItemFavoriteResponse { data: Array; /** * total number of the result, if itemId is provided, this field will not available */ total?: number; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface PatchFavoriteBody { status: FavoriteStatus; reviewComment?: string; rating?: number; } declare namespace PatchFavoriteBody { } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface PersonRelationsWithMainItems { mainItems: Array; relatedItems: Array; relatedCharacters: Array; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface SucceedEmptyResponse { message: string; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface SyncFavoritesRequestBodyFavoritesInner { itemId: string; status: string; subFavorites: Array; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface SyncFavoritesRequestBody { favorites: Array; overrideOnConflict?: boolean; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface SyncFavoritesResponse { favorites?: Array; subItemFavorites?: Array; deletedItemIds?: Array; deletedSubItemIds?: Array; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface SyncSubItemFavoritesByFavoriteIdRequestBody { subItemStatusMapping: { [key: string]: boolean; }; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface SyncSubItemFavoritesByFavoriteIdResponse { data: Array; } /** * Standard parameter styles defined by OpenAPI spec */ type StandardParamStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject'; /** * The OpenAPI standard {@link StandardParamStyle}s may be extended by custom styles by the user. */ type ParamStyle = StandardParamStyle | string; /** * Standard parameter locations defined by OpenAPI spec */ type ParamLocation = 'query' | 'header' | 'path' | 'cookie'; /** * Standard types as defined in OpenAPI Specification: Data Types */ type StandardDataType = "integer" | "number" | "boolean" | "string" | "object" | "array"; /** * Standard {@link DataType}s plus your own types/classes. */ type DataType = StandardDataType | string; /** * Standard formats as defined in OpenAPI Specification: Data Types */ type StandardDataFormat = "int32" | "int64" | "float" | "double" | "byte" | "binary" | "date" | "date-time" | "password"; type DataFormat = StandardDataFormat | string; /** * The parameter to encode. */ interface Param { name: string; value: unknown; in: ParamLocation; style: ParamStyle; explode: boolean; dataType: DataType; dataFormat: DataFormat | undefined; } declare enum QueryParamStyle { Json = 0, Form = 1, DeepObject = 2, SpaceDelimited = 3, PipeDelimited = 4 } type Delimiter = "," | " " | "|" | "\t"; interface ParamOptions { /** When true, serialized as multiple repeated key=value pairs. When false, serialized as a single key with joined values using `delimiter`. */ explode?: boolean; /** Delimiter used when explode=false. The delimiter itself is inserted unencoded between encoded values. */ delimiter?: Delimiter; } declare class OpenApiHttpParams { private params; private defaults; private encoder; /** * @param encoder Parameter serializer * @param defaults Global defaults used when a specific parameter has no explicit options. * By OpenAPI default, explode is true for query params with style=form. */ constructor(encoder?: HttpParameterCodec, defaults?: { explode?: boolean; delimiter?: Delimiter; }); private resolveOptions; /** * Replace the parameter's values and (optionally) its options. * Options are stored per-parameter (not global). */ set(key: string, values: string[] | string, options?: ParamOptions): this; /** * Append a single value to the parameter. If the parameter didn't exist it will be created * and use resolved options (global defaults merged with any provided options). */ append(key: string, value: string, options?: ParamOptions): this; /** * Serialize to a query string according to per-parameter OpenAPI options. * - If explode=true for that parameter → repeated key=value pairs (each value encoded). * - If explode=false for that parameter → single key=value where values are individually encoded * and joined using the configured delimiter. The delimiter character is inserted AS-IS * (not percent-encoded). */ toString(): string; /** * Return parameters as a plain record. * - If a parameter has exactly one value, returns that value directly. * - If a parameter has multiple values, returns a readonly array of values. */ toRecord(): Record>; /** * Return an Angular's HttpParams with an identity parameter codec as the parameters are already encoded. */ toHttpParams(): HttpParams; } interface MiraConfigurationParameters { /** * @deprecated Since 5.0. Use credentials instead */ apiKeys?: { [key: string]: string; }; username?: string; password?: string; /** * @deprecated Since 5.0. Use credentials instead */ accessToken?: string | (() => string); basePath?: string; withCredentials?: boolean; /** * Takes care of encoding query- and form-parameters. */ encoder?: HttpParameterCodec; /** * Override the default method for encoding path parameters in various * styles. *

* See {@link README.md} for more details *

*/ encodeParam?: (param: Param) => string; /** * The keys are the names in the securitySchemes section of the OpenAPI * document. They should map to the value used for authentication * minus any standard prefixes such as 'Basic' or 'Bearer'. */ credentials?: { [key: string]: string | (() => string | undefined); }; } declare class MiraConfiguration { /** * @deprecated Since 5.0. Use credentials instead */ apiKeys?: { [key: string]: string; }; username?: string; password?: string; /** * @deprecated Since 5.0. Use credentials instead */ accessToken?: string | (() => string); basePath?: string; withCredentials?: boolean; /** * Takes care of encoding query- and form-parameters. */ encoder?: HttpParameterCodec; /** * Encoding of various path parameter * styles. *

* See {@link README.md} for more details *

*/ encodeParam: (param: Param) => string; /** * The keys are the names in the securitySchemes section of the OpenAPI * document. They should map to the value used for authentication * minus any standard prefixes such as 'Basic' or 'Bearer'. */ credentials: { [key: string]: string | (() => string | undefined); }; constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials }?: MiraConfigurationParameters); /** * Select the correct content-type to use for a request. * Uses {@link MiraConfiguration#isJsonMime} to determine the correct content-type. * If no content type is found return the first found type if the contentTypes is not empty * @param contentTypes - the array of content types that are available for selection * @returns the selected content-type or undefined if no selection could be made. */ selectHeaderContentType(contentTypes: string[]): string | undefined; /** * Select the correct accept content-type to use for a request. * Uses {@link MiraConfiguration#isJsonMime} to determine the correct accept content-type. * If no content type is found return the first found type if the contentTypes is not empty * @param accepts - the array of content types that are available for selection. * @returns the selected content-type or undefined if no selection could be made. */ selectHeaderAccept(accepts: string[]): string | undefined; /** * Check if the given MIME is a JSON MIME. * JSON MIME examples: * application/json * application/json; charset=UTF8 * APPLICATION/JSON * application/vnd.company+json * @param mime - MIME (Multipurpose Internet Mail Extensions) * @return True if the given MIME is JSON, false otherwise. */ isJsonMime(mime: string): boolean; lookupCredential(key: string): string | undefined; addCredentialToHeaders(credentialKey: string, headerName: string, headers: HttpHeaders, prefix?: string): HttpHeaders; addCredentialToQuery(credentialKey: string, paramName: string, query: OpenApiHttpParams): OpenApiHttpParams; private defaultEncodeParam; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ declare class BaseService { protected basePath: string; defaultHeaders: HttpHeaders; configuration: MiraConfiguration; encoder: HttpParameterCodec; constructor(basePath?: string | string[], configuration?: MiraConfiguration); protected canConsumeForm(consumes: string[]): boolean; protected addToHttpParams(httpParams: OpenApiHttpParams, key: string, value: any | null | undefined, paramStyle: QueryParamStyle, explode: boolean): OpenApiHttpParams; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface ErrorResponse { message?: string; status?: number; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface ItemEntity { id: string; bgmId: number; /** * Not used for ItemType.Individual and ItemType.Character */ publicTime?: string; name?: string; nameCn?: string; properties: { [key: string]: PropertyValue; }; } /** * mira API * * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface DefaultMiraInterface { defaultHeaders: HttpHeaders; configuration: MiraConfiguration; /** * * Add ClientMapping * @endpoint post /client-mapping * @param request_body */ addClientMapping(request_body: Array, extraHttpRequestParams?: any): Observable; /** * * get mainItems by id list * @endpoint post /client-mapping/batch/main * @param IdListRequestBody */ batchGetMainItemByIdList(IdListRequestBody: IdListRequestBody, extraHttpRequestParams?: any): Observable; /** * * get SubItems by id list * @endpoint post /client-mapping/batch/subItem * @param IdListRequestBody */ batchGetSubItemsByIdList(IdListRequestBody: IdListRequestBody, extraHttpRequestParams?: any): Observable; /** * * create a favorite for user and item * @endpoint post /favorite * @param Favorite */ createFavorite(Favorite: Favorite, extraHttpRequestParams?: any): Observable; /** * * create SubItemFavorites * @endpoint post /favorite/sub * @param CreateSubItemFavoritesRequestBody */ createSubItemFavorites(CreateSubItemFavoritesRequestBody: CreateSubItemFavoritesRequestBody, extraHttpRequestParams?: any): Observable; /** * * Delete ClientMapping by MainItem id * @endpoint delete /client-mapping/main/{id} * @param id */ deleteClientMappingByMainItemId(id: string, extraHttpRequestParams?: any): Observable; /** * * Delete a favorite * @endpoint delete /favorite/{id} * @param id */ deleteFavorite(id: string, extraHttpRequestParams?: any): Observable; /** * * Delete a SubItemFavorite * @endpoint delete /favorite/sub/{id} * @param id */ deleteSubItemFavorite(id: string, extraHttpRequestParams?: any): Observable; /** * * Get a favorite by id * @endpoint get /favorite/{id} * @param id */ getFavoriteById(id: string, extraHttpRequestParams?: any): Observable; /** * * get favorite by MainItem id * @endpoint get /favorite/main/{id} * @param id */ getFavoriteByMainItemId(id: string, extraHttpRequestParams?: any): Observable; /** * * get favorite progress (number of SubItemFavorite from the beginning) of a episode type for mainItem * @endpoint get /favorite/progress * @param mainItemId * @param epType */ getFavoriteProgressByMainItemId(mainItemId: string, epType: number, extraHttpRequestParams?: any): Observable; /** * * get a MainItem by id * @endpoint get /public/item/main/{id} * @param id MainItem id * @param coverImage populate coverImage if true * @param subItems populate subItems if true */ getMainItemById(id: string, coverImage?: string, subItems?: string, extraHttpRequestParams?: any): Observable; /** * * get all related (Item , Cast) MainItem of an Character Type MainItem. * @endpoint get /public/relation/character/{id} * @param id MainItem id */ getRelationsOfCharacter(id: string, extraHttpRequestParams?: any): Observable; /** * * get all related (Item, Staff, Cast, Character) MainItem of an Item Type MainItem. * @endpoint get /public/relation/item/{id} * @param id MainItem id */ getRelationsOfItem(id: string, extraHttpRequestParams?: any): Observable; /** * * get all related (Item , Character) MainItem of an Person Type MainItem. * @endpoint get /public/relation/person/{id} * @param id MainItem id */ getRelationsOfPerson(id: string, extraHttpRequestParams?: any): Observable; /** * * get a SubItem by id * @endpoint get /public/item/main/subItem/{id} * @param id SubItem Id */ getSubItemById(id: string, extraHttpRequestParams?: any): Observable; /** * * list favorites for user * @endpoint get /favorite * @param status * @param offset * @param limit * @param orderBy * @param sort */ listFavorites(status: string, offset?: number, limit?: number, orderBy?: string, sort?: string, extraHttpRequestParams?: any): Observable; /** * * list MainItems * @endpoint get /public/item/main * @param serviceClientId * @param mainType * @param type * @param subType * @param offset * @param limit * @param orderBy * @param sort * @param keyword */ listMainItems(serviceClientId?: string, mainType?: string, type?: string, subType?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, keyword?: string, extraHttpRequestParams?: any): Observable; /** * * list SubItemFavorite * @endpoint get /favorite/sub * @param itemId itemId of the SubItem, if provided then other parameters are ignored * @param offset * @param limit * @param orderBy * @param sort * @param subItem */ listSubItemFavorites(itemId?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, subItem?: boolean, extraHttpRequestParams?: any): Observable; /** * * get a list of on air MainItems with cover image * @endpoint get /public/item/on-air * @param type type of MainItem, must be either anime or real */ onAirItem(type: string, extraHttpRequestParams?: any): Observable; /** * * change status of a favorite * @endpoint patch /favorite/{id} * @param id * @param PatchFavoriteBody */ patchFavorite(id: string, PatchFavoriteBody: PatchFavoriteBody, extraHttpRequestParams?: any): Observable; /** * * predict Main Item names base on provided prefix * @endpoint get /public/item/predict * @param prefix start part of the name */ predictMainItemName(prefix: string, extraHttpRequestParams?: any): Observable>; /** * * Sync favorites from external source, merge with existing favorites * @endpoint post /favorite/sync * @param SyncFavoritesRequestBody */ syncFavorites(SyncFavoritesRequestBody: SyncFavoritesRequestBody, extraHttpRequestParams?: any): Observable; /** * * sync SubItemFavorites by favorite Id * @endpoint put /favorite/sync/{favoriteId} * @param favoriteId * @param SyncSubItemFavoritesByFavoriteIdRequestBody */ syncSubItemFavoritesByFavoriteId(favoriteId: string, SyncSubItemFavoritesByFavoriteIdRequestBody: SyncSubItemFavoritesByFavoriteIdRequestBody, extraHttpRequestParams?: any): Observable; /** * * update progress of a favorite, will create/delete SubItemFavorite * @endpoint post /favorite/progress * @param mainItemId * @param progress * @param epType */ updateFavoriteProgress(mainItemId: string, progress: number, epType: number, extraHttpRequestParams?: any): Observable; } declare class DefaultMira extends BaseService implements DefaultMiraInterface { protected httpClient: HttpClient; constructor(httpClient: HttpClient, basePath: string | string[], configuration?: MiraConfiguration); /** * Add ClientMapping * @endpoint post /client-mapping * @param request_body * @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. * @param options additional options */ addClientMapping(request_body: Array, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; addClientMapping(request_body: Array, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; addClientMapping(request_body: Array, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * get mainItems by id list * @endpoint post /client-mapping/batch/main * @param IdListRequestBody * @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. * @param options additional options */ batchGetMainItemByIdList(IdListRequestBody: IdListRequestBody, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; batchGetMainItemByIdList(IdListRequestBody: IdListRequestBody, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; batchGetMainItemByIdList(IdListRequestBody: IdListRequestBody, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * get SubItems by id list * @endpoint post /client-mapping/batch/subItem * @param IdListRequestBody * @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. * @param options additional options */ batchGetSubItemsByIdList(IdListRequestBody: IdListRequestBody, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; batchGetSubItemsByIdList(IdListRequestBody: IdListRequestBody, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; batchGetSubItemsByIdList(IdListRequestBody: IdListRequestBody, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * create a favorite for user and item * @endpoint post /favorite * @param Favorite * @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. * @param options additional options */ createFavorite(Favorite: Favorite, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; createFavorite(Favorite: Favorite, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; createFavorite(Favorite: Favorite, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * create SubItemFavorites * @endpoint post /favorite/sub * @param CreateSubItemFavoritesRequestBody * @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. * @param options additional options */ createSubItemFavorites(CreateSubItemFavoritesRequestBody: CreateSubItemFavoritesRequestBody, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; createSubItemFavorites(CreateSubItemFavoritesRequestBody: CreateSubItemFavoritesRequestBody, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; createSubItemFavorites(CreateSubItemFavoritesRequestBody: CreateSubItemFavoritesRequestBody, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * Delete ClientMapping by MainItem id * @endpoint delete /client-mapping/main/{id} * @param id * @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. * @param options additional options */ deleteClientMappingByMainItemId(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; deleteClientMappingByMainItemId(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; deleteClientMappingByMainItemId(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * Delete a favorite * @endpoint delete /favorite/{id} * @param id * @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. * @param options additional options */ deleteFavorite(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; deleteFavorite(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; deleteFavorite(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * Delete a SubItemFavorite * @endpoint delete /favorite/sub/{id} * @param id * @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. * @param options additional options */ deleteSubItemFavorite(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; deleteSubItemFavorite(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; deleteSubItemFavorite(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * Get a favorite by id * @endpoint get /favorite/{id} * @param id * @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. * @param options additional options */ getFavoriteById(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; getFavoriteById(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; getFavoriteById(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * get favorite by MainItem id * @endpoint get /favorite/main/{id} * @param id * @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. * @param options additional options */ getFavoriteByMainItemId(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; getFavoriteByMainItemId(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; getFavoriteByMainItemId(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * get favorite progress (number of SubItemFavorite from the beginning) of a episode type for mainItem * @endpoint get /favorite/progress * @param mainItemId * @param epType * @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. * @param options additional options */ getFavoriteProgressByMainItemId(mainItemId: string, epType: number, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; getFavoriteProgressByMainItemId(mainItemId: string, epType: number, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; getFavoriteProgressByMainItemId(mainItemId: string, epType: number, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * get a MainItem by id * @endpoint get /public/item/main/{id} * @param id MainItem id * @param coverImage populate coverImage if true * @param subItems populate subItems if true * @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. * @param options additional options */ getMainItemById(id: string, coverImage?: string, subItems?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; getMainItemById(id: string, coverImage?: string, subItems?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; getMainItemById(id: string, coverImage?: string, subItems?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * get all related (Item , Cast) MainItem of an Character Type MainItem. * @endpoint get /public/relation/character/{id} * @param id MainItem id * @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. * @param options additional options */ getRelationsOfCharacter(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; getRelationsOfCharacter(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; getRelationsOfCharacter(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * get all related (Item, Staff, Cast, Character) MainItem of an Item Type MainItem. * @endpoint get /public/relation/item/{id} * @param id MainItem id * @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. * @param options additional options */ getRelationsOfItem(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; getRelationsOfItem(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; getRelationsOfItem(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * get all related (Item , Character) MainItem of an Person Type MainItem. * @endpoint get /public/relation/person/{id} * @param id MainItem id * @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. * @param options additional options */ getRelationsOfPerson(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; getRelationsOfPerson(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; getRelationsOfPerson(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * get a SubItem by id * @endpoint get /public/item/main/subItem/{id} * @param id SubItem Id * @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. * @param options additional options */ getSubItemById(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; getSubItemById(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; getSubItemById(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * list favorites for user * @endpoint get /favorite * @param status * @param offset * @param limit * @param orderBy * @param sort * @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. * @param options additional options */ listFavorites(status: string, offset?: number, limit?: number, orderBy?: string, sort?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; listFavorites(status: string, offset?: number, limit?: number, orderBy?: string, sort?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; listFavorites(status: string, offset?: number, limit?: number, orderBy?: string, sort?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * list MainItems * @endpoint get /public/item/main * @param serviceClientId * @param mainType * @param type * @param subType * @param offset * @param limit * @param orderBy * @param sort * @param keyword * @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. * @param options additional options */ listMainItems(serviceClientId?: string, mainType?: string, type?: string, subType?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, keyword?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; listMainItems(serviceClientId?: string, mainType?: string, type?: string, subType?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, keyword?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; listMainItems(serviceClientId?: string, mainType?: string, type?: string, subType?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, keyword?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * list SubItemFavorite * @endpoint get /favorite/sub * @param itemId itemId of the SubItem, if provided then other parameters are ignored * @param offset * @param limit * @param orderBy * @param sort * @param subItem * @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. * @param options additional options */ listSubItemFavorites(itemId?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, subItem?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; listSubItemFavorites(itemId?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, subItem?: boolean, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; listSubItemFavorites(itemId?: string, offset?: number, limit?: number, orderBy?: string, sort?: string, subItem?: boolean, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * get a list of on air MainItems with cover image * @endpoint get /public/item/on-air * @param type type of MainItem, must be either anime or real * @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. * @param options additional options */ onAirItem(type: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; onAirItem(type: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; onAirItem(type: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * change status of a favorite * @endpoint patch /favorite/{id} * @param id * @param PatchFavoriteBody * @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. * @param options additional options */ patchFavorite(id: string, PatchFavoriteBody: PatchFavoriteBody, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; patchFavorite(id: string, PatchFavoriteBody: PatchFavoriteBody, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; patchFavorite(id: string, PatchFavoriteBody: PatchFavoriteBody, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * predict Main Item names base on provided prefix * @endpoint get /public/item/predict * @param prefix start part of the name * @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. * @param options additional options */ predictMainItemName(prefix: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; predictMainItemName(prefix: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>>; predictMainItemName(prefix: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>>; /** * Sync favorites from external source, merge with existing favorites * @endpoint post /favorite/sync * @param SyncFavoritesRequestBody * @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. * @param options additional options */ syncFavorites(SyncFavoritesRequestBody: SyncFavoritesRequestBody, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; syncFavorites(SyncFavoritesRequestBody: SyncFavoritesRequestBody, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; syncFavorites(SyncFavoritesRequestBody: SyncFavoritesRequestBody, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * sync SubItemFavorites by favorite Id * @endpoint put /favorite/sync/{favoriteId} * @param favoriteId * @param SyncSubItemFavoritesByFavoriteIdRequestBody * @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. * @param options additional options */ syncSubItemFavoritesByFavoriteId(favoriteId: string, SyncSubItemFavoritesByFavoriteIdRequestBody: SyncSubItemFavoritesByFavoriteIdRequestBody, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; syncSubItemFavoritesByFavoriteId(favoriteId: string, SyncSubItemFavoritesByFavoriteIdRequestBody: SyncSubItemFavoritesByFavoriteIdRequestBody, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; syncSubItemFavoritesByFavoriteId(favoriteId: string, SyncSubItemFavoritesByFavoriteIdRequestBody: SyncSubItemFavoritesByFavoriteIdRequestBody, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * update progress of a favorite, will create/delete SubItemFavorite * @endpoint post /favorite/progress * @param mainItemId * @param progress * @param epType * @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. * @param options additional options */ updateFavoriteProgress(mainItemId: string, progress: number, epType: number, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable; updateFavoriteProgress(mainItemId: string, progress: number, epType: number, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; updateFavoriteProgress(mainItemId: string, progress: number, epType: number, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare const APIS: (typeof DefaultMira)[]; declare const BASE_PATH: InjectionToken; declare const COLLECTION_FORMATS: { csv: string; tsv: string; ssv: string; pipes: string; }; declare class MiraApiModule { static forRoot(configurationFactory: () => MiraConfiguration): ModuleWithProviders; constructor(parentModule: MiraApiModule, http: HttpClient); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare function provideApi(configOrBasePath: string | MiraConfigurationParameters): EnvironmentProviders; export { APIS, BASE_PATH, COLLECTION_FORMATS, DefaultMira, Favorite, FavoriteStatus, ItemSubType, ItemType, MainItem, MainItemBasic, MainType, MiraApiModule, MiraConfiguration, OnAirItem, PatchFavoriteBody, PropertyType, PropertyValue, SubItem, provideApi }; export type { BatchGetMainItemByIdListResult, BatchGetSubItemByIdListResult, CharacterRelationsWithMainItems, ClientMapping, CreateSubItemFavoriteResponse, CreateSubItemFavoritesRequestBody, DataFormat, DataType, DefaultMiraInterface, DeleteClientMappingByMainItemResponse, ErrorResponse, FavoriteProgress, GetFavoriteResponse, GetOnAirItemListResponse, IdListRequestBody, ImageInfo, ItemCastCharacterRelation, ItemEntity, ItemPersonRelation, ItemRelation, ItemRelationsWithMainItems, ListFavoritesResponse, ListMainItemResponse, ListSubItemFavoriteResponse, MiraConfigurationParameters, Param, ParamLocation, ParamStyle, PersonRelationsWithMainItems, PropertyValueValue, StandardDataFormat, StandardDataType, StandardParamStyle, SubItemFavorite, SucceedEmptyResponse, SyncFavoritesRequestBody, SyncFavoritesRequestBodyFavoritesInner, SyncFavoritesResponse, SyncSubItemFavoritesByFavoriteIdRequestBody, SyncSubItemFavoritesByFavoriteIdResponse };