@arathron/n8n-nodes-zoho-books 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/README.md +199 -0
- package/dist/credentials/ZohoBooksOAuth2.credentials.d.ts +8 -0
- package/dist/credentials/ZohoBooksOAuth2.credentials.js +75 -0
- package/dist/credentials/ZohoBooksOAuth2.credentials.js.map +1 -0
- package/dist/nodes/ZohoBooks.node.d.ts +5 -0
- package/dist/nodes/ZohoBooks.node.js +260 -0
- package/dist/nodes/ZohoBooks.node.js.map +1 -0
- package/dist/nodes/resources/BaseResource.d.ts +16 -0
- package/dist/nodes/resources/BaseResource.js +44 -0
- package/dist/nodes/resources/BaseResource.js.map +1 -0
- package/dist/nodes/resources/CreditNote.resource.d.ts +14 -0
- package/dist/nodes/resources/CreditNote.resource.js +291 -0
- package/dist/nodes/resources/CreditNote.resource.js.map +1 -0
- package/dist/nodes/resources/Invoice.resource.d.ts +14 -0
- package/dist/nodes/resources/Invoice.resource.js +251 -0
- package/dist/nodes/resources/Invoice.resource.js.map +1 -0
- package/dist/nodes/resources/Item.resource.d.ts +14 -0
- package/dist/nodes/resources/Item.resource.js +312 -0
- package/dist/nodes/resources/Item.resource.js.map +1 -0
- package/dist/nodes/resources/Payment.resource.d.ts +14 -0
- package/dist/nodes/resources/Payment.resource.js +341 -0
- package/dist/nodes/resources/Payment.resource.js.map +1 -0
- package/dist/nodes/resources/SalesOrder.resource.d.ts +14 -0
- package/dist/nodes/resources/SalesOrder.resource.js +211 -0
- package/dist/nodes/resources/SalesOrder.resource.js.map +1 -0
- package/dist/nodes/resources/Vendor.resource.d.ts +14 -0
- package/dist/nodes/resources/Vendor.resource.js +415 -0
- package/dist/nodes/resources/Vendor.resource.js.map +1 -0
- package/dist/utils/GenericFunctions.d.ts +6 -0
- package/dist/utils/GenericFunctions.js +154 -0
- package/dist/utils/GenericFunctions.js.map +1 -0
- package/dist/utils/RateLimiter.d.ts +20 -0
- package/dist/utils/RateLimiter.js +82 -0
- package/dist/utils/RateLimiter.js.map +1 -0
- package/dist/utils/Schemas.d.ts +7 -0
- package/dist/utils/Schemas.js +207 -0
- package/dist/utils/Schemas.js.map +1 -0
- package/index.js +4 -0
- package/package.json +69 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Payment.resource.js","sourceRoot":"","sources":["../../../nodes/resources/Payment.resource.ts"],"names":[],"mappings":";;;AAAA,iDAA8C;AAE9C,iDAK6B;AAE7B,MAAa,eAAgB,SAAQ,2BAAY;IAAjD;;QACE,SAAI,GAAG,SAAS,CAAC;QACjB,gBAAW,GAAG,SAAS,CAAC;QACxB,aAAQ,GAAG,mBAAmB,CAAC;IAmVjC,CAAC;IAjVC,mBAAmB;QACjB,OAAO;YACL;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,sBAAsB;gBACnC,MAAM,EAAE,kBAAkB;aAC3B;YACD;gBACE,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,qBAAqB;gBAClC,MAAM,EAAE,eAAe;aACxB;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kBAAkB;gBAC/B,MAAM,EAAE,kBAAkB;aAC3B;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kBAAkB;gBAC/B,MAAM,EAAE,kBAAkB;aAC3B;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kBAAkB;gBAC/B,MAAM,EAAE,kBAAkB;aAC3B;SACF,CAAC;IACJ,CAAC;IAED,SAAS;QACP,OAAO;YACL,gBAAgB;YAChB,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;YAEtB,mBAAmB;YACnB,IAAI,CAAC,UAAU,CAAC,QAAQ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EAAE,CAAC;wCACV,WAAW,EAAE,qBAAqB;qCACnC;iCACF;6BACF;yBACF;qBACF;oBACD,2BAAiB;iBAClB;aACF;YAED,yBAAyB;YACzB;gBACE,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,cAAc,EAAE;oBACd,IAAI,EAAE;wBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;wBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;qBACtB;iBACF;gBACD,OAAO,EAAE,CAAC;gBACV,WAAW,EAAE;oBACX,QAAQ,EAAE,CAAC;iBACZ;gBACD,WAAW,EAAE,gBAAgB;aAC9B;YACD;gBACE,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,UAAU;gBAChB,cAAc,EAAE;oBACd,IAAI,EAAE;wBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;wBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;qBACtB;iBACF;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,iBAAiB;aAC/B;YACD;gBACE,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,cAAc,EAAE;oBACd,IAAI,EAAE;wBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;wBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;qBACtB;iBACF;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,kCAAkC;gBAC/C,WAAW,EAAE,iBAAiB;aAC/B;SACF,CAAC;IACJ,CAAC;CACF;AAtVD,0CAsVC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { BaseResource } from './BaseResource';
|
2
|
+
import { INodeProperties } from 'n8n-workflow';
|
3
|
+
export declare class SalesOrderResource extends BaseResource {
|
4
|
+
name: string;
|
5
|
+
displayName: string;
|
6
|
+
endpoint: string;
|
7
|
+
getOperationOptions(): {
|
8
|
+
name: string;
|
9
|
+
value: string;
|
10
|
+
description: string;
|
11
|
+
action: string;
|
12
|
+
}[];
|
13
|
+
getFields(): INodeProperties[];
|
14
|
+
}
|
@@ -0,0 +1,211 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SalesOrderResource = void 0;
|
4
|
+
const BaseResource_1 = require("./BaseResource");
|
5
|
+
const Schemas_1 = require("../../utils/Schemas");
|
6
|
+
class SalesOrderResource extends BaseResource_1.BaseResource {
|
7
|
+
constructor() {
|
8
|
+
super(...arguments);
|
9
|
+
this.name = 'salesOrder';
|
10
|
+
this.displayName = 'Sales Order';
|
11
|
+
this.endpoint = '/salesorders';
|
12
|
+
}
|
13
|
+
getOperationOptions() {
|
14
|
+
return [
|
15
|
+
{
|
16
|
+
name: 'Create',
|
17
|
+
value: 'create',
|
18
|
+
description: 'Create a new sales order',
|
19
|
+
action: 'Create a sales order',
|
20
|
+
},
|
21
|
+
{
|
22
|
+
name: 'Get',
|
23
|
+
value: 'get',
|
24
|
+
description: 'Get a sales order by ID',
|
25
|
+
action: 'Get a sales order',
|
26
|
+
},
|
27
|
+
{
|
28
|
+
name: 'Get All',
|
29
|
+
value: 'getAll',
|
30
|
+
description: 'Get all sales orders',
|
31
|
+
action: 'Get all sales orders',
|
32
|
+
},
|
33
|
+
{
|
34
|
+
name: 'Update',
|
35
|
+
value: 'update',
|
36
|
+
description: 'Update a sales order',
|
37
|
+
action: 'Update a sales order',
|
38
|
+
},
|
39
|
+
{
|
40
|
+
name: 'Void',
|
41
|
+
value: 'void',
|
42
|
+
description: 'Void a sales order',
|
43
|
+
action: 'Void a sales order',
|
44
|
+
},
|
45
|
+
];
|
46
|
+
}
|
47
|
+
getFields() {
|
48
|
+
return [
|
49
|
+
// Get operation
|
50
|
+
this.getIdField('get'),
|
51
|
+
// Update operation
|
52
|
+
this.getIdField('update'),
|
53
|
+
// Void operation
|
54
|
+
this.getIdField('void'),
|
55
|
+
// Customer ID for create
|
56
|
+
{
|
57
|
+
displayName: 'Customer ID',
|
58
|
+
name: 'customer_id',
|
59
|
+
type: 'string',
|
60
|
+
required: true,
|
61
|
+
displayOptions: {
|
62
|
+
show: {
|
63
|
+
resource: ['salesOrder'],
|
64
|
+
operation: ['create'],
|
65
|
+
},
|
66
|
+
},
|
67
|
+
default: '',
|
68
|
+
description: 'The ID of the customer',
|
69
|
+
},
|
70
|
+
// Line items for create/update
|
71
|
+
{
|
72
|
+
...Schemas_1.lineItemsField,
|
73
|
+
displayOptions: {
|
74
|
+
show: {
|
75
|
+
resource: ['salesOrder'],
|
76
|
+
operation: ['create', 'update'],
|
77
|
+
},
|
78
|
+
},
|
79
|
+
required: true,
|
80
|
+
},
|
81
|
+
// Common fields for getAll
|
82
|
+
...Schemas_1.commonFields,
|
83
|
+
// Filters for getAll
|
84
|
+
{
|
85
|
+
...Schemas_1.filtersCollection,
|
86
|
+
displayOptions: {
|
87
|
+
show: {
|
88
|
+
resource: ['salesOrder'],
|
89
|
+
operation: ['getAll'],
|
90
|
+
},
|
91
|
+
},
|
92
|
+
},
|
93
|
+
// Additional fields for create/update
|
94
|
+
{
|
95
|
+
...Schemas_1.additionalFieldsCollection,
|
96
|
+
displayOptions: {
|
97
|
+
show: {
|
98
|
+
resource: ['salesOrder'],
|
99
|
+
operation: ['create', 'update'],
|
100
|
+
},
|
101
|
+
},
|
102
|
+
options: [
|
103
|
+
{
|
104
|
+
displayName: 'Reference Number',
|
105
|
+
name: 'reference_number',
|
106
|
+
type: 'string',
|
107
|
+
default: '',
|
108
|
+
description: 'Reference number for the sales order',
|
109
|
+
},
|
110
|
+
{
|
111
|
+
displayName: 'Date',
|
112
|
+
name: 'date',
|
113
|
+
type: 'dateTime',
|
114
|
+
default: '',
|
115
|
+
description: 'The date of the sales order',
|
116
|
+
},
|
117
|
+
{
|
118
|
+
displayName: 'Shipment Date',
|
119
|
+
name: 'shipment_date',
|
120
|
+
type: 'dateTime',
|
121
|
+
default: '',
|
122
|
+
description: 'Expected shipment date',
|
123
|
+
},
|
124
|
+
{
|
125
|
+
displayName: 'Discount',
|
126
|
+
name: 'discount',
|
127
|
+
type: 'number',
|
128
|
+
default: 0,
|
129
|
+
description: 'Discount amount',
|
130
|
+
},
|
131
|
+
{
|
132
|
+
displayName: 'Is Discount Before Tax',
|
133
|
+
name: 'is_discount_before_tax',
|
134
|
+
type: 'boolean',
|
135
|
+
default: true,
|
136
|
+
description: 'Whether to apply discount before tax',
|
137
|
+
},
|
138
|
+
{
|
139
|
+
displayName: 'Discount Type',
|
140
|
+
name: 'discount_type',
|
141
|
+
type: 'options',
|
142
|
+
options: [
|
143
|
+
{ name: 'Fixed Amount', value: 'entity_level' },
|
144
|
+
{ name: 'Percentage', value: 'item_level' },
|
145
|
+
],
|
146
|
+
default: 'entity_level',
|
147
|
+
description: 'Type of discount',
|
148
|
+
},
|
149
|
+
{
|
150
|
+
displayName: 'Exchange Rate',
|
151
|
+
name: 'exchange_rate',
|
152
|
+
type: 'number',
|
153
|
+
default: 1,
|
154
|
+
description: 'Exchange rate for foreign currency',
|
155
|
+
},
|
156
|
+
{
|
157
|
+
displayName: 'Salesperson Name',
|
158
|
+
name: 'salesperson_name',
|
159
|
+
type: 'string',
|
160
|
+
default: '',
|
161
|
+
description: 'Name of the salesperson',
|
162
|
+
},
|
163
|
+
{
|
164
|
+
displayName: 'Notes',
|
165
|
+
name: 'notes',
|
166
|
+
type: 'string',
|
167
|
+
typeOptions: {
|
168
|
+
alwaysOpenEditWindow: true,
|
169
|
+
},
|
170
|
+
default: '',
|
171
|
+
description: 'Notes for the sales order',
|
172
|
+
},
|
173
|
+
{
|
174
|
+
displayName: 'Terms',
|
175
|
+
name: 'terms',
|
176
|
+
type: 'string',
|
177
|
+
typeOptions: {
|
178
|
+
alwaysOpenEditWindow: true,
|
179
|
+
},
|
180
|
+
default: '',
|
181
|
+
description: 'Terms and conditions',
|
182
|
+
},
|
183
|
+
{
|
184
|
+
displayName: 'Shipping Charge',
|
185
|
+
name: 'shipping_charge',
|
186
|
+
type: 'number',
|
187
|
+
default: 0,
|
188
|
+
description: 'Shipping charges',
|
189
|
+
},
|
190
|
+
{
|
191
|
+
displayName: 'Adjustment',
|
192
|
+
name: 'adjustment',
|
193
|
+
type: 'number',
|
194
|
+
default: 0,
|
195
|
+
description: 'Adjustment amount',
|
196
|
+
},
|
197
|
+
{
|
198
|
+
displayName: 'Adjustment Description',
|
199
|
+
name: 'adjustment_description',
|
200
|
+
type: 'string',
|
201
|
+
default: '',
|
202
|
+
description: 'Description for the adjustment',
|
203
|
+
},
|
204
|
+
Schemas_1.customFieldsField,
|
205
|
+
],
|
206
|
+
},
|
207
|
+
];
|
208
|
+
}
|
209
|
+
}
|
210
|
+
exports.SalesOrderResource = SalesOrderResource;
|
211
|
+
//# sourceMappingURL=SalesOrder.resource.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SalesOrder.resource.js","sourceRoot":"","sources":["../../../nodes/resources/SalesOrder.resource.ts"],"names":[],"mappings":";;;AAAA,iDAA8C;AAE9C,iDAM6B;AAE7B,MAAa,kBAAmB,SAAQ,2BAAY;IAApD;;QACE,SAAI,GAAG,YAAY,CAAC;QACpB,gBAAW,GAAG,aAAa,CAAC;QAC5B,aAAQ,GAAG,cAAc,CAAC;IA8M5B,CAAC;IA5MC,mBAAmB;QACjB,OAAO;YACL;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,0BAA0B;gBACvC,MAAM,EAAE,sBAAsB;aAC/B;YACD;gBACE,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,yBAAyB;gBACtC,MAAM,EAAE,mBAAmB;aAC5B;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,sBAAsB;gBACnC,MAAM,EAAE,sBAAsB;aAC/B;YACD;gBACE,IAAI,EAA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ACV,WAAW,EAAE,oCAAoC;qBAClD;oBACD;wBACE,WAAW,EAAE,kBAAkB;wBAC/B,IAAI,EAAE,kBAAkB;wBACxB,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,yBAAyB;qBACvC;oBACD;wBACE,WAAW,EAAE,OAAO;wBACpB,IAAI,EAAE,OAAO;wBACb,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE;4BACX,oBAAoB,EAAE,IAAI;yBAC3B;wBACD,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,2BAA2B;qBACzC;oBACD;wBACE,WAAW,EAAE,OAAO;wBACpB,IAAI,EAAE,OAAO;wBACb,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE;4BACX,oBAAoB,EAAE,IAAI;yBAC3B;wBACD,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,sBAAsB;qBACpC;oBACD;wBACE,WAAW,EAAE,iBAAiB;wBAC9B,IAAI,EAAE,iBAAiB;wBACvB,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,CAAC;wBACV,WAAW,EAAE,kBAAkB;qBAChC;oBACD;wBACE,WAAW,EAAE,YAAY;wBACzB,IAAI,EAAE,YAAY;wBAClB,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,CAAC;wBACV,WAAW,EAAE,mBAAmB;qBACjC;oBACD;wBACE,WAAW,EAAE,wBAAwB;wBACrC,IAAI,EAAE,wBAAwB;wBAC9B,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,gCAAgC;qBAC9C;oBACD,2BAAiB;iBAClB;aACF;SACF,CAAC;IACJ,CAAC;CACF;AAjND,gDAiNC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { BaseResource } from './BaseResource';
|
2
|
+
import { INodeProperties } from 'n8n-workflow';
|
3
|
+
export declare class VendorResource extends BaseResource {
|
4
|
+
name: string;
|
5
|
+
displayName: string;
|
6
|
+
endpoint: string;
|
7
|
+
getOperationOptions(): {
|
8
|
+
name: string;
|
9
|
+
value: string;
|
10
|
+
description: string;
|
11
|
+
action: string;
|
12
|
+
}[];
|
13
|
+
getFields(): INodeProperties[];
|
14
|
+
}
|
@@ -0,0 +1,415 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.VendorResource = void 0;
|
4
|
+
const BaseResource_1 = require("./BaseResource");
|
5
|
+
const Schemas_1 = require("../../utils/Schemas");
|
6
|
+
class VendorResource extends BaseResource_1.BaseResource {
|
7
|
+
constructor() {
|
8
|
+
super(...arguments);
|
9
|
+
this.name = 'vendor';
|
10
|
+
this.displayName = 'Vendor';
|
11
|
+
this.endpoint = '/contacts';
|
12
|
+
}
|
13
|
+
getOperationOptions() {
|
14
|
+
return [
|
15
|
+
{
|
16
|
+
name: 'Create',
|
17
|
+
value: 'create',
|
18
|
+
description: 'Create a new vendor',
|
19
|
+
action: 'Create a vendor',
|
20
|
+
},
|
21
|
+
{
|
22
|
+
name: 'Get',
|
23
|
+
value: 'get',
|
24
|
+
description: 'Get a vendor by ID',
|
25
|
+
action: 'Get a vendor',
|
26
|
+
},
|
27
|
+
{
|
28
|
+
name: 'Get All',
|
29
|
+
value: 'getAll',
|
30
|
+
description: 'Get all vendors',
|
31
|
+
action: 'Get all vendors',
|
32
|
+
},
|
33
|
+
{
|
34
|
+
name: 'Update',
|
35
|
+
value: 'update',
|
36
|
+
description: 'Update a vendor',
|
37
|
+
action: 'Update a vendor',
|
38
|
+
},
|
39
|
+
{
|
40
|
+
name: 'Delete',
|
41
|
+
value: 'delete',
|
42
|
+
description: 'Delete a vendor',
|
43
|
+
action: 'Delete a vendor',
|
44
|
+
},
|
45
|
+
];
|
46
|
+
}
|
47
|
+
getFields() {
|
48
|
+
return [
|
49
|
+
// Get operation
|
50
|
+
this.getIdField('get'),
|
51
|
+
// Update operation
|
52
|
+
this.getIdField('update'),
|
53
|
+
// Delete operation
|
54
|
+
this.getIdField('delete'),
|
55
|
+
// Contact name for create
|
56
|
+
{
|
57
|
+
displayName: 'Vendor Name',
|
58
|
+
name: 'contact_name',
|
59
|
+
type: 'string',
|
60
|
+
required: true,
|
61
|
+
displayOptions: {
|
62
|
+
show: {
|
63
|
+
resource: ['vendor'],
|
64
|
+
operation: ['create'],
|
65
|
+
},
|
66
|
+
},
|
67
|
+
default: '',
|
68
|
+
description: 'The name of the vendor',
|
69
|
+
},
|
70
|
+
// Hidden field to specify contact type as vendor
|
71
|
+
{
|
72
|
+
displayName: 'Contact Type',
|
73
|
+
name: 'contact_type',
|
74
|
+
type: 'hidden',
|
75
|
+
default: 'vendor',
|
76
|
+
displayOptions: {
|
77
|
+
show: {
|
78
|
+
resource: ['vendor'],
|
79
|
+
operation: ['create', 'update'],
|
80
|
+
},
|
81
|
+
},
|
82
|
+
},
|
83
|
+
// Common fields for getAll
|
84
|
+
...Schemas_1.commonFields,
|
85
|
+
// Filters for getAll with contact_type=vendor
|
86
|
+
{
|
87
|
+
...Schemas_1.filtersCollection,
|
88
|
+
displayOptions: {
|
89
|
+
show: {
|
90
|
+
resource: ['vendor'],
|
91
|
+
operation: ['getAll'],
|
92
|
+
},
|
93
|
+
},
|
94
|
+
options: [
|
95
|
+
{
|
96
|
+
displayName: 'Status',
|
97
|
+
name: 'status',
|
98
|
+
type: 'options',
|
99
|
+
options: [
|
100
|
+
{ name: 'All', value: 'Status.All' },
|
101
|
+
{ name: 'Active', value: 'Status.Active' },
|
102
|
+
{ name: 'Inactive', value: 'Status.Inactive' },
|
103
|
+
{ name: 'Duplicate', value: 'Status.Duplicate' },
|
104
|
+
{ name: 'Crm', value: 'Status.Crm' },
|
105
|
+
],
|
106
|
+
default: 'Status.All',
|
107
|
+
description: 'Filter by vendor status',
|
108
|
+
},
|
109
|
+
{
|
110
|
+
displayName: 'Search Text',
|
111
|
+
name: 'search_text',
|
112
|
+
type: 'string',
|
113
|
+
default: '',
|
114
|
+
description: 'Search vendors by name, company name, email, etc.',
|
115
|
+
},
|
116
|
+
{
|
117
|
+
displayName: 'Sort Column',
|
118
|
+
name: 'sort_column',
|
119
|
+
type: 'options',
|
120
|
+
options: [
|
121
|
+
{ name: 'Name', value: 'contact_name' },
|
122
|
+
{ name: 'Company Name', value: 'company_name' },
|
123
|
+
{ name: 'Email', value: 'email' },
|
124
|
+
{ name: 'Created Time', value: 'created_time' },
|
125
|
+
{ name: 'Last Modified Time', value: 'last_modified_time' },
|
126
|
+
],
|
127
|
+
default: 'contact_name',
|
128
|
+
description: 'Column to sort by',
|
129
|
+
},
|
130
|
+
{
|
131
|
+
displayName: 'Sort Order',
|
132
|
+
name: 'sort_order',
|
133
|
+
type: 'options',
|
134
|
+
options: [
|
135
|
+
{ name: 'Ascending', value: 'A' },
|
136
|
+
{ name: 'Descending', value: 'D' },
|
137
|
+
],
|
138
|
+
default: 'A',
|
139
|
+
description: 'Sort order',
|
140
|
+
},
|
141
|
+
],
|
142
|
+
},
|
143
|
+
// Additional fields for create/update
|
144
|
+
{
|
145
|
+
...Schemas_1.additionalFieldsCollection,
|
146
|
+
displayOptions: {
|
147
|
+
show: {
|
148
|
+
resource: ['vendor'],
|
149
|
+
operation: ['create', 'update'],
|
150
|
+
},
|
151
|
+
},
|
152
|
+
options: [
|
153
|
+
{
|
154
|
+
displayName: 'Company Name',
|
155
|
+
name: 'company_name',
|
156
|
+
type: 'string',
|
157
|
+
default: '',
|
158
|
+
description: 'Company name of the vendor',
|
159
|
+
},
|
160
|
+
{
|
161
|
+
displayName: 'Display Name',
|
162
|
+
name: 'vendor_name',
|
163
|
+
type: 'string',
|
164
|
+
default: '',
|
165
|
+
description: 'Display name of the vendor',
|
166
|
+
},
|
167
|
+
{
|
168
|
+
displayName: 'Email',
|
169
|
+
name: 'email',
|
170
|
+
type: 'string',
|
171
|
+
placeholder: 'vendor@example.com',
|
172
|
+
default: '',
|
173
|
+
description: 'Email address of the vendor',
|
174
|
+
},
|
175
|
+
{
|
176
|
+
displayName: 'Phone',
|
177
|
+
name: 'phone',
|
178
|
+
type: 'string',
|
179
|
+
default: '',
|
180
|
+
description: 'Phone number of the vendor',
|
181
|
+
},
|
182
|
+
{
|
183
|
+
displayName: 'Mobile',
|
184
|
+
name: 'mobile',
|
185
|
+
type: 'string',
|
186
|
+
default: '',
|
187
|
+
description: 'Mobile number of the vendor',
|
188
|
+
},
|
189
|
+
{
|
190
|
+
displayName: 'Website',
|
191
|
+
name: 'website',
|
192
|
+
type: 'string',
|
193
|
+
default: '',
|
194
|
+
description: 'Website URL of the vendor',
|
195
|
+
},
|
196
|
+
{
|
197
|
+
displayName: 'Currency Code',
|
198
|
+
name: 'currency_code',
|
199
|
+
type: 'string',
|
200
|
+
default: '',
|
201
|
+
description: 'Currency code (e.g., USD, EUR)',
|
202
|
+
},
|
203
|
+
{
|
204
|
+
displayName: 'Payment Terms',
|
205
|
+
name: 'payment_terms',
|
206
|
+
type: 'number',
|
207
|
+
default: 0,
|
208
|
+
description: 'Payment terms in days',
|
209
|
+
},
|
210
|
+
{
|
211
|
+
displayName: 'Billing Address',
|
212
|
+
name: 'billing_address',
|
213
|
+
type: 'collection',
|
214
|
+
placeholder: 'Add Billing Address',
|
215
|
+
default: {},
|
216
|
+
options: [
|
217
|
+
{
|
218
|
+
displayName: 'Attention',
|
219
|
+
name: 'attention',
|
220
|
+
type: 'string',
|
221
|
+
default: '',
|
222
|
+
},
|
223
|
+
{
|
224
|
+
displayName: 'Address',
|
225
|
+
name: 'address',
|
226
|
+
type: 'string',
|
227
|
+
default: '',
|
228
|
+
},
|
229
|
+
{
|
230
|
+
displayName: 'Street 2',
|
231
|
+
name: 'street2',
|
232
|
+
type: 'string',
|
233
|
+
default: '',
|
234
|
+
},
|
235
|
+
{
|
236
|
+
displayName: 'City',
|
237
|
+
name: 'city',
|
238
|
+
type: 'string',
|
239
|
+
default: '',
|
240
|
+
},
|
241
|
+
{
|
242
|
+
displayName: 'State',
|
243
|
+
name: 'state',
|
244
|
+
type: 'string',
|
245
|
+
default: '',
|
246
|
+
},
|
247
|
+
{
|
248
|
+
displayName: 'Zip Code',
|
249
|
+
name: 'zip',
|
250
|
+
type: 'string',
|
251
|
+
default: '',
|
252
|
+
},
|
253
|
+
{
|
254
|
+
displayName: 'Country',
|
255
|
+
name: 'country',
|
256
|
+
type: 'string',
|
257
|
+
default: '',
|
258
|
+
},
|
259
|
+
{
|
260
|
+
displayName: 'Fax',
|
261
|
+
name: 'fax',
|
262
|
+
type: 'string',
|
263
|
+
default: '',
|
264
|
+
},
|
265
|
+
],
|
266
|
+
},
|
267
|
+
{
|
268
|
+
displayName: 'Shipping Address',
|
269
|
+
name: 'shipping_address',
|
270
|
+
type: 'collection',
|
271
|
+
placeholder: 'Add Shipping Address',
|
272
|
+
default: {},
|
273
|
+
options: [
|
274
|
+
{
|
275
|
+
displayName: 'Attention',
|
276
|
+
name: 'attention',
|
277
|
+
type: 'string',
|
278
|
+
default: '',
|
279
|
+
},
|
280
|
+
{
|
281
|
+
displayName: 'Address',
|
282
|
+
name: 'address',
|
283
|
+
type: 'string',
|
284
|
+
default: '',
|
285
|
+
},
|
286
|
+
{
|
287
|
+
displayName: 'Street 2',
|
288
|
+
name: 'street2',
|
289
|
+
type: 'string',
|
290
|
+
default: '',
|
291
|
+
},
|
292
|
+
{
|
293
|
+
displayName: 'City',
|
294
|
+
name: 'city',
|
295
|
+
type: 'string',
|
296
|
+
default: '',
|
297
|
+
},
|
298
|
+
{
|
299
|
+
displayName: 'State',
|
300
|
+
name: 'state',
|
301
|
+
type: 'string',
|
302
|
+
default: '',
|
303
|
+
},
|
304
|
+
{
|
305
|
+
displayName: 'Zip Code',
|
306
|
+
name: 'zip',
|
307
|
+
type: 'string',
|
308
|
+
default: '',
|
309
|
+
},
|
310
|
+
{
|
311
|
+
displayName: 'Country',
|
312
|
+
name: 'country',
|
313
|
+
type: 'string',
|
314
|
+
default: '',
|
315
|
+
},
|
316
|
+
{
|
317
|
+
displayName: 'Fax',
|
318
|
+
name: 'fax',
|
319
|
+
type: 'string',
|
320
|
+
default: '',
|
321
|
+
},
|
322
|
+
],
|
323
|
+
},
|
324
|
+
{
|
325
|
+
displayName: 'Contact Persons',
|
326
|
+
name: 'contact_persons',
|
327
|
+
type: 'fixedCollection',
|
328
|
+
typeOptions: {
|
329
|
+
multipleValues: true,
|
330
|
+
},
|
331
|
+
placeholder: 'Add Contact Person',
|
332
|
+
default: {},
|
333
|
+
options: [
|
334
|
+
{
|
335
|
+
name: 'contact_person',
|
336
|
+
displayName: 'Contact Person',
|
337
|
+
values: [
|
338
|
+
{
|
339
|
+
displayName: 'Salutation',
|
340
|
+
name: 'salutation',
|
341
|
+
type: 'string',
|
342
|
+
default: '',
|
343
|
+
},
|
344
|
+
{
|
345
|
+
displayName: 'First Name',
|
346
|
+
name: 'first_name',
|
347
|
+
type: 'string',
|
348
|
+
default: '',
|
349
|
+
},
|
350
|
+
{
|
351
|
+
displayName: 'Last Name',
|
352
|
+
name: 'last_name',
|
353
|
+
type: 'string',
|
354
|
+
default: '',
|
355
|
+
},
|
356
|
+
{
|
357
|
+
displayName: 'Email',
|
358
|
+
name: 'email',
|
359
|
+
type: 'string',
|
360
|
+
default: '',
|
361
|
+
},
|
362
|
+
{
|
363
|
+
displayName: 'Phone',
|
364
|
+
name: 'phone',
|
365
|
+
type: 'string',
|
366
|
+
default: '',
|
367
|
+
},
|
368
|
+
{
|
369
|
+
displayName: 'Mobile',
|
370
|
+
name: 'mobile',
|
371
|
+
type: 'string',
|
372
|
+
default: '',
|
373
|
+
},
|
374
|
+
{
|
375
|
+
displayName: 'Is Primary Contact',
|
376
|
+
name: 'is_primary_contact',
|
377
|
+
type: 'boolean',
|
378
|
+
default: false,
|
379
|
+
},
|
380
|
+
],
|
381
|
+
},
|
382
|
+
],
|
383
|
+
},
|
384
|
+
{
|
385
|
+
displayName: 'Notes',
|
386
|
+
name: 'notes',
|
387
|
+
type: 'string',
|
388
|
+
typeOptions: {
|
389
|
+
alwaysOpenEditWindow: true,
|
390
|
+
},
|
391
|
+
default: '',
|
392
|
+
description: 'Notes about the vendor',
|
393
|
+
},
|
394
|
+
Schemas_1.customFieldsField,
|
395
|
+
],
|
396
|
+
},
|
397
|
+
// Update-specific fields
|
398
|
+
{
|
399
|
+
displayName: 'Vendor Name',
|
400
|
+
name: 'contact_name',
|
401
|
+
type: 'string',
|
402
|
+
displayOptions: {
|
403
|
+
show: {
|
404
|
+
resource: ['vendor'],
|
405
|
+
operation: ['update'],
|
406
|
+
},
|
407
|
+
},
|
408
|
+
default: '',
|
409
|
+
description: 'The name of the vendor',
|
410
|
+
},
|
411
|
+
];
|
412
|
+
}
|
413
|
+
}
|
414
|
+
exports.VendorResource = VendorResource;
|
415
|
+
//# sourceMappingURL=Vendor.resource.js.map
|