n8n-nodes-autotask 2.5.0 → 2.5.2
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/dist/credentials/AutotaskApi.credentials.js +292 -290
- package/dist/credentials/AutotaskApi.credentials.js.map +1 -1
- package/dist/nodes/Autotask/Autotask.node.js +119 -115
- package/dist/nodes/Autotask/Autotask.node.js.map +1 -1
- package/dist/nodes/Autotask/AutotaskAiTools.node.js +80 -74
- package/dist/nodes/Autotask/AutotaskAiTools.node.js.map +1 -1
- package/dist/nodes/Autotask/AutotaskTrigger.node.d.ts.map +1 -1
- package/dist/nodes/Autotask/AutotaskTrigger.node.js +616 -609
- package/dist/nodes/Autotask/AutotaskTrigger.node.js.map +1 -1
- package/dist/nodes/Autotask/ai-tools/description-builders.js +4 -2
- package/dist/nodes/Autotask/ai-tools/description-builders.js.map +1 -1
- package/dist/nodes/Autotask/ai-tools/schema-generator.js +3 -2
- package/dist/nodes/Autotask/ai-tools/schema-generator.js.map +1 -1
- package/dist/nodes/Autotask/ai-tools/tool-executor.js +34 -27
- package/dist/nodes/Autotask/ai-tools/tool-executor.js.map +1 -1
- package/dist/nodes/Autotask/constants/resource-operations.js +9 -6
- package/dist/nodes/Autotask/constants/resource-operations.js.map +1 -1
- package/dist/nodes/Autotask/helpers/aiHelper.js +18 -13
- package/dist/nodes/Autotask/helpers/aiHelper.js.map +1 -1
- package/dist/nodes/Autotask/helpers/cache/service.js +12 -18
- package/dist/nodes/Autotask/helpers/cache/service.js.map +1 -1
- package/dist/nodes/Autotask/helpers/common-operations-context.js +3 -2
- package/dist/nodes/Autotask/helpers/common-operations-context.js.map +1 -1
- package/dist/nodes/Autotask/helpers/company-domain-search.js +7 -5
- package/dist/nodes/Autotask/helpers/company-domain-search.js.map +1 -1
- package/dist/nodes/Autotask/helpers/consolidate-properties.js +7 -5
- package/dist/nodes/Autotask/helpers/consolidate-properties.js.map +1 -1
- package/dist/nodes/Autotask/helpers/contact-mover.js +31 -22
- package/dist/nodes/Autotask/helpers/contact-mover.js.map +1 -1
- package/dist/nodes/Autotask/helpers/date-time/errors.js +0 -2
- package/dist/nodes/Autotask/helpers/date-time/errors.js.map +1 -1
- package/dist/nodes/Autotask/helpers/date-time/utils.js +2 -2
- package/dist/nodes/Autotask/helpers/date-time/utils.js.map +1 -1
- package/dist/nodes/Autotask/helpers/date-time/wrapper.js +1 -4
- package/dist/nodes/Autotask/helpers/date-time/wrapper.js.map +1 -1
- package/dist/nodes/Autotask/helpers/entity/api.js +29 -25
- package/dist/nodes/Autotask/helpers/entity/api.js.map +1 -1
- package/dist/nodes/Autotask/helpers/entity/core.js +0 -2
- package/dist/nodes/Autotask/helpers/entity/core.js.map +1 -1
- package/dist/nodes/Autotask/helpers/entity/deep-link.js +2 -1
- package/dist/nodes/Autotask/helpers/entity/deep-link.js.map +1 -1
- package/dist/nodes/Autotask/helpers/entity/picklist.js +2 -1
- package/dist/nodes/Autotask/helpers/entity/picklist.js.map +1 -1
- package/dist/nodes/Autotask/helpers/entity/utils.js +2 -1
- package/dist/nodes/Autotask/helpers/entity/utils.js.map +1 -1
- package/dist/nodes/Autotask/helpers/entity/writable-fields.js +1 -1
- package/dist/nodes/Autotask/helpers/entity/writable-fields.js.map +1 -1
- package/dist/nodes/Autotask/helpers/entity-values/field-mapping.js +4 -4
- package/dist/nodes/Autotask/helpers/entity-values/field-mapping.js.map +1 -1
- package/dist/nodes/Autotask/helpers/entity-values/value-helper.js +14 -16
- package/dist/nodes/Autotask/helpers/entity-values/value-helper.js.map +1 -1
- package/dist/nodes/Autotask/helpers/errorHandler.js +10 -7
- package/dist/nodes/Autotask/helpers/errorHandler.js.map +1 -1
- package/dist/nodes/Autotask/helpers/field-conversion/pipeline.js +2 -3
- package/dist/nodes/Autotask/helpers/field-conversion/pipeline.js.map +1 -1
- package/dist/nodes/Autotask/helpers/field-conversion/steps.js +1 -1
- package/dist/nodes/Autotask/helpers/field-conversion/steps.js.map +1 -1
- package/dist/nodes/Autotask/helpers/filter.js +3 -3
- package/dist/nodes/Autotask/helpers/filter.js.map +1 -1
- package/dist/nodes/Autotask/helpers/http/body-builder.js +3 -3
- package/dist/nodes/Autotask/helpers/http/body-builder.js.map +1 -1
- package/dist/nodes/Autotask/helpers/http/initRateTracker.js +1 -1
- package/dist/nodes/Autotask/helpers/http/initRateTracker.js.map +1 -1
- package/dist/nodes/Autotask/helpers/http/rateLimit.js +19 -20
- package/dist/nodes/Autotask/helpers/http/rateLimit.js.map +1 -1
- package/dist/nodes/Autotask/helpers/http/request.js +24 -20
- package/dist/nodes/Autotask/helpers/http/request.js.map +1 -1
- package/dist/nodes/Autotask/helpers/http/retryHandler.js +11 -10
- package/dist/nodes/Autotask/helpers/http/retryHandler.js.map +1 -1
- package/dist/nodes/Autotask/helpers/http/threadLimit.js +4 -5
- package/dist/nodes/Autotask/helpers/http/threadLimit.js.map +1 -1
- package/dist/nodes/Autotask/helpers/impersonation.js +2 -1
- package/dist/nodes/Autotask/helpers/impersonation.js.map +1 -1
- package/dist/nodes/Autotask/helpers/inactive-entity-activation.js +6 -3
- package/dist/nodes/Autotask/helpers/inactive-entity-activation.js.map +1 -1
- package/dist/nodes/Autotask/helpers/label-resolution.js +8 -6
- package/dist/nodes/Autotask/helpers/label-resolution.js.map +1 -1
- package/dist/nodes/Autotask/helpers/pagination.js +1 -4
- package/dist/nodes/Autotask/helpers/pagination.js.map +1 -1
- package/dist/nodes/Autotask/helpers/resource-operations.helper.js +44 -36
- package/dist/nodes/Autotask/helpers/resource-operations.helper.js.map +1 -1
- package/dist/nodes/Autotask/helpers/resourceMapper.js +1 -1
- package/dist/nodes/Autotask/helpers/resourceMapper.js.map +1 -1
- package/dist/nodes/Autotask/helpers/searchFilterBuilder.js +10 -6
- package/dist/nodes/Autotask/helpers/searchFilterBuilder.js.map +1 -1
- package/dist/nodes/Autotask/helpers/webhook/fieldConfiguration.js +1 -1
- package/dist/nodes/Autotask/helpers/webhook/fieldConfiguration.js.map +1 -1
- package/dist/nodes/Autotask/helpers/webhook/fields.js +7 -5
- package/dist/nodes/Autotask/helpers/webhook/fields.js.map +1 -1
- package/dist/nodes/Autotask/helpers/webhook/resources.js +3 -2
- package/dist/nodes/Autotask/helpers/webhook/resources.js.map +1 -1
- package/dist/nodes/Autotask/helpers/work-reassigner.js +44 -39
- package/dist/nodes/Autotask/helpers/work-reassigner.js.map +1 -1
- package/dist/nodes/Autotask/operations/base/base-operation.js +21 -21
- package/dist/nodes/Autotask/operations/base/base-operation.js.map +1 -1
- package/dist/nodes/Autotask/operations/base/count-operation.js +2 -1
- package/dist/nodes/Autotask/operations/base/count-operation.js.map +1 -1
- package/dist/nodes/Autotask/operations/base/create-operation.js +3 -3
- package/dist/nodes/Autotask/operations/base/create-operation.js.map +1 -1
- package/dist/nodes/Autotask/operations/base/delete-operation.js +1 -1
- package/dist/nodes/Autotask/operations/base/delete-operation.js.map +1 -1
- package/dist/nodes/Autotask/operations/base/field-processor.js +28 -30
- package/dist/nodes/Autotask/operations/base/field-processor.js.map +1 -1
- package/dist/nodes/Autotask/operations/base/field-validator.js +3 -6
- package/dist/nodes/Autotask/operations/base/field-validator.js.map +1 -1
- package/dist/nodes/Autotask/operations/base/field-values.js +7 -5
- package/dist/nodes/Autotask/operations/base/field-values.js.map +1 -1
- package/dist/nodes/Autotask/operations/base/get-many-advanced.operation.js +2 -3
- package/dist/nodes/Autotask/operations/base/get-many-advanced.operation.js.map +1 -1
- package/dist/nodes/Autotask/operations/base/get-many.js +11 -14
- package/dist/nodes/Autotask/operations/base/get-many.js.map +1 -1
- 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/base/update-operation.js +3 -3
- package/dist/nodes/Autotask/operations/base/update-operation.js.map +1 -1
- package/dist/nodes/Autotask/operations/common/json-parameters/description.js +6 -3
- package/dist/nodes/Autotask/operations/common/json-parameters/description.js.map +1 -1
- package/dist/nodes/Autotask/operations/common/picklist-labels/description.js +2 -1
- package/dist/nodes/Autotask/operations/common/picklist-labels/description.js.map +1 -1
- package/dist/nodes/Autotask/operations/common/reference-labels/description.js +2 -1
- package/dist/nodes/Autotask/operations/common/reference-labels/description.js.map +1 -1
- package/dist/nodes/Autotask/operations/common/scoped-query.js +12 -10
- package/dist/nodes/Autotask/operations/common/scoped-query.js.map +1 -1
- package/dist/nodes/Autotask/operations/common/select-columns/description.js +2 -1
- package/dist/nodes/Autotask/operations/common/select-columns/description.js.map +1 -1
- package/dist/nodes/Autotask/operations/common/udf-flattening/description.js +2 -1
- package/dist/nodes/Autotask/operations/common/udf-flattening/description.js.map +1 -1
- package/dist/nodes/Autotask/resources/appointments/execute.js +1 -1
- package/dist/nodes/Autotask/resources/appointments/execute.js.map +1 -1
- package/dist/nodes/Autotask/resources/configurationItems/moveConfigurationItem.js +41 -35
- package/dist/nodes/Autotask/resources/configurationItems/moveConfigurationItem.js.map +1 -1
- package/dist/nodes/Autotask/resources/invoices/execute.js +5 -4
- package/dist/nodes/Autotask/resources/invoices/execute.js.map +1 -1
- package/dist/nodes/Autotask/resources/taskSecondaryResources/execute.js +1 -1
- package/dist/nodes/Autotask/resources/taskSecondaryResources/execute.js.map +1 -1
- package/dist/nodes/Autotask/resources/ticketAttachments/execute.js +4 -3
- package/dist/nodes/Autotask/resources/ticketAttachments/execute.js.map +1 -1
- package/dist/nodes/Autotask/resources/ticketChangeRequestApprovals/execute.js +4 -3
- package/dist/nodes/Autotask/resources/ticketChangeRequestApprovals/execute.js.map +1 -1
- package/dist/nodes/Autotask/resources/ticketNoteAttachments/execute.js +4 -3
- package/dist/nodes/Autotask/resources/ticketNoteAttachments/execute.js.map +1 -1
- package/dist/nodes/Autotask/resources/ticketSecondaryResources/execute.js +1 -1
- package/dist/nodes/Autotask/resources/ticketSecondaryResources/execute.js.map +1 -1
- package/dist/nodes/Autotask/resources/tickets/execute.js +14 -10
- package/dist/nodes/Autotask/resources/tickets/execute.js.map +1 -1
- package/dist/nodes/Autotask/resources/timeEntries/execute.js +21 -17
- package/dist/nodes/Autotask/resources/timeEntries/execute.js.map +1 -1
- package/dist/nodes/Autotask/resources/timeEntryAttachments/execute.js +4 -3
- package/dist/nodes/Autotask/resources/timeEntryAttachments/execute.js.map +1 -1
- package/dist/nodes/Autotask/resources/tool/execute.js +7 -5
- package/dist/nodes/Autotask/resources/tool/execute.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -10
- package/dist/index.js.map +0 -1
|
@@ -7,321 +7,323 @@ exports.AutotaskApi = void 0;
|
|
|
7
7
|
const moment_timezone_1 = __importDefault(require("moment-timezone"));
|
|
8
8
|
const cache_1 = require("../nodes/Autotask/helpers/cache");
|
|
9
9
|
class AutotaskApi {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
constructor() {
|
|
11
|
+
this.name = 'autotaskApi';
|
|
12
|
+
this.displayName = 'Autotask API';
|
|
13
|
+
this.icon = 'file:../nodes/Autotask/autotask.svg';
|
|
14
|
+
this.documentationUrl = 'https://ww6.autotask.net/help/developerhelp/Content/APIs/REST/REST_API_Home.htm';
|
|
15
|
+
this.properties = [
|
|
16
|
+
{
|
|
17
|
+
displayName: 'API Integration Code',
|
|
18
|
+
name: 'APIIntegrationcode',
|
|
19
|
+
type: 'string',
|
|
20
|
+
typeOptions: {
|
|
21
|
+
password: true,
|
|
22
|
+
},
|
|
23
|
+
default: '',
|
|
24
|
+
required: true,
|
|
25
|
+
description: 'The unique API Integration Code from your Autotask account (found in Admin > API User Security)',
|
|
21
26
|
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
type: 'string',
|
|
30
|
-
default: '',
|
|
31
|
-
required: true,
|
|
32
|
-
description: 'Username of your Autotask account (must have API access enabled)',
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
displayName: 'Secret',
|
|
36
|
-
name: 'Secret',
|
|
37
|
-
type: 'string',
|
|
38
|
-
typeOptions: {
|
|
39
|
-
password: true,
|
|
27
|
+
{
|
|
28
|
+
displayName: 'Username',
|
|
29
|
+
name: 'Username',
|
|
30
|
+
type: 'string',
|
|
31
|
+
default: '',
|
|
32
|
+
required: true,
|
|
33
|
+
description: 'Username of your Autotask account (must have API access enabled)',
|
|
40
34
|
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
name: 'Pre-release',
|
|
52
|
-
value: 'https://webservices2.autotask.net/atservicesrest',
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
name: 'Pre-release (UK)',
|
|
56
|
-
value: 'https://webservices11.autotask.net/atservicesrest',
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
name: 'Limited Release',
|
|
60
|
-
value: 'https://webservices1.autotask.net/atservicesrest',
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: 'Limited Release (UK)',
|
|
64
|
-
value: 'https://webservices17.autotask.net/atservicesrest',
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
name: 'America East',
|
|
68
|
-
value: 'https://webservices3.autotask.net/atservicesrest',
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
name: 'America East 2',
|
|
72
|
-
value: 'https://webservices14.autotask.net/atservicesrest',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
name: 'America East 3',
|
|
76
|
-
value: 'https://webservices22.autotask.net/atservicesrest',
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
name: 'America West',
|
|
80
|
-
value: 'https://webservices5.autotask.net/atservicesrest',
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
name: 'America West 2',
|
|
84
|
-
value: 'https://webservices15.autotask.net/atservicesrest',
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: 'America West 3',
|
|
88
|
-
value: 'https://webservices24.autotask.net/atservicesrest',
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
name: 'America West 4',
|
|
92
|
-
value: 'https://webservices25.autotask.net/atservicesrest',
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
name: 'UK',
|
|
96
|
-
value: 'https://webservices4.autotask.net/atservicesrest',
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
name: 'UK2',
|
|
100
|
-
value: 'https://webservices16.autotask.net/atservicesrest',
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
name: 'UK3',
|
|
104
|
-
value: 'https://webservices28.autotask.net/atservicesrest',
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
name: 'Australia / New Zealand',
|
|
108
|
-
value: 'https://webservices6.autotask.net/atservicesrest',
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
name: 'Australia / New Zealand (Sydney — from 11 Mar 2026)',
|
|
112
|
-
value: 'https://webservices29.autotask.net/atservicesrest',
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
name: 'Australia 2',
|
|
116
|
-
value: 'https://webservices26.autotask.net/atservicesrest',
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
name: 'Pre-Release (Deutsch)',
|
|
120
|
-
value: 'https://prde.autotask.net/atservicesrest',
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
name: 'Pre-Release (Español)',
|
|
124
|
-
value: 'https://pres.autotask.net/atservicesrest',
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
name: 'German (Deutsch)',
|
|
128
|
-
value: 'https://webservices18.autotask.net/atservicesrest',
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
name: 'EU1 (English Europe and Asia)',
|
|
132
|
-
value: 'https://webservices19.autotask.net/atservicesrest',
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
name: 'Spanish (Español)',
|
|
136
|
-
value: 'https://webservices12.autotask.net/atservicesrest',
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
name: 'Other (Custom URL)',
|
|
140
|
-
value: 'other',
|
|
141
|
-
},
|
|
142
|
-
],
|
|
143
|
-
default: 'https://webservices6.autotask.net/atservicesrest',
|
|
144
|
-
required: true,
|
|
145
|
-
description: 'Select your Autotask instance zone. If unsure, use "Other" to specify a custom URL. Zone list sourced from: https://ww6.autotask.net/help/developerhelp/Content/APIs/General/API_Zones.htm',
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
displayName: 'Custom Zone URL',
|
|
149
|
-
name: 'customZoneUrl',
|
|
150
|
-
type: 'string',
|
|
151
|
-
default: '',
|
|
152
|
-
required: true,
|
|
153
|
-
displayOptions: {
|
|
154
|
-
show: {
|
|
155
|
-
zone: ['other'],
|
|
156
|
-
},
|
|
35
|
+
{
|
|
36
|
+
displayName: 'Secret',
|
|
37
|
+
name: 'Secret',
|
|
38
|
+
type: 'string',
|
|
39
|
+
typeOptions: {
|
|
40
|
+
password: true,
|
|
41
|
+
},
|
|
42
|
+
default: '',
|
|
43
|
+
required: true,
|
|
44
|
+
description: 'Secret key obtained from Autotask API User Security settings',
|
|
157
45
|
},
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
46
|
+
{
|
|
47
|
+
displayName: 'Zone',
|
|
48
|
+
name: 'zone',
|
|
49
|
+
type: 'options',
|
|
50
|
+
options: [
|
|
51
|
+
{
|
|
52
|
+
name: 'Pre-release',
|
|
53
|
+
value: 'https://webservices2.autotask.net/atservicesrest',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'Pre-release (UK)',
|
|
57
|
+
value: 'https://webservices11.autotask.net/atservicesrest',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'Limited Release',
|
|
61
|
+
value: 'https://webservices1.autotask.net/atservicesrest',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'Limited Release (UK)',
|
|
65
|
+
value: 'https://webservices17.autotask.net/atservicesrest',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'America East',
|
|
69
|
+
value: 'https://webservices3.autotask.net/atservicesrest',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: 'America East 2',
|
|
73
|
+
value: 'https://webservices14.autotask.net/atservicesrest',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'America East 3',
|
|
77
|
+
value: 'https://webservices22.autotask.net/atservicesrest',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'America West',
|
|
81
|
+
value: 'https://webservices5.autotask.net/atservicesrest',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'America West 2',
|
|
85
|
+
value: 'https://webservices15.autotask.net/atservicesrest',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: 'America West 3',
|
|
89
|
+
value: 'https://webservices24.autotask.net/atservicesrest',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: 'America West 4',
|
|
93
|
+
value: 'https://webservices25.autotask.net/atservicesrest',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: 'UK',
|
|
97
|
+
value: 'https://webservices4.autotask.net/atservicesrest',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: 'UK2',
|
|
101
|
+
value: 'https://webservices16.autotask.net/atservicesrest',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: 'UK3',
|
|
105
|
+
value: 'https://webservices28.autotask.net/atservicesrest',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: 'Australia / New Zealand',
|
|
109
|
+
value: 'https://webservices6.autotask.net/atservicesrest',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'Australia / New Zealand (Sydney — from 11 Mar 2026)',
|
|
113
|
+
value: 'https://webservices29.autotask.net/atservicesrest',
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: 'Australia 2',
|
|
117
|
+
value: 'https://webservices26.autotask.net/atservicesrest',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: 'Pre-Release (Deutsch)',
|
|
121
|
+
value: 'https://prde.autotask.net/atservicesrest',
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: 'Pre-Release (Español)',
|
|
125
|
+
value: 'https://pres.autotask.net/atservicesrest',
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: 'German (Deutsch)',
|
|
129
|
+
value: 'https://webservices18.autotask.net/atservicesrest',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: 'EU1 (English Europe and Asia)',
|
|
133
|
+
value: 'https://webservices19.autotask.net/atservicesrest',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: 'Spanish (Español)',
|
|
137
|
+
value: 'https://webservices12.autotask.net/atservicesrest',
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: 'Other (Custom URL)',
|
|
141
|
+
value: 'other',
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
default: 'https://webservices6.autotask.net/atservicesrest',
|
|
145
|
+
required: true,
|
|
146
|
+
description: 'Select your Autotask instance zone. If unsure, use "Other" to specify a custom URL. Zone list sourced from: https://ww6.autotask.net/help/developerhelp/Content/APIs/General/API_Zones.htm',
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
displayName: 'Custom Zone URL',
|
|
150
|
+
name: 'customZoneUrl',
|
|
151
|
+
type: 'string',
|
|
152
|
+
default: '',
|
|
153
|
+
required: true,
|
|
154
|
+
displayOptions: {
|
|
155
|
+
show: {
|
|
156
|
+
zone: ['other'],
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
description: 'Enter your custom Autotask zone URL. You can get this information from your Autotask administrator.',
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
displayName: 'Timezone',
|
|
163
|
+
name: 'timezone',
|
|
164
|
+
type: 'options',
|
|
165
|
+
options: moment_timezone_1.default.tz.names().map((tz) => ({ name: tz, value: tz })),
|
|
166
|
+
default: 'UTC',
|
|
167
|
+
required: true,
|
|
168
|
+
description: 'Select your timezone. All dates/times in the Autotask API are in UTC and will be automatically converted to/from this timezone.',
|
|
169
|
+
hint: 'This setting affects how dates and times are displayed and entered in the node. The API always uses UTC internally.',
|
|
170
|
+
},
|
|
171
|
+
// Cache Configuration
|
|
172
|
+
{
|
|
173
|
+
displayName: 'Enable Field Caching',
|
|
174
|
+
name: 'cacheEnabled',
|
|
175
|
+
type: 'boolean',
|
|
176
|
+
default: true,
|
|
177
|
+
description: 'Whether to cache field values to reduce API calls',
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
displayName: 'Cache TTL',
|
|
181
|
+
name: 'cacheTTL',
|
|
182
|
+
type: 'number',
|
|
183
|
+
default: 86400,
|
|
184
|
+
description: 'How long to cache field values (in seconds)',
|
|
185
|
+
displayOptions: {
|
|
186
|
+
show: {
|
|
187
|
+
cacheEnabled: [true],
|
|
188
|
+
},
|
|
187
189
|
},
|
|
188
190
|
},
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
191
|
+
{
|
|
192
|
+
displayName: 'Cache Entity Info',
|
|
193
|
+
name: 'cacheEntityInfo',
|
|
194
|
+
type: 'boolean',
|
|
195
|
+
default: true,
|
|
196
|
+
description: 'Whether to cache entity information and field definitions',
|
|
197
|
+
displayOptions: {
|
|
198
|
+
show: {
|
|
199
|
+
cacheEnabled: [true],
|
|
200
|
+
},
|
|
199
201
|
},
|
|
200
202
|
},
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
203
|
+
{
|
|
204
|
+
displayName: 'Entity Info TTL',
|
|
205
|
+
name: 'cacheEntityInfoTTL',
|
|
206
|
+
type: 'number',
|
|
207
|
+
default: 86400,
|
|
208
|
+
description: 'How long to cache entity information (in seconds)',
|
|
209
|
+
displayOptions: {
|
|
210
|
+
show: {
|
|
211
|
+
cacheEnabled: [true],
|
|
212
|
+
cacheEntityInfo: [true],
|
|
213
|
+
},
|
|
212
214
|
},
|
|
213
215
|
},
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
216
|
+
{
|
|
217
|
+
displayName: 'Cache Reference Fields',
|
|
218
|
+
name: 'cacheReferenceFields',
|
|
219
|
+
type: 'boolean',
|
|
220
|
+
default: true,
|
|
221
|
+
description: 'Whether to cache reference field values',
|
|
222
|
+
displayOptions: {
|
|
223
|
+
show: {
|
|
224
|
+
cacheEnabled: [true],
|
|
225
|
+
},
|
|
224
226
|
},
|
|
225
227
|
},
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
228
|
+
{
|
|
229
|
+
displayName: 'Reference Fields TTL',
|
|
230
|
+
name: 'cacheReferenceTTL',
|
|
231
|
+
type: 'number',
|
|
232
|
+
default: 86400,
|
|
233
|
+
description: 'How long to cache reference field values (in seconds)',
|
|
234
|
+
displayOptions: {
|
|
235
|
+
show: {
|
|
236
|
+
cacheEnabled: [true],
|
|
237
|
+
cacheReferenceFields: [true],
|
|
238
|
+
},
|
|
237
239
|
},
|
|
238
240
|
},
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
241
|
+
{
|
|
242
|
+
displayName: 'Cache Picklists',
|
|
243
|
+
name: 'cachePicklists',
|
|
244
|
+
type: 'boolean',
|
|
245
|
+
default: true,
|
|
246
|
+
description: 'Whether to cache picklist values',
|
|
247
|
+
displayOptions: {
|
|
248
|
+
show: {
|
|
249
|
+
cacheEnabled: [true],
|
|
250
|
+
},
|
|
249
251
|
},
|
|
250
252
|
},
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
253
|
+
{
|
|
254
|
+
displayName: 'Picklists TTL',
|
|
255
|
+
name: 'cachePicklistsTTL',
|
|
256
|
+
type: 'number',
|
|
257
|
+
default: 86400,
|
|
258
|
+
description: 'How long to cache picklist values (in seconds)',
|
|
259
|
+
displayOptions: {
|
|
260
|
+
show: {
|
|
261
|
+
cacheEnabled: [true],
|
|
262
|
+
cachePicklists: [true],
|
|
263
|
+
},
|
|
262
264
|
},
|
|
263
265
|
},
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
266
|
+
{
|
|
267
|
+
displayName: 'Cache Directory',
|
|
268
|
+
name: 'cacheDirectory',
|
|
269
|
+
type: 'string',
|
|
270
|
+
default: './cache/autotask',
|
|
271
|
+
description: 'Directory to store cache files (relative or absolute path)',
|
|
272
|
+
displayOptions: {
|
|
273
|
+
show: {
|
|
274
|
+
cacheEnabled: [true],
|
|
275
|
+
},
|
|
274
276
|
},
|
|
275
277
|
},
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
278
|
+
{
|
|
279
|
+
displayName: 'Maximum Cache Size (MB)',
|
|
280
|
+
name: 'cacheMaxSize',
|
|
281
|
+
type: 'number',
|
|
282
|
+
default: 100,
|
|
283
|
+
description: 'Maximum size of the cache in megabytes (0 for unlimited)',
|
|
284
|
+
displayOptions: {
|
|
285
|
+
show: {
|
|
286
|
+
cacheEnabled: [true],
|
|
287
|
+
},
|
|
286
288
|
},
|
|
287
289
|
},
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
290
|
+
{
|
|
291
|
+
displayName: 'WARNING: Disabling Cache Causes High API Usage',
|
|
292
|
+
name: 'cachingWarning',
|
|
293
|
+
type: 'notice',
|
|
294
|
+
default: 'This node uses dynamic picklists and field enrichers that convert numerical values to human-readable labels. Disabling caching will result in separate API calls for each lookup, potentially causing high API usage and rate limits.',
|
|
295
|
+
displayOptions: {
|
|
296
|
+
show: {
|
|
297
|
+
cacheEnabled: [false],
|
|
298
|
+
},
|
|
297
299
|
},
|
|
298
300
|
},
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
301
|
+
];
|
|
302
|
+
this.authenticate = {
|
|
303
|
+
type: 'generic',
|
|
304
|
+
properties: {
|
|
305
|
+
headers: {
|
|
306
|
+
APIIntegrationcode: '={{$credentials.APIIntegrationcode}}',
|
|
307
|
+
Username: '={{$credentials.Username}}',
|
|
308
|
+
Secret: '={{$credentials.Secret}}',
|
|
309
|
+
'Content-Type': 'application/json',
|
|
310
|
+
},
|
|
309
311
|
},
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
312
|
+
};
|
|
313
|
+
this.test = {
|
|
314
|
+
request: {
|
|
315
|
+
baseURL: '={{$credentials.zone === "other" ? $credentials.customZoneUrl : $credentials.zone}}/V1.0',
|
|
316
|
+
url: '/Companies/entityInformation',
|
|
317
|
+
method: 'GET',
|
|
318
|
+
headers: {
|
|
319
|
+
APIIntegrationcode: '={{$credentials.APIIntegrationcode}}',
|
|
320
|
+
Username: '={{$credentials.Username}}',
|
|
321
|
+
Secret: '={{$credentials.Secret}}',
|
|
322
|
+
'Content-Type': 'application/json',
|
|
323
|
+
},
|
|
322
324
|
},
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
+
};
|
|
326
|
+
}
|
|
325
327
|
preValidate() {
|
|
326
328
|
// Clear all cache instances when testing credentials
|
|
327
329
|
// This ensures cache is reinitialized with new settings
|