connectwise-rest 0.25.1 → 1.0.2

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