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,935 @@
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 ActivityReference = schemas['ActivityReference']
9
+ export type Campaign = schemas['Campaign']
10
+ export type CampaignSubTypeCampaignSubType = schemas['Campaign.SubType.CampaignSubType']
11
+ export type CampaignAudit = schemas['CampaignAudit']
12
+ export type CampaignStatus = schemas['CampaignStatus']
13
+ export type CampaignType = schemas['CampaignType']
14
+ export type CampaignTypeInfo = schemas['CampaignTypeInfo']
15
+ export type Count = schemas['Count']
16
+ export type EmailOpened = schemas['EmailOpened']
17
+ export type FormSubmitted = schemas['FormSubmitted']
18
+ export type Group = schemas['Group']
19
+ export type LinkClicked = schemas['LinkClicked']
20
+ export type MarketingCompany = schemas['MarketingCompany']
21
+ export type MarketingContact = schemas['MarketingContact']
22
+ export type OpportunityReference = schemas['OpportunityReference']
23
+ export type PatchOperation = schemas['PatchOperation']
24
+ export type TypeSubTypeCampaignSubType = schemas['Type.SubType.CampaignSubType']
25
+ export type Usage = schemas['Usage']
26
+
27
+ /**
28
+ * @public
29
+ */
30
+ export default class MarketingAPI extends Manage {
31
+ constructor(props: CWMOptions) {
32
+ super(props)
33
+ }
34
+
35
+ getMarketingCampaigns(params: CommonParameters = {}): Promise<Array<Campaign>> {
36
+ return this.request({
37
+ path: `/marketing/campaigns`,
38
+ method: 'get',
39
+ params,
40
+ })
41
+ }
42
+
43
+ postMarketingCampaigns(campaign: Campaign): Promise<Campaign> {
44
+ return this.request({
45
+ path: `/marketing/campaigns`,
46
+ method: 'post',
47
+ data: campaign,
48
+ })
49
+ }
50
+
51
+ getMarketingCampaignsById(id: number, params: CommonParameters = {}): Promise<Campaign> {
52
+ return this.request({
53
+ path: `/marketing/campaigns/${id}`,
54
+ method: 'get',
55
+ params,
56
+ })
57
+ }
58
+
59
+ deleteMarketingCampaignsById(id: number): Promise<NoContentResponse> {
60
+ return this.request({
61
+ path: `/marketing/campaigns/${id}`,
62
+ method: 'delete',
63
+ })
64
+ }
65
+
66
+ putMarketingCampaignsById(id: number, campaign: Campaign): Promise<Campaign> {
67
+ return this.request({
68
+ path: `/marketing/campaigns/${id}`,
69
+ method: 'put',
70
+ data: campaign,
71
+ })
72
+ }
73
+
74
+ patchMarketingCampaignsById(
75
+ id: number,
76
+ patchOperations: Array<PatchOperation>,
77
+ ): Promise<Campaign> {
78
+ return this.request({
79
+ path: `/marketing/campaigns/${id}`,
80
+ method: 'patch',
81
+ data: patchOperations,
82
+ })
83
+ }
84
+
85
+ getMarketingCampaignsByIdActivities(
86
+ id: number,
87
+ params: CommonParameters = {},
88
+ ): Promise<Array<ActivityReference>> {
89
+ return this.request({
90
+ path: `/marketing/campaigns/${id}/activities`,
91
+ method: 'get',
92
+ params,
93
+ })
94
+ }
95
+
96
+ getMarketingCampaignsByIdActivitiesCount(
97
+ id: number,
98
+ params: CommonParameters = {},
99
+ ): Promise<Count> {
100
+ return this.request({
101
+ path: `/marketing/campaigns/${id}/activities/count`,
102
+ method: 'get',
103
+ params,
104
+ })
105
+ }
106
+
107
+ getMarketingCampaignsByIdOpportunities(
108
+ id: number,
109
+ params: CommonParameters = {},
110
+ ): Promise<Array<OpportunityReference>> {
111
+ return this.request({
112
+ path: `/marketing/campaigns/${id}/opportunities`,
113
+ method: 'get',
114
+ params,
115
+ })
116
+ }
117
+
118
+ getMarketingCampaignsByIdOpportunitiesCount(
119
+ id: number,
120
+ params: CommonParameters = {},
121
+ ): Promise<Count> {
122
+ return this.request({
123
+ path: `/marketing/campaigns/${id}/opportunities/count`,
124
+ method: 'get',
125
+ params,
126
+ })
127
+ }
128
+
129
+ getMarketingCampaignsByParentIdAudits(
130
+ parentId: number,
131
+ params: CommonParameters = {},
132
+ ): Promise<Array<CampaignAudit>> {
133
+ return this.request({
134
+ path: `/marketing/campaigns/${parentId}/audits`,
135
+ method: 'get',
136
+ params,
137
+ })
138
+ }
139
+
140
+ postMarketingCampaignsByParentIdAudits(
141
+ parentId: number,
142
+ campaignAudit: CampaignAudit,
143
+ ): Promise<CampaignAudit> {
144
+ return this.request({
145
+ path: `/marketing/campaigns/${parentId}/audits`,
146
+ method: 'post',
147
+ data: campaignAudit,
148
+ })
149
+ }
150
+
151
+ getMarketingCampaignsByParentIdAuditsById(
152
+ id: number,
153
+ parentId: number,
154
+ params: CommonParameters = {},
155
+ ): Promise<CampaignAudit> {
156
+ return this.request({
157
+ path: `/marketing/campaigns/${parentId}/audits/${id}`,
158
+ method: 'get',
159
+ params,
160
+ })
161
+ }
162
+
163
+ deleteMarketingCampaignsByParentIdAuditsById(
164
+ id: number,
165
+ parentId: number,
166
+ ): Promise<NoContentResponse> {
167
+ return this.request({
168
+ path: `/marketing/campaigns/${parentId}/audits/${id}`,
169
+ method: 'delete',
170
+ })
171
+ }
172
+
173
+ putMarketingCampaignsByParentIdAuditsById(
174
+ id: number,
175
+ parentId: number,
176
+ campaignAudit: CampaignAudit,
177
+ ): Promise<CampaignAudit> {
178
+ return this.request({
179
+ path: `/marketing/campaigns/${parentId}/audits/${id}`,
180
+ method: 'put',
181
+ data: campaignAudit,
182
+ })
183
+ }
184
+
185
+ patchMarketingCampaignsByParentIdAuditsById(
186
+ id: number,
187
+ parentId: number,
188
+ patchOperations: Array<PatchOperation>,
189
+ ): Promise<CampaignAudit> {
190
+ return this.request({
191
+ path: `/marketing/campaigns/${parentId}/audits/${id}`,
192
+ method: 'patch',
193
+ data: patchOperations,
194
+ })
195
+ }
196
+
197
+ getMarketingCampaignsByParentIdAuditsCount(
198
+ parentId: number,
199
+ params: CommonParameters = {},
200
+ ): Promise<Count> {
201
+ return this.request({
202
+ path: `/marketing/campaigns/${parentId}/audits/count`,
203
+ method: 'get',
204
+ params,
205
+ })
206
+ }
207
+
208
+ getMarketingCampaignsByParentIdEmailsOpened(
209
+ parentId: number,
210
+ params: CommonParameters = {},
211
+ ): Promise<Array<EmailOpened>> {
212
+ return this.request({
213
+ path: `/marketing/campaigns/${parentId}/emailsOpened`,
214
+ method: 'get',
215
+ params,
216
+ })
217
+ }
218
+
219
+ postMarketingCampaignsByParentIdEmailsOpened(
220
+ parentId: number,
221
+ emailOpened: EmailOpened,
222
+ ): Promise<EmailOpened> {
223
+ return this.request({
224
+ path: `/marketing/campaigns/${parentId}/emailsOpened`,
225
+ method: 'post',
226
+ data: emailOpened,
227
+ })
228
+ }
229
+
230
+ getMarketingCampaignsByParentIdEmailsOpenedById(
231
+ id: number,
232
+ parentId: number,
233
+ params: CommonParameters = {},
234
+ ): Promise<EmailOpened> {
235
+ return this.request({
236
+ path: `/marketing/campaigns/${parentId}/emailsOpened/${id}`,
237
+ method: 'get',
238
+ params,
239
+ })
240
+ }
241
+
242
+ deleteMarketingCampaignsByParentIdEmailsOpenedById(
243
+ id: number,
244
+ parentId: number,
245
+ ): Promise<NoContentResponse> {
246
+ return this.request({
247
+ path: `/marketing/campaigns/${parentId}/emailsOpened/${id}`,
248
+ method: 'delete',
249
+ })
250
+ }
251
+
252
+ putMarketingCampaignsByParentIdEmailsOpenedById(
253
+ id: number,
254
+ parentId: number,
255
+ emailOpened: EmailOpened,
256
+ ): Promise<EmailOpened> {
257
+ return this.request({
258
+ path: `/marketing/campaigns/${parentId}/emailsOpened/${id}`,
259
+ method: 'put',
260
+ data: emailOpened,
261
+ })
262
+ }
263
+
264
+ patchMarketingCampaignsByParentIdEmailsOpenedById(
265
+ id: number,
266
+ parentId: number,
267
+ patchOperations: Array<PatchOperation>,
268
+ ): Promise<EmailOpened> {
269
+ return this.request({
270
+ path: `/marketing/campaigns/${parentId}/emailsOpened/${id}`,
271
+ method: 'patch',
272
+ data: patchOperations,
273
+ })
274
+ }
275
+
276
+ getMarketingCampaignsByParentIdEmailsOpenedCount(
277
+ parentId: number,
278
+ params: CommonParameters = {},
279
+ ): Promise<Count> {
280
+ return this.request({
281
+ path: `/marketing/campaigns/${parentId}/emailsOpened/count`,
282
+ method: 'get',
283
+ params,
284
+ })
285
+ }
286
+
287
+ getMarketingCampaignsByParentIdFormsSubmitted(
288
+ parentId: number,
289
+ params: CommonParameters = {},
290
+ ): Promise<Array<FormSubmitted>> {
291
+ return this.request({
292
+ path: `/marketing/campaigns/${parentId}/formsSubmitted`,
293
+ method: 'get',
294
+ params,
295
+ })
296
+ }
297
+
298
+ postMarketingCampaignsByParentIdFormsSubmitted(
299
+ parentId: number,
300
+ formSubmitted: FormSubmitted,
301
+ ): Promise<FormSubmitted> {
302
+ return this.request({
303
+ path: `/marketing/campaigns/${parentId}/formsSubmitted`,
304
+ method: 'post',
305
+ data: formSubmitted,
306
+ })
307
+ }
308
+
309
+ getMarketingCampaignsByParentIdFormsSubmittedById(
310
+ id: number,
311
+ parentId: number,
312
+ params: CommonParameters = {},
313
+ ): Promise<FormSubmitted> {
314
+ return this.request({
315
+ path: `/marketing/campaigns/${parentId}/formsSubmitted/${id}`,
316
+ method: 'get',
317
+ params,
318
+ })
319
+ }
320
+
321
+ deleteMarketingCampaignsByParentIdFormsSubmittedById(
322
+ id: number,
323
+ parentId: number,
324
+ ): Promise<NoContentResponse> {
325
+ return this.request({
326
+ path: `/marketing/campaigns/${parentId}/formsSubmitted/${id}`,
327
+ method: 'delete',
328
+ })
329
+ }
330
+
331
+ putMarketingCampaignsByParentIdFormsSubmittedById(
332
+ id: number,
333
+ parentId: number,
334
+ formSubmitted: FormSubmitted,
335
+ ): Promise<FormSubmitted> {
336
+ return this.request({
337
+ path: `/marketing/campaigns/${parentId}/formsSubmitted/${id}`,
338
+ method: 'put',
339
+ data: formSubmitted,
340
+ })
341
+ }
342
+
343
+ patchMarketingCampaignsByParentIdFormsSubmittedById(
344
+ id: number,
345
+ parentId: number,
346
+ patchOperations: Array<PatchOperation>,
347
+ ): Promise<FormSubmitted> {
348
+ return this.request({
349
+ path: `/marketing/campaigns/${parentId}/formsSubmitted/${id}`,
350
+ method: 'patch',
351
+ data: patchOperations,
352
+ })
353
+ }
354
+
355
+ getMarketingCampaignsByParentIdFormsSubmittedCount(
356
+ parentId: number,
357
+ params: CommonParameters = {},
358
+ ): Promise<Count> {
359
+ return this.request({
360
+ path: `/marketing/campaigns/${parentId}/formsSubmitted/count`,
361
+ method: 'get',
362
+ params,
363
+ })
364
+ }
365
+
366
+ getMarketingCampaignsByParentIdLinksClicked(
367
+ parentId: number,
368
+ params: CommonParameters = {},
369
+ ): Promise<Array<LinkClicked>> {
370
+ return this.request({
371
+ path: `/marketing/campaigns/${parentId}/linksClicked`,
372
+ method: 'get',
373
+ params,
374
+ })
375
+ }
376
+
377
+ postMarketingCampaignsByParentIdLinksClicked(
378
+ parentId: number,
379
+ linkClicked: LinkClicked,
380
+ ): Promise<LinkClicked> {
381
+ return this.request({
382
+ path: `/marketing/campaigns/${parentId}/linksClicked`,
383
+ method: 'post',
384
+ data: linkClicked,
385
+ })
386
+ }
387
+
388
+ getMarketingCampaignsByParentIdLinksClickedById(
389
+ id: number,
390
+ parentId: number,
391
+ params: CommonParameters = {},
392
+ ): Promise<LinkClicked> {
393
+ return this.request({
394
+ path: `/marketing/campaigns/${parentId}/linksClicked/${id}`,
395
+ method: 'get',
396
+ params,
397
+ })
398
+ }
399
+
400
+ deleteMarketingCampaignsByParentIdLinksClickedById(
401
+ id: number,
402
+ parentId: number,
403
+ ): Promise<NoContentResponse> {
404
+ return this.request({
405
+ path: `/marketing/campaigns/${parentId}/linksClicked/${id}`,
406
+ method: 'delete',
407
+ })
408
+ }
409
+
410
+ putMarketingCampaignsByParentIdLinksClickedById(
411
+ id: number,
412
+ parentId: number,
413
+ linkClicked: LinkClicked,
414
+ ): Promise<LinkClicked> {
415
+ return this.request({
416
+ path: `/marketing/campaigns/${parentId}/linksClicked/${id}`,
417
+ method: 'put',
418
+ data: linkClicked,
419
+ })
420
+ }
421
+
422
+ patchMarketingCampaignsByParentIdLinksClickedById(
423
+ id: number,
424
+ parentId: number,
425
+ patchOperations: Array<PatchOperation>,
426
+ ): Promise<LinkClicked> {
427
+ return this.request({
428
+ path: `/marketing/campaigns/${parentId}/linksClicked/${id}`,
429
+ method: 'patch',
430
+ data: patchOperations,
431
+ })
432
+ }
433
+
434
+ getMarketingCampaignsByParentIdLinksClickedCount(
435
+ parentId: number,
436
+ params: CommonParameters = {},
437
+ ): Promise<Count> {
438
+ return this.request({
439
+ path: `/marketing/campaigns/${parentId}/linksClicked/count`,
440
+ method: 'get',
441
+ params,
442
+ })
443
+ }
444
+
445
+ getMarketingCampaignsCount(params: CommonParameters = {}): Promise<Count> {
446
+ return this.request({
447
+ path: `/marketing/campaigns/count`,
448
+ method: 'get',
449
+ params,
450
+ })
451
+ }
452
+
453
+ getMarketingCampaignsStatuses(params: CommonParameters = {}): Promise<Array<CampaignStatus>> {
454
+ return this.request({
455
+ path: `/marketing/campaigns/statuses`,
456
+ method: 'get',
457
+ params,
458
+ })
459
+ }
460
+
461
+ postMarketingCampaignsStatuses(campaignStatus: CampaignStatus): Promise<CampaignStatus> {
462
+ return this.request({
463
+ path: `/marketing/campaigns/statuses`,
464
+ method: 'post',
465
+ data: campaignStatus,
466
+ })
467
+ }
468
+
469
+ getMarketingCampaignsStatusesById(
470
+ id: number,
471
+ params: CommonParameters = {},
472
+ ): Promise<CampaignStatus> {
473
+ return this.request({
474
+ path: `/marketing/campaigns/statuses/${id}`,
475
+ method: 'get',
476
+ params,
477
+ })
478
+ }
479
+
480
+ deleteMarketingCampaignsStatusesById(id: number): Promise<NoContentResponse> {
481
+ return this.request({
482
+ path: `/marketing/campaigns/statuses/${id}`,
483
+ method: 'delete',
484
+ })
485
+ }
486
+
487
+ putMarketingCampaignsStatusesById(
488
+ id: number,
489
+ campaignStatus: CampaignStatus,
490
+ ): Promise<CampaignStatus> {
491
+ return this.request({
492
+ path: `/marketing/campaigns/statuses/${id}`,
493
+ method: 'put',
494
+ data: campaignStatus,
495
+ })
496
+ }
497
+
498
+ patchMarketingCampaignsStatusesById(
499
+ id: number,
500
+ patchOperations: Array<PatchOperation>,
501
+ ): Promise<CampaignStatus> {
502
+ return this.request({
503
+ path: `/marketing/campaigns/statuses/${id}`,
504
+ method: 'patch',
505
+ data: patchOperations,
506
+ })
507
+ }
508
+
509
+ getMarketingCampaignsStatusesCount(params: CommonParameters = {}): Promise<Count> {
510
+ return this.request({
511
+ path: `/marketing/campaigns/statuses/count`,
512
+ method: 'get',
513
+ params,
514
+ })
515
+ }
516
+
517
+ getMarketingCampaignsSubTypes(
518
+ params: CommonParameters = {},
519
+ ): Promise<Array<CampaignSubTypeCampaignSubType>> {
520
+ return this.request({
521
+ path: `/marketing/campaigns/subTypes`,
522
+ method: 'get',
523
+ params,
524
+ })
525
+ }
526
+
527
+ postMarketingCampaignsSubTypes(
528
+ campaignSubType: CampaignSubTypeCampaignSubType,
529
+ ): Promise<CampaignSubTypeCampaignSubType> {
530
+ return this.request({
531
+ path: `/marketing/campaigns/subTypes`,
532
+ method: 'post',
533
+ data: campaignSubType,
534
+ })
535
+ }
536
+
537
+ getMarketingCampaignsSubTypesById(
538
+ id: number,
539
+ params: CommonParameters = {},
540
+ ): Promise<CampaignSubTypeCampaignSubType> {
541
+ return this.request({
542
+ path: `/marketing/campaigns/subTypes/${id}`,
543
+ method: 'get',
544
+ params,
545
+ })
546
+ }
547
+
548
+ deleteMarketingCampaignsSubTypesById(id: number): Promise<NoContentResponse> {
549
+ return this.request({
550
+ path: `/marketing/campaigns/subTypes/${id}`,
551
+ method: 'delete',
552
+ })
553
+ }
554
+
555
+ putMarketingCampaignsSubTypesById(
556
+ id: number,
557
+ campaignSubType: CampaignSubTypeCampaignSubType,
558
+ ): Promise<CampaignSubTypeCampaignSubType> {
559
+ return this.request({
560
+ path: `/marketing/campaigns/subTypes/${id}`,
561
+ method: 'put',
562
+ data: campaignSubType,
563
+ })
564
+ }
565
+
566
+ patchMarketingCampaignsSubTypesById(
567
+ id: number,
568
+ patchOperations: Array<PatchOperation>,
569
+ ): Promise<CampaignSubTypeCampaignSubType> {
570
+ return this.request({
571
+ path: `/marketing/campaigns/subTypes/${id}`,
572
+ method: 'patch',
573
+ data: patchOperations,
574
+ })
575
+ }
576
+
577
+ getMarketingCampaignsSubTypesCount(params: CommonParameters = {}): Promise<Count> {
578
+ return this.request({
579
+ path: `/marketing/campaigns/subTypes/count`,
580
+ method: 'get',
581
+ params,
582
+ })
583
+ }
584
+
585
+ getMarketingCampaignsTypes(params: CommonParameters = {}): Promise<Array<CampaignType>> {
586
+ return this.request({
587
+ path: `/marketing/campaigns/types`,
588
+ method: 'get',
589
+ params,
590
+ })
591
+ }
592
+
593
+ postMarketingCampaignsTypes(campaignType: CampaignType): Promise<CampaignType> {
594
+ return this.request({
595
+ path: `/marketing/campaigns/types`,
596
+ method: 'post',
597
+ data: campaignType,
598
+ })
599
+ }
600
+
601
+ getMarketingCampaignsTypesById(id: number, params: CommonParameters = {}): Promise<CampaignType> {
602
+ return this.request({
603
+ path: `/marketing/campaigns/types/${id}`,
604
+ method: 'get',
605
+ params,
606
+ })
607
+ }
608
+
609
+ deleteMarketingCampaignsTypesById(id: number): Promise<NoContentResponse> {
610
+ return this.request({
611
+ path: `/marketing/campaigns/types/${id}`,
612
+ method: 'delete',
613
+ })
614
+ }
615
+
616
+ putMarketingCampaignsTypesById(id: number, campaignType: CampaignType): Promise<CampaignType> {
617
+ return this.request({
618
+ path: `/marketing/campaigns/types/${id}`,
619
+ method: 'put',
620
+ data: campaignType,
621
+ })
622
+ }
623
+
624
+ patchMarketingCampaignsTypesById(
625
+ id: number,
626
+ patchOperations: Array<PatchOperation>,
627
+ ): Promise<CampaignType> {
628
+ return this.request({
629
+ path: `/marketing/campaigns/types/${id}`,
630
+ method: 'patch',
631
+ data: patchOperations,
632
+ })
633
+ }
634
+
635
+ getMarketingCampaignsTypesByIdInfo(
636
+ id: number,
637
+ params: CommonParameters = {},
638
+ ): Promise<CampaignTypeInfo> {
639
+ return this.request({
640
+ path: `/marketing/campaigns/types/${id}/info`,
641
+ method: 'get',
642
+ params,
643
+ })
644
+ }
645
+
646
+ getMarketingCampaignsTypesByParentIdSubTypes(
647
+ parentId: number,
648
+ params: CommonParameters = {},
649
+ ): Promise<Array<TypeSubTypeCampaignSubType>> {
650
+ return this.request({
651
+ path: `/marketing/campaigns/types/${parentId}/subTypes`,
652
+ method: 'get',
653
+ params,
654
+ })
655
+ }
656
+
657
+ getMarketingCampaignsTypesByParentIdSubTypesById(
658
+ id: number,
659
+ parentId: number,
660
+ params: CommonParameters = {},
661
+ ): Promise<TypeSubTypeCampaignSubType> {
662
+ return this.request({
663
+ path: `/marketing/campaigns/types/${parentId}/subTypes/${id}`,
664
+ method: 'get',
665
+ params,
666
+ })
667
+ }
668
+
669
+ getMarketingCampaignsTypesByParentIdSubTypesCount(
670
+ parentId: number,
671
+ params: CommonParameters = {},
672
+ ): Promise<Count> {
673
+ return this.request({
674
+ path: `/marketing/campaigns/types/${parentId}/subTypes/count`,
675
+ method: 'get',
676
+ params,
677
+ })
678
+ }
679
+
680
+ getMarketingCampaignsTypesCount(params: CommonParameters = {}): Promise<Count> {
681
+ return this.request({
682
+ path: `/marketing/campaigns/types/count`,
683
+ method: 'get',
684
+ params,
685
+ })
686
+ }
687
+
688
+ getMarketingCampaignsTypesInfo(params: CommonParameters = {}): Promise<Array<CampaignTypeInfo>> {
689
+ return this.request({
690
+ path: `/marketing/campaigns/types/info`,
691
+ method: 'get',
692
+ params,
693
+ })
694
+ }
695
+
696
+ getMarketingCampaignsTypesInfoCount(params: CommonParameters = {}): Promise<Count> {
697
+ return this.request({
698
+ path: `/marketing/campaigns/types/info/count`,
699
+ method: 'get',
700
+ params,
701
+ })
702
+ }
703
+
704
+ getMarketingGroups(params: CommonParameters = {}): Promise<Array<Group>> {
705
+ return this.request({
706
+ path: `/marketing/groups`,
707
+ method: 'get',
708
+ params,
709
+ })
710
+ }
711
+
712
+ postMarketingGroups(group: Group): Promise<Group> {
713
+ return this.request({
714
+ path: `/marketing/groups`,
715
+ method: 'post',
716
+ data: group,
717
+ })
718
+ }
719
+
720
+ getMarketingGroupsById(id: number, params: CommonParameters = {}): Promise<Group> {
721
+ return this.request({
722
+ path: `/marketing/groups/${id}`,
723
+ method: 'get',
724
+ params,
725
+ })
726
+ }
727
+
728
+ deleteMarketingGroupsById(id: number): Promise<NoContentResponse> {
729
+ return this.request({
730
+ path: `/marketing/groups/${id}`,
731
+ method: 'delete',
732
+ })
733
+ }
734
+
735
+ putMarketingGroupsById(id: number, group: Group): Promise<Group> {
736
+ return this.request({
737
+ path: `/marketing/groups/${id}`,
738
+ method: 'put',
739
+ data: group,
740
+ })
741
+ }
742
+
743
+ patchMarketingGroupsById(id: number, patchOperations: Array<PatchOperation>): Promise<Group> {
744
+ return this.request({
745
+ path: `/marketing/groups/${id}`,
746
+ method: 'patch',
747
+ data: patchOperations,
748
+ })
749
+ }
750
+
751
+ getMarketingGroupsByIdUsages(id: number, params: CommonParameters = {}): Promise<Array<Usage>> {
752
+ return this.request({
753
+ path: `/marketing/groups/${id}/usages`,
754
+ method: 'get',
755
+ params,
756
+ })
757
+ }
758
+
759
+ getMarketingGroupsByIdUsagesList(
760
+ id: number,
761
+ params: CommonParameters = {},
762
+ ): Promise<Array<Usage>> {
763
+ return this.request({
764
+ path: `/marketing/groups/${id}/usages/list`,
765
+ method: 'get',
766
+ params,
767
+ })
768
+ }
769
+
770
+ getMarketingGroupsByParentIdCompanies(
771
+ parentId: number,
772
+ params: CommonParameters = {},
773
+ ): Promise<Array<MarketingCompany>> {
774
+ return this.request({
775
+ path: `/marketing/groups/${parentId}/companies`,
776
+ method: 'get',
777
+ params,
778
+ })
779
+ }
780
+
781
+ postMarketingGroupsByParentIdCompanies(
782
+ parentId: number,
783
+ marketingCompany: MarketingCompany,
784
+ ): Promise<MarketingCompany> {
785
+ return this.request({
786
+ path: `/marketing/groups/${parentId}/companies`,
787
+ method: 'post',
788
+ data: marketingCompany,
789
+ })
790
+ }
791
+
792
+ getMarketingGroupsByParentIdCompaniesById(
793
+ id: number,
794
+ parentId: number,
795
+ params: CommonParameters = {},
796
+ ): Promise<MarketingCompany> {
797
+ return this.request({
798
+ path: `/marketing/groups/${parentId}/companies/${id}`,
799
+ method: 'get',
800
+ params,
801
+ })
802
+ }
803
+
804
+ deleteMarketingGroupsByParentIdCompaniesById(
805
+ id: number,
806
+ parentId: number,
807
+ ): Promise<NoContentResponse> {
808
+ return this.request({
809
+ path: `/marketing/groups/${parentId}/companies/${id}`,
810
+ method: 'delete',
811
+ })
812
+ }
813
+
814
+ putMarketingGroupsByParentIdCompaniesById(
815
+ id: number,
816
+ parentId: number,
817
+ marketingCompany: MarketingCompany,
818
+ ): Promise<MarketingCompany> {
819
+ return this.request({
820
+ path: `/marketing/groups/${parentId}/companies/${id}`,
821
+ method: 'put',
822
+ data: marketingCompany,
823
+ })
824
+ }
825
+
826
+ patchMarketingGroupsByParentIdCompaniesById(
827
+ id: number,
828
+ parentId: number,
829
+ patchOperations: Array<PatchOperation>,
830
+ ): Promise<MarketingCompany> {
831
+ return this.request({
832
+ path: `/marketing/groups/${parentId}/companies/${id}`,
833
+ method: 'patch',
834
+ data: patchOperations,
835
+ })
836
+ }
837
+
838
+ getMarketingGroupsByParentIdCompaniesCount(
839
+ parentId: number,
840
+ params: CommonParameters = {},
841
+ ): Promise<Count> {
842
+ return this.request({
843
+ path: `/marketing/groups/${parentId}/companies/count`,
844
+ method: 'get',
845
+ params,
846
+ })
847
+ }
848
+
849
+ getMarketingGroupsByParentIdContacts(
850
+ parentId: number,
851
+ params: CommonParameters = {},
852
+ ): Promise<Array<MarketingContact>> {
853
+ return this.request({
854
+ path: `/marketing/groups/${parentId}/contacts`,
855
+ method: 'get',
856
+ params,
857
+ })
858
+ }
859
+
860
+ postMarketingGroupsByParentIdContacts(
861
+ parentId: number,
862
+ marketingContact: MarketingContact,
863
+ ): Promise<MarketingContact> {
864
+ return this.request({
865
+ path: `/marketing/groups/${parentId}/contacts`,
866
+ method: 'post',
867
+ data: marketingContact,
868
+ })
869
+ }
870
+
871
+ getMarketingGroupsByParentIdContactsById(
872
+ id: number,
873
+ parentId: number,
874
+ params: CommonParameters = {},
875
+ ): Promise<MarketingContact> {
876
+ return this.request({
877
+ path: `/marketing/groups/${parentId}/contacts/${id}`,
878
+ method: 'get',
879
+ params,
880
+ })
881
+ }
882
+
883
+ deleteMarketingGroupsByParentIdContactsById(
884
+ id: number,
885
+ parentId: number,
886
+ ): Promise<NoContentResponse> {
887
+ return this.request({
888
+ path: `/marketing/groups/${parentId}/contacts/${id}`,
889
+ method: 'delete',
890
+ })
891
+ }
892
+
893
+ putMarketingGroupsByParentIdContactsById(
894
+ id: number,
895
+ parentId: number,
896
+ marketingContact: MarketingContact,
897
+ ): Promise<MarketingContact> {
898
+ return this.request({
899
+ path: `/marketing/groups/${parentId}/contacts/${id}`,
900
+ method: 'put',
901
+ data: marketingContact,
902
+ })
903
+ }
904
+
905
+ patchMarketingGroupsByParentIdContactsById(
906
+ id: number,
907
+ parentId: number,
908
+ patchOperations: Array<PatchOperation>,
909
+ ): Promise<MarketingContact> {
910
+ return this.request({
911
+ path: `/marketing/groups/${parentId}/contacts/${id}`,
912
+ method: 'patch',
913
+ data: patchOperations,
914
+ })
915
+ }
916
+
917
+ getMarketingGroupsByParentIdContactsCount(
918
+ parentId: number,
919
+ params: CommonParameters = {},
920
+ ): Promise<Count> {
921
+ return this.request({
922
+ path: `/marketing/groups/${parentId}/contacts/count`,
923
+ method: 'get',
924
+ params,
925
+ })
926
+ }
927
+
928
+ getMarketingGroupsCount(params: CommonParameters = {}): Promise<Count> {
929
+ return this.request({
930
+ path: `/marketing/groups/count`,
931
+ method: 'get',
932
+ params,
933
+ })
934
+ }
935
+ }