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