@types/facebook-nodejs-business-sdk
Version:
TypeScript definitions for facebook-nodejs-business-sdk
70 lines (69 loc) • 2.93 kB
TypeScript
import { AbstractCrudObject } from "./../abstract-crud-object";
import AbstractObject from "./../abstract-object";
import Cursor from "./../cursor";
/**
* Hotel
* @see {@link https://developers.facebook.com/docs/marketing-api/}
*/
export default class Hotel extends AbstractCrudObject {
static get Fields(): Readonly<{
address: "address";
applinks: "applinks";
brand: "brand";
category: "category";
category_specific_fields: "category_specific_fields";
currency: "currency";
custom_label_0: "custom_label_0";
custom_label_1: "custom_label_1";
custom_label_2: "custom_label_2";
custom_label_3: "custom_label_3";
custom_label_4: "custom_label_4";
custom_number_0: "custom_number_0";
custom_number_1: "custom_number_1";
custom_number_2: "custom_number_2";
custom_number_3: "custom_number_3";
custom_number_4: "custom_number_4";
description: "description";
guest_ratings: "guest_ratings";
hotel_id: "hotel_id";
id: "id";
image_fetch_status: "image_fetch_status";
images: "images";
lowest_base_price: "lowest_base_price";
loyalty_program: "loyalty_program";
margin_level: "margin_level";
name: "name";
phone: "phone";
product_priority_0: "product_priority_0";
product_priority_1: "product_priority_1";
product_priority_2: "product_priority_2";
product_priority_3: "product_priority_3";
product_priority_4: "product_priority_4";
sale_price: "sale_price";
sanitized_images: "sanitized_images";
star_rating: "star_rating";
tags: "tags";
unit_price: "unit_price";
url: "url";
visibility: "visibility";
}>;
static get ImageFetchStatus(): Readonly<{
direct_upload: "DIRECT_UPLOAD";
fetched: "FETCHED";
fetch_failed: "FETCH_FAILED";
no_status: "NO_STATUS";
outdated: "OUTDATED";
partial_fetch: "PARTIAL_FETCH";
}>;
static get Visibility(): Readonly<{
published: "PUBLISHED";
staging: "STAGING";
}>;
getChannelsToIntegrityStatus(fields: string[], params?: Record<string, any>, fetchFirstPage?: boolean): Cursor | Promise<Cursor>;
getHotelRooms(fields: string[], params?: Record<string, any>, fetchFirstPage?: boolean): Cursor | Promise<Cursor>;
getOverrideDetails(fields: string[], params?: Record<string, any>, fetchFirstPage?: boolean): Cursor | Promise<Cursor>;
getVideosMetadata(fields: string[], params?: Record<string, any>, fetchFirstPage?: boolean): Cursor | Promise<Cursor>;
delete(fields: string[], params?: Record<string, any>): Promise<AbstractObject>;
get(fields: string[], params?: Record<string, any>): Promise<Hotel>;
update(fields: string[], params?: Record<string, any>): Promise<Hotel>;
}