n8n/packages/nodes-base/nodes/Paddle/PlanDescription.ts

58 lines
1 KiB
TypeScript
Raw Normal View History

2020-06-30 04:34:09 -07:00
import {
INodeProperties,
} from 'n8n-workflow';
export const planOperations = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
displayOptions: {
show: {
resource: [
'plan',
],
},
},
options: [
2020-07-02 02:12:27 -07:00
{
name: 'Get',
value: 'get',
description: 'Get a plan.',
},
2020-06-30 04:34:09 -07:00
{
name: 'Get All',
value: 'getAll',
description: 'Get all plans.',
}
],
default: 'getAll',
description: 'The operation to perform.',
},
] as INodeProperties[];
export const planFields = [
/* -------------------------------------------------------------------------- */
2020-07-02 02:12:27 -07:00
/* plan:get */
2020-06-30 04:34:09 -07:00
/* -------------------------------------------------------------------------- */
{
displayName: 'Plan ID',
name: 'planId',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
resource: [
'plan',
],
operation: [
2020-07-02 02:12:27 -07:00
'get',
2020-06-30 04:34:09 -07:00
],
},
},
description: 'Filter: The subscription plan ID.',
},
] as INodeProperties[];