👕 Fix lint issue
This commit is contained in:
@@ -48,7 +48,7 @@ export const campaignFields = [
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The unique identifier for the campaign',
|
||||
@@ -69,7 +69,7 @@ export const campaignFields = [
|
||||
],
|
||||
operation: [
|
||||
'getMetrics',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The unique identifier for the campaign',
|
||||
@@ -86,7 +86,7 @@ export const campaignFields = [
|
||||
],
|
||||
operation: [
|
||||
'getMetrics',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Specify metric period',
|
||||
@@ -107,7 +107,7 @@ export const campaignFields = [
|
||||
name: 'Months',
|
||||
value: 'months',
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
displayName: 'JSON Parameters',
|
||||
@@ -138,7 +138,7 @@ export const campaignFields = [
|
||||
'campaign',
|
||||
],
|
||||
operation: [
|
||||
'getMetrics'
|
||||
'getMetrics',
|
||||
],
|
||||
jsonParameters: [
|
||||
false,
|
||||
@@ -155,7 +155,7 @@ export const campaignFields = [
|
||||
typeOptions: {
|
||||
minValue: 0,
|
||||
maxValue: 120,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
displayName: 'Type',
|
||||
@@ -192,7 +192,7 @@ export const campaignFields = [
|
||||
name: 'Webhook',
|
||||
value: 'webhook',
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -47,7 +47,7 @@ export const customerFields = [
|
||||
],
|
||||
operation: [
|
||||
'delete',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The unique identifier for the customer.',
|
||||
@@ -69,7 +69,7 @@ export const customerFields = [
|
||||
],
|
||||
operation: [
|
||||
'upsert',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The unique identifier for the customer.',
|
||||
@@ -168,7 +168,7 @@ export const customerFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
displayName: 'Email',
|
||||
|
||||
@@ -48,7 +48,7 @@ export class CustomerIo implements INodeType {
|
||||
{
|
||||
name: 'customerIoApi',
|
||||
required: true,
|
||||
}
|
||||
},
|
||||
],
|
||||
properties: [
|
||||
{
|
||||
@@ -87,7 +87,7 @@ export class CustomerIo implements INodeType {
|
||||
...eventFields,
|
||||
// SEGMENT
|
||||
...segmentOperations,
|
||||
...segmentFields
|
||||
...segmentFields,
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
@@ -315,14 +315,14 @@ export class CustomerIoTrigger implements INodeType {
|
||||
}
|
||||
return true;
|
||||
},
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
async webhook(this: IWebhookFunctions): Promise<IWebhookResponseData> {
|
||||
const bodyData = this.getBodyData();
|
||||
return {
|
||||
workflowData: [
|
||||
this.helpers.returnJsonArray(bodyData)
|
||||
this.helpers.returnJsonArray(bodyData),
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ export const eventFields = [
|
||||
],
|
||||
operation: [
|
||||
'track',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The unique identifier for the customer.',
|
||||
@@ -64,7 +64,7 @@ export const eventFields = [
|
||||
],
|
||||
operation: [
|
||||
'track',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Name of the event to track.',
|
||||
@@ -125,7 +125,7 @@ export const eventFields = [
|
||||
],
|
||||
jsonParameters: [
|
||||
false,
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -163,7 +163,7 @@ export const eventFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
displayName: 'Type',
|
||||
@@ -190,7 +190,7 @@ export const eventFields = [
|
||||
],
|
||||
operation: [
|
||||
'trackAnonymous',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The unique identifier for the customer.',
|
||||
@@ -251,7 +251,7 @@ export const eventFields = [
|
||||
],
|
||||
jsonParameters: [
|
||||
false,
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -288,7 +288,7 @@ export const eventFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -46,7 +46,7 @@ export const segmentFields = [
|
||||
operation: [
|
||||
'add',
|
||||
'remove',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The unique identifier of the segment.',
|
||||
@@ -65,7 +65,7 @@ export const segmentFields = [
|
||||
operation: [
|
||||
'add',
|
||||
'remove',
|
||||
]
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'A list of customer ids to add to the segment.',
|
||||
|
||||
Reference in New Issue
Block a user