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