airbyte-faros-destination 0.1.53

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 (280) hide show
  1. package/README.md +161 -0
  2. package/lib/common/write-stats.d.ts +16 -0
  3. package/lib/common/write-stats.js +48 -0
  4. package/lib/community/hasura-client.d.ts +27 -0
  5. package/lib/community/hasura-client.js +278 -0
  6. package/lib/community/hasura-writer.d.ts +12 -0
  7. package/lib/community/hasura-writer.js +44 -0
  8. package/lib/community/types.d.ts +26 -0
  9. package/lib/community/types.js +9 -0
  10. package/lib/converters/agileaccelerator/agileaccelerator_types.d.ts +315 -0
  11. package/lib/converters/agileaccelerator/agileaccelerator_types.js +81 -0
  12. package/lib/converters/agileaccelerator/common.d.ts +64 -0
  13. package/lib/converters/agileaccelerator/common.js +167 -0
  14. package/lib/converters/agileaccelerator/works.d.ts +7 -0
  15. package/lib/converters/agileaccelerator/works.js +105 -0
  16. package/lib/converters/asana/common.d.ts +39 -0
  17. package/lib/converters/asana/common.js +64 -0
  18. package/lib/converters/asana/projects.d.ts +7 -0
  19. package/lib/converters/asana/projects.js +29 -0
  20. package/lib/converters/asana/sections.d.ts +7 -0
  21. package/lib/converters/asana/sections.js +28 -0
  22. package/lib/converters/asana/stories.d.ts +7 -0
  23. package/lib/converters/asana/stories.js +32 -0
  24. package/lib/converters/asana/tags.d.ts +7 -0
  25. package/lib/converters/asana/tags.js +22 -0
  26. package/lib/converters/asana/tasks.d.ts +11 -0
  27. package/lib/converters/asana/tasks.js +160 -0
  28. package/lib/converters/asana/users.d.ts +7 -0
  29. package/lib/converters/asana/users.js +16 -0
  30. package/lib/converters/backlog/common.d.ts +20 -0
  31. package/lib/converters/backlog/common.js +59 -0
  32. package/lib/converters/backlog/issues.d.ts +7 -0
  33. package/lib/converters/backlog/issues.js +119 -0
  34. package/lib/converters/backlog/models.d.ts +156 -0
  35. package/lib/converters/backlog/models.js +23 -0
  36. package/lib/converters/backlog/projects.d.ts +7 -0
  37. package/lib/converters/backlog/projects.js +78 -0
  38. package/lib/converters/backlog/users.d.ts +7 -0
  39. package/lib/converters/backlog/users.js +26 -0
  40. package/lib/converters/bitbucket/branches.d.ts +7 -0
  41. package/lib/converters/bitbucket/branches.js +31 -0
  42. package/lib/converters/bitbucket/commits.d.ts +7 -0
  43. package/lib/converters/bitbucket/commits.js +50 -0
  44. package/lib/converters/bitbucket/common.d.ts +28 -0
  45. package/lib/converters/bitbucket/common.js +56 -0
  46. package/lib/converters/bitbucket/deployments.d.ts +11 -0
  47. package/lib/converters/bitbucket/deployments.js +100 -0
  48. package/lib/converters/bitbucket/issues.d.ts +12 -0
  49. package/lib/converters/bitbucket/issues.js +111 -0
  50. package/lib/converters/bitbucket/pipeline_steps.d.ts +10 -0
  51. package/lib/converters/bitbucket/pipeline_steps.js +83 -0
  52. package/lib/converters/bitbucket/pipelines.d.ts +8 -0
  53. package/lib/converters/bitbucket/pipelines.js +90 -0
  54. package/lib/converters/bitbucket/pull_request_activities.d.ts +13 -0
  55. package/lib/converters/bitbucket/pull_request_activities.js +112 -0
  56. package/lib/converters/bitbucket/pull_requests.d.ts +10 -0
  57. package/lib/converters/bitbucket/pull_requests.js +95 -0
  58. package/lib/converters/bitbucket/repositories.d.ts +9 -0
  59. package/lib/converters/bitbucket/repositories.js +41 -0
  60. package/lib/converters/bitbucket/types.d.ts +667 -0
  61. package/lib/converters/bitbucket/types.js +2 -0
  62. package/lib/converters/bitbucket/workspace_users.d.ts +7 -0
  63. package/lib/converters/bitbucket/workspace_users.js +31 -0
  64. package/lib/converters/bitbucket/workspaces.d.ts +8 -0
  65. package/lib/converters/bitbucket/workspaces.js +61 -0
  66. package/lib/converters/converter-registry.d.ts +25 -0
  67. package/lib/converters/converter-registry.js +64 -0
  68. package/lib/converters/converter.d.ts +63 -0
  69. package/lib/converters/converter.js +122 -0
  70. package/lib/converters/datadog/common.d.ts +27 -0
  71. package/lib/converters/datadog/common.js +34 -0
  72. package/lib/converters/datadog/incidents.d.ts +9 -0
  73. package/lib/converters/datadog/incidents.js +128 -0
  74. package/lib/converters/datadog/users.d.ts +7 -0
  75. package/lib/converters/datadog/users.js +27 -0
  76. package/lib/converters/docker/common.d.ts +87 -0
  77. package/lib/converters/docker/common.js +76 -0
  78. package/lib/converters/docker/tags.d.ts +8 -0
  79. package/lib/converters/docker/tags.js +98 -0
  80. package/lib/converters/github/assignees.d.ts +7 -0
  81. package/lib/converters/github/assignees.js +16 -0
  82. package/lib/converters/github/branches.d.ts +7 -0
  83. package/lib/converters/github/branches.js +28 -0
  84. package/lib/converters/github/collaborators.d.ts +7 -0
  85. package/lib/converters/github/collaborators.js +19 -0
  86. package/lib/converters/github/commits.d.ts +7 -0
  87. package/lib/converters/github/commits.js +48 -0
  88. package/lib/converters/github/common.d.ts +37 -0
  89. package/lib/converters/github/common.js +130 -0
  90. package/lib/converters/github/issue_labels.d.ts +7 -0
  91. package/lib/converters/github/issue_labels.js +20 -0
  92. package/lib/converters/github/issue_milestones.d.ts +8 -0
  93. package/lib/converters/github/issue_milestones.js +42 -0
  94. package/lib/converters/github/issues.d.ts +9 -0
  95. package/lib/converters/github/issues.js +90 -0
  96. package/lib/converters/github/organizations.d.ts +7 -0
  97. package/lib/converters/github/organizations.js +37 -0
  98. package/lib/converters/github/projects.d.ts +7 -0
  99. package/lib/converters/github/projects.js +21 -0
  100. package/lib/converters/github/pull_request_stats.d.ts +7 -0
  101. package/lib/converters/github/pull_request_stats.js +43 -0
  102. package/lib/converters/github/pull_requests.d.ts +7 -0
  103. package/lib/converters/github/pull_requests.js +63 -0
  104. package/lib/converters/github/releases.d.ts +7 -0
  105. package/lib/converters/github/releases.js +51 -0
  106. package/lib/converters/github/repositories.d.ts +7 -0
  107. package/lib/converters/github/repositories.js +44 -0
  108. package/lib/converters/github/review_comments.d.ts +7 -0
  109. package/lib/converters/github/review_comments.js +39 -0
  110. package/lib/converters/github/reviews.d.ts +7 -0
  111. package/lib/converters/github/reviews.js +58 -0
  112. package/lib/converters/github/tags.d.ts +7 -0
  113. package/lib/converters/github/tags.js +31 -0
  114. package/lib/converters/github/users.d.ts +7 -0
  115. package/lib/converters/github/users.js +19 -0
  116. package/lib/converters/gitlab/branches.d.ts +8 -0
  117. package/lib/converters/gitlab/branches.js +44 -0
  118. package/lib/converters/gitlab/commits.d.ts +7 -0
  119. package/lib/converters/gitlab/commits.js +33 -0
  120. package/lib/converters/gitlab/common.d.ts +30 -0
  121. package/lib/converters/gitlab/common.js +70 -0
  122. package/lib/converters/gitlab/group_labels.d.ts +7 -0
  123. package/lib/converters/gitlab/group_labels.js +15 -0
  124. package/lib/converters/gitlab/group_milestones.d.ts +8 -0
  125. package/lib/converters/gitlab/group_milestones.js +41 -0
  126. package/lib/converters/gitlab/groups.d.ts +7 -0
  127. package/lib/converters/gitlab/groups.js +43 -0
  128. package/lib/converters/gitlab/issues.d.ts +10 -0
  129. package/lib/converters/gitlab/issues.js +79 -0
  130. package/lib/converters/gitlab/jobs.d.ts +11 -0
  131. package/lib/converters/gitlab/jobs.js +75 -0
  132. package/lib/converters/gitlab/merge_request_commits.d.ts +7 -0
  133. package/lib/converters/gitlab/merge_request_commits.js +34 -0
  134. package/lib/converters/gitlab/merge_requests.d.ts +10 -0
  135. package/lib/converters/gitlab/merge_requests.js +65 -0
  136. package/lib/converters/gitlab/pipelines.d.ts +7 -0
  137. package/lib/converters/gitlab/pipelines.js +41 -0
  138. package/lib/converters/gitlab/project_labels.d.ts +7 -0
  139. package/lib/converters/gitlab/project_labels.js +15 -0
  140. package/lib/converters/gitlab/project_milestones.d.ts +8 -0
  141. package/lib/converters/gitlab/project_milestones.js +41 -0
  142. package/lib/converters/gitlab/projects.d.ts +7 -0
  143. package/lib/converters/gitlab/projects.js +51 -0
  144. package/lib/converters/gitlab/releases.d.ts +10 -0
  145. package/lib/converters/gitlab/releases.js +68 -0
  146. package/lib/converters/gitlab/tags.d.ts +10 -0
  147. package/lib/converters/gitlab/tags.js +41 -0
  148. package/lib/converters/gitlab/users.d.ts +7 -0
  149. package/lib/converters/gitlab/users.js +33 -0
  150. package/lib/converters/googlecalendar/calendar_models.d.ts +618 -0
  151. package/lib/converters/googlecalendar/calendar_models.js +2 -0
  152. package/lib/converters/googlecalendar/calendars.d.ts +7 -0
  153. package/lib/converters/googlecalendar/calendars.js +29 -0
  154. package/lib/converters/googlecalendar/common.d.ts +52 -0
  155. package/lib/converters/googlecalendar/common.js +130 -0
  156. package/lib/converters/googlecalendar/events.d.ts +8 -0
  157. package/lib/converters/googlecalendar/events.js +117 -0
  158. package/lib/converters/harness/common.d.ts +105 -0
  159. package/lib/converters/harness/common.js +16 -0
  160. package/lib/converters/harness/executions.d.ts +15 -0
  161. package/lib/converters/harness/executions.js +245 -0
  162. package/lib/converters/jenkins/builds.d.ts +9 -0
  163. package/lib/converters/jenkins/builds.js +74 -0
  164. package/lib/converters/jenkins/common.d.ts +25 -0
  165. package/lib/converters/jenkins/common.js +54 -0
  166. package/lib/converters/jenkins/jobs.d.ts +8 -0
  167. package/lib/converters/jenkins/jobs.js +29 -0
  168. package/lib/converters/jira/board_issues.d.ts +7 -0
  169. package/lib/converters/jira/board_issues.js +28 -0
  170. package/lib/converters/jira/boards.d.ts +7 -0
  171. package/lib/converters/jira/boards.js +34 -0
  172. package/lib/converters/jira/common.d.ts +61 -0
  173. package/lib/converters/jira/common.js +64 -0
  174. package/lib/converters/jira/epics.d.ts +8 -0
  175. package/lib/converters/jira/epics.js +45 -0
  176. package/lib/converters/jira/issue_fields.d.ts +7 -0
  177. package/lib/converters/jira/issue_fields.js +15 -0
  178. package/lib/converters/jira/issues.d.ts +52 -0
  179. package/lib/converters/jira/issues.js +545 -0
  180. package/lib/converters/jira/project_versions.d.ts +9 -0
  181. package/lib/converters/jira/project_versions.js +48 -0
  182. package/lib/converters/jira/projects.d.ts +7 -0
  183. package/lib/converters/jira/projects.js +40 -0
  184. package/lib/converters/jira/pull_requests.d.ts +7 -0
  185. package/lib/converters/jira/pull_requests.js +15 -0
  186. package/lib/converters/jira/sprint_issues.d.ts +7 -0
  187. package/lib/converters/jira/sprint_issues.js +15 -0
  188. package/lib/converters/jira/sprints.d.ts +16 -0
  189. package/lib/converters/jira/sprints.js +80 -0
  190. package/lib/converters/jira/users.d.ts +8 -0
  191. package/lib/converters/jira/users.js +33 -0
  192. package/lib/converters/jira/workflow_statuses.d.ts +7 -0
  193. package/lib/converters/jira/workflow_statuses.js +15 -0
  194. package/lib/converters/jsonata.d.ts +17 -0
  195. package/lib/converters/jsonata.js +47 -0
  196. package/lib/converters/okta/common.d.ts +8 -0
  197. package/lib/converters/okta/common.js +17 -0
  198. package/lib/converters/okta/groups.d.ts +7 -0
  199. package/lib/converters/okta/groups.js +47 -0
  200. package/lib/converters/okta/models.d.ts +102 -0
  201. package/lib/converters/okta/models.js +2 -0
  202. package/lib/converters/okta/users.d.ts +8 -0
  203. package/lib/converters/okta/users.js +73 -0
  204. package/lib/converters/okta_faros/common.d.ts +4 -0
  205. package/lib/converters/okta_faros/common.js +11 -0
  206. package/lib/converters/okta_faros/groups.d.ts +13 -0
  207. package/lib/converters/okta_faros/groups.js +23 -0
  208. package/lib/converters/okta_faros/users.d.ts +13 -0
  209. package/lib/converters/okta_faros/users.js +23 -0
  210. package/lib/converters/pagerduty/common.d.ts +37 -0
  211. package/lib/converters/pagerduty/common.js +40 -0
  212. package/lib/converters/pagerduty/incident_log_entries.d.ts +8 -0
  213. package/lib/converters/pagerduty/incident_log_entries.js +56 -0
  214. package/lib/converters/pagerduty/incidents.d.ts +10 -0
  215. package/lib/converters/pagerduty/incidents.js +127 -0
  216. package/lib/converters/pagerduty/priorities_resource.d.ts +11 -0
  217. package/lib/converters/pagerduty/priorities_resource.js +64 -0
  218. package/lib/converters/pagerduty/users.d.ts +7 -0
  219. package/lib/converters/pagerduty/users.js +26 -0
  220. package/lib/converters/phabricator/commits.d.ts +8 -0
  221. package/lib/converters/phabricator/commits.js +75 -0
  222. package/lib/converters/phabricator/common.d.ts +40 -0
  223. package/lib/converters/phabricator/common.js +107 -0
  224. package/lib/converters/phabricator/repositories.d.ts +7 -0
  225. package/lib/converters/phabricator/repositories.js +56 -0
  226. package/lib/converters/phabricator/revisions.d.ts +7 -0
  227. package/lib/converters/phabricator/revisions.js +83 -0
  228. package/lib/converters/phabricator/users.d.ts +7 -0
  229. package/lib/converters/phabricator/users.js +39 -0
  230. package/lib/converters/shortcut/common.d.ts +16 -0
  231. package/lib/converters/shortcut/common.js +68 -0
  232. package/lib/converters/shortcut/epics.d.ts +7 -0
  233. package/lib/converters/shortcut/epics.js +29 -0
  234. package/lib/converters/shortcut/iterations.d.ts +7 -0
  235. package/lib/converters/shortcut/iterations.js +29 -0
  236. package/lib/converters/shortcut/members.d.ts +7 -0
  237. package/lib/converters/shortcut/members.js +26 -0
  238. package/lib/converters/shortcut/models.d.ts +392 -0
  239. package/lib/converters/shortcut/models.js +30 -0
  240. package/lib/converters/shortcut/projects.d.ts +7 -0
  241. package/lib/converters/shortcut/projects.js +46 -0
  242. package/lib/converters/shortcut/stories.d.ts +7 -0
  243. package/lib/converters/shortcut/stories.js +127 -0
  244. package/lib/converters/squadcast/common.d.ts +169 -0
  245. package/lib/converters/squadcast/common.js +62 -0
  246. package/lib/converters/squadcast/events.d.ts +9 -0
  247. package/lib/converters/squadcast/events.js +53 -0
  248. package/lib/converters/squadcast/incidents.d.ts +10 -0
  249. package/lib/converters/squadcast/incidents.js +141 -0
  250. package/lib/converters/squadcast/services.d.ts +7 -0
  251. package/lib/converters/squadcast/services.js +28 -0
  252. package/lib/converters/squadcast/users.d.ts +7 -0
  253. package/lib/converters/squadcast/users.js +27 -0
  254. package/lib/converters/statuspage/common.d.ts +93 -0
  255. package/lib/converters/statuspage/common.js +80 -0
  256. package/lib/converters/statuspage/incident_updates.d.ts +8 -0
  257. package/lib/converters/statuspage/incident_updates.js +45 -0
  258. package/lib/converters/statuspage/incidents.d.ts +10 -0
  259. package/lib/converters/statuspage/incidents.js +128 -0
  260. package/lib/converters/statuspage/users.d.ts +7 -0
  261. package/lib/converters/statuspage/users.js +26 -0
  262. package/lib/converters/victorops/common.d.ts +16 -0
  263. package/lib/converters/victorops/common.js +24 -0
  264. package/lib/converters/victorops/incidents.d.ts +12 -0
  265. package/lib/converters/victorops/incidents.js +209 -0
  266. package/lib/converters/victorops/teams.d.ts +8 -0
  267. package/lib/converters/victorops/teams.js +30 -0
  268. package/lib/converters/victorops/users.d.ts +8 -0
  269. package/lib/converters/victorops/users.js +33 -0
  270. package/lib/destination-runner.d.ts +12 -0
  271. package/lib/destination-runner.js +22 -0
  272. package/lib/destination.d.ts +42 -0
  273. package/lib/destination.js +508 -0
  274. package/lib/index.d.ts +16 -0
  275. package/lib/index.js +39 -0
  276. package/lib/tsconfig.tsbuildinfo +1 -0
  277. package/package.json +71 -0
  278. package/resources/fetch-primary-keys.sql +16 -0
  279. package/resources/introspection-query.gql +61 -0
  280. package/resources/spec.json +468 -0
@@ -0,0 +1,315 @@
1
+ export interface Work extends BaseObject {
2
+ attributes: Attribute;
3
+ Id: string;
4
+ Name: string;
5
+ agf__Description__c: string | null;
6
+ agf__Type__c: WorkType;
7
+ agf__Priority__c: WorkPriority | null;
8
+ agf__Status__c: WorkStatus;
9
+ agf__Story_Points__c: number | null;
10
+ CreatedDate: string;
11
+ LastModifiedDate: string;
12
+ agf__Parent_ID__c: string | null;
13
+ CreatedById: string | null;
14
+ agf__Epic__c: string | null;
15
+ agf__Sprint__c: string | null;
16
+ CreatedBy: User | null;
17
+ agf__Epic__r: Epic | null;
18
+ agf__Sprint__r: Sprint | null;
19
+ /** Additional fields: */
20
+ OwnerId: string | null;
21
+ IsDeleted: boolean;
22
+ RecordTypeId: string | null;
23
+ LastModifiedById: string | null;
24
+ SystemModstamp: string | null;
25
+ LastActivityDate: string | null;
26
+ LastViewedDate: string | null;
27
+ LastReferencedDate: string | null;
28
+ agf__Additional_Details__c: string | null;
29
+ agf__Age_With_Scrum_Team_When_Closed__c: number;
30
+ agf__Age_With_Scrum_Team__c: number;
31
+ agf__Age__c: number;
32
+ agf__Apex_Hammer_Compile_Failure__c: boolean;
33
+ agf__Assigned_On__c: string | null;
34
+ agf__Assignee__c: string | null;
35
+ agf__Assignees__c: string | null;
36
+ agf__Attributes__c: string | null;
37
+ agf__Auto_Build__c: string | null;
38
+ agf__Backburner_Rank__c: string | null;
39
+ agf__Board_Column_Rank__c: string | null;
40
+ agf__Board_Column__c: string | null;
41
+ agf__Branch__c: string | null;
42
+ agf__Budget_ID__c: string | null;
43
+ agf__Bug_Number__c: string | null;
44
+ agf__CS_Contact__c: string | null;
45
+ agf__Capex_Enabled__c: boolean;
46
+ agf__Catchup_Factor__c: string | null;
47
+ agf__Child_ID__c: string | null;
48
+ agf__Closed_By__c: string | null;
49
+ agf__Closed_On__c: string | null;
50
+ agf__Closed__c: number;
51
+ agf__Cloud__c: string | null;
52
+ agf__Color__c: string | null;
53
+ agf__Column_Rank__c: string | null;
54
+ agf__Column__c: string | null;
55
+ agf__Comment_Copy__c: string | null;
56
+ agf__Complete_By__c: string | null;
57
+ agf__Created_By_import__c: string | null;
58
+ agf__Created_On_Date__c: string | null;
59
+ agf__Created_On_import__c: string | null;
60
+ agf__Critical_CRM_Feature__c: boolean;
61
+ agf__Customer_Impact__c: string | null;
62
+ agf__Customer__c: string | null;
63
+ agf__Data_Silo_Test_Affected__c: boolean;
64
+ agf__Deal_at_Risk__c: null;
65
+ agf__Dependencies__c: null;
66
+ agf__Dependents__c: null;
67
+ agf__Detailed__c: boolean;
68
+ agf__Details__c: null;
69
+ agf__Details_and_Steps_to_Reproduce__c: null;
70
+ agf__Due_Date__c: null;
71
+ agf__Email2GUS_Addresses__c: null;
72
+ agf__Email_On_Save_Copy__c: boolean;
73
+ agf__Email_On_Save__c: boolean;
74
+ agf__Email_Subscription_ID__c: string | null;
75
+ agf__Email_Subscription_Queue__c: string | null;
76
+ agf__Encoded_Recipients_Txt_Area__c: string | null;
77
+ agf__Environment__c: string | null;
78
+ agf__Epic_Name__c: string | null;
79
+ agf__Epic_Rank__c: string | null;
80
+ agf__Escalation_Point__c: string | null;
81
+ agf__Estimated_Financial_Impact__c: string | null;
82
+ agf__Executive_Involved__c: boolean;
83
+ agf__External_ID__c: string | null;
84
+ agf__Feature_Rank__c: string | null;
85
+ agf__Feedback__c: string | null;
86
+ agf__Found_In_Build_Copy__c: string | null;
87
+ agf__Found_In_Build_Name__c: string | null;
88
+ agf__Found_in_Build__c: string | null;
89
+ agf__Frequency_Name__c: string | null;
90
+ agf__Frequency__c: string | null;
91
+ agf__Goal__c: string | null;
92
+ agf__Has_Story_Points__c: string | null;
93
+ agf__Help_Status__c: string | null;
94
+ agf__Highlight__c: boolean;
95
+ agf__Impact_Name__c: string | null;
96
+ agf__Impact__c: string | null;
97
+ agf__Is_Ignorable__c: boolean;
98
+ agf__Is_Template__c: boolean;
99
+ agf__Known_Issue_ID__c: string | null;
100
+ agf__Known_Issue_Link__c: string | null;
101
+ agf__Known_Issue_Num_Reporting_Customers__c: string | null;
102
+ agf__Last_Modified_By_Copy__c: string | null;
103
+ agf__Last_Modified_By__c: string | null;
104
+ agf__Last_Updated_By__c: string | null;
105
+ agf__Log_Bug_From_Template__c: string | null;
106
+ agf__Major_Func_Area__c: string | null;
107
+ agf__Major_Release__c: string | null;
108
+ agf__Minor_Func_Area__c: string | null;
109
+ agf__Mobile_Device_OS__c: string | null;
110
+ agf__Mobile_Device__c: string | null;
111
+ agf__Mobile_Network__c: string | null;
112
+ agf__Modules__c: string | null;
113
+ agf__Num_Of_Prod_Occ__c: string | null;
114
+ agf__Number_of_Cases__c: number;
115
+ agf__Number_of_Change_Lists__c: number;
116
+ agf__Number_of_Orgs_affected__c: null;
117
+ agf__Number_of_Tests_Classes_affected__c: string | null;
118
+ agf__Origin__c: string | null;
119
+ agf__Other_Recipients__c: string | null;
120
+ agf__Out_of_SLA__c: boolean;
121
+ agf__Perforce_Status__c: string | null;
122
+ agf__Preserve_Formatting_Copy__c: boolean;
123
+ agf__Preserve_Formatting__c: boolean;
124
+ agf__Previous_Comments__c: string | null;
125
+ agf__Priority_Default__c: string | null;
126
+ agf__Priority_Mapping_Copy__c: string | null;
127
+ agf__Priority_Mapping__c: string | null;
128
+ agf__Priority_Override_Explanation_Copy__c: string | null;
129
+ agf__Priority_Override_Explanation__c: string | null;
130
+ agf__Priority_Rank__c: string | null;
131
+ agf__Product_Area__c: string | null;
132
+ agf__Product_Child__c: string | null;
133
+ agf__Product_Owner__c: string | null;
134
+ agf__Product_Tag_Name__c: string | null;
135
+ agf__Product_Tag__c: string | null;
136
+ agf__QA_Engineer__c: string | null;
137
+ agf__Readme_Notes__c: string | null;
138
+ agf__Record_Type__c: string | null;
139
+ agf__Red_Account__c: boolean;
140
+ agf__Regressed__c: boolean;
141
+ agf__Related_URL_Link__c: string | null;
142
+ agf__Related_URL__c: string | null;
143
+ agf__Related_Work__c: string | null;
144
+ agf__Release__c: string | null;
145
+ agf__Request_RD_Mgr_Review__c: boolean;
146
+ agf__Resolution__c: string | null;
147
+ agf__Resolved_By__c: string | null;
148
+ agf__Resolved_On__c: string | null;
149
+ agf__Resolved__c: number;
150
+ agf__Root_Cause_Analysis_2__c: string | null;
151
+ agf__S1_App_Build_Number__c: string | null;
152
+ agf__Scheduled_Build_Copy__c: string | null;
153
+ agf__Scheduled_Build_Name__c: string | null;
154
+ agf__Scheduled_Build_Rank__c: string | null;
155
+ agf__Scheduled_Build__c: string | null;
156
+ agf__Scheduled_On__c: string | null;
157
+ agf__Schema__c: boolean;
158
+ agf__Scrum_Team_Last_Modified__c: string | null;
159
+ agf__Scrum_Team_Name__c: string | null;
160
+ agf__Scrum_Team__c: string | null;
161
+ agf__Scrumforce_ID__c: string | null;
162
+ agf__Security__c: boolean;
163
+ agf__Senior_Management_POC__c: string | null;
164
+ agf__Severity_Copy__c: string | null;
165
+ agf__Severity_Level__c: string | null;
166
+ agf__Solution_Overview__c: string | null;
167
+ agf__Sprint_Name__c: string | null;
168
+ agf__Sprint_Rank__c: string | null;
169
+ agf__Sprint_Timeframe__c: string | null;
170
+ agf__Story_Status__c: string | null;
171
+ agf__Subject__c: string | null;
172
+ agf__Subscribe_to_Work__c: boolean;
173
+ agf__System_Test_Engineer__c: string | null;
174
+ agf__Target_Build__c: string | null;
175
+ agf__Tech_Writer__c: string | null;
176
+ agf__Template_Description__c: string | null;
177
+ agf__Template_Name__c: string | null;
178
+ agf__Test_Failure_Status__c: string | null;
179
+ agf__Test_Plan__c: string | null;
180
+ agf__Theme_Rank__c: string | null;
181
+ agf__Theme__c: string | null;
182
+ agf__Total_Age_When_Closed__c: number;
183
+ agf__Trust_Rank__c: string | null;
184
+ agf__Type_Value__c: number;
185
+ agf__UE_Engineer__c: string | null;
186
+ agf__Use_Prioritizer__c: boolean;
187
+ agf__User_Profile_of_the_Creator__c: string | null;
188
+ agf__User_Type__c: string | null;
189
+ agf__Was_Ever_Returned_to_Support__c: boolean;
190
+ agf__WorkId_and_Subject__c: string | null;
191
+ agf__ftest__c: string | null;
192
+ agf__of_Test_Failures__c: string | null;
193
+ agf__visual_link_num_of_Test_Failures__c: string | null;
194
+ agf__Completed_Hours__c: number;
195
+ agf__Number_of_SLA_Violations__c: number;
196
+ }
197
+ interface Attribute {
198
+ type: string;
199
+ /** URL path - without domain */
200
+ url: string;
201
+ }
202
+ interface BaseObject {
203
+ /** Domain url - doesn't include path */
204
+ baseUrl: string;
205
+ }
206
+ interface Epic {
207
+ Id: string;
208
+ Name: string;
209
+ agf__Description__c: string | null;
210
+ agf__Health__c: EpicHealth;
211
+ agf__Project__r: Project;
212
+ }
213
+ interface Project {
214
+ Id: string;
215
+ Name: string;
216
+ agf__Project_Management_Notes__c: string;
217
+ agf__Project_Summary__c: string;
218
+ CreatedDate: string;
219
+ LastModifiedDate: string;
220
+ }
221
+ interface Sprint {
222
+ Id: string;
223
+ Name: string;
224
+ CreatedDate: string;
225
+ LastModifiedDate: string;
226
+ agf__Retrospective__c: string;
227
+ agf__Committed_Points__c: number | null;
228
+ agf__Committed_Story_Points_Completed__c: number;
229
+ agf__Completed_Story_Points__c: number | null;
230
+ agf__Completion_Committed_Story_Points__c: number;
231
+ agf__Completion_Story_Points__c: number;
232
+ agf__Days_Remaining__c: SpringDaysRemaining;
233
+ agf__Start_Date__c: string;
234
+ agf__End_Date__c: string;
235
+ }
236
+ interface User {
237
+ Id: string;
238
+ Email: string;
239
+ Name: string;
240
+ Username: string;
241
+ }
242
+ export declare enum EpicHealth {
243
+ On_Track = "On Track",
244
+ Watch = "Watch",
245
+ Blocked = "Blocked",
246
+ Not_Started = "Not Started",
247
+ On_Hold = "On Hold",
248
+ Completed = "Completed",
249
+ Canceled = "Canceled",
250
+ Green = "Green",
251
+ Yellow = "Yellow",
252
+ Red = "Red"
253
+ }
254
+ export declare enum SpringDaysRemaining {
255
+ NOT_STARTED = "NOT STARTED",
256
+ CLOSED = "CLOSED"
257
+ }
258
+ export declare enum WorkType {
259
+ Bug = "Bug",
260
+ Gack = "Gack",
261
+ Help = "Help",
262
+ Integrate = "Integrate",
263
+ Test_Change = "Test Change",
264
+ Test_Case = "Test Case",
265
+ Test_Failure = "Test Failure",
266
+ Test_Tool = "Test Tool",
267
+ Skunkforce = "Skunkforce",
268
+ Bug_List = "Bug List",
269
+ Translation = "Translation",
270
+ Non_Deterministic_Test = "Non Deterministic Test"
271
+ }
272
+ declare enum WorkPriority {
273
+ P0 = "P0",
274
+ P1 = "P1",
275
+ P2 = "P2",
276
+ P3 = "P3",
277
+ P4 = "P4"
278
+ }
279
+ export declare enum WorkStatus {
280
+ New = "New",
281
+ Acknowledged = "Acknowledged",
282
+ Triaged = "Triaged",
283
+ In_Progress = "In Progress",
284
+ Investigating = "Investigating",
285
+ Ready_for_Review = "Ready for Review",
286
+ Fixed = "Fixed",
287
+ QA_In_Progress = "QA In Progress",
288
+ Closed = "Closed",
289
+ Closed_Defunct = "Closed - Defunct",
290
+ Closed_Duplicate = "Closed - Duplicate",
291
+ Closed_Eng_Internal = "Closed - Eng Internal",
292
+ Closed_Known_Bug_Exists = "Closed - Known Bug Exists",
293
+ Closed_New_Bug_Logged = "Closed - New Bug Logged",
294
+ Closed_LAP_Request_Approved = "Closed - LAP Request Approved",
295
+ Closed_LAP_Request_Denied = "Closed - LAP Request Denied",
296
+ Closed_Resolved_With_Internal_Tools = "Closed - Resolved With Internal Tools",
297
+ Closed_Resolved_Without_Code_Change = "Closed - Resolved Without Code Change",
298
+ Closed_No_Fix_Working_as_Designed = "Closed - No Fix - Working as Designed",
299
+ Closed_No_Fix_Feature_Request = "Closed - No Fix - Feature Request",
300
+ Closed_No_Fix_Will_Not_Fix = "Closed - No Fix - Will Not Fix",
301
+ Waiting = "Waiting",
302
+ Integrate = "Integrate",
303
+ Pending_Release = "Pending Release",
304
+ Duplicate = "Duplicate",
305
+ Inactive = "Inactive",
306
+ More_Info_Reqd_from_Support = "More Info Reqd from Support",
307
+ Never = "Never",
308
+ Not_a_bug = "Not a bug",
309
+ Not_Reproducible = "Not Reproducible",
310
+ Rejected = "Rejected",
311
+ Completed = "Completed",
312
+ Deferred = "Deferred",
313
+ Eng_Internal = "Eng Internal"
314
+ }
315
+ export {};
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkStatus = exports.WorkType = exports.SpringDaysRemaining = exports.EpicHealth = void 0;
4
+ var EpicHealth;
5
+ (function (EpicHealth) {
6
+ EpicHealth["On_Track"] = "On Track";
7
+ EpicHealth["Watch"] = "Watch";
8
+ EpicHealth["Blocked"] = "Blocked";
9
+ EpicHealth["Not_Started"] = "Not Started";
10
+ EpicHealth["On_Hold"] = "On Hold";
11
+ EpicHealth["Completed"] = "Completed";
12
+ EpicHealth["Canceled"] = "Canceled";
13
+ EpicHealth["Green"] = "Green";
14
+ EpicHealth["Yellow"] = "Yellow";
15
+ EpicHealth["Red"] = "Red";
16
+ })(EpicHealth = exports.EpicHealth || (exports.EpicHealth = {}));
17
+ var SpringDaysRemaining;
18
+ (function (SpringDaysRemaining) {
19
+ SpringDaysRemaining["NOT_STARTED"] = "NOT STARTED";
20
+ SpringDaysRemaining["CLOSED"] = "CLOSED";
21
+ })(SpringDaysRemaining = exports.SpringDaysRemaining || (exports.SpringDaysRemaining = {}));
22
+ var WorkType;
23
+ (function (WorkType) {
24
+ WorkType["Bug"] = "Bug";
25
+ WorkType["Gack"] = "Gack";
26
+ WorkType["Help"] = "Help";
27
+ WorkType["Integrate"] = "Integrate";
28
+ WorkType["Test_Change"] = "Test Change";
29
+ WorkType["Test_Case"] = "Test Case";
30
+ WorkType["Test_Failure"] = "Test Failure";
31
+ WorkType["Test_Tool"] = "Test Tool";
32
+ WorkType["Skunkforce"] = "Skunkforce";
33
+ WorkType["Bug_List"] = "Bug List";
34
+ WorkType["Translation"] = "Translation";
35
+ WorkType["Non_Deterministic_Test"] = "Non Deterministic Test";
36
+ })(WorkType = exports.WorkType || (exports.WorkType = {}));
37
+ var WorkPriority;
38
+ (function (WorkPriority) {
39
+ WorkPriority["P0"] = "P0";
40
+ WorkPriority["P1"] = "P1";
41
+ WorkPriority["P2"] = "P2";
42
+ WorkPriority["P3"] = "P3";
43
+ WorkPriority["P4"] = "P4";
44
+ })(WorkPriority || (WorkPriority = {}));
45
+ var WorkStatus;
46
+ (function (WorkStatus) {
47
+ WorkStatus["New"] = "New";
48
+ WorkStatus["Acknowledged"] = "Acknowledged";
49
+ WorkStatus["Triaged"] = "Triaged";
50
+ WorkStatus["In_Progress"] = "In Progress";
51
+ WorkStatus["Investigating"] = "Investigating";
52
+ WorkStatus["Ready_for_Review"] = "Ready for Review";
53
+ WorkStatus["Fixed"] = "Fixed";
54
+ WorkStatus["QA_In_Progress"] = "QA In Progress";
55
+ WorkStatus["Closed"] = "Closed";
56
+ WorkStatus["Closed_Defunct"] = "Closed - Defunct";
57
+ WorkStatus["Closed_Duplicate"] = "Closed - Duplicate";
58
+ WorkStatus["Closed_Eng_Internal"] = "Closed - Eng Internal";
59
+ WorkStatus["Closed_Known_Bug_Exists"] = "Closed - Known Bug Exists";
60
+ WorkStatus["Closed_New_Bug_Logged"] = "Closed - New Bug Logged";
61
+ WorkStatus["Closed_LAP_Request_Approved"] = "Closed - LAP Request Approved";
62
+ WorkStatus["Closed_LAP_Request_Denied"] = "Closed - LAP Request Denied";
63
+ WorkStatus["Closed_Resolved_With_Internal_Tools"] = "Closed - Resolved With Internal Tools";
64
+ WorkStatus["Closed_Resolved_Without_Code_Change"] = "Closed - Resolved Without Code Change";
65
+ WorkStatus["Closed_No_Fix_Working_as_Designed"] = "Closed - No Fix - Working as Designed";
66
+ WorkStatus["Closed_No_Fix_Feature_Request"] = "Closed - No Fix - Feature Request";
67
+ WorkStatus["Closed_No_Fix_Will_Not_Fix"] = "Closed - No Fix - Will Not Fix";
68
+ WorkStatus["Waiting"] = "Waiting";
69
+ WorkStatus["Integrate"] = "Integrate";
70
+ WorkStatus["Pending_Release"] = "Pending Release";
71
+ WorkStatus["Duplicate"] = "Duplicate";
72
+ WorkStatus["Inactive"] = "Inactive";
73
+ WorkStatus["More_Info_Reqd_from_Support"] = "More Info Reqd from Support";
74
+ WorkStatus["Never"] = "Never";
75
+ WorkStatus["Not_a_bug"] = "Not a bug";
76
+ WorkStatus["Not_Reproducible"] = "Not Reproducible";
77
+ WorkStatus["Rejected"] = "Rejected";
78
+ WorkStatus["Completed"] = "Completed";
79
+ WorkStatus["Deferred"] = "Deferred";
80
+ WorkStatus["Eng_Internal"] = "Eng Internal";
81
+ })(WorkStatus = exports.WorkStatus || (exports.WorkStatus = {}));
@@ -0,0 +1,64 @@
1
+ import { AirbyteRecord } from 'faros-airbyte-cdk';
2
+ import { Converter, StreamContext } from '../converter';
3
+ import { EpicHealth, SpringDaysRemaining, WorkStatus, WorkType } from './agileaccelerator_types';
4
+ export declare type TaskField = {
5
+ name: string;
6
+ value: string;
7
+ };
8
+ declare type EpicStatus = {
9
+ category: EpicStatusCategory;
10
+ detail: string;
11
+ };
12
+ declare enum SprintState {
13
+ Active = "Active",
14
+ Closed = "Closed",
15
+ Future = "Future"
16
+ }
17
+ declare type TaskType = {
18
+ category: TaskCategory;
19
+ detail: string;
20
+ };
21
+ declare type TaskStatus = {
22
+ category: TaskStatusCategory;
23
+ detail: string;
24
+ };
25
+ declare enum EpicStatusCategory {
26
+ Custom = "Custom",
27
+ Done = "Done",
28
+ InProgress = "InProgress",
29
+ Todo = "Todo"
30
+ }
31
+ declare enum TaskCategory {
32
+ Bug = "Bug",
33
+ Custom = "Custom",
34
+ Story = "Story",
35
+ Task = "Task"
36
+ }
37
+ declare enum TaskStatusCategory {
38
+ Custom = "Custom",
39
+ Done = "Done",
40
+ InProgress = "InProgress",
41
+ Todo = "Todo"
42
+ }
43
+ interface AgileAcceleratorConfig {
44
+ max_description_length?: number;
45
+ work_additional_fields?: string[];
46
+ }
47
+ export declare class AgileAcceleratorCommon {
48
+ static toDateTime(date: string, isStart?: boolean): Date;
49
+ static toStatus(type: WorkStatus): TaskStatus;
50
+ static toType(type: WorkType): TaskType;
51
+ static toEpicStatus(health: EpicHealth): EpicStatus;
52
+ static toSprintState(daysRemaining: SpringDaysRemaining): SprintState;
53
+ static toTaskField(name: string, value: string): TaskField;
54
+ }
55
+ /** AgileAccelerator converter base */
56
+ export declare abstract class AgileAcceleratorConverter extends Converter {
57
+ source: string;
58
+ /** Almost every AgileAccelerator record have id property */
59
+ id(record: AirbyteRecord): any;
60
+ protected agileacceleratorConfig(ctx: StreamContext): AgileAcceleratorConfig;
61
+ protected maxDescriptionLength(ctx: StreamContext): number;
62
+ protected workAdditionalFields(ctx: StreamContext): string[];
63
+ }
64
+ export {};
@@ -0,0 +1,167 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgileAcceleratorConverter = exports.AgileAcceleratorCommon = void 0;
4
+ const faros_feeds_sdk_1 = require("faros-feeds-sdk");
5
+ const converter_1 = require("../converter");
6
+ const agileaccelerator_types_1 = require("./agileaccelerator_types");
7
+ const MAX_DESCRIPTION_LENGTH = 1000;
8
+ var SprintState;
9
+ (function (SprintState) {
10
+ SprintState["Active"] = "Active";
11
+ SprintState["Closed"] = "Closed";
12
+ SprintState["Future"] = "Future";
13
+ })(SprintState || (SprintState = {}));
14
+ var EpicStatusCategory;
15
+ (function (EpicStatusCategory) {
16
+ EpicStatusCategory["Custom"] = "Custom";
17
+ EpicStatusCategory["Done"] = "Done";
18
+ EpicStatusCategory["InProgress"] = "InProgress";
19
+ EpicStatusCategory["Todo"] = "Todo";
20
+ })(EpicStatusCategory || (EpicStatusCategory = {}));
21
+ var TaskCategory;
22
+ (function (TaskCategory) {
23
+ TaskCategory["Bug"] = "Bug";
24
+ TaskCategory["Custom"] = "Custom";
25
+ TaskCategory["Story"] = "Story";
26
+ TaskCategory["Task"] = "Task";
27
+ })(TaskCategory || (TaskCategory = {}));
28
+ var TaskStatusCategory;
29
+ (function (TaskStatusCategory) {
30
+ TaskStatusCategory["Custom"] = "Custom";
31
+ TaskStatusCategory["Done"] = "Done";
32
+ TaskStatusCategory["InProgress"] = "InProgress";
33
+ TaskStatusCategory["Todo"] = "Todo";
34
+ })(TaskStatusCategory || (TaskStatusCategory = {}));
35
+ class AgileAcceleratorCommon {
36
+ static toDateTime(date, isStart = true) {
37
+ const hours = isStart ? '00' : '24';
38
+ const dateString = date.includes('T')
39
+ ? date
40
+ : date.concat(`T${hours}:00:00.000+0000`);
41
+ return faros_feeds_sdk_1.Utils.toDate(dateString);
42
+ }
43
+ static toStatus(type) {
44
+ const detail = type;
45
+ switch (detail) {
46
+ case agileaccelerator_types_1.WorkStatus.New:
47
+ case agileaccelerator_types_1.WorkStatus.Deferred:
48
+ case agileaccelerator_types_1.WorkStatus.Acknowledged:
49
+ case agileaccelerator_types_1.WorkStatus.Ready_for_Review:
50
+ case agileaccelerator_types_1.WorkStatus.Waiting:
51
+ return { category: TaskStatusCategory.Todo, detail };
52
+ case agileaccelerator_types_1.WorkStatus.Triaged:
53
+ case agileaccelerator_types_1.WorkStatus.In_Progress:
54
+ case agileaccelerator_types_1.WorkStatus.Investigating:
55
+ case agileaccelerator_types_1.WorkStatus.QA_In_Progress:
56
+ case agileaccelerator_types_1.WorkStatus.Pending_Release:
57
+ return { category: TaskStatusCategory.InProgress, detail };
58
+ case agileaccelerator_types_1.WorkStatus.Closed:
59
+ case agileaccelerator_types_1.WorkStatus.Closed_Defunct:
60
+ case agileaccelerator_types_1.WorkStatus.Closed_Duplicate:
61
+ case agileaccelerator_types_1.WorkStatus.Closed_Eng_Internal:
62
+ case agileaccelerator_types_1.WorkStatus.Closed_Known_Bug_Exists:
63
+ case agileaccelerator_types_1.WorkStatus.Closed_New_Bug_Logged:
64
+ case agileaccelerator_types_1.WorkStatus.Closed_LAP_Request_Approved:
65
+ case agileaccelerator_types_1.WorkStatus.Closed_LAP_Request_Denied:
66
+ case agileaccelerator_types_1.WorkStatus.Closed_Resolved_With_Internal_Tools:
67
+ case agileaccelerator_types_1.WorkStatus.Closed_Resolved_Without_Code_Change:
68
+ case agileaccelerator_types_1.WorkStatus.Closed_No_Fix_Working_as_Designed:
69
+ case agileaccelerator_types_1.WorkStatus.Closed_No_Fix_Feature_Request:
70
+ case agileaccelerator_types_1.WorkStatus.Closed_No_Fix_Will_Not_Fix:
71
+ case agileaccelerator_types_1.WorkStatus.Fixed:
72
+ case agileaccelerator_types_1.WorkStatus.Eng_Internal:
73
+ case agileaccelerator_types_1.WorkStatus.Completed:
74
+ return { category: TaskStatusCategory.Done, detail };
75
+ case agileaccelerator_types_1.WorkStatus.Duplicate:
76
+ case agileaccelerator_types_1.WorkStatus.Inactive:
77
+ case agileaccelerator_types_1.WorkStatus.More_Info_Reqd_from_Support:
78
+ case agileaccelerator_types_1.WorkStatus.Never:
79
+ case agileaccelerator_types_1.WorkStatus.Not_a_bug:
80
+ case agileaccelerator_types_1.WorkStatus.Not_Reproducible:
81
+ case agileaccelerator_types_1.WorkStatus.Rejected:
82
+ case agileaccelerator_types_1.WorkStatus.Integrate:
83
+ default:
84
+ return { category: TaskStatusCategory.Custom, detail };
85
+ }
86
+ }
87
+ static toType(type) {
88
+ const detail = type;
89
+ switch (detail) {
90
+ case agileaccelerator_types_1.WorkType.Bug:
91
+ case agileaccelerator_types_1.WorkType.Bug_List:
92
+ case agileaccelerator_types_1.WorkType.Test_Case:
93
+ case agileaccelerator_types_1.WorkType.Test_Failure:
94
+ return { category: TaskCategory.Bug, detail };
95
+ case agileaccelerator_types_1.WorkType.Help:
96
+ return { category: TaskCategory.Story, detail };
97
+ case agileaccelerator_types_1.WorkType.Integrate:
98
+ case agileaccelerator_types_1.WorkType.Test_Change:
99
+ case agileaccelerator_types_1.WorkType.Test_Tool:
100
+ return { category: TaskCategory.Task, detail };
101
+ case agileaccelerator_types_1.WorkType.Non_Deterministic_Test:
102
+ case agileaccelerator_types_1.WorkType.Skunkforce:
103
+ case agileaccelerator_types_1.WorkType.Translation:
104
+ case agileaccelerator_types_1.WorkType.Gack:
105
+ default:
106
+ return { category: TaskCategory.Custom, detail };
107
+ }
108
+ }
109
+ static toEpicStatus(health) {
110
+ const detail = health;
111
+ switch (detail) {
112
+ case agileaccelerator_types_1.EpicHealth.Not_Started:
113
+ return { category: EpicStatusCategory.Todo, detail };
114
+ case agileaccelerator_types_1.EpicHealth.On_Hold:
115
+ case agileaccelerator_types_1.EpicHealth.Watch:
116
+ case agileaccelerator_types_1.EpicHealth.Blocked:
117
+ case agileaccelerator_types_1.EpicHealth.On_Track:
118
+ return { category: EpicStatusCategory.InProgress, detail };
119
+ case agileaccelerator_types_1.EpicHealth.Completed:
120
+ return { category: EpicStatusCategory.Done, detail };
121
+ case agileaccelerator_types_1.EpicHealth.Canceled:
122
+ case agileaccelerator_types_1.EpicHealth.Green:
123
+ case agileaccelerator_types_1.EpicHealth.Yellow:
124
+ case agileaccelerator_types_1.EpicHealth.Red:
125
+ default:
126
+ return { category: EpicStatusCategory.Custom, detail };
127
+ }
128
+ }
129
+ static toSprintState(daysRemaining) {
130
+ const detail = daysRemaining;
131
+ switch (detail) {
132
+ case agileaccelerator_types_1.SpringDaysRemaining.CLOSED:
133
+ return SprintState.Closed;
134
+ case agileaccelerator_types_1.SpringDaysRemaining.NOT_STARTED:
135
+ return SprintState.Future;
136
+ }
137
+ }
138
+ static toTaskField(name, value) {
139
+ return { name, value };
140
+ }
141
+ }
142
+ exports.AgileAcceleratorCommon = AgileAcceleratorCommon;
143
+ /** AgileAccelerator converter base */
144
+ class AgileAcceleratorConverter extends converter_1.Converter {
145
+ constructor() {
146
+ super(...arguments);
147
+ this.source = 'AgileAccelerator';
148
+ }
149
+ /** Almost every AgileAccelerator record have id property */
150
+ id(record) {
151
+ var _a, _b;
152
+ return (_b = (_a = record === null || record === void 0 ? void 0 : record.record) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.Id;
153
+ }
154
+ agileacceleratorConfig(ctx) {
155
+ var _a, _b;
156
+ return (_b = (_a = ctx.config.source_specific_configs) === null || _a === void 0 ? void 0 : _a.agileaccelerator) !== null && _b !== void 0 ? _b : {};
157
+ }
158
+ maxDescriptionLength(ctx) {
159
+ var _a;
160
+ return ((_a = this.agileacceleratorConfig(ctx).max_description_length) !== null && _a !== void 0 ? _a : MAX_DESCRIPTION_LENGTH);
161
+ }
162
+ workAdditionalFields(ctx) {
163
+ var _a;
164
+ return (_a = this.agileacceleratorConfig(ctx).work_additional_fields) !== null && _a !== void 0 ? _a : [];
165
+ }
166
+ }
167
+ exports.AgileAcceleratorConverter = AgileAcceleratorConverter;
@@ -0,0 +1,7 @@
1
+ import { AirbyteRecord } from 'faros-airbyte-cdk';
2
+ import { DestinationModel, DestinationRecord, StreamContext } from '../converter';
3
+ import { AgileAcceleratorConverter } from './common';
4
+ export declare class Works extends AgileAcceleratorConverter {
5
+ readonly destinationModels: ReadonlyArray<DestinationModel>;
6
+ convert(record: AirbyteRecord, ctx: StreamContext): Promise<ReadonlyArray<DestinationRecord>>;
7
+ }