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,835 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ /* This file was auto-generated, do not manually edit. */
7
+ const Manage_1 = __importDefault(require("../Manage"));
8
+ /**
9
+ * @public
10
+ */
11
+ class TimeAPI extends Manage_1.default {
12
+ constructor(props) {
13
+ super(props);
14
+ }
15
+ getTimeAccruals(params = {}) {
16
+ return this.request({
17
+ path: `/time/accruals`,
18
+ method: 'get',
19
+ params,
20
+ });
21
+ }
22
+ postTimeAccruals(timeAccrual) {
23
+ return this.request({
24
+ path: `/time/accruals`,
25
+ method: 'post',
26
+ data: timeAccrual,
27
+ });
28
+ }
29
+ getTimeAccrualsById(id, params = {}) {
30
+ return this.request({
31
+ path: `/time/accruals/${id}`,
32
+ method: 'get',
33
+ params,
34
+ });
35
+ }
36
+ deleteTimeAccrualsById(id) {
37
+ return this.request({
38
+ path: `/time/accruals/${id}`,
39
+ method: 'delete',
40
+ });
41
+ }
42
+ putTimeAccrualsById(id, timeAccrual) {
43
+ return this.request({
44
+ path: `/time/accruals/${id}`,
45
+ method: 'put',
46
+ data: timeAccrual,
47
+ });
48
+ }
49
+ patchTimeAccrualsById(id, patchOperations) {
50
+ return this.request({
51
+ path: `/time/accruals/${id}`,
52
+ method: 'patch',
53
+ data: patchOperations,
54
+ });
55
+ }
56
+ getTimeAccrualsByParentIdDetails(parentId, params = {}) {
57
+ return this.request({
58
+ path: `/time/accruals/${parentId}/details`,
59
+ method: 'get',
60
+ params,
61
+ });
62
+ }
63
+ postTimeAccrualsByParentIdDetails(parentId, timeAccrualDetail) {
64
+ return this.request({
65
+ path: `/time/accruals/${parentId}/details/`,
66
+ method: 'post',
67
+ data: timeAccrualDetail,
68
+ });
69
+ }
70
+ getTimeAccrualsByParentIdDetailsById(id, parentId, params = {}) {
71
+ return this.request({
72
+ path: `/time/accruals/${parentId}/details/${id}`,
73
+ method: 'get',
74
+ params,
75
+ });
76
+ }
77
+ deleteTimeAccrualsByParentIdDetailsById(id, parentId) {
78
+ return this.request({
79
+ path: `/time/accruals/${parentId}/details/${id}`,
80
+ method: 'delete',
81
+ });
82
+ }
83
+ putTimeAccrualsByParentIdDetailsById(id, parentId, timeAccrualDetail) {
84
+ return this.request({
85
+ path: `/time/accruals/${parentId}/details/${id}`,
86
+ method: 'put',
87
+ data: timeAccrualDetail,
88
+ });
89
+ }
90
+ patchTimeAccrualsByParentIdDetailsById(id, parentId, patchOperations) {
91
+ return this.request({
92
+ path: `/time/accruals/${parentId}/details/${id}`,
93
+ method: 'patch',
94
+ data: patchOperations,
95
+ });
96
+ }
97
+ getTimeAccrualsByParentIdDetailsCount(parentId, params = {}) {
98
+ return this.request({
99
+ path: `/time/accruals/${parentId}/details/count`,
100
+ method: 'get',
101
+ params,
102
+ });
103
+ }
104
+ getTimeAccrualsCount(params = {}) {
105
+ return this.request({
106
+ path: `/time/accruals/count`,
107
+ method: 'get',
108
+ params,
109
+ });
110
+ }
111
+ getTimeActivitystopwatches(params = {}) {
112
+ return this.request({
113
+ path: `/time/activitystopwatches`,
114
+ method: 'get',
115
+ params,
116
+ });
117
+ }
118
+ postTimeActivitystopwatches(activityStopwatch) {
119
+ return this.request({
120
+ path: `/time/activitystopwatches`,
121
+ method: 'post',
122
+ data: activityStopwatch,
123
+ });
124
+ }
125
+ getTimeActivitystopwatchesById(id, params = {}) {
126
+ return this.request({
127
+ path: `/time/activitystopwatches/${id}`,
128
+ method: 'get',
129
+ params,
130
+ });
131
+ }
132
+ deleteTimeActivitystopwatchesById(id) {
133
+ return this.request({
134
+ path: `/time/activitystopwatches/${id}`,
135
+ method: 'delete',
136
+ });
137
+ }
138
+ putTimeActivitystopwatchesById(id, activityStopwatch) {
139
+ return this.request({
140
+ path: `/time/activitystopwatches/${id}`,
141
+ method: 'put',
142
+ data: activityStopwatch,
143
+ });
144
+ }
145
+ patchTimeActivitystopwatchesById(id, patchOperations) {
146
+ return this.request({
147
+ path: `/time/activitystopwatches/${id}`,
148
+ method: 'patch',
149
+ data: patchOperations,
150
+ });
151
+ }
152
+ getTimeActivitystopwatchesCount(params = {}) {
153
+ return this.request({
154
+ path: `/time/activitystopwatches/count`,
155
+ method: 'get',
156
+ params,
157
+ });
158
+ }
159
+ getTimeChargeCodes(params = {}) {
160
+ return this.request({
161
+ path: `/time/chargeCodes`,
162
+ method: 'get',
163
+ params,
164
+ });
165
+ }
166
+ postTimeChargeCodes(chargeCode) {
167
+ return this.request({
168
+ path: `/time/chargeCodes`,
169
+ method: 'post',
170
+ data: chargeCode,
171
+ });
172
+ }
173
+ getTimeChargeCodesById(id, params = {}) {
174
+ return this.request({
175
+ path: `/time/chargeCodes/${id}`,
176
+ method: 'get',
177
+ params,
178
+ });
179
+ }
180
+ deleteTimeChargeCodesById(id) {
181
+ return this.request({
182
+ path: `/time/chargeCodes/${id}`,
183
+ method: 'delete',
184
+ });
185
+ }
186
+ putTimeChargeCodesById(id, chargeCode) {
187
+ return this.request({
188
+ path: `/time/chargeCodes/${id}`,
189
+ method: 'put',
190
+ data: chargeCode,
191
+ });
192
+ }
193
+ patchTimeChargeCodesById(id, patchOperations) {
194
+ return this.request({
195
+ path: `/time/chargeCodes/${id}`,
196
+ method: 'patch',
197
+ data: patchOperations,
198
+ });
199
+ }
200
+ getTimeChargeCodesByIdInfo(id, params = {}) {
201
+ return this.request({
202
+ path: `/time/chargeCodes/${id}/info`,
203
+ method: 'get',
204
+ params,
205
+ });
206
+ }
207
+ getTimeChargeCodesByIdUsages(id, params = {}) {
208
+ return this.request({
209
+ path: `/time/chargeCodes/${id}/usages`,
210
+ method: 'get',
211
+ params,
212
+ });
213
+ }
214
+ getTimeChargeCodesByIdUsagesList(id, params = {}) {
215
+ return this.request({
216
+ path: `/time/chargeCodes/${id}/usages/list`,
217
+ method: 'get',
218
+ params,
219
+ });
220
+ }
221
+ getTimeChargeCodesByParentIdExpenseTypes(parentId, params = {}) {
222
+ return this.request({
223
+ path: `/time/chargeCodes/${parentId}/expenseTypes`,
224
+ method: 'get',
225
+ params,
226
+ });
227
+ }
228
+ postTimeChargeCodesByParentIdExpenseTypes(parentId, chargeCodeExpenseType) {
229
+ return this.request({
230
+ path: `/time/chargeCodes/${parentId}/expenseTypes`,
231
+ method: 'post',
232
+ data: chargeCodeExpenseType,
233
+ });
234
+ }
235
+ getTimeChargeCodesByParentIdExpenseTypesById(id, parentId, params = {}) {
236
+ return this.request({
237
+ path: `/time/chargeCodes/${parentId}/expenseTypes/${id}`,
238
+ method: 'get',
239
+ params,
240
+ });
241
+ }
242
+ deleteTimeChargeCodesByParentIdExpenseTypesById(id, parentId) {
243
+ return this.request({
244
+ path: `/time/chargeCodes/${parentId}/expenseTypes/${id}`,
245
+ method: 'delete',
246
+ });
247
+ }
248
+ putTimeChargeCodesByParentIdExpenseTypesById(id, parentId, chargeCodeExpenseType) {
249
+ return this.request({
250
+ path: `/time/chargeCodes/${parentId}/expenseTypes/${id}`,
251
+ method: 'put',
252
+ data: chargeCodeExpenseType,
253
+ });
254
+ }
255
+ patchTimeChargeCodesByParentIdExpenseTypesById(id, parentId, patchOperations) {
256
+ return this.request({
257
+ path: `/time/chargeCodes/${parentId}/expenseTypes/${id}`,
258
+ method: 'patch',
259
+ data: patchOperations,
260
+ });
261
+ }
262
+ getTimeChargeCodesByParentIdExpenseTypesCount(parentId, params = {}) {
263
+ return this.request({
264
+ path: `/time/chargeCodes/${parentId}/expenseTypes/count`,
265
+ method: 'get',
266
+ params,
267
+ });
268
+ }
269
+ getTimeChargeCodesCount(params = {}) {
270
+ return this.request({
271
+ path: `/time/chargeCodes/count`,
272
+ method: 'get',
273
+ params,
274
+ });
275
+ }
276
+ getTimeChargeCodesInfo(params = {}) {
277
+ return this.request({
278
+ path: `/time/chargeCodes/info`,
279
+ method: 'get',
280
+ params,
281
+ });
282
+ }
283
+ getTimeChargeCodesInfoCount(params = {}) {
284
+ return this.request({
285
+ path: `/time/chargeCodes/info/count`,
286
+ method: 'get',
287
+ params,
288
+ });
289
+ }
290
+ getTimeEntries(params = {}) {
291
+ return this.request({
292
+ path: `/time/entries`,
293
+ method: 'get',
294
+ params,
295
+ });
296
+ }
297
+ postTimeEntries(timeEntry) {
298
+ return this.request({
299
+ path: `/time/entries`,
300
+ method: 'post',
301
+ data: timeEntry,
302
+ });
303
+ }
304
+ getTimeEntriesById(id, params = {}) {
305
+ return this.request({
306
+ path: `/time/entries/${id}`,
307
+ method: 'get',
308
+ params,
309
+ });
310
+ }
311
+ deleteTimeEntriesById(id) {
312
+ return this.request({
313
+ path: `/time/entries/${id}`,
314
+ method: 'delete',
315
+ });
316
+ }
317
+ putTimeEntriesById(id, timeEntry) {
318
+ return this.request({
319
+ path: `/time/entries/${id}`,
320
+ method: 'put',
321
+ data: timeEntry,
322
+ });
323
+ }
324
+ patchTimeEntriesById(id, patchOperations) {
325
+ return this.request({
326
+ path: `/time/entries/${id}`,
327
+ method: 'patch',
328
+ data: patchOperations,
329
+ });
330
+ }
331
+ getTimeEntriesByParentIdAudits(parentId, params = {}) {
332
+ return this.request({
333
+ path: `/time/entries/${parentId}/audits`,
334
+ method: 'get',
335
+ params,
336
+ });
337
+ }
338
+ getTimeEntriesByParentIdAuditsById(id, parentId, params = {}) {
339
+ return this.request({
340
+ path: `/time/entries/${parentId}/audits/${id}`,
341
+ method: 'get',
342
+ params,
343
+ });
344
+ }
345
+ getTimeEntriesByParentIdAuditsCount(parentId, params = {}) {
346
+ return this.request({
347
+ path: `/time/entries/${parentId}/audits/count`,
348
+ method: 'get',
349
+ params,
350
+ });
351
+ }
352
+ getTimeEntriesCount(params = {}) {
353
+ return this.request({
354
+ path: `/time/entries/count`,
355
+ method: 'get',
356
+ params,
357
+ });
358
+ }
359
+ postTimeEntriesDefaults(timeEntry) {
360
+ return this.request({
361
+ path: `/time/entries/defaults`,
362
+ method: 'post',
363
+ data: timeEntry,
364
+ });
365
+ }
366
+ getTimeInfoChargeCodeExpenseTypes(params = {}) {
367
+ return this.request({
368
+ path: `/time/info/chargeCodeExpenseTypes`,
369
+ method: 'get',
370
+ params,
371
+ });
372
+ }
373
+ getTimeInfoChargeCodeExpenseTypesCount(params = {}) {
374
+ return this.request({
375
+ path: `/time/info/chargeCodeExpenseTypes/count`,
376
+ method: 'get',
377
+ params,
378
+ });
379
+ }
380
+ getTimeSchedulestopwatches(params = {}) {
381
+ return this.request({
382
+ path: `/time/schedulestopwatches`,
383
+ method: 'get',
384
+ params,
385
+ });
386
+ }
387
+ postTimeSchedulestopwatches(scheduleStopwatch) {
388
+ return this.request({
389
+ path: `/time/schedulestopwatches`,
390
+ method: 'post',
391
+ data: scheduleStopwatch,
392
+ });
393
+ }
394
+ getTimeSchedulestopwatchesById(id, params = {}) {
395
+ return this.request({
396
+ path: `/time/schedulestopwatches/${id}`,
397
+ method: 'get',
398
+ params,
399
+ });
400
+ }
401
+ deleteTimeSchedulestopwatchesById(id) {
402
+ return this.request({
403
+ path: `/time/schedulestopwatches/${id}`,
404
+ method: 'delete',
405
+ });
406
+ }
407
+ putTimeSchedulestopwatchesById(id, scheduleStopwatch) {
408
+ return this.request({
409
+ path: `/time/schedulestopwatches/${id}`,
410
+ method: 'put',
411
+ data: scheduleStopwatch,
412
+ });
413
+ }
414
+ patchTimeSchedulestopwatchesById(id, patchOperations) {
415
+ return this.request({
416
+ path: `/time/schedulestopwatches/${id}`,
417
+ method: 'patch',
418
+ data: patchOperations,
419
+ });
420
+ }
421
+ getTimeSchedulestopwatchesCount(params = {}) {
422
+ return this.request({
423
+ path: `/time/schedulestopwatches/count`,
424
+ method: 'get',
425
+ params,
426
+ });
427
+ }
428
+ getTimeSheets(params = {}) {
429
+ return this.request({
430
+ path: `/time/sheets`,
431
+ method: 'get',
432
+ params,
433
+ });
434
+ }
435
+ getTimeSheetsById(id, params = {}) {
436
+ return this.request({
437
+ path: `/time/sheets/${id}`,
438
+ method: 'get',
439
+ params,
440
+ });
441
+ }
442
+ postTimeSheetsByIdApprove(id, sheetId) {
443
+ return this.request({
444
+ path: `/time/sheets/${id}/approve`,
445
+ method: 'post',
446
+ data: sheetId,
447
+ });
448
+ }
449
+ postTimeSheetsByIdReject(id) {
450
+ return this.request({
451
+ path: `/time/sheets/${id}/reject`,
452
+ method: 'post',
453
+ });
454
+ }
455
+ postTimeSheetsByIdReverse(id) {
456
+ return this.request({
457
+ path: `/time/sheets/${id}/reverse`,
458
+ method: 'post',
459
+ });
460
+ }
461
+ postTimeSheetsByIdSubmit(id) {
462
+ return this.request({
463
+ path: `/time/sheets/${id}/submit`,
464
+ method: 'post',
465
+ });
466
+ }
467
+ getTimeSheetsByParentIdAudits(parentId, params = {}) {
468
+ return this.request({
469
+ path: `/time/sheets/${parentId}/audits`,
470
+ method: 'get',
471
+ params,
472
+ });
473
+ }
474
+ getTimeSheetsByParentIdAuditsById(id, parentId, params = {}) {
475
+ return this.request({
476
+ path: `/time/sheets/${parentId}/audits/${id}`,
477
+ method: 'get',
478
+ params,
479
+ });
480
+ }
481
+ getTimeSheetsByParentIdAuditsCount(parentId, params = {}) {
482
+ return this.request({
483
+ path: `/time/sheets/${parentId}/audits/count`,
484
+ method: 'get',
485
+ params,
486
+ });
487
+ }
488
+ getTimeSheetsCount(params = {}) {
489
+ return this.request({
490
+ path: `/time/sheets/count`,
491
+ method: 'get',
492
+ params,
493
+ });
494
+ }
495
+ getTimeTicketstopwatches(params = {}) {
496
+ return this.request({
497
+ path: `/time/ticketstopwatches`,
498
+ method: 'get',
499
+ params,
500
+ });
501
+ }
502
+ postTimeTicketstopwatches(ticketStopwatch) {
503
+ return this.request({
504
+ path: `/time/ticketstopwatches`,
505
+ method: 'post',
506
+ data: ticketStopwatch,
507
+ });
508
+ }
509
+ getTimeTicketstopwatchesById(id, params = {}) {
510
+ return this.request({
511
+ path: `/time/ticketstopwatches/${id}`,
512
+ method: 'get',
513
+ params,
514
+ });
515
+ }
516
+ deleteTimeTicketstopwatchesById(id) {
517
+ return this.request({
518
+ path: `/time/ticketstopwatches/${id}`,
519
+ method: 'delete',
520
+ });
521
+ }
522
+ putTimeTicketstopwatchesById(id, ticketStopwatch) {
523
+ return this.request({
524
+ path: `/time/ticketstopwatches/${id}`,
525
+ method: 'put',
526
+ data: ticketStopwatch,
527
+ });
528
+ }
529
+ patchTimeTicketstopwatchesById(id, patchOperations) {
530
+ return this.request({
531
+ path: `/time/ticketstopwatches/${id}`,
532
+ method: 'patch',
533
+ data: patchOperations,
534
+ });
535
+ }
536
+ getTimeTicketstopwatchesCount(params = {}) {
537
+ return this.request({
538
+ path: `/time/ticketstopwatches/count`,
539
+ method: 'get',
540
+ params,
541
+ });
542
+ }
543
+ getTimeTimePeriodSetups(params = {}) {
544
+ return this.request({
545
+ path: `/time/timePeriodSetups`,
546
+ method: 'get',
547
+ params,
548
+ });
549
+ }
550
+ postTimeTimePeriodSetups(timePeriodSetup) {
551
+ return this.request({
552
+ path: `/time/timePeriodSetups`,
553
+ method: 'post',
554
+ data: timePeriodSetup,
555
+ });
556
+ }
557
+ getTimeTimePeriodSetupsById(id, params = {}) {
558
+ return this.request({
559
+ path: `/time/timePeriodSetups/${id}`,
560
+ method: 'get',
561
+ params,
562
+ });
563
+ }
564
+ deleteTimeTimePeriodSetupsById(id) {
565
+ return this.request({
566
+ path: `/time/timePeriodSetups/${id}`,
567
+ method: 'delete',
568
+ });
569
+ }
570
+ putTimeTimePeriodSetupsById(id, timePeriodSetup) {
571
+ return this.request({
572
+ path: `/time/timePeriodSetups/${id}`,
573
+ method: 'put',
574
+ data: timePeriodSetup,
575
+ });
576
+ }
577
+ patchTimeTimePeriodSetupsById(id, patchOperations) {
578
+ return this.request({
579
+ path: `/time/timePeriodSetups/${id}`,
580
+ method: 'patch',
581
+ data: patchOperations,
582
+ });
583
+ }
584
+ getTimeTimePeriodSetupsByParentIdPeriods(parentId, params = {}) {
585
+ return this.request({
586
+ path: `/time/timePeriodSetups/${parentId}/periods`,
587
+ method: 'get',
588
+ params,
589
+ });
590
+ }
591
+ getTimeTimePeriodSetupsByParentIdPeriodsById(id, parentId, params = {}) {
592
+ return this.request({
593
+ path: `/time/timePeriodSetups/${parentId}/periods/${id}`,
594
+ method: 'get',
595
+ params,
596
+ });
597
+ }
598
+ getTimeTimePeriodSetupsByParentIdPeriodsCount(parentId, params = {}) {
599
+ return this.request({
600
+ path: `/time/timePeriodSetups/${parentId}/periods/count`,
601
+ method: 'get',
602
+ params,
603
+ });
604
+ }
605
+ getTimeTimePeriodSetupsCount(params = {}) {
606
+ return this.request({
607
+ path: `/time/timePeriodSetups/count`,
608
+ method: 'get',
609
+ params,
610
+ });
611
+ }
612
+ getTimeTimePeriodSetupsDefault(params = {}) {
613
+ return this.request({
614
+ path: `/time/timePeriodSetups/default`,
615
+ method: 'get',
616
+ params,
617
+ });
618
+ }
619
+ getTimeWorkRoles(params = {}) {
620
+ return this.request({
621
+ path: `/time/workRoles`,
622
+ method: 'get',
623
+ params,
624
+ });
625
+ }
626
+ postTimeWorkRoles(workRole) {
627
+ return this.request({
628
+ path: `/time/workRoles`,
629
+ method: 'post',
630
+ data: workRole,
631
+ });
632
+ }
633
+ getTimeWorkRolesById(id, params = {}) {
634
+ return this.request({
635
+ path: `/time/workRoles/${id}`,
636
+ method: 'get',
637
+ params,
638
+ });
639
+ }
640
+ deleteTimeWorkRolesById(id) {
641
+ return this.request({
642
+ path: `/time/workRoles/${id}`,
643
+ method: 'delete',
644
+ });
645
+ }
646
+ putTimeWorkRolesById(id, workRole) {
647
+ return this.request({
648
+ path: `/time/workRoles/${id}`,
649
+ method: 'put',
650
+ data: workRole,
651
+ });
652
+ }
653
+ patchTimeWorkRolesById(id, patchOperations) {
654
+ return this.request({
655
+ path: `/time/workRoles/${id}`,
656
+ method: 'patch',
657
+ data: patchOperations,
658
+ });
659
+ }
660
+ getTimeWorkRolesByIdInfo(id, params = {}) {
661
+ return this.request({
662
+ path: `/time/workRoles/${id}/info`,
663
+ method: 'get',
664
+ params,
665
+ });
666
+ }
667
+ getTimeWorkRolesByIdUsages(id, params = {}) {
668
+ return this.request({
669
+ path: `/time/workRoles/${id}/usages`,
670
+ method: 'get',
671
+ params,
672
+ });
673
+ }
674
+ getTimeWorkRolesByIdUsagesList(id, params = {}) {
675
+ return this.request({
676
+ path: `/time/workRoles/${id}/usages/list`,
677
+ method: 'get',
678
+ params,
679
+ });
680
+ }
681
+ getTimeWorkRolesByParentIdLocations(parentId, params = {}) {
682
+ return this.request({
683
+ path: `/time/workRoles/${parentId}/locations`,
684
+ method: 'get',
685
+ params,
686
+ });
687
+ }
688
+ postTimeWorkRolesByParentIdLocations(parentId, workRoleLocation) {
689
+ return this.request({
690
+ path: `/time/workRoles/${parentId}/locations`,
691
+ method: 'post',
692
+ data: workRoleLocation,
693
+ });
694
+ }
695
+ getTimeWorkRolesByParentIdLocationsById(id, parentId, params = {}) {
696
+ return this.request({
697
+ path: `/time/workRoles/${parentId}/locations/${id}`,
698
+ method: 'get',
699
+ params,
700
+ });
701
+ }
702
+ deleteTimeWorkRolesByParentIdLocationsById(id, parentId) {
703
+ return this.request({
704
+ path: `/time/workRoles/${parentId}/locations/${id}`,
705
+ method: 'delete',
706
+ });
707
+ }
708
+ putTimeWorkRolesByParentIdLocationsById(id, parentId, workRoleLocation) {
709
+ return this.request({
710
+ path: `/time/workRoles/${parentId}/locations/${id}`,
711
+ method: 'put',
712
+ data: workRoleLocation,
713
+ });
714
+ }
715
+ patchTimeWorkRolesByParentIdLocationsById(id, parentId, patchOperations) {
716
+ return this.request({
717
+ path: `/time/workRoles/${parentId}/locations/${id}`,
718
+ method: 'patch',
719
+ data: patchOperations,
720
+ });
721
+ }
722
+ getTimeWorkRolesByParentIdLocationsCount(parentId, params = {}) {
723
+ return this.request({
724
+ path: `/time/workRoles/${parentId}/locations/count`,
725
+ method: 'get',
726
+ params,
727
+ });
728
+ }
729
+ getTimeWorkRolesCount(params = {}) {
730
+ return this.request({
731
+ path: `/time/workRoles/count`,
732
+ method: 'get',
733
+ params,
734
+ });
735
+ }
736
+ getTimeWorkRolesInfo(params = {}) {
737
+ return this.request({
738
+ path: `/time/workRoles/info`,
739
+ method: 'get',
740
+ params,
741
+ });
742
+ }
743
+ getTimeWorkRolesInfoCount(params = {}) {
744
+ return this.request({
745
+ path: `/time/workRoles/info/count`,
746
+ method: 'get',
747
+ params,
748
+ });
749
+ }
750
+ getTimeWorkTypes(params = {}) {
751
+ return this.request({
752
+ path: `/time/workTypes`,
753
+ method: 'get',
754
+ params,
755
+ });
756
+ }
757
+ postTimeWorkTypes(workType) {
758
+ return this.request({
759
+ path: `/time/workTypes`,
760
+ method: 'post',
761
+ data: workType,
762
+ });
763
+ }
764
+ getTimeWorkTypesById(id, params = {}) {
765
+ return this.request({
766
+ path: `/time/workTypes/${id}`,
767
+ method: 'get',
768
+ params,
769
+ });
770
+ }
771
+ deleteTimeWorkTypesById(id) {
772
+ return this.request({
773
+ path: `/time/workTypes/${id}`,
774
+ method: 'delete',
775
+ });
776
+ }
777
+ putTimeWorkTypesById(id, workType) {
778
+ return this.request({
779
+ path: `/time/workTypes/${id}`,
780
+ method: 'put',
781
+ data: workType,
782
+ });
783
+ }
784
+ patchTimeWorkTypesById(id, patchOperations) {
785
+ return this.request({
786
+ path: `/time/workTypes/${id}`,
787
+ method: 'patch',
788
+ data: patchOperations,
789
+ });
790
+ }
791
+ getTimeWorkTypesByIdInfo(id, params = {}) {
792
+ return this.request({
793
+ path: `/time/workTypes/${id}/info`,
794
+ method: 'get',
795
+ params,
796
+ });
797
+ }
798
+ getTimeWorkTypesByIdUsages(id, params = {}) {
799
+ return this.request({
800
+ path: `/time/workTypes/${id}/usages`,
801
+ method: 'get',
802
+ params,
803
+ });
804
+ }
805
+ getTimeWorkTypesByIdUsagesList(id, params = {}) {
806
+ return this.request({
807
+ path: `/time/workTypes/${id}/usages/list`,
808
+ method: 'get',
809
+ params,
810
+ });
811
+ }
812
+ getTimeWorkTypesCount(params = {}) {
813
+ return this.request({
814
+ path: `/time/workTypes/count`,
815
+ method: 'get',
816
+ params,
817
+ });
818
+ }
819
+ getTimeWorkTypesInfo(params = {}) {
820
+ return this.request({
821
+ path: `/time/workTypes/info`,
822
+ method: 'get',
823
+ params,
824
+ });
825
+ }
826
+ getTimeWorkTypesInfoCount(params = {}) {
827
+ return this.request({
828
+ path: `/time/workTypes/info/count`,
829
+ method: 'get',
830
+ params,
831
+ });
832
+ }
833
+ }
834
+ exports.default = TimeAPI;
835
+ //# sourceMappingURL=TimeAPI.js.map