facebook-nodejs-business-sdk
Version:
SDK for the Facebook Marketing API in Javascript and Node.js
56 lines (50 loc) • 1.42 kB
JavaScript
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* 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';
/**
* ThirdPartyPartnerLiftRequest
* @extends AbstractCrudObject
* @see {@link https://developers.facebook.com/docs/marketing-api/}
*/
export default class ThirdPartyPartnerLiftRequest extends AbstractCrudObject {
static get Fields (): Object {
return Object.freeze({
ad_entities: 'ad_entities',
country: 'country',
created_time: 'created_time',
description: 'description',
holdout_size: 'holdout_size',
id: 'id',
modified_time: 'modified_time',
owner_instance_id: 'owner_instance_id',
region: 'region',
status: 'status',
study_cells: 'study_cells',
study_end_time: 'study_end_time',
study_start_time: 'study_start_time',
});
}
static get Status (): Object {
return Object.freeze({
created: 'CREATED',
failure: 'FAILURE',
in_progress: 'IN_PROGRESS',
scheduled: 'SCHEDULED',
success: 'SUCCESS',
});
}
get (fields: Array<string>, params: Object = {}): ThirdPartyPartnerLiftRequest {
// $FlowFixMe : Support Generic Types
return this.read(
fields,
params
);
}
}