connectwise-rest 0.25.1 → 1.0.2

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