@progtechbr/n8n-nodes-rdsme
Version:
Send events through API to RD Station Marketing para Ecommerce
149 lines • 4.16 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.orderExplicitIdentifiers = exports.orderPlacedIdentifiers = exports.ecommerceIdentifiers = void 0;
const checkoutStartedIdentifier = [
{
displayName: 'Identifier',
name: 'identifierCheckoutStarted',
type: 'string',
displayOptions: {
show: {
operation: ['newEcommerceEvent'],
resource: ['ecommerceEvents'],
eventType: ['ecommerceCheckoutStarted'],
},
},
default: '',
description: 'Checkout identifier',
required: true,
}
];
const cartAbandonedIdentifier = [
{
displayName: 'Identifier',
name: 'identifierCartAbandoned',
type: 'string',
displayOptions: {
show: {
operation: ['newEcommerceEvent'],
resource: ['ecommerceEvents'],
eventType: ['ecommerceCartAbandoned'],
},
},
default: '',
description: 'Cart identifier',
required: true,
}
];
const orderIdentifier = [
{
displayName: 'Identifier',
name: 'identifierOrder',
type: 'string',
displayOptions: {
show: {
operation: ['newEcommerceEvent'],
resource: ['ecommerceEvents'],
eventType: [
'ecommerceOrderPlaced',
'ecommerceOrderPaid',
'ecommerceOrderCancelled',
'ecommerceOrderRefunded',
],
},
},
default: '',
description: 'Order identifier',
required: true,
}
];
const shipmentIdentifier = [
{
displayName: 'Identifier',
name: 'identifierShipment',
type: 'string',
displayOptions: {
show: {
operation: ['newEcommerceEvent'],
resource: ['ecommerceEvents'],
eventType: [
'ecommerceOrderFulfilled',
'ecommerceShipmentDelivered',
],
},
},
default: '',
description: 'Shipment identifier',
required: true,
}
];
const cartIdentifier = [
{
displayName: 'Cart Identifier',
name: 'cartIdentifier',
type: 'string',
displayOptions: {
show: {
operation: ['newEcommerceEvent'],
resource: ['ecommerceEvents'],
eventType: [
'ecommerceOrderPlaced',
],
},
},
default: '',
description: 'Cart identifier',
}
];
const checkoutIdentifier = [
{
displayName: 'Checkout Identifier',
name: 'checkoutIdentifier',
type: 'string',
displayOptions: {
show: {
operation: ['newEcommerceEvent'],
resource: ['ecommerceEvents'],
eventType: [
'ecommerceOrderPlaced',
],
},
},
default: '',
description: 'Checkout identifier',
}
];
const orderIdentifierExplicit = [
{
displayName: 'Order Identifier',
name: 'orderIdentifierExplicit',
type: 'string',
displayOptions: {
show: {
operation: ['newEcommerceEvent'],
resource: ['ecommerceEvents'],
eventType: [
'ecommerceOrderFulfilled',
'ecommerceShipmentDelivered',
],
},
},
default: '',
description: 'Order identifier for order fulfilled and shipment delivered events',
required: true,
}
];
exports.ecommerceIdentifiers = [
...checkoutStartedIdentifier,
...cartAbandonedIdentifier,
...orderIdentifier,
...shipmentIdentifier,
];
exports.orderPlacedIdentifiers = [
...cartIdentifier,
...checkoutIdentifier,
];
exports.orderExplicitIdentifiers = [
...orderIdentifierExplicit,
];
//# sourceMappingURL=IdentifierFields.js.map