connectwise-rest 0.23.3 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/.eslintrc +19 -52
  2. package/.gitattributes +1 -0
  3. package/.github/workflows/codeql-analysis.yml +70 -0
  4. package/.github/workflows/node.js.yml +42 -0
  5. package/.mocharc.json +5 -0
  6. package/.prettierrc +7 -0
  7. package/.travis.yml +4 -2
  8. package/README.md +243 -230
  9. package/api-extractor.json +364 -0
  10. package/dist/Automate/AVTemplatePoliciesAPI.d.ts +27 -0
  11. package/dist/Automate/AVTemplatePoliciesAPI.d.ts.map +1 -0
  12. package/dist/Automate/AVTemplatePoliciesAPI.js +87 -0
  13. package/dist/Automate/AVTemplatePoliciesAPI.js.map +1 -0
  14. package/dist/Automate/ClientsAPI.d.ts +34 -0
  15. package/dist/Automate/ClientsAPI.d.ts.map +1 -0
  16. package/dist/Automate/ClientsAPI.js +114 -0
  17. package/dist/Automate/ClientsAPI.js.map +1 -0
  18. package/dist/Automate/CommandsAPI.d.ts +15 -0
  19. package/dist/Automate/CommandsAPI.d.ts.map +1 -0
  20. package/dist/Automate/CommandsAPI.js +31 -0
  21. package/dist/Automate/CommandsAPI.js.map +1 -0
  22. package/dist/Automate/ComputersAPI.d.ts +94 -0
  23. package/dist/Automate/ComputersAPI.d.ts.map +1 -0
  24. package/dist/Automate/ComputersAPI.js +353 -0
  25. package/dist/Automate/ComputersAPI.js.map +1 -0
  26. package/dist/Automate/ContactsAPI.d.ts +18 -0
  27. package/dist/Automate/ContactsAPI.d.ts.map +1 -0
  28. package/dist/Automate/ContactsAPI.js +45 -0
  29. package/dist/Automate/ContactsAPI.js.map +1 -0
  30. package/dist/Automate/DataViewsAPI.d.ts +16 -0
  31. package/dist/Automate/DataViewsAPI.d.ts.map +1 -0
  32. package/dist/Automate/DataViewsAPI.js +31 -0
  33. package/dist/Automate/DataViewsAPI.js.map +1 -0
  34. package/dist/Automate/DrivesAPI.d.ts +19 -0
  35. package/dist/Automate/DrivesAPI.d.ts.map +1 -0
  36. package/dist/Automate/DrivesAPI.js +52 -0
  37. package/dist/Automate/DrivesAPI.js.map +1 -0
  38. package/dist/Automate/EventLogsAPI.d.ts +14 -0
  39. package/dist/Automate/EventLogsAPI.d.ts.map +1 -0
  40. package/dist/Automate/EventLogsAPI.js +24 -0
  41. package/dist/Automate/EventLogsAPI.js.map +1 -0
  42. package/dist/Automate/LocationsAPI.d.ts +42 -0
  43. package/dist/Automate/LocationsAPI.d.ts.map +1 -0
  44. package/dist/Automate/LocationsAPI.js +133 -0
  45. package/dist/Automate/LocationsAPI.js.map +1 -0
  46. package/dist/Automate/MaintenanceWindowDefinitionsAPI.d.ts +14 -0
  47. package/dist/Automate/MaintenanceWindowDefinitionsAPI.d.ts.map +1 -0
  48. package/dist/Automate/MaintenanceWindowDefinitionsAPI.js +24 -0
  49. package/dist/Automate/MaintenanceWindowDefinitionsAPI.js.map +1 -0
  50. package/dist/Automate/MonitorsAPI.d.ts +23 -0
  51. package/dist/Automate/MonitorsAPI.d.ts.map +1 -0
  52. package/dist/Automate/MonitorsAPI.js +80 -0
  53. package/dist/Automate/MonitorsAPI.js.map +1 -0
  54. package/dist/Automate/NetworkDevicesAPI.d.ts +17 -0
  55. package/dist/Automate/NetworkDevicesAPI.d.ts.map +1 -0
  56. package/dist/Automate/NetworkDevicesAPI.js +38 -0
  57. package/dist/Automate/NetworkDevicesAPI.js.map +1 -0
  58. package/dist/Automate/PatchingAPI.d.ts +27 -0
  59. package/dist/Automate/PatchingAPI.d.ts.map +1 -0
  60. package/dist/Automate/PatchingAPI.js +94 -0
  61. package/dist/Automate/PatchingAPI.js.map +1 -0
  62. package/dist/Automate/RemoteAgentAPI.d.ts +18 -0
  63. package/dist/Automate/RemoteAgentAPI.d.ts.map +1 -0
  64. package/dist/Automate/RemoteAgentAPI.js +45 -0
  65. package/dist/Automate/RemoteAgentAPI.js.map +1 -0
  66. package/dist/Automate/ScriptingAPI.d.ts +32 -0
  67. package/dist/Automate/ScriptingAPI.d.ts.map +1 -0
  68. package/dist/Automate/ScriptingAPI.js +104 -0
  69. package/dist/Automate/ScriptingAPI.js.map +1 -0
  70. package/dist/Automate/SearchesAPI.d.ts +17 -0
  71. package/dist/Automate/SearchesAPI.d.ts.map +1 -0
  72. package/dist/Automate/SearchesAPI.js +38 -0
  73. package/dist/Automate/SearchesAPI.js.map +1 -0
  74. package/dist/Automate/SystemAPI.d.ts +72 -0
  75. package/dist/Automate/SystemAPI.d.ts.map +1 -0
  76. package/dist/Automate/SystemAPI.js +268 -0
  77. package/dist/Automate/SystemAPI.js.map +1 -0
  78. package/dist/Automate/TicketsAPI.d.ts +10 -0
  79. package/dist/Automate/TicketsAPI.d.ts.map +1 -0
  80. package/dist/Automate/TicketsAPI.js +24 -0
  81. package/dist/Automate/TicketsAPI.js.map +1 -0
  82. package/dist/Automate/UserProfilesAPI.d.ts +14 -0
  83. package/dist/Automate/UserProfilesAPI.d.ts.map +1 -0
  84. package/dist/Automate/UserProfilesAPI.js +23 -0
  85. package/dist/Automate/UserProfilesAPI.js.map +1 -0
  86. package/dist/Automate.d.ts +48 -0
  87. package/dist/Automate.d.ts.map +1 -0
  88. package/dist/Automate.js +167 -0
  89. package/dist/Automate.js.map +1 -0
  90. package/dist/AutomateAPI.d.ts +96 -0
  91. package/dist/AutomateAPI.d.ts.map +1 -0
  92. package/dist/AutomateAPI.js +168 -0
  93. package/dist/AutomateAPI.js.map +1 -0
  94. package/dist/AutomateTypes.d.ts +10437 -0
  95. package/dist/AutomateTypes.d.ts.map +1 -0
  96. package/dist/AutomateTypes.js +3 -0
  97. package/dist/AutomateTypes.js.map +1 -0
  98. package/dist/BaseAPI.d.ts +13 -0
  99. package/dist/BaseAPI.d.ts.map +1 -0
  100. package/dist/BaseAPI.js +53 -0
  101. package/dist/BaseAPI.js.map +1 -0
  102. package/dist/Manage/CompanyAPI.d.ts +573 -0
  103. package/dist/Manage/CompanyAPI.d.ts.map +1 -0
  104. package/dist/Manage/CompanyAPI.js +3294 -0
  105. package/dist/Manage/CompanyAPI.js.map +1 -0
  106. package/dist/Manage/ConfigurationsAPI.d.ts +24 -0
  107. package/dist/Manage/ConfigurationsAPI.d.ts.map +1 -0
  108. package/dist/Manage/ConfigurationsAPI.js +73 -0
  109. package/dist/Manage/ConfigurationsAPI.js.map +1 -0
  110. package/dist/Manage/ExpenseAPI.d.ts +68 -0
  111. package/dist/Manage/ExpenseAPI.d.ts.map +1 -0
  112. package/dist/Manage/ExpenseAPI.js +306 -0
  113. package/dist/Manage/ExpenseAPI.js.map +1 -0
  114. package/dist/Manage/FinanceAPI.d.ts +460 -0
  115. package/dist/Manage/FinanceAPI.d.ts.map +1 -0
  116. package/dist/Manage/FinanceAPI.js +2587 -0
  117. package/dist/Manage/FinanceAPI.js.map +1 -0
  118. package/dist/Manage/MarketingAPI.d.ts +120 -0
  119. package/dist/Manage/MarketingAPI.d.ts.map +1 -0
  120. package/dist/Manage/MarketingAPI.js +629 -0
  121. package/dist/Manage/MarketingAPI.js.map +1 -0
  122. package/dist/Manage/ProcurementAPI.d.ts +373 -0
  123. package/dist/Manage/ProcurementAPI.d.ts.map +1 -0
  124. package/dist/Manage/ProcurementAPI.js +2098 -0
  125. package/dist/Manage/ProcurementAPI.js.map +1 -0
  126. package/dist/Manage/ProjectAPI.d.ts +179 -0
  127. package/dist/Manage/ProjectAPI.d.ts.map +1 -0
  128. package/dist/Manage/ProjectAPI.js +940 -0
  129. package/dist/Manage/ProjectAPI.js.map +1 -0
  130. package/dist/Manage/SalesAPI.d.ts +254 -0
  131. package/dist/Manage/SalesAPI.d.ts.map +1 -0
  132. package/dist/Manage/SalesAPI.js +1392 -0
  133. package/dist/Manage/SalesAPI.js.map +1 -0
  134. package/dist/Manage/ScheduleAPI.d.ts +111 -0
  135. package/dist/Manage/ScheduleAPI.d.ts.map +1 -0
  136. package/dist/Manage/ScheduleAPI.js +575 -0
  137. package/dist/Manage/ScheduleAPI.js.map +1 -0
  138. package/dist/Manage/ServiceAPI.d.ts +419 -0
  139. package/dist/Manage/ServiceAPI.d.ts.map +1 -0
  140. package/dist/Manage/ServiceAPI.js +2334 -0
  141. package/dist/Manage/ServiceAPI.js.map +1 -0
  142. package/dist/Manage/SystemAPI.d.ts +809 -0
  143. package/dist/Manage/SystemAPI.d.ts.map +1 -0
  144. package/dist/Manage/SystemAPI.js +4531 -0
  145. package/dist/Manage/SystemAPI.js.map +1 -0
  146. package/dist/Manage/TimeAPI.d.ts +157 -0
  147. package/dist/Manage/TimeAPI.d.ts.map +1 -0
  148. package/dist/Manage/TimeAPI.js +835 -0
  149. package/dist/Manage/TimeAPI.js.map +1 -0
  150. package/dist/Manage.d.ts +34 -0
  151. package/dist/Manage.d.ts.map +1 -0
  152. package/dist/Manage.js +127 -0
  153. package/dist/Manage.js.map +1 -0
  154. package/dist/ManageAPI.d.ts +99 -0
  155. package/dist/ManageAPI.d.ts.map +1 -0
  156. package/dist/ManageAPI.js +112 -0
  157. package/dist/ManageAPI.js.map +1 -0
  158. package/dist/ManageTypes.d.ts +91320 -0
  159. package/dist/ManageTypes.d.ts.map +1 -0
  160. package/dist/ManageTypes.js +7 -0
  161. package/dist/ManageTypes.js.map +1 -0
  162. package/dist/index.d.ts +9 -0
  163. package/dist/index.d.ts.map +1 -0
  164. package/dist/index.js +38 -0
  165. package/dist/index.js.map +1 -0
  166. package/dist/types.d.ts +46 -0
  167. package/dist/types.d.ts.map +1 -0
  168. package/dist/types.js +21 -0
  169. package/dist/types.js.map +1 -0
  170. package/dist/utils/Callback.d.ts +67 -0
  171. package/dist/utils/Callback.d.ts.map +1 -0
  172. package/dist/utils/Callback.js +109 -0
  173. package/dist/utils/Callback.js.map +1 -0
  174. package/dist/utils/Series.d.ts +36 -0
  175. package/dist/utils/Series.d.ts.map +1 -0
  176. package/dist/utils/Series.js +64 -0
  177. package/dist/utils/Series.js.map +1 -0
  178. package/dist/utils/index.d.ts +7 -0
  179. package/dist/utils/index.d.ts.map +1 -0
  180. package/dist/utils/index.js +11 -0
  181. package/dist/utils/index.js.map +1 -0
  182. package/generator/automate-generator.js +75 -0
  183. package/generator/automate-json.js +61 -0
  184. package/generator/automate-types.js +15 -0
  185. package/generator/generator.d.ts +67 -0
  186. package/generator/generator.js +255 -0
  187. package/generator/manage-generator.js +71 -0
  188. package/generator/manage-types.js +14 -0
  189. package/package.json +48 -21
  190. package/src/Automate/AVTemplatePoliciesAPI.ts +114 -0
  191. package/src/Automate/ClientsAPI.ts +161 -0
  192. package/src/Automate/CommandsAPI.ts +33 -0
  193. package/src/Automate/ComputersAPI.ts +550 -0
  194. package/src/Automate/ContactsAPI.ts +56 -0
  195. package/src/Automate/DataViewsAPI.ts +36 -0
  196. package/src/Automate/DrivesAPI.ts +74 -0
  197. package/src/Automate/EventLogsAPI.ts +25 -0
  198. package/src/Automate/LocationsAPI.ts +206 -0
  199. package/src/Automate/MaintenanceWindowDefinitionsAPI.ts +28 -0
  200. package/src/Automate/MonitorsAPI.ts +94 -0
  201. package/src/Automate/NetworkDevicesAPI.ts +44 -0
  202. package/src/Automate/PatchingAPI.ts +109 -0
  203. package/src/Automate/RemoteAgentAPI.ts +58 -0
  204. package/src/Automate/ScriptingAPI.ts +137 -0
  205. package/src/Automate/SearchesAPI.ts +42 -0
  206. package/src/Automate/SystemAPI.ts +386 -0
  207. package/src/Automate/TicketsAPI.ts +24 -0
  208. package/src/Automate/UserProfilesAPI.ts +25 -0
  209. package/src/Automate.ts +216 -0
  210. package/src/AutomateAPI.ts +144 -0
  211. package/src/AutomateTypes.ts +10492 -0
  212. package/src/BaseAPI.ts +83 -0
  213. package/src/Manage/CompanyAPI.ts +4851 -0
  214. package/src/Manage/ConfigurationsAPI.ts +107 -0
  215. package/src/Manage/ExpenseAPI.ts +395 -0
  216. package/src/Manage/FinanceAPI.ts +3851 -0
  217. package/src/Manage/MarketingAPI.ts +935 -0
  218. package/src/Manage/ProcurementAPI.ts +3044 -0
  219. package/src/Manage/ProjectAPI.ts +1400 -0
  220. package/src/Manage/SalesAPI.ts +1922 -0
  221. package/src/Manage/ScheduleAPI.ts +751 -0
  222. package/src/Manage/ServiceAPI.ts +3401 -0
  223. package/src/Manage/SystemAPI.ts +6269 -0
  224. package/src/Manage/TimeAPI.ts +1121 -0
  225. package/src/Manage.ts +152 -0
  226. package/src/ManageAPI.ts +133 -0
  227. package/src/ManageTypes.ts +91318 -0
  228. package/src/index.ts +18 -0
  229. package/src/types.ts +66 -0
  230. package/src/utils/Callback.ts +145 -0
  231. package/src/utils/Series.ts +83 -0
  232. package/src/utils/index.ts +7 -0
  233. package/swagger-errors.md +30 -0
  234. package/test/.env.example +12 -4
  235. package/test/test-utils.ts +27 -0
  236. package/test/test.ts +320 -0
  237. package/tsconfig.json +29 -0
  238. package/doc.md +0 -5984
  239. package/docs/jsdoc.json +0 -15
  240. package/index.js +0 -10
  241. package/src/CompanyAPI/Companies.js +0 -149
  242. package/src/CompanyAPI/CompanyCompanyTypeAssociations.js +0 -111
  243. package/src/CompanyAPI/CompanySites.js +0 -70
  244. package/src/CompanyAPI/CompanyTeams.js +0 -108
  245. package/src/CompanyAPI/CompanyTypeInfos.js +0 -58
  246. package/src/CompanyAPI/CompanyTypes.js +0 -52
  247. package/src/CompanyAPI/Configurations.js +0 -152
  248. package/src/CompanyAPI/ContactContactTypeAssociations.js +0 -55
  249. package/src/CompanyAPI/ContactRelationships.js +0 -36
  250. package/src/CompanyAPI/Contacts.js +0 -199
  251. package/src/CompanyAPI/index.js +0 -53
  252. package/src/ConnectWise.js +0 -339
  253. package/src/ConnectWiseRest.js +0 -512
  254. package/src/FinanceAPI/Additions.js +0 -127
  255. package/src/FinanceAPI/Adjustments.js +0 -109
  256. package/src/FinanceAPI/AgreementSites.js +0 -108
  257. package/src/FinanceAPI/Agreements.js +0 -220
  258. package/src/FinanceAPI/BoardDefaults.js +0 -109
  259. package/src/FinanceAPI/WorkRoles.js +0 -113
  260. package/src/FinanceAPI/WorkTypeExclusions.js +0 -78
  261. package/src/FinanceAPI/WorkTypes.js +0 -124
  262. package/src/FinanceAPI/index.js +0 -50
  263. package/src/ProjectAPI/Projects.js +0 -142
  264. package/src/ProjectAPI/index.js +0 -28
  265. package/src/SalesAPI/Activities.js +0 -149
  266. package/src/SalesAPI/index.js +0 -14
  267. package/src/ScheduleAPI/ScheduleEntries.js +0 -109
  268. package/src/ScheduleAPI/ScheduleTypes.js +0 -101
  269. package/src/ScheduleAPI/index.js +0 -30
  270. package/src/ServiceDeskAPI/BoardItems.js +0 -134
  271. package/src/ServiceDeskAPI/BoardSubTypes.js +0 -112
  272. package/src/ServiceDeskAPI/BoardTeams.js +0 -108
  273. package/src/ServiceDeskAPI/BoardTypes.js +0 -139
  274. package/src/ServiceDeskAPI/Boards.js +0 -100
  275. package/src/ServiceDeskAPI/Priorities.js +0 -47
  276. package/src/ServiceDeskAPI/ServiceNotes.js +0 -172
  277. package/src/ServiceDeskAPI/Statuses.js +0 -116
  278. package/src/ServiceDeskAPI/Tickets.js +0 -588
  279. package/src/ServiceDeskAPI/index.js +0 -53
  280. package/src/SystemAPI/Members.js +0 -139
  281. package/src/SystemAPI/Reports.js +0 -116
  282. package/src/SystemAPI/index.js +0 -32
  283. package/src/TimeAPI/TimeEntries.js +0 -121
  284. package/src/TimeAPI/index.js +0 -27
  285. package/src/utils/Callback.js +0 -125
  286. package/src/utils/Series.js +0 -64
  287. package/src/utils/index.js +0 -21
  288. package/test/test.js +0 -114
@@ -0,0 +1,1400 @@
1
+ /* This file was auto-generated, do not manually edit. */
2
+ import Manage from '../Manage'
3
+ import { components } from '../ManageTypes'
4
+ import { CommonParameters, CWMOptions } from '../ManageAPI'
5
+ import { NoContentResponse, OctetStreamResponse, PDFResponse, HTMLResponse } from '../types'
6
+ type schemas = components['schemas']
7
+
8
+ export type ActivityReference = schemas['ActivityReference']
9
+ export type ConfigurationReference = schemas['ConfigurationReference']
10
+ export type ConvertItem = schemas['ConvertItem']
11
+ export type Count = schemas['Count']
12
+ export type DocumentReference = schemas['DocumentReference']
13
+ export type FilterValues = schemas['FilterValues']
14
+ export type PatchOperation = schemas['PatchOperation']
15
+ export type PhaseStatus = schemas['PhaseStatus']
16
+ export type ProductReference = schemas['ProductReference']
17
+ export type Project = schemas['Project']
18
+ export type ProjectBoardTeam = schemas['ProjectBoardTeam']
19
+ export type ProjectBoardTeamInfo = schemas['ProjectBoardTeamInfo']
20
+ export type ProjectBoardTeamMember = schemas['ProjectBoardTeamMember']
21
+ export type ProjectContact = schemas['ProjectContact']
22
+ export type ProjectNote = schemas['ProjectNote']
23
+ export type ProjectPhase = schemas['ProjectPhase']
24
+ export type ProjectSecurityRole = schemas['ProjectSecurityRole']
25
+ export type ProjectSecurityRoleSetting = schemas['ProjectSecurityRoleSetting']
26
+ export type ProjectStatus = schemas['ProjectStatus']
27
+ export type ProjectStatusInfo = schemas['ProjectStatusInfo']
28
+ export type ProjectTeamMember = schemas['ProjectTeamMember']
29
+ export type ProjectTicket = schemas['ProjectTicket']
30
+ export type ProjectTicketNote = schemas['ProjectTicketNote']
31
+ export type ProjectType = schemas['ProjectType']
32
+ export type ProjectTypeInfo = schemas['ProjectTypeInfo']
33
+ export type ScheduleEntryReference = schemas['ScheduleEntryReference']
34
+ export type StatusIndicator = schemas['StatusIndicator']
35
+ export type SuccessResponse = schemas['SuccessResponse']
36
+ export type TicketNote = schemas['TicketNote']
37
+ export type TicketTask = schemas['TicketTask']
38
+ export type TimeEntryReference = schemas['TimeEntryReference']
39
+ export type Usage = schemas['Usage']
40
+
41
+ /**
42
+ * @public
43
+ */
44
+ export default class ProjectAPI extends Manage {
45
+ constructor(props: CWMOptions) {
46
+ super(props)
47
+ }
48
+
49
+ getProjectBoardsByGrandparentIdTeamsByParentIdMembers(
50
+ parentId: number,
51
+ grandparentId: number,
52
+ params: CommonParameters = {},
53
+ ): Promise<Array<ProjectBoardTeamMember>> {
54
+ return this.request({
55
+ path: `/project/boards/${grandparentId}/teams/${parentId}/members`,
56
+ method: 'get',
57
+ params,
58
+ })
59
+ }
60
+
61
+ postProjectBoardsByGrandparentIdTeamsByParentIdMembers(
62
+ parentId: number,
63
+ grandparentId: number,
64
+ teamMember: ProjectBoardTeamMember,
65
+ ): Promise<ProjectBoardTeamMember> {
66
+ return this.request({
67
+ path: `/project/boards/${grandparentId}/teams/${parentId}/members`,
68
+ method: 'post',
69
+ data: teamMember,
70
+ })
71
+ }
72
+
73
+ getProjectBoardsByGrandparentIdTeamsByParentIdMembersById(
74
+ id: number,
75
+ parentId: number,
76
+ grandparentId: number,
77
+ params: CommonParameters = {},
78
+ ): Promise<ProjectBoardTeamMember> {
79
+ return this.request({
80
+ path: `/project/boards/${grandparentId}/teams/${parentId}/members/${id}`,
81
+ method: 'get',
82
+ params,
83
+ })
84
+ }
85
+
86
+ deleteProjectBoardsByGrandparentIdTeamsByParentIdMembersById(
87
+ id: number,
88
+ parentId: number,
89
+ grandparentId: number,
90
+ ): Promise<NoContentResponse> {
91
+ return this.request({
92
+ path: `/project/boards/${grandparentId}/teams/${parentId}/members/${id}`,
93
+ method: 'delete',
94
+ })
95
+ }
96
+
97
+ putProjectBoardsByGrandparentIdTeamsByParentIdMembersById(
98
+ id: number,
99
+ parentId: number,
100
+ grandparentId: number,
101
+ teamMember: ProjectBoardTeamMember,
102
+ ): Promise<ProjectBoardTeamMember> {
103
+ return this.request({
104
+ path: `/project/boards/${grandparentId}/teams/${parentId}/members/${id}`,
105
+ method: 'put',
106
+ data: teamMember,
107
+ })
108
+ }
109
+
110
+ patchProjectBoardsByGrandparentIdTeamsByParentIdMembersById(
111
+ id: number,
112
+ parentId: number,
113
+ grandparentId: number,
114
+ patchOperations: Array<PatchOperation>,
115
+ ): Promise<ProjectBoardTeamMember> {
116
+ return this.request({
117
+ path: `/project/boards/${grandparentId}/teams/${parentId}/members/${id}`,
118
+ method: 'patch',
119
+ data: patchOperations,
120
+ })
121
+ }
122
+
123
+ getProjectBoardsByParentIdTeams(
124
+ parentId: number,
125
+ params: CommonParameters = {},
126
+ ): Promise<Array<ProjectBoardTeam>> {
127
+ return this.request({
128
+ path: `/project/boards/${parentId}/teams`,
129
+ method: 'get',
130
+ params,
131
+ })
132
+ }
133
+
134
+ postProjectBoardsByParentIdTeams(
135
+ parentId: number,
136
+ team: ProjectBoardTeam,
137
+ ): Promise<ProjectBoardTeam> {
138
+ return this.request({
139
+ path: `/project/boards/${parentId}/teams`,
140
+ method: 'post',
141
+ data: team,
142
+ })
143
+ }
144
+
145
+ getProjectBoardsByParentIdTeamsById(
146
+ id: number,
147
+ parentId: number,
148
+ params: CommonParameters = {},
149
+ ): Promise<ProjectBoardTeam> {
150
+ return this.request({
151
+ path: `/project/boards/${parentId}/teams/${id}`,
152
+ method: 'get',
153
+ params,
154
+ })
155
+ }
156
+
157
+ deleteProjectBoardsByParentIdTeamsById(id: number, parentId: number): Promise<NoContentResponse> {
158
+ return this.request({
159
+ path: `/project/boards/${parentId}/teams/${id}`,
160
+ method: 'delete',
161
+ })
162
+ }
163
+
164
+ putProjectBoardsByParentIdTeamsById(
165
+ id: number,
166
+ parentId: number,
167
+ team: ProjectBoardTeam,
168
+ ): Promise<ProjectBoardTeam> {
169
+ return this.request({
170
+ path: `/project/boards/${parentId}/teams/${id}`,
171
+ method: 'put',
172
+ data: team,
173
+ })
174
+ }
175
+
176
+ patchProjectBoardsByParentIdTeamsById(
177
+ id: number,
178
+ parentId: number,
179
+ patchOperations: Array<PatchOperation>,
180
+ ): Promise<ProjectBoardTeam> {
181
+ return this.request({
182
+ path: `/project/boards/${parentId}/teams/${id}`,
183
+ method: 'patch',
184
+ data: patchOperations,
185
+ })
186
+ }
187
+
188
+ getProjectBoardsByParentIdTeamsByIdInfo(
189
+ id: number,
190
+ parentId: number,
191
+ params: CommonParameters = {},
192
+ ): Promise<ProjectBoardTeamInfo> {
193
+ return this.request({
194
+ path: `/project/boards/${parentId}/teams/${id}/info`,
195
+ method: 'get',
196
+ params,
197
+ })
198
+ }
199
+
200
+ getProjectBoardsByParentIdTeamsByIdInfoCount(
201
+ id: number,
202
+ parentId: number,
203
+ params: CommonParameters = {},
204
+ ): Promise<Count> {
205
+ return this.request({
206
+ path: `/project/boards/${parentId}/teams/${id}/info/count`,
207
+ method: 'get',
208
+ params,
209
+ })
210
+ }
211
+
212
+ getProjectBoardsByParentIdTeamsCount(
213
+ parentId: number,
214
+ params: CommonParameters = {},
215
+ ): Promise<Count> {
216
+ return this.request({
217
+ path: `/project/boards/${parentId}/teams/count`,
218
+ method: 'get',
219
+ params,
220
+ })
221
+ }
222
+
223
+ getProjectBoardsByParentIdTeamsInfo(
224
+ parentId: number,
225
+ params: CommonParameters = {},
226
+ ): Promise<Array<ProjectBoardTeamInfo>> {
227
+ return this.request({
228
+ path: `/project/boards/${parentId}/teams/info`,
229
+ method: 'get',
230
+ params,
231
+ })
232
+ }
233
+
234
+ getProjectPhaseStatuses(params: CommonParameters = {}): Promise<Array<PhaseStatus>> {
235
+ return this.request({
236
+ path: `/project/phaseStatuses`,
237
+ method: 'get',
238
+ params,
239
+ })
240
+ }
241
+
242
+ postProjectPhaseStatuses(phaseStatus: PhaseStatus): Promise<PhaseStatus> {
243
+ return this.request({
244
+ path: `/project/phaseStatuses`,
245
+ method: 'post',
246
+ data: phaseStatus,
247
+ })
248
+ }
249
+
250
+ getProjectPhaseStatusesById(id: number, params: CommonParameters = {}): Promise<PhaseStatus> {
251
+ return this.request({
252
+ path: `/project/phaseStatuses/${id}`,
253
+ method: 'get',
254
+ params,
255
+ })
256
+ }
257
+
258
+ deleteProjectPhaseStatusesById(id: number): Promise<NoContentResponse> {
259
+ return this.request({
260
+ path: `/project/phaseStatuses/${id}`,
261
+ method: 'delete',
262
+ })
263
+ }
264
+
265
+ putProjectPhaseStatusesById(id: number, phaseStatus: PhaseStatus): Promise<PhaseStatus> {
266
+ return this.request({
267
+ path: `/project/phaseStatuses/${id}`,
268
+ method: 'put',
269
+ data: phaseStatus,
270
+ })
271
+ }
272
+
273
+ patchProjectPhaseStatusesById(
274
+ id: number,
275
+ patchOperations: Array<PatchOperation>,
276
+ ): Promise<PhaseStatus> {
277
+ return this.request({
278
+ path: `/project/phaseStatuses/${id}`,
279
+ method: 'patch',
280
+ data: patchOperations,
281
+ })
282
+ }
283
+
284
+ getProjectPhaseStatusesByIdUsages(
285
+ id: number,
286
+ params: CommonParameters = {},
287
+ ): Promise<Array<Usage>> {
288
+ return this.request({
289
+ path: `/project/phaseStatuses/${id}/usages`,
290
+ method: 'get',
291
+ params,
292
+ })
293
+ }
294
+
295
+ getProjectPhaseStatusesByIdUsagesList(
296
+ id: number,
297
+ params: CommonParameters = {},
298
+ ): Promise<Array<Usage>> {
299
+ return this.request({
300
+ path: `/project/phaseStatuses/${id}/usages/list`,
301
+ method: 'get',
302
+ params,
303
+ })
304
+ }
305
+
306
+ getProjectPhaseStatusesCount(params: CommonParameters = {}): Promise<Count> {
307
+ return this.request({
308
+ path: `/project/phaseStatuses/count`,
309
+ method: 'get',
310
+ params,
311
+ })
312
+ }
313
+
314
+ getProjectProjects(params: CommonParameters = {}): Promise<Array<Project>> {
315
+ return this.request({
316
+ path: `/project/projects`,
317
+ method: 'get',
318
+ params,
319
+ })
320
+ }
321
+
322
+ postProjectProjects(project: Project): Promise<Project> {
323
+ return this.request({
324
+ path: `/project/projects`,
325
+ method: 'post',
326
+ data: project,
327
+ })
328
+ }
329
+
330
+ getProjectProjectsById(id: number, params: CommonParameters = {}): Promise<Project> {
331
+ return this.request({
332
+ path: `/project/projects/${id}`,
333
+ method: 'get',
334
+ params,
335
+ })
336
+ }
337
+
338
+ deleteProjectProjectsById(id: number): Promise<NoContentResponse> {
339
+ return this.request({
340
+ path: `/project/projects/${id}`,
341
+ method: 'delete',
342
+ })
343
+ }
344
+
345
+ putProjectProjectsById(id: number, project: Project): Promise<Project> {
346
+ return this.request({
347
+ path: `/project/projects/${id}`,
348
+ method: 'put',
349
+ data: project,
350
+ })
351
+ }
352
+
353
+ patchProjectProjectsById(id: number, patchOperations: Array<PatchOperation>): Promise<Project> {
354
+ return this.request({
355
+ path: `/project/projects/${id}`,
356
+ method: 'patch',
357
+ data: patchOperations,
358
+ })
359
+ }
360
+
361
+ getProjectProjectsByParentIdContacts(
362
+ parentId: number,
363
+ params: CommonParameters = {},
364
+ ): Promise<Array<ProjectContact>> {
365
+ return this.request({
366
+ path: `/project/projects/${parentId}/contacts`,
367
+ method: 'get',
368
+ params,
369
+ })
370
+ }
371
+
372
+ postProjectProjectsByParentIdContacts(
373
+ parentId: number,
374
+ contact: ProjectContact,
375
+ ): Promise<ProjectContact> {
376
+ return this.request({
377
+ path: `/project/projects/${parentId}/contacts`,
378
+ method: 'post',
379
+ data: contact,
380
+ })
381
+ }
382
+
383
+ getProjectProjectsByParentIdContactsById(
384
+ id: number,
385
+ parentId: number,
386
+ params: CommonParameters = {},
387
+ ): Promise<ProjectContact> {
388
+ return this.request({
389
+ path: `/project/projects/${parentId}/contacts/${id}`,
390
+ method: 'get',
391
+ params,
392
+ })
393
+ }
394
+
395
+ deleteProjectProjectsByParentIdContactsById(
396
+ id: number,
397
+ parentId: number,
398
+ ): Promise<NoContentResponse> {
399
+ return this.request({
400
+ path: `/project/projects/${parentId}/contacts/${id}`,
401
+ method: 'delete',
402
+ })
403
+ }
404
+
405
+ getProjectProjectsByParentIdNotes(
406
+ parentId: number,
407
+ params: CommonParameters = {},
408
+ ): Promise<Array<ProjectNote>> {
409
+ return this.request({
410
+ path: `/project/projects/${parentId}/notes`,
411
+ method: 'get',
412
+ params,
413
+ })
414
+ }
415
+
416
+ postProjectProjectsByParentIdNotes(parentId: number, note: ProjectNote): Promise<ProjectNote> {
417
+ return this.request({
418
+ path: `/project/projects/${parentId}/notes`,
419
+ method: 'post',
420
+ data: note,
421
+ })
422
+ }
423
+
424
+ getProjectProjectsByParentIdNotesById(
425
+ id: number,
426
+ parentId: number,
427
+ params: CommonParameters = {},
428
+ ): Promise<ProjectNote> {
429
+ return this.request({
430
+ path: `/project/projects/${parentId}/notes/${id}`,
431
+ method: 'get',
432
+ params,
433
+ })
434
+ }
435
+
436
+ deleteProjectProjectsByParentIdNotesById(
437
+ id: number,
438
+ parentId: number,
439
+ ): Promise<NoContentResponse> {
440
+ return this.request({
441
+ path: `/project/projects/${parentId}/notes/${id}`,
442
+ method: 'delete',
443
+ })
444
+ }
445
+
446
+ putProjectProjectsByParentIdNotesById(
447
+ id: number,
448
+ parentId: number,
449
+ note: ProjectNote,
450
+ ): Promise<ProjectNote> {
451
+ return this.request({
452
+ path: `/project/projects/${parentId}/notes/${id}`,
453
+ method: 'put',
454
+ data: note,
455
+ })
456
+ }
457
+
458
+ patchProjectProjectsByParentIdNotesById(
459
+ id: number,
460
+ parentId: number,
461
+ patchOperations: Array<PatchOperation>,
462
+ ): Promise<ProjectNote> {
463
+ return this.request({
464
+ path: `/project/projects/${parentId}/notes/${id}`,
465
+ method: 'patch',
466
+ data: patchOperations,
467
+ })
468
+ }
469
+
470
+ getProjectProjectsByParentIdNotesCount(
471
+ parentId: number,
472
+ params: CommonParameters = {},
473
+ ): Promise<Count> {
474
+ return this.request({
475
+ path: `/project/projects/${parentId}/notes/count`,
476
+ method: 'get',
477
+ params,
478
+ })
479
+ }
480
+
481
+ getProjectProjectsByParentIdPhases(
482
+ parentId: number,
483
+ params: CommonParameters = {},
484
+ ): Promise<Array<ProjectPhase>> {
485
+ return this.request({
486
+ path: `/project/projects/${parentId}/phases`,
487
+ method: 'get',
488
+ params,
489
+ })
490
+ }
491
+
492
+ postProjectProjectsByParentIdPhases(
493
+ parentId: number,
494
+ projectPhase: ProjectPhase,
495
+ ): Promise<ProjectPhase> {
496
+ return this.request({
497
+ path: `/project/projects/${parentId}/phases`,
498
+ method: 'post',
499
+ data: projectPhase,
500
+ })
501
+ }
502
+
503
+ getProjectProjectsByParentIdPhasesById(
504
+ id: number,
505
+ parentId: number,
506
+ params: CommonParameters = {},
507
+ ): Promise<ProjectPhase> {
508
+ return this.request({
509
+ path: `/project/projects/${parentId}/phases/${id}`,
510
+ method: 'get',
511
+ params,
512
+ })
513
+ }
514
+
515
+ deleteProjectProjectsByParentIdPhasesById(
516
+ id: number,
517
+ parentId: number,
518
+ ): Promise<NoContentResponse> {
519
+ return this.request({
520
+ path: `/project/projects/${parentId}/phases/${id}`,
521
+ method: 'delete',
522
+ })
523
+ }
524
+
525
+ putProjectProjectsByParentIdPhasesById(
526
+ id: number,
527
+ parentId: number,
528
+ projectPhase: ProjectPhase,
529
+ ): Promise<ProjectPhase> {
530
+ return this.request({
531
+ path: `/project/projects/${parentId}/phases/${id}`,
532
+ method: 'put',
533
+ data: projectPhase,
534
+ })
535
+ }
536
+
537
+ patchProjectProjectsByParentIdPhasesById(
538
+ id: number,
539
+ parentId: number,
540
+ patchOperations: Array<PatchOperation>,
541
+ ): Promise<ProjectPhase> {
542
+ return this.request({
543
+ path: `/project/projects/${parentId}/phases/${id}`,
544
+ method: 'patch',
545
+ data: patchOperations,
546
+ })
547
+ }
548
+
549
+ getProjectProjectsByParentIdPhasesCount(
550
+ parentId: number,
551
+ params: CommonParameters = {},
552
+ ): Promise<Count> {
553
+ return this.request({
554
+ path: `/project/projects/${parentId}/phases/count`,
555
+ method: 'get',
556
+ params,
557
+ })
558
+ }
559
+
560
+ getProjectProjectsByParentIdTeamMembers(
561
+ parentId: number,
562
+ params: CommonParameters = {},
563
+ ): Promise<Array<ProjectTeamMember>> {
564
+ return this.request({
565
+ path: `/project/projects/${parentId}/teamMembers`,
566
+ method: 'get',
567
+ params,
568
+ })
569
+ }
570
+
571
+ postProjectProjectsByParentIdTeamMembers(
572
+ parentId: number,
573
+ teamMember: ProjectTeamMember,
574
+ ): Promise<ProjectTeamMember> {
575
+ return this.request({
576
+ path: `/project/projects/${parentId}/teamMembers`,
577
+ method: 'post',
578
+ data: teamMember,
579
+ })
580
+ }
581
+
582
+ getProjectProjectsByParentIdTeamMembersById(
583
+ id: number,
584
+ parentId: number,
585
+ params: CommonParameters = {},
586
+ ): Promise<ProjectTeamMember> {
587
+ return this.request({
588
+ path: `/project/projects/${parentId}/teamMembers/${id}`,
589
+ method: 'get',
590
+ params,
591
+ })
592
+ }
593
+
594
+ deleteProjectProjectsByParentIdTeamMembersById(
595
+ id: number,
596
+ parentId: number,
597
+ ): Promise<NoContentResponse> {
598
+ return this.request({
599
+ path: `/project/projects/${parentId}/teamMembers/${id}`,
600
+ method: 'delete',
601
+ })
602
+ }
603
+
604
+ putProjectProjectsByParentIdTeamMembersById(
605
+ id: number,
606
+ parentId: number,
607
+ teamMember: ProjectTeamMember,
608
+ ): Promise<ProjectTeamMember> {
609
+ return this.request({
610
+ path: `/project/projects/${parentId}/teamMembers/${id}`,
611
+ method: 'put',
612
+ data: teamMember,
613
+ })
614
+ }
615
+
616
+ patchProjectProjectsByParentIdTeamMembersById(
617
+ id: number,
618
+ parentId: number,
619
+ patchOperations: Array<PatchOperation>,
620
+ ): Promise<ProjectTeamMember> {
621
+ return this.request({
622
+ path: `/project/projects/${parentId}/teamMembers/${id}`,
623
+ method: 'patch',
624
+ data: patchOperations,
625
+ })
626
+ }
627
+
628
+ getProjectProjectsByParentIdTeamMembersCount(
629
+ parentId: number,
630
+ params: CommonParameters = {},
631
+ ): Promise<Count> {
632
+ return this.request({
633
+ path: `/project/projects/${parentId}/teamMembers/count`,
634
+ method: 'get',
635
+ params,
636
+ })
637
+ }
638
+
639
+ getProjectProjectsCount(params: CommonParameters = {}): Promise<Count> {
640
+ return this.request({
641
+ path: `/project/projects/count`,
642
+ method: 'get',
643
+ params,
644
+ })
645
+ }
646
+
647
+ getProjectProjectTypes(params: CommonParameters = {}): Promise<Array<ProjectType>> {
648
+ return this.request({
649
+ path: `/project/projectTypes`,
650
+ method: 'get',
651
+ params,
652
+ })
653
+ }
654
+
655
+ postProjectProjectTypes(projectType: ProjectType): Promise<ProjectType> {
656
+ return this.request({
657
+ path: `/project/projectTypes`,
658
+ method: 'post',
659
+ data: projectType,
660
+ })
661
+ }
662
+
663
+ getProjectProjectTypesById(id: number, params: CommonParameters = {}): Promise<ProjectType> {
664
+ return this.request({
665
+ path: `/project/projectTypes/${id}`,
666
+ method: 'get',
667
+ params,
668
+ })
669
+ }
670
+
671
+ deleteProjectProjectTypesById(id: number): Promise<NoContentResponse> {
672
+ return this.request({
673
+ path: `/project/projectTypes/${id}`,
674
+ method: 'delete',
675
+ })
676
+ }
677
+
678
+ putProjectProjectTypesById(id: number, projectType: ProjectType): Promise<ProjectType> {
679
+ return this.request({
680
+ path: `/project/projectTypes/${id}`,
681
+ method: 'put',
682
+ data: projectType,
683
+ })
684
+ }
685
+
686
+ patchProjectProjectTypesById(
687
+ id: number,
688
+ patchOperations: Array<PatchOperation>,
689
+ ): Promise<ProjectType> {
690
+ return this.request({
691
+ path: `/project/projectTypes/${id}`,
692
+ method: 'patch',
693
+ data: patchOperations,
694
+ })
695
+ }
696
+
697
+ getProjectProjectTypesByIdInfo(
698
+ id: number,
699
+ params: CommonParameters = {},
700
+ ): Promise<ProjectTypeInfo> {
701
+ return this.request({
702
+ path: `/project/projectTypes/${id}/info`,
703
+ method: 'get',
704
+ params,
705
+ })
706
+ }
707
+
708
+ getProjectProjectTypesByIdUsages(
709
+ id: number,
710
+ params: CommonParameters = {},
711
+ ): Promise<Array<Usage>> {
712
+ return this.request({
713
+ path: `/project/projectTypes/${id}/usages`,
714
+ method: 'get',
715
+ params,
716
+ })
717
+ }
718
+
719
+ getProjectProjectTypesByIdUsagesList(
720
+ id: number,
721
+ params: CommonParameters = {},
722
+ ): Promise<Array<Usage>> {
723
+ return this.request({
724
+ path: `/project/projectTypes/${id}/usages/list`,
725
+ method: 'get',
726
+ params,
727
+ })
728
+ }
729
+
730
+ getProjectProjectTypesCount(params: CommonParameters = {}): Promise<Count> {
731
+ return this.request({
732
+ path: `/project/projectTypes/count`,
733
+ method: 'get',
734
+ params,
735
+ })
736
+ }
737
+
738
+ getProjectProjectTypesInfo(params: CommonParameters = {}): Promise<Array<ProjectTypeInfo>> {
739
+ return this.request({
740
+ path: `/project/projectTypes/info`,
741
+ method: 'get',
742
+ params,
743
+ })
744
+ }
745
+
746
+ getProjectProjectTypesInfoCount(params: CommonParameters = {}): Promise<Count> {
747
+ return this.request({
748
+ path: `/project/projectTypes/info/count`,
749
+ method: 'get',
750
+ params,
751
+ })
752
+ }
753
+
754
+ getProjectSecurityRoles(params: CommonParameters = {}): Promise<Array<ProjectSecurityRole>> {
755
+ return this.request({
756
+ path: `/project/securityRoles`,
757
+ method: 'get',
758
+ params,
759
+ })
760
+ }
761
+
762
+ postProjectSecurityRoles(projectSecurityRole: ProjectSecurityRole): Promise<ProjectSecurityRole> {
763
+ return this.request({
764
+ path: `/project/securityRoles`,
765
+ method: 'post',
766
+ data: projectSecurityRole,
767
+ })
768
+ }
769
+
770
+ getProjectSecurityRolesById(
771
+ id: number,
772
+ params: CommonParameters = {},
773
+ ): Promise<ProjectSecurityRole> {
774
+ return this.request({
775
+ path: `/project/securityRoles/${id}`,
776
+ method: 'get',
777
+ params,
778
+ })
779
+ }
780
+
781
+ deleteProjectSecurityRolesById(id: number): Promise<NoContentResponse> {
782
+ return this.request({
783
+ path: `/project/securityRoles/${id}`,
784
+ method: 'delete',
785
+ })
786
+ }
787
+
788
+ putProjectSecurityRolesById(
789
+ id: number,
790
+ projectSecurityRole: ProjectSecurityRole,
791
+ ): Promise<ProjectSecurityRole> {
792
+ return this.request({
793
+ path: `/project/securityRoles/${id}`,
794
+ method: 'put',
795
+ data: projectSecurityRole,
796
+ })
797
+ }
798
+
799
+ patchProjectSecurityRolesById(
800
+ id: number,
801
+ patchOperations: Array<PatchOperation>,
802
+ ): Promise<ProjectSecurityRole> {
803
+ return this.request({
804
+ path: `/project/securityRoles/${id}`,
805
+ method: 'patch',
806
+ data: patchOperations,
807
+ })
808
+ }
809
+
810
+ getProjectSecurityRolesByParentIdSettings(
811
+ parentId: number,
812
+ params: CommonParameters = {},
813
+ ): Promise<Array<ProjectSecurityRoleSetting>> {
814
+ return this.request({
815
+ path: `/project/securityRoles/${parentId}/settings`,
816
+ method: 'get',
817
+ params,
818
+ })
819
+ }
820
+
821
+ getProjectSecurityRolesByParentIdSettingsById(
822
+ id: number,
823
+ parentId: number,
824
+ params: CommonParameters = {},
825
+ ): Promise<ProjectSecurityRoleSetting> {
826
+ return this.request({
827
+ path: `/project/securityRoles/${parentId}/settings/${id}`,
828
+ method: 'get',
829
+ params,
830
+ })
831
+ }
832
+
833
+ putProjectSecurityRolesByParentIdSettingsById(
834
+ id: number,
835
+ parentId: number,
836
+ projectSecurityRoleSetting: ProjectSecurityRoleSetting,
837
+ ): Promise<ProjectSecurityRoleSetting> {
838
+ return this.request({
839
+ path: `/project/securityRoles/${parentId}/settings/${id}`,
840
+ method: 'put',
841
+ data: projectSecurityRoleSetting,
842
+ })
843
+ }
844
+
845
+ patchProjectSecurityRolesByParentIdSettingsById(
846
+ id: number,
847
+ parentId: number,
848
+ patchOperations: Array<PatchOperation>,
849
+ ): Promise<ProjectSecurityRoleSetting> {
850
+ return this.request({
851
+ path: `/project/securityRoles/${parentId}/settings/${id}`,
852
+ method: 'patch',
853
+ data: patchOperations,
854
+ })
855
+ }
856
+
857
+ getProjectSecurityRolesByParentIdSettingsCount(
858
+ parentId: number,
859
+ params: CommonParameters = {},
860
+ ): Promise<Count> {
861
+ return this.request({
862
+ path: `/project/securityRoles/${parentId}/settings/count`,
863
+ method: 'get',
864
+ params,
865
+ })
866
+ }
867
+
868
+ getProjectSecurityRolesCount(params: CommonParameters = {}): Promise<Count> {
869
+ return this.request({
870
+ path: `/project/securityRoles/count`,
871
+ method: 'get',
872
+ params,
873
+ })
874
+ }
875
+
876
+ getProjectStatuses(params: CommonParameters = {}): Promise<Array<ProjectStatus>> {
877
+ return this.request({
878
+ path: `/project/statuses`,
879
+ method: 'get',
880
+ params,
881
+ })
882
+ }
883
+
884
+ postProjectStatuses(projectStatus: ProjectStatus): Promise<ProjectStatus> {
885
+ return this.request({
886
+ path: `/project/statuses`,
887
+ method: 'post',
888
+ data: projectStatus,
889
+ })
890
+ }
891
+
892
+ getProjectStatusesById(id: number, params: CommonParameters = {}): Promise<ProjectStatus> {
893
+ return this.request({
894
+ path: `/project/statuses/${id}`,
895
+ method: 'get',
896
+ params,
897
+ })
898
+ }
899
+
900
+ deleteProjectStatusesById(id: number): Promise<NoContentResponse> {
901
+ return this.request({
902
+ path: `/project/statuses/${id}`,
903
+ method: 'delete',
904
+ })
905
+ }
906
+
907
+ putProjectStatusesById(id: number, projectStatus: ProjectStatus): Promise<ProjectStatus> {
908
+ return this.request({
909
+ path: `/project/statuses/${id}`,
910
+ method: 'put',
911
+ data: projectStatus,
912
+ })
913
+ }
914
+
915
+ patchProjectStatusesById(
916
+ id: number,
917
+ patchOperations: Array<PatchOperation>,
918
+ ): Promise<ProjectStatus> {
919
+ return this.request({
920
+ path: `/project/statuses/${id}`,
921
+ method: 'patch',
922
+ data: patchOperations,
923
+ })
924
+ }
925
+
926
+ getProjectStatusesByIdInfo(
927
+ id: number,
928
+ params: CommonParameters = {},
929
+ ): Promise<ProjectStatusInfo> {
930
+ return this.request({
931
+ path: `/project/statuses/${id}/info`,
932
+ method: 'get',
933
+ params,
934
+ })
935
+ }
936
+
937
+ getProjectStatusesCount(params: CommonParameters = {}): Promise<Count> {
938
+ return this.request({
939
+ path: `/project/statuses/count`,
940
+ method: 'get',
941
+ params,
942
+ })
943
+ }
944
+
945
+ getProjectStatusesInfo(params: CommonParameters = {}): Promise<Array<ProjectStatusInfo>> {
946
+ return this.request({
947
+ path: `/project/statuses/info`,
948
+ method: 'get',
949
+ params,
950
+ })
951
+ }
952
+
953
+ getProjectStatusesInfoCount(params: CommonParameters = {}): Promise<Count> {
954
+ return this.request({
955
+ path: `/project/statuses/info/count`,
956
+ method: 'get',
957
+ params,
958
+ })
959
+ }
960
+
961
+ getProjectStatusIndicators(params: CommonParameters = {}): Promise<Array<StatusIndicator>> {
962
+ return this.request({
963
+ path: `/project/statusIndicators`,
964
+ method: 'get',
965
+ params,
966
+ })
967
+ }
968
+
969
+ getProjectStatusIndicatorsById(
970
+ id: number,
971
+ params: CommonParameters = {},
972
+ ): Promise<StatusIndicator> {
973
+ return this.request({
974
+ path: `/project/statusIndicators/${id}`,
975
+ method: 'get',
976
+ params,
977
+ })
978
+ }
979
+
980
+ getProjectStatusIndicatorsCount(params: CommonParameters = {}): Promise<Count> {
981
+ return this.request({
982
+ path: `/project/statusIndicators/count`,
983
+ method: 'get',
984
+ params,
985
+ })
986
+ }
987
+
988
+ postProjectTicketNoteByIdMarkAs(id: number, item: ProjectTicketNote): Promise<any> {
989
+ return this.request({
990
+ path: `/project/ticketNote/${id}/markAs/`,
991
+ method: 'post',
992
+ data: item,
993
+ })
994
+ }
995
+
996
+ getProjectTickets(params: CommonParameters = {}): Promise<Array<ProjectTicket>> {
997
+ return this.request({
998
+ path: `/project/tickets`,
999
+ method: 'get',
1000
+ params,
1001
+ })
1002
+ }
1003
+
1004
+ postProjectTickets(ticket: ProjectTicket): Promise<ProjectTicket> {
1005
+ return this.request({
1006
+ path: `/project/tickets`,
1007
+ method: 'post',
1008
+ data: ticket,
1009
+ })
1010
+ }
1011
+
1012
+ getProjectTicketsById(id: number, params: CommonParameters = {}): Promise<ProjectTicket> {
1013
+ return this.request({
1014
+ path: `/project/tickets/${id}`,
1015
+ method: 'get',
1016
+ params,
1017
+ })
1018
+ }
1019
+
1020
+ deleteProjectTicketsById(id: number): Promise<NoContentResponse> {
1021
+ return this.request({
1022
+ path: `/project/tickets/${id}`,
1023
+ method: 'delete',
1024
+ })
1025
+ }
1026
+
1027
+ putProjectTicketsById(id: number, ticket: ProjectTicket): Promise<ProjectTicket> {
1028
+ return this.request({
1029
+ path: `/project/tickets/${id}`,
1030
+ method: 'put',
1031
+ data: ticket,
1032
+ })
1033
+ }
1034
+
1035
+ patchProjectTicketsById(
1036
+ id: number,
1037
+ patchOperations: Array<PatchOperation>,
1038
+ ): Promise<ProjectTicket> {
1039
+ return this.request({
1040
+ path: `/project/tickets/${id}`,
1041
+ method: 'patch',
1042
+ data: patchOperations,
1043
+ })
1044
+ }
1045
+
1046
+ getProjectTicketsByParentIdActivities(
1047
+ parentId: number,
1048
+ params: CommonParameters = {},
1049
+ ): Promise<Array<ActivityReference>> {
1050
+ return this.request({
1051
+ path: `/project/tickets/${parentId}/activities`,
1052
+ method: 'get',
1053
+ params,
1054
+ })
1055
+ }
1056
+
1057
+ getProjectTicketsByParentIdActivitiesCount(
1058
+ parentId: number,
1059
+ params: CommonParameters = {},
1060
+ ): Promise<Count> {
1061
+ return this.request({
1062
+ path: `/project/tickets/${parentId}/activities/count`,
1063
+ method: 'get',
1064
+ params,
1065
+ })
1066
+ }
1067
+
1068
+ getProjectTicketsByParentIdAllNotes(
1069
+ parentId: number,
1070
+ params: CommonParameters = {},
1071
+ ): Promise<Array<ProjectTicketNote>> {
1072
+ return this.request({
1073
+ path: `/project/tickets/${parentId}/allNotes`,
1074
+ method: 'get',
1075
+ params,
1076
+ })
1077
+ }
1078
+
1079
+ getProjectTicketsByParentIdConfigurations(
1080
+ parentId: number,
1081
+ params: CommonParameters = {},
1082
+ ): Promise<Array<ConfigurationReference>> {
1083
+ return this.request({
1084
+ path: `/project/tickets/${parentId}/configurations`,
1085
+ method: 'get',
1086
+ params,
1087
+ })
1088
+ }
1089
+
1090
+ postProjectTicketsByParentIdConfigurations(
1091
+ parentId: number,
1092
+ configuration: ConfigurationReference,
1093
+ ): Promise<ConfigurationReference> {
1094
+ return this.request({
1095
+ path: `/project/tickets/${parentId}/configurations`,
1096
+ method: 'post',
1097
+ data: configuration,
1098
+ })
1099
+ }
1100
+
1101
+ getProjectTicketsByParentIdConfigurationsById(
1102
+ id: number,
1103
+ parentId: number,
1104
+ params: CommonParameters = {},
1105
+ ): Promise<ConfigurationReference> {
1106
+ return this.request({
1107
+ path: `/project/tickets/${parentId}/configurations/${id}`,
1108
+ method: 'get',
1109
+ params,
1110
+ })
1111
+ }
1112
+
1113
+ deleteProjectTicketsByParentIdConfigurationsById(
1114
+ id: number,
1115
+ parentId: number,
1116
+ ): Promise<NoContentResponse> {
1117
+ return this.request({
1118
+ path: `/project/tickets/${parentId}/configurations/${id}`,
1119
+ method: 'delete',
1120
+ })
1121
+ }
1122
+
1123
+ getProjectTicketsByParentIdConfigurationsCount(
1124
+ parentId: number,
1125
+ params: CommonParameters = {},
1126
+ ): Promise<Count> {
1127
+ return this.request({
1128
+ path: `/project/tickets/${parentId}/configurations/count`,
1129
+ method: 'get',
1130
+ params,
1131
+ })
1132
+ }
1133
+
1134
+ postProjectTicketsByParentIdConvert(
1135
+ parentId: number,
1136
+ item: ConvertItem,
1137
+ ): Promise<SuccessResponse> {
1138
+ return this.request({
1139
+ path: `/project/tickets/${parentId}/convert`,
1140
+ method: 'post',
1141
+ data: item,
1142
+ })
1143
+ }
1144
+
1145
+ getProjectTicketsByParentIdDocuments(
1146
+ parentId: number,
1147
+ params: CommonParameters = {},
1148
+ ): Promise<Array<DocumentReference>> {
1149
+ return this.request({
1150
+ path: `/project/tickets/${parentId}/documents`,
1151
+ method: 'get',
1152
+ params,
1153
+ })
1154
+ }
1155
+
1156
+ getProjectTicketsByParentIdDocumentsCount(
1157
+ parentId: number,
1158
+ params: CommonParameters = {},
1159
+ ): Promise<Count> {
1160
+ return this.request({
1161
+ path: `/project/tickets/${parentId}/documents/count`,
1162
+ method: 'get',
1163
+ params,
1164
+ })
1165
+ }
1166
+
1167
+ getProjectTicketsByParentIdNotes(
1168
+ parentId: number,
1169
+ params: CommonParameters = {},
1170
+ ): Promise<Array<TicketNote>> {
1171
+ return this.request({
1172
+ path: `/project/tickets/${parentId}/notes`,
1173
+ method: 'get',
1174
+ params,
1175
+ })
1176
+ }
1177
+
1178
+ postProjectTicketsByParentIdNotes(parentId: number, ticketNote: TicketNote): Promise<TicketNote> {
1179
+ return this.request({
1180
+ path: `/project/tickets/${parentId}/notes`,
1181
+ method: 'post',
1182
+ data: ticketNote,
1183
+ })
1184
+ }
1185
+
1186
+ getProjectTicketsByParentIdNotesById(
1187
+ id: number,
1188
+ parentId: number,
1189
+ params: CommonParameters = {},
1190
+ ): Promise<TicketNote> {
1191
+ return this.request({
1192
+ path: `/project/tickets/${parentId}/notes/${id}`,
1193
+ method: 'get',
1194
+ params,
1195
+ })
1196
+ }
1197
+
1198
+ deleteProjectTicketsByParentIdNotesById(
1199
+ id: number,
1200
+ parentId: number,
1201
+ ): Promise<NoContentResponse> {
1202
+ return this.request({
1203
+ path: `/project/tickets/${parentId}/notes/${id}`,
1204
+ method: 'delete',
1205
+ })
1206
+ }
1207
+
1208
+ putProjectTicketsByParentIdNotesById(
1209
+ id: number,
1210
+ parentId: number,
1211
+ ticketNote: TicketNote,
1212
+ ): Promise<TicketNote> {
1213
+ return this.request({
1214
+ path: `/project/tickets/${parentId}/notes/${id}`,
1215
+ method: 'put',
1216
+ data: ticketNote,
1217
+ })
1218
+ }
1219
+
1220
+ patchProjectTicketsByParentIdNotesById(
1221
+ id: number,
1222
+ parentId: number,
1223
+ patchOperations: Array<PatchOperation>,
1224
+ ): Promise<TicketNote> {
1225
+ return this.request({
1226
+ path: `/project/tickets/${parentId}/notes/${id}`,
1227
+ method: 'patch',
1228
+ data: patchOperations,
1229
+ })
1230
+ }
1231
+
1232
+ getProjectTicketsByParentIdNotesCount(
1233
+ parentId: number,
1234
+ params: CommonParameters = {},
1235
+ ): Promise<Count> {
1236
+ return this.request({
1237
+ path: `/project/tickets/${parentId}/notes/count`,
1238
+ method: 'get',
1239
+ params,
1240
+ })
1241
+ }
1242
+
1243
+ getProjectTicketsByParentIdProducts(
1244
+ parentId: number,
1245
+ params: CommonParameters = {},
1246
+ ): Promise<Array<ProductReference>> {
1247
+ return this.request({
1248
+ path: `/project/tickets/${parentId}/products`,
1249
+ method: 'get',
1250
+ params,
1251
+ })
1252
+ }
1253
+
1254
+ getProjectTicketsByParentIdProductsCount(
1255
+ parentId: number,
1256
+ params: CommonParameters = {},
1257
+ ): Promise<Count> {
1258
+ return this.request({
1259
+ path: `/project/tickets/${parentId}/products/count`,
1260
+ method: 'get',
1261
+ params,
1262
+ })
1263
+ }
1264
+
1265
+ getProjectTicketsByParentIdScheduleentries(
1266
+ parentId: number,
1267
+ params: CommonParameters = {},
1268
+ ): Promise<Array<ScheduleEntryReference>> {
1269
+ return this.request({
1270
+ path: `/project/tickets/${parentId}/scheduleentries`,
1271
+ method: 'get',
1272
+ params,
1273
+ })
1274
+ }
1275
+
1276
+ getProjectTicketsByParentIdScheduleentriesCount(
1277
+ parentId: number,
1278
+ params: CommonParameters = {},
1279
+ ): Promise<Count> {
1280
+ return this.request({
1281
+ path: `/project/tickets/${parentId}/scheduleentries/count`,
1282
+ method: 'get',
1283
+ params,
1284
+ })
1285
+ }
1286
+
1287
+ getProjectTicketsByParentIdTasks(
1288
+ parentId: number,
1289
+ params: CommonParameters = {},
1290
+ ): Promise<Array<TicketTask>> {
1291
+ return this.request({
1292
+ path: `/project/tickets/${parentId}/tasks`,
1293
+ method: 'get',
1294
+ params,
1295
+ })
1296
+ }
1297
+
1298
+ postProjectTicketsByParentIdTasks(parentId: number, ticketTask: TicketTask): Promise<TicketTask> {
1299
+ return this.request({
1300
+ path: `/project/tickets/${parentId}/tasks`,
1301
+ method: 'post',
1302
+ data: ticketTask,
1303
+ })
1304
+ }
1305
+
1306
+ getProjectTicketsByParentIdTasksById(
1307
+ id: number,
1308
+ parentId: number,
1309
+ params: CommonParameters = {},
1310
+ ): Promise<TicketTask> {
1311
+ return this.request({
1312
+ path: `/project/tickets/${parentId}/tasks/${id}`,
1313
+ method: 'get',
1314
+ params,
1315
+ })
1316
+ }
1317
+
1318
+ deleteProjectTicketsByParentIdTasksById(
1319
+ id: number,
1320
+ parentId: number,
1321
+ ): Promise<NoContentResponse> {
1322
+ return this.request({
1323
+ path: `/project/tickets/${parentId}/tasks/${id}`,
1324
+ method: 'delete',
1325
+ })
1326
+ }
1327
+
1328
+ putProjectTicketsByParentIdTasksById(
1329
+ id: number,
1330
+ parentId: number,
1331
+ ticketTask: TicketTask,
1332
+ ): Promise<TicketTask> {
1333
+ return this.request({
1334
+ path: `/project/tickets/${parentId}/tasks/${id}`,
1335
+ method: 'put',
1336
+ data: ticketTask,
1337
+ })
1338
+ }
1339
+
1340
+ patchProjectTicketsByParentIdTasksById(
1341
+ id: number,
1342
+ parentId: number,
1343
+ patchOperations: Array<PatchOperation>,
1344
+ ): Promise<TicketTask> {
1345
+ return this.request({
1346
+ path: `/project/tickets/${parentId}/tasks/${id}`,
1347
+ method: 'patch',
1348
+ data: patchOperations,
1349
+ })
1350
+ }
1351
+
1352
+ getProjectTicketsByParentIdTasksCount(
1353
+ parentId: number,
1354
+ params: CommonParameters = {},
1355
+ ): Promise<Count> {
1356
+ return this.request({
1357
+ path: `/project/tickets/${parentId}/tasks/count`,
1358
+ method: 'get',
1359
+ params,
1360
+ })
1361
+ }
1362
+
1363
+ getProjectTicketsByParentIdTimeentries(
1364
+ parentId: number,
1365
+ params: CommonParameters = {},
1366
+ ): Promise<Array<TimeEntryReference>> {
1367
+ return this.request({
1368
+ path: `/project/tickets/${parentId}/timeentries`,
1369
+ method: 'get',
1370
+ params,
1371
+ })
1372
+ }
1373
+
1374
+ getProjectTicketsByParentIdTimeentriesCount(
1375
+ parentId: number,
1376
+ params: CommonParameters = {},
1377
+ ): Promise<Count> {
1378
+ return this.request({
1379
+ path: `/project/tickets/${parentId}/timeentries/count`,
1380
+ method: 'get',
1381
+ params,
1382
+ })
1383
+ }
1384
+
1385
+ getProjectTicketsCount(params: CommonParameters = {}): Promise<Count> {
1386
+ return this.request({
1387
+ path: `/project/tickets/count`,
1388
+ method: 'get',
1389
+ params,
1390
+ })
1391
+ }
1392
+
1393
+ postProjectTicketsSearch(filterValues: FilterValues): Promise<Array<ProjectTicket>> {
1394
+ return this.request({
1395
+ path: `/project/tickets/search`,
1396
+ method: 'post',
1397
+ data: filterValues,
1398
+ })
1399
+ }
1400
+ }