mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
✨ Jackrudenko/unleashed (#827)
* Improve Google sheet path match, not you can use embedded object to get the path from * Add the Unleashed node in alphabet order in the package.json file to follow contribution guide requirements * ⚡ Improvements to Unleashed-Node * Implement pagination and fix date transformation from Unleashed to ISO Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
This commit is contained in:
@@ -0,0 +1,191 @@
|
||||
import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const salesOrderOperations = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
type: 'options',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'salesOrder',
|
||||
],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
name: 'Get All',
|
||||
value: 'getAll',
|
||||
description: 'Get all sales orders',
|
||||
},
|
||||
],
|
||||
default: 'getAll',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
|
||||
export const salesOrderFields = [
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
/* salesOrder:getAll */
|
||||
/* ------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Return All',
|
||||
name: 'returnAll',
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'salesOrder',
|
||||
],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
description: 'If all results should be returned or only up to a given limit.',
|
||||
},
|
||||
{
|
||||
displayName: 'Limit',
|
||||
name: 'limit',
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'salesOrder',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
minValue: 1,
|
||||
maxValue: 1000,
|
||||
},
|
||||
default: 100,
|
||||
description: 'How many results to return.',
|
||||
},
|
||||
{
|
||||
displayName: 'Page',
|
||||
name: 'page',
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'salesOrder',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
minValue: 1,
|
||||
maxValue: 100000,
|
||||
},
|
||||
default: 1,
|
||||
description: 'Page number.',
|
||||
},
|
||||
{
|
||||
displayName: 'Filters',
|
||||
name: 'filters',
|
||||
type: 'collection',
|
||||
placeholder: 'Add Filter',
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: [
|
||||
'salesOrder',
|
||||
],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Customer ID',
|
||||
name: 'customerId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
placeholder: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX',
|
||||
description: 'Only returns orders for a specified Customer GUID. The CustomerId can be specified as a list of comma-separated GUIDs'
|
||||
},
|
||||
{
|
||||
displayName: 'Customer Code',
|
||||
name: 'customerCode',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Returns orders that start with the specific customer code.'
|
||||
},
|
||||
{
|
||||
displayName: 'End Date',
|
||||
name: 'endDate',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Returns orders with order date before the specified date. UTC.'
|
||||
},
|
||||
{
|
||||
displayName: 'Modified Since',
|
||||
name: 'modifiedSince',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Returns orders created or edited after a specified date, must be UTC format.'
|
||||
},
|
||||
{
|
||||
displayName: 'Order Number',
|
||||
name: 'orderNumber',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Returns a single order with the specified order number. If set, it overrides all other filters.'
|
||||
},
|
||||
{
|
||||
displayName: 'Order Status',
|
||||
name: 'orderStatus',
|
||||
type: 'multiOptions',
|
||||
options: [
|
||||
{
|
||||
name: 'Completed',
|
||||
value: 'Completed'
|
||||
},
|
||||
{
|
||||
name: 'Backordered',
|
||||
value: 'Backordered'
|
||||
},
|
||||
{
|
||||
name: 'Parked',
|
||||
value: 'Parked'
|
||||
},
|
||||
{
|
||||
name: 'Placed',
|
||||
value: 'Placed'
|
||||
},
|
||||
{
|
||||
name: 'Deleted',
|
||||
value: 'Deleted'
|
||||
}
|
||||
],
|
||||
default: [],
|
||||
required: false,
|
||||
description: 'Returns orders with the specified status. If no orderStatus filter is specified, then we exclude “Deleted” by default.'
|
||||
},
|
||||
{
|
||||
displayName: 'Start Date',
|
||||
name: 'startDate',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Returns orders with order date after the specified date. UTC.'
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
Reference in New Issue
Block a user