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