UNPKG

facebook-nodejs-business-sdk

Version:
46 lines (42 loc) 1.17 kB
/** * 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'; import DynamicItemDisplayBundle from './dynamic-item-display-bundle'; /** * DynamicItemDisplayBundleFolder * @extends AbstractCrudObject * @see {@link https://developers.facebook.com/docs/marketing-api/} */ export default class DynamicItemDisplayBundleFolder extends AbstractCrudObject { static get Fields () { return Object.freeze({ categorization_criteria: 'categorization_criteria', id: 'id', name: 'name', product_catalog: 'product_catalog', product_set: 'product_set', valid_labels: 'valid_labels' }); } getBundles (fields, params, fetchFirstPage = true): DynamicItemDisplayBundle { return this.getEdge( DynamicItemDisplayBundle, fields, params, fetchFirstPage, '/bundles' ); } get (fields, params): DynamicItemDisplayBundleFolder { return this.read( fields, params ); } }