feat: Convert all app files to JS
This commit is contained in:
@@ -2,7 +2,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Client Name',
|
||||
key: 'clientName',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -10,7 +10,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Contact First Name',
|
||||
key: 'contactFirstName',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -18,7 +18,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Contact Last Name',
|
||||
key: 'contactLastName',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -26,7 +26,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Contact Email',
|
||||
key: 'contactEmail',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -34,7 +34,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Contact Phone',
|
||||
key: 'contactPhone',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -42,7 +42,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Language Code',
|
||||
key: 'languageCode',
|
||||
type: 'dropdown' as const,
|
||||
type: 'dropdown',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -92,7 +92,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Currency Code',
|
||||
key: 'currencyCode',
|
||||
type: 'dropdown' as const,
|
||||
type: 'dropdown',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -220,7 +220,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Id Number',
|
||||
key: 'idNumber',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -228,7 +228,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Vat Number',
|
||||
key: 'vatNumber',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -236,7 +236,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Street Address',
|
||||
key: 'streetAddress',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -244,7 +244,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Apt/Suite',
|
||||
key: 'aptSuite',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -252,7 +252,7 @@ export const fields = [
|
||||
{
|
||||
label: 'City',
|
||||
key: 'city',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -260,7 +260,7 @@ export const fields = [
|
||||
{
|
||||
label: 'State/Province',
|
||||
key: 'stateProvince',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -268,7 +268,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Postal Code',
|
||||
key: 'postalCode',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -276,7 +276,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Country Code',
|
||||
key: 'countryCode',
|
||||
type: 'dropdown' as const,
|
||||
type: 'dropdown',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -535,7 +535,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Shipping Street Address',
|
||||
key: 'shippingStreetAddress',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -543,7 +543,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Shipping Apt/Suite',
|
||||
key: 'shippingAptSuite',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -551,7 +551,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Shipping City',
|
||||
key: 'shippingCity',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -559,7 +559,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Shipping State/Province',
|
||||
key: 'shippingStateProvince',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -567,7 +567,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Shipping Postal Code',
|
||||
key: 'shippingPostalCode',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -575,7 +575,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Shipping Country Code',
|
||||
key: 'shippingCountryCode',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -583,7 +583,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Private Notes',
|
||||
key: 'privateNotes',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -591,7 +591,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Public Notes',
|
||||
key: 'publicNotes',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -599,7 +599,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Website',
|
||||
key: 'website',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -607,7 +607,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Custom Value 1',
|
||||
key: 'customValue1',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -615,7 +615,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Custom Value 2',
|
||||
key: 'customValue2',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -623,7 +623,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Custom Value 3',
|
||||
key: 'customValue3',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -631,7 +631,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Custom Value 4',
|
||||
key: 'customValue4',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -1,6 +1,6 @@
|
||||
import defineAction from '../../../../helpers/define-action';
|
||||
import { filterProvidedFields } from '../../common/filter-provided-fields';
|
||||
import { fields } from './fields';
|
||||
import defineAction from '../../../../helpers/define-action.js';
|
||||
import { filterProvidedFields } from '../../common/filter-provided-fields.js';
|
||||
import { fields } from './fields.js';
|
||||
|
||||
export default defineAction({
|
||||
name: 'Create client',
|
||||
@@ -2,7 +2,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Client ID',
|
||||
key: 'clientId',
|
||||
type: 'dropdown' as const,
|
||||
type: 'dropdown',
|
||||
required: true,
|
||||
description: 'The ID of the client, not the name or email address.',
|
||||
variables: true,
|
||||
@@ -20,7 +20,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Send Email',
|
||||
key: 'sendEmail',
|
||||
type: 'dropdown' as const,
|
||||
type: 'dropdown',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -32,7 +32,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Mark Sent',
|
||||
key: 'markSent',
|
||||
type: 'dropdown' as const,
|
||||
type: 'dropdown',
|
||||
required: false,
|
||||
description: 'Setting this to true creates the invoice as sent.',
|
||||
variables: true,
|
||||
@@ -44,7 +44,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Paid',
|
||||
key: 'paid',
|
||||
type: 'dropdown' as const,
|
||||
type: 'dropdown',
|
||||
required: false,
|
||||
description: 'Setting this to true creates the invoice as paid.',
|
||||
variables: true,
|
||||
@@ -56,7 +56,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Amount Paid',
|
||||
key: 'amountPaid',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description:
|
||||
'If this value is greater than zero a payment will be created along with the invoice.',
|
||||
@@ -65,7 +65,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Number',
|
||||
key: 'number',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description:
|
||||
'The invoice number - is a unique alpha numeric number per invoice per company',
|
||||
@@ -74,7 +74,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Discount',
|
||||
key: 'discount',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -82,7 +82,7 @@ export const fields = [
|
||||
{
|
||||
label: 'PO Number',
|
||||
key: 'poNumber',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: 'The purchase order associated with this invoice',
|
||||
variables: true,
|
||||
@@ -90,7 +90,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Date',
|
||||
key: 'date',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -98,7 +98,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Due Date',
|
||||
key: 'dueDate',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -106,7 +106,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Tax Rate 1',
|
||||
key: 'taxRate1',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -114,7 +114,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Tax Name 1',
|
||||
key: 'taxName1',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -122,7 +122,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Tax Rate 2',
|
||||
key: 'taxRate2',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -130,7 +130,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Tax Name 2',
|
||||
key: 'taxName2',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -138,7 +138,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Tax Rate 3',
|
||||
key: 'taxRate3',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -146,7 +146,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Tax Name 3',
|
||||
key: 'taxName3',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -154,7 +154,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Custom Field 1',
|
||||
key: 'customField1',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -162,7 +162,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Custom Field 2',
|
||||
key: 'customField2',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -170,7 +170,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Custom Field 3',
|
||||
key: 'customField3',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -178,7 +178,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Custom Field 4',
|
||||
key: 'customField4',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -186,7 +186,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Custom Surcharge 1',
|
||||
key: 'customSurcharge1',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -194,7 +194,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Custom Surcharge 2',
|
||||
key: 'customSurcharge2',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -202,7 +202,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Custom Surcharge 3',
|
||||
key: 'customSurcharge3',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -210,7 +210,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Custom Surcharge 4',
|
||||
key: 'customSurcharge4',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -218,7 +218,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Is Amount Discount',
|
||||
key: 'isAmountDiscount',
|
||||
type: 'dropdown' as const,
|
||||
type: 'dropdown',
|
||||
required: false,
|
||||
description:
|
||||
'By default the discount is applied as a percentage, enabling this applies the discount as a fixed amount.',
|
||||
@@ -231,7 +231,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Partial/Deposit',
|
||||
key: 'partialDeposit',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -239,7 +239,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Partial Due Date',
|
||||
key: 'partialDueDate',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -247,7 +247,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Line Item Cost',
|
||||
key: 'lineItemCost',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -255,7 +255,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Line Item Quatity',
|
||||
key: 'lineItemQuantity',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -263,7 +263,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Line Item Product',
|
||||
key: 'lineItemProduct',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -271,7 +271,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Line Item Discount',
|
||||
key: 'lineItemDiscount',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -279,7 +279,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Line Item Description',
|
||||
key: 'lineItemDescription',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -287,7 +287,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Line Item Tax Rate 1',
|
||||
key: 'lineItemTaxRate1',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -295,7 +295,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Line Item Tax Name 1',
|
||||
key: 'lineItemTaxName1',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -303,7 +303,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Line Item Tax Rate 2',
|
||||
key: 'lineItemTaxRate2',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -311,7 +311,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Line Item Tax Name 2',
|
||||
key: 'lineItemTaxName2',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -319,7 +319,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Line Item Tax Rate 3',
|
||||
key: 'lineItemTaxRate3',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -327,7 +327,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Line Item Tax Name 3',
|
||||
key: 'lineItemTaxName3',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -335,7 +335,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Line Item Custom Field 1',
|
||||
key: 'lineItemCustomField1',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -343,7 +343,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Line Item Custom Field 2',
|
||||
key: 'lineItemCustomField2',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -351,7 +351,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Line Item Custom Field 3',
|
||||
key: 'lineItemCustomField3',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -359,7 +359,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Line Item Custom Field 4',
|
||||
key: 'lineItemCustomField4',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -367,7 +367,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Line Item Product Cost',
|
||||
key: 'lineItemProductCost',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -375,7 +375,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Public Notes',
|
||||
key: 'publicNotes',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -383,7 +383,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Private Notes',
|
||||
key: 'privateNotes',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -391,7 +391,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Terms',
|
||||
key: 'terms',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -399,7 +399,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Footer',
|
||||
key: 'footer',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -1,6 +1,6 @@
|
||||
import defineAction from '../../../../helpers/define-action';
|
||||
import { filterProvidedFields } from '../../common/filter-provided-fields';
|
||||
import { fields } from './fields';
|
||||
import defineAction from '../../../../helpers/define-action.js';
|
||||
import { filterProvidedFields } from '../../common/filter-provided-fields.js';
|
||||
import { fields } from './fields.js';
|
||||
|
||||
export default defineAction({
|
||||
name: 'Create invoice',
|
||||
@@ -2,7 +2,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Client ID',
|
||||
key: 'clientId',
|
||||
type: 'dropdown' as const,
|
||||
type: 'dropdown',
|
||||
required: true,
|
||||
description: 'The ID of the client, not the name or email address.',
|
||||
variables: true,
|
||||
@@ -20,7 +20,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Payment Date',
|
||||
key: 'paymentDate',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -28,7 +28,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Invoice',
|
||||
key: 'invoiceId',
|
||||
type: 'dropdown' as const,
|
||||
type: 'dropdown',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -46,7 +46,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Invoice Amount',
|
||||
key: 'invoiceAmount',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -54,7 +54,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Payment Type',
|
||||
key: 'paymentType',
|
||||
type: 'dropdown' as const,
|
||||
type: 'dropdown',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -95,7 +95,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Transfer Reference',
|
||||
key: 'transferReference',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -103,7 +103,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Private Notes',
|
||||
key: 'privateNotes',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -1,6 +1,6 @@
|
||||
import defineAction from '../../../../helpers/define-action';
|
||||
import { filterProvidedFields } from '../../common/filter-provided-fields';
|
||||
import { fields } from './fields';
|
||||
import defineAction from '../../../../helpers/define-action.js';
|
||||
import { filterProvidedFields } from '../../common/filter-provided-fields.js';
|
||||
import { fields } from './fields.js';
|
||||
|
||||
export default defineAction({
|
||||
name: 'Create payment',
|
||||
@@ -2,7 +2,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Product Key',
|
||||
key: 'productKey',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -10,7 +10,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Notes',
|
||||
key: 'notes',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -18,7 +18,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Price',
|
||||
key: 'price',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -26,7 +26,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Quantity',
|
||||
key: 'quantity',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -34,7 +34,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Tax Rate 1',
|
||||
key: 'taxRate1',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -42,7 +42,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Tax Name 1',
|
||||
key: 'taxName1',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -50,7 +50,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Tax Rate 2',
|
||||
key: 'taxRate2',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -58,7 +58,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Tax Name 2',
|
||||
key: 'taxName2',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -66,7 +66,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Tax Rate 3',
|
||||
key: 'taxRate3',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -74,7 +74,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Tax Name 3',
|
||||
key: 'taxName3',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -82,7 +82,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Custom Value 1',
|
||||
key: 'customValue1',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -90,7 +90,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Custom Value 2',
|
||||
key: 'customValue2',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -98,7 +98,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Custom Value 3',
|
||||
key: 'customValue3',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -106,7 +106,7 @@ export const fields = [
|
||||
{
|
||||
label: 'Custom Value 4',
|
||||
key: 'customValue4',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: false,
|
||||
description: '',
|
||||
variables: true,
|
||||
@@ -1,6 +1,6 @@
|
||||
import defineAction from '../../../../helpers/define-action';
|
||||
import { filterProvidedFields } from '../../common/filter-provided-fields';
|
||||
import { fields } from './fields';
|
||||
import defineAction from '../../../../helpers/define-action.js';
|
||||
import { filterProvidedFields } from '../../common/filter-provided-fields.js';
|
||||
import { fields } from './fields.js';
|
||||
|
||||
export default defineAction({
|
||||
name: 'Create product',
|
||||
6
packages/backend/src/apps/invoice-ninja/actions/index.js
Normal file
6
packages/backend/src/apps/invoice-ninja/actions/index.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import createClient from './create-client/index.js';
|
||||
import createInvoice from './create-invoice/index.js';
|
||||
import createPayment from './create-payment/index.js';
|
||||
import createProduct from './create-product/index.js';
|
||||
|
||||
export default [createClient, createInvoice, createPayment, createProduct];
|
||||
@@ -1,6 +0,0 @@
|
||||
import createClient from './create-client';
|
||||
import createInvoice from './create-invoice';
|
||||
import createPayment from './create-payment';
|
||||
import createProduct from './create-product';
|
||||
|
||||
export default [createClient, createInvoice, createPayment, createProduct];
|
||||
Reference in New Issue
Block a user