// tslint:disable /** * Latineo Api * Api documentation for latineo * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as globalImportUrl from 'url'; import { Configuration } from './configuration'; import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base'; /** * * @export * @interface AgencyFilterResponse */ export interface AgencyFilterResponse { /** * * @type {boolean} * @memberof AgencyFilterResponse */ isFilterData: boolean; /** * * @type {number} * @memberof AgencyFilterResponse */ currentPage: number; /** * * @type {AgencyQueryParamsResponse} * @memberof AgencyFilterResponse */ queryParams: AgencyQueryParamsResponse; } /** * * @export * @interface AgencyQueryParamsResponse */ export interface AgencyQueryParamsResponse { /** * * @type {string} * @memberof AgencyQueryParamsResponse */ type: string; /** * * @type {string} * @memberof AgencyQueryParamsResponse */ sort: string; /** * * @type {string} * @memberof AgencyQueryParamsResponse */ geoLocation: string; } /** * * @export * @interface AgencyResponse */ export interface AgencyResponse { /** * * @type {number} * @memberof AgencyResponse */ id: number; /** * * @type {Array} * @memberof AgencyResponse */ images: Array; /** * * @type {number} * @memberof AgencyResponse */ likes: number; /** * * @type {number} * @memberof AgencyResponse */ views: number; /** * * @type {number} * @memberof AgencyResponse */ totalFavorites: number; /** * * @type {CreatorResponse} * @memberof AgencyResponse */ creator: CreatorResponse; /** * * @type {string} * @memberof AgencyResponse */ name: string; /** * * @type {string} * @memberof AgencyResponse */ description: string; /** * * @type {string} * @memberof AgencyResponse */ type: string; /** * * @type {string} * @memberof AgencyResponse */ location: string; /** * * @type {GeoResponse} * @memberof AgencyResponse */ geoLocation: GeoResponse; /** * * @type {string} * @memberof AgencyResponse */ category: string; /** * * @type {string} * @memberof AgencyResponse */ telephone: string; /** * * @type {string} * @memberof AgencyResponse */ web: string; /** * * @type {string} * @memberof AgencyResponse */ email: string; /** * * @type {string} * @memberof AgencyResponse */ createdAt: string; /** * * @type {string} * @memberof AgencyResponse */ updatedAt: string; } /** * * @export * @interface AllFavoritesResponse */ export interface AllFavoritesResponse { /** * * @type {Array} * @memberof AllFavoritesResponse */ favorites: Array; /** * * @type {string} * @memberof AllFavoritesResponse */ uid: string; /** * * @type {string} * @memberof AllFavoritesResponse */ email: string; /** * * @type {number} * @memberof AllFavoritesResponse */ total: number; /** * * @type {number} * @memberof AllFavoritesResponse */ currentPage: number; } /** * * @export * @interface AllPublicationsResponse */ export interface AllPublicationsResponse { /** * * @type {Array} * @memberof AllPublicationsResponse */ favorites: Array; /** * * @type {string} * @memberof AllPublicationsResponse */ uid: string; /** * * @type {string} * @memberof AllPublicationsResponse */ email: string; /** * * @type {number} * @memberof AllPublicationsResponse */ total: number; /** * * @type {number} * @memberof AllPublicationsResponse */ currentPage: number; } /** * * @export * @interface CommonFavoriteResponse */ export interface CommonFavoriteResponse { /** * * @type {number} * @memberof CommonFavoriteResponse */ id: number; /** * * @type {string} * @memberof CommonFavoriteResponse */ name: string; /** * * @type {string} * @memberof CommonFavoriteResponse */ description: string; /** * * @type {string} * @memberof CommonFavoriteResponse */ type: string; /** * * @type {string} * @memberof CommonFavoriteResponse */ location?: string; } /** * * @export * @interface CommonPublicationResponse */ export interface CommonPublicationResponse { /** * * @type {number} * @memberof CommonPublicationResponse */ id: number; /** * * @type {string} * @memberof CommonPublicationResponse */ name: string; /** * * @type {string} * @memberof CommonPublicationResponse */ description: string; /** * * @type {string} * @memberof CommonPublicationResponse */ type: string; /** * * @type {string} * @memberof CommonPublicationResponse */ location?: string; } /** * * @export * @interface ConcertFilterResponse */ export interface ConcertFilterResponse { /** * * @type {boolean} * @memberof ConcertFilterResponse */ isFilterData: boolean; /** * * @type {number} * @memberof ConcertFilterResponse */ currentPage: number; /** * * @type {ConcertQueryParamsResponse} * @memberof ConcertFilterResponse */ queryParams: ConcertQueryParamsResponse; } /** * * @export * @interface ConcertQueryParamsResponse */ export interface ConcertQueryParamsResponse { /** * * @type {string} * @memberof ConcertQueryParamsResponse */ type: string; /** * * @type {string} * @memberof ConcertQueryParamsResponse */ sort: string; /** * * @type {string} * @memberof ConcertQueryParamsResponse */ geoLocation: string; /** * * @type {string} * @memberof ConcertQueryParamsResponse */ whenStart: string; /** * * @type {string} * @memberof ConcertQueryParamsResponse */ whenEnd: string; /** * * @type {boolean} * @memberof ConcertQueryParamsResponse */ isOnline: boolean; } /** * * @export * @interface ConcertResponse */ export interface ConcertResponse { /** * * @type {number} * @memberof ConcertResponse */ id: number; /** * * @type {Array} * @memberof ConcertResponse */ images: Array; /** * * @type {number} * @memberof ConcertResponse */ likes: number; /** * * @type {number} * @memberof ConcertResponse */ views: number; /** * * @type {number} * @memberof ConcertResponse */ totalFavorites: number; /** * * @type {CreatorResponse} * @memberof ConcertResponse */ creator: CreatorResponse; /** * * @type {string} * @memberof ConcertResponse */ name: string; /** * * @type {string} * @memberof ConcertResponse */ description: string; /** * * @type {string} * @memberof ConcertResponse */ type: string; /** * * @type {string} * @memberof ConcertResponse */ location: string; /** * * @type {GeoResponse} * @memberof ConcertResponse */ geoLocation: GeoResponse; /** * * @type {boolean} * @memberof ConcertResponse */ isOnline: boolean; /** * * @type {string} * @memberof ConcertResponse */ when: string; /** * * @type {string} * @memberof ConcertResponse */ category: string; /** * * @type {string} * @memberof ConcertResponse */ telephone: string; /** * * @type {string} * @memberof ConcertResponse */ web: string; /** * * @type {string} * @memberof ConcertResponse */ email: string; /** * * @type {string} * @memberof ConcertResponse */ createdAt: string; /** * * @type {string} * @memberof ConcertResponse */ updatedAt: string; } /** * * @export * @enum {string} */ export enum Countries { ARG = 'ARG', BOL = 'BOL', BRA = 'BRA', COL = 'COL', CHL = 'CHL', ECU = 'ECU', GUY = 'GUY', MEX = 'MEX', PRY = 'PRY', PER = 'PER', URY = 'URY', VEN = 'VEN', BLZ = 'BLZ', CRI = 'CRI', SLV = 'SLV', GTM = 'GTM', HND = 'HND', NIC = 'NIC', PAN = 'PAN', DOM = 'DOM', PRUSA = 'PRUSA', CUB = 'CUB', HTI = 'HTI', ESP = 'ESP', VAR = 'VAR' } /** * * @export * @interface CreateAgencyDto */ export interface CreateAgencyDto { /** * * @type {string} * @memberof CreateAgencyDto */ name: string; /** * * @type {string} * @memberof CreateAgencyDto */ description: string; /** * * @type {Countries} * @memberof CreateAgencyDto */ type: Countries; /** * * @type {string} * @memberof CreateAgencyDto */ location: string; /** * * @type {string} * @memberof CreateAgencyDto */ telephone: string; /** * * @type {string} * @memberof CreateAgencyDto */ web: string; /** * * @type {string} * @memberof CreateAgencyDto */ email: string; } /** * * @export * @interface CreateConcertDto */ export interface CreateConcertDto { /** * * @type {string} * @memberof CreateConcertDto */ name: string; /** * * @type {string} * @memberof CreateConcertDto */ description: string; /** * * @type {Countries} * @memberof CreateConcertDto */ type: Countries; /** * * @type {string} * @memberof CreateConcertDto */ location: string; /** * * @type {boolean} * @memberof CreateConcertDto */ isOnline: boolean; /** * * @type {string} * @memberof CreateConcertDto */ when: string; /** * * @type {string} * @memberof CreateConcertDto */ telephone: string; /** * * @type {string} * @memberof CreateConcertDto */ web: string; /** * * @type {string} * @memberof CreateConcertDto */ email: string; } /** * * @export * @interface CreateGrocerieDto */ export interface CreateGrocerieDto { /** * * @type {string} * @memberof CreateGrocerieDto */ name: string; /** * * @type {string} * @memberof CreateGrocerieDto */ description: string; /** * * @type {Countries} * @memberof CreateGrocerieDto */ type: Countries; /** * * @type {string} * @memberof CreateGrocerieDto */ location: string; /** * * @type {string} * @memberof CreateGrocerieDto */ telephone: string; /** * * @type {string} * @memberof CreateGrocerieDto */ web: string; /** * * @type {string} * @memberof CreateGrocerieDto */ email: string; } /** * * @export * @interface CreateJobDto */ export interface CreateJobDto { /** * * @type {string} * @memberof CreateJobDto */ name: string; /** * * @type {string} * @memberof CreateJobDto */ description: string; /** * * @type {Jobs} * @memberof CreateJobDto */ job: Jobs; /** * * @type {string} * @memberof CreateJobDto */ location: string; /** * * @type {string} * @memberof CreateJobDto */ telephone: string; /** * * @type {string} * @memberof CreateJobDto */ web: string; /** * * @type {string} * @memberof CreateJobDto */ email: string; } /** * * @export * @interface CreateRestaurantDto */ export interface CreateRestaurantDto { /** * * @type {string} * @memberof CreateRestaurantDto */ name: string; /** * * @type {string} * @memberof CreateRestaurantDto */ description: string; /** * * @type {Array} * @memberof CreateRestaurantDto */ menus: Array; /** * * @type {Countries} * @memberof CreateRestaurantDto */ type: Countries; /** * * @type {string} * @memberof CreateRestaurantDto */ location: string; /** * * @type {string} * @memberof CreateRestaurantDto */ telephone: string; /** * * @type {string} * @memberof CreateRestaurantDto */ web: string; /** * * @type {string} * @memberof CreateRestaurantDto */ email: string; } /** * * @export * @interface CreateSpotifyDto */ export interface CreateSpotifyDto { /** * * @type {string} * @memberof CreateSpotifyDto */ name: string; /** * * @type {string} * @memberof CreateSpotifyDto */ description: string; /** * * @type {Countries} * @memberof CreateSpotifyDto */ type: Countries; /** * * @type {string} * @memberof CreateSpotifyDto */ spotifyArtistId: string; /** * * @type {string} * @memberof CreateSpotifyDto */ spotifyName: string; /** * * @type {string} * @memberof CreateSpotifyDto */ spotifyPopularity: string; /** * * @type {string} * @memberof CreateSpotifyDto */ spotifyUrl: string; /** * * @type {number} * @memberof CreateSpotifyDto */ spotifyFollowers: number; /** * * @type {string} * @memberof CreateSpotifyDto */ spotifyHref: string; /** * * @type {string} * @memberof CreateSpotifyDto */ spotifyType: string; /** * * @type {string} * @memberof CreateSpotifyDto */ spotifyUri: string; /** * * @type {Array} * @memberof CreateSpotifyDto */ spotifyGenres: Array; /** * * @type {Array} * @memberof CreateSpotifyDto */ spotifyImages: Array; /** * * @type {string} * @memberof CreateSpotifyDto */ web: string; } /** * * @export * @interface CreateSpotifyGenreDto */ export interface CreateSpotifyGenreDto { /** * * @type {string} * @memberof CreateSpotifyGenreDto */ genre: string; } /** * * @export * @interface CreateSpotifyImageDto */ export interface CreateSpotifyImageDto { /** * * @type {string} * @memberof CreateSpotifyImageDto */ url: string; /** * * @type {number} * @memberof CreateSpotifyImageDto */ height: number; /** * * @type {number} * @memberof CreateSpotifyImageDto */ width: number; } /** * * @export * @interface CreateTwitchDto */ export interface CreateTwitchDto { /** * * @type {string} * @memberof CreateTwitchDto */ name: string; /** * * @type {string} * @memberof CreateTwitchDto */ description: string; /** * * @type {Countries} * @memberof CreateTwitchDto */ type: Countries; /** * * @type {string} * @memberof CreateTwitchDto */ twitchUserId: string; /** * * @type {string} * @memberof CreateTwitchDto */ twitchDisplayName: string; /** * * @type {string} * @memberof CreateTwitchDto */ twitchThumbnailUrl: string; /** * * @type {number} * @memberof CreateTwitchDto */ twitchFollows: number; /** * * @type {string} * @memberof CreateTwitchDto */ web: string; } /** * * @export * @interface CreateUserDto */ export interface CreateUserDto { /** * * @type {string} * @memberof CreateUserDto */ uid: string; /** * * @type {string} * @memberof CreateUserDto */ firstname: string; /** * * @type {string} * @memberof CreateUserDto */ lastname: string; /** * * @type {string} * @memberof CreateUserDto */ username: string; /** * * @type {string} * @memberof CreateUserDto */ email: string; /** * * @type {boolean} * @memberof CreateUserDto */ terms: boolean; } /** * * @export * @interface CreateYoutubeDto */ export interface CreateYoutubeDto { /** * * @type {string} * @memberof CreateYoutubeDto */ name: string; /** * * @type {string} * @memberof CreateYoutubeDto */ description: string; /** * * @type {Countries} * @memberof CreateYoutubeDto */ type: Countries; /** * * @type {string} * @memberof CreateYoutubeDto */ youtubeChannelId: string; /** * * @type {string} * @memberof CreateYoutubeDto */ youtubeTitle: string; /** * * @type {string} * @memberof CreateYoutubeDto */ youtubeDescription?: string; /** * * @type {string} * @memberof CreateYoutubeDto */ youtubeSubs: string; /** * * @type {CreateYoutubeThumbnailDto} * @memberof CreateYoutubeDto */ youtubeThumbnails: CreateYoutubeThumbnailDto; /** * * @type {string} * @memberof CreateYoutubeDto */ web: string; } /** * * @export * @interface CreateYoutubeThumbnailDto */ export interface CreateYoutubeThumbnailDto { /** * * @type {string} * @memberof CreateYoutubeThumbnailDto */ _default: string; /** * * @type {string} * @memberof CreateYoutubeThumbnailDto */ medium: string; /** * * @type {string} * @memberof CreateYoutubeThumbnailDto */ high: string; } /** * * @export * @interface CreatorResponse */ export interface CreatorResponse { /** * * @type {string} * @memberof CreatorResponse */ id: string; /** * * @type {string} * @memberof CreatorResponse */ username: string; /** * * @type {string} * @memberof CreatorResponse */ uid: string; /** * * @type {UserProfileResponse} * @memberof CreatorResponse */ profile: UserProfileResponse; } /** * * @export * @interface GeoResponse */ export interface GeoResponse { /** * * @type {string} * @memberof GeoResponse */ type: string; /** * * @type {Array} * @memberof GeoResponse */ coordinates: Array; } /** * * @export * @interface GetAgenciesResponse */ export interface GetAgenciesResponse { /** * * @type {Array} * @memberof GetAgenciesResponse */ agencies: Array; /** * * @type {number} * @memberof GetAgenciesResponse */ totalAgencies: number; /** * * @type {AgencyFilterResponse} * @memberof GetAgenciesResponse */ filterData: AgencyFilterResponse; } /** * * @export * @interface GetConcertsResponse */ export interface GetConcertsResponse { /** * * @type {Array} * @memberof GetConcertsResponse */ concerts: Array; /** * * @type {number} * @memberof GetConcertsResponse */ totalConcerts: number; /** * * @type {ConcertFilterResponse} * @memberof GetConcertsResponse */ filterData: ConcertFilterResponse; } /** * * @export * @interface GetGroceriesResponse */ export interface GetGroceriesResponse { /** * * @type {Array} * @memberof GetGroceriesResponse */ groceries: Array; /** * * @type {number} * @memberof GetGroceriesResponse */ totalGroceries: number; /** * * @type {GrocerieFilterResponse} * @memberof GetGroceriesResponse */ filterData: GrocerieFilterResponse; } /** * * @export * @interface GetJobsResponse */ export interface GetJobsResponse { /** * * @type {Array} * @memberof GetJobsResponse */ jobs: Array; /** * * @type {number} * @memberof GetJobsResponse */ totalJobs: number; /** * * @type {JobFilterResponse} * @memberof GetJobsResponse */ filterData: JobFilterResponse; } /** * * @export * @interface GetRestaurantsResponse */ export interface GetRestaurantsResponse { /** * * @type {Array} * @memberof GetRestaurantsResponse */ restaurants: Array; /** * * @type {number} * @memberof GetRestaurantsResponse */ totalRestaurants: number; /** * * @type {RestaurantFilterResponse} * @memberof GetRestaurantsResponse */ filterData: RestaurantFilterResponse; } /** * * @export * @interface GetSpotifyArtistResponse */ export interface GetSpotifyArtistResponse { /** * * @type {SpotifyExternalUrlsResponse} * @memberof GetSpotifyArtistResponse */ external_urls: SpotifyExternalUrlsResponse; /** * * @type {SpotifyFollowersResponse} * @memberof GetSpotifyArtistResponse */ followers: SpotifyFollowersResponse; /** * * @type {Array} * @memberof GetSpotifyArtistResponse */ genres: Array; /** * * @type {string} * @memberof GetSpotifyArtistResponse */ href: string; /** * * @type {string} * @memberof GetSpotifyArtistResponse */ id: string; /** * * @type {Array} * @memberof GetSpotifyArtistResponse */ images: Array; /** * * @type {string} * @memberof GetSpotifyArtistResponse */ name: string; /** * * @type {string} * @memberof GetSpotifyArtistResponse */ popularity: string; /** * * @type {string} * @memberof GetSpotifyArtistResponse */ type: string; /** * * @type {string} * @memberof GetSpotifyArtistResponse */ uri: string; } /** * * @export * @interface GetSpotifyResponse */ export interface GetSpotifyResponse { /** * * @type {Array} * @memberof GetSpotifyResponse */ spotifys: Array; /** * * @type {number} * @memberof GetSpotifyResponse */ totalSpotifys: number; /** * * @type {SpotifyFilterResponse} * @memberof GetSpotifyResponse */ filterData: SpotifyFilterResponse; } /** * * @export * @interface GetTwitchChannelsResponse */ export interface GetTwitchChannelsResponse { /** * * @type {string} * @memberof GetTwitchChannelsResponse */ game_id: string; /** * * @type {string} * @memberof GetTwitchChannelsResponse */ id: string; /** * * @type {string} * @memberof GetTwitchChannelsResponse */ broadcaster_login: string; /** * * @type {string} * @memberof GetTwitchChannelsResponse */ display_name: string; /** * * @type {string} * @memberof GetTwitchChannelsResponse */ broadcaster_language: string; /** * * @type {string} * @memberof GetTwitchChannelsResponse */ title: string; /** * * @type {string} * @memberof GetTwitchChannelsResponse */ thumbnail_url: string; /** * * @type {string} * @memberof GetTwitchChannelsResponse */ started_at: string; /** * * @type {string} * @memberof GetTwitchChannelsResponse */ tag_ids: string; /** * * @type {boolean} * @memberof GetTwitchChannelsResponse */ is_live: boolean; } /** * * @export * @interface GetTwitchChannelsResponseWrapper */ export interface GetTwitchChannelsResponseWrapper { /** * * @type {Array} * @memberof GetTwitchChannelsResponseWrapper */ channels: Array; } /** * * @export * @interface GetTwitchFollowsResponse */ export interface GetTwitchFollowsResponse { /** * * @type {string} * @memberof GetTwitchFollowsResponse */ total: string; /** * * @type {Array} * @memberof GetTwitchFollowsResponse */ data: Array; /** * * @type {TwitchPagination} * @memberof GetTwitchFollowsResponse */ pagination: TwitchPagination; } /** * * @export * @interface GetTwitchResponse */ export interface GetTwitchResponse { /** * * @type {Array} * @memberof GetTwitchResponse */ twitchs: Array; /** * * @type {number} * @memberof GetTwitchResponse */ totalTwitchs: number; /** * * @type {TwitchFilterResponse} * @memberof GetTwitchResponse */ filterData: TwitchFilterResponse; } /** * * @export * @interface GetUserResponse */ export interface GetUserResponse { /** * * @type {string} * @memberof GetUserResponse */ email: string; /** * * @type {number} * @memberof GetUserResponse */ id: number; /** * * @type {string} * @memberof GetUserResponse */ firstname: string; /** * * @type {string} * @memberof GetUserResponse */ lastname: string; /** * * @type {string} * @memberof GetUserResponse */ username: string; /** * * @type {UserProfileResponse} * @memberof GetUserResponse */ profile: UserProfileResponse; /** * * @type {string} * @memberof GetUserResponse */ uid: string; } /** * * @export * @interface GetYoutubeChannelsResponse */ export interface GetYoutubeChannelsResponse { /** * * @type {string} * @memberof GetYoutubeChannelsResponse */ channelId: string; /** * * @type {string} * @memberof GetYoutubeChannelsResponse */ title: string; /** * * @type {string} * @memberof GetYoutubeChannelsResponse */ description: string; /** * * @type {YoutubeThumbnailsResponse} * @memberof GetYoutubeChannelsResponse */ thumbnails: YoutubeThumbnailsResponse; /** * * @type {string} * @memberof GetYoutubeChannelsResponse */ channelTitle: string; } /** * * @export * @interface GetYoutubeChannelsResponseWrapper */ export interface GetYoutubeChannelsResponseWrapper { /** * * @type {Array} * @memberof GetYoutubeChannelsResponseWrapper */ channels: Array; } /** * * @export * @interface GetYoutubeResponse */ export interface GetYoutubeResponse { /** * * @type {Array} * @memberof GetYoutubeResponse */ youtubes: Array; /** * * @type {number} * @memberof GetYoutubeResponse */ totalYoutubes: number; /** * * @type {YoutubeFilterResponse} * @memberof GetYoutubeResponse */ filterData: YoutubeFilterResponse; } /** * * @export * @interface GrocerieFilterResponse */ export interface GrocerieFilterResponse { /** * * @type {boolean} * @memberof GrocerieFilterResponse */ isFilterData: boolean; /** * * @type {number} * @memberof GrocerieFilterResponse */ currentPage: number; /** * * @type {GrocerieQueryParamsResponse} * @memberof GrocerieFilterResponse */ queryParams: GrocerieQueryParamsResponse; } /** * * @export * @interface GrocerieQueryParamsResponse */ export interface GrocerieQueryParamsResponse { /** * * @type {string} * @memberof GrocerieQueryParamsResponse */ type: string; /** * * @type {string} * @memberof GrocerieQueryParamsResponse */ sort: string; /** * * @type {string} * @memberof GrocerieQueryParamsResponse */ geoLocation: string; } /** * * @export * @interface GrocerieResponse */ export interface GrocerieResponse { /** * * @type {number} * @memberof GrocerieResponse */ id: number; /** * * @type {Array} * @memberof GrocerieResponse */ images: Array; /** * * @type {number} * @memberof GrocerieResponse */ likes: number; /** * * @type {number} * @memberof GrocerieResponse */ views: number; /** * * @type {number} * @memberof GrocerieResponse */ totalFavorites: number; /** * * @type {CreatorResponse} * @memberof GrocerieResponse */ creator: CreatorResponse; /** * * @type {string} * @memberof GrocerieResponse */ name: string; /** * * @type {string} * @memberof GrocerieResponse */ description: string; /** * * @type {string} * @memberof GrocerieResponse */ type: string; /** * * @type {string} * @memberof GrocerieResponse */ location: string; /** * * @type {GeoResponse} * @memberof GrocerieResponse */ geoLocation: GeoResponse; /** * * @type {string} * @memberof GrocerieResponse */ telephone: string; /** * * @type {string} * @memberof GrocerieResponse */ web: string; /** * * @type {string} * @memberof GrocerieResponse */ email: string; /** * * @type {string} * @memberof GrocerieResponse */ createdAt: string; /** * * @type {string} * @memberof GrocerieResponse */ updatedAt: string; } /** * * @export * @interface ImageResponse */ export interface ImageResponse { /** * * @type {string} * @memberof ImageResponse */ fullPath: string; /** * * @type {string} * @memberof ImageResponse */ imageUrl: string; /** * * @type {string} * @memberof ImageResponse */ filename: string; /** * * @type {string} * @memberof ImageResponse */ fullPathResized: string; /** * * @type {string} * @memberof ImageResponse */ imageResizedUrl: string; } /** * * @export * @interface InlineObject */ export interface InlineObject { /** * * @type {any} * @memberof InlineObject */ imageProfile?: any; } /** * * @export * @interface InlineObject1 */ export interface InlineObject1 { /** * * @type {Array} * @memberof InlineObject1 */ imageUrls?: Array; } /** * * @export * @interface InlineObject2 */ export interface InlineObject2 { /** * * @type {Array} * @memberof InlineObject2 */ imageUrls?: Array; } /** * * @export * @interface InlineObject3 */ export interface InlineObject3 { /** * * @type {Array} * @memberof InlineObject3 */ imageUrls?: Array; } /** * * @export * @interface InlineObject4 */ export interface InlineObject4 { /** * * @type {Array} * @memberof InlineObject4 */ imageUrls?: Array; } /** * * @export * @interface InlineObject5 */ export interface InlineObject5 { /** * * @type {Array} * @memberof InlineObject5 */ imageUrls?: Array; } /** * * @export * @interface JobFilterResponse */ export interface JobFilterResponse { /** * * @type {boolean} * @memberof JobFilterResponse */ isFilterData: boolean; /** * * @type {number} * @memberof JobFilterResponse */ currentPage: number; /** * * @type {JobQueryParamsResponse} * @memberof JobFilterResponse */ queryParams: JobQueryParamsResponse; } /** * * @export * @interface JobQueryParamsResponse */ export interface JobQueryParamsResponse { /** * * @type {string} * @memberof JobQueryParamsResponse */ job: string; /** * * @type {string} * @memberof JobQueryParamsResponse */ sort: string; /** * * @type {string} * @memberof JobQueryParamsResponse */ geoLocation: string; } /** * * @export * @interface JobResponse */ export interface JobResponse { /** * * @type {number} * @memberof JobResponse */ id: number; /** * * @type {Array} * @memberof JobResponse */ images: Array; /** * * @type {number} * @memberof JobResponse */ likes: number; /** * * @type {number} * @memberof JobResponse */ views: number; /** * * @type {number} * @memberof JobResponse */ totalFavorites: number; /** * * @type {CreatorResponse} * @memberof JobResponse */ creator: CreatorResponse; /** * * @type {string} * @memberof JobResponse */ name: string; /** * * @type {string} * @memberof JobResponse */ description: string; /** * * @type {string} * @memberof JobResponse */ job: string; /** * * @type {string} * @memberof JobResponse */ location: string; /** * * @type {GeoResponse} * @memberof JobResponse */ geoLocation: GeoResponse; /** * * @type {string} * @memberof JobResponse */ category: string; /** * * @type {string} * @memberof JobResponse */ telephone: string; /** * * @type {string} * @memberof JobResponse */ web: string; /** * * @type {string} * @memberof JobResponse */ email: string; /** * * @type {string} * @memberof JobResponse */ createdAt: string; /** * * @type {string} * @memberof JobResponse */ updatedAt: string; } /** * * @export * @enum {string} */ export enum Jobs { ALB = 'ALB', MAN = 'MAN', LIM = 'LIM', RES = 'RES', ELE = 'ELE', FON = 'FON', JAR = 'JAR', JOY = 'JOY', CAR = 'CAR', PEL = 'PEL', MEC = 'MEC', MAI = 'MAI', PIN = 'PIN', ROT = 'ROT', ZAP = 'ZAP', TRA = 'TRA', ABO = 'ABO', GES = 'GES', INF = 'INF', OTR = 'OTR' } /** * * @export * @interface JoinResponse */ export interface JoinResponse { /** * * @type {number} * @memberof JoinResponse */ id: number; /** * * @type {Array} * @memberof JoinResponse */ images: Array; /** * * @type {string} * @memberof JoinResponse */ likes: string; /** * * @type {number} * @memberof JoinResponse */ views: number; /** * * @type {number} * @memberof JoinResponse */ totalFavorites: number; /** * * @type {string} * @memberof JoinResponse */ name: string; /** * * @type {string} * @memberof JoinResponse */ category: string; /** * * @type {string} * @memberof JoinResponse */ location: string; /** * * @type {string} * @memberof JoinResponse */ createdAt: string; /** * * @type {string} * @memberof JoinResponse */ updatedAt: string; /** * * @type {string} * @memberof JoinResponse */ type?: string; /** * * @type {string} * @memberof JoinResponse */ job?: string; } /** * * @export * @interface MenuResponse */ export interface MenuResponse { /** * * @type {string} * @memberof MenuResponse */ name: string; /** * * @type {string} * @memberof MenuResponse */ price: string; } /** * * @export * @interface PublicationPaginatedAgenciesResponse */ export interface PublicationPaginatedAgenciesResponse { /** * * @type {Array} * @memberof PublicationPaginatedAgenciesResponse */ publications: Array; /** * * @type {number} * @memberof PublicationPaginatedAgenciesResponse */ total: number; /** * * @type {number} * @memberof PublicationPaginatedAgenciesResponse */ currentPage: number; } /** * * @export * @interface PublicationPaginatedConcertsResponse */ export interface PublicationPaginatedConcertsResponse { /** * * @type {Array} * @memberof PublicationPaginatedConcertsResponse */ publications: Array; /** * * @type {number} * @memberof PublicationPaginatedConcertsResponse */ total: number; /** * * @type {number} * @memberof PublicationPaginatedConcertsResponse */ currentPage: number; } /** * * @export * @interface PublicationPaginatedGroceriesResponse */ export interface PublicationPaginatedGroceriesResponse { /** * * @type {Array} * @memberof PublicationPaginatedGroceriesResponse */ publications: Array; /** * * @type {number} * @memberof PublicationPaginatedGroceriesResponse */ total: number; /** * * @type {number} * @memberof PublicationPaginatedGroceriesResponse */ currentPage: number; } /** * * @export * @interface PublicationPaginatedJobsResponse */ export interface PublicationPaginatedJobsResponse { /** * * @type {Array} * @memberof PublicationPaginatedJobsResponse */ publications: Array; /** * * @type {number} * @memberof PublicationPaginatedJobsResponse */ total: number; /** * * @type {number} * @memberof PublicationPaginatedJobsResponse */ currentPage: number; } /** * * @export * @interface PublicationPaginatedRestaurantsResponse */ export interface PublicationPaginatedRestaurantsResponse { /** * * @type {Array} * @memberof PublicationPaginatedRestaurantsResponse */ publications: Array; /** * * @type {number} * @memberof PublicationPaginatedRestaurantsResponse */ total: number; /** * * @type {number} * @memberof PublicationPaginatedRestaurantsResponse */ currentPage: number; } /** * * @export * @interface PublicationPaginatedSpotifysResponse */ export interface PublicationPaginatedSpotifysResponse { /** * * @type {Array} * @memberof PublicationPaginatedSpotifysResponse */ publications: Array; /** * * @type {number} * @memberof PublicationPaginatedSpotifysResponse */ total: number; /** * * @type {number} * @memberof PublicationPaginatedSpotifysResponse */ currentPage: number; } /** * * @export * @interface PublicationPaginatedTwitchsResponse */ export interface PublicationPaginatedTwitchsResponse { /** * * @type {Array} * @memberof PublicationPaginatedTwitchsResponse */ publications: Array; /** * * @type {number} * @memberof PublicationPaginatedTwitchsResponse */ total: number; /** * * @type {number} * @memberof PublicationPaginatedTwitchsResponse */ currentPage: number; } /** * * @export * @interface PublicationPaginatedYoutubesResponse */ export interface PublicationPaginatedYoutubesResponse { /** * * @type {Array} * @memberof PublicationPaginatedYoutubesResponse */ publications: Array; /** * * @type {number} * @memberof PublicationPaginatedYoutubesResponse */ total: number; /** * * @type {number} * @memberof PublicationPaginatedYoutubesResponse */ currentPage: number; } /** * * @export * @interface PutUserProfileResponse */ export interface PutUserProfileResponse { /** * * @type {string} * @memberof PutUserProfileResponse */ email: string; /** * * @type {number} * @memberof PutUserProfileResponse */ id: number; /** * * @type {string} * @memberof PutUserProfileResponse */ firstname: string; /** * * @type {string} * @memberof PutUserProfileResponse */ lastname: string; /** * * @type {string} * @memberof PutUserProfileResponse */ username: string; /** * * @type {UserProfileResponse} * @memberof PutUserProfileResponse */ profile: UserProfileResponse; /** * * @type {string} * @memberof PutUserProfileResponse */ uid: string; } /** * * @export * @interface RestaurantFilterResponse */ export interface RestaurantFilterResponse { /** * * @type {boolean} * @memberof RestaurantFilterResponse */ isFilterData: boolean; /** * * @type {number} * @memberof RestaurantFilterResponse */ currentPage: number; /** * * @type {RestaurantQueryParamsResponse} * @memberof RestaurantFilterResponse */ queryParams: RestaurantQueryParamsResponse; } /** * * @export * @interface RestaurantQueryParamsResponse */ export interface RestaurantQueryParamsResponse { /** * * @type {string} * @memberof RestaurantQueryParamsResponse */ type: string; /** * * @type {string} * @memberof RestaurantQueryParamsResponse */ sort: string; /** * * @type {string} * @memberof RestaurantQueryParamsResponse */ geoLocation: string; } /** * * @export * @interface RestaurantResponse */ export interface RestaurantResponse { /** * * @type {number} * @memberof RestaurantResponse */ id: number; /** * * @type {Array} * @memberof RestaurantResponse */ images: Array; /** * * @type {number} * @memberof RestaurantResponse */ likes: number; /** * * @type {number} * @memberof RestaurantResponse */ views: number; /** * * @type {number} * @memberof RestaurantResponse */ totalFavorites: number; /** * * @type {CreatorResponse} * @memberof RestaurantResponse */ creator: CreatorResponse; /** * * @type {string} * @memberof RestaurantResponse */ name: string; /** * * @type {string} * @memberof RestaurantResponse */ description: string; /** * * @type {Array} * @memberof RestaurantResponse */ menus: Array; /** * * @type {string} * @memberof RestaurantResponse */ category: string; /** * * @type {string} * @memberof RestaurantResponse */ type: string; /** * * @type {string} * @memberof RestaurantResponse */ location: string; /** * * @type {GeoResponse} * @memberof RestaurantResponse */ geoLocation: GeoResponse; /** * * @type {string} * @memberof RestaurantResponse */ telephone: string; /** * * @type {string} * @memberof RestaurantResponse */ web: string; /** * * @type {string} * @memberof RestaurantResponse */ email: string; /** * * @type {string} * @memberof RestaurantResponse */ createdAt: string; /** * * @type {string} * @memberof RestaurantResponse */ updatedAt: string; } /** * * @export * @interface RestaurantsMenu */ export interface RestaurantsMenu { /** * * @type {string} * @memberof RestaurantsMenu */ name: string; /** * * @type {string} * @memberof RestaurantsMenu */ price: string; } /** * * @export * @enum {string} */ export enum SortBy { TotalFavorites = 'totalFavorites', CreatedAt = 'createdAt', Views = 'views' } /** * * @export * @enum {string} */ export enum SortByPlatform { TotalFavorites = 'totalFavorites', CreatedAt = 'createdAt', Views = 'views', TwitchFollowsAsc = 'twitchFollows.Asc', TwitchFollowsDesc = 'twitchFollows.Desc' } /** * * @export * @enum {string} */ export enum SortBySpotify { TotalFavorites = 'totalFavorites', CreatedAt = 'createdAt', Views = 'views', SpotifyFollowersAsc = 'spotifyFollowers.Asc', SpotifyFollowersDesc = 'spotifyFollowers.Desc' } /** * * @export * @enum {string} */ export enum SortByYoutube { TotalFavorites = 'totalFavorites', CreatedAt = 'createdAt', Views = 'views', YoutubeSubsAsc = 'youtubeSubs.Asc', YoutubeSubsDesc = 'youtubeSubs.Desc' } /** * * @export * @interface SpotifyExternalUrlsResponse */ export interface SpotifyExternalUrlsResponse { /** * * @type {string} * @memberof SpotifyExternalUrlsResponse */ spotify: string; } /** * * @export * @interface SpotifyFilterResponse */ export interface SpotifyFilterResponse { /** * * @type {boolean} * @memberof SpotifyFilterResponse */ isFilterData: boolean; /** * * @type {number} * @memberof SpotifyFilterResponse */ currentPage: number; /** * * @type {SpotifyQueryParamsResponse} * @memberof SpotifyFilterResponse */ queryParams: SpotifyQueryParamsResponse; } /** * * @export * @interface SpotifyFollowersResponse */ export interface SpotifyFollowersResponse { /** * * @type {string} * @memberof SpotifyFollowersResponse */ href: string; /** * * @type {number} * @memberof SpotifyFollowersResponse */ total: number; } /** * * @export * @interface SpotifyGenreResponse */ export interface SpotifyGenreResponse { /** * * @type {string} * @memberof SpotifyGenreResponse */ genre: string; } /** * * @export * @interface SpotifyImagesResponse */ export interface SpotifyImagesResponse { /** * * @type {number} * @memberof SpotifyImagesResponse */ height: number; /** * * @type {number} * @memberof SpotifyImagesResponse */ width: number; /** * * @type {string} * @memberof SpotifyImagesResponse */ url: string; } /** * * @export * @interface SpotifyQueryParamsResponse */ export interface SpotifyQueryParamsResponse { /** * * @type {string} * @memberof SpotifyQueryParamsResponse */ type: string; /** * * @type {string} * @memberof SpotifyQueryParamsResponse */ sort: string; /** * * @type {string} * @memberof SpotifyQueryParamsResponse */ minFollows: string; /** * * @type {string} * @memberof SpotifyQueryParamsResponse */ maxFollows: string; } /** * * @export * @interface SpotifyResponse */ export interface SpotifyResponse { /** * * @type {number} * @memberof SpotifyResponse */ id: number; /** * * @type {number} * @memberof SpotifyResponse */ likes: number; /** * * @type {number} * @memberof SpotifyResponse */ views: number; /** * * @type {number} * @memberof SpotifyResponse */ totalFavorites: number; /** * * @type {string} * @memberof SpotifyResponse */ category: string; /** * * @type {CreatorResponse} * @memberof SpotifyResponse */ creator: CreatorResponse; /** * * @type {string} * @memberof SpotifyResponse */ name: string; /** * * @type {string} * @memberof SpotifyResponse */ description: string; /** * * @type {string} * @memberof SpotifyResponse */ type: string; /** * * @type {string} * @memberof SpotifyResponse */ spotifyArtistId: string; /** * * @type {string} * @memberof SpotifyResponse */ spotifyName: string; /** * * @type {string} * @memberof SpotifyResponse */ spotifyPopularity: string; /** * * @type {string} * @memberof SpotifyResponse */ spotifyUrl: string; /** * * @type {number} * @memberof SpotifyResponse */ spotifyFollowers: number; /** * * @type {string} * @memberof SpotifyResponse */ spotifyHref: string; /** * * @type {string} * @memberof SpotifyResponse */ spotifyType: string; /** * * @type {string} * @memberof SpotifyResponse */ spotifyUri: string; /** * * @type {Array} * @memberof SpotifyResponse */ spotifyGenres: Array; /** * * @type {Array} * @memberof SpotifyResponse */ images: Array; /** * * @type {string} * @memberof SpotifyResponse */ web: string; /** * * @type {string} * @memberof SpotifyResponse */ createdAt: string; /** * * @type {string} * @memberof SpotifyResponse */ updatedAt: string; } /** * * @export * @interface TwitchFilterResponse */ export interface TwitchFilterResponse { /** * * @type {boolean} * @memberof TwitchFilterResponse */ isFilterData: boolean; /** * * @type {number} * @memberof TwitchFilterResponse */ currentPage: number; /** * * @type {TwitchQueryParamsResponse} * @memberof TwitchFilterResponse */ queryParams: TwitchQueryParamsResponse; } /** * * @export * @interface TwitchFollowsResponse */ export interface TwitchFollowsResponse { /** * * @type {string} * @memberof TwitchFollowsResponse */ followed_at: string; /** * * @type {string} * @memberof TwitchFollowsResponse */ from_id: string; /** * * @type {string} * @memberof TwitchFollowsResponse */ from_login: string; /** * * @type {string} * @memberof TwitchFollowsResponse */ from_name: string; /** * * @type {string} * @memberof TwitchFollowsResponse */ to_id: string; /** * * @type {string} * @memberof TwitchFollowsResponse */ to_login: string; /** * * @type {string} * @memberof TwitchFollowsResponse */ to_name: string; } /** * * @export * @interface TwitchPagination */ export interface TwitchPagination { /** * * @type {string} * @memberof TwitchPagination */ cursor: string; } /** * * @export * @interface TwitchQueryParamsResponse */ export interface TwitchQueryParamsResponse { /** * * @type {string} * @memberof TwitchQueryParamsResponse */ type: string; /** * * @type {string} * @memberof TwitchQueryParamsResponse */ sort: string; } /** * * @export * @interface TwitchResponse */ export interface TwitchResponse { /** * * @type {number} * @memberof TwitchResponse */ id: number; /** * * @type {number} * @memberof TwitchResponse */ likes: number; /** * * @type {number} * @memberof TwitchResponse */ views: number; /** * * @type {number} * @memberof TwitchResponse */ totalFavorites: number; /** * * @type {string} * @memberof TwitchResponse */ category: string; /** * * @type {CreatorResponse} * @memberof TwitchResponse */ creator: CreatorResponse; /** * * @type {string} * @memberof TwitchResponse */ name: string; /** * * @type {string} * @memberof TwitchResponse */ description: string; /** * * @type {string} * @memberof TwitchResponse */ twitchUserId: string; /** * * @type {string} * @memberof TwitchResponse */ twitchDisplayName: string; /** * * @type {Array} * @memberof TwitchResponse */ images: Array; /** * * @type {string} * @memberof TwitchResponse */ twitchFollows: string; /** * * @type {string} * @memberof TwitchResponse */ type: string; /** * * @type {string} * @memberof TwitchResponse */ web: string; /** * * @type {string} * @memberof TwitchResponse */ createdAt: string; /** * * @type {string} * @memberof TwitchResponse */ updatedAt: string; } /** * * @export * @interface UpdateUserProfileDto */ export interface UpdateUserProfileDto { /** * * @type {string} * @memberof UpdateUserProfileDto */ description: string; /** * * @type {string} * @memberof UpdateUserProfileDto */ location: string; /** * * @type {string} * @memberof UpdateUserProfileDto */ web: string; } /** * * @export * @interface UserAgencyFavoritesResponse */ export interface UserAgencyFavoritesResponse { /** * * @type {Array} * @memberof UserAgencyFavoritesResponse */ favorites: Array; /** * * @type {number} * @memberof UserAgencyFavoritesResponse */ total: number; /** * * @type {number} * @memberof UserAgencyFavoritesResponse */ currentPage: number; } /** * * @export * @interface UserConcertFavoritesResponse */ export interface UserConcertFavoritesResponse { /** * * @type {Array} * @memberof UserConcertFavoritesResponse */ favorites: Array; /** * * @type {number} * @memberof UserConcertFavoritesResponse */ total: number; /** * * @type {number} * @memberof UserConcertFavoritesResponse */ currentPage: number; } /** * * @export * @interface UserGrocerieFavoritesResponse */ export interface UserGrocerieFavoritesResponse { /** * * @type {Array} * @memberof UserGrocerieFavoritesResponse */ favorites: Array; /** * * @type {number} * @memberof UserGrocerieFavoritesResponse */ total: number; /** * * @type {number} * @memberof UserGrocerieFavoritesResponse */ currentPage: number; } /** * * @export * @interface UserJobFavoritesResponse */ export interface UserJobFavoritesResponse { /** * * @type {Array} * @memberof UserJobFavoritesResponse */ favorites: Array; /** * * @type {number} * @memberof UserJobFavoritesResponse */ total: number; /** * * @type {number} * @memberof UserJobFavoritesResponse */ currentPage: number; } /** * * @export * @interface UserProfileResponse */ export interface UserProfileResponse { /** * * @type {string} * @memberof UserProfileResponse */ fullPath: string; /** * * @type {string} * @memberof UserProfileResponse */ imageUrl: string; /** * * @type {string} * @memberof UserProfileResponse */ filename: string; /** * * @type {string} * @memberof UserProfileResponse */ fullPathResized: string; /** * * @type {string} * @memberof UserProfileResponse */ imageResizedUrl: string; /** * * @type {string} * @memberof UserProfileResponse */ description: string; /** * * @type {string} * @memberof UserProfileResponse */ location: string; /** * * @type {string} * @memberof UserProfileResponse */ web: string; } /** * * @export * @interface UserRestaurantFavoritesResponse */ export interface UserRestaurantFavoritesResponse { /** * * @type {Array} * @memberof UserRestaurantFavoritesResponse */ favorites: Array; /** * * @type {number} * @memberof UserRestaurantFavoritesResponse */ total: number; /** * * @type {number} * @memberof UserRestaurantFavoritesResponse */ currentPage: number; } /** * * @export * @interface UserSpotifyFavoritesResponse */ export interface UserSpotifyFavoritesResponse { /** * * @type {Array} * @memberof UserSpotifyFavoritesResponse */ favorites: Array; /** * * @type {number} * @memberof UserSpotifyFavoritesResponse */ total: number; /** * * @type {number} * @memberof UserSpotifyFavoritesResponse */ currentPage: number; } /** * * @export * @interface UserTwitchFavoritesResponse */ export interface UserTwitchFavoritesResponse { /** * * @type {Array} * @memberof UserTwitchFavoritesResponse */ favorites: Array; /** * * @type {number} * @memberof UserTwitchFavoritesResponse */ total: number; /** * * @type {number} * @memberof UserTwitchFavoritesResponse */ currentPage: number; } /** * * @export * @interface UserYoutubeFavoritesResponse */ export interface UserYoutubeFavoritesResponse { /** * * @type {Array} * @memberof UserYoutubeFavoritesResponse */ favorites: Array; /** * * @type {number} * @memberof UserYoutubeFavoritesResponse */ total: number; /** * * @type {number} * @memberof UserYoutubeFavoritesResponse */ currentPage: number; } /** * * @export * @interface YoutubeFilterResponse */ export interface YoutubeFilterResponse { /** * * @type {boolean} * @memberof YoutubeFilterResponse */ isFilterData: boolean; /** * * @type {number} * @memberof YoutubeFilterResponse */ currentPage: number; /** * * @type {YoutubeQueryParamsResponse} * @memberof YoutubeFilterResponse */ queryParams: YoutubeQueryParamsResponse; } /** * * @export * @interface YoutubeQueryParamsResponse */ export interface YoutubeQueryParamsResponse { /** * * @type {string} * @memberof YoutubeQueryParamsResponse */ type: string; /** * * @type {string} * @memberof YoutubeQueryParamsResponse */ sort: string; } /** * * @export * @interface YoutubeResponse */ export interface YoutubeResponse { /** * * @type {number} * @memberof YoutubeResponse */ id: number; /** * * @type {number} * @memberof YoutubeResponse */ likes: number; /** * * @type {number} * @memberof YoutubeResponse */ views: number; /** * * @type {number} * @memberof YoutubeResponse */ totalFavorites: number; /** * * @type {CreatorResponse} * @memberof YoutubeResponse */ creator: CreatorResponse; /** * * @type {string} * @memberof YoutubeResponse */ name: string; /** * * @type {string} * @memberof YoutubeResponse */ description: string; /** * * @type {string} * @memberof YoutubeResponse */ youtubeChannelId: string; /** * * @type {string} * @memberof YoutubeResponse */ youtubeTitle: string; /** * * @type {string} * @memberof YoutubeResponse */ youtubeDescription: string; /** * * @type {string} * @memberof YoutubeResponse */ youtubeSubs: string; /** * * @type {Array} * @memberof YoutubeResponse */ images: Array; /** * * @type {string} * @memberof YoutubeResponse */ category: string; /** * * @type {string} * @memberof YoutubeResponse */ type: string; /** * * @type {string} * @memberof YoutubeResponse */ web: string; /** * * @type {string} * @memberof YoutubeResponse */ createdAt: string; /** * * @type {string} * @memberof YoutubeResponse */ updatedAt: string; } /** * * @export * @interface YoutubeSubscribersResponse */ export interface YoutubeSubscribersResponse { /** * * @type {string} * @memberof YoutubeSubscribersResponse */ id: string; /** * * @type {string} * @memberof YoutubeSubscribersResponse */ viewCount: string; /** * * @type {string} * @memberof YoutubeSubscribersResponse */ subscriberCount: string; /** * * @type {string} * @memberof YoutubeSubscribersResponse */ hiddenSubscriberCount: string; /** * * @type {string} * @memberof YoutubeSubscribersResponse */ videoCount: string; } /** * * @export * @interface YoutubeThumbnailsResponse */ export interface YoutubeThumbnailsResponse { /** * * @type {string} * @memberof YoutubeThumbnailsResponse */ _default: string; /** * * @type {string} * @memberof YoutubeThumbnailsResponse */ medium: string; /** * * @type {string} * @memberof YoutubeThumbnailsResponse */ high: string; } /** * * @export * @interface YoutubeVideoResponse */ export interface YoutubeVideoResponse { /** * * @type {string} * @memberof YoutubeVideoResponse */ videoTitle: string; /** * * @type {string} * @memberof YoutubeVideoResponse */ videoId: string; } /** * * @export * @interface YoutubeVideosResponse */ export interface YoutubeVideosResponse { /** * * @type {Array} * @memberof YoutubeVideosResponse */ videos: Array; } /** * AgenciesApi - axios parameter creator * @export */ export const AgenciesApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @param {number} [page] * @param {string} [type] * @param {SortBy} [sort] * @param {string} [geoLocation] Array of string (this is validate as coordinates long lat) * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerAgencies(page?: number, type?: string, sort?: SortBy, geoLocation?: string, options: any = {}): RequestArgs { const localVarPath = `/agencies`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } if (type !== undefined) { localVarQueryParameter['type'] = type; } if (sort !== undefined) { localVarQueryParameter['sort'] = sort; } if (geoLocation !== undefined) { localVarQueryParameter['geoLocation'] = geoLocation; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerAgency(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling agenciesControllerAgency.'); } const localVarPath = `/agencies/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {CreateAgencyDto} CreateAgencyDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerCreateAgency(CreateAgencyDto: CreateAgencyDto, options: any = {}): RequestArgs { // verify required parameter 'CreateAgencyDto' is not null or undefined if (CreateAgencyDto === null || CreateAgencyDto === undefined) { throw new RequiredError('CreateAgencyDto','Required parameter CreateAgencyDto was null or undefined when calling agenciesControllerCreateAgency.'); } const localVarPath = `/agencies`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; const needsSerialization = (typeof CreateAgencyDto !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(CreateAgencyDto !== undefined ? CreateAgencyDto : {}) : (CreateAgencyDto || ""); return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerDeleteAgency(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling agenciesControllerDeleteAgency.'); } const localVarPath = `/agencies/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerGetUserAgencies(page?: number, isDeleted?: boolean, options: any = {}): RequestArgs { const localVarPath = `/agencies/user/publications`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } if (page !== undefined) { localVarQueryParameter['page'] = page; } if (isDeleted !== undefined) { localVarQueryParameter['isDeleted'] = isDeleted; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerGetUserFavoriteAgencies(page?: number, options: any = {}): RequestArgs { const localVarPath = `/agencies/user/favorites`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {CreateAgencyDto} CreateAgencyDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerUpdateAgency(id: number, CreateAgencyDto: CreateAgencyDto, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling agenciesControllerUpdateAgency.'); } // verify required parameter 'CreateAgencyDto' is not null or undefined if (CreateAgencyDto === null || CreateAgencyDto === undefined) { throw new RequiredError('CreateAgencyDto','Required parameter CreateAgencyDto was null or undefined when calling agenciesControllerUpdateAgency.'); } const localVarPath = `/agencies/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; const needsSerialization = (typeof CreateAgencyDto !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(CreateAgencyDto !== undefined ? CreateAgencyDto : {}) : (CreateAgencyDto || ""); return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerUpdateFavoritesAgency(id: number, page?: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling agenciesControllerUpdateFavoritesAgency.'); } const localVarPath = `/agencies/{id}/favorites` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerUpdateViewsAgency(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling agenciesControllerUpdateViewsAgency.'); } const localVarPath = `/agencies/{id}/views` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {Array} [imageUrls] * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerUploadImagesAgency(id: number, imageUrls?: Array, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling agenciesControllerUploadImagesAgency.'); } const localVarPath = `/agencies/{id}/images` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const localVarFormParams = new FormData(); // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } if (imageUrls) { localVarFormParams.append('imageUrls', imageUrls.join(COLLECTION_FORMATS.csv)); } localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; localVarRequestOptions.data = localVarFormParams; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * AgenciesApi - functional programming interface * @export */ export const AgenciesApiFp = function(configuration?: Configuration) { return { /** * * @param {number} [page] * @param {string} [type] * @param {SortBy} [sort] * @param {string} [geoLocation] Array of string (this is validate as coordinates long lat) * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerAgencies(page?: number, type?: string, sort?: SortBy, geoLocation?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = AgenciesApiAxiosParamCreator(configuration).agenciesControllerAgencies(page, type, sort, geoLocation, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerAgency(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = AgenciesApiAxiosParamCreator(configuration).agenciesControllerAgency(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {CreateAgencyDto} CreateAgencyDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerCreateAgency(CreateAgencyDto: CreateAgencyDto, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = AgenciesApiAxiosParamCreator(configuration).agenciesControllerCreateAgency(CreateAgencyDto, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerDeleteAgency(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = AgenciesApiAxiosParamCreator(configuration).agenciesControllerDeleteAgency(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerGetUserAgencies(page?: number, isDeleted?: boolean, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = AgenciesApiAxiosParamCreator(configuration).agenciesControllerGetUserAgencies(page, isDeleted, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerGetUserFavoriteAgencies(page?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = AgenciesApiAxiosParamCreator(configuration).agenciesControllerGetUserFavoriteAgencies(page, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {CreateAgencyDto} CreateAgencyDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerUpdateAgency(id: number, CreateAgencyDto: CreateAgencyDto, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = AgenciesApiAxiosParamCreator(configuration).agenciesControllerUpdateAgency(id, CreateAgencyDto, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerUpdateFavoritesAgency(id: number, page?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = AgenciesApiAxiosParamCreator(configuration).agenciesControllerUpdateFavoritesAgency(id, page, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerUpdateViewsAgency(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = AgenciesApiAxiosParamCreator(configuration).agenciesControllerUpdateViewsAgency(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {Array} [imageUrls] * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerUploadImagesAgency(id: number, imageUrls?: Array, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = AgenciesApiAxiosParamCreator(configuration).agenciesControllerUploadImagesAgency(id, imageUrls, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, } }; /** * AgenciesApi - factory interface * @export */ export const AgenciesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { return { /** * * @param {number} [page] * @param {string} [type] * @param {SortBy} [sort] * @param {string} [geoLocation] Array of string (this is validate as coordinates long lat) * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerAgencies(page?: number, type?: string, sort?: SortBy, geoLocation?: string, options?: any) { return AgenciesApiFp(configuration).agenciesControllerAgencies(page, type, sort, geoLocation, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerAgency(id: number, options?: any) { return AgenciesApiFp(configuration).agenciesControllerAgency(id, options)(axios, basePath); }, /** * * @param {CreateAgencyDto} CreateAgencyDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerCreateAgency(CreateAgencyDto: CreateAgencyDto, options?: any) { return AgenciesApiFp(configuration).agenciesControllerCreateAgency(CreateAgencyDto, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerDeleteAgency(id: number, options?: any) { return AgenciesApiFp(configuration).agenciesControllerDeleteAgency(id, options)(axios, basePath); }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerGetUserAgencies(page?: number, isDeleted?: boolean, options?: any) { return AgenciesApiFp(configuration).agenciesControllerGetUserAgencies(page, isDeleted, options)(axios, basePath); }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerGetUserFavoriteAgencies(page?: number, options?: any) { return AgenciesApiFp(configuration).agenciesControllerGetUserFavoriteAgencies(page, options)(axios, basePath); }, /** * * @param {number} id * @param {CreateAgencyDto} CreateAgencyDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerUpdateAgency(id: number, CreateAgencyDto: CreateAgencyDto, options?: any) { return AgenciesApiFp(configuration).agenciesControllerUpdateAgency(id, CreateAgencyDto, options)(axios, basePath); }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerUpdateFavoritesAgency(id: number, page?: number, options?: any) { return AgenciesApiFp(configuration).agenciesControllerUpdateFavoritesAgency(id, page, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerUpdateViewsAgency(id: number, options?: any) { return AgenciesApiFp(configuration).agenciesControllerUpdateViewsAgency(id, options)(axios, basePath); }, /** * * @param {number} id * @param {Array} [imageUrls] * @param {*} [options] Override http request option. * @throws {RequiredError} */ agenciesControllerUploadImagesAgency(id: number, imageUrls?: Array, options?: any) { return AgenciesApiFp(configuration).agenciesControllerUploadImagesAgency(id, imageUrls, options)(axios, basePath); }, }; }; /** * AgenciesApi - object-oriented interface * @export * @class AgenciesApi * @extends {BaseAPI} */ export class AgenciesApi extends BaseAPI { /** * * @param {number} [page] * @param {string} [type] * @param {SortBy} [sort] * @param {string} [geoLocation] Array of string (this is validate as coordinates long lat) * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AgenciesApi */ public agenciesControllerAgencies(page?: number, type?: string, sort?: SortBy, geoLocation?: string, options?: any) { return AgenciesApiFp(this.configuration).agenciesControllerAgencies(page, type, sort, geoLocation, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AgenciesApi */ public agenciesControllerAgency(id: number, options?: any) { return AgenciesApiFp(this.configuration).agenciesControllerAgency(id, options)(this.axios, this.basePath); } /** * * @param {CreateAgencyDto} CreateAgencyDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AgenciesApi */ public agenciesControllerCreateAgency(CreateAgencyDto: CreateAgencyDto, options?: any) { return AgenciesApiFp(this.configuration).agenciesControllerCreateAgency(CreateAgencyDto, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AgenciesApi */ public agenciesControllerDeleteAgency(id: number, options?: any) { return AgenciesApiFp(this.configuration).agenciesControllerDeleteAgency(id, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AgenciesApi */ public agenciesControllerGetUserAgencies(page?: number, isDeleted?: boolean, options?: any) { return AgenciesApiFp(this.configuration).agenciesControllerGetUserAgencies(page, isDeleted, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AgenciesApi */ public agenciesControllerGetUserFavoriteAgencies(page?: number, options?: any) { return AgenciesApiFp(this.configuration).agenciesControllerGetUserFavoriteAgencies(page, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {CreateAgencyDto} CreateAgencyDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AgenciesApi */ public agenciesControllerUpdateAgency(id: number, CreateAgencyDto: CreateAgencyDto, options?: any) { return AgenciesApiFp(this.configuration).agenciesControllerUpdateAgency(id, CreateAgencyDto, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AgenciesApi */ public agenciesControllerUpdateFavoritesAgency(id: number, page?: number, options?: any) { return AgenciesApiFp(this.configuration).agenciesControllerUpdateFavoritesAgency(id, page, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AgenciesApi */ public agenciesControllerUpdateViewsAgency(id: number, options?: any) { return AgenciesApiFp(this.configuration).agenciesControllerUpdateViewsAgency(id, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {Array} [imageUrls] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AgenciesApi */ public agenciesControllerUploadImagesAgency(id: number, imageUrls?: Array, options?: any) { return AgenciesApiFp(this.configuration).agenciesControllerUploadImagesAgency(id, imageUrls, options)(this.axios, this.basePath); } } /** * ConcertsApi - axios parameter creator * @export */ export const ConcertsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerConcert(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling concertsControllerConcert.'); } const localVarPath = `/concerts/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {string} [type] * @param {SortBy} [sort] * @param {string} [geoLocation] Array of string (this is validate as coordinates long lat) * @param {string} [whenStart] * @param {string} [whenEnd] * @param {boolean} [isOnline] * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerConcerts(page?: number, type?: string, sort?: SortBy, geoLocation?: string, whenStart?: string, whenEnd?: string, isOnline?: boolean, options: any = {}): RequestArgs { const localVarPath = `/concerts`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } if (type !== undefined) { localVarQueryParameter['type'] = type; } if (sort !== undefined) { localVarQueryParameter['sort'] = sort; } if (geoLocation !== undefined) { localVarQueryParameter['geoLocation'] = geoLocation; } if (whenStart !== undefined) { localVarQueryParameter['whenStart'] = whenStart; } if (whenEnd !== undefined) { localVarQueryParameter['whenEnd'] = whenEnd; } if (isOnline !== undefined) { localVarQueryParameter['isOnline'] = isOnline; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {CreateConcertDto} CreateConcertDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerCreateConcert(CreateConcertDto: CreateConcertDto, options: any = {}): RequestArgs { // verify required parameter 'CreateConcertDto' is not null or undefined if (CreateConcertDto === null || CreateConcertDto === undefined) { throw new RequiredError('CreateConcertDto','Required parameter CreateConcertDto was null or undefined when calling concertsControllerCreateConcert.'); } const localVarPath = `/concerts`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; const needsSerialization = (typeof CreateConcertDto !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(CreateConcertDto !== undefined ? CreateConcertDto : {}) : (CreateConcertDto || ""); return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerDeleteConcert(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling concertsControllerDeleteConcert.'); } const localVarPath = `/concerts/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerGetUserConcerts(page?: number, isDeleted?: boolean, options: any = {}): RequestArgs { const localVarPath = `/concerts/user/publications`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } if (page !== undefined) { localVarQueryParameter['page'] = page; } if (isDeleted !== undefined) { localVarQueryParameter['isDeleted'] = isDeleted; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerGetUserFavoriteConcerts(page?: number, options: any = {}): RequestArgs { const localVarPath = `/concerts/user/favorites`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {CreateConcertDto} CreateConcertDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerUpdateConcert(id: number, CreateConcertDto: CreateConcertDto, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling concertsControllerUpdateConcert.'); } // verify required parameter 'CreateConcertDto' is not null or undefined if (CreateConcertDto === null || CreateConcertDto === undefined) { throw new RequiredError('CreateConcertDto','Required parameter CreateConcertDto was null or undefined when calling concertsControllerUpdateConcert.'); } const localVarPath = `/concerts/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; const needsSerialization = (typeof CreateConcertDto !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(CreateConcertDto !== undefined ? CreateConcertDto : {}) : (CreateConcertDto || ""); return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerUpdateFavoritesConcert(id: number, page?: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling concertsControllerUpdateFavoritesConcert.'); } const localVarPath = `/concerts/{id}/favorites` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerUpdateViewsConcert(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling concertsControllerUpdateViewsConcert.'); } const localVarPath = `/concerts/{id}/views` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {Array} [imageUrls] * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerUploadImagesConcert(id: number, imageUrls?: Array, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling concertsControllerUploadImagesConcert.'); } const localVarPath = `/concerts/{id}/images` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const localVarFormParams = new FormData(); // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } if (imageUrls) { localVarFormParams.append('imageUrls', imageUrls.join(COLLECTION_FORMATS.csv)); } localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; localVarRequestOptions.data = localVarFormParams; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * ConcertsApi - functional programming interface * @export */ export const ConcertsApiFp = function(configuration?: Configuration) { return { /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerConcert(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = ConcertsApiAxiosParamCreator(configuration).concertsControllerConcert(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {string} [type] * @param {SortBy} [sort] * @param {string} [geoLocation] Array of string (this is validate as coordinates long lat) * @param {string} [whenStart] * @param {string} [whenEnd] * @param {boolean} [isOnline] * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerConcerts(page?: number, type?: string, sort?: SortBy, geoLocation?: string, whenStart?: string, whenEnd?: string, isOnline?: boolean, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = ConcertsApiAxiosParamCreator(configuration).concertsControllerConcerts(page, type, sort, geoLocation, whenStart, whenEnd, isOnline, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {CreateConcertDto} CreateConcertDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerCreateConcert(CreateConcertDto: CreateConcertDto, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = ConcertsApiAxiosParamCreator(configuration).concertsControllerCreateConcert(CreateConcertDto, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerDeleteConcert(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = ConcertsApiAxiosParamCreator(configuration).concertsControllerDeleteConcert(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerGetUserConcerts(page?: number, isDeleted?: boolean, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = ConcertsApiAxiosParamCreator(configuration).concertsControllerGetUserConcerts(page, isDeleted, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerGetUserFavoriteConcerts(page?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = ConcertsApiAxiosParamCreator(configuration).concertsControllerGetUserFavoriteConcerts(page, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {CreateConcertDto} CreateConcertDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerUpdateConcert(id: number, CreateConcertDto: CreateConcertDto, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = ConcertsApiAxiosParamCreator(configuration).concertsControllerUpdateConcert(id, CreateConcertDto, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerUpdateFavoritesConcert(id: number, page?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = ConcertsApiAxiosParamCreator(configuration).concertsControllerUpdateFavoritesConcert(id, page, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerUpdateViewsConcert(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = ConcertsApiAxiosParamCreator(configuration).concertsControllerUpdateViewsConcert(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {Array} [imageUrls] * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerUploadImagesConcert(id: number, imageUrls?: Array, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = ConcertsApiAxiosParamCreator(configuration).concertsControllerUploadImagesConcert(id, imageUrls, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, } }; /** * ConcertsApi - factory interface * @export */ export const ConcertsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { return { /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerConcert(id: number, options?: any) { return ConcertsApiFp(configuration).concertsControllerConcert(id, options)(axios, basePath); }, /** * * @param {number} [page] * @param {string} [type] * @param {SortBy} [sort] * @param {string} [geoLocation] Array of string (this is validate as coordinates long lat) * @param {string} [whenStart] * @param {string} [whenEnd] * @param {boolean} [isOnline] * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerConcerts(page?: number, type?: string, sort?: SortBy, geoLocation?: string, whenStart?: string, whenEnd?: string, isOnline?: boolean, options?: any) { return ConcertsApiFp(configuration).concertsControllerConcerts(page, type, sort, geoLocation, whenStart, whenEnd, isOnline, options)(axios, basePath); }, /** * * @param {CreateConcertDto} CreateConcertDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerCreateConcert(CreateConcertDto: CreateConcertDto, options?: any) { return ConcertsApiFp(configuration).concertsControllerCreateConcert(CreateConcertDto, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerDeleteConcert(id: number, options?: any) { return ConcertsApiFp(configuration).concertsControllerDeleteConcert(id, options)(axios, basePath); }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerGetUserConcerts(page?: number, isDeleted?: boolean, options?: any) { return ConcertsApiFp(configuration).concertsControllerGetUserConcerts(page, isDeleted, options)(axios, basePath); }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerGetUserFavoriteConcerts(page?: number, options?: any) { return ConcertsApiFp(configuration).concertsControllerGetUserFavoriteConcerts(page, options)(axios, basePath); }, /** * * @param {number} id * @param {CreateConcertDto} CreateConcertDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerUpdateConcert(id: number, CreateConcertDto: CreateConcertDto, options?: any) { return ConcertsApiFp(configuration).concertsControllerUpdateConcert(id, CreateConcertDto, options)(axios, basePath); }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerUpdateFavoritesConcert(id: number, page?: number, options?: any) { return ConcertsApiFp(configuration).concertsControllerUpdateFavoritesConcert(id, page, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerUpdateViewsConcert(id: number, options?: any) { return ConcertsApiFp(configuration).concertsControllerUpdateViewsConcert(id, options)(axios, basePath); }, /** * * @param {number} id * @param {Array} [imageUrls] * @param {*} [options] Override http request option. * @throws {RequiredError} */ concertsControllerUploadImagesConcert(id: number, imageUrls?: Array, options?: any) { return ConcertsApiFp(configuration).concertsControllerUploadImagesConcert(id, imageUrls, options)(axios, basePath); }, }; }; /** * ConcertsApi - object-oriented interface * @export * @class ConcertsApi * @extends {BaseAPI} */ export class ConcertsApi extends BaseAPI { /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ConcertsApi */ public concertsControllerConcert(id: number, options?: any) { return ConcertsApiFp(this.configuration).concertsControllerConcert(id, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {string} [type] * @param {SortBy} [sort] * @param {string} [geoLocation] Array of string (this is validate as coordinates long lat) * @param {string} [whenStart] * @param {string} [whenEnd] * @param {boolean} [isOnline] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ConcertsApi */ public concertsControllerConcerts(page?: number, type?: string, sort?: SortBy, geoLocation?: string, whenStart?: string, whenEnd?: string, isOnline?: boolean, options?: any) { return ConcertsApiFp(this.configuration).concertsControllerConcerts(page, type, sort, geoLocation, whenStart, whenEnd, isOnline, options)(this.axios, this.basePath); } /** * * @param {CreateConcertDto} CreateConcertDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ConcertsApi */ public concertsControllerCreateConcert(CreateConcertDto: CreateConcertDto, options?: any) { return ConcertsApiFp(this.configuration).concertsControllerCreateConcert(CreateConcertDto, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ConcertsApi */ public concertsControllerDeleteConcert(id: number, options?: any) { return ConcertsApiFp(this.configuration).concertsControllerDeleteConcert(id, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ConcertsApi */ public concertsControllerGetUserConcerts(page?: number, isDeleted?: boolean, options?: any) { return ConcertsApiFp(this.configuration).concertsControllerGetUserConcerts(page, isDeleted, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ConcertsApi */ public concertsControllerGetUserFavoriteConcerts(page?: number, options?: any) { return ConcertsApiFp(this.configuration).concertsControllerGetUserFavoriteConcerts(page, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {CreateConcertDto} CreateConcertDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ConcertsApi */ public concertsControllerUpdateConcert(id: number, CreateConcertDto: CreateConcertDto, options?: any) { return ConcertsApiFp(this.configuration).concertsControllerUpdateConcert(id, CreateConcertDto, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ConcertsApi */ public concertsControllerUpdateFavoritesConcert(id: number, page?: number, options?: any) { return ConcertsApiFp(this.configuration).concertsControllerUpdateFavoritesConcert(id, page, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ConcertsApi */ public concertsControllerUpdateViewsConcert(id: number, options?: any) { return ConcertsApiFp(this.configuration).concertsControllerUpdateViewsConcert(id, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {Array} [imageUrls] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ConcertsApi */ public concertsControllerUploadImagesConcert(id: number, imageUrls?: Array, options?: any) { return ConcertsApiFp(this.configuration).concertsControllerUploadImagesConcert(id, imageUrls, options)(this.axios, this.basePath); } } /** * GroceriesApi - axios parameter creator * @export */ export const GroceriesApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @param {CreateGrocerieDto} CreateGrocerieDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerCreateGrocerie(CreateGrocerieDto: CreateGrocerieDto, options: any = {}): RequestArgs { // verify required parameter 'CreateGrocerieDto' is not null or undefined if (CreateGrocerieDto === null || CreateGrocerieDto === undefined) { throw new RequiredError('CreateGrocerieDto','Required parameter CreateGrocerieDto was null or undefined when calling groceriesControllerCreateGrocerie.'); } const localVarPath = `/groceries`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; const needsSerialization = (typeof CreateGrocerieDto !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(CreateGrocerieDto !== undefined ? CreateGrocerieDto : {}) : (CreateGrocerieDto || ""); return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerDeleteGrocerie(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling groceriesControllerDeleteGrocerie.'); } const localVarPath = `/groceries/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerGetUserFavoriteGroceries(page?: number, options: any = {}): RequestArgs { const localVarPath = `/groceries/user/favorites`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerGetUserGroceries(page?: number, isDeleted?: boolean, options: any = {}): RequestArgs { const localVarPath = `/groceries/user/publications`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } if (page !== undefined) { localVarQueryParameter['page'] = page; } if (isDeleted !== undefined) { localVarQueryParameter['isDeleted'] = isDeleted; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerGrocerie(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling groceriesControllerGrocerie.'); } const localVarPath = `/groceries/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {string} [type] * @param {SortBy} [sort] * @param {string} [geoLocation] Array of string (this is validate as coordinates long lat) * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerGroceries(page?: number, type?: string, sort?: SortBy, geoLocation?: string, options: any = {}): RequestArgs { const localVarPath = `/groceries`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } if (type !== undefined) { localVarQueryParameter['type'] = type; } if (sort !== undefined) { localVarQueryParameter['sort'] = sort; } if (geoLocation !== undefined) { localVarQueryParameter['geoLocation'] = geoLocation; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerUpdateFavoritesGrocerie(id: number, page?: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling groceriesControllerUpdateFavoritesGrocerie.'); } const localVarPath = `/groceries/{id}/favorites` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {CreateGrocerieDto} CreateGrocerieDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerUpdateGrocerie(id: number, CreateGrocerieDto: CreateGrocerieDto, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling groceriesControllerUpdateGrocerie.'); } // verify required parameter 'CreateGrocerieDto' is not null or undefined if (CreateGrocerieDto === null || CreateGrocerieDto === undefined) { throw new RequiredError('CreateGrocerieDto','Required parameter CreateGrocerieDto was null or undefined when calling groceriesControllerUpdateGrocerie.'); } const localVarPath = `/groceries/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; const needsSerialization = (typeof CreateGrocerieDto !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(CreateGrocerieDto !== undefined ? CreateGrocerieDto : {}) : (CreateGrocerieDto || ""); return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerUpdateViewsGrocerie(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling groceriesControllerUpdateViewsGrocerie.'); } const localVarPath = `/groceries/{id}/views` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {Array} [imageUrls] * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerUploadImagesGrocerie(id: number, imageUrls?: Array, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling groceriesControllerUploadImagesGrocerie.'); } const localVarPath = `/groceries/{id}/images` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const localVarFormParams = new FormData(); // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } if (imageUrls) { localVarFormParams.append('imageUrls', imageUrls.join(COLLECTION_FORMATS.csv)); } localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; localVarRequestOptions.data = localVarFormParams; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * GroceriesApi - functional programming interface * @export */ export const GroceriesApiFp = function(configuration?: Configuration) { return { /** * * @param {CreateGrocerieDto} CreateGrocerieDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerCreateGrocerie(CreateGrocerieDto: CreateGrocerieDto, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = GroceriesApiAxiosParamCreator(configuration).groceriesControllerCreateGrocerie(CreateGrocerieDto, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerDeleteGrocerie(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = GroceriesApiAxiosParamCreator(configuration).groceriesControllerDeleteGrocerie(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerGetUserFavoriteGroceries(page?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = GroceriesApiAxiosParamCreator(configuration).groceriesControllerGetUserFavoriteGroceries(page, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerGetUserGroceries(page?: number, isDeleted?: boolean, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = GroceriesApiAxiosParamCreator(configuration).groceriesControllerGetUserGroceries(page, isDeleted, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerGrocerie(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = GroceriesApiAxiosParamCreator(configuration).groceriesControllerGrocerie(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {string} [type] * @param {SortBy} [sort] * @param {string} [geoLocation] Array of string (this is validate as coordinates long lat) * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerGroceries(page?: number, type?: string, sort?: SortBy, geoLocation?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = GroceriesApiAxiosParamCreator(configuration).groceriesControllerGroceries(page, type, sort, geoLocation, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerUpdateFavoritesGrocerie(id: number, page?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = GroceriesApiAxiosParamCreator(configuration).groceriesControllerUpdateFavoritesGrocerie(id, page, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {CreateGrocerieDto} CreateGrocerieDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerUpdateGrocerie(id: number, CreateGrocerieDto: CreateGrocerieDto, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = GroceriesApiAxiosParamCreator(configuration).groceriesControllerUpdateGrocerie(id, CreateGrocerieDto, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerUpdateViewsGrocerie(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = GroceriesApiAxiosParamCreator(configuration).groceriesControllerUpdateViewsGrocerie(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {Array} [imageUrls] * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerUploadImagesGrocerie(id: number, imageUrls?: Array, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = GroceriesApiAxiosParamCreator(configuration).groceriesControllerUploadImagesGrocerie(id, imageUrls, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, } }; /** * GroceriesApi - factory interface * @export */ export const GroceriesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { return { /** * * @param {CreateGrocerieDto} CreateGrocerieDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerCreateGrocerie(CreateGrocerieDto: CreateGrocerieDto, options?: any) { return GroceriesApiFp(configuration).groceriesControllerCreateGrocerie(CreateGrocerieDto, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerDeleteGrocerie(id: number, options?: any) { return GroceriesApiFp(configuration).groceriesControllerDeleteGrocerie(id, options)(axios, basePath); }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerGetUserFavoriteGroceries(page?: number, options?: any) { return GroceriesApiFp(configuration).groceriesControllerGetUserFavoriteGroceries(page, options)(axios, basePath); }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerGetUserGroceries(page?: number, isDeleted?: boolean, options?: any) { return GroceriesApiFp(configuration).groceriesControllerGetUserGroceries(page, isDeleted, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerGrocerie(id: number, options?: any) { return GroceriesApiFp(configuration).groceriesControllerGrocerie(id, options)(axios, basePath); }, /** * * @param {number} [page] * @param {string} [type] * @param {SortBy} [sort] * @param {string} [geoLocation] Array of string (this is validate as coordinates long lat) * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerGroceries(page?: number, type?: string, sort?: SortBy, geoLocation?: string, options?: any) { return GroceriesApiFp(configuration).groceriesControllerGroceries(page, type, sort, geoLocation, options)(axios, basePath); }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerUpdateFavoritesGrocerie(id: number, page?: number, options?: any) { return GroceriesApiFp(configuration).groceriesControllerUpdateFavoritesGrocerie(id, page, options)(axios, basePath); }, /** * * @param {number} id * @param {CreateGrocerieDto} CreateGrocerieDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerUpdateGrocerie(id: number, CreateGrocerieDto: CreateGrocerieDto, options?: any) { return GroceriesApiFp(configuration).groceriesControllerUpdateGrocerie(id, CreateGrocerieDto, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerUpdateViewsGrocerie(id: number, options?: any) { return GroceriesApiFp(configuration).groceriesControllerUpdateViewsGrocerie(id, options)(axios, basePath); }, /** * * @param {number} id * @param {Array} [imageUrls] * @param {*} [options] Override http request option. * @throws {RequiredError} */ groceriesControllerUploadImagesGrocerie(id: number, imageUrls?: Array, options?: any) { return GroceriesApiFp(configuration).groceriesControllerUploadImagesGrocerie(id, imageUrls, options)(axios, basePath); }, }; }; /** * GroceriesApi - object-oriented interface * @export * @class GroceriesApi * @extends {BaseAPI} */ export class GroceriesApi extends BaseAPI { /** * * @param {CreateGrocerieDto} CreateGrocerieDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroceriesApi */ public groceriesControllerCreateGrocerie(CreateGrocerieDto: CreateGrocerieDto, options?: any) { return GroceriesApiFp(this.configuration).groceriesControllerCreateGrocerie(CreateGrocerieDto, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroceriesApi */ public groceriesControllerDeleteGrocerie(id: number, options?: any) { return GroceriesApiFp(this.configuration).groceriesControllerDeleteGrocerie(id, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroceriesApi */ public groceriesControllerGetUserFavoriteGroceries(page?: number, options?: any) { return GroceriesApiFp(this.configuration).groceriesControllerGetUserFavoriteGroceries(page, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroceriesApi */ public groceriesControllerGetUserGroceries(page?: number, isDeleted?: boolean, options?: any) { return GroceriesApiFp(this.configuration).groceriesControllerGetUserGroceries(page, isDeleted, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroceriesApi */ public groceriesControllerGrocerie(id: number, options?: any) { return GroceriesApiFp(this.configuration).groceriesControllerGrocerie(id, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {string} [type] * @param {SortBy} [sort] * @param {string} [geoLocation] Array of string (this is validate as coordinates long lat) * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroceriesApi */ public groceriesControllerGroceries(page?: number, type?: string, sort?: SortBy, geoLocation?: string, options?: any) { return GroceriesApiFp(this.configuration).groceriesControllerGroceries(page, type, sort, geoLocation, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroceriesApi */ public groceriesControllerUpdateFavoritesGrocerie(id: number, page?: number, options?: any) { return GroceriesApiFp(this.configuration).groceriesControllerUpdateFavoritesGrocerie(id, page, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {CreateGrocerieDto} CreateGrocerieDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroceriesApi */ public groceriesControllerUpdateGrocerie(id: number, CreateGrocerieDto: CreateGrocerieDto, options?: any) { return GroceriesApiFp(this.configuration).groceriesControllerUpdateGrocerie(id, CreateGrocerieDto, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroceriesApi */ public groceriesControllerUpdateViewsGrocerie(id: number, options?: any) { return GroceriesApiFp(this.configuration).groceriesControllerUpdateViewsGrocerie(id, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {Array} [imageUrls] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroceriesApi */ public groceriesControllerUploadImagesGrocerie(id: number, imageUrls?: Array, options?: any) { return GroceriesApiFp(this.configuration).groceriesControllerUploadImagesGrocerie(id, imageUrls, options)(this.axios, this.basePath); } } /** * JobsApi - axios parameter creator * @export */ export const JobsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @param {CreateJobDto} CreateJobDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerCreateJob(CreateJobDto: CreateJobDto, options: any = {}): RequestArgs { // verify required parameter 'CreateJobDto' is not null or undefined if (CreateJobDto === null || CreateJobDto === undefined) { throw new RequiredError('CreateJobDto','Required parameter CreateJobDto was null or undefined when calling jobsControllerCreateJob.'); } const localVarPath = `/jobs`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; const needsSerialization = (typeof CreateJobDto !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(CreateJobDto !== undefined ? CreateJobDto : {}) : (CreateJobDto || ""); return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerDeleteJob(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling jobsControllerDeleteJob.'); } const localVarPath = `/jobs/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerGetUserFavoriteJobs(page?: number, options: any = {}): RequestArgs { const localVarPath = `/jobs/user/favorites`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerGetUserJobs(page?: number, isDeleted?: boolean, options: any = {}): RequestArgs { const localVarPath = `/jobs/user/publications`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } if (page !== undefined) { localVarQueryParameter['page'] = page; } if (isDeleted !== undefined) { localVarQueryParameter['isDeleted'] = isDeleted; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerJob(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling jobsControllerJob.'); } const localVarPath = `/jobs/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {string} [job] * @param {SortBy} [sort] * @param {string} [geoLocation] Array of string (this is validate as coordinates long lat) * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerJobs(page?: number, job?: string, sort?: SortBy, geoLocation?: string, options: any = {}): RequestArgs { const localVarPath = `/jobs`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } if (job !== undefined) { localVarQueryParameter['job'] = job; } if (sort !== undefined) { localVarQueryParameter['sort'] = sort; } if (geoLocation !== undefined) { localVarQueryParameter['geoLocation'] = geoLocation; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerUpdateFavoritesJob(id: number, page?: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling jobsControllerUpdateFavoritesJob.'); } const localVarPath = `/jobs/{id}/favorites` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {CreateJobDto} CreateJobDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerUpdateJob(id: number, CreateJobDto: CreateJobDto, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling jobsControllerUpdateJob.'); } // verify required parameter 'CreateJobDto' is not null or undefined if (CreateJobDto === null || CreateJobDto === undefined) { throw new RequiredError('CreateJobDto','Required parameter CreateJobDto was null or undefined when calling jobsControllerUpdateJob.'); } const localVarPath = `/jobs/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; const needsSerialization = (typeof CreateJobDto !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(CreateJobDto !== undefined ? CreateJobDto : {}) : (CreateJobDto || ""); return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerUpdateViewsJob(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling jobsControllerUpdateViewsJob.'); } const localVarPath = `/jobs/{id}/views` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {Array} [imageUrls] * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerUploadImagesJob(id: number, imageUrls?: Array, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling jobsControllerUploadImagesJob.'); } const localVarPath = `/jobs/{id}/images` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const localVarFormParams = new FormData(); // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } if (imageUrls) { localVarFormParams.append('imageUrls', imageUrls.join(COLLECTION_FORMATS.csv)); } localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; localVarRequestOptions.data = localVarFormParams; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * JobsApi - functional programming interface * @export */ export const JobsApiFp = function(configuration?: Configuration) { return { /** * * @param {CreateJobDto} CreateJobDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerCreateJob(CreateJobDto: CreateJobDto, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = JobsApiAxiosParamCreator(configuration).jobsControllerCreateJob(CreateJobDto, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerDeleteJob(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = JobsApiAxiosParamCreator(configuration).jobsControllerDeleteJob(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerGetUserFavoriteJobs(page?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = JobsApiAxiosParamCreator(configuration).jobsControllerGetUserFavoriteJobs(page, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerGetUserJobs(page?: number, isDeleted?: boolean, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = JobsApiAxiosParamCreator(configuration).jobsControllerGetUserJobs(page, isDeleted, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerJob(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = JobsApiAxiosParamCreator(configuration).jobsControllerJob(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {string} [job] * @param {SortBy} [sort] * @param {string} [geoLocation] Array of string (this is validate as coordinates long lat) * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerJobs(page?: number, job?: string, sort?: SortBy, geoLocation?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = JobsApiAxiosParamCreator(configuration).jobsControllerJobs(page, job, sort, geoLocation, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerUpdateFavoritesJob(id: number, page?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = JobsApiAxiosParamCreator(configuration).jobsControllerUpdateFavoritesJob(id, page, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {CreateJobDto} CreateJobDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerUpdateJob(id: number, CreateJobDto: CreateJobDto, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = JobsApiAxiosParamCreator(configuration).jobsControllerUpdateJob(id, CreateJobDto, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerUpdateViewsJob(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = JobsApiAxiosParamCreator(configuration).jobsControllerUpdateViewsJob(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {Array} [imageUrls] * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerUploadImagesJob(id: number, imageUrls?: Array, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = JobsApiAxiosParamCreator(configuration).jobsControllerUploadImagesJob(id, imageUrls, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, } }; /** * JobsApi - factory interface * @export */ export const JobsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { return { /** * * @param {CreateJobDto} CreateJobDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerCreateJob(CreateJobDto: CreateJobDto, options?: any) { return JobsApiFp(configuration).jobsControllerCreateJob(CreateJobDto, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerDeleteJob(id: number, options?: any) { return JobsApiFp(configuration).jobsControllerDeleteJob(id, options)(axios, basePath); }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerGetUserFavoriteJobs(page?: number, options?: any) { return JobsApiFp(configuration).jobsControllerGetUserFavoriteJobs(page, options)(axios, basePath); }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerGetUserJobs(page?: number, isDeleted?: boolean, options?: any) { return JobsApiFp(configuration).jobsControllerGetUserJobs(page, isDeleted, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerJob(id: number, options?: any) { return JobsApiFp(configuration).jobsControllerJob(id, options)(axios, basePath); }, /** * * @param {number} [page] * @param {string} [job] * @param {SortBy} [sort] * @param {string} [geoLocation] Array of string (this is validate as coordinates long lat) * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerJobs(page?: number, job?: string, sort?: SortBy, geoLocation?: string, options?: any) { return JobsApiFp(configuration).jobsControllerJobs(page, job, sort, geoLocation, options)(axios, basePath); }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerUpdateFavoritesJob(id: number, page?: number, options?: any) { return JobsApiFp(configuration).jobsControllerUpdateFavoritesJob(id, page, options)(axios, basePath); }, /** * * @param {number} id * @param {CreateJobDto} CreateJobDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerUpdateJob(id: number, CreateJobDto: CreateJobDto, options?: any) { return JobsApiFp(configuration).jobsControllerUpdateJob(id, CreateJobDto, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerUpdateViewsJob(id: number, options?: any) { return JobsApiFp(configuration).jobsControllerUpdateViewsJob(id, options)(axios, basePath); }, /** * * @param {number} id * @param {Array} [imageUrls] * @param {*} [options] Override http request option. * @throws {RequiredError} */ jobsControllerUploadImagesJob(id: number, imageUrls?: Array, options?: any) { return JobsApiFp(configuration).jobsControllerUploadImagesJob(id, imageUrls, options)(axios, basePath); }, }; }; /** * JobsApi - object-oriented interface * @export * @class JobsApi * @extends {BaseAPI} */ export class JobsApi extends BaseAPI { /** * * @param {CreateJobDto} CreateJobDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof JobsApi */ public jobsControllerCreateJob(CreateJobDto: CreateJobDto, options?: any) { return JobsApiFp(this.configuration).jobsControllerCreateJob(CreateJobDto, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof JobsApi */ public jobsControllerDeleteJob(id: number, options?: any) { return JobsApiFp(this.configuration).jobsControllerDeleteJob(id, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof JobsApi */ public jobsControllerGetUserFavoriteJobs(page?: number, options?: any) { return JobsApiFp(this.configuration).jobsControllerGetUserFavoriteJobs(page, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof JobsApi */ public jobsControllerGetUserJobs(page?: number, isDeleted?: boolean, options?: any) { return JobsApiFp(this.configuration).jobsControllerGetUserJobs(page, isDeleted, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof JobsApi */ public jobsControllerJob(id: number, options?: any) { return JobsApiFp(this.configuration).jobsControllerJob(id, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {string} [job] * @param {SortBy} [sort] * @param {string} [geoLocation] Array of string (this is validate as coordinates long lat) * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof JobsApi */ public jobsControllerJobs(page?: number, job?: string, sort?: SortBy, geoLocation?: string, options?: any) { return JobsApiFp(this.configuration).jobsControllerJobs(page, job, sort, geoLocation, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof JobsApi */ public jobsControllerUpdateFavoritesJob(id: number, page?: number, options?: any) { return JobsApiFp(this.configuration).jobsControllerUpdateFavoritesJob(id, page, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {CreateJobDto} CreateJobDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof JobsApi */ public jobsControllerUpdateJob(id: number, CreateJobDto: CreateJobDto, options?: any) { return JobsApiFp(this.configuration).jobsControllerUpdateJob(id, CreateJobDto, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof JobsApi */ public jobsControllerUpdateViewsJob(id: number, options?: any) { return JobsApiFp(this.configuration).jobsControllerUpdateViewsJob(id, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {Array} [imageUrls] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof JobsApi */ public jobsControllerUploadImagesJob(id: number, imageUrls?: Array, options?: any) { return JobsApiFp(this.configuration).jobsControllerUploadImagesJob(id, imageUrls, options)(this.axios, this.basePath); } } /** * JoinApi - axios parameter creator * @export */ export const JoinApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ joinControllerPopular(options: any = {}): RequestArgs { const localVarPath = `/join/popular`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ joinControllerRecent(options: any = {}): RequestArgs { const localVarPath = `/join/recent`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ joinControllerTrend(options: any = {}): RequestArgs { const localVarPath = `/join/trend`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * JoinApi - functional programming interface * @export */ export const JoinApiFp = function(configuration?: Configuration) { return { /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ joinControllerPopular(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = JoinApiAxiosParamCreator(configuration).joinControllerPopular(options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ joinControllerRecent(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = JoinApiAxiosParamCreator(configuration).joinControllerRecent(options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ joinControllerTrend(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = JoinApiAxiosParamCreator(configuration).joinControllerTrend(options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, } }; /** * JoinApi - factory interface * @export */ export const JoinApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { return { /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ joinControllerPopular(options?: any) { return JoinApiFp(configuration).joinControllerPopular(options)(axios, basePath); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ joinControllerRecent(options?: any) { return JoinApiFp(configuration).joinControllerRecent(options)(axios, basePath); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ joinControllerTrend(options?: any) { return JoinApiFp(configuration).joinControllerTrend(options)(axios, basePath); }, }; }; /** * JoinApi - object-oriented interface * @export * @class JoinApi * @extends {BaseAPI} */ export class JoinApi extends BaseAPI { /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof JoinApi */ public joinControllerPopular(options?: any) { return JoinApiFp(this.configuration).joinControllerPopular(options)(this.axios, this.basePath); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof JoinApi */ public joinControllerRecent(options?: any) { return JoinApiFp(this.configuration).joinControllerRecent(options)(this.axios, this.basePath); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof JoinApi */ public joinControllerTrend(options?: any) { return JoinApiFp(this.configuration).joinControllerTrend(options)(this.axios, this.basePath); } } /** * RestaurantsApi - axios parameter creator * @export */ export const RestaurantsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @param {CreateRestaurantDto} CreateRestaurantDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerCreateRestaurant(CreateRestaurantDto: CreateRestaurantDto, options: any = {}): RequestArgs { // verify required parameter 'CreateRestaurantDto' is not null or undefined if (CreateRestaurantDto === null || CreateRestaurantDto === undefined) { throw new RequiredError('CreateRestaurantDto','Required parameter CreateRestaurantDto was null or undefined when calling restaurantsControllerCreateRestaurant.'); } const localVarPath = `/restaurants`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; const needsSerialization = (typeof CreateRestaurantDto !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(CreateRestaurantDto !== undefined ? CreateRestaurantDto : {}) : (CreateRestaurantDto || ""); return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerDeleteRestaurant(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling restaurantsControllerDeleteRestaurant.'); } const localVarPath = `/restaurants/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerGetUserFavoriteRestaurants(page?: number, options: any = {}): RequestArgs { const localVarPath = `/restaurants/user/favorites`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerGetUserRestaurants(page?: number, isDeleted?: boolean, options: any = {}): RequestArgs { const localVarPath = `/restaurants/user/publications`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } if (page !== undefined) { localVarQueryParameter['page'] = page; } if (isDeleted !== undefined) { localVarQueryParameter['isDeleted'] = isDeleted; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerRestaurant(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling restaurantsControllerRestaurant.'); } const localVarPath = `/restaurants/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {string} [name] * @param {string} [type] * @param {SortBy} [sort] * @param {string} [geoLocation] Array of string (this is validate as coordinates long lat) * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerRestaurants(page?: number, name?: string, type?: string, sort?: SortBy, geoLocation?: string, options: any = {}): RequestArgs { const localVarPath = `/restaurants`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } if (name !== undefined) { localVarQueryParameter['name'] = name; } if (type !== undefined) { localVarQueryParameter['type'] = type; } if (sort !== undefined) { localVarQueryParameter['sort'] = sort; } if (geoLocation !== undefined) { localVarQueryParameter['geoLocation'] = geoLocation; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerUpdateFavoritesRestaurant(id: number, page?: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling restaurantsControllerUpdateFavoritesRestaurant.'); } const localVarPath = `/restaurants/{id}/favorites` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {CreateRestaurantDto} CreateRestaurantDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerUpdateRestaurant(id: number, CreateRestaurantDto: CreateRestaurantDto, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling restaurantsControllerUpdateRestaurant.'); } // verify required parameter 'CreateRestaurantDto' is not null or undefined if (CreateRestaurantDto === null || CreateRestaurantDto === undefined) { throw new RequiredError('CreateRestaurantDto','Required parameter CreateRestaurantDto was null or undefined when calling restaurantsControllerUpdateRestaurant.'); } const localVarPath = `/restaurants/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; const needsSerialization = (typeof CreateRestaurantDto !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(CreateRestaurantDto !== undefined ? CreateRestaurantDto : {}) : (CreateRestaurantDto || ""); return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerUpdateViewsRestaurant(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling restaurantsControllerUpdateViewsRestaurant.'); } const localVarPath = `/restaurants/{id}/views` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {Array} [imageUrls] * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerUploadImagesRestaurant(id: number, imageUrls?: Array, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling restaurantsControllerUploadImagesRestaurant.'); } const localVarPath = `/restaurants/{id}/images` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const localVarFormParams = new FormData(); // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } if (imageUrls) { localVarFormParams.append('imageUrls', imageUrls.join(COLLECTION_FORMATS.csv)); } localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; localVarRequestOptions.data = localVarFormParams; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * RestaurantsApi - functional programming interface * @export */ export const RestaurantsApiFp = function(configuration?: Configuration) { return { /** * * @param {CreateRestaurantDto} CreateRestaurantDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerCreateRestaurant(CreateRestaurantDto: CreateRestaurantDto, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = RestaurantsApiAxiosParamCreator(configuration).restaurantsControllerCreateRestaurant(CreateRestaurantDto, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerDeleteRestaurant(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = RestaurantsApiAxiosParamCreator(configuration).restaurantsControllerDeleteRestaurant(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerGetUserFavoriteRestaurants(page?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = RestaurantsApiAxiosParamCreator(configuration).restaurantsControllerGetUserFavoriteRestaurants(page, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerGetUserRestaurants(page?: number, isDeleted?: boolean, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = RestaurantsApiAxiosParamCreator(configuration).restaurantsControllerGetUserRestaurants(page, isDeleted, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerRestaurant(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = RestaurantsApiAxiosParamCreator(configuration).restaurantsControllerRestaurant(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {string} [name] * @param {string} [type] * @param {SortBy} [sort] * @param {string} [geoLocation] Array of string (this is validate as coordinates long lat) * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerRestaurants(page?: number, name?: string, type?: string, sort?: SortBy, geoLocation?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = RestaurantsApiAxiosParamCreator(configuration).restaurantsControllerRestaurants(page, name, type, sort, geoLocation, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerUpdateFavoritesRestaurant(id: number, page?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = RestaurantsApiAxiosParamCreator(configuration).restaurantsControllerUpdateFavoritesRestaurant(id, page, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {CreateRestaurantDto} CreateRestaurantDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerUpdateRestaurant(id: number, CreateRestaurantDto: CreateRestaurantDto, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = RestaurantsApiAxiosParamCreator(configuration).restaurantsControllerUpdateRestaurant(id, CreateRestaurantDto, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerUpdateViewsRestaurant(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = RestaurantsApiAxiosParamCreator(configuration).restaurantsControllerUpdateViewsRestaurant(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {Array} [imageUrls] * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerUploadImagesRestaurant(id: number, imageUrls?: Array, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = RestaurantsApiAxiosParamCreator(configuration).restaurantsControllerUploadImagesRestaurant(id, imageUrls, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, } }; /** * RestaurantsApi - factory interface * @export */ export const RestaurantsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { return { /** * * @param {CreateRestaurantDto} CreateRestaurantDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerCreateRestaurant(CreateRestaurantDto: CreateRestaurantDto, options?: any) { return RestaurantsApiFp(configuration).restaurantsControllerCreateRestaurant(CreateRestaurantDto, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerDeleteRestaurant(id: number, options?: any) { return RestaurantsApiFp(configuration).restaurantsControllerDeleteRestaurant(id, options)(axios, basePath); }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerGetUserFavoriteRestaurants(page?: number, options?: any) { return RestaurantsApiFp(configuration).restaurantsControllerGetUserFavoriteRestaurants(page, options)(axios, basePath); }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerGetUserRestaurants(page?: number, isDeleted?: boolean, options?: any) { return RestaurantsApiFp(configuration).restaurantsControllerGetUserRestaurants(page, isDeleted, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerRestaurant(id: number, options?: any) { return RestaurantsApiFp(configuration).restaurantsControllerRestaurant(id, options)(axios, basePath); }, /** * * @param {number} [page] * @param {string} [name] * @param {string} [type] * @param {SortBy} [sort] * @param {string} [geoLocation] Array of string (this is validate as coordinates long lat) * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerRestaurants(page?: number, name?: string, type?: string, sort?: SortBy, geoLocation?: string, options?: any) { return RestaurantsApiFp(configuration).restaurantsControllerRestaurants(page, name, type, sort, geoLocation, options)(axios, basePath); }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerUpdateFavoritesRestaurant(id: number, page?: number, options?: any) { return RestaurantsApiFp(configuration).restaurantsControllerUpdateFavoritesRestaurant(id, page, options)(axios, basePath); }, /** * * @param {number} id * @param {CreateRestaurantDto} CreateRestaurantDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerUpdateRestaurant(id: number, CreateRestaurantDto: CreateRestaurantDto, options?: any) { return RestaurantsApiFp(configuration).restaurantsControllerUpdateRestaurant(id, CreateRestaurantDto, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerUpdateViewsRestaurant(id: number, options?: any) { return RestaurantsApiFp(configuration).restaurantsControllerUpdateViewsRestaurant(id, options)(axios, basePath); }, /** * * @param {number} id * @param {Array} [imageUrls] * @param {*} [options] Override http request option. * @throws {RequiredError} */ restaurantsControllerUploadImagesRestaurant(id: number, imageUrls?: Array, options?: any) { return RestaurantsApiFp(configuration).restaurantsControllerUploadImagesRestaurant(id, imageUrls, options)(axios, basePath); }, }; }; /** * RestaurantsApi - object-oriented interface * @export * @class RestaurantsApi * @extends {BaseAPI} */ export class RestaurantsApi extends BaseAPI { /** * * @param {CreateRestaurantDto} CreateRestaurantDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof RestaurantsApi */ public restaurantsControllerCreateRestaurant(CreateRestaurantDto: CreateRestaurantDto, options?: any) { return RestaurantsApiFp(this.configuration).restaurantsControllerCreateRestaurant(CreateRestaurantDto, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof RestaurantsApi */ public restaurantsControllerDeleteRestaurant(id: number, options?: any) { return RestaurantsApiFp(this.configuration).restaurantsControllerDeleteRestaurant(id, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof RestaurantsApi */ public restaurantsControllerGetUserFavoriteRestaurants(page?: number, options?: any) { return RestaurantsApiFp(this.configuration).restaurantsControllerGetUserFavoriteRestaurants(page, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof RestaurantsApi */ public restaurantsControllerGetUserRestaurants(page?: number, isDeleted?: boolean, options?: any) { return RestaurantsApiFp(this.configuration).restaurantsControllerGetUserRestaurants(page, isDeleted, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof RestaurantsApi */ public restaurantsControllerRestaurant(id: number, options?: any) { return RestaurantsApiFp(this.configuration).restaurantsControllerRestaurant(id, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {string} [name] * @param {string} [type] * @param {SortBy} [sort] * @param {string} [geoLocation] Array of string (this is validate as coordinates long lat) * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof RestaurantsApi */ public restaurantsControllerRestaurants(page?: number, name?: string, type?: string, sort?: SortBy, geoLocation?: string, options?: any) { return RestaurantsApiFp(this.configuration).restaurantsControllerRestaurants(page, name, type, sort, geoLocation, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof RestaurantsApi */ public restaurantsControllerUpdateFavoritesRestaurant(id: number, page?: number, options?: any) { return RestaurantsApiFp(this.configuration).restaurantsControllerUpdateFavoritesRestaurant(id, page, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {CreateRestaurantDto} CreateRestaurantDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof RestaurantsApi */ public restaurantsControllerUpdateRestaurant(id: number, CreateRestaurantDto: CreateRestaurantDto, options?: any) { return RestaurantsApiFp(this.configuration).restaurantsControllerUpdateRestaurant(id, CreateRestaurantDto, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof RestaurantsApi */ public restaurantsControllerUpdateViewsRestaurant(id: number, options?: any) { return RestaurantsApiFp(this.configuration).restaurantsControllerUpdateViewsRestaurant(id, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {Array} [imageUrls] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof RestaurantsApi */ public restaurantsControllerUploadImagesRestaurant(id: number, imageUrls?: Array, options?: any) { return RestaurantsApiFp(this.configuration).restaurantsControllerUploadImagesRestaurant(id, imageUrls, options)(this.axios, this.basePath); } } /** * SpotifyApi - axios parameter creator * @export */ export const SpotifyApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @param {CreateSpotifyDto} CreateSpotifyDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerCreateSpotify(CreateSpotifyDto: CreateSpotifyDto, options: any = {}): RequestArgs { // verify required parameter 'CreateSpotifyDto' is not null or undefined if (CreateSpotifyDto === null || CreateSpotifyDto === undefined) { throw new RequiredError('CreateSpotifyDto','Required parameter CreateSpotifyDto was null or undefined when calling spotifyControllerCreateSpotify.'); } const localVarPath = `/spotify/spotifys`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; const needsSerialization = (typeof CreateSpotifyDto !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(CreateSpotifyDto !== undefined ? CreateSpotifyDto : {}) : (CreateSpotifyDto || ""); return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerDeleteSpotify(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling spotifyControllerDeleteSpotify.'); } const localVarPath = `/spotify/spotify/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} q * @param {string} type * @param {number} [limit] * @param {number} [offset] * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerGetSpotifyArtists(q: string, type: string, limit?: number, offset?: number, options: any = {}): RequestArgs { // verify required parameter 'q' is not null or undefined if (q === null || q === undefined) { throw new RequiredError('q','Required parameter q was null or undefined when calling spotifyControllerGetSpotifyArtists.'); } // verify required parameter 'type' is not null or undefined if (type === null || type === undefined) { throw new RequiredError('type','Required parameter type was null or undefined when calling spotifyControllerGetSpotifyArtists.'); } const localVarPath = `/spotify/artists`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (q !== undefined) { localVarQueryParameter['q'] = q; } if (type !== undefined) { localVarQueryParameter['type'] = type; } if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerGetUserFavoriteSpotifys(page?: number, options: any = {}): RequestArgs { const localVarPath = `/spotify/user/favorites`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerGetUserSpotifys(page?: number, isDeleted?: boolean, options: any = {}): RequestArgs { const localVarPath = `/spotify/user/publications`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } if (page !== undefined) { localVarQueryParameter['page'] = page; } if (isDeleted !== undefined) { localVarQueryParameter['isDeleted'] = isDeleted; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerSpotify(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling spotifyControllerSpotify.'); } const localVarPath = `/spotify/spotifys/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {string} [type] * @param {SortBySpotify} [sort] * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerSpotifys(page?: number, type?: string, sort?: SortBySpotify, options: any = {}): RequestArgs { const localVarPath = `/spotify/spotifys`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } if (type !== undefined) { localVarQueryParameter['type'] = type; } if (sort !== undefined) { localVarQueryParameter['sort'] = sort; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerUpdateFavoritesSpotify(id: number, page?: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling spotifyControllerUpdateFavoritesSpotify.'); } const localVarPath = `/spotify/{id}/favorites` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {CreateSpotifyDto} CreateSpotifyDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerUpdateSpotify(id: number, CreateSpotifyDto: CreateSpotifyDto, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling spotifyControllerUpdateSpotify.'); } // verify required parameter 'CreateSpotifyDto' is not null or undefined if (CreateSpotifyDto === null || CreateSpotifyDto === undefined) { throw new RequiredError('CreateSpotifyDto','Required parameter CreateSpotifyDto was null or undefined when calling spotifyControllerUpdateSpotify.'); } const localVarPath = `/spotify/spotifys/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; const needsSerialization = (typeof CreateSpotifyDto !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(CreateSpotifyDto !== undefined ? CreateSpotifyDto : {}) : (CreateSpotifyDto || ""); return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerUpdateViewsSpotify(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling spotifyControllerUpdateViewsSpotify.'); } const localVarPath = `/spotify/{id}/views` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * SpotifyApi - functional programming interface * @export */ export const SpotifyApiFp = function(configuration?: Configuration) { return { /** * * @param {CreateSpotifyDto} CreateSpotifyDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerCreateSpotify(CreateSpotifyDto: CreateSpotifyDto, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = SpotifyApiAxiosParamCreator(configuration).spotifyControllerCreateSpotify(CreateSpotifyDto, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerDeleteSpotify(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = SpotifyApiAxiosParamCreator(configuration).spotifyControllerDeleteSpotify(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {string} q * @param {string} type * @param {number} [limit] * @param {number} [offset] * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerGetSpotifyArtists(q: string, type: string, limit?: number, offset?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = SpotifyApiAxiosParamCreator(configuration).spotifyControllerGetSpotifyArtists(q, type, limit, offset, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerGetUserFavoriteSpotifys(page?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = SpotifyApiAxiosParamCreator(configuration).spotifyControllerGetUserFavoriteSpotifys(page, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerGetUserSpotifys(page?: number, isDeleted?: boolean, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = SpotifyApiAxiosParamCreator(configuration).spotifyControllerGetUserSpotifys(page, isDeleted, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerSpotify(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = SpotifyApiAxiosParamCreator(configuration).spotifyControllerSpotify(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {string} [type] * @param {SortBySpotify} [sort] * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerSpotifys(page?: number, type?: string, sort?: SortBySpotify, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = SpotifyApiAxiosParamCreator(configuration).spotifyControllerSpotifys(page, type, sort, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerUpdateFavoritesSpotify(id: number, page?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = SpotifyApiAxiosParamCreator(configuration).spotifyControllerUpdateFavoritesSpotify(id, page, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {CreateSpotifyDto} CreateSpotifyDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerUpdateSpotify(id: number, CreateSpotifyDto: CreateSpotifyDto, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = SpotifyApiAxiosParamCreator(configuration).spotifyControllerUpdateSpotify(id, CreateSpotifyDto, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerUpdateViewsSpotify(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = SpotifyApiAxiosParamCreator(configuration).spotifyControllerUpdateViewsSpotify(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, } }; /** * SpotifyApi - factory interface * @export */ export const SpotifyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { return { /** * * @param {CreateSpotifyDto} CreateSpotifyDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerCreateSpotify(CreateSpotifyDto: CreateSpotifyDto, options?: any) { return SpotifyApiFp(configuration).spotifyControllerCreateSpotify(CreateSpotifyDto, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerDeleteSpotify(id: number, options?: any) { return SpotifyApiFp(configuration).spotifyControllerDeleteSpotify(id, options)(axios, basePath); }, /** * * @param {string} q * @param {string} type * @param {number} [limit] * @param {number} [offset] * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerGetSpotifyArtists(q: string, type: string, limit?: number, offset?: number, options?: any) { return SpotifyApiFp(configuration).spotifyControllerGetSpotifyArtists(q, type, limit, offset, options)(axios, basePath); }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerGetUserFavoriteSpotifys(page?: number, options?: any) { return SpotifyApiFp(configuration).spotifyControllerGetUserFavoriteSpotifys(page, options)(axios, basePath); }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerGetUserSpotifys(page?: number, isDeleted?: boolean, options?: any) { return SpotifyApiFp(configuration).spotifyControllerGetUserSpotifys(page, isDeleted, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerSpotify(id: number, options?: any) { return SpotifyApiFp(configuration).spotifyControllerSpotify(id, options)(axios, basePath); }, /** * * @param {number} [page] * @param {string} [type] * @param {SortBySpotify} [sort] * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerSpotifys(page?: number, type?: string, sort?: SortBySpotify, options?: any) { return SpotifyApiFp(configuration).spotifyControllerSpotifys(page, type, sort, options)(axios, basePath); }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerUpdateFavoritesSpotify(id: number, page?: number, options?: any) { return SpotifyApiFp(configuration).spotifyControllerUpdateFavoritesSpotify(id, page, options)(axios, basePath); }, /** * * @param {number} id * @param {CreateSpotifyDto} CreateSpotifyDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerUpdateSpotify(id: number, CreateSpotifyDto: CreateSpotifyDto, options?: any) { return SpotifyApiFp(configuration).spotifyControllerUpdateSpotify(id, CreateSpotifyDto, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ spotifyControllerUpdateViewsSpotify(id: number, options?: any) { return SpotifyApiFp(configuration).spotifyControllerUpdateViewsSpotify(id, options)(axios, basePath); }, }; }; /** * SpotifyApi - object-oriented interface * @export * @class SpotifyApi * @extends {BaseAPI} */ export class SpotifyApi extends BaseAPI { /** * * @param {CreateSpotifyDto} CreateSpotifyDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SpotifyApi */ public spotifyControllerCreateSpotify(CreateSpotifyDto: CreateSpotifyDto, options?: any) { return SpotifyApiFp(this.configuration).spotifyControllerCreateSpotify(CreateSpotifyDto, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SpotifyApi */ public spotifyControllerDeleteSpotify(id: number, options?: any) { return SpotifyApiFp(this.configuration).spotifyControllerDeleteSpotify(id, options)(this.axios, this.basePath); } /** * * @param {string} q * @param {string} type * @param {number} [limit] * @param {number} [offset] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SpotifyApi */ public spotifyControllerGetSpotifyArtists(q: string, type: string, limit?: number, offset?: number, options?: any) { return SpotifyApiFp(this.configuration).spotifyControllerGetSpotifyArtists(q, type, limit, offset, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SpotifyApi */ public spotifyControllerGetUserFavoriteSpotifys(page?: number, options?: any) { return SpotifyApiFp(this.configuration).spotifyControllerGetUserFavoriteSpotifys(page, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SpotifyApi */ public spotifyControllerGetUserSpotifys(page?: number, isDeleted?: boolean, options?: any) { return SpotifyApiFp(this.configuration).spotifyControllerGetUserSpotifys(page, isDeleted, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SpotifyApi */ public spotifyControllerSpotify(id: number, options?: any) { return SpotifyApiFp(this.configuration).spotifyControllerSpotify(id, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {string} [type] * @param {SortBySpotify} [sort] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SpotifyApi */ public spotifyControllerSpotifys(page?: number, type?: string, sort?: SortBySpotify, options?: any) { return SpotifyApiFp(this.configuration).spotifyControllerSpotifys(page, type, sort, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SpotifyApi */ public spotifyControllerUpdateFavoritesSpotify(id: number, page?: number, options?: any) { return SpotifyApiFp(this.configuration).spotifyControllerUpdateFavoritesSpotify(id, page, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {CreateSpotifyDto} CreateSpotifyDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SpotifyApi */ public spotifyControllerUpdateSpotify(id: number, CreateSpotifyDto: CreateSpotifyDto, options?: any) { return SpotifyApiFp(this.configuration).spotifyControllerUpdateSpotify(id, CreateSpotifyDto, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SpotifyApi */ public spotifyControllerUpdateViewsSpotify(id: number, options?: any) { return SpotifyApiFp(this.configuration).spotifyControllerUpdateViewsSpotify(id, options)(this.axios, this.basePath); } } /** * TwitchApi - axios parameter creator * @export */ export const TwitchApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @param {CreateTwitchDto} CreateTwitchDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerCreateTwitch(CreateTwitchDto: CreateTwitchDto, options: any = {}): RequestArgs { // verify required parameter 'CreateTwitchDto' is not null or undefined if (CreateTwitchDto === null || CreateTwitchDto === undefined) { throw new RequiredError('CreateTwitchDto','Required parameter CreateTwitchDto was null or undefined when calling twitchControllerCreateTwitch.'); } const localVarPath = `/twitch/twitchs`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; const needsSerialization = (typeof CreateTwitchDto !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(CreateTwitchDto !== undefined ? CreateTwitchDto : {}) : (CreateTwitchDto || ""); return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerDeleteTwitch(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling twitchControllerDeleteTwitch.'); } const localVarPath = `/twitch/twitch/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} query * @param {number} [first] * @param {string} [after] * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerGetTwitchChannels(query: string, first?: number, after?: string, options: any = {}): RequestArgs { // verify required parameter 'query' is not null or undefined if (query === null || query === undefined) { throw new RequiredError('query','Required parameter query was null or undefined when calling twitchControllerGetTwitchChannels.'); } const localVarPath = `/twitch/channels`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (query !== undefined) { localVarQueryParameter['query'] = query; } if (first !== undefined) { localVarQueryParameter['first'] = first; } if (after !== undefined) { localVarQueryParameter['after'] = after; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} to_id * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerGetTwitchUserFollows(to_id: number, options: any = {}): RequestArgs { // verify required parameter 'to_id' is not null or undefined if (to_id === null || to_id === undefined) { throw new RequiredError('to_id','Required parameter to_id was null or undefined when calling twitchControllerGetTwitchUserFollows.'); } const localVarPath = `/twitch/follows`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (to_id !== undefined) { localVarQueryParameter['to_id'] = to_id; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerGetUserFavoriteTwitchs(page?: number, options: any = {}): RequestArgs { const localVarPath = `/twitch/user/favorites`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerGetUserTwitchs(page?: number, isDeleted?: boolean, options: any = {}): RequestArgs { const localVarPath = `/twitch/user/publications`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } if (page !== undefined) { localVarQueryParameter['page'] = page; } if (isDeleted !== undefined) { localVarQueryParameter['isDeleted'] = isDeleted; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerTwitch(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling twitchControllerTwitch.'); } const localVarPath = `/twitch/twitchs/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {string} [type] * @param {SortByPlatform} [sort] * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerTwitchs(page?: number, type?: string, sort?: SortByPlatform, options: any = {}): RequestArgs { const localVarPath = `/twitch/twitchs`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } if (type !== undefined) { localVarQueryParameter['type'] = type; } if (sort !== undefined) { localVarQueryParameter['sort'] = sort; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerUpdateFavoritesTwitch(id: number, page?: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling twitchControllerUpdateFavoritesTwitch.'); } const localVarPath = `/twitch/{id}/favorites` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {CreateTwitchDto} CreateTwitchDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerUpdateTwitch(id: number, CreateTwitchDto: CreateTwitchDto, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling twitchControllerUpdateTwitch.'); } // verify required parameter 'CreateTwitchDto' is not null or undefined if (CreateTwitchDto === null || CreateTwitchDto === undefined) { throw new RequiredError('CreateTwitchDto','Required parameter CreateTwitchDto was null or undefined when calling twitchControllerUpdateTwitch.'); } const localVarPath = `/twitch/twitchs/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; const needsSerialization = (typeof CreateTwitchDto !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(CreateTwitchDto !== undefined ? CreateTwitchDto : {}) : (CreateTwitchDto || ""); return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerUpdateViewsTwitch(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling twitchControllerUpdateViewsTwitch.'); } const localVarPath = `/twitch/{id}/views` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * TwitchApi - functional programming interface * @export */ export const TwitchApiFp = function(configuration?: Configuration) { return { /** * * @param {CreateTwitchDto} CreateTwitchDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerCreateTwitch(CreateTwitchDto: CreateTwitchDto, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = TwitchApiAxiosParamCreator(configuration).twitchControllerCreateTwitch(CreateTwitchDto, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerDeleteTwitch(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = TwitchApiAxiosParamCreator(configuration).twitchControllerDeleteTwitch(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {string} query * @param {number} [first] * @param {string} [after] * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerGetTwitchChannels(query: string, first?: number, after?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = TwitchApiAxiosParamCreator(configuration).twitchControllerGetTwitchChannels(query, first, after, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} to_id * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerGetTwitchUserFollows(to_id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = TwitchApiAxiosParamCreator(configuration).twitchControllerGetTwitchUserFollows(to_id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerGetUserFavoriteTwitchs(page?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = TwitchApiAxiosParamCreator(configuration).twitchControllerGetUserFavoriteTwitchs(page, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerGetUserTwitchs(page?: number, isDeleted?: boolean, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = TwitchApiAxiosParamCreator(configuration).twitchControllerGetUserTwitchs(page, isDeleted, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerTwitch(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = TwitchApiAxiosParamCreator(configuration).twitchControllerTwitch(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {string} [type] * @param {SortByPlatform} [sort] * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerTwitchs(page?: number, type?: string, sort?: SortByPlatform, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = TwitchApiAxiosParamCreator(configuration).twitchControllerTwitchs(page, type, sort, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerUpdateFavoritesTwitch(id: number, page?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = TwitchApiAxiosParamCreator(configuration).twitchControllerUpdateFavoritesTwitch(id, page, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {CreateTwitchDto} CreateTwitchDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerUpdateTwitch(id: number, CreateTwitchDto: CreateTwitchDto, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = TwitchApiAxiosParamCreator(configuration).twitchControllerUpdateTwitch(id, CreateTwitchDto, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerUpdateViewsTwitch(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = TwitchApiAxiosParamCreator(configuration).twitchControllerUpdateViewsTwitch(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, } }; /** * TwitchApi - factory interface * @export */ export const TwitchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { return { /** * * @param {CreateTwitchDto} CreateTwitchDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerCreateTwitch(CreateTwitchDto: CreateTwitchDto, options?: any) { return TwitchApiFp(configuration).twitchControllerCreateTwitch(CreateTwitchDto, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerDeleteTwitch(id: number, options?: any) { return TwitchApiFp(configuration).twitchControllerDeleteTwitch(id, options)(axios, basePath); }, /** * * @param {string} query * @param {number} [first] * @param {string} [after] * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerGetTwitchChannels(query: string, first?: number, after?: string, options?: any) { return TwitchApiFp(configuration).twitchControllerGetTwitchChannels(query, first, after, options)(axios, basePath); }, /** * * @param {number} to_id * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerGetTwitchUserFollows(to_id: number, options?: any) { return TwitchApiFp(configuration).twitchControllerGetTwitchUserFollows(to_id, options)(axios, basePath); }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerGetUserFavoriteTwitchs(page?: number, options?: any) { return TwitchApiFp(configuration).twitchControllerGetUserFavoriteTwitchs(page, options)(axios, basePath); }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerGetUserTwitchs(page?: number, isDeleted?: boolean, options?: any) { return TwitchApiFp(configuration).twitchControllerGetUserTwitchs(page, isDeleted, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerTwitch(id: number, options?: any) { return TwitchApiFp(configuration).twitchControllerTwitch(id, options)(axios, basePath); }, /** * * @param {number} [page] * @param {string} [type] * @param {SortByPlatform} [sort] * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerTwitchs(page?: number, type?: string, sort?: SortByPlatform, options?: any) { return TwitchApiFp(configuration).twitchControllerTwitchs(page, type, sort, options)(axios, basePath); }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerUpdateFavoritesTwitch(id: number, page?: number, options?: any) { return TwitchApiFp(configuration).twitchControllerUpdateFavoritesTwitch(id, page, options)(axios, basePath); }, /** * * @param {number} id * @param {CreateTwitchDto} CreateTwitchDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerUpdateTwitch(id: number, CreateTwitchDto: CreateTwitchDto, options?: any) { return TwitchApiFp(configuration).twitchControllerUpdateTwitch(id, CreateTwitchDto, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ twitchControllerUpdateViewsTwitch(id: number, options?: any) { return TwitchApiFp(configuration).twitchControllerUpdateViewsTwitch(id, options)(axios, basePath); }, }; }; /** * TwitchApi - object-oriented interface * @export * @class TwitchApi * @extends {BaseAPI} */ export class TwitchApi extends BaseAPI { /** * * @param {CreateTwitchDto} CreateTwitchDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TwitchApi */ public twitchControllerCreateTwitch(CreateTwitchDto: CreateTwitchDto, options?: any) { return TwitchApiFp(this.configuration).twitchControllerCreateTwitch(CreateTwitchDto, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TwitchApi */ public twitchControllerDeleteTwitch(id: number, options?: any) { return TwitchApiFp(this.configuration).twitchControllerDeleteTwitch(id, options)(this.axios, this.basePath); } /** * * @param {string} query * @param {number} [first] * @param {string} [after] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TwitchApi */ public twitchControllerGetTwitchChannels(query: string, first?: number, after?: string, options?: any) { return TwitchApiFp(this.configuration).twitchControllerGetTwitchChannels(query, first, after, options)(this.axios, this.basePath); } /** * * @param {number} to_id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TwitchApi */ public twitchControllerGetTwitchUserFollows(to_id: number, options?: any) { return TwitchApiFp(this.configuration).twitchControllerGetTwitchUserFollows(to_id, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TwitchApi */ public twitchControllerGetUserFavoriteTwitchs(page?: number, options?: any) { return TwitchApiFp(this.configuration).twitchControllerGetUserFavoriteTwitchs(page, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TwitchApi */ public twitchControllerGetUserTwitchs(page?: number, isDeleted?: boolean, options?: any) { return TwitchApiFp(this.configuration).twitchControllerGetUserTwitchs(page, isDeleted, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TwitchApi */ public twitchControllerTwitch(id: number, options?: any) { return TwitchApiFp(this.configuration).twitchControllerTwitch(id, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {string} [type] * @param {SortByPlatform} [sort] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TwitchApi */ public twitchControllerTwitchs(page?: number, type?: string, sort?: SortByPlatform, options?: any) { return TwitchApiFp(this.configuration).twitchControllerTwitchs(page, type, sort, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TwitchApi */ public twitchControllerUpdateFavoritesTwitch(id: number, page?: number, options?: any) { return TwitchApiFp(this.configuration).twitchControllerUpdateFavoritesTwitch(id, page, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {CreateTwitchDto} CreateTwitchDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TwitchApi */ public twitchControllerUpdateTwitch(id: number, CreateTwitchDto: CreateTwitchDto, options?: any) { return TwitchApiFp(this.configuration).twitchControllerUpdateTwitch(id, CreateTwitchDto, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TwitchApi */ public twitchControllerUpdateViewsTwitch(id: number, options?: any) { return TwitchApiFp(this.configuration).twitchControllerUpdateViewsTwitch(id, options)(this.axios, this.basePath); } } /** * UsersApi - axios parameter creator * @export */ export const UsersApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @param {CreateUserDto} CreateUserDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerCreateUser(CreateUserDto: CreateUserDto, options: any = {}): RequestArgs { // verify required parameter 'CreateUserDto' is not null or undefined if (CreateUserDto === null || CreateUserDto === undefined) { throw new RequiredError('CreateUserDto','Required parameter CreateUserDto was null or undefined when calling usersControllerCreateUser.'); } const localVarPath = `/users`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; const needsSerialization = (typeof CreateUserDto !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(CreateUserDto !== undefined ? CreateUserDto : {}) : (CreateUserDto || ""); return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerGetUserFavorites(page?: number, options: any = {}): RequestArgs { const localVarPath = `/users/all/favorites`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerGetUserPublications(page?: number, isDeleted?: boolean, options: any = {}): RequestArgs { const localVarPath = `/users/all/publications`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } if (isDeleted !== undefined) { localVarQueryParameter['isDeleted'] = isDeleted; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {CreateUserDto} CreateUserDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerSignInWithProvider(CreateUserDto: CreateUserDto, options: any = {}): RequestArgs { // verify required parameter 'CreateUserDto' is not null or undefined if (CreateUserDto === null || CreateUserDto === undefined) { throw new RequiredError('CreateUserDto','Required parameter CreateUserDto was null or undefined when calling usersControllerSignInWithProvider.'); } const localVarPath = `/users/signInProvider`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; const needsSerialization = (typeof CreateUserDto !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(CreateUserDto !== undefined ? CreateUserDto : {}) : (CreateUserDto || ""); return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id * @param {UpdateUserProfileDto} UpdateUserProfileDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerUpdateUserData(id: string, UpdateUserProfileDto: UpdateUserProfileDto, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling usersControllerUpdateUserData.'); } // verify required parameter 'UpdateUserProfileDto' is not null or undefined if (UpdateUserProfileDto === null || UpdateUserProfileDto === undefined) { throw new RequiredError('UpdateUserProfileDto','Required parameter UpdateUserProfileDto was null or undefined when calling usersControllerUpdateUserData.'); } const localVarPath = `/users/profile/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; const needsSerialization = (typeof UpdateUserProfileDto !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(UpdateUserProfileDto !== undefined ? UpdateUserProfileDto : {}) : (UpdateUserProfileDto || ""); return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id * @param {any} [imageProfile] * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerUpdateUserProfileImage(id: string, imageProfile?: any, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling usersControllerUpdateUserProfileImage.'); } const localVarPath = `/users/profile/{id}/image` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const localVarFormParams = new FormData(); // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } if (imageProfile !== undefined) { localVarFormParams.append('imageProfile', imageProfile as any); } localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; localVarRequestOptions.data = localVarFormParams; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerUser(id: string, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling usersControllerUser.'); } const localVarPath = `/users/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} username * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerUsernameAvailable(username: string, options: any = {}): RequestArgs { // verify required parameter 'username' is not null or undefined if (username === null || username === undefined) { throw new RequiredError('username','Required parameter username was null or undefined when calling usersControllerUsernameAvailable.'); } const localVarPath = `/users/usernameAvailable`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } if (username !== undefined) { localVarQueryParameter['username'] = username; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * UsersApi - functional programming interface * @export */ export const UsersApiFp = function(configuration?: Configuration) { return { /** * * @param {CreateUserDto} CreateUserDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerCreateUser(CreateUserDto: CreateUserDto, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = UsersApiAxiosParamCreator(configuration).usersControllerCreateUser(CreateUserDto, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerGetUserFavorites(page?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = UsersApiAxiosParamCreator(configuration).usersControllerGetUserFavorites(page, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerGetUserPublications(page?: number, isDeleted?: boolean, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = UsersApiAxiosParamCreator(configuration).usersControllerGetUserPublications(page, isDeleted, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {CreateUserDto} CreateUserDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerSignInWithProvider(CreateUserDto: CreateUserDto, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = UsersApiAxiosParamCreator(configuration).usersControllerSignInWithProvider(CreateUserDto, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {string} id * @param {UpdateUserProfileDto} UpdateUserProfileDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerUpdateUserData(id: string, UpdateUserProfileDto: UpdateUserProfileDto, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = UsersApiAxiosParamCreator(configuration).usersControllerUpdateUserData(id, UpdateUserProfileDto, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {string} id * @param {any} [imageProfile] * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerUpdateUserProfileImage(id: string, imageProfile?: any, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = UsersApiAxiosParamCreator(configuration).usersControllerUpdateUserProfileImage(id, imageProfile, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerUser(id: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = UsersApiAxiosParamCreator(configuration).usersControllerUser(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {string} username * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerUsernameAvailable(username: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = UsersApiAxiosParamCreator(configuration).usersControllerUsernameAvailable(username, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, } }; /** * UsersApi - factory interface * @export */ export const UsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { return { /** * * @param {CreateUserDto} CreateUserDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerCreateUser(CreateUserDto: CreateUserDto, options?: any) { return UsersApiFp(configuration).usersControllerCreateUser(CreateUserDto, options)(axios, basePath); }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerGetUserFavorites(page?: number, options?: any) { return UsersApiFp(configuration).usersControllerGetUserFavorites(page, options)(axios, basePath); }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerGetUserPublications(page?: number, isDeleted?: boolean, options?: any) { return UsersApiFp(configuration).usersControllerGetUserPublications(page, isDeleted, options)(axios, basePath); }, /** * * @param {CreateUserDto} CreateUserDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerSignInWithProvider(CreateUserDto: CreateUserDto, options?: any) { return UsersApiFp(configuration).usersControllerSignInWithProvider(CreateUserDto, options)(axios, basePath); }, /** * * @param {string} id * @param {UpdateUserProfileDto} UpdateUserProfileDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerUpdateUserData(id: string, UpdateUserProfileDto: UpdateUserProfileDto, options?: any) { return UsersApiFp(configuration).usersControllerUpdateUserData(id, UpdateUserProfileDto, options)(axios, basePath); }, /** * * @param {string} id * @param {any} [imageProfile] * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerUpdateUserProfileImage(id: string, imageProfile?: any, options?: any) { return UsersApiFp(configuration).usersControllerUpdateUserProfileImage(id, imageProfile, options)(axios, basePath); }, /** * * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerUser(id: string, options?: any) { return UsersApiFp(configuration).usersControllerUser(id, options)(axios, basePath); }, /** * * @param {string} username * @param {*} [options] Override http request option. * @throws {RequiredError} */ usersControllerUsernameAvailable(username: string, options?: any) { return UsersApiFp(configuration).usersControllerUsernameAvailable(username, options)(axios, basePath); }, }; }; /** * UsersApi - object-oriented interface * @export * @class UsersApi * @extends {BaseAPI} */ export class UsersApi extends BaseAPI { /** * * @param {CreateUserDto} CreateUserDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UsersApi */ public usersControllerCreateUser(CreateUserDto: CreateUserDto, options?: any) { return UsersApiFp(this.configuration).usersControllerCreateUser(CreateUserDto, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UsersApi */ public usersControllerGetUserFavorites(page?: number, options?: any) { return UsersApiFp(this.configuration).usersControllerGetUserFavorites(page, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UsersApi */ public usersControllerGetUserPublications(page?: number, isDeleted?: boolean, options?: any) { return UsersApiFp(this.configuration).usersControllerGetUserPublications(page, isDeleted, options)(this.axios, this.basePath); } /** * * @param {CreateUserDto} CreateUserDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UsersApi */ public usersControllerSignInWithProvider(CreateUserDto: CreateUserDto, options?: any) { return UsersApiFp(this.configuration).usersControllerSignInWithProvider(CreateUserDto, options)(this.axios, this.basePath); } /** * * @param {string} id * @param {UpdateUserProfileDto} UpdateUserProfileDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UsersApi */ public usersControllerUpdateUserData(id: string, UpdateUserProfileDto: UpdateUserProfileDto, options?: any) { return UsersApiFp(this.configuration).usersControllerUpdateUserData(id, UpdateUserProfileDto, options)(this.axios, this.basePath); } /** * * @param {string} id * @param {any} [imageProfile] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UsersApi */ public usersControllerUpdateUserProfileImage(id: string, imageProfile?: any, options?: any) { return UsersApiFp(this.configuration).usersControllerUpdateUserProfileImage(id, imageProfile, options)(this.axios, this.basePath); } /** * * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UsersApi */ public usersControllerUser(id: string, options?: any) { return UsersApiFp(this.configuration).usersControllerUser(id, options)(this.axios, this.basePath); } /** * * @param {string} username * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UsersApi */ public usersControllerUsernameAvailable(username: string, options?: any) { return UsersApiFp(this.configuration).usersControllerUsernameAvailable(username, options)(this.axios, this.basePath); } } /** * YoutubeApi - axios parameter creator * @export */ export const YoutubeApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @param {CreateYoutubeDto} CreateYoutubeDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerCreateYoutube(CreateYoutubeDto: CreateYoutubeDto, options: any = {}): RequestArgs { // verify required parameter 'CreateYoutubeDto' is not null or undefined if (CreateYoutubeDto === null || CreateYoutubeDto === undefined) { throw new RequiredError('CreateYoutubeDto','Required parameter CreateYoutubeDto was null or undefined when calling youtubeControllerCreateYoutube.'); } const localVarPath = `/youtube/youtubes`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; const needsSerialization = (typeof CreateYoutubeDto !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(CreateYoutubeDto !== undefined ? CreateYoutubeDto : {}) : (CreateYoutubeDto || ""); return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerDeleteYoutube(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling youtubeControllerDeleteYoutube.'); } const localVarPath = `/youtube/youtube/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerGetUserFavoriteYoutubes(page?: number, options: any = {}): RequestArgs { const localVarPath = `/youtube/user/favorites`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerGetUserYoutubes(page?: number, isDeleted?: boolean, options: any = {}): RequestArgs { const localVarPath = `/youtube/user/publications`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } if (page !== undefined) { localVarQueryParameter['page'] = page; } if (isDeleted !== undefined) { localVarQueryParameter['isDeleted'] = isDeleted; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id * @param {string} part * @param {number} [maxResults] * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerGetYoutubeChannelSubscriptions(id: string, part: string, maxResults?: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling youtubeControllerGetYoutubeChannelSubscriptions.'); } // verify required parameter 'part' is not null or undefined if (part === null || part === undefined) { throw new RequiredError('part','Required parameter part was null or undefined when calling youtubeControllerGetYoutubeChannelSubscriptions.'); } const localVarPath = `/youtube/subscriptions`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (id !== undefined) { localVarQueryParameter['id'] = id; } if (part !== undefined) { localVarQueryParameter['part'] = part; } if (maxResults !== undefined) { localVarQueryParameter['maxResults'] = maxResults; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id * @param {string} part * @param {string} partPlayList * @param {number} [maxResults] * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerGetYoutubeChannelVideos(id: string, part: string, partPlayList: string, maxResults?: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling youtubeControllerGetYoutubeChannelVideos.'); } // verify required parameter 'part' is not null or undefined if (part === null || part === undefined) { throw new RequiredError('part','Required parameter part was null or undefined when calling youtubeControllerGetYoutubeChannelVideos.'); } // verify required parameter 'partPlayList' is not null or undefined if (partPlayList === null || partPlayList === undefined) { throw new RequiredError('partPlayList','Required parameter partPlayList was null or undefined when calling youtubeControllerGetYoutubeChannelVideos.'); } const localVarPath = `/youtube/videos`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (id !== undefined) { localVarQueryParameter['id'] = id; } if (part !== undefined) { localVarQueryParameter['part'] = part; } if (partPlayList !== undefined) { localVarQueryParameter['partPlayList'] = partPlayList; } if (maxResults !== undefined) { localVarQueryParameter['maxResults'] = maxResults; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} query * @param {string} part * @param {number} [maxResults] * @param {string} [type] * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerGetYoutubeChannels(query: string, part: string, maxResults?: number, type?: string, options: any = {}): RequestArgs { // verify required parameter 'query' is not null or undefined if (query === null || query === undefined) { throw new RequiredError('query','Required parameter query was null or undefined when calling youtubeControllerGetYoutubeChannels.'); } // verify required parameter 'part' is not null or undefined if (part === null || part === undefined) { throw new RequiredError('part','Required parameter part was null or undefined when calling youtubeControllerGetYoutubeChannels.'); } const localVarPath = `/youtube/channels`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (query !== undefined) { localVarQueryParameter['query'] = query; } if (maxResults !== undefined) { localVarQueryParameter['maxResults'] = maxResults; } if (part !== undefined) { localVarQueryParameter['part'] = part; } if (type !== undefined) { localVarQueryParameter['type'] = type; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerUpdateFavoritesYoutube(id: number, page?: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling youtubeControllerUpdateFavoritesYoutube.'); } const localVarPath = `/youtube/{id}/favorites` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerUpdateViewsYoutube(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling youtubeControllerUpdateViewsYoutube.'); } const localVarPath = `/youtube/{id}/views` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {CreateYoutubeDto} CreateYoutubeDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerUpdateYoutube(id: number, CreateYoutubeDto: CreateYoutubeDto, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling youtubeControllerUpdateYoutube.'); } // verify required parameter 'CreateYoutubeDto' is not null or undefined if (CreateYoutubeDto === null || CreateYoutubeDto === undefined) { throw new RequiredError('CreateYoutubeDto','Required parameter CreateYoutubeDto was null or undefined when calling youtubeControllerUpdateYoutube.'); } const localVarPath = `/youtube/youtubes/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required if (configuration && configuration.accessToken) { const accessToken = typeof configuration.accessToken === 'function' ? configuration.accessToken() : configuration.accessToken; localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; } localVarHeaderParameter['Content-Type'] = 'application/json'; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; const needsSerialization = (typeof CreateYoutubeDto !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(CreateYoutubeDto !== undefined ? CreateYoutubeDto : {}) : (CreateYoutubeDto || ""); return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerYoutube(id: number, options: any = {}): RequestArgs { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling youtubeControllerYoutube.'); } const localVarPath = `/youtube/youtubes/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] * @param {string} [type] * @param {SortByYoutube} [sort] * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerYoutubes(page?: number, type?: string, sort?: SortByYoutube, options: any = {}): RequestArgs { const localVarPath = `/youtube/youtubes`; const localVarUrlObj = globalImportUrl.parse(localVarPath, true); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } if (type !== undefined) { localVarQueryParameter['type'] = type; } if (sort !== undefined) { localVarQueryParameter['sort'] = sort; } localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 delete localVarUrlObj.search; localVarRequestOptions.headers = {...localVarHeaderParameter, ...options.headers}; return { url: globalImportUrl.format(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * YoutubeApi - functional programming interface * @export */ export const YoutubeApiFp = function(configuration?: Configuration) { return { /** * * @param {CreateYoutubeDto} CreateYoutubeDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerCreateYoutube(CreateYoutubeDto: CreateYoutubeDto, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = YoutubeApiAxiosParamCreator(configuration).youtubeControllerCreateYoutube(CreateYoutubeDto, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerDeleteYoutube(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = YoutubeApiAxiosParamCreator(configuration).youtubeControllerDeleteYoutube(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerGetUserFavoriteYoutubes(page?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = YoutubeApiAxiosParamCreator(configuration).youtubeControllerGetUserFavoriteYoutubes(page, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerGetUserYoutubes(page?: number, isDeleted?: boolean, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = YoutubeApiAxiosParamCreator(configuration).youtubeControllerGetUserYoutubes(page, isDeleted, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {string} id * @param {string} part * @param {number} [maxResults] * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerGetYoutubeChannelSubscriptions(id: string, part: string, maxResults?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = YoutubeApiAxiosParamCreator(configuration).youtubeControllerGetYoutubeChannelSubscriptions(id, part, maxResults, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {string} id * @param {string} part * @param {string} partPlayList * @param {number} [maxResults] * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerGetYoutubeChannelVideos(id: string, part: string, partPlayList: string, maxResults?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = YoutubeApiAxiosParamCreator(configuration).youtubeControllerGetYoutubeChannelVideos(id, part, partPlayList, maxResults, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {string} query * @param {string} part * @param {number} [maxResults] * @param {string} [type] * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerGetYoutubeChannels(query: string, part: string, maxResults?: number, type?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = YoutubeApiAxiosParamCreator(configuration).youtubeControllerGetYoutubeChannels(query, part, maxResults, type, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerUpdateFavoritesYoutube(id: number, page?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = YoutubeApiAxiosParamCreator(configuration).youtubeControllerUpdateFavoritesYoutube(id, page, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerUpdateViewsYoutube(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = YoutubeApiAxiosParamCreator(configuration).youtubeControllerUpdateViewsYoutube(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {CreateYoutubeDto} CreateYoutubeDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerUpdateYoutube(id: number, CreateYoutubeDto: CreateYoutubeDto, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = YoutubeApiAxiosParamCreator(configuration).youtubeControllerUpdateYoutube(id, CreateYoutubeDto, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerYoutube(id: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = YoutubeApiAxiosParamCreator(configuration).youtubeControllerYoutube(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} [page] * @param {string} [type] * @param {SortByYoutube} [sort] * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerYoutubes(page?: number, type?: string, sort?: SortByYoutube, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { const localVarAxiosArgs = YoutubeApiAxiosParamCreator(configuration).youtubeControllerYoutubes(page, type, sort, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, } }; /** * YoutubeApi - factory interface * @export */ export const YoutubeApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { return { /** * * @param {CreateYoutubeDto} CreateYoutubeDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerCreateYoutube(CreateYoutubeDto: CreateYoutubeDto, options?: any) { return YoutubeApiFp(configuration).youtubeControllerCreateYoutube(CreateYoutubeDto, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerDeleteYoutube(id: number, options?: any) { return YoutubeApiFp(configuration).youtubeControllerDeleteYoutube(id, options)(axios, basePath); }, /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerGetUserFavoriteYoutubes(page?: number, options?: any) { return YoutubeApiFp(configuration).youtubeControllerGetUserFavoriteYoutubes(page, options)(axios, basePath); }, /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerGetUserYoutubes(page?: number, isDeleted?: boolean, options?: any) { return YoutubeApiFp(configuration).youtubeControllerGetUserYoutubes(page, isDeleted, options)(axios, basePath); }, /** * * @param {string} id * @param {string} part * @param {number} [maxResults] * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerGetYoutubeChannelSubscriptions(id: string, part: string, maxResults?: number, options?: any) { return YoutubeApiFp(configuration).youtubeControllerGetYoutubeChannelSubscriptions(id, part, maxResults, options)(axios, basePath); }, /** * * @param {string} id * @param {string} part * @param {string} partPlayList * @param {number} [maxResults] * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerGetYoutubeChannelVideos(id: string, part: string, partPlayList: string, maxResults?: number, options?: any) { return YoutubeApiFp(configuration).youtubeControllerGetYoutubeChannelVideos(id, part, partPlayList, maxResults, options)(axios, basePath); }, /** * * @param {string} query * @param {string} part * @param {number} [maxResults] * @param {string} [type] * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerGetYoutubeChannels(query: string, part: string, maxResults?: number, type?: string, options?: any) { return YoutubeApiFp(configuration).youtubeControllerGetYoutubeChannels(query, part, maxResults, type, options)(axios, basePath); }, /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerUpdateFavoritesYoutube(id: number, page?: number, options?: any) { return YoutubeApiFp(configuration).youtubeControllerUpdateFavoritesYoutube(id, page, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerUpdateViewsYoutube(id: number, options?: any) { return YoutubeApiFp(configuration).youtubeControllerUpdateViewsYoutube(id, options)(axios, basePath); }, /** * * @param {number} id * @param {CreateYoutubeDto} CreateYoutubeDto * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerUpdateYoutube(id: number, CreateYoutubeDto: CreateYoutubeDto, options?: any) { return YoutubeApiFp(configuration).youtubeControllerUpdateYoutube(id, CreateYoutubeDto, options)(axios, basePath); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerYoutube(id: number, options?: any) { return YoutubeApiFp(configuration).youtubeControllerYoutube(id, options)(axios, basePath); }, /** * * @param {number} [page] * @param {string} [type] * @param {SortByYoutube} [sort] * @param {*} [options] Override http request option. * @throws {RequiredError} */ youtubeControllerYoutubes(page?: number, type?: string, sort?: SortByYoutube, options?: any) { return YoutubeApiFp(configuration).youtubeControllerYoutubes(page, type, sort, options)(axios, basePath); }, }; }; /** * YoutubeApi - object-oriented interface * @export * @class YoutubeApi * @extends {BaseAPI} */ export class YoutubeApi extends BaseAPI { /** * * @param {CreateYoutubeDto} CreateYoutubeDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof YoutubeApi */ public youtubeControllerCreateYoutube(CreateYoutubeDto: CreateYoutubeDto, options?: any) { return YoutubeApiFp(this.configuration).youtubeControllerCreateYoutube(CreateYoutubeDto, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof YoutubeApi */ public youtubeControllerDeleteYoutube(id: number, options?: any) { return YoutubeApiFp(this.configuration).youtubeControllerDeleteYoutube(id, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof YoutubeApi */ public youtubeControllerGetUserFavoriteYoutubes(page?: number, options?: any) { return YoutubeApiFp(this.configuration).youtubeControllerGetUserFavoriteYoutubes(page, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {boolean} [isDeleted] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof YoutubeApi */ public youtubeControllerGetUserYoutubes(page?: number, isDeleted?: boolean, options?: any) { return YoutubeApiFp(this.configuration).youtubeControllerGetUserYoutubes(page, isDeleted, options)(this.axios, this.basePath); } /** * * @param {string} id * @param {string} part * @param {number} [maxResults] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof YoutubeApi */ public youtubeControllerGetYoutubeChannelSubscriptions(id: string, part: string, maxResults?: number, options?: any) { return YoutubeApiFp(this.configuration).youtubeControllerGetYoutubeChannelSubscriptions(id, part, maxResults, options)(this.axios, this.basePath); } /** * * @param {string} id * @param {string} part * @param {string} partPlayList * @param {number} [maxResults] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof YoutubeApi */ public youtubeControllerGetYoutubeChannelVideos(id: string, part: string, partPlayList: string, maxResults?: number, options?: any) { return YoutubeApiFp(this.configuration).youtubeControllerGetYoutubeChannelVideos(id, part, partPlayList, maxResults, options)(this.axios, this.basePath); } /** * * @param {string} query * @param {string} part * @param {number} [maxResults] * @param {string} [type] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof YoutubeApi */ public youtubeControllerGetYoutubeChannels(query: string, part: string, maxResults?: number, type?: string, options?: any) { return YoutubeApiFp(this.configuration).youtubeControllerGetYoutubeChannels(query, part, maxResults, type, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {number} [page] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof YoutubeApi */ public youtubeControllerUpdateFavoritesYoutube(id: number, page?: number, options?: any) { return YoutubeApiFp(this.configuration).youtubeControllerUpdateFavoritesYoutube(id, page, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof YoutubeApi */ public youtubeControllerUpdateViewsYoutube(id: number, options?: any) { return YoutubeApiFp(this.configuration).youtubeControllerUpdateViewsYoutube(id, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {CreateYoutubeDto} CreateYoutubeDto * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof YoutubeApi */ public youtubeControllerUpdateYoutube(id: number, CreateYoutubeDto: CreateYoutubeDto, options?: any) { return YoutubeApiFp(this.configuration).youtubeControllerUpdateYoutube(id, CreateYoutubeDto, options)(this.axios, this.basePath); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof YoutubeApi */ public youtubeControllerYoutube(id: number, options?: any) { return YoutubeApiFp(this.configuration).youtubeControllerYoutube(id, options)(this.axios, this.basePath); } /** * * @param {number} [page] * @param {string} [type] * @param {SortByYoutube} [sort] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof YoutubeApi */ public youtubeControllerYoutubes(page?: number, type?: string, sort?: SortByYoutube, options?: any) { return YoutubeApiFp(this.configuration).youtubeControllerYoutubes(page, type, sort, options)(this.axios, this.basePath); } }