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,4851 @@
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 AddressFormat = schemas['AddressFormat']
9
+ export type AddressFormatInfo = schemas['AddressFormatInfo']
10
+ export type BulkResult = schemas['BulkResult']
11
+ export type ClearPickerRequest = schemas['ClearPickerRequest']
12
+ export type CommunicationType = schemas['CommunicationType']
13
+ export type CommunicationTypeInfo = schemas['CommunicationTypeInfo']
14
+ export type Company = schemas['Company']
15
+ export type CompanyCompanyTypeAssociation = schemas['Company.CompanyTypeAssociation']
16
+ export type CompanyConfiguration = schemas['Company.Configuration']
17
+ export type CompanyContactTypeAssociation = schemas['Company.ContactTypeAssociation']
18
+ export type CompanyCompanyTypeAssociationCompanyTypeAssociation =
19
+ schemas['CompanyCompanyTypeAssociation.CompanyTypeAssociation']
20
+ export type CompanyCustomNote = schemas['CompanyCustomNote']
21
+ export type CompanyFinance = schemas['CompanyFinance']
22
+ export type CompanyGroup = schemas['CompanyGroup']
23
+ export type CompanyManagementSummary = schemas['CompanyManagementSummary']
24
+ export type CompanyMerge = schemas['CompanyMerge']
25
+ export type CompanyNote = schemas['CompanyNote']
26
+ export type CompanyNoteType = schemas['CompanyNoteType']
27
+ export type CompanyNoteTypeInfo = schemas['CompanyNoteTypeInfo']
28
+ export type CompanyPickerItem = schemas['CompanyPickerItem']
29
+ export type CompanySite = schemas['CompanySite']
30
+ export type CompanyStatus = schemas['CompanyStatus']
31
+ export type CompanyTeam = schemas['CompanyTeam']
32
+ export type CompanyType = schemas['CompanyType']
33
+ export type CompanyTypeInfo = schemas['CompanyTypeInfo']
34
+ export type ConfigurationStatus = schemas['ConfigurationStatus']
35
+ export type ConfigurationStatusInfo = schemas['ConfigurationStatusInfo']
36
+ export type ConfigurationType = schemas['ConfigurationType']
37
+ export type ConfigurationTypeInfo = schemas['ConfigurationTypeInfo']
38
+ export type ConfigurationTypeQuestion = schemas['ConfigurationTypeQuestion']
39
+ export type ConfigurationTypeQuestionValue = schemas['ConfigurationTypeQuestionValue']
40
+ export type Contact = schemas['Contact']
41
+ export type ContactCommunication = schemas['ContactCommunication']
42
+ export type ContactContactTypeAssociationContactTypeAssociation =
43
+ schemas['ContactContactTypeAssociation.ContactTypeAssociation']
44
+ export type ContactDepartment = schemas['ContactDepartment']
45
+ export type ContactDepartmentInfo = schemas['ContactDepartmentInfo']
46
+ export type ContactGroup = schemas['ContactGroup']
47
+ export type ContactNote = schemas['ContactNote']
48
+ export type ContactRelationship = schemas['ContactRelationship']
49
+ export type ContactTrack = schemas['ContactTrack']
50
+ export type ContactType = schemas['ContactType']
51
+ export type ContactTypeInfo = schemas['ContactTypeInfo']
52
+ export type Count = schemas['Count']
53
+ export type Country = schemas['Country']
54
+ export type CountryInfo = schemas['CountryInfo']
55
+ export type EntityType = schemas['EntityType']
56
+ export type EntityTypeInfo = schemas['EntityTypeInfo']
57
+ export type ManagedDevicesIntegration = schemas['ManagedDevicesIntegration']
58
+ export type ManagedDevicesIntegrationCrossReference =
59
+ schemas['ManagedDevicesIntegrationCrossReference']
60
+ export type ManagedDevicesIntegrationInfo = schemas['ManagedDevicesIntegrationInfo']
61
+ export type ManagedDevicesIntegrationLogin = schemas['ManagedDevicesIntegrationLogin']
62
+ export type ManagedDevicesIntegrationNotification = schemas['ManagedDevicesIntegrationNotification']
63
+ export type Management = schemas['Management']
64
+ export type ManagementBackup = schemas['ManagementBackup']
65
+ export type ManagementItSolution = schemas['ManagementItSolution']
66
+ export type ManagementItSolutionAgreementInterfaceParameter =
67
+ schemas['ManagementItSolutionAgreementInterfaceParameter']
68
+ export type ManagementLogDocumentInfo = schemas['ManagementLogDocumentInfo']
69
+ export type ManagementReportNotification = schemas['ManagementReportNotification']
70
+ export type ManagementReportSetup = schemas['ManagementReportSetup']
71
+ export type MarketDescription = schemas['MarketDescription']
72
+ export type MarketDescriptionInfo = schemas['MarketDescriptionInfo']
73
+ export type OwnershipType = schemas['OwnershipType']
74
+ export type OwnershipTypeInfo = schemas['OwnershipTypeInfo']
75
+ export type PatchOperation = schemas['PatchOperation']
76
+ export type PortalConfiguration = schemas['PortalConfiguration']
77
+ export type PortalConfigurationInvoiceSetup = schemas['PortalConfigurationInvoiceSetup']
78
+ export type PortalConfigurationOpportunitySetup = schemas['PortalConfigurationOpportunitySetup']
79
+ export type PortalConfigurationPasswordEmailSetup = schemas['PortalConfigurationPasswordEmailSetup']
80
+ export type PortalConfigurationPaymentProcessor = schemas['PortalConfigurationPaymentProcessor']
81
+ export type PortalConfigurationProjectSetup = schemas['PortalConfigurationProjectSetup']
82
+ export type PortalConfigurationServiceSetup = schemas['PortalConfigurationServiceSetup']
83
+ export type PortalSecurity = schemas['PortalSecurity']
84
+ export type PortalSecurityLevel = schemas['PortalSecurityLevel']
85
+ export type PortalSecuritySetting = schemas['PortalSecuritySetting']
86
+ export type RequestPasswordRequest = schemas['RequestPasswordRequest']
87
+ export type State = schemas['State']
88
+ export type StateInfo = schemas['StateInfo']
89
+ export type SuccessResponse = schemas['SuccessResponse']
90
+ export type TeamRole = schemas['TeamRole']
91
+ export type TeamRoleInfo = schemas['TeamRoleInfo']
92
+ export type Track = schemas['Track']
93
+ export type TrackAction = schemas['TrackAction']
94
+ export type Usage = schemas['Usage']
95
+ export type ValidatePortalRequest = schemas['ValidatePortalRequest']
96
+ export type ValidatePortalResponse = schemas['ValidatePortalResponse']
97
+
98
+ /**
99
+ * @public
100
+ */
101
+ export default class CompanyAPI extends Manage {
102
+ constructor(props: CWMOptions) {
103
+ super(props)
104
+ }
105
+
106
+ getCompanyAddressFormats(params: CommonParameters = {}): Promise<Array<AddressFormat>> {
107
+ return this.request({
108
+ path: `/company/addressFormats`,
109
+ method: 'get',
110
+ params,
111
+ })
112
+ }
113
+
114
+ postCompanyAddressFormats(addressFormat: AddressFormat): Promise<AddressFormat> {
115
+ return this.request({
116
+ path: `/company/addressFormats`,
117
+ method: 'post',
118
+ data: addressFormat,
119
+ })
120
+ }
121
+
122
+ getCompanyAddressFormatsById(id: number, params: CommonParameters = {}): Promise<AddressFormat> {
123
+ return this.request({
124
+ path: `/company/addressFormats/${id}`,
125
+ method: 'get',
126
+ params,
127
+ })
128
+ }
129
+
130
+ deleteCompanyAddressFormatsById(id: number): Promise<NoContentResponse> {
131
+ return this.request({
132
+ path: `/company/addressFormats/${id}`,
133
+ method: 'delete',
134
+ })
135
+ }
136
+
137
+ putCompanyAddressFormatsById(id: number, addressFormat: AddressFormat): Promise<AddressFormat> {
138
+ return this.request({
139
+ path: `/company/addressFormats/${id}`,
140
+ method: 'put',
141
+ data: addressFormat,
142
+ })
143
+ }
144
+
145
+ patchCompanyAddressFormatsById(
146
+ id: number,
147
+ patchOperations: Array<PatchOperation>,
148
+ ): Promise<AddressFormat> {
149
+ return this.request({
150
+ path: `/company/addressFormats/${id}`,
151
+ method: 'patch',
152
+ data: patchOperations,
153
+ })
154
+ }
155
+
156
+ getCompanyAddressFormatsByIdInfo(
157
+ id: number,
158
+ params: CommonParameters = {},
159
+ ): Promise<AddressFormatInfo> {
160
+ return this.request({
161
+ path: `/company/addressFormats/${id}/info`,
162
+ method: 'get',
163
+ params,
164
+ })
165
+ }
166
+
167
+ getCompanyAddressFormatsCount(params: CommonParameters = {}): Promise<Count> {
168
+ return this.request({
169
+ path: `/company/addressFormats/count`,
170
+ method: 'get',
171
+ params,
172
+ })
173
+ }
174
+
175
+ getCompanyAddressFormatsInfo(params: CommonParameters = {}): Promise<Array<AddressFormatInfo>> {
176
+ return this.request({
177
+ path: `/company/addressFormats/info`,
178
+ method: 'get',
179
+ params,
180
+ })
181
+ }
182
+
183
+ getCompanyAddressFormatsInfoCount(params: CommonParameters = {}): Promise<Count> {
184
+ return this.request({
185
+ path: `/company/addressFormats/info/count`,
186
+ method: 'get',
187
+ params,
188
+ })
189
+ }
190
+
191
+ getCompanyBillingSetupsInfoCount(params: CommonParameters = {}): Promise<Count> {
192
+ return this.request({
193
+ path: `/company/billingSetups/info/count`,
194
+ method: 'get',
195
+ params,
196
+ })
197
+ }
198
+
199
+ getCompanyCommunicationTypes(params: CommonParameters = {}): Promise<Array<CommunicationType>> {
200
+ return this.request({
201
+ path: `/company/communicationTypes`,
202
+ method: 'get',
203
+ params,
204
+ })
205
+ }
206
+
207
+ postCompanyCommunicationTypes(communicationType: CommunicationType): Promise<CommunicationType> {
208
+ return this.request({
209
+ path: `/company/communicationTypes`,
210
+ method: 'post',
211
+ data: communicationType,
212
+ })
213
+ }
214
+
215
+ getCompanyCommunicationTypesById(
216
+ id: number,
217
+ params: CommonParameters = {},
218
+ ): Promise<CommunicationType> {
219
+ return this.request({
220
+ path: `/company/communicationTypes/${id}`,
221
+ method: 'get',
222
+ params,
223
+ })
224
+ }
225
+
226
+ deleteCompanyCommunicationTypesById(id: number): Promise<NoContentResponse> {
227
+ return this.request({
228
+ path: `/company/communicationTypes/${id}`,
229
+ method: 'delete',
230
+ })
231
+ }
232
+
233
+ putCompanyCommunicationTypesById(
234
+ id: number,
235
+ communicationType: CommunicationType,
236
+ ): Promise<CommunicationType> {
237
+ return this.request({
238
+ path: `/company/communicationTypes/${id}`,
239
+ method: 'put',
240
+ data: communicationType,
241
+ })
242
+ }
243
+
244
+ patchCompanyCommunicationTypesById(
245
+ id: number,
246
+ patchOperations: Array<PatchOperation>,
247
+ ): Promise<CommunicationType> {
248
+ return this.request({
249
+ path: `/company/communicationTypes/${id}`,
250
+ method: 'patch',
251
+ data: patchOperations,
252
+ })
253
+ }
254
+
255
+ getCompanyCommunicationTypesByIdInfo(
256
+ id: number,
257
+ params: CommonParameters = {},
258
+ ): Promise<CommunicationTypeInfo> {
259
+ return this.request({
260
+ path: `/company/communicationTypes/${id}/info`,
261
+ method: 'get',
262
+ params,
263
+ })
264
+ }
265
+
266
+ getCompanyCommunicationTypesByIdUsages(
267
+ id: number,
268
+ params: CommonParameters = {},
269
+ ): Promise<Array<Usage>> {
270
+ return this.request({
271
+ path: `/company/communicationTypes/${id}/usages`,
272
+ method: 'get',
273
+ params,
274
+ })
275
+ }
276
+
277
+ getCompanyCommunicationTypesByIdUsagesList(
278
+ id: number,
279
+ params: CommonParameters = {},
280
+ ): Promise<Array<Usage>> {
281
+ return this.request({
282
+ path: `/company/communicationTypes/${id}/usages/list`,
283
+ method: 'get',
284
+ params,
285
+ })
286
+ }
287
+
288
+ getCompanyCommunicationTypesCount(params: CommonParameters = {}): Promise<Count> {
289
+ return this.request({
290
+ path: `/company/communicationTypes/count`,
291
+ method: 'get',
292
+ params,
293
+ })
294
+ }
295
+
296
+ getCompanyCommunicationTypesInfo(
297
+ params: CommonParameters = {},
298
+ ): Promise<Array<CommunicationTypeInfo>> {
299
+ return this.request({
300
+ path: `/company/communicationTypes/info`,
301
+ method: 'get',
302
+ params,
303
+ })
304
+ }
305
+
306
+ getCompanyCommunicationTypesInfoCount(params: CommonParameters = {}): Promise<Count> {
307
+ return this.request({
308
+ path: `/company/communicationTypes/info/count`,
309
+ method: 'get',
310
+ params,
311
+ })
312
+ }
313
+
314
+ getCompanyCompanies(params: CommonParameters = {}): Promise<Array<Company>> {
315
+ return this.request({
316
+ path: `/company/companies`,
317
+ method: 'get',
318
+ params,
319
+ })
320
+ }
321
+
322
+ postCompanyCompanies(company: Company): Promise<Company> {
323
+ return this.request({
324
+ path: `/company/companies`,
325
+ method: 'post',
326
+ data: company,
327
+ })
328
+ }
329
+
330
+ getCompanyCompaniesById(id: number, params: CommonParameters = {}): Promise<Company> {
331
+ return this.request({
332
+ path: `/company/companies/${id}`,
333
+ method: 'get',
334
+ params,
335
+ })
336
+ }
337
+
338
+ deleteCompanyCompaniesById(id: number): Promise<NoContentResponse> {
339
+ return this.request({
340
+ path: `/company/companies/${id}`,
341
+ method: 'delete',
342
+ })
343
+ }
344
+
345
+ putCompanyCompaniesById(id: number, company: Company): Promise<Company> {
346
+ return this.request({
347
+ path: `/company/companies/${id}`,
348
+ method: 'put',
349
+ data: company,
350
+ })
351
+ }
352
+
353
+ patchCompanyCompaniesById(id: number, patchOperations: Array<PatchOperation>): Promise<Company> {
354
+ return this.request({
355
+ path: `/company/companies/${id}`,
356
+ method: 'patch',
357
+ data: patchOperations,
358
+ })
359
+ }
360
+
361
+ postCompanyCompaniesByIdMerge(id: number, merge: CompanyMerge): Promise<SuccessResponse> {
362
+ return this.request({
363
+ path: `/company/companies/${id}/merge`,
364
+ method: 'post',
365
+ data: merge,
366
+ })
367
+ }
368
+
369
+ getCompanyCompaniesByIdUsages(id: number, params: CommonParameters = {}): Promise<Array<Usage>> {
370
+ return this.request({
371
+ path: `/company/companies/${id}/usages`,
372
+ method: 'get',
373
+ params,
374
+ })
375
+ }
376
+
377
+ getCompanyCompaniesByIdUsagesList(
378
+ id: number,
379
+ params: CommonParameters = {},
380
+ ): Promise<Array<Usage>> {
381
+ return this.request({
382
+ path: `/company/companies/${id}/usages/list`,
383
+ method: 'get',
384
+ params,
385
+ })
386
+ }
387
+
388
+ getCompanyCompaniesByParentIdCustomStatusNotes(
389
+ parentId: number,
390
+ params: CommonParameters = {},
391
+ ): Promise<Array<CompanyCustomNote>> {
392
+ return this.request({
393
+ path: `/company/companies/${parentId}/customStatusNotes`,
394
+ method: 'get',
395
+ params,
396
+ })
397
+ }
398
+
399
+ postCompanyCompaniesByParentIdCustomStatusNotes(
400
+ parentId: number,
401
+ customNote: CompanyCustomNote,
402
+ ): Promise<CompanyCustomNote> {
403
+ return this.request({
404
+ path: `/company/companies/${parentId}/customStatusNotes`,
405
+ method: 'post',
406
+ data: customNote,
407
+ })
408
+ }
409
+
410
+ getCompanyCompaniesByParentIdCustomStatusNotesById(
411
+ id: number,
412
+ parentId: number,
413
+ params: CommonParameters = {},
414
+ ): Promise<CompanyCustomNote> {
415
+ return this.request({
416
+ path: `/company/companies/${parentId}/customStatusNotes/${id}`,
417
+ method: 'get',
418
+ params,
419
+ })
420
+ }
421
+
422
+ deleteCompanyCompaniesByParentIdCustomStatusNotesById(
423
+ id: number,
424
+ parentId: number,
425
+ ): Promise<NoContentResponse> {
426
+ return this.request({
427
+ path: `/company/companies/${parentId}/customStatusNotes/${id}`,
428
+ method: 'delete',
429
+ })
430
+ }
431
+
432
+ putCompanyCompaniesByParentIdCustomStatusNotesById(
433
+ id: number,
434
+ parentId: number,
435
+ customNote: CompanyCustomNote,
436
+ ): Promise<CompanyCustomNote> {
437
+ return this.request({
438
+ path: `/company/companies/${parentId}/customStatusNotes/${id}`,
439
+ method: 'put',
440
+ data: customNote,
441
+ })
442
+ }
443
+
444
+ patchCompanyCompaniesByParentIdCustomStatusNotesById(
445
+ id: number,
446
+ parentId: number,
447
+ patchOperations: Array<PatchOperation>,
448
+ ): Promise<CompanyCustomNote> {
449
+ return this.request({
450
+ path: `/company/companies/${parentId}/customStatusNotes/${id}`,
451
+ method: 'patch',
452
+ data: patchOperations,
453
+ })
454
+ }
455
+
456
+ getCompanyCompaniesByParentIdCustomStatusNotesCount(
457
+ parentId: number,
458
+ params: CommonParameters = {},
459
+ ): Promise<Count> {
460
+ return this.request({
461
+ path: `/company/companies/${parentId}/customStatusNotes/count`,
462
+ method: 'get',
463
+ params,
464
+ })
465
+ }
466
+
467
+ getCompanyCompaniesByParentIdGroups(
468
+ parentId: number,
469
+ params: CommonParameters = {},
470
+ ): Promise<Array<CompanyGroup>> {
471
+ return this.request({
472
+ path: `/company/companies/${parentId}/groups`,
473
+ method: 'get',
474
+ params,
475
+ })
476
+ }
477
+
478
+ postCompanyCompaniesByParentIdGroups(
479
+ parentId: number,
480
+ companyGroup: CompanyGroup,
481
+ ): Promise<CompanyGroup> {
482
+ return this.request({
483
+ path: `/company/companies/${parentId}/groups`,
484
+ method: 'post',
485
+ data: companyGroup,
486
+ })
487
+ }
488
+
489
+ getCompanyCompaniesByParentIdGroupsById(
490
+ id: number,
491
+ parentId: number,
492
+ params: CommonParameters = {},
493
+ ): Promise<CompanyGroup> {
494
+ return this.request({
495
+ path: `/company/companies/${parentId}/groups/${id}`,
496
+ method: 'get',
497
+ params,
498
+ })
499
+ }
500
+
501
+ deleteCompanyCompaniesByParentIdGroupsById(
502
+ id: number,
503
+ parentId: number,
504
+ ): Promise<NoContentResponse> {
505
+ return this.request({
506
+ path: `/company/companies/${parentId}/groups/${id}`,
507
+ method: 'delete',
508
+ })
509
+ }
510
+
511
+ putCompanyCompaniesByParentIdGroupsById(
512
+ id: number,
513
+ parentId: number,
514
+ companyGroup: CompanyGroup,
515
+ ): Promise<CompanyGroup> {
516
+ return this.request({
517
+ path: `/company/companies/${parentId}/groups/${id}`,
518
+ method: 'put',
519
+ data: companyGroup,
520
+ })
521
+ }
522
+
523
+ patchCompanyCompaniesByParentIdGroupsById(
524
+ id: number,
525
+ parentId: number,
526
+ patchOperations: Array<PatchOperation>,
527
+ ): Promise<CompanyGroup> {
528
+ return this.request({
529
+ path: `/company/companies/${parentId}/groups/${id}`,
530
+ method: 'patch',
531
+ data: patchOperations,
532
+ })
533
+ }
534
+
535
+ getCompanyCompaniesByParentIdGroupsCount(
536
+ parentId: number,
537
+ params: CommonParameters = {},
538
+ ): Promise<Count> {
539
+ return this.request({
540
+ path: `/company/companies/${parentId}/groups/count`,
541
+ method: 'get',
542
+ params,
543
+ })
544
+ }
545
+
546
+ getCompanyCompaniesByParentIdManagementReportNotifications(
547
+ parentId: number,
548
+ params: CommonParameters = {},
549
+ ): Promise<Array<ManagementReportNotification>> {
550
+ return this.request({
551
+ path: `/company/companies/${parentId}/managementReportNotifications`,
552
+ method: 'get',
553
+ params,
554
+ })
555
+ }
556
+
557
+ postCompanyCompaniesByParentIdManagementReportNotifications(
558
+ parentId: number,
559
+ managementReportNotification: ManagementReportNotification,
560
+ ): Promise<ManagementReportNotification> {
561
+ return this.request({
562
+ path: `/company/companies/${parentId}/managementReportNotifications`,
563
+ method: 'post',
564
+ data: managementReportNotification,
565
+ })
566
+ }
567
+
568
+ getCompanyCompaniesByParentIdManagementReportNotificationsById(
569
+ id: number,
570
+ parentId: number,
571
+ params: CommonParameters = {},
572
+ ): Promise<ManagementReportNotification> {
573
+ return this.request({
574
+ path: `/company/companies/${parentId}/managementReportNotifications/${id}`,
575
+ method: 'get',
576
+ params,
577
+ })
578
+ }
579
+
580
+ deleteCompanyCompaniesByParentIdManagementReportNotificationsById(
581
+ id: number,
582
+ parentId: number,
583
+ ): Promise<NoContentResponse> {
584
+ return this.request({
585
+ path: `/company/companies/${parentId}/managementReportNotifications/${id}`,
586
+ method: 'delete',
587
+ })
588
+ }
589
+
590
+ putCompanyCompaniesByParentIdManagementReportNotificationsById(
591
+ id: number,
592
+ parentId: number,
593
+ managementReportNotification: ManagementReportNotification,
594
+ ): Promise<ManagementReportNotification> {
595
+ return this.request({
596
+ path: `/company/companies/${parentId}/managementReportNotifications/${id}`,
597
+ method: 'put',
598
+ data: managementReportNotification,
599
+ })
600
+ }
601
+
602
+ patchCompanyCompaniesByParentIdManagementReportNotificationsById(
603
+ id: number,
604
+ parentId: number,
605
+ patchOperations: Array<PatchOperation>,
606
+ ): Promise<ManagementReportNotification> {
607
+ return this.request({
608
+ path: `/company/companies/${parentId}/managementReportNotifications/${id}`,
609
+ method: 'patch',
610
+ data: patchOperations,
611
+ })
612
+ }
613
+
614
+ getCompanyCompaniesByParentIdManagementReportNotificationsCount(
615
+ parentId: number,
616
+ params: CommonParameters = {},
617
+ ): Promise<Count> {
618
+ return this.request({
619
+ path: `/company/companies/${parentId}/managementReportNotifications/count`,
620
+ method: 'get',
621
+ params,
622
+ })
623
+ }
624
+
625
+ getCompanyCompaniesByParentIdManagementReportSetup(
626
+ parentId: number,
627
+ params: CommonParameters = {},
628
+ ): Promise<Array<ManagementReportSetup>> {
629
+ return this.request({
630
+ path: `/company/companies/${parentId}/managementReportSetup`,
631
+ method: 'get',
632
+ params,
633
+ })
634
+ }
635
+
636
+ postCompanyCompaniesByParentIdManagementReportSetup(
637
+ parentId: number,
638
+ managementReportSetup: ManagementReportSetup,
639
+ ): Promise<ManagementReportSetup> {
640
+ return this.request({
641
+ path: `/company/companies/${parentId}/managementReportSetup`,
642
+ method: 'post',
643
+ data: managementReportSetup,
644
+ })
645
+ }
646
+
647
+ putCompanyCompaniesByParentIdManagementReportSetupById(
648
+ id: number,
649
+ parentId: number,
650
+ managementReportSetup: ManagementReportSetup,
651
+ ): Promise<ManagementReportSetup> {
652
+ return this.request({
653
+ path: `/company/companies/${parentId}/managementReportSetup/${id}`,
654
+ method: 'put',
655
+ data: managementReportSetup,
656
+ })
657
+ }
658
+
659
+ patchCompanyCompaniesByParentIdManagementReportSetupById(
660
+ id: number,
661
+ parentId: number,
662
+ patchOperations: Array<PatchOperation>,
663
+ ): Promise<ManagementReportSetup> {
664
+ return this.request({
665
+ path: `/company/companies/${parentId}/managementReportSetup/${id}`,
666
+ method: 'patch',
667
+ data: patchOperations,
668
+ })
669
+ }
670
+
671
+ getCompanyCompaniesByParentIdManagementSummaryReports(
672
+ parentId: number,
673
+ params: CommonParameters = {},
674
+ ): Promise<Array<CompanyManagementSummary>> {
675
+ return this.request({
676
+ path: `/company/companies/${parentId}/managementSummaryReports`,
677
+ method: 'get',
678
+ params,
679
+ })
680
+ }
681
+
682
+ postCompanyCompaniesByParentIdManagementSummaryReports(
683
+ parentId: number,
684
+ managementSummary: CompanyManagementSummary,
685
+ ): Promise<CompanyManagementSummary> {
686
+ return this.request({
687
+ path: `/company/companies/${parentId}/managementSummaryReports`,
688
+ method: 'post',
689
+ data: managementSummary,
690
+ })
691
+ }
692
+
693
+ getCompanyCompaniesByParentIdManagementSummaryReportsById(
694
+ id: number,
695
+ parentId: number,
696
+ params: CommonParameters = {},
697
+ ): Promise<CompanyManagementSummary> {
698
+ return this.request({
699
+ path: `/company/companies/${parentId}/managementSummaryReports/${id}`,
700
+ method: 'get',
701
+ params,
702
+ })
703
+ }
704
+
705
+ deleteCompanyCompaniesByParentIdManagementSummaryReportsById(
706
+ id: number,
707
+ parentId: number,
708
+ ): Promise<NoContentResponse> {
709
+ return this.request({
710
+ path: `/company/companies/${parentId}/managementSummaryReports/${id}`,
711
+ method: 'delete',
712
+ })
713
+ }
714
+
715
+ putCompanyCompaniesByParentIdManagementSummaryReportsById(
716
+ id: number,
717
+ parentId: number,
718
+ managementSummary: CompanyManagementSummary,
719
+ ): Promise<CompanyManagementSummary> {
720
+ return this.request({
721
+ path: `/company/companies/${parentId}/managementSummaryReports/${id}`,
722
+ method: 'put',
723
+ data: managementSummary,
724
+ })
725
+ }
726
+
727
+ patchCompanyCompaniesByParentIdManagementSummaryReportsById(
728
+ id: number,
729
+ parentId: number,
730
+ patchOperations: Array<PatchOperation>,
731
+ ): Promise<CompanyManagementSummary> {
732
+ return this.request({
733
+ path: `/company/companies/${parentId}/managementSummaryReports/${id}`,
734
+ method: 'patch',
735
+ data: patchOperations,
736
+ })
737
+ }
738
+
739
+ getCompanyCompaniesByParentIdManagementSummaryReportsCount(
740
+ parentId: number,
741
+ params: CommonParameters = {},
742
+ ): Promise<Count> {
743
+ return this.request({
744
+ path: `/company/companies/${parentId}/managementSummaryReports/count`,
745
+ method: 'get',
746
+ params,
747
+ })
748
+ }
749
+
750
+ getCompanyCompaniesByParentIdNotes(
751
+ parentId: number,
752
+ params: CommonParameters = {},
753
+ ): Promise<Array<CompanyNote>> {
754
+ return this.request({
755
+ path: `/company/companies/${parentId}/notes`,
756
+ method: 'get',
757
+ params,
758
+ })
759
+ }
760
+
761
+ postCompanyCompaniesByParentIdNotes(
762
+ parentId: number,
763
+ companyNote: CompanyNote,
764
+ ): Promise<CompanyNote> {
765
+ return this.request({
766
+ path: `/company/companies/${parentId}/notes`,
767
+ method: 'post',
768
+ data: companyNote,
769
+ })
770
+ }
771
+
772
+ getCompanyCompaniesByParentIdNotesById(
773
+ id: number,
774
+ parentId: number,
775
+ params: CommonParameters = {},
776
+ ): Promise<CompanyNote> {
777
+ return this.request({
778
+ path: `/company/companies/${parentId}/notes/${id}`,
779
+ method: 'get',
780
+ params,
781
+ })
782
+ }
783
+
784
+ deleteCompanyCompaniesByParentIdNotesById(
785
+ id: number,
786
+ parentId: number,
787
+ ): Promise<NoContentResponse> {
788
+ return this.request({
789
+ path: `/company/companies/${parentId}/notes/${id}`,
790
+ method: 'delete',
791
+ })
792
+ }
793
+
794
+ putCompanyCompaniesByParentIdNotesById(
795
+ id: number,
796
+ parentId: number,
797
+ companyNote: CompanyNote,
798
+ ): Promise<CompanyNote> {
799
+ return this.request({
800
+ path: `/company/companies/${parentId}/notes/${id}`,
801
+ method: 'put',
802
+ data: companyNote,
803
+ })
804
+ }
805
+
806
+ patchCompanyCompaniesByParentIdNotesById(
807
+ id: number,
808
+ parentId: number,
809
+ patchOperations: Array<PatchOperation>,
810
+ ): Promise<CompanyNote> {
811
+ return this.request({
812
+ path: `/company/companies/${parentId}/notes/${id}`,
813
+ method: 'patch',
814
+ data: patchOperations,
815
+ })
816
+ }
817
+
818
+ getCompanyCompaniesByParentIdNotesCount(
819
+ parentId: number,
820
+ params: CommonParameters = {},
821
+ ): Promise<Count> {
822
+ return this.request({
823
+ path: `/company/companies/${parentId}/notes/count`,
824
+ method: 'get',
825
+ params,
826
+ })
827
+ }
828
+
829
+ getCompanyCompaniesByParentIdSites(
830
+ parentId: number,
831
+ params: CommonParameters = {},
832
+ ): Promise<Array<CompanySite>> {
833
+ return this.request({
834
+ path: `/company/companies/${parentId}/sites`,
835
+ method: 'get',
836
+ params,
837
+ })
838
+ }
839
+
840
+ postCompanyCompaniesByParentIdSites(parentId: number, site: CompanySite): Promise<CompanySite> {
841
+ return this.request({
842
+ path: `/company/companies/${parentId}/sites`,
843
+ method: 'post',
844
+ data: site,
845
+ })
846
+ }
847
+
848
+ getCompanyCompaniesByParentIdSitesById(
849
+ id: number,
850
+ parentId: number,
851
+ params: CommonParameters = {},
852
+ ): Promise<CompanySite> {
853
+ return this.request({
854
+ path: `/company/companies/${parentId}/sites/${id}`,
855
+ method: 'get',
856
+ params,
857
+ })
858
+ }
859
+
860
+ deleteCompanyCompaniesByParentIdSitesById(
861
+ id: number,
862
+ parentId: number,
863
+ ): Promise<NoContentResponse> {
864
+ return this.request({
865
+ path: `/company/companies/${parentId}/sites/${id}`,
866
+ method: 'delete',
867
+ })
868
+ }
869
+
870
+ putCompanyCompaniesByParentIdSitesById(
871
+ id: number,
872
+ parentId: number,
873
+ site: CompanySite,
874
+ ): Promise<CompanySite> {
875
+ return this.request({
876
+ path: `/company/companies/${parentId}/sites/${id}`,
877
+ method: 'put',
878
+ data: site,
879
+ })
880
+ }
881
+
882
+ patchCompanyCompaniesByParentIdSitesById(
883
+ id: number,
884
+ parentId: number,
885
+ patchOperations: Array<PatchOperation>,
886
+ ): Promise<CompanySite> {
887
+ return this.request({
888
+ path: `/company/companies/${parentId}/sites/${id}`,
889
+ method: 'patch',
890
+ data: patchOperations,
891
+ })
892
+ }
893
+
894
+ getCompanyCompaniesByParentIdSitesByIdUsages(
895
+ id: number,
896
+ parentId: number,
897
+ params: CommonParameters = {},
898
+ ): Promise<Array<Usage>> {
899
+ return this.request({
900
+ path: `/company/companies/${parentId}/sites/${id}/usages`,
901
+ method: 'get',
902
+ params,
903
+ })
904
+ }
905
+
906
+ getCompanyCompaniesByParentIdSitesByIdUsagesList(
907
+ id: number,
908
+ parentId: number,
909
+ params: CommonParameters = {},
910
+ ): Promise<Array<Usage>> {
911
+ return this.request({
912
+ path: `/company/companies/${parentId}/sites/${id}/usages/list`,
913
+ method: 'get',
914
+ params,
915
+ })
916
+ }
917
+
918
+ getCompanyCompaniesByParentIdSitesCount(
919
+ parentId: number,
920
+ params: CommonParameters = {},
921
+ ): Promise<Count> {
922
+ return this.request({
923
+ path: `/company/companies/${parentId}/sites/count`,
924
+ method: 'get',
925
+ params,
926
+ })
927
+ }
928
+
929
+ getCompanyCompaniesByParentIdSurveysCount(
930
+ parentId: number,
931
+ params: CommonParameters = {},
932
+ ): Promise<Count> {
933
+ return this.request({
934
+ path: `/company/companies/${parentId}/surveys/count`,
935
+ method: 'get',
936
+ params,
937
+ })
938
+ }
939
+
940
+ getCompanyCompaniesByParentIdTeams(
941
+ parentId: number,
942
+ params: CommonParameters = {},
943
+ ): Promise<Array<CompanyTeam>> {
944
+ return this.request({
945
+ path: `/company/companies/${parentId}/teams`,
946
+ method: 'get',
947
+ params,
948
+ })
949
+ }
950
+
951
+ postCompanyCompaniesByParentIdTeams(
952
+ parentId: number,
953
+ companyTeam: CompanyTeam,
954
+ ): Promise<CompanyTeam> {
955
+ return this.request({
956
+ path: `/company/companies/${parentId}/teams`,
957
+ method: 'post',
958
+ data: companyTeam,
959
+ })
960
+ }
961
+
962
+ getCompanyCompaniesByParentIdTeamsById(
963
+ id: number,
964
+ parentId: number,
965
+ params: CommonParameters = {},
966
+ ): Promise<CompanyTeam> {
967
+ return this.request({
968
+ path: `/company/companies/${parentId}/teams/${id}`,
969
+ method: 'get',
970
+ params,
971
+ })
972
+ }
973
+
974
+ deleteCompanyCompaniesByParentIdTeamsById(
975
+ id: number,
976
+ parentId: number,
977
+ ): Promise<NoContentResponse> {
978
+ return this.request({
979
+ path: `/company/companies/${parentId}/teams/${id}`,
980
+ method: 'delete',
981
+ })
982
+ }
983
+
984
+ putCompanyCompaniesByParentIdTeamsById(
985
+ id: number,
986
+ parentId: number,
987
+ companyTeam: CompanyTeam,
988
+ ): Promise<CompanyTeam> {
989
+ return this.request({
990
+ path: `/company/companies/${parentId}/teams/${id}`,
991
+ method: 'put',
992
+ data: companyTeam,
993
+ })
994
+ }
995
+
996
+ patchCompanyCompaniesByParentIdTeamsById(
997
+ id: number,
998
+ parentId: number,
999
+ patchOperations: Array<PatchOperation>,
1000
+ ): Promise<CompanyTeam> {
1001
+ return this.request({
1002
+ path: `/company/companies/${parentId}/teams/${id}`,
1003
+ method: 'patch',
1004
+ data: patchOperations,
1005
+ })
1006
+ }
1007
+
1008
+ getCompanyCompaniesByParentIdTeamsCount(
1009
+ parentId: number,
1010
+ params: CommonParameters = {},
1011
+ ): Promise<Count> {
1012
+ return this.request({
1013
+ path: `/company/companies/${parentId}/teams/count`,
1014
+ method: 'get',
1015
+ params,
1016
+ })
1017
+ }
1018
+
1019
+ getCompanyCompaniesByParentIdTracks(
1020
+ parentId: number,
1021
+ params: CommonParameters = {},
1022
+ ): Promise<Array<ContactTrack>> {
1023
+ return this.request({
1024
+ path: `/company/companies/${parentId}/tracks`,
1025
+ method: 'get',
1026
+ params,
1027
+ })
1028
+ }
1029
+
1030
+ postCompanyCompaniesByParentIdTracks(
1031
+ parentId: number,
1032
+ track: ContactTrack,
1033
+ ): Promise<ContactTrack> {
1034
+ return this.request({
1035
+ path: `/company/companies/${parentId}/tracks`,
1036
+ method: 'post',
1037
+ data: track,
1038
+ })
1039
+ }
1040
+
1041
+ getCompanyCompaniesByParentIdTracksById(
1042
+ id: number,
1043
+ parentId: number,
1044
+ params: CommonParameters = {},
1045
+ ): Promise<ContactTrack> {
1046
+ return this.request({
1047
+ path: `/company/companies/${parentId}/tracks/${id}`,
1048
+ method: 'get',
1049
+ params,
1050
+ })
1051
+ }
1052
+
1053
+ deleteCompanyCompaniesByParentIdTracksById(
1054
+ id: number,
1055
+ parentId: number,
1056
+ ): Promise<NoContentResponse> {
1057
+ return this.request({
1058
+ path: `/company/companies/${parentId}/tracks/${id}`,
1059
+ method: 'delete',
1060
+ })
1061
+ }
1062
+
1063
+ getCompanyCompaniesByParentIdTracksCount(
1064
+ parentId: number,
1065
+ params: CommonParameters = {},
1066
+ ): Promise<Count> {
1067
+ return this.request({
1068
+ path: `/company/companies/${parentId}/tracks/count`,
1069
+ method: 'get',
1070
+ params,
1071
+ })
1072
+ }
1073
+
1074
+ getCompanyCompaniesByParentIdTypeAssociations(
1075
+ parentId: number,
1076
+ params: CommonParameters = {},
1077
+ ): Promise<Array<CompanyCompanyTypeAssociationCompanyTypeAssociation>> {
1078
+ return this.request({
1079
+ path: `/company/companies/${parentId}/typeAssociations`,
1080
+ method: 'get',
1081
+ params,
1082
+ })
1083
+ }
1084
+
1085
+ postCompanyCompaniesByParentIdTypeAssociations(
1086
+ parentId: number,
1087
+ companyTypeAssociation: CompanyCompanyTypeAssociationCompanyTypeAssociation,
1088
+ ): Promise<CompanyCompanyTypeAssociationCompanyTypeAssociation> {
1089
+ return this.request({
1090
+ path: `/company/companies/${parentId}/typeAssociations`,
1091
+ method: 'post',
1092
+ data: companyTypeAssociation,
1093
+ })
1094
+ }
1095
+
1096
+ getCompanyCompaniesByParentIdTypeAssociationsById(
1097
+ id: number,
1098
+ parentId: number,
1099
+ params: CommonParameters = {},
1100
+ ): Promise<CompanyCompanyTypeAssociationCompanyTypeAssociation> {
1101
+ return this.request({
1102
+ path: `/company/companies/${parentId}/typeAssociations/${id}`,
1103
+ method: 'get',
1104
+ params,
1105
+ })
1106
+ }
1107
+
1108
+ deleteCompanyCompaniesByParentIdTypeAssociationsById(
1109
+ id: number,
1110
+ parentId: number,
1111
+ ): Promise<NoContentResponse> {
1112
+ return this.request({
1113
+ path: `/company/companies/${parentId}/typeAssociations/${id}`,
1114
+ method: 'delete',
1115
+ })
1116
+ }
1117
+
1118
+ putCompanyCompaniesByParentIdTypeAssociationsById(
1119
+ id: number,
1120
+ parentId: number,
1121
+ companyTypeAssociation: CompanyCompanyTypeAssociationCompanyTypeAssociation,
1122
+ ): Promise<CompanyCompanyTypeAssociationCompanyTypeAssociation> {
1123
+ return this.request({
1124
+ path: `/company/companies/${parentId}/typeAssociations/${id}`,
1125
+ method: 'put',
1126
+ data: companyTypeAssociation,
1127
+ })
1128
+ }
1129
+
1130
+ patchCompanyCompaniesByParentIdTypeAssociationsById(
1131
+ id: number,
1132
+ parentId: number,
1133
+ patchOperations: Array<PatchOperation>,
1134
+ ): Promise<CompanyCompanyTypeAssociationCompanyTypeAssociation> {
1135
+ return this.request({
1136
+ path: `/company/companies/${parentId}/typeAssociations/${id}`,
1137
+ method: 'patch',
1138
+ data: patchOperations,
1139
+ })
1140
+ }
1141
+
1142
+ getCompanyCompaniesByParentIdTypeAssociationsCount(
1143
+ parentId: number,
1144
+ params: CommonParameters = {},
1145
+ ): Promise<Count> {
1146
+ return this.request({
1147
+ path: `/company/companies/${parentId}/typeAssociations/count`,
1148
+ method: 'get',
1149
+ params,
1150
+ })
1151
+ }
1152
+
1153
+ getCompanyCompaniesCount(params: CommonParameters = {}): Promise<Count> {
1154
+ return this.request({
1155
+ path: `/company/companies/count`,
1156
+ method: 'get',
1157
+ params,
1158
+ })
1159
+ }
1160
+
1161
+ getCompanyCompaniesDefault(params: CommonParameters = {}): Promise<Company> {
1162
+ return this.request({
1163
+ path: `/company/companies/default`,
1164
+ method: 'get',
1165
+ params,
1166
+ })
1167
+ }
1168
+
1169
+ getCompanyCompaniesInfoTypes(params: CommonParameters = {}): Promise<Array<CompanyTypeInfo>> {
1170
+ return this.request({
1171
+ path: `/company/companies/info/types`,
1172
+ method: 'get',
1173
+ params,
1174
+ })
1175
+ }
1176
+
1177
+ getCompanyCompaniesInfoTypesById(
1178
+ id: number,
1179
+ params: CommonParameters = {},
1180
+ ): Promise<CompanyTypeInfo> {
1181
+ return this.request({
1182
+ path: `/company/companies/info/types/${id}`,
1183
+ method: 'get',
1184
+ params,
1185
+ })
1186
+ }
1187
+
1188
+ getCompanyCompaniesInfoTypesCount(params: CommonParameters = {}): Promise<Count> {
1189
+ return this.request({
1190
+ path: `/company/companies/info/types/count`,
1191
+ method: 'get',
1192
+ params,
1193
+ })
1194
+ }
1195
+
1196
+ getCompanyCompaniesStatuses(params: CommonParameters = {}): Promise<Array<CompanyStatus>> {
1197
+ return this.request({
1198
+ path: `/company/companies/statuses`,
1199
+ method: 'get',
1200
+ params,
1201
+ })
1202
+ }
1203
+
1204
+ postCompanyCompaniesStatuses(companyStatus: CompanyStatus): Promise<CompanyStatus> {
1205
+ return this.request({
1206
+ path: `/company/companies/statuses`,
1207
+ method: 'post',
1208
+ data: companyStatus,
1209
+ })
1210
+ }
1211
+
1212
+ getCompanyCompaniesStatusesById(
1213
+ id: number,
1214
+ params: CommonParameters = {},
1215
+ ): Promise<CompanyStatus> {
1216
+ return this.request({
1217
+ path: `/company/companies/statuses/${id}`,
1218
+ method: 'get',
1219
+ params,
1220
+ })
1221
+ }
1222
+
1223
+ deleteCompanyCompaniesStatusesById(id: number): Promise<NoContentResponse> {
1224
+ return this.request({
1225
+ path: `/company/companies/statuses/${id}`,
1226
+ method: 'delete',
1227
+ })
1228
+ }
1229
+
1230
+ putCompanyCompaniesStatusesById(
1231
+ id: number,
1232
+ companyStatus: CompanyStatus,
1233
+ ): Promise<CompanyStatus> {
1234
+ return this.request({
1235
+ path: `/company/companies/statuses/${id}`,
1236
+ method: 'put',
1237
+ data: companyStatus,
1238
+ })
1239
+ }
1240
+
1241
+ patchCompanyCompaniesStatusesById(
1242
+ id: number,
1243
+ patchOperations: Array<PatchOperation>,
1244
+ ): Promise<CompanyStatus> {
1245
+ return this.request({
1246
+ path: `/company/companies/statuses/${id}`,
1247
+ method: 'patch',
1248
+ data: patchOperations,
1249
+ })
1250
+ }
1251
+
1252
+ getCompanyCompaniesStatusesByIdUsages(
1253
+ id: number,
1254
+ params: CommonParameters = {},
1255
+ ): Promise<Array<Usage>> {
1256
+ return this.request({
1257
+ path: `/company/companies/statuses/${id}/usages`,
1258
+ method: 'get',
1259
+ params,
1260
+ })
1261
+ }
1262
+
1263
+ getCompanyCompaniesStatusesByIdUsagesList(
1264
+ id: number,
1265
+ params: CommonParameters = {},
1266
+ ): Promise<Array<Usage>> {
1267
+ return this.request({
1268
+ path: `/company/companies/statuses/${id}/usages/list`,
1269
+ method: 'get',
1270
+ params,
1271
+ })
1272
+ }
1273
+
1274
+ getCompanyCompaniesStatusesCount(params: CommonParameters = {}): Promise<Count> {
1275
+ return this.request({
1276
+ path: `/company/companies/statuses/count`,
1277
+ method: 'get',
1278
+ params,
1279
+ })
1280
+ }
1281
+
1282
+ getCompanyCompaniesTypes(params: CommonParameters = {}): Promise<Array<CompanyType>> {
1283
+ return this.request({
1284
+ path: `/company/companies/types`,
1285
+ method: 'get',
1286
+ params,
1287
+ })
1288
+ }
1289
+
1290
+ postCompanyCompaniesTypes(companyType: CompanyType): Promise<CompanyType> {
1291
+ return this.request({
1292
+ path: `/company/companies/types`,
1293
+ method: 'post',
1294
+ data: companyType,
1295
+ })
1296
+ }
1297
+
1298
+ getCompanyCompaniesTypesById(id: number, params: CommonParameters = {}): Promise<CompanyType> {
1299
+ return this.request({
1300
+ path: `/company/companies/types/${id}`,
1301
+ method: 'get',
1302
+ params,
1303
+ })
1304
+ }
1305
+
1306
+ deleteCompanyCompaniesTypesById(id: number): Promise<NoContentResponse> {
1307
+ return this.request({
1308
+ path: `/company/companies/types/${id}`,
1309
+ method: 'delete',
1310
+ })
1311
+ }
1312
+
1313
+ putCompanyCompaniesTypesById(id: number, companyType: CompanyType): Promise<CompanyType> {
1314
+ return this.request({
1315
+ path: `/company/companies/types/${id}`,
1316
+ method: 'put',
1317
+ data: companyType,
1318
+ })
1319
+ }
1320
+
1321
+ patchCompanyCompaniesTypesById(
1322
+ id: number,
1323
+ patchOperations: Array<PatchOperation>,
1324
+ ): Promise<CompanyType> {
1325
+ return this.request({
1326
+ path: `/company/companies/types/${id}`,
1327
+ method: 'patch',
1328
+ data: patchOperations,
1329
+ })
1330
+ }
1331
+
1332
+ getCompanyCompaniesTypesByIdUsages(
1333
+ id: number,
1334
+ params: CommonParameters = {},
1335
+ ): Promise<Array<Usage>> {
1336
+ return this.request({
1337
+ path: `/company/companies/types/${id}/usages`,
1338
+ method: 'get',
1339
+ params,
1340
+ })
1341
+ }
1342
+
1343
+ getCompanyCompaniesTypesByIdUsagesList(
1344
+ id: number,
1345
+ params: CommonParameters = {},
1346
+ ): Promise<Array<Usage>> {
1347
+ return this.request({
1348
+ path: `/company/companies/types/${id}/usages/list`,
1349
+ method: 'get',
1350
+ params,
1351
+ })
1352
+ }
1353
+
1354
+ getCompanyCompaniesTypesCount(params: CommonParameters = {}): Promise<Count> {
1355
+ return this.request({
1356
+ path: `/company/companies/types/count`,
1357
+ method: 'get',
1358
+ params,
1359
+ })
1360
+ }
1361
+
1362
+ putCompanyCompanyFinanceById(
1363
+ id: number,
1364
+ CompanyFinance: CompanyFinance,
1365
+ ): Promise<CompanyFinance> {
1366
+ return this.request({
1367
+ path: `/company/companyFinance/${id}`,
1368
+ method: 'put',
1369
+ data: CompanyFinance,
1370
+ })
1371
+ }
1372
+
1373
+ getCompanyCompanyPickerItems(params: CommonParameters = {}): Promise<Array<CompanyPickerItem>> {
1374
+ return this.request({
1375
+ path: `/company/companyPickerItems`,
1376
+ method: 'get',
1377
+ params,
1378
+ })
1379
+ }
1380
+
1381
+ postCompanyCompanyPickerItems(companyPickerItem: CompanyPickerItem): Promise<CompanyPickerItem> {
1382
+ return this.request({
1383
+ path: `/company/companyPickerItems`,
1384
+ method: 'post',
1385
+ data: companyPickerItem,
1386
+ })
1387
+ }
1388
+
1389
+ getCompanyCompanyPickerItemsById(
1390
+ id: number,
1391
+ params: CommonParameters = {},
1392
+ ): Promise<CompanyPickerItem> {
1393
+ return this.request({
1394
+ path: `/company/companyPickerItems/${id}`,
1395
+ method: 'get',
1396
+ params,
1397
+ })
1398
+ }
1399
+
1400
+ deleteCompanyCompanyPickerItemsById(id: number): Promise<NoContentResponse> {
1401
+ return this.request({
1402
+ path: `/company/companyPickerItems/${id}`,
1403
+ method: 'delete',
1404
+ })
1405
+ }
1406
+
1407
+ postCompanyCompanyPickerItemsClear(
1408
+ clearPickerRequest: ClearPickerRequest,
1409
+ ): Promise<NoContentResponse> {
1410
+ return this.request({
1411
+ path: `/company/companyPickerItems/clear`,
1412
+ method: 'post',
1413
+ data: clearPickerRequest,
1414
+ })
1415
+ }
1416
+
1417
+ getCompanyCompanyPickerItemsCount(params: CommonParameters = {}): Promise<Count> {
1418
+ return this.request({
1419
+ path: `/company/companyPickerItems/count`,
1420
+ method: 'get',
1421
+ params,
1422
+ })
1423
+ }
1424
+
1425
+ getCompanyCompanyTypeAssociations(
1426
+ params: CommonParameters = {},
1427
+ ): Promise<Array<CompanyCompanyTypeAssociation>> {
1428
+ return this.request({
1429
+ path: `/company/companyTypeAssociations`,
1430
+ method: 'get',
1431
+ params,
1432
+ })
1433
+ }
1434
+
1435
+ postCompanyCompanyTypeAssociations(
1436
+ companyTypeAssociation: CompanyCompanyTypeAssociation,
1437
+ ): Promise<CompanyCompanyTypeAssociation> {
1438
+ return this.request({
1439
+ path: `/company/companyTypeAssociations`,
1440
+ method: 'post',
1441
+ data: companyTypeAssociation,
1442
+ })
1443
+ }
1444
+
1445
+ getCompanyCompanyTypeAssociationsById(
1446
+ id: number,
1447
+ params: CommonParameters = {},
1448
+ ): Promise<CompanyCompanyTypeAssociation> {
1449
+ return this.request({
1450
+ path: `/company/companyTypeAssociations/${id}`,
1451
+ method: 'get',
1452
+ params,
1453
+ })
1454
+ }
1455
+
1456
+ deleteCompanyCompanyTypeAssociationsById(id: number): Promise<NoContentResponse> {
1457
+ return this.request({
1458
+ path: `/company/companyTypeAssociations/${id}`,
1459
+ method: 'delete',
1460
+ })
1461
+ }
1462
+
1463
+ putCompanyCompanyTypeAssociationsById(
1464
+ id: number,
1465
+ companyTypeAssociation: CompanyCompanyTypeAssociation,
1466
+ ): Promise<CompanyCompanyTypeAssociation> {
1467
+ return this.request({
1468
+ path: `/company/companyTypeAssociations/${id}`,
1469
+ method: 'put',
1470
+ data: companyTypeAssociation,
1471
+ })
1472
+ }
1473
+
1474
+ patchCompanyCompanyTypeAssociationsById(
1475
+ id: number,
1476
+ patchOperations: Array<PatchOperation>,
1477
+ ): Promise<CompanyCompanyTypeAssociation> {
1478
+ return this.request({
1479
+ path: `/company/companyTypeAssociations/${id}`,
1480
+ method: 'patch',
1481
+ data: patchOperations,
1482
+ })
1483
+ }
1484
+
1485
+ getCompanyCompanyTypeAssociationsCount(params: CommonParameters = {}): Promise<Count> {
1486
+ return this.request({
1487
+ path: `/company/companyTypeAssociations/count`,
1488
+ method: 'get',
1489
+ params,
1490
+ })
1491
+ }
1492
+
1493
+ getCompanyConfigurations(
1494
+ managedIdentifier: string,
1495
+ params: CommonParameters = {},
1496
+ ): Promise<Array<CompanyConfiguration>> {
1497
+ return this.request({
1498
+ path: `/company/configurations`,
1499
+ method: 'get',
1500
+ params,
1501
+ })
1502
+ }
1503
+
1504
+ postCompanyConfigurations(
1505
+ configuration: CompanyConfiguration,
1506
+ params: CommonParameters = {},
1507
+ ): Promise<CompanyConfiguration> {
1508
+ return this.request({
1509
+ path: `/company/configurations`,
1510
+ method: 'post',
1511
+ data: configuration,
1512
+ params,
1513
+ })
1514
+ }
1515
+
1516
+ getCompanyConfigurationsById(
1517
+ id: number,
1518
+ params: CommonParameters = {},
1519
+ ): Promise<CompanyConfiguration> {
1520
+ return this.request({
1521
+ path: `/company/configurations/${id}`,
1522
+ method: 'get',
1523
+ params,
1524
+ })
1525
+ }
1526
+
1527
+ deleteCompanyConfigurationsById(id: number): Promise<NoContentResponse> {
1528
+ return this.request({
1529
+ path: `/company/configurations/${id}`,
1530
+ method: 'delete',
1531
+ })
1532
+ }
1533
+
1534
+ putCompanyConfigurationsById(
1535
+ id: number,
1536
+ configuration: CompanyConfiguration,
1537
+ params: CommonParameters = {},
1538
+ ): Promise<CompanyConfiguration> {
1539
+ return this.request({
1540
+ path: `/company/configurations/${id}`,
1541
+ method: 'put',
1542
+ data: configuration,
1543
+ params,
1544
+ })
1545
+ }
1546
+
1547
+ patchCompanyConfigurationsById(
1548
+ id: number,
1549
+ patchOperations: Array<PatchOperation>,
1550
+ params: CommonParameters = {},
1551
+ ): Promise<CompanyConfiguration> {
1552
+ return this.request({
1553
+ path: `/company/configurations/${id}`,
1554
+ method: 'patch',
1555
+ data: patchOperations,
1556
+ params,
1557
+ })
1558
+ }
1559
+
1560
+ patchCompanyConfigurationsByIdChangeType(
1561
+ id: number,
1562
+ patchOperations: Array<PatchOperation>,
1563
+ ): Promise<CompanyConfiguration> {
1564
+ return this.request({
1565
+ path: `/company/configurations/${id}/changeType`,
1566
+ method: 'patch',
1567
+ data: patchOperations,
1568
+ })
1569
+ }
1570
+
1571
+ postCompanyConfigurationsBulk(
1572
+ companyConfigurations: Array<CompanyConfiguration>,
1573
+ ): Promise<CompanyConfiguration> {
1574
+ return this.request({
1575
+ path: `/company/configurations/bulk`,
1576
+ method: 'post',
1577
+ data: companyConfigurations,
1578
+ })
1579
+ }
1580
+
1581
+ deleteCompanyConfigurationsBulk(): Promise<BulkResult> {
1582
+ return this.request({
1583
+ path: `/company/configurations/bulk`,
1584
+ method: 'delete',
1585
+ })
1586
+ }
1587
+
1588
+ putCompanyConfigurationsBulk(
1589
+ companyConfigurations: Array<CompanyConfiguration>,
1590
+ ): Promise<CompanyConfiguration> {
1591
+ return this.request({
1592
+ path: `/company/configurations/bulk`,
1593
+ method: 'put',
1594
+ data: companyConfigurations,
1595
+ })
1596
+ }
1597
+
1598
+ getCompanyConfigurationsCount(
1599
+ managedIdentifier: string,
1600
+ params: CommonParameters = {},
1601
+ ): Promise<Count> {
1602
+ return this.request({
1603
+ path: `/company/configurations/count`,
1604
+ method: 'get',
1605
+ params,
1606
+ })
1607
+ }
1608
+
1609
+ getCompanyConfigurationsStatuses(
1610
+ params: CommonParameters = {},
1611
+ ): Promise<Array<ConfigurationStatus>> {
1612
+ return this.request({
1613
+ path: `/company/configurations/statuses`,
1614
+ method: 'get',
1615
+ params,
1616
+ })
1617
+ }
1618
+
1619
+ postCompanyConfigurationsStatuses(
1620
+ configurationStatus: ConfigurationStatus,
1621
+ ): Promise<ConfigurationStatus> {
1622
+ return this.request({
1623
+ path: `/company/configurations/statuses`,
1624
+ method: 'post',
1625
+ data: configurationStatus,
1626
+ })
1627
+ }
1628
+
1629
+ getCompanyConfigurationsStatusesById(
1630
+ id: number,
1631
+ params: CommonParameters = {},
1632
+ ): Promise<ConfigurationStatus> {
1633
+ return this.request({
1634
+ path: `/company/configurations/statuses/${id}`,
1635
+ method: 'get',
1636
+ params,
1637
+ })
1638
+ }
1639
+
1640
+ deleteCompanyConfigurationsStatusesById(id: number): Promise<NoContentResponse> {
1641
+ return this.request({
1642
+ path: `/company/configurations/statuses/${id}`,
1643
+ method: 'delete',
1644
+ })
1645
+ }
1646
+
1647
+ putCompanyConfigurationsStatusesById(
1648
+ id: number,
1649
+ configurationStatus: ConfigurationStatus,
1650
+ ): Promise<ConfigurationStatus> {
1651
+ return this.request({
1652
+ path: `/company/configurations/statuses/${id}`,
1653
+ method: 'put',
1654
+ data: configurationStatus,
1655
+ })
1656
+ }
1657
+
1658
+ patchCompanyConfigurationsStatusesById(
1659
+ id: number,
1660
+ patchOperations: Array<PatchOperation>,
1661
+ ): Promise<ConfigurationStatus> {
1662
+ return this.request({
1663
+ path: `/company/configurations/statuses/${id}`,
1664
+ method: 'patch',
1665
+ data: patchOperations,
1666
+ })
1667
+ }
1668
+
1669
+ getCompanyConfigurationsStatusesByIdInfo(
1670
+ id: number,
1671
+ params: CommonParameters = {},
1672
+ ): Promise<ConfigurationStatusInfo> {
1673
+ return this.request({
1674
+ path: `/company/configurations/statuses/${id}/info`,
1675
+ method: 'get',
1676
+ params,
1677
+ })
1678
+ }
1679
+
1680
+ getCompanyConfigurationsStatusesByIdUsages(
1681
+ id: number,
1682
+ params: CommonParameters = {},
1683
+ ): Promise<Array<Usage>> {
1684
+ return this.request({
1685
+ path: `/company/configurations/statuses/${id}/usages`,
1686
+ method: 'get',
1687
+ params,
1688
+ })
1689
+ }
1690
+
1691
+ getCompanyConfigurationsStatusesByIdUsagesList(
1692
+ id: number,
1693
+ params: CommonParameters = {},
1694
+ ): Promise<Array<Usage>> {
1695
+ return this.request({
1696
+ path: `/company/configurations/statuses/${id}/usages/list`,
1697
+ method: 'get',
1698
+ params,
1699
+ })
1700
+ }
1701
+
1702
+ getCompanyConfigurationsStatusesCount(params: CommonParameters = {}): Promise<Count> {
1703
+ return this.request({
1704
+ path: `/company/configurations/statuses/count`,
1705
+ method: 'get',
1706
+ params,
1707
+ })
1708
+ }
1709
+
1710
+ getCompanyConfigurationsStatusesInfo(
1711
+ params: CommonParameters = {},
1712
+ ): Promise<Array<ConfigurationStatusInfo>> {
1713
+ return this.request({
1714
+ path: `/company/configurations/statuses/info`,
1715
+ method: 'get',
1716
+ params,
1717
+ })
1718
+ }
1719
+
1720
+ getCompanyConfigurationsStatusesInfoCount(params: CommonParameters = {}): Promise<Count> {
1721
+ return this.request({
1722
+ path: `/company/configurations/statuses/info/count`,
1723
+ method: 'get',
1724
+ params,
1725
+ })
1726
+ }
1727
+
1728
+ getCompanyConfigurationsTypes(params: CommonParameters = {}): Promise<Array<ConfigurationType>> {
1729
+ return this.request({
1730
+ path: `/company/configurations/types`,
1731
+ method: 'get',
1732
+ params,
1733
+ })
1734
+ }
1735
+
1736
+ postCompanyConfigurationsTypes(configurationType: ConfigurationType): Promise<ConfigurationType> {
1737
+ return this.request({
1738
+ path: `/company/configurations/types`,
1739
+ method: 'post',
1740
+ data: configurationType,
1741
+ })
1742
+ }
1743
+
1744
+ getCompanyConfigurationsTypesByGrandparentIdQuestionsByParentIdValues(
1745
+ parentId: number,
1746
+ grandparentId: number,
1747
+ params: CommonParameters = {},
1748
+ ): Promise<Array<ConfigurationTypeQuestionValue>> {
1749
+ return this.request({
1750
+ path: `/company/configurations/types/${grandparentId}/questions/${parentId}/values`,
1751
+ method: 'get',
1752
+ params,
1753
+ })
1754
+ }
1755
+
1756
+ postCompanyConfigurationsTypesByGrandparentIdQuestionsByParentIdValues(
1757
+ parentId: number,
1758
+ grandparentId: number,
1759
+ configurationTypeQuestionValue: ConfigurationTypeQuestionValue,
1760
+ ): Promise<ConfigurationTypeQuestionValue> {
1761
+ return this.request({
1762
+ path: `/company/configurations/types/${grandparentId}/questions/${parentId}/values`,
1763
+ method: 'post',
1764
+ data: configurationTypeQuestionValue,
1765
+ })
1766
+ }
1767
+
1768
+ getCompanyConfigurationsTypesByGrandparentIdQuestionsByParentIdValuesById(
1769
+ id: number,
1770
+ parentId: number,
1771
+ grandparentId: number,
1772
+ params: CommonParameters = {},
1773
+ ): Promise<ConfigurationTypeQuestionValue> {
1774
+ return this.request({
1775
+ path: `/company/configurations/types/${grandparentId}/questions/${parentId}/values/${id}`,
1776
+ method: 'get',
1777
+ params,
1778
+ })
1779
+ }
1780
+
1781
+ deleteCompanyConfigurationsTypesByGrandparentIdQuestionsByParentIdValuesById(
1782
+ id: number,
1783
+ parentId: number,
1784
+ grandparentId: number,
1785
+ ): Promise<NoContentResponse> {
1786
+ return this.request({
1787
+ path: `/company/configurations/types/${grandparentId}/questions/${parentId}/values/${id}`,
1788
+ method: 'delete',
1789
+ })
1790
+ }
1791
+
1792
+ putCompanyConfigurationsTypesByGrandparentIdQuestionsByParentIdValuesById(
1793
+ id: number,
1794
+ parentId: number,
1795
+ grandparentId: number,
1796
+ configurationTypeQuestionValue: ConfigurationTypeQuestionValue,
1797
+ ): Promise<ConfigurationTypeQuestionValue> {
1798
+ return this.request({
1799
+ path: `/company/configurations/types/${grandparentId}/questions/${parentId}/values/${id}`,
1800
+ method: 'put',
1801
+ data: configurationTypeQuestionValue,
1802
+ })
1803
+ }
1804
+
1805
+ patchCompanyConfigurationsTypesByGrandparentIdQuestionsByParentIdValuesById(
1806
+ id: number,
1807
+ parentId: number,
1808
+ grandparentId: number,
1809
+ patchOperations: Array<PatchOperation>,
1810
+ ): Promise<ConfigurationTypeQuestionValue> {
1811
+ return this.request({
1812
+ path: `/company/configurations/types/${grandparentId}/questions/${parentId}/values/${id}`,
1813
+ method: 'patch',
1814
+ data: patchOperations,
1815
+ })
1816
+ }
1817
+
1818
+ getCompanyConfigurationsTypesByGrandparentIdQuestionsByParentIdValuesByIdUsages(
1819
+ id: number,
1820
+ parentId: number,
1821
+ grandparentId: number,
1822
+ params: CommonParameters = {},
1823
+ ): Promise<Array<Usage>> {
1824
+ return this.request({
1825
+ path: `/company/configurations/types/${grandparentId}/questions/${parentId}/values/${id}/usages`,
1826
+ method: 'get',
1827
+ params,
1828
+ })
1829
+ }
1830
+
1831
+ getCompanyConfigurationsTypesByGrandparentIdQuestionsByParentIdValuesByIdUsagesList(
1832
+ id: number,
1833
+ parentId: number,
1834
+ grandparentId: number,
1835
+ params: CommonParameters = {},
1836
+ ): Promise<Array<Usage>> {
1837
+ return this.request({
1838
+ path: `/company/configurations/types/${grandparentId}/questions/${parentId}/values/${id}/usages/list`,
1839
+ method: 'get',
1840
+ params,
1841
+ })
1842
+ }
1843
+
1844
+ getCompanyConfigurationsTypesByGrandparentIdQuestionsByParentIdValuesCount(
1845
+ parentId: number,
1846
+ grandparentId: number,
1847
+ params: CommonParameters = {},
1848
+ ): Promise<Count> {
1849
+ return this.request({
1850
+ path: `/company/configurations/types/${grandparentId}/questions/${parentId}/values/count`,
1851
+ method: 'get',
1852
+ params,
1853
+ })
1854
+ }
1855
+
1856
+ getCompanyConfigurationsTypesById(
1857
+ id: number,
1858
+ params: CommonParameters = {},
1859
+ ): Promise<ConfigurationType> {
1860
+ return this.request({
1861
+ path: `/company/configurations/types/${id}`,
1862
+ method: 'get',
1863
+ params,
1864
+ })
1865
+ }
1866
+
1867
+ deleteCompanyConfigurationsTypesById(id: number): Promise<NoContentResponse> {
1868
+ return this.request({
1869
+ path: `/company/configurations/types/${id}`,
1870
+ method: 'delete',
1871
+ })
1872
+ }
1873
+
1874
+ putCompanyConfigurationsTypesById(
1875
+ id: number,
1876
+ configurationType: ConfigurationType,
1877
+ ): Promise<ConfigurationType> {
1878
+ return this.request({
1879
+ path: `/company/configurations/types/${id}`,
1880
+ method: 'put',
1881
+ data: configurationType,
1882
+ })
1883
+ }
1884
+
1885
+ patchCompanyConfigurationsTypesById(
1886
+ id: number,
1887
+ patchOperations: Array<PatchOperation>,
1888
+ ): Promise<ConfigurationType> {
1889
+ return this.request({
1890
+ path: `/company/configurations/types/${id}`,
1891
+ method: 'patch',
1892
+ data: patchOperations,
1893
+ })
1894
+ }
1895
+
1896
+ getCompanyConfigurationsTypesByIdInfo(
1897
+ id: number,
1898
+ params: CommonParameters = {},
1899
+ ): Promise<ConfigurationTypeInfo> {
1900
+ return this.request({
1901
+ path: `/company/configurations/types/${id}/info`,
1902
+ method: 'get',
1903
+ params,
1904
+ })
1905
+ }
1906
+
1907
+ getCompanyConfigurationsTypesByIdUsages(
1908
+ id: number,
1909
+ params: CommonParameters = {},
1910
+ ): Promise<Array<Usage>> {
1911
+ return this.request({
1912
+ path: `/company/configurations/types/${id}/usages`,
1913
+ method: 'get',
1914
+ params,
1915
+ })
1916
+ }
1917
+
1918
+ getCompanyConfigurationsTypesByIdUsagesList(
1919
+ id: number,
1920
+ params: CommonParameters = {},
1921
+ ): Promise<Array<Usage>> {
1922
+ return this.request({
1923
+ path: `/company/configurations/types/${id}/usages/list`,
1924
+ method: 'get',
1925
+ params,
1926
+ })
1927
+ }
1928
+
1929
+ getCompanyConfigurationsTypesByParentIdQuestions(
1930
+ parentId: number,
1931
+ params: CommonParameters = {},
1932
+ ): Promise<Array<ConfigurationTypeQuestion>> {
1933
+ return this.request({
1934
+ path: `/company/configurations/types/${parentId}/questions`,
1935
+ method: 'get',
1936
+ params,
1937
+ })
1938
+ }
1939
+
1940
+ postCompanyConfigurationsTypesByParentIdQuestions(
1941
+ parentId: number,
1942
+ configurationTypeQuestion: ConfigurationTypeQuestion,
1943
+ ): Promise<ConfigurationTypeQuestion> {
1944
+ return this.request({
1945
+ path: `/company/configurations/types/${parentId}/questions`,
1946
+ method: 'post',
1947
+ data: configurationTypeQuestion,
1948
+ })
1949
+ }
1950
+
1951
+ getCompanyConfigurationsTypesByParentIdQuestionsById(
1952
+ id: number,
1953
+ parentId: number,
1954
+ params: CommonParameters = {},
1955
+ ): Promise<ConfigurationTypeQuestion> {
1956
+ return this.request({
1957
+ path: `/company/configurations/types/${parentId}/questions/${id}`,
1958
+ method: 'get',
1959
+ params,
1960
+ })
1961
+ }
1962
+
1963
+ deleteCompanyConfigurationsTypesByParentIdQuestionsById(
1964
+ id: number,
1965
+ parentId: number,
1966
+ ): Promise<NoContentResponse> {
1967
+ return this.request({
1968
+ path: `/company/configurations/types/${parentId}/questions/${id}`,
1969
+ method: 'delete',
1970
+ })
1971
+ }
1972
+
1973
+ putCompanyConfigurationsTypesByParentIdQuestionsById(
1974
+ id: number,
1975
+ parentId: number,
1976
+ configurationTypeQuestion: ConfigurationTypeQuestion,
1977
+ ): Promise<ConfigurationTypeQuestion> {
1978
+ return this.request({
1979
+ path: `/company/configurations/types/${parentId}/questions/${id}`,
1980
+ method: 'put',
1981
+ data: configurationTypeQuestion,
1982
+ })
1983
+ }
1984
+
1985
+ patchCompanyConfigurationsTypesByParentIdQuestionsById(
1986
+ id: number,
1987
+ parentId: number,
1988
+ patchOperations: Array<PatchOperation>,
1989
+ ): Promise<ConfigurationTypeQuestion> {
1990
+ return this.request({
1991
+ path: `/company/configurations/types/${parentId}/questions/${id}`,
1992
+ method: 'patch',
1993
+ data: patchOperations,
1994
+ })
1995
+ }
1996
+
1997
+ getCompanyConfigurationsTypesByParentIdQuestionsCount(
1998
+ parentId: number,
1999
+ params: CommonParameters = {},
2000
+ ): Promise<Count> {
2001
+ return this.request({
2002
+ path: `/company/configurations/types/${parentId}/questions/count`,
2003
+ method: 'get',
2004
+ params,
2005
+ })
2006
+ }
2007
+
2008
+ getCompanyConfigurationsTypesCount(params: CommonParameters = {}): Promise<Count> {
2009
+ return this.request({
2010
+ path: `/company/configurations/types/count`,
2011
+ method: 'get',
2012
+ params,
2013
+ })
2014
+ }
2015
+
2016
+ getCompanyContacts(params: CommonParameters = {}): Promise<Array<Contact>> {
2017
+ return this.request({
2018
+ path: `/company/contacts`,
2019
+ method: 'get',
2020
+ params,
2021
+ })
2022
+ }
2023
+
2024
+ postCompanyContacts(contact: Contact): Promise<Contact> {
2025
+ return this.request({
2026
+ path: `/company/contacts`,
2027
+ method: 'post',
2028
+ data: contact,
2029
+ })
2030
+ }
2031
+
2032
+ getCompanyContactsById(id: number, params: CommonParameters = {}): Promise<Contact> {
2033
+ return this.request({
2034
+ path: `/company/contacts/${id}`,
2035
+ method: 'get',
2036
+ params,
2037
+ })
2038
+ }
2039
+
2040
+ deleteCompanyContactsById(id: number, transferContactId: number): Promise<NoContentResponse> {
2041
+ return this.request({
2042
+ path: `/company/contacts/${id}`,
2043
+ method: 'delete',
2044
+ })
2045
+ }
2046
+
2047
+ putCompanyContactsById(id: number, contact: Contact): Promise<Contact> {
2048
+ return this.request({
2049
+ path: `/company/contacts/${id}`,
2050
+ method: 'put',
2051
+ data: contact,
2052
+ })
2053
+ }
2054
+
2055
+ patchCompanyContactsById(id: number, patchOperations: Array<PatchOperation>): Promise<Contact> {
2056
+ return this.request({
2057
+ path: `/company/contacts/${id}`,
2058
+ method: 'patch',
2059
+ data: patchOperations,
2060
+ })
2061
+ }
2062
+
2063
+ getCompanyContactsByIdImage(
2064
+ id: number,
2065
+ useDefaultFlag: boolean,
2066
+ lastModified: string,
2067
+ params: CommonParameters = {},
2068
+ ): Promise<OctetStreamResponse> {
2069
+ return this.request({
2070
+ path: `/company/contacts/${id}/image`,
2071
+ method: 'get',
2072
+ params,
2073
+ })
2074
+ }
2075
+
2076
+ getCompanyContactsByIdPortalSecurity(
2077
+ id: number,
2078
+ params: CommonParameters = {},
2079
+ ): Promise<Array<PortalSecurity>> {
2080
+ return this.request({
2081
+ path: `/company/contacts/${id}/portalSecurity`,
2082
+ method: 'get',
2083
+ params,
2084
+ })
2085
+ }
2086
+
2087
+ getCompanyContactsByIdUsages(id: number, params: CommonParameters = {}): Promise<Array<Usage>> {
2088
+ return this.request({
2089
+ path: `/company/contacts/${id}/usages`,
2090
+ method: 'get',
2091
+ params,
2092
+ })
2093
+ }
2094
+
2095
+ getCompanyContactsByIdUsagesList(
2096
+ id: number,
2097
+ params: CommonParameters = {},
2098
+ ): Promise<Array<Usage>> {
2099
+ return this.request({
2100
+ path: `/company/contacts/${id}/usages/list`,
2101
+ method: 'get',
2102
+ params,
2103
+ })
2104
+ }
2105
+
2106
+ getCompanyContactsByParentIdCommunications(
2107
+ parentId: number,
2108
+ params: CommonParameters = {},
2109
+ ): Promise<Array<ContactCommunication>> {
2110
+ return this.request({
2111
+ path: `/company/contacts/${parentId}/communications`,
2112
+ method: 'get',
2113
+ params,
2114
+ })
2115
+ }
2116
+
2117
+ postCompanyContactsByParentIdCommunications(
2118
+ parentId: number,
2119
+ contactCommunication: ContactCommunication,
2120
+ ): Promise<ContactCommunication> {
2121
+ return this.request({
2122
+ path: `/company/contacts/${parentId}/communications`,
2123
+ method: 'post',
2124
+ data: contactCommunication,
2125
+ })
2126
+ }
2127
+
2128
+ getCompanyContactsByParentIdCommunicationsById(
2129
+ id: number,
2130
+ parentId: number,
2131
+ params: CommonParameters = {},
2132
+ ): Promise<ContactCommunication> {
2133
+ return this.request({
2134
+ path: `/company/contacts/${parentId}/communications/${id}`,
2135
+ method: 'get',
2136
+ params,
2137
+ })
2138
+ }
2139
+
2140
+ deleteCompanyContactsByParentIdCommunicationsById(
2141
+ id: number,
2142
+ parentId: number,
2143
+ ): Promise<NoContentResponse> {
2144
+ return this.request({
2145
+ path: `/company/contacts/${parentId}/communications/${id}`,
2146
+ method: 'delete',
2147
+ })
2148
+ }
2149
+
2150
+ putCompanyContactsByParentIdCommunicationsById(
2151
+ id: number,
2152
+ parentId: number,
2153
+ contactCommunication: ContactCommunication,
2154
+ ): Promise<ContactCommunication> {
2155
+ return this.request({
2156
+ path: `/company/contacts/${parentId}/communications/${id}`,
2157
+ method: 'put',
2158
+ data: contactCommunication,
2159
+ })
2160
+ }
2161
+
2162
+ patchCompanyContactsByParentIdCommunicationsById(
2163
+ id: number,
2164
+ parentId: number,
2165
+ patchOperations: Array<PatchOperation>,
2166
+ ): Promise<ContactCommunication> {
2167
+ return this.request({
2168
+ path: `/company/contacts/${parentId}/communications/${id}`,
2169
+ method: 'patch',
2170
+ data: patchOperations,
2171
+ })
2172
+ }
2173
+
2174
+ getCompanyContactsByParentIdCommunicationsCount(
2175
+ parentId: number,
2176
+ params: CommonParameters = {},
2177
+ ): Promise<Count> {
2178
+ return this.request({
2179
+ path: `/company/contacts/${parentId}/communications/count`,
2180
+ method: 'get',
2181
+ params,
2182
+ })
2183
+ }
2184
+
2185
+ getCompanyContactsByParentIdGroups(
2186
+ parentId: number,
2187
+ params: CommonParameters = {},
2188
+ ): Promise<Array<ContactGroup>> {
2189
+ return this.request({
2190
+ path: `/company/contacts/${parentId}/groups`,
2191
+ method: 'get',
2192
+ params,
2193
+ })
2194
+ }
2195
+
2196
+ postCompanyContactsByParentIdGroups(
2197
+ parentId: number,
2198
+ contactGroup: ContactGroup,
2199
+ ): Promise<ContactGroup> {
2200
+ return this.request({
2201
+ path: `/company/contacts/${parentId}/groups`,
2202
+ method: 'post',
2203
+ data: contactGroup,
2204
+ })
2205
+ }
2206
+
2207
+ getCompanyContactsByParentIdGroupsById(
2208
+ id: number,
2209
+ parentId: number,
2210
+ params: CommonParameters = {},
2211
+ ): Promise<ContactGroup> {
2212
+ return this.request({
2213
+ path: `/company/contacts/${parentId}/groups/${id}`,
2214
+ method: 'get',
2215
+ params,
2216
+ })
2217
+ }
2218
+
2219
+ deleteCompanyContactsByParentIdGroupsById(
2220
+ id: number,
2221
+ parentId: number,
2222
+ ): Promise<NoContentResponse> {
2223
+ return this.request({
2224
+ path: `/company/contacts/${parentId}/groups/${id}`,
2225
+ method: 'delete',
2226
+ })
2227
+ }
2228
+
2229
+ putCompanyContactsByParentIdGroupsById(
2230
+ id: number,
2231
+ parentId: number,
2232
+ contactGroup: ContactGroup,
2233
+ ): Promise<ContactGroup> {
2234
+ return this.request({
2235
+ path: `/company/contacts/${parentId}/groups/${id}`,
2236
+ method: 'put',
2237
+ data: contactGroup,
2238
+ })
2239
+ }
2240
+
2241
+ patchCompanyContactsByParentIdGroupsById(
2242
+ id: number,
2243
+ parentId: number,
2244
+ patchOperations: Array<PatchOperation>,
2245
+ ): Promise<ContactGroup> {
2246
+ return this.request({
2247
+ path: `/company/contacts/${parentId}/groups/${id}`,
2248
+ method: 'patch',
2249
+ data: patchOperations,
2250
+ })
2251
+ }
2252
+
2253
+ getCompanyContactsByParentIdGroupsCount(
2254
+ parentId: number,
2255
+ params: CommonParameters = {},
2256
+ ): Promise<Count> {
2257
+ return this.request({
2258
+ path: `/company/contacts/${parentId}/groups/count`,
2259
+ method: 'get',
2260
+ params,
2261
+ })
2262
+ }
2263
+
2264
+ getCompanyContactsByParentIdNotes(
2265
+ parentId: number,
2266
+ params: CommonParameters = {},
2267
+ ): Promise<Array<ContactNote>> {
2268
+ return this.request({
2269
+ path: `/company/contacts/${parentId}/notes`,
2270
+ method: 'get',
2271
+ params,
2272
+ })
2273
+ }
2274
+
2275
+ postCompanyContactsByParentIdNotes(
2276
+ parentId: number,
2277
+ contactNote: ContactNote,
2278
+ ): Promise<ContactNote> {
2279
+ return this.request({
2280
+ path: `/company/contacts/${parentId}/notes`,
2281
+ method: 'post',
2282
+ data: contactNote,
2283
+ })
2284
+ }
2285
+
2286
+ getCompanyContactsByParentIdNotesById(
2287
+ id: number,
2288
+ parentId: number,
2289
+ params: CommonParameters = {},
2290
+ ): Promise<ContactNote> {
2291
+ return this.request({
2292
+ path: `/company/contacts/${parentId}/notes/${id}`,
2293
+ method: 'get',
2294
+ params,
2295
+ })
2296
+ }
2297
+
2298
+ deleteCompanyContactsByParentIdNotesById(
2299
+ id: number,
2300
+ parentId: number,
2301
+ ): Promise<NoContentResponse> {
2302
+ return this.request({
2303
+ path: `/company/contacts/${parentId}/notes/${id}`,
2304
+ method: 'delete',
2305
+ })
2306
+ }
2307
+
2308
+ putCompanyContactsByParentIdNotesById(
2309
+ id: number,
2310
+ parentId: number,
2311
+ contactNote: ContactNote,
2312
+ ): Promise<ContactNote> {
2313
+ return this.request({
2314
+ path: `/company/contacts/${parentId}/notes/${id}`,
2315
+ method: 'put',
2316
+ data: contactNote,
2317
+ })
2318
+ }
2319
+
2320
+ patchCompanyContactsByParentIdNotesById(
2321
+ id: number,
2322
+ parentId: number,
2323
+ patchOperations: Array<PatchOperation>,
2324
+ ): Promise<ContactNote> {
2325
+ return this.request({
2326
+ path: `/company/contacts/${parentId}/notes/${id}`,
2327
+ method: 'patch',
2328
+ data: patchOperations,
2329
+ })
2330
+ }
2331
+
2332
+ getCompanyContactsByParentIdNotesCount(
2333
+ parentId: number,
2334
+ params: CommonParameters = {},
2335
+ ): Promise<Count> {
2336
+ return this.request({
2337
+ path: `/company/contacts/${parentId}/notes/count`,
2338
+ method: 'get',
2339
+ params,
2340
+ })
2341
+ }
2342
+
2343
+ getCompanyContactsByParentIdTracks(
2344
+ parentId: number,
2345
+ params: CommonParameters = {},
2346
+ ): Promise<Array<ContactTrack>> {
2347
+ return this.request({
2348
+ path: `/company/contacts/${parentId}/tracks`,
2349
+ method: 'get',
2350
+ params,
2351
+ })
2352
+ }
2353
+
2354
+ postCompanyContactsByParentIdTracks(
2355
+ parentId: number,
2356
+ track: ContactTrack,
2357
+ ): Promise<ContactTrack> {
2358
+ return this.request({
2359
+ path: `/company/contacts/${parentId}/tracks`,
2360
+ method: 'post',
2361
+ data: track,
2362
+ })
2363
+ }
2364
+
2365
+ getCompanyContactsByParentIdTracksById(
2366
+ id: number,
2367
+ parentId: number,
2368
+ params: CommonParameters = {},
2369
+ ): Promise<ContactTrack> {
2370
+ return this.request({
2371
+ path: `/company/contacts/${parentId}/tracks/${id}`,
2372
+ method: 'get',
2373
+ params,
2374
+ })
2375
+ }
2376
+
2377
+ deleteCompanyContactsByParentIdTracksById(
2378
+ id: number,
2379
+ parentId: number,
2380
+ ): Promise<NoContentResponse> {
2381
+ return this.request({
2382
+ path: `/company/contacts/${parentId}/tracks/${id}`,
2383
+ method: 'delete',
2384
+ })
2385
+ }
2386
+
2387
+ getCompanyContactsByParentIdTracksCount(
2388
+ parentId: number,
2389
+ params: CommonParameters = {},
2390
+ ): Promise<Count> {
2391
+ return this.request({
2392
+ path: `/company/contacts/${parentId}/tracks/count`,
2393
+ method: 'get',
2394
+ params,
2395
+ })
2396
+ }
2397
+
2398
+ getCompanyContactsByParentIdTypeAssociations(
2399
+ parentId: number,
2400
+ params: CommonParameters = {},
2401
+ ): Promise<Array<ContactContactTypeAssociationContactTypeAssociation>> {
2402
+ return this.request({
2403
+ path: `/company/contacts/${parentId}/typeAssociations`,
2404
+ method: 'get',
2405
+ params,
2406
+ })
2407
+ }
2408
+
2409
+ postCompanyContactsByParentIdTypeAssociations(
2410
+ parentId: number,
2411
+ contactTypeAssociation: ContactContactTypeAssociationContactTypeAssociation,
2412
+ ): Promise<ContactContactTypeAssociationContactTypeAssociation> {
2413
+ return this.request({
2414
+ path: `/company/contacts/${parentId}/typeAssociations`,
2415
+ method: 'post',
2416
+ data: contactTypeAssociation,
2417
+ })
2418
+ }
2419
+
2420
+ getCompanyContactsByParentIdTypeAssociationsById(
2421
+ id: number,
2422
+ parentId: number,
2423
+ params: CommonParameters = {},
2424
+ ): Promise<ContactContactTypeAssociationContactTypeAssociation> {
2425
+ return this.request({
2426
+ path: `/company/contacts/${parentId}/typeAssociations/${id}`,
2427
+ method: 'get',
2428
+ params,
2429
+ })
2430
+ }
2431
+
2432
+ deleteCompanyContactsByParentIdTypeAssociationsById(
2433
+ id: number,
2434
+ parentId: number,
2435
+ ): Promise<NoContentResponse> {
2436
+ return this.request({
2437
+ path: `/company/contacts/${parentId}/typeAssociations/${id}`,
2438
+ method: 'delete',
2439
+ })
2440
+ }
2441
+
2442
+ putCompanyContactsByParentIdTypeAssociationsById(
2443
+ id: number,
2444
+ parentId: number,
2445
+ contactTypeAssociation: ContactContactTypeAssociationContactTypeAssociation,
2446
+ ): Promise<ContactContactTypeAssociationContactTypeAssociation> {
2447
+ return this.request({
2448
+ path: `/company/contacts/${parentId}/typeAssociations/${id}`,
2449
+ method: 'put',
2450
+ data: contactTypeAssociation,
2451
+ })
2452
+ }
2453
+
2454
+ patchCompanyContactsByParentIdTypeAssociationsById(
2455
+ id: number,
2456
+ parentId: number,
2457
+ patchOperations: Array<PatchOperation>,
2458
+ ): Promise<ContactContactTypeAssociationContactTypeAssociation> {
2459
+ return this.request({
2460
+ path: `/company/contacts/${parentId}/typeAssociations/${id}`,
2461
+ method: 'patch',
2462
+ data: patchOperations,
2463
+ })
2464
+ }
2465
+
2466
+ getCompanyContactsByParentIdTypeAssociationsCount(
2467
+ parentId: number,
2468
+ params: CommonParameters = {},
2469
+ ): Promise<Count> {
2470
+ return this.request({
2471
+ path: `/company/contacts/${parentId}/typeAssociations/count`,
2472
+ method: 'get',
2473
+ params,
2474
+ })
2475
+ }
2476
+
2477
+ getCompanyContactsCount(params: CommonParameters = {}): Promise<Count> {
2478
+ return this.request({
2479
+ path: `/company/contacts/count`,
2480
+ method: 'get',
2481
+ params,
2482
+ })
2483
+ }
2484
+
2485
+ getCompanyContactsDefault(companyId: number, params: CommonParameters = {}): Promise<Contact> {
2486
+ return this.request({
2487
+ path: `/company/contacts/default`,
2488
+ method: 'get',
2489
+ params,
2490
+ })
2491
+ }
2492
+
2493
+ getCompanyContactsDepartments(params: CommonParameters = {}): Promise<Array<ContactDepartment>> {
2494
+ return this.request({
2495
+ path: `/company/contacts/departments`,
2496
+ method: 'get',
2497
+ params,
2498
+ })
2499
+ }
2500
+
2501
+ postCompanyContactsDepartments(contactDepartment: ContactDepartment): Promise<ContactDepartment> {
2502
+ return this.request({
2503
+ path: `/company/contacts/departments`,
2504
+ method: 'post',
2505
+ data: contactDepartment,
2506
+ })
2507
+ }
2508
+
2509
+ getCompanyContactsDepartmentsById(
2510
+ id: number,
2511
+ params: CommonParameters = {},
2512
+ ): Promise<ContactDepartment> {
2513
+ return this.request({
2514
+ path: `/company/contacts/departments/${id}`,
2515
+ method: 'get',
2516
+ params,
2517
+ })
2518
+ }
2519
+
2520
+ deleteCompanyContactsDepartmentsById(id: number): Promise<NoContentResponse> {
2521
+ return this.request({
2522
+ path: `/company/contacts/departments/${id}`,
2523
+ method: 'delete',
2524
+ })
2525
+ }
2526
+
2527
+ putCompanyContactsDepartmentsById(
2528
+ id: number,
2529
+ contactDepartment: ContactDepartment,
2530
+ ): Promise<ContactDepartment> {
2531
+ return this.request({
2532
+ path: `/company/contacts/departments/${id}`,
2533
+ method: 'put',
2534
+ data: contactDepartment,
2535
+ })
2536
+ }
2537
+
2538
+ patchCompanyContactsDepartmentsById(
2539
+ id: number,
2540
+ patchOperations: Array<PatchOperation>,
2541
+ ): Promise<ContactDepartment> {
2542
+ return this.request({
2543
+ path: `/company/contacts/departments/${id}`,
2544
+ method: 'patch',
2545
+ data: patchOperations,
2546
+ })
2547
+ }
2548
+
2549
+ getCompanyContactsDepartmentsByIdInfo(
2550
+ id: number,
2551
+ params: CommonParameters = {},
2552
+ ): Promise<ContactDepartmentInfo> {
2553
+ return this.request({
2554
+ path: `/company/contacts/departments/${id}/info`,
2555
+ method: 'get',
2556
+ params,
2557
+ })
2558
+ }
2559
+
2560
+ getCompanyContactsDepartmentsByIdUsages(
2561
+ id: number,
2562
+ params: CommonParameters = {},
2563
+ ): Promise<Array<Usage>> {
2564
+ return this.request({
2565
+ path: `/company/contacts/departments/${id}/usages`,
2566
+ method: 'get',
2567
+ params,
2568
+ })
2569
+ }
2570
+
2571
+ getCompanyContactsDepartmentsByIdUsagesList(
2572
+ id: number,
2573
+ params: CommonParameters = {},
2574
+ ): Promise<Array<Usage>> {
2575
+ return this.request({
2576
+ path: `/company/contacts/departments/${id}/usages/list`,
2577
+ method: 'get',
2578
+ params,
2579
+ })
2580
+ }
2581
+
2582
+ getCompanyContactsDepartmentsCount(params: CommonParameters = {}): Promise<Count> {
2583
+ return this.request({
2584
+ path: `/company/contacts/departments/count`,
2585
+ method: 'get',
2586
+ params,
2587
+ })
2588
+ }
2589
+
2590
+ getCompanyContactsDepartmentsInfo(
2591
+ params: CommonParameters = {},
2592
+ ): Promise<Array<ContactDepartmentInfo>> {
2593
+ return this.request({
2594
+ path: `/company/contacts/departments/info`,
2595
+ method: 'get',
2596
+ params,
2597
+ })
2598
+ }
2599
+
2600
+ getCompanyContactsDepartmentsInfoCount(params: CommonParameters = {}): Promise<Count> {
2601
+ return this.request({
2602
+ path: `/company/contacts/departments/info/count`,
2603
+ method: 'get',
2604
+ params,
2605
+ })
2606
+ }
2607
+
2608
+ getCompanyContactsRelationships(
2609
+ params: CommonParameters = {},
2610
+ ): Promise<Array<ContactRelationship>> {
2611
+ return this.request({
2612
+ path: `/company/contacts/relationships`,
2613
+ method: 'get',
2614
+ params,
2615
+ })
2616
+ }
2617
+
2618
+ postCompanyContactsRelationships(
2619
+ contactRelationship: ContactRelationship,
2620
+ ): Promise<ContactRelationship> {
2621
+ return this.request({
2622
+ path: `/company/contacts/relationships`,
2623
+ method: 'post',
2624
+ data: contactRelationship,
2625
+ })
2626
+ }
2627
+
2628
+ getCompanyContactsRelationshipsById(
2629
+ id: number,
2630
+ params: CommonParameters = {},
2631
+ ): Promise<ContactRelationship> {
2632
+ return this.request({
2633
+ path: `/company/contacts/relationships/${id}`,
2634
+ method: 'get',
2635
+ params,
2636
+ })
2637
+ }
2638
+
2639
+ deleteCompanyContactsRelationshipsById(id: number): Promise<NoContentResponse> {
2640
+ return this.request({
2641
+ path: `/company/contacts/relationships/${id}`,
2642
+ method: 'delete',
2643
+ })
2644
+ }
2645
+
2646
+ putCompanyContactsRelationshipsById(
2647
+ id: number,
2648
+ contactRelationship: ContactRelationship,
2649
+ ): Promise<ContactRelationship> {
2650
+ return this.request({
2651
+ path: `/company/contacts/relationships/${id}`,
2652
+ method: 'put',
2653
+ data: contactRelationship,
2654
+ })
2655
+ }
2656
+
2657
+ patchCompanyContactsRelationshipsById(
2658
+ id: number,
2659
+ patchOperations: Array<PatchOperation>,
2660
+ ): Promise<ContactRelationship> {
2661
+ return this.request({
2662
+ path: `/company/contacts/relationships/${id}`,
2663
+ method: 'patch',
2664
+ data: patchOperations,
2665
+ })
2666
+ }
2667
+
2668
+ getCompanyContactsRelationshipsCount(params: CommonParameters = {}): Promise<Count> {
2669
+ return this.request({
2670
+ path: `/company/contacts/relationships/count`,
2671
+ method: 'get',
2672
+ params,
2673
+ })
2674
+ }
2675
+
2676
+ postCompanyContactsRequestPassword(request: RequestPasswordRequest): Promise<NoContentResponse> {
2677
+ return this.request({
2678
+ path: `/company/contacts/requestPassword`,
2679
+ method: 'post',
2680
+ data: request,
2681
+ })
2682
+ }
2683
+
2684
+ getCompanyContactsTypes(params: CommonParameters = {}): Promise<Array<ContactType>> {
2685
+ return this.request({
2686
+ path: `/company/contacts/types`,
2687
+ method: 'get',
2688
+ params,
2689
+ })
2690
+ }
2691
+
2692
+ postCompanyContactsTypes(contactType: ContactType): Promise<ContactType> {
2693
+ return this.request({
2694
+ path: `/company/contacts/types`,
2695
+ method: 'post',
2696
+ data: contactType,
2697
+ })
2698
+ }
2699
+
2700
+ getCompanyContactsTypesById(id: number, params: CommonParameters = {}): Promise<ContactType> {
2701
+ return this.request({
2702
+ path: `/company/contacts/types/${id}`,
2703
+ method: 'get',
2704
+ params,
2705
+ })
2706
+ }
2707
+
2708
+ deleteCompanyContactsTypesById(id: number): Promise<NoContentResponse> {
2709
+ return this.request({
2710
+ path: `/company/contacts/types/${id}`,
2711
+ method: 'delete',
2712
+ })
2713
+ }
2714
+
2715
+ putCompanyContactsTypesById(id: number, contactType: ContactType): Promise<ContactType> {
2716
+ return this.request({
2717
+ path: `/company/contacts/types/${id}`,
2718
+ method: 'put',
2719
+ data: contactType,
2720
+ })
2721
+ }
2722
+
2723
+ patchCompanyContactsTypesById(
2724
+ id: number,
2725
+ patchOperations: Array<PatchOperation>,
2726
+ ): Promise<ContactType> {
2727
+ return this.request({
2728
+ path: `/company/contacts/types/${id}`,
2729
+ method: 'patch',
2730
+ data: patchOperations,
2731
+ })
2732
+ }
2733
+
2734
+ getCompanyContactsTypesByIdInfo(
2735
+ id: number,
2736
+ params: CommonParameters = {},
2737
+ ): Promise<ContactTypeInfo> {
2738
+ return this.request({
2739
+ path: `/company/contacts/types/${id}/info`,
2740
+ method: 'get',
2741
+ params,
2742
+ })
2743
+ }
2744
+
2745
+ getCompanyContactsTypesCount(params: CommonParameters = {}): Promise<Count> {
2746
+ return this.request({
2747
+ path: `/company/contacts/types/count`,
2748
+ method: 'get',
2749
+ params,
2750
+ })
2751
+ }
2752
+
2753
+ getCompanyContactsTypesCountInfo(params: CommonParameters = {}): Promise<Count> {
2754
+ return this.request({
2755
+ path: `/company/contacts/types/count/info`,
2756
+ method: 'get',
2757
+ params,
2758
+ })
2759
+ }
2760
+
2761
+ getCompanyContactsTypesInfo(params: CommonParameters = {}): Promise<Array<ContactTypeInfo>> {
2762
+ return this.request({
2763
+ path: `/company/contacts/types/info`,
2764
+ method: 'get',
2765
+ params,
2766
+ })
2767
+ }
2768
+
2769
+ postCompanyContactsValidatePortalCredentials(
2770
+ request: ValidatePortalRequest,
2771
+ ): Promise<ValidatePortalResponse> {
2772
+ return this.request({
2773
+ path: `/company/contacts/validatePortalCredentials`,
2774
+ method: 'post',
2775
+ data: request,
2776
+ })
2777
+ }
2778
+
2779
+ getCompanyContactTypeAssociations(
2780
+ params: CommonParameters = {},
2781
+ ): Promise<Array<CompanyContactTypeAssociation>> {
2782
+ return this.request({
2783
+ path: `/company/contactTypeAssociations`,
2784
+ method: 'get',
2785
+ params,
2786
+ })
2787
+ }
2788
+
2789
+ postCompanyContactTypeAssociations(
2790
+ contactTypeAssociation: CompanyContactTypeAssociation,
2791
+ ): Promise<CompanyContactTypeAssociation> {
2792
+ return this.request({
2793
+ path: `/company/contactTypeAssociations`,
2794
+ method: 'post',
2795
+ data: contactTypeAssociation,
2796
+ })
2797
+ }
2798
+
2799
+ getCompanyContactTypeAssociationsById(
2800
+ id: number,
2801
+ params: CommonParameters = {},
2802
+ ): Promise<CompanyContactTypeAssociation> {
2803
+ return this.request({
2804
+ path: `/company/contactTypeAssociations/${id}`,
2805
+ method: 'get',
2806
+ params,
2807
+ })
2808
+ }
2809
+
2810
+ deleteCompanyContactTypeAssociationsById(id: number): Promise<NoContentResponse> {
2811
+ return this.request({
2812
+ path: `/company/contactTypeAssociations/${id}`,
2813
+ method: 'delete',
2814
+ })
2815
+ }
2816
+
2817
+ putCompanyContactTypeAssociationsById(
2818
+ id: number,
2819
+ contactTypeAssociation: CompanyContactTypeAssociation,
2820
+ ): Promise<CompanyContactTypeAssociation> {
2821
+ return this.request({
2822
+ path: `/company/contactTypeAssociations/${id}`,
2823
+ method: 'put',
2824
+ data: contactTypeAssociation,
2825
+ })
2826
+ }
2827
+
2828
+ patchCompanyContactTypeAssociationsById(
2829
+ id: number,
2830
+ patchOperations: Array<PatchOperation>,
2831
+ ): Promise<CompanyContactTypeAssociation> {
2832
+ return this.request({
2833
+ path: `/company/contactTypeAssociations/${id}`,
2834
+ method: 'patch',
2835
+ data: patchOperations,
2836
+ })
2837
+ }
2838
+
2839
+ getCompanyContactTypeAssociationsCount(params: CommonParameters = {}): Promise<Count> {
2840
+ return this.request({
2841
+ path: `/company/contactTypeAssociations/count`,
2842
+ method: 'get',
2843
+ params,
2844
+ })
2845
+ }
2846
+
2847
+ getCompanyCountries(params: CommonParameters = {}): Promise<Array<Country>> {
2848
+ return this.request({
2849
+ path: `/company/countries`,
2850
+ method: 'get',
2851
+ params,
2852
+ })
2853
+ }
2854
+
2855
+ postCompanyCountries(country: Country): Promise<Country> {
2856
+ return this.request({
2857
+ path: `/company/countries`,
2858
+ method: 'post',
2859
+ data: country,
2860
+ })
2861
+ }
2862
+
2863
+ getCompanyCountriesById(id: number, params: CommonParameters = {}): Promise<Country> {
2864
+ return this.request({
2865
+ path: `/company/countries/${id}`,
2866
+ method: 'get',
2867
+ params,
2868
+ })
2869
+ }
2870
+
2871
+ deleteCompanyCountriesById(id: number): Promise<NoContentResponse> {
2872
+ return this.request({
2873
+ path: `/company/countries/${id}`,
2874
+ method: 'delete',
2875
+ })
2876
+ }
2877
+
2878
+ putCompanyCountriesById(id: number, country: Country): Promise<Country> {
2879
+ return this.request({
2880
+ path: `/company/countries/${id}`,
2881
+ method: 'put',
2882
+ data: country,
2883
+ })
2884
+ }
2885
+
2886
+ patchCompanyCountriesById(id: number, patchOperations: Array<PatchOperation>): Promise<Country> {
2887
+ return this.request({
2888
+ path: `/company/countries/${id}`,
2889
+ method: 'patch',
2890
+ data: patchOperations,
2891
+ })
2892
+ }
2893
+
2894
+ getCompanyCountriesByIdInfo(id: number, params: CommonParameters = {}): Promise<CountryInfo> {
2895
+ return this.request({
2896
+ path: `/company/countries/${id}/info`,
2897
+ method: 'get',
2898
+ params,
2899
+ })
2900
+ }
2901
+
2902
+ getCompanyCountriesCount(params: CommonParameters = {}): Promise<Count> {
2903
+ return this.request({
2904
+ path: `/company/countries/count`,
2905
+ method: 'get',
2906
+ params,
2907
+ })
2908
+ }
2909
+
2910
+ getCompanyCountriesInfo(params: CommonParameters = {}): Promise<Array<CountryInfo>> {
2911
+ return this.request({
2912
+ path: `/company/countries/info`,
2913
+ method: 'get',
2914
+ params,
2915
+ })
2916
+ }
2917
+
2918
+ getCompanyCountriesInfoCount(params: CommonParameters = {}): Promise<Count> {
2919
+ return this.request({
2920
+ path: `/company/countries/info/count`,
2921
+ method: 'get',
2922
+ params,
2923
+ })
2924
+ }
2925
+
2926
+ getCompanyEntityTypes(params: CommonParameters = {}): Promise<Array<EntityType>> {
2927
+ return this.request({
2928
+ path: `/company/entityTypes`,
2929
+ method: 'get',
2930
+ params,
2931
+ })
2932
+ }
2933
+
2934
+ getCompanyEntityTypesById(id: number, params: CommonParameters = {}): Promise<EntityType> {
2935
+ return this.request({
2936
+ path: `/company/entityTypes/${id}`,
2937
+ method: 'get',
2938
+ params,
2939
+ })
2940
+ }
2941
+
2942
+ getCompanyEntitytypesByIdInfo(
2943
+ id: number,
2944
+ params: CommonParameters = {},
2945
+ ): Promise<EntityTypeInfo> {
2946
+ return this.request({
2947
+ path: `/company/entitytypes/${id}/info`,
2948
+ method: 'get',
2949
+ params,
2950
+ })
2951
+ }
2952
+
2953
+ getCompanyEntityTypesCount(params: CommonParameters = {}): Promise<Count> {
2954
+ return this.request({
2955
+ path: `/company/entityTypes/count`,
2956
+ method: 'get',
2957
+ params,
2958
+ })
2959
+ }
2960
+
2961
+ getCompanyEntitytypesInfo(params: CommonParameters = {}): Promise<Array<EntityTypeInfo>> {
2962
+ return this.request({
2963
+ path: `/company/entitytypes/info`,
2964
+ method: 'get',
2965
+ params,
2966
+ })
2967
+ }
2968
+
2969
+ getCompanyEntityTypesInfoCount(params: CommonParameters = {}): Promise<Count> {
2970
+ return this.request({
2971
+ path: `/company/entityTypes/info/count`,
2972
+ method: 'get',
2973
+ params,
2974
+ })
2975
+ }
2976
+
2977
+ getCompanyExpenseTypesInfoCount(params: CommonParameters = {}): Promise<Count> {
2978
+ return this.request({
2979
+ path: `/company/expenseTypes/info/count`,
2980
+ method: 'get',
2981
+ params,
2982
+ })
2983
+ }
2984
+
2985
+ getCompanyManagedDevicesIntegrations(
2986
+ params: CommonParameters = {},
2987
+ ): Promise<Array<ManagedDevicesIntegration>> {
2988
+ return this.request({
2989
+ path: `/company/managedDevicesIntegrations`,
2990
+ method: 'get',
2991
+ params,
2992
+ })
2993
+ }
2994
+
2995
+ postCompanyManagedDevicesIntegrations(
2996
+ managedDevicesIntegration: ManagedDevicesIntegration,
2997
+ ): Promise<ManagedDevicesIntegration> {
2998
+ return this.request({
2999
+ path: `/company/managedDevicesIntegrations`,
3000
+ method: 'post',
3001
+ data: managedDevicesIntegration,
3002
+ })
3003
+ }
3004
+
3005
+ getCompanyManagedDevicesIntegrationsById(
3006
+ id: number,
3007
+ params: CommonParameters = {},
3008
+ ): Promise<ManagedDevicesIntegration> {
3009
+ return this.request({
3010
+ path: `/company/managedDevicesIntegrations/${id}`,
3011
+ method: 'get',
3012
+ params,
3013
+ })
3014
+ }
3015
+
3016
+ deleteCompanyManagedDevicesIntegrationsById(id: number): Promise<NoContentResponse> {
3017
+ return this.request({
3018
+ path: `/company/managedDevicesIntegrations/${id}`,
3019
+ method: 'delete',
3020
+ })
3021
+ }
3022
+
3023
+ putCompanyManagedDevicesIntegrationsById(
3024
+ id: number,
3025
+ managedDevicesIntegration: ManagedDevicesIntegration,
3026
+ ): Promise<ManagedDevicesIntegration> {
3027
+ return this.request({
3028
+ path: `/company/managedDevicesIntegrations/${id}`,
3029
+ method: 'put',
3030
+ data: managedDevicesIntegration,
3031
+ })
3032
+ }
3033
+
3034
+ patchCompanyManagedDevicesIntegrationsById(
3035
+ id: number,
3036
+ patchOperations: Array<PatchOperation>,
3037
+ ): Promise<ManagedDevicesIntegration> {
3038
+ return this.request({
3039
+ path: `/company/managedDevicesIntegrations/${id}`,
3040
+ method: 'patch',
3041
+ data: patchOperations,
3042
+ })
3043
+ }
3044
+
3045
+ getCompanyManagedDevicesIntegrationsByIdInfo(
3046
+ id: number,
3047
+ params: CommonParameters = {},
3048
+ ): Promise<ManagedDevicesIntegrationInfo> {
3049
+ return this.request({
3050
+ path: `/company/managedDevicesIntegrations/${id}/info`,
3051
+ method: 'get',
3052
+ params,
3053
+ })
3054
+ }
3055
+
3056
+ getCompanyManagedDevicesIntegrationsByIdUsages(
3057
+ id: number,
3058
+ params: CommonParameters = {},
3059
+ ): Promise<Array<Usage>> {
3060
+ return this.request({
3061
+ path: `/company/managedDevicesIntegrations/${id}/usages`,
3062
+ method: 'get',
3063
+ params,
3064
+ })
3065
+ }
3066
+
3067
+ getCompanyManagedDevicesIntegrationsByIdUsagesList(
3068
+ id: number,
3069
+ params: CommonParameters = {},
3070
+ ): Promise<Array<Usage>> {
3071
+ return this.request({
3072
+ path: `/company/managedDevicesIntegrations/${id}/usages/list`,
3073
+ method: 'get',
3074
+ params,
3075
+ })
3076
+ }
3077
+
3078
+ getCompanyManagedDevicesIntegrationsByParentIdCrossReferences(
3079
+ parentId: number,
3080
+ params: CommonParameters = {},
3081
+ ): Promise<Array<ManagedDevicesIntegrationCrossReference>> {
3082
+ return this.request({
3083
+ path: `/company/managedDevicesIntegrations/${parentId}/crossReferences`,
3084
+ method: 'get',
3085
+ params,
3086
+ })
3087
+ }
3088
+
3089
+ postCompanyManagedDevicesIntegrationsByParentIdCrossReferences(
3090
+ parentId: number,
3091
+ crossReference: ManagedDevicesIntegrationCrossReference,
3092
+ ): Promise<ManagedDevicesIntegrationCrossReference> {
3093
+ return this.request({
3094
+ path: `/company/managedDevicesIntegrations/${parentId}/crossReferences`,
3095
+ method: 'post',
3096
+ data: crossReference,
3097
+ })
3098
+ }
3099
+
3100
+ getCompanyManagedDevicesIntegrationsByParentIdCrossReferencesById(
3101
+ id: number,
3102
+ parentId: number,
3103
+ params: CommonParameters = {},
3104
+ ): Promise<ManagedDevicesIntegrationCrossReference> {
3105
+ return this.request({
3106
+ path: `/company/managedDevicesIntegrations/${parentId}/crossReferences/${id}`,
3107
+ method: 'get',
3108
+ params,
3109
+ })
3110
+ }
3111
+
3112
+ putCompanyManagedDevicesIntegrationsByParentIdCrossReferencesById(
3113
+ id: number,
3114
+ parentId: number,
3115
+ crossReference: ManagedDevicesIntegrationCrossReference,
3116
+ ): Promise<ManagedDevicesIntegrationCrossReference> {
3117
+ return this.request({
3118
+ path: `/company/managedDevicesIntegrations/${parentId}/crossReferences/${id}`,
3119
+ method: 'put',
3120
+ data: crossReference,
3121
+ })
3122
+ }
3123
+
3124
+ patchCompanyManagedDevicesIntegrationsByParentIdCrossReferencesById(
3125
+ id: number,
3126
+ parentId: number,
3127
+ patchOperations: Array<PatchOperation>,
3128
+ ): Promise<ManagedDevicesIntegrationCrossReference> {
3129
+ return this.request({
3130
+ path: `/company/managedDevicesIntegrations/${parentId}/crossReferences/${id}`,
3131
+ method: 'patch',
3132
+ data: patchOperations,
3133
+ })
3134
+ }
3135
+
3136
+ deleteCompanyManagedDevicesIntegrationsByParentIdCrossReferencesById(
3137
+ id: number,
3138
+ parentId: number,
3139
+ ): Promise<ManagedDevicesIntegrationCrossReference> {
3140
+ return this.request({
3141
+ path: `/company/managedDevicesIntegrations/${parentId}/crossReferences/${id}`,
3142
+ method: 'delete',
3143
+ })
3144
+ }
3145
+
3146
+ getCompanyManagedDevicesIntegrationsByParentIdCrossReferencesCount(
3147
+ parentId: number,
3148
+ params: CommonParameters = {},
3149
+ ): Promise<Count> {
3150
+ return this.request({
3151
+ path: `/company/managedDevicesIntegrations/${parentId}/crossReferences/count`,
3152
+ method: 'get',
3153
+ params,
3154
+ })
3155
+ }
3156
+
3157
+ getCompanyManagedDevicesIntegrationsByParentIdLogins(
3158
+ parentId: number,
3159
+ params: CommonParameters = {},
3160
+ ): Promise<Array<ManagedDevicesIntegrationLogin>> {
3161
+ return this.request({
3162
+ path: `/company/managedDevicesIntegrations/${parentId}/logins`,
3163
+ method: 'get',
3164
+ params,
3165
+ })
3166
+ }
3167
+
3168
+ postCompanyManagedDevicesIntegrationsByParentIdLogins(
3169
+ parentId: number,
3170
+ login: ManagedDevicesIntegrationLogin,
3171
+ ): Promise<ManagedDevicesIntegrationLogin> {
3172
+ return this.request({
3173
+ path: `/company/managedDevicesIntegrations/${parentId}/logins`,
3174
+ method: 'post',
3175
+ data: login,
3176
+ })
3177
+ }
3178
+
3179
+ getCompanyManagedDevicesIntegrationsByParentIdLoginsById(
3180
+ id: number,
3181
+ parentId: number,
3182
+ params: CommonParameters = {},
3183
+ ): Promise<ManagedDevicesIntegrationLogin> {
3184
+ return this.request({
3185
+ path: `/company/managedDevicesIntegrations/${parentId}/logins/${id}`,
3186
+ method: 'get',
3187
+ params,
3188
+ })
3189
+ }
3190
+
3191
+ putCompanyManagedDevicesIntegrationsByParentIdLoginsById(
3192
+ id: number,
3193
+ parentId: number,
3194
+ login: ManagedDevicesIntegrationLogin,
3195
+ ): Promise<ManagedDevicesIntegrationLogin> {
3196
+ return this.request({
3197
+ path: `/company/managedDevicesIntegrations/${parentId}/logins/${id}`,
3198
+ method: 'put',
3199
+ data: login,
3200
+ })
3201
+ }
3202
+
3203
+ patchCompanyManagedDevicesIntegrationsByParentIdLoginsById(
3204
+ id: number,
3205
+ parentId: number,
3206
+ patchOperations: Array<PatchOperation>,
3207
+ ): Promise<ManagedDevicesIntegrationLogin> {
3208
+ return this.request({
3209
+ path: `/company/managedDevicesIntegrations/${parentId}/logins/${id}`,
3210
+ method: 'patch',
3211
+ data: patchOperations,
3212
+ })
3213
+ }
3214
+
3215
+ deleteCompanyManagedDevicesIntegrationsByParentIdLoginsById(
3216
+ id: number,
3217
+ parentId: number,
3218
+ ): Promise<ManagedDevicesIntegrationLogin> {
3219
+ return this.request({
3220
+ path: `/company/managedDevicesIntegrations/${parentId}/logins/${id}`,
3221
+ method: 'delete',
3222
+ })
3223
+ }
3224
+
3225
+ getCompanyManagedDevicesIntegrationsByParentIdLoginsCount(
3226
+ parentId: number,
3227
+ params: CommonParameters = {},
3228
+ ): Promise<Count> {
3229
+ return this.request({
3230
+ path: `/company/managedDevicesIntegrations/${parentId}/logins/count`,
3231
+ method: 'get',
3232
+ params,
3233
+ })
3234
+ }
3235
+
3236
+ getCompanyManagedDevicesIntegrationsByParentIdNotifications(
3237
+ parentId: number,
3238
+ params: CommonParameters = {},
3239
+ ): Promise<Array<ManagedDevicesIntegrationNotification>> {
3240
+ return this.request({
3241
+ path: `/company/managedDevicesIntegrations/${parentId}/notifications`,
3242
+ method: 'get',
3243
+ params,
3244
+ })
3245
+ }
3246
+
3247
+ postCompanyManagedDevicesIntegrationsByParentIdNotifications(
3248
+ parentId: number,
3249
+ notification: ManagedDevicesIntegrationNotification,
3250
+ ): Promise<ManagedDevicesIntegrationNotification> {
3251
+ return this.request({
3252
+ path: `/company/managedDevicesIntegrations/${parentId}/notifications`,
3253
+ method: 'post',
3254
+ data: notification,
3255
+ })
3256
+ }
3257
+
3258
+ getCompanyManagedDevicesIntegrationsByParentIdNotificationsById(
3259
+ id: number,
3260
+ parentId: number,
3261
+ params: CommonParameters = {},
3262
+ ): Promise<ManagedDevicesIntegrationNotification> {
3263
+ return this.request({
3264
+ path: `/company/managedDevicesIntegrations/${parentId}/notifications/${id}`,
3265
+ method: 'get',
3266
+ params,
3267
+ })
3268
+ }
3269
+
3270
+ putCompanyManagedDevicesIntegrationsByParentIdNotificationsById(
3271
+ id: number,
3272
+ parentId: number,
3273
+ notification: ManagedDevicesIntegrationNotification,
3274
+ ): Promise<ManagedDevicesIntegrationNotification> {
3275
+ return this.request({
3276
+ path: `/company/managedDevicesIntegrations/${parentId}/notifications/${id}`,
3277
+ method: 'put',
3278
+ data: notification,
3279
+ })
3280
+ }
3281
+
3282
+ patchCompanyManagedDevicesIntegrationsByParentIdNotificationsById(
3283
+ id: number,
3284
+ parentId: number,
3285
+ patchOperations: Array<PatchOperation>,
3286
+ ): Promise<ManagedDevicesIntegrationNotification> {
3287
+ return this.request({
3288
+ path: `/company/managedDevicesIntegrations/${parentId}/notifications/${id}`,
3289
+ method: 'patch',
3290
+ data: patchOperations,
3291
+ })
3292
+ }
3293
+
3294
+ deleteCompanyManagedDevicesIntegrationsByParentIdNotificationsById(
3295
+ id: number,
3296
+ parentId: number,
3297
+ ): Promise<ManagedDevicesIntegrationNotification> {
3298
+ return this.request({
3299
+ path: `/company/managedDevicesIntegrations/${parentId}/notifications/${id}`,
3300
+ method: 'delete',
3301
+ })
3302
+ }
3303
+
3304
+ getCompanyManagedDevicesIntegrationsByParentIdNotificationsCount(
3305
+ parentId: number,
3306
+ params: CommonParameters = {},
3307
+ ): Promise<Count> {
3308
+ return this.request({
3309
+ path: `/company/managedDevicesIntegrations/${parentId}/notifications/count`,
3310
+ method: 'get',
3311
+ params,
3312
+ })
3313
+ }
3314
+
3315
+ getCompanyManagedDevicesIntegrationsCount(params: CommonParameters = {}): Promise<Count> {
3316
+ return this.request({
3317
+ path: `/company/managedDevicesIntegrations/count`,
3318
+ method: 'get',
3319
+ params,
3320
+ })
3321
+ }
3322
+
3323
+ getCompanyManagedDevicesIntegrationsInfo(
3324
+ params: CommonParameters = {},
3325
+ ): Promise<Array<ManagedDevicesIntegrationInfo>> {
3326
+ return this.request({
3327
+ path: `/company/managedDevicesIntegrations/info`,
3328
+ method: 'get',
3329
+ params,
3330
+ })
3331
+ }
3332
+
3333
+ getCompanyManagedDevicesIntegrationsInfoCount(params: CommonParameters = {}): Promise<Count> {
3334
+ return this.request({
3335
+ path: `/company/managedDevicesIntegrations/info/count`,
3336
+ method: 'get',
3337
+ params,
3338
+ })
3339
+ }
3340
+
3341
+ getCompanyManagement(params: CommonParameters = {}): Promise<Array<Management>> {
3342
+ return this.request({
3343
+ path: `/company/management`,
3344
+ method: 'get',
3345
+ params,
3346
+ })
3347
+ }
3348
+
3349
+ getCompanyManagementById(id: number, params: CommonParameters = {}): Promise<Management> {
3350
+ return this.request({
3351
+ path: `/company/management/${id}`,
3352
+ method: 'get',
3353
+ params,
3354
+ })
3355
+ }
3356
+
3357
+ putCompanyManagementById(id: number, management: Management): Promise<Management> {
3358
+ return this.request({
3359
+ path: `/company/management/${id}`,
3360
+ method: 'put',
3361
+ data: management,
3362
+ })
3363
+ }
3364
+
3365
+ patchCompanyManagementById(
3366
+ id: number,
3367
+ patchOperations: Array<PatchOperation>,
3368
+ ): Promise<Management> {
3369
+ return this.request({
3370
+ path: `/company/management/${id}`,
3371
+ method: 'patch',
3372
+ data: patchOperations,
3373
+ })
3374
+ }
3375
+
3376
+ postCompanyManagementByIdExecuteManagedItSync(id: number): Promise<SuccessResponse> {
3377
+ return this.request({
3378
+ path: `/company/management/${id}/executeManagedItSync`,
3379
+ method: 'post',
3380
+ })
3381
+ }
3382
+
3383
+ getCompanyManagementByIdLogDownload(
3384
+ id: number,
3385
+ filePath: string,
3386
+ params: CommonParameters = {},
3387
+ ): Promise<OctetStreamResponse> {
3388
+ return this.request({
3389
+ path: `/company/management/${id}/log/download`,
3390
+ method: 'get',
3391
+ params,
3392
+ })
3393
+ }
3394
+
3395
+ getCompanyManagementByIdLogs(
3396
+ id: number,
3397
+ params: CommonParameters = {},
3398
+ ): Promise<Array<ManagementLogDocumentInfo>> {
3399
+ return this.request({
3400
+ path: `/company/management/${id}/logs`,
3401
+ method: 'get',
3402
+ params,
3403
+ })
3404
+ }
3405
+
3406
+ getCompanyManagementByParentIdManagementReportNotifications(
3407
+ parentId: number,
3408
+ params: CommonParameters = {},
3409
+ ): Promise<Array<ManagementReportNotification>> {
3410
+ return this.request({
3411
+ path: `/company/management/${parentId}/managementReportNotifications`,
3412
+ method: 'get',
3413
+ params,
3414
+ })
3415
+ }
3416
+
3417
+ postCompanyManagementByParentIdManagementReportNotifications(
3418
+ parentId: number,
3419
+ managementReportNotification: ManagementReportNotification,
3420
+ ): Promise<ManagementReportNotification> {
3421
+ return this.request({
3422
+ path: `/company/management/${parentId}/managementReportNotifications`,
3423
+ method: 'post',
3424
+ data: managementReportNotification,
3425
+ })
3426
+ }
3427
+
3428
+ getCompanyManagementByParentIdManagementReportNotificationsById(
3429
+ id: number,
3430
+ parentId: number,
3431
+ params: CommonParameters = {},
3432
+ ): Promise<ManagementReportNotification> {
3433
+ return this.request({
3434
+ path: `/company/management/${parentId}/managementReportNotifications/${id}`,
3435
+ method: 'get',
3436
+ params,
3437
+ })
3438
+ }
3439
+
3440
+ deleteCompanyManagementByParentIdManagementReportNotificationsById(
3441
+ id: number,
3442
+ parentId: number,
3443
+ ): Promise<NoContentResponse> {
3444
+ return this.request({
3445
+ path: `/company/management/${parentId}/managementReportNotifications/${id}`,
3446
+ method: 'delete',
3447
+ })
3448
+ }
3449
+
3450
+ putCompanyManagementByParentIdManagementReportNotificationsById(
3451
+ id: number,
3452
+ parentId: number,
3453
+ managementReportNotification: ManagementReportNotification,
3454
+ ): Promise<ManagementReportNotification> {
3455
+ return this.request({
3456
+ path: `/company/management/${parentId}/managementReportNotifications/${id}`,
3457
+ method: 'put',
3458
+ data: managementReportNotification,
3459
+ })
3460
+ }
3461
+
3462
+ patchCompanyManagementByParentIdManagementReportNotificationsById(
3463
+ id: number,
3464
+ parentId: number,
3465
+ patchOperations: Array<PatchOperation>,
3466
+ ): Promise<ManagementReportNotification> {
3467
+ return this.request({
3468
+ path: `/company/management/${parentId}/managementReportNotifications/${id}`,
3469
+ method: 'patch',
3470
+ data: patchOperations,
3471
+ })
3472
+ }
3473
+
3474
+ getCompanyManagementByParentIdManagementReportNotificationsCount(
3475
+ parentId: number,
3476
+ params: CommonParameters = {},
3477
+ ): Promise<Count> {
3478
+ return this.request({
3479
+ path: `/company/management/${parentId}/managementReportNotifications/count`,
3480
+ method: 'get',
3481
+ params,
3482
+ })
3483
+ }
3484
+
3485
+ getCompanyManagementCount(params: CommonParameters = {}): Promise<Count> {
3486
+ return this.request({
3487
+ path: `/company/management/count`,
3488
+ method: 'get',
3489
+ params,
3490
+ })
3491
+ }
3492
+
3493
+ getCompanyManagementBackups(params: CommonParameters = {}): Promise<Array<ManagementBackup>> {
3494
+ return this.request({
3495
+ path: `/company/managementBackups`,
3496
+ method: 'get',
3497
+ params,
3498
+ })
3499
+ }
3500
+
3501
+ postCompanyManagementBackups(managementBackup: ManagementBackup): Promise<ManagementBackup> {
3502
+ return this.request({
3503
+ path: `/company/managementBackups`,
3504
+ method: 'post',
3505
+ data: managementBackup,
3506
+ })
3507
+ }
3508
+
3509
+ getCompanyManagementBackupsById(
3510
+ id: number,
3511
+ params: CommonParameters = {},
3512
+ ): Promise<ManagementBackup> {
3513
+ return this.request({
3514
+ path: `/company/managementBackups/${id}`,
3515
+ method: 'get',
3516
+ params,
3517
+ })
3518
+ }
3519
+
3520
+ deleteCompanyManagementBackupsById(id: number): Promise<NoContentResponse> {
3521
+ return this.request({
3522
+ path: `/company/managementBackups/${id}`,
3523
+ method: 'delete',
3524
+ })
3525
+ }
3526
+
3527
+ putCompanyManagementBackupsById(
3528
+ id: number,
3529
+ managementBackup: ManagementBackup,
3530
+ ): Promise<ManagementBackup> {
3531
+ return this.request({
3532
+ path: `/company/managementBackups/${id}`,
3533
+ method: 'put',
3534
+ data: managementBackup,
3535
+ })
3536
+ }
3537
+
3538
+ patchCompanyManagementBackupsById(
3539
+ id: number,
3540
+ patchOperations: Array<PatchOperation>,
3541
+ ): Promise<ManagementBackup> {
3542
+ return this.request({
3543
+ path: `/company/managementBackups/${id}`,
3544
+ method: 'patch',
3545
+ data: patchOperations,
3546
+ })
3547
+ }
3548
+
3549
+ getCompanyManagementBackupsCount(params: CommonParameters = {}): Promise<Count> {
3550
+ return this.request({
3551
+ path: `/company/managementBackups/count`,
3552
+ method: 'get',
3553
+ params,
3554
+ })
3555
+ }
3556
+
3557
+ getCompanyManagementItSolutions(
3558
+ params: CommonParameters = {},
3559
+ ): Promise<Array<ManagementItSolution>> {
3560
+ return this.request({
3561
+ path: `/company/managementItSolutions`,
3562
+ method: 'get',
3563
+ params,
3564
+ })
3565
+ }
3566
+
3567
+ postCompanyManagementItSolutions(
3568
+ managementItSolution: ManagementItSolution,
3569
+ ): Promise<ManagementItSolution> {
3570
+ return this.request({
3571
+ path: `/company/managementItSolutions`,
3572
+ method: 'post',
3573
+ data: managementItSolution,
3574
+ })
3575
+ }
3576
+
3577
+ getCompanyManagementItSolutionsById(
3578
+ id: number,
3579
+ params: CommonParameters = {},
3580
+ ): Promise<ManagementItSolution> {
3581
+ return this.request({
3582
+ path: `/company/managementItSolutions/${id}`,
3583
+ method: 'get',
3584
+ params,
3585
+ })
3586
+ }
3587
+
3588
+ deleteCompanyManagementItSolutionsById(id: number): Promise<NoContentResponse> {
3589
+ return this.request({
3590
+ path: `/company/managementItSolutions/${id}`,
3591
+ method: 'delete',
3592
+ })
3593
+ }
3594
+
3595
+ putCompanyManagementItSolutionsById(
3596
+ id: number,
3597
+ managementItSolution: ManagementItSolution,
3598
+ ): Promise<ManagementItSolution> {
3599
+ return this.request({
3600
+ path: `/company/managementItSolutions/${id}`,
3601
+ method: 'put',
3602
+ data: managementItSolution,
3603
+ })
3604
+ }
3605
+
3606
+ patchCompanyManagementItSolutionsById(
3607
+ id: number,
3608
+ patchOperations: Array<PatchOperation>,
3609
+ ): Promise<ManagementItSolution> {
3610
+ return this.request({
3611
+ path: `/company/managementItSolutions/${id}`,
3612
+ method: 'patch',
3613
+ data: patchOperations,
3614
+ })
3615
+ }
3616
+
3617
+ getCompanyManagementItSolutionsByIdUsages(
3618
+ id: number,
3619
+ params: CommonParameters = {},
3620
+ ): Promise<Array<Usage>> {
3621
+ return this.request({
3622
+ path: `/company/managementItSolutions/${id}/usages`,
3623
+ method: 'get',
3624
+ params,
3625
+ })
3626
+ }
3627
+
3628
+ getCompanyManagementItSolutionsByIdUsagesList(
3629
+ id: number,
3630
+ params: CommonParameters = {},
3631
+ ): Promise<Array<Usage>> {
3632
+ return this.request({
3633
+ path: `/company/managementItSolutions/${id}/usages/list`,
3634
+ method: 'get',
3635
+ params,
3636
+ })
3637
+ }
3638
+
3639
+ getCompanyManagementItSolutionsByParentIdManagementProducts(
3640
+ parentId: number,
3641
+ params: CommonParameters = {},
3642
+ ): Promise<Array<ManagementItSolutionAgreementInterfaceParameter>> {
3643
+ return this.request({
3644
+ path: `/company/managementItSolutions/${parentId}/managementProducts`,
3645
+ method: 'get',
3646
+ params,
3647
+ })
3648
+ }
3649
+
3650
+ postCompanyManagementItSolutionsByParentIdManagementProducts(
3651
+ parentId: number,
3652
+ managementProduct: ManagementItSolutionAgreementInterfaceParameter,
3653
+ ): Promise<ManagementItSolutionAgreementInterfaceParameter> {
3654
+ return this.request({
3655
+ path: `/company/managementItSolutions/${parentId}/managementProducts`,
3656
+ method: 'post',
3657
+ data: managementProduct,
3658
+ })
3659
+ }
3660
+
3661
+ getCompanyManagementItSolutionsByParentIdManagementProductsById(
3662
+ id: number,
3663
+ parentId: number,
3664
+ params: CommonParameters = {},
3665
+ ): Promise<ManagementItSolutionAgreementInterfaceParameter> {
3666
+ return this.request({
3667
+ path: `/company/managementItSolutions/${parentId}/managementProducts/${id}`,
3668
+ method: 'get',
3669
+ params,
3670
+ })
3671
+ }
3672
+
3673
+ putCompanyManagementItSolutionsByParentIdManagementProductsById(
3674
+ id: number,
3675
+ parentId: number,
3676
+ managementProduct: ManagementItSolutionAgreementInterfaceParameter,
3677
+ ): Promise<ManagementItSolutionAgreementInterfaceParameter> {
3678
+ return this.request({
3679
+ path: `/company/managementItSolutions/${parentId}/managementProducts/${id}`,
3680
+ method: 'put',
3681
+ data: managementProduct,
3682
+ })
3683
+ }
3684
+
3685
+ patchCompanyManagementItSolutionsByParentIdManagementProductsById(
3686
+ id: number,
3687
+ parentId: number,
3688
+ patchOperations: Array<PatchOperation>,
3689
+ ): Promise<ManagementItSolutionAgreementInterfaceParameter> {
3690
+ return this.request({
3691
+ path: `/company/managementItSolutions/${parentId}/managementProducts/${id}`,
3692
+ method: 'patch',
3693
+ data: patchOperations,
3694
+ })
3695
+ }
3696
+
3697
+ deleteCompanyManagementItSolutionsByParentIdManagementProductsById(
3698
+ id: number,
3699
+ parentId: number,
3700
+ ): Promise<ManagementItSolutionAgreementInterfaceParameter> {
3701
+ return this.request({
3702
+ path: `/company/managementItSolutions/${parentId}/managementProducts/${id}`,
3703
+ method: 'delete',
3704
+ })
3705
+ }
3706
+
3707
+ getCompanyManagementItSolutionsByParentIdManagementProductsCount(
3708
+ parentId: number,
3709
+ params: CommonParameters = {},
3710
+ ): Promise<Count> {
3711
+ return this.request({
3712
+ path: `/company/managementItSolutions/${parentId}/managementProducts/count`,
3713
+ method: 'get',
3714
+ params,
3715
+ })
3716
+ }
3717
+
3718
+ getCompanyManagementItSolutionsCount(params: CommonParameters = {}): Promise<Count> {
3719
+ return this.request({
3720
+ path: `/company/managementItSolutions/count`,
3721
+ method: 'get',
3722
+ params,
3723
+ })
3724
+ }
3725
+
3726
+ getCompanyMarketDescriptions(params: CommonParameters = {}): Promise<Array<MarketDescription>> {
3727
+ return this.request({
3728
+ path: `/company/marketDescriptions`,
3729
+ method: 'get',
3730
+ params,
3731
+ })
3732
+ }
3733
+
3734
+ postCompanyMarketDescriptions(marketDescription: MarketDescription): Promise<MarketDescription> {
3735
+ return this.request({
3736
+ path: `/company/marketDescriptions`,
3737
+ method: 'post',
3738
+ data: marketDescription,
3739
+ })
3740
+ }
3741
+
3742
+ getCompanyMarketDescriptionsById(
3743
+ id: number,
3744
+ params: CommonParameters = {},
3745
+ ): Promise<MarketDescription> {
3746
+ return this.request({
3747
+ path: `/company/marketDescriptions/${id}`,
3748
+ method: 'get',
3749
+ params,
3750
+ })
3751
+ }
3752
+
3753
+ deleteCompanyMarketDescriptionsById(id: number): Promise<NoContentResponse> {
3754
+ return this.request({
3755
+ path: `/company/marketDescriptions/${id}`,
3756
+ method: 'delete',
3757
+ })
3758
+ }
3759
+
3760
+ putCompanyMarketDescriptionsById(
3761
+ id: number,
3762
+ marketDescription: MarketDescription,
3763
+ ): Promise<MarketDescription> {
3764
+ return this.request({
3765
+ path: `/company/marketDescriptions/${id}`,
3766
+ method: 'put',
3767
+ data: marketDescription,
3768
+ })
3769
+ }
3770
+
3771
+ patchCompanyMarketDescriptionsById(
3772
+ id: number,
3773
+ patchOperations: Array<PatchOperation>,
3774
+ ): Promise<MarketDescription> {
3775
+ return this.request({
3776
+ path: `/company/marketDescriptions/${id}`,
3777
+ method: 'patch',
3778
+ data: patchOperations,
3779
+ })
3780
+ }
3781
+
3782
+ getCompanyMarketDescriptionsByIdInfo(
3783
+ id: number,
3784
+ params: CommonParameters = {},
3785
+ ): Promise<MarketDescriptionInfo> {
3786
+ return this.request({
3787
+ path: `/company/marketDescriptions/${id}/info`,
3788
+ method: 'get',
3789
+ params,
3790
+ })
3791
+ }
3792
+
3793
+ getCompanyMarketDescriptionsByIdUsages(
3794
+ id: number,
3795
+ params: CommonParameters = {},
3796
+ ): Promise<Array<Usage>> {
3797
+ return this.request({
3798
+ path: `/company/marketDescriptions/${id}/usages`,
3799
+ method: 'get',
3800
+ params,
3801
+ })
3802
+ }
3803
+
3804
+ getCompanyMarketDescriptionsByIdUsagesList(
3805
+ id: number,
3806
+ params: CommonParameters = {},
3807
+ ): Promise<Array<Usage>> {
3808
+ return this.request({
3809
+ path: `/company/marketDescriptions/${id}/usages/list`,
3810
+ method: 'get',
3811
+ params,
3812
+ })
3813
+ }
3814
+
3815
+ getCompanyMarketDescriptionsCount(params: CommonParameters = {}): Promise<Count> {
3816
+ return this.request({
3817
+ path: `/company/marketDescriptions/count`,
3818
+ method: 'get',
3819
+ params,
3820
+ })
3821
+ }
3822
+
3823
+ getCompanyMarketDescriptionsInfo(
3824
+ params: CommonParameters = {},
3825
+ ): Promise<Array<MarketDescriptionInfo>> {
3826
+ return this.request({
3827
+ path: `/company/marketDescriptions/info`,
3828
+ method: 'get',
3829
+ params,
3830
+ })
3831
+ }
3832
+
3833
+ getCompanyMarketDescriptionsInfoCount(params: CommonParameters = {}): Promise<Count> {
3834
+ return this.request({
3835
+ path: `/company/marketDescriptions/info/count`,
3836
+ method: 'get',
3837
+ params,
3838
+ })
3839
+ }
3840
+
3841
+ getCompanyNoteTypes(params: CommonParameters = {}): Promise<Array<CompanyNoteType>> {
3842
+ return this.request({
3843
+ path: `/company/noteTypes`,
3844
+ method: 'get',
3845
+ params,
3846
+ })
3847
+ }
3848
+
3849
+ postCompanyNoteTypes(noteType: CompanyNoteType): Promise<CompanyNoteType> {
3850
+ return this.request({
3851
+ path: `/company/noteTypes`,
3852
+ method: 'post',
3853
+ data: noteType,
3854
+ })
3855
+ }
3856
+
3857
+ getCompanyNoteTypesById(id: number, params: CommonParameters = {}): Promise<CompanyNoteType> {
3858
+ return this.request({
3859
+ path: `/company/noteTypes/${id}`,
3860
+ method: 'get',
3861
+ params,
3862
+ })
3863
+ }
3864
+
3865
+ deleteCompanyNoteTypesById(id: number): Promise<NoContentResponse> {
3866
+ return this.request({
3867
+ path: `/company/noteTypes/${id}`,
3868
+ method: 'delete',
3869
+ })
3870
+ }
3871
+
3872
+ putCompanyNoteTypesById(id: number, noteType: CompanyNoteType): Promise<CompanyNoteType> {
3873
+ return this.request({
3874
+ path: `/company/noteTypes/${id}`,
3875
+ method: 'put',
3876
+ data: noteType,
3877
+ })
3878
+ }
3879
+
3880
+ patchCompanyNoteTypesById(
3881
+ id: number,
3882
+ patchOperations: Array<PatchOperation>,
3883
+ ): Promise<CompanyNoteType> {
3884
+ return this.request({
3885
+ path: `/company/noteTypes/${id}`,
3886
+ method: 'patch',
3887
+ data: patchOperations,
3888
+ })
3889
+ }
3890
+
3891
+ getCompanyNoteTypesByIdInfo(
3892
+ id: number,
3893
+ params: CommonParameters = {},
3894
+ ): Promise<CompanyNoteTypeInfo> {
3895
+ return this.request({
3896
+ path: `/company/noteTypes/${id}/info`,
3897
+ method: 'get',
3898
+ params,
3899
+ })
3900
+ }
3901
+
3902
+ getCompanyNoteTypesCount(params: CommonParameters = {}): Promise<Count> {
3903
+ return this.request({
3904
+ path: `/company/noteTypes/count`,
3905
+ method: 'get',
3906
+ params,
3907
+ })
3908
+ }
3909
+
3910
+ getCompanyNoteTypesCountInfo(params: CommonParameters = {}): Promise<Count> {
3911
+ return this.request({
3912
+ path: `/company/noteTypes/count/info`,
3913
+ method: 'get',
3914
+ params,
3915
+ })
3916
+ }
3917
+
3918
+ getCompanyNoteTypesInfo(params: CommonParameters = {}): Promise<Array<CompanyNoteTypeInfo>> {
3919
+ return this.request({
3920
+ path: `/company/noteTypes/info`,
3921
+ method: 'get',
3922
+ params,
3923
+ })
3924
+ }
3925
+
3926
+ getCompanyOwnershipTypes(params: CommonParameters = {}): Promise<Array<OwnershipType>> {
3927
+ return this.request({
3928
+ path: `/company/ownershipTypes`,
3929
+ method: 'get',
3930
+ params,
3931
+ })
3932
+ }
3933
+
3934
+ postCompanyOwnershipTypes(ownershipType: OwnershipType): Promise<OwnershipType> {
3935
+ return this.request({
3936
+ path: `/company/ownershipTypes`,
3937
+ method: 'post',
3938
+ data: ownershipType,
3939
+ })
3940
+ }
3941
+
3942
+ getCompanyOwnershipTypesById(id: number, params: CommonParameters = {}): Promise<OwnershipType> {
3943
+ return this.request({
3944
+ path: `/company/ownershipTypes/${id}`,
3945
+ method: 'get',
3946
+ params,
3947
+ })
3948
+ }
3949
+
3950
+ deleteCompanyOwnershipTypesById(id: number): Promise<NoContentResponse> {
3951
+ return this.request({
3952
+ path: `/company/ownershipTypes/${id}`,
3953
+ method: 'delete',
3954
+ })
3955
+ }
3956
+
3957
+ putCompanyOwnershipTypesById(id: number, ownershipType: OwnershipType): Promise<OwnershipType> {
3958
+ return this.request({
3959
+ path: `/company/ownershipTypes/${id}`,
3960
+ method: 'put',
3961
+ data: ownershipType,
3962
+ })
3963
+ }
3964
+
3965
+ patchCompanyOwnershipTypesById(
3966
+ id: number,
3967
+ patchOperations: Array<PatchOperation>,
3968
+ ): Promise<OwnershipType> {
3969
+ return this.request({
3970
+ path: `/company/ownershipTypes/${id}`,
3971
+ method: 'patch',
3972
+ data: patchOperations,
3973
+ })
3974
+ }
3975
+
3976
+ getCompanyOwnershipTypesByIdInfo(
3977
+ id: number,
3978
+ params: CommonParameters = {},
3979
+ ): Promise<OwnershipTypeInfo> {
3980
+ return this.request({
3981
+ path: `/company/ownershipTypes/${id}/info`,
3982
+ method: 'get',
3983
+ params,
3984
+ })
3985
+ }
3986
+
3987
+ getCompanyOwnershipTypesCount(params: CommonParameters = {}): Promise<Count> {
3988
+ return this.request({
3989
+ path: `/company/ownershipTypes/count`,
3990
+ method: 'get',
3991
+ params,
3992
+ })
3993
+ }
3994
+
3995
+ getCompanyOwnershipTypesInfo(params: CommonParameters = {}): Promise<Array<OwnershipTypeInfo>> {
3996
+ return this.request({
3997
+ path: `/company/ownershipTypes/info`,
3998
+ method: 'get',
3999
+ params,
4000
+ })
4001
+ }
4002
+
4003
+ getCompanyOwnershipTypesInfoCount(params: CommonParameters = {}): Promise<Count> {
4004
+ return this.request({
4005
+ path: `/company/ownershipTypes/info/count`,
4006
+ method: 'get',
4007
+ params,
4008
+ })
4009
+ }
4010
+
4011
+ getCompanyPaymentTypesInfoCount(params: CommonParameters = {}): Promise<Count> {
4012
+ return this.request({
4013
+ path: `/company/paymentTypes/info/count`,
4014
+ method: 'get',
4015
+ params,
4016
+ })
4017
+ }
4018
+
4019
+ getCompanyPortalConfigurations(
4020
+ params: CommonParameters = {},
4021
+ ): Promise<Array<PortalConfiguration>> {
4022
+ return this.request({
4023
+ path: `/company/portalConfigurations`,
4024
+ method: 'get',
4025
+ params,
4026
+ })
4027
+ }
4028
+
4029
+ postCompanyPortalConfigurations(
4030
+ portalConfiguration: PortalConfiguration,
4031
+ ): Promise<PortalConfiguration> {
4032
+ return this.request({
4033
+ path: `/company/portalConfigurations`,
4034
+ method: 'post',
4035
+ data: portalConfiguration,
4036
+ })
4037
+ }
4038
+
4039
+ getCompanyPortalConfigurationsById(
4040
+ id: number,
4041
+ params: CommonParameters = {},
4042
+ ): Promise<PortalConfiguration> {
4043
+ return this.request({
4044
+ path: `/company/portalConfigurations/${id}`,
4045
+ method: 'get',
4046
+ params,
4047
+ })
4048
+ }
4049
+
4050
+ deleteCompanyPortalConfigurationsById(id: number): Promise<NoContentResponse> {
4051
+ return this.request({
4052
+ path: `/company/portalConfigurations/${id}`,
4053
+ method: 'delete',
4054
+ })
4055
+ }
4056
+
4057
+ putCompanyPortalConfigurationsById(
4058
+ id: number,
4059
+ portalConfiguration: PortalConfiguration,
4060
+ ): Promise<PortalConfiguration> {
4061
+ return this.request({
4062
+ path: `/company/portalConfigurations/${id}`,
4063
+ method: 'put',
4064
+ data: portalConfiguration,
4065
+ })
4066
+ }
4067
+
4068
+ patchCompanyPortalConfigurationsById(
4069
+ id: number,
4070
+ patchOperations: Array<PatchOperation>,
4071
+ ): Promise<PortalConfiguration> {
4072
+ return this.request({
4073
+ path: `/company/portalConfigurations/${id}`,
4074
+ method: 'patch',
4075
+ data: patchOperations,
4076
+ })
4077
+ }
4078
+
4079
+ getCompanyPortalConfigurationsByParentIdInvoiceSetups(
4080
+ parentId: number,
4081
+ params: CommonParameters = {},
4082
+ ): Promise<Array<PortalConfigurationInvoiceSetup>> {
4083
+ return this.request({
4084
+ path: `/company/portalConfigurations/${parentId}/invoiceSetups`,
4085
+ method: 'get',
4086
+ params,
4087
+ })
4088
+ }
4089
+
4090
+ getCompanyPortalConfigurationsByParentIdInvoiceSetupsById(
4091
+ id: number,
4092
+ parentId: number,
4093
+ params: CommonParameters = {},
4094
+ ): Promise<PortalConfigurationInvoiceSetup> {
4095
+ return this.request({
4096
+ path: `/company/portalConfigurations/${parentId}/invoiceSetups/${id}`,
4097
+ method: 'get',
4098
+ params,
4099
+ })
4100
+ }
4101
+
4102
+ putCompanyPortalConfigurationsByParentIdInvoiceSetupsById(
4103
+ id: number,
4104
+ parentId: number,
4105
+ portalConfigurationInvoiceSetup: PortalConfigurationInvoiceSetup,
4106
+ ): Promise<PortalConfigurationInvoiceSetup> {
4107
+ return this.request({
4108
+ path: `/company/portalConfigurations/${parentId}/invoiceSetups/${id}`,
4109
+ method: 'put',
4110
+ data: portalConfigurationInvoiceSetup,
4111
+ })
4112
+ }
4113
+
4114
+ patchCompanyPortalConfigurationsByParentIdInvoiceSetupsById(
4115
+ id: number,
4116
+ parentId: number,
4117
+ patchOperations: Array<PatchOperation>,
4118
+ ): Promise<PortalConfigurationInvoiceSetup> {
4119
+ return this.request({
4120
+ path: `/company/portalConfigurations/${parentId}/invoiceSetups/${id}`,
4121
+ method: 'patch',
4122
+ data: patchOperations,
4123
+ })
4124
+ }
4125
+
4126
+ postCompanyPortalConfigurationsByParentIdInvoiceSetupsByIdTestTransaction(
4127
+ id: number,
4128
+ parentId: number,
4129
+ portalConfigurationInvoiceSetup: PortalConfigurationInvoiceSetup,
4130
+ ): Promise<SuccessResponse> {
4131
+ return this.request({
4132
+ path: `/company/portalConfigurations/${parentId}/invoiceSetups/${id}/testTransaction`,
4133
+ method: 'post',
4134
+ data: portalConfigurationInvoiceSetup,
4135
+ })
4136
+ }
4137
+
4138
+ getCompanyPortalConfigurationsByParentIdInvoiceSetupsCount(
4139
+ parentId: number,
4140
+ params: CommonParameters = {},
4141
+ ): Promise<Count> {
4142
+ return this.request({
4143
+ path: `/company/portalConfigurations/${parentId}/invoiceSetups/count`,
4144
+ method: 'get',
4145
+ params,
4146
+ })
4147
+ }
4148
+
4149
+ getCompanyPortalConfigurationsByParentIdOpportunitySetups(
4150
+ parentId: number,
4151
+ params: CommonParameters = {},
4152
+ ): Promise<Array<PortalConfigurationOpportunitySetup>> {
4153
+ return this.request({
4154
+ path: `/company/portalConfigurations/${parentId}/opportunitySetups`,
4155
+ method: 'get',
4156
+ params,
4157
+ })
4158
+ }
4159
+
4160
+ putCompanyPortalConfigurationsByParentIdOpportunitySetups(
4161
+ parentId: number,
4162
+ opportunitySetup: PortalConfigurationOpportunitySetup,
4163
+ ): Promise<PortalConfigurationOpportunitySetup> {
4164
+ return this.request({
4165
+ path: `/company/portalConfigurations/${parentId}/opportunitySetups`,
4166
+ method: 'put',
4167
+ data: opportunitySetup,
4168
+ })
4169
+ }
4170
+
4171
+ patchCompanyPortalConfigurationsByParentIdOpportunitySetups(
4172
+ parentId: number,
4173
+ patchOperations: Array<PatchOperation>,
4174
+ ): Promise<PortalConfigurationOpportunitySetup> {
4175
+ return this.request({
4176
+ path: `/company/portalConfigurations/${parentId}/opportunitySetups`,
4177
+ method: 'patch',
4178
+ data: patchOperations,
4179
+ })
4180
+ }
4181
+
4182
+ getCompanyPortalConfigurationsByParentIdOpportunitySetupsById(
4183
+ id: number,
4184
+ parentId: number,
4185
+ params: CommonParameters = {},
4186
+ ): Promise<PortalConfigurationOpportunitySetup> {
4187
+ return this.request({
4188
+ path: `/company/portalConfigurations/${parentId}/opportunitySetups/${id}`,
4189
+ method: 'get',
4190
+ params,
4191
+ })
4192
+ }
4193
+
4194
+ putCompanyPortalConfigurationsByParentIdOpportunitySetupsById(
4195
+ id: number,
4196
+ parentId: number,
4197
+ opportunitySetup: PortalConfigurationOpportunitySetup,
4198
+ ): Promise<PortalConfigurationOpportunitySetup> {
4199
+ return this.request({
4200
+ path: `/company/portalConfigurations/${parentId}/opportunitySetups/${id}`,
4201
+ method: 'put',
4202
+ data: opportunitySetup,
4203
+ })
4204
+ }
4205
+
4206
+ patchCompanyPortalConfigurationsByParentIdOpportunitySetupsById(
4207
+ id: number,
4208
+ parentId: number,
4209
+ patchOperations: Array<PatchOperation>,
4210
+ ): Promise<PortalConfigurationOpportunitySetup> {
4211
+ return this.request({
4212
+ path: `/company/portalConfigurations/${parentId}/opportunitySetups/${id}`,
4213
+ method: 'patch',
4214
+ data: patchOperations,
4215
+ })
4216
+ }
4217
+
4218
+ getCompanyPortalConfigurationsByParentIdPasswordEmailSetups(
4219
+ parentId: number,
4220
+ params: CommonParameters = {},
4221
+ ): Promise<Array<PortalConfigurationPasswordEmailSetup>> {
4222
+ return this.request({
4223
+ path: `/company/portalConfigurations/${parentId}/passwordEmailSetups`,
4224
+ method: 'get',
4225
+ params,
4226
+ })
4227
+ }
4228
+
4229
+ getCompanyPortalConfigurationsByParentIdPasswordEmailSetupsById(
4230
+ id: number,
4231
+ parentId: number,
4232
+ params: CommonParameters = {},
4233
+ ): Promise<PortalConfigurationPasswordEmailSetup> {
4234
+ return this.request({
4235
+ path: `/company/portalConfigurations/${parentId}/passwordEmailSetups/${id}`,
4236
+ method: 'get',
4237
+ params,
4238
+ })
4239
+ }
4240
+
4241
+ putCompanyPortalConfigurationsByParentIdPasswordEmailSetupsById(
4242
+ id: number,
4243
+ parentId: number,
4244
+ passwordEmailSetup: PortalConfigurationPasswordEmailSetup,
4245
+ ): Promise<PortalConfigurationPasswordEmailSetup> {
4246
+ return this.request({
4247
+ path: `/company/portalConfigurations/${parentId}/passwordEmailSetups/${id}`,
4248
+ method: 'put',
4249
+ data: passwordEmailSetup,
4250
+ })
4251
+ }
4252
+
4253
+ patchCompanyPortalConfigurationsByParentIdPasswordEmailSetupsById(
4254
+ id: number,
4255
+ parentId: number,
4256
+ patchOperations: Array<PatchOperation>,
4257
+ ): Promise<PortalConfigurationPasswordEmailSetup> {
4258
+ return this.request({
4259
+ path: `/company/portalConfigurations/${parentId}/passwordEmailSetups/${id}`,
4260
+ method: 'patch',
4261
+ data: patchOperations,
4262
+ })
4263
+ }
4264
+
4265
+ getCompanyPortalConfigurationsByParentIdProjectSetups(
4266
+ parentId: number,
4267
+ params: CommonParameters = {},
4268
+ ): Promise<Array<PortalConfigurationProjectSetup>> {
4269
+ return this.request({
4270
+ path: `/company/portalConfigurations/${parentId}/projectSetups`,
4271
+ method: 'get',
4272
+ params,
4273
+ })
4274
+ }
4275
+
4276
+ getCompanyPortalConfigurationsByParentIdProjectSetupsById(
4277
+ id: number,
4278
+ parentId: number,
4279
+ params: CommonParameters = {},
4280
+ ): Promise<PortalConfigurationProjectSetup> {
4281
+ return this.request({
4282
+ path: `/company/portalConfigurations/${parentId}/projectSetups/${id}`,
4283
+ method: 'get',
4284
+ params,
4285
+ })
4286
+ }
4287
+
4288
+ putCompanyPortalConfigurationsByParentIdProjectSetupsById(
4289
+ id: number,
4290
+ parentId: number,
4291
+ portalConfigurationProjectSetup: PortalConfigurationProjectSetup,
4292
+ ): Promise<PortalConfigurationProjectSetup> {
4293
+ return this.request({
4294
+ path: `/company/portalConfigurations/${parentId}/projectSetups/${id}`,
4295
+ method: 'put',
4296
+ data: portalConfigurationProjectSetup,
4297
+ })
4298
+ }
4299
+
4300
+ patchCompanyPortalConfigurationsByParentIdProjectSetupsById(
4301
+ id: number,
4302
+ parentId: number,
4303
+ patchOperations: Array<PatchOperation>,
4304
+ ): Promise<PortalConfigurationProjectSetup> {
4305
+ return this.request({
4306
+ path: `/company/portalConfigurations/${parentId}/projectSetups/${id}`,
4307
+ method: 'patch',
4308
+ data: patchOperations,
4309
+ })
4310
+ }
4311
+
4312
+ getCompanyPortalConfigurationsByParentIdProjectSetupsCount(
4313
+ parentId: number,
4314
+ params: CommonParameters = {},
4315
+ ): Promise<Count> {
4316
+ return this.request({
4317
+ path: `/company/portalConfigurations/${parentId}/projectSetups/count`,
4318
+ method: 'get',
4319
+ params,
4320
+ })
4321
+ }
4322
+
4323
+ getCompanyPortalConfigurationsByParentIdServiceSetups(
4324
+ parentId: number,
4325
+ params: CommonParameters = {},
4326
+ ): Promise<Array<PortalConfigurationServiceSetup>> {
4327
+ return this.request({
4328
+ path: `/company/portalConfigurations/${parentId}/serviceSetups`,
4329
+ method: 'get',
4330
+ params,
4331
+ })
4332
+ }
4333
+
4334
+ getCompanyPortalConfigurationsByParentIdServiceSetupsById(
4335
+ id: number,
4336
+ parentId: number,
4337
+ params: CommonParameters = {},
4338
+ ): Promise<PortalConfigurationServiceSetup> {
4339
+ return this.request({
4340
+ path: `/company/portalConfigurations/${parentId}/serviceSetups/${id}`,
4341
+ method: 'get',
4342
+ params,
4343
+ })
4344
+ }
4345
+
4346
+ putCompanyPortalConfigurationsByParentIdServiceSetupsById(
4347
+ id: number,
4348
+ parentId: number,
4349
+ portalConfigurationServiceSetup: PortalConfigurationServiceSetup,
4350
+ ): Promise<PortalConfigurationServiceSetup> {
4351
+ return this.request({
4352
+ path: `/company/portalConfigurations/${parentId}/serviceSetups/${id}`,
4353
+ method: 'put',
4354
+ data: portalConfigurationServiceSetup,
4355
+ })
4356
+ }
4357
+
4358
+ patchCompanyPortalConfigurationsByParentIdServiceSetupsById(
4359
+ id: number,
4360
+ parentId: number,
4361
+ patchOperations: Array<PatchOperation>,
4362
+ ): Promise<PortalConfigurationServiceSetup> {
4363
+ return this.request({
4364
+ path: `/company/portalConfigurations/${parentId}/serviceSetups/${id}`,
4365
+ method: 'patch',
4366
+ data: patchOperations,
4367
+ })
4368
+ }
4369
+
4370
+ getCompanyPortalConfigurationsByParentIdServiceSetupsCount(
4371
+ parentId: number,
4372
+ params: CommonParameters = {},
4373
+ ): Promise<Count> {
4374
+ return this.request({
4375
+ path: `/company/portalConfigurations/${parentId}/serviceSetups/count`,
4376
+ method: 'get',
4377
+ params,
4378
+ })
4379
+ }
4380
+
4381
+ postCompanyPortalConfigurationsCopy(copy: PortalConfiguration): Promise<PortalConfiguration> {
4382
+ return this.request({
4383
+ path: `/company/portalConfigurations/copy`,
4384
+ method: 'post',
4385
+ data: copy,
4386
+ })
4387
+ }
4388
+
4389
+ getCompanyPortalConfigurationsCount(params: CommonParameters = {}): Promise<Count> {
4390
+ return this.request({
4391
+ path: `/company/portalConfigurations/count`,
4392
+ method: 'get',
4393
+ params,
4394
+ })
4395
+ }
4396
+
4397
+ getCompanyPortalConfigurationsInvoiceSetupPaymentProcessors(
4398
+ params: CommonParameters = {},
4399
+ ): Promise<Array<PortalConfigurationPaymentProcessor>> {
4400
+ return this.request({
4401
+ path: `/company/portalConfigurations/invoiceSetup/paymentProcessors`,
4402
+ method: 'get',
4403
+ params,
4404
+ })
4405
+ }
4406
+
4407
+ getCompanyPortalConfigurationsInvoiceSetupPaymentProcessorsById(
4408
+ id: number,
4409
+ params: CommonParameters = {},
4410
+ ): Promise<PortalConfigurationPaymentProcessor> {
4411
+ return this.request({
4412
+ path: `/company/portalConfigurations/invoiceSetup/paymentProcessors/${id}`,
4413
+ method: 'get',
4414
+ params,
4415
+ })
4416
+ }
4417
+
4418
+ getCompanyPortalConfigurationsInvoiceSetupPaymentProcessorsCount(
4419
+ params: CommonParameters = {},
4420
+ ): Promise<Count> {
4421
+ return this.request({
4422
+ path: `/company/portalConfigurations/invoiceSetup/paymentProcessors/count`,
4423
+ method: 'get',
4424
+ params,
4425
+ })
4426
+ }
4427
+
4428
+ getCompanyPortalSecurityLevels(
4429
+ params: CommonParameters = {},
4430
+ ): Promise<Array<PortalSecurityLevel>> {
4431
+ return this.request({
4432
+ path: `/company/portalSecurityLevels`,
4433
+ method: 'get',
4434
+ params,
4435
+ })
4436
+ }
4437
+
4438
+ getCompanyPortalSecurityLevelsById(
4439
+ id: number,
4440
+ params: CommonParameters = {},
4441
+ ): Promise<PortalSecurityLevel> {
4442
+ return this.request({
4443
+ path: `/company/portalSecurityLevels/${id}`,
4444
+ method: 'get',
4445
+ params,
4446
+ })
4447
+ }
4448
+
4449
+ putCompanyPortalSecurityLevelsById(
4450
+ id: number,
4451
+ _portalSecurityLevel: PortalSecurityLevel,
4452
+ ): Promise<PortalSecurityLevel> {
4453
+ return this.request({
4454
+ path: `/company/portalSecurityLevels/${id}`,
4455
+ method: 'put',
4456
+ data: _portalSecurityLevel,
4457
+ })
4458
+ }
4459
+
4460
+ patchCompanyPortalSecurityLevelsById(
4461
+ id: number,
4462
+ patchOperations: Array<PatchOperation>,
4463
+ ): Promise<PortalSecurityLevel> {
4464
+ return this.request({
4465
+ path: `/company/portalSecurityLevels/${id}`,
4466
+ method: 'patch',
4467
+ data: patchOperations,
4468
+ })
4469
+ }
4470
+
4471
+ getCompanyPortalSecurityLevelsCount(params: CommonParameters = {}): Promise<Count> {
4472
+ return this.request({
4473
+ path: `/company/portalSecurityLevels/count`,
4474
+ method: 'get',
4475
+ params,
4476
+ })
4477
+ }
4478
+
4479
+ getCompanyPortalSecuritySettings(
4480
+ params: CommonParameters = {},
4481
+ ): Promise<Array<PortalSecuritySetting>> {
4482
+ return this.request({
4483
+ path: `/company/portalSecuritySettings`,
4484
+ method: 'get',
4485
+ params,
4486
+ })
4487
+ }
4488
+
4489
+ getCompanyPortalSecuritySettingsById(
4490
+ id: number,
4491
+ params: CommonParameters = {},
4492
+ ): Promise<PortalSecuritySetting> {
4493
+ return this.request({
4494
+ path: `/company/portalSecuritySettings/${id}`,
4495
+ method: 'get',
4496
+ params,
4497
+ })
4498
+ }
4499
+
4500
+ putCompanyPortalSecuritySettingsById(
4501
+ id: number,
4502
+ portalSecurity: PortalSecuritySetting,
4503
+ ): Promise<PortalSecuritySetting> {
4504
+ return this.request({
4505
+ path: `/company/portalSecuritySettings/${id}`,
4506
+ method: 'put',
4507
+ data: portalSecurity,
4508
+ })
4509
+ }
4510
+
4511
+ patchCompanyPortalSecuritySettingsById(
4512
+ id: number,
4513
+ patchOperations: Array<PatchOperation>,
4514
+ ): Promise<PortalSecuritySetting> {
4515
+ return this.request({
4516
+ path: `/company/portalSecuritySettings/${id}`,
4517
+ method: 'patch',
4518
+ data: patchOperations,
4519
+ })
4520
+ }
4521
+
4522
+ getCompanyPortalSecuritySettingsCount(params: CommonParameters = {}): Promise<Count> {
4523
+ return this.request({
4524
+ path: `/company/portalSecuritySettings/count`,
4525
+ method: 'get',
4526
+ params,
4527
+ })
4528
+ }
4529
+
4530
+ getCompanyStates(params: CommonParameters = {}): Promise<Array<State>> {
4531
+ return this.request({
4532
+ path: `/company/states`,
4533
+ method: 'get',
4534
+ params,
4535
+ })
4536
+ }
4537
+
4538
+ postCompanyStates(state: State): Promise<State> {
4539
+ return this.request({
4540
+ path: `/company/states`,
4541
+ method: 'post',
4542
+ data: state,
4543
+ })
4544
+ }
4545
+
4546
+ getCompanyStatesById(id: number, params: CommonParameters = {}): Promise<State> {
4547
+ return this.request({
4548
+ path: `/company/states/${id}`,
4549
+ method: 'get',
4550
+ params,
4551
+ })
4552
+ }
4553
+
4554
+ putCompanyStatesById(id: number, state: State): Promise<State> {
4555
+ return this.request({
4556
+ path: `/company/states/${id}`,
4557
+ method: 'put',
4558
+ data: state,
4559
+ })
4560
+ }
4561
+
4562
+ patchCompanyStatesById(id: number, patchOperations: Array<PatchOperation>): Promise<State> {
4563
+ return this.request({
4564
+ path: `/company/states/${id}`,
4565
+ method: 'patch',
4566
+ data: patchOperations,
4567
+ })
4568
+ }
4569
+
4570
+ deleteCompanyStatesById(id: number): Promise<NoContentResponse> {
4571
+ return this.request({
4572
+ path: `/company/states/${id}`,
4573
+ method: 'delete',
4574
+ })
4575
+ }
4576
+
4577
+ getCompanyStatesByIdInfo(id: number, params: CommonParameters = {}): Promise<StateInfo> {
4578
+ return this.request({
4579
+ path: `/company/states/${id}/info`,
4580
+ method: 'get',
4581
+ params,
4582
+ })
4583
+ }
4584
+
4585
+ getCompanyStatesByIdUsages(id: number, params: CommonParameters = {}): Promise<Array<Usage>> {
4586
+ return this.request({
4587
+ path: `/company/states/${id}/usages`,
4588
+ method: 'get',
4589
+ params,
4590
+ })
4591
+ }
4592
+
4593
+ getCompanyStatesByIdUsagesList(id: number, params: CommonParameters = {}): Promise<Array<Usage>> {
4594
+ return this.request({
4595
+ path: `/company/states/${id}/usages/list`,
4596
+ method: 'get',
4597
+ params,
4598
+ })
4599
+ }
4600
+
4601
+ getCompanyStatesCount(params: CommonParameters = {}): Promise<Count> {
4602
+ return this.request({
4603
+ path: `/company/states/count`,
4604
+ method: 'get',
4605
+ params,
4606
+ })
4607
+ }
4608
+
4609
+ getCompanyStatesInfo(params: CommonParameters = {}): Promise<Array<StateInfo>> {
4610
+ return this.request({
4611
+ path: `/company/states/info`,
4612
+ method: 'get',
4613
+ params,
4614
+ })
4615
+ }
4616
+
4617
+ getCompanyStatesInfoCount(params: CommonParameters = {}): Promise<Count> {
4618
+ return this.request({
4619
+ path: `/company/states/info/count`,
4620
+ method: 'get',
4621
+ params,
4622
+ })
4623
+ }
4624
+
4625
+ getCompanyTeamRoles(params: CommonParameters = {}): Promise<Array<TeamRole>> {
4626
+ return this.request({
4627
+ path: `/company/teamRoles`,
4628
+ method: 'get',
4629
+ params,
4630
+ })
4631
+ }
4632
+
4633
+ postCompanyTeamRoles(teamRole: TeamRole): Promise<TeamRole> {
4634
+ return this.request({
4635
+ path: `/company/teamRoles`,
4636
+ method: 'post',
4637
+ data: teamRole,
4638
+ })
4639
+ }
4640
+
4641
+ getCompanyTeamRolesById(id: number, params: CommonParameters = {}): Promise<TeamRole> {
4642
+ return this.request({
4643
+ path: `/company/teamRoles/${id}`,
4644
+ method: 'get',
4645
+ params,
4646
+ })
4647
+ }
4648
+
4649
+ deleteCompanyTeamRolesById(id: number): Promise<NoContentResponse> {
4650
+ return this.request({
4651
+ path: `/company/teamRoles/${id}`,
4652
+ method: 'delete',
4653
+ })
4654
+ }
4655
+
4656
+ putCompanyTeamRolesById(id: number, teamRole: TeamRole): Promise<TeamRole> {
4657
+ return this.request({
4658
+ path: `/company/teamRoles/${id}`,
4659
+ method: 'put',
4660
+ data: teamRole,
4661
+ })
4662
+ }
4663
+
4664
+ patchCompanyTeamRolesById(id: number, patchOperations: Array<PatchOperation>): Promise<TeamRole> {
4665
+ return this.request({
4666
+ path: `/company/teamRoles/${id}`,
4667
+ method: 'patch',
4668
+ data: patchOperations,
4669
+ })
4670
+ }
4671
+
4672
+ getCompanyTeamRolesByIdInfo(id: number, params: CommonParameters = {}): Promise<TeamRoleInfo> {
4673
+ return this.request({
4674
+ path: `/company/teamRoles/${id}/info`,
4675
+ method: 'get',
4676
+ params,
4677
+ })
4678
+ }
4679
+
4680
+ getCompanyTeamRolesByIdUsages(id: number, params: CommonParameters = {}): Promise<Array<Usage>> {
4681
+ return this.request({
4682
+ path: `/company/teamRoles/${id}/usages`,
4683
+ method: 'get',
4684
+ params,
4685
+ })
4686
+ }
4687
+
4688
+ getCompanyTeamRolesByIdUsagesList(
4689
+ id: number,
4690
+ params: CommonParameters = {},
4691
+ ): Promise<Array<Usage>> {
4692
+ return this.request({
4693
+ path: `/company/teamRoles/${id}/usages/list`,
4694
+ method: 'get',
4695
+ params,
4696
+ })
4697
+ }
4698
+
4699
+ getCompanyTeamRolesCount(params: CommonParameters = {}): Promise<Count> {
4700
+ return this.request({
4701
+ path: `/company/teamRoles/count`,
4702
+ method: 'get',
4703
+ params,
4704
+ })
4705
+ }
4706
+
4707
+ getCompanyTeamRolesInfo(params: CommonParameters = {}): Promise<Array<TeamRoleInfo>> {
4708
+ return this.request({
4709
+ path: `/company/teamRoles/info`,
4710
+ method: 'get',
4711
+ params,
4712
+ })
4713
+ }
4714
+
4715
+ getCompanyTeamRolesInfoCount(params: CommonParameters = {}): Promise<Count> {
4716
+ return this.request({
4717
+ path: `/company/teamRoles/info/count`,
4718
+ method: 'get',
4719
+ params,
4720
+ })
4721
+ }
4722
+
4723
+ getCompanyTracks(params: CommonParameters = {}): Promise<Array<Track>> {
4724
+ return this.request({
4725
+ path: `/company/tracks`,
4726
+ method: 'get',
4727
+ params,
4728
+ })
4729
+ }
4730
+
4731
+ postCompanyTracks(track: Track): Promise<Track> {
4732
+ return this.request({
4733
+ path: `/company/tracks`,
4734
+ method: 'post',
4735
+ data: track,
4736
+ })
4737
+ }
4738
+
4739
+ getCompanyTracksById(id: number, params: CommonParameters = {}): Promise<Track> {
4740
+ return this.request({
4741
+ path: `/company/tracks/${id}`,
4742
+ method: 'get',
4743
+ params,
4744
+ })
4745
+ }
4746
+
4747
+ deleteCompanyTracksById(id: number): Promise<NoContentResponse> {
4748
+ return this.request({
4749
+ path: `/company/tracks/${id}`,
4750
+ method: 'delete',
4751
+ })
4752
+ }
4753
+
4754
+ putCompanyTracksById(id: number, track: Track): Promise<Track> {
4755
+ return this.request({
4756
+ path: `/company/tracks/${id}`,
4757
+ method: 'put',
4758
+ data: track,
4759
+ })
4760
+ }
4761
+
4762
+ patchCompanyTracksById(id: number, patchOperations: Array<PatchOperation>): Promise<Track> {
4763
+ return this.request({
4764
+ path: `/company/tracks/${id}`,
4765
+ method: 'patch',
4766
+ data: patchOperations,
4767
+ })
4768
+ }
4769
+
4770
+ getCompanyTracksByParentIdActions(
4771
+ parentId: number,
4772
+ params: CommonParameters = {},
4773
+ ): Promise<Array<TrackAction>> {
4774
+ return this.request({
4775
+ path: `/company/tracks/${parentId}/actions`,
4776
+ method: 'get',
4777
+ params,
4778
+ })
4779
+ }
4780
+
4781
+ postCompanyTracksByParentIdActions(
4782
+ parentId: number,
4783
+ trackAction: TrackAction,
4784
+ ): Promise<TrackAction> {
4785
+ return this.request({
4786
+ path: `/company/tracks/${parentId}/actions`,
4787
+ method: 'post',
4788
+ data: trackAction,
4789
+ })
4790
+ }
4791
+
4792
+ getCompanyTracksByParentIdActionsById(
4793
+ id: number,
4794
+ parentId: number,
4795
+ params: CommonParameters = {},
4796
+ ): Promise<TrackAction> {
4797
+ return this.request({
4798
+ path: `/company/tracks/${parentId}/actions/${id}`,
4799
+ method: 'get',
4800
+ params,
4801
+ })
4802
+ }
4803
+
4804
+ putCompanyTracksByParentIdActionsById(
4805
+ id: number,
4806
+ parentId: number,
4807
+ trackAction: TrackAction,
4808
+ ): Promise<TrackAction> {
4809
+ return this.request({
4810
+ path: `/company/tracks/${parentId}/actions/${id}`,
4811
+ method: 'put',
4812
+ data: trackAction,
4813
+ })
4814
+ }
4815
+
4816
+ patchCompanyTracksByParentIdActionsById(id: number, parentId: number): Promise<TrackAction> {
4817
+ return this.request({
4818
+ path: `/company/tracks/${parentId}/actions/${id}`,
4819
+ method: 'patch',
4820
+ })
4821
+ }
4822
+
4823
+ deleteCompanyTracksByParentIdActionsById(
4824
+ id: number,
4825
+ parentId: number,
4826
+ ): Promise<NoContentResponse> {
4827
+ return this.request({
4828
+ path: `/company/tracks/${parentId}/actions/${id}`,
4829
+ method: 'delete',
4830
+ })
4831
+ }
4832
+
4833
+ getCompanyTracksByParentIdActionsCount(
4834
+ parentId: number,
4835
+ params: CommonParameters = {},
4836
+ ): Promise<Count> {
4837
+ return this.request({
4838
+ path: `/company/tracks/${parentId}/actions/count`,
4839
+ method: 'get',
4840
+ params,
4841
+ })
4842
+ }
4843
+
4844
+ getCompanyTracksCount(params: CommonParameters = {}): Promise<Count> {
4845
+ return this.request({
4846
+ path: `/company/tracks/count`,
4847
+ method: 'get',
4848
+ params,
4849
+ })
4850
+ }
4851
+ }