n8n-nodes-autotask 0.1.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.
Files changed (381) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +241 -0
  3. package/dist/credentials/AutotaskApi.credentials.d.ts +10 -0
  4. package/dist/credentials/AutotaskApi.credentials.js +266 -0
  5. package/dist/credentials/AutotaskApi.credentials.js.map +1 -0
  6. package/dist/nodes/Autotask/Autotask.node.d.ts +11 -0
  7. package/dist/nodes/Autotask/Autotask.node.js +121 -0
  8. package/dist/nodes/Autotask/Autotask.node.js.map +1 -0
  9. package/dist/nodes/Autotask/autotask.svg +1 -0
  10. package/dist/nodes/Autotask/constants/api.d.ts +48 -0
  11. package/dist/nodes/Autotask/constants/api.js +52 -0
  12. package/dist/nodes/Autotask/constants/api.js.map +1 -0
  13. package/dist/nodes/Autotask/constants/date.constants.d.ts +20 -0
  14. package/dist/nodes/Autotask/constants/date.constants.js +35 -0
  15. package/dist/nodes/Autotask/constants/date.constants.js.map +1 -0
  16. package/dist/nodes/Autotask/constants/entities.d.ts +3 -0
  17. package/dist/nodes/Autotask/constants/entities.js +34 -0
  18. package/dist/nodes/Autotask/constants/entities.js.map +1 -0
  19. package/dist/nodes/Autotask/constants/error.constants.d.ts +60 -0
  20. package/dist/nodes/Autotask/constants/error.constants.js +64 -0
  21. package/dist/nodes/Autotask/constants/error.constants.js.map +1 -0
  22. package/dist/nodes/Autotask/constants/field.constants.d.ts +51 -0
  23. package/dist/nodes/Autotask/constants/field.constants.js +85 -0
  24. package/dist/nodes/Autotask/constants/field.constants.js.map +1 -0
  25. package/dist/nodes/Autotask/constants/filters.d.ts +4 -0
  26. package/dist/nodes/Autotask/constants/filters.js +20 -0
  27. package/dist/nodes/Autotask/constants/filters.js.map +1 -0
  28. package/dist/nodes/Autotask/constants/index.d.ts +6 -0
  29. package/dist/nodes/Autotask/constants/index.js +29 -0
  30. package/dist/nodes/Autotask/constants/index.js.map +1 -0
  31. package/dist/nodes/Autotask/constants/operations.d.ts +25 -0
  32. package/dist/nodes/Autotask/constants/operations.js +29 -0
  33. package/dist/nodes/Autotask/constants/operations.js.map +1 -0
  34. package/dist/nodes/Autotask/constants/ui.constants.d.ts +58 -0
  35. package/dist/nodes/Autotask/constants/ui.constants.js +79 -0
  36. package/dist/nodes/Autotask/constants/ui.constants.js.map +1 -0
  37. package/dist/nodes/Autotask/constants/ui.d.ts +117 -0
  38. package/dist/nodes/Autotask/constants/ui.js +68 -0
  39. package/dist/nodes/Autotask/constants/ui.js.map +1 -0
  40. package/dist/nodes/Autotask/helpers/cache/index.d.ts +2 -0
  41. package/dist/nodes/Autotask/helpers/cache/index.js +6 -0
  42. package/dist/nodes/Autotask/helpers/cache/index.js.map +1 -0
  43. package/dist/nodes/Autotask/helpers/cache/init.d.ts +3 -0
  44. package/dist/nodes/Autotask/helpers/cache/init.js +32 -0
  45. package/dist/nodes/Autotask/helpers/cache/init.js.map +1 -0
  46. package/dist/nodes/Autotask/helpers/cache/service.d.ts +45 -0
  47. package/dist/nodes/Autotask/helpers/cache/service.js +138 -0
  48. package/dist/nodes/Autotask/helpers/cache/service.js.map +1 -0
  49. package/dist/nodes/Autotask/helpers/date-time/errors.d.ts +12 -0
  50. package/dist/nodes/Autotask/helpers/date-time/errors.js +25 -0
  51. package/dist/nodes/Autotask/helpers/date-time/errors.js.map +1 -0
  52. package/dist/nodes/Autotask/helpers/date-time/index.d.ts +3 -0
  53. package/dist/nodes/Autotask/helpers/date-time/index.js +20 -0
  54. package/dist/nodes/Autotask/helpers/date-time/index.js.map +1 -0
  55. package/dist/nodes/Autotask/helpers/date-time/utils.d.ts +8 -0
  56. package/dist/nodes/Autotask/helpers/date-time/utils.js +146 -0
  57. package/dist/nodes/Autotask/helpers/date-time/utils.js.map +1 -0
  58. package/dist/nodes/Autotask/helpers/date-time/wrapper.d.ts +18 -0
  59. package/dist/nodes/Autotask/helpers/date-time/wrapper.js +68 -0
  60. package/dist/nodes/Autotask/helpers/date-time/wrapper.js.map +1 -0
  61. package/dist/nodes/Autotask/helpers/entity/api.d.ts +12 -0
  62. package/dist/nodes/Autotask/helpers/entity/api.js +165 -0
  63. package/dist/nodes/Autotask/helpers/entity/api.js.map +1 -0
  64. package/dist/nodes/Autotask/helpers/entity/core.d.ts +24 -0
  65. package/dist/nodes/Autotask/helpers/entity/core.js +34 -0
  66. package/dist/nodes/Autotask/helpers/entity/core.js.map +1 -0
  67. package/dist/nodes/Autotask/helpers/entity/index.d.ts +3 -0
  68. package/dist/nodes/Autotask/helpers/entity/index.js +11 -0
  69. package/dist/nodes/Autotask/helpers/entity/index.js.map +1 -0
  70. package/dist/nodes/Autotask/helpers/entity/picklist.d.ts +10 -0
  71. package/dist/nodes/Autotask/helpers/entity/picklist.js +23 -0
  72. package/dist/nodes/Autotask/helpers/entity/picklist.js.map +1 -0
  73. package/dist/nodes/Autotask/helpers/entity/utils.d.ts +2 -0
  74. package/dist/nodes/Autotask/helpers/entity/utils.js +21 -0
  75. package/dist/nodes/Autotask/helpers/entity/utils.js.map +1 -0
  76. package/dist/nodes/Autotask/helpers/entity-values/field-mapping.d.ts +19 -0
  77. package/dist/nodes/Autotask/helpers/entity-values/field-mapping.js +49 -0
  78. package/dist/nodes/Autotask/helpers/entity-values/field-mapping.js.map +1 -0
  79. package/dist/nodes/Autotask/helpers/entity-values/helpers.d.ts +6 -0
  80. package/dist/nodes/Autotask/helpers/entity-values/helpers.js +24 -0
  81. package/dist/nodes/Autotask/helpers/entity-values/helpers.js.map +1 -0
  82. package/dist/nodes/Autotask/helpers/entity-values/index.d.ts +24 -0
  83. package/dist/nodes/Autotask/helpers/entity-values/index.js +9 -0
  84. package/dist/nodes/Autotask/helpers/entity-values/index.js.map +1 -0
  85. package/dist/nodes/Autotask/helpers/entity-values/transformers.d.ts +10 -0
  86. package/dist/nodes/Autotask/helpers/entity-values/transformers.js +88 -0
  87. package/dist/nodes/Autotask/helpers/entity-values/transformers.js.map +1 -0
  88. package/dist/nodes/Autotask/helpers/entity-values/value-helper.d.ts +49 -0
  89. package/dist/nodes/Autotask/helpers/entity-values/value-helper.js +234 -0
  90. package/dist/nodes/Autotask/helpers/entity-values/value-helper.js.map +1 -0
  91. package/dist/nodes/Autotask/helpers/errorHandler.d.ts +21 -0
  92. package/dist/nodes/Autotask/helpers/errorHandler.js +152 -0
  93. package/dist/nodes/Autotask/helpers/errorHandler.js.map +1 -0
  94. package/dist/nodes/Autotask/helpers/field-conversion/index.d.ts +3 -0
  95. package/dist/nodes/Autotask/helpers/field-conversion/index.js +20 -0
  96. package/dist/nodes/Autotask/helpers/field-conversion/index.js.map +1 -0
  97. package/dist/nodes/Autotask/helpers/field-conversion/pipeline.d.ts +12 -0
  98. package/dist/nodes/Autotask/helpers/field-conversion/pipeline.js +59 -0
  99. package/dist/nodes/Autotask/helpers/field-conversion/pipeline.js.map +1 -0
  100. package/dist/nodes/Autotask/helpers/field-conversion/services/field-type.service.d.ts +16 -0
  101. package/dist/nodes/Autotask/helpers/field-conversion/services/field-type.service.js +77 -0
  102. package/dist/nodes/Autotask/helpers/field-conversion/services/field-type.service.js.map +1 -0
  103. package/dist/nodes/Autotask/helpers/field-conversion/steps.d.ts +2 -0
  104. package/dist/nodes/Autotask/helpers/field-conversion/steps.js +117 -0
  105. package/dist/nodes/Autotask/helpers/field-conversion/steps.js.map +1 -0
  106. package/dist/nodes/Autotask/helpers/field-conversion/types.d.ts +18 -0
  107. package/dist/nodes/Autotask/helpers/field-conversion/types.js +3 -0
  108. package/dist/nodes/Autotask/helpers/field-conversion/types.js.map +1 -0
  109. package/dist/nodes/Autotask/helpers/field-conversion/utils.d.ts +19 -0
  110. package/dist/nodes/Autotask/helpers/field-conversion/utils.js +131 -0
  111. package/dist/nodes/Autotask/helpers/field-conversion/utils.js.map +1 -0
  112. package/dist/nodes/Autotask/helpers/filter.d.ts +10 -0
  113. package/dist/nodes/Autotask/helpers/filter.js +51 -0
  114. package/dist/nodes/Autotask/helpers/filter.js.map +1 -0
  115. package/dist/nodes/Autotask/helpers/http/body-builder.d.ts +19 -0
  116. package/dist/nodes/Autotask/helpers/http/body-builder.js +61 -0
  117. package/dist/nodes/Autotask/helpers/http/body-builder.js.map +1 -0
  118. package/dist/nodes/Autotask/helpers/http/headers.d.ts +2 -0
  119. package/dist/nodes/Autotask/helpers/http/headers.js +16 -0
  120. package/dist/nodes/Autotask/helpers/http/headers.js.map +1 -0
  121. package/dist/nodes/Autotask/helpers/http/index.d.ts +2 -0
  122. package/dist/nodes/Autotask/helpers/http/index.js +19 -0
  123. package/dist/nodes/Autotask/helpers/http/index.js.map +1 -0
  124. package/dist/nodes/Autotask/helpers/http/request.d.ts +21 -0
  125. package/dist/nodes/Autotask/helpers/http/request.js +233 -0
  126. package/dist/nodes/Autotask/helpers/http/request.js.map +1 -0
  127. package/dist/nodes/Autotask/helpers/index.d.ts +8 -0
  128. package/dist/nodes/Autotask/helpers/index.js +25 -0
  129. package/dist/nodes/Autotask/helpers/index.js.map +1 -0
  130. package/dist/nodes/Autotask/helpers/options/entityOptions.d.ts +5 -0
  131. package/dist/nodes/Autotask/helpers/options/entityOptions.js +58 -0
  132. package/dist/nodes/Autotask/helpers/options/entityOptions.js.map +1 -0
  133. package/dist/nodes/Autotask/helpers/options/index.d.ts +5 -0
  134. package/dist/nodes/Autotask/helpers/options/index.js +8 -0
  135. package/dist/nodes/Autotask/helpers/options/index.js.map +1 -0
  136. package/dist/nodes/Autotask/helpers/options/utils.d.ts +9 -0
  137. package/dist/nodes/Autotask/helpers/options/utils.js +48 -0
  138. package/dist/nodes/Autotask/helpers/options/utils.js.map +1 -0
  139. package/dist/nodes/Autotask/helpers/pagination.d.ts +26 -0
  140. package/dist/nodes/Autotask/helpers/pagination.js +58 -0
  141. package/dist/nodes/Autotask/helpers/pagination.js.map +1 -0
  142. package/dist/nodes/Autotask/helpers/parameter.d.ts +4 -0
  143. package/dist/nodes/Autotask/helpers/parameter.js +35 -0
  144. package/dist/nodes/Autotask/helpers/parameter.js.map +1 -0
  145. package/dist/nodes/Autotask/helpers/resource-operations.helper.d.ts +16 -0
  146. package/dist/nodes/Autotask/helpers/resource-operations.helper.js +59 -0
  147. package/dist/nodes/Autotask/helpers/resource-operations.helper.js.map +1 -0
  148. package/dist/nodes/Autotask/helpers/resourceMapper.d.ts +2 -0
  149. package/dist/nodes/Autotask/helpers/resourceMapper.js +42 -0
  150. package/dist/nodes/Autotask/helpers/resourceMapper.js.map +1 -0
  151. package/dist/nodes/Autotask/helpers/searchFilterBuilder.d.ts +17 -0
  152. package/dist/nodes/Autotask/helpers/searchFilterBuilder.js +98 -0
  153. package/dist/nodes/Autotask/helpers/searchFilterBuilder.js.map +1 -0
  154. package/dist/nodes/Autotask/operations/base/base-operation.d.ts +43 -0
  155. package/dist/nodes/Autotask/operations/base/base-operation.js +333 -0
  156. package/dist/nodes/Autotask/operations/base/base-operation.js.map +1 -0
  157. package/dist/nodes/Autotask/operations/base/count-operation.d.ts +7 -0
  158. package/dist/nodes/Autotask/operations/base/count-operation.js +51 -0
  159. package/dist/nodes/Autotask/operations/base/count-operation.js.map +1 -0
  160. package/dist/nodes/Autotask/operations/base/create-operation.d.ts +8 -0
  161. package/dist/nodes/Autotask/operations/base/create-operation.js +71 -0
  162. package/dist/nodes/Autotask/operations/base/create-operation.js.map +1 -0
  163. package/dist/nodes/Autotask/operations/base/delete-operation.d.ts +7 -0
  164. package/dist/nodes/Autotask/operations/base/delete-operation.js +44 -0
  165. package/dist/nodes/Autotask/operations/base/delete-operation.js.map +1 -0
  166. package/dist/nodes/Autotask/operations/base/field-processor.d.ts +50 -0
  167. package/dist/nodes/Autotask/operations/base/field-processor.js +387 -0
  168. package/dist/nodes/Autotask/operations/base/field-processor.js.map +1 -0
  169. package/dist/nodes/Autotask/operations/base/field-validator.d.ts +23 -0
  170. package/dist/nodes/Autotask/operations/base/field-validator.js +210 -0
  171. package/dist/nodes/Autotask/operations/base/field-validator.js.map +1 -0
  172. package/dist/nodes/Autotask/operations/base/field-values.d.ts +3 -0
  173. package/dist/nodes/Autotask/operations/base/field-values.js +79 -0
  174. package/dist/nodes/Autotask/operations/base/field-values.js.map +1 -0
  175. package/dist/nodes/Autotask/operations/base/get-many-advanced.operation.d.ts +15 -0
  176. package/dist/nodes/Autotask/operations/base/get-many-advanced.operation.js +59 -0
  177. package/dist/nodes/Autotask/operations/base/get-many-advanced.operation.js.map +1 -0
  178. package/dist/nodes/Autotask/operations/base/get-many.d.ts +23 -0
  179. package/dist/nodes/Autotask/operations/base/get-many.js +126 -0
  180. package/dist/nodes/Autotask/operations/base/get-many.js.map +1 -0
  181. package/dist/nodes/Autotask/operations/base/get-operation.d.ts +7 -0
  182. package/dist/nodes/Autotask/operations/base/get-operation.js +23 -0
  183. package/dist/nodes/Autotask/operations/base/get-operation.js.map +1 -0
  184. package/dist/nodes/Autotask/operations/base/getEntityInfo.operation.d.ts +8 -0
  185. package/dist/nodes/Autotask/operations/base/getEntityInfo.operation.js +65 -0
  186. package/dist/nodes/Autotask/operations/base/getEntityInfo.operation.js.map +1 -0
  187. package/dist/nodes/Autotask/operations/base/getFieldInfo.operation.d.ts +9 -0
  188. package/dist/nodes/Autotask/operations/base/getFieldInfo.operation.js +81 -0
  189. package/dist/nodes/Autotask/operations/base/getFieldInfo.operation.js.map +1 -0
  190. package/dist/nodes/Autotask/operations/base/index.d.ts +12 -0
  191. package/dist/nodes/Autotask/operations/base/index.js +28 -0
  192. package/dist/nodes/Autotask/operations/base/index.js.map +1 -0
  193. package/dist/nodes/Autotask/operations/base/operation-type.d.ts +5 -0
  194. package/dist/nodes/Autotask/operations/base/operation-type.js +21 -0
  195. package/dist/nodes/Autotask/operations/base/operation-type.js.map +1 -0
  196. package/dist/nodes/Autotask/operations/base/types.d.ts +6 -0
  197. package/dist/nodes/Autotask/operations/base/types.js +18 -0
  198. package/dist/nodes/Autotask/operations/base/types.js.map +1 -0
  199. package/dist/nodes/Autotask/operations/base/update-operation.d.ts +8 -0
  200. package/dist/nodes/Autotask/operations/base/update-operation.js +74 -0
  201. package/dist/nodes/Autotask/operations/base/update-operation.js.map +1 -0
  202. package/dist/nodes/Autotask/operations/common/entityInfo.description.d.ts +8 -0
  203. package/dist/nodes/Autotask/operations/common/entityInfo.description.js +38 -0
  204. package/dist/nodes/Autotask/operations/common/entityInfo.description.js.map +1 -0
  205. package/dist/nodes/Autotask/operations/common/entityInfo.execute.d.ts +2 -0
  206. package/dist/nodes/Autotask/operations/common/entityInfo.execute.js +20 -0
  207. package/dist/nodes/Autotask/operations/common/entityInfo.execute.js.map +1 -0
  208. package/dist/nodes/Autotask/operations/common/get-many-advanced/description.d.ts +2 -0
  209. package/dist/nodes/Autotask/operations/common/get-many-advanced/description.js +23 -0
  210. package/dist/nodes/Autotask/operations/common/get-many-advanced/description.js.map +1 -0
  211. package/dist/nodes/Autotask/operations/common/get-many-advanced/execute.d.ts +15 -0
  212. package/dist/nodes/Autotask/operations/common/get-many-advanced/execute.js +14 -0
  213. package/dist/nodes/Autotask/operations/common/get-many-advanced/execute.js.map +1 -0
  214. package/dist/nodes/Autotask/operations/common/get-many-advanced/index.d.ts +2 -0
  215. package/dist/nodes/Autotask/operations/common/get-many-advanced/index.js +19 -0
  216. package/dist/nodes/Autotask/operations/common/get-many-advanced/index.js.map +1 -0
  217. package/dist/nodes/Autotask/resources/companies/description.d.ts +2 -0
  218. package/dist/nodes/Autotask/resources/companies/description.js +101 -0
  219. package/dist/nodes/Autotask/resources/companies/description.js.map +1 -0
  220. package/dist/nodes/Autotask/resources/companies/execute.d.ts +2 -0
  221. package/dist/nodes/Autotask/resources/companies/execute.js +77 -0
  222. package/dist/nodes/Autotask/resources/companies/execute.js.map +1 -0
  223. package/dist/nodes/Autotask/resources/companies/index.d.ts +2 -0
  224. package/dist/nodes/Autotask/resources/companies/index.js +19 -0
  225. package/dist/nodes/Autotask/resources/companies/index.js.map +1 -0
  226. package/dist/nodes/Autotask/resources/companyNotes/description.d.ts +2 -0
  227. package/dist/nodes/Autotask/resources/companyNotes/description.js +96 -0
  228. package/dist/nodes/Autotask/resources/companyNotes/description.js.map +1 -0
  229. package/dist/nodes/Autotask/resources/companyNotes/execute.d.ts +2 -0
  230. package/dist/nodes/Autotask/resources/companyNotes/execute.js +77 -0
  231. package/dist/nodes/Autotask/resources/companyNotes/execute.js.map +1 -0
  232. package/dist/nodes/Autotask/resources/companyNotes/index.d.ts +2 -0
  233. package/dist/nodes/Autotask/resources/companyNotes/index.js +19 -0
  234. package/dist/nodes/Autotask/resources/companyNotes/index.js.map +1 -0
  235. package/dist/nodes/Autotask/resources/contacts/description.d.ts +2 -0
  236. package/dist/nodes/Autotask/resources/contacts/description.js +100 -0
  237. package/dist/nodes/Autotask/resources/contacts/description.js.map +1 -0
  238. package/dist/nodes/Autotask/resources/contacts/execute.d.ts +2 -0
  239. package/dist/nodes/Autotask/resources/contacts/execute.js +83 -0
  240. package/dist/nodes/Autotask/resources/contacts/execute.js.map +1 -0
  241. package/dist/nodes/Autotask/resources/contacts/index.d.ts +2 -0
  242. package/dist/nodes/Autotask/resources/contacts/index.js +19 -0
  243. package/dist/nodes/Autotask/resources/contacts/index.js.map +1 -0
  244. package/dist/nodes/Autotask/resources/definitions.d.ts +3 -0
  245. package/dist/nodes/Autotask/resources/definitions.js +79 -0
  246. package/dist/nodes/Autotask/resources/definitions.js.map +1 -0
  247. package/dist/nodes/Autotask/resources/products/description.d.ts +2 -0
  248. package/dist/nodes/Autotask/resources/products/description.js +96 -0
  249. package/dist/nodes/Autotask/resources/products/description.js.map +1 -0
  250. package/dist/nodes/Autotask/resources/products/execute.d.ts +2 -0
  251. package/dist/nodes/Autotask/resources/products/execute.js +77 -0
  252. package/dist/nodes/Autotask/resources/products/execute.js.map +1 -0
  253. package/dist/nodes/Autotask/resources/products/index.d.ts +2 -0
  254. package/dist/nodes/Autotask/resources/products/index.js +8 -0
  255. package/dist/nodes/Autotask/resources/products/index.js.map +1 -0
  256. package/dist/nodes/Autotask/resources/projectCharges/description.d.ts +2 -0
  257. package/dist/nodes/Autotask/resources/projectCharges/description.js +102 -0
  258. package/dist/nodes/Autotask/resources/projectCharges/description.js.map +1 -0
  259. package/dist/nodes/Autotask/resources/projectCharges/execute.d.ts +2 -0
  260. package/dist/nodes/Autotask/resources/projectCharges/execute.js +83 -0
  261. package/dist/nodes/Autotask/resources/projectCharges/execute.js.map +1 -0
  262. package/dist/nodes/Autotask/resources/projectCharges/index.d.ts +2 -0
  263. package/dist/nodes/Autotask/resources/projectCharges/index.js +19 -0
  264. package/dist/nodes/Autotask/resources/projectCharges/index.js.map +1 -0
  265. package/dist/nodes/Autotask/resources/projectNotes/description.d.ts +2 -0
  266. package/dist/nodes/Autotask/resources/projectNotes/description.js +96 -0
  267. package/dist/nodes/Autotask/resources/projectNotes/description.js.map +1 -0
  268. package/dist/nodes/Autotask/resources/projectNotes/execute.d.ts +2 -0
  269. package/dist/nodes/Autotask/resources/projectNotes/execute.js +77 -0
  270. package/dist/nodes/Autotask/resources/projectNotes/execute.js.map +1 -0
  271. package/dist/nodes/Autotask/resources/projectNotes/index.d.ts +2 -0
  272. package/dist/nodes/Autotask/resources/projectNotes/index.js +19 -0
  273. package/dist/nodes/Autotask/resources/projectNotes/index.js.map +1 -0
  274. package/dist/nodes/Autotask/resources/projectPhases/description.d.ts +2 -0
  275. package/dist/nodes/Autotask/resources/projectPhases/description.js +110 -0
  276. package/dist/nodes/Autotask/resources/projectPhases/description.js.map +1 -0
  277. package/dist/nodes/Autotask/resources/projectPhases/execute.d.ts +2 -0
  278. package/dist/nodes/Autotask/resources/projectPhases/execute.js +93 -0
  279. package/dist/nodes/Autotask/resources/projectPhases/execute.js.map +1 -0
  280. package/dist/nodes/Autotask/resources/projectPhases/index.d.ts +2 -0
  281. package/dist/nodes/Autotask/resources/projectPhases/index.js +8 -0
  282. package/dist/nodes/Autotask/resources/projectPhases/index.js.map +1 -0
  283. package/dist/nodes/Autotask/resources/projectTasks/description.d.ts +2 -0
  284. package/dist/nodes/Autotask/resources/projectTasks/description.js +110 -0
  285. package/dist/nodes/Autotask/resources/projectTasks/description.js.map +1 -0
  286. package/dist/nodes/Autotask/resources/projectTasks/execute.d.ts +2 -0
  287. package/dist/nodes/Autotask/resources/projectTasks/execute.js +77 -0
  288. package/dist/nodes/Autotask/resources/projectTasks/execute.js.map +1 -0
  289. package/dist/nodes/Autotask/resources/projectTasks/index.d.ts +2 -0
  290. package/dist/nodes/Autotask/resources/projectTasks/index.js +8 -0
  291. package/dist/nodes/Autotask/resources/projectTasks/index.js.map +1 -0
  292. package/dist/nodes/Autotask/resources/projects/description.d.ts +2 -0
  293. package/dist/nodes/Autotask/resources/projects/description.js +96 -0
  294. package/dist/nodes/Autotask/resources/projects/description.js.map +1 -0
  295. package/dist/nodes/Autotask/resources/projects/execute.d.ts +2 -0
  296. package/dist/nodes/Autotask/resources/projects/execute.js +77 -0
  297. package/dist/nodes/Autotask/resources/projects/execute.js.map +1 -0
  298. package/dist/nodes/Autotask/resources/projects/index.d.ts +2 -0
  299. package/dist/nodes/Autotask/resources/projects/index.js +19 -0
  300. package/dist/nodes/Autotask/resources/projects/index.js.map +1 -0
  301. package/dist/nodes/Autotask/resources/resources/description.d.ts +2 -0
  302. package/dist/nodes/Autotask/resources/resources/description.js +89 -0
  303. package/dist/nodes/Autotask/resources/resources/description.js.map +1 -0
  304. package/dist/nodes/Autotask/resources/resources/execute.d.ts +2 -0
  305. package/dist/nodes/Autotask/resources/resources/execute.js +71 -0
  306. package/dist/nodes/Autotask/resources/resources/execute.js.map +1 -0
  307. package/dist/nodes/Autotask/resources/resources/index.d.ts +2 -0
  308. package/dist/nodes/Autotask/resources/resources/index.js +19 -0
  309. package/dist/nodes/Autotask/resources/resources/index.js.map +1 -0
  310. package/dist/nodes/Autotask/resources/searchFilter/description.d.ts +3 -0
  311. package/dist/nodes/Autotask/resources/searchFilter/description.js +136 -0
  312. package/dist/nodes/Autotask/resources/searchFilter/description.js.map +1 -0
  313. package/dist/nodes/Autotask/resources/searchFilter/execute.d.ts +2 -0
  314. package/dist/nodes/Autotask/resources/searchFilter/execute.js +34 -0
  315. package/dist/nodes/Autotask/resources/searchFilter/execute.js.map +1 -0
  316. package/dist/nodes/Autotask/resources/searchFilter/index.d.ts +3 -0
  317. package/dist/nodes/Autotask/resources/searchFilter/index.js +9 -0
  318. package/dist/nodes/Autotask/resources/searchFilter/index.js.map +1 -0
  319. package/dist/nodes/Autotask/resources/tickets/description.d.ts +2 -0
  320. package/dist/nodes/Autotask/resources/tickets/description.js +94 -0
  321. package/dist/nodes/Autotask/resources/tickets/description.js.map +1 -0
  322. package/dist/nodes/Autotask/resources/tickets/execute.d.ts +2 -0
  323. package/dist/nodes/Autotask/resources/tickets/execute.js +77 -0
  324. package/dist/nodes/Autotask/resources/tickets/execute.js.map +1 -0
  325. package/dist/nodes/Autotask/resources/tickets/index.d.ts +2 -0
  326. package/dist/nodes/Autotask/resources/tickets/index.js +8 -0
  327. package/dist/nodes/Autotask/resources/tickets/index.js.map +1 -0
  328. package/dist/nodes/Autotask/resources/timeEntries/description.d.ts +2 -0
  329. package/dist/nodes/Autotask/resources/timeEntries/description.js +115 -0
  330. package/dist/nodes/Autotask/resources/timeEntries/description.js.map +1 -0
  331. package/dist/nodes/Autotask/resources/timeEntries/execute.d.ts +2 -0
  332. package/dist/nodes/Autotask/resources/timeEntries/execute.js +83 -0
  333. package/dist/nodes/Autotask/resources/timeEntries/execute.js.map +1 -0
  334. package/dist/nodes/Autotask/resources/timeEntries/index.d.ts +2 -0
  335. package/dist/nodes/Autotask/resources/timeEntries/index.js +19 -0
  336. package/dist/nodes/Autotask/resources/timeEntries/index.js.map +1 -0
  337. package/dist/nodes/Autotask/types/SearchFilter.d.ts +27 -0
  338. package/dist/nodes/Autotask/types/SearchFilter.js +3 -0
  339. package/dist/nodes/Autotask/types/SearchFilter.js.map +1 -0
  340. package/dist/nodes/Autotask/types/base/api.d.ts +44 -0
  341. package/dist/nodes/Autotask/types/base/api.js +3 -0
  342. package/dist/nodes/Autotask/types/base/api.js.map +1 -0
  343. package/dist/nodes/Autotask/types/base/auth.d.ts +19 -0
  344. package/dist/nodes/Autotask/types/base/auth.js +3 -0
  345. package/dist/nodes/Autotask/types/base/auth.js.map +1 -0
  346. package/dist/nodes/Autotask/types/base/common.d.ts +66 -0
  347. package/dist/nodes/Autotask/types/base/common.js +3 -0
  348. package/dist/nodes/Autotask/types/base/common.js.map +1 -0
  349. package/dist/nodes/Autotask/types/base/core-types.d.ts +11 -0
  350. package/dist/nodes/Autotask/types/base/core-types.js +12 -0
  351. package/dist/nodes/Autotask/types/base/core-types.js.map +1 -0
  352. package/dist/nodes/Autotask/types/base/entities.d.ts +67 -0
  353. package/dist/nodes/Autotask/types/base/entities.js +3 -0
  354. package/dist/nodes/Autotask/types/base/entities.js.map +1 -0
  355. package/dist/nodes/Autotask/types/base/entity-types.d.ts +94 -0
  356. package/dist/nodes/Autotask/types/base/entity-types.js +17 -0
  357. package/dist/nodes/Autotask/types/base/entity-types.js.map +1 -0
  358. package/dist/nodes/Autotask/types/base/entity-values.d.ts +9 -0
  359. package/dist/nodes/Autotask/types/base/entity-values.js +3 -0
  360. package/dist/nodes/Autotask/types/base/entity-values.js.map +1 -0
  361. package/dist/nodes/Autotask/types/base/errors.d.ts +4 -0
  362. package/dist/nodes/Autotask/types/base/errors.js +12 -0
  363. package/dist/nodes/Autotask/types/base/errors.js.map +1 -0
  364. package/dist/nodes/Autotask/types/base/field-base.d.ts +82 -0
  365. package/dist/nodes/Autotask/types/base/field-base.js +67 -0
  366. package/dist/nodes/Autotask/types/base/field-base.js.map +1 -0
  367. package/dist/nodes/Autotask/types/base/http.d.ts +34 -0
  368. package/dist/nodes/Autotask/types/base/http.js +3 -0
  369. package/dist/nodes/Autotask/types/base/http.js.map +1 -0
  370. package/dist/nodes/Autotask/types/base/picklists.d.ts +16 -0
  371. package/dist/nodes/Autotask/types/base/picklists.js +3 -0
  372. package/dist/nodes/Autotask/types/base/picklists.js.map +1 -0
  373. package/dist/nodes/Autotask/types/base/udf-types.d.ts +64 -0
  374. package/dist/nodes/Autotask/types/base/udf-types.js +24 -0
  375. package/dist/nodes/Autotask/types/base/udf-types.js.map +1 -0
  376. package/dist/nodes/Autotask/types/index.d.ts +18 -0
  377. package/dist/nodes/Autotask/types/index.js +6 -0
  378. package/dist/nodes/Autotask/types/index.js.map +1 -0
  379. package/dist/package.json +80 -0
  380. package/dist/tsconfig.tsbuildinfo +1 -0
  381. package/package.json +80 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 grapeot
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,241 @@
1
+ # n8n-nodes-autotask
2
+
3
+ ![n8n-nodes-autotask](https://img.shields.io/badge/n8n--nodes--autotask-0.1.0-blue)
4
+ ![License](https://img.shields.io/badge/license-MIT-green)
5
+
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.
7
+
8
+ ![Overview of n8n-nodes-autotask](./overview.gif)
9
+
10
+ [n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.
11
+
12
+ [Installation](#installation)
13
+ [Authentication](#authentication)
14
+ [Features](#features)
15
+ [Usage](#usage)
16
+ [Configuration](#configuration)
17
+ [Limitations](#limitations)
18
+ [Troubleshooting](#troubleshooting)
19
+ [Resources](#resources)
20
+ [License](#license)
21
+
22
+ ## Installation
23
+
24
+ Follow these steps to install this node:
25
+
26
+ ```bash
27
+ # Install with npm
28
+ npm install n8n-nodes-autotask
29
+
30
+ # Install with pnpm
31
+ pnpm install n8n-nodes-autotask
32
+ ```
33
+
34
+ **Requirements:**
35
+ - n8n version 1.0.0 or later
36
+ - Node.js version 18.10 or later
37
+ - pnpm version 9.1 or later (if using pnpm)
38
+
39
+ ## Authentication
40
+
41
+ To use this node, you need to have API access to your Autotask instance. Follow these steps to set up authentication:
42
+
43
+ 1. In Autotask, go to **Admin > API User Security**
44
+ 2. Create or select an API user
45
+ 3. Note the API Integration Code, Username, and Secret
46
+ 4. In n8n, create a new credential of type **Autotask API**
47
+ 5. Enter your API Integration Code, Username, and Secret
48
+ 6. Select your Autotask zone
49
+ 7. Select your timezone (affects how dates and times are displayed and entered)
50
+ 8. Configure caching options as needed (this will cache dynamically fetched field picklists)
51
+
52
+ ## Features
53
+
54
+ ### Supported Resources
55
+
56
+ The node supports the following Autotask resources:
57
+
58
+ | Resource | Description |
59
+ |----------|-------------|
60
+ | Company | Manage organisations in Autotask |
61
+ | Company Note | Manage notes attached to companies |
62
+ | Contact | Manage contacts associated with companies |
63
+ | Product | Manage products in the catalogue |
64
+ | Project | Manage projects |
65
+ | Project Charge | Manage charges associated with projects |
66
+ | Project Note | Manage notes attached to projects |
67
+ | Project Phase | Manage phases within projects |
68
+ | Project Task | Manage tasks within projects |
69
+ | Resource | Manage staff resources |
70
+ | Search Filter | Build advanced search filters |
71
+ | Ticket | Manage service tickets |
72
+ | Time Entry | Manage time entries for billing |
73
+
74
+ ### Operations
75
+
76
+ For most resources, the following operations are available:
77
+
78
+ - **Create**: Add new records
79
+ - **Read**: Retrieve a single record by ID
80
+ - **Update**: Modify existing records
81
+ - **Delete**: Remove records
82
+ - **Get Many**: Retrieve multiple records with basic filtering options. This operation allows you to:
83
+ - Filter records using simple field conditions (equals)
84
+ - Filtering on User Defined Fields (UDFs)
85
+ - Automatically paginate through large result sets
86
+ - **Get Many Advanced**: Build complex queries with multiple filter conditions and logical operators. This operation provides:
87
+ - Support for complex AND/OR logic in filters
88
+ - Nested condition groups for sophisticated queries
89
+ - Filtering on User Defined Fields (UDFs)
90
+ - Advanced operators like contains, beginsWith, endsWith, exists, notExists
91
+ - Support for IN and NOT IN operators with multiple values
92
+ - **Count**: Get the number of matching records
93
+ - **Get Entity Info**: Retrieve metadata about the entity
94
+ - **Get Field Info**: Retrieve field definitions for the selected entity
95
+
96
+ ### Advanced Features
97
+
98
+ - **Resource Mapping**: Dynamically map fields based on entity definitions
99
+ - **Advanced Filtering**: Build complex queries with multiple conditions
100
+ - **Caching**: Improve performance by caching field definitions and picklists
101
+ - **Timezone Handling**: Automatic conversion between local time and UTC
102
+
103
+ ## Usage
104
+
105
+ ### Basic Example: Creating a Ticket
106
+
107
+ 1. Add an **Autotask** node to your workflow
108
+ 2. Select **Ticket** as the resource
109
+ 3. Select **Create** as the operation
110
+ 4. Configure the required fields (Title, Status, etc.)
111
+ 5. Connect to a trigger or previous node
112
+ 6. Execute the workflow
113
+
114
+ ### Intermediate Example: Querying Projects with Filters
115
+
116
+ 1. Add an **Autotask** node to your workflow
117
+ 2. Select **Project** as the resource
118
+ 3. Select **Get Many** as the operation
119
+ 4. Add filter conditions (e.g., Status equals "Active")
120
+ 5. Connect to a trigger or previous node
121
+ 6. Execute the workflow
122
+
123
+ ### Advanced Example: Complex Filtering with Get Many Advanced
124
+
125
+ 1. Add an **Autotask** node to your workflow
126
+ 2. Select **Ticket** as the resource
127
+ 3. Select **Get Many Advanced** as the operation
128
+ 4. Build a complex filter, for example:
129
+ ```json
130
+ {
131
+ "op": "and",
132
+ "items": [
133
+ {
134
+ "field": "Status",
135
+ "op": "notEqual",
136
+ "value": 5
137
+ },
138
+ {
139
+ "op": "or",
140
+ "items": [
141
+ {
142
+ "field": "Priority",
143
+ "op": "Equal",
144
+ "value": 6
145
+ },
146
+ {
147
+ "field": "DueDateTime",
148
+ "op": "lessThan",
149
+ "value": "{{ $now.plus(3, 'days').toLocal()}}"
150
+ }
151
+ ]
152
+ }
153
+ ]
154
+ }
155
+ ```
156
+ 5. Execute the workflow to retrieve tickets that are not complete AND either have priority 6 OR are due within the next 3 days
157
+
158
+ ### Advanced Example: Working with Parent-Child Relationships
159
+
160
+ Many Autotask entities have parent-child relationships (e.g., Companies and Contacts). To work with these:
161
+
162
+ 1. First, retrieve or create the parent entity
163
+ 2. Use the parent entity's ID in the child entity operations
164
+ 3. For example, to create a Contact for a Company:
165
+ - First node: Get or create the Company
166
+ - Second node: Create a Contact with the Company ID
167
+
168
+ ## Configuration
169
+
170
+ ### Caching Options
171
+
172
+ The node includes a caching system to improve performance by reducing API calls:
173
+
174
+ - **Enable Field Caching**: Toggle caching on/off
175
+ - **Cache TTL**: How long to cache field values (in seconds)
176
+ - **Cache Entity Info**: Whether to cache entity information and field definitions
177
+ - **Entity Info TTL**: How long to cache entity information
178
+ - **Cache Reference Fields**: Whether to cache reference field values
179
+ - **Reference Fields TTL**: How long to cache reference field values
180
+ - **Cache Picklists**: Whether to cache picklist values
181
+ - **Picklists TTL**: How long to cache picklist values
182
+
183
+ ### Timezone Handling
184
+
185
+ All dates and times in the Autotask API are in UTC. The node automatically converts between your selected timezone and UTC:
186
+
187
+ - When creating or updating records, local times are converted to UTC
188
+ - When retrieving records, UTC times are converted to your local timezone
189
+ - The timezone is configured in the credentials
190
+
191
+ ## Limitations
192
+
193
+ ### API Limits
194
+
195
+ - Maximum 500 records per page in query results
196
+ - Maximum 50 pages per query operation
197
+ - Maximum 500 OR conditions in filters
198
+ - Maximum 1 User Defined Field per query
199
+
200
+ ### Entity-Specific Limitations
201
+
202
+ - Some entities may not support all operations (e.g., Project Phases cannot be deleted)
203
+ - Parent-child relationships require specific handling
204
+ - Some fields may be read-only or have specific validation rules
205
+
206
+ ### Performance Considerations
207
+
208
+ - Large queries may be slow and should be optimised with filters
209
+ - Complex workflows with many API calls may hit rate limits
210
+
211
+ ## Troubleshooting
212
+
213
+ ### Common Issues
214
+
215
+ - **Authentication Errors**: Verify your API credentials and ensure the API user has appropriate permissions
216
+ - **Field Validation Errors**: Check field requirements in the Autotask API documentation
217
+ - **Rate Limiting**: If you encounter rate limiting, reduce the frequency of API calls or implement retry logic
218
+
219
+ ### Reporting Bugs
220
+
221
+ If you encounter any bugs or issues with this integration:
222
+
223
+ 1. Check the [GitHub Issues](https://github.com/msoukhomlinov/n8n-nodes-autotask/issues) to see if the problem has already been reported
224
+ 2. If not, please submit a new issue with:
225
+ - A clear description of the problem
226
+ - Steps to reproduce the issue
227
+ - Expected vs actual behaviour
228
+ - Your environment details (n8n version, Node.js version)
229
+ - Any relevant error messages or screenshots
230
+
231
+ Bug reports should be submitted via GitHub at: https://github.com/msoukhomlinov/n8n-nodes-autotask/issues
232
+
233
+ ## Resources
234
+
235
+ - [Autotask API Documentation](https://ww6.autotask.net/help/developerhelp/Content/APIs/REST/REST_API_Home.htm)
236
+ - [n8n Documentation](https://docs.n8n.io/)
237
+ - [GitHub Repository](https://github.com/msoukhomlinov/n8n-nodes-autotask)
238
+
239
+ ## License
240
+
241
+ [MIT](LICENSE)
@@ -0,0 +1,10 @@
1
+ import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class AutotaskApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ properties: INodeProperties[];
7
+ authenticate: IAuthenticateGeneric;
8
+ test: ICredentialTestRequest;
9
+ preValidate(): void;
10
+ }
@@ -0,0 +1,266 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AutotaskApi = void 0;
7
+ const moment_timezone_1 = __importDefault(require("moment-timezone"));
8
+ const cache_1 = require("../nodes/Autotask/helpers/cache");
9
+ class AutotaskApi {
10
+ constructor() {
11
+ this.name = 'autotaskApi';
12
+ this.displayName = 'Autotask API';
13
+ this.documentationUrl = 'https://ww6.autotask.net/help/developerhelp/Content/APIs/REST/REST_API_Home.htm';
14
+ this.properties = [
15
+ {
16
+ displayName: 'API Integration Code',
17
+ name: 'APIIntegrationcode',
18
+ type: 'string',
19
+ typeOptions: {
20
+ password: true,
21
+ },
22
+ default: '',
23
+ required: true,
24
+ description: 'The unique API Integration Code from your Autotask account (found in Admin > API User Security)',
25
+ },
26
+ {
27
+ displayName: 'Username',
28
+ name: 'Username',
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,
40
+ },
41
+ default: '',
42
+ required: true,
43
+ description: 'Secret key obtained from Autotask API User Security settings',
44
+ },
45
+ {
46
+ displayName: 'Zone',
47
+ name: 'zone',
48
+ type: 'options',
49
+ options: [
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: 'UK',
92
+ value: 'https://webservices4.autotask.net/atservicesrest',
93
+ },
94
+ {
95
+ name: 'UK2',
96
+ value: 'https://webservices16.autotask.net/atservicesrest',
97
+ },
98
+ {
99
+ name: 'Australia / New Zealand',
100
+ value: 'https://webservices6.autotask.net/atservicesrest',
101
+ },
102
+ {
103
+ name: 'Pre-Release (Deutsch)',
104
+ value: 'https://prde.autotask.net/atservicesrest',
105
+ },
106
+ {
107
+ name: 'Pre-Release (Español)',
108
+ value: 'https://pres.autotask.net/atservicesrest',
109
+ },
110
+ {
111
+ name: 'German (Deutsch)',
112
+ value: 'https://webservices18.autotask.net/atservicesrest',
113
+ },
114
+ {
115
+ name: 'EU1 (English Europe and Asia)',
116
+ value: 'https://webservices19.autotask.net/atservicesrest',
117
+ },
118
+ {
119
+ name: 'Spanish (Español)',
120
+ value: 'https://webservices12.autotask.net/atservicesrest',
121
+ },
122
+ {
123
+ name: 'Other (Use Zone Information API)',
124
+ value: 'https://webservices.autotask.net/atservicesrest',
125
+ },
126
+ ],
127
+ default: 'https://webservices6.autotask.net/atservicesrest',
128
+ required: true,
129
+ description: 'Select your Autotask instance zone. If unsure, use "Other" which will automatically detect your zone.',
130
+ },
131
+ {
132
+ displayName: 'Timezone',
133
+ name: 'timezone',
134
+ type: 'options',
135
+ options: moment_timezone_1.default.tz.names().map((tz) => ({ name: tz, value: tz })),
136
+ default: 'UTC',
137
+ required: true,
138
+ description: 'Select your timezone. All dates/times in the Autotask API are in UTC and will be automatically converted to/from this timezone.',
139
+ hint: 'This setting affects how dates and times are displayed and entered in the node. The API always uses UTC internally.',
140
+ },
141
+ {
142
+ displayName: 'Enable Field Caching',
143
+ name: 'cacheEnabled',
144
+ type: 'boolean',
145
+ default: true,
146
+ description: 'Whether to cache field values to reduce API calls',
147
+ },
148
+ {
149
+ displayName: 'Cache TTL',
150
+ name: 'cacheTTL',
151
+ type: 'number',
152
+ default: 86400,
153
+ description: 'How long to cache field values (in seconds)',
154
+ displayOptions: {
155
+ show: {
156
+ cacheEnabled: [true],
157
+ },
158
+ },
159
+ },
160
+ {
161
+ displayName: 'Cache Entity Info',
162
+ name: 'cacheEntityInfo',
163
+ type: 'boolean',
164
+ default: true,
165
+ description: 'Whether to cache entity information and field definitions',
166
+ displayOptions: {
167
+ show: {
168
+ cacheEnabled: [true],
169
+ },
170
+ },
171
+ },
172
+ {
173
+ displayName: 'Entity Info TTL',
174
+ name: 'cacheEntityInfoTTL',
175
+ type: 'number',
176
+ default: 86400,
177
+ description: 'How long to cache entity information (in seconds)',
178
+ displayOptions: {
179
+ show: {
180
+ cacheEnabled: [true],
181
+ cacheEntityInfo: [true],
182
+ },
183
+ },
184
+ },
185
+ {
186
+ displayName: 'Cache Reference Fields',
187
+ name: 'cacheReferenceFields',
188
+ type: 'boolean',
189
+ default: true,
190
+ description: 'Whether to cache reference field values',
191
+ displayOptions: {
192
+ show: {
193
+ cacheEnabled: [true],
194
+ },
195
+ },
196
+ },
197
+ {
198
+ displayName: 'Reference Fields TTL',
199
+ name: 'cacheReferenceTTL',
200
+ type: 'number',
201
+ default: 86400,
202
+ description: 'How long to cache reference field values (in seconds)',
203
+ displayOptions: {
204
+ show: {
205
+ cacheEnabled: [true],
206
+ cacheReferenceFields: [true],
207
+ },
208
+ },
209
+ },
210
+ {
211
+ displayName: 'Cache Picklists',
212
+ name: 'cachePicklists',
213
+ type: 'boolean',
214
+ default: true,
215
+ description: 'Whether to cache picklist values',
216
+ displayOptions: {
217
+ show: {
218
+ cacheEnabled: [true],
219
+ },
220
+ },
221
+ },
222
+ {
223
+ displayName: 'Picklists TTL',
224
+ name: 'cachePicklistsTTL',
225
+ type: 'number',
226
+ default: 86400,
227
+ description: 'How long to cache picklist values (in seconds)',
228
+ displayOptions: {
229
+ show: {
230
+ cacheEnabled: [true],
231
+ cachePicklists: [true],
232
+ },
233
+ },
234
+ },
235
+ ];
236
+ this.authenticate = {
237
+ type: 'generic',
238
+ properties: {
239
+ headers: {
240
+ APIIntegrationcode: '={{$credentials.APIIntegrationcode}}',
241
+ Username: '={{$credentials.Username}}',
242
+ Secret: '={{$credentials.Secret}}',
243
+ 'Content-Type': 'application/json',
244
+ },
245
+ },
246
+ };
247
+ this.test = {
248
+ request: {
249
+ baseURL: '={{$credentials.zone}}/V1.0',
250
+ url: '/Companies/entityInformation',
251
+ method: 'GET',
252
+ headers: {
253
+ APIIntegrationcode: '={{$credentials.APIIntegrationcode}}',
254
+ Username: '={{$credentials.Username}}',
255
+ Secret: '={{$credentials.Secret}}',
256
+ 'Content-Type': 'application/json',
257
+ },
258
+ },
259
+ };
260
+ }
261
+ preValidate() {
262
+ cache_1.CacheService.clearAllInstances();
263
+ }
264
+ }
265
+ exports.AutotaskApi = AutotaskApi;
266
+ //# sourceMappingURL=AutotaskApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutotaskApi.credentials.js","sourceRoot":"","sources":["../../credentials/AutotaskApi.credentials.ts"],"names":[],"mappings":";;;;;;AAOA,sEAAqC;AACrC,2DAA+D;AAE/D,MAAa,WAAW;IAAxB;QACC,SAAI,GAAG,aAAa,CAAC;QACrB,gBAAW,GAAG,cAAc,CAAC;QAC7B,qBAAgB,GAAG,iFAAiF,CAAC;QACrG,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,sBAAsB;gBACnC,IAAI,EAAE,oBAAoB;gBAC1B,IAAI,EAAE,QAAQ;gB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;aACD;YACD;gBACC,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,kCAAkC;gBAC/C,cAAc,EAAE;oBACf,IAAI,EAAE;wBACL,YAAY,EAAE,CAAC,IAAI,CAAC;qBACpB;iBACD;aACD;YACD;gBACC,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,gDAAgD;gBAC7D,cAAc,EAAE;oBACf,IAAI,EAAE;wBACL,YAAY,EAAE,CAAC,IAAI,CAAC;wBACpB,cAAc,EAAE,CAAC,IAAI,CAAC;qBACtB;iBACD;aACD;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,kBAAkB,EAAE,sCAAsC;oBAC1D,QAAQ,EAAE,4BAA4B;oBACtC,MAAM,EAAE,0BAA0B;oBAClC,cAAc,EAAE,kBAAkB;iBAClB;aACjB;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,6BAA6B;gBACtC,GAAG,EAAE,8BAA8B;gBACnC,MAAM,EAAE,KAAK;gBACb,OAAO,EAAE;oBACR,kBAAkB,EAAE,sCAAsC;oBAC1D,QAAQ,EAAE,4BAA4B;oBACtC,MAAM,EAAE,0BAA0B;oBAClC,cAAc,EAAE,kBAAkB;iBAClB;aACjB;SACD,CAAC;IAOH,CAAC;IALA,WAAW;QAGV,oBAAY,CAAC,iBAAiB,EAAE,CAAC;IAClC,CAAC;CACD;AAnQD,kCAmQC"}
@@ -0,0 +1,11 @@
1
+ import { type ResourceMapperFields } from 'n8n-workflow';
2
+ import type { IExecuteFunctions, ILoadOptionsFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
3
+ export declare class Autotask implements INodeType {
4
+ description: INodeTypeDescription;
5
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
6
+ methods: {
7
+ resourceMapping: {
8
+ getFields(this: ILoadOptionsFunctions): Promise<ResourceMapperFields>;
9
+ };
10
+ };
11
+ }