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,1121 @@
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 ActivityStopwatch = schemas['ActivityStopwatch']
9
+ export type ChargeCode = schemas['ChargeCode']
10
+ export type ChargeCodeExpenseType = schemas['ChargeCodeExpenseType']
11
+ export type ChargeCodeInfo = schemas['ChargeCodeInfo']
12
+ export type Count = schemas['Count']
13
+ export type PatchOperation = schemas['PatchOperation']
14
+ export type ScheduleStopwatch = schemas['ScheduleStopwatch']
15
+ export type SuccessResponse = schemas['SuccessResponse']
16
+ export type TicketStopwatch = schemas['TicketStopwatch']
17
+ export type TimeAccrual = schemas['TimeAccrual']
18
+ export type TimeAccrualDetail = schemas['TimeAccrualDetail']
19
+ export type TimeEntry = schemas['TimeEntry']
20
+ export type TimeEntryAudit = schemas['TimeEntryAudit']
21
+ export type TimePeriod = schemas['TimePeriod']
22
+ export type TimePeriodSetup = schemas['TimePeriodSetup']
23
+ export type TimePeriodSetupDefaults = schemas['TimePeriodSetupDefaults']
24
+ export type TimeSheet = schemas['TimeSheet']
25
+ export type TimeSheetAudit = schemas['TimeSheetAudit']
26
+ export type TimeSheetTierUpdate = schemas['TimeSheetTierUpdate']
27
+ export type Usage = schemas['Usage']
28
+ export type WorkRole = schemas['WorkRole']
29
+ export type WorkRoleInfo = schemas['WorkRoleInfo']
30
+ export type WorkRoleLocation = schemas['WorkRoleLocation']
31
+ export type WorkType = schemas['WorkType']
32
+ export type WorkTypeInfo = schemas['WorkTypeInfo']
33
+
34
+ /**
35
+ * @public
36
+ */
37
+ export default class TimeAPI extends Manage {
38
+ constructor(props: CWMOptions) {
39
+ super(props)
40
+ }
41
+
42
+ getTimeAccruals(params: CommonParameters = {}): Promise<Array<TimeAccrual>> {
43
+ return this.request({
44
+ path: `/time/accruals`,
45
+ method: 'get',
46
+ params,
47
+ })
48
+ }
49
+
50
+ postTimeAccruals(timeAccrual: TimeAccrual): Promise<TimeAccrual> {
51
+ return this.request({
52
+ path: `/time/accruals`,
53
+ method: 'post',
54
+ data: timeAccrual,
55
+ })
56
+ }
57
+
58
+ getTimeAccrualsById(id: number, params: CommonParameters = {}): Promise<TimeAccrual> {
59
+ return this.request({
60
+ path: `/time/accruals/${id}`,
61
+ method: 'get',
62
+ params,
63
+ })
64
+ }
65
+
66
+ deleteTimeAccrualsById(id: number): Promise<NoContentResponse> {
67
+ return this.request({
68
+ path: `/time/accruals/${id}`,
69
+ method: 'delete',
70
+ })
71
+ }
72
+
73
+ putTimeAccrualsById(id: number, timeAccrual: TimeAccrual): Promise<TimeAccrual> {
74
+ return this.request({
75
+ path: `/time/accruals/${id}`,
76
+ method: 'put',
77
+ data: timeAccrual,
78
+ })
79
+ }
80
+
81
+ patchTimeAccrualsById(id: number, patchOperations: Array<PatchOperation>): Promise<TimeAccrual> {
82
+ return this.request({
83
+ path: `/time/accruals/${id}`,
84
+ method: 'patch',
85
+ data: patchOperations,
86
+ })
87
+ }
88
+
89
+ getTimeAccrualsByParentIdDetails(
90
+ parentId: number,
91
+ params: CommonParameters = {},
92
+ ): Promise<Array<TimeAccrualDetail>> {
93
+ return this.request({
94
+ path: `/time/accruals/${parentId}/details`,
95
+ method: 'get',
96
+ params,
97
+ })
98
+ }
99
+
100
+ postTimeAccrualsByParentIdDetails(
101
+ parentId: number,
102
+ timeAccrualDetail: TimeAccrualDetail,
103
+ ): Promise<TimeAccrualDetail> {
104
+ return this.request({
105
+ path: `/time/accruals/${parentId}/details/`,
106
+ method: 'post',
107
+ data: timeAccrualDetail,
108
+ })
109
+ }
110
+
111
+ getTimeAccrualsByParentIdDetailsById(
112
+ id: number,
113
+ parentId: number,
114
+ params: CommonParameters = {},
115
+ ): Promise<TimeAccrualDetail> {
116
+ return this.request({
117
+ path: `/time/accruals/${parentId}/details/${id}`,
118
+ method: 'get',
119
+ params,
120
+ })
121
+ }
122
+
123
+ deleteTimeAccrualsByParentIdDetailsById(
124
+ id: number,
125
+ parentId: number,
126
+ ): Promise<NoContentResponse> {
127
+ return this.request({
128
+ path: `/time/accruals/${parentId}/details/${id}`,
129
+ method: 'delete',
130
+ })
131
+ }
132
+
133
+ putTimeAccrualsByParentIdDetailsById(
134
+ id: number,
135
+ parentId: number,
136
+ timeAccrualDetail: TimeAccrualDetail,
137
+ ): Promise<TimeAccrualDetail> {
138
+ return this.request({
139
+ path: `/time/accruals/${parentId}/details/${id}`,
140
+ method: 'put',
141
+ data: timeAccrualDetail,
142
+ })
143
+ }
144
+
145
+ patchTimeAccrualsByParentIdDetailsById(
146
+ id: number,
147
+ parentId: number,
148
+ patchOperations: Array<PatchOperation>,
149
+ ): Promise<TimeAccrualDetail> {
150
+ return this.request({
151
+ path: `/time/accruals/${parentId}/details/${id}`,
152
+ method: 'patch',
153
+ data: patchOperations,
154
+ })
155
+ }
156
+
157
+ getTimeAccrualsByParentIdDetailsCount(
158
+ parentId: number,
159
+ params: CommonParameters = {},
160
+ ): Promise<Count> {
161
+ return this.request({
162
+ path: `/time/accruals/${parentId}/details/count`,
163
+ method: 'get',
164
+ params,
165
+ })
166
+ }
167
+
168
+ getTimeAccrualsCount(params: CommonParameters = {}): Promise<Count> {
169
+ return this.request({
170
+ path: `/time/accruals/count`,
171
+ method: 'get',
172
+ params,
173
+ })
174
+ }
175
+
176
+ getTimeActivitystopwatches(params: CommonParameters = {}): Promise<Array<ActivityStopwatch>> {
177
+ return this.request({
178
+ path: `/time/activitystopwatches`,
179
+ method: 'get',
180
+ params,
181
+ })
182
+ }
183
+
184
+ postTimeActivitystopwatches(activityStopwatch: ActivityStopwatch): Promise<ActivityStopwatch> {
185
+ return this.request({
186
+ path: `/time/activitystopwatches`,
187
+ method: 'post',
188
+ data: activityStopwatch,
189
+ })
190
+ }
191
+
192
+ getTimeActivitystopwatchesById(
193
+ id: number,
194
+ params: CommonParameters = {},
195
+ ): Promise<ActivityStopwatch> {
196
+ return this.request({
197
+ path: `/time/activitystopwatches/${id}`,
198
+ method: 'get',
199
+ params,
200
+ })
201
+ }
202
+
203
+ deleteTimeActivitystopwatchesById(id: number): Promise<NoContentResponse> {
204
+ return this.request({
205
+ path: `/time/activitystopwatches/${id}`,
206
+ method: 'delete',
207
+ })
208
+ }
209
+
210
+ putTimeActivitystopwatchesById(
211
+ id: number,
212
+ activityStopwatch: ActivityStopwatch,
213
+ ): Promise<ActivityStopwatch> {
214
+ return this.request({
215
+ path: `/time/activitystopwatches/${id}`,
216
+ method: 'put',
217
+ data: activityStopwatch,
218
+ })
219
+ }
220
+
221
+ patchTimeActivitystopwatchesById(
222
+ id: number,
223
+ patchOperations: Array<PatchOperation>,
224
+ ): Promise<ActivityStopwatch> {
225
+ return this.request({
226
+ path: `/time/activitystopwatches/${id}`,
227
+ method: 'patch',
228
+ data: patchOperations,
229
+ })
230
+ }
231
+
232
+ getTimeActivitystopwatchesCount(params: CommonParameters = {}): Promise<Count> {
233
+ return this.request({
234
+ path: `/time/activitystopwatches/count`,
235
+ method: 'get',
236
+ params,
237
+ })
238
+ }
239
+
240
+ getTimeChargeCodes(params: CommonParameters = {}): Promise<Array<ChargeCode>> {
241
+ return this.request({
242
+ path: `/time/chargeCodes`,
243
+ method: 'get',
244
+ params,
245
+ })
246
+ }
247
+
248
+ postTimeChargeCodes(chargeCode: ChargeCode): Promise<ChargeCode> {
249
+ return this.request({
250
+ path: `/time/chargeCodes`,
251
+ method: 'post',
252
+ data: chargeCode,
253
+ })
254
+ }
255
+
256
+ getTimeChargeCodesById(id: number, params: CommonParameters = {}): Promise<ChargeCode> {
257
+ return this.request({
258
+ path: `/time/chargeCodes/${id}`,
259
+ method: 'get',
260
+ params,
261
+ })
262
+ }
263
+
264
+ deleteTimeChargeCodesById(id: number): Promise<NoContentResponse> {
265
+ return this.request({
266
+ path: `/time/chargeCodes/${id}`,
267
+ method: 'delete',
268
+ })
269
+ }
270
+
271
+ putTimeChargeCodesById(id: number, chargeCode: ChargeCode): Promise<ChargeCode> {
272
+ return this.request({
273
+ path: `/time/chargeCodes/${id}`,
274
+ method: 'put',
275
+ data: chargeCode,
276
+ })
277
+ }
278
+
279
+ patchTimeChargeCodesById(
280
+ id: number,
281
+ patchOperations: Array<PatchOperation>,
282
+ ): Promise<ChargeCode> {
283
+ return this.request({
284
+ path: `/time/chargeCodes/${id}`,
285
+ method: 'patch',
286
+ data: patchOperations,
287
+ })
288
+ }
289
+
290
+ getTimeChargeCodesByIdInfo(id: number, params: CommonParameters = {}): Promise<ChargeCodeInfo> {
291
+ return this.request({
292
+ path: `/time/chargeCodes/${id}/info`,
293
+ method: 'get',
294
+ params,
295
+ })
296
+ }
297
+
298
+ getTimeChargeCodesByIdUsages(id: number, params: CommonParameters = {}): Promise<Array<Usage>> {
299
+ return this.request({
300
+ path: `/time/chargeCodes/${id}/usages`,
301
+ method: 'get',
302
+ params,
303
+ })
304
+ }
305
+
306
+ getTimeChargeCodesByIdUsagesList(
307
+ id: number,
308
+ params: CommonParameters = {},
309
+ ): Promise<Array<Usage>> {
310
+ return this.request({
311
+ path: `/time/chargeCodes/${id}/usages/list`,
312
+ method: 'get',
313
+ params,
314
+ })
315
+ }
316
+
317
+ getTimeChargeCodesByParentIdExpenseTypes(
318
+ parentId: number,
319
+ params: CommonParameters = {},
320
+ ): Promise<Array<ChargeCodeExpenseType>> {
321
+ return this.request({
322
+ path: `/time/chargeCodes/${parentId}/expenseTypes`,
323
+ method: 'get',
324
+ params,
325
+ })
326
+ }
327
+
328
+ postTimeChargeCodesByParentIdExpenseTypes(
329
+ parentId: number,
330
+ chargeCodeExpenseType: ChargeCodeExpenseType,
331
+ ): Promise<ChargeCodeExpenseType> {
332
+ return this.request({
333
+ path: `/time/chargeCodes/${parentId}/expenseTypes`,
334
+ method: 'post',
335
+ data: chargeCodeExpenseType,
336
+ })
337
+ }
338
+
339
+ getTimeChargeCodesByParentIdExpenseTypesById(
340
+ id: number,
341
+ parentId: number,
342
+ params: CommonParameters = {},
343
+ ): Promise<ChargeCodeExpenseType> {
344
+ return this.request({
345
+ path: `/time/chargeCodes/${parentId}/expenseTypes/${id}`,
346
+ method: 'get',
347
+ params,
348
+ })
349
+ }
350
+
351
+ deleteTimeChargeCodesByParentIdExpenseTypesById(
352
+ id: number,
353
+ parentId: number,
354
+ ): Promise<NoContentResponse> {
355
+ return this.request({
356
+ path: `/time/chargeCodes/${parentId}/expenseTypes/${id}`,
357
+ method: 'delete',
358
+ })
359
+ }
360
+
361
+ putTimeChargeCodesByParentIdExpenseTypesById(
362
+ id: number,
363
+ parentId: number,
364
+ chargeCodeExpenseType: ChargeCodeExpenseType,
365
+ ): Promise<ChargeCodeExpenseType> {
366
+ return this.request({
367
+ path: `/time/chargeCodes/${parentId}/expenseTypes/${id}`,
368
+ method: 'put',
369
+ data: chargeCodeExpenseType,
370
+ })
371
+ }
372
+
373
+ patchTimeChargeCodesByParentIdExpenseTypesById(
374
+ id: number,
375
+ parentId: number,
376
+ patchOperations: Array<PatchOperation>,
377
+ ): Promise<ChargeCodeExpenseType> {
378
+ return this.request({
379
+ path: `/time/chargeCodes/${parentId}/expenseTypes/${id}`,
380
+ method: 'patch',
381
+ data: patchOperations,
382
+ })
383
+ }
384
+
385
+ getTimeChargeCodesByParentIdExpenseTypesCount(
386
+ parentId: number,
387
+ params: CommonParameters = {},
388
+ ): Promise<Count> {
389
+ return this.request({
390
+ path: `/time/chargeCodes/${parentId}/expenseTypes/count`,
391
+ method: 'get',
392
+ params,
393
+ })
394
+ }
395
+
396
+ getTimeChargeCodesCount(params: CommonParameters = {}): Promise<Count> {
397
+ return this.request({
398
+ path: `/time/chargeCodes/count`,
399
+ method: 'get',
400
+ params,
401
+ })
402
+ }
403
+
404
+ getTimeChargeCodesInfo(params: CommonParameters = {}): Promise<Array<ChargeCodeInfo>> {
405
+ return this.request({
406
+ path: `/time/chargeCodes/info`,
407
+ method: 'get',
408
+ params,
409
+ })
410
+ }
411
+
412
+ getTimeChargeCodesInfoCount(params: CommonParameters = {}): Promise<Count> {
413
+ return this.request({
414
+ path: `/time/chargeCodes/info/count`,
415
+ method: 'get',
416
+ params,
417
+ })
418
+ }
419
+
420
+ getTimeEntries(params: CommonParameters = {}): Promise<Array<TimeEntry>> {
421
+ return this.request({
422
+ path: `/time/entries`,
423
+ method: 'get',
424
+ params,
425
+ })
426
+ }
427
+
428
+ postTimeEntries(timeEntry: TimeEntry): Promise<TimeEntry> {
429
+ return this.request({
430
+ path: `/time/entries`,
431
+ method: 'post',
432
+ data: timeEntry,
433
+ })
434
+ }
435
+
436
+ getTimeEntriesById(id: number, params: CommonParameters = {}): Promise<TimeEntry> {
437
+ return this.request({
438
+ path: `/time/entries/${id}`,
439
+ method: 'get',
440
+ params,
441
+ })
442
+ }
443
+
444
+ deleteTimeEntriesById(id: number): Promise<NoContentResponse> {
445
+ return this.request({
446
+ path: `/time/entries/${id}`,
447
+ method: 'delete',
448
+ })
449
+ }
450
+
451
+ putTimeEntriesById(id: number, timeEntry: TimeEntry): Promise<TimeEntry> {
452
+ return this.request({
453
+ path: `/time/entries/${id}`,
454
+ method: 'put',
455
+ data: timeEntry,
456
+ })
457
+ }
458
+
459
+ patchTimeEntriesById(id: number, patchOperations: Array<PatchOperation>): Promise<TimeEntry> {
460
+ return this.request({
461
+ path: `/time/entries/${id}`,
462
+ method: 'patch',
463
+ data: patchOperations,
464
+ })
465
+ }
466
+
467
+ getTimeEntriesByParentIdAudits(
468
+ parentId: number,
469
+ params: CommonParameters = {},
470
+ ): Promise<Array<TimeEntryAudit>> {
471
+ return this.request({
472
+ path: `/time/entries/${parentId}/audits`,
473
+ method: 'get',
474
+ params,
475
+ })
476
+ }
477
+
478
+ getTimeEntriesByParentIdAuditsById(
479
+ id: number,
480
+ parentId: number,
481
+ params: CommonParameters = {},
482
+ ): Promise<TimeEntryAudit> {
483
+ return this.request({
484
+ path: `/time/entries/${parentId}/audits/${id}`,
485
+ method: 'get',
486
+ params,
487
+ })
488
+ }
489
+
490
+ getTimeEntriesByParentIdAuditsCount(
491
+ parentId: number,
492
+ params: CommonParameters = {},
493
+ ): Promise<Count> {
494
+ return this.request({
495
+ path: `/time/entries/${parentId}/audits/count`,
496
+ method: 'get',
497
+ params,
498
+ })
499
+ }
500
+
501
+ getTimeEntriesCount(params: CommonParameters = {}): Promise<Count> {
502
+ return this.request({
503
+ path: `/time/entries/count`,
504
+ method: 'get',
505
+ params,
506
+ })
507
+ }
508
+
509
+ postTimeEntriesDefaults(timeEntry: TimeEntry): Promise<TimeEntry> {
510
+ return this.request({
511
+ path: `/time/entries/defaults`,
512
+ method: 'post',
513
+ data: timeEntry,
514
+ })
515
+ }
516
+
517
+ getTimeInfoChargeCodeExpenseTypes(
518
+ params: CommonParameters = {},
519
+ ): Promise<Array<ChargeCodeExpenseType>> {
520
+ return this.request({
521
+ path: `/time/info/chargeCodeExpenseTypes`,
522
+ method: 'get',
523
+ params,
524
+ })
525
+ }
526
+
527
+ getTimeInfoChargeCodeExpenseTypesCount(params: CommonParameters = {}): Promise<Count> {
528
+ return this.request({
529
+ path: `/time/info/chargeCodeExpenseTypes/count`,
530
+ method: 'get',
531
+ params,
532
+ })
533
+ }
534
+
535
+ getTimeSchedulestopwatches(params: CommonParameters = {}): Promise<Array<ScheduleStopwatch>> {
536
+ return this.request({
537
+ path: `/time/schedulestopwatches`,
538
+ method: 'get',
539
+ params,
540
+ })
541
+ }
542
+
543
+ postTimeSchedulestopwatches(scheduleStopwatch: ScheduleStopwatch): Promise<ScheduleStopwatch> {
544
+ return this.request({
545
+ path: `/time/schedulestopwatches`,
546
+ method: 'post',
547
+ data: scheduleStopwatch,
548
+ })
549
+ }
550
+
551
+ getTimeSchedulestopwatchesById(
552
+ id: number,
553
+ params: CommonParameters = {},
554
+ ): Promise<ScheduleStopwatch> {
555
+ return this.request({
556
+ path: `/time/schedulestopwatches/${id}`,
557
+ method: 'get',
558
+ params,
559
+ })
560
+ }
561
+
562
+ deleteTimeSchedulestopwatchesById(id: number): Promise<NoContentResponse> {
563
+ return this.request({
564
+ path: `/time/schedulestopwatches/${id}`,
565
+ method: 'delete',
566
+ })
567
+ }
568
+
569
+ putTimeSchedulestopwatchesById(
570
+ id: number,
571
+ scheduleStopwatch: ScheduleStopwatch,
572
+ ): Promise<ScheduleStopwatch> {
573
+ return this.request({
574
+ path: `/time/schedulestopwatches/${id}`,
575
+ method: 'put',
576
+ data: scheduleStopwatch,
577
+ })
578
+ }
579
+
580
+ patchTimeSchedulestopwatchesById(
581
+ id: number,
582
+ patchOperations: Array<PatchOperation>,
583
+ ): Promise<ScheduleStopwatch> {
584
+ return this.request({
585
+ path: `/time/schedulestopwatches/${id}`,
586
+ method: 'patch',
587
+ data: patchOperations,
588
+ })
589
+ }
590
+
591
+ getTimeSchedulestopwatchesCount(params: CommonParameters = {}): Promise<Count> {
592
+ return this.request({
593
+ path: `/time/schedulestopwatches/count`,
594
+ method: 'get',
595
+ params,
596
+ })
597
+ }
598
+
599
+ getTimeSheets(params: CommonParameters = {}): Promise<Array<TimeSheet>> {
600
+ return this.request({
601
+ path: `/time/sheets`,
602
+ method: 'get',
603
+ params,
604
+ })
605
+ }
606
+
607
+ getTimeSheetsById(id: number, params: CommonParameters = {}): Promise<TimeSheet> {
608
+ return this.request({
609
+ path: `/time/sheets/${id}`,
610
+ method: 'get',
611
+ params,
612
+ })
613
+ }
614
+
615
+ postTimeSheetsByIdApprove(id: number, sheetId: TimeSheetTierUpdate): Promise<SuccessResponse> {
616
+ return this.request({
617
+ path: `/time/sheets/${id}/approve`,
618
+ method: 'post',
619
+ data: sheetId,
620
+ })
621
+ }
622
+
623
+ postTimeSheetsByIdReject(id: number): Promise<SuccessResponse> {
624
+ return this.request({
625
+ path: `/time/sheets/${id}/reject`,
626
+ method: 'post',
627
+ })
628
+ }
629
+
630
+ postTimeSheetsByIdReverse(id: number): Promise<SuccessResponse> {
631
+ return this.request({
632
+ path: `/time/sheets/${id}/reverse`,
633
+ method: 'post',
634
+ })
635
+ }
636
+
637
+ postTimeSheetsByIdSubmit(id: number): Promise<SuccessResponse> {
638
+ return this.request({
639
+ path: `/time/sheets/${id}/submit`,
640
+ method: 'post',
641
+ })
642
+ }
643
+
644
+ getTimeSheetsByParentIdAudits(
645
+ parentId: number,
646
+ params: CommonParameters = {},
647
+ ): Promise<Array<TimeSheetAudit>> {
648
+ return this.request({
649
+ path: `/time/sheets/${parentId}/audits`,
650
+ method: 'get',
651
+ params,
652
+ })
653
+ }
654
+
655
+ getTimeSheetsByParentIdAuditsById(
656
+ id: number,
657
+ parentId: number,
658
+ params: CommonParameters = {},
659
+ ): Promise<TimeSheetAudit> {
660
+ return this.request({
661
+ path: `/time/sheets/${parentId}/audits/${id}`,
662
+ method: 'get',
663
+ params,
664
+ })
665
+ }
666
+
667
+ getTimeSheetsByParentIdAuditsCount(
668
+ parentId: number,
669
+ params: CommonParameters = {},
670
+ ): Promise<Count> {
671
+ return this.request({
672
+ path: `/time/sheets/${parentId}/audits/count`,
673
+ method: 'get',
674
+ params,
675
+ })
676
+ }
677
+
678
+ getTimeSheetsCount(params: CommonParameters = {}): Promise<Count> {
679
+ return this.request({
680
+ path: `/time/sheets/count`,
681
+ method: 'get',
682
+ params,
683
+ })
684
+ }
685
+
686
+ getTimeTicketstopwatches(params: CommonParameters = {}): Promise<Array<TicketStopwatch>> {
687
+ return this.request({
688
+ path: `/time/ticketstopwatches`,
689
+ method: 'get',
690
+ params,
691
+ })
692
+ }
693
+
694
+ postTimeTicketstopwatches(ticketStopwatch: TicketStopwatch): Promise<TicketStopwatch> {
695
+ return this.request({
696
+ path: `/time/ticketstopwatches`,
697
+ method: 'post',
698
+ data: ticketStopwatch,
699
+ })
700
+ }
701
+
702
+ getTimeTicketstopwatchesById(
703
+ id: number,
704
+ params: CommonParameters = {},
705
+ ): Promise<TicketStopwatch> {
706
+ return this.request({
707
+ path: `/time/ticketstopwatches/${id}`,
708
+ method: 'get',
709
+ params,
710
+ })
711
+ }
712
+
713
+ deleteTimeTicketstopwatchesById(id: number): Promise<NoContentResponse> {
714
+ return this.request({
715
+ path: `/time/ticketstopwatches/${id}`,
716
+ method: 'delete',
717
+ })
718
+ }
719
+
720
+ putTimeTicketstopwatchesById(
721
+ id: number,
722
+ ticketStopwatch: TicketStopwatch,
723
+ ): Promise<TicketStopwatch> {
724
+ return this.request({
725
+ path: `/time/ticketstopwatches/${id}`,
726
+ method: 'put',
727
+ data: ticketStopwatch,
728
+ })
729
+ }
730
+
731
+ patchTimeTicketstopwatchesById(
732
+ id: number,
733
+ patchOperations: Array<PatchOperation>,
734
+ ): Promise<TicketStopwatch> {
735
+ return this.request({
736
+ path: `/time/ticketstopwatches/${id}`,
737
+ method: 'patch',
738
+ data: patchOperations,
739
+ })
740
+ }
741
+
742
+ getTimeTicketstopwatchesCount(params: CommonParameters = {}): Promise<Count> {
743
+ return this.request({
744
+ path: `/time/ticketstopwatches/count`,
745
+ method: 'get',
746
+ params,
747
+ })
748
+ }
749
+
750
+ getTimeTimePeriodSetups(params: CommonParameters = {}): Promise<Array<TimePeriodSetup>> {
751
+ return this.request({
752
+ path: `/time/timePeriodSetups`,
753
+ method: 'get',
754
+ params,
755
+ })
756
+ }
757
+
758
+ postTimeTimePeriodSetups(timePeriodSetup: TimePeriodSetup): Promise<TimePeriodSetup> {
759
+ return this.request({
760
+ path: `/time/timePeriodSetups`,
761
+ method: 'post',
762
+ data: timePeriodSetup,
763
+ })
764
+ }
765
+
766
+ getTimeTimePeriodSetupsById(id: number, params: CommonParameters = {}): Promise<TimePeriodSetup> {
767
+ return this.request({
768
+ path: `/time/timePeriodSetups/${id}`,
769
+ method: 'get',
770
+ params,
771
+ })
772
+ }
773
+
774
+ deleteTimeTimePeriodSetupsById(id: number): Promise<NoContentResponse> {
775
+ return this.request({
776
+ path: `/time/timePeriodSetups/${id}`,
777
+ method: 'delete',
778
+ })
779
+ }
780
+
781
+ putTimeTimePeriodSetupsById(
782
+ id: number,
783
+ timePeriodSetup: TimePeriodSetup,
784
+ ): Promise<TimePeriodSetup> {
785
+ return this.request({
786
+ path: `/time/timePeriodSetups/${id}`,
787
+ method: 'put',
788
+ data: timePeriodSetup,
789
+ })
790
+ }
791
+
792
+ patchTimeTimePeriodSetupsById(
793
+ id: number,
794
+ patchOperations: Array<PatchOperation>,
795
+ ): Promise<TimePeriodSetup> {
796
+ return this.request({
797
+ path: `/time/timePeriodSetups/${id}`,
798
+ method: 'patch',
799
+ data: patchOperations,
800
+ })
801
+ }
802
+
803
+ getTimeTimePeriodSetupsByParentIdPeriods(
804
+ parentId: number,
805
+ params: CommonParameters = {},
806
+ ): Promise<Array<TimePeriod>> {
807
+ return this.request({
808
+ path: `/time/timePeriodSetups/${parentId}/periods`,
809
+ method: 'get',
810
+ params,
811
+ })
812
+ }
813
+
814
+ getTimeTimePeriodSetupsByParentIdPeriodsById(
815
+ id: number,
816
+ parentId: number,
817
+ params: CommonParameters = {},
818
+ ): Promise<TimePeriod> {
819
+ return this.request({
820
+ path: `/time/timePeriodSetups/${parentId}/periods/${id}`,
821
+ method: 'get',
822
+ params,
823
+ })
824
+ }
825
+
826
+ getTimeTimePeriodSetupsByParentIdPeriodsCount(
827
+ parentId: number,
828
+ params: CommonParameters = {},
829
+ ): Promise<Count> {
830
+ return this.request({
831
+ path: `/time/timePeriodSetups/${parentId}/periods/count`,
832
+ method: 'get',
833
+ params,
834
+ })
835
+ }
836
+
837
+ getTimeTimePeriodSetupsCount(params: CommonParameters = {}): Promise<Count> {
838
+ return this.request({
839
+ path: `/time/timePeriodSetups/count`,
840
+ method: 'get',
841
+ params,
842
+ })
843
+ }
844
+
845
+ getTimeTimePeriodSetupsDefault(params: CommonParameters = {}): Promise<TimePeriodSetupDefaults> {
846
+ return this.request({
847
+ path: `/time/timePeriodSetups/default`,
848
+ method: 'get',
849
+ params,
850
+ })
851
+ }
852
+
853
+ getTimeWorkRoles(params: CommonParameters = {}): Promise<Array<WorkRole>> {
854
+ return this.request({
855
+ path: `/time/workRoles`,
856
+ method: 'get',
857
+ params,
858
+ })
859
+ }
860
+
861
+ postTimeWorkRoles(workRole: WorkRole): Promise<WorkRole> {
862
+ return this.request({
863
+ path: `/time/workRoles`,
864
+ method: 'post',
865
+ data: workRole,
866
+ })
867
+ }
868
+
869
+ getTimeWorkRolesById(id: number, params: CommonParameters = {}): Promise<WorkRole> {
870
+ return this.request({
871
+ path: `/time/workRoles/${id}`,
872
+ method: 'get',
873
+ params,
874
+ })
875
+ }
876
+
877
+ deleteTimeWorkRolesById(id: number): Promise<NoContentResponse> {
878
+ return this.request({
879
+ path: `/time/workRoles/${id}`,
880
+ method: 'delete',
881
+ })
882
+ }
883
+
884
+ putTimeWorkRolesById(id: number, workRole: WorkRole): Promise<WorkRole> {
885
+ return this.request({
886
+ path: `/time/workRoles/${id}`,
887
+ method: 'put',
888
+ data: workRole,
889
+ })
890
+ }
891
+
892
+ patchTimeWorkRolesById(id: number, patchOperations: Array<PatchOperation>): Promise<WorkRole> {
893
+ return this.request({
894
+ path: `/time/workRoles/${id}`,
895
+ method: 'patch',
896
+ data: patchOperations,
897
+ })
898
+ }
899
+
900
+ getTimeWorkRolesByIdInfo(id: number, params: CommonParameters = {}): Promise<WorkRoleInfo> {
901
+ return this.request({
902
+ path: `/time/workRoles/${id}/info`,
903
+ method: 'get',
904
+ params,
905
+ })
906
+ }
907
+
908
+ getTimeWorkRolesByIdUsages(id: number, params: CommonParameters = {}): Promise<Array<Usage>> {
909
+ return this.request({
910
+ path: `/time/workRoles/${id}/usages`,
911
+ method: 'get',
912
+ params,
913
+ })
914
+ }
915
+
916
+ getTimeWorkRolesByIdUsagesList(id: number, params: CommonParameters = {}): Promise<Array<Usage>> {
917
+ return this.request({
918
+ path: `/time/workRoles/${id}/usages/list`,
919
+ method: 'get',
920
+ params,
921
+ })
922
+ }
923
+
924
+ getTimeWorkRolesByParentIdLocations(
925
+ parentId: number,
926
+ params: CommonParameters = {},
927
+ ): Promise<Array<WorkRoleLocation>> {
928
+ return this.request({
929
+ path: `/time/workRoles/${parentId}/locations`,
930
+ method: 'get',
931
+ params,
932
+ })
933
+ }
934
+
935
+ postTimeWorkRolesByParentIdLocations(
936
+ parentId: number,
937
+ workRoleLocation: WorkRoleLocation,
938
+ ): Promise<WorkRoleLocation> {
939
+ return this.request({
940
+ path: `/time/workRoles/${parentId}/locations`,
941
+ method: 'post',
942
+ data: workRoleLocation,
943
+ })
944
+ }
945
+
946
+ getTimeWorkRolesByParentIdLocationsById(
947
+ id: number,
948
+ parentId: number,
949
+ params: CommonParameters = {},
950
+ ): Promise<WorkRoleLocation> {
951
+ return this.request({
952
+ path: `/time/workRoles/${parentId}/locations/${id}`,
953
+ method: 'get',
954
+ params,
955
+ })
956
+ }
957
+
958
+ deleteTimeWorkRolesByParentIdLocationsById(
959
+ id: number,
960
+ parentId: number,
961
+ ): Promise<NoContentResponse> {
962
+ return this.request({
963
+ path: `/time/workRoles/${parentId}/locations/${id}`,
964
+ method: 'delete',
965
+ })
966
+ }
967
+
968
+ putTimeWorkRolesByParentIdLocationsById(
969
+ id: number,
970
+ parentId: number,
971
+ workRoleLocation: WorkRoleLocation,
972
+ ): Promise<WorkRoleLocation> {
973
+ return this.request({
974
+ path: `/time/workRoles/${parentId}/locations/${id}`,
975
+ method: 'put',
976
+ data: workRoleLocation,
977
+ })
978
+ }
979
+
980
+ patchTimeWorkRolesByParentIdLocationsById(
981
+ id: number,
982
+ parentId: number,
983
+ patchOperations: Array<PatchOperation>,
984
+ ): Promise<WorkRoleLocation> {
985
+ return this.request({
986
+ path: `/time/workRoles/${parentId}/locations/${id}`,
987
+ method: 'patch',
988
+ data: patchOperations,
989
+ })
990
+ }
991
+
992
+ getTimeWorkRolesByParentIdLocationsCount(
993
+ parentId: number,
994
+ params: CommonParameters = {},
995
+ ): Promise<Count> {
996
+ return this.request({
997
+ path: `/time/workRoles/${parentId}/locations/count`,
998
+ method: 'get',
999
+ params,
1000
+ })
1001
+ }
1002
+
1003
+ getTimeWorkRolesCount(params: CommonParameters = {}): Promise<Count> {
1004
+ return this.request({
1005
+ path: `/time/workRoles/count`,
1006
+ method: 'get',
1007
+ params,
1008
+ })
1009
+ }
1010
+
1011
+ getTimeWorkRolesInfo(params: CommonParameters = {}): Promise<Array<WorkRoleInfo>> {
1012
+ return this.request({
1013
+ path: `/time/workRoles/info`,
1014
+ method: 'get',
1015
+ params,
1016
+ })
1017
+ }
1018
+
1019
+ getTimeWorkRolesInfoCount(params: CommonParameters = {}): Promise<Count> {
1020
+ return this.request({
1021
+ path: `/time/workRoles/info/count`,
1022
+ method: 'get',
1023
+ params,
1024
+ })
1025
+ }
1026
+
1027
+ getTimeWorkTypes(params: CommonParameters = {}): Promise<Array<WorkType>> {
1028
+ return this.request({
1029
+ path: `/time/workTypes`,
1030
+ method: 'get',
1031
+ params,
1032
+ })
1033
+ }
1034
+
1035
+ postTimeWorkTypes(workType: WorkType): Promise<WorkType> {
1036
+ return this.request({
1037
+ path: `/time/workTypes`,
1038
+ method: 'post',
1039
+ data: workType,
1040
+ })
1041
+ }
1042
+
1043
+ getTimeWorkTypesById(id: number, params: CommonParameters = {}): Promise<WorkType> {
1044
+ return this.request({
1045
+ path: `/time/workTypes/${id}`,
1046
+ method: 'get',
1047
+ params,
1048
+ })
1049
+ }
1050
+
1051
+ deleteTimeWorkTypesById(id: number): Promise<NoContentResponse> {
1052
+ return this.request({
1053
+ path: `/time/workTypes/${id}`,
1054
+ method: 'delete',
1055
+ })
1056
+ }
1057
+
1058
+ putTimeWorkTypesById(id: number, workType: WorkType): Promise<WorkType> {
1059
+ return this.request({
1060
+ path: `/time/workTypes/${id}`,
1061
+ method: 'put',
1062
+ data: workType,
1063
+ })
1064
+ }
1065
+
1066
+ patchTimeWorkTypesById(id: number, patchOperations: Array<PatchOperation>): Promise<WorkType> {
1067
+ return this.request({
1068
+ path: `/time/workTypes/${id}`,
1069
+ method: 'patch',
1070
+ data: patchOperations,
1071
+ })
1072
+ }
1073
+
1074
+ getTimeWorkTypesByIdInfo(id: number, params: CommonParameters = {}): Promise<WorkTypeInfo> {
1075
+ return this.request({
1076
+ path: `/time/workTypes/${id}/info`,
1077
+ method: 'get',
1078
+ params,
1079
+ })
1080
+ }
1081
+
1082
+ getTimeWorkTypesByIdUsages(id: number, params: CommonParameters = {}): Promise<Array<Usage>> {
1083
+ return this.request({
1084
+ path: `/time/workTypes/${id}/usages`,
1085
+ method: 'get',
1086
+ params,
1087
+ })
1088
+ }
1089
+
1090
+ getTimeWorkTypesByIdUsagesList(id: number, params: CommonParameters = {}): Promise<Array<Usage>> {
1091
+ return this.request({
1092
+ path: `/time/workTypes/${id}/usages/list`,
1093
+ method: 'get',
1094
+ params,
1095
+ })
1096
+ }
1097
+
1098
+ getTimeWorkTypesCount(params: CommonParameters = {}): Promise<Count> {
1099
+ return this.request({
1100
+ path: `/time/workTypes/count`,
1101
+ method: 'get',
1102
+ params,
1103
+ })
1104
+ }
1105
+
1106
+ getTimeWorkTypesInfo(params: CommonParameters = {}): Promise<Array<WorkTypeInfo>> {
1107
+ return this.request({
1108
+ path: `/time/workTypes/info`,
1109
+ method: 'get',
1110
+ params,
1111
+ })
1112
+ }
1113
+
1114
+ getTimeWorkTypesInfoCount(params: CommonParameters = {}): Promise<Count> {
1115
+ return this.request({
1116
+ path: `/time/workTypes/info/count`,
1117
+ method: 'get',
1118
+ params,
1119
+ })
1120
+ }
1121
+ }