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,773 @@
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 Calendar} */
9
+ export type Calendar = schemas['Calendar']
10
+ /** {@link CalendarInfo} */
11
+ export type CalendarInfo = schemas['CalendarInfo']
12
+ /** {@link Count} */
13
+ export type Count = schemas['Count']
14
+ /** {@link Holiday} */
15
+ export type Holiday = schemas['Holiday']
16
+ /** {@link HolidayList} */
17
+ export type HolidayList = schemas['HolidayList']
18
+ /** {@link HolidayListInfo} */
19
+ export type HolidayListInfo = schemas['HolidayListInfo']
20
+ /** {@link PatchOperation} */
21
+ export type PatchOperation = schemas['PatchOperation']
22
+ /** {@link PortalCalendar} */
23
+ export type PortalCalendar = schemas['PortalCalendar']
24
+ /** {@link ScheduleColor} */
25
+ export type ScheduleColor = schemas['ScheduleColor']
26
+ /** {@link ScheduleDetail} */
27
+ export type ScheduleDetail = schemas['ScheduleDetail']
28
+ /** {@link ScheduleEntry} */
29
+ export type ScheduleEntry = schemas['ScheduleEntry']
30
+ /** {@link ScheduleEntryDetail} */
31
+ export type ScheduleEntryDetail = schemas['ScheduleEntryDetail']
32
+ /** {@link ScheduleReminderTime} */
33
+ export type ScheduleReminderTime = schemas['ScheduleReminderTime']
34
+ /** {@link ScheduleStatus} */
35
+ export type ScheduleStatus = schemas['ScheduleStatus']
36
+ /** {@link ScheduleType} */
37
+ export type ScheduleType = schemas['ScheduleType']
38
+ /** {@link ScheduleTypeInfo} */
39
+ export type ScheduleTypeInfo = schemas['ScheduleTypeInfo']
40
+ /** {@link Usage} */
41
+ export type Usage = schemas['Usage']
42
+
43
+ /**
44
+ * @module ScheduleAPI
45
+ */
46
+
47
+ /**
48
+ * Schedule module
49
+ * @public
50
+ */
51
+ export class ScheduleAPI extends Manage {
52
+ constructor(props: CWMOptions) {
53
+ super(props)
54
+ }
55
+
56
+ getScheduleCalendars(params: CommonParameters = {}): Promise<Array<Calendar>> {
57
+ return this.request({
58
+ path: `/schedule/calendars`,
59
+ method: 'get',
60
+ params,
61
+ })
62
+ }
63
+
64
+ postScheduleCalendars(calendar: Calendar): Promise<Calendar> {
65
+ return this.request({
66
+ path: `/schedule/calendars`,
67
+ method: 'post',
68
+ data: calendar,
69
+ })
70
+ }
71
+
72
+ getScheduleCalendarsById(id: number, params: CommonParameters = {}): Promise<Calendar> {
73
+ return this.request({
74
+ path: `/schedule/calendars/${id}`,
75
+ method: 'get',
76
+ params,
77
+ })
78
+ }
79
+
80
+ patchScheduleCalendarsById(
81
+ id: number,
82
+ patchOperations: Array<PatchOperation>,
83
+ ): Promise<Calendar> {
84
+ return this.request({
85
+ path: `/schedule/calendars/${id}`,
86
+ method: 'patch',
87
+ data: patchOperations,
88
+ })
89
+ }
90
+
91
+ putScheduleCalendarsById(id: number, calendar: Calendar): Promise<Calendar> {
92
+ return this.request({
93
+ path: `/schedule/calendars/${id}`,
94
+ method: 'put',
95
+ data: calendar,
96
+ })
97
+ }
98
+
99
+ deleteScheduleCalendarsById(id: number): Promise<NoContentResponse> {
100
+ return this.request({
101
+ path: `/schedule/calendars/${id}`,
102
+ method: 'delete',
103
+ })
104
+ }
105
+
106
+ postScheduleCalendarsByIdCopy(id: number): Promise<Calendar> {
107
+ return this.request({
108
+ path: `/schedule/calendars/${id}/copy`,
109
+ method: 'post',
110
+ })
111
+ }
112
+
113
+ getScheduleCalendarsByIdInfo(id: number, params: CommonParameters = {}): Promise<CalendarInfo> {
114
+ return this.request({
115
+ path: `/schedule/calendars/${id}/info`,
116
+ method: 'get',
117
+ params,
118
+ })
119
+ }
120
+
121
+ getScheduleCalendarsByIdUsages(id: number, params: CommonParameters = {}): Promise<Array<Usage>> {
122
+ return this.request({
123
+ path: `/schedule/calendars/${id}/usages`,
124
+ method: 'get',
125
+ params,
126
+ })
127
+ }
128
+
129
+ getScheduleCalendarsByIdUsagesList(
130
+ id: number,
131
+ params: CommonParameters = {},
132
+ ): Promise<Array<Usage>> {
133
+ return this.request({
134
+ path: `/schedule/calendars/${id}/usages/list`,
135
+ method: 'get',
136
+ params,
137
+ })
138
+ }
139
+
140
+ getScheduleCalendarsCount(params: CommonParameters = {}): Promise<Calendar> {
141
+ return this.request({
142
+ path: `/schedule/calendars/count`,
143
+ method: 'get',
144
+ params,
145
+ })
146
+ }
147
+
148
+ getScheduleCalendarsInfo(params: CommonParameters = {}): Promise<Array<CalendarInfo>> {
149
+ return this.request({
150
+ path: `/schedule/calendars/info`,
151
+ method: 'get',
152
+ params,
153
+ })
154
+ }
155
+
156
+ getScheduleCalendarsInfoCount(params: CommonParameters = {}): Promise<CalendarInfo> {
157
+ return this.request({
158
+ path: `/schedule/calendars/info/count`,
159
+ method: 'get',
160
+ params,
161
+ })
162
+ }
163
+
164
+ getScheduleColors(params: CommonParameters = {}): Promise<Array<ScheduleColor>> {
165
+ return this.request({
166
+ path: `/schedule/colors`,
167
+ method: 'get',
168
+ params,
169
+ })
170
+ }
171
+
172
+ getScheduleColorsById(id: number, params: CommonParameters = {}): Promise<ScheduleColor> {
173
+ return this.request({
174
+ path: `/schedule/colors/${id}`,
175
+ method: 'get',
176
+ params,
177
+ })
178
+ }
179
+
180
+ putScheduleColorsById(id: number, scheduleColor: ScheduleColor): Promise<ScheduleColor> {
181
+ return this.request({
182
+ path: `/schedule/colors/${id}`,
183
+ method: 'put',
184
+ data: scheduleColor,
185
+ })
186
+ }
187
+
188
+ patchScheduleColorsById(
189
+ id: number,
190
+ patchOperations: Array<PatchOperation>,
191
+ ): Promise<ScheduleColor> {
192
+ return this.request({
193
+ path: `/schedule/colors/${id}`,
194
+ method: 'patch',
195
+ data: patchOperations,
196
+ })
197
+ }
198
+
199
+ postScheduleColorsByIdClear(id: number): Promise<ScheduleColor> {
200
+ return this.request({
201
+ path: `/schedule/colors/${id}/clear`,
202
+ method: 'post',
203
+ })
204
+ }
205
+
206
+ getScheduleColorsCount(params: CommonParameters = {}): Promise<Count> {
207
+ return this.request({
208
+ path: `/schedule/colors/count`,
209
+ method: 'get',
210
+ params,
211
+ })
212
+ }
213
+
214
+ postScheduleColorsReset(): Promise<Array<ScheduleColor>> {
215
+ return this.request({
216
+ path: `/schedule/colors/reset`,
217
+ method: 'post',
218
+ })
219
+ }
220
+
221
+ getScheduleDetails(params: CommonParameters = {}): Promise<Array<ScheduleEntryDetail>> {
222
+ return this.request({
223
+ path: `/schedule/details`,
224
+ method: 'get',
225
+ params,
226
+ })
227
+ }
228
+
229
+ getScheduleDetailsById(id: number, params: CommonParameters = {}): Promise<ScheduleEntryDetail> {
230
+ return this.request({
231
+ path: `/schedule/details/${id}`,
232
+ method: 'get',
233
+ params,
234
+ })
235
+ }
236
+
237
+ getScheduleDetailsCount(params: CommonParameters = {}): Promise<Count> {
238
+ return this.request({
239
+ path: `/schedule/details/count`,
240
+ method: 'get',
241
+ params,
242
+ })
243
+ }
244
+
245
+ getScheduleEntries(params: CommonParameters = {}): Promise<Array<ScheduleEntry>> {
246
+ return this.request({
247
+ path: `/schedule/entries`,
248
+ method: 'get',
249
+ params,
250
+ })
251
+ }
252
+
253
+ postScheduleEntries(scheduleEntry: ScheduleEntry): Promise<ScheduleEntry> {
254
+ return this.request({
255
+ path: `/schedule/entries`,
256
+ method: 'post',
257
+ data: scheduleEntry,
258
+ })
259
+ }
260
+
261
+ getScheduleEntriesById(id: number, params: CommonParameters = {}): Promise<ScheduleEntry> {
262
+ return this.request({
263
+ path: `/schedule/entries/${id}`,
264
+ method: 'get',
265
+ params,
266
+ })
267
+ }
268
+
269
+ deleteScheduleEntriesById(id: number): Promise<NoContentResponse> {
270
+ return this.request({
271
+ path: `/schedule/entries/${id}`,
272
+ method: 'delete',
273
+ })
274
+ }
275
+
276
+ putScheduleEntriesById(id: number, scheduleEntry: ScheduleEntry): Promise<ScheduleEntry> {
277
+ return this.request({
278
+ path: `/schedule/entries/${id}`,
279
+ method: 'put',
280
+ data: scheduleEntry,
281
+ })
282
+ }
283
+
284
+ patchScheduleEntriesById(
285
+ id: number,
286
+ patchOperations: Array<PatchOperation>,
287
+ ): Promise<ScheduleEntry> {
288
+ return this.request({
289
+ path: `/schedule/entries/${id}`,
290
+ method: 'patch',
291
+ data: patchOperations,
292
+ })
293
+ }
294
+
295
+ getScheduleEntriesByParentIdDetails(
296
+ parentId: number,
297
+ params: CommonParameters = {},
298
+ ): Promise<Array<ScheduleDetail>> {
299
+ return this.request({
300
+ path: `/schedule/entries/${parentId}/details`,
301
+ method: 'get',
302
+ params,
303
+ })
304
+ }
305
+
306
+ getScheduleEntriesByParentIdDetailsById(
307
+ id: number,
308
+ parentId: number,
309
+ params: CommonParameters = {},
310
+ ): Promise<ScheduleDetail> {
311
+ return this.request({
312
+ path: `/schedule/entries/${parentId}/details/${id}`,
313
+ method: 'get',
314
+ params,
315
+ })
316
+ }
317
+
318
+ getScheduleEntriesByParentIdDetailsCount(
319
+ parentId: number,
320
+ params: CommonParameters = {},
321
+ ): Promise<Count> {
322
+ return this.request({
323
+ path: `/schedule/entries/${parentId}/details/count`,
324
+ method: 'get',
325
+ params,
326
+ })
327
+ }
328
+
329
+ getScheduleEntriesCount(params: CommonParameters = {}): Promise<Count> {
330
+ return this.request({
331
+ path: `/schedule/entries/count`,
332
+ method: 'get',
333
+ params,
334
+ })
335
+ }
336
+
337
+ getScheduleHolidayLists(params: CommonParameters = {}): Promise<Array<HolidayList>> {
338
+ return this.request({
339
+ path: `/schedule/holidayLists`,
340
+ method: 'get',
341
+ params,
342
+ })
343
+ }
344
+
345
+ postScheduleHolidayLists(holidayList: HolidayList): Promise<HolidayList> {
346
+ return this.request({
347
+ path: `/schedule/holidayLists`,
348
+ method: 'post',
349
+ data: holidayList,
350
+ })
351
+ }
352
+
353
+ getScheduleHolidayListsById(id: number, params: CommonParameters = {}): Promise<HolidayList> {
354
+ return this.request({
355
+ path: `/schedule/holidayLists/${id}`,
356
+ method: 'get',
357
+ params,
358
+ })
359
+ }
360
+
361
+ deleteScheduleHolidayListsById(id: number): Promise<NoContentResponse> {
362
+ return this.request({
363
+ path: `/schedule/holidayLists/${id}`,
364
+ method: 'delete',
365
+ })
366
+ }
367
+
368
+ putScheduleHolidayListsById(id: number, holidayList: HolidayList): Promise<HolidayList> {
369
+ return this.request({
370
+ path: `/schedule/holidayLists/${id}`,
371
+ method: 'put',
372
+ data: holidayList,
373
+ })
374
+ }
375
+
376
+ patchScheduleHolidayListsById(
377
+ id: number,
378
+ patchOperations: Array<PatchOperation>,
379
+ ): Promise<HolidayList> {
380
+ return this.request({
381
+ path: `/schedule/holidayLists/${id}`,
382
+ method: 'patch',
383
+ data: patchOperations,
384
+ })
385
+ }
386
+
387
+ getScheduleHolidaylistsByIdInfo(
388
+ id: number,
389
+ params: CommonParameters = {},
390
+ ): Promise<HolidayListInfo> {
391
+ return this.request({
392
+ path: `/schedule/holidaylists/${id}/info`,
393
+ method: 'get',
394
+ params,
395
+ })
396
+ }
397
+
398
+ getScheduleHolidayListsByIdUsages(
399
+ id: number,
400
+ params: CommonParameters = {},
401
+ ): Promise<Array<Usage>> {
402
+ return this.request({
403
+ path: `/schedule/holidayLists/${id}/usages`,
404
+ method: 'get',
405
+ params,
406
+ })
407
+ }
408
+
409
+ getScheduleHolidayListsByIdUsagesList(
410
+ id: number,
411
+ params: CommonParameters = {},
412
+ ): Promise<Array<Usage>> {
413
+ return this.request({
414
+ path: `/schedule/holidayLists/${id}/usages/list`,
415
+ method: 'get',
416
+ params,
417
+ })
418
+ }
419
+
420
+ getScheduleHolidayListsByParentIdHolidays(
421
+ parentId: number,
422
+ params: CommonParameters = {},
423
+ ): Promise<Array<Holiday>> {
424
+ return this.request({
425
+ path: `/schedule/holidayLists/${parentId}/holidays`,
426
+ method: 'get',
427
+ params,
428
+ })
429
+ }
430
+
431
+ postScheduleHolidayListsByParentIdHolidays(parentId: number, holiday: Holiday): Promise<Holiday> {
432
+ return this.request({
433
+ path: `/schedule/holidayLists/${parentId}/holidays`,
434
+ method: 'post',
435
+ data: holiday,
436
+ })
437
+ }
438
+
439
+ getScheduleHolidayListsByParentIdHolidaysById(
440
+ id: number,
441
+ parentId: number,
442
+ params: CommonParameters = {},
443
+ ): Promise<Holiday> {
444
+ return this.request({
445
+ path: `/schedule/holidayLists/${parentId}/holidays/${id}`,
446
+ method: 'get',
447
+ params,
448
+ })
449
+ }
450
+
451
+ deleteScheduleHolidayListsByParentIdHolidaysById(
452
+ id: number,
453
+ parentId: number,
454
+ ): Promise<NoContentResponse> {
455
+ return this.request({
456
+ path: `/schedule/holidayLists/${parentId}/holidays/${id}`,
457
+ method: 'delete',
458
+ })
459
+ }
460
+
461
+ putScheduleHolidayListsByParentIdHolidaysById(
462
+ id: number,
463
+ parentId: number,
464
+ holiday: Holiday,
465
+ ): Promise<Holiday> {
466
+ return this.request({
467
+ path: `/schedule/holidayLists/${parentId}/holidays/${id}`,
468
+ method: 'put',
469
+ data: holiday,
470
+ })
471
+ }
472
+
473
+ patchScheduleHolidayListsByParentIdHolidaysById(
474
+ id: number,
475
+ parentId: number,
476
+ patchOperations: Array<PatchOperation>,
477
+ ): Promise<Holiday> {
478
+ return this.request({
479
+ path: `/schedule/holidayLists/${parentId}/holidays/${id}`,
480
+ method: 'patch',
481
+ data: patchOperations,
482
+ })
483
+ }
484
+
485
+ getScheduleHolidayListsByParentIdHolidaysCount(
486
+ parentId: number,
487
+ params: CommonParameters = {},
488
+ ): Promise<Count> {
489
+ return this.request({
490
+ path: `/schedule/holidayLists/${parentId}/holidays/count`,
491
+ method: 'get',
492
+ params,
493
+ })
494
+ }
495
+
496
+ postScheduleHolidayListsCopy(copy: HolidayList): Promise<HolidayList> {
497
+ return this.request({
498
+ path: `/schedule/holidayLists/copy`,
499
+ method: 'post',
500
+ data: copy,
501
+ })
502
+ }
503
+
504
+ getScheduleHolidayListsCount(params: CommonParameters = {}): Promise<Count> {
505
+ return this.request({
506
+ path: `/schedule/holidayLists/count`,
507
+ method: 'get',
508
+ params,
509
+ })
510
+ }
511
+
512
+ getScheduleHolidaylistsInfo(params: CommonParameters = {}): Promise<Array<HolidayListInfo>> {
513
+ return this.request({
514
+ path: `/schedule/holidaylists/info`,
515
+ method: 'get',
516
+ params,
517
+ })
518
+ }
519
+
520
+ getSchedulePortalcalendars(params: CommonParameters = {}): Promise<Array<PortalCalendar>> {
521
+ return this.request({
522
+ path: `/schedule/portalcalendars`,
523
+ method: 'get',
524
+ params,
525
+ })
526
+ }
527
+
528
+ getSchedulePortalcalendarsById(
529
+ id: number,
530
+ params: CommonParameters = {},
531
+ ): Promise<PortalCalendar> {
532
+ return this.request({
533
+ path: `/schedule/portalcalendars/${id}`,
534
+ method: 'get',
535
+ params,
536
+ })
537
+ }
538
+
539
+ putSchedulePortalcalendarsById(
540
+ id: number,
541
+ portalCalendar: PortalCalendar,
542
+ ): Promise<PortalCalendar> {
543
+ return this.request({
544
+ path: `/schedule/portalcalendars/${id}`,
545
+ method: 'put',
546
+ data: portalCalendar,
547
+ })
548
+ }
549
+
550
+ patchSchedulePortalcalendarsById(
551
+ id: number,
552
+ patchOperations: Array<PatchOperation>,
553
+ ): Promise<PortalCalendar> {
554
+ return this.request({
555
+ path: `/schedule/portalcalendars/${id}`,
556
+ method: 'patch',
557
+ data: patchOperations,
558
+ })
559
+ }
560
+
561
+ getSchedulePortalcalendarsCount(params: CommonParameters = {}): Promise<Count> {
562
+ return this.request({
563
+ path: `/schedule/portalcalendars/count`,
564
+ method: 'get',
565
+ params,
566
+ })
567
+ }
568
+
569
+ getScheduleReminderTimes(params: CommonParameters = {}): Promise<Array<ScheduleReminderTime>> {
570
+ return this.request({
571
+ path: `/schedule/reminderTimes`,
572
+ method: 'get',
573
+ params,
574
+ })
575
+ }
576
+
577
+ getScheduleReminderTimesById(
578
+ id: number,
579
+ params: CommonParameters = {},
580
+ ): Promise<ScheduleReminderTime> {
581
+ return this.request({
582
+ path: `/schedule/reminderTimes/${id}`,
583
+ method: 'get',
584
+ params,
585
+ })
586
+ }
587
+
588
+ putScheduleReminderTimesById(
589
+ id: number,
590
+ reminderTime: ScheduleReminderTime,
591
+ ): Promise<ScheduleReminderTime> {
592
+ return this.request({
593
+ path: `/schedule/reminderTimes/${id}`,
594
+ method: 'put',
595
+ data: reminderTime,
596
+ })
597
+ }
598
+
599
+ patchScheduleReminderTimesById(
600
+ id: number,
601
+ patchOperations: Array<PatchOperation>,
602
+ ): Promise<ScheduleReminderTime> {
603
+ return this.request({
604
+ path: `/schedule/reminderTimes/${id}`,
605
+ method: 'patch',
606
+ data: patchOperations,
607
+ })
608
+ }
609
+
610
+ getScheduleReminderTimesCount(params: CommonParameters = {}): Promise<Count> {
611
+ return this.request({
612
+ path: `/schedule/reminderTimes/count`,
613
+ method: 'get',
614
+ params,
615
+ })
616
+ }
617
+
618
+ getScheduleStatuses(params: CommonParameters = {}): Promise<Array<ScheduleStatus>> {
619
+ return this.request({
620
+ path: `/schedule/statuses`,
621
+ method: 'get',
622
+ params,
623
+ })
624
+ }
625
+
626
+ postScheduleStatuses(scheduleStatus: ScheduleStatus): Promise<ScheduleStatus> {
627
+ return this.request({
628
+ path: `/schedule/statuses`,
629
+ method: 'post',
630
+ data: scheduleStatus,
631
+ })
632
+ }
633
+
634
+ getScheduleStatusesById(id: number, params: CommonParameters = {}): Promise<ScheduleStatus> {
635
+ return this.request({
636
+ path: `/schedule/statuses/${id}`,
637
+ method: 'get',
638
+ params,
639
+ })
640
+ }
641
+
642
+ deleteScheduleStatusesById(id: number): Promise<NoContentResponse> {
643
+ return this.request({
644
+ path: `/schedule/statuses/${id}`,
645
+ method: 'delete',
646
+ })
647
+ }
648
+
649
+ putScheduleStatusesById(id: number, scheduleStatus: ScheduleStatus): Promise<ScheduleStatus> {
650
+ return this.request({
651
+ path: `/schedule/statuses/${id}`,
652
+ method: 'put',
653
+ data: scheduleStatus,
654
+ })
655
+ }
656
+
657
+ patchScheduleStatusesById(
658
+ id: number,
659
+ patchOperations: Array<PatchOperation>,
660
+ ): Promise<ScheduleStatus> {
661
+ return this.request({
662
+ path: `/schedule/statuses/${id}`,
663
+ method: 'patch',
664
+ data: patchOperations,
665
+ })
666
+ }
667
+
668
+ getScheduleStatusesCount(params: CommonParameters = {}): Promise<Count> {
669
+ return this.request({
670
+ path: `/schedule/statuses/count`,
671
+ method: 'get',
672
+ params,
673
+ })
674
+ }
675
+
676
+ getScheduleTypes(params: CommonParameters = {}): Promise<Array<ScheduleType>> {
677
+ return this.request({
678
+ path: `/schedule/types`,
679
+ method: 'get',
680
+ params,
681
+ })
682
+ }
683
+
684
+ postScheduleTypes(scheduleType: ScheduleType): Promise<ScheduleType> {
685
+ return this.request({
686
+ path: `/schedule/types`,
687
+ method: 'post',
688
+ data: scheduleType,
689
+ })
690
+ }
691
+
692
+ getScheduleTypesById(id: number, params: CommonParameters = {}): Promise<ScheduleType> {
693
+ return this.request({
694
+ path: `/schedule/types/${id}`,
695
+ method: 'get',
696
+ params,
697
+ })
698
+ }
699
+
700
+ deleteScheduleTypesById(id: number): Promise<NoContentResponse> {
701
+ return this.request({
702
+ path: `/schedule/types/${id}`,
703
+ method: 'delete',
704
+ })
705
+ }
706
+
707
+ putScheduleTypesById(id: number, scheduleType: ScheduleType): Promise<ScheduleType> {
708
+ return this.request({
709
+ path: `/schedule/types/${id}`,
710
+ method: 'put',
711
+ data: scheduleType,
712
+ })
713
+ }
714
+
715
+ patchScheduleTypesById(
716
+ id: number,
717
+ patchOperations: Array<PatchOperation>,
718
+ ): Promise<ScheduleType> {
719
+ return this.request({
720
+ path: `/schedule/types/${id}`,
721
+ method: 'patch',
722
+ data: patchOperations,
723
+ })
724
+ }
725
+
726
+ getScheduleTypesByIdInfo(id: number, params: CommonParameters = {}): Promise<ScheduleTypeInfo> {
727
+ return this.request({
728
+ path: `/schedule/types/${id}/info`,
729
+ method: 'get',
730
+ params,
731
+ })
732
+ }
733
+
734
+ getScheduleTypesByIdUsages(id: number, params: CommonParameters = {}): Promise<Array<Usage>> {
735
+ return this.request({
736
+ path: `/schedule/types/${id}/usages`,
737
+ method: 'get',
738
+ params,
739
+ })
740
+ }
741
+
742
+ getScheduleTypesByIdUsagesList(id: number, params: CommonParameters = {}): Promise<Array<Usage>> {
743
+ return this.request({
744
+ path: `/schedule/types/${id}/usages/list`,
745
+ method: 'get',
746
+ params,
747
+ })
748
+ }
749
+
750
+ getScheduleTypesCount(params: CommonParameters = {}): Promise<Count> {
751
+ return this.request({
752
+ path: `/schedule/types/count`,
753
+ method: 'get',
754
+ params,
755
+ })
756
+ }
757
+
758
+ getScheduleTypesInfo(params: CommonParameters = {}): Promise<Array<ScheduleTypeInfo>> {
759
+ return this.request({
760
+ path: `/schedule/types/info`,
761
+ method: 'get',
762
+ params,
763
+ })
764
+ }
765
+
766
+ getScheduleTypesInfoCount(params: CommonParameters = {}): Promise<Count> {
767
+ return this.request({
768
+ path: `/schedule/types/info/count`,
769
+ method: 'get',
770
+ params,
771
+ })
772
+ }
773
+ }