facebook-nodejs-business-sdk
Version:
SDK for the Facebook Ads API in Javascript and Node.js
59 lines (55 loc) • 1.35 kB
JavaScript
/**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
* @flow
*/
import {AbstractCrudObject} from './../abstract-crud-object';
/**
* ProductFeedSchedule
* @extends AbstractCrudObject
* @see {@link https://developers.facebook.com/docs/marketing-api/}
*/
export default class ProductFeedSchedule extends AbstractCrudObject {
static get Fields () {
return Object.freeze({
day_of_month: 'day_of_month',
day_of_week: 'day_of_week',
hour: 'hour',
interval: 'interval',
interval_count: 'interval_count',
minute: 'minute',
timezone: 'timezone',
url: 'url',
username: 'username',
id: 'id'
});
}
static get DayOfWeek (): Object {
return Object.freeze({
sunday: 'SUNDAY',
monday: 'MONDAY',
tuesday: 'TUESDAY',
wednesday: 'WEDNESDAY',
thursday: 'THURSDAY',
friday: 'FRIDAY',
saturday: 'SATURDAY'
});
}
static get Interval (): Object {
return Object.freeze({
hourly: 'HOURLY',
daily: 'DAILY',
weekly: 'WEEKLY',
monthly: 'MONTHLY'
});
}
get (fields, params): ProductFeedSchedule {
return this.read(
fields,
params
);
}
}