n8n-nodes-base
Version:
Base nodes of n8n
98 lines (92 loc) • 3.41 kB
text/typescript
/**
* Facebook Graph API Node - Version 1
* Interacts with Facebook using the Graph API
*/
export interface FacebookGraphApiV1Params {
/**
* The Host URL of the request. Almost all requests are passed to the graph.facebook.com host URL. The single exception is video uploads, which use graph-video.facebook.com.
* @default graph.facebook.com
*/
hostUrl?: 'graph.facebook.com' | 'graph-video.facebook.com' | Expression<string>;
/**
* The HTTP Method to be used for the request
* @default GET
*/
httpRequestMethod?: 'GET' | 'POST' | 'DELETE' | Expression<string>;
/**
* The version of the Graph API to be used in the request
*/
graphApiVersion?: '' | 'v23.0' | 'v22.0' | 'v21.0' | 'v20.0' | 'v19.0' | 'v18.0' | 'v17.0' | 'v16.0' | 'v15.0' | 'v14.0' | 'v13.0' | 'v12.0' | 'v11.0' | 'v10.0' | 'v9.0' | 'v8.0' | 'v7.0' | 'v6.0' | 'v5.0' | 'v4.0' | 'v3.3' | 'v3.2' | 'v3.1' | 'v3.0' | Expression<string>;
/**
* The node on which to operate. A node is an individual object with a unique ID. For example, there are many User node objects, each with a unique ID representing a person on Facebook.
*/
node?: string | Expression<string> | PlaceholderValue;
/**
* Edge of the node on which to operate. Edges represent collections of objects which are attached to the node.
*/
edge?: string | Expression<string> | PlaceholderValue;
/**
* Whether to connect even if SSL certificate validation is not possible
* @default false
*/
allowUnauthorizedCerts?: boolean | Expression<boolean>;
/**
* Whether binary data should be sent as body
* @displayOptions.show { httpRequestMethod: ["POST", "PUT"] }
* @default false
*/
sendBinaryData?: boolean | Expression<boolean>;
/**
* For Form-Data Multipart, they can be provided in the format: <code>"sendKey1:binaryProperty1,sendKey2:binaryProperty2</code>
* @hint The name of the input binary field containing the file to be uploaded
* @displayOptions.show { httpRequestMethod: ["POST", "PUT"] }
* @displayOptions.hide { sendBinaryData: [false] }
*/
binaryPropertyName?: string | Expression<string> | PlaceholderValue;
options?: {
/** The list of fields to request in the GET request
* @displayOptions.show { /httpRequestMethod: ["GET"] }
* @default {}
*/
fields?: {
/** Field
*/
field?: Array<{
/** Name of the field
*/
name?: string | Expression<string> | PlaceholderValue;
}>;
};
/** The query parameters to send
* @default {}
*/
queryParameters?: {
/** Parameter
*/
parameter?: Array<{
/** Name of the parameter
*/
name?: string | Expression<string> | PlaceholderValue;
/** Value of the parameter
*/
value?: string | Expression<string> | PlaceholderValue;
}>;
};
/** The query parameters to send, defined as a JSON object
* @default {}
*/
queryParametersJson?: IDataObject | string | Expression<string>;
};
}
export interface FacebookGraphApiV1Credentials {
facebookGraphApi: CredentialReference;
}
interface FacebookGraphApiV1NodeBase {
type: 'n8n-nodes-base.facebookGraphApi';
version: 1;
credentials?: FacebookGraphApiV1Credentials;
}
export type FacebookGraphApiV1ParamsNode = FacebookGraphApiV1NodeBase & {
config: NodeConfig<FacebookGraphApiV1Params>;
};
export type FacebookGraphApiV1Node = FacebookGraphApiV1ParamsNode;