n8n-nodes-autotask 0.4.1 → 0.5.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/README.md +37 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/nodes/Autotask/Autotask.node.js +94 -74
- package/dist/nodes/Autotask/Autotask.node.js.map +1 -1
- package/dist/nodes/Autotask/AutotaskTrigger.node.d.ts +19 -0
- package/dist/nodes/Autotask/AutotaskTrigger.node.js +694 -0
- package/dist/nodes/Autotask/AutotaskTrigger.node.js.map +1 -0
- package/dist/nodes/Autotask/constants/entities.js +18 -9
- package/dist/nodes/Autotask/constants/entities.js.map +1 -1
- package/dist/nodes/Autotask/helpers/cache/service.js +2 -2
- package/dist/nodes/Autotask/helpers/cache/service.js.map +1 -1
- package/dist/nodes/Autotask/helpers/entity/api.js +4 -0
- package/dist/nodes/Autotask/helpers/entity/api.js.map +1 -1
- package/dist/nodes/Autotask/helpers/entity-values/helpers.d.ts +1 -1
- package/dist/nodes/Autotask/helpers/entity-values/helpers.js +2 -2
- package/dist/nodes/Autotask/helpers/entity-values/helpers.js.map +1 -1
- package/dist/nodes/Autotask/helpers/entity-values/index.d.ts +0 -2
- package/dist/nodes/Autotask/helpers/entity-values/index.js +1 -4
- package/dist/nodes/Autotask/helpers/entity-values/index.js.map +1 -1
- package/dist/nodes/Autotask/helpers/entity-values/value-helper.js +16 -17
- package/dist/nodes/Autotask/helpers/entity-values/value-helper.js.map +1 -1
- package/dist/nodes/Autotask/helpers/webhook/batchTypes.d.ts +12 -0
- package/dist/nodes/Autotask/helpers/webhook/batchTypes.js +3 -0
- package/dist/nodes/Autotask/helpers/webhook/batchTypes.js.map +1 -0
- package/dist/nodes/Autotask/helpers/webhook/fieldConfiguration.d.ts +20 -0
- package/dist/nodes/Autotask/helpers/webhook/fieldConfiguration.js +117 -0
- package/dist/nodes/Autotask/helpers/webhook/fieldConfiguration.js.map +1 -0
- package/dist/nodes/Autotask/helpers/webhook/fields.d.ts +10 -0
- package/dist/nodes/Autotask/helpers/webhook/fields.js +148 -0
- package/dist/nodes/Autotask/helpers/webhook/fields.js.map +1 -0
- package/dist/nodes/Autotask/helpers/webhook/resources.d.ts +22 -0
- package/dist/nodes/Autotask/helpers/webhook/resources.js +192 -0
- package/dist/nodes/Autotask/helpers/webhook/resources.js.map +1 -0
- package/dist/nodes/Autotask/helpers/webhook/signature.d.ts +2 -0
- package/dist/nodes/Autotask/helpers/webhook/signature.js +121 -0
- package/dist/nodes/Autotask/helpers/webhook/signature.js.map +1 -0
- package/dist/nodes/Autotask/helpers/webhook/urls.d.ts +19 -0
- package/dist/nodes/Autotask/helpers/webhook/urls.js +140 -0
- package/dist/nodes/Autotask/helpers/webhook/urls.js.map +1 -0
- package/dist/nodes/Autotask/operations/base/getEntityInfo.operation.d.ts +2 -3
- package/dist/nodes/Autotask/operations/base/getEntityInfo.operation.js +1 -1
- package/dist/nodes/Autotask/operations/base/getEntityInfo.operation.js.map +1 -1
- package/dist/nodes/Autotask/operations/common/entityInfo.execute.js +1 -1
- package/dist/nodes/Autotask/operations/common/entityInfo.execute.js.map +1 -1
- package/dist/nodes/Autotask/resources/companyWebhooks/description.d.ts +2 -0
- package/dist/nodes/Autotask/resources/companyWebhooks/description.js +84 -0
- package/dist/nodes/Autotask/resources/companyWebhooks/description.js.map +1 -0
- package/dist/nodes/Autotask/resources/companyWebhooks/execute.d.ts +2 -0
- package/dist/nodes/Autotask/resources/companyWebhooks/execute.js +66 -0
- package/dist/nodes/Autotask/resources/companyWebhooks/execute.js.map +1 -0
- package/dist/nodes/Autotask/resources/companyWebhooks/index.d.ts +2 -0
- package/dist/nodes/Autotask/resources/companyWebhooks/index.js +19 -0
- package/dist/nodes/Autotask/resources/companyWebhooks/index.js.map +1 -0
- package/dist/nodes/Autotask/resources/configurationItemWebhooks/description.d.ts +2 -0
- package/dist/nodes/Autotask/resources/configurationItemWebhooks/description.js +84 -0
- package/dist/nodes/Autotask/resources/configurationItemWebhooks/description.js.map +1 -0
- package/dist/nodes/Autotask/resources/configurationItemWebhooks/execute.d.ts +2 -0
- package/dist/nodes/Autotask/resources/configurationItemWebhooks/execute.js +66 -0
- package/dist/nodes/Autotask/resources/configurationItemWebhooks/execute.js.map +1 -0
- package/dist/nodes/Autotask/resources/configurationItemWebhooks/index.d.ts +2 -0
- package/dist/nodes/Autotask/resources/configurationItemWebhooks/index.js +19 -0
- package/dist/nodes/Autotask/resources/configurationItemWebhooks/index.js.map +1 -0
- package/dist/nodes/Autotask/resources/contactWebhooks/description.d.ts +2 -0
- package/dist/nodes/Autotask/resources/contactWebhooks/description.js +84 -0
- package/dist/nodes/Autotask/resources/contactWebhooks/description.js.map +1 -0
- package/dist/nodes/Autotask/resources/contactWebhooks/execute.d.ts +2 -0
- package/dist/nodes/Autotask/resources/contactWebhooks/execute.js +66 -0
- package/dist/nodes/Autotask/resources/contactWebhooks/execute.js.map +1 -0
- package/dist/nodes/Autotask/resources/contactWebhooks/index.d.ts +2 -0
- package/dist/nodes/Autotask/resources/contactWebhooks/index.js +19 -0
- package/dist/nodes/Autotask/resources/contactWebhooks/index.js.map +1 -0
- package/dist/nodes/Autotask/resources/definitions.js +91 -71
- package/dist/nodes/Autotask/resources/definitions.js.map +1 -1
- package/dist/nodes/Autotask/resources/searchFilter/execute.js +1 -1
- package/dist/nodes/Autotask/resources/ticketNoteWebhooks/description.d.ts +2 -0
- package/dist/nodes/Autotask/resources/ticketNoteWebhooks/description.js +84 -0
- package/dist/nodes/Autotask/resources/ticketNoteWebhooks/description.js.map +1 -0
- package/dist/nodes/Autotask/resources/ticketNoteWebhooks/execute.d.ts +2 -0
- package/dist/nodes/Autotask/resources/ticketNoteWebhooks/execute.js +66 -0
- package/dist/nodes/Autotask/resources/ticketNoteWebhooks/execute.js.map +1 -0
- package/dist/nodes/Autotask/resources/ticketNoteWebhooks/index.d.ts +2 -0
- package/dist/nodes/Autotask/resources/ticketNoteWebhooks/index.js +19 -0
- package/dist/nodes/Autotask/resources/ticketNoteWebhooks/index.js.map +1 -0
- package/dist/nodes/Autotask/types/webhook.d.ts +85 -0
- package/dist/nodes/Autotask/types/webhook.js +23 -0
- package/dist/nodes/Autotask/types/webhook.js.map +1 -0
- package/dist/package.json +3 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -12
- package/dist/nodes/Autotask/helpers/entity-values/transformers.d.ts +0 -10
- package/dist/nodes/Autotask/helpers/entity-values/transformers.js +0 -88
- package/dist/nodes/Autotask/helpers/entity-values/transformers.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# n8n-nodes-autotask
|
|
2
2
|
|
|
3
|
-

|
|
4
4
|

|
|
5
5
|
|
|
6
6
|
This is an n8n community node for integrating with Autotask PSA. It provides a comprehensive set of operations to interact with Autotask entities through their REST API.
|
|
@@ -62,6 +62,7 @@ The node supports the following Autotask resources:
|
|
|
62
62
|
| Company Alert | Manage alerts associated with companies |
|
|
63
63
|
| Company Location | Manage locations for companies |
|
|
64
64
|
| Company Note | Manage notes attached to companies |
|
|
65
|
+
| Company Webhook | Manage webhooks for company events |
|
|
65
66
|
| Configuration Item | Manage configuration items (CIs) for companies |
|
|
66
67
|
| Configuration Item Billing Product Association | Manage product associations for configuration items |
|
|
67
68
|
| Configuration Item Category | Manage categories for configuration items |
|
|
@@ -71,7 +72,9 @@ The node supports the following Autotask resources:
|
|
|
71
72
|
| Configuration Item Related Item | Manage related items for configuration items |
|
|
72
73
|
| Configuration Item SSL Subject Alternative Name | Manage SSL alternative names for configuration items |
|
|
73
74
|
| Configuration Item Type | Manage types for configuration items |
|
|
75
|
+
| Configuration Item Webhook | Manage webhooks for configuration item events |
|
|
74
76
|
| Contact | Manage contacts associated with companies |
|
|
77
|
+
| Contact Webhook | Manage webhooks for contact events |
|
|
75
78
|
| Contract | Manage contracts for companies |
|
|
76
79
|
| Contract Blocks | Manage block hour contracts |
|
|
77
80
|
| Contract Block Hour Factors | Manage hour factors for block hour contracts |
|
|
@@ -99,6 +102,7 @@ The node supports the following Autotask resources:
|
|
|
99
102
|
| Ticket | Manage service tickets |
|
|
100
103
|
| Ticket History | View historical changes to tickets |
|
|
101
104
|
| Ticket Note | Manage notes attached to tickets |
|
|
105
|
+
| Ticket Note Webhook | Manage webhooks for ticket note events |
|
|
102
106
|
| Time Entry | Manage time entries for billing |
|
|
103
107
|
|
|
104
108
|
### Operations
|
|
@@ -132,6 +136,24 @@ For most resources, the following operations are available:
|
|
|
132
136
|
- **Get Entity Info**: Retrieve metadata about the entity
|
|
133
137
|
- **Get Field Info**: Retrieve field definitions for the selected entity
|
|
134
138
|
|
|
139
|
+
For webhook resources (Company Webhook, Contact Webhook, Configuration Item Webhook, Ticket Note Webhook), the following operations are available:
|
|
140
|
+
- **Get**: Retrieve a single webhook by ID
|
|
141
|
+
- **Get Many**: Retrieve multiple webhooks with basic filtering
|
|
142
|
+
- **Delete**: Remove a webhook
|
|
143
|
+
|
|
144
|
+
### Webhook Trigger
|
|
145
|
+
|
|
146
|
+
The node includes an Autotask Trigger node that can receive webhook events from Autotask. The trigger supports:
|
|
147
|
+
|
|
148
|
+
- Events for multiple entity types (Companies, Contacts, Tickets, Configuration Items, Ticket Notes)
|
|
149
|
+
- Create, Update, and Delete events
|
|
150
|
+
- Field selection for webhook payloads (specify which fields to include)
|
|
151
|
+
- Resource exclusion (exclude specific resources from triggering the workflow)
|
|
152
|
+
- Email notifications for webhook delivery failures
|
|
153
|
+
- Threshold notifications for monitoring webhook performance
|
|
154
|
+
- Automatic webhook registration and cleanup
|
|
155
|
+
- Secure payload verification with HMAC signatures
|
|
156
|
+
|
|
135
157
|
### Advanced Features
|
|
136
158
|
|
|
137
159
|
- **Resource Mapping**: Dynamically map fields based on entity definitions
|
|
@@ -263,6 +285,20 @@ Many Autotask entities have parent-child relationships (e.g., Companies and Cont
|
|
|
263
285
|
- First node: Get or create the Company
|
|
264
286
|
- Second node: Create a Contact with the Company ID
|
|
265
287
|
|
|
288
|
+
### Example: Setting Up a Webhook Trigger
|
|
289
|
+
|
|
290
|
+
1. Add an **Autotask Trigger** node to your workflow
|
|
291
|
+
2. Select the entity type to monitor (Companies, Contacts, Tickets, etc.)
|
|
292
|
+
3. Select the events to subscribe to (Create, Update, Delete)
|
|
293
|
+
4. Configure the webhook URL (n8n will handle this automatically)
|
|
294
|
+
5. Optionally specify fields to include in the webhook payload
|
|
295
|
+
6. Optionally exclude specific resources from triggering the workflow
|
|
296
|
+
7. Configure email notifications for webhook delivery failures if needed
|
|
297
|
+
8. Save and activate the workflow
|
|
298
|
+
9. The node will automatically register the webhook with Autotask
|
|
299
|
+
10. When events occur in Autotask, they will trigger your workflow
|
|
300
|
+
11. When the workflow is deactivated, the webhook will be automatically removed
|
|
301
|
+
|
|
266
302
|
## Configuration
|
|
267
303
|
|
|
268
304
|
### Caching Options
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AutotaskApi = exports.AutotaskTrigger = exports.Autotask = void 0;
|
|
4
|
+
const Autotask_node_1 = require("./nodes/Autotask/Autotask.node");
|
|
5
|
+
Object.defineProperty(exports, "Autotask", { enumerable: true, get: function () { return Autotask_node_1.Autotask; } });
|
|
6
|
+
const AutotaskTrigger_node_1 = require("./nodes/Autotask/AutotaskTrigger.node");
|
|
7
|
+
Object.defineProperty(exports, "AutotaskTrigger", { enumerable: true, get: function () { return AutotaskTrigger_node_1.AutotaskTrigger; } });
|
|
8
|
+
const AutotaskApi_credentials_1 = require("./credentials/AutotaskApi.credentials");
|
|
9
|
+
Object.defineProperty(exports, "AutotaskApi", { enumerable: true, get: function () { return AutotaskApi_credentials_1.AutotaskApi; } });
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,kEAA0D;AAKzD,yFALQ,wBAAQ,OAKR;AAJT,gFAAwE;AAKvE,gGALQ,sCAAe,OAKR;AAJhB,mFAAoE;AAKnE,4FALQ,qCAAW,OAKR"}
|
|
@@ -7,32 +7,36 @@ const execute_2 = require("./resources/projects/execute");
|
|
|
7
7
|
const execute_3 = require("./resources/companies/execute");
|
|
8
8
|
const execute_4 = require("./resources/companyAlerts/execute");
|
|
9
9
|
const execute_5 = require("./resources/contacts/execute");
|
|
10
|
-
const execute_6 = require("./resources/
|
|
11
|
-
const execute_7 = require("./resources/
|
|
12
|
-
const execute_8 = require("./resources/
|
|
13
|
-
const execute_9 = require("./resources/
|
|
14
|
-
const execute_10 = require("./resources/
|
|
15
|
-
const execute_11 = require("./resources/
|
|
16
|
-
const execute_12 = require("./resources/
|
|
17
|
-
const execute_13 = require("./resources/
|
|
18
|
-
const execute_14 = require("./resources/
|
|
19
|
-
const execute_15 = require("./resources/
|
|
20
|
-
const execute_16 = require("./resources/
|
|
21
|
-
const execute_17 = require("./resources/
|
|
22
|
-
const execute_18 = require("./resources/
|
|
23
|
-
const execute_19 = require("./resources/
|
|
24
|
-
const execute_20 = require("./resources/
|
|
25
|
-
const execute_21 = require("./resources/
|
|
26
|
-
const execute_22 = require("./resources/
|
|
27
|
-
const execute_23 = require("./resources/
|
|
28
|
-
const execute_24 = require("./resources/
|
|
29
|
-
const execute_25 = require("./resources/
|
|
30
|
-
const execute_26 = require("./resources/
|
|
31
|
-
const execute_27 = require("./resources/
|
|
32
|
-
const execute_28 = require("./resources/
|
|
33
|
-
const execute_29 = require("./resources/
|
|
34
|
-
const execute_30 = require("./resources/
|
|
35
|
-
const execute_31 = require("./resources/
|
|
10
|
+
const execute_6 = require("./resources/contactWebhooks/execute");
|
|
11
|
+
const execute_7 = require("./resources/companyLocations/execute");
|
|
12
|
+
const execute_8 = require("./resources/resources/execute");
|
|
13
|
+
const execute_9 = require("./resources/companyNotes/execute");
|
|
14
|
+
const execute_10 = require("./resources/companyWebhooks/execute");
|
|
15
|
+
const execute_11 = require("./resources/configurationItemWebhooks/execute");
|
|
16
|
+
const execute_12 = require("./resources/ticketNoteWebhooks/execute");
|
|
17
|
+
const execute_13 = require("./resources/projectNotes/execute");
|
|
18
|
+
const execute_14 = require("./resources/projectPhases/execute");
|
|
19
|
+
const execute_15 = require("./resources/projectCharges/execute");
|
|
20
|
+
const execute_16 = require("./resources/products/execute");
|
|
21
|
+
const execute_17 = require("./resources/tickets/execute");
|
|
22
|
+
const execute_18 = require("./resources/ticketNotes/execute");
|
|
23
|
+
const execute_19 = require("./resources/ticketHistories/execute");
|
|
24
|
+
const execute_20 = require("./resources/timeEntries/execute");
|
|
25
|
+
const execute_21 = require("./resources/billingCodes/execute");
|
|
26
|
+
const execute_22 = require("./resources/holidaySets/execute");
|
|
27
|
+
const execute_23 = require("./resources/holidays/execute");
|
|
28
|
+
const execute_24 = require("./resources/serviceCalls/execute");
|
|
29
|
+
const execute_25 = require("./resources/services/execute");
|
|
30
|
+
const execute_26 = require("./resources/contracts/execute");
|
|
31
|
+
const execute_27 = require("./resources/contractCharges/execute");
|
|
32
|
+
const execute_28 = require("./resources/contractNotes/execute");
|
|
33
|
+
const execute_29 = require("./resources/contractServices/execute");
|
|
34
|
+
const execute_30 = require("./resources/contractMilestones/execute");
|
|
35
|
+
const execute_31 = require("./resources/contractServiceUnits/execute");
|
|
36
|
+
const execute_32 = require("./resources/contractBlocks/execute");
|
|
37
|
+
const execute_33 = require("./resources/contractBlockHourFactors/execute");
|
|
38
|
+
const execute_34 = require("./resources/contractRates/execute");
|
|
39
|
+
const execute_35 = require("./resources/opportunities/execute");
|
|
36
40
|
const searchFilter_1 = require("./resources/searchFilter");
|
|
37
41
|
const resourceMapper_1 = require("./helpers/resourceMapper");
|
|
38
42
|
const definitions_1 = require("./resources/definitions");
|
|
@@ -68,28 +72,32 @@ const description_29 = require("./resources/contractBlockHourFactors/description
|
|
|
68
72
|
const description_30 = require("./resources/contractRates/description");
|
|
69
73
|
const description_31 = require("./resources/opportunities/description");
|
|
70
74
|
const resource_operations_helper_1 = require("./helpers/resource-operations.helper");
|
|
71
|
-
const
|
|
75
|
+
const execute_36 = require("./resources/surveys/execute");
|
|
72
76
|
const description_32 = require("./resources/surveys/description");
|
|
73
|
-
const
|
|
77
|
+
const execute_37 = require("./resources/surveyResults/execute");
|
|
74
78
|
const description_33 = require("./resources/surveyResults/description");
|
|
75
|
-
const
|
|
79
|
+
const execute_38 = require("./resources/configurationItems/execute");
|
|
76
80
|
const description_34 = require("./resources/configurationItems/description");
|
|
77
|
-
const
|
|
81
|
+
const execute_39 = require("./resources/configurationItemTypes/execute");
|
|
78
82
|
const description_35 = require("./resources/configurationItemTypes/description");
|
|
79
|
-
const
|
|
83
|
+
const execute_40 = require("./resources/configurationItemCategories/execute");
|
|
80
84
|
const description_36 = require("./resources/configurationItemCategories/description");
|
|
81
|
-
const
|
|
85
|
+
const execute_41 = require("./resources/configurationItemCategoryUdfAssociation/execute");
|
|
82
86
|
const description_37 = require("./resources/configurationItemCategoryUdfAssociation/description");
|
|
83
|
-
const
|
|
87
|
+
const execute_42 = require("./resources/configurationItemNotes/execute");
|
|
84
88
|
const description_38 = require("./resources/configurationItemNotes/description");
|
|
85
|
-
const
|
|
89
|
+
const execute_43 = require("./resources/configurationItemRelatedItems/execute");
|
|
86
90
|
const description_39 = require("./resources/configurationItemRelatedItems/description");
|
|
87
|
-
const
|
|
91
|
+
const execute_44 = require("./resources/configurationItemDnsRecords/execute");
|
|
88
92
|
const description_40 = require("./resources/configurationItemDnsRecords/description");
|
|
89
|
-
const
|
|
93
|
+
const execute_45 = require("./resources/configurationItemBillingProductAssociations/execute");
|
|
90
94
|
const description_41 = require("./resources/configurationItemBillingProductAssociations/description");
|
|
91
|
-
const
|
|
95
|
+
const execute_46 = require("./resources/configurationItemSslSubjectAlternativeNames/execute");
|
|
92
96
|
const description_42 = require("./resources/configurationItemSslSubjectAlternativeNames/description");
|
|
97
|
+
const companyWebhooks_1 = require("./resources/companyWebhooks");
|
|
98
|
+
const configurationItemWebhooks_1 = require("./resources/configurationItemWebhooks");
|
|
99
|
+
const contactWebhooks_1 = require("./resources/contactWebhooks");
|
|
100
|
+
const ticketNoteWebhooks_1 = require("./resources/ticketNoteWebhooks");
|
|
93
101
|
class Autotask {
|
|
94
102
|
constructor() {
|
|
95
103
|
this.description = {
|
|
@@ -124,6 +132,8 @@ class Autotask {
|
|
|
124
132
|
...(0, resource_operations_helper_1.addOperationsToResource)(description_3.companyFields, { resourceName: 'company' }),
|
|
125
133
|
...(0, resource_operations_helper_1.addOperationsToResource)(description_4.companyAlertFields, { resourceName: 'companyAlert' }),
|
|
126
134
|
...(0, resource_operations_helper_1.addOperationsToResource)(description_8.companyNoteFields, { resourceName: 'companyNote' }),
|
|
135
|
+
...(0, resource_operations_helper_1.addOperationsToResource)(companyWebhooks_1.companyWebhookFields, { resourceName: 'companyWebhook' }),
|
|
136
|
+
...(0, resource_operations_helper_1.addOperationsToResource)(configurationItemWebhooks_1.configurationItemWebhookFields, { resourceName: 'configurationItemWebhook' }),
|
|
127
137
|
...(0, resource_operations_helper_1.addOperationsToResource)(description_34.configurationItemFields, { resourceName: 'configurationItems' }),
|
|
128
138
|
...(0, resource_operations_helper_1.addOperationsToResource)(description_36.configurationItemCategoryFields, { resourceName: 'configurationItemCategories' }),
|
|
129
139
|
...(0, resource_operations_helper_1.addOperationsToResource)(description_37.configurationItemCategoryUdfAssociationFields, { resourceName: 'configurationItemCategoryUdfAssociation' }),
|
|
@@ -134,6 +144,7 @@ class Autotask {
|
|
|
134
144
|
...(0, resource_operations_helper_1.addOperationsToResource)(description_41.configurationItemBillingProductAssociationFields, { resourceName: 'configurationItemBillingProductAssociation' }),
|
|
135
145
|
...(0, resource_operations_helper_1.addOperationsToResource)(description_42.configurationItemSslSubjectAlternativeNameFields, { resourceName: 'configurationItemSslSubjectAlternativeName' }),
|
|
136
146
|
...(0, resource_operations_helper_1.addOperationsToResource)(description_5.contactFields, { resourceName: 'contact' }),
|
|
147
|
+
...(0, resource_operations_helper_1.addOperationsToResource)(contactWebhooks_1.contactWebhookFields, { resourceName: 'contactWebhook' }),
|
|
137
148
|
...(0, resource_operations_helper_1.addOperationsToResource)(description_6.companyLocationFields, { resourceName: 'companyLocation' }),
|
|
138
149
|
...(0, resource_operations_helper_1.addOperationsToResource)(description_22.contractFields, { resourceName: 'contract' }),
|
|
139
150
|
...(0, resource_operations_helper_1.addOperationsToResource)(description_23.contractChargeFields, { resourceName: 'contractCharge' }),
|
|
@@ -158,6 +169,7 @@ class Autotask {
|
|
|
158
169
|
...(0, resource_operations_helper_1.addOperationsToResource)(description_21.serviceFields, { resourceName: 'service' }),
|
|
159
170
|
...(0, resource_operations_helper_1.addOperationsToResource)(description_13.ticketFields, { resourceName: 'ticket' }),
|
|
160
171
|
...(0, resource_operations_helper_1.addOperationsToResource)(description_15.ticketNoteFields, { resourceName: 'ticketNote' }),
|
|
172
|
+
...(0, resource_operations_helper_1.addOperationsToResource)(ticketNoteWebhooks_1.ticketNoteWebhookFields, { resourceName: 'ticketNoteWebhook' }),
|
|
161
173
|
...(0, resource_operations_helper_1.addOperationsToResource)(description_14.ticketHistoryFields, { resourceName: 'TicketHistory' }),
|
|
162
174
|
...(0, resource_operations_helper_1.addOperationsToResource)(description_16.timeEntryFields, { resourceName: 'timeEntry' }),
|
|
163
175
|
...(0, resource_operations_helper_1.addOperationsToResource)(description_17.billingCodeFields, { resourceName: 'billingCode' }),
|
|
@@ -195,91 +207,99 @@ class Autotask {
|
|
|
195
207
|
const resource = this.getNodeParameter('resource', 0);
|
|
196
208
|
switch (resource) {
|
|
197
209
|
case 'billingCode':
|
|
198
|
-
return
|
|
210
|
+
return execute_21.executeBillingCodeOperation.call(this);
|
|
199
211
|
case 'company':
|
|
200
212
|
return execute_3.executeCompanyOperation.call(this);
|
|
201
213
|
case 'companyAlert':
|
|
202
214
|
return execute_4.executeCompanyAlertOperation.call(this);
|
|
203
215
|
case 'companyNote':
|
|
204
|
-
return
|
|
216
|
+
return execute_9.executeCompanyNoteOperation.call(this);
|
|
217
|
+
case 'companyWebhook':
|
|
218
|
+
return execute_10.executeCompanyWebhookOperation.call(this);
|
|
219
|
+
case 'configurationItemWebhook':
|
|
220
|
+
return execute_11.executeConfigurationItemWebhookOperation.call(this);
|
|
205
221
|
case 'configurationItems':
|
|
206
|
-
return
|
|
222
|
+
return execute_38.executeConfigurationItemOperation.call(this);
|
|
207
223
|
case 'configurationItemCategories':
|
|
208
|
-
return
|
|
224
|
+
return execute_40.executeConfigurationItemCategoryOperation.call(this);
|
|
209
225
|
case 'configurationItemCategoryUdfAssociation':
|
|
210
|
-
return
|
|
226
|
+
return execute_41.executeConfigurationItemCategoryUdfAssociationOperation.call(this);
|
|
211
227
|
case 'configurationItemNote':
|
|
212
|
-
return
|
|
228
|
+
return execute_42.executeConfigurationItemNoteOperation.call(this);
|
|
213
229
|
case 'configurationItemTypes':
|
|
214
|
-
return
|
|
230
|
+
return execute_39.executeConfigurationItemTypeOperation.call(this);
|
|
215
231
|
case 'configurationItemRelatedItem':
|
|
216
|
-
return
|
|
232
|
+
return execute_43.executeConfigurationItemRelatedItemOperation.call(this);
|
|
217
233
|
case 'configurationItemDnsRecord':
|
|
218
|
-
return
|
|
234
|
+
return execute_44.executeConfigurationItemDnsRecordOperation.call(this);
|
|
219
235
|
case 'configurationItemBillingProductAssociation':
|
|
220
|
-
return
|
|
236
|
+
return execute_45.executeConfigurationItemBillingProductAssociationOperation.call(this);
|
|
221
237
|
case 'configurationItemSslSubjectAlternativeName':
|
|
222
|
-
return
|
|
238
|
+
return execute_46.executeConfigurationItemSslSubjectAlternativeNameOperation.call(this);
|
|
223
239
|
case 'contact':
|
|
224
240
|
return execute_5.executeContactOperation.call(this);
|
|
241
|
+
case 'contactWebhook':
|
|
242
|
+
return execute_6.executeContactWebhookOperation.call(this);
|
|
225
243
|
case 'companyLocation':
|
|
226
|
-
return
|
|
244
|
+
return execute_7.executeCompanyLocationOperation.call(this);
|
|
227
245
|
case 'contract':
|
|
228
|
-
return
|
|
246
|
+
return execute_26.executeContractOperation.call(this);
|
|
229
247
|
case 'contractCharge':
|
|
230
|
-
return
|
|
248
|
+
return execute_27.executeContractChargeOperation.call(this);
|
|
231
249
|
case 'contractNote':
|
|
232
|
-
return
|
|
250
|
+
return execute_28.executeContractNoteOperation.call(this);
|
|
233
251
|
case 'contractService':
|
|
234
|
-
return
|
|
252
|
+
return execute_29.executeContractServiceOperation.call(this);
|
|
235
253
|
case 'contractMilestone':
|
|
236
|
-
return
|
|
254
|
+
return execute_30.executeContractMilestoneOperation.call(this);
|
|
237
255
|
case 'contractServiceUnit':
|
|
238
|
-
return
|
|
256
|
+
return execute_31.executeContractServiceUnitOperation.call(this);
|
|
239
257
|
case 'contractBlock':
|
|
240
|
-
return
|
|
258
|
+
return execute_32.executeContractBlockOperation.call(this);
|
|
241
259
|
case 'contractBlockHourFactor':
|
|
242
|
-
return
|
|
260
|
+
return execute_33.executeContractBlockHourFactorOperation.call(this);
|
|
243
261
|
case 'contractRate':
|
|
244
|
-
return
|
|
262
|
+
return execute_34.executeContractRateOperation.call(this);
|
|
245
263
|
case 'holidaySet':
|
|
246
|
-
return
|
|
264
|
+
return execute_22.executeHolidaySetOperation.call(this);
|
|
247
265
|
case 'holiday':
|
|
248
|
-
return
|
|
266
|
+
return execute_23.executeHolidayOperation.call(this);
|
|
249
267
|
case 'opportunity':
|
|
250
|
-
return
|
|
268
|
+
return execute_35.executeOpportunityOperation.call(this);
|
|
251
269
|
case 'product':
|
|
252
|
-
return
|
|
270
|
+
return execute_16.executeProductOperation.call(this);
|
|
253
271
|
case 'project':
|
|
254
272
|
return execute_2.executeProjectOperation.call(this);
|
|
255
273
|
case 'projectCharge':
|
|
256
|
-
return
|
|
274
|
+
return execute_15.executeProjectChargeOperation.call(this);
|
|
257
275
|
case 'projectNote':
|
|
258
|
-
return
|
|
276
|
+
return execute_13.executeProjectNoteOperation.call(this);
|
|
259
277
|
case 'phase':
|
|
260
|
-
return
|
|
278
|
+
return execute_14.executeProjectPhaseOperation.call(this);
|
|
261
279
|
case 'task':
|
|
262
280
|
return execute_1.executeProjectTaskOperation.call(this);
|
|
263
281
|
case 'resource':
|
|
264
|
-
return
|
|
282
|
+
return execute_8.executeResourceOperation.call(this);
|
|
265
283
|
case 'searchFilter':
|
|
266
284
|
return searchFilter_1.build.call(this);
|
|
267
285
|
case 'serviceCall':
|
|
268
|
-
return
|
|
286
|
+
return execute_24.executeServiceCallOperation.call(this);
|
|
269
287
|
case 'service':
|
|
270
|
-
return
|
|
288
|
+
return execute_25.executeServiceOperation.call(this);
|
|
271
289
|
case 'ticket':
|
|
272
|
-
return
|
|
290
|
+
return execute_17.executeTicketOperation.call(this);
|
|
273
291
|
case 'ticketNote':
|
|
274
|
-
return
|
|
292
|
+
return execute_18.executeTicketNoteOperation.call(this);
|
|
275
293
|
case 'TicketHistory':
|
|
276
|
-
return
|
|
294
|
+
return execute_19.executeTicketHistoryOperation.call(this);
|
|
277
295
|
case 'timeEntry':
|
|
278
|
-
return
|
|
296
|
+
return execute_20.executeTimeEntryOperation.call(this);
|
|
279
297
|
case 'survey':
|
|
280
|
-
return
|
|
298
|
+
return execute_36.executeSurveyOperation.call(this);
|
|
281
299
|
case 'surveyResults':
|
|
282
|
-
return
|
|
300
|
+
return execute_37.executeSurveyResultsOperation.call(this);
|
|
301
|
+
case 'ticketNoteWebhook':
|
|
302
|
+
return execute_12.executeTicketNoteWebhookOperation.call(this);
|
|
283
303
|
default:
|
|
284
304
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Resource ${resource} is not supported`);
|
|
285
305
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Autotask.node.js","sourceRoot":"","sources":["../../../nodes/Autotask/Autotask.node.ts"],"names":[],"mappings":";;;AAAA,+CAIsB;AAQtB,8DAA+E;AAC/E,0DAAuE;AACvE,2DAAwE;AACxE,+DAAiF;AACjF,0DAAuE;AACvE,kEAAuF;AACvF,2DAAyE;AACzE,8DAA+E;AAC/E,
|
|
1
|
+
{"version":3,"file":"Autotask.node.js","sourceRoot":"","sources":["../../../nodes/Autotask/Autotask.node.ts"],"names":[],"mappings":";;;AAAA,+CAIsB;AAQtB,8DAA+E;AAC/E,0DAAuE;AACvE,2DAAwE;AACxE,+DAAiF;AACjF,0DAAuE;AACvE,iEAAqF;AACrF,kEAAuF;AACvF,2DAAyE;AACzE,8DAA+E;AAC/E,kEAAqF;AACrF,4EAAyG;AACzG,qEAA2F;AAC3F,+DAA+E;AAC/E,gEAAiF;AACjF,iEAAmF;AACnF,2DAAuE;AACvE,0DAAqE;AACrE,8DAA6E;AAC7E,kEAAoF;AACpF,8DAA4E;AAC5E,+DAA+E;AAC/E,8DAA6E;AAC7E,2DAAuE;AACvE,+DAA+E;AAC/E,2DAAuE;AACvE,4DAAyE;AACzE,kEAAqF;AACrF,gEAAiF;AACjF,mEAAuF;AACvF,qEAA2F;AAC3F,uEAA+F;AAC/F,iEAAmF;AACnF,2EAAuG;AACvG,gEAAiF;AACjF,gEAAgF;AAChF,2DAAkI;AAClI,6DAAmE;AACnE,yDAA+D;AAC/D,sEAAyE;AACzE,kEAAiE;AACjE,mEAAkE;AAClE,uEAA2E;AAC3E,kEAAiE;AACjE,0EAAiF;AACjF,mEAAmE;AACnE,sEAAyE;AACzE,sEAAyE;AACzE,wEAA2E;AAC3E,yEAA6E;AAC7E,mEAAiE;AACjE,kEAA+D;AAC/D,0EAA8E;AAC9E,sEAAuE;AACvE,sEAAsE;AACtE,uEAAyE;AACzE,sEAAuE;AACvE,mEAAiE;AACjE,uEAAyE;AACzE,mEAAiE;AACjE,oEAAmE;AACnE,0EAA+E;AAC/E,wEAA2E;AAC3E,2EAAiF;AACjF,6EAAqF;AACrF,+EAAyF;AACzF,yEAA6E;AAC7E,mFAAiG;AACjG,wEAA2E;AAC3E,wEAA0E;AAC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IHookFunctions, ILoadOptionsFunctions, INodePropertyOptions } from 'n8n-workflow';
|
|
2
|
+
export declare class AutotaskTrigger implements INodeType {
|
|
3
|
+
description: INodeTypeDescription;
|
|
4
|
+
methods: {
|
|
5
|
+
loadOptions: {
|
|
6
|
+
getWebhookFields(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
7
|
+
getResources(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
webhookMethods: {
|
|
11
|
+
default: {
|
|
12
|
+
checkExists(this: IHookFunctions): Promise<boolean>;
|
|
13
|
+
create(this: IHookFunctions): Promise<boolean>;
|
|
14
|
+
delete(this: IHookFunctions): Promise<boolean>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
webhook(this: IWebhookFunctions): Promise<IWebhookResponseData>;
|
|
18
|
+
setupWebhook(this: IWebhookFunctions): Promise<IWebhookResponseData>;
|
|
19
|
+
}
|